gnome.gobject-introspection
14 years ago[cairo] Mark add structs as foreign origin/HEAD origin/master
Johan Dahlin [Thu, 25 Mar 2010 12:34:20 +0000 (09:34 -0300)]
[cairo] Mark add structs as foreign

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

14 years agoAdd support for foreign structs
Johan Dahlin [Fri, 26 Mar 2010 02:12:12 +0000 (23:12 -0300)]
Add support for foreign structs

Foreign structs are special in the sense that there might
be native bindings (for instance PyCairo for PyGI) that provides
the same functionallity as the introspected variant.

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

14 years ago[docs] Remove reference to girwriter.c
Johan Dahlin [Fri, 26 Mar 2010 01:30:42 +0000 (22:30 -0300)]
[docs] Remove reference to girwriter.c

14 years ago[typelib] Remove space/indent mismatch
Johan Dahlin [Wed, 24 Mar 2010 18:20:14 +0000 (15:20 -0300)]
[typelib] Remove space/indent mismatch

14 years agoRemove unused file girwriter.c
Johan Dahlin [Thu, 25 Mar 2010 12:17:20 +0000 (09:17 -0300)]
Remove unused file girwriter.c

14 years agoRemove trailing whitespace
Johan Dahlin [Thu, 25 Mar 2010 12:17:03 +0000 (09:17 -0300)]
Remove trailing whitespace

14 years agoRevert accidentally committed attribute
Johan Dahlin [Wed, 24 Mar 2010 18:40:28 +0000 (15:40 -0300)]
Revert accidentally committed attribute

14 years ago[MAINTAINERS] Remove Matthias
Johan Dahlin [Wed, 24 Mar 2010 18:02:33 +0000 (15:02 -0300)]
[MAINTAINERS] Remove Matthias

14 years ago[girepository] Remove trailing whitespace
Johan Dahlin [Wed, 24 Mar 2010 18:00:06 +0000 (15:00 -0300)]
[girepository] Remove trailing whitespace

14 years ago[cairo] Remove unused glib types
Johan Dahlin [Wed, 24 Mar 2010 17:55:22 +0000 (14:55 -0300)]
[cairo] Remove unused glib types

14 years agoEnumerations can be negative
Colin Walters [Wed, 17 Mar 2010 23:28:01 +0000 (19:28 -0400)]
Enumerations can be negative

Change the internal type for ValueBlob to gint32, since it's perfectly
valid for enumerations to have negative values.

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

14 years ago[configure.ac] Post-release version bump
Colin Walters [Wed, 10 Mar 2010 13:53:56 +0000 (08:53 -0500)]
[configure.ac] Post-release version bump

14 years ago[MAINTAINERS] Add Colin Walters <walters@verbum.org>
Colin Walters [Wed, 10 Mar 2010 13:50:49 +0000 (08:50 -0500)]
[MAINTAINERS] Add Colin Walters <walters@verbum.org>

14 years agoFix g_file_enumerator_next_files_finish annotation
Maxim Ermilov [Wed, 17 Mar 2010 21:46:02 +0000 (17:46 -0400)]
Fix g_file_enumerator_next_files_finish annotation

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

14 years agoSmall fix to handle @attributes: .... (.....) as a parameter to a function
Alan Knowles [Mon, 15 Mar 2010 15:05:46 +0000 (23:05 +0800)]
Small fix to handle @attributes:  .... (.....)  as a parameter to a function

Previously crashed out, now just ignores the attribute

14 years ago[glib] Add g_convert annotations
Johan Dahlin [Mon, 15 Mar 2010 13:48:57 +0000 (10:48 -0300)]
[glib] Add g_convert annotations

14 years agoMerge remote branch 'origin'
Johan Dahlin [Wed, 10 Mar 2010 15:01:15 +0000 (12:01 -0300)]
Merge remote branch 'origin'

