gnome.gobject-introspection
14 years agoAdd g_ir_ffi_convert_arguments
Tomeu Vizoso [Tue, 20 Oct 2009 19:33:33 +0000 (20:33 +0100)]
Add g_ir_ffi_convert_arguments

14 years agoDon't put the callback element inside the field if it's not a glib struct
Tomeu Vizoso [Tue, 10 Nov 2009 18:37:28 +0000 (19:37 +0100)]
Don't put the callback element inside the field if it's not a glib struct

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

14 years agoImplement callbacks as part of struct fields. Fixes #557383
Tomeu Vizoso [Mon, 9 Nov 2009 18:17:23 +0000 (19:17 +0100)]
Implement callbacks as part of struct fields. Fixes #557383

gir: embed <callback> inside <field>
typelib: if a field contains a callback, store it just after the FieldBlob
girepository API: no additions

14 years ago[gtypelib.h] Document SimpleTypeBlob more
Colin Walters [Wed, 4 Nov 2009 16:43:13 +0000 (11:43 -0500)]
[gtypelib.h] Document SimpleTypeBlob more

14 years ago[Gio] Annotate g_file_make_directory_with_parents
Colin Walters [Sun, 25 Oct 2009 15:33:45 +0000 (11:33 -0400)]
[Gio] Annotate g_file_make_directory_with_parents

14 years agoWhen doing type resolution on a string, treat it as its own ctype
Colin Walters [Fri, 23 Oct 2009 03:53:37 +0000 (23:53 -0400)]
When doing type resolution on a string, treat it as its own ctype

Calling _resolve_param_type on a string instead of Node is fairly unusual,
and (as far as I could see) basically only happened in the Array processing
code.  We were passing None as the ctype in this case, but we might as well
try using the name as a ctype too.

This fixes using GCallback (and in general any item in an array that comes
from an included gir).

14 years agoFix make check after f152f5e97df7
Tomeu Vizoso [Thu, 22 Oct 2009 11:43:36 +0000 (12:43 +0100)]
Fix make check after f152f5e97df7

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

14 years agoFix make check after 0d9cfb004d528
Tomeu Vizoso [Thu, 22 Oct 2009 11:43:15 +0000 (12:43 +0100)]
Fix make check after 0d9cfb004d528

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

14 years agoUse best known derived parent
Colin Walters [Mon, 19 Oct 2009 22:18:14 +0000 (18:18 -0400)]
Use best known derived parent

In the case where a known class derives from a hidden one, we want
to use the most-derived parent class, rather than simply falling back
to GObject.

Example:
ShellEmbedWidget in gnome-shell derives from ClutterGLXTexturePixmap from clutter,
which is a hidden class.  ClutterGLXTexturePixmap's parent itself is
ClutterX11TexturePixmap, which is also hidden.  But its parent is
ClutterTexture, which we do know.  Use that.

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

14 years agoExplicitly sort object interfaces, properties, and signals
Colin Walters [Wed, 7 Oct 2009 19:54:05 +0000 (15:54 -0400)]
Explicitly sort object interfaces, properties, and signals

Previously we were taking this in order from the dumper, which ends up
being some undefined order from GObject.  Just use Node's cmp to sort
them by name explicitly.

This probably doesn't cover all possible instances of this problem,
but these fixes are right.

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

14 years agoConsistently resolve symbolic links
Adam Sampson [Mon, 28 Sep 2009 17:45:23 +0000 (13:45 -0400)]
Consistently resolve symbolic links

When building the list of valid filenames for the scanner, resolve symlinks in
the filenames; the lexer does this when including files, so otherwise we'll get
filename mismatches if the path to the files being scanned includes a symlink.

Signed-off-by: Colin Walters <walters@verbum.org>
14 years agoRemove a remnant of shave
Johan Bilien [Fri, 18 Sep 2009 15:37:02 +0000 (11:37 -0400)]
Remove a remnant of shave

14 years agoMake g-ir-scanner 64-bit enable. Closes #593639
Halton Huo [Tue, 1 Sep 2009 06:27:42 +0000 (14:27 +0800)]
Make g-ir-scanner 64-bit enable. Closes #593639

14 years agoPost release version bump
Owen W. Taylor [Sat, 5 Sep 2009 00:29:32 +0000 (20:29 -0400)]
Post release version bump

