[Mono-osx] [PATCH] cocoa-sharp patch for mcs 1.2.5

Wade Berrier wberrier at novell.com
Fri Jul 27 19:03:15 EDT 2007


In preparing for the mono 1.2.5 release, I'm finding that cocoa-sharp
0.9.1 isn't compiling with mcs 1.2.5.

Here is an example of the failing code:

        unsafe {
              int *ptr = (int *)(((int) &reply.msgh_id)+(Marshal.SizeOf
        (typeof (int))*3));
              (int)*(ptr) = 0x5;
        fails with:
        ././Mach.cs(161,53): error CS0131: The left-hand side of an
        assignment must be a variable, a property or an indexer
        Compilation failed: 1 error(s), 1 warnings 

Is this patch ok to commit?

Also, looking at the commit log:

2006-04-20  Geoff Norton  <gnorton at customerdna.com>

        * configure.in:  Sync to local 0.9.3 tree.

Is the source also hosted somewhere else?  A lot of changes were
committed in March of this year, but I wonder if they were also synced
to the "local tree"?

Should I be using 0.9.3?  If so, where do I get it?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cocoa-sharp-unsafe_fixes.patch
Type: text/x-patch
Size: 6864 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20070727/9e9ab582/attachment.bin 

More information about the Mono-osx mailing list