summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Allow gtk-doc comments with trailing whitespace after :annotationJohan Dahlin2009-01-121-2/+5
| | | | svn path=/branches/annotation/; revision=1016
* self.x = not not x -> self.x = xJohan Dahlin2009-01-111-1/+1
| | | | svn path=/branches/annotation/; revision=1015
* Do not override the previously set allow_none optionJohan Dahlin2009-01-111-1/+2
| | | | svn path=/branches/annotation/; revision=1014
* Add compatibility transfer for gpointer returnsColin Walters2009-01-111-1/+2
| | | | | | This matches the transfer defaults in the old system. svn path=/branches/annotation/; revision=1013
* Add const retval/param pointer testsJohan Dahlin2009-01-113-0/+69
| | | | svn path=/branches/annotation/; revision=1012
* Transfer default fixupsColin Walters2009-01-111-5/+7
| | | | | | | | | | | | Default to "NONE" for all IN parameters; this more closely matches how we did transfer in the old system. However - we need to make an exception for strings (utf8). For some reason those were FULL, even though that has no meaning. Also default to NONE for void to match the old system. svn path=/branches/annotation/; revision=1011
* Apply callback scope transfer before attempting to guess it, to a scenario ↵Johan Dahlin2009-01-111-1/+1
| | | | | | where we guess/annotation something and then forcefully overrides it svn path=/branches/annotation/; revision=1010
* Force transfer of scoped callback parameters to noneJohan Dahlin2009-01-111-0/+1
| | | | svn path=/branches/annotation/; revision=1009
* commit annotation parse patchJohan Dahlin2009-01-1118-684/+678
| | | | svn path=/branches/annotation/; revision=1008
* 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
* Fix inconsistencies with PEP8Jürg Billeter2009-01-038-18/+12
| | | | | | | | | | | | | | | | 2009-01-03 Jürg Billeter <j@bitron.ch> * giscanner/ast.py: * giscanner/dumper.py: * giscanner/girparser.py: * giscanner/glibtransformer.py: * giscanner/sourcescanner.py: * giscanner/transformer.py: * giscanner/xmlwriter.py: Fix inconsistencies with PEP8 svn path=/trunk/; revision=997
* Annotate transfer, direction and allow none forJohan Dahlin2008-12-212-1/+16
| | | | | | | | | | | | 2008-12-21 Johan Dahlin <jdahlin@async.com.br> * gir/gio-2.0.c: Annotate transfer, direction and allow none for g_file_load_contents_finish and g_file_load_partial_contents_finish parameters. svn path=/trunk/; revision=996
* Annotate transfer, direction and allow none for g_file_load_contentsJohan Dahlin2008-12-212-0/+9
| | | | | | | | | | | 2008-12-21 Johan Dahlin <jdahlin@async.com.br> * gir/gio-2.0.c: Annotate transfer, direction and allow none for g_file_load_contents parameters. svn path=/trunk/; revision=995
* Disable array auto-detection for out-annotated parametersOwen Taylor2008-12-166-1/+54
| | | | | | | | | | | | | | | | If we have a parameter annotated as (out), then having a ctype of 'char **' (or similar) doesn't necessarily indicate an array. * giscanner/transformer.py: Skip array-detection logic for (out)-annotated parameters. * tests/scanner/annotation.h tests/scanner/annotation.c tests/scanner/annotation-1.0-expected.gir tests/scanner/annotation-1.0-expected.tgir: Add a test for an (out) string parameter. http://bugzilla.gnome.org/show_bug.cgi?id=563934 svn path=/trunk/; revision=994
* Pass in --tag=CC to libtool to avoid making libtool confused when CC isJohan Dahlin2008-12-122-0/+7
| | | | | | | | | | | 2008-12-12 Johan Dahlin <jdahlin@async.com.br> * giscanner/dumper.py (DumpCompiler._link): Pass in --tag=CC to libtool to avoid making libtool confused when CC is different from gcc on some systems. svn path=/trunk/; revision=993
* Don't install barapp.Colin Walters2008-12-111-1/+1
| | | | svn path=/trunk/; revision=992
* Bug 563998 – Cache the GIBaseInfo for GTypesJohan Bilien2008-12-102-0/+25
| | | | | | | | | | | | 2008-12-10 Johan Bilien <jobi@via.ecp.fr> Bug 563998 – Cache the GIBaseInfo for GTypes * girepository/girepository.c (g_irepository_find_by_gtype): add a cache of GType -> GIBaseInfo. svn path=/trunk/; revision=991
* Bug 562545 – Add function taking / returning GValueJohan Bilien2008-12-093-0/+42
| | | | | | | | | | | | 2008-12-09 Johan Bilien <jobi@via.ecp.fr> Bug 562545 – Add function taking / returning GValue * tests/everything/everything.[ch]: add a test of function taking and returning "const GValue *" svn path=/trunk/; revision=990
* Use shutil.move instead of os.rename, since it will automatically fallJohan Dahlin2008-12-092-3/+12
| | | | | | | | | | | | | 2008-12-09 Johan Dahlin <johan@async.com.br> * giscanner/cachestore.py (CacheStore.store): Use shutil.move instead of os.rename, since it will automatically fall back to copying+remove if the src directory is on a different partition from the dst directory. svn path=/trunk/; revision=989
* Bug 563742 – introspection should record the introduced version ofTristan Van Berkom2008-12-099-5/+91
| | | | | | | | | | | | | | | | | | | | | 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com> Bug 563742 – introspection should record the introduced version of symbols marked with the "Since:" tag reviewed by: Johan * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/scannerlexer.l: * giscanner/transformer.py: * tests/scanner/annotation-1.0-expected.gir: * tests/scanner/annotation-1.0-expected.tgir: * tests/scanner/annotation.c (annotation_versioned): * tests/scanner/annotation.h: svn path=/trunk/; revision=988
* Don't require HOME to be set and if it set, don't require the directory toJohan Dahlin2008-12-082-1/+13
| | | | | | | | | | | 2008-12-08 Johan Dahlin <johan@async.com.br> * giscanner/cachestore.py (_get_cachedir): Don't require HOME to be set and if it set, don't require the directory to exist. svn path=/trunk/; revision=987
* yay for scripts checking number of newlinesJohan Dahlin2008-12-081-0/+1
| | | | svn path=/trunk/; revision=986
* Dump the cache file to a temporary file and rename it the expectedJohan Dahlin2008-12-082-7/+27
| | | | | | | | | | | | | 2008-12-08 Johan Dahlin <johan@async.com.br> * giscanner/cachestore.py (CacheStore.store): Dump the cache file to a temporary file and rename it the expected filename only when it's completely written. This should make the cache more roboust when run in parallel, and hopefully avoid triggering bugs in Python. svn path=/trunk/; revision=985
* Annotate g_file_info_get_icon, g_file_info_get_attribute_object.Colin Walters2008-12-071-0/+12
| | | | svn path=/trunk/; revision=984
* raise YY_BUF_SIZE to 65536 up from the default 16384.Christophe Fergeau2008-12-032-0/+12
| | | | | | | | With the default YY_BUF_SIZE value, the lexer was aborting with a cryptic error message on source files containing really long comment blocks. Fixes bug 562971 – g-ir-scanner failure on libgpod headers svn path=/trunk/; revision=983
* ChangeLogColin Walters2008-12-011-0/+5
| | | | svn path=/trunk/; revision=982
* Fix memory leak; unref type info we created, not field infoColin Walters2008-12-011-2/+2
| | | | | | | We expect callers to own the FieldInfo, we should not unref it. However we should unref the type info we accessed. svn path=/trunk/; revision=981
* Remove tabs, fixes make checkJohan Dahlin2008-12-011-1/+1
| | | | svn path=/trunk/; revision=980
* Bug 562289 – Race when removing invalid cacheJohan Dahlin2008-11-302-1/+11
| | | | | | | | | | | | 2008-11-30 Johan Dahlin <jdahlin@async.com.br> Bug 562289 – Race when removing invalid cache * giscanner/cachestore.py: ENOENT is mapped to a OSError, not IOError. svn path=/trunk/; revision=979
* Add return value transfer annotation for g_markup_escape_text.Johan Dahlin2008-11-272-0/+10
| | | | | | | | | | 2008-11-27 Johan Dahlin <jdahlin@async.com.br> * gir/glib-2.0.c: Add return value transfer annotation for g_markup_escape_text. svn path=/trunk/; revision=978
* Add --libtool option which we expect Automake-using people to passColin Walters2008-11-268-5/+40
| | | | svn path=/trunk/; revision=977
* Remove hand-rolled generation of .tgirColin Walters2008-11-262-5/+7
| | | | | | | | It's easier to just use a Makefile rule and dependencies. This corresponds with a change made to gir-repository to fix srcdir != builddir issues. svn path=/trunk/; revision=976
* Post release version bumpJohan Dahlin2008-11-252-1/+6
| | | | | | | | | | 2008-11-25 Johan Dahlin <jdahlin@async.com.br> * configure.ac: Post release version bump svn path=/trunk/; revision=975
* Release 0.6.1GOBJECT_INTROSPECTION_0_6_1Johan Dahlin2008-11-252-0/+49
| | | | | | | | | | 2008-11-25 Johan Dahlin <jdahlin@async.com.br> * NEWS: Release 0.6.1 svn path=/trunk/; revision=973
* Bug 559705 – Missing association between static methods and classesColin Walters2008-11-2514-28/+92
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-25 Colin Walters <walters@verbum.org> Bug 559705 – Missing association between static methods and classes * docs/typelib-format.txt: * girepository/ginfo.c (g_function_info_get_flags): * girepository/girmodule.c (g_ir_module_build_typelib): * girepository/girnode.c (g_ir_node_get_size), (g_ir_node_build_typelib): * girepository/girparser.c (start_function): * girepository/gtypelib.c (g_typelib_check_sanity), (validate_header), (validate_function_blob): * girepository/gtypelib.h: * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibtransformer.py: * tests/scanner/foo-1.0-expected.gir: * tests/scanner/foo-1.0-expected.tgir: * tests/scanner/foo.h: svn path=/trunk/; revision=972
* Remove debug printColin Walters2008-11-251-1/+0
| | | | svn path=/trunk/; revision=971
* Bug 561137 - support multiple repositoriesColin Walters2008-11-254-22/+93
| | | | | | | | | | This change makes us stop calling g_irepository_get_default inside ginfo.c, which won't work for non-default repositories. Change GIBaseInfo to not only keep track of its source repository, we hold a reference. This makes memmgt much clearer. svn path=/trunk/; revision=970
* Revert earlier libtool change, there's no needJohan Dahlin2008-11-253-24/+2
| | | | | | | to execute through libtool since libtool would have created a wrapper if it was found at link time svn path=/trunk/; revision=969
* Define socklen_t as an alias for int32.Johan Dahlin2008-11-252-4/+8
| | | | | | | | | 2008-11-25 Johan Dahlin <jdahlin@async.com.br> * giscanner/ast.py: Define socklen_t as an alias for int32. svn path=/trunk/; revision=968
* Bump required automake version to 1.9; 1.7 failsColin Walters2008-11-251-1/+1
| | | | | | GLib currently depends on 1.9 or later, so this change seems safe. svn path=/trunk/; revision=967
* fix link failure when introspecting girepository itselfTommi Komulainen2008-11-251-11/+15
| | | | | | | | * giscanner/dumper.py (_link): fix link failure when introspecting girepository itself by ordering the command line options better svn path=/trunk/; revision=966
* prefer uninstalled libraries to installed onesTommi Komulainen2008-11-251-7/+13
| | | | | | | | * giscanner/dumper.py (_link): prefer uninstalled libraries to installed ones so that we don't introspect an older, installed version svn path=/trunk/; revision=965
* Execute the dumper program through libtool if it's installed, so we avoidJohan Dahlin2008-11-253-6/+32
| | | | | | | | | | | | 2008-11-25 Johan Dahlin <jdahlin@async.com.br> * giscanner/glibtransformer.py: * tools/g-ir-scanner: Execute the dumper program through libtool if it's installed, so we avoid loading the installed version. svn path=/trunk/; revision=964
* Remove a warning, be less verbose on error on fundamental types.Johan Dahlin2008-11-242-2/+11
| | | | | | | | | | 2008-11-24 Johan Dahlin <jdahlin@async.com.br> * girepository/gdump.c (dump_type): Remove a warning, be less verbose on error on fundamental types. svn path=/trunk/; revision=963