14 years agoBump version to 0.6.5 GOBJECT_INTROSPECTION_0_6_5
Owen W. Taylor [Sat, 5 Sep 2009 00:27:27 +0000 (20:27 -0400)]
Bump version to 0.6.5

14 years agoCorrectly ref repository in GIUnresolvedInfo
Colin Walters [Fri, 4 Sep 2009 21:02:14 +0000 (17:02 -0400)]
Correctly ref repository in GIUnresolvedInfo

Followup to previous patch.

14 years agoAdd CLFAGS and LIBS variables
Simon van der Linden [Wed, 26 Aug 2009 08:05:23 +0000 (10:05 +0200)]
Add CLFAGS and LIBS variables

14 years agoBug 593322 - Fix unref of GIUnresolvedInfo instances
Colin Walters [Fri, 4 Sep 2009 20:52:35 +0000 (16:52 -0400)]
Bug 593322 - Fix unref of GIUnresolvedInfo instances

We are treating GIUnresolvedInfo as a GIBaseInfo, but the structures
had drifted out of sync.  Add a repository pointer and bring them
back into sync.

Based on a report and patch from Jan Hudec <bulb@ucw.cz>

14 years agoBug 593162 - Use built scanner from tarball builds
Colin Walters [Fri, 4 Sep 2009 18:10:16 +0000 (14:10 -0400)]
Bug 593162 - Use built scanner from tarball builds

Looking for .git/.svn breaks in tarball scenarios; instead just see
if our source directory is named 'tools'.

14 years agoAdd GVolumeMonitor interfaces
Adel Gadllah [Mon, 31 Aug 2009 21:52:24 +0000 (23:52 +0200)]
Add GVolumeMonitor interfaces

Add GVolumeMonitor interfaces, used by gnome-shell's overlay (places)

Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
Signed-off-by: Colin Walters <walters@verbum.org>
14 years agoUse CC rather than LD to fix build issue for gir. Closes #593599.
Halton Huo [Mon, 31 Aug 2009 02:38:08 +0000 (10:38 +0800)]
Use CC rather than LD to fix build issue for gir. Closes #593599.

14 years agoReplace LIBTOOL_LIBTOOL to LIBTOOL. Closes #592968.
Halton Huo [Tue, 25 Aug 2009 03:22:41 +0000 (11:22 +0800)]
Replace LIBTOOL_LIBTOOL to LIBTOOL. Closes #592968.

14 years agoBug 574351 - Add --pkg-export option GOBJECT_INTROSPECTION_0_6_4
Colin Walters [Mon, 24 Aug 2009 19:48:01 +0000 (15:48 -0400)]
Bug 574351 - Add --pkg-export option

We need to differentiate between --pkg options we use to parse
ourself, and --pkg-export which are needed for library consumers.

When introspecting a library we won't necessarily have the
pkg-config file built, so add a --pkg-export line so library
authors can explicitly make the .gir -> pkg-config association.

14 years agoBug 556628 – (skip) annotation
Dan Winship [Sat, 28 Mar 2009 14:07:37 +0000 (10:07 -0400)]
Bug 556628 – (skip) annotation

Adds a (skip) option that can be added to the header of any doc comment
to cause that symbol to be skipped in the .gir output

14 years agoBug 578200 - Substitute $(PYTHON) in g-ir-scanner.in
Colin Walters [Mon, 24 Aug 2009 18:38:27 +0000 (14:38 -0400)]
Bug 578200 - Substitute $(PYTHON) in g-ir-scanner.in

This lets us pick up non-default /usr/bin/python2.6 correctly.

14 years agoBug 587279 - Add COPYING.GPL and COPYING.LGPL
Colin Walters [Mon, 24 Aug 2009 18:30:14 +0000 (14:30 -0400)]
Bug 587279 - Add COPYING.GPL and COPYING.LGPL

It's better to keep lawyers happy if we ship the actual license
files rather than just mentioning them in COPYING.

14 years agoBug 590883 - Use 'cc' instead of 'gcc' for preprocessing
Colin Walters [Mon, 24 Aug 2009 18:23:21 +0000 (14:23 -0400)]
Bug 590883 - Use 'cc' instead of 'gcc' for preprocessing

