platform/upstream/gobject-introspection.git
13 years agoSupport glib-mkenums comment /*< flags >*/
Andreas Rottmann [Mon, 6 Dec 2010 23:18:15 +0000 (00:18 +0100)]
Support glib-mkenums comment /*< flags >*/

- Modify the lexer to consider all "trigraph" comments specially, and
  parse them for "flags" as well as "private" and "public" (which were
  previously hardcoded).  This change allows for future support of
  multiple annotations inside a single trigraph comment.

- Change the parser to consider the additional field "flags" set by
  the lexer when constructing enums.

- Add a test case for the "flags" trigraph comment to the scanner
  annotation tests.

See <https://bugzilla.gnome.org/show_bug.cgi?id=631530>.

13 years agoDon't emit shadowed methods into the typelib
Andreas Rottmann [Mon, 6 Dec 2010 23:07:08 +0000 (00:07 +0100)]
Don't emit shadowed methods into the typelib

Ignore shadowed methods when parsing the GIR.

13 years agog_object_info_find_method_using_interfaces: Fix crash if not found
Colin Walters [Mon, 6 Dec 2010 16:14:53 +0000 (11:14 -0500)]
g_object_info_find_method_using_interfaces: Fix crash if not found

If a method wasn't found, we'd try to unref NULL.

13 years agog_object_info_find_method_using_interfaces: New function
Colin Walters [Fri, 22 Oct 2010 18:22:19 +0000 (14:22 -0400)]
g_object_info_find_method_using_interfaces: New function

Pull this down into introspection from gjs; this will allow us
to cache this better in the future (for example, by caching the
infos for interfaces in the info for the object).

https://bugzilla.gnome.org/show_bug.cgi?id=632924

13 years agoMake sure we don't mark GInitiallyUnownedClass as disguised
Tomeu Vizoso [Mon, 6 Dec 2010 15:10:02 +0000 (16:10 +0100)]
Make sure we don't mark GInitiallyUnownedClass as disguised

13 years agoAdd directory index section
Colin Walters [Mon, 25 Oct 2010 17:33:01 +0000 (13:33 -0400)]
Add directory index section

Use the internal perfect hashing API to add an index to the directory.

To support this, add the notion of additional "sections" to the
typelib.  A section index is inserted between the header and the
directory.

https://bugzilla.gnome.org/show_bug.cgi?id=554943

13 years ago.gitignore: Update
Colin Walters [Thu, 11 Nov 2010 21:09:51 +0000 (16:09 -0500)]
.gitignore: Update

13 years agoAdd internal hashing API designed for the typelib
Colin Walters [Mon, 25 Oct 2010 11:56:05 +0000 (07:56 -0400)]
Add internal hashing API designed for the typelib

In multiple places in the typelib, but most importantly the directory,
we need some fast indexing.  Perfect hashing, as implemented by CMPH
(previous commit), is an exact fit for the problem domain.

Add an API built on top of CMPH which maps strings->guint16 (we just
need a guint16 for the typelib index).

https://bugzilla.gnome.org/show_bug.cgi?id=554943

13 years agocmph-bdz-test: New test
Colin Walters [Thu, 11 Nov 2010 20:34:11 +0000 (15:34 -0500)]
cmph-bdz-test: New test

Add a basic test of CMPH (without any layers on top).

13 years agocmph: Squash a lot of gcc -Wall compiler warnings
Colin Walters [Thu, 2 Dec 2010 16:34:46 +0000 (11:34 -0500)]
cmph: Squash a lot of gcc -Wall compiler warnings

* Functions taking no parameters need to explicitly say (void).
* Mark some functions as static that are
* Comment out an unused function in bdz.c
* Change loop indicies "i" to be unsigned if our limit is unsigned

13 years agocmph: Add automake rules
Colin Walters [Thu, 11 Nov 2010 20:14:07 +0000 (15:14 -0500)]
cmph: Add automake rules

