Colin Walters [Thu, 18 Nov 2010 01:06:30 +0000 (20:06 -0500)]
Update gio annotations from GLib git
Colin Walters [Wed, 17 Nov 2010 21:36:26 +0000 (16:36 -0500)]
gtk-doc: Update for renamed libgirepository-internals.la
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
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.
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.
Colin Walters [Tue, 16 Nov 2010 20:13:41 +0000 (15:13 -0500)]
gitypelib: Extend warning for validation
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.
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
Colin Walters [Tue, 16 Nov 2010 14:16:52 +0000 (09:16 -0500)]
tests: Print an error message
Colin Walters [Tue, 16 Nov 2010 14:15:47 +0000 (09:15 -0500)]
Fix line too long
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
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
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
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.
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
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/.
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.
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
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.
Alban Browaeys [Thu, 11 Nov 2010 17:50:24 +0000 (12:50 -0500)]
nonrecursive build: Fix typelib installation
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/.
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.
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.
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 _.
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.
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.
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".
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.
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
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
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.
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
Colin Walters [Fri, 22 Oct 2010 16:54:29 +0000 (12:54 -0400)]
Fix previous commit
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.
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).
Colin Walters [Thu, 21 Oct 2010 18:07:59 +0000 (14:07 -0400)]
scanner: Support GStrv as signal parameters
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
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
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.
Colin Walters [Mon, 11 Oct 2010 16:53:21 +0000 (12:53 -0400)]
configure: Bump to 0.10 series
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.
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.
Colin Walters [Wed, 6 Oct 2010 21:03:55 +0000 (17:03 -0400)]
configure: Post-release version bump
Colin Walters [Wed, 6 Oct 2010 21:02:56 +0000 (17:02 -0400)]
configure: Release 0.9.12
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.
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.
Johan Dahlin [Wed, 6 Oct 2010 15:51:44 +0000 (12:51 -0300)]
Improve documentation for g_registered_type_info_get_g_type
Johan Dahlin [Wed, 6 Oct 2010 14:26:37 +0000 (11:26 -0300)]
Revert "Apply `(type bitfield)' annotations for enums"
This reverts commit
d15e386c8e10dd6b645a444e29cc053100089a07.
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.
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
Johan Dahlin [Wed, 6 Oct 2010 00:34:39 +0000 (21:34 -0300)]
block can be None, fixup last commit
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.
Johan Dahlin [Thu, 30 Sep 2010 19:12:23 +0000 (16:12 -0300)]
upload-release: Use bz2
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
Pavel Holejsovsky [Thu, 30 Sep 2010 09:37:06 +0000 (11:37 +0200)]
Honor -L commandline option.
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.
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.
Colin Walters [Thu, 30 Sep 2010 19:33:05 +0000 (15:33 -0400)]
configure: post-release version bump
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.
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.
Colin Walters [Thu, 30 Sep 2010 18:07:03 +0000 (14:07 -0400)]
configure: Post release version bump
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
Colin Walters [Thu, 30 Sep 2010 13:10:30 +0000 (09:10 -0400)]
tests: Specify --libtool
Should switch to Makefile.introspection in the future.
Colin Walters [Wed, 29 Sep 2010 19:35:14 +0000 (15:35 -0400)]
glib-2.0.c: Fix invalid annotation syntax
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.
Colin Walters [Wed, 29 Sep 2010 17:55:16 +0000 (13:55 -0400)]
scanner: Don't duplicate fatal message text
Colin Walters [Wed, 29 Sep 2010 18:00:31 +0000 (14:00 -0400)]
Fix tests
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
Colin Walters [Tue, 28 Sep 2010 23:20:39 +0000 (19:20 -0400)]
configure: Post-release version bump
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
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.
Colin Walters [Tue, 28 Sep 2010 16:53:21 +0000 (12:53 -0400)]
configure: post-release version bump
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
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
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.
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
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.
Johan Dahlin [Sun, 26 Sep 2010 17:35:34 +0000 (14:35 -0300)]
Remove trailing whitespace
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.
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.
Johan Dahlin [Sat, 25 Sep 2010 16:05:49 +0000 (13:05 -0300)]
Do not use triple dashes
Pavel Holejsovsky [Sat, 25 Sep 2010 05:12:07 +0000 (07:12 +0200)]
Fix memory leak.
Johan Dahlin [Sat, 25 Sep 2010 14:31:24 +0000 (11:31 -0300)]
Re-generate
Johan Dahlin [Sat, 25 Sep 2010 14:30:54 +0000 (11:30 -0300)]
[annotationparser] Extract (skip) for doc blocks
Johan Dahlin [Fri, 24 Sep 2010 21:25:04 +0000 (18:25 -0300)]
Re-generate against HEAD of Gio
Johan Dahlin [Fri, 24 Sep 2010 21:23:19 +0000 (18:23 -0300)]
Setup message logger
Since the annotationparser may warn
Johan Dahlin [Fri, 24 Sep 2010 21:23:03 +0000 (18:23 -0300)]
Print out line numbers
But disable the printing by default since it messes up
the generated file. And fix a couple of typos
Johan Dahlin [Fri, 24 Sep 2010 21:22:35 +0000 (18:22 -0300)]
Use tag position if available
Johan Dahlin [Fri, 24 Sep 2010 19:30:42 +0000 (16:30 -0300)]
[girparser] Callbacks and VFunctions can be shadowed
Johan Dahlin [Fri, 24 Sep 2010 19:24:28 +0000 (16:24 -0300)]
Import GObject sources
Johan Dahlin [Fri, 24 Sep 2010 19:24:17 +0000 (16:24 -0300)]
Add a script to import gobject annotations
Johan Dahlin [Fri, 24 Sep 2010 18:52:55 +0000 (15:52 -0300)]
[gio] Improve source comments
Imports gtk-doc comment from gio. In the future comments
should go into the gio sources instead of here, wer're we will
use the annotation-tool to update the extracted sources.
Johan Dahlin [Fri, 24 Sep 2010 18:41:24 +0000 (15:41 -0300)]
Add a script to extract gio annotations
Johan Dahlin [Thu, 16 Sep 2010 03:37:49 +0000 (00:37 -0300)]
Add an annotation tool
Johan Dahlin [Thu, 16 Sep 2010 03:36:37 +0000 (00:36 -0300)]
[scannermain] Split scanner_main into smaller pieces
Split it into pieces that will be reusable across different
command line tools.
Johan Dahlin [Fri, 24 Sep 2010 16:50:17 +0000 (13:50 -0300)]
[annotationparser] Allow param less closures
Allow closures without annotations to avoid having
to duplicate the parameter name.
Johan Dahlin [Fri, 24 Sep 2010 13:53:12 +0000 (10:53 -0300)]
Add more array warnings + tests
Johan Dahlin [Fri, 24 Sep 2010 12:59:43 +0000 (09:59 -0300)]
[annotationparser] Validate the rest of the annotations
All option annotations, which uses parenthesis are now
properly validated for number of values they expect
Johan Dahlin [Fri, 24 Sep 2010 12:59:21 +0000 (09:59 -0300)]
[maintransformer] Add more warnings for element-type
Johan Dahlin [Fri, 24 Sep 2010 12:58:45 +0000 (09:58 -0300)]
[maintransformer] Use constants