14 years ago[everything] Add alternative boxed constructors
Johan Dahlin [Tue, 9 Mar 2010 15:28:22 +0000 (12:28 -0300)]
[everything] Add alternative boxed constructors

14 years ago[gio-2.0.c] Annotate g_file_replace
Colin Walters [Mon, 8 Mar 2010 20:22:03 +0000 (15:22 -0500)]
[gio-2.0.c] Annotate g_file_replace

14 years ago[everything] Add to expected .gir for last comment
Colin Walters [Thu, 4 Mar 2010 17:22:13 +0000 (12:22 -0500)]
[everything] Add to expected .gir for last comment

14 years ago[everything] Add some "torture" test functions with baroque signatures
Colin Walters [Thu, 4 Mar 2010 14:32:16 +0000 (09:32 -0500)]
[everything] Add some "torture" test functions with baroque signatures

We didn't have good coverage of say in arguments after out.

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

14 years agoAdd a test function with an out argument and some other after that
Johan Bilien [Mon, 1 Mar 2010 22:32:32 +0000 (17:32 -0500)]
Add a test function with an out argument and some other after that

Useful to debug case https://bugzilla.gnome.org/show_bug.cgi?id=611529

14 years ago[giscanner] Catch CalledProcessError and OSError
Johan Dahlin [Wed, 17 Feb 2010 16:53:07 +0000 (14:53 -0200)]
[giscanner] Catch CalledProcessError and OSError

Instead of catching all errors, including AttributeError,
TypeError and NameError.

14 years ago[scanner] Catch OSError too when checking for libtool
Colin Walters [Wed, 17 Feb 2010 16:18:18 +0000 (11:18 -0500)]
[scanner] Catch OSError too when checking for libtool

If we don't have permission to execute the libtool binary, we'd
just throw here which is wrong.  Fix this by catching all
exceptions.

14 years agoFix glib:error-quark scanning for unregistered enum types
Owen W. Taylor [Tue, 22 Dec 2009 16:10:33 +0000 (11:10 -0500)]
Fix glib:error-quark scanning for unregistered enum types

The enumeration type for an error might not be introspected
and registered with GObject (this is, in particular, true for
the errors in GLib itself). So, as a fallback search, through
all enum types in the module.

Add a special case for the aberrant GIOErrorEnum and a warning
if resolution completely fails.

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

14 years agoFix unittests, add missing allow-none
Johan Dahlin [Fri, 12 Feb 2010 16:03:14 +0000 (14:03 -0200)]
Fix unittests, add missing allow-none

