platform/upstream/gobject-introspection.git
15 years agoBug 557786 - support fixed size arrays
Colin Walters [Sat, 25 Oct 2008 15:20:54 +0000 (15:20 +0000)]
Bug 557786 - support fixed size arrays

svn path=/trunk/; revision=814

15 years agoBug 557076 - move typelibs to $libdir
Colin Walters [Sat, 25 Oct 2008 14:59:25 +0000 (14:59 +0000)]
Bug 557076 - move typelibs to $libdir

svn path=/trunk/; revision=813

15 years agoBe less verbose about source types, we handle most of them now anyway
Johan Dahlin [Fri, 24 Oct 2008 11:40:43 +0000 (11:40 +0000)]
Be less verbose about source types, we handle most of them now anyway

svn path=/trunk/; revision=812

15 years agoBe quiet, do not warn about unhandled members.
Johan Dahlin [Fri, 24 Oct 2008 11:33:33 +0000 (11:33 +0000)]
Be quiet, do not warn about unhandled members.

2008-10-24  Johan Dahlin  <johan@gnome.org>

        * girepository/girnode.c (g_ir_node_check_unhandled_members):
        Be quiet, do not warn about unhandled members.

svn path=/trunk/; revision=811

15 years agoExport two private methods to avoid an compiler warning
Johan Dahlin [Fri, 24 Oct 2008 11:32:31 +0000 (11:32 +0000)]
Export two private methods to avoid an compiler warning

svn path=/trunk/; revision=810

15 years agoOnly use SHLIB_SUFFIX on darwin, otherwise use G_MODULE_SUFFIX, we cannot
Johan Dahlin [Fri, 24 Oct 2008 11:19:49 +0000 (11:19 +0000)]
Only use SHLIB_SUFFIX on darwin, otherwise use G_MODULE_SUFFIX, we cannot

2008-10-24  Johan Dahlin  <johan@gnome.org>

        * girepository/gtypelib.c:
        Only use SHLIB_SUFFIX on darwin, otherwise use
        G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.

svn path=/trunk/; revision=806

15 years agoBug 557623 - Constructors shouldn't be flagged as methods.
Lucas Rocha [Fri, 24 Oct 2008 09:54:34 +0000 (09:54 +0000)]
Bug 557623 - Constructors shouldn't be flagged as methods.

2008-10-24  Lucas Rocha  <lucasr@gnome.org>

Bug 557623 - Constructors shouldn't be flagged as methods.

* girepository/ginfo.c (g_function_info_get_flags): ditto.

svn path=/trunk/; revision=805

15 years agoCheck against division by zero for the modula operator. This fixes header
Johan Dahlin [Fri, 24 Oct 2008 09:17:02 +0000 (09:17 +0000)]
Check against division by zero for the modula operator. This fixes header

2008-10-24  Johan Dahlin  <johan@gnome.org>

        * giscanner/scannerparser.y:
        Check against division by zero for the modula operator.
        This fixes header parsing of OSX system headers included
        by libsoup.

svn path=/trunk/; revision=804

15 years agoAdd John Finlay
Johan Dahlin [Fri, 24 Oct 2008 07:38:39 +0000 (07:38 +0000)]
Add John Finlay

svn path=/trunk/; revision=803

15 years agoAdd a CONTRIBUTORS file and dist it.
Johan Dahlin [Fri, 24 Oct 2008 07:36:58 +0000 (07:36 +0000)]
Add a CONTRIBUTORS file and dist it.

2008-10-24  Johan Dahlin  <johan@gnome.org>

        * CONTRIBUTORS:
        * Makefile.am:
        Add a CONTRIBUTORS file and dist it.

svn path=/trunk/; revision=802

15 years agoAdd automake/libtool hack to build shared library
Colin Walters [Thu, 23 Oct 2008 20:59:30 +0000 (20:59 +0000)]
Add automake/libtool hack to build shared library

svn path=/trunk/; revision=801

15 years agoTypelibs should go in $(datadir) for now
Colin Walters [Thu, 23 Oct 2008 19:03:27 +0000 (19:03 +0000)]
Typelibs should go in $(datadir) for now

svn path=/trunk/; revision=800

15 years agoMore noinst_ on tests/types
Colin Walters [Thu, 23 Oct 2008 18:47:27 +0000 (18:47 +0000)]
More noinst_ on tests/types

svn path=/trunk/; revision=799

15 years agotests/types should be noinst_
Colin Walters [Thu, 23 Oct 2008 18:44:22 +0000 (18:44 +0000)]
tests/types should be noinst_

svn path=/trunk/; revision=798

