summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 0.6.2GOBJECT_INTROSPECTION_0_6_2Johan Dahlin2009-01-222-0/+38
| | | | svn path=/trunk/; revision=1061
* Fix distcheckJohan Dahlin2009-01-221-0/+5
| | | | svn path=/trunk/; revision=1059
* Bug 562622 – Errordomains missingJohan Dahlin2009-01-229-5/+102
| | | | | | | | | | | | | | | | | | 2009-01-21 Johan Dahlin <jdahlin@async.com.br> Bug 562622 – Errordomains missing * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * tests/scanner/Makefile.am: * tests/scanner/foo-1.0-expected.gir: * tests/scanner/foo-1.0-expected.tgir: * tests/scanner/foo.c (foo_error_get_type), (foo_error_quark): * tests/scanner/foo.h: svn path=/trunk/; revision=1057
* Increase the buffer size to 1M, so gtkalias.h can be parsed.Johan Dahlin2009-01-202-1/+7
| | | | | | | | | | | 2009-01-20 Johan Dahlin <jdahlin@async.com.br> * giscanner/scannerlexer.l: Increase the buffer size to 1M, so gtkalias.h can be parsed. svn path=/trunk/; revision=1056
* When trying to map functions to structs, do not require a public structureJohan Dahlin2009-01-202-0/+9
| | | | | | | | | | | | 2009-01-20 Johan Dahlin <jdahlin@async.com.br> * giscanner/glibtransformer.py: When trying to map functions to structs, do not require a public structure to exist, should fix Gst gir generation in. svn path=/trunk/; revision=1055
* Bug 562615 – Struct methods missingJohan Dahlin2009-01-208-88/+99
| | | | | | | | | | | | | | | | | 2009-01-20 Johan Dahlin <jdahlin@async.com.br> Bug 562615 – Struct methods missing * giscanner/annotationparser.py: * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * tests/scanner/foo-1.0-expected.gir: * tests/scanner/foo-1.0-expected.tgir: svn path=/trunk/; revision=1054
* Ugh, recurd->recordJohan Dahlin2009-01-201-11/+11
| | | | svn path=/trunk/; revision=1053
* Struct -> RecordJohan Dahlin2009-01-201-24/+24
| | | | svn path=/trunk/; revision=1052
* add back GLvoid, which got lost during the gir-repository ->Dan Winship2009-01-162-0/+6
| | | | | | | * gir/GL-1.0.gir: add back GLvoid, which got lost during the gir-repository -> gobject-introspection migration svn path=/trunk/; revision=1051
* add FT_Int32 add XftFont Report errors when an invalid type is encounteredJohan Dahlin2009-01-165-2/+19
| | | | | | | | | | | | | | | | 2009-01-15 Johan Dahlin <jdahlin@async.com.br> * gir/freetype2-2.0.gir: add FT_Int32 * gir/xft-2.0.gir: add XftFont * girepository/gdump.c (g_irepository_dump): Report errors when an invalid type is encountered * giscanner/glibtransformer.py: Make the error message a bit nicer. Part of preparating for gir generating inside pango. svn path=/trunk/; revision=1050
* Fix pep8 complaintsJohan Dahlin2009-01-151-1/+2
| | | | svn path=/trunk/; revision=1049
* Change libgirepository to libgirepository-1.0 here tooJohan Dahlin2009-01-151-1/+1
| | | | svn path=/trunk/; revision=1048
* Move over the hand-written girs from gir-repository so upstream librariesJohan Dahlin2009-01-1510-15/+224
| | | | | | | | | | | | | | | | | | | | | 2009-01-15 Johan Dahlin <jdahlin@async.com.br> * gir/GL-1.0.gir: * gir/Makefile.am: * gir/cairo-1.0.gir: * gir/fontconfig-2.0.gir: * gir/freetype2-2.0.gir: * gir/libxml2-2.0.gir: * gir/xfixes-4.0.gir: * gir/xft-2.0.gir: * gir/xlib-2.0.gir: Move over the hand-written girs from gir-repository so upstream libraries depending on these can avoid a gir-repository dependency. svn path=/trunk/; revision=1047
* Bug 567813 – Everything should be versionedJohan Dahlin2009-01-1514-35/+53
| | | | | | | | | | | | | | | | | | | | | | | 2009-01-15 Johan Dahlin <jdahlin@async.com.br> Bug 567813 – Everything should be versioned * gir/Makefile.am: * girepository/Makefile.am: * girepository/girepository.c (init_globals): * girepository/girparser.c (locate_gir): * giscanner/dumper.py: * giscanner/transformer.py: * gobject-introspection-1.0.pc.in: * tests/everything/Makefile.am: * tests/invoke/Makefile.am: * tests/offsets/Makefile.am: * tests/repository/Makefile.am: * tests/scanner/Makefile.am: * tools/Makefile.am: svn path=/trunk/; revision=1046
* Update annotation syntax, remove trailing 8Johan Dahlin2009-01-151-1/+1
| | | | svn path=/trunk/; revision=1045
* Update annotation syntaxJohan Dahlin2009-01-151-3/+5
| | | | svn path=/trunk/; revision=1044
* Remove drawable-injectedJohan Dahlin2009-01-144-182/+0
| | | | svn path=/trunk/; revision=1043
* indentJohan Dahlin2009-01-141-3/+3
| | | | svn path=/trunk/; revision=1042
* And the .gir filesJohan Dahlin2009-01-142-0/+40
| | | | svn path=/trunk/; revision=1041
* test_strv_out transfer should actually be container, I am silly.Robert Carr2009-01-141-1/+1
| | | | svn path=/trunk/; revision=1040
* Add missing trailing :Johan Dahlin2009-01-141-1/+1
| | | | svn path=/trunk/; revision=1039
* Add a few more test-casesJohan Dahlin2009-01-142-2/+25
| | | | svn path=/trunk/; revision=1038
* Update girs containing do not editing warningJohan Dahlin2009-01-147-0/+21
| | | | svn path=/trunk/; revision=1037
* Rewrap to fit in 79 columnsJohan Dahlin2009-01-141-2/+4
| | | | svn path=/trunk/; revision=1036
* test_strv_out should be (transfer full).Robert Carr2009-01-141-1/+1
| | | | svn path=/trunk/; revision=1035
* Add generated file warning commentColin Walters2009-01-142-0/+5
| | | | | | We don't want people manually editing .gir files. svn path=/trunk/; revision=1034
* Clean up some abstraction breakage to reduce code duplicationJohan Dahlin2009-01-131-10/+7
| | | | svn path=/trunk/; revision=1033
* Bug 555036 – put gtk-doc in GIRJohan Dahlin2009-01-138-76/+282
| | | | | | | | | | | | | | | | | 2009-01-13 Johan Dahlin <jdahlin@async.com.br> Bug 555036 – put gtk-doc in GIR * giscanner/annotationparser.py: * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibast.py: * tests/scanner/annotation-1.0-expected.gir: * tests/scanner/annotation.h: * tests/scanner/foo-1.0-expected.gir: svn path=/trunk/; revision=1032
* Catch AttributeError which seems to be occasionally raised for Record.Johan Dahlin2009-01-132-1/+4
| | | | | | | | | | 2009-01-13 Johan Dahlin <jdahlin@async.com.br> * giscanner/cachestore.py (CacheStore.load): Catch AttributeError which seems to be occasionally raised for Record. svn path=/trunk/; revision=1031
* Add a list-signal test for using a GLib.List signal parameterJohan Dahlin2009-01-133-0/+41
| | | | svn path=/trunk/; revision=1030
* Fix a bug where \n was not present in a commentJohan Dahlin2009-01-132-2/+17
| | | | | | | | | | 2009-01-13 Johan Dahlin <jdahlin@async.com.br> * giscanner/annotationparser.py: Fix a bug where \n was not present in a comment svn path=/trunk/; revision=1029
* Organize annotation options/tags by using constants,Johan Dahlin2009-01-131-25/+48
| | | | | | | makes it easier to find which options we're already implemented. svn path=/trunk/; revision=1028
* Bug 562467 – Property annotationJohan Dahlin2009-01-135-6/+88
| | | | | | | | | | | | | | | | | 2009-01-12 Johan Dahlin <jdahlin@async.com.br> Bug 562467 – Property annotation * giscanner/annotationparser.py: * tests/scanner/annotation-1.0-expected.gir: * tests/scanner/annotation-1.0-expected.tgir: * tests/scanner/annotation.c (annotation_object_set_property), (annotation_object_get_property), (annotation_object_class_init): Annotations are parsed for properties. svn path=/trunk/; revision=1027
* Bug 546739 – Introspection should know precise signal parameter typesJohan Dahlin2009-01-125-13/+103
| | | | | | | | | | | | | | | | 2009-01-12 Johan Dahlin <jdahlin@async.com.br> Bug 546739 – Introspection should know precise signal parameter types * giscanner/annotationparser.py: * tests/scanner/annotation-1.0-expected.gir: * tests/scanner/annotation-1.0-expected.tgir: * tests/scanner/annotation.c (annotation_object_class_init): Annotations are parsed for signals, the (type) annotation is introduced. svn path=/trunk/; revision=1026
* Bug 563591 – Flags not recognized when there is no introspection dataJohan Dahlin2009-01-1214-26/+133
| | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-12 Johan Dahlin <jdahlin@async.com.br> Bug 563591 – Flags not recognized when there is no introspection data * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/giscannermodule.c (type_get_is_bitfield): * giscanner/glibast.py: * giscanner/glibtransformer.py: * giscanner/scannerparser.y: * giscanner/sourcescanner.c (gi_source_type_copy): * giscanner/sourcescanner.h: * giscanner/sourcescanner.py: * giscanner/transformer.py: * tests/scanner/foo-1.0-expected.gir: * tests/scanner/foo-1.0-expected.tgir: * tests/scanner/foo.h: Large parts of this patch was done by Jürg Billeter. svn path=/trunk/; revision=1025
* Bug 562914: Order GI_TYPELIB_PATH before anything elseColin Walters2009-01-121-4/+29
| | | | | | | We want the environment variable to override so that people can easily write scripts that run their programs uninstalled. svn path=/trunk/; revision=1024
* Bug 567212: Exit after dumpingColin Walters2009-01-121-1/+2
| | | | | | | | The intended use of g_irepository_get_option_group is that your application more transparently supports --introspection-dump; we should exit so that your app doesn't continue trying to launch. svn path=/trunk/; revision=1023
* Bug 567087 - generic marshallerColin Walters2009-01-124-3/+390
| | | | | | | | | | | Since GObject-Introspection depends on both ffi and GObject, it's a convenient home for jdahlin's generic signal marshaller until such time as GObject can directly depend on ffi. When it gets added to GObject, we can simply point our marshaller at that one. svn path=/trunk/; revision=1022
* Bug 563386 – scanner ignores "const" on boxed return valuesHavoc Pennington2009-01-123-4/+26
| | | | | | | | | | | | | | | 2009-01-12 Havoc Pennington <hp@pobox.com> Bug 563386 – scanner ignores "const" on boxed return values * tests/everything/everything.c (test_simple_boxed_a_const_return): * tests/everything/everything.h: This adds just the tests specified in the bug above, the fix itself was included in Bug 563794 svn path=/trunk/; revision=1021
* Bug 566404 – Annotations for GLibAndreas Rottmann2009-01-122-1/+19
| | | | | | | | | | | | 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at> Bug 566404 – Annotations for GLib * gir/glib-2.0.c: Added allow-none annotations for g_thread_init() and g_main_loop_new(). svn path=/trunk/; revision=1020
* Bug 566419 – Element type of arrays not properly handled in all casesJohan Dahlin2009-01-126-8/+186
| | | | | | | | | | | | | | | | | | 2009-01-12 Johan Dahlin <jdahlin@async.com.br> Bug 566419 – Element type of arrays not properly handled in all cases * giscanner/annotationparser.py: * tests/scanner/annotation-1.0-expected.gir: * tests/scanner/annotation-1.0-expected.tgir: * tests/scanner/annotation.c (annotation_object_set_data), (annotation_object_set_data2), (annotation_object_set_data3): * tests/scanner/annotation.h: Based on patch by Andreas Rottmann svn path=/trunk/; revision=1019
* Bug 566560 – giscanner.transformer.SkipErrorJohan Dahlin2009-01-122-5/+15
| | | | | | | | | | | | | | | 2009-01-12 Johan Dahlin <jdahlin@async.com.br> Bug 566560 – giscanner.transformer.SkipError * giscanner/transformer.py: Catch SkipError for all nodes, not just functions. Makes it possible to skip unsupported parameter types in callbacks. svn path=/trunk/; revision=1018
* Bug 563794 - Redo annotation parsing & applyingJohan Dahlin2009-01-1222-685/+791
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-12 Johan Dahlin <jdahlin@async.com.br> Bug 563794 - Redo annotation parsing & applying Thanks to Colin for helping out considerably in landing this. * giscanner/Makefile.am: * giscanner/ast.py: * giscanner/dumper.py: * giscanner/girparser.py: * giscanner/giscannermodule.c (pygi_source_scanner_get_comments), (calc_attrs_length), (pygi_collect_attributes), (init_giscanner): * giscanner/glibtransformer.py: * giscanner/scannerlexer.l: * giscanner/sourcescanner.c (gi_source_symbol_unref), (gi_source_scanner_new), (gi_source_scanner_free), (gi_source_scanner_get_comments): * giscanner/sourcescanner.h: * giscanner/sourcescanner.py: * giscanner/transformer.py: * giscanner/xmlwriter.py: * tests/scanner/annotation-1.0-expected.gir: * tests/scanner/annotation-1.0-expected.tgir: * tests/scanner/annotation.c: * tests/scanner/annotation.h: * tests/scanner/foo-1.0-expected.gir: * tests/scanner/foo-1.0-expected.tgir: * tests/scanner/foo.h: * tools/g-ir-scanner: This commit merges the annotation parser rewrite branch. It'll change the annotation parsing to be done completely in python code which will make it easier to do further annotation parsing easier. svn path=/trunk/; revision=1017
* Default transfer type is no longer full. Fix annotation on Robert Carr2009-01-091-1/+1
| | | | | | g_file_info_list_attributes to explicitly specify. svn path=/trunk/; revision=1004
* Add some annotations to everything test.Robert Carr2009-01-091-8/+40
| | | | svn path=/trunk/; revision=1003
* Annotate test_strv_out.Robert Carr2009-01-091-0/+5
| | | | svn path=/trunk/; revision=1002
* Annotate array return for g_file_info_list_attributes.Robert Carr2009-01-091-0/+6
| | | | svn path=/trunk/; revision=1001
* Bug 563469 – Arrays not treated correctly in struct offset calculationAndreas Rottmann2009-01-035-18/+30
| | | | | | | | | | | | | | | | | | | | | | 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at> Bug 563469 – Arrays not treated correctly in struct offset calculation * tests/scanner/foo.h (FooObject): Added field `some_int'. * tests/scanner/foo-1.0-expected.gir, * tests/scanner/foo-1.0-expected.tgir: Adapted. * giscanner/glibtransformer.py (GLibTransformer._create_gobject): carry over object fields from original (struct) node. (GLibTransformer._pair_class_struct): Don't add fields of the class struct to to the node for the class, they should go under a nested <record> element (see also Bug 551738). This is needed as otherwise offset calculation would not work, as the instance fields are mingled with the class fields without a way to distinguish them. svn path=/trunk/; revision=1000
* Disable blank line check, it works differently under Python 2.5 from 2.6Johan Dahlin2009-01-032-28/+6
| | | | | | | | | | | 2009-01-03 Johan Dahlin <jdahlin@async.com.br> * misc/pep8.py: Disable blank line check, it works differently under Python 2.5 from 2.6 and was rather annoying from the start. svn path=/trunk/; revision=999
* Bug 556489 – callback annotationsAndreas Rottmann2009-01-0322-16/+456
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-03 Andreas Rottmann <a.rottmann@gmx.at> Bug 556489 – callback annotations * giscanner/transformer.py * tools/generate.c (write_callable_info): Write out the new scope, closure and destroy attributes. * giscanner/transformer.py (Transformer._type_is_callback): New method, checking if a given type is a callback. (Transformer._augment_callback_params): New method; adds information (closure, destroy) to callback parameters. (Transformer._handle_closure, Transformer._handle_destroy): New methods, auxiliary to _augment_callback_params. (Transformer._create_function): Call _augment_callback_params(). (Transformer._create_parameter): Handle scope option. (Transformer._create_typedef_callback): New method, creates a callback, and registers it in the typedef namespace (Transformer._create_typedef): Use _create_typedef_callback() instead of the plain _create_callback(). * giscanner/ast.py (Parameter): Added callback-related fields. * giscanner/girwriter.py: Write out new Parameter fields. * girepository/girnode.h (GIrNodeParam): Added fields scope, closure and destroy. * girepository/gtypelib.h (ArgBlob): Ditto. * girepository/girparser.c (start_parameter): Handle new fields. * girepository/girmodule.c (g_ir_module_build_typelib): Adjust arg_blob_size, bump major version due to this change. * girepository/girnode.c (g_ir_node_get_full_size_internal) (g_ir_node_build_typelib) * girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size adjustments. (g_ir_node_build_typelib): Fill in new ArgBlob flags from param. * girepository/girepository.h (GIScope): New enumeration, listing the different possible scopes for callbacks. * girepository/ginfo.c (g_arg_info_get_scope) (g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for callback-related argument indices (callback scope, closure for a callback, destroy notification for a callback). * tests/scanner/: Added testcases for new features. svn path=/trunk/; revision=998