Don't hardcode gcc, any cc which handles those options is good
enough; in particular this is reported to fix Sun Studio.

14 years agoLD_LIBRARY_PATH exorcism
Colin Walters [Thu, 20 Aug 2009 22:21:41 +0000 (18:21 -0400)]
LD_LIBRARY_PATH exorcism

Thanks to commit 6d510b8db, we now no longer need LD_LIBRARY_PATH
to be set for invoking the compiler.

Next, before we were taking the LD_LIBRARY_PATH variable and
turning it into a compile path, presumably to attempt to handle
the cases where we weren't getting the right -L flags.  Also
interacting with this was a while ago we weren't really doing
uninstalled libtool libraries correctly, which is probably
how hacks involving LD_LIBRARY_PATH crept into the scanner.

Just require that we're passed the right -L flags, and we
should be doing libtool libraries better now.

14 years agoMerge branch 'typelib-dlopen'
Colin Walters [Thu, 20 Aug 2009 21:10:51 +0000 (17:10 -0400)]
Merge branch 'typelib-dlopen'

14 years agoRemove some $(builddir) that crept back in
Owen W. Taylor [Mon, 17 Aug 2009 17:17:01 +0000 (13:17 -0400)]
Remove some $(builddir) that crept back in

With recent merges, a few instances of $(builddir) got reintroduced.
Remove them.

http://bugzilla.gnome.org/show_bug.cgi?id=592114

14 years ago[typelib] Clean up dlopen handling
Colin Walters [Tue, 18 Aug 2009 14:23:09 +0000 (10:23 -0400)]
[typelib] Clean up dlopen handling

It's was busted that g_typelib_new_* does the dlopen() since that caused
g-ir-compiler to load the modules even though it wasn't going to do
anything with them.

Instead, change things so that g_module_symbol does the dlopen on-demand.
Remove the extra dlopen(NULL) inside girepository.c, we had another
already in gtypelib.c.

Thanks to Owen Taylor for suggesting this approach.

14 years agoMake Everything-1.0.gir depend on GObject-2.0.gir
Colin Walters [Mon, 17 Aug 2009 22:37:59 +0000 (18:37 -0400)]
Make Everything-1.0.gir depend on GObject-2.0.gir

For parallel building.

14 years agoAdd FT_Library and cairo_font_face_t to hand-written .girs
Colin Walters [Mon, 17 Aug 2009 20:51:30 +0000 (16:51 -0400)]
Add FT_Library and cairo_font_face_t to hand-written .girs

These are dependencies of Pango.

14 years agoBug 592055 - Build/test fixes
Colin Walters [Mon, 17 Aug 2009 11:46:22 +0000 (07:46 -0400)]
Bug 592055 - Build/test fixes

The last few commits regressed 'check'; fix those up.

14 years agoAlso remove LD_LIBRARY_PATH bit from before AM_V_GEN for BarApp
Colin Walters [Mon, 17 Aug 2009 04:24:11 +0000 (00:24 -0400)]
Also remove LD_LIBRARY_PATH bit from before AM_V_GEN for BarApp

14 years agoSupport passing --library=lib<foo>.la
Owen W. Taylor [Fri, 14 Aug 2009 03:06:51 +0000 (23:06 -0400)]
Support passing --library=lib<foo>.la

In addition to the current --library=<foo>, support --library=lib<foo>.la.
This makes it unambiguous that we are referencing an uninstalled
library and allows accurate extraction of the shared library name
for the uninstalled library.

* tests/scanner/Makefile.am tests/offsets/Makefile.am: Use the
  new form of --library=. Also some LD_LIBRARY_PATH frobbing as needed.

*-expected.gir *-expected.tgir: We now pick out the shared library
  accurately, so fix shared-library="" in our reference girs. (The
  comparison may need some pre-sanitization now to work on non-ELF)

http://bugzilla.gnome.org/show_bug.cgi?id=591669

14 years agoResolve library names to shared libraries ourselves
Owen W. Taylor [Thu, 13 Aug 2009 20:09:27 +0000 (16:09 -0400)]
Resolve library names to shared libraries ourselves

Using ctypes.util.find_library() to resolve library names to
sonames causes problems with dealing with uninstalled libtool
operation properly. We're unlikely to find any way of combining
the two that will be robust against future changes in both
facilities.

