scanner: Add backwards compatibility with some annotation types
authorColin Walters <walters@verbum.org>
Fri, 3 Sep 2010 23:30:42 +0000 (19:30 -0400)
committerColin Walters <walters@verbum.org>
Fri, 3 Sep 2010 23:30:42 +0000 (19:30 -0400)
These were listed on the wiki up until just now...

giscanner/ast.py

index 5267aef96d8f8860c4b25d63ceec58dc27f6e1e1..0b9520d5e280dda7fc9c83fe203b5d5251f42fc1 100644 (file)
@@ -245,6 +245,12 @@ type_names['gsize'] = TYPE_ULONG
 type_names['gssize'] = TYPE_LONG
 type_names['gconstpointer'] = TYPE_ANY
 
+# We used to support these; continue to do so
+type_names['any'] = TYPE_ANY
+type_names['boolean'] = TYPE_BOOLEAN
+type_names['uint'] = TYPE_UINT
+type_names['ulong'] = TYPE_ULONG
+
 # C stdio, used in GLib public headers; squash this for now here
 # until we move scanning into GLib and can (skip)
 type_names['FILE*'] = TYPE_ANY