Colin Walters [Wed, 14 Jul 2010 15:59:11 +0000 (11:59 -0400)]
[girepository] Actually verify header of loaded typelibs in g_irepository_require
Take a GError * for typelib loading code, validate the header. This
fixes bizarre errors from gjs where g_irepository_require would happily
load old typelibs.
Colin Walters [Mon, 12 Jul 2010 14:27:03 +0000 (10:27 -0400)]
Bump for unstable series
Colin Walters [Mon, 12 Jul 2010 14:26:50 +0000 (10:26 -0400)]
Release 0.9.2
Colin Walters [Mon, 12 Jul 2010 15:05:56 +0000 (11:05 -0400)]
Don't conditionalize reference/ build on gtk-doc being enabled
gtk-doc already does that for us
Colin Walters [Mon, 12 Jul 2010 14:31:26 +0000 (10:31 -0400)]
Quote url for AC_INIT to pacify autoconf
Colin Walters [Wed, 7 Jul 2010 18:07:17 +0000 (14:07 -0400)]
Don't include machine-dependent integral types in the typelib
Previously we had both e.g. GI_TYPE_TAG_LONG and GI_TYPE_TAG_INT64,
but in fact the typelib is already machine-specific, so it makes sense
to just encode this as a fixed type. The .gir remains abstract.
We also remove size_t from the typelib; one would never want to treat
it differently than an integer.
time_t is removed as well; while bindings like gjs had special handling
to turn it into e.g. a JS Date object, I don't think we should encourage
people to use these POSIX types in their API. Use GTimeVal or the like
instead.
Because the typelib is now really machine-specific, we need to remove
the -expected.tgirs from git. (We could potentially add a check
which wasn't just a literal diff later)
https://bugzilla.gnome.org/show_bug.cgi?id=623774
Colin Walters [Thu, 8 Jul 2010 18:20:40 +0000 (14:20 -0400)]
Bump shared library version, typelib version
https://bugzilla.gnome.org/show_bug.cgi?id=623774
Colin Walters [Fri, 9 Jul 2010 18:15:27 +0000 (14:15 -0400)]
Fix up tests for last commit
Johan Dahlin [Fri, 9 Jul 2010 14:17:29 +0000 (11:17 -0300)]
Correctly quote printed shell commands
Johan Dahlin [Fri, 9 Jul 2010 13:20:59 +0000 (10:20 -0300)]
Print the command line instead of a python list
Johan Dahlin [Fri, 9 Jul 2010 13:20:57 +0000 (10:20 -0300)]
Remove trailing whitespace
Johan Dahlin [Sat, 12 Jun 2010 21:08:56 +0000 (18:08 -0300)]
Add support for non-GObject fundamental objects
This patch adds support for instantiable fundamental object types,
which are not GObject based. This is mostly interesting for being
able to support GstMiniObject's which are extensivly used in GStreamer.
Includes a big test case to the Everything module (inspired by
GstMiniObject) which should be used by language bindings who wishes to
test this functionallity.
This patch increases the size of the typelib and breaks compatibility
with older typelibs.
https://bugzilla.gnome.org/show_bug.cgi?id=568913
Colin Walters [Wed, 7 Jul 2010 22:18:37 +0000 (18:18 -0400)]
Move doc to toplevel element, write <any> for unknown containers
Moving to <doc> allows us to better preserve whitespace. XML has no
facility for whitespace-preserving attributes.
Second, for arrays and lists, both types with unknown element_type can
occur in the current scanner; it's least wrong if we write out an
<any> type.
Colin Walters [Fri, 25 Jun 2010 17:23:49 +0000 (13:23 -0400)]
In verbose mode, print out the dump compilation
When debugging the dumper, it's extremely useful to be able
to see the argument it's passing to the compiler/linker.
This patch makes g-ir-scanner work the same way as libtool basically;
we default to printing out stuff, and add a --quiet option.
The Makefile.introspection handles passing --quiet automatically.
https://bugzilla.gnome.org/show_bug.cgi?id=622751
Colin Walters [Tue, 29 Jun 2010 21:13:52 +0000 (17:13 -0400)]
[cairo-1.0] Add cairo_rectangle_int_t
Colin Walters [Tue, 29 Jun 2010 20:19:07 +0000 (16:19 -0400)]
[cairo-1.0.gir] Add cairo_region_t
Colin Walters [Tue, 29 Jun 2010 14:13:41 +0000 (10:13 -0400)]
Post-release version bump
Colin Walters [Tue, 29 Jun 2010 14:08:54 +0000 (10:08 -0400)]
Bump version to 0.9.0
Colin Walters [Fri, 25 Jun 2010 17:53:41 +0000 (13:53 -0400)]
Revert "fix bug#605156 by ordering libtool archives that may pull in system"
This reverts commit
e14bdebab725263c3d6f97267090cbf5d06b99d2. While
that commit fixed things in some cases, it broke others. I think the
problem people are running into here that we actually need the library
path order to be:
.:$BUILD_ROOT:/usr
Ensure that the middle happens by explicitly calling pkg-config.
https://bugzilla.gnome.org/show_bug.cgi?id=605156
Colin Walters [Fri, 25 Jun 2010 20:02:15 +0000 (16:02 -0400)]
Fix annotations for g_get_system_*
Colin Walters [Fri, 25 Jun 2010 15:45:55 +0000 (11:45 -0400)]
Remove trailing semicolon
Michael Meeks [Fri, 25 Jun 2010 14:38:18 +0000 (15:38 +0100)]
fix bug#605156 by ordering libtool archives that may pull in system
paths at the end of the libtool command-line
Colin Walters [Fri, 25 Jun 2010 12:07:27 +0000 (08:07 -0400)]
Move pkg-config calls before --library and --program
We need our just-built library path to override what we have
from pkg-config.
https://bugzilla.gnome.org/show_bug.cgi?id=605156
Colin Walters [Fri, 25 Jun 2010 14:00:17 +0000 (10:00 -0400)]
Initialize value member
Colin Walters [Thu, 24 Jun 2010 20:39:35 +0000 (16:39 -0400)]
Clean up annotation parsing, don't try to parse invalid annotations
The old parser tried to parse:
@foo: some text here (other text)
Reject this. We strictly require another colon at the end to parse
the text in between as (option) (other option).
Futher ensure we only attempt to do option parse if we find something
that matches the strict regexp ([A-Za-z]+). This could be tightened
further.
TODO: Have a warning for something that looks like an annotation,
but isn't.
https://bugzilla.gnome.org/show_bug.cgi?id=622659
David Zeuthen [Tue, 15 Jun 2010 15:01:37 +0000 (11:01 -0400)]
Allow attributes on parameters and return values
Any annotation where the key has a dot in the name will go into the
attribute list. For example
* @arg: (foo.bar baz): some arg
the parameter @arg will get the attribute with key foo.bar and value
baz. This also works for.
* Returns: (foo.bar2 baz2): the return value
Also add tests for this new feature.
See https://bugzilla.gnome.org/show_bug.cgi?id=571548
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Tue, 15 Jun 2010 14:50:42 +0000 (10:50 -0400)]
Attribute bug-fixes
Rectify an assumption that nodes are ordered according to offset
- since this assumption was not true, attributes ended up being not
ordered either and the bsearch() when looking up attributes failed
mysteriously. Instead of making such assumptions, simply sort the
list of nodes we want to extract attributes from.
The total attribute size computation was wrong as we didn't properly
descend into subnodes. This resulted in memory access violations
when writing the typelib (because not enough data was allocated).
Instead of having a separate function for this, just include the
attribute size in the existing function.
See https://bugzilla.gnome.org/show_bug.cgi?id=571548
Signed-off-by: David Zeuthen <davidz@redhat.com>
Colin Walters [Tue, 22 Jun 2010 22:03:36 +0000 (18:03 -0400)]
[girparser] Remove backtrace()
It's not useful; we never got good info from it, and modern operating
systems ship with crash catching systems.
Johan Dahlin [Tue, 22 Jun 2010 17:27:54 +0000 (14:27 -0300)]
[glibtransformer] Fix typo
Colin Walters [Tue, 22 Jun 2010 17:19:23 +0000 (13:19 -0400)]
Walk GLibBoxed
We need to be processing varargs on these.
Johan Dahlin [Tue, 22 Jun 2010 13:17:02 +0000 (10:17 -0300)]
[giregisteredinfo] A Boxed is also a registered type
Johan Dahlin [Tue, 22 Jun 2010 12:49:37 +0000 (09:49 -0300)]
Fix make check broken by Danielle
Johan Dahlin [Mon, 21 Jun 2010 22:24:46 +0000 (19:24 -0300)]
[GIMarshallingTest] Add GByteArray test API
Johan Dahlin [Tue, 22 Jun 2010 12:47:26 +0000 (09:47 -0300)]
[annotationparser] Reuse method for determining array type
Danielle Madeley [Tue, 22 Jun 2010 04:36:36 +0000 (14:36 +1000)]
Merge branch 'gvalue-tests'
Danielle Madeley [Fri, 18 Jun 2010 05:30:55 +0000 (15:30 +1000)]
Add tests to Everything for items stored in GValues
Johan Dahlin [Mon, 21 Jun 2010 22:27:27 +0000 (19:27 -0300)]
Merge remote branch 'origin'
Alan Knowles [Mon, 21 Jun 2010 22:21:24 +0000 (06:21 +0800)]
GIRepository generation broke by code changes
Include all the Info files, and make sure girepository.h is first in the include order
Colin Walters [Sat, 19 Jun 2010 15:30:32 +0000 (11:30 -0400)]
Fix trailing whitespace
Johan Dahlin [Fri, 18 Jun 2010 01:29:48 +0000 (22:29 -0300)]
[gir] Pass in --warn-all/error to our libs
Pass in --warn-all/--warn-error to all the libraries that
are under our control so we can dogfood.
Johan Dahlin [Thu, 17 Jun 2010 20:33:05 +0000 (17:33 -0300)]
Add a .dir-locals file
Colin Walters [Thu, 17 Jun 2010 21:40:26 +0000 (17:40 -0400)]
Better error message for incompatible versions
Colin Walters [Thu, 17 Jun 2010 00:34:18 +0000 (20:34 -0400)]
Support introspectable=no attribute, add warnings framework
This work allows us to move closer to replacing gtk-doc, among other
things. We add a generic attribute "introspectable", and inside the
typelib compiler if we see "introspectable=no", we don't put it in the
typelib. This replaces the hackish pre-filter for varargs with a much
more generic mechanism.
The varargs is now handled in the scanner, and we emit
introspectable=no for them.
Add generic metadata to Node with references to file/line/column,
which currently comes from symbols.
Add scanner options --warn-all and --warn-error.
https://bugzilla.gnome.org/show_bug.cgi?id=621570
Colin Walters [Thu, 17 Jun 2010 17:05:16 +0000 (13:05 -0400)]
Update versions
Colin Walters [Thu, 17 Jun 2010 14:38:39 +0000 (10:38 -0400)]
More explicitly document how we'll use the version= attribute on repository
I want to start bumping it on incompatible .gir changes.
https://bugzilla.gnome.org/show_bug.cgi?id=621895
Johan Dahlin [Thu, 17 Jun 2010 13:27:42 +0000 (10:27 -0300)]
[cachestore] Properly clean the cache
Propertly clear the cache after a version invalidation.
Send in the full filename to unlink, not just the basename.
Johan Dahlin [Thu, 17 Jun 2010 12:14:04 +0000 (09:14 -0300)]
Revert "Support introspectable=no attribute, add warnings framework"
This reverts commit
074192b89c6afcdd7f062f03989972e44334b8bf.
Colin Walters [Thu, 17 Jun 2010 00:34:18 +0000 (20:34 -0400)]
Support introspectable=no attribute, add warnings framework
This work allows us to move closer to replacing gtk-doc, among other
things. We add a generic attribute "introspectable", and inside the
typelib compiler if we see "introspectable=no", we don't put it in the
typelib. This replaces the hackish pre-filter for varargs with a much
more generic mechanism.
The varargs is now handled in the scanner, and we emit
introspectable=no for them.
Add generic metadata to Node with references to file/line/column,
which currently comes from symbols.
Add scanner options --Wall and --Werror.
Colin Walters [Tue, 15 Jun 2010 17:05:59 +0000 (13:05 -0400)]
Apply annotations from invoker to vfunc
We typically expect people to annotate e.g. GList for virtuals
on the invoker, not on the virtual slot, since the invoker feels
like the public API.
https://bugzilla.gnome.org/show_bug.cgi?id=621570
Colin Walters [Tue, 15 Jun 2010 17:08:05 +0000 (13:08 -0400)]
Add some more Gio annotations
https://bugzilla.gnome.org/show_bug.cgi?id=621570
Johan Dahlin [Sat, 12 Jun 2010 18:54:23 +0000 (15:54 -0300)]
[glibtransformer] Refactor field adding to a separate method
Johan Dahlin [Sat, 12 Jun 2010 18:53:59 +0000 (15:53 -0300)]
[glibtransformer] not not x -> bool(x)
Johan Dahlin [Sat, 12 Jun 2010 14:31:06 +0000 (11:31 -0300)]
[girparser] Annotate return transfer for public API
Johan Dahlin [Sat, 12 Jun 2010 14:22:26 +0000 (11:22 -0300)]
[girwriter] Use GSlice
Johan Dahlin [Sat, 12 Jun 2010 14:14:36 +0000 (11:14 -0300)]
[GIVInterfaceInfo] Document and check args
Johan Dahlin [Sat, 12 Jun 2010 14:14:22 +0000 (11:14 -0300)]
[GIObjectInfo] Fix a typo and document a func
Johan Dahlin [Sat, 12 Jun 2010 00:06:31 +0000 (21:06 -0300)]
[gir_writer_write] Document properly
Johan Dahlin [Sat, 12 Jun 2010 00:06:02 +0000 (21:06 -0300)]
[g_property_info_get_flags] Document properly
Johan Dahlin [Sat, 12 Jun 2010 00:05:48 +0000 (21:05 -0300)]
[docs] Add missing symbols
Johan Dahlin [Sat, 12 Jun 2010 00:05:42 +0000 (21:05 -0300)]
[gitypelib-internal.h] Add missing <public>
Johan Dahlin [Fri, 11 Jun 2010 23:51:32 +0000 (20:51 -0300)]
[GIObjectInfo] Document and check types
Johan Dahlin [Fri, 11 Jun 2010 23:16:29 +0000 (20:16 -0300)]
[GICallableInfo] Fix a typo in the doc
Johan Dahlin [Fri, 11 Jun 2010 23:16:00 +0000 (20:16 -0300)]
[docs] Add struct hierarchy to each section
Johan Dahlin [Fri, 11 Jun 2010 14:11:01 +0000 (11:11 -0300)]
[GIVFuncInfo] Document and check args
Johan Dahlin [Fri, 11 Jun 2010 14:10:52 +0000 (11:10 -0300)]
[GIPropertyInfo] Document and check args
Johan Dahlin [Thu, 10 Jun 2010 17:27:16 +0000 (14:27 -0300)]
[cachestore] Add versioning
Version the cache by checking the SHA1 of the content of all
python source files. If the SHA1 hash differs, just regenerate the
cache.
https://bugzilla.gnome.org/show_bug.cgi?id=568842
Tomeu Vizoso [Wed, 9 Jun 2010 08:26:26 +0000 (10:26 +0200)]
Allow for methods in GLib
* girepository/gitypelib.c: Don't complain about constructors
returning types other than objects or interfaces if the container
type isn't an object or interface itself.
* giscanner/glibtransformer.py: Don't give up parsing a method just
because it's in the GLib namespace.
https://bugzilla.gnome.org/show_bug.cgi?id=621069
Tomeu Vizoso [Tue, 8 Jun 2010 17:20:06 +0000 (19:20 +0200)]
Use a default value for transfer-ownership in properties.
Tomeu Vizoso [Tue, 8 Jun 2010 14:40:35 +0000 (16:40 +0200)]
Support the (transfer) annotation for properties.
* girepository/*: Add g_property_info_get_ownership_transfer() and write
the transfer attribute of properties into the typelib.
* giscanner/*: Parse the (transfer) annotation and write it into the .gir.
* tools/generate.c: Read the transfer annotation for properties and write
to the .tgir.
https://bugzilla.gnome.org/show_bug.cgi?id=620484
Johan Dahlin [Tue, 8 Jun 2010 14:25:12 +0000 (11:25 -0300)]
Philip, you didn't write all of this
Tomeu Vizoso [Tue, 8 Jun 2010 13:42:10 +0000 (15:42 +0200)]
Annotate GVariant as a foreign struct
Johan Dahlin [Mon, 7 Jun 2010 20:20:02 +0000 (17:20 -0300)]
[gisignalinfo] Document and check parameters
Steve Frécinaux [Mon, 7 Jun 2010 17:58:57 +0000 (19:58 +0200)]
Makefile.introspection: add support for gir_LDFLAGS
This allows specifying LDFLAGS for the introspection scanner.
LDFLAGS are currently just appended to the CFLAGS as the current scanner
doesn't make the difference between both, but it looked wrong to include
LDFLAGS in the middle of CFLAGS for g-ir-scanner.
https://bugzilla.gnome.org/show_bug.cgi?id=620875
Johan Dahlin [Mon, 7 Jun 2010 13:52:43 +0000 (10:52 -0300)]
[girwriter] Refactor out of generate.c
Move out the girwriter out of generate.c. Still a private API,
but that will probably change in the future.
Johan Dahlin [Mon, 7 Jun 2010 13:41:00 +0000 (10:41 -0300)]
[generate] Get rid of globals
Get rid of all globals in gir generator, in preparation for
moving all code into libgirepository
Johan Dahlin [Mon, 7 Jun 2010 13:29:53 +0000 (10:29 -0300)]
[Makefile.am] Reindent
Johan Dahlin [Mon, 7 Jun 2010 02:22:57 +0000 (23:22 -0300)]
[girepository] Kill girffi-private.h
Johan Dahlin [Mon, 7 Jun 2010 02:17:46 +0000 (23:17 -0300)]
[girepository] Don't include girffi.h everywhere
Johan Dahlin [Mon, 7 Jun 2010 02:04:15 +0000 (23:04 -0300)]
[giregisteredtypeinfo] Document and check parameters
Johan Dahlin [Mon, 7 Jun 2010 01:57:28 +0000 (22:57 -0300)]
[gitypes] Remove a comment and move G_END_DECLS
Johan Dahlin [Mon, 7 Jun 2010 01:57:14 +0000 (22:57 -0300)]
[build] Install gistructinfo.h
Johan Dahlin [Mon, 7 Jun 2010 01:48:08 +0000 (22:48 -0300)]
[giconstantinfo] Document and check parameters
Johan Dahlin [Mon, 7 Jun 2010 01:47:50 +0000 (22:47 -0300)]
[gifieldinfo] Document g_field_info_get_flags
Johan Dahlin [Mon, 7 Jun 2010 01:47:21 +0000 (22:47 -0300)]
Remove left-over comments
Johan Dahlin [Mon, 7 Jun 2010 01:47:02 +0000 (22:47 -0300)]
[giregisteredtype] Flags have a GType
Johan Dahlin [Sun, 6 Jun 2010 22:53:41 +0000 (19:53 -0300)]
[gifunction.h] Move GIFunctionInfoFlags to gitypes.h
Johan Dahlin [Sun, 6 Jun 2010 22:52:12 +0000 (19:52 -0300)]
[girepository] Move the rest out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 22:28:35 +0000 (19:28 -0300)]
[girepository] Move GIRegisteredTypeInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 22:18:33 +0000 (19:18 -0300)]
[shlib] Use ldd on all non-Darwin platforms
Johan Dahlin [Sun, 6 Jun 2010 16:35:14 +0000 (13:35 -0300)]
[gifieldinfo] Document, indent and check params
Document the remaining functions, indent to match coding style
and check so that all info params are set and of the right type.
Johan Dahlin [Sun, 6 Jun 2010 16:22:29 +0000 (13:22 -0300)]
[gifunctioninfo] Move over invoke function
Move over g_function_info_invoke to gifunctioninfo.c
Johan Dahlin [Sun, 6 Jun 2010 16:15:14 +0000 (13:15 -0300)]
[gfield] Move over field set/get impl.
Move over the GIFieldInfo set/get value implementation
over to gifieldinfo.c
Johan Dahlin [Sun, 6 Jun 2010 16:11:23 +0000 (13:11 -0300)]
[girepository] Move GIFieldInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 16:06:30 +0000 (13:06 -0300)]
[girepository] Move GIEnumInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 16:01:26 +0000 (13:01 -0300)]
[girepository] Move GIErrorDomainInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 15:58:13 +0000 (12:58 -0300)]
[girepository] Move GITypeInfo out of ginfo.ch
Johan Dahlin [Sat, 5 Jun 2010 16:00:51 +0000 (13:00 -0300)]
[configure] Remove gcov leftover
Johan Dahlin [Sat, 5 Jun 2010 15:59:33 +0000 (12:59 -0300)]
[girepository] Move the enums
Move the est of the enums over to gitypes.h
Johan Dahlin [Sat, 5 Jun 2010 15:40:15 +0000 (12:40 -0300)]
[girepository] Move GIArgInfo out of ginfo.ch
Johan Dahlin [Sat, 5 Jun 2010 15:39:21 +0000 (12:39 -0300)]
[gitypes.h] Do not include gibaseinfo.h
To avoid cyclic dependencies