Switch to a different approach - run 'ldd' on the compiled
introspection binary and extract sonames from there This is
less portable but should be quite robust where it works.

utils.py dumper.py: Move libtool-command-line finding into utils.py
girwriter.py: Remove library name resolution from here, expect libraries
  to be passed in preresolved.
shlibs.py scannermain.py: New file including resolve_shlibs() to resolve
  library names using the introspection binary.
tests/scanner/Makefile.am: Add .libs to LD_LIBRARY_PATH

http://bugzilla.gnome.org/show_bug.cgi?id=591669

14 years agoautoconf-2.64 compat: Don't use $(builddir)
Owen W. Taylor [Mon, 17 Aug 2009 04:07:35 +0000 (00:07 -0400)]
autoconf-2.64 compat: Don't use $(builddir)

$(builddir) is not a standard automake variable. With autoconf < 2.64
it ends up getting set in every Makefile.in to '.' (because autoconf
defines it), but that is no longer the case for 2.64.

Since $(builddir) was always '.', just use that instead.

14 years agoMove LPATH and $(CHECK_DEBUG) bits into $(SCANNER)
Colin Walters [Mon, 17 Aug 2009 03:43:37 +0000 (23:43 -0400)]
Move LPATH and $(CHECK_DEBUG) bits into $(SCANNER)

This allows us to consistently use $(SCANNER) as the first item
which needs to work for $(AM_V_GEN).

14 years agoProtect against source_filename being None when analyzing constants
Colin Walters [Mon, 17 Aug 2009 03:21:20 +0000 (23:21 -0400)]
Protect against source_filename being None when analyzing constants

It's allowed for source_filename to be None if we can't match it
up with a file, so just skip the constant in that case.

14 years agoUse current working directory for temporary executables
Colin Walters [Mon, 17 Aug 2009 03:20:14 +0000 (23:20 -0400)]
Use current working directory for temporary executables

This avoids /tmp noexec madness.

14 years agoExcise shave in favor of automake 1.11 silent rules
Colin Walters [Mon, 17 Aug 2009 02:59:31 +0000 (22:59 -0400)]
Excise shave in favor of automake 1.11 silent rules

Shave is just way too invasive in the build system.

14 years ago-DGLIB_COMPILATION when scanning GLib
Colin Walters [Sun, 16 Aug 2009 00:15:43 +0000 (20:15 -0400)]
-DGLIB_COMPILATION when scanning GLib

Some of the GLib headers are now growing checks for single-include;
override that.

14 years agoPrepend to $LD_LIBRARY_PATH not append
Owen W. Taylor [Thu, 13 Aug 2009 20:03:29 +0000 (16:03 -0400)]
Prepend to $LD_LIBRARY_PATH not append

We want to extend $LD_LIBRARY_PATH from the front so that uninstalled
libraries take precedence over installed libraries.

http://bugzilla.gnome.org/show_bug.cgi?id=591740

14 years agoDon't open shared libraries twice
Owen W. Taylor [Thu, 13 Aug 2009 19:14:49 +0000 (15:14 -0400)]
Don't open shared libraries twice

If loading a referenced shared library succeeds, don't try loading it again.

http://bugzilla.gnome.org/show_bug.cgi?id=591737

14 years agoUpdate after commit ffc15cd51639679c914868006a1e3462958bfd77
Simon van der Linden [Thu, 13 Aug 2009 19:45:02 +0000 (21:45 +0200)]
Update after commit ffc15cd51639679c914868006a1e3462958bfd77

14 years agoAnnotate g_shell_parse_argv()
Dan Winship [Mon, 10 Aug 2009 19:43:22 +0000 (15:43 -0400)]
Annotate g_shell_parse_argv()

14 years agoBack out the previous change. Now go back to hardcoding compiler to gcc.
Brian Cameron [Wed, 5 Aug 2009 19:25:30 +0000 (14:25 -0500)]
Back out the previous change.  Now go back to hardcoding compiler to gcc.
Using CC fails when building gobject-introspection because CC is defined to
be $(SHELL) scripts/shave cc '$(SHAVE_SAVED_CC)'.  A more sophisticated fix
will be needed later.