15 years agoBug 556739 – transfer-ownership attribute should be mandatory in .gir
Tommi Komulainen [Thu, 23 Oct 2008 17:42:25 +0000 (17:42 +0000)]
Bug 556739 – transfer-ownership attribute should be mandatory in .gir

2008-10-23  Tommi Komulainen  <tommi.komulainen@iki.fi>

* girepository/girparser.c (parse_param_transfer):
* giscanner/transformer.py (_create_parameter, _create_return):
* giscanner/girwriter.py (_write_return, _write_parameter):
* tools/generate.c (write_callable_info): always write and
require "transfer-ownership" for return-values and parameters

* tests/boxed.gir:
* tests/invoke/testfns-1.0.gir:
* tests/object.gir:
* tests/scanner/DrawableAdditions.xml:
* tests/scanner/GtkFrob-1.0-expected.tgir:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/drawable-1.0-expected.tgir:
* tests/scanner/drawable-injected-1.0-expected.gir:
* tests/scanner/drawable-injected-1.0-expected.tgir:
* tests/scanner/foo-1.0-expected.tgir: Updated

svn path=/trunk/; revision=797

15 years agoChangeLog
Tommi Komulainen [Thu, 23 Oct 2008 17:40:31 +0000 (17:40 +0000)]
ChangeLog

svn path=/trunk/; revision=796

15 years agodeduce transfer-ownership from GTypes
Tommi Komulainen [Thu, 23 Oct 2008 17:40:29 +0000 (17:40 +0000)]
deduce transfer-ownership from GTypes

* giscanner/glibtransformer.py (_adjust_transfer):
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir: deduce
transfer-ownership from GTypes

svn path=/trunk/; revision=795

15 years agorearrange
Tommi Komulainen [Thu, 23 Oct 2008 17:40:25 +0000 (17:40 +0000)]
rearrange

* giscanner/glibtransformer.py (_adjust_transfer): rearrange

svn path=/trunk/; revision=794

15 years agoCheck whether the parameter is a GObject from the GType
Tommi Komulainen [Thu, 23 Oct 2008 17:40:23 +0000 (17:40 +0000)]
Check whether the parameter is a GObject from the GType

* giscanner/glibtransformer.py (_adjust_transfer): Check whether
the parameter is a GObject from its GType, if available.

svn path=/trunk/; revision=793

15 years agorecord GType when constructing the Type from it
Tommi Komulainen [Thu, 23 Oct 2008 17:40:19 +0000 (17:40 +0000)]
record GType when constructing the Type from it

* giscanner/glibtransformer.py (_type_from_gtype): record GType
when constructing the Type from it

svn path=/trunk/; revision=792

15 years agobuild fundamental types same way as glib
Tommi Komulainen [Thu, 23 Oct 2008 17:40:15 +0000 (17:40 +0000)]
build fundamental types same way as glib

* giscanner/cgobject.py: build fundamental types same way as glib

svn path=/trunk/; revision=791

15 years agomake varargs transfer-ownership="none"
Tommi Komulainen [Thu, 23 Oct 2008 17:37:00 +0000 (17:37 +0000)]
make varargs transfer-ownership="none"

2008-10-23  Tommi Komulainen  <tommi.komulainen@iki.fi>

* giscanner/transformer.py (_create_parameter):
* tests/scanner/foo-1.0-expected.gir: make varargs
transfer-ownership="none"

svn path=/trunk/; revision=790

15 years agofix foo_rectangle_add test
Tommi Komulainen [Thu, 23 Oct 2008 17:36:56 +0000 (17:36 +0000)]
fix foo_rectangle_add test

svn path=/trunk/; revision=789

15 years agoBug 556739 - transfer ownership heuristics
Colin Walters [Thu, 23 Oct 2008 12:38:08 +0000 (12:38 +0000)]
Bug 556739 - transfer ownership heuristics

svn path=/trunk/; revision=788

15 years agoAlways write out transfer-ownership attribute
Colin Walters [Thu, 23 Oct 2008 12:37:10 +0000 (12:37 +0000)]
Always write out transfer-ownership attribute

svn path=/trunk/; revision=787

15 years agoBug 557468 – Support for GI_TYPELIB_PATH
Johan Bilien [Thu, 23 Oct 2008 09:10:04 +0000 (09:10 +0000)]
Bug 557468 – Support for GI_TYPELIB_PATH

2008-10-23  Johan Bilien  <jobi@via.ecp.fr>

Bug 557468 – Support for GI_TYPELIB_PATH

* girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
provided paths to the global search path.

svn path=/trunk/; revision=786

15 years agoBug 557379 – g-ir-generate not writing the 'abstract' attribute
Tommi Komulainen [Wed, 22 Oct 2008 16:46:19 +0000 (16:46 +0000)]
Bug 557379 – g-ir-generate not writing the 'abstract' attribute

2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tests/scanner/drawable-1.0-expected.tgir:
* tests/scanner/drawable-injected-1.0-expected.tgir:
* tests/scanner/foo-1.0-expected.tgir:
* tools/generate.c (write_object_info): write 'abstract'
attribute for classes

svn path=/trunk/; revision=785

15 years agoBug 557377 – Add test to ensure annotations survive the roundtrip via typelib
Tommi Komulainen [Wed, 22 Oct 2008 16:46:13 +0000 (16:46 +0000)]
Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib

2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tests/scanner/Makefile.am:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/drawable-1.0-expected.tgir:
* tests/scanner/drawable-injected-1.0-expected.tgir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/GtkFrob-1.0-expected.tgir:
* tests/scanner/utility-1.0-expected.tgir: Add test to ensure
annotations survive the roundtrip via typelib

The expectations are as currently produced by g-ir-generate,
comparison with the .gir files shows there are differences.

svn path=/trunk/; revision=784

15 years agofix some build warnings.
Lucas Rocha [Wed, 22 Oct 2008 14:31:58 +0000 (14:31 +0000)]
fix some build warnings.

2008-10-22  Lucas Rocha  <lucasr@gnome.org>

* girepository/girmodule.c, girepository/gtypelib.c,
girepository/girparser.[ch]: fix some build warnings.

svn path=/trunk/; revision=783

15 years agoBug 557405 – Use 'allow-none' consistently
Tommi Komulainen [Wed, 22 Oct 2008 14:02:02 +0000 (14:02 +0000)]
Bug 557405 – Use 'allow-none' consistently

2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>

* docs/typelib-format.txt:
* girepository/ginfo.c (g_arg_info_may_be_null):
* girepository/girnode.c (g_ir_node_build_typelib):
* girepository/girnode.h (struct _GIrNodeParam):
* girepository/girparser.c (start_parameter):
* girepository/girwriter.c (function_generate):
* girepository/gtypelib.h (ArgBlob):
* tests/errors.gir:
* tests/function.gir:
* tools/generate.c (write_callable_info): Use 'allow-none'
consistently throughout

svn path=/trunk/; revision=782

15 years agoBug 557092 – Callback annotations not used
Tommi Komulainen [Wed, 22 Oct 2008 10:46:22 +0000 (10:46 +0000)]
Bug 557092 – Callback annotations not used

2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>

* giscanner/transformer.py (_create_callback): use annotations
for callbacks
* tests/scanner/annotation.h
* tests/scanner/annotation-1.0-expected.gir: add tests

svn path=/trunk/; revision=781

15 years agoFix bug reference
Johan Dahlin [Wed, 22 Oct 2008 07:34:56 +0000 (07:34 +0000)]
Fix bug reference

svn path=/trunk/; revision=780

15 years agoDon't require trailing whitespace after uncommented parameters
Colin Walters [Tue, 21 Oct 2008 21:35:35 +0000 (21:35 +0000)]
Don't require trailing whitespace after uncommented parameters

svn path=/trunk/; revision=779

15 years agoRespect path ordering for unversioned requires
Colin Walters [Tue, 21 Oct 2008 18:41:36 +0000 (18:41 +0000)]
Respect path ordering for unversioned requires

svn path=/trunk/; revision=778

15 years agoSubmit after session in PEP8 interrogation room
Colin Walters [Tue, 21 Oct 2008 18:25:34 +0000 (18:25 +0000)]
Submit after session in PEP8 interrogation room

svn path=/trunk/; revision=777

15 years agoWrite out throws attribute
Colin Walters [Tue, 21 Oct 2008 18:20:25 +0000 (18:20 +0000)]
Write out throws attribute

svn path=/trunk/; revision=776

15 years agoFor string parameters allow transfer annotation to override the standard
Owen Taylor [Tue, 21 Oct 2008 17:41:32 +0000 (17:41 +0000)]
For string parameters allow transfer annotation to override the standard

2008-10-21  Owen Taylor  <otaylor@redhat.com>

        * giscanner/transformer.py: For string parameters allow transfer annotation
        to override the standard automatic guessing based on 'const'.

svn path=/trunk/; revision=775

15 years agoAdd missing whitespace to make pep8 happy
Johan Dahlin [Tue, 21 Oct 2008 17:28:16 +0000 (17:28 +0000)]
Add missing whitespace to make pep8 happy

svn path=/trunk/; revision=774

