GNOME Bugzilla – Bug 790829
glib-genmarshal --body must not generate alias implementations
Last modified: 2017-12-21 16:59:32 UTC
Calling 'glib-genmarshal --body' must not generate a function body implementation for a stdinc alias generated by 'glib-genmarshal --header'. Example: $ cat x.list VOID:POINTER $ glib-genmarshal x.list --header # OK, using stdinc #define g_cclosure_user_marshal_VOID__POINTER g_cclosure_marshal_VOID__POINTER $ glib-genmarshal x.list --body # WRONGLY generates body for alias g_cclosure_user_marshal_VOID__POINTER (GClosure *closure,
Created attachment 364569 [details] [review] Do not generate marshaller aliases in source files When generating the body of the marshallers, we need to skip aliases to standard marshallers provided by GLib itself.
Review of attachment 364569 [details] [review]: Yes. As discussed on IRC, having some regression tests for this (and glib-mkenums) would be most awesome. But this can go in already.
As you also mentioned on IRC, this probably should also be backported to glib-2-54 (plus any other glib-genmarshal/glib-mkenums fixes which have slipped in without being backported).
Attachment 364569 [details] pushed as bf0be21 - Do not generate marshaller aliases in source files
*** Bug 791852 has been marked as a duplicate of this bug. ***