summaryrefslogtreecommitdiff
path: root/tests/scanner/drawable.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Move TestInherit into RegressJasper St. Pierre2013-02-071-11/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=693097
* Add Emacs mode lines to C sourcesColin Walters2012-02-031-0/+1
|
* tests/scanner: Update annotations and testsColin Walters2010-08-311-0/+12
| | | | | | | | | | | | | First of all, add missing (transfer) annotations that will be required by the new scanner. Other changes: Don't use the (type bitfield) hack; the new scanner will not accept it. Use shifts in the flag constants instead. Use typedefs consistently for structures. Drop scanning of anonymous structure/union members.
* tests: Fix namespacing for BarApp (should be just Bar)Colin Walters2010-08-311-7/+7
|
* Bug 557241 – "throws" flag for functionsJohan Bilien2008-10-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-21 Johan Bilien <jobi@via.ecp.fr> Bug 557241 – "throws" flag for functions * tests/scanner/drawable-1.0-expected.gir, tests/scanner/drawable-injected-1.0-expected.gir, tests/scanner/drawable.[ch]: add simple test for throwing function (has GError ** as last argument) * giscanner/ast.py: add a 'throws' flag to Function * giscanner/glibtransformer.py: if a function's last paramerter is a GError, set the 'throws' flag and remove that parameter * giscanner/girwriter.py: write out the 'throws' attribute * giscanner/girparser.py: support parsing the 'throws' attribute * tests/repository/gitestthrows.c: add a simple test to check the throws flag in a typelib and invoke the function * girepository/ginfo.c, girepository/girnode.[ch], girepository/girnode.h, girepository/girparser.c, girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag * girepository/ginvoke.c: if a function throws, add a GError as last arguments, and propagate the error to the invoker. svn path=/trunk/; revision=773
* Bug 556433 – assume direction = out for int * parametersJohan Bilien2008-10-151-0/+14
| | | | | | | | | | | | | | | 2008-10-15 Johan Bilien <jobi@via.ecp.fr> Bug 556433 – assume direction = out for int * parameters * giscanner/ast.py: define a list of types for which, if passed as reference, we assume a default direction of 'out' * giscanner/transformer.py: if a type has type pointer to one of the previously defined types, and no direction is set, assume out. * tests/scanner/drawable.[ch]: added tests for guessed direction=out svn path=/trunk/; revision=710
* tests/scanner/drawable-expected.gir, tests/scanner/drawable.c, Add aColin Walters2008-08-221-0/+6
| | | | | | | | | | | 2008-08-21 Colin Walters <walters@verbum.org> * tests/scanner/drawable-expected.gir, * tests/scanner/drawable.c, * tests/scanner/drawable.h: Add a method. svn path=/trunk/; revision=447
* Move the drawable parts out of Foo to its own test.Johan Dahlin2008-08-201-0/+15
2008-08-20 Johan Dahlin <johan@gnome.org> * tests/scanner/Foo-expected.gir: * tests/scanner/Makefile.am: * tests/scanner/drawable-expected.gir: * tests/scanner/drawable.c (test_drawable_class_init), (test_drawable_init): * tests/scanner/drawable.h: * tests/scanner/foo-object.h: * tests/scanner/foo.c (foo_boxed_method): Move the drawable parts out of Foo to its own test. svn path=/trunk/; revision=408