15 years agoBug 557241 – "throws" flag for functions
Johan Bilien [Tue, 21 Oct 2008 17:04:11 +0000 (17:04 +0000)]
Bug 557241 – "throws" flag for functions

2008-10-21  Johan Bilien  <jobi@via.ecp.fr>

Bug 557241 – "throws" flag for functions

* tests/scanner/drawable-1.0-expected.gir,
tests/scanner/drawable-injected-1.0-expected.gir,
tests/scanner/drawable.[ch]: add simple test for throwing
function (has GError ** as last argument)

* giscanner/ast.py: add a 'throws' flag to Function
* giscanner/glibtransformer.py: if a function's last paramerter is
a GError, set the 'throws' flag and remove that parameter
* giscanner/girwriter.py: write out the 'throws' attribute
* giscanner/girparser.py: support parsing the 'throws' attribute

* tests/repository/gitestthrows.c: add a simple test to check the
throws flag in a typelib and invoke the function

* girepository/ginfo.c, girepository/girnode.[ch],
girepository/girnode.h, girepository/girparser.c,
girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag

* girepository/ginvoke.c: if a function throws, add a GError as last
arguments, and propagate the error to the invoker.

svn path=/trunk/; revision=773

15 years agoChangeLog
Tommi Komulainen [Tue, 21 Oct 2008 16:58:23 +0000 (16:58 +0000)]
ChangeLog

svn path=/trunk/; revision=772

15 years agoWarn if we see annotations for unknown parameters
Tommi Komulainen [Tue, 21 Oct 2008 16:58:20 +0000 (16:58 +0000)]
Warn if we see annotations for unknown parameters

* giscanner/transformer.py (_create_parameters): Warn if we see
annotations for unknown parameters. If .h and .c files name
parameters differently, the annotations may be lost.

svn path=/trunk/; revision=771

15 years agoRemove leftover raise SystemExit.
Johan Dahlin [Tue, 21 Oct 2008 15:40:23 +0000 (15:40 +0000)]
Remove leftover raise SystemExit.

svn path=/trunk/; revision=769

15 years agoRename GLib-assertions.txt to GLib-2.0.xpath and include it in EXTRA_DIST
Johan Dahlin [Tue, 21 Oct 2008 15:21:41 +0000 (15:21 +0000)]
Rename GLib-assertions.txt to GLib-2.0.xpath and include it in EXTRA_DIST

svn path=/trunk/; revision=768

15 years agoBug 556358 - don't use libtool internals
Johan Dahlin [Tue, 21 Oct 2008 14:51:33 +0000 (14:51 +0000)]
Bug 556358 - don't use libtool internals

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

        Bug 556358 - don't use libtool internals

        * giscanner/Makefile.am:
        * giscanner/libtoolimporter.py:
        * giscanner/sourcescanner.py:
        * giscanner/utils.py:
        Add a python meta importer and remove a libtool symlink hack.

svn path=/trunk/; revision=767

15 years agoBug 557147 - fix build; patch from Andreas Rottmann
Colin Walters [Mon, 20 Oct 2008 21:03:13 +0000 (21:03 +0000)]
Bug 557147 - fix build; patch from Andreas Rottmann

svn path=/trunk/; revision=766

15 years agoChangeLog
Colin Walters [Mon, 20 Oct 2008 20:54:32 +0000 (20:54 +0000)]
ChangeLog

svn path=/trunk/; revision=765

15 years agoTests for bug 556777
Colin Walters [Mon, 20 Oct 2008 20:54:30 +0000 (20:54 +0000)]
Tests for bug 556777

svn path=/trunk/; revision=764

15 years agoBug 556777 - validate properties
Colin Walters [Mon, 20 Oct 2008 20:54:28 +0000 (20:54 +0000)]
Bug 556777 - validate properties

svn path=/trunk/; revision=763

15 years agoAdd allow_invalid argument to resolver so we can find bad types
Colin Walters [Mon, 20 Oct 2008 20:54:27 +0000 (20:54 +0000)]
Add allow_invalid argument to resolver so we can find bad types

svn path=/trunk/; revision=762

15 years agoFix __repr__ for Property
Colin Walters [Mon, 20 Oct 2008 20:54:24 +0000 (20:54 +0000)]
Fix __repr__ for Property

svn path=/trunk/; revision=761

15 years agoWe are handling those return types, silly
Colin Walters [Mon, 20 Oct 2008 19:42:12 +0000 (19:42 +0000)]
We are handling those return types, silly

svn path=/trunk/; revision=760

15 years agoTweak changelog
Colin Walters [Mon, 20 Oct 2008 19:09:20 +0000 (19:09 +0000)]
Tweak changelog

svn path=/trunk/; revision=759