13 years agocmph: Modify types to use GLib types
Colin Walters [Thu, 11 Nov 2010 20:03:20 +0000 (15:03 -0500)]
cmph: Modify types to use GLib types

The 64 bit #ifdefs is just hackish and broken; e.g. it will fail
on ppc64/linux and WIN64.

Use the GLib typedefs, which I know are more correct.

13 years agoImport CMPH 1.0
Colin Walters [Thu, 11 Nov 2010 20:01:07 +0000 (15:01 -0500)]
Import CMPH 1.0

This will be used for typelib indexing.  See README-CMPH-IMPORT.txt
for more information.

13 years agoMakefile.am: Add GTESTER_PROGS
Colin Walters [Thu, 11 Nov 2010 20:33:41 +0000 (15:33 -0500)]
Makefile.am: Add GTESTER_PROGS

This is a list of test programs to run under "gtester".

13 years agoscanner: Switch to only Python 2.5 C API usage
Colin Walters [Fri, 3 Dec 2010 15:41:50 +0000 (10:41 -0500)]
scanner: Switch to only Python 2.5 C API usage

PyUnicode_FromString is 2.6 only, we can use PyUnicode_DecodeUTF8
easily enough though.

Also, fix memory leaks in this function; we leaked the buffer
on success, and also in most failure paths.

13 years agoscanner: More XML unicode fixes
Colin Walters [Thu, 2 Dec 2010 19:58:27 +0000 (14:58 -0500)]
scanner: More XML unicode fixes

Coerce input temporarily inside xmlwriter into Unicode to do
string manipulation, and then only convert it to "UTF8str" when
writing into the data buffer.

13 years agoAdd proper unicode support to the source scanner
Johan Dahlin [Thu, 2 Dec 2010 16:10:33 +0000 (14:10 -0200)]
Add proper unicode support to the source scanner

The assumption is that the only allowed source encoding
is utf-8. Always strings as unicode and fix up the transformer
and xml writer to properly output utf-8.

13 years agoSupport hexadecimal escapes in constants
Colin Walters [Fri, 29 Oct 2010 22:37:43 +0000 (18:37 -0400)]
Support hexadecimal escapes in constants

g_strcompress() only does some of what we need; fork it
and add support for \x escapes too.

https://bugzilla.gnome.org/show_bug.cgi?id=595773

13 years agoscanner: Only mark structures and unions as out-caller-allocates
Colin Walters [Fri, 19 Nov 2010 21:59:02 +0000 (16:59 -0500)]
scanner: Only mark structures and unions as out-caller-allocates

These are the only things for which we expect native values to be
preserved; for e.g. flags and integers, we expect bindings to convert.

The particular rationale for this patch is to avoid flagging flags (sic)
as (out caller-allocates).

13 years agoUpdate gio annotations from GLib git
Colin Walters [Thu, 18 Nov 2010 01:06:30 +0000 (20:06 -0500)]
Update gio annotations from GLib git

13 years agogtk-doc: Update for renamed libgirepository-internals.la
Colin Walters [Wed, 17 Nov 2010 21:36:26 +0000 (16:36 -0500)]
gtk-doc: Update for renamed libgirepository-internals.la

13 years agoglib-2.0.c: annotate the arrays in g_spawn_sync/_async
Dan Winship [Wed, 17 Nov 2010 16:41:44 +0000 (11:41 -0500)]
glib-2.0.c: annotate the arrays in g_spawn_sync/_async

13 years agogirepository: Consistently prefix internal functions with _
Colin Walters [Tue, 16 Nov 2010 20:08:33 +0000 (15:08 -0500)]
girepository: Consistently prefix internal functions with _

This should better avoid them being exported.  Rename
girepository-parser.la to girepository-internals.la for clarity.

13 years agobuild: Flip around linking order of libraries for tools
Colin Walters [Tue, 16 Nov 2010 21:05:18 +0000 (16:05 -0500)]
build: Flip around linking order of libraries for tools

It seems in some cases (Debian libtool) we get an injected rpath
first for the jhbuild root, which screws us over since we need
the libraries from .libs.

13 years agogitypelib: Extend warning for validation
Colin Walters [Tue, 16 Nov 2010 20:13:41 +0000 (15:13 -0500)]
gitypelib: Extend warning for validation

13 years agoscanner: Fall back to default uscoring for method pairing if possible
Colin Walters [Tue, 16 Nov 2010 16:54:46 +0000 (11:54 -0500)]
scanner: Fall back to default uscoring for method pairing if possible

The commit to use the c_symbol_prefix works in every case, except for
gdk_window_object_get_type(), which screws us.  Fall back to the old
heuristic in this case.

13 years agoFix tests to look in correct directory for typelibs
Colin Walters [Tue, 16 Nov 2010 14:46:00 +0000 (09:46 -0500)]
Fix tests to look in correct directory for typelibs

With nonrecursive they're in $(top_builddir) now

13 years agotests: Print an error message
Colin Walters [Tue, 16 Nov 2010 14:16:52 +0000 (09:16 -0500)]
tests: Print an error message

13 years agoFix line too long
Colin Walters [Tue, 16 Nov 2010 14:15:47 +0000 (09:15 -0500)]
Fix line too long

13 years agoscanner: use c-symbol-prefix for method pairing where possible
Jonathan Matthew [Sat, 6 Nov 2010 09:45:29 +0000 (19:45 +1000)]
scanner: use c-symbol-prefix for method pairing where possible

If we have a C symbol prefix for the target type, then use that to
identify methods that should be paired with it.  The C symbol prefix
is derived from the name of the _get_type() function, so it's likely
that this is also the prefix given to methods for the type.

https://bugzilla.gnome.org/show_bug.cgi?id=634153

13 years agoscanner: don't show 'warnings suppressed' if --warn-all in use
Jonathan Matthew [Tue, 26 Oct 2010 23:56:44 +0000 (09:56 +1000)]
scanner: don't show 'warnings suppressed' if --warn-all in use

https://bugzilla.gnome.org/show_bug.cgi?id=633227

13 years agoAdd support for gunichar in typelib
Colin Walters [Tue, 26 Oct 2010 15:12:26 +0000 (11:12 -0400)]
Add support for gunichar in typelib

Some API such as gtk_text_iter_get_char returns an individual
"gunichar"; we should support this.

https://bugzilla.gnome.org/show_bug.cgi?id=633197

13 years agobuild: Explicitly link to libffi for g-ir-compiler
Colin Walters [Fri, 12 Nov 2010 20:37:44 +0000 (15:37 -0500)]
build: Explicitly link to libffi for g-ir-compiler

On Debian, libtool won't pull in dependencies from internal libraries when
linking.

13 years agoAdd g_object_info_find_signal
Colin Walters [Tue, 26 Oct 2010 15:47:00 +0000 (11:47 -0400)]
Add g_object_info_find_signal

This matches g_object_info_find_method, and allows us to add indexing
later.

https://bugzilla.gnome.org/show_bug.cgi?id=633204

13 years agoMakefile-gir.am: Fix explicit dependency of DBusGLib on GObject
Colin Walters [Thu, 11 Nov 2010 22:51:00 +0000 (17:51 -0500)]
Makefile-gir.am: Fix explicit dependency of DBusGLib on GObject

Because of Makefile.introspection, the .typelibs are still put in
gir/.

13 years agoExplicitly link g-ir-compiler and g-ir-generate to GIO
Colin Walters [Thu, 11 Nov 2010 22:23:20 +0000 (17:23 -0500)]
Explicitly link g-ir-compiler and g-ir-generate to GIO

girepository only explicitly deps on GObject, so this is correct.

13 years agodumper: Differentiate between "external" and "internal" linking
Colin Walters [Wed, 20 Oct 2010 14:42:17 +0000 (10:42 -0400)]
dumper: Differentiate between "external" and "internal" linking

