summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* more bitswip/structure-parsingColin Walters2010-09-081-46/+44
|
* scanner: Add notion of "private" structures, fix parsingColin Walters2010-09-083-36/+61
|
* scanner: Unify parsing of compoundsColin Walters2010-09-081-38/+23
| | | | Avoids duplicate code.
* scanner: Kill glibastColin Walters2010-09-0810-416/+357
| | | | | | | | | | | | It was a stupid abstraction split, we only support GObject. * Clean up how we handle c:type - we only set it if we've actually seen a corresponding structure. * Add a warning if we don't see the structure typedef for an interface, since that's pretty bogus. (And fix regress.h to have one) * Rename the "type_name" attribute internally to "gtype_name" for clarity.
* scanner: Don't mark as constructors things that are more obviously methodsColin Walters2010-09-084-3/+82
| | | | | If the first parameter matches the origin, don't scan as a constructor. Happened in practice with meta_screen_append_new_workspace from mutter.
* scanner: Fix object hierarchy traversal in constructor scanningColin Walters2010-09-081-2/+2
| | | | We weren't properly hitting GObject.
* scanner: Don't attempt to pair methods/constructors with foreign namespacesColin Walters2010-09-083-0/+19
| | | | See test case, hit in practice in gnome-shell.
* Add missing annotationsFlorian Müllner2010-09-081-0/+17
| | | | Add some more (transfer full) annotations left out in commit cd0de25.
* Handle casing better for constantsOwen W. Taylor2010-09-076-15/+32
| | | | | | | | | | | | | | | | | Instead of handling constants by lower-casing them, stripping the lower-case prefix and upper-casing them again, leave them in the original case and check against upper-cased versions of namespace.symbol_prefixes. Wwe detect what version to test against by looking at the first character of the identifier, so we assume that --symbol-prefix options are always in lowercase. If that needs to be relaxed, then we'll have to check all symbols against both sets of prefixes. Add tests for constants to Regress.h and fix tests/warn/unresolved-type.h for a warning message that improved with this change. https://bugzilla.gnome.org/show_bug.cgi?id=629007
* Add missing annotations to GLib and GioOwen W. Taylor2010-09-072-0/+109
| | | | | Add (transfer full) and (array zero-terminated=1) to various GLib and Gio functions.
* scanner: Automatically skip callables which contain a skipped nodeColin Walters2010-09-073-0/+65
| | | | | For legacy library author convenience, propagate (skip) on e.g. structures to all callables which use them.
* [girepository] Add a missing includeJohan Dahlin2010-09-071-0/+1
|
* tests: Update expected gir for previous commitsColin Walters2010-09-072-32/+40
|
* Go back to previously handling of static methods on non-GObjectsOwen W. Taylor2010-09-072-2/+10
| | | | | | | | | | | | | Previous to the scanner rewrite, static methods were only handled for GObject subclasses. Go back to that for full compatibility with existing bindings and code. See bug 572408 for the topic of changing the API. The code for writing out static methods for records and boxed is left as future proofing, and the same handling is added for interfaces. https://bugzilla.gnome.org/show_bug.cgi?id=628967
* trick scanner into marking a symbol as a function instead of a methodJohn (J5) Palmieri2010-09-072-3/+3
|
* scanner: Fall back to searching all includes when uncertainColin Walters2010-09-071-1/+14
| | | | | | | | The scanner by default tries hard to ensure that we know immediately from seeing an identifier "FooBarBaz" that the namespace is "Foo". But libraries using --accept-unprefixed here screws this over. Potentially we could add --unstripped-identifier-prefix, but it's ugly. The best long term fix is to fix the namespacing in the library.
* Revert "[scanner] Revert static method pairing"Johan Dahlin2010-09-073-125/+119
| | | | This reverts commit 144cb10d51888a9565721088d2b61794468742e9.
* [girepository] Support strict align platformsJoe Marcus Clarke2010-09-071-4/+7
| | | | | | Such as Sparc64. https://bugzilla.gnome.org/show_bug.cgi?id=620769
* [scanner] Make fatal warnings exitJohan Dahlin2010-09-071-4/+6
| | | | Even if warnings are not enabled
* [scanner] Fundamental problems are not fatalJohan Dahlin2010-09-071-1/+2
|
* scanner: Add various static debug hooks in GI_SCANNER_DEBUGColin Walters2010-09-075-3/+32
| | | | | | | For backwards compat, keep the presence of the environment variable at all to mean "exception". Also start a HACKING file.
* [scanner] Make it compatible with Python 2.5 againJohan Dahlin2010-09-071-0/+3
| | | | | with statement is available in python 2.5, but only if you import it from __future__
* Enhancement #612253 - add configure --with-glib-src=PATHAlan Knowles2010-09-072-4/+57
| | | | | This enables glib documentation to be added to the generated gir using the original source eg. --with-glib-src=/usr/src/glib
* Revert "Fix non-source-dir build failure"Johan Dahlin2010-09-061-9/+0
| | | | This reverts commit 26c66df6bdc3e3ce836c7462958fa38cc3e1062f.
* [scanner] Revert static method pairingJohan Dahlin2010-09-063-119/+125
| | | | | Static method pairing changes the API and should be futher discussed in https://bugzilla.gnome.org/show_bug.cgi?id=572408
* [scanner] Clarify exception messageJohan Dahlin2010-09-061-1/+1
|
* Fix non-source-dir build failureTheppitak Karoonboonyanan2010-09-061-0/+9
| | | | | | | | | Make sure all giscanner python files are available in builddir, so the module is invokable during build time. https://bugzilla.gnome.org/show_bug.cgi?id=571591 Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
* [pep8] Skip emacs backup filesJohan Dahlin2010-09-061-0/+3
|
* [scanner] Remove a bunch of unused functionsJohan Dahlin2010-09-061-19/+0
|
* Bug 628594 — Handle slashes when building _gir_namePhilip Withnall2010-09-061-1/+1
| | | | | Convert slashes to underscores in _gir_name so that non-recursive builds can use Makefile.introspection. Closes: bgo#628594
* Remove extra lines from the license commentTomeu Vizoso2010-09-061-2/+0
|
* [VFuncBlob] Unknown struct offset should be 0xFFFFSteve Frécinaux2010-09-061-1/+1
| | | | | | | | | | | | Documentation says about g_vfunc_get_offset(): "Obtain the offset of the function pointer in the class struct. The value 0xFFFF indicates that the struct offset is unknown." But g-ir-compiler did set the value to 0 when the offset is unknown. This patch fixes it. https://bugzilla.gnome.org/show_bug.cgi?id=628270
* [tests] Link libfoo against girepositoryFunda Wang2010-09-061-0/+1
| | | | | | To avoid undefined references to gi_cclosure_marshal_generic Fixes https://bugzilla.gnome.org/show_bug.cgi?id=625995
* Update CONTRIBUTORSJohan Dahlin2010-09-051-3/+54
|
* [girepository] Document GIStructInfo & GIUnionInfoPavel Holejsovsky2010-09-057-11/+221
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=628753
* scanner: Add backwards compatibility with some annotation typesColin Walters2010-09-031-0/+6
| | | | These were listed on the wiki up until just now...
* scanner: Don't clear out ctype on annotation strings if we fail to resolveColin Walters2010-09-031-2/+3
| | | | | We don't have an "annotation source" for Type right now; so as a quick hack, stuff it in the ctype but only if we fail to resolve.
* scanner: Fix previous rename-to handling commitColin Walters2010-09-033-7/+9
|
* scanner: Fix rename-to handlingColin Walters2010-09-033-4/+9
| | | | | We were writing the attributes backwards. Also actually use the attribute in the typelib generation.
* scanner: Fix misuse of message.warn_symbolColin Walters2010-09-031-1/+1
| | | | | | The "symbol" is actually just a string identifier, not a real symbol. We already added the file positions when parsing earlier.
* scanner: Readd --warn-error to tests, fix test caseColin Walters2010-09-035-10/+74
| | | | | | | | | Commit b6fb70f9 wrongly disabled fatal warnings - in fact there is a way to make this test case work, and it was a bug in the scanner not processing virtual function annotations correctly. Add a different test case for un-named parameters that doesn't have a callback.
* Remove old everything.[ch]Johan Dahlin2010-09-032-3268/+0
|
* scanner: Actually exit with code 1 on fatal warnings againColin Walters2010-09-031-1/+1
|
* Fix typo (reported by philn-tp)Tomeu Vizoso2010-09-031-1/+1
|
* [scanner] Move a function from transformer to astJohan Dahlin2010-09-023-17/+18
| | | | | It doesn't use any internal state, so it can easily be moved over to the type as a factory function
* [test] Add warning tests for enumsJohan Dahlin2010-09-022-3/+15
|
* [tests] Handle multiple errors per file betterJohan Dahlin2010-09-021-11/+12
|
* girepository: Call init_globals()Colin Walters2010-09-021-11/+13
| | | | | This fixes the search path initialization if g_irepository_require is called first thing.
* [scannermain] Use mkstempJohan Dahlin2010-09-021-8/+10
| | | | | Since the delete parameter of NamedTemporaryFile is only available on python 2.6
* [giscanner] Make pyflakes happyJohan Dahlin2010-09-021-2/+3
|