platform/upstream/gobject-introspection.git
15 years agoadd a pep8 script
Johan Dahlin [Sun, 10 Aug 2008 20:20:41 +0000 (20:20 +0000)]
add a pep8 script

svn path=/trunk/; revision=343

15 years agoClean up gcov integration a bit
Johan Dahlin [Sat, 9 Aug 2008 13:17:00 +0000 (13:17 +0000)]
Clean up gcov integration a bit

svn path=/trunk/; revision=342

15 years agoPEP8ify
Johan Dahlin [Sat, 9 Aug 2008 13:07:11 +0000 (13:07 +0000)]
PEP8ify

2008-08-09  Johan Dahlin  <johan@gnome.org>

    * giscanner/__init__.py:
    * giscanner/ast.py:
    * giscanner/cgobject.py:
    * giscanner/gidlparser.py:
    * giscanner/gidlwriter.py:
    * giscanner/girparser.py:
    * giscanner/girwriter.py:
    * giscanner/glibast.py:
    * giscanner/glibtransformer.py:
    * giscanner/odict.py:
    * giscanner/sourcescanner.py:
    * giscanner/transformer.py:
    * giscanner/utils.py:
    * giscanner/xmlwriter.py:
    * tools/g-ir-scanner:

    PEP8ify

svn path=/trunk/; revision=341

15 years agoRemove outdated relaxng schemas.
Johan Dahlin [Sat, 9 Aug 2008 12:59:52 +0000 (12:59 +0000)]
Remove outdated relaxng schemas.

2008-08-09  Johan Dahlin  <johan@gnome.org>

    * relaxng/api.xml:
    * relaxng/c-types.xml:
    * relaxng/g-types.xml:
    * relaxng/relaxng.rng:
    * relaxng/util.xml:
    Remove outdated relaxng schemas.

svn path=/trunk/; revision=340

15 years agoRename metadata to typelib in variable names, comments and apis.
Johan Dahlin [Sat, 9 Aug 2008 12:55:32 +0000 (12:55 +0000)]
Rename metadata to typelib in variable names, comments and apis.

2008-08-09  Johan Dahlin  <johan@gnome.org>

    * *.[ch]:
    Rename metadata to typelib in variable names,
    comments and apis.

svn path=/trunk/; revision=339

15 years agoRemove old C scanner, which got rewritten in python.
Johan Dahlin [Sat, 9 Aug 2008 12:48:02 +0000 (12:48 +0000)]
Remove old C scanner, which got rewritten in python.

2008-08-09  Johan Dahlin  <johan@gnome.org>

    * tools/scanner.c:
    * tools/scanner.h:
    Remove old C scanner, which got rewritten in python.

svn path=/trunk/; revision=338

15 years agoMove shared *.[ch] files to girepository from tools
Johan Dahlin [Sat, 9 Aug 2008 12:46:48 +0000 (12:46 +0000)]
Move shared *.[ch] files to girepository from tools

2008-08-09  Johan Dahlin  <johan@gnome.org>

    * girepository/Makefile.am:
    * tools/Makefile.am:
    * tools/girmodule.c:
    * tools/girmodule.h:
    * tools/girnode.c:
    * tools/girnode.h:
    * tools/girparser.c:
    * tools/girparser.h:
    * tools/girwriter.c:
    * tools/girwriter.h:
    Move shared *.[ch] files to girepository from tools

svn path=/trunk/; revision=337

15 years agoRename *.test to *.gir
Johan Dahlin [Sat, 9 Aug 2008 12:37:06 +0000 (12:37 +0000)]
Rename *.test to *.gir

2008-08-09  Johan Dahlin  <johan@gnome.org>

    * tests/Makefile.am:
    * tests/array.test:
    * tests/boxed.test:
    * tests/constant.test:
    * tests/enum.test:
    * tests/errors.test:
    * tests/function.test:
    * tests/gobject.test:
    * tests/interface.test:
    * tests/object.test:
    * tests/struct.test:
    * tests/types.test:
    * tests/union.test:
    * tests/xref1.test:
    * tests/xref2.test:
    Rename *.test to *.gir

svn path=/trunk/; revision=335

15 years agoRename tests/parser to test/scanner
Johan Dahlin [Sat, 9 Aug 2008 12:34:29 +0000 (12:34 +0000)]
Rename tests/parser to test/scanner

2008-08-09  Johan Dahlin  <johan@gnome.org>

    * configure.ac:
    * tests/Makefile.am:
    * tests/parser/Foo-expected.gir:
    * tests/parser/Makefile.am:
    * tests/parser/foo-object.h:
    * tests/parser/foo.c:
    * tests/parser/utility-expected.gir:
    * tests/parser/utility.c:
    * tests/parser/utility.h:
    * tests/scanner/Makefile.am:
    Rename tests/parser to test/scanner

svn path=/trunk/; revision=334

15 years agoUse local .gir files again.
Colin Walters [Sat, 9 Aug 2008 00:18:17 +0000 (00:18 +0000)]
Use local .gir files again.

2008-08-08  Colin Walters  <walters@verbum.org>

* tests/roundtrips.sh: Use local .gir files again.

svn path=/trunk/; revision=333

15 years ago.gir file depends on libtool library.
Colin Walters [Sat, 9 Aug 2008 00:16:59 +0000 (00:16 +0000)]
.gir file depends on libtool library.

2008-08-08  Colin Walters  <walters@verbum.org>

* tests/invoke/Makefile.am: .gir file depends on libtool
library.

svn path=/trunk/; revision=332

15 years agoPass through parent node so we can print the node whose child is NULL, if
Colin Walters [Sat, 9 Aug 2008 00:15:29 +0000 (00:15 +0000)]
Pass through parent node so we can print the node whose child is NULL, if

2008-08-08  Colin Walters  <walters@verbum.org>

* tools/girnode.c: Pass through parent node so we can
print the node whose child is NULL, if that occurs.

svn path=/trunk/; revision=331

15 years agoRemove debug print
Colin Walters [Sat, 9 Aug 2008 00:14:31 +0000 (00:14 +0000)]
Remove debug print

svn path=/trunk/; revision=330

15 years agoSay explicitly which node was NULL
Colin Walters [Sat, 9 Aug 2008 00:13:34 +0000 (00:13 +0000)]
Say explicitly which node was NULL

svn path=/trunk/; revision=329

15 years agodisable a test
Johan Dahlin [Fri, 8 Aug 2008 20:18:19 +0000 (20:18 +0000)]
disable a test

svn path=/trunk/; revision=328

15 years agoDisable roundtrip tests which are not yet working Rewrite as gir.
Johan Dahlin [Fri, 8 Aug 2008 20:16:56 +0000 (20:16 +0000)]
Disable roundtrip tests which are not yet working Rewrite as gir.

2008-08-08  Johan Dahlin  <johan@gnome.org>

    * tests/Makefile.am:
    Disable roundtrip tests which are not yet working
    * tests/invoke/testfns.gir:
    Rewrite as gir.
2008-08-08  Johan Dahlin  <johan@gnome.org>

    * tests/Makefile.am:
    Disable roundtrip tests which are not yet working
    * tests/invoke/testfns.gir:
    Rewrite as gir.

svn path=/trunk/; revision=327

15 years agotype -> ntype
Johan Dahlin [Fri, 8 Aug 2008 20:05:49 +0000 (20:05 +0000)]
type -> ntype

2008-08-08  Johan Dahlin  <johan@gnome.org>

    * giscanner/girwriter.py:
    type -> ntype
    * giscanner/glibast.py:
    * giscanner/glibtransformer.py:
    Swap order of members, to keep it consistent with
    base enum class

svn path=/trunk/; revision=326

15 years agoMerge in the gir-compiler branch. Thanks to Philip and Colin for their
Johan Dahlin [Fri, 8 Aug 2008 19:09:17 +0000 (19:09 +0000)]
Merge in the gir-compiler branch. Thanks to Philip and Colin for their

2008-08-08  Johan Dahlin  <johan@gnome.org>

    * girepository/gtypelib.c (validate_header):
    * girepository/gtypelib.h:
    * giscanner/ast.py:
    * giscanner/girwriter.py:
    * giscanner/sourcescanner.c (gi_source_symbol_ref),
    (gi_source_symbol_unref):
    * tests/array.test:
    * tests/boxed.test:
    * tests/constant.test:
    * tests/enum.test:
    * tests/errors.test:
    * tests/function.test:
    * tests/gobject.test:
    * tests/interface.test:
    * tests/invoke/Makefile.am:
    * tests/invoke/testfns.xml:
    * tests/object.test:
    * tests/parser/Makefile.am:
    * tests/roundtrips.sh:
    * tests/struct.test:
    * tests/types.test:
    * tests/union.test:
    * tests/xref1.test:
    * tests/xref2.test:
    * tools/Makefile.am:
    * tools/compiler.c (main):
    * tools/generate.c (write_callable_info), (write_function_info),
    (write_repository):
    * tools/gidlmodule.c:
    * tools/gidlmodule.h:
    * tools/gidlnode.c:
    * tools/gidlnode.h:
    * tools/gidlparser.c:
    * tools/gidlparser.h:
    * tools/gidlwriter.c:
    * tools/gidlwriter.h:
    * tools/scanner.c (create_node_from_gtype),
    (create_node_from_ctype), (g_igenerator_process_properties),
    (g_igenerator_process_signals), (g_igenerator_create_object),
    (g_igenerator_create_interface), (g_igenerator_create_boxed),
    (g_igenerator_create_enum), (g_igenerator_create_flags),
    (g_igenerator_process_function_symbol),
    (g_igenerator_process_unregistered_struct_typedef),
    (g_igenerator_process_struct_typedef),
    (g_igenerator_process_union_typedef),
    (g_igenerator_process_enum_typedef),
    (g_igenerator_process_function_typedef),
    (g_igenerator_process_constant), (g_igenerator_process_symbols),
    (g_igenerator_add_module), (g_igenerator_add_include_idl):
    Merge in the gir-compiler branch.
    Thanks to Philip and Colin for their help.

