From: Lucas Rocha Date: Sat, 11 Oct 2008 21:32:19 +0000 (+0000) Subject: Bug 552370: add one more test for unsigned as a type, not as a type X-Git-Tag: GOBJECT_INTROSPECTION_0_6_0~180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26b498e3bbef45dc1a16a6fe794fe4a711d2ae1d;p=platform%2Fupstream%2Fgobject-introspection.git Bug 552370: add one more test for unsigned as a type, not as a type 2008-10-11 Lucas Rocha Bug 552370: add one more test for unsigned as a type, not as a type qualifier. * giscanner/ast.py: add 'uint' type name for 'unsigned'. * test/scanner/foo.h: add function which uses unsigned as a type. * test/scanner/foo-expected.gir: test that. svn path=/trunk/; revision=668 --- diff --git a/ChangeLog b/ChangeLog index 55c32719..e52ee836 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,13 @@ -2008-10-09 Andreas Rottmann +2008-10-11 Lucas Rocha + + Bug 552370: add one more test for unsigned as a type, not as + a type qualifier. + + * giscanner/ast.py: add 'uint' type name for 'unsigned'. + * test/scanner/foo.h: add function which uses unsigned as a type. + * test/scanner/foo-expected.gir: test that. + +2008-10-11 Andreas Rottmann Bug 555712: Struct and union issues diff --git a/giscanner/ast.py b/giscanner/ast.py index 31f5f798..906f64e3 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -89,6 +89,7 @@ type_names['short'] = TYPE_INT16 type_names['unsigned short'] = TYPE_UINT16 type_names['int'] = TYPE_INT type_names['unsigned int'] = TYPE_UINT +type_names['unsigned'] = TYPE_UINT type_names['long'] = TYPE_LONG type_names['unsigned long'] = TYPE_ULONG type_names['float'] = TYPE_FLOAT diff --git a/tests/scanner/foo-expected.gir b/tests/scanner/foo-expected.gir index e498cdff..443c2873 100644 --- a/tests/scanner/foo-expected.gir +++ b/tests/scanner/foo-expected.gir @@ -448,7 +448,8 @@ - + @@ -458,5 +459,15 @@ + + + + + + + + + + diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h index c046dbc3..3b565e26 100644 --- a/tests/scanner/foo.h +++ b/tests/scanner/foo.h @@ -227,6 +227,7 @@ GType foo_bunion_get_type (void); int foo_bunion_get_contained_type (FooBUnion *bunion); -void foo_test_unsigned (unsigned int unsigned_param); +void foo_test_unsigned_qualifier (unsigned int unsigned_param); +void foo_test_unsigned_type (unsigned unsigned_param); #endif /* __FOO_OBJECT_H__ */