summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* metadata->typelib here too, bump versionJohan Dahlin2008-06-221-22/+25
| | | | svn path=/trunk/; revision=294
* rename metadata-format.txt to typelib-format.txtJohan Dahlin2008-06-221-0/+0
| | | | svn path=/trunk/; revision=293
* Ignore a few more tagsJohan Dahlin2008-06-212-0/+8
| | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * giscanner/girparser.py (GIRParser._parse_api): Ignore a few more tags svn path=/trunk/; revision=292
* Add support for gtk-doc annotations for allow-none. Add test case.Johan Dahlin2008-06-207-1/+41
| | | | | | | | | | | | | | | | 2008-06-20 Johan Dahlin <jdahlin@async.com.br> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/transformer.py: * tests/parser/Foo-expected.gir: * tests/parser/foo-object.h: * tests/parser/foo.c (foo_object_allow_none): Add support for gtk-doc annotations for allow-none. Add test case. svn path=/trunk/; revision=291
* Start using abstract type instead of the raw C types. Register a bunch ofJohan Dahlin2008-06-207-43/+111
| | | | | | | | | | | | | | | | 2008-06-19 Johan Dahlin <jdahlin@async.com.br> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * giscanner/transformer.py: * tests/parser/Foo-expected.gir: Start using abstract type instead of the raw C types. Register a bunch of glib types we care about. svn path=/trunk/; revision=290
* Update authorsRob Taylor2008-06-192-1/+9
| | | | | | | | | 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk> * AUTHORS: Update authors svn path=/trunk/; revision=289
* tools/gidlnode.cPhilip Van Hoof2008-06-0814-370/+390
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org> * girepository/girepository.c: * girepository/gtypelib.c: * girepository/ginfo.c: * girepository/ginvoke.c: * girepository/girepository.h: * girepository/gtypelib.h: * girepository/gmetadata.c: * girepository/Makefile.am: * girepository/gmetadata.h: * tools/compiler.c: * tools/gidlmodule.c: * tools/gidlnode.c * tools/generate.c: * tools/gidlmodule.h: * tools/gidlparser.c: Renamed GMetadata to GTypelib svn path=/trunk/; revision=288
* Regenerate with proper indentationJohan Dahlin2008-06-081-18/+18
| | | | svn path=/trunk/; revision=287
* Improve line wrapping when > 79 charatersJohan Dahlin2008-06-072-7/+36
| | | | | | | | | | 2008-06-07 Johan Dahlin <jdahlin@async.com.br> * giscanner/xmlwriter.py: Improve line wrapping when > 79 charaters svn path=/trunk/; revision=286
* Use <type> element for field types Update testcaseJürg Billeter2008-06-055-12/+44
| | | | | | | | | | | | | 2008-06-05 Jürg Billeter <j@bitron.ch> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/transformer.py: Use <type> element for field types * tests/parser/Foo-expected.gir: Update testcase svn path=/trunk/; revision=285
* Fix a bug which prevented GdkEvent from being generatedJohan Dahlin2008-06-042-1/+10
| | | | | | | | | | 2008-06-04 Johan Dahlin <jdahlin@async.com.br> * giscanner/glibtransformer.py: Fix a bug which prevented GdkEvent from being generated svn path=/trunk/; revision=284
* Improve enum member parsing and introspectionJohan Dahlin2008-06-039-45/+114
| | | | | | | | | | | | | | | | | 2008-06-03 Johan Dahlin <jdahlin@async.com.br> * giscanner/Makefile.am: * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * giscanner/transformer.py: * giscanner/utils.py: * tests/parser/Foo-expected.gir: Improve enum member parsing and introspection svn path=/trunk/; revision=283
* Revert this part, it broke atkJohan Dahlin2008-05-311-1/+1
| | | | svn path=/trunk/; revision=282
* Add a new source type enum for member. Use __repr__ for improved debuggingJohan Dahlin2008-05-318-33/+91
| | | | | | | | | | | | | | | | | | | 2008-05-31 Johan Dahlin <jdahlin@async.com.br> * giscanner/scannerparser.y: * giscanner/sourcescanner.h: * giscanner/sourcescanner.py: Add a new source type enum for member. Use __repr__ for improved debugging * giscanner/girparser.py: Ignore some more * giscanner/transformer.py: Improve parsing of struct members. * tests/parser/foo-object.h: Add a new testcase svn path=/trunk/; revision=281
* Improve error reporting when trying to quote None. Do not print warningsJohan Dahlin2008-05-317-23/+74
| | | | | | | | | | | | | | | | | | | | | 2008-05-31 Johan Dahlin <jdahlin@async.com.br> * giscanner/xmlwriter.py: Improve error reporting when trying to quote None. * giscanner/girparser.py: Do not print warnings when including more complete .gir files * giscanner/girwriter.py: Do not require a name for parameters, add a todo for singletons * giscanner/glibtransformer.py: Refactor the way structs are done, add a couple of hacks to allow us to get further. * giscanner/transformer.py: Add enough hacks so cairo, atk and pango.gir can be parsed properly * gobject-introspection-1.0.pc.in: Export girdir, so we can access gobject-2.0.gir from outside svn path=/trunk/; revision=280
* And the Makefile, d'ohJohan Dahlin2008-05-311-2/+2
| | | | svn path=/trunk/; revision=279
* Update sys.path before running the parser so we don't have to setupJohan Dahlin2008-05-312-0/+15
| | | | | | | | | | | | 2008-05-31 Johan Dahlin <jdahlin@async.com.br> * tools/g-ir-scanner: * tests/parser/Makefile.am: Update sys.path before running the parser so we don't have to setup PYTHONPATH ourselves. svn path=/trunk/; revision=278
* Rename pkg-config name to gobject-introspection-1.0, Do not installedJohan Dahlin2008-05-317-37/+41
| | | | | | | | | | | | | | | | | | | | 2008-05-31 Johan Dahlin <jdahlin@async.com.br> * Makefile.am: * configure.ac: * girepository/Makefile.am: * giscanner/transformer.py: * gobject-introspection-1.0.pc.in: * gobject-introspection.pc.in: * tools/Makefile.am: Rename pkg-config name to gobject-introspection-1.0, Do not installed anything which is not using the gir format. Disable compililation the old C scanner, but still keep the source until all the remaning functionallity has been ported. svn path=/trunk/; revision=277
* Prevent a crash when symbol->indent is NULL.Johan Dahlin2008-05-312-0/+10
| | | | | | | | | | 2008-05-31 Johan Dahlin <jdahlin@async.com.br> * giscanner/giscannermodule.c (symbol_get_ident): Prevent a crash when symbol->indent is NULL. svn path=/trunk/; revision=276
* Add ctype_name, a function to convert a CTYPE symbol to a stringJohan Dahlin2008-05-312-0/+19
| | | | | | | | | | 2008-05-31 Johan Dahlin <jdahlin@async.com.br> * giscanner/sourcescanner.py (ctype_name): Add ctype_name, a function to convert a CTYPE symbol to a string svn path=/trunk/; revision=275
* Revert back to using temporary files to send in headers. Allow FunctionsJohan Dahlin2008-05-246-33/+79
| | | | | | | | | | | | | | | | | | | 2008-05-24 Johan Dahlin <jdahlin@async.com.br> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/giscannermodule.c (pygi_source_scanner_append_filename), (pygi_source_scanner_parse_file): * giscanner/glibtransformer.py: * giscanner/sourcescanner.py: Revert back to using temporary files to send in headers. Allow Functions to be passed in as callbacks, add a couple of try/excepts missing features. We can now scan pango svn path=/trunk/; revision=274
* Clean up and refactor enum namespacingJohan Dahlin2008-05-095-20/+23
| | | | svn path=/trunk/; revision=273
* Move namespace stripping glibtransformer->transformerJohan Dahlin2008-05-093-11/+17
| | | | | | | | | | | 2008-05-08 Johan Dahlin <johan@gnome.org> * giscanner/glibtransformer.py: * giscanner/transformer.py: Move namespace stripping glibtransformer->transformer svn path=/trunk/; revision=272
* Move part of the namespace prefix parsing from glibtransformer->transformerJohan Dahlin2008-05-094-29/+54
| | | | svn path=/trunk/; revision=271
* Improve repr() for ast nodesJohan Dahlin2008-05-081-6/+6
| | | | svn path=/trunk/; revision=270
* Resurrect GIDLJohan Dahlin2008-05-081-11/+12
| | | | svn path=/trunk/; revision=269
* Introduce a namespace ast nodeJohan Dahlin2008-05-086-35/+50
| | | | | | | | | | | | | | 2008-05-08 Johan Dahlin <johan@gnome.org> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibtransformer.py: * giscanner/transformer.py: * tools/g-ir-scanner: Introduce a namespace ast node svn path=/trunk/; revision=268
* Add data type constantsJohan Dahlin2008-05-061-1/+55
| | | | svn path=/trunk/; revision=267
* Move sourcescanner symbols to the sourcescanner module, instead of in theJohan Dahlin2008-05-054-72/+82
| | | | | | | | | | | | | 2008-05-05 Johan Dahlin <johan@gnome.org> * giscanner/__init__.py: * giscanner/sourcescanner.py: * giscanner/transformer.py: Move sourcescanner symbols to the sourcescanner module, instead of in the global __init__ namespace. svn path=/trunk/; revision=266
* Format header, Remove dummy sys.path.insertJohan Dahlin2008-05-031-3/+2
| | | | svn path=/trunk/; revision=265
* Refactor and comment scanner frontendJohan Dahlin2008-05-031-18/+30
| | | | svn path=/trunk/; revision=264
* Avoid a tiny bit of duplicationJohan Dahlin2008-05-031-4/+3
| | | | svn path=/trunk/; revision=263
* Handle missing parameters better, allow - and + in .la dlname filenames.Johan Dahlin2008-05-033-4/+21
| | | | | | | | | | | | 2008-05-03 Johan Dahlin <johan@gnome.org> * giscanner/glibtransformer.py: * tools/g-ir-scanner: Handle missing parameters better, allow - and + in .la dlname filenames. svn path=/trunk/; revision=262
* Parse struct fields properly, improve debugging.Johan Dahlin2008-05-037-17/+82
| | | | | | | | | | | | | | 2008-05-03 Johan Dahlin <johan@gnome.org> * giscanner/__init__.py: * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibtransformer.py: * giscanner/transformer.py: Parse struct fields properly, improve debugging. svn path=/trunk/; revision=261
* Use transfer-ownership everywhere, to mark ownership/calle/caller etc.Johan Dahlin2008-04-306-16/+34
| | | | | | | | | | | | | | 2008-04-29 Johan Dahlin <johan@gnome.org> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/transformer.py: * tests/parser/Foo-expected.gir: * TODO: Use transfer-ownership everywhere, to mark ownership/calle/caller etc. svn path=/trunk/; revision=260
* Add a basic, unfinshed man page for g-ir-scanner, move documents into .txtJohan Dahlin2008-04-295-0/+53
| | | | | | | | | | | | | 2008-04-29 Johan Dahlin <jdahlin@async.com.br> * Makefile.am: * docs/g-ir-scanner.1: * metadata-annotations-proposal.txt: * metadata-format.txt: Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt svn path=/trunk/; revision=259
* gdk-pixbuf.gidl noteJohan Dahlin2008-04-291-0/+2
| | | | svn path=/trunk/; revision=258
* Write record/structs to gir file too. Add a couple of tests, fix an off byJohan Dahlin2008-04-297-8/+81
| | | | | | | | | | | | | | | | 2008-04-29 Johan Dahlin <jdahlin@async.com.br> * giscanner/girwriter.py: * giscanner/glibtransformer.py: * giscanner/transformer.py: * giscanner/xmlwriter.py: * tests/parser/Foo-expected.gir: * tests/parser/foo-object.h: Write record/structs to gir file too. Add a couple of tests, fix an off by one error in xmlwriter.py. svn path=/trunk/; revision=257
* Calculate the line length properly, include the provided extra indentationJohan Dahlin2008-04-282-6/+11
| | | | | | | | | | 2008-04-28 Johan Dahlin <johan@gnome.org> * giscanner/xmlwriter.py: Calculate the line length properly, include the provided extra indentation in the calculation, really. svn path=/trunk/; revision=256
* Add a --strip-prefix and sort out confusion between names and symbols forJohan Dahlin2008-04-286-14/+57
| | | | | | | | | | | | | | | | | 2008-04-28 Johan Dahlin <jdahlin@async.com.br> * giscanner/ast.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * giscanner/transformer.py: * tools/g-ir-scanner: Add a --strip-prefix and sort out confusion between names and symbols for functions and struct + derivaties. Refactor bootstrap of g-ir-scanner, so we can set options on Transformer() before parsing everything. svn path=/trunk/; revision=255
* Avoid recursion when scanning girepository.hJohan Dahlin2008-04-283-0/+13
| | | | | | | | | | | | | 2008-04-28 Johan Dahlin <johan@gnome.org> * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion when scanning girepository.h * giscanner/sourcescanner.py (SourceScanner._preprocess): Define a __GI_SCANNER__ when we run. svn path=/trunk/; revision=254
* UpdateJohan Dahlin2008-04-281-3/+3
| | | | svn path=/trunk/; revision=253
* Rename most c:identifier to c:type. Add new ones toJohan Dahlin2008-04-287-53/+83
| | | | | | | | | | | | | | | | 2008-04-28 Johan Dahlin <jdahlin@async.com.br> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * tests/parser/Foo-expected.gir: * tests/parser/utility-expected.gir: Rename most c:identifier to c:type. Add new ones to class/interface/enum/boxed. svn path=/trunk/; revision=252
* Update TODOJohan Dahlin2008-04-281-1/+4
| | | | svn path=/trunk/; revision=251
* Move c:identifier from return-value to subchild type, as per JürgsJohan Dahlin2008-04-286-69/+80
| | | | | | | | | | | | | | | 2008-04-28 Johan Dahlin <jdahlin@async.com.br> * giscanner/ast.py: * giscanner/girwriter.py: * giscanner/glibtransformer.py: * tests/parser/Foo-expected.gidl: * tests/parser/Makefile.am: Move c:identifier from return-value to subchild type, as per Jürgs suggestion svn path=/trunk/; revision=250
* Add parent for GInitiallyUnownedJohan Dahlin2008-04-281-0/+1
| | | | svn path=/trunk/; revision=249
* Check explicitly for None, so we can write FalseJohan Dahlin2008-04-281-1/+1
| | | | svn path=/trunk/; revision=248
* Line wrap license headerJohan Dahlin2008-04-2812-12/+24
| | | | svn path=/trunk/; revision=247
* Write property.type as a child node.Johan Dahlin2008-04-283-4/+12
| | | | | | | | | | | 2008-04-28 Johan Dahlin <johan@gnome.org> * giscanner/girwriter.py: * tests/parser/Foo-expected.gir: Write property.type as a child node. svn path=/trunk/; revision=246
* Make distcheck passJohan Dahlin2008-04-281-3/+9
| | | | svn path=/trunk/; revision=245