Colin should remember to run `make check' before comitting!

14 years agoDelete stray g_return_if_fail
Colin Walters [Thu, 11 Feb 2010 22:49:51 +0000 (17:49 -0500)]
Delete stray g_return_if_fail

If g_alloca failed we're pretty much screwed, and g_return_if_fail
is for API entry points, not internal assertions.

14 years agoAssume allow-none for GCancellable
Colin Walters [Tue, 15 Dec 2009 22:39:00 +0000 (17:39 -0500)]
Assume allow-none for GCancellable

All GCancellables are allow-none, this allows us to remove a lot
of custom annotations.

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

14 years agoFix Alignment Errors.
Kedar Sovani [Wed, 21 Oct 2009 11:28:12 +0000 (13:28 +0200)]
Fix Alignment Errors.

Signed-off-by: Kedar Sovani <kedars@marvell.com>
https://bugzilla.gnome.org/show_bug.cgi?id=606139

14 years ago[g-ir-compiler] Slightly less lame error messages
Colin Walters [Thu, 11 Feb 2010 22:18:28 +0000 (17:18 -0500)]
[g-ir-compiler] Slightly less lame error messages

To make things really better we should track the line origin of
element from the .gir file (and actually we need to do better
checking in the scanner), but this is slightly less lame.

14 years agoConform last patch with pep8
Colin Walters [Thu, 11 Feb 2010 21:42:59 +0000 (16:42 -0500)]
Conform last patch with pep8

14 years ago[scanner] Print error instead of throwing for unknown include
Colin Walters [Thu, 11 Feb 2010 21:03:59 +0000 (16:03 -0500)]
[scanner] Print error instead of throwing for unknown include

We should avoid exceptions being propagated to the toplevel.

14 years agotests: Do not include built source in the distribution
Johan Bilien [Mon, 1 Feb 2010 20:18:27 +0000 (15:18 -0500)]
tests: Do not include built source in the distribution

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

14 years agogir: Do not include generated gir files in the distribution
Johan Bilien [Mon, 1 Feb 2010 20:17:57 +0000 (15:17 -0500)]
gir: Do not include generated gir files in the distribution

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

14 years agoincrease limit of GIRealInfo's ref_count
Maxim Ermilov [Sun, 24 Jan 2010 21:26:29 +0000 (00:26 +0300)]
increase limit of GIRealInfo's ref_count

New limit is 0x7FFFFFFF.

14 years agotests: Add the scope for callbacks in expected girs
Johan Bilien [Mon, 18 Jan 2010 15:03:11 +0000 (10:03 -0500)]
tests: Add the scope for callbacks in expected girs

following my previous patch to systematically specify the scope in
callbacks. Had forgotten to add these.

14 years agoscanner: Always explicitely set the scope of callbacks
Johan Bilien [Thu, 14 Jan 2010 22:02:36 +0000 (17:02 -0500)]
scanner: Always explicitely set the scope of callbacks

default to 'call' as stated in the annotation documentation.

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

14 years agoannotate g_filename_to_uri
Dan Winship [Wed, 13 Jan 2010 20:39:40 +0000 (15:39 -0500)]
annotate g_filename_to_uri

14 years agoCorrectly cast to a CommonBlob when looking up embedded types
Colin Walters [Thu, 7 Jan 2010 21:12:15 +0000 (16:12 -0500)]
Correctly cast to a CommonBlob when looking up embedded types

When looking at an embedded type (e.g. a Callback after a Field), the
offset we put in the info structure was to the CallbackBlob itself.

However the code in g_type_info_get_interface assumed that the offset
was to a SimpleTypeBlob, which it wasn't.

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

14 years agoDon't remove .c file for dumper binary
Owen W. Taylor [Sun, 3 Jan 2010 15:50:58 +0000 (10:50 -0500)]
Don't remove .c file for dumper binary

We're going to remove the entire temporary directory,
so there's no point in explicitly removing just the .c file
we create; leaving the .c file behind makes it easier to debug
problems.

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

14 years agoRemove tabs, fixes make check
Johan Dahlin [Fri, 8 Jan 2010 19:08:44 +0000 (17:08 -0200)]
Remove tabs, fixes make check

14 years agoAdd an --add-init-section argument
Damien Lespiau [Wed, 23 Dec 2009 23:15:21 +0000 (00:15 +0100)]
Add an --add-init-section argument

One might need to call some init functions before being able to call
get_type() to create the types of a library.

--add-init-section let the user insert some initialization code in the
introspection program.

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

14 years agoThe private header should be included in girffi.c
Johan Dahlin [Thu, 31 Dec 2009 16:37:21 +0000 (17:37 +0100)]
The private header should be included in girffi.c

Not in the public girffi.h.

14 years ago__extension__ can be put in front of expressions
Damien Lespiau [Sat, 26 Dec 2009 14:32:20 +0000 (15:32 +0100)]
__extension__ can be put in front of expressions

glib uses __extension__ in macros dealing with 64 bits integer such as
GUINT64_SWAP_LE_BE().

To quote the GCC manual:
  `-pedantic' and other options cause warnings for many GNU C extensions.  You
  can prevent such warnings within one expression by writing `__extension__'
  before the expression.

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

14 years agoFix typo in the help string of the --no-libtool argument
Damien Lespiau [Wed, 23 Dec 2009 20:35:12 +0000 (21:35 +0100)]
Fix typo in the help string of the --no-libtool argument

--no-libtool means that one does not want to use libtool to compile the
introspection program.

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

14 years agoSimplify Gio-2.0.gir rules
Johan Dahlin [Thu, 31 Dec 2009 14:35:49 +0000 (15:35 +0100)]
Simplify Gio-2.0.gir rules

Also make sure to add cflags from gio-unix-2.0 to avoid a warning

14 years agoAdd missing include girffi-private.h
Johan Dahlin [Thu, 31 Dec 2009 14:29:43 +0000 (15:29 +0100)]
Add missing include girffi-private.h

14 years agoInclude Python.h earlier
Johan Dahlin [Thu, 31 Dec 2009 14:26:33 +0000 (15:26 +0100)]
Include Python.h earlier

This avoids pyconfig.h:1028:1: warning: "_POSIX_C_SOURCE" redefined

14 years agoUse AM_V_GEN more a more quiet build
Johan Dahlin [Thu, 31 Dec 2009 14:23:16 +0000 (15:23 +0100)]
Use AM_V_GEN more a more quiet build

Also suppress a bit more using @

14 years agoMake sure the macros work without silent rules
Johan Dahlin [Wed, 30 Dec 2009 23:21:33 +0000 (00:21 +0100)]
Make sure the macros work without silent rules

We should not require AM_DEFAULT_VERBOSITY to be present, workaround
that fact

14 years agoMake compiler output with silent-rules prettier
Johan Dahlin [Wed, 30 Dec 2009 22:52:22 +0000 (23:52 +0100)]
Make compiler output with silent-rules prettier

This is only supported with automake 1.11 or newer, older versions
should default to showing nothing for now.

14 years agoAdd -DGLIB_COMPILATION for GLib-2.0.gir.
Halton Huo [Wed, 23 Dec 2009 08:27:40 +0000 (16:27 +0800)]
Add -DGLIB_COMPILATION for GLib-2.0.gir.

Otherwise, suncc reports error when parsing /usr/include/glib-2.0/glib/ghostutils.h,
and stops parsing rest headers.

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

14 years agoAllow stack allocating GIBaseInfo, add stack retrieval variants
Colin Walters [Mon, 7 Dec 2009 23:35:06 +0000 (18:35 -0500)]
Allow stack allocating GIBaseInfo, add stack retrieval variants

We don't want to malloc each GIBaseInfo when they can be used in
function invocation; instead, allow stack allocation.

There were a lot of structure typedefs which were actually just
exactly the same as GIBaseInfo, with the one exception of GITypeInfo.

Instead, just put the single GITypeInfo boolean inside GIBaseInfo
as a bit in a bitfield.

GIBaseInfo is still opaque publicly; GIRealInfo is the new
internal structure.

Using this, add new functions to retrieve arguments and argument types
on the stack.

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

14 years ago[girffi] Clean up API, add g_function_info_prep_invoker
Colin Walters [Mon, 7 Dec 2009 16:54:18 +0000 (11:54 -0500)]
[girffi] Clean up API, add g_function_info_prep_invoker

Rather than having bindings use g_function_info_invoke, which is basically
a toy/demo API, export a convenience utility function which takes the introspection
information and sets up things we need to pass to libffi.

Then invocation can be done directly to libffi by a binding.

As part of this work, remove some (unused by gjs) public functions from the
girffi API, and instead export a function to map to libffi which can work
semi-correctly.

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

14 years agoFix compilation warning in ginvoke.c
Colin Walters [Wed, 16 Dec 2009 23:16:31 +0000 (18:16 -0500)]
Fix compilation warning in ginvoke.c

14 years agoPost release version bump
Johan Dahlin [Wed, 16 Dec 2009 19:30:00 +0000 (17:30 -0200)]
Post release version bump

14 years agoSubstitute deprecated Glib symbol: g_mapped_file_free GOBJECT_INTROSPECTION_0_6_7
Javier Jardón [Thu, 3 Dec 2009 20:35:23 +0000 (21:35 +0100)]
Substitute deprecated Glib symbol: g_mapped_file_free

glib-compat.h file created to use g_mapped_file_unref only if
glib >= 2.22 is available

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

14 years agofix invoke tests
Saleem Abdulrasool [Sun, 13 Dec 2009 19:56:45 +0000 (11:56 -0800)]
fix invoke tests

retval should be a valid pointer

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

14 years agoprotect on null retval
Saleem Abdulrasool [Sun, 13 Dec 2009 19:53:04 +0000 (11:53 -0800)]
protect on null retval

ffi_call does not protect against retval being NULL, resulting in a segfault.

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

14 years agoRevert "GI_TYPE_TAG_VOID != ffi_type_void"
Johan Dahlin [Tue, 15 Dec 2009 13:00:52 +0000 (11:00 -0200)]
Revert "GI_TYPE_TAG_VOID != ffi_type_void"

This reverts commit 28cccba737ec2214da66b0d74059278162cf5fd0.

14 years agoDo not require the precense of INTROSPECTION_GIRS
Johan Dahlin [Mon, 14 Dec 2009 23:44:26 +0000 (21:44 -0200)]
Do not require the precense of INTROSPECTION_GIRS

It's useful to be able to include the makefile without
having introspection enabled.

14 years agoUpdate .gitignore
Johan Dahlin [Mon, 14 Dec 2009 23:43:55 +0000 (21:43 -0200)]
Update .gitignore

14 years agoInstall Makefile.introspection in the right dir
Johan Dahlin [Mon, 14 Dec 2009 23:42:54 +0000 (21:42 -0200)]
Install Makefile.introspection in the right dir

Also, make sure that it is included in the dist

14 years agoMove the functions out of the define
Johan Dahlin [Mon, 14 Dec 2009 23:42:21 +0000 (21:42 -0200)]
Move the functions out of the define

As it breaks when including the makefile when using
an absolute path.

14 years agoAdd a Makefile.introspection
Johan Dahlin [Mon, 14 Dec 2009 19:21:54 +0000 (17:21 -0200)]
Add a Makefile.introspection

This will make it easier for third-party projects to use
introspection by having easy make rules.

14 years agoPost release version bump
Johan Dahlin [Thu, 10 Dec 2009 19:21:40 +0000 (17:21 -0200)]
Post release version bump

14 years agoannotate g_completion_complete_utf8 GOBJECT_INTROSPECTION_0_6_6
Dan Winship [Wed, 9 Dec 2009 21:39:43 +0000 (16:39 -0500)]
annotate g_completion_complete_utf8

acts as a regression test on the recognizing-GLib.List-inside-glib
part of the previous patch.

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

14 years ago[scanner] Fix various hardcoded type name checks
Dan Winship [Wed, 9 Dec 2009 21:38:57 +0000 (16:38 -0500)]
[scanner] Fix various hardcoded type name checks

Various places that check hardcoded type names were not always handling
the case of the type being used from within its own library (in which
case it won't have a type prefix). Make them more consistent.

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

14 years ago[scanner] "GError *" is not the same as "GError **"
Dan Winship [Wed, 9 Dec 2009 21:37:18 +0000 (16:37 -0500)]
[scanner] "GError *" is not the same as "GError **"

Only set "throws" in the latter case

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

14 years agoImprove the error message
Johan Dahlin [Wed, 9 Dec 2009 18:39:31 +0000 (16:39 -0200)]
Improve the error message

14 years agoFix an annotationparser bug for empty tags
Johan Dahlin [Wed, 9 Dec 2009 18:38:43 +0000 (16:38 -0200)]
Fix an annotationparser bug for empty tags

Makes sure we can parse empty tags such as '@foo:' without
adding a : in the end which the typelib compiler will complain
about

14 years ago[Gio] g_repalce_contents_finish has an out arg
Johan Dahlin [Wed, 9 Dec 2009 12:24:16 +0000 (10:24 -0200)]
[Gio] g_repalce_contents_finish has an out arg

14 years agoMake error more verbose in parser
Bastien Nocera [Wed, 9 Dec 2009 11:21:30 +0000 (11:21 +0000)]
Make error more verbose in parser

By printing the function when arguments are missing

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

14 years agoWrap line in 80 characters
Johan Dahlin [Tue, 8 Dec 2009 19:43:30 +0000 (17:43 -0200)]
Wrap line in 80 characters

14 years ago[everything] Add a function which has multiple (out) double arguments
Colin Walters [Mon, 7 Dec 2009 16:49:33 +0000 (11:49 -0500)]
[everything] Add a function which has multiple (out) double arguments

This is similar to a Clutter function.

14 years ago[transformer] Look up callback types in the full name set, not just typedefs
Colin Walters [Thu, 3 Dec 2009 23:40:36 +0000 (18:40 -0500)]
[transformer] Look up callback types in the full name set, not just typedefs

When looking up GINames, we should look in _names.names.

14 years agoFix foo-1.0-expected.{gir,tgir} for callback patch
Colin Walters [Mon, 7 Dec 2009 23:34:35 +0000 (18:34 -0500)]
Fix foo-1.0-expected.{gir,tgir} for callback patch

14 years agoscanner: more verbose parser error messages
Stefan Kost [Sat, 5 Dec 2009 21:00:32 +0000 (23:00 +0200)]
scanner: more verbose parser error messages

Keep track of the current line (the first 2000 chars of it) and include that in
syntax error messages. Also print that failed token in the error message.

14 years agoscanner: fix wrong linenumbers in parser errors
Stefan Kost [Sat, 5 Dec 2009 20:54:43 +0000 (22:54 +0200)]
scanner: fix wrong linenumbers in parser errors

Increment linenumber in parse_comment which reads over multiline comments.

14 years agoannotationparser: include symbol name in warning
Stefan Kost [Fri, 4 Dec 2009 16:42:48 +0000 (18:42 +0200)]
annotationparser: include symbol name in warning

Telling file and line would be better, but alreday this way one atleast has a
chance to fix it actually.

14 years agoscanner: don't warn about unexpected characters when the char is \0
Stefan Kost [Fri, 4 Dec 2009 16:33:22 +0000 (18:33 +0200)]
scanner: don't warn about unexpected characters when the char is \0

14 years agoAdd ffi cflags/libs/requires to exported .pc
Johan Dahlin [Fri, 4 Dec 2009 15:13:55 +0000 (13:13 -0200)]
Add ffi cflags/libs/requires to exported .pc

This is required as external projects such as gjs
are now using girffi and thus need the ffi cflags
to be able to link.

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

14 years agoRevert "Require libffi.pc"
Johan Dahlin [Fri, 4 Dec 2009 14:19:08 +0000 (12:19 -0200)]
Revert "Require libffi.pc"

This reverts commit 92abbe78dd7ffe0ff6d61db5f2bff0745a69115a and
494c1c92520917999407832453c11c2247b4e7bb.

14 years agoAllow NULL to be sent in for various callbacks
Johan Dahlin [Thu, 3 Dec 2009 21:15:45 +0000 (19:15 -0200)]
Allow NULL to be sent in for various callbacks

14 years ago[everything] Allow passing NULL to the callback
Johan Dahlin [Thu, 3 Dec 2009 21:14:31 +0000 (19:14 -0200)]
[everything] Allow passing NULL to the callback

14 years agoRemove scope notified annotations
Johan Dahlin [Thu, 3 Dec 2009 10:07:56 +0000 (08:07 -0200)]
Remove scope notified annotations

It's no longer necessary as the scanner figures out these
by itself

14 years agoCheck for AsyncReadyCallback / DestroyNotify
Johan Dahlin [Thu, 3 Dec 2009 10:06:22 +0000 (08:06 -0200)]
Check for AsyncReadyCallback / DestroyNotify

This should have been included with f74823. Fixes
the async/notified scope annotation for glib/gio.

14 years ago[configure.ac] Followup to 494c1c92520 - restore $GCOV_LIBS
Colin Walters [Wed, 2 Dec 2009 23:17:03 +0000 (18:17 -0500)]
[configure.ac] Followup to 494c1c92520 - restore $GCOV_LIBS

14 years agoRequire libffi.pc
Colin Walters [Wed, 2 Dec 2009 22:56:05 +0000 (17:56 -0500)]
Require libffi.pc

We use it for girffi.h.  Remove the code to detect libffi without the .pc
file.  If you don't have it, get it.

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

14 years ago[dumper] Fix threads initialization
Colin Walters [Wed, 2 Dec 2009 17:56:52 +0000 (12:56 -0500)]
[dumper] Fix threads initialization

Correctly guard with g_thread_supported, call g_thread_init before
g_type_init.

14 years agoAdd async callback tests to everything
Maxim Ermilov [Wed, 2 Dec 2009 13:01:17 +0000 (11:01 -0200)]
Add async callback tests to everything

14 years agoIgnore errors caused by permissions in $HOME
Josselin Mouette [Wed, 2 Dec 2009 12:50:29 +0000 (10:50 -0200)]
Ignore errors caused by permissions in $HOME

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

14 years agoRemove some unportable integral type size assumptions
Iain Nicol [Mon, 23 Nov 2009 18:52:40 +0000 (18:52 +0000)]
Remove some unportable integral type size assumptions

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

14 years agoUse ${datadir} in lieu of hardcoding ${prefix}/share
Christian Persch [Mon, 16 Nov 2009 12:09:18 +0000 (13:09 +0100)]
Use ${datadir} in lieu of hardcoding ${prefix}/share

Bug #602087.

14 years agoFix build on OpenBSD
Jasper Lievisse Adriaanse [Wed, 2 Dec 2009 12:38:58 +0000 (10:38 -0200)]
Fix build on OpenBSD

Due to a missing header, gobject-introspection fails to compile on OpenBSD.
And only due to headers-including-headers practice this doesn't blow up on
many other platforms.

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

14 years agoGI_TYPE_TAG_VOID != ffi_type_void
Maxim Ermilov [Fri, 27 Nov 2009 15:49:51 +0000 (18:49 +0300)]
GI_TYPE_TAG_VOID != ffi_type_void

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

14 years agoBetter scope in GAsyncReadyCallback/GDestroyNotify
Johan Dahlin [Wed, 25 Nov 2009 00:18:27 +0000 (22:18 -0200)]
Better scope in GAsyncReadyCallback/GDestroyNotify

GAsyncReadyCallback should have use the async scope per
default and GDestroyNotify should be notified if the
previous parameters are a callback and user data.

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

14 years agoPlug a leak in g_callable_info_get_ffi_return_type
Maxim Ermilov [Wed, 2 Dec 2009 12:18:24 +0000 (10:18 -0200)]
Plug a leak in g_callable_info_get_ffi_return_type

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

14 years agoInitiallyUnownedClass should contain all the fields as ObjectClass if we want offset...
Tomeu Vizoso [Thu, 26 Nov 2009 11:43:42 +0000 (11:43 +0000)]
InitiallyUnownedClass should contain all the fields as ObjectClass if we want offset counting to be correct in its sublasses

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

14 years agoMake (skip) annotation work everywhere
Dan Winship [Sun, 22 Nov 2009 17:49:37 +0000 (12:49 -0500)]
Make (skip) annotation work everywhere

Previously it only worked for toplevel nodes. Now it works for any
node except <field>, since skipping a field would cause the
description of the struct layout to be wrong.

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