Add Ignore property to MapAttribute, emit structure definitions in correct order #22

Closed
wants to merge 1 commit into from

2 participants

@steffen-kiess
  • [Map (Ignore=true)] can be used to ignore a field when generating the C wrapper structure. This is useful for structures with LayoutKind.Explicit.

  • When emitting the C wrapper structures make sure all needed types are emitted before emitting a structure.

This changes are needed for mono/mono#221

@steffen-kiess steffen-kiess Add Ignore property to MapAttribute, emit structure definitions in co…
…rrect order

* [Map (Ignore=true)] can be used to ignore a field when generating the C wrapper structure. This is useful for structures with LayoutKind.Explicit.

* When emitting the C wrapper structures make sure all needed types are emitted before emitting a structure.
20caea4
@jonpryor
Mono Project member

Do the following:

$ cd path/to/mono-checkout
$ cd support
$ make refresh

Note: this will require that PKG_CONFIG_PATH prefer your mono-tools install over the system mono-tools install, as it will run pkg-config --variable=Programs create-native-map to get the updated create-native-map.exe before running it.

If nothing is changed in the mono/support directory, then the patch is ready for merging.

@steffen-kiess

Ok, I did that with the current mono HEAD (76da0ed16c2c86874e8c7503c881855878319fee) and nothing changes in mono/support

@jonpryor
Mono Project member

As per this comment, I don't think that this patch is required.

@steffen-kiess

Yes, this patch isn't requirde anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment