platform/upstream/gobject-introspection.git
16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 years agoAdd a LGPL license, to prevent automake to put in a copy of GPL here.
Johan Dahlin [Wed, 23 Apr 2008 00:09:22 +0000 (00:09 +0000)]
Add a LGPL license, to prevent automake to put in a copy of GPL here.

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

    * COPYING: Add a LGPL license, to prevent automake to
    put in a copy of GPL here. Pointed out by Havoc.

svn path=/trunk/; revision=215

16 years agoRevert revisions 157,149-148,136-129 and 120. Move back to using
Johan Dahlin [Tue, 22 Apr 2008 22:48:16 +0000 (22:48 +0000)]
Revert revisions 157,149-148,136-129 and 120. Move back to using

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

    * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
    (g_type_info_is_pointer), (g_type_info_get_tag),
    (g_type_info_get_param_type), (g_type_info_get_interface),
    (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
    (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
    (g_error_domain_info_get_codes), (g_enum_info_get_value),
    (g_object_info_get_interface), (g_object_info_get_field),
    (g_interface_info_get_prerequisite),
    (g_signal_info_get_class_closure), (g_constant_info_get_value):
    * girepository/ginvoke.c (get_ffi_type):
    * girepository/girepository.h:
    * girepository/gmetadata.c (g_metadata_get_dir_entry),
    (g_metadata_check_sanity), (validate_header),
    (validate_array_type_blob), (validate_iface_type_blob),
    (validate_param_type_blob), (validate_error_type_blob),
    (validate_type_blob), (validate_constant_blob),
    (validate_struct_blob), (validate_enum_blob):
    * girepository/gmetadata.h:
    * tests/Makefile.am:
    * tests/invoke/Makefile.am:
    * tests/invoke/invoke.c (main):
    * tests/roundtrips.sh:
    * tools/Makefile.am:
    * tools/compiler.c (format_output), (write_out_metadata), (main):
    * tools/generate.c (write_type_name), (write_type_info),
    (write_constant_value), (write_enum_info), (load_metadata), (main):
    * tools/gidlcompilercontext.c:
    * tools/gidlcompilercontext.h:
    * tools/gidlcompilerentrynode.c:
    * tools/gidlcompilerentrynode.h:
    * tools/gidlcompilertypenode.c:
    * tools/gidlcompilertypenode.h:
    * tools/gidlmodule.c (g_idl_module_build_metadata):
    * tools/gidlmodule.h:
    * tools/gidlnode.c (init_stats), (dump_stats),
    (g_idl_node_get_size), (g_idl_node_get_full_size),
    (g_idl_node_cmp), (g_idl_node_can_have_member),
    (g_idl_node_add_member), (g_idl_node_param_direction_string),
    (parse_int_value), (parse_uint_value), (parse_float_value),
    (parse_boolean_value), (find_entry_node), (find_entry),
    (serialize_type), (g_idl_node_build_metadata), (write_string):
    * tools/gidlnode.h:
    * tools/gidlparser.c (parse_type_internal):
    * tools/quote-file.sh:
    Revert revisions 157,149-148,136-129 and 120.
    Move back to using g-idl-generate to generate the metadata and
    avoids dependency on a c compiler.

svn path=/trunk/; revision=214

16 years agoUpdate
Johan Dahlin [Tue, 22 Apr 2008 15:17:50 +0000 (15:17 +0000)]
Update

svn path=/trunk/; revision=213

16 years agoAdd an initial GIR writer and a --format option to g-ir-scanner
Johan Dahlin [Tue, 22 Apr 2008 14:37:04 +0000 (14:37 +0000)]
Add an initial GIR writer and a --format option to g-ir-scanner

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

    * giscanner/girwriter.py:
    * tools/g-ir-scanner:
    Add an initial GIR writer and a --format option to g-ir-scanner

svn path=/trunk/; revision=212

16 years agocleanup namespace stripping
Johan Dahlin [Tue, 22 Apr 2008 11:28:48 +0000 (11:28 +0000)]
cleanup namespace stripping

svn path=/trunk/; revision=211

16 years agoonly attempt load a library if one was specified
Johan Dahlin [Tue, 22 Apr 2008 04:31:44 +0000 (04:31 +0000)]
only attempt load a library if one was specified

svn path=/trunk/; revision=210

16 years agoskip private symbols
Johan Dahlin [Tue, 22 Apr 2008 04:31:16 +0000 (04:31 +0000)]
skip private symbols

svn path=/trunk/; revision=209

16 years agoavoid sending the same options multiple times to cpp
Johan Dahlin [Tue, 22 Apr 2008 04:30:56 +0000 (04:30 +0000)]
avoid sending the same options multiple times to cpp

svn path=/trunk/; revision=208

16 years agoUse ctypes.util.find_library to locate gobject-2.0 and raise ImportError
Johan Dahlin [Tue, 22 Apr 2008 01:31:59 +0000 (01:31 +0000)]
Use ctypes.util.find_library to locate gobject-2.0 and raise ImportError

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

* giscanner/cgobject.py: Use ctypes.util.find_library to locate
gobject-2.0 and raise ImportError if not found.

svn path=/trunk/; revision=207

16 years agoAdd a --include argument to include types from other idls. Add a
Johan Dahlin [Tue, 22 Apr 2008 00:53:40 +0000 (00:53 +0000)]
Add a --include argument to include types from other idls. Add a

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

* giscanner/gidlparser.py:
* giscanner/gidlwriter.py:
* giscanner/gobjecttreebuilder.py:
* tools/g-ir-scanner:
Add a --include argument to include types from other idls.
Add a minimalistic GIDL parser (just objects for now)
Implement resolving of external type references and use it to
resolve parent types, argument types and return types.

svn path=/trunk/; revision=206

16 years agoAdd support for properties. Refactor Class/Interface support a bit, to
Johan Dahlin [Mon, 21 Apr 2008 21:03:05 +0000 (21:03 +0000)]
Add support for properties. Refactor Class/Interface support a bit, to

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

* giscanner/gidlwriter.py:
* giscanner/gobjecttreebuilder.py:
* giscanner/treebuilder.py:
Add support for properties.
Refactor Class/Interface support a bit, to share more code and
always initialize their method attribute to an empty list.

svn path=/trunk/; revision=205

16 years agoAdd a workaround for a glib bug interface introspection bug
Johan Dahlin [Mon, 21 Apr 2008 21:01:50 +0000 (21:01 +0000)]
Add a workaround for a glib bug interface introspection bug

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

* giscanner/cgobject.py:
Add a workaround for a glib bug interface introspection bug
(object_interface_list_properties, object_class_list_properties):
Cast the return value to GParamSpec.

svn path=/trunk/; revision=204

16 years agoUpdate Add a string property
Johan Dahlin [Mon, 21 Apr 2008 21:00:40 +0000 (21:00 +0000)]
Update Add a string property

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

* tests/parser/Foo-expected.gidl: Update
* tests/parser/foo.c: Add a string property

svn path=/trunk/; revision=203

16 years agoAfter stripping namespaces, remove the original item to avoid duplication
Johan Dahlin [Mon, 21 Apr 2008 19:53:51 +0000 (19:53 +0000)]
After stripping namespaces, remove the original item to avoid duplication

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

    * giscanner/gobjecttreebuilder.py:
    After stripping namespaces, remove the original
    item to avoid duplication (GtkButton struct and Button object)

svn path=/trunk/; revision=202