summaryrefslogtreecommitdiff
path: root/giscanner
Commit message (Collapse)AuthorAgeFilesLines
* Remove tabs, fixes make checkJohan Dahlin2008-12-011-1/+1
| | | | svn path=/trunk/; revision=980
* Bug 562289 – Race when removing invalid cacheJohan Dahlin2008-11-301-1/+4
| | | | | | | | | | | | 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 --libtool option which we expect Automake-using people to passColin Walters2008-11-261-5/+14
| | | | svn path=/trunk/; revision=977
* Bug 559705 – Missing association between static methods and classesColin Walters2008-11-253-19/+35
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Revert earlier libtool change, there's no needJohan Dahlin2008-11-251-17/+1
| | | | | | | 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-251-4/+6
| | | | | | | | | 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
* 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-251-5/+22
| | | | | | | | | | | | 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
* Add license headers, refactor into a class, avoid some duplication and doJohan Dahlin2008-11-231-70/+149
| | | | | | | | | | | 2008-11-23 Johan Dahlin <jdahlin@async.com.br> * giscanner/dumper.py: Add license headers, refactor into a class, avoid some duplication and do some extra pedantic checks. svn path=/trunk/; revision=962
* Bug 561617 – Return value array annotationsJohan Dahlin2008-11-211-2/+7
| | | | | | | | | | | | | | 2008-11-21 Johan Dahlin <jdahlin@async.com.br> Bug 561617 – Return value array annotations * giscanner/transformer.py: * tests/scanner/annotation.c (annotation_return_array): * tests/scanner/annotation.h: Add support for (array) for return value annotations as well. svn path=/trunk/; revision=957
* Catch ValueError exceptions.Johan Dahlin2008-11-191-1/+1
| | | | | | | | | | 2008-11-19 Johan Dahlin <jdahlin@async.com.br> * giscanner/cachestore.py: Catch ValueError exceptions. svn path=/trunk/; revision=950
* Catch BadPickleGet exceptions as well.Johan Dahlin2008-11-181-1/+1
| | | | | | | | | | 2008-11-18 Johan Dahlin <jdahlin@async.com.br> * giscanner/cachestore.py: Catch BadPickleGet exceptions as well. svn path=/trunk/; revision=942
* fix spelling of GHashTable. #561135Dan Winship2008-11-171-1/+1
| | | | | | | | | | | | * giscanner/glibtransformer.py (GLibTransformer.__init__): fix spelling of GHashTable. #561135 * tests/scanner/annotation.c (annotation_object_get_hash): * tests/scanner/annotation-1.0-expected.gir: * tests/scanner/annotation-1.0-expected.tgir: add a test of GHashTable annotations svn path=/trunk/; revision=940
* Bug 552568 - All the argv parameters in Gtk.gir map char*** to int8Colin Walters2008-11-172-12/+37
| | | | svn path=/trunk/; revision=939
* Parse interface prerequisitesColin Walters2008-11-171-0/+2
| | | | svn path=/trunk/; revision=934
* Bug 559706 - interface prequisitesColin Walters2008-11-173-0/+11
| | | | svn path=/trunk/; revision=932
* Bug 560241 - Out-arguments should not be marked as being pointers in all casesColin Walters2008-11-161-8/+20
| | | | svn path=/trunk/; revision=927
* Bug 560708 – Fix zero-termination defaults for arrays with length=Colin Walters2008-11-131-0/+3
| | | | svn path=/trunk/; revision=921
* Remove stray print(s)Johan Dahlin2008-11-132-3/+0
| | | | svn path=/trunk/; revision=916
* Add new files from last commitColin Walters2008-11-131-0/+115
| | | | svn path=/trunk/; revision=913
* Bug 558436 - avoid having scanner load app codeColin Walters2008-11-134-495/+164
| | | | svn path=/trunk/; revision=912
* Only resolve the libname to the basename of the path when passing in an ↵Johan Dahlin2008-11-121-1/+0
| | | | | | absolute .la filename svn path=/trunk/; revision=892
* Add a GIRepository-2.0.gir. Change the libtool lookup slightly so we canJohan Dahlin2008-11-121-4/+8
| | | | | | | | | | | | | | | | 2008-11-12 Johan Dahlin <jdahlin@async.com.br> * gir/Makefile.am: * giscanner/glibtransformer.py: * tools/g-ir-scanner: Add a GIRepository-2.0.gir. Change the libtool lookup slightly so we can just pass in --library=foo/bar/baz.la and the scanner does the right thing. Don't warn for _get_type() functions if they don't take any parameters svn path=/trunk/; revision=890
* Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.girTommi Komulainen2008-11-111-5/+8
| | | | | | | | | | | | | | | | 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi> Based on patch by Johan Bilien. * giscanner/transformer.py (_create_member, _create_parameter): Resolve types here as well. (_resolve_type_name_1): Try resolving using 'ctype' first since it's least ambiguous. Fixes struct member type resolution with similarly named types, e.g. Gdk.PangoRendererClass and Pango.RendererClass * tests/scanner/foo*: Add test. svn path=/trunk/; revision=887
* Improve warning message formattingJohan Dahlin2008-11-111-2/+2
| | | | svn path=/trunk/; revision=883
* Bug 560248 – "disguised structures"Owen Taylor2008-11-104-4/+12
| | | | | | | | | | | | | | Certain types like GIConv and GdkAtom are pointers internally but don't look like pointers when referenced. They have the form. typedef struct _X *X; Parse these as structures/records but mark them in the gir with a 'disguised' attribute so that we know that they need special handling. In the typelib treat them like any other structure. svn path=/trunk/; revision=872
* Write throws attribute for virtual functions, fixes bug 559703Jürg Billeter2008-11-092-0/+2
| | | | | | | | | | | 2008-11-09 Jürg Billeter <j@bitron.ch> * giscanner/ast.py: * giscanner/girwriter.py: Write throws attribute for virtual functions, fixes bug 559703 svn path=/trunk/; revision=871
* Set module.__loader__ as per PEP 302.Johan Dahlin2008-11-071-0/+1
| | | | | | | | | | 2008-11-07 Johan Dahlin <jdahlin@async.com.br> * giscanner/libtoolimporter.py (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302. svn path=/trunk/; revision=870
* Clear up some confusion about the second argument to find_module, it'sJohan Dahlin2008-11-071-8/+3
| | | | | | | | | | | | 2008-11-07 Johan Dahlin <jdahlin@async.com.br> * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear up some confusion about the second argument to find_module, it's actually the packages __path__ attribute which we can safely ignore for our purposes. svn path=/trunk/; revision=869
* Bug 559737 – Deal with continuations in macrosOwen Taylor2008-11-071-0/+1
| | | | | | | | | | | | | 2008-11-07 Owen Taylor <otaylor@redhat.com> Bug 559737 – Deal with continuations in macros * giscanner/giscannerlexer.l: Treat continuation lines the same as regular newlines. This makes the scanner not complain about #define foo(x) \ <stuff> inside a C file. There's no attempt however to handle parsing macro definitions split across lines. svn path=/trunk/; revision=868
* Handle broken cache entries, write only filesystems and running out ofJohan Dahlin2008-11-071-3/+29
| | | | | | | | | | | 2008-11-07 Johan Dahlin <jdahlin@async.com.br> * giscanner/cachestore.py: Handle broken cache entries, write only filesystems and running out of diskspace. svn path=/trunk/; revision=867
* Set current_filename before lexing the file so error messages are reportedOwen Taylor2008-11-071-1/+1
| | | | | | | | | | 2008-11-07 Owen Taylor <otaylor@redhat.com> * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename): Set current_filename before lexing the file so error messages are reported in the right file. svn path=/trunk/; revision=866
* Avoid static 256 char buf which we manipulate hackilyColin Walters2008-11-051-10/+16
| | | | svn path=/trunk/; revision=863
* Relicense the giscanner library under LGPLv2+. This has been approved byJohan Dahlin2008-11-0418-168/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-04 Johan Dahlin <jdahlin@async.com.br> * giscanner/__init__.py: * giscanner/ast.py: * giscanner/cachestore.py: * giscanner/cgobject.py: * giscanner/girparser.py: * giscanner/girwriter.py: * giscanner/giscannermodule.c: * giscanner/glibast.py: * giscanner/glibtransformer.py: * giscanner/libtoolimporter.py: * giscanner/minixpath.py: * giscanner/odict.py: * giscanner/sourcescanner.c: * giscanner/sourcescanner.h: * giscanner/sourcescanner.py: * giscanner/transformer.py: * giscanner/utils.py: * giscanner/xmlwriter.py: * COPYING: Relicense the giscanner library under LGPLv2+. This has been approved by all contributors. svn path=/trunk/; revision=862
* Bug 558848 giparser.py: shared library should be optionalOwen Taylor2008-11-011-2/+3
| | | | | | | | | | | | 2008-11-01 Owen Taylor <otaylor@redhat.com> Bug 558848 giparser.py: shared library should be optional When parsing a .gir, allow the shared-library attribute of <namespace/> to be missing: this corresponds to the handling in libgirepository and elsewhere. svn path=/trunk/; revision=860
* Bug 558109 – _g_typelib_init fails to find shared librariesColin Walters2008-10-311-1/+5
| | | | svn path=/trunk/; revision=852
* List in-tree libraries first in LDADD / LIBADDTommi Komulainen2008-10-311-1/+1
| | | | | | | | | | | | | 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi> * giscanner/Makefile.am: * tests/invoke/Makefile.am: * tests/repository/Makefile.am: List in-tree libraries first in LDADD / LIBADD. If installed library is listed first, the resulting binary will prefer installed version to one in .libs, possibly making 'make check' behave strangely. svn path=/trunk/; revision=849
* map 'id' (ObjC) to 'any' typeTommi Komulainen2008-10-301-0/+3
| | | | | | | | | 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi> * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop gir-repository from choking with gdk/quartz svn path=/trunk/; revision=847
* Write a C version of the xml namespace formatter. Saves 15% of the time itJohan Dahlin2008-10-302-4/+104
| | | | | | | | | | | | | 2008-10-30 Johan Dahlin <jdahlin@async.com.br> * giscanner/giscannermodule.c (calc_attrs_length), (pygi_collect_attributes): * giscanner/xmlwriter.py: Write a C version of the xml namespace formatter. Saves 15% of the time it takes to create a gtk gir. svn path=/trunk/; revision=846
* Abstract attribute formatting to a function external to the XMLWriterJohan Dahlin2008-10-301-41/+49
| | | | | | | | | | 2008-10-30 Johan Dahlin <jdahlin@async.com.br> * giscanner/xmlwriter.py: Abstract attribute formatting to a function external to the XMLWriter class. svn path=/trunk/; revision=845
* Parse __signed__ as signedJohan Dahlin2008-10-301-0/+1
| | | | svn path=/trunk/; revision=844
* Parse and discard __typeof and __attribute.Johan Dahlin2008-10-301-4/+5
| | | | | | | | | | 2008-10-30 Johan Dahlin <jdahlin@async.com.br> * giscanner/scannerlexer.l: Parse and discard __typeof and __attribute. svn path=/trunk/; revision=843
* Remove arguments from the constructor, move them to separate accessors.Johan Dahlin2008-10-304-22/+120
| | | | | | | | | | | | | | | | | | | | 2008-10-30 Johan Dahlin <jdahlin@async.com.br> * giscanner/girparser.py: Remove arguments from the constructor, move them to separate accessors. Add a new parse_tree method which takes an element tree instance. * tools/g-ir-scanner: Update callsite for this * giscanner/Makefile.am: * giscanner/cachestore.py: * giscanner/transformer.py: Cache the include parsing. Saves ~25% time when creating vte (which includes everything up to gtk+). svn path=/trunk/; revision=842
* Don't reparse includes we've already processedColin Walters2008-10-301-0/+2
| | | | svn path=/trunk/; revision=841
* Look in XDG_DATA_DIR/gir, really.Johan Dahlin2008-10-301-1/+1
| | | | svn path=/trunk/; revision=840
* Avoid parsing parameters, types etc when parsing includes. Should speed upJohan Dahlin2008-10-302-24/+46
| | | | | | | | | | | | 2008-10-30 Johan Dahlin <jdahlin@async.com.br> * giscanner/girparser.py: * giscanner/transformer.py: Avoid parsing parameters, types etc when parsing includes. Should speed up include parsing a bit. svn path=/trunk/; revision=838
* Avoid big if/else and use a dispatch table like approach.Johan Dahlin2008-10-301-51/+72
| | | | | | | | | | | 2008-10-30 Johan Dahlin <jdahlin@async.com.br> * giscanner/girparser.py: Avoid big if/else and use a dispatch table like approach. svn path=/trunk/; revision=837
* Clean up include parsing and registration.Johan Dahlin2008-10-301-19/+22
| | | | | | | | | | 2008-10-30 Johan Dahlin <jdahlin@async.com.br> * giscanner/transformer.py: Clean up include parsing and registration. svn path=/trunk/; revision=836
* Clean up importsJohan Dahlin2008-10-301-10/+10
| | | | | | | | | | 2008-10-30 Johan Dahlin <jdahlin@async.com.br> * giscanner/transformer.py: Clean up imports svn path=/trunk/; revision=834