Colin Walters [Tue, 23 Sep 2008 18:20:25 +0000 (18:20 +0000)]
Merge branch 'bug552566-timet/wip'
svn path=/trunk/; revision=624
Colin Walters [Sat, 20 Sep 2008 00:11:42 +0000 (00:11 +0000)]
Remove dbeug print
svn path=/trunk/; revision=623
Colin Walters [Sat, 20 Sep 2008 00:03:42 +0000 (00:03 +0000)]
ChangeLog
svn path=/trunk/; revision=622
Colin Walters [Sat, 20 Sep 2008 00:03:38 +0000 (00:03 +0000)]
Bug 552390: Handle capitialization like "DBus" more robustly
The to_underscores function was designed for use against prefixed
names; we need a separate function which will convert names like
DBusFoo into dbus_foo, not d_bus_foo.
svn path=/trunk/; revision=621
Colin Walters [Fri, 19 Sep 2008 23:43:38 +0000 (23:43 +0000)]
Strengthen check for interface vs basic types
Previously we were just checking "reserved", but to be more correct
we should check whether reserved2 is zero as well because it is
possible for offsets to have reserved = 0 but reserved2 != 0.
svn path=/trunk/; revision=620
Colin Walters [Fri, 19 Sep 2008 23:43:33 +0000 (23:43 +0000)]
Explode immediately if we don't recognize a type
svn path=/trunk/; revision=619
Colin Walters [Fri, 19 Sep 2008 18:54:50 +0000 (18:54 +0000)]
Fix indentation
svn path=/trunk/; revision=618
Colin Walters [Fri, 19 Sep 2008 16:16:22 +0000 (16:16 +0000)]
ChangeLog
svn path=/trunk/; revision=617
Colin Walters [Fri, 19 Sep 2008 16:16:18 +0000 (16:16 +0000)]
Add check to make sure we're not hitting out unresolved types
svn path=/trunk/; revision=616
Colin Walters [Fri, 19 Sep 2008 14:55:20 +0000 (14:55 +0000)]
Validate the "this" argument for methods
svn path=/trunk/; revision=615
Colin Walters [Fri, 19 Sep 2008 14:55:17 +0000 (14:55 +0000)]
Remove heuristic matching of methods to classes based on prefix
It was a broken hack that dated from when we handled underscoring
and capitalization conventions less well.
svn path=/trunk/; revision=614
Colin Walters [Fri, 19 Sep 2008 02:24:10 +0000 (02:24 +0000)]
ChangeLog
svn path=/trunk/; revision=613
Colin Walters [Fri, 19 Sep 2008 02:24:05 +0000 (02:24 +0000)]
Bug 522384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
On Darwin, the suffix for installed shared libraries (.dylib) is
different from loadable modules (.so). We use a bit of magic shell
script from Behdad Esfahbod to figure out the right suffix.
svn path=/trunk/; revision=612
Colin Walters [Tue, 16 Sep 2008 19:44:30 +0000 (19:44 +0000)]
Don't add spurious * if type is pointer; the is_pointer flag is enough
svn path=/trunk/; revision=611
Colin Walters [Tue, 16 Sep 2008 19:44:26 +0000 (19:44 +0000)]
Print out "any" for VOID+pointer, not "none"
* tools/generate.c: Print out "any" for VOID+pointer,
not "none"
svn path=/trunk/; revision=610
Johan Dahlin [Mon, 15 Sep 2008 20:09:26 +0000 (20:09 +0000)]
Add type_qualifier to SourceType.__members__
svn path=/trunk/; revision=609
Johan Dahlin [Mon, 15 Sep 2008 20:07:36 +0000 (20:07 +0000)]
Add a wrapper for type_qualifier as well.
2008-09-15 Johan Dahlin <johan@gnome.org>
* giscanner/sourcescanner.py (SourceType.type_qualifier): Add
a wrapper for type_qualifier as well.
svn path=/trunk/; revision=608
Colin Walters [Mon, 15 Sep 2008 18:45:02 +0000 (18:45 +0000)]
Remove debug print
svn path=/trunk/; revision=607
Colin Walters [Mon, 15 Sep 2008 18:39:45 +0000 (18:39 +0000)]
Fix up deprecated parsing - this commit went missing
svn path=/trunk/; revision=606
Colin Walters [Mon, 15 Sep 2008 14:53:05 +0000 (14:53 +0000)]
Fix up previous deprecated commit for review comments
svn path=/trunk/; revision=605
Colin Walters [Mon, 15 Sep 2008 14:46:58 +0000 (14:46 +0000)]
merge
svn path=/trunk/; revision=604
Colin Walters [Mon, 15 Sep 2008 14:46:19 +0000 (14:46 +0000)]
Bug 552065: Add deprecation information to GIR
* giscanner/ast.py: Add deprecation attributes.
* giscanner/girwriter.py: Write out deprecation data.
* girepository/girparser.c: Relax parsing; deprecated
attribute now includes freeform string.
* giscanner/scannerlexer.l: Parse Deprecated.
* giscanner/transformer.py: Look for deprecated attribute
on functions.
* tests/scanner/*: Add a Deprecated test.
svn path=/trunk/; revision=603
Tor Lillqvist [Sun, 14 Sep 2008 20:33:33 +0000 (20:33 +0000)]
Use $(EXEEXT).
2008-09-14 Tor Lillqvist <tml@novell.com>
* tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
svn path=/trunk/; revision=602
Colin Walters [Sun, 14 Sep 2008 19:36:45 +0000 (19:36 +0000)]
ChangeLog
svn path=/trunk/; revision=601
Colin Walters [Sun, 14 Sep 2008 19:36:43 +0000 (19:36 +0000)]
Bug 552067: Ignore functions with leading _
* giscanner/glibtransformer.py: Ignore functions with
leading '_'.
svn path=/trunk/; revision=600
Colin Walters [Sat, 13 Sep 2008 01:16:56 +0000 (01:16 +0000)]
ChangeLog
svn path=/trunk/; revision=599
Colin Walters [Sat, 13 Sep 2008 01:16:52 +0000 (01:16 +0000)]
Accept Gtk.Type as GType
* giscanner/glibtransformer.py: Accept Gtk.Type as GType;
this is a legacy alias.
svn path=/trunk/; revision=598
Colin Walters [Sat, 13 Sep 2008 01:10:36 +0000 (01:10 +0000)]
ChangeLog
svn path=/trunk/; revision=597
Colin Walters [Sat, 13 Sep 2008 01:10:33 +0000 (01:10 +0000)]
Bind pid_t to INT for vte
svn path=/trunk/; revision=596
Colin Walters [Sat, 13 Sep 2008 00:12:36 +0000 (00:12 +0000)]
ChangeLog
svn path=/trunk/; revision=595
Colin Walters [Sat, 13 Sep 2008 00:12:34 +0000 (00:12 +0000)]
Parse c:type for boxed records/unions; try resolving types using the GType names.
* giscanner/girparser.py: Parse c:type for boxed records/unions.
* giscanner/glibast.py: Avoid overwriting ctype.
* giscsanner/transformer.py: Try resolving types using the GType names.
svn path=/trunk/; revision=594
Colin Walters [Fri, 12 Sep 2008 22:44:31 +0000 (22:44 +0000)]
ChangeLog
svn path=/trunk/; revision=593
Colin Walters [Fri, 12 Sep 2008 22:44:29 +0000 (22:44 +0000)]
Add --xpath-assertions option to g-ir-scanner
* giscanner/minixpath.py: Code to run an "XPath"
assertion against an XML tree, taken from
gir-repository/gir/tests.py.
* giscanner/Makefile.am: Ship it.
* tools/g-ir-scanner: Add --xpath-assertions option.
* gir/GLib-assertions.txt: Add a few assertions.
* gir/Makefile.am: Run them.
svn path=/trunk/; revision=592
Colin Walters [Thu, 11 Sep 2008 16:38:21 +0000 (16:38 +0000)]
http://bugzilla.gnome.org/show_bug.cgi?id=551737
2008-09-11 Colin Walters <walters@verbum.org>
http://bugzilla.gnome.org/show_bug.cgi?id=551737
* giscanner/transformer.py: Fix strip_namespace_func to only strip
prefix if it ends with _. Tweak callback stripping to determine
based on presence of _ whether we need to use strip_namespace_func
or strip_namespace_object.
svn path=/trunk/; revision=591
Colin Walters [Thu, 11 Sep 2008 16:38:19 +0000 (16:38 +0000)]
Bug 551737: Fix missing "g" in callback names in Gio
* giscanner/transformer.py: Fix strip_namespace_func to only strip
prefix if it ends with _. Tweak callback stripping to determine
based on presence of _ whether we need to use strip_namespace_func
or strip_namespace_object.
svn path=/trunk/; revision=590
Owen Taylor [Tue, 9 Sep 2008 04:06:57 +0000 (04:06 +0000)]
Wether => Whether
2008-09-09 Owen Taylor <otaylor@redhat.com>
* docs/typelib-format.txt: Wether => Whether
svn path=/trunk/; revision=589
Colin Walters [Mon, 8 Sep 2008 22:24:12 +0000 (22:24 +0000)]
ChangeLog
svn path=/trunk/; revision=588
Colin Walters [Mon, 8 Sep 2008 22:24:09 +0000 (22:24 +0000)]
Write out and parse full GObject property information (readable, writable, etc)
* girepository/girparser.c: Default to "readable" for properties.
* giscanner/ast.py: Add readable, writable etc.
* giscanner/girwriter.py: Writ them.
* giscanner/glibtransformer.py: Inspect them.
* tests/*: Update.
svn path=/trunk/; revision=587
Colin Walters [Sun, 7 Sep 2008 22:24:39 +0000 (22:24 +0000)]
ChangeLog
svn path=/trunk/; revision=586
Colin Walters [Sun, 7 Sep 2008 22:24:37 +0000 (22:24 +0000)]
Add comment about g_thread_init call
svn path=/trunk/; revision=585
Colin Walters [Sun, 7 Sep 2008 22:10:39 +0000 (22:10 +0000)]
ChangeLog
svn path=/trunk/; revision=584
Colin Walters [Sun, 7 Sep 2008 22:10:37 +0000 (22:10 +0000)]
Call g_thread_init to make libsoup happy
* giscanner/cgobject.py: Also call g_thread_init.
svn path=/trunk/; revision=583
Colin Walters [Sun, 7 Sep 2008 22:06:53 +0000 (22:06 +0000)]
ChangeLog
svn path=/trunk/; revision=582
Colin Walters [Sun, 7 Sep 2008 22:06:51 +0000 (22:06 +0000)]
Don't strip prefix before stripping namespace for unions either
* giscanner/transformer.py: Fix regression by not
stripping prefix before stripping namespace for unions
either.
svn path=/trunk/; revision=581
Colin Walters [Sun, 7 Sep 2008 01:45:34 +0000 (01:45 +0000)]
ChangeLog
svn path=/trunk/; revision=580
Colin Walters [Sun, 7 Sep 2008 01:45:32 +0000 (01:45 +0000)]
ChangeLog
svn path=/trunk/; revision=579
Colin Walters [Sun, 7 Sep 2008 01:45:29 +0000 (01:45 +0000)]
Strip namespace GnomeKeyring -> gnome_keyring_
* giscanner/transformer.py: If a namespace contains
multiple caps, try stripping both gnomekeyring_ and
gnome_keyring_.
svn path=/trunk/; revision=578
Johan Dahlin [Sat, 6 Sep 2008 22:12:14 +0000 (22:12 +0000)]
Bug 551162 – giscanner does not recognize asm and __asm__ Patch by Jani
2008-09-07 Johan Dahlin <johan@gnome.org>
Bug 551162 – giscanner does not recognize asm and __asm__
* giscanner/scannerlexer.l:
Patch by Jani Monoses.
svn path=/trunk/; revision=577
Colin Walters [Sat, 6 Sep 2008 20:33:53 +0000 (20:33 +0000)]
ChangeLog
svn path=/trunk/; revision=576
Colin Walters [Sat, 6 Sep 2008 20:33:51 +0000 (20:33 +0000)]
Allow both union and struct to be boxed or not
* girepository/girnode.c: Allow gtype_name
and gtype_init in struct and union.
* girepository/girparser.c: Parse glib:
boxed bits for both structure and union.
* girepository/gtypelib.c: Don't barf
if structure is boxed.
* giscanner/girparser.py: Parse new XML
format.
* giscanner/girwriter.py: Write out new
XML format.
* giscanner/glibast.py: Define new classes
which are both Boxed and Struct/Union, as
well as an "Other" for everything else.
* giscanner/glibtransformer.py: Handle
boxed types specially; we try to merge
them with a struct/union if one exists,
otherwise fall back to generic boxed.
* tests/*: Update.
* tools/generate.c: Write out new format.
svn path=/trunk/; revision=575
Johan Dahlin [Sat, 6 Sep 2008 18:39:06 +0000 (18:39 +0000)]
Include stdlib.h
2008-09-06 Johan Dahlin <johan@gnome.org>
* giscanner/grealpath.h: Include stdlib.h
svn path=/trunk/; revision=574
Johan Dahlin [Sat, 6 Sep 2008 18:38:28 +0000 (18:38 +0000)]
Remove leading %
2008-09-06 Johan Dahlin <johan@gnome.org>
* docs/g-ir-generate.1: Remove leading %
svn path=/trunk/; revision=573
Colin Walters [Mon, 1 Sep 2008 18:54:04 +0000 (18:54 +0000)]
ChangeLog
svn path=/trunk/; revision=572
Colin Walters [Mon, 1 Sep 2008 18:52:34 +0000 (18:52 +0000)]
Look in c:type to determine pointer nature
* girepository/girparser.c: Look at c:type to determine
whether or not an item is a pointer.
svn path=/trunk/; revision=571
Johan Dahlin [Mon, 1 Sep 2008 13:45:56 +0000 (13:45 +0000)]
Set PYTHONPATH so the scanner can run even if you didn't install anything.
2008-09-01 Johan Dahlin <johan@gnome.org>
* tests/scanner/Makefile.am:
Set PYTHONPATH so the scanner can run
even if you didn't install anything.
svn path=/trunk/; revision=570
Johan Dahlin [Mon, 1 Sep 2008 07:38:49 +0000 (07:38 +0000)]
Post-release version bump
2008-09-01 Johan Dahlin <johan@gnome.org>
* configure.ac:
Post-release version bump
svn path=/trunk/; revision=569
Johan Dahlin [Mon, 1 Sep 2008 07:34:33 +0000 (07:34 +0000)]
=== 0.5.0 ===
2008-09-01 Johan Dahlin <johan@gnome.org>
* NEWS: Update
svn path=/trunk/; revision=567
Colin Walters [Mon, 1 Sep 2008 03:04:57 +0000 (03:04 +0000)]
ChangeLog
svn path=/trunk/; revision=566
Colin Walters [Mon, 1 Sep 2008 03:04:55 +0000 (03:04 +0000)]
Blacklist marshaling functions
* giscanner/glibtransformer.py: Blacklist marshaling
functions
svn path=/trunk/; revision=565
Colin Walters [Sun, 31 Aug 2008 22:21:43 +0000 (22:21 +0000)]
ChangeLog trailing whitespace
svn path=/trunk/; revision=564
Colin Walters [Sun, 31 Aug 2008 22:16:11 +0000 (22:16 +0000)]
ChangeLog
svn path=/trunk/; revision=563
Colin Walters [Sun, 31 Aug 2008 22:16:07 +0000 (22:16 +0000)]
Quiet info prints for now.
* giscanner/glibtransformer.py: Quiet info
prints for now.
svn path=/trunk/; revision=562
Johan Dahlin [Sun, 31 Aug 2008 22:10:39 +0000 (22:10 +0000)]
Remove extra echo from the release-tag rule
svn path=/trunk/; revision=561
Johan Dahlin [Sun, 31 Aug 2008 22:09:53 +0000 (22:09 +0000)]
Add a release-tag rule
svn path=/trunk/; revision=560
Johan Dahlin [Sun, 31 Aug 2008 22:04:36 +0000 (22:04 +0000)]
top_srcdir -> top_builddir
svn path=/trunk/; revision=559
Johan Dahlin [Sun, 31 Aug 2008 21:35:26 +0000 (21:35 +0000)]
Bump version to 0.5.0
2008-08-31 Johan Dahlin <johan@gnome.org>
* configure.ac:
Bump version to 0.5.0
svn path=/trunk/; revision=558
Colin Walters [Sun, 31 Aug 2008 16:39:06 +0000 (16:39 +0000)]
ChangeLog
svn path=/trunk/; revision=557
Colin Walters [Sun, 31 Aug 2008 16:39:04 +0000 (16:39 +0000)]
Follow aliases when resolving constructor return types
* giscanner/glibtransformer.py: Follow aliases to ensure
we don't get a constructor returning a basic type.
* giscanner/transformer.py: Add function to follow aliases.
* tests/ Update.
svn path=/trunk/; revision=556
Johan Dahlin [Sun, 31 Aug 2008 16:20:51 +0000 (16:20 +0000)]
Fix up strip logic to not regress
svn path=/trunk/; revision=555
Colin Walters [Sun, 31 Aug 2008 16:16:42 +0000 (16:16 +0000)]
Tweak error message
svn path=/trunk/; revision=554
Johan Dahlin [Sun, 31 Aug 2008 16:10:18 +0000 (16:10 +0000)]
Parse GCC extensions in the parser instead of just undeffing them in the
2008-08-31 Johan Dahlin <johan@gnome.org>
* giscanner/scannerlexer.l:
* giscanner/scannerparser.y:
* giscanner/sourcescanner.h:
* giscanner/sourcescanner.py:
Parse GCC extensions in the parser instead of just undeffing them
in the pre-processor.
svn path=/trunk/; revision=553
Colin Walters [Sun, 31 Aug 2008 16:01:06 +0000 (16:01 +0000)]
ChangeLog
svn path=/trunk/; revision=552
Colin Walters [Sun, 31 Aug 2008 16:01:02 +0000 (16:01 +0000)]
Don't lose if we have no includedirs
* girepository/girparser.c: Don't lose if we
have no includedirs
svn path=/trunk/; revision=551
Johan Dahlin [Sun, 31 Aug 2008 15:56:56 +0000 (15:56 +0000)]
Clean up a huge if. Do not add methods or constructors to enums/flags.
2008-08-31 Johan Dahlin <johan@gnome.org>
* giscanner/glibtransformer.py:
Clean up a huge if. Do not add methods or constructors
to enums/flags.
* giscanner/utils.py:
second might be longer than first, check that.
svn path=/trunk/; revision=550
Johan Dahlin [Sun, 31 Aug 2008 15:50:14 +0000 (15:50 +0000)]
Add a GModule.gir
2008-08-31 Johan Dahlin <johan@gnome.org>
* gir/Makefile.am:
Add a GModule.gir
svn path=/trunk/; revision=549
Colin Walters [Sun, 31 Aug 2008 15:25:51 +0000 (15:25 +0000)]
ChangeLog
svn path=/trunk/; revision=548
Colin Walters [Sun, 31 Aug 2008 15:25:48 +0000 (15:25 +0000)]
Look for libtool library in current directory
* giscanner/glibtransformer.py: Look for libtool
library in current directory
* tests/scanner - Update.
svn path=/trunk/; revision=547
Colin Walters [Sat, 30 Aug 2008 20:31:18 +0000 (20:31 +0000)]
ChangeLog
svn path=/trunk/; revision=546
Colin Walters [Sat, 30 Aug 2008 20:31:16 +0000 (20:31 +0000)]
Add back unresolved
svn path=/trunk/; revision=545
Colin Walters [Sat, 30 Aug 2008 20:31:14 +0000 (20:31 +0000)]
Fix conflict
svn path=/trunk/; revision=544
Colin Walters [Sat, 30 Aug 2008 20:31:12 +0000 (20:31 +0000)]
Remove g_irepository_unregister, add GIRepositoryLoadFlags
svn path=/trunk/; revision=543
Colin Walters [Sat, 30 Aug 2008 20:31:10 +0000 (20:31 +0000)]
Don't lose on NULL shlib
svn path=/trunk/; revision=542
Colin Walters [Sat, 30 Aug 2008 20:31:07 +0000 (20:31 +0000)]
Put dependencies in typelibs, resolve them when loading
* gir/Makefile.am: Dep on Makefile
* girepository/ginfo.c: Print out a nicer error
message if we failed to load something.
* girepository/girepository.c: Clean up
default typelib handling; remove global
default_typelib variable. Ensure we handle
NULL repository in more places.
Support dependency resolution.
* tests/Makefile.am: Kill off gobject.gir,
it conflicts with the real one.
* tests/Object.gir: Depend on GObject.
* tools/generate.c: Take --includedir
argument to say which directories to search
for typelibs. Print out dependencies.
svn path=/trunk/; revision=541
Colin Walters [Sat, 30 Aug 2008 20:12:48 +0000 (20:12 +0000)]
ChangeLog
svn path=/trunk/; revision=540
Colin Walters [Sat, 30 Aug 2008 20:12:45 +0000 (20:12 +0000)]
Reduce warning noise
* giscanner/glibtransformer.py: Reduce warning noise
svn path=/trunk/; revision=539
Colin Walters [Sat, 30 Aug 2008 02:31:56 +0000 (02:31 +0000)]
ChangeLog
svn path=/trunk/; revision=538
Colin Walters [Sat, 30 Aug 2008 02:31:53 +0000 (02:31 +0000)]
Add some assertions, blacklist a few more methods
* girepository/ginfo.c: Add some assertions regarding
refcounts, just to be sure.
* giscanner/glibtransformer.py: Blacklist a few more
odd Gio methods.
svn path=/trunk/; revision=537
Colin Walters [Fri, 29 Aug 2008 23:33:18 +0000 (23:33 +0000)]
ChangeLog
svn path=/trunk/; revision=536
Colin Walters [Fri, 29 Aug 2008 23:33:14 +0000 (23:33 +0000)]
Blacklist a few functions that use GError oddly
* giscanner/glibtransformer.py: Blacklist a few
functions that use GError oddly
svn path=/trunk/; revision=535
Colin Walters [Fri, 29 Aug 2008 20:42:55 +0000 (20:42 +0000)]
ChangeLog
svn path=/trunk/; revision=534
Colin Walters [Fri, 29 Aug 2008 20:42:51 +0000 (20:42 +0000)]
Don't crash if no shlib is embedded
* girepository/gtypelib.c: Don't crash if no
shlib is embedded
svn path=/trunk/; revision=533
Colin Walters [Fri, 29 Aug 2008 20:41:29 +0000 (20:41 +0000)]
ChangeLog
svn path=/trunk/; revision=532
Colin Walters [Fri, 29 Aug 2008 20:41:26 +0000 (20:41 +0000)]
Handle alias chains correctly
* girepository/girparser.c: Handle chains of aliases
across modules by ensuring we fully qualify aliases
from includes.
svn path=/trunk/; revision=531
Colin Walters [Fri, 29 Aug 2008 20:06:13 +0000 (20:06 +0000)]
ChangeLog
svn path=/trunk/; revision=530
Colin Walters [Fri, 29 Aug 2008 20:06:10 +0000 (20:06 +0000)]
Avoid searching aliases for basic types
* girepository/girparser.c: Don't search aliases
for basic types.
svn path=/trunk/; revision=529
Colin Walters [Fri, 29 Aug 2008 19:33:30 +0000 (19:33 +0000)]
ChangeLog
svn path=/trunk/; revision=528
Colin Walters [Fri, 29 Aug 2008 19:33:09 +0000 (19:33 +0000)]
Fix type parsing for both GLib case and GLib.List
* girepository/girparser.c: Rewrite type parsing
to handle both GLib parsing case as well as correctly
handling GLib.List and friends. Don't try to treat
e.g. ListStore as a List.
svn path=/trunk/; revision=527
Colin Walters [Fri, 29 Aug 2008 18:49:25 +0000 (18:49 +0000)]
ChangeLog
svn path=/trunk/; revision=526
Colin Walters [Fri, 29 Aug 2008 18:49:22 +0000 (18:49 +0000)]
More context information in validate
* girepository/gtypelib.c: Add more context
during validate.
svn path=/trunk/; revision=525
Colin Walters [Fri, 29 Aug 2008 18:19:31 +0000 (18:19 +0000)]
ChangeLog
svn path=/trunk/; revision=524