The previous commit aea515709 broke scanning for libraries not
in the current directory, such as scanning Gio from gobject-introspection.

In this case, it's wrong to add -L., and to move the other -L behind
the library.  Instead, we should just do a "normal" link using
pkg-config --libs with few games.

https://bugzilla.gnome.org/show_bug.cgi?id=632701

13 years agoMakefile-gir.am: Add explicit g-ir-compiler dependency
Colin Walters [Thu, 11 Nov 2010 21:01:39 +0000 (16:01 -0500)]
Makefile-gir.am: Add explicit g-ir-compiler dependency

We need the typelib compiler to be built before we try to
build typelibs for the static gir files.

13 years agononrecursive build: Fix typelib installation
Alban Browaeys [Thu, 11 Nov 2010 17:50:24 +0000 (12:50 -0500)]
nonrecursive build: Fix typelib installation

13 years agoFix previous commit
Colin Walters [Thu, 11 Nov 2010 14:58:57 +0000 (09:58 -0500)]
Fix previous commit

..but we still should be looking for pre-written girs in gir/.

13 years agobuild: Fix scanner/compiler to look in $(top_builddir) now
Colin Walters [Thu, 11 Nov 2010 14:54:35 +0000 (09:54 -0500)]
build: Fix scanner/compiler to look in $(top_builddir) now

Since we're nonrecursive, the build artifacts live in $(top_builddir),
so look there now for files like Gio-2.0.gir.

13 years agogirepository: Only export ^gi?_ symbols
Colin Walters [Tue, 9 Nov 2010 20:15:00 +0000 (15:15 -0500)]
girepository: Only export ^gi?_ symbols

Otherwise it's really easy to unintentionally export unwanted symbols,
as would happen with the upcoming CMPH import.

13 years agoExport gi_type_tag_get_ffi_type
Colin Walters [Tue, 9 Nov 2010 22:06:29 +0000 (17:06 -0500)]
Export gi_type_tag_get_ffi_type

This is needed by the offsets code, and is generally useful.  We
need to export it for a future patch which won't export symbols
with a leading _.

13 years agoSwitch to nonrecursive make for core (i.e. not tests/)
Colin Walters [Thu, 4 Nov 2010 17:12:12 +0000 (13:12 -0400)]
Switch to nonrecursive make for core (i.e. not tests/)

This is cleaner and faster, and prepares us better for an incoming
import of CMPH.

13 years agoMove pyflakes to check-pyflakes
Colin Walters [Tue, 9 Nov 2010 16:41:51 +0000 (11:41 -0500)]
Move pyflakes to check-pyflakes

It has false positives difficult to work around now, and is
really better run as a periodic check anyways.

13 years agolibtoolimporter: Don't assume we have a multi-component import
Colin Walters [Tue, 9 Nov 2010 14:15:13 +0000 (09:15 -0500)]
libtoolimporter: Don't assume we have a multi-component import

os.path.join barfs if we're passing it 0 arguments, as would happen
when doing "import foo".

13 years agotools: Switch to checking UNINSTALLED_INTROSPECTION_SRCDIR
Colin Walters [Thu, 4 Nov 2010 18:42:18 +0000 (14:42 -0400)]
tools: Switch to checking UNINSTALLED_INTROSPECTION_SRCDIR

Rather than introspecting the current directory, use the environment
variable we know is present if and only if we're running uninstalled.

This will be less prone to failure when we switch to nonrecursive
make, since the generated script will be in the top builddir, not
tools/ anymore.

13 years agoHandle enumerations with the full range of signed and unsigned values
Owen W. Taylor [Tue, 14 Sep 2010 15:59:03 +0000 (11:59 -0400)]
Handle enumerations with the full range of signed and unsigned values

