| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=693097
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
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
|