summaryrefslogtreecommitdiff
path: root/giscanner/scannerparser.y
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-26 12:47:01 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-26 12:47:01 -0300
commit60a8c752b300470f33994be75b72a91cf349b6f0 (patch)
tree283b282df8fc91cc1e34bb78eab06276ab964aea /giscanner/scannerparser.y
parent478b318909b01d5269407df1d274c77720cde05b (diff)
downloadgobject-introspection-60a8c752b300470f33994be75b72a91cf349b6f0.tar.gz
[scanner] Mark enum members as private in transformer
Remove enum members which follows /* <private> */ comments inside the transformer instead of the sourcescanner itself. Fixes a crash when creating the gir for GstBase.
Diffstat (limited to 'giscanner/scannerparser.y')
-rw-r--r--giscanner/scannerparser.y10
1 files changed, 2 insertions, 8 deletions
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y
index d5f9a65c..4d85e33e 100644
--- a/giscanner/scannerparser.y
+++ b/giscanner/scannerparser.y
@@ -878,17 +878,11 @@ enumerator_list
}
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);
}
;