The C compiler will pick an enumeration type that accomodates the specified
values for the enumeration, so ignoring 64-bit enumerations, we can
have enumeration values from MININT32 to MAXUINT32. To handle this properly:

 - Use gint64 for holding eumeration values when scanning
 - Add a 'unsigned_value' bit to ValueBlob so we can distinguish the
   int32 vs. uint32 cases in the typelib
 - Change the return value of g_value_info_get_value() to gint64.

https://bugzilla.gnome.org/show_bug.cgi?id=629704

13 years agoCompute enumeration storage types more accurately
Owen W. Taylor [Tue, 14 Sep 2010 18:17:35 +0000 (14:17 -0400)]
Compute enumeration storage types more accurately

Previously we just were sloppy and didn't bother to accurately compute
signed/unsigned for enumeration types.  But since we expect bindings
to decode a field value or function return value from an integer to
an enumeration they have know whether an integer value is
0xffffffff or -1, so we need to do the full computation.

https://bugzilla.gnome.org/show_bug.cgi?id=629704

13 years agogirepository: Use G_TYPE_TAG_IS_BASIC consistently
Colin Walters [Tue, 26 Oct 2010 14:03:29 +0000 (10:03 -0400)]
girepository: Use G_TYPE_TAG_IS_BASIC consistently

This is a preparatory patch for adding a new basic tag.

13 years agoscanner: Print out a message if warnings were off
Colin Walters [Thu, 7 Oct 2010 20:27:00 +0000 (16:27 -0400)]
scanner: Print out a message if warnings were off

Otherwise people may not know about --warn-all.

https://bugzilla.gnome.org/show_bug.cgi?id=631644

13 years agoFix previous commit
Colin Walters [Fri, 22 Oct 2010 16:54:29 +0000 (12:54 -0400)]
Fix previous commit

13 years agoHandle CC="ccache gcc" for linker command too
Colin Walters [Fri, 22 Oct 2010 15:28:40 +0000 (11:28 -0400)]
Handle CC="ccache gcc" for linker command too

The compiler path explicitly split()s the variable, we should do
so in the linker path too.

13 years agoFix regression in g_irepository_get_info
Colin Walters [Thu, 21 Oct 2010 18:59:42 +0000 (14:59 -0400)]
Fix regression in g_irepository_get_info

Commit f97cc8687469f25752f79275 broke the lookup in
g_irepository_get_info; the passed offset is 0-based, then
we convert it to 1-based (and then back to 0 later...which needs
to be fixed).

13 years agoscanner: Support GStrv as signal parameters
Colin Walters [Thu, 21 Oct 2010 18:07:59 +0000 (14:07 -0400)]
scanner: Support GStrv as signal parameters

13 years agoscanner: Don't process pkg-config libs twice
Colin Walters [Mon, 4 Oct 2010 20:16:35 +0000 (16:16 -0400)]
scanner: Don't process pkg-config libs twice

Before, we were adding the --libs-only-L from pkg-config files
during initial scanning, as if --library-path was specified,
*and* inside the dumper, we used --libs.

Fix this by always doing -L. <introspected libraries> <pkg-config libs>

This should ensure we don't duplicate the search path anyways.

https://bugzilla.gnome.org/show_bug.cgi?id=631348

13 years agoAccept trailing whitespace at the start of a comment block
Colin Walters [Tue, 19 Oct 2010 12:45:13 +0000 (08:45 -0400)]
Accept trailing whitespace at the start of a comment block

Might as well be liberal here, as long as we have a test case.

https://bugzilla.gnome.org/show_bug.cgi?id=631690

13 years agogirepository: Refactor lookup code
Colin Walters [Mon, 18 Oct 2010 16:04:08 +0000 (12:04 -0400)]
girepository: Refactor lookup code

This is a cleanup patch in preparation for future indexing
patches.

The lookup code was a mess trying to mash in the 3 different
cases of name, GType, and index into one mega-function.

Split it up properly, and move the core typelib internal-scanning
bits into gitypelib.c where it belongs.

13 years agoconfigure: Bump to 0.10 series
Colin Walters [Mon, 11 Oct 2010 16:53:21 +0000 (12:53 -0400)]
configure: Bump to 0.10 series