15 years agoAlso register g variants of default_array_types.
Colin Walters [Mon, 20 Oct 2008 19:09:17 +0000 (19:09 +0000)]
Also register g variants of default_array_types.

svn path=/trunk/; revision=758

15 years agoBug 557011 - Add g_object_info_get_abstract
Colin Walters [Mon, 20 Oct 2008 17:04:17 +0000 (17:04 +0000)]
Bug 557011 - Add g_object_info_get_abstract

svn path=/trunk/; revision=757

15 years agoChangeLog
Tommi Komulainen [Mon, 20 Oct 2008 13:45:24 +0000 (13:45 +0000)]
ChangeLog

svn path=/trunk/; revision=756

15 years agogiscanner: don't lose 'transfer-ownership' attributes when injecting
Tommi Komulainen [Mon, 20 Oct 2008 13:44:15 +0000 (13:44 +0000)]
giscanner: don't lose 'transfer-ownership' attributes when injecting

* giscanner/girparser.py (_parse_function): don't lose
'transfer-ownership' attributes when injecting, check for the
correct attribute

svn path=/trunk/; revision=755

15 years agoParse and ignore __asm.
Johan Dahlin [Sun, 19 Oct 2008 14:04:10 +0000 (14:04 +0000)]
Parse and ignore __asm.

2008-10-19  Johan Dahlin  <johan@gnome.org>

* giscanner/scannerlexer.l: Parse and ignore __asm.

svn path=/trunk/; revision=754

15 years agoChangeLog
Colin Walters [Sun, 19 Oct 2008 05:54:28 +0000 (05:54 +0000)]
ChangeLog

svn path=/trunk/; revision=753

15 years agoParse array length= to ensure it doesn't get lost from --inject
Colin Walters [Sun, 19 Oct 2008 05:54:24 +0000 (05:54 +0000)]
Parse array length= to ensure it doesn't get lost from --inject

svn path=/trunk/; revision=752

15 years agoChangeLog
Colin Walters [Sat, 18 Oct 2008 01:07:21 +0000 (01:07 +0000)]
ChangeLog

svn path=/trunk/; revision=751

15 years agoBug 556795 - Fix char ** regression
Colin Walters [Sat, 18 Oct 2008 01:07:16 +0000 (01:07 +0000)]
Bug 556795 - Fix char ** regression

svn path=/trunk/; revision=750

15 years agoChangeLog
Colin Walters [Sat, 18 Oct 2008 00:44:27 +0000 (00:44 +0000)]
ChangeLog

svn path=/trunk/; revision=749

15 years agoFix header ifdef
Colin Walters [Sat, 18 Oct 2008 00:44:23 +0000 (00:44 +0000)]
Fix header ifdef

svn path=/trunk/; revision=748

15 years agoAdd GtkFrob test that mirrors GtkSource
Colin Walters [Sat, 18 Oct 2008 00:44:19 +0000 (00:44 +0000)]
Add GtkFrob test that mirrors GtkSource

svn path=/trunk/; revision=747

15 years agoBug 556783 - namespace/prefix rework
Colin Walters [Sat, 18 Oct 2008 00:44:14 +0000 (00:44 +0000)]
Bug 556783 - namespace/prefix rework

svn path=/trunk/; revision=746

15 years agoBug 556732 – generate gir files consistently
Tommi Komulainen [Fri, 17 Oct 2008 14:59:23 +0000 (14:59 +0000)]
Bug 556732 – generate gir files consistently

2008-10-17  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556732 – generate gir files consistently

* girepository/girparser.c (start_parameter):
* tests/boxed.gir:
* tests/invoke/testfns-1.0.gir:
* tools/generate.c (write_callable_info): write
'transfer-ownership' attribute consistently with both
return-value and parameter elements

svn path=/trunk/; revision=745

15 years agoBug 556732 – generate gir files consistently
Tommi Komulainen [Fri, 17 Oct 2008 14:59:07 +0000 (14:59 +0000)]
Bug 556732 – generate gir files consistently

2008-10-17  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556732 – generate gir files consistently

* tools/generate.c (write_callable_info): write 'direction'
attribute only if other than 'in' to be consistent with
girwriter.py
* tests/boxed.gir:
* tests/object.gir: remove direction="in" which is the default

svn path=/trunk/; revision=744

15 years agoBug 556732 – generate gir files consistently
Tommi Komulainen [Fri, 17 Oct 2008 14:58:37 +0000 (14:58 +0000)]
Bug 556732 – generate gir files consistently

2008-10-17  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556732 – generate gir files consistently

