summaryrefslogtreecommitdiff
path: root/tests/scanner/foo-expected.gir
Commit message (Collapse)AuthorAgeFilesLines
* Bug 552858: versioningColin Walters2008-10-121-483/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a big patch. You should probably remove your installation tree to be cleaner. * docs/typelib-format.txt: Add nsversion entry which holds version of namespace. * girepository/girepository.h: Add 'version' parameter to g_irepository_require. This may be NULL. Normally bindings should pass an explicit version though. * girepository/girepository.c: Lots of infrastructure to support versioning. Add some more documentation. Disallow some usage of NULL namespaces. * girepository/girmodule.c: Add version parameter. * girepository/gtypelib.c: Update header size. * giscanner/ast.py: Add version to Namespace. * giscanner/girparser.py: Parse version attribute from XML, pass to Namespace. * giscanner/girwriter.py: Write out version parameter. * giscanner/transformer.py: Clean up include registration. * tests/*: Add version attribute. * tests/invoke/invoke.c: Don't try looking up test before it's loaded in repository. * tools/generate.c: Output version parameter. * gir/Makefile.am: Add 2.0 version to .gir files. svn path=/trunk/; revision=677
* Bug 555947 - update annotations syntaxColin Walters2008-10-111-4/+4
| | | | svn path=/trunk/; revision=674
* Bug 552374: Const strings should be identified in the gir.Jürg Billeter2008-10-111-0/+10
| | | | | | | | | | | | 2008-10-11 Jürg Billeter <j@bitron.ch> Bug 552374: Const strings should be identified in the gir. * giscanner/transformer.py: support string memory management * tests/scanner/foo.h: use char * and const char * * tests/scanner/foo-expected.gir: test that svn path=/trunk/; revision=670
* Bug 552370: add one more test for unsigned as a type, not as a typeLucas Rocha2008-10-111-1/+12
| | | | | | | | | | | | | 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
* Bug 552370: unsigned not scanned properlyJürg Billeter2008-10-111-4/+14
| | | | | | | | | | | | | | 2008-10-11 Jürg Billeter <j@bitron.ch> Bug 552370: unsigned not scanned properly * giscanner/scannerparser.y: combine basic types such as unsigned int and long long when scanning * tests/scanner/foo-expected.gir: * tests/scanner/foo.c: (foo_test_unsigned): * tests/scanner/foo.h: test that svn path=/trunk/; revision=666
* Bug 552376: scanner generates wrong names for enum members when there's noLucas Rocha2008-10-111-0/+1
| | | | | | | | | | | | | | | | 2008-10-11 Lucas Rocha <lucasr@gnome.org> Bug 552376: scanner generates wrong names for enum members when there's no defined gtype. * giscanner/utils.py (strip_common_prefix): Always strip common prefix exactly up to the last "_", and not beyond. * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point here is that the first character after the last '_' should should be the same as the character in the same position on the type name. * tests/scanner/foo-expected.gir: test that svn path=/trunk/; revision=664
* Extend coverage of boxed struct/union test casesColin Walters2008-10-031-0/+78
| | | | svn path=/trunk/; revision=656
* Merge branch 'bug551744-boxed-ctors'Colin Walters2008-10-031-5/+5
| | | | svn path=/trunk/; revision=654
* Merge; delete object param for varargs tooColin Walters2008-10-021-3/+0
| | | | svn path=/trunk/; revision=648
* Merge branch 'bug552961-methods/wip'Colin Walters2008-10-021-27/+0
| | | | svn path=/trunk/; revision=647
* Merge branch 'bug552393-varargs'Colin Walters2008-10-021-0/+17
| | | | svn path=/trunk/; revision=643
* Bug 554632: Create type tag for GTypeColin Walters2008-10-021-1/+1
| | | | svn path=/trunk/; revision=641
* Bug 554521: scanner generates wrong names for enum members withDan Winship2008-10-021-0/+5
| | | | | | | | | | | | | full type name prefix * giscanner/utils.py (strip_common_prefix): Fix this to strip the right amount when the entire "first" string is a prefix of "second" * tests/scanner/foo.h (FooEnumFullname): * tests/scanner/foo-expected.gir: test that svn path=/trunk/; revision=640
* Write out list and map types, parse 'array' annotationColin Walters2008-09-291-1/+1
| | | | svn path=/trunk/; revision=634
* Remove non-repository types from GIRColin Walters2008-09-251-3/+3
| | | | | | | | | | * giscanner/ast.py: The canonical name is 'utf8', not 'string'. * giscanner/glibast.py: A few more glib type mappings. * girepository/girparser.c: We only parse repository types. * tests/*.gir: Update. svn path=/trunk/; revision=628
* Merge branch 'bug552566-timet/wip'Colin Walters2008-09-231-0/+13
| | | | svn path=/trunk/; revision=624
* Bug 552390: Handle capitialization like "DBus" more robustlyColin Walters2008-09-201-0/+15
| | | | | | | | The to_underscores function was designed for use against prefixed names; we need a separate function which will convert names like DBusFoo into dbus_foo, not d_bus_foo. svn path=/trunk/; revision=621
* Write out and parse full GObject property information (readable, writable, etc)Colin Walters2008-09-081-1/+1
| | | | | | | | | | * girepository/girparser.c: Default to "readable" for properties. * giscanner/ast.py: Add readable, writable etc. * giscanner/girwriter.py: Writ them. * giscanner/glibtransformer.py: Inspect them. * tests/*: Update. svn path=/trunk/; revision=587
* Allow both union and struct to be boxed or notColin Walters2008-09-061-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | * girepository/girnode.c: Allow gtype_name and gtype_init in struct and union. * girepository/girparser.c: Parse glib: boxed bits for both structure and union. * girepository/gtypelib.c: Don't barf if structure is boxed. * giscanner/girparser.py: Parse new XML format. * giscanner/girwriter.py: Write out new XML format. * giscanner/glibast.py: Define new classes which are both Boxed and Struct/Union, as well as an "Other" for everything else. * giscanner/glibtransformer.py: Handle boxed types specially; we try to merge them with a struct/union if one exists, otherwise fall back to generic boxed. * tests/*: Update. * tools/generate.c: Write out new format. svn path=/trunk/; revision=575
* Follow aliases when resolving constructor return typesColin Walters2008-08-311-0/+14
| | | | | | | | | * giscanner/glibtransformer.py: Follow aliases to ensure we don't get a constructor returning a basic type. * giscanner/transformer.py: Add function to follow aliases. * tests/ Update. svn path=/trunk/; revision=556
* Look for libtool library in current directoryColin Walters2008-08-311-1/+1
| | | | | | | | * giscanner/glibtransformer.py: Look for libtool library in current directory * tests/scanner - Update. svn path=/trunk/; revision=547
* Avoid having functions/ctors duplicated in global scopeColin Walters2008-08-291-64/+0
| | | | | | | | | | * giscanner/glibtransformer.py: Add some informative logging messages in corner cases. Be sure we use the most recent node set instead of a cache when generating result set. * tests/: Remove duplicated bits in expected girs svn path=/trunk/; revision=523
* make the tests pass againJohan Dahlin2008-08-261-0/+64
| | | | svn path=/trunk/; revision=495
* Add interfaces property to class. Write out implemented interfaces.Colin Walters2008-08-251-0/+22
| | | | | | | | | | | | | | | 2008-08-25 Colin Walters <walters@verbum.org> * giscanner/ast.py: Add interfaces property to class. * giscanner/girwriter.py: Write out implemented interfaces. * giscanner/glibtransformer.py: Introspect implemented interfaces. * tests/scanner/*: Make FooObject implement FooInterface. svn path=/trunk/; revision=491
* Ignore <include>. Parse them. Generate them. Process <include>Colin Walters2008-08-231-0/+3
| | | | | | | | | | | | | | | | | 2008-08-22 Colin Walters <walters@verbum.org> * girepository/girparser.c: Ignore <include>. * giscanner/girparser.py: Parse them. * giscanner/girwriter.py: Generate them. * giscanner/transformer.py: Process <include> recursively. Don't require full path for includes, look in {$XDG_DATA_DIRS}/gir. * tools/g-ir-scanner: Pass through includes. * Makefile.am: Remove extra --include args for scanner. * *-expected.gir: Add expected includes. svn path=/trunk/; revision=467
* Pass through recursive types. Avoid overwriting errors. Always write theColin Walters2008-08-221-0/+1
| | | | | | | | | | | | | | | | | | | | 2008-08-22 Colin Walters <walters@verbum.org> * girepository/girparser.c: Pass through recursive types. Avoid overwriting errors. * giscanner/xmlwriter.py: Always write the XML header. * tests/*.gir: Adjust. * tests/scanner/Makefile.am: Build typelibs, and generate XML from those. Once we have a good diff mechanism... * tests/scanner/*-expected.gir: Add XML header. * tools/g-ir-scanner: Accept --typelib-xml option. * tools/generate.c: Better defaults for transfer. svn path=/trunk/; revision=457
* Adjust for added shared-library. Make pylint happy.Colin Walters2008-08-211-1/+1
| | | | | | | | | | 2008-08-20 Colin Walters <walters@verbum.org> * tests/scanner/*-expected.gir: Adjust for added shared-library. * giscanner/giwriter.py: Make pylint happy. svn path=/trunk/; revision=428
* Fix expected list type.Colin Walters2008-08-201-1/+1
| | | | | | | | 2008-08-20 Colin Walters <walters@verbum.org> * tests/scanner/foo-expected.gir: Fix expected list type. svn path=/trunk/; revision=419
* Regnerate Do not delete Class structures, we need them in gdk/gtk.Johan Dahlin2008-08-201-0/+28
| | | | | | | | | | | | | | | | | | 2008-08-20 Johan Dahlin <johan@gnome.org> * gir/gio-2.0-good.gir: * gir/glib-2.0-good.gir: * gir/gobject-2.0-good.gir: Regnerate * giscanner/glibtransformer.py: Do not delete Class structures, we need them in gdk/gtk. * tests/scanner/drawable-expected.gir: * tests/scanner/foo-expected.gir: * tests/scanner/utility-expected.gir: Update tests. svn path=/trunk/; revision=414
* Split out annotation tests out of fooJohan Dahlin2008-08-201-151/+0
| | | | | | | | | | | | | | | | | | | | | | | 2008-08-20 Johan Dahlin <johan@gnome.org> * tests/scanner/Makefile.am: * tests/scanner/annotation-expected.gir: * tests/scanner/annotation.c (annotation_object_class_init), (annotation_object_init), (annotation_object_method), (annotation_object_in), (annotation_object_out), (annotation_object_inout), (annotation_object_inout2), (annotation_object_inout3), (annotation_object_calleeowns), (annotation_object_calleesowns), (annotation_object_get_strings), (annotation_object_with_voidp), (annotation_object_get_objects), (annotation_object_create_object), (annotation_object_allow_none): * tests/scanner/annotation.h: * tests/scanner/foo-expected.gir: * tests/scanner/foo.c: * tests/scanner/foo.h: Split out annotation tests out of foo svn path=/trunk/; revision=410
* Foo->foo, foo-object.h -> foo.hJohan Dahlin2008-08-201-0/+435
2008-08-20 Johan Dahlin <johan@gnome.org> * tests/scanner/Foo-expected.gir: * tests/scanner/Makefile.am: * tests/scanner/foo-expected.gir: * tests/scanner/foo-object.h: * tests/scanner/foo.c: Foo->foo, foo-object.h -> foo.h svn path=/trunk/; revision=409