13 years agotypelib: Don't fail on minor version
Colin Walters [Mon, 11 Oct 2010 16:40:15 +0000 (12:40 -0400)]
typelib: Don't fail on minor version

Previously we bombed out if the minor version didn't match what
we expected; this was silly since the whole point of the minor
version is to enumerate compatible changes.

13 years agoscanner: Don't leave temporary directory around if we fail
Colin Walters [Thu, 7 Oct 2010 19:56:05 +0000 (15:56 -0400)]
scanner: Don't leave temporary directory around if we fail

...by default.  However, the GI_SCANNER_DEBUG=save-temps option
helps for debugging.

13 years agoconfigure: Post-release version bump
Colin Walters [Wed, 6 Oct 2010 21:03:55 +0000 (17:03 -0400)]
configure: Post-release version bump

13 years agoconfigure: Release 0.9.12 GOBJECT_INTROSPECTION_0_9_12
Colin Walters [Wed, 6 Oct 2010 21:02:56 +0000 (17:02 -0400)]
configure: Release 0.9.12

13 years agodocs: Don't conditionalize on ENABLE_GTK_DOC
Colin Walters [Wed, 6 Oct 2010 20:59:18 +0000 (16:59 -0400)]
docs: Don't conditionalize on ENABLE_GTK_DOC

OS vendors which compile from the part-binary "tarballs" which
include e.g. pregenerated gtk-doc, they typically don't pass
--enable-gtk-doc.  So conditionalizing "make install"
for docs on ENABLE_GTK_DOC won't work.

This is the same as GTK+ and other projects currently work.

13 years agodist: Don't use gpg for tags by default
Colin Walters [Wed, 6 Oct 2010 20:42:14 +0000 (16:42 -0400)]
dist: Don't use gpg for tags by default

I don't have a GPG key setup anymore, not interested in
the archaeology to find it right now.

13 years agoImprove documentation for g_registered_type_info_get_g_type GOBJECT_INTROSPECTION_0_9_11
Johan Dahlin [Wed, 6 Oct 2010 15:51:44 +0000 (12:51 -0300)]
Improve documentation for g_registered_type_info_get_g_type

13 years agoRevert "Apply `(type bitfield)' annotations for enums"
Johan Dahlin [Wed, 6 Oct 2010 14:26:37 +0000 (11:26 -0300)]
Revert "Apply `(type bitfield)' annotations for enums"

This reverts commit d15e386c8e10dd6b645a444e29cc053100089a07.

13 years agoRevert "block can be None, fixup last commit"
Johan Dahlin [Wed, 6 Oct 2010 14:26:33 +0000 (11:26 -0300)]
Revert "block can be None, fixup last commit"

This reverts commit 754e5462f6dfbe3793eb959abf3dbfa7d2fe6435.

13 years agochose extension basing on OS
Alexey Zakhlestin [Wed, 6 Oct 2010 11:02:46 +0000 (15:02 +0400)]
chose extension basing on OS

https://bugzilla.gnome.org/show_bug.cgi?id=606686

13 years agoblock can be None, fixup last commit
Johan Dahlin [Wed, 6 Oct 2010 00:34:39 +0000 (21:34 -0300)]
block can be None, fixup last commit

13 years agoApply `(type bitfield)' annotations for enums
Andreas Rottmann [Tue, 5 Oct 2010 21:49:33 +0000 (23:49 +0200)]
Apply `(type bitfield)' annotations for enums

Previously, such annotations would be ignored.

13 years agoupload-release: Use bz2
Johan Dahlin [Thu, 30 Sep 2010 19:12:23 +0000 (16:12 -0300)]
upload-release: Use bz2

13 years agoSilently skip #pragma directives when scanning sources.
Pavel Holejsovsky [Thu, 30 Sep 2010 09:38:55 +0000 (11:38 +0200)]
Silently skip #pragma directives when scanning sources.

