Remove enum members which follows /* <private> */ comments
inside the transformer instead of the sourcescanner itself.
Fixes a crash when creating the gir for GstBase.
}
enumerator
{
- if (!scanner->private)
- {
- $$ = g_list_append (NULL, $2);
- }
+ $$ = g_list_append (NULL, $2);
}
| enumerator_list ',' enumerator
{
- if (!scanner->private)
- {
- $$ = g_list_append ($1, $3);
- }
+ $$ = g_list_append ($1, $3);
}
;
if prefixlen > 0:
name = child.ident[prefixlen:]
else:
- if child.ident is None:
+ if child.private:
continue
# Ok, the enum members don't have a consistent prefix
# among them, so let's just remove the global namespace