GNOME Bugzilla – Bug 576323
g-ir-compiler fails with constant in classes
Last modified: 2015-02-07 16:55:06 UTC
Steps to reproduce: 1. Make a gir file with a constant in a class 2. Compile it with g-ir-compiler Stack trace: Other information: Inner constants put girparser.c in an invalide state.
Created attachment 131138 [details] [review] Fixes inner constant parsing
Are we generating inner constants currently from the scanner, or is this something Vala is doing? I see we're only doing the push here: if (ctx->state == STATE_NAMESPACE) { push_node (ctx, (GIrNode *) constant); So this change looks good to commit.
It seems the scanner currently don't recognize inner constants. Indeed, VALUE_COLLECT_FORMAT_MAX_LENGTH and VALUE_NOCOPY_CONTENTS would be good candidates to be inner constants of the Value record. (cf. GObject-2.0.gir) Maybe a bug should be filed for this. Anyway Vala does for sure.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]