This is useful e.g. on cygwin, where system headers use #pragma directives,
causing annoying false-alarm errors during every g-ir-scanner run.

https://bugzilla.gnome.org/show_bug.cgi?id=630994

13 years agoHonor -L commandline option.
Pavel Holejsovsky [Thu, 30 Sep 2010 09:37:06 +0000 (11:37 +0200)]
Honor -L commandline option.

13 years agodumper: Make g_irepository_dump static when being used in dumper
Colin Walters [Fri, 1 Oct 2010 16:44:08 +0000 (12:44 -0400)]
dumper: Make g_irepository_dump static when being used in dumper

Otherwise we'll bomb out if CFLAGS contains -Werror.

13 years agoAdd -export-dynamic when compiling with libtool
Owen W. Taylor [Thu, 30 Sep 2010 21:57:44 +0000 (17:57 -0400)]
Add -export-dynamic when compiling with libtool

In some cases (such as introspecting a convenience library),
we need to dlsym() modules in the binary we compile, so we
need to add -export-dynamic to the link line.

13 years agoconfigure: post-release version bump
Colin Walters [Thu, 30 Sep 2010 19:33:05 +0000 (15:33 -0400)]
configure: post-release version bump

13 years agoconfigure: Change to bzip2 dist GOBJECT_INTROSPECTION_0_9_10
Colin Walters [Thu, 30 Sep 2010 18:41:46 +0000 (14:41 -0400)]
configure: Change to bzip2 dist

We want to use bzip2 since that's what Fedora uses.

13 years agogir: Explicitly specify path to girepository so libtool can find it
Colin Walters [Thu, 30 Sep 2010 18:38:26 +0000 (14:38 -0400)]
gir: Explicitly specify path to girepository so libtool can find it

This was broken with the last commit to remove a lot of the special
hacks to link to girepository in the dumper.

13 years agoconfigure: Post release version bump
Colin Walters [Thu, 30 Sep 2010 18:07:03 +0000 (14:07 -0400)]
configure: Post release version bump

13 years agoscanner: Don't link to -lgirepository when dumping GOBJECT_INTROSPECTION_0_9_9
Colin Walters [Thu, 30 Sep 2010 14:44:12 +0000 (10:44 -0400)]
scanner: Don't link to -lgirepository when dumping

This helps us avoid a problematic case where in say jhbuild, using
a system (/usr/lib) glib, adding in -l girepository-1.0 will inject
-L /path/to/builddir, when we don't want that.

https://bugzilla.gnome.org/show_bug.cgi?id=630342

13 years agotests: Specify --libtool
Colin Walters [Thu, 30 Sep 2010 13:10:30 +0000 (09:10 -0400)]
tests: Specify --libtool

Should switch to Makefile.introspection in the future.

13 years agoglib-2.0.c: Fix invalid annotation syntax
Colin Walters [Wed, 29 Sep 2010 19:35:14 +0000 (15:35 -0400)]
glib-2.0.c: Fix invalid annotation syntax

13 years agoscanner: Abort if we would be generating an empty namespace
Colin Walters [Wed, 29 Sep 2010 17:55:29 +0000 (13:55 -0400)]
scanner: Abort if we would be generating an empty namespace

Kind of silly we weren't doing this before; an empty namespace
is always going to be unintentional.

The "oops I forgot to include .h" files actually happened with
Clutter, but it wasn't caught since the build didn't obviously
fail.

13 years agoscanner: Don't duplicate fatal message text
Colin Walters [Wed, 29 Sep 2010 17:55:16 +0000 (13:55 -0400)]
scanner: Don't duplicate fatal message text

13 years agoFix tests
Colin Walters [Wed, 29 Sep 2010 18:00:31 +0000 (14:00 -0400)]
Fix tests

13 years agoActually do something about fundamentals when parsing a .gir
Tomeu Vizoso [Mon, 27 Sep 2010 09:52:55 +0000 (11:52 +0200)]
Actually do something about fundamentals when parsing a .gir