svn path=/trunk/; revision=325

15 years agoInstall g-idl-compiler and g-idl-generate to go along with how we're
Colin Walters [Sat, 26 Jul 2008 20:26:56 +0000 (20:26 +0000)]
Install g-idl-compiler and g-idl-generate to go along with how we're

2008-07-26  Colin Walters  <walters@verbum.org>

* tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
and g-idl-generate to go along with how we're changing this
module to be installed.
* gobject-introspection-1.0.pc.in: Set up Cflags and Libs.

svn path=/trunk/; revision=297

15 years agoAdd environment variable G_IREPOSITORY_VERBOSE so we can print out what
Colin Walters [Thu, 24 Jul 2008 19:20:40 +0000 (19:20 +0000)]
Add environment variable G_IREPOSITORY_VERBOSE so we can print out what

2008-07-24  Colin Walters  <walters@verbum.org>

* girepository/girepository.c (g_irepository_register): Add
environment variable G_IREPOSITORY_VERBOSE so we can print
out what we're doing.
* girepository/girepository.c (g_irepository_register_file):
Add GError error message to g_debug call.

svn path=/trunk/; revision=296

15 years agoFix typo
Jürg Billeter [Tue, 8 Jul 2008 11:46:38 +0000 (11:46 +0000)]
Fix typo

2008-07-08  Jürg Billeter  <j@bitron.ch>

* giscanner/glibast.py:

Fix typo

svn path=/trunk/; revision=295

16 years agometadata->typelib here too, bump version
Johan Dahlin [Sun, 22 Jun 2008 15:03:03 +0000 (15:03 +0000)]
metadata->typelib here too, bump version

svn path=/trunk/; revision=294

16 years agorename metadata-format.txt to typelib-format.txt
Johan Dahlin [Sun, 22 Jun 2008 15:00:28 +0000 (15:00 +0000)]
rename metadata-format.txt to typelib-format.txt

svn path=/trunk/; revision=293

16 years agoIgnore a few more tags
Johan Dahlin [Sat, 21 Jun 2008 12:57:49 +0000 (12:57 +0000)]
Ignore a few more tags

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

16 years agoAdd support for gtk-doc annotations for allow-none. Add test case.
Johan Dahlin [Fri, 20 Jun 2008 22:27:07 +0000 (22:27 +0000)]
Add support for gtk-doc annotations for allow-none. Add test case.

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

16 years agoStart using abstract type instead of the raw C types. Register a bunch of
Johan Dahlin [Fri, 20 Jun 2008 01:33:09 +0000 (01:33 +0000)]
Start using abstract type instead of the raw C types. Register a bunch of

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

16 years agoUpdate authors
Rob Taylor [Thu, 19 Jun 2008 22:22:48 +0000 (22:22 +0000)]
Update authors

2008-06-19  Rob Taylor  <rob.taylor@codethink.co.uk>

* AUTHORS:
Update authors

svn path=/trunk/; revision=289

16 years agotools/gidlnode.c
Philip Van Hoof [Sun, 8 Jun 2008 14:37:30 +0000 (14:37 +0000)]
tools/gidlnode.c

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

16 years agoRegenerate with proper indentation
Johan Dahlin [Sun, 8 Jun 2008 14:33:19 +0000 (14:33 +0000)]
Regenerate with proper indentation

svn path=/trunk/; revision=287

16 years agoImprove line wrapping when > 79 charaters
Johan Dahlin [Sat, 7 Jun 2008 12:39:35 +0000 (12:39 +0000)]
Improve line wrapping when > 79 charaters

2008-06-07  Johan Dahlin  <jdahlin@async.com.br>

    * giscanner/xmlwriter.py:
    Improve line wrapping when > 79 charaters

svn path=/trunk/; revision=286

16 years agoUse <type> element for field types Update testcase
Jürg Billeter [Thu, 5 Jun 2008 11:45:46 +0000 (11:45 +0000)]
Use <type> element for field types Update testcase

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

16 years agoFix a bug which prevented GdkEvent from being generated
Johan Dahlin [Wed, 4 Jun 2008 22:38:35 +0000 (22:38 +0000)]
Fix a bug which prevented GdkEvent from being generated

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