* giscanner/ast.py (Field): add readable and writable properties
* giscanner/girparser.py (_parse_field): copy 'readable' and
'writable' attributes
* giscanner/transformer.py (_create_member): create fields as
read-write
* giscanner/glibtransformer.py (_introspect_object,
_pair_class_struct): make object instance and class fields
read-only
* giscanner/girwriter.py (_write_field):
* tools/generate.c (write_field_info): write field 'readable'
and 'writable' attributes only if non-default (read-only)
* girepository/girparser.c (start_field): in the absence of
attributes assume fields are read-only
* tests/boxed.gir:
* tests/struct.gir: remove redundant readable="1" from fields
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/utility-1.0-expected.gir: add writable="1" to
all record and union fields

svn path=/trunk/; revision=743

15 years agoBug 556732 – generate gir files consistently
Tommi Komulainen [Fri, 17 Oct 2008 14:57:38 +0000 (14:57 +0000)]
Bug 556732 – generate gir files consistently

2008-10-17  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556732 – generate gir files consistently

* giscanner/girwriter.py (_write_property): write properties
'construct' attribute if set
* tools/generate.c (write_property_info): write properties
'readable' and 'writable' attributes only if non-default
* tests/object.gir: add writable="0"
* tests/scanner/foo-1.0-expected.gir: add construct="1"

svn path=/trunk/; revision=742

15 years agoadded annotations
Johan Bilien [Fri, 17 Oct 2008 12:48:47 +0000 (12:48 +0000)]
added annotations

2008-10-17  Johan Bilien  <jobi@via.ecp.fr>

* gir/glib-2.0.c: added annotations

svn path=/trunk/; revision=741

15 years agoAlso assume direction=out for size_t*, ssize_t* arguments
Johan Bilien [Fri, 17 Oct 2008 11:01:14 +0000 (11:01 +0000)]
Also assume direction=out for size_t*, ssize_t* arguments

2008-10-16  Johan Bilien  <jobi@via.ecp.fr>

* giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
arguments

svn path=/trunk/; revision=740

15 years agoForgot these files
Johan Bilien [Fri, 17 Oct 2008 10:08:46 +0000 (10:08 +0000)]
Forgot these files

svn path=/trunk/; revision=739

15 years agoBug 556610 – giscanner/girparser.py drops parameter options
Johan Bilien [Fri, 17 Oct 2008 09:29:34 +0000 (09:29 +0000)]
Bug 556610 – giscanner/girparser.py drops parameter options

2008-10-16  Johan Bilien  <jobi@via.ecp.fr>

Bug 556610 – giscanner/girparser.py drops parameter options

* tests/scanner/drawable-injected-1.0-expected.gir,
tests/scanner/DrawableAdditions.xml: added simple test for injection.
* giscanner/ast.py: allow Parameter to take options in the constructor
* giscanner/girparser.py: parse parameter options (transfer,
direction, allow-none)

svn path=/trunk/; revision=738

15 years agoBug 556185 - [test for] segfault on g_callable_info_get_return_type
Colin Walters [Thu, 16 Oct 2008 22:19:21 +0000 (22:19 +0000)]
Bug 556185 - [test for] segfault on g_callable_info_get_return_type

svn path=/trunk/; revision=737

15 years agoChangeLog
Colin Walters [Thu, 16 Oct 2008 20:49:32 +0000 (20:49 +0000)]
ChangeLog

svn path=/trunk/; revision=736

15 years agoBug 556579 - Don't try to resolve names for structs/unions
Colin Walters [Thu, 16 Oct 2008 20:49:30 +0000 (20:49 +0000)]
Bug 556579 - Don't try to resolve names for structs/unions

svn path=/trunk/; revision=735

15 years agoBug 556432 - transfer annotations and defaults
Colin Walters [Thu, 16 Oct 2008 19:34:44 +0000 (19:34 +0000)]
Bug 556432 - transfer annotations and defaults

svn path=/trunk/; revision=734

15 years agoRemove unused var
Colin Walters [Thu, 16 Oct 2008 19:34:42 +0000 (19:34 +0000)]
Remove unused var

svn path=/trunk/; revision=733

15 years agoDefault GObject transfer to full
Colin Walters [Thu, 16 Oct 2008 19:34:39 +0000 (19:34 +0000)]
Default GObject transfer to full

svn path=/trunk/; revision=732

15 years agoenable bunch of gcc warning CFLAGS
Tommi Komulainen [Thu, 16 Oct 2008 17:37:46 +0000 (17:37 +0000)]
enable bunch of gcc warning CFLAGS

2008-10-16  Tommi Komulainen  <tommi.komulainen@iki.fi>

* configure.ac: enable bunch of gcc warning CFLAGS

svn path=/trunk/; revision=731

