Bug 552370: add one more test for unsigned as a type, not as a type
authorLucas Rocha <lucasr@gnome.org>
Sat, 11 Oct 2008 21:32:19 +0000 (21:32 +0000)
committerLucas Almeida Rocha <lucasr@src.gnome.org>
Sat, 11 Oct 2008 21:32:19 +0000 (21:32 +0000)
2008-10-11  Lucas Rocha  <lucasr@gnome.org>

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

ChangeLog
giscanner/ast.py
tests/scanner/foo-expected.gir
tests/scanner/foo.h

index 55c3271923627b922b79e18e0c29c2fdfb765079..e52ee836389167bd2b52d7f5283ff05ee91a6777 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,13 @@
-2008-10-09  Andreas Rottmann  <a.rottmann@gmx.at>
+2008-10-11  Lucas Rocha  <lucasr@gnome.org>
+
+       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  <a.rottmann@gmx.at>
 
        Bug 555712: Struct and union issues
 
index 31f5f798a07c533edb7f4598c9ac9a7bdff8e4f2..906f64e3eeccea78e0b33dca622b75cab260797f 100644 (file)
@@ -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
index e498cdffe75a4e4815666a25f407cf0d57c994d7..443c2873574787490f1f37797d5711306ce1446a 100644 (file)
         </return-value>
       </method>
     </union>
-    <function name="test_unsigned" c:identifier="foo_test_unsigned">
+    <function name="test_unsigned_qualifier"
+              c:identifier="foo_test_unsigned_qualifier">
       <return-value>
         <type name="none" c:type="void"/>
       </return-value>
         </parameter>
       </parameters>
     </function>
+    <function name="test_unsigned_type" c:identifier="foo_test_unsigned_type">
+      <return-value>
+        <type name="none" c:type="void"/>
+      </return-value>
+      <parameters>
+        <parameter name="unsigned_param">
+          <type name="uint" c:type="unsigned"/>
+        </parameter>
+      </parameters>
+    </function>
   </namespace>
 </repository>
index c046dbc3dd83623aa4e871079d48b83fe7623f42..3b565e265459b196f986b584a29db37cff1da791 100644 (file)
@@ -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__ */