16 years agoImprove enum member parsing and introspection
Johan Dahlin [Tue, 3 Jun 2008 23:32:04 +0000 (23:32 +0000)]
Improve enum member parsing and introspection

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

16 years agoRevert this part, it broke atk
Johan Dahlin [Sat, 31 May 2008 23:23:23 +0000 (23:23 +0000)]
Revert this part, it broke atk

svn path=/trunk/; revision=282

16 years agoAdd a new source type enum for member. Use __repr__ for improved debugging
Johan Dahlin [Sat, 31 May 2008 23:20:56 +0000 (23:20 +0000)]
Add a new source type enum for member. Use __repr__ for improved debugging

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

16 years agoImprove error reporting when trying to quote None. Do not print warnings
Johan Dahlin [Sat, 31 May 2008 21:28:33 +0000 (21:28 +0000)]
Improve error reporting when trying to quote None. Do not print warnings

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

16 years agoAnd the Makefile, d'oh
Johan Dahlin [Sat, 31 May 2008 21:06:14 +0000 (21:06 +0000)]
And the Makefile, d'oh

svn path=/trunk/; revision=279

16 years agoUpdate sys.path before running the parser so we don't have to setup
Johan Dahlin [Sat, 31 May 2008 21:04:59 +0000 (21:04 +0000)]
Update sys.path before running the parser so we don't have to setup

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

16 years agoRename pkg-config name to gobject-introspection-1.0, Do not installed
Johan Dahlin [Sat, 31 May 2008 20:49:42 +0000 (20:49 +0000)]
Rename pkg-config name to gobject-introspection-1.0, Do not installed

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

16 years agoPrevent a crash when symbol->indent is NULL.
Johan Dahlin [Sat, 31 May 2008 14:14:07 +0000 (14:14 +0000)]
Prevent a crash when symbol->indent is NULL.

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

16 years agoAdd ctype_name, a function to convert a CTYPE symbol to a string
Johan Dahlin [Sat, 31 May 2008 14:13:18 +0000 (14:13 +0000)]
Add ctype_name, a function to convert a CTYPE symbol to a string

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

16 years agoRevert back to using temporary files to send in headers. Allow Functions
Johan Dahlin [Sat, 24 May 2008 14:44:32 +0000 (14:44 +0000)]
Revert back to using temporary files to send in headers. Allow Functions

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

16 years agoClean up and refactor enum namespacing
Johan Dahlin [Fri, 9 May 2008 00:51:07 +0000 (00:51 +0000)]
Clean up and refactor enum namespacing

svn path=/trunk/; revision=273

16 years agoMove namespace stripping glibtransformer->transformer
Johan Dahlin [Fri, 9 May 2008 00:43:21 +0000 (00:43 +0000)]
Move namespace stripping glibtransformer->transformer

2008-05-08  Johan Dahlin  <johan@gnome.org>

        * giscanner/glibtransformer.py:
        * giscanner/transformer.py:
        Move namespace stripping glibtransformer->transformer

svn path=/trunk/; revision=272

16 years agoMove part of the namespace prefix parsing from glibtransformer->transformer
Johan Dahlin [Fri, 9 May 2008 00:08:26 +0000 (00:08 +0000)]
Move part of the namespace prefix parsing from glibtransformer->transformer

svn path=/trunk/; revision=271

16 years agoImprove repr() for ast nodes
Johan Dahlin [Thu, 8 May 2008 23:41:07 +0000 (23:41 +0000)]
Improve repr() for ast nodes

svn path=/trunk/; revision=270

16 years agoResurrect GIDL
Johan Dahlin [Thu, 8 May 2008 23:38:50 +0000 (23:38 +0000)]
Resurrect GIDL

svn path=/trunk/; revision=269

16 years agoIntroduce a namespace ast node
Johan Dahlin [Thu, 8 May 2008 23:37:09 +0000 (23:37 +0000)]
Introduce a namespace ast node

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

16 years agoAdd data type constants
Johan Dahlin [Tue, 6 May 2008 00:29:11 +0000 (00:29 +0000)]
Add data type constants

svn path=/trunk/; revision=267

16 years agoMove sourcescanner symbols to the sourcescanner module, instead of in the
Johan Dahlin [Mon, 5 May 2008 23:41:40 +0000 (23:41 +0000)]
Move sourcescanner symbols to the sourcescanner module, instead of in the

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

16 years agoFormat header, Remove dummy sys.path.insert
Johan Dahlin [Sat, 3 May 2008 15:13:10 +0000 (15:13 +0000)]
Format header, Remove dummy sys.path.insert

svn path=/trunk/; revision=265

16 years agoRefactor and comment scanner frontend
Johan Dahlin [Sat, 3 May 2008 15:09:38 +0000 (15:09 +0000)]
Refactor and comment scanner frontend