15 years agoBug 556543 – reduce compiler warnings
Tommi Komulainen [Thu, 16 Oct 2008 17:07:05 +0000 (17:07 +0000)]
Bug 556543 – reduce compiler warnings

2008-10-16  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556543 – reduce compiler warnings

* girepository/ginfo.c:
* girepository/girepository.c (register_internal,
count_interfaces, find_interface, find_namespace_version,
parse_version, g_irepository_require):
* girepository/girmodule.c (g_ir_module_build_typelib):
* girepository/girnode.c (init_stats, dump_stats,
_g_irnode_init_stats, _g_irnode_dump_stats,
g_ir_node_can_have_member):
* girepository/girparser.c (firstpass_end_element_handler,
locate_gir, parse_basic, parse_type_internal, resolve_aliases,
start_alias, start_type, end_type_top, parse_include, cleanup,
post_filter):
* girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
* giscanner/giscannermodule.c (directive_get_options,
type_get_child_list):
* giscanner/scannerlexer.l (parse_gtkdoc):
* giscanner/scannerparser.y (ctype_free):
* giscanner/sourcescanner.c:
* giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
* tests/types/gitesttypes.c:
* tools/compiler.c (main):
* tools/generate.c (write_repository): Remove unused variables
and code, add missing includes, declarations and case
statements.

svn path=/trunk/; revision=730

15 years agoBug 556541 – access union members through UnionBlob rather than
Tommi Komulainen [Thu, 16 Oct 2008 17:07:00 +0000 (17:07 +0000)]
Bug 556541 – access union members through UnionBlob rather than

2008-10-16  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556541 – access union members through UnionBlob rather than
StructBlob

* girepository/ginfo.c (g_union_info_find_method): access union
members through UnionBlob rather than StructBlob

svn path=/trunk/; revision=729

15 years agoInclude gir dir when running g-ir-generate so we work uninstalled
Colin Walters [Thu, 16 Oct 2008 17:00:21 +0000 (17:00 +0000)]
Include gir dir when running g-ir-generate so we work uninstalled

svn path=/trunk/; revision=728

15 years agoDon't use --typelib-xml, use g-ir-generate
Colin Walters [Thu, 16 Oct 2008 15:00:21 +0000 (15:00 +0000)]
Don't use --typelib-xml, use g-ir-generate

svn path=/trunk/; revision=727

15 years agoFix up g-ir-generate for new include= syntax
Colin Walters [Thu, 16 Oct 2008 13:16:30 +0000 (13:16 +0000)]
Fix up g-ir-generate for new include= syntax

svn path=/trunk/; revision=726

15 years agoChangeLog
Colin Walters [Thu, 16 Oct 2008 01:40:35 +0000 (01:40 +0000)]
ChangeLog

svn path=/trunk/; revision=725

15 years agoMerge branch 'bug556331-includecleanup'
Colin Walters [Thu, 16 Oct 2008 01:40:29 +0000 (01:40 +0000)]
Merge branch 'bug556331-includecleanup'

svn path=/trunk/; revision=724

15 years agoDisable check-local for now
Johan Dahlin [Wed, 15 Oct 2008 23:01:57 +0000 (23:01 +0000)]
Disable check-local for now

svn path=/trunk/; revision=723

15 years agoBug 556434 – unhandled interface/object/... member types
Tommi Komulainen [Wed, 15 Oct 2008 22:28:53 +0000 (22:28 +0000)]
Bug 556434 – unhandled interface/object/... member types

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556434 – unhandled interface/object/... member types

* girepository/girnode.c (g_ir_node_check_unhandled_members,
g_ir_node_build_typelib): Check all
interface/object/boxed/struct/union members are processed and
abort if they are not. (Mostly callbacks in structs, but also
fields in interfaces.)

svn path=/trunk/; revision=722

15 years agorefactor common code for processing members to a function
Tommi Komulainen [Wed, 15 Oct 2008 22:28:41 +0000 (22:28 +0000)]
refactor common code for processing members to a function

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* a/girepository/girnode.c (g_ir_node_build_members,
g_ir_node_build_typelib): refactor common code for processing
members to a function

svn path=/trunk/; revision=721

