| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This is really why you shouldn't catch TypeError.
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
When generating a .gir file, we now first parse all of our .gir includes
to pick up their <package> headers. Then, we merge that with the set of
--pkg arguments passed to us, run pkg-config to gather the arguments,
and finally save the merged pkg-config list to our new .gir file.
This is useful for software which needs to map from .gir to pkg-config
in a programmatic way.
|
| |
|
|
|
|
|
|
| |
We want the gir to be extensible.
svn path=/trunk/; revision=1096
|
|
|
|
|
|
|
|
|
|
|
| |
2009-02-10 Rober Carr <carrr@rpi.edu>
Bug 569633 – Typelib compiler fails with vararg callbacks
* girepository/girparser.c: Also filter out callback functions
which take vararg arguments.
svn path=/trunk/; revision=1095
|
|
|
|
| |
svn path=/trunk/; revision=1094
|
|
|
|
| |
svn path=/trunk/; revision=1093
|
|
|
|
| |
svn path=/trunk/; revision=1092
|
|
|
|
|
|
|
| |
gir/xlib-2.0.gir: Add dummy definitions for KeySym and KeyCode
to the dummy xlib-2.0.gir.
svn path=/trunk/; revision=1091
|
|
|
|
| |
svn path=/trunk/; revision=1090
|
|
|
|
| |
svn path=/trunk/; revision=1089
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Inside glibtransformer, we now look at structures ending in "Class" and
see if they have an associated GlibObject (i.e. a structure of the same
name without the "Class" suffix). If found, pair them up.
The .gir file for <class> gains an attribute denoting its associated
class struct. Any <record> many now have a glib:is-class-struct-for
annotation which tells which (if any) <class> for which it defines the
layout.
In the .typelib, we record the association between the class and
its structure. Generic structures however just have a boolean
saying whether they're a class struct. (Going from a generic class
struct to its class should not be necessary).
Finally, we expose GIRepository APIs to access both bits of information
from the .typelib.
svn path=/trunk/; revision=1088
|
|
|
|
|
|
| |
This enables us to support "hidden" parent classes.
svn path=/trunk/; revision=1087
|
|
|
|
| |
svn path=/trunk/; revision=1086
|
|
|
|
|
|
|
| |
This line is almost certainly a copy & paste error. It appears to be
harmless, but it's better to not have it.
svn path=/trunk/; revision=1085
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-02-04 Johan Dahlin <jdahlin@async.com.br>
* girepository/Makefile.am:
* girepository/girffi.c (g_callable_info_get_ffi_arg_types),
(g_callable_info_get_ffi_return_type),
(g_callable_info_prepare_closure), (g_callable_info_free_closure):
* girepository/girffi.h:
Add utility functions for invocing closures given a GICallableInfo
using libffi.
svn path=/trunk/; revision=1084
|
|
|
|
| |
svn path=/trunk/; revision=1083
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Patch from Andreas Rottmann <a.rottmann@gmx.at>.
* tests/scanner/utility.h (UtilityTaggedValue): Make the union
member anonymous.
(UtilityByte): New union typedef with an unnamed struct in it.
* giscanner/transformer.py (Transformer._create_struct): Create
unnamed structs for symbols with a None ident.
(Transformer._create_union): Likewise.
* giscanner/girwriter.py (GIRWriter._write_record): Allow name
being None.
(GIRWriter._write_union): Likewise.
* girepository/girparser.c (start_struct): Allow a NULL name for
non-toplevel structs.
(start_union): Likewise.
* tests/scanner/utility.h (UtilityTaggedValue): New struct
typedef, which has a nested union member.
* tests/scanner/utility-expected.gir: Adapted.
* giscanner/transformer.py (Transformer._create_member): Create
struct/union members if appropriate.
(Transformer._create_struct, Transformer._create_union): Allow for
structs/unions without a C type.
* giscanner/glibtransformer.py (GLibTransformer._resolve_field):
We don't need to resolve non-typef'd
(GLibTransformer._resolve_field): Add cases for non-typedef'd
struct/union "fields".
* giscanner/girwriter.py (GIRWriter._write_record): Allow for
records without a C type.
(GIRWriter._write_field): structs and unions may appear in places
where fields do.
svn path=/trunk/; revision=1082
|
|
|
|
|
|
|
|
|
|
| |
Patch from Andreas Rottmann <a.rottmann@gmx.at>.
This change modifies the parser to hold a stack of nodes, instead of
a single concept of "current" node. This allows the parser to recurse
into nested nodes.
svn path=/trunk/; revision=1081
|
|
|
|
|
|
|
|
| |
* girepository/ginfo.c (g_registered_type_info_get_g_type): handle
the special case for GObject, whose glib:get-type is listed as
"intern".
svn path=/trunk/; revision=1080
|
|
|
|
|
|
|
|
| |
The scanner misses all fields of the GObject struct -- there
are no <field> children of the <class> element for GObject in the GIR. This of
course yields wrong field offsets for all derived objects.
svn path=/trunk/; revision=1079
|
|
|
|
|
|
|
| |
Arrays are currently not handled specially, and hence treated as pointers in
giroffsets.c:get_field_size_alignment(), which is (obviously) wrong.
svn path=/trunk/; revision=1078
|
|
|
|
| |
svn path=/trunk/; revision=1077
|
|
|
|
| |
svn path=/trunk/; revision=1076
|
|
|
|
|
|
|
|
| |
* girepository/girparser.c: post_filter_varargs_functions
should also filter callbacks.
* tests/scanner/foo.h: Add tests of varargs callbacks.
svn path=/trunk/; revision=1075
|
|
|
|
|
|
|
|
|
| |
2009-01-28 Johan Bilien <jobi@via.ecp.fr>
* tests/scanner/annotation-1.0-expected.gir: add missing
with_voidp
svn path=/trunk/; revision=1074
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-27 Johan Dahlin <jdahlin@async.com.br>
* gir/cairo-1.0.gir:
* gir/fontconfig-2.0.gir:
* gir/freetype2-2.0.gir:
* gir/libxml2-2.0.gir:
* gir/xfixes-4.0.gir:
* gir/xft-2.0.gir:
* gir/xlib-2.0.gir:
Remove shared-library tags for these too.
svn path=/trunk/; revision=1073
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-27 Johan Dahlin <jdahlin@async.com.br>
* gir/GL-1.0.gir:
Remove shared-library which removes the build
time dependency on mesa.
svn path=/trunk/; revision=1072
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* giscanner/scannerparser.y: Fix the "Ignoring non-UTF-8 constant
string" error to print the right value.
* tests/scanner/annotation.c (backslash_parsing_tester)
(backslash_parsing_tester_2): make these non-static to avoid a
warning.
(annotation_object_string_out)
(annotation_string_zero_terminated): fix return values
* tests/scanner/annotation.h (annotation_object_with_voidp):
prototype this
* tests/scanner/gtkfrob.c:
* tests/scanner/gtkfrob.h (gtk_frob_language_manager_get_default):
fix prototype. (s/()/(void)/).
* tools/compiler.c (format_output): fix signed/unsigned warning.
Output a prototype for register_typelib() to avoid warnings later.
svn path=/trunk/; revision=1071
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-26 Johan Dahlin <jdahlin@async.com.br>
* tests/everything/everything.c (test_callback):
* tests/everything/everything.h:
Add a couple of callback tests.
svn path=/trunk/; revision=1070
|
|
|
|
| |
svn path=/trunk/; revision=1069
|
|
|
|
|
|
|
|
|
|
| |
2009-01-26 Johan Dahlin <jdahlin@async.com.br>
* girepository/ginfo.c (g_base_info_unref):
Only unref the repository if it's actually set.
svn path=/trunk/; revision=1068
|
|
|
|
| |
svn path=/trunk/; revision=1067
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-23 Johan Dahlin <jdahlin@async.com.br>
* tests/everything/everything.c (test_enum_param):
* tests/everything/everything.h:
Add an enum param test function
svn path=/trunk/; revision=1066
|
|
|
|
|
|
|
| |
g_object_get_type hasn't always been in GObject, we handle it internally
elsewhere.
svn path=/trunk/; revision=1065
|
|
|
|
|
|
|
|
| |
We should pass e.g. --pkg gobject-2.0 for GObject, and --pkg gio-2.0
for Gio to ensure that we're getting the right flags to the scanner,
even though girepository itself depends on these libraries.
svn path=/trunk/; revision=1064
|
|
|
|
|
|
|
|
|
|
| |
2009-01-21 Johan Dahlin <jdahlin@async.com.br>
* configure.ac:
Post-release version bump
svn path=/trunk/; revision=1063
|
|
|
|
| |
svn path=/trunk/; revision=1061
|
|
|
|
| |
svn path=/trunk/; revision=1059
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-21 Johan Dahlin <jdahlin@async.com.br>
Bug 562622 – Errordomains missing
* giscanner/girwriter.py:
* giscanner/glibast.py:
* giscanner/glibtransformer.py:
* tests/scanner/Makefile.am:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/foo.c (foo_error_get_type), (foo_error_quark):
* tests/scanner/foo.h:
svn path=/trunk/; revision=1057
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-20 Johan Dahlin <jdahlin@async.com.br>
* giscanner/scannerlexer.l:
Increase the buffer size to 1M, so
gtkalias.h can be parsed.
svn path=/trunk/; revision=1056
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-20 Johan Dahlin <jdahlin@async.com.br>
* giscanner/glibtransformer.py:
When trying to map functions to structs, do
not require a public structure to exist, should
fix Gst gir generation in.
svn path=/trunk/; revision=1055
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-20 Johan Dahlin <jdahlin@async.com.br>
Bug 562615 – Struct methods missing
* giscanner/annotationparser.py:
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/glibast.py:
* giscanner/glibtransformer.py:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
svn path=/trunk/; revision=1054
|
|
|
|
| |
svn path=/trunk/; revision=1053
|