summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* [tests] Add callback scope testsJohan Dahlin2010-09-024-2/+20
| | | | And fix a bug in the warning call in the scanner
* [tests] Rework tester to be executed once per testJohan Dahlin2010-09-022-26/+34
| | | | Instead of running all tests in the same instance
* [tests] Add test infrastructure for warningsJohan Dahlin2010-09-027-1/+129
| | | | | Add an infrastructure for testing warnings, add two examples how to verify warnings
* [scanner] Improve an error message, include linenoJohan Dahlin2010-09-021-1/+1
|
* [message] exit after calling message.fatal()Johan Dahlin2010-09-021-1/+1
|
* scanner: Associate constructors with correct classColin Walters2010-09-024-4/+6
|
* scanner: Add --include-uninstalledColin Walters2010-09-023-8/+31
| | | | | | | | We need a way to add a .gir file, without also attempting to load the pkg-config file for it (since it may not be installed yet). Example: clutter builds multiple .gir files, Cally-1.0 depends on Clutter-1.0.
* [scannermain] Create a new option parserJohan Dahlin2010-09-021-2/+3
| | | | Create a new option parser when parsing pkg-config output
* [message] Add an output parameterJohan Dahlin2010-09-021-7/+10
|
* [scanner] Remove old logging functionsJohan Dahlin2010-09-022-89/+4
| | | | And migrate over to using the message logger
* [scanner] Move over remaining callsites to messageJohan Dahlin2010-09-025-43/+55
| | | | | Move the remaining callsites over to the new message module
* [scanner] Simplify strip_identifer/strip_symbolJohan Dahlin2010-09-023-51/+93
| | | | | | | | The strip_* functions are problematic since they have a fatal switch which determines if the message should kill the scanner. Change the api to make it easier to extend with other logging categories and move over the callsites to use the new message module