14 years agoOnly accept bison as yacc tool
Colin Walters [Wed, 5 Aug 2009 18:40:06 +0000 (14:40 -0400)]
Only accept bison as yacc tool

Others like byacc barf on some of the directives like %error-verbose.

14 years agoCheck the CC environment variable instead of assuming to use the gcc compiler.
Brian Cameron [Wed, 5 Aug 2009 17:40:28 +0000 (12:40 -0500)]
Check the CC environment variable instead of assuming to use the gcc compiler.

14 years agoUse all libraries specified on the command line
Colin Walters [Wed, 5 Aug 2009 17:24:23 +0000 (13:24 -0400)]
Use all libraries specified on the command line

Earlier we were only using the first library specified when
compiling an introspection binary.  This breaks builds on Solaris
which doesn't have implicit linking and we need to be able
to specify multiple libraries.

The tension here is primarily related to OS X' distinction between
modules and shared libraries; if we build the custom libraries
in gir-repository as shared libraries, then we can't dlopen them.
If we build them as modules, then the introspection binary compiler
can't link to them.

If we want to fix the OS X build, probably the way to go would be
a special --use-first-library-only option that gets conditionalized
on OS X + gir-repository.

But even better is to finish killing gir-repository entirely.

14 years agoAdd allow-none for etag for g_file_replace
Colin Walters [Mon, 3 Aug 2009 23:54:20 +0000 (19:54 -0400)]
Add allow-none for etag for g_file_replace

14 years agoFix a typo in test_flags_get_type
Simon van der Linden [Sun, 2 Aug 2009 11:30:04 +0000 (13:30 +0200)]
Fix a typo in test_flags_get_type

14 years agoRevert "Window isn't a record, but really a typedef for uint32"
Owen W. Taylor [Thu, 9 Jul 2009 10:11:35 +0000 (11:11 +0100)]
Revert "Window isn't a record, but really a typedef for uint32"

Exporting Windoew as a uint32 is revealing some problems in namespace
handling - functions that are supposed to return a GdkWindow * are
returning a x11.Window instead. Until that is fixed, we need to avoid
making this change.