svn path=/trunk/; revision=264

16 years agoAvoid a tiny bit of duplication
Johan Dahlin [Sat, 3 May 2008 15:01:06 +0000 (15:01 +0000)]
Avoid a tiny bit of duplication

svn path=/trunk/; revision=263

16 years agoHandle missing parameters better, allow - and + in .la dlname filenames.
Johan Dahlin [Sat, 3 May 2008 14:59:43 +0000 (14:59 +0000)]
Handle missing parameters better, allow - and + in .la dlname filenames.

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

16 years agoParse struct fields properly, improve debugging.
Johan Dahlin [Sat, 3 May 2008 14:36:47 +0000 (14:36 +0000)]
Parse struct fields properly, improve debugging.

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

16 years agoUse transfer-ownership everywhere, to mark ownership/calle/caller etc.
Johan Dahlin [Wed, 30 Apr 2008 01:48:36 +0000 (01:48 +0000)]
Use transfer-ownership everywhere, to mark ownership/calle/caller etc.

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

16 years agoAdd a basic, unfinshed man page for g-ir-scanner, move documents into .txt
Johan Dahlin [Tue, 29 Apr 2008 11:29:37 +0000 (11:29 +0000)]
Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt

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

16 years agogdk-pixbuf.gidl note
Johan Dahlin [Tue, 29 Apr 2008 11:20:29 +0000 (11:20 +0000)]
gdk-pixbuf.gidl note

svn path=/trunk/; revision=258

16 years agoWrite record/structs to gir file too. Add a couple of tests, fix an off by
Johan Dahlin [Tue, 29 Apr 2008 11:07:35 +0000 (11:07 +0000)]
Write record/structs to gir file too. Add a couple of tests, fix an off by

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

16 years agoCalculate the line length properly, include the provided extra indentation
Johan Dahlin [Mon, 28 Apr 2008 22:37:23 +0000 (22:37 +0000)]
Calculate the line length properly, include the provided extra indentation

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

16 years agoAdd a --strip-prefix and sort out confusion between names and symbols for
Johan Dahlin [Mon, 28 Apr 2008 22:14:43 +0000 (22:14 +0000)]
Add a --strip-prefix and sort out confusion between names and symbols for

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

16 years agoAvoid recursion when scanning girepository.h
Johan Dahlin [Mon, 28 Apr 2008 21:08:21 +0000 (21:08 +0000)]
Avoid recursion when scanning girepository.h

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

16 years agoUpdate
Johan Dahlin [Mon, 28 Apr 2008 20:10:26 +0000 (20:10 +0000)]
Update

svn path=/trunk/; revision=253

16 years agoRename most c:identifier to c:type. Add new ones to
Johan Dahlin [Mon, 28 Apr 2008 19:49:46 +0000 (19:49 +0000)]
Rename most c:identifier to c:type. Add new ones to

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

16 years agoUpdate TODO
Johan Dahlin [Mon, 28 Apr 2008 19:27:21 +0000 (19:27 +0000)]
Update TODO

svn path=/trunk/; revision=251

16 years agoMove c:identifier from return-value to subchild type, as per Jürgs
Johan Dahlin [Mon, 28 Apr 2008 19:24:11 +0000 (19:24 +0000)]
Move c:identifier from return-value to subchild type, as per Jürgs

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

16 years agoAdd parent for GInitiallyUnowned
Johan Dahlin [Mon, 28 Apr 2008 19:12:00 +0000 (19:12 +0000)]
Add parent for GInitiallyUnowned

svn path=/trunk/; revision=249

16 years agoCheck explicitly for None, so we can write False
Johan Dahlin [Mon, 28 Apr 2008 18:58:28 +0000 (18:58 +0000)]
Check explicitly for None, so we can write False

svn path=/trunk/; revision=248

16 years agoLine wrap license header
Johan Dahlin [Mon, 28 Apr 2008 12:06:37 +0000 (12:06 +0000)]
Line wrap license header

svn path=/trunk/; revision=247

16 years agoWrite property.type as a child node.
Johan Dahlin [Mon, 28 Apr 2008 11:52:53 +0000 (11:52 +0000)]
Write property.type as a child node.

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

16 years agoMake distcheck pass
Johan Dahlin [Mon, 28 Apr 2008 03:05:29 +0000 (03:05 +0000)]
Make distcheck pass

svn path=/trunk/; revision=245

16 years agofix a typo, revert to automake hack for uninstalled shared libraries
Johan Dahlin [Mon, 28 Apr 2008 02:51:08 +0000 (02:51 +0000)]
fix a typo, revert to automake hack for uninstalled shared libraries

svn path=/trunk/; revision=244

16 years agoFirst steps towards passing distcheck
Johan Dahlin [Mon, 28 Apr 2008 02:41:57 +0000 (02:41 +0000)]
First steps towards passing distcheck

