Owen Taylor [Sat, 1 Nov 2008 23:01:21 +0000 (23:01 +0000)]
Bug 558848 giparser.py: shared library should be optional
2008-11-01 Owen Taylor <otaylor@redhat.com>
Bug 558848 giparser.py: shared library should be optional
When parsing a .gir, allow the shared-library attribute
of <namespace/> to be missing: this corresponds to the handling
in libgirepository and elsewhere.
svn path=/trunk/; revision=860
Tommi Komulainen [Sat, 1 Nov 2008 18:21:55 +0000 (18:21 +0000)]
Bug 557898 – Fails to build on OSX 10.4
2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
* configure.ac: Check for $shrext_cmds that should be implicitly
available if you're using libtool >= 2.0. If undefined, call
libtool --config explicitly to get its value.
* girepository/gtypelib.c: Remove special case for (non-)Darwin
systems as unneeded.
svn path=/trunk/; revision=859
Colin Walters [Fri, 31 Oct 2008 22:34:22 +0000 (22:34 +0000)]
Clarify licensing status
svn path=/trunk/; revision=858
Johan Dahlin [Fri, 31 Oct 2008 21:27:47 +0000 (21:27 +0000)]
Remove trailing whitespace
svn path=/trunk/; revision=857
Johan Dahlin [Fri, 31 Oct 2008 21:19:11 +0000 (21:19 +0000)]
Post release version bump
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* configure.ac: Post release version bump
svn path=/trunk/; revision=856
Johan Dahlin [Fri, 31 Oct 2008 21:07:58 +0000 (21:07 +0000)]
=== 0.6.0 ===
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* NEWS:
* configure.ac:
* docs/release-checklist.txt:
0.6.0
svn path=/trunk/; revision=854
Johan Dahlin [Fri, 31 Oct 2008 19:59:40 +0000 (19:59 +0000)]
add an upload-release target Release process documentation
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* Makefile.am: add an upload-release target
* docs/release-checklist.txt:
Release process documentation
svn path=/trunk/; revision=853
Colin Walters [Fri, 31 Oct 2008 19:42:33 +0000 (19:42 +0000)]
Bug 558109 – _g_typelib_init fails to find shared libraries
svn path=/trunk/; revision=852
Johan Dahlin [Fri, 31 Oct 2008 17:09:17 +0000 (17:09 +0000)]
Remove whitespace
svn path=/trunk/; revision=851
Johan Dahlin [Fri, 31 Oct 2008 13:27:28 +0000 (13:27 +0000)]
Document the renaming options.
2008-10-31 Johan Dahlin <jdahlin@async.com.br>
* docs/g-ir-scanner.1:
Document the renaming options.
svn path=/trunk/; revision=850
Tommi Komulainen [Fri, 31 Oct 2008 10:54:32 +0000 (10:54 +0000)]
List in-tree libraries first in LDADD / LIBADD
2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
* giscanner/Makefile.am:
* tests/invoke/Makefile.am:
* tests/repository/Makefile.am: List in-tree libraries first in
LDADD / LIBADD. If installed library is listed first, the
resulting binary will prefer installed version to one in .libs,
possibly making 'make check' behave strangely.
svn path=/trunk/; revision=849
Johan Dahlin [Thu, 30 Oct 2008 22:08:30 +0000 (22:08 +0000)]
Add --nsversion docs
svn path=/trunk/; revision=848
Tommi Komulainen [Thu, 30 Oct 2008 21:52:12 +0000 (21:52 +0000)]
map 'id' (ObjC) to 'any' type
2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
* giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
gir-repository from choking with gdk/quartz
svn path=/trunk/; revision=847
Johan Dahlin [Thu, 30 Oct 2008 20:42:30 +0000 (20:42 +0000)]
Write a C version of the xml namespace formatter. Saves 15% of the time it
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/giscannermodule.c (calc_attrs_length),
(pygi_collect_attributes):
* giscanner/xmlwriter.py:
Write a C version of the xml namespace formatter.
Saves 15% of the time it takes to create a gtk gir.
svn path=/trunk/; revision=846
Johan Dahlin [Thu, 30 Oct 2008 20:23:55 +0000 (20:23 +0000)]
Abstract attribute formatting to a function external to the XMLWriter
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/xmlwriter.py: Abstract attribute formatting
to a function external to the XMLWriter class.
svn path=/trunk/; revision=845
Johan Dahlin [Thu, 30 Oct 2008 18:45:54 +0000 (18:45 +0000)]
Parse __signed__ as signed
svn path=/trunk/; revision=844
Johan Dahlin [Thu, 30 Oct 2008 17:48:45 +0000 (17:48 +0000)]
Parse and discard __typeof and __attribute.
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/scannerlexer.l:
Parse and discard __typeof and __attribute.
svn path=/trunk/; revision=843
Johan Dahlin [Thu, 30 Oct 2008 17:12:51 +0000 (17:12 +0000)]
Remove arguments from the constructor, move them to separate accessors.
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/girparser.py:
Remove arguments from the constructor, move them to
separate accessors. Add a new parse_tree method
which takes an element tree instance.
* tools/g-ir-scanner:
Update callsite for this
* giscanner/Makefile.am:
* giscanner/cachestore.py:
* giscanner/transformer.py:
Cache the include parsing. Saves ~25% time when
creating vte (which includes everything up to gtk+).
svn path=/trunk/; revision=842
Colin Walters [Thu, 30 Oct 2008 16:55:56 +0000 (16:55 +0000)]
Don't reparse includes we've already processed
svn path=/trunk/; revision=841
Johan Dahlin [Thu, 30 Oct 2008 15:40:42 +0000 (15:40 +0000)]
Look in XDG_DATA_DIR/gir, really.
svn path=/trunk/; revision=840
Johan Dahlin [Thu, 30 Oct 2008 15:37:19 +0000 (15:37 +0000)]
Rewrap and reorder includes
svn path=/trunk/; revision=839
Johan Dahlin [Thu, 30 Oct 2008 14:08:29 +0000 (14:08 +0000)]
Avoid parsing parameters, types etc when parsing includes. Should speed up
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/girparser.py:
* giscanner/transformer.py:
Avoid parsing parameters, types etc when parsing
includes. Should speed up include parsing a bit.
svn path=/trunk/; revision=838
Johan Dahlin [Thu, 30 Oct 2008 14:00:17 +0000 (14:00 +0000)]
Avoid big if/else and use a dispatch table like approach.
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/girparser.py:
Avoid big if/else and use a dispatch table like
approach.
svn path=/trunk/; revision=837
Johan Dahlin [Thu, 30 Oct 2008 13:37:55 +0000 (13:37 +0000)]
Clean up include parsing and registration.
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/transformer.py:
Clean up include parsing and registration.
svn path=/trunk/; revision=836
Johan Dahlin [Thu, 30 Oct 2008 13:37:02 +0000 (13:37 +0000)]
Run invoke & repository tests at last
svn path=/trunk/; revision=835
Johan Dahlin [Thu, 30 Oct 2008 13:27:38 +0000 (13:27 +0000)]
Clean up imports
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
* giscanner/transformer.py:
Clean up imports
svn path=/trunk/; revision=834
Johan Dahlin [Thu, 30 Oct 2008 02:07:43 +0000 (02:07 +0000)]
Bug 558383 – builddir != srcdir build fails if giscanner python module
2008-10-30 Johan Dahlin <jdahlin@async.com.br>
Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
* gir/Makefile.am:
construct PYTHONPATH just once
* tests/everything/Makefile.am:
* tests/scanner/Makefile.am:
add $(top_srcdir) to PYTHONPATH to
handle builddir != srcdir
* giscanner/libtoolimporter.py:
* giscanner/sourcescanner.py:
Make the libtoolimporter work when distchecking too.
Mostly based on patch by Tommi Komulainen
svn path=/trunk/; revision=833
Owen Taylor [Wed, 29 Oct 2008 20:36:51 +0000 (20:36 +0000)]
If a filename of an existing file is passed to --library, hunt for it
2008-10-29 Owen Taylor <otaylor@redhat.com>
* giscanner/glibtransformer.py: If a filename of an existing
file is passed to --library, hunt for it directly, rather than
searching for a corresponding library.
svn path=/trunk/; revision=832
Johan Dahlin [Wed, 29 Oct 2008 13:12:27 +0000 (13:12 +0000)]
Remove test/types
svn path=/trunk/; revision=831
Johan Dahlin [Wed, 29 Oct 2008 13:08:44 +0000 (13:08 +0000)]
Clean up the libtool importer a bit. Add a context so we can use it
2008-10-29 Johan Dahlin <jdahlin@async.com.br>
* giscanner/libtoolimporter.py:
* giscanner/sourcescanner.py:
Clean up the libtool importer a bit. Add a context so we
can use it through a with statement.
Don't just look in the current directory, look in the whole
sys.path.
svn path=/trunk/; revision=830
Tommi Komulainen [Wed, 29 Oct 2008 11:24:32 +0000 (11:24 +0000)]
ChangeLog
svn path=/trunk/; revision=828
Tommi Komulainen [Wed, 29 Oct 2008 11:24:23 +0000 (11:24 +0000)]
explicitly link libtool versioning with typelib versioning
* tests/everything/Makefile.am: explicitly link libtool
versioning with typelib versioning with variables
svn path=/trunk/; revision=827
Tommi Komulainen [Wed, 29 Oct 2008 11:24:14 +0000 (11:24 +0000)]
rename gitesttypes to Everything
* tests/everything/Makefile.am: build normal shared library
libgirepository-everything.so.1.0.0 and corresponding typelib
Everything-1.0.typelib
svn path=/trunk/; revision=826
Tommi Komulainen [Wed, 29 Oct 2008 11:24:07 +0000 (11:24 +0000)]
move tests/types to tests/everything
* configure.ac:
* tests/Makefile.am:
* tests/types/Makefile.am -> tests/everything/Makefile.am
* tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
* tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
svn path=/trunk/; revision=825
Tommi Komulainen [Wed, 29 Oct 2008 10:36:47 +0000 (10:36 +0000)]
fix distcheck
* tests/scanner/Makefile.am: stop %.typelib rule from building
%-expected.tgir (via %-expected.typelib)
svn path=/trunk/; revision=824
Tommi Komulainen [Wed, 29 Oct 2008 10:13:16 +0000 (10:13 +0000)]
distcheck fixes
* gir/Makefile.am:
* tests/Makefile.am:
* tests/invoke/Makefile.am:
* tests/scanner/Makefile.am: Add missing files to EXTRA_DIST and
CLEANFILES, reference files using $(srcdir)
svn path=/trunk/; revision=823
Johan Bilien [Tue, 28 Oct 2008 19:17:44 +0000 (19:17 +0000)]
add LD_LIBRARY_PATH to LPATH before calling ld.
2008-10-28 Johan Bilien <jobi@via.ecp.fr>
* tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
svn path=/trunk/; revision=822
Johan Bilien [Mon, 27 Oct 2008 18:45:14 +0000 (18:45 +0000)]
add allow-none annotations, based on the pygobject .defs file
2008-10-27 Johan Bilien <jobi@via.ecp.fr>
* gio/gio-2.0.c: add allow-none annotations, based on the pygobject
.defs file
svn path=/trunk/; revision=821
Johan Bilien [Mon, 27 Oct 2008 15:03:18 +0000 (15:03 +0000)]
Bug 558068 – when invoking a method, offset the in arguments by one, not
2008-10-27 Johan Bilien <jobi@via.ecp.fr>
Bug 558068 – when invoking a method, offset the in arguments by one,
not the out
* tests/invoke/invoke.c, tests/invoke/testfns.c,
tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
* girepository/ginvoke.c: do not offset the index of given out
arguments by one for methods, "this" is provided as in argument only.
svn path=/trunk/; revision=820
Johan Bilien [Mon, 27 Oct 2008 11:24:29 +0000 (11:24 +0000)]
add annotation for g_file_delete
2008-10-27 Johan Bilien <jobi@via.ecp.fr>
* gir/gio-2.0.c: add annotation for g_file_delete
svn path=/trunk/; revision=819
Tommi Komulainen [Mon, 27 Oct 2008 11:17:28 +0000 (11:17 +0000)]
Bug 558062 – provide and use paths in the .pc file
2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
* gobject-introspection-1.0.pc.in: provide typelibdir variable
for where .typelibs should be installed (callers shouldn't need
to construct paths from bits and pieces)
svn path=/trunk/; revision=818
Tommi Komulainen [Mon, 27 Oct 2008 10:02:01 +0000 (10:02 +0000)]
g_irepository_require() returns GTypelib now, fix warning
svn path=/trunk/; revision=817
Colin Walters [Sat, 25 Oct 2008 15:48:50 +0000 (15:48 +0000)]
Bug 557791 – g_irepository_require() could return a GTypelib *
svn path=/trunk/; revision=816
Colin Walters [Sat, 25 Oct 2008 15:42:20 +0000 (15:42 +0000)]
Bug 557788 – Return types for constructors in generated typelib bogus
svn path=/trunk/; revision=815
Colin Walters [Sat, 25 Oct 2008 15:20:54 +0000 (15:20 +0000)]
Bug 557786 - support fixed size arrays
svn path=/trunk/; revision=814
Colin Walters [Sat, 25 Oct 2008 14:59:25 +0000 (14:59 +0000)]
Bug 557076 - move typelibs to $libdir
svn path=/trunk/; revision=813
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
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
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
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
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
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
Johan Dahlin [Fri, 24 Oct 2008 07:38:39 +0000 (07:38 +0000)]
Add John Finlay
svn path=/trunk/; revision=803
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
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
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
Colin Walters [Thu, 23 Oct 2008 18:47:27 +0000 (18:47 +0000)]
More noinst_ on tests/types
svn path=/trunk/; revision=799
Colin Walters [Thu, 23 Oct 2008 18:44:22 +0000 (18:44 +0000)]
tests/types should be noinst_
svn path=/trunk/; revision=798
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
Tommi Komulainen [Thu, 23 Oct 2008 17:40:31 +0000 (17:40 +0000)]
ChangeLog
svn path=/trunk/; revision=796
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
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
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
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
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
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
Tommi Komulainen [Thu, 23 Oct 2008 17:36:56 +0000 (17:36 +0000)]
fix foo_rectangle_add test
svn path=/trunk/; revision=789
Colin Walters [Thu, 23 Oct 2008 12:38:08 +0000 (12:38 +0000)]
Bug 556739 - transfer ownership heuristics
svn path=/trunk/; revision=788
Colin Walters [Thu, 23 Oct 2008 12:37:10 +0000 (12:37 +0000)]
Always write out transfer-ownership attribute
svn path=/trunk/; revision=787
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
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
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
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
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
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
Johan Dahlin [Wed, 22 Oct 2008 07:34:56 +0000 (07:34 +0000)]
Fix bug reference
svn path=/trunk/; revision=780
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
Colin Walters [Tue, 21 Oct 2008 18:41:36 +0000 (18:41 +0000)]
Respect path ordering for unversioned requires
svn path=/trunk/; revision=778
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
Colin Walters [Tue, 21 Oct 2008 18:20:25 +0000 (18:20 +0000)]
Write out throws attribute
svn path=/trunk/; revision=776
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
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
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
Tommi Komulainen [Tue, 21 Oct 2008 16:58:23 +0000 (16:58 +0000)]
ChangeLog
svn path=/trunk/; revision=772
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
Johan Dahlin [Tue, 21 Oct 2008 15:40:23 +0000 (15:40 +0000)]
Remove leftover raise SystemExit.
svn path=/trunk/; revision=769
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
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
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
Colin Walters [Mon, 20 Oct 2008 20:54:32 +0000 (20:54 +0000)]
ChangeLog
svn path=/trunk/; revision=765
Colin Walters [Mon, 20 Oct 2008 20:54:30 +0000 (20:54 +0000)]
Tests for bug 556777
svn path=/trunk/; revision=764
Colin Walters [Mon, 20 Oct 2008 20:54:28 +0000 (20:54 +0000)]
Bug 556777 - validate properties
svn path=/trunk/; revision=763
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
Colin Walters [Mon, 20 Oct 2008 20:54:24 +0000 (20:54 +0000)]
Fix __repr__ for Property
svn path=/trunk/; revision=761
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
Colin Walters [Mon, 20 Oct 2008 19:09:20 +0000 (19:09 +0000)]
Tweak changelog
svn path=/trunk/; revision=759
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
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
Tommi Komulainen [Mon, 20 Oct 2008 13:45:24 +0000 (13:45 +0000)]
ChangeLog
svn path=/trunk/; revision=756
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