[Mono-list] Patches for MarshalAsAttribute in 0.19

Paolo Molaro lupus@ximian.com
Mon, 27 Jan 2003 17:24:51 +0100

On 01/27/03 Jerome Laban wrote:
> So, here are tree patches for Mono-0.19, maybe partial but fixing the marshaling for 
> types UnmanagedType.ByValArray and UnmanagedType.ByValTStr with a SizeConst parameter.
> mono-0.19/mono/metadata/reflection.c
> mcs-0.19/class/System.Reflection.Emit/FieldBuilder.cs
> mcs-0.19/class/System.Reflection.Emit/CustomAttributeBuilder.cs

Thanks, committed to cvs.

> (Sorry if patches are not like they are used to be, I'm not used to make diff files)

You should use the -u option to diff to create patches: the simple way
if you diff from the cvs tree is to add the following line to a
".cvsrc" file in your home directory:

== cut cut
diff -u -p -N
== cut cut

Also, make sure you keep the formatting of the original source, don't
change tabs to spaces and use tabs for indenting the code.



lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better