svn path=/trunk/; revision=243

16 years agonewline
Johan Dahlin [Mon, 28 Apr 2008 02:29:28 +0000 (02:29 +0000)]
newline

svn path=/trunk/; revision=242

16 years agoReplace the GObject gidl with a GObject gir.
Johan Dahlin [Mon, 28 Apr 2008 02:22:07 +0000 (02:22 +0000)]
Replace the GObject gidl with a GObject gir.

2008-04-27  Johan Dahlin  <johan@gnome.org>

        * Makefile.am:
        * configure.ac:
        * gidl/Makefile.am:
        * gidl/gobject-2.0.gidl:
        * gir/Makefile.am:
        * gir/gobject-2.0.gir:
        * tests/parser/Makefile.am:
        Replace the GObject gidl with a GObject gir.

svn path=/trunk/; revision=241

16 years agog-ir-scanner is a script, not a program.
Johan Dahlin [Mon, 28 Apr 2008 02:20:45 +0000 (02:20 +0000)]
g-ir-scanner is a script, not a program.

2008-04-27  Johan Dahlin  <johan@gnome.org>

* tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
not a program.

svn path=/trunk/; revision=240

16 years agoInclude indentation in line length calculation
Johan Dahlin [Mon, 28 Apr 2008 02:12:17 +0000 (02:12 +0000)]
Include indentation in line length calculation

2008-04-27  Johan Dahlin  <johan@gnome.org>

        * giscanner/xmlwriter.py:
        * tests/parser/Foo-expected.gir:
        Include indentation in line length calculation

svn path=/trunk/; revision=239

16 years agoPrettify NS parsing using elementtree.
Johan Dahlin [Mon, 28 Apr 2008 01:59:11 +0000 (01:59 +0000)]
Prettify NS parsing using elementtree.

2008-04-27  Johan Dahlin  <johan@gnome.org>

        * giscanner/girparser.py:
        Prettify NS parsing using elementtree.

svn path=/trunk/; revision=238

16 years agoSwitch over to GIR as the default format. Add a simple GIDL parser. Update
Johan Dahlin [Mon, 28 Apr 2008 01:21:27 +0000 (01:21 +0000)]
Switch over to GIR as the default format. Add a simple GIDL parser. Update

2008-04-27  Johan Dahlin  <johan@gnome.org>

    * configure.ac:
    * giscanner/Makefile.am:
    * giscanner/girparser.py:
    * giscanner/glibtransformer.py:
    * tests/parser/Foo-expected.gidl:
    * tests/parser/Foo-expected.gir:
    * tests/parser/Makefile.am:
    * tests/parser/utility-expected.gidl:
    * tests/parser/utility-expected.gir:
    * tools/g-ir-scanner:
    Switch over to GIR as the default format. Add a simple GIDL
    parser.
    Update tests and fix simplify makefiles by depending
    on GNU make extensions.

svn path=/trunk/; revision=237

16 years agoRefactor pretty attribute indentation to be more generic and always use it
Johan Dahlin [Mon, 28 Apr 2008 00:54:43 +0000 (00:54 +0000)]
Refactor pretty attribute indentation to be more generic and always use it

svn path=/trunk/; revision=236

16 years agoWrap attributes for lines which are wider than 79 characters
Johan Dahlin [Mon, 28 Apr 2008 00:15:16 +0000 (00:15 +0000)]
Wrap attributes for lines which are wider than 79 characters

2008-04-27  Johan Dahlin  <johan@gnome.org>

* giscanner/xmlwriter.py:
Wrap attributes for lines which are wider than 79 characters

svn path=/trunk/; revision=235

16 years agoSimplify & Remove a bit of unused code
Johan Dahlin [Mon, 28 Apr 2008 00:07:57 +0000 (00:07 +0000)]
Simplify & Remove a bit of unused code

svn path=/trunk/; revision=234

16 years agoAllow parenthesis in annotations
Johan Dahlin [Sun, 27 Apr 2008 23:27:17 +0000 (23:27 +0000)]
Allow parenthesis in annotations

2008-04-27  Johan Dahlin  <johan@gnome.org>

        * giscanner/scannerlexer.l:
        Allow parenthesis in annotations

        * giscanner/ast.py:
        * giscanner/gidlwriter.py:
        * giscanner/girwriter.py:
        * giscanner/glibtransformer.py:
        * giscanner/transformer.py:
        Add initial sequence support, including annotation.
        Refactor type handling a bit.

svn path=/trunk/; revision=233

16 years agoAdd two new functions to check sequence return values. Also fixes a
Johan Dahlin [Sun, 27 Apr 2008 23:13:24 +0000 (23:13 +0000)]
Add two new functions to check sequence return values. Also fixes a

2008-04-27  Johan Dahlin  <johan@gnome.org>