(Also, Window isn't a uint32, it is an unsigned long)

This reverts commit 9ce2b05198653697896c3f7c9271073789f90c51.

http://bugzilla.gnome.org/show_bug.cgi?id=588147

14 years agoFix checks in gfield.c
Owen W. Taylor [Tue, 21 Apr 2009 14:57:50 +0000 (10:57 -0400)]
Fix checks in gfield.c

When checking if the readable/writable flags are missing for the fields
we are trying to read and write, use (a & flag) == 0, not (!a & flag).

http://bugzilla.gnome.org/show_bug.cgi?id=579727

14 years agoWindow isn't a record, but really a typedef for uint32
Colin Walters [Wed, 8 Jul 2009 13:16:25 +0000 (09:16 -0400)]
Window isn't a record, but really a typedef for uint32

Since it's used in the API as just "Window foo();", bindings
will fail trying to take a by-value struct.

14 years agoAdd a function to test arrays as inout argument in Everything
Simon van der Linden [Sun, 5 Jul 2009 16:12:45 +0000 (18:12 +0200)]
Add a function to test arrays as inout argument in Everything

Add test_array_int_inout in Everything.

14 years agoSync the basic types array in girnode.c:serialize_type with GITypeTag
Dan Winship [Mon, 6 Jul 2009 15:17:40 +0000 (11:17 -0400)]
Sync the basic types array in girnode.c:serialize_type with GITypeTag

Fixes a crash compiling GIRepository-2.0.gir.

http://bugzilla.gnome.org/show_bug.cgi?id=587823

14 years agoBug 583686 - Add gobject-introspection-no-export-1.0.pc
Colin Walters [Mon, 6 Jul 2009 15:22:48 +0000 (11:22 -0400)]
Bug 583686 - Add gobject-introspection-no-export-1.0.pc

Some projects may want to avoid the giant -Wl,--export-dynamic
hammmer and instead use a custom regexp or export list, so
provide a .pc file for them to use.

14 years agoMerge commit 'origin'
Johan Dahlin [Mon, 6 Jul 2009 14:05:11 +0000 (11:05 -0300)]
Merge commit 'origin'

14 years agoOmit warnings, my console is not a todo list
Johan Dahlin [Mon, 6 Jul 2009 14:04:22 +0000 (11:04 -0300)]
Omit warnings, my console is not a todo list

14 years agoAdd a TestObj subclass in Everything
Simon van der Linden [Sun, 28 Jun 2009 14:05:46 +0000 (16:05 +0200)]
Add a TestObj subclass in Everything

Add an instance method to TestObj.
Add a TestObj subclass in Everything, with another constructor, an
additional instance method and an overridden instance method.

14 years agoAllow annotations on fields
Andreas Rottmann [Fri, 3 Jul 2009 21:14:04 +0000 (23:14 +0200)]
Allow annotations on fields

Plain fields (i.e. non-callbacks) may have a 'type' annotation now.

14 years agoAdd xmlTextReaderPtr type to fake libxml2 GIR
Tim Horton [Fri, 26 Jun 2009 00:28:30 +0000 (20:28 -0400)]
Add xmlTextReaderPtr type to fake libxml2 GIR

This is needed in order to get libgweather introspecting.

14 years agoBug 586994: Add annotations for g_file_open_tmp()/g_file_replace_contents().
C. Scott Ananian [Thu, 25 Jun 2009 21:18:56 +0000 (17:18 -0400)]
Bug 586994: Add annotations for g_file_open_tmp()/g_file_replace_contents().

14 years agoName unions to enable compilation on Solaris
Tobias Mueller [Wed, 24 Jun 2009 21:52:05 +0000 (23:52 +0200)]
Name unions to enable compilation on Solaris

Patch by Brian Cameron <brian.cameron@sun.com>.
Fixes bug 578199.

14 years agoFix 'make check'.
C. Scott Ananian [Wed, 24 Jun 2009 18:12:52 +0000 (14:12 -0400)]
Fix 'make check'.

Commits 0561c1e84 and f88185674 (for b.g.o 585427 and 585368) broke 'make
check' because they forgot to update Everything-1.0-expected.gir when
additional tests were added to the Everything library.  Add the new
methods to the -expected.gir file.

14 years agoAdd tests for array as output argument and fixed-size arrays in Everything
Simon van der Linden [Wed, 24 Jun 2009 15:16:48 +0000 (17:16 +0200)]
Add tests for array as output argument and fixed-size arrays in Everything

Add test_array_int_out to test arrays as output argument.
Add test_array_fixed_size_int_in, test_array_fixed_size_int_out, and
test_array_fixed_size_int_return to test fixed-size arrays as arguments.

http://bugzilla.gnome.org/show_bug.cgi?id=585427

14 years agoAdd two tests in Everything regarding multiple output arguments
Simon van der Linden [Wed, 24 Jun 2009 15:01:21 +0000 (17:01 +0200)]
Add two tests in Everything regarding multiple output arguments

Add test_utf8_out_out and test_utf8_out_nonconst_return in Everything to
test the return of more than one value in a tuple in dynamic bindings.

http://bugzilla.gnome.org/show_bug.cgi?id=585368

14 years agoBug 579008 - Don't override element-type for arrays
Colin Walters [Tue, 23 Jun 2009 21:51:15 +0000 (17:51 -0400)]
Bug 579008 - Don't override element-type for arrays

Annotation parser patch from: Tim Horton <hortont424@gmail.com>

If an explicit element type is specified, don't override it with
guint8.

14 years agoPost release version bump
Johan Dahlin [Mon, 22 Jun 2009 19:44:13 +0000 (16:44 -0300)]
Post release version bump

14 years agoCreate signed tags instead of lightweight ones
Johan Dahlin [Mon, 22 Jun 2009 19:37:47 +0000 (16:37 -0300)]
Create signed tags instead of lightweight ones

14 years agoUpdate NEWS GOBJECT_INTROSPECTION_0_6_3
Johan Dahlin [Mon, 22 Jun 2009 19:08:05 +0000 (16:08 -0300)]
Update NEWS

14 years agoBug 584423 – Add short/ushort support
Mark Lee [Fri, 19 Jun 2009 23:53:03 +0000 (16:53 -0700)]
Bug 584423 – Add short/ushort support

Add type tags for short and ushort, plus all of the requisite code needed
to utilize them in libgirepository.
Add support in the scanner's AST files.
Add test functions to the everything library and the expected gir file.

gtypelib.c constant validation fixed by Colin Walters <walters@verbum.org>

14 years agoUpdate annotation expected "tgir" for previous commit
Colin Walters [Thu, 18 Jun 2009 21:56:31 +0000 (17:56 -0400)]
Update annotation expected "tgir" for previous commit

Since we're not writing out the zero-terminated flag now when
we shouldn't, update the tests too.

14 years agoBug 585328 - Only set zero_terminated flag for types we know are
Simon van der Linden [Wed, 17 Jun 2009 21:30:19 +0000 (17:30 -0400)]
Bug 585328 - Only set zero_terminated flag for types we know are

Rationalize our setting of the zero_terminated flag; we shouldn't
set it if the gir doesn't say to.

14 years agoEverything: add a boxed property to TestObj
Andreas Rottmann [Wed, 17 Jun 2009 16:11:16 +0000 (18:11 +0200)]
Everything: add a boxed property to TestObj

14 years agoMake sure the scanner and compiler are able to find libeverything.so.1
Johan Bilien [Tue, 16 Jun 2009 17:41:29 +0000 (18:41 +0100)]
Make sure the scanner and compiler are able to find libeverything.so.1

and that it uses the uninstalled version.
Fixes make check (when libeverything.so.1 was uninstalled).

14 years agoBug 585579: actually check Everything-1.0-expected.gir
C. Scott Ananian [Mon, 15 Jun 2009 20:48:12 +0000 (16:48 -0400)]
Bug 585579: actually check Everything-1.0-expected.gir

As discussed in bug 585908, we also rename CHECKGIRS and EXPECTEDGIRS to
match the naming in tests/scanner/Makefile.am.

14 years agoFix distcheck. A couple of files was missing from EXTRA_DIST.
Marco Pesenti Gritti [Mon, 15 Jun 2009 20:21:53 +0000 (16:21 -0400)]
Fix distcheck. A couple of files was missing from EXTRA_DIST.

14 years agoAnnotate g_get_system_*_dirs ()
Johan Bilien [Mon, 15 Jun 2009 11:36:31 +0000 (12:36 +0100)]
Annotate g_get_system_*_dirs ()

14 years agoBug 585579: Update Everything-1.0-expected.gir to match recent array/strv changes.
C. Scott Ananian [Fri, 12 Jun 2009 15:19:40 +0000 (11:19 -0400)]
Bug 585579: Update Everything-1.0-expected.gir to match recent array/strv changes.

14 years agoBug 585373: Add annotations for g_spawn_* functions.
C. Scott Ananian [Fri, 5 Jun 2009 22:07:25 +0000 (18:07 -0400)]
Bug 585373: Add annotations for g_spawn_* functions.

14 years agoBug 585584: Fix warnings in girparser backtrace functionality and compiler.c
C. Scott Ananian [Fri, 12 Jun 2009 15:52:56 +0000 (11:52 -0400)]
Bug 585584: Fix warnings in girparser backtrace functionality and compiler.c

14 years agoBug 585374: Fix misspelling of 'infinite'.
C. Scott Ananian [Mon, 18 May 2009 18:23:29 +0000 (14:23 -0400)]
Bug 585374: Fix misspelling of 'infinite'.

14 years agoBug 581685: Parse parameterized types (using <>) in annotations.
C. Scott Ananian [Fri, 12 Jun 2009 14:57:38 +0000 (10:57 -0400)]
Bug 581685: Parse parameterized types (using <>) in annotations.

You can now specify a nested parameterized type in annotations as
(for example):
  @param: (type GLib.HashTable<utf8,GLib.HashTable<utf,utf>>)
or
  @param: (element-type utf8 GLib.HashTable<utf,utf>)

New test functions for the Everything typelib show how it works.

14 years agoMake g-ir-compiler find files installed by make install
Holger Hans Peter Freyther [Mon, 1 Jun 2009 07:18:43 +0000 (09:18 +0200)]
Make g-ir-compiler find files installed by make install

When ./configure --prefix $HOME/some/where is used gobject-introspection
will happily install the files into $HOME/some/where/data/gir-1.0 but
it will refuse to find them. Apply the same trick as in
girepository/girepository.c:init_globals to find the gir files.

Unifiy the name gir-1.0 in GIR_SUFFIX and use it throughout the
project, introduce GIR_DIR which holds the path to the gir files and
update girparser and transformer.py to look into this path.

14 years agoDon't fail if no --output option is specified
Colin Walters [Thu, 11 Jun 2009 13:53:35 +0000 (09:53 -0400)]
Don't fail if no --output option is specified

Printing to stdout is legitimate.

14 years agoRemove duplicate typelib installation rules
root [Wed, 10 Jun 2009 19:00:17 +0000 (15:00 -0400)]
Remove duplicate typelib installation rules

No need to list them twice, and it confuses/breaks some install tools.

14 years agoBug 577546 - More annotations for GLib, GObject, Gio
Colin Walters [Tue, 9 Jun 2009 19:51:57 +0000 (15:51 -0400)]
Bug 577546 - More annotations for GLib, GObject, Gio

Patch modified from one by Norbert Freese <nf2.email@gmail.com>.

14 years agoBug 577534 - Use rename to write new typelibs, instead of in-place overwrite
Colin Walters [Tue, 9 Jun 2009 18:03:47 +0000 (14:03 -0400)]
Bug 577534 - Use rename to write new typelibs, instead of in-place overwrite

This avoids having processes with the typelibs currently open exploding
immediately.

14 years agoBug 584453 - Handle char ** correctly (and const variation)
Colin Walters [Thu, 4 Jun 2009 17:51:26 +0000 (13:51 -0400)]
Bug 584453 - Handle char ** correctly (and const variation)

This patch fixes our default handling of char **.  We add Return
node types as a case where we test for array handling.

Remove the hardcoded assumption of array = "no transfer", just
use the separate Parameter/Return cases.  This change causes
inout char ** to be transfer="full", but that seems more correct.

14 years agoAdd a test_strv_out which is unannotated, rename current to test_strv_out_container
Colin Walters [Thu, 4 Jun 2009 16:40:41 +0000 (12:40 -0400)]
Add a test_strv_out which is unannotated, rename current to test_strv_out_container

We need a test case for a plain unannotated char ** return value, which
should be an array.

Keep the old annotated test as a test case for the container transfer.

14 years agoBug 585081 - Correct everything linkage
Simon van der Linden [Mon, 8 Jun 2009 16:51:33 +0000 (12:51 -0400)]
Bug 585081 - Correct everything linkage

We need to link with gobject.

14 years agoMove Everything into gir/, since it's a public library
Colin Walters [Thu, 4 Jun 2009 19:35:01 +0000 (15:35 -0400)]
Move Everything into gir/, since it's a public library

Everything isn't a test for quite a while now, it's a public library.
So move it to gir/.

14 years agoAdd an Everything-1.0-expected.gir, test Everything versus it
Colin Walters [Thu, 4 Jun 2009 16:42:11 +0000 (12:42 -0400)]
Add an Everything-1.0-expected.gir, test Everything versus it

We should be testing the Everything library as well.

14 years agoAdd GLclampf to the GL GIR
Emmanuele Bassi [Thu, 4 Jun 2009 12:15:31 +0000 (13:15 +0100)]
Add GLclampf to the GL GIR

The GLclampf type is missing from the GL definitions.

http://bugzilla.gnome.org/show_bug.cgi?id=584816

14 years agoAnnotations for g_option_context_parse.
C. Scott Ananian [Mon, 18 May 2009 21:10:14 +0000 (17:10 -0400)]
Annotations for g_option_context_parse.

These annotations match those for gtk_init(), which takes the same
types of arguments.

14 years agoA few transfer-related tests for "Everything"
Andreas Rottmann [Fri, 29 May 2009 20:35:07 +0000 (22:35 +0200)]
A few transfer-related tests for "Everything"

14 years agoFix pep8.py and its invocation.
Chris Rivera [Wed, 20 May 2009 23:29:33 +0000 (19:29 -0400)]
Fix pep8.py and its invocation.

pep8.py:input_file() normally returns the number of errors found in a
given file, but it returns an empty dict if the file is excluded.  Change
it to return 0 instead.

config.py is auto-generated with a prefix that may be longer than
80 characters.  Exclude config.py in the pep8.py check.  This fixes
4042.