https://bugzilla.gnome.org/show_bug.cgi?id=630710

13 years agoconfigure: Post-release version bump
Colin Walters [Tue, 28 Sep 2010 23:20:39 +0000 (19:20 -0400)]
configure: Post-release version bump

13 years agoannotationparser: Don't ignore annotations if there's a : in docs GOBJECT_INTROSPECTION_0_9_8
Colin Walters [Tue, 28 Sep 2010 22:59:04 +0000 (18:59 -0400)]
annotationparser: Don't ignore annotations if there's a : in docs

The annotation parser changed to be stricter about annotation content,
but we introduced a regression where a : in the documentation would
wrongly cause the annotation to be skipped.

https://bugzilla.gnome.org/show_bug.cgi?id=630862

13 years agoFix --include-uninstalled
Colin Walters [Tue, 28 Sep 2010 22:16:53 +0000 (18:16 -0400)]
Fix --include-uninstalled

Somehow, this regressed; i have no idea how.  We need to be
comparing Include objects, not string versus Include.

13 years agoconfigure: post-release version bump
Colin Walters [Tue, 28 Sep 2010 16:53:21 +0000 (12:53 -0400)]
configure: post-release version bump

13 years agoModify Regress impl so that inout args ignore (transfer) for 'in' direction. GOBJECT_INTROSPECTION_0_9_7
Pavel Holejsovsky [Tue, 28 Sep 2010 05:48:50 +0000 (07:48 +0200)]
Modify Regress impl so that inout args ignore (transfer) for 'in' direction.

... because for 'in' arguments only (transfer none) is correct.

https://bugzilla.gnome.org/show_bug.cgi?id=630788

13 years agoRemove Regress tests with input args with transfer full or container.
Pavel Holejsovsky [Tue, 28 Sep 2010 05:36:32 +0000 (07:36 +0200)]
Remove Regress tests with input args with transfer full or container.

Declaring input parameters with transfer other than none is
discouraged, so don't do it in the testsuite.

https://bugzilla.gnome.org/show_bug.cgi?id=630788

13 years agoregress: Remove busted tests
Colin Walters [Mon, 27 Sep 2010 20:28:58 +0000 (16:28 -0400)]
regress: Remove busted tests

We don't want people making functions which take ownership of
arguments, so don't do it in the test suite.

13 years agoscanner: fail if cpp fails
Vincent Untz [Sun, 19 Sep 2010 22:33:50 +0000 (00:33 +0200)]
scanner: fail if cpp fails

https://bugzilla.gnome.org/show_bug.cgi?id=630101

13 years ago[scanner] Make sure private enums are filtered
Johan Dahlin [Sun, 26 Sep 2010 17:44:08 +0000 (14:44 -0300)]
[scanner] Make sure private enums are filtered

This is a follow-up to 60a8c75 which wasn't properly fixed.

13 years agoRemove trailing whitespace
Johan Dahlin [Sun, 26 Sep 2010 17:35:34 +0000 (14:35 -0300)]
Remove trailing whitespace

13 years ago[scanner] Mark enum members as private in transformer
Johan Dahlin [Sun, 26 Sep 2010 15:47:01 +0000 (12:47 -0300)]
[scanner] Mark enum members as private in transformer

Remove enum members which follows /* <private> */ comments
inside the transformer instead of the sourcescanner itself.

Fixes a crash when creating the gir for GstBase.

13 years ago[sourcescanner] Plug a couple of python leaks
Johan Dahlin [Sun, 26 Sep 2010 15:37:19 +0000 (12:37 -0300)]
[sourcescanner] Plug a couple of python leaks

There's no need to increase the reference count to
items passed into PyList_SetItem, it already steals a reference.

13 years agoDo not use triple dashes
Johan Dahlin [Sat, 25 Sep 2010 16:05:49 +0000 (13:05 -0300)]
Do not use triple dashes