* tests/parser/Foo-expected.gidl:
* tests/parser/foo-object.h:
* tests/parser/foo.c (foo_object_class_init),
(foo_object_get_strings), (foo_object_get_objects):
Add two new functions to check sequence return values.
Also fixes a compilation warning.

svn path=/trunk/; revision=232

16 years agoCast the getter, avoids a compilation warning.
Johan Dahlin [Sun, 27 Apr 2008 23:09:07 +0000 (23:09 +0000)]
Cast the getter, avoids a compilation warning.

2008-04-27  Johan Dahlin  <johan@gnome.org>

* giscanner/giscannermodule.c (]): Cast the getter, avoids
a compilation warning.

svn path=/trunk/; revision=231

16 years agog-ir-scanner has no sources.
Johan Dahlin [Sun, 27 Apr 2008 23:08:19 +0000 (23:08 +0000)]
g-ir-scanner has no sources.

2008-04-27  Johan Dahlin  <johan@gnome.org>

* tools/Makefile.am (g_ir_scanner_SOURCES):
g-ir-scanner has no sources.

svn path=/trunk/; revision=230

16 years agoSplit out nodes to ast.py and glibast.py
Johan Dahlin [Sat, 26 Apr 2008 02:37:07 +0000 (02:37 +0000)]
Split out nodes to ast.py and glibast.py

2008-04-25  Johan Dahlin  <johan@gnome.org>

    * giscanner/Makefile.am:
    * giscanner/ast.py:
    * giscanner/gidlparser.py:
    * giscanner/gidlwriter.py:
    * giscanner/girwriter.py:
    * giscanner/glibast.py:
    * giscanner/glibtransformer.py:
    * giscanner/transformer.py:
    Split out nodes to ast.py and glibast.py

svn path=/trunk/; revision=229

16 years agoRename treebuilder to transformer and gobjectreebuilder to
Johan Dahlin [Sat, 26 Apr 2008 02:27:40 +0000 (02:27 +0000)]
Rename treebuilder to transformer and gobjectreebuilder to

2008-04-25  Johan Dahlin  <jdahlin@async.com.br>

    * giscanner/Makefile.am:
    * giscanner/gidlparser.py:
    * giscanner/gidlwriter.py:
    * giscanner/girwriter.py:
    * giscanner/glibtransformer.py:
    * giscanner/gobjecttreebuilder.py:
    * giscanner/transformer.py:
    * giscanner/treebuilder.py:
    * tools/g-ir-scanner:
    Rename treebuilder to transformer and
    gobjectreebuilder to glibtransformer.

svn path=/trunk/; revision=228

16 years agoAdd LGPLv2 license header and install all python files
Johan Dahlin [Sat, 26 Apr 2008 02:20:07 +0000 (02:20 +0000)]
Add LGPLv2 license header and install all python files

2008-04-25  Johan Dahlin  <jdahlin@async.com.br>

    * giscanner/Makefile.am:
    * giscanner/__init__.py:
    * giscanner/cgobject.py:
    * giscanner/gidlparser.py:
    * giscanner/gidlwriter.py:
    * giscanner/girwriter.py:
    * giscanner/gobjecttreebuilder.py:
    * giscanner/odict.py:
    * giscanner/sourcescanner.py:
    * giscanner/treebuilder.py:
    * giscanner/xmlwriter.py:
    * tools/Makefile.am:
    * tools/g-ir-scanner:
    Add LGPLv2 license header and install all python files

svn path=/trunk/; revision=227

16 years agoAdd support for virtual methods. Pair struct FooClass with struct Foo.
Johan Dahlin [Fri, 25 Apr 2008 23:50:02 +0000 (23:50 +0000)]
Add support for virtual methods. Pair struct FooClass with struct Foo.

2008-04-25  Johan Dahlin  <jdahlin@async.com.br>

    * TODO:
    * giscanner/gidlwriter.py:
    * giscanner/giscannermodule.c (pygi_source_directive_new),
    (directive_get_options), (pygi_source_symbol_new),
    (symbol_get_base_type), (pygi_source_type_new),
    (type_get_base_type), (type_get_child_list),
    (pygi_source_scanner_get_symbols),
    (pygi_source_scanner_get_directives):
    * giscanner/gobjecttreebuilder.py:
    * giscanner/sourcescanner.py:
    * giscanner/treebuilder.py:
    * tests/parser/foo-object.h:
    Add support for virtual methods.
    Pair struct FooClass with struct Foo.
    Clean up the SourceScanner bindings a bit.
    Add a testcase for virtual methods.

svn path=/trunk/; revision=226

16 years agoAdd support for signals
Johan Dahlin [Fri, 25 Apr 2008 16:26:51 +0000 (16:26 +0000)]
Add support for signals