15 years agocheck that typelib -> gir -> typelib transformation is lossless (it's not)
Tommi Komulainen [Wed, 15 Oct 2008 22:18:37 +0000 (22:18 +0000)]
check that typelib -> gir -> typelib transformation is lossless (it's not)

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* gir/Makefile.am (check-local): check that typelib -> gir -> typelib
transformation is lossless (it's not)

svn path=/trunk/; revision=720

15 years agofix tests to compare xml to xml instead of typelib to xml, and stop on
Tommi Komulainen [Wed, 15 Oct 2008 22:08:53 +0000 (22:08 +0000)]
fix tests to compare xml to xml instead of typelib to xml, and stop on

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tests/Makefile.am: fix tests to compare xml to xml instead of
typelib to xml, and stop on error

svn path=/trunk/; revision=719

15 years agoreduce code duplication
Tommi Komulainen [Wed, 15 Oct 2008 22:08:40 +0000 (22:08 +0000)]
reduce code duplication

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tools/generate.c (write_type_name, write_type_info,
write_type_info, write_object_info, write_object_info,
write_interface_info, write_error_domain_info): reduce code
duplication

svn path=/trunk/; revision=718

15 years agoBug 556174 – parse types for lists etc.
Tommi Komulainen [Wed, 15 Oct 2008 22:08:26 +0000 (22:08 +0000)]
Bug 556174 – parse types for lists etc.

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556174 – parse types for lists etc.

* girepository/girparser.c (end_type_recurse):
* tests/boxed.gir:
* tools/generate.c (write_type_info, write_field_info,
write_callable_info, write_callable_info, write_constant_info,
write_property_info): use nested <type>s for lists and hashes

svn path=/trunk/; revision=717

15 years agoremove trailing whitespace from inside elements to match g-ir-generate
Tommi Komulainen [Wed, 15 Oct 2008 22:08:11 +0000 (22:08 +0000)]
remove trailing whitespace from inside elements to match g-ir-generate

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tests/enum.gir:
* tests/object.gir: remove trailing whitespace from inside
elements to match g-ir-generate output

svn path=/trunk/; revision=716

15 years agoquote printf arguments so that we don't generate invalid XML by writing
Tommi Komulainen [Wed, 15 Oct 2008 22:07:57 +0000 (22:07 +0000)]
quote printf arguments so that we don't generate invalid XML by writing

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tools/generate.c (xml_printf): quote printf arguments so that
we don't generate invalid XML by writing unescaped double quotes
and such in attributes

svn path=/trunk/; revision=715

15 years agoremove unused indent parameters, xmlwriter keeps track of necessary
Tommi Komulainen [Wed, 15 Oct 2008 22:07:33 +0000 (22:07 +0000)]
remove unused indent parameters, xmlwriter keeps track of necessary

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tools/generate.c (write_field_info, write_callable_info,
write_function_info, write_callback_info, write_struct_info,
write_constant_value, write_signal_info, write_vfunc_info,
write_object_info, write_interface_info, write_union_info,
write_repository): remove unused indent parameters, xmlwriter
keeps track of necessary indentation

svn path=/trunk/; revision=714

15 years agoKeep track of generated XML tree and handle indentation and closing tags
Tommi Komulainen [Wed, 15 Oct 2008 22:06:52 +0000 (22:06 +0000)]
Keep track of generated XML tree and handle indentation and closing tags

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tools/generate.c (xml_element_new, xml_element_free,
xml_start_element, xml_end_element, xml_end_element_unchecked,
xml_open, xml_close): Keep track of generated XML tree and
handle indentation and closing tags properly.
(write_field_info, write_callable_info, write_function_info,
write_callback_info, write_struct_info, write_value_info,
write_constant_info, write_enum_info, write_signal_info,
write_vfunc_info, write_property_info, write_object_info,
write_interface_info, write_error_domain_info, write_union_info,
write_repository): Use xml_start_element and xml_end_element to
open/close tags.

svn path=/trunk/; revision=713

15 years agowrap all FILE access to go through simple xmlwriter
Tommi Komulainen [Wed, 15 Oct 2008 22:06:37 +0000 (22:06 +0000)]
wrap all FILE access to go through simple xmlwriter

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
(write_type_name, write_type_info, write_field_info,
write_callable_info, write_function_info, write_callback_info,
write_struct_info, write_value_info, write_constant_value,
write_constant_info, write_enum_info, write_signal_info,
write_vfunc_info, write_property_info, write_object_info,
write_interface_info, write_error_domain_info, write_union_info,
write_repository): wrap all FILE access to go through simple xmlwriter

svn path=/trunk/; revision=712

15 years agoBug 556400 – Fails to build on OS X 10.4
Tommi Komulainen [Wed, 15 Oct 2008 20:44:29 +0000 (20:44 +0000)]
Bug 556400 – Fails to build on OS X 10.4

2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

Bug 556400 – Fails to build on OS X 10.4

* configure.ac: check for functions backtrace and backtrace_symbols
* girepository/girparser.c (backtrace_stderr): Comment out
implementation if the functions are not available.
* gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
directory for better portability

svn path=/trunk/; revision=711