Commit Graph

24 Commits

Author SHA1 Message Date
Rico Tzschichholz
c704898e26 gdump: Fix print-format error while GFlagsValue->value is an unsigned int 2018-07-04 16:56:32 +02:00
Paolo Borelli
50c7ae999c gdump: do not leak gfile objects 2016-05-08 15:35:13 -04:00
Philip Withnall
ec81889c35 girepository: Fix some memory leaks in gdump.c
These were leaking memory when dumping introspection data from projects
for building their GIR files. That’s generally not a problem, unless
you’re trying to build the project with -fsanitize=address, which causes
the GIR build phase to error out due to leaking memory.

https://bugzilla.gnome.org/show_bug.cgi?id=762653
2016-02-26 08:22:02 +00:00
Simon Kågedal Reimer
236d3375c6 g_irepository_dump: Update doc to match code
The input file no longer only consists of names of get_type-functions,
instead begins with either "get-type:" or "error-quark:".

https://bugzilla.gnome.org/show_bug.cgi?id=701639
2013-06-05 13:43:12 -04:00
Christian Persch
55efc6e90e Add printf attribute
This fixes a compiler warning when using -Wmissing-format-attribute.

https://bugzilla.gnome.org/show_bug.cgi?id=698521
2013-05-05 22:56:21 +02:00
Colin Walters
e865dcb7b4 Add Emacs mode lines to C sources 2012-02-03 13:42:56 -05:00
Colin Walters
61c8a0dda2 gi-dump-types: New uninstalled debugging program
Usage: ./_build/gi-dump-types g_object_get_type
2011-09-03 12:34:29 -04:00
Johan Dahlin
4ce922a903 Add signal flags
This adds all GSignalFlags into the gir.

https://bugzilla.gnome.org/show_bug.cgi?id=656457
2011-08-13 11:21:05 -03:00
Dan Winship
57554d4b2d Switch to storing string form of error quarks
Instead of storing the name of the function to call to get the
error quark, store the string form of the error quark, which
we derive from the introspection binary during scanning.

Update EnumBlob and GIEnumInfo to include the new information.

This will allow determining a back-mapping from error quark
to error domain without having to dlsym() and call all the
known error quark functions.

Based on earlier patches from Owen Taylor and Maxim Ermilov.

https://bugzilla.gnome.org/show_bug.cgi?id=602516
2011-08-12 11:10:43 -04:00
Giovanni Campagna
a1b527c79f Rework how fundamental GObject types are introspected
Change the special code for handling GObject and GInitiallyUnowned
so that it exposes GParamSpec as a class, and it allows GVariant to
have a GType without using the deprecate g_variant_get_gtype.

It is a sort of ABI break, in that new typelibs won't work with
previous versions of libgirepository.

https://bugzilla.gnome.org/show_bug.cgi?id=646635
2011-06-08 17:45:31 +02:00
Benjamin Otte
66f164c0ea scanner: Rename g_irepository_dump when included from the dumper
This avoids a naming conflict when compiling GiRepository.gir, where
g_irepository_dump() was defined in an included header.
2011-01-11 15:11:05 +01:00
Colin Walters
795116b391 dumper: Make g_irepository_dump static when being used in dumper
Otherwise we'll bomb out if CFLAGS contains -Werror.
2010-10-01 12:44:08 -04:00
Colin Walters
26841c0b51 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
2010-09-30 13:47:25 -04:00
Colin Walters
0449abe898 scanner: Avoid internal invalid Type instances from parents
We were adding a trailing ',' in the parent string, clean that up; and
don't attempt to create a Type from the empty string.
2010-08-31 16:05:57 -04:00
Colin Walters
9b1bb64e83 [girepository] Fix up error printing
We didn't show the right error message if we failed to find
the symbol; fix this by removing error printing from the
middle of the dumper, and add it correctly to the toplevel
dump entry point.
2010-08-17 13:12:52 -04:00
Johan Dahlin
b6d50e2951 Add support for non-GObject fundamental objects
This patch adds support for instantiable fundamental object types,
which are not GObject based. This is mostly interesting for being
able to support GstMiniObject's which are extensivly used in GStreamer.
Includes a big test case to the Everything module (inspired by
GstMiniObject) which should be used by language bindings who wishes to
test this functionallity.

This patch increases the size of the typelib and breaks compatibility
with older typelibs.

https://bugzilla.gnome.org/show_bug.cgi?id=568913
2010-07-09 10:15:45 -03:00
Johan Dahlin
6b0463dd16 [girepository] Remove trailing whitespace 2010-03-24 15:02:05 -03:00
Colin Walters
6b5a358371 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
2009-10-21 14:19:26 -04:00
Johan Dahlin
40e6b94790 add FT_Int32 add XftFont Report errors when an invalid type is encountered
2009-01-15  Johan Dahlin  <jdahlin@async.com.br>

	* gir/freetype2-2.0.gir: add FT_Int32
	* gir/xft-2.0.gir: add XftFont
	* girepository/gdump.c (g_irepository_dump):
	Report errors when an invalid type is encountered
	* giscanner/glibtransformer.py:
	Make the error message a bit nicer.

	Part of preparating for gir generating inside pango.


svn path=/trunk/; revision=1050
2009-01-16 00:42:22 +00:00
Johan Dahlin
d8cb1e0d2c Remove a warning, be less verbose on error on fundamental types.
2008-11-24  Johan Dahlin  <jdahlin@async.com.br>

	* girepository/gdump.c (dump_type): Remove a warning,
	be less verbose on error on fundamental types.


svn path=/trunk/; revision=963
2008-11-24 16:22:16 +00:00
Colin Walters
6c74aba6b6 Bug 559706 - Interface prerequisites
svn path=/trunk/; revision=936
2008-11-17 00:27:46 +00:00
Colin Walters
7916f49e55 Bug 559706 - interface prequisites
svn path=/trunk/; revision=932
2008-11-17 00:27:37 +00:00
Colin Walters
fd1fe6c0b6 Remove processing msg
svn path=/trunk/; revision=915
2008-11-13 20:21:05 +00:00
Colin Walters
a610d8cbb4 Add new files from last commit
svn path=/trunk/; revision=913
2008-11-13 20:13:39 +00:00