2008-04-25  Johan Dahlin  <jdahlin@async.com.br>

    * giscanner/cgobject.py:
    * giscanner/gidlwriter.py:
    * giscanner/gobjecttreebuilder.py:
    Add support for signals

    * tests/parser/foo.c (foo_object_class_init):
    * Foo-expected.gidl:
    Add a signal and update the expected output.

svn path=/trunk/; revision=225

16 years agoAdd support for source/header annotations.
Johan Dahlin [Fri, 25 Apr 2008 00:17:15 +0000 (00:17 +0000)]
Add support for source/header annotations.

2008-04-24  Johan Dahlin  <jdahlin@async.com.br>

    * giscanner/gidlwriter.py:
    * giscanner/girwriter.py:
    * giscanner/giscannermodule.c (directive_get_name),
    (directive_get_value), (directive_get_options),
    (symbol_get_directives), (symbol_set_directives),
    (pygi_source_scanner_parse_file),
    (pygi_source_scanner_lex_filename),
    (pygi_source_scanner_get_directives), (init_giscanner):
    * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
    * giscanner/sourcescanner.h:
    * giscanner/sourcescanner.py:
    * giscanner/treebuilder.py:
    * tools/g-ir-scanner:
    Add support for source/header annotations.

svn path=/trunk/; revision=224

16 years agobitmask->bitfield, c:symbol->c:identifer api->repository
Johan Dahlin [Wed, 23 Apr 2008 01:32:49 +0000 (01:32 +0000)]
bitmask->bitfield, c:symbol->c:identifer api->repository

svn path=/trunk/; revision=223

16 years agoAdd support for Callbacks
Johan Dahlin [Wed, 23 Apr 2008 01:28:27 +0000 (01:28 +0000)]
Add support for Callbacks

2008-04-22  Johan Dahlin  <jdahlin@async.com.br>

    * giscanner/gidlwriter.py:
    * giscanner/girwriter.py:
    * giscanner/gobjecttreebuilder.py:
    * giscanner/treebuilder.py:
    Add support for Callbacks

svn path=/trunk/; revision=222

16 years agoIf a symbol is not in metadata->module, look for it in the global module,
Havoc Pennington [Wed, 23 Apr 2008 01:24:57 +0000 (01:24 +0000)]
If a symbol is not in metadata->module, look for it in the global module,

2008-04-22  Havoc Pennington  <hp@pobox.com>

* girepository/ginvoke.c (g_function_info_invoke): If a symbol is
not in metadata->module, look for it in the global module, in case
some other object or the app itself provides the symbol.

svn path=/trunk/; revision=221

16 years agohack to avoid dlopening a library that is already in the main app, by
Havoc Pennington [Wed, 23 Apr 2008 01:17:24 +0000 (01:17 +0000)]
hack to avoid dlopening a library that is already in the main app, by

2008-04-22  Havoc Pennington  <hp@pobox.com>

* girepository/gmetadata.c (_g_metadata_init): hack to avoid
  dlopening a library that is already in the main app, by checking
whether one of the lib's symbols is already loaded.

svn path=/trunk/; revision=220

16 years agoAdd a callback test
Johan Dahlin [Wed, 23 Apr 2008 01:13:57 +0000 (01:13 +0000)]
Add a callback test

2008-04-22  Johan Dahlin  <jdahlin@async.com.br>

    * tests/parser/Foo-expected.gidl:
    * tests/parser/foo-object.h:
    Add a callback test

svn path=/trunk/; revision=219

16 years agoUse interface_blob_size not object_blob_size to compute offset.
Havoc Pennington [Wed, 23 Apr 2008 01:07:05 +0000 (01:07 +0000)]
Use interface_blob_size not object_blob_size to compute offset.

2008-04-22  Havoc Pennington  <hp@pobox.com>

* girepository/ginfo.c (g_interface_info_find_method):
Use interface_blob_size not object_blob_size to compute offset.

svn path=/trunk/; revision=218

16 years agoremove G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
Havoc Pennington [Wed, 23 Apr 2008 01:04:43 +0000 (01:04 +0000)]
remove G_MODULE_BIND_LOCAL flag when loading libraries, since some libs

2008-04-22  Havoc Pennington  <hp@pobox.com>

* girepository/gmetadata.c (_g_metadata_init): remove
G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
(Glade and Clutter for example) rely on being loaded globally.

svn path=/trunk/; revision=217

16 years agonew function to get the GType given a RegisteredTypeInfo
Havoc Pennington [Wed, 23 Apr 2008 00:57:48 +0000 (00:57 +0000)]
new function to get the GType given a RegisteredTypeInfo

2008-04-22  Havoc Pennington  <hp@pobox.com>

  * girepository/ginfo.c (g_registered_type_info_get_g_type): new
function to get the GType given a RegisteredTypeInfo

svn path=/trunk/; revision=216