1 2009-01-21 Johan Dahlin <jdahlin@async.com.br>
3 Bug 562622 – Errordomains missing
5 * giscanner/girwriter.py:
6 * giscanner/glibast.py:
7 * giscanner/glibtransformer.py:
8 * tests/scanner/Makefile.am:
9 * tests/scanner/foo-1.0-expected.gir:
10 * tests/scanner/foo-1.0-expected.tgir:
11 * tests/scanner/foo.c (foo_error_get_type), (foo_error_quark):
12 * tests/scanner/foo.h:
14 2009-01-20 Johan Dahlin <jdahlin@async.com.br>
16 * giscanner/scannerlexer.l:
17 Increase the buffer size to 1M, so
18 gtkalias.h can be parsed.
20 2009-01-20 Johan Dahlin <jdahlin@async.com.br>
22 * giscanner/glibtransformer.py:
23 When trying to map functions to structs, do
24 not require a public structure to exist, should
25 fix Gst gir generation in.
27 2009-01-20 Johan Dahlin <jdahlin@async.com.br>
29 Bug 562615 – Struct methods missing
31 * giscanner/annotationparser.py:
33 * giscanner/girwriter.py:
34 * giscanner/glibast.py:
35 * giscanner/glibtransformer.py:
36 * tests/scanner/foo-1.0-expected.gir:
37 * tests/scanner/foo-1.0-expected.tgir:
39 2009-01-16 Dan Winship <danw@gnome.org>
41 * gir/GL-1.0.gir: add back GLvoid, which got lost during the
42 gir-repository -> gobject-introspection migration
44 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
46 * gir/freetype2-2.0.gir: add FT_Int32
47 * gir/xft-2.0.gir: add XftFont
48 * girepository/gdump.c (g_irepository_dump):
49 Report errors when an invalid type is encountered
50 * giscanner/glibtransformer.py:
51 Make the error message a bit nicer.
53 Part of preparating for gir generating inside pango.
55 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
60 * gir/fontconfig-2.0.gir:
61 * gir/freetype2-2.0.gir:
62 * gir/libxml2-2.0.gir:
67 Move over the hand-written girs from gir-repository
68 so upstream libraries depending on these can avoid
69 a gir-repository dependency.
71 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
73 Bug 567813 – Everything should be versioned
76 * girepository/Makefile.am:
77 * girepository/girepository.c (init_globals):
78 * girepository/girparser.c (locate_gir):
79 * giscanner/dumper.py:
80 * giscanner/transformer.py:
81 * gobject-introspection-1.0.pc.in:
82 * tests/everything/Makefile.am:
83 * tests/invoke/Makefile.am:
84 * tests/offsets/Makefile.am:
85 * tests/repository/Makefile.am:
86 * tests/scanner/Makefile.am:
89 2009-01-13 Johan Dahlin <jdahlin@async.com.br>
91 Bug 555036 – put gtk-doc in GIR
93 * giscanner/annotationparser.py:
95 * giscanner/girwriter.py:
96 * giscanner/glibast.py:
97 * tests/scanner/annotation-1.0-expected.gir:
98 * tests/scanner/annotation.h:
99 * tests/scanner/foo-1.0-expected.gir:
101 2009-01-13 Johan Dahlin <jdahlin@async.com.br>
103 * giscanner/cachestore.py (CacheStore.load): Catch AttributeError
104 which seems to be occasionally raised for Record.
106 * giscanner/annotationparser.py:
107 Fix a bug where \n was not present in a comment
109 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
111 Bug 562467 – Property annotation
113 * giscanner/annotationparser.py:
114 * tests/scanner/annotation-1.0-expected.gir:
115 * tests/scanner/annotation-1.0-expected.tgir:
116 * tests/scanner/annotation.c (annotation_object_set_property),
117 (annotation_object_get_property), (annotation_object_class_init):
119 Annotations are parsed for properties.
121 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
123 Bug 546739 – Introspection should know precise signal parameter types
125 * giscanner/annotationparser.py:
126 * tests/scanner/annotation-1.0-expected.gir:
127 * tests/scanner/annotation-1.0-expected.tgir:
128 * tests/scanner/annotation.c (annotation_object_class_init):
130 Annotations are parsed for signals, the (type) annotation is introduced.
132 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
134 Bug 563591 – Flags not recognized when there is no introspection data
137 * giscanner/girwriter.py:
138 * giscanner/giscannermodule.c (type_get_is_bitfield):
139 * giscanner/glibast.py:
140 * giscanner/glibtransformer.py:
141 * giscanner/scannerparser.y:
142 * giscanner/sourcescanner.c (gi_source_type_copy):
143 * giscanner/sourcescanner.h:
144 * giscanner/sourcescanner.py:
145 * giscanner/transformer.py:
146 * tests/scanner/foo-1.0-expected.gir:
147 * tests/scanner/foo-1.0-expected.tgir:
148 * tests/scanner/foo.h:
150 Large parts of this patch was done by Jürg Billeter.
152 2009-01-12 Havoc Pennington <hp@pobox.com>
154 Bug 563386 – scanner ignores "const" on boxed return values
156 * tests/everything/everything.c (test_simple_boxed_a_const_return):
157 * tests/everything/everything.h:
159 This adds just the tests specified in the bug above, the fix itself
160 was included in Bug 563794
162 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
164 Bug 566404 – Annotations for GLib
166 * gir/glib-2.0.c: Added allow-none annotations for g_thread_init()
167 and g_main_loop_new().
169 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
171 Bug 566419 – Element type of arrays not properly handled in all cases
173 * giscanner/annotationparser.py:
174 * tests/scanner/annotation-1.0-expected.gir:
175 * tests/scanner/annotation-1.0-expected.tgir:
176 * tests/scanner/annotation.c (annotation_object_set_data),
177 (annotation_object_set_data2), (annotation_object_set_data3):
178 * tests/scanner/annotation.h:
180 Based on patch by Andreas Rottmann
182 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
184 Bug 566560 – giscanner.transformer.SkipError
186 * giscanner/transformer.py:
188 Catch SkipError for all nodes, not just functions.
189 Makes it possible to skip unsupported parameter types in
192 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
194 Bug 563794 - Redo annotation parsing & applying
196 Thanks to Colin for helping out considerably in landing this.
198 * giscanner/Makefile.am:
200 * giscanner/dumper.py:
201 * giscanner/girparser.py:
202 * giscanner/giscannermodule.c (pygi_source_scanner_get_comments),
203 (calc_attrs_length), (pygi_collect_attributes), (init_giscanner):
204 * giscanner/glibtransformer.py:
205 * giscanner/scannerlexer.l:
206 * giscanner/sourcescanner.c (gi_source_symbol_unref),
207 (gi_source_scanner_new), (gi_source_scanner_free),
208 (gi_source_scanner_get_comments):
209 * giscanner/sourcescanner.h:
210 * giscanner/sourcescanner.py:
211 * giscanner/transformer.py:
212 * giscanner/xmlwriter.py:
213 * tests/scanner/annotation-1.0-expected.gir:
214 * tests/scanner/annotation-1.0-expected.tgir:
215 * tests/scanner/annotation.c:
216 * tests/scanner/annotation.h:
217 * tests/scanner/foo-1.0-expected.gir:
218 * tests/scanner/foo-1.0-expected.tgir:
219 * tests/scanner/foo.h:
220 * tools/g-ir-scanner:
222 This commit merges the annotation parser rewrite branch.
223 It'll change the annotation parsing to be done completely in python
224 code which will make it easier to do further annotation parsing
227 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
229 Bug 563469 – Arrays not treated correctly in struct offset calculation
231 * tests/scanner/foo.h (FooObject): Added field `some_int'.
232 * tests/scanner/foo-1.0-expected.gir,
233 * tests/scanner/foo-1.0-expected.tgir: Adapted.
235 * giscanner/glibtransformer.py (GLibTransformer._create_gobject):
236 carry over object fields from original (struct) node.
237 (GLibTransformer._pair_class_struct): Don't add fields of the
238 class struct to to the node for the class, they should go under a
239 nested <record> element (see also Bug 551738). This is needed as
240 otherwise offset calculation would not work, as the instance
241 fields are mingled with the class fields without a way to
244 2009-01-03 Johan Dahlin <jdahlin@async.com.br>
247 Disable blank line check, it works differently under
248 Python 2.5 from 2.6 and was rather annoying from the start.
250 2008-01-03 Andreas Rottmann <a.rottmann@gmx.at>
252 Bug 556489 – callback annotations
254 * giscanner/transformer.py
256 * tools/generate.c (write_callable_info): Write out the new scope,
257 closure and destroy attributes.
259 * giscanner/transformer.py (Transformer._type_is_callback): New
260 method, checking if a given type is a callback.
261 (Transformer._augment_callback_params): New method; adds
262 information (closure, destroy) to callback parameters.
263 (Transformer._handle_closure, Transformer._handle_destroy): New methods,
264 auxiliary to _augment_callback_params.
265 (Transformer._create_function): Call _augment_callback_params().
266 (Transformer._create_parameter): Handle scope option.
268 (Transformer._create_typedef_callback): New method, creates a
269 callback, and registers it in the typedef namespace
270 (Transformer._create_typedef): Use _create_typedef_callback()
271 instead of the plain _create_callback().
273 * giscanner/ast.py (Parameter): Added callback-related fields.
274 * giscanner/girwriter.py: Write out new Parameter fields.
276 * girepository/girnode.h (GIrNodeParam): Added fields scope,
278 * girepository/gtypelib.h (ArgBlob): Ditto.
279 * girepository/girparser.c (start_parameter): Handle new fields.
281 * girepository/girmodule.c (g_ir_module_build_typelib): Adjust
282 arg_blob_size, bump major version due to this change.
283 * girepository/girnode.c (g_ir_node_get_full_size_internal)
284 (g_ir_node_build_typelib)
285 * girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
287 (g_ir_node_build_typelib): Fill in new ArgBlob flags from param.
289 * girepository/girepository.h (GIScope): New enumeration, listing
290 the different possible scopes for callbacks.
292 * girepository/ginfo.c (g_arg_info_get_scope)
293 (g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
294 callback-related argument indices (callback scope, closure for a
295 callback, destroy notification for a callback).
297 * tests/scanner/: Added testcases for new features.
299 2009-01-03 Jürg Billeter <j@bitron.ch>
302 * giscanner/dumper.py:
303 * giscanner/girparser.py:
304 * giscanner/glibtransformer.py:
305 * giscanner/sourcescanner.py:
306 * giscanner/transformer.py:
307 * giscanner/xmlwriter.py:
309 Fix inconsistencies with PEP8
311 2008-12-21 Johan Dahlin <jdahlin@async.com.br>
314 Annotate transfer, direction and allow none for
315 g_file_load_contents, g_file_load_contents_finish and
316 g_file_load_partial_contents_finish parameters.
318 2008-12-12 Owen Taylor <otaylor@redhat.com>
320 Disable array auto-detection for out-annotated parameters (#563934)
322 If we have a parameter annotated as (out), then having a ctype of
323 'char **' (or similar) doesn't necessarily indicate an array.
325 * giscanner/transformer.py: Skip array-detection logic for
326 (out)-annotated parameters.
327 * tests/scanner/annotation.h tests/scanner/annotation.c
328 tests/scanner/annotation-1.0-expected.gir
329 tests/scanner/annotation-1.0-expected.tgir: Add a test for
330 an (out) string parameter.
332 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
334 * giscanner/dumper.py (DumpCompiler._link): Pass in
335 --tag=CC to libtool to avoid making libtool confused
336 when CC is different from gcc on some systems.
338 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
340 Bug 563998 – Cache the GIBaseInfo for GTypes
342 * girepository/girepository.c (g_irepository_find_by_gtype):
343 add a cache of GType -> GIBaseInfo.
345 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
347 Bug 562545 – Add function taking / returning GValue
349 * tests/everything/everything.[ch]: add a test of function taking and
350 returning "const GValue *"
352 2008-12-09 Johan Dahlin <johan@async.com.br>
354 * giscanner/cachestore.py (CacheStore.store): Use
355 shutil.move instead of os.rename, since it will
356 automatically fall back to copying+remove if the
357 src directory is on a different partition from
360 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
362 Bug 563742 – introspection should record the introduced version of
363 symbols marked with the "Since:" tag
368 * giscanner/girwriter.py:
369 * giscanner/scannerlexer.l:
370 * giscanner/transformer.py:
371 * tests/scanner/annotation-1.0-expected.gir:
372 * tests/scanner/annotation-1.0-expected.tgir:
373 * tests/scanner/annotation.c (annotation_versioned):
374 * tests/scanner/annotation.h:
376 2008-12-08 Johan Dahlin <johan@async.com.br>
378 * giscanner/cachestore.py (_get_cachedir): Don't require
379 HOME to be set and if it set, don't require the
382 2008-12-08 Johan Dahlin <johan@async.com.br>
384 * giscanner/cachestore.py (CacheStore.store): Dump the cache
385 file to a temporary file and rename it the expected filename
386 only when it's completely written.
387 This should make the cache more roboust when run in parallel,
388 and hopefully avoid triggering bugs in Python.
390 2008-12-03 Christophe Fergeau <teuf@gnome.org>
392 Bug 562971 – g-ir-scanner failure on libgpod headers
394 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
395 default 16384. Without it, the lexer was aborting with a cryptic
396 error message on source files containing really long comment
399 2008-12-01 Colin Walters <walters@verbum.org>
401 * girepository/gfield.c: Fix memory leak; unref type info we
402 created, not field info
404 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
406 Bug 562289 – Race when removing invalid cache
408 * giscanner/cachestore.py:
409 ENOENT is mapped to a OSError, not IOError.
411 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
413 * gir/glib-2.0.c: Add return value transfer annotation
414 for g_markup_escape_text.
416 2008-11-25 Colin Walters <walters@verbum.org>
418 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
420 * giscanner/dumper.py: Implement it.
421 * gir/Makefile.am, tests/**/Makefile.am: Use it.
423 2008-11-25 Colin Walters <walters@verbum.org>
425 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
426 to just use a Makefile rule and dependencies. This corresponds with a change
427 made to gir-repository to fix srcdir != builddir issues.
429 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
432 Post release version bump
435 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
440 2008-11-25 Colin Walters <walters@verbum.org>
442 Bug 559705 – Missing association between static methods and classes
444 * docs/typelib-format.txt:
445 * girepository/ginfo.c (g_function_info_get_flags):
446 * girepository/girmodule.c (g_ir_module_build_typelib):
447 * girepository/girnode.c (g_ir_node_get_size),
448 (g_ir_node_build_typelib):
449 * girepository/girparser.c (start_function):
450 * girepository/gtypelib.c (g_typelib_check_sanity),
451 (validate_header), (validate_function_blob):
452 * girepository/gtypelib.h:
454 * giscanner/girwriter.py:
455 * giscanner/glibtransformer.py:
456 * tests/scanner/foo-1.0-expected.gir:
457 * tests/scanner/foo-1.0-expected.tgir:
458 * tests/scanner/foo.h:
460 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
462 * giscanner/ast.py: Define socklen_t as an alias for int32.
464 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
466 * girepository/gdump.c (dump_type): Remove a warning,
467 be less verbose on error on fundamental types.
469 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
471 * giscanner/dumper.py: Add license headers,
472 refactor into a class, avoid some duplication and do some
473 extra pedantic checks.
475 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
477 Make it compilable with -Werror on my system by adding
478 a couple of prototypes and including headers.
480 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
482 Bug 562022 – gobject-introspection needs python headers
484 * configure.ac: fail without python headers present.
487 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
489 Bug 561617 – Return value array annotations
491 * giscanner/transformer.py:
492 * tests/scanner/annotation.c (annotation_return_array):
493 * tests/scanner/annotation.h:
494 Add support for (array) for return value annotations as well.
496 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
498 * tests/everything/everything.[ch]: add a test function which calls a
501 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
503 * giscanner/cachestore.py:
504 Catch ValueError exceptions.
506 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
508 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
510 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
512 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
513 instead of hard-coding struct sizes.
515 2008-11-18 Owen Taylor <otaylor@redhat.com>
517 Bug 561296 - Add "storage type" to the typelib data for enums
519 In order to set and get enum and flag fields in structures, we need
520 to know the integral type that the enumeration is stored as. We are already
521 computing that at compile time in order to compute struct offsets, so the
522 easiest thing to do is to save that in the typelib.
524 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
525 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
526 and compute and save it at compile time.
528 * girepository/girepository.h girepository/ginfo.c:
529 Add g_enum_info_get_storage_type().
531 * girepository/gfield.c: Implement reading and writing enum and flags fields
532 based on the storage type.
534 2008-11-18 Owen Taylor <otaylor@redhat.com>
536 Add enums to the Everything test module
538 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
539 test module and register them as GTypes.
541 https://bugzilla.gnome.org/show_bug.cgi?id=561296
543 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
545 * giscanner/cachestore.py:
546 Catch BadPickleGet exceptions as well.
548 2008-11-17 Owen Taylor <otaylor@redhat.com>
550 * tests/everything/everything.c: Fix doc comment annotations
551 for test_struct_b_clone() to refer to the right function.
553 2008-11-17 Dan Winship <danw@gnome.org>
555 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
556 spelling of GHashTable. #561135
558 * tests/scanner/annotation.c (annotation_object_get_hash):
559 * tests/scanner/annotation-1.0-expected.gir:
560 * tests/scanner/annotation-1.0-expected.tgir: add a test of
561 GHashTable annotations
563 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
565 * giscanner/ast.py: Change string array match type to be in terms
566 of canonicalized type.
567 * giscanner/transformer.py: Add canonicalize_ctype which gives us
568 a version of a c:type without aliases, so we can deep canonicalize
569 char** to utf8*. Update parse_ctype to use it.
570 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
572 2008-11-16 Colin Walters <walters@verbum.org>
574 * girepository/girepository.c: Ensure we always call init_globals,
575 even if passed a non-default repository.
577 2008-11-16 Colin Walters <walters@verbum.org>
579 Bug 559706 - Interface prerequisites
581 * common.mk: Dep on libgirepository.la for scanner libs so that
582 we rebuild things even if just gdump.c changes.
583 * girepository/gdump.c: Dump prerequisites.
584 * giscanner/ast.py: Add prerequisite list.
585 * giscanner/girparser.py: Parse them from gdump.
586 * giscanner/girwriter.py: Write them.
587 * giscanner/glibtransformer.py: Resolve them.
590 2008-11-16 Owen Taylor <otaylor@redhat.com>
592 Bug 561087 - Respect is_pointer in serialize_type()
594 Add a '*' to the serialization for the cases where we set is_pointer
595 in the type blob we write out depending on node->is_pointer. Don't
596 add the '*' in the cases where is_pointer is set or not set in a
599 http://bugzilla.gnome.org/show_bug.cgi?id=561087
601 2008-11-16 Owen Taylor <otaylor@redhat.com>
603 Bug 560825 – Add size and alignment to typelib
605 Include the size and alignment of structures and unions in the typelib,
606 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
608 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
609 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
610 to StructBlob and UnionBlob.
612 * girepository/ginfo.c girepository/girepository.h:
613 Add g_[struct|union]_get[size|alignment]().
615 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
617 2008-11-16 Owen Taylor <otaylor@redhat.com>
619 Bug 552371 – implement struct field get/set
621 * girepository/gfield.c girepository/girepository.h: Add
622 convenience functions g_field_info_set_field() and
623 g_field_info_get_field() to set and get fields based on the
624 offsets in GIFieldInfo.
626 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
628 Bug 560241 - Out-arguments should not be marked as being pointers
631 * girepository/girparser.c: Improved logic for out arguments.
633 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
635 Bug 559601 - Pointers in structs/unions unduly treated as arrays
637 * giscanner/transformer.py: Differentiate type creation logic
638 between parameters and struct components.
640 2008-11-15 Colin Walters <walters@verbum.org>
642 * giscanner/dumper.py: Check return code from pkg-config
645 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
647 * tests/everything/everything.c (test_array_int_in),
648 (test_array_gtype_in):
649 * tests/everything/everything.h:
650 Rename the int/gtype array tests. Make the return value
651 useful, an aggregation of the array input values.
653 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
655 * tests/everything/Makefile.am:
656 * tests/everything/everything.c:
657 * tests/everything/everything.h:
658 * tests/everything/gitesttypes.c:
659 * tests/everything/gitesttypes.h:
660 Rename gitesttypes.[ch] to everything.[ch]
662 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
664 Bug 560708 – Don't treat arrays that have a length specified as
665 zero-terminated by default
667 * giscanner/transformer.py: Default to non zero terminated for
669 * tests/*: Update, add test for zero vs not.
671 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
673 Bug 557788 - Return types for constructors in generated typelib bogus
675 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
676 obviously broken in the face of duplicate names in different
678 * tests/scanner/*expected.gir: Fix up.
680 2008-11-13 Owen Taylor <otaylor@redhat.com>
682 * girepository/girffi.c: Fix "Unexpected time for time_t"
685 2008-11-13 Colin Walters <walters@verbum.org>
687 Bug 558436 - avoid having scanner load app code
689 * giscanner/cgobject.py: Delete; we no longer load shared
691 * giscanner/dumper.py: Support for linking a library to
692 a stub binary for introspection.
693 * giscanner/glibtransformer.py: Rewrite to use gdump XML
694 from invocation of child binary.
695 * giscanner/transformer.py: Fix up to use fully qualified
696 name in parse tree. Make parse_ctype public so we can use
697 it inside glibtransformer.
698 * tests/scanner/barapp.c: New test, using --program arg
700 * tests/*: Update to use common.mk for invoking scanner.
701 * tools/g-ir-scanner: Add options --program, --program-arg,
703 * docs/g-ir-scanner.1: Update.
705 2008-11-13 Colin Walters <walters@verbum.org>
707 * configure.ac: Depend on Gio, we use it in gdump.c.
708 * girepository/gdump.c: Code to dump GType data to XML.
709 * girepository/girepository.c: Add option group for dumping.
710 * girepository/girepository.h: Define API for the above.
712 2008-11-13 Colin Walters <walters@verbum.org>
714 * common.mk: Add a file to include with Makefile fragments
715 useful for scanner invocation.
717 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
719 * tests/everything/gitesttypes.c (test_filename_return): Return
720 strings in filename encoding.
722 2008-11-13 Owen Taylor <otaylor@redhat.com>
724 Bug 560253 – Add structure and boxed types to Everything test module
726 * tests/everything/gitesttypes.[ch]: Add examples of:
728 Plain old data structs
729 Plain old data structs with nested fields
731 Plain old data boxed with nested fields
732 More complicated boxed types with internal state
734 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
736 * tests/everything/gitesttypes.c (test_gtype_in):
737 * tests/everything/gitesttypes.h:
738 Add a test of GType arrays, a la gtk_list_store_set_columns.
740 2008-11-12 Owen Taylor <otaylor@redhat.com>
742 Bug 560419 – Cache includes when parsing
744 Keep track of all modules parsed within a GIrParser, and when a
745 module is referenced a second time, use the existing parsed copy
746 instead of reparsing.
748 2008-11-12 Owen Taylor <otaylor@redhat.com>
750 Fix management of ParseContext.includes_modules (#560419)
752 * girepository/girparser.c: Fix some trivial bugs in managing the
753 list of include modules. (Add to module's list twice, not
754 initialized to NULL, not freed.)
756 2008-11-12 Owen Taylor <otaylor@redhat.com>
758 Keep aliases and disguised_structures local to each module (#560419)
760 * girepository/girmodule.[ch]: When parsing, keep keep a separate
761 hash tables of aliases and 'disguised' flags for each module, and
762 store that on the module.
764 After parsing an include merge the aliases/disguised flags to the
767 * girepository/girparser.c: Remove 'prefix_aliases' flag and
768 always prefix aliases/disguised structure types when parsing; this
769 simplifies the code considerably.
771 2008-11-12 Owen Taylor <otaylor@redhat.com>
773 Fix mismatches between .gir name and 'name' attribute (#560419)
775 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
776 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
777 where the 'name' element of <namespace/> didn't match the filename of the
778 gir, an assumption that the compiler has always expected and now enforces.
780 2008-11-12 Owen Taylor <otaylor@redhat.com>
782 Only allow one <namespace/> element per <repository/> (#560419)
784 * girepository/girparser.c: The logic in girparser.c didn't work
785 very well if there were multiple <namespace/> nodes within a
786 single <repository/> (context->namespace was always the overall
787 filename and not the the name specified in the <namespace/>
788 element for one thing; this would cause aliases to be mis-prefixed
789 in include modules.) Also check that the "name" in the
790 <namespace/> node matches the filename.
792 2008-11-12 Owen Taylor <otaylor@redhat.com>
794 Add a GirParser object to hold the state of a compilation
796 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
797 GirParser object to hold state that is global across a
798 compilation. Currently just holds the include path, but will
799 eventually also keep a cached list of parsed modules.
801 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
803 * girepository/girepository.c (find_namespace_latest): Fix
806 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
808 * configure.ac: use 'introspection' component for bugs
810 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
812 * tests/everything/gitesttypes.c (test_filename_return):
813 * tests/everything/gitesttypes.h:
814 Add a filename return test.
816 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
818 * tests/offsets/Makefile.am (gitestoffsets.c): fix
819 gen-gitestoffsets invocation with builddir != srcdir
821 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
823 * girepository/girepository.c:
824 Change the element type from utf8 to filename
825 * girepository/girnode.c (g_ir_node_build_typelib):
826 Special case filename equally to utf8 here.
828 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
831 Remove unused variables, add a dependency of girepository.ch, so when
832 they change we rebuild the gir automatically.
834 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
836 * girepository/girepository.c (g_irepository_get_search_path):
837 * girepository/girepository.h:
838 Add a g_irepository_get_search_path, so we can access the search
841 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
843 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
845 * girepository/girparser.c: avoid freeing an uninitialized pointer
847 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
850 * giscanner/glibtransformer.py:
851 * tools/g-ir-scanner:
852 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
853 so we can just pass in --library=foo/bar/baz.la and the scanner
854 does the right thing.
855 Don't warn for _get_type() functions if they don't take any
858 2008-11-11 Owen Taylor <otaylor@redhat.com>
860 Bug 560404 – Prefix types when resolving aliases in included modules
862 * girepository/girparser.c: When resolving aliases in an included
863 module, prefix types before looking them up.
865 2008-11-11 Owen Taylor <otaylor@redhat.com>
867 Compute field offsets and overall size for object structures
869 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
870 field of type object in structure"
872 Do basic computation of field offsets for objects and interfaces;
873 this doesn't attempt to address all of the "mess" for virtual
874 functions described in Bug 560281.
876 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
878 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
880 Based on patch by Johan Bilien.
882 * giscanner/transformer.py (_create_member, _create_parameter):
883 Resolve types here as well.
884 (_resolve_type_name_1): Try resolving using 'ctype' first since
885 it's least ambiguous. Fixes struct member type resolution with
886 similarly named types, e.g. Gdk.PangoRendererClass and
888 * tests/scanner/foo*: Add test.
890 2008-11-11 Owen Taylor <otaylor@redhat.com>
892 * girepository/girparser.c: Search provided include dirs before
893 the default directories.
895 2008-11-11 Owen Taylor <otaylor@redhat.com>
897 * girepository/giroffsets.c: Include fully-qualified names in
900 2008-11-11 Owen Taylor <otaylor@redhat.com>
902 * girepository/giroffsets.c: Fail gracefully with an informative
903 error message when recursion is encountered when computing a
906 2008-11-11 Owen Taylor <otaylor@redhat.com>
908 * girepository/girparser.c: Remove an unused variable.
910 2008-11-10 Owen Taylor <otaylor@redhat.com>
912 Add tests for field offset computations
914 * tests/offsets/offsets.h: Header file with structure definitions to test
916 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
917 field offsets for the structures in offsets.h two ways: using
918 the information from a generated typelib, and as computed by the
921 We diff these two versions to test that everything is OK.
923 2008-11-10 Owen Taylor <otaylor@redhat.com>
925 Remove field offsets from g-ir-generate output and test inputs
927 Field offsets are a) architecture dependent so they shouldn't be part
928 of the architecture-independent gir format which is installed in
929 datadir. b) Are architecture-dependent so they shouldn't be in test
932 * girepository/girparser.c: Don't parse offset for fields
933 * tools/generate.c: Don't parse offset for fields
934 * tests/*.gir test/scanner/*.tgir: Remove offsets
936 (Virtual function and discriminator offsets are not removed, as they
937 aren't fully hooked up to the field-offset computation machinery yet.)
939 2008-11-10 Owen Taylor <otaylor@redhat.com>
941 Bug 560252 - Compute field offsets before writing typelib
943 * girepository/girnode.h: Store the total size and alignment for
944 GIrNodeStruct/Boxed/Union.
946 * girepository/giroffset.c: New file implementing computation of
947 structure field offsets.
949 * girepository/girnode.c: Compute structure field offsets before
950 writing types into the typelib.
952 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
953 means "unknown". Also fix description of the discriminator_offset
956 2008-11-10 Owen Taylor <otaylor@redhat.com>
958 Bug 560250 - Fully parse included modules
960 For some things, like computing structure offsets to put into the typelib
961 we need more than just the aliases from included modules. Do a completel
962 parse of included modules and store in module->included_modules.
964 Also add g_ir_find_node() to find node information from within the
965 active set of modules and their includes.
967 2008-11-10 Owen Taylor <otaylor@redhat.com>
969 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
971 Extract a function to convert GITypeTag to ffi_type from the internals
972 of ginvoke.c. This will be useful in figure out structure alignment.
974 Also fix handling of gsize and time_t to be portable. (Add a check
975 to configure.ac to figure out the width of time_t.)
977 2008-11-10 Owen Taylor <otaylor@redhat.com>
979 Bug 560248 – "disguised structures"
981 Certain types like GIConv and GdkAtom are pointers internally but don't
982 look like pointers when referenced. They have the form.
984 typedef struct _X *X;
986 Parse these as structures/records but mark them in the gir with a 'disguised'
987 attribute so that we know that they need special handling.
989 In the typelib treat them like any other structure.
991 2008-11-09 Jürg Billeter <j@bitron.ch>
994 * giscanner/girwriter.py:
996 Write throws attribute for virtual functions, fixes bug 559703
998 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
1000 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
1001 up some confusion about the second argument to find_module, it's
1002 actually the packages __path__ attribute which we can safely ignore
1004 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
1006 2008-11-07 Owen Taylor <otaylor@redhat.com>
1008 Bug 559737 – Deal with continuations in macros
1010 * giscanner/giscannerlexer.l: Treat continuation lines the same
1011 as regular newlines. This makes the scanner not complain about
1012 #define foo(x) \ <stuff> inside a C file. There's no attempt
1013 however to handle parsing macro definitions split across lines.
1015 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
1017 * giscanner/cachestore.py:
1018 Handle broken cache entries, write only filesystems and
1019 running out of diskspace.
1021 2008-11-07 Owen Taylor <otaylor@redhat.com>
1023 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
1024 Set current_filename before lexing the file so error messages
1025 are reported in the right file.
1027 2008-11-06 Colin Walters <walters@verbum.org>
1029 * tests/everything/*: Add some tests for strv.
1031 2008-11-05 Colin Walters <walters@verbum.org>
1033 * girepository/ginvoke.c (g_function_info_invoke): Don't use
1034 nested scope local variable for error which may go away after
1035 conditional is complete.
1037 2008-11-05 Colin Walters <walters@verbum.org>
1039 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
1040 manipulate hackily; just use GString. This avoids an
1041 uninitialized memory read pointed out by Havoc.
1043 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
1045 * giscanner/__init__.py:
1047 * giscanner/cachestore.py:
1048 * giscanner/cgobject.py:
1049 * giscanner/girparser.py:
1050 * giscanner/girwriter.py:
1051 * giscanner/giscannermodule.c:
1052 * giscanner/glibast.py:
1053 * giscanner/glibtransformer.py:
1054 * giscanner/libtoolimporter.py:
1055 * giscanner/minixpath.py:
1056 * giscanner/odict.py:
1057 * giscanner/sourcescanner.c:
1058 * giscanner/sourcescanner.h:
1059 * giscanner/sourcescanner.py:
1060 * giscanner/transformer.py:
1061 * giscanner/utils.py:
1062 * giscanner/xmlwriter.py:
1064 Relicense the giscanner library under LGPLv2+.
1065 This has been approved by all contributors.
1067 2008-11-01 Owen Taylor <otaylor@redhat.com>
1069 Bug 558848 giparser.py: shared library should be optional
1071 When parsing a .gir, allow the shared-library attribute
1072 of <namespace/> to be missing: this corresponds to the handling
1073 in libgirepository and elsewhere.
1075 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
1077 Bug 557898 – Fails to build on OSX 10.4
1079 * configure.ac: Check for $shrext_cmds that should be implicitly
1080 available if you're using libtool >= 2.0. If undefined, call
1081 libtool --config explicitly to get its value.
1082 * girepository/gtypelib.c: Remove special case for (non-)Darwin
1083 systems as unneeded.
1085 2008-10-31 Colin Walters <walters@verbum.org>
1087 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
1089 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1091 * configure.ac: Post release version bump
1094 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1098 * docs/release-checklist.txt:
1101 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1103 * Makefile.am: add an upload-release target
1104 * docs/release-checklist.txt:
1105 Release process documentation
1107 2008-10-31 Colin Walters <walters@verbum.org>
1109 Bug 558109 – _g_typelib_init fails to find shared libraries
1111 * transformer/glibtransformer.py: Use ctypes' find_library
1112 on passed libraries and write that for the shared-library
1113 entry. We want to avoid depending on -devel packages.
1115 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1117 * docs/g-ir-scanner.1:
1118 Document the renaming options.
1120 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
1122 * giscanner/Makefile.am:
1123 * tests/invoke/Makefile.am:
1124 * tests/repository/Makefile.am: List in-tree libraries first in
1125 LDADD / LIBADD. If installed library is listed first, the
1126 resulting binary will prefer installed version to one in .libs,
1127 possibly making 'make check' behave strangely.
1129 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
1131 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
1132 gir-repository from choking with gdk/quartz
1134 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1136 * giscanner/giscannermodule.c (calc_attrs_length),
1137 (pygi_collect_attributes):
1138 * giscanner/xmlwriter.py:
1139 Write a C version of the xml namespace formatter.
1140 Saves 15% of the time it takes to create a gtk gir.
1142 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1144 * giscanner/xmlwriter.py: Abstract attribute formatting
1145 to a function external to the XMLWriter class.
1147 * giscanner/scannerlexer.l:
1148 Parse and discard __typeof and __attribute.
1150 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1152 * giscanner/girparser.py:
1153 Remove arguments from the constructor, move them to
1154 separate accessors. Add a new parse_tree method
1155 which takes an element tree instance.
1156 * tools/g-ir-scanner:
1157 Update callsite for this
1159 * giscanner/Makefile.am:
1160 * giscanner/cachestore.py:
1161 * giscanner/transformer.py:
1162 Cache the include parsing. Saves ~25% time when
1163 creating vte (which includes everything up to gtk+).
1165 2008-10-30 Colin Walters <walters@verbum.org>
1167 * giscanner/transformer.py: Don't reparse includes
1168 we've already processed.
1170 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1172 * giscanner/girparser.py:
1173 * giscanner/transformer.py:
1174 Avoid parsing parameters, types etc when parsing
1175 includes. Should speed up include parsing a bit.
1177 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1179 * giscanner/girparser.py:
1180 Avoid big if/else and use a dispatch table like
1183 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1185 * giscanner/transformer.py:
1186 Clean up include parsing and registration.
1188 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1190 * giscanner/transformer.py:
1193 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1195 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
1198 construct PYTHONPATH just once
1200 * tests/everything/Makefile.am:
1201 * tests/scanner/Makefile.am:
1202 add $(top_srcdir) to PYTHONPATH to
1203 handle builddir != srcdir
1205 * giscanner/libtoolimporter.py:
1206 * giscanner/sourcescanner.py:
1207 Make the libtoolimporter work when distchecking too.
1209 Mostly based on patch by Tommi Komulainen
1211 2008-10-29 Owen Taylor <otaylor@redhat.com>
1213 * giscanner/glibtransformer.py: If a filename of an existing
1214 file is passed to --library, hunt for it directly, rather than
1215 searching for a corresponding library.
1217 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
1219 * giscanner/libtoolimporter.py:
1220 * giscanner/sourcescanner.py:
1221 Clean up the libtool importer a bit. Add a context so we
1222 can use it through a with statement.
1223 Don't just look in the current directory, look in the whole
1226 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
1228 Bug 558065 – gitesttypes should be installed
1231 * tests/Makefile.am:
1232 * tests/types/Makefile.am -> tests/everything/Makefile.am
1233 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
1234 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
1235 move tests/types to tests/everything
1237 * tests/everything/Makefile.am: build normal shared library
1238 libgirepository-everything.so.1.0.0 and corresponding typelib
1239 Everything-1.0.typelib
1241 * tests/everything/Makefile.am: explicitly link libtool
1242 versioning with typelib versioning with variables
1244 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
1246 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
1248 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1250 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
1253 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1255 Bug 558068 – when invoking a method, offset the in arguments by one,
1258 * tests/invoke/invoke.c, tests/invoke/testfns.c,
1259 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
1260 * girepository/ginvoke.c: do not offset the index of given out
1261 arguments by one for methods, "this" is provided as in argument only.
1263 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1265 * gir/gio-2.0.c: add annotation for g_file_delete
1267 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
1269 Bug 558062 – provide and use paths in the .pc file
1271 * gobject-introspection-1.0.pc.in: provide typelibdir variable
1272 for where .typelibs should be installed (callers shouldn't need
1273 to construct paths from bits and pieces)
1275 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1277 Bug 557791 – g_irepository_require() could return a GTypelib *
1279 * girepository/girepository.c: Return GTypelib; this is useful
1280 for low level manipulation.
1282 2008-10-25 Colin Walters <walters@verbum.org>
1284 Bug 557788 – Return types for constructors in generated typelib bogus
1286 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
1287 rely on end pass resolution.
1289 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1291 Bug 557786 - support fixed size arrays
1293 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
1294 * giscanner/scannerparser.y: Retain fixed array size.
1295 * giscanner/ast.py: Add to note.
1296 * giscanner/girwriter.py: Write to gir.
1297 * girepository/girnode.c: Write it to typelib.
1298 * tools/generate.c: Generate.
1299 * tests/*: Add tests.
1301 2008-10-25 Colin Walters <walters@verbum.org>
1303 Bug 557076 - move typelibs to $libdir
1305 * configure.ac: Steal some configury bits from dbus to expand
1307 * gir/Makefile.am: Move to libdir.
1308 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
1309 instead just look at one hardcoded path in libdir.
1310 * acinclude.m4: Bits from dbus.
1312 2008-10-24 Johan Dahlin <johan@gnome.org>
1314 * girepository/girnode.c (g_ir_node_check_unhandled_members):
1315 Be quiet, do not warn about unhandled members.
1317 2008-10-24 Johan Dahlin <johan@gnome.org>
1319 * girepository/gtypelib.c:
1320 Only use SHLIB_SUFFIX on darwin, otherwise use
1321 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1323 2008-10-24 Lucas Rocha <lucasr@gnome.org>
1325 Bug 557623 - Constructors shouldn't be flagged as methods.
1327 * girepository/ginfo.c (g_function_info_get_flags): ditto.
1329 2008-10-24 Johan Dahlin <johan@gnome.org>
1331 * giscanner/scannerparser.y:
1332 Check against division by zero for the modula operator.
1333 This fixes header parsing of OSX system headers included
1336 2008-10-24 Johan Dahlin <johan@gnome.org>
1340 Add a CONTRIBUTORS file and dist it.
1342 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1344 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1346 * girepository/girparser.c (parse_param_transfer):
1347 * giscanner/transformer.py (_create_parameter, _create_return):
1348 * giscanner/girwriter.py (_write_return, _write_parameter):
1349 * tools/generate.c (write_callable_info): always write and
1350 require "transfer-ownership" for return-values and parameters
1353 * tests/invoke/testfns-1.0.gir:
1355 * tests/scanner/DrawableAdditions.xml:
1356 * tests/scanner/GtkFrob-1.0-expected.tgir:
1357 * tests/scanner/annotation-1.0-expected.tgir:
1358 * tests/scanner/drawable-1.0-expected.tgir:
1359 * tests/scanner/drawable-injected-1.0-expected.gir:
1360 * tests/scanner/drawable-injected-1.0-expected.tgir:
1361 * tests/scanner/foo-1.0-expected.tgir: Updated
1363 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1365 * giscanner/cgobject.py: build fundamental types same way as glib
1367 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1368 when constructing the Type from it
1370 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1371 the parameter is a GObject from its GType, if available.
1373 * giscanner/glibtransformer.py (_adjust_transfer):
1374 * tests/scanner/foo-1.0-expected.gir:
1375 * tests/scanner/foo-1.0-expected.tgir: deduce
1376 transfer-ownership from GTypes
1378 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1380 * giscanner/transformer.py (_create_parameter):
1381 * tests/scanner/foo-1.0-expected.gir: make varargs
1382 transfer-ownership="none"
1384 2008-10-23 Colin Walters <walters@verbum.org>
1386 Bug 556739 - transfer ownership
1388 * giscanner/ast.py: Refactor Parameter/Return to share
1389 common attributes. Add transfer_inferred attribute
1390 which says whether or not we made a guess.
1391 * giscanner/transformer.py: Add much more extensive
1392 heuristics around parameter and return transfer.
1393 * giscanner/glibtransformer.py: Adjust to inspect
1397 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1399 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1401 * tests/scanner/Makefile.am:
1402 * tests/scanner/annotation-1.0-expected.tgir:
1403 * tests/scanner/drawable-1.0-expected.tgir:
1404 * tests/scanner/drawable-injected-1.0-expected.tgir:
1405 * tests/scanner/foo-1.0-expected.tgir:
1406 * tests/scanner/GtkFrob-1.0-expected.tgir:
1407 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1408 annotations survive the roundtrip via typelib
1410 The expectations are as currently produced by g-ir-generate,
1411 comparison with the .gir files shows there are differences.
1413 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1415 Bug 557468 – Support for GI_TYPELIB_PATH
1417 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1418 provided paths to the global search path.
1420 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1422 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1424 * tests/scanner/drawable-1.0-expected.tgir:
1425 * tests/scanner/drawable-injected-1.0-expected.tgir:
1426 * tests/scanner/foo-1.0-expected.tgir:
1427 * tools/generate.c (write_object_info): write 'abstract'
1428 attribute for classes
1430 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1432 * girepository/girmodule.c, girepository/gtypelib.c,
1433 girepository/girparser.[ch]: fix some build warnings.
1435 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1437 Bug 557405 – Use 'allow-none' consistently
1439 * docs/typelib-format.txt:
1440 * girepository/ginfo.c (g_arg_info_may_be_null):
1441 * girepository/girnode.c (g_ir_node_build_typelib):
1442 * girepository/girnode.h (struct _GIrNodeParam):
1443 * girepository/girparser.c (start_parameter):
1444 * girepository/girwriter.c (function_generate):
1445 * girepository/gtypelib.h (ArgBlob):
1447 * tests/function.gir:
1448 * tools/generate.c (write_callable_info): Use 'allow-none'
1449 consistently throughout
1451 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1453 Bug 557092 – Callback annotations not used
1455 * giscanner/transformer.py (_create_callback): use annotations
1457 * tests/scanner/annotation.h
1458 * tests/scanner/annotation-1.0-expected.gir: add tests
1460 2008-10-21 Colin Walters <walters@verbum.org>
1462 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1463 uncommented parameters.
1466 2008-10-21 Colin Walters <walters@verbum.org>
1468 * girepository/girepository.c: Ensure that when doing an unversioned
1469 require, we prefer items earlier in the search path to later ones.
1471 2008-10-21 Owen Taylor <otaylor@redhat.com>
1473 * giscanner/transformer.py: For string parameters allow transfer annotation
1474 to override the standard automatic guessing based on 'const'.
1476 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1478 Bug 557241 – "throws" flag for functions
1480 * tests/scanner/drawable-1.0-expected.gir,
1481 tests/scanner/drawable-injected-1.0-expected.gir,
1482 tests/scanner/drawable.[ch]: add simple test for throwing
1483 function (has GError ** as last argument)
1485 * giscanner/ast.py: add a 'throws' flag to Function
1486 * giscanner/glibtransformer.py: if a function's last paramerter is
1487 a GError, set the 'throws' flag and remove that parameter
1488 * giscanner/girwriter.py: write out the 'throws' attribute
1489 * giscanner/girparser.py: support parsing the 'throws' attribute
1491 * tests/repository/gitestthrows.c: add a simple test to check the
1492 throws flag in a typelib and invoke the function
1494 * girepository/ginfo.c, girepository/girnode.[ch],
1495 girepository/girnode.h, girepository/girparser.c,
1496 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1498 * girepository/ginvoke.c: if a function throws, add a GError as last
1499 arguments, and propagate the error to the invoker.
1501 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1503 * giscanner/transformer.py (_create_parameters): Warn if we see
1504 annotations for unknown parameters. If .h and .c files name
1505 parameters differently, the annotations may be lost.
1507 2008-10-21 Johan Dahlin <johan@gnome.org>
1509 Bug 556358 - don't use libtool internals
1511 * giscanner/Makefile.am:
1512 * giscanner/libtoolimporter.py:
1513 * giscanner/sourcescanner.py:
1514 * giscanner/utils.py:
1515 Add a python meta importer and remove a libtool symlink hack.
1517 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1519 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1520 and --add-include-path appropriately when invoking the scanner.
1521 * tests/types/Makefile.am (%typelib): Likewise.
1523 2008-10-20 Colin Walters <walters@verbum.org>
1525 Bug 556777 - validate properties
1527 * giscanner/transformer.py: Add option to throw on unknown types.
1528 * giscanner/glibtransformer.py: Use it on properties.
1529 * tests/*: Add a test.
1531 2008-10-20 Colin Walters <walters@verbum.org>
1533 * giscanner/glibast.py: Also register g variants of
1534 default_array_types. This is not beautiful, but
1535 good alternatives aren't easy to come by.
1536 This fixes gchar ** parsing.
1538 2008-10-20 Colin Walters <walters@verbum.org>
1540 * docs/typelib-format.txt, girepository/gtypelib.h:
1541 Take a bit from ObjectInfo to represent abstract flag.
1542 * giscanner/cgobject.py: Expose g_type_get_flags.
1543 * girepository/girepository.h: Add accessor.
1544 * girepository/ginfo.c: Implement it.
1545 * giscanner/ast.py: Add is_abstract flag to generic
1547 * giscanner/glibast.py: Use it.
1548 * giscanner/girwriter.py: Write it.
1549 * girepository/girparser.c: Parse it.
1552 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1554 * giscanner/girparser.py (_parse_function): don't lose
1555 'transfer-ownership' attributes when injecting, check for the
1558 2008-10-19 Johan Dahlin <johan@gnome.org>
1560 * giscanner/scannerlexer.l: Parse and ignore __asm.
1562 2008-10-19 Colin Walters <walters@verbum.org>
1564 * giscanner/girparser.py: Parse array length= to ensure
1565 it doesn't get lost from --inject.
1567 2008-10-17 Colin Walters <walters@verbum.org>
1569 Bug 556795 - char ** regression
1571 * giscanner/transformer.py: Fix parsing of ctypes, add some
1572 comments about what's going on.
1573 * tests/*: Add a test for char **.
1575 2008-10-17 Colin Walters <walters@verbum.org>
1577 Bug 556783 - change namespace handling to be more consistent
1579 * giscanner/transformer.py: Eliminate usage of
1580 strip_namespace_object. We now treat --namespace as the default
1581 --strip-prefix; however, if --strip-prefix is specified it
1582 overrides --namespace. This applies to everything except function
1583 names, where we do also strip the namespace.
1584 * giscanner/glibtransformer.py: Remove usage of
1585 strip_namespace_object.
1587 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1588 --namespace and --strip-prefix.
1590 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1592 Bug 556732 – generate gir files consistently
1594 * girepository/girparser.c (start_parameter):
1596 * tests/invoke/testfns-1.0.gir:
1597 * tools/generate.c (write_callable_info): write
1598 'transfer-ownership' attribute consistently with both
1599 return-value and parameter elements
1601 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1603 Bug 556732 – generate gir files consistently
1605 * tools/generate.c (write_callable_info): write 'direction'
1606 attribute only if other than 'in' to be consistent with
1609 * tests/object.gir: remove direction="in" which is the default
1611 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1613 Bug 556732 – generate gir files consistently
1615 * giscanner/ast.py (Field): add readable and writable properties
1616 * giscanner/girparser.py (_parse_field): copy 'readable' and
1617 'writable' attributes
1618 * giscanner/transformer.py (_create_member): create fields as
1620 * giscanner/glibtransformer.py (_introspect_object,
1621 _pair_class_struct): make object instance and class fields
1623 * giscanner/girwriter.py (_write_field):
1624 * tools/generate.c (write_field_info): write field 'readable'
1625 and 'writable' attributes only if non-default (read-only)
1626 * girepository/girparser.c (start_field): in the absence of
1627 attributes assume fields are read-only
1629 * tests/struct.gir: remove redundant readable="1" from fields
1630 * tests/scanner/foo-1.0-expected.gir:
1631 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1632 all record and union fields
1634 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1636 Bug 556732 – generate gir files consistently
1638 * giscanner/girwriter.py (_write_property): write properties
1639 'construct' attribute if set
1640 * tools/generate.c (write_property_info): write properties
1641 'readable' and 'writable' attributes only if non-default
1642 * tests/object.gir: add writable="0"
1643 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1645 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1647 * gir/glib-2.0.c: added annotations
1649 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1651 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1654 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1656 Bug 556610 – giscanner/girparser.py drops parameter options
1658 * tests/scanner/drawable-injected-1.0-expected.gir,
1659 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1660 * giscanner/ast.py: allow Parameter to take options in the constructor
1661 * giscanner/girparser.py: parse parameter options (transfer,
1662 direction, allow-none)
1664 2008-10-16 Colin Walters <walters@verbum.org>
1666 Bug 556185 - segfault on g_callable_info_get_return_type
1668 Initial patch from John Ehresman.
1670 * tests/repository/*: Add a test using
1671 g_callable_info_get_return_type. Instead of casting a
1672 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1673 to call g_type_info_get_interface.
1675 2008-10-16 Colin Walters <walters@verbum.org>
1677 Bug 556579 - union and struct name misresolved
1679 * giscanner/transformer.py: The calls to _resolve_type_name
1680 for struct/union names was a legacy holdover from when type
1681 resolution had multiple phases. Now it's actively harmful
1682 since we might pull in an identical name from another
1686 2008-10-16 Colin Walters <walters@verbum.org>
1688 Bug 556432 - transfer annotations and defaults
1690 * giscanner/transformer.py: Canonicalize type
1691 after removing *, not before. This ensures that
1692 guchar* is transformed to 'uint8'.
1693 Add some comments here.
1694 * giscanner/glibtransformer.py: Add _adjust_transfer
1695 phase for tweaking GObject transfers.
1698 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1700 * configure.ac: enable bunch of gcc warning CFLAGS
1702 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1704 Bug 556543 – reduce compiler warnings
1706 * girepository/ginfo.c:
1707 * girepository/girepository.c (register_internal,
1708 count_interfaces, find_interface, find_namespace_version,
1709 parse_version, g_irepository_require):
1710 * girepository/girmodule.c (g_ir_module_build_typelib):
1711 * girepository/girnode.c (init_stats, dump_stats,
1712 _g_irnode_init_stats, _g_irnode_dump_stats,
1713 g_ir_node_can_have_member):
1714 * girepository/girparser.c (firstpass_end_element_handler,
1715 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1716 start_alias, start_type, end_type_top, parse_include, cleanup,
1718 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1719 * giscanner/giscannermodule.c (directive_get_options,
1720 type_get_child_list):
1721 * giscanner/scannerlexer.l (parse_gtkdoc):
1722 * giscanner/scannerparser.y (ctype_free):
1723 * giscanner/sourcescanner.c:
1724 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1725 * tests/types/gitesttypes.c:
1726 * tools/compiler.c (main):
1727 * tools/generate.c (write_repository): Remove unused variables
1728 and code, add missing includes, declarations and case
1731 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1733 Bug 556541 – access union members through UnionBlob rather than
1736 * girepository/ginfo.c (g_union_info_find_method): access union
1737 members through UnionBlob rather than StructBlob
1739 2008-10-15 Colin Walters <walters@verbum.org>
1741 Bug 556331 - clean up includes handling
1743 * tools/g-ir-scanner: Rework command line arguments; now we take
1744 --add-include-path and --include separately.
1745 * giscanner/girwriter.py: Separate name= and version= in include
1747 * giscanner/ast.py: Add Include type.
1748 * giscanner/transformer.py: Cleanups to register_include now that
1749 we don't need to handle mixed filenames and relative arguments.
1750 * girepository/girparser.c: Parse name and version separately;
1751 this fixes a bug as a side effect where we weren't resolving
1752 through aliases for basic types.
1753 * girepository/girepository.c: Fix format string args.
1754 * gir/Makefile.am: Update.
1757 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1759 Bug 556434 – unhandled interface/object/... member types
1761 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1762 g_ir_node_build_typelib): Check all
1763 interface/object/boxed/struct/union members are processed and
1764 abort if they are not. (Mostly callbacks in structs, but also
1765 fields in interfaces.)
1767 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1769 * a/girepository/girnode.c (g_ir_node_build_members,
1770 g_ir_node_build_typelib): refactor common code for processing
1771 members to a function
1773 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1775 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1776 transformation is lossless (it's not)
1778 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1780 * tests/Makefile.am: fix tests to compare xml to xml instead of
1781 typelib to xml, and stop on error
1783 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1785 * tools/generate.c (write_type_name, write_type_info,
1786 write_type_info, write_object_info, write_object_info,
1787 write_interface_info, write_error_domain_info): reduce code
1790 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1792 Bug 556174 – parse types for lists etc.
1794 * girepository/girparser.c (end_type_recurse):
1796 * tools/generate.c (write_type_info, write_field_info,
1797 write_callable_info, write_callable_info, write_constant_info,
1798 write_property_info): use nested <type>s for lists and hashes
1800 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1803 * tests/object.gir: remove trailing whitespace from inside
1804 elements to match g-ir-generate output
1806 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1808 * tools/generate.c (xml_printf): quote printf arguments so that
1809 we don't generate invalid XML by writing unescaped double quotes
1810 and such in attributes
1812 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1814 * tools/generate.c (write_field_info, write_callable_info,
1815 write_function_info, write_callback_info, write_struct_info,
1816 write_constant_value, write_signal_info, write_vfunc_info,
1817 write_object_info, write_interface_info, write_union_info,
1818 write_repository): remove unused indent parameters, xmlwriter
1819 keeps track of necessary indentation
1821 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1823 * tools/generate.c (xml_element_new, xml_element_free,
1824 xml_start_element, xml_end_element, xml_end_element_unchecked,
1825 xml_open, xml_close): Keep track of generated XML tree and
1826 handle indentation and closing tags properly.
1827 (write_field_info, write_callable_info, write_function_info,
1828 write_callback_info, write_struct_info, write_value_info,
1829 write_constant_info, write_enum_info, write_signal_info,
1830 write_vfunc_info, write_property_info, write_object_info,
1831 write_interface_info, write_error_domain_info, write_union_info,
1832 write_repository): Use xml_start_element and xml_end_element to
1835 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1837 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1838 (write_type_name, write_type_info, write_field_info,
1839 write_callable_info, write_function_info, write_callback_info,
1840 write_struct_info, write_value_info, write_constant_value,
1841 write_constant_info, write_enum_info, write_signal_info,
1842 write_vfunc_info, write_property_info, write_object_info,
1843 write_interface_info, write_error_domain_info, write_union_info,
1844 write_repository): wrap all FILE access to go through simple xmlwriter
1846 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1848 Bug 556400 – Fails to build on OS X 10.4
1850 * configure.ac: check for functions backtrace and backtrace_symbols
1851 * girepository/girparser.c (backtrace_stderr): Comment out
1852 implementation if the functions are not available.
1853 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1854 directory for better portability
1856 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1858 Bug 556433 – assume direction = out for int * parameters
1860 * giscanner/ast.py: define a list of types for which, if passed as
1861 reference, we assume a default direction of 'out'
1862 * giscanner/transformer.py: if a type has type pointer to one of the
1863 previously defined types, and no direction is set, assume out.
1864 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1866 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1868 * tests/scanner/annotation.c: fixed a few copy-paste errors
1870 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1872 Bug 556323 – transfer-ownership is wrong for functions returning const
1875 * giscanner/transformer.py: check for a const string as return value,
1876 not just const char*. Suggested by Colin Walters
1877 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1879 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1881 * girepository/ginfo.c, girepository/girepository.h: add
1882 g_union_info_find_method
1884 2008-10-14 Colin Walters <walters@verbum.org>
1886 * tests/repository/Makefile.am: Reenable repo test.
1887 * tests/repository/gitestrepo.c: Prepend search
1888 path for $(top_builddir)/gir dir so that we don't
1889 require installation for "make check" to pass.
1891 2008-10-13 Jürg Billeter <j@bitron.ch>
1893 * giscanner/glibtransformer.py:
1894 * tests/scanner/annotation-1.0-expected.gir:
1895 * tests/scanner/drawable-1.0-expected.gir:
1896 * tests/scanner/foo-1.0-expected.gir:
1897 * tests/scanner/utility-1.0-expected.gir:
1899 Support fields in GObject structs
1901 2008-10-13 Jürg Billeter <j@bitron.ch>
1903 * giscanner/ast.py: add signed integer and off_t to type_names
1905 2008-10-12 Jürg Billeter <j@bitron.ch>
1907 * giscanner/girparser.py: Parse bits attribute of fields
1909 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1911 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1912 * tests/repository/gitestrepo.c (main): instantiate
1913 'GCancellable' to ensure the GType is registered before using
1916 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1918 * giscanner/girparser.py: actually add the parsed constant nodes
1920 2008-10-12 Colin Walters <walters@verbum.org>
1922 * girepository/girepository.c: Don't cast DirEntry to Blob,
1923 actually look it up by offset.
1925 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1927 * giscanner/girparser.py: parse constant nodes in gir files
1929 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1931 * giscanner/transformer.py: prefix for constants have an underscore,
1932 so remove them as if they were functions, not objects.
1934 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1936 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1939 2008-10-12 Colin Walters <walters@verbum.org>
1941 Initial patch from Jani Monoses.
1943 * girepository/gtypelib.c: Fix inverted test for success
1946 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1948 * tools/generate.c (write_callable_info): use "transfer-ownership"
1949 attribute for return values
1951 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1953 * tools/generate.c (write_callable_info): move "transfer" and
1954 "null-ok" attributes from <function> to <return-value> element
1956 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1958 * girepository/girparser.c (start_return_value): handle
1959 "transfer-ownership" attribute
1961 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1963 * girepository/girparser.c (parse_param_transfer):
1964 * tools/generate.c (write_callable_info): use "container" for
1965 container/shallow ownership transfer (not "shallow")
1967 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1969 * girepository/girparser.c (parse_param_transfer,
1970 start_parameter): Refactor handling of transfer=none/shallow/full
1971 to separate function
1973 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1975 Bug 556048 – Crash in g_irepository_find_by_gtype
1977 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1978 * girepository/girepository.c (find_interface): Fix
1979 find_by_gtype case to get the type name from right offset
1981 2008-10-12 Jürg Billeter <j@bitron.ch>
1983 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1986 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1988 * girepository/gtypelib.h (RegisteredTypeBlob): make
1989 'unregistered' one bit wide as everywhere else
1991 2008-10-12 Jürg Billeter <j@bitron.ch>
1993 * giscanner/glibtransformer.py:
1994 * tests/scanner/annotation-1.0-expected.gir:
1995 * tests/scanner/drawable-1.0-expected.gir:
1996 * tests/scanner/drawable.h:
1997 * tests/scanner/foo-1.0-expected.gir:
1998 * tests/scanner/utility-1.0-expected.gir:
2000 Readd class records as workaround to not break Gtk typelib
2002 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
2004 * tests/types/Makefile.am: fix typo in gitesttypes namespace
2006 2008-10-12 Jürg Billeter <j@bitron.ch>
2008 * giscanner/glibtransformer.py: Don't generate <record> elements
2010 * tests/scanner/*: Update test cases
2012 2008-10-11 Colin Walters <walters@verbum.org>
2014 Bug 552858: versioning
2016 This is a big patch. You should probably remove your installation
2019 * docs/typelib-format.txt: Add nsversion entry which holds
2020 version of namespace.
2021 * girepository/girepository.h: Add 'version' parameter to
2022 g_irepository_require. This may be NULL. Normally
2023 bindings should pass an explicit version though.
2024 * girepository/girepository.c: Lots of infrastructure to
2025 support versioning. Add some more documentation. Disallow
2026 some usage of NULL namespaces.
2027 * girepository/girmodule.c: Add version parameter.
2028 * girepository/gtypelib.c: Update header size.
2029 * giscanner/ast.py: Add version to Namespace.
2030 * giscanner/girparser.py: Parse version attribute from
2031 XML, pass to Namespace.
2032 * giscanner/girwriter.py: Write out version parameter.
2033 * giscanner/transformer.py: Clean up include registration.
2034 * tests/*: Add version attribute.
2035 * tests/invoke/invoke.c: Don't try looking up test before
2036 it's loaded in repository.
2037 * tools/generate.c: Output version parameter.
2038 * gir/Makefile.am: Add 2.0 version to .gir files.
2040 2008-10-11 Colin Walters <walters@verbum.org>
2042 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
2043 if we have mismatched parens.
2045 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2047 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
2048 on 'members' variable.
2050 2008-10-11 Colin Walters <walters@verbum.org>
2052 Bug 555947 - update annotations syntax
2054 * giscanner/ast.py: Default to None for transfer. Remove
2055 default transfers for container types; we require this to
2057 * giscanner/girwriter.py: Transfer is now 'none', 'container',
2058 'full' to match repository.
2059 * giscanner/scannerlexer.l: Annotations now are parenthesized.
2060 * giscanner/transformer.py: Update for new annotations syntax.
2063 2008-10-11 Johan Bilien <jobi@litl.com>
2065 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
2067 2008-10-11 Johan Bilien <jobi@litl.com>
2069 Bug 552347: Parse #defines constants
2071 * girepository/gtypelib.c: update the list of value_size
2072 with recently defined type tags
2073 * giscanner/scannerparser.y: brought back parsing of #defined, as
2074 present in older version
2075 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
2076 * giscanner/girwriter.py: write out constant tags in the gir
2077 * giscanner/sourcescanner.py: add accessor for const_string
2078 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
2081 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
2083 Bug 555946: Install a test module exercising all types, transfer
2088 * tests/types/*: Add and install a test module that has functions
2089 accepting and returning most of the basic types to enable bindings
2090 implementors to more easily test their type conversion routines.
2092 2008-10-11 Jürg Billeter <j@bitron.ch>
2094 Bug 552374: Const strings should be identified in the gir.
2096 * giscanner/transformer.py: support string memory management
2097 * tests/scanner/foo.h: use char * and const char *
2098 * tests/scanner/foo-expected.gir: test that
2100 2008-10-11 Johan Dahlin <johan@gnome.org>
2102 * giscanner/girparser.py:
2103 Also parse enums which are not glib types.
2105 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2107 Bug 552370: add one more test for unsigned as a type, not as
2110 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
2111 * test/scanner/foo.h: add function which uses unsigned as a type.
2112 * test/scanner/foo-expected.gir: test that.
2114 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
2116 Bug 555712: Struct and union issues
2118 * giscanner/scannerparser.y (struct_declarator): Use information
2119 provided about the bit width of a field.
2120 * giscanner/transformer.py (Transformer._create_member): Pass the
2121 symbol's const_int member to the created field (it represents the
2123 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
2124 field attribute, if present.
2125 * giscanner/ast.py (Field): Add 'bits' member, specifying the
2126 width in bits of the field (only relevant for bitfields).
2129 * giscanner/transformer.py (Transformer._create_typedef_struct)
2130 (Transformer._create_typedef_union): Add calls to _create_struct()
2131 and _create_union(), respectively. This causes the scanner to
2132 generate output for fields of struct and union typedefs.
2135 2008-10-11 Jürg Billeter <j@bitron.ch>
2137 Bug 552370: unsigned not scanned properly
2139 * giscanner/scannerparser.y: combine basic types such as unsigned
2140 int and long long when scanning
2141 * tests/scanner/foo-expected.gir:
2142 * tests/scanner/foo.c: (foo_test_unsigned):
2143 * tests/scanner/foo.h: test that
2145 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2147 Bug 554854: The --typelib-xml and --inject options should reuse
2148 giscanner parser/writer.
2150 * giscanner/ast.py: add constructor list to Struct and Union.
2151 Add new param in Return's contructor to define transfer.
2152 * giscanner/girparser.py: several additions to the parser in order
2153 to have parsing all nodes of the gir xml files.
2154 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
2155 and writer in --inject and --typelib-xml options.
2156 * giscanner/xmlwriter.py: ignore empty attributes instead of
2157 raising an error as this basically exposes a bug in GIRParser.
2158 This should be reverted as soon as the parser is fixed.
2160 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2162 Bug 552376: scanner generates wrong names for enum members when
2163 there's no defined gtype.
2165 * giscanner/utils.py (strip_common_prefix): Always strip common
2166 prefix exactly up to the last "_", and not beyond.
2167 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
2168 here is that the first character after the last '_' should should be
2169 the same as the character in the same position on the type name.
2170 * tests/scanner/foo-expected.gir: test that
2172 2008-10-10 Lucas Rocha <lucasr@gnome.org>
2174 Bug 555293: append library_paths to LPATH env variable to work
2175 around a bug in find_library when using ldconfig.
2177 * tools/g-ir-scanner (main): ditto.
2179 2008-10-09 Lucas Rocha <lucasr@gnome.org>
2181 * girepository/girepository.c (register_internal): fix regression on
2182 invoke test case by making sure we load the global module in the
2183 typelib when dealing with inline typelibs.
2184 * girepository/gtypelib.c: a couple of coding style fixes.
2186 2008-10-06 Lucas Rocha <lucasr@gnome.org>
2188 Bug 555294: Add support for multiple shared libraries per typelib.
2190 * girepository/ginvoke.c (g_function_info_invoke),
2191 girepository/ginfo.c(g_registered_type_info_get_g_type): use
2192 g_typelib_symbol instead of g_module_symbol.
2193 * girepository/girepository.h: remove g_typelib_set_module and add
2195 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
2196 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
2197 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
2198 modules instead of just one. The symbol lookup is now abstracted
2199 behind g_typelib_symbol which tries to find the passed symbol name in
2201 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
2202 and write shared_library attribute as a comma-separated list of libs.
2204 2008-10-06 Colin Walters <walters@verbum.org>
2206 * giscanner/transformer.py: Parse length= annotation as
2207 a parameter name, not a raw int.
2210 2008-10-03 Colin Walters <walters@verbum.org>
2212 Bug 551744: Non-GObject types aren't aggregating ctors and methods
2214 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
2216 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
2220 2008-10-03 Colin Walters <walters@verbum.org>
2222 Bug 554576: scan problem with ev_selection_render_selection()
2224 * giscanner/transformer.py: Only do type resolution once we've
2225 scanned all types. What could happen before is that we'd strip
2226 the namespace from local type "EvSelection" => Selection, and
2227 then later pull a "Selection" from some other namespace because
2228 we hadn't yet seen the local EvSelection. This could come
2229 down to hash table ordering and other things so not easy
2230 to write a test for.
2232 2008-10-03 Lucas Rocha <lucasr@gnome.org>
2234 * giscanner/girwriter.py (_parser_member): fix the last parameter of
2235 GLibEnumMember constructor as it should be the enum member nick.
2237 2008-10-02 Colin Walters <walters@verbum.org>
2239 Bug 552961: remove this parameter for methods
2241 * giscanner/glibtransformer.py: Delete this parameter; it is
2243 * girepository/ginvoke.c: Insert this parameter for methods.
2244 * girepository/gtypelib.c: Remove no longer needed verification of
2245 method this parameter.
2248 2008-09-30 Dan Winship <danw@gnome.org>
2250 Bug 554490: g-ir-scanner gets confused by '\\'
2252 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
2253 backslashes so it will correctly parse '\\' and "\\"
2255 * tests/scanner/annotation.c: add a use of '\\' to make sure that
2258 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
2260 2008-10-02 Colin Walters <walters@verbum.org>
2262 bug 552393: Note variadic functions
2264 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
2265 to use parameter_list directly.
2266 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
2267 * giscanner/ast.py: Add Varargs type.
2268 * giscanner/transformer.py: Check for ellipsis symbol, transform
2270 * girepository/girnode.h: Add varargs flag to in-memory nodes.
2271 Parse varargs functions, but filter them out before we start
2272 compiling the typelib.
2274 2008-10-02 Colin Walters <walters@verbum.org>
2276 Bug 554632: type tag for GType
2278 * girepository/girepository.h, girepository/girepository.c:
2279 Add type tag for GType - it's a special type we don't want
2280 to resolve to just "long".
2281 * docs/typelib-format.txt: Update.
2282 * girepository/girparser.c: Parse it.
2283 * giscanner/glibtransformer.py: Ensure we don't put GType in
2285 * tools/generate.c: Remove hardcoded type list.
2288 2008-09-30 Dan Winship <danw@gnome.org>
2290 Bug 554521: scanner generates wrong names for enum members with
2291 full type name prefix
2293 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
2294 right amount when the entire "first" string is a prefix of
2297 * tests/scanner/foo.h (FooEnumFullname):
2298 * tests/scanner/foo-expected.gir: test that
2300 2008-09-29 Colin Walters <walters@verbum.org>
2302 Bug 552380: Array parameters should be marked in the gir
2304 * giscanner/ast.py: Default char** to utf8[], and guchar* to
2305 uint8[]. Add Array, List, and Map subclasses of Type;
2306 these types can be generic. Return transfer defaults
2307 to true if return value is string or container type.
2308 Delete Sequence type.
2309 * giscanner/scannerlexer.l: Syntax change for annotations;
2310 use <> since it's more readable.
2311 * giscanner/girwriter.py: Write out these changes.
2312 * giscanner/girparser.py: Parse them.
2313 * giscanner/transformer.py: Have a defined set of
2314 both list and map types. When creating a type,
2315 check if the ctype we've parsed is one of them,
2316 if so create a container type subclass as appropriate.
2317 * girepository/girparser.c: Parse in generic types.
2320 2008-09-27 Colin Walters <walters@verbum.org>
2322 * tools/g-ir-scanner: Add --inject option.
2324 2008-09-25 Colin Walters <walters@verbum.org>
2326 Remove non-repository types from GIR
2328 * giscanner/ast.py: The canonical name is 'utf8', not
2330 * giscanner/glibast.py: A few more glib type mappings.
2331 * girepository/girparser.c: We only parse repository types.
2332 * tests/*.gir: Update.
2334 2008-09-23 Colin Walters <walters@verbum.org>
2336 Bug 552566: Add time_t type
2338 We need a type for time_t since it's special in C, and just
2339 mapping it to long precluded bindings from handling it
2342 2008-09-19 Colin Walters <walters@verbum.org>
2344 Bug 552390: Handle capitialization like "DBus" more robustly
2346 The to_underscores function was designed for use against prefixed
2347 names; we need a separate function which will convert names like
2348 DBusFoo into dbus_foo, not d_bus_foo.
2350 2008-09-19 Colin Walters <walters@verbum.org>
2352 Add check to make sure we're not hitting out unresolved types
2354 Validate the "this" argument for methods
2356 Remove heuristic matching of methods to classes based on prefix
2358 It was a broken hack that dated from when we handled underscoring
2359 and capitalization conventions less well.
2361 2008-09-18 Colin Walters <walters@verbum.org>
2363 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2365 On Darwin, the suffix for installed shared libraries (.dylib) is
2366 different from loadable modules (.so). We use a bit of magic shell
2367 script from Behdad Esfahbod to figure out the right suffix.
2369 2008-09-15 Johan Dahlin <johan@gnome.org>
2371 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2372 a wrapper for type_qualifier as well.
2374 2008-09-15 Colin Walters <walters@verbum.org>
2376 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2378 * giscanner/ast.py: Add deprecation attributes.
2379 * giscanner/girwriter.py: Write out deprecation data.
2380 * girepository/girparser.c: Relax parsing; deprecated
2381 attribute now includes freeform string.
2382 * giscanner/scannerlexer.l: Parse Deprecated.
2383 * giscanner/transformer.py: Look for deprecated attribute
2385 * tests/scanner/*: Add a Deprecated test.
2387 2008-09-14 Tor Lillqvist <tml@novell.com>
2389 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2391 2008-09-14 Colin Walters <walters@verbum.org>
2393 * giscanner/glibtransformer.py: Ignore functions with
2396 2008-09-12 Colin Walters <walters@verbum.org>
2398 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2400 2008-09-12 Colin Walters <walters@verbum.org>
2402 * giscanner/ast.py: Bind pid_t to INT for vte.
2404 2008-09-12 Colin Walters <walters@verbum.org>
2406 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2407 * giscanner/glibast.py: Avoid overwriting ctype.
2408 * giscsanner/transformer.py: Try resolving types using the GType names.
2410 2008-09-12 Colin Walters <walters@verbum.org>
2412 * giscanner/minixpath.py: Code to run an "XPath"
2413 assertion against an XML tree, taken from
2414 gir-repository/gir/tests.py.
2415 * giscanner/Makefile.am: Ship it.
2416 * tools/g-ir-scanner: Add --xpath-assertions option.
2417 * gir/GLib-assertions.txt: Add a few assertions.
2418 * gir/Makefile.am: Run them.
2420 2008-09-11 Colin Walters <walters@verbum.org>
2422 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2424 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2425 prefix if it ends with _. Tweak callback stripping to determine
2426 based on presence of _ whether we need to use strip_namespace_func
2427 or strip_namespace_object.
2429 2008-09-09 Owen Taylor <otaylor@redhat.com>
2431 * docs/typelib-format.txt: Wether => Whether
2433 2008-09-08 Colin Walters <walters@verbum.org>
2435 * girepository/girparser.c: Default to "readable" for properties.
2436 * giscanner/ast.py: Add readable, writable etc.
2437 * giscanner/girwriter.py: Writ them.
2438 * giscanner/glibtransformer.py: Inspect them.
2441 2008-09-07 Colin Walters <walters@verbum.org>
2443 * giscanner/cgobject.py: Add comment.
2445 2008-09-07 Colin Walters <walters@verbum.org>
2447 * giscanner/cgobject.py: Also call g_thread_init.
2449 2008-09-07 Colin Walters <walters@verbum.org>
2451 * giscanner/transformer.py: Fix regression by not
2452 stripping prefix before stripping namespace for unions
2455 2008-09-06 Colin Walters <walters@verbum.org>
2457 * giscanner/transformer.py: If a namespace contains
2458 multiple caps, try stripping both gnomekeyring_ and
2461 2008-09-07 Johan Dahlin <johan@gnome.org>
2463 Bug 551162 – giscanner does not recognize asm and __asm__
2464 * giscanner/scannerlexer.l:
2465 Patch by Jani Monoses.
2467 2008-09-06 Colin Walters <walters@verbum.org>
2469 * girepository/girnode.c: Allow gtype_name
2470 and gtype_init in struct and union.
2471 * girepository/girparser.c: Parse glib:
2472 boxed bits for both structure and union.
2473 * girepository/gtypelib.c: Don't barf
2474 if structure is boxed.
2475 * giscanner/girparser.py: Parse new XML
2477 * giscanner/girwriter.py: Write out new
2479 * giscanner/glibast.py: Define new classes
2480 which are both Boxed and Struct/Union, as
2481 well as an "Other" for everything else.
2482 * giscanner/glibtransformer.py: Handle
2483 boxed types specially; we try to merge
2484 them with a struct/union if one exists,
2485 otherwise fall back to generic boxed.
2487 * tools/generate.c: Write out new format.
2489 2008-09-06 Johan Dahlin <johan@gnome.org>
2491 * giscanner/grealpath.h: Include stdlib.h
2493 * docs/g-ir-generate.1: Remove leading %
2495 2008-09-01 Colin Walters <walters@verbum.org>
2497 * girepository/girparser.c: Look at c:type to determine
2498 whether or not an item is a pointer.
2500 2008-09-01 Johan Dahlin <johan@gnome.org>
2502 * tests/scanner/Makefile.am:
2503 Set PYTHONPATH so the scanner can run
2504 even if you didn't install anything.
2506 2008-09-01 Johan Dahlin <johan@gnome.org>
2509 Post-release version bump
2512 2008-09-01 Johan Dahlin <johan@gnome.org>
2516 2008-08-31 Colin Walters <walters@verbum.org>
2518 * giscanner/glibtransformer.py: Quiet info
2521 2008-08-31 Johan Dahlin <johan@gnome.org>
2524 Bump version to 0.5.0
2526 2008-08-31 Colin Walters <walters@verbum.org>
2528 * giscanner/glibtransformer.py: Follow aliases to ensure
2529 we don't get a constructor returning a basic type.
2530 * giscanner/transformer.py: Add function to follow aliases.
2533 2008-08-31 Johan Dahlin <johan@gnome.org>
2535 * giscanner/scannerlexer.l:
2536 * giscanner/scannerparser.y:
2537 * giscanner/sourcescanner.h:
2538 * giscanner/sourcescanner.py:
2539 Parse GCC extensions in the parser instead of just undeffing them
2540 in the pre-processor.
2542 2008-08-31 Johan Dahlin <johan@gnome.org>
2544 * giscanner/glibtransformer.py:
2545 Clean up a huge if. Do not add methods or constructors
2547 * giscanner/utils.py:
2548 second might be longer than first, check that.
2550 2008-08-31 Johan Dahlin <johan@gnome.org>
2555 2008-08-31 Colin Walters <walters@verbum.org>
2557 * girepository/girparser.c: Don't lose if we
2560 2008-08-31 Colin Walters <walters@verbum.org>
2562 * giscanner/glibtransformer.py: Look for libtool
2563 library in current directory
2564 * tests/scanner - Update.
2566 2008-08-30 Colin Walters <walters@verbum.org>
2568 * docs/typelib-format.txt: Add a guint32
2570 * gir/Makefile.am: Dep on Makefile
2571 * girepository/ginfo.c:
2572 * girepository/girepository.c: Clean up
2573 default typelib handling; remove global
2574 default_typelib variable. Ensure we handle
2575 NULL repository in more places.
2576 Support dependency resolution.
2577 Support lazy loading.
2578 * girepository/girepository.h: Remove
2579 g_irepository_unregister; we don't support
2580 unloading typelibs since really they're
2581 process-global. Update for lazy loading
2583 * girepository/girmodule.c: Use g_new0.
2584 Add dependencies to GirModule.
2585 * girepository/girparser.c: Parse dependencies.
2586 * girepository/gtypelib.c: Add 4 bytes for
2588 * tests/Makefile.am: Kill off gobject.gir,
2589 it conflicts with the real one.
2590 * tests/object.gir: Dep on GObject.
2591 * tools/generate.c: Take --includedir
2592 argument to say which directories to search
2593 for typelibs. Print out dependencies.
2595 2008-08-30 Colin Walters <walters@verbum.org>
2597 * giscanner/glibtransformer.py: Reduce warning noise.
2599 2008-08-29 Colin Walters <walters@verbum.org>
2601 * girepository/ginfo.c: Add some assertions regarding
2602 refcounts, just to be sure.
2603 * giscanner/glibtransformer.py: Blacklist a few more
2606 2008-08-29 Colin Walters <walters@verbum.org>
2608 * giscanner/glibtransformer.py: Blacklist a few
2609 functions that use GError oddly
2611 2008-08-29 Colin Walters <walters@verbum.org>
2613 * girepository/gtypelib.c: Don't crash if no
2616 2008-08-29 Colin Walters <walters@verbum.org>
2618 * girepository/girparser.c: Handle chains of aliases
2619 across modules by ensuring we fully qualify aliases
2622 2008-08-29 Colin Walters <walters@verbum.org>
2624 * girepository/girparser.c: Don't search aliases
2627 2008-08-29 Colin Walters <walters@verbum.org>
2629 * girepository/girparser.c: Rewrite type parsing
2630 to handle both GLib parsing case as well as correctly
2631 handling GLib.List and friends. Don't try to treat
2632 e.g. ListStore as a List.
2634 2008-08-29 Colin Walters <walters@verbum.org>
2636 * girepository/gtypelib.c: Add more context
2639 2008-08-29 Colin Walters <walters@verbum.org>
2641 * giscanner/glibtransformer.py: Add some informative
2642 logging messages in corner cases. Be sure we use
2643 the most recent node set instead of a cache
2644 when generating result set.
2645 * tests/: Remove duplicated bits in expected girs
2646 * girepository/girparser.c: Accept both List (for
2647 compiling GLib) and GLib.List (what the scanner
2650 * tools/generate.c: Generate canonical form.
2652 2008-08-29 Johan Dahlin <johan@gnome.org>
2654 * giscanner/config.py.in:
2655 Use datarootdir instead of datadir to avoid
2656 an autoconf warning.
2658 2008-08-29 Johan Dahlin <johan@gnome.org>
2662 * examples/gdk-pixbuf.gidl:
2664 Update and remove old cruft.
2666 2008-08-29 Johan Dahlin <johan@gnome.org>
2669 * docs/g-ir-compiler.1:
2670 * docs/g-ir-generate.1:
2671 * docs/g-ir-scanner.1:
2672 Add man pages for the generator and compiler.
2674 2008-08-29 Johan Dahlin <johan@gnome.org>
2676 * docs/g-ir-scanner.1: Document
2678 * giscanner/Makefile.am:
2679 * giscanner/gidlparser.py:
2680 * giscanner/gidlwriter.py:
2681 * tools/g-ir-scanner:
2682 Remove gidl support.
2684 2008-08-28 Colin Walters <walters@verbum.org>
2686 * tests/scanner/Makefile.am: Pass the right
2687 --includedir args. Add a Makefile dep.
2688 * tools/compiler.c: Pass includedirs down.
2689 * girepository/girparser.c: Actually put
2690 includedirs in context, pass down. Fix
2693 2008-08-28 Colin Walters <walters@verbum.org>
2695 * gir/Makefile.am: Use --includedir
2696 * girepository/girparser.c: Recursively parse
2697 includes to pull in aliases and expand them.
2698 We need this to avoid putting unknown names in
2700 * tools/compiler.c: Add --includedir option.
2701 * giscanner/ast.py: Map size/ssize to types
2704 2008-08-28 Tor Lillqvist <tml@novell.com>
2706 Make check now runs successfully on Windows.
2708 * tools/compiler.c (write_out_typelib): Use binary mode for output
2711 * girepository/girnode.c: Don't print NULL strings.
2713 * tests/invoke/Makefile.am
2714 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2715 convince libtool to build shared libraries.
2717 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2718 g_assert() instead of printing out expected errors.
2720 2008-08-28 Tor Lillqvist <tml@novell.com>
2722 * girepository/gtypelib.h: Change type of bitfield fields from
2723 guint to the most suitable smaller type. This makes the struct
2724 sizes match the ones on Linux that the sanity check expects when
2725 using gcc -mms-bitfields on Windows.
2727 2008-08-28 Johan Dahlin <johan@gnome.org>
2732 * giscanner/Makefile.am:
2733 * tests/Makefile.am:
2734 * tests/scanner/Makefile.am:
2735 Make distcheck pass.
2737 2008-08-27 Johan Dahlin <johan@gnome.org>
2739 * giscanner/Makefile.am:
2740 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2742 2008-08-27 Tor Lillqvist <tml@novell.com>
2744 Make g-ir-scanner work on Windows. Still problems with the typelib
2745 code. Changes okayed by jdahlin.
2747 * configure.ac: Check for Windows, set Automake conditional
2748 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2749 avoid shell quoting issues
2751 * girepository/Makefile.am: Use -no-undefined so that libtool
2752 agrees to build a shared library on Windows.
2754 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2755 Windows. Empty implementation on Windows so far.
2757 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2758 informative error message for the assertion failures. Tell also
2759 what the expected size of the struct is. Check all sizes first and
2760 fail afterwards if at least one size was different from expected.
2762 * tools/Makefile.am: Reorder libraries into proper logical
2765 * tools/generate.c: Don't include <dlfcn.h>, not used.
2767 * giscanner/Makefile.am: On Windows, link with the Python library,
2768 and install the module DLL as _giscanner.pyd. Remove the
2769 unnecessary import library and libtool library that libtool has
2772 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2773 and just skip it. Recognize also two "l" suffixes for long long
2774 constants. Recognize also __inline__.
2776 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2777 GetFullPathName(). As such, GetFullPathName() does more than the
2778 UNIX realpath(). It also changes relative paths into absolute
2779 paths. But for our purposes that shouldn't matter.
2781 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2782 Windows the file descriptor passed to us is from Python. Python
2783 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2784 uses msvcrt.dll. On Windows, file descriptors are specific to
2785 which C library is used. So we must find out what underlying OS
2786 handle corresponds to the file descriptor Python passes us, and
2787 then make that into a file descriptor valid for the C library this
2790 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2791 __attribute__ as the lexer now handles it. The definition as empty
2792 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2793 __attribute__. Close the temp file before unlinking it.
2795 * giscanner/cgobject.py: Use correct library name for the gobject
2798 * gir/Makefile.am: Must pass the full basename of the DLLs on
2799 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2800 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2801 reality they won't change, until there is a GLib 3, and then also
2802 the Unix code here needs changing.
2804 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2807 2008-08-26 Colin Walters <walters@verbum.org>
2809 * girepository/girepository.c: Search
2810 $DATADIR/girepository instead of
2811 $DATADIR/gitypelibs; this naming makes
2812 it clearer that e.g. jgir can install
2814 * gir/Makefile.am: Install there.
2816 2008-08-26 Colin Walters <walters@verbum.org>
2818 * girepository/gtypelib.c (_g_typelib_init): Also
2819 use G_MODULE_SUFFIX instead of hardcoding .so.
2821 2008-08-26 Colin Walters <walters@verbum.org>
2823 * girepository/gtypelib.c (_g_typelib_init): Free
2824 string in the right place.
2826 2008-08-26 Colin Walters <walters@verbum.org>
2828 * girepository/gtypelib.c (_g_typelib_init): Handle
2829 both .la and .so names; this works better in the
2830 uninstalled library case.
2832 2008-08-26 Johan Dahlin <johan@gnome.org>
2835 * giscanner/Makefile.am:
2836 * giscanner/cgobject.py:
2837 * giscanner/config.py.in:
2838 * giscanner/sourcescanner.py:
2839 Avoid undeffing __GNUC__, instead define
2840 __attribute__ & friends. Remove glibconfig.h hack.
2841 This makes gobject-introspection work better on
2842 MacOS X, Thanks to Richard Hult for kind help.
2844 2008-08-25 Colin Walters <walters@verbum.org>
2846 * giscanner/glibtransformer.py: Always print
2849 2008-08-25 Colin Walters <walters@verbum.org>
2851 * giscanner/glibtransformer.py: Skip over
2852 interfaces we don't know.
2854 2008-08-25 Colin Walters <walters@verbum.org>
2856 * girepository/girparser.c: Parse new implements
2857 syntax, drop gapi one.
2858 * tests/object.gir: Update.
2859 * tools/generate.c: Generate new syntax.
2861 2008-08-25 Colin Walters <walters@verbum.org>
2863 * giscanner/ast.py: Add interfaces property
2865 * giscanner/girwriter.py: Write out implemented
2867 * giscanner/glibtransformer.py: Introspect
2868 implemented interfaces.
2869 * tests/scanner/*: Make FooObject implement
2872 2008-08-25 Colin Walters <walters@verbum.org>
2874 * giscanner/glibtransformer.py: More correctly pair
2875 methods; if we have a symbol that starts with
2876 e.g. hippo_canvas look for a matching HippoCanvas
2877 class before accepting e.g. HippoCanvasImage.
2879 2008-08-24 Colin Walters <walters@verbum.org>
2881 * tools/g-ir-scanner: Filter out unknown options from
2884 2008-08-24 Colin Walters <walters@verbum.org>
2886 * giscanner/glibtransformer.py: Fail with better
2887 error if we can't find library.
2889 2008-08-24 Colin Walters <walters@verbum.org>
2891 * tools/g-ir-scanner: Use subprocess instead of
2892 commands, works on Windows and avoids the evil
2895 2008-08-24 Colin Walters <walters@verbum.org>
2897 * giscanner/glibtransformer.py: Skip over
2898 g_object_get_type from GLib trunk.
2900 2008-08-24 Colin Walters <walters@verbum.org>
2902 * girepository/girepository.c (g_irepository_require):
2903 Don't open shared library here; we already do it
2906 2008-08-24 Colin Walters <walters@verbum.org>
2908 * girepository/gtypelib.c: Add context stack so
2909 when we get an error we can print out nicely
2912 2008-08-24 Johan Dahlin <johan@gnome.org>
2914 * girepository/girparser.c (start_glib_boxed), (start_function),
2915 (start_field), (start_alias):
2916 Refactor a couple of parsing functions to be simpler to follow.
2919 2008-08-24 Johan Dahlin <johan@gnome.org>
2921 * girepository/girparser.c (start_function):
2922 Remove left-over code, checking type of function.
2924 2008-08-23 Colin Walters <walters@verbum.org>
2926 * giscanner/config.py: Define DATADIR.
2927 * giscanner/transformer.py: Look in DATADIR.
2929 2008-08-23 Colin Walters <walters@verbum.org>
2931 * girepository/gtypelib.c: Check constructor
2933 * girepository/girnode.c: Small tweaks.
2934 * girepository/ginfo.c: Calculate signature offsets
2936 * girepository/girparser.c: Remove duplicate
2938 * giscanner/glibtransformer.py: Avoid marking
2939 functions which return a basic type as
2942 2008-08-23 Colin Walters <walters@verbum.org>
2944 * girepository/girparser.c: Ignore <include>.
2945 * giscanner/girparser.py: Parse them.
2946 * giscanner/girwriter.py: Generate them.
2947 * giscanner/transformer.py: Process <include>
2948 recursively. Don't require full path for
2949 includes, look in {$XDG_DATA_DIRS}/gir.
2950 * tools/g-ir-scanner: Pass through includes.
2951 * Makefile.am: Remove extra --include
2953 * *-expected.gir: Add expected includes.
2955 2008-08-23 Johan Dahlin <johan@gnome.org>
2957 * tests/scanner/Makefile.am:
2958 * tests/scanner/annotation-expected.gir:
2959 * tests/scanner/drawable-expected.gir:
2960 Avoid duplication in the Makefile, regenerate with new
2961 namespaces (same as the filename)
2963 2008-08-22 Colin Walters <walters@verbum.org>
2965 * girepository/girnode.c: Don't hardcode integers,
2968 2008-08-22 Johan Dahlin <johan@gnome.org>
2970 * giscanner/sourcescanner.py:
2971 Check for ../gobject-introspection-1.0.pc.in to determine
2972 if we run installed or uninstalled.
2974 2008-08-22 Johan Dahlin <johan@gnome.org>
2977 * giscanner/sourcescanner.py:
2978 Send in undefs/defines via writing it directly to stdin
2979 of cpp instead of via arguments.
2981 2008-08-22 Colin Walters <walters@verbum.org>
2983 * tools/generate.c, tools/compiler.c: Default
2985 * all Makefile.am: Update.
2987 2008-08-22 Colin Walters <walters@verbum.org>
2989 * girepository/girparser.c: Pass through
2990 recursive types. Avoid overwriting errors.
2991 * giscanner/xmlwriter.py: Always write the
2993 * tests/*.gir: Adjust.
2994 * tests/scanner/Makefile.am: Build typelibs,
2995 and generate XML from those. Once we
2996 have a good diff mechanism...
2997 * tests/scanner/*-expected.gir: Add XML
2999 * tools/g-ir-scanner: Accept --typelib-xml
3001 * tools/generate.c: Better defaults for transfer.
3003 2008-08-22 Johan Dahlin <johan@gnome.org>
3007 * giscanner/Makefile.am:
3008 * giscanner/config.py.in:
3009 * giscanner/sourcescanner.py:
3010 Use the generated glibconfig.h for all scanner invokations.
3011 Rename it to glibconfig-scanner.h and install it.
3012 Add a config.py which so far contains the include dir.
3014 2008-08-22 Johan Dahlin <johan@gnome.org>
3017 Replace glibconfig.h with our own, do some replacement
3018 for CPP/C features we do not support
3020 2008-08-22 Colin Walters <walters@verbum.org>
3022 * tools/generate.c (write_callable_info): Fix unref
3025 2008-08-22 Colin Walters <walters@verbum.org>
3027 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
3028 * tests/Makefile.am: Support $(DEBUG)
3029 * tools/generate.c: Do immediate close tags if no
3032 2008-08-21 Colin Walters <walters@verbum.org>
3034 * tests/scanner/drawable-expected.gir,
3035 * tests/scanner/drawable.c,
3036 * tests/scanner/drawable.h:
3039 2008-08-21 Colin Walters <walters@verbum.org>
3041 * giscanner/glibtransformer.py: Compute prefix
3042 by searching through the symbol for bits
3043 rather than going directly from ctype; this fixes
3046 2008-08-21 Colin Walters <walters@verbum.org>
3048 * giscanner/glibtransformer.py: Also try squashing
3049 underscores from namespace, fixes webkit_web_view_new.
3051 2008-08-21 Colin Walters <walters@verbum.org>
3053 * giscanner/glibtransformer.py: More ctor work,
3054 avoid having gtk_window_group_new end up under
3057 2008-08-21 Colin Walters <walters@verbum.org>
3059 * giscanner/glibtransformer.py: Much simpler approach
3060 of mapping uscored names to classes.
3061 * giscanner/utils.py: Remove unnecessary function.
3063 2008-08-21 Johan Dahlin <johan@gnome.org>
3065 * girepository/girepository.c (g_irepository_require):
3066 Plug memory leak and avoid using freed memory.
3067 Resolve the whole module path, here as well.
3069 2008-08-21 Colin Walters <walters@verbum.org>
3071 * giscanner/glibtransformer.py: Look up all permutations
3072 of class names when scanning methods/ctors based on
3073 the prefix instead of using the return value. This
3074 associates gtk_window_new with the right class.
3076 2008-08-21 Colin Walters <walters@verbum.org>
3078 * girepository/girmodule.c (g_ir_module_build_typelib):
3079 Revert change to increment header_size; we do that in
3082 2008-08-21 Colin Walters <walters@verbum.org>
3084 * girepository/girnode.c (write_string): Tweak to
3085 use UINT instead of INT. Not likely to matter.
3086 * girepository/girmodule.c (g_ir_module_build_typelib):
3087 Add to header_offset as well for header strings
3088 to match what write_string does.
3089 * girepository/gtypelib.c: Replace is_name with
3090 validate_name, which more strongly validates and
3091 handles errors in a better way. Update all callers.
3092 * giscanner/glibtransformer.py: Handle constructors
3095 2008-08-21 Johan Dahlin <johan@gnome.org>
3097 * gir/Makefile.am (typelibs_DATA): Build and
3098 install the Gio.typelib too
3100 * girepository/gtypelib.c (_g_typelib_init):
3101 Use g_module_build_path to resolve the shlib name
3103 2008-08-21 Colin Walters <walters@verbum.org>
3105 * gir/Makefile.am: CLEANFILES typelibs too.
3107 2008-08-21 Johan Dahlin <johan@gnome.org>
3109 * giscanner/glibtransformer.py:
3110 Do not send .la files through find_library.
3112 2008-08-21 Colin Walters <walters@verbum.org>
3114 * girepository/girparser.c (g_irepository_require):
3115 Fix one small leak in error case.
3117 2008-08-21 Johan Dahlin <johan@gnome.org>
3120 Parse glibconfig.h as well and install the compiled
3123 2008-08-21 Johan Dahlin <johan@gnome.org>
3126 * giscanner/glibtransformer.py:
3127 * tools/g-ir-scanner:
3128 Do not hard-core library names in the Makefile, reuse
3129 ctypes find_library instead.
3131 2008-08-21 Johan Dahlin <johan@gnome.org>
3133 * girepository/girparser.c (resolve_aliases):
3134 Remove compilation warnings
3136 2008-08-21 Johan Dahlin <johan@gnome.org>
3138 * girepository/girepository.c (g_irepository_require):
3139 Rewrap and fix double free bug by leaking a bit.
3141 2008-08-20 Colin Walters <walters@verbum.org>
3143 * girepository/girepository.c: Add new function
3144 g_irepository_get_typelib_path which tells
3145 us from where we loaded a namespace.
3147 2008-08-20 Colin Walters <walters@verbum.org>
3149 * tests/scanner/*-expected.gir: Adjust for
3150 added shared-library.
3151 * giscanner/giwriter.py: Make pylint happy.
3153 2008-08-20 Colin Walters <walters@verbum.org>
3155 * girepository/girmodule.c (g_ir_module_build_typelib):
3156 Calculate size correctly, avoid use-after-free.
3158 2008-08-20 Colin Walters <walters@verbum.org>
3160 * girepository/girepository.c: Remove
3161 g_irepository_register_file in favor of
3162 g_irepository_require. There are two
3163 possible deployment scenarios for typelibs:
3164 First, separate in $DATADIR/gitypelibs/. Second,
3165 they may be embedded in shlibs. However since
3166 the first is now the normal case, the API is
3167 optimized around it.
3169 Refactor internals to look up typelibs for
3170 namespaces just-in-time, but we expect
3171 consumers to call g_irepository_require.
3173 Also, add some docs. No one has died from that
3175 * gir/Makefile.am: Need --library for glib.
3176 * giscanner/girwriter.py: Write out shared-library.
3177 * tools/g-ir-writer: Take the first --library
3178 argument as the target of shared-library. In
3179 the future we should make this nicer with pkg-config
3182 2008-08-20 Colin Walters <walters@verbum.org>
3184 * girepository/girparser.py: And parse them.
3186 2008-08-20 Johan Dahlin <johan@gnome.org>
3188 * giscanner/glibast.py: Add gshort/gushort types
3190 2008-08-20 Colin Walters <walters@verbum.org>
3192 * gir/Makefile.am: Rename .gir files using GI namespace.
3193 * girepository/girepository.c: Use XDG_DATA_DIRS for
3194 looking up typelibs. Also typelibs are now suffixed
3196 * tests/invoke/Makefile.am: Only use metadata.
3197 * girepository/Makefile.am: Remove unnecessary include.
3198 * tests/scanner/Makefile.am: Update using GI namespaces
3199 for scanner includes.
3201 2008-08-20 Colin Walters <walters@verbum.org>
3203 * girepository/transformer.py: Suppress aliases whose
3205 * girepository/ast.py: Define some more aliases.
3207 2008-08-20 Colin Walters <walters@verbum.org>
3209 * girepository/girparser.c: Avoid alias infloops.
3211 2008-08-20 Colin Walters <walters@verbum.org>
3213 * tests/scanner/foo-expected.gir: Fix expected list type.
3215 2008-08-20 Johan Dahlin <johan@gnome.org>
3217 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
3218 Add a workaround for #548689.
3219 We can now compile gtk!
3221 2008-08-20 Colin Walters <walters@verbum.org>
3223 * giscanner/glibtransformer.py: Try to look up
3224 aliases using the c:type too.
3226 2008-08-20 Colin Walters <walters@verbum.org>
3228 * girepository/girparser.c: Parse union fields.
3230 2008-08-20 Johan Dahlin <johan@gnome.org>
3232 * giscanner/ast.py: Make time_t an alias for long
3234 * gir/gio-2.0-good.gir:
3235 * gir/glib-2.0-good.gir:
3236 * gir/gobject-2.0-good.gir:
3238 * giscanner/glibtransformer.py:
3239 Do not delete Class structures, we need them in gdk/gtk.
3240 * tests/scanner/drawable-expected.gir:
3241 * tests/scanner/foo-expected.gir:
3242 * tests/scanner/utility-expected.gir:
3245 2008-08-20 Johan Dahlin <johan@gnome.org>
3247 * tests/scanner/Makefile.am:
3248 * tests/scanner/annotation-expected.gir:
3249 * tests/scanner/annotation.c (annotation_object_class_init),
3250 (annotation_object_init), (annotation_object_method),
3251 (annotation_object_in), (annotation_object_out),
3252 (annotation_object_inout), (annotation_object_inout2),
3253 (annotation_object_inout3), (annotation_object_calleeowns),
3254 (annotation_object_calleesowns), (annotation_object_get_strings),
3255 (annotation_object_with_voidp), (annotation_object_get_objects),
3256 (annotation_object_create_object), (annotation_object_allow_none):
3257 * tests/scanner/annotation.h:
3258 * tests/scanner/foo-expected.gir:
3259 * tests/scanner/foo.c:
3260 * tests/scanner/foo.h:
3261 Split out annotation tests out of foo
3263 2008-08-20 Johan Dahlin <johan@gnome.org>
3265 * tests/scanner/Foo-expected.gir:
3266 * tests/scanner/Makefile.am:
3267 * tests/scanner/foo-expected.gir:
3268 * tests/scanner/foo-object.h:
3269 * tests/scanner/foo.c:
3270 Foo->foo, foo-object.h -> foo.h
3272 2008-08-20 Johan Dahlin <johan@gnome.org>
3274 * tests/scanner/Foo-expected.gir:
3275 * tests/scanner/Makefile.am:
3276 * tests/scanner/drawable-expected.gir:
3277 * tests/scanner/drawable.c (test_drawable_class_init),
3278 (test_drawable_init):
3279 * tests/scanner/drawable.h:
3280 * tests/scanner/foo-object.h:
3281 * tests/scanner/foo.c (foo_boxed_method):
3282 Move the drawable parts out of Foo to its own test.
3284 2008-08-20 Johan Dahlin <johan@gnome.org>
3286 * tests/scanner/Foo-expected.gir:
3287 * tests/scanner/foo-object.h:
3288 * tests/scanner/foo.c (foo_drawable_class_init),
3289 (foo_drawable_init):
3290 Add a based on GdkDrawable which generates
3293 2008-08-19 Colin Walters <walters@verbum.org>
3295 * giscanner/transformer.py: Don't try
3296 to strip prefix before namespace.
3298 2008-08-19 Johan Dahlin <johan@gnome.org>
3300 * giscanner/transformer.py:
3301 * tests/scanner/Foo-expected.gir:
3302 * tests/scanner/foo-object.h:
3303 Add support for typedef void foo type of
3306 2008-08-19 Johan Dahlin <johan@gnome.org>
3309 * giscanner/girwriter.py:
3310 * giscanner/glibtransformer.py:
3311 * giscanner/transformer.py:
3312 * tests/scanner/Foo-expected.gir:
3313 Add basic support for union, base the code much
3314 on Struct. Add a testcase.
3316 2008-08-19 Johan Dahlin <johan@gnome.org>
3318 * tests/scanner/Foo-expected.gir:
3319 * tests/scanner/foo-object.h:
3320 Add a union testcase which the compiler currently
3323 2008-08-19 Johan Dahlin <johan@gnome.org>
3325 * gobject-introspection-1.0.pc.in:
3326 Add a g_ir_compiler variable
3328 2008-08-19 Colin Walters <walters@verbum.org>
3330 * giscanner/ast.py: Rework types to be more closely
3332 * giscanner/girparser.py: Parse more bits.
3333 * giscanner/girwriter.py: Write sequences in a new
3334 way that specifies container type.
3335 * giscanner/glibast.py: Adjust for ast.py changes,
3336 add 'ctype' property to GLibObject and GLibInterface
3337 so we can look things up by it later.
3338 * gicanner/transformer.py: Names is new class holding
3339 the various namespaces we manage. Do not confuse
3340 with Namespace which is toplevel XML node effectively.
3341 Rework all type resolution to go through
3342 _resolve_type_name_1.
3343 * giscanner/glibtransformer.py: Raise UnknownTypeError
3344 instead of ValueError for cleanliness. Add Unresolved
3345 class to mark types whose parent we haven't seen yet.
3346 Use new Names object from transformer.py.
3347 Correctly look up parent=.
3348 Fix type validation to handle sequences.
3349 * tests/scanner/Foo-expected.gir: Update for sequence
3350 work, int instead of int32.
3351 * tools/g-ir-scanner: Add --noclosure option
3352 * gir/Makefile.am: Use --noclosure by default for
3355 2008-08-18 Johan Dahlin <johan@gnome.org>
3357 * gir/gio-2.0-good.gir:
3358 * gir/glib-2.0-good.gir:
3359 * gir/gobject-2.0-good.gir:
3362 2008-08-18 Johan Dahlin <johan@gnome.org>
3365 * giscanner/girparser.py:
3366 * giscanner/girwriter.py:
3367 * giscanner/glibast.py:
3368 * giscanner/glibtransformer.py:
3369 * giscanner/transformer.py:
3370 * tests/scanner/Foo-expected.gir:
3371 * tests/scanner/foo-object.h:
3372 * tests/scanner/utility-expected.gir:
3373 * tests/scanner/utility.h:
3374 Redo type resolving and validation.
3375 Add a couple of new tests.
3376 Patch mostly written by Colin.
3378 2008-08-18 Johan Dahlin <johan@gnome.org>
3381 * giscanner/girparser.py:
3383 * giscanner/transformer.py:
3384 Improve enum parsing for enums without a GType.
3385 Make flags/enum references to other girs work
3386 * giscanner/utils.py:
3388 * tests/scanner/Makefile.am:
3389 * tests/scanner/foo-object.h:
3390 * tests/scanner/utility-expected.gir:
3391 * tests/scanner/utility.h:
3392 Add a new test for external enum references
3394 2008-08-18 Johan Dahlin <johan@gnome.org>
3396 * docs/global-module-registry.txt: Update
3398 * tests/array.gir: Update with new type proposal
3400 * girepository/girepository.c (g_type_tag_to_string):
3401 * girepository/girepository.h:
3402 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3404 * girepository/girnode.h:
3405 Make enum serializing functions public. Clean up some whitespace.
3407 2008-08-17 Johan Dahlin <johan@gnome.org>
3409 * docs/global-module-registry.txt:
3410 Add a document for an on disk module registry format
3412 2008-08-17 Johan Dahlin <johan@gnome.org>
3415 * gir/gio-2.0-good.gir:
3418 2008-08-17 Johan Dahlin <johan@gnome.org>
3421 * gir/glib-2.0-good.gir:
3422 * gir/gobject-2.0-good.gir:
3423 * giscanner/cgobject.py:
3424 * giscanner/glibtransformer.py:
3425 Regenerate GObject & GType.
3426 Avoid warnings when generating gobject-2.0.gir.
3427 Introspect a little more, and skip *_get_type functions.
3429 2008-08-17 Colin Walters <walters@verbum.org>
3431 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3432 Rename to -good, always generate during build.
3433 * gir/Makefile.am: Ensure .gir files dep on
3434 all scanner sources.
3435 * Makefile.am: Switch build order to ensure
3436 the scanner is ready before we do gir/.
3437 * tools/g-ir-scanner: Look for .git too.
3439 2008-08-17 Johan Dahlin <johan@gnome.org>
3441 * girepository/gtypelib.c (validate_enum_blob):
3442 * giscanner/glibtransformer.py:
3443 * giscanner/transformer.py:
3444 Remove resolve_possible_typedefs, it was unused.
3445 Allow multiple enum values of the sample value in an enum,
3446 since it's actually pretty common.
3447 Register enums so they can be resolved too.
3449 2008-08-16 Johan Dahlin <johan@gnome.org>
3451 * giscanner/girparser.py:
3452 Parse enumeration/bitfield.
3454 2008-08-16 Johan Dahlin <johan@gnome.org>
3456 * giscanner/girparser.py:
3459 2008-08-16 Johan Dahlin <johan@gnome.org>
3461 * giscanner/glibtransformer.py:
3462 Resolve type names for alias targets
3463 * giscanner/transformer.py:
3464 Skip FILE* parameters fow now
3466 2008-08-16 Johan Dahlin <johan@gnome.org>
3469 * gir/gobject-2.0.gir:
3472 * tests/scanner/Makefile.am:
3475 2008-08-15 Colin Walters <walters@verbum.org>
3477 * giscanner/glibtransformer.py: Explicitly construct
3478 new list, since we're deleting as we iterate.
3479 Don't delete all structures which end in Class; just
3480 ones which have a paired GObject.
3481 Fix printing of type warning.
3482 * giscanner/transformer.py: Make strip_namespace_object
3483 be the identity function if it doesn't match the
3486 2008-08-15 Colin Walters <walters@verbum.org>
3488 * giscanner/cgobject.py: Define yet more argument
3489 prototypes; fix prototype for g_type_fundamental.
3491 2008-08-14 Johan Dahlin <johan@gnome.org>
3493 * tests/Makefile.am:
3494 * tests/constant.gir:
3495 * tests/gobject.gir:
3497 * tools/generate.c (write_struct_info):
3498 Fix generator for constant/gobject/struct
3500 2008-08-14 Johan Dahlin <johan@gnome.org>
3502 * tests/Makefile.am:
3504 * tools/generate.c (write_enum_info):
3505 Fix generation of enum/bitfields
3507 2008-08-14 Johan Dahlin <johan@gnome.org>
3509 * girepository/girparser.c (start_field), (start_constant),
3510 (start_type), (end_element_handler):
3511 Clear up constant parsing
3516 * tools/generate.c (write_callable_info), (write_function_info),
3517 (write_callback_info), (write_constant_info), (write_signal_info),
3518 (write_vfunc_info), (write_property_info), (write_object_info),
3519 (write_interface_info):
3520 Constants/Signals are handled now.
3522 2008-08-14 Johan Dahlin <johan@gnome.org>
3524 * girepository/girparser.c (start_type):
3525 Don't require c:type.
3526 * tests/Makefile.am:
3529 Update, remove parts we don't support yet
3530 * tests/roundtrips.sh:
3532 * tools/generate.c (write_type_info), (write_field_info),
3533 (write_callable_info), (write_struct_info):
3534 Make it emit proper gir.
3536 2008-08-14 Johan Dahlin <johan@gnome.org>
3538 * giscanner/transformer.py:
3539 New internal function for adding a new node.
3541 2008-08-14 Johan Dahlin <johan@gnome.org>
3544 Define an internal _H_ variable so we skip parsing both
3545 i18n headers, only one is needed.
3547 Add the glib-2.0.gir too.
3548 * giscanner/glibast.py:
3549 Add gconstpointer as an alias for ANY
3550 * giscanner/transformer.py:
3551 Do not lower case enumeration names per se.
3552 Skip functions which has parameters called 'va_list'
3554 2008-08-14 Colin Walters <walters@verbum.org>
3556 * giscanner/transformer.py: Comment data structures.
3557 Also squash pointers in resolve_type_name to correspond
3558 with what we do for params.
3559 * giscanner/glibtransformer.py: Print warnings in more
3560 situations. Rework checks for method/constructor to
3561 look up in our GType database instead of just checking
3562 for *. Avoid generating <record> for GObject which
3563 duplicate the <class>.
3564 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3567 2008-08-14 Johan Dahlin <johan@gnome.org>
3569 * giscanner/girwriter.py:
3570 * giscanner/glibast.py:
3571 * giscanner/glibtransformer.py:
3572 * giscanner/transformer.py:
3574 * tests/Makefile.am:
3575 Add pyflakes.py and run it in make check.
3576 Update the source code to fix the errors reported by
3579 2008-08-14 Johan Dahlin <johan@gnome.org>
3582 * giscanner/girparser.py:
3583 * giscanner/glibast.py:
3584 * giscanner/glibtransformer.py:
3585 Refactor the parser a bit.
3586 Add parent type to interfaces and update callsites.
3588 2008-08-14 Johan Dahlin <johan@gnome.org>
3590 * giscanner/glibtransformer.py:
3591 * giscanner/utils.py:
3592 Refactor a bit, avoid isinstance and add a method
3593 for each type we parse.
3595 2008-08-14 Johan Dahlin <johan@gnome.org>
3598 * giscanner/girparser.py:
3599 * giscanner/glibtransformer.py:
3600 * tests/Makefile.am:
3601 Run pep8.py in make check, fix old errors.
3603 2008-08-13 Colin Walters <walters@verbum.org>
3605 * giscanner/girparser.py: Parse records.
3607 2008-08-13 Colin Walters <walters@verbum.org>
3609 * gir/Makefile.am: Install again.
3610 * gir/gobject-2.0.gir: Add some more bits.
3612 2008-08-13 Colin Walters <walters@verbum.org>
3614 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3615 * giscanner/girparser.py: Handle aliases.
3616 * giscanner/transformer.py: Record aliases. Make resolver
3617 functions public; we now call into these explicitly from
3618 glibtransformer. Handle resolving aliases.
3619 * giscanner/glibtransformer.py: Separate our internal namespace
3620 from included ones. Call up into transformer's resolver functions.
3622 2008-08-13 Johan Dahlin <johan@gnome.org>
3624 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3625 * girepository/girparser.c (start_class):
3626 * giscanner/glibtransformer.py:
3627 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3629 2008-08-13 Johan Dahlin <johan@gnome.org>
3631 * giscanner/cgobject.py:
3632 Register GInitiallyUnowned
3633 * giscanner/girwriter.py:
3634 * giscanner/glibtransformer.py:
3635 Special case GObject/GInitially owned as they are a bit special to use.
3637 2008-08-13 Colin Walters <walters@verbum.org>
3639 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3640 Object is in GObject namespace.
3642 2008-08-13 Colin Walters <walters@verbum.org>
3644 * giscanner/girparser.py: Fix processing of functions
3647 2008-08-13 Colin Walters <walters@verbum.org>
3649 * giscanner/girparser.py: Parse more than just <class.
3650 * giscanner/glibtransformer.py: Put aliases in a separate
3651 data structure since their name is not canonicall.
3652 * giscanner/transformer.py: Handle resolving type names
3655 2008-08-13 Johan Dahlin <johan@gnome.org>
3657 * tools/g-ir-scanner:
3658 Allow multiple libraries
3659 * giscanner/glibtransformer.py:
3660 Rename load_library to add_library, traverse over all libraries
3661 when trying to resolve a function
3663 2008-08-12 Colin Walters <walters@verbum.org>
3665 * giscanner/transformer.py: Record typedefs as <alias> elements.
3666 Also attempt to look up types in external namespaces.
3667 * giscanner/girwriter.py: Write them.
3668 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3669 checks. Resolve interface methods and properties.
3670 * tests/scanner/foo-object.h: Add a method with typedef.
3671 * tests/scanner/Foo-expected.gir: Update.
3672 * girepository/girnode.c: Debug tweaks.
3673 * girepository/girparser.c: Make a first pass through the XML where we
3674 record all the aliases. This lets us resolve them as we go through the
3676 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3677 from gir-repository.
3679 2008-08-12 Colin Walters <walters@verbum.org>
3681 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3682 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3684 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3686 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3688 2008-08-12 Colin Walters <walters@verbum.org>
3690 * giscanner/glibtransformer.py: Also transform object properties.
3692 2008-08-12 Colin Walters <walters@verbum.org>
3694 * giscanner/glibtransformer.py: Also transform callbacks
3695 and structure field types.
3696 * tests/scanner/Fooe-expected.gir: Update to expect correct
3697 names for callbacks and structs.
3699 2008-08-12 Colin Walters <walters@verbum.org>
3701 * girepository/girparser.c: Handle 'any'.
3702 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3703 Add test for void *.
3705 2008-08-12 Colin Walters <walters@verbum.org>
3707 * giscanner/glibtransformer.py: We need to do type
3708 resolution in a second pass after we've seen all the
3709 enums, records, etc.
3711 2008-08-12 Colin Walters <walters@verbum.org>
3713 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3714 Add enum return value.
3715 * giscanner/glibtransformer.py: Transform function return types
3718 2008-08-12 Colin Walters <walters@verbum.org>
3720 * tests/scanner/Makefile.am: Dep .gir files on scanner
3721 sources too. Also remove @ so we see scanner invocations.
3723 2008-08-12 Colin Walters <walters@verbum.org>
3725 * girepository/girparser.c, girepository/gtypelib.c,
3726 girepository/gtypelib.h, girepository/girnode.c:
3727 Remove usage of (GAPI-oriented) TypeTag in favor of
3728 GITypeTag from girepository.h.
3730 2008-08-10 Colin Walters <walters@verbum.org>
3732 * tests/roundtrips.sh: Use the correct tests.
3734 2008-08-10 Colin Walters <walters@verbum.org>
3736 * giscanner/cgobject.py: Declare/wrap a few more functions.
3737 Fix parameter types for g_object_new and g_type_fundamental.
3739 2008-08-10 Colin Walters <walters@verbum.org>
3741 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3742 us to declare types for both return value and parameters. The
3743 ctypes default of 'int' is bad because it hides 32/64 bit
3744 problems. Convert all existing functions to use it.
3746 2008-08-09 Johan Dahlin <johan@gnome.org>
3748 * giscanner/__init__.py:
3750 * giscanner/cgobject.py:
3751 * giscanner/gidlparser.py:
3752 * giscanner/gidlwriter.py:
3753 * giscanner/girparser.py:
3754 * giscanner/girwriter.py:
3755 * giscanner/glibast.py:
3756 * giscanner/glibtransformer.py:
3757 * giscanner/odict.py:
3758 * giscanner/sourcescanner.py:
3759 * giscanner/transformer.py:
3760 * giscanner/utils.py:
3761 * giscanner/xmlwriter.py:
3762 * tools/g-ir-scanner:
3766 2008-08-09 Johan Dahlin <johan@gnome.org>
3769 * relaxng/c-types.xml:
3770 * relaxng/g-types.xml:
3771 * relaxng/relaxng.rng:
3773 Remove outdated relaxng schemas.
3775 2008-08-09 Johan Dahlin <johan@gnome.org>
3778 Rename metadata to typelib in variable names,
3781 2008-08-09 Johan Dahlin <johan@gnome.org>
3785 Remove old C scanner, which got rewritten in python.
3787 2008-08-09 Johan Dahlin <johan@gnome.org>
3789 * girepository/Makefile.am:
3790 * tools/Makefile.am:
3791 * tools/girmodule.c:
3792 * tools/girmodule.h:
3795 * tools/girparser.c:
3796 * tools/girparser.h:
3797 * tools/girwriter.c:
3798 * tools/girwriter.h:
3799 Move shared *.[ch] files to girepository from tools
3801 2008-08-09 Johan Dahlin <johan@gnome.org>
3803 * tests/Makefile.am:
3806 * tests/constant.test:
3808 * tests/errors.test:
3809 * tests/function.test:
3810 * tests/gobject.test:
3811 * tests/interface.test:
3812 * tests/object.test:
3813 * tests/struct.test:
3818 Rename *.test to *.gir
3820 2008-08-09 Johan Dahlin <johan@gnome.org>
3823 * tests/Makefile.am:
3824 * tests/parser/Foo-expected.gir:
3825 * tests/parser/Makefile.am:
3826 * tests/parser/foo-object.h:
3827 * tests/parser/foo.c:
3828 * tests/parser/utility-expected.gir:
3829 * tests/parser/utility.c:
3830 * tests/parser/utility.h:
3831 * tests/scanner/Makefile.am:
3832 Rename tests/parser to test/scanner
3834 2008-08-08 Colin Walters <walters@verbum.org>
3836 * tests/roundtrips.sh: Use local .gir files again.
3838 2008-08-08 Colin Walters <walters@verbum.org>
3840 * tests/invoke/Makefile.am: .gir file depends on libtool
3843 2008-08-08 Colin Walters <walters@verbum.org>
3845 * tools/girnode.c: Pass through parent node so we can
3846 print the node whose child is NULL, if that occurs.
3848 2008-08-08 Johan Dahlin <johan@gnome.org>
3850 * tests/Makefile.am:
3851 Disable roundtrip tests which are not yet working
3852 * tests/invoke/testfns.gir:
3855 2008-08-08 Johan Dahlin <johan@gnome.org>
3857 * giscanner/girwriter.py:
3859 * giscanner/glibast.py:
3860 * giscanner/glibtransformer.py:
3861 Swap order of members, to keep it consistent with
3864 2008-08-08 Johan Dahlin <johan@gnome.org>
3866 * girepository/gtypelib.c (validate_header):
3867 * girepository/gtypelib.h:
3869 * giscanner/girwriter.py:
3870 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3871 (gi_source_symbol_unref):
3874 * tests/constant.test:
3876 * tests/errors.test:
3877 * tests/function.test:
3878 * tests/gobject.test:
3879 * tests/interface.test:
3880 * tests/invoke/Makefile.am:
3881 * tests/invoke/testfns.xml:
3882 * tests/object.test:
3883 * tests/parser/Makefile.am:
3884 * tests/roundtrips.sh:
3885 * tests/struct.test:
3890 * tools/Makefile.am:
3891 * tools/compiler.c (main):
3892 * tools/generate.c (write_callable_info), (write_function_info),
3894 * tools/gidlmodule.c:
3895 * tools/gidlmodule.h:
3898 * tools/gidlparser.c:
3899 * tools/gidlparser.h:
3900 * tools/gidlwriter.c:
3901 * tools/gidlwriter.h:
3902 * tools/scanner.c (create_node_from_gtype),
3903 (create_node_from_ctype), (g_igenerator_process_properties),
3904 (g_igenerator_process_signals), (g_igenerator_create_object),
3905 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3906 (g_igenerator_create_enum), (g_igenerator_create_flags),
3907 (g_igenerator_process_function_symbol),
3908 (g_igenerator_process_unregistered_struct_typedef),
3909 (g_igenerator_process_struct_typedef),
3910 (g_igenerator_process_union_typedef),
3911 (g_igenerator_process_enum_typedef),
3912 (g_igenerator_process_function_typedef),
3913 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3914 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3915 Merge in the gir-compiler branch.
3916 Thanks to Philip and Colin for their help.
3918 2008-07-26 Colin Walters <walters@verbum.org>
3920 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3921 and g-idl-generate to go along with how we're changing this
3922 module to be installed.
3923 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3925 2008-07-24 Colin Walters <walters@verbum.org>
3927 * girepository/girepository.c (g_irepository_register): Add
3928 environment variable G_IREPOSITORY_VERBOSE so we can print
3929 out what we're doing.
3930 * girepository/girepository.c (g_irepository_register_file):
3931 Add GError error message to g_debug call.
3933 2008-07-08 Jürg Billeter <j@bitron.ch>
3935 * giscanner/glibast.py:
3939 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3941 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3944 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3947 * giscanner/girwriter.py:
3948 * giscanner/transformer.py:
3949 * tests/parser/Foo-expected.gir:
3950 * tests/parser/foo-object.h:
3951 * tests/parser/foo.c (foo_object_allow_none):
3952 Add support for gtk-doc annotations for allow-none.
3955 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3958 * giscanner/girwriter.py:
3959 * giscanner/glibast.py:
3960 * giscanner/glibtransformer.py:
3961 * giscanner/transformer.py:
3962 * tests/parser/Foo-expected.gir:
3963 Start using abstract type instead of the raw C types.
3964 Register a bunch of glib types we care about.
3966 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3971 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3973 * girepository/girepository.c:
3974 * girepository/gtypelib.c:
3975 * girepository/ginfo.c:
3976 * girepository/ginvoke.c:
3977 * girepository/girepository.h:
3978 * girepository/gtypelib.h:
3979 * girepository/gmetadata.c:
3980 * girepository/Makefile.am:
3981 * girepository/gmetadata.h:
3983 * tools/gidlmodule.c:
3986 * tools/gidlmodule.h:
3987 * tools/gidlparser.c:
3989 Renamed GMetadata to GTypelib
3991 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3993 * giscanner/xmlwriter.py:
3994 Improve line wrapping when > 79 charaters
3996 2008-06-05 Jürg Billeter <j@bitron.ch>
3999 * giscanner/girwriter.py:
4000 * giscanner/transformer.py:
4001 Use <type> element for field types
4002 * tests/parser/Foo-expected.gir:
4005 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
4007 * giscanner/glibtransformer.py:
4008 Fix a bug which prevented GdkEvent from being generated
4010 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
4012 * giscanner/Makefile.am:
4014 * giscanner/girwriter.py:
4015 * giscanner/glibast.py:
4016 * giscanner/glibtransformer.py:
4017 * giscanner/transformer.py:
4018 * giscanner/utils.py:
4019 * tests/parser/Foo-expected.gir:
4020 Improve enum member parsing and introspection
4022 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4024 * giscanner/scannerparser.y:
4025 * giscanner/sourcescanner.h:
4026 * giscanner/sourcescanner.py:
4027 Add a new source type enum for member.
4028 Use __repr__ for improved debugging
4029 * giscanner/girparser.py:
4031 * giscanner/transformer.py:
4032 Improve parsing of struct members.
4033 * tests/parser/foo-object.h:
4036 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4038 * giscanner/xmlwriter.py:
4039 Improve error reporting when trying to quote None.
4040 * giscanner/girparser.py:
4041 Do not print warnings when including more complete .gir files
4042 * giscanner/girwriter.py:
4043 Do not require a name for parameters, add a todo for singletons
4044 * giscanner/glibtransformer.py:
4045 Refactor the way structs are done, add a couple of hacks to allow
4047 * giscanner/transformer.py:
4048 Add enough hacks so cairo, atk and pango.gir can be parsed properly
4049 * gobject-introspection-1.0.pc.in:
4050 Export girdir, so we can access gobject-2.0.gir from outside
4052 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4054 * tools/g-ir-scanner:
4055 * tests/parser/Makefile.am:
4056 Update sys.path before running the parser so we don't have
4057 to setup PYTHONPATH ourselves.
4061 * girepository/Makefile.am:
4062 * giscanner/transformer.py:
4063 * gobject-introspection-1.0.pc.in:
4064 * gobject-introspection.pc.in:
4065 * tools/Makefile.am:
4067 Rename pkg-config name to gobject-introspection-1.0,
4068 Do not installed anything which is not using the gir format.
4069 Disable compililation the old C scanner, but still keep the source
4070 until all the remaning functionallity has been ported.
4072 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4074 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
4075 a crash when symbol->indent is NULL.
4077 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
4078 a function to convert a CTYPE symbol to a string
4080 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
4083 * giscanner/girwriter.py:
4084 * giscanner/giscannermodule.c
4085 (pygi_source_scanner_append_filename),
4086 (pygi_source_scanner_parse_file):
4087 * giscanner/glibtransformer.py:
4088 * giscanner/sourcescanner.py:
4089 Revert back to using temporary files to send in headers.
4090 Allow Functions to be passed in as callbacks, add a couple
4091 of try/excepts missing features.
4092 We can now scan pango
4094 2008-05-08 Johan Dahlin <johan@gnome.org>
4096 * giscanner/glibtransformer.py:
4097 * giscanner/transformer.py:
4098 Move namespace stripping glibtransformer->transformer
4100 2008-05-08 Johan Dahlin <johan@gnome.org>
4103 * giscanner/girwriter.py:
4104 * giscanner/glibtransformer.py:
4105 * giscanner/transformer.py:
4106 * tools/g-ir-scanner:
4107 Introduce a namespace ast node
4109 2008-05-05 Johan Dahlin <johan@gnome.org>
4111 * giscanner/__init__.py:
4112 * giscanner/sourcescanner.py:
4113 * giscanner/transformer.py:
4114 Move sourcescanner symbols to the sourcescanner module, instead
4115 of in the global __init__ namespace.
4117 2008-05-03 Johan Dahlin <johan@gnome.org>
4119 * giscanner/glibtransformer.py:
4120 * tools/g-ir-scanner:
4121 Handle missing parameters better, allow - and + in .la dlname
4124 2008-05-03 Johan Dahlin <johan@gnome.org>
4126 * giscanner/__init__.py:
4128 * giscanner/girwriter.py:
4129 * giscanner/glibtransformer.py:
4130 * giscanner/transformer.py:
4131 Parse struct fields properly, improve debugging.
4133 2008-04-29 Johan Dahlin <johan@gnome.org>
4136 * giscanner/girwriter.py:
4137 * giscanner/transformer.py:
4138 * tests/parser/Foo-expected.gir:
4140 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
4142 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
4145 * docs/g-ir-scanner.1:
4146 * metadata-annotations-proposal.txt:
4147 * metadata-format.txt:
4148 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
4150 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
4152 * giscanner/girwriter.py:
4153 * giscanner/glibtransformer.py:
4154 * giscanner/transformer.py:
4155 * giscanner/xmlwriter.py:
4156 * tests/parser/Foo-expected.gir:
4157 * tests/parser/foo-object.h:
4158 Write record/structs to gir file too. Add a couple of tests,
4159 fix an off by one error in xmlwriter.py.
4161 2008-04-28 Johan Dahlin <johan@gnome.org>
4163 * giscanner/xmlwriter.py: Calculate the line length properly,
4164 include the provided extra indentation in the calculation, really.
4166 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4169 * giscanner/glibast.py:
4170 * giscanner/glibtransformer.py:
4171 * giscanner/transformer.py:
4172 * tools/g-ir-scanner:
4173 Add a --strip-prefix and sort out confusion between names and symbols
4174 for functions and struct + derivaties.
4175 Refactor bootstrap of g-ir-scanner, so we can set options on
4176 Transformer() before parsing everything.
4178 2008-04-28 Johan Dahlin <johan@gnome.org>
4180 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
4181 when scanning girepository.h
4183 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
4184 a __GI_SCANNER__ when we run.
4186 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4189 * giscanner/girwriter.py:
4190 * giscanner/glibast.py:
4191 * giscanner/glibtransformer.py:
4192 * tests/parser/Foo-expected.gir:
4193 * tests/parser/utility-expected.gir:
4194 Rename most c:identifier to c:type. Add new ones to
4195 class/interface/enum/boxed.
4197 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4200 * giscanner/girwriter.py:
4201 * giscanner/glibtransformer.py:
4202 * tests/parser/Foo-expected.gidl:
4203 * tests/parser/Makefile.am:
4204 Move c:identifier from return-value to subchild type,
4205 as per Jürgs suggestion
4207 2008-04-28 Johan Dahlin <johan@gnome.org>
4209 * giscanner/girwriter.py:
4210 * tests/parser/Foo-expected.gir:
4211 Write property.type as a child node.
4213 2008-04-27 Johan Dahlin <johan@gnome.org>
4218 * gidl/gobject-2.0.gidl:
4220 * gir/gobject-2.0.gir:
4221 * tests/parser/Makefile.am:
4222 Replace the GObject gidl with a GObject gir.
4224 2008-04-27 Johan Dahlin <johan@gnome.org>
4226 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
4229 * giscanner/xmlwriter.py:
4230 * tests/parser/Foo-expected.gir:
4231 Include indentation in line length calculation
4233 2008-04-27 Johan Dahlin <johan@gnome.org>
4235 * giscanner/girparser.py:
4236 Prettify NS parsing using elementtree.
4238 2008-04-27 Johan Dahlin <johan@gnome.org>
4241 * giscanner/Makefile.am:
4242 * giscanner/girparser.py:
4243 * giscanner/glibtransformer.py:
4244 * tests/parser/Foo-expected.gidl:
4245 * tests/parser/Foo-expected.gir:
4246 * tests/parser/Makefile.am:
4247 * tests/parser/utility-expected.gidl:
4248 * tests/parser/utility-expected.gir:
4249 * tools/g-ir-scanner:
4250 Switch over to GIR as the default format. Add a simple GIDL
4252 Update tests and fix simplify makefiles by depending
4253 on GNU make extensions.
4255 2008-04-27 Johan Dahlin <johan@gnome.org>
4257 * giscanner/xmlwriter.py:
4258 Wrap attributes for lines which are wider than 79 characters
4260 * giscanner/scannerlexer.l:
4261 Allow parenthesis in annotations
4264 * giscanner/gidlwriter.py:
4265 * giscanner/girwriter.py:
4266 * giscanner/glibtransformer.py:
4267 * giscanner/transformer.py:
4268 Add initial sequence support, including annotation.
4269 Refactor type handling a bit.
4271 2008-04-27 Johan Dahlin <johan@gnome.org>
4273 * tests/parser/Foo-expected.gidl:
4274 * tests/parser/foo-object.h:
4275 * tests/parser/foo.c (foo_object_class_init),
4276 (foo_object_get_strings), (foo_object_get_objects):
4277 Add two new functions to check sequence return values.
4278 Also fixes a compilation warning.
4280 2008-04-27 Johan Dahlin <johan@gnome.org>
4282 * giscanner/giscannermodule.c (]): Cast the getter, avoids
4283 a compilation warning.
4285 * tools/Makefile.am (g_ir_scanner_SOURCES):
4286 g-ir-scanner has no sources.
4288 2008-04-25 Johan Dahlin <johan@gnome.org>
4290 * giscanner/Makefile.am:
4292 * giscanner/gidlparser.py:
4293 * giscanner/gidlwriter.py:
4294 * giscanner/girwriter.py:
4295 * giscanner/glibast.py:
4296 * giscanner/glibtransformer.py:
4297 * giscanner/transformer.py:
4298 Split out nodes to ast.py and glibast.py
4300 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4302 * giscanner/Makefile.am:
4303 * giscanner/gidlparser.py:
4304 * giscanner/gidlwriter.py:
4305 * giscanner/girwriter.py:
4306 * giscanner/glibtransformer.py:
4307 * giscanner/gobjecttreebuilder.py:
4308 * giscanner/transformer.py:
4309 * giscanner/treebuilder.py:
4310 * tools/g-ir-scanner:
4311 Rename treebuilder to transformer and
4312 gobjectreebuilder to glibtransformer.
4314 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4316 * giscanner/Makefile.am:
4317 * giscanner/__init__.py:
4318 * giscanner/cgobject.py:
4319 * giscanner/gidlparser.py:
4320 * giscanner/gidlwriter.py:
4321 * giscanner/girwriter.py:
4322 * giscanner/gobjecttreebuilder.py:
4323 * giscanner/odict.py:
4324 * giscanner/sourcescanner.py:
4325 * giscanner/treebuilder.py:
4326 * giscanner/xmlwriter.py:
4327 * tools/Makefile.am:
4328 * tools/g-ir-scanner:
4329 Add LGPLv2 license header and install all python files
4331 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4334 * giscanner/gidlwriter.py:
4335 * giscanner/giscannermodule.c (pygi_source_directive_new),
4336 (directive_get_options), (pygi_source_symbol_new),
4337 (symbol_get_base_type), (pygi_source_type_new),
4338 (type_get_base_type), (type_get_child_list),
4339 (pygi_source_scanner_get_symbols),
4340 (pygi_source_scanner_get_directives):
4341 * giscanner/gobjecttreebuilder.py:
4342 * giscanner/sourcescanner.py:
4343 * giscanner/treebuilder.py:
4344 * tests/parser/foo-object.h:
4345 Add support for virtual methods.
4346 Pair struct FooClass with struct Foo.
4347 Clean up the SourceScanner bindings a bit.
4348 Add a testcase for virtual methods.
4350 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4352 * giscanner/cgobject.py:
4353 * giscanner/gidlwriter.py:
4354 * giscanner/gobjecttreebuilder.py:
4355 Add support for signals
4357 * tests/parser/foo.c (foo_object_class_init):
4358 * Foo-expected.gidl:
4359 Add a signal and update the expected output.
4361 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4363 * giscanner/gidlwriter.py:
4364 * giscanner/girwriter.py:
4365 * giscanner/giscannermodule.c (directive_get_name),
4366 (directive_get_value), (directive_get_options),
4367 (symbol_get_directives), (symbol_set_directives),
4368 (pygi_source_scanner_parse_file),
4369 (pygi_source_scanner_lex_filename),
4370 (pygi_source_scanner_get_directives), (init_giscanner):
4371 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4372 * giscanner/sourcescanner.h:
4373 * giscanner/sourcescanner.py:
4374 * giscanner/treebuilder.py:
4375 * tools/g-ir-scanner:
4376 Add support for source/header annotations.
4378 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4380 * giscanner/gidlwriter.py:
4381 * giscanner/girwriter.py:
4382 * giscanner/gobjecttreebuilder.py:
4383 * giscanner/treebuilder.py:
4384 Add support for Callbacks
4386 2008-04-22 Havoc Pennington <hp@pobox.com>
4388 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4389 not in metadata->module, look for it in the global module, in case
4390 some other object or the app itself provides the symbol.
4392 2008-04-22 Havoc Pennington <hp@pobox.com>
4394 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4395 dlopening a library that is already in the main app, by checking
4396 whether one of the lib's symbols is already loaded.
4398 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4400 * tests/parser/Foo-expected.gidl:
4401 * tests/parser/foo-object.h:
4404 2008-04-22 Havoc Pennington <hp@pobox.com>
4406 * girepository/ginfo.c (g_interface_info_find_method):
4407 Use interface_blob_size not object_blob_size to compute offset.
4409 2008-04-22 Havoc Pennington <hp@pobox.com>
4411 * girepository/gmetadata.c (_g_metadata_init): remove
4412 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4413 (Glade and Clutter for example) rely on being loaded globally.
4415 2008-04-22 Havoc Pennington <hp@pobox.com>
4417 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4418 function to get the GType given a RegisteredTypeInfo
4420 2008-04-22 Johan Dahlin <johan@gnome.org>
4422 * COPYING: Add a LGPL license, to prevent automake to
4423 put in a copy of GPL here. Pointed out by Havoc.
4425 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4426 (g_type_info_is_pointer), (g_type_info_get_tag),
4427 (g_type_info_get_param_type), (g_type_info_get_interface),
4428 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4429 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4430 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4431 (g_object_info_get_interface), (g_object_info_get_field),
4432 (g_interface_info_get_prerequisite),
4433 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4434 * girepository/ginvoke.c (get_ffi_type):
4435 * girepository/girepository.h:
4436 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4437 (g_metadata_check_sanity), (validate_header),
4438 (validate_array_type_blob), (validate_iface_type_blob),
4439 (validate_param_type_blob), (validate_error_type_blob),
4440 (validate_type_blob), (validate_constant_blob),
4441 (validate_struct_blob), (validate_enum_blob):
4442 * girepository/gmetadata.h:
4443 * tests/Makefile.am:
4444 * tests/invoke/Makefile.am:
4445 * tests/invoke/invoke.c (main):
4446 * tests/roundtrips.sh:
4447 * tools/Makefile.am:
4448 * tools/compiler.c (format_output), (write_out_metadata), (main):
4449 * tools/generate.c (write_type_name), (write_type_info),
4450 (write_constant_value), (write_enum_info), (load_metadata), (main):
4451 * tools/gidlcompilercontext.c:
4452 * tools/gidlcompilercontext.h:
4453 * tools/gidlcompilerentrynode.c:
4454 * tools/gidlcompilerentrynode.h:
4455 * tools/gidlcompilertypenode.c:
4456 * tools/gidlcompilertypenode.h:
4457 * tools/gidlmodule.c (g_idl_module_build_metadata):
4458 * tools/gidlmodule.h:
4459 * tools/gidlnode.c (init_stats), (dump_stats),
4460 (g_idl_node_get_size), (g_idl_node_get_full_size),
4461 (g_idl_node_cmp), (g_idl_node_can_have_member),
4462 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4463 (parse_int_value), (parse_uint_value), (parse_float_value),
4464 (parse_boolean_value), (find_entry_node), (find_entry),
4465 (serialize_type), (g_idl_node_build_metadata), (write_string):
4467 * tools/gidlparser.c (parse_type_internal):
4468 * tools/quote-file.sh:
4469 Revert revisions 157,149-148,136-129 and 120.
4470 Move back to using g-idl-generate to generate the metadata and
4471 avoids dependency on a c compiler.
4473 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4475 * giscanner/girwriter.py:
4476 * tools/g-ir-scanner:
4477 Add an initial GIR writer and a --format option to g-ir-scanner
4479 2008-04-21 Johan Dahlin <johan@gnome.org>
4481 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4482 gobject-2.0 and raise ImportError if not found.
4484 * giscanner/gidlparser.py:
4485 * giscanner/gidlwriter.py:
4486 * giscanner/gobjecttreebuilder.py:
4487 * tools/g-ir-scanner:
4488 Add a --include argument to include types from other idls.
4489 Add a minimalistic GIDL parser (just objects for now)
4490 Implement resolving of external type references and use it to
4491 resolve parent types, argument types and return types.
4493 2008-04-21 Johan Dahlin <johan@gnome.org>
4495 * giscanner/gidlwriter.py:
4496 * giscanner/gobjecttreebuilder.py:
4497 * giscanner/treebuilder.py:
4498 Add support for properties.
4499 Refactor Class/Interface support a bit, to share more code and
4500 always initialize their method attribute to an empty list.
4502 2008-04-21 Johan Dahlin <johan@gnome.org>
4504 * giscanner/cgobject.py:
4505 Add a workaround for a glib bug interface introspection bug
4506 (object_interface_list_properties, object_class_list_properties):
4507 Cast the return value to GParamSpec.
4509 * tests/parser/Foo-expected.gidl: Update
4510 * tests/parser/foo.c: Add a string property
4512 * giscanner/gobjecttreebuilder.py:
4513 After stripping namespaces, remove the original
4514 item to avoid duplication (GtkButton struct and Button object)
4516 2008-04-21 Johan Dahlin <johan@gnome.org>
4518 * giscanner/gobjecttreebuilder.py:
4519 * giscanner/treebuilder.py:
4520 Strip namespaces before objects, so we'll export
4521 GtkButton as Button in the gtk namespace
4523 2008-04-21 Johan Dahlin <johan@gnome.org>
4525 * giscanner/gidlwriter.py:
4526 * giscanner/gobjecttreebuilder.py:
4527 * giscanner/treebuilder.py:
4528 Add constructors for object/boxed types.
4530 2008-04-21 Johan Dahlin <johan@gnome.org>
4532 * giscanner/gidlwriter.py:
4533 * giscanner/gobjecttreebuilder.py:
4534 Add support for boxed types
4536 2008-04-21 Johan Dahlin <johan@gnome.org>
4538 * giscanner/giscannermodule.c: Mark structures as const,
4539 wrap SourceType.const_string.
4541 * tests/parser/foo-object.h: Add a couple of constants.
4543 * giscanner/gidlwriter.py:
4544 * giscanner/gobjecttreebuilder.py:
4545 * giscanner/treebuilder.py:
4546 Add basic support for interfaces
4548 * tools/g-ir-scanner:
4549 Add -o/--output for writing to a file
4551 2008-04-21 Havoc Pennington <hp@redhat.com>
4553 * TODO: add some C API wishlist items I could think of quickly
4555 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4557 * giscanner/gidlwriter.py:
4558 * giscanner/xmlwriter.py:
4559 Add a simple api for writing tags which can be used
4560 with the new 'with statement' in python 2.5
4562 2008-04-21 Johan Dahlin <johan@gnome.org>
4564 * giscanner/gobjecttreebuilder.py:
4565 Strip namespace and object prefix from method names.
4567 2008-04-21 Johan Dahlin <johan@gnome.org>
4569 * tools/g-ir-scanner (main): Add --pkg option to pass in
4570 pkg-config modules to get cflags from.
4572 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4573 Avoid duplication, reuse function writer for methods.
4575 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4577 * giscanner/gidlwriter.py:
4578 * giscanner/gobjecttreebuilder.py:
4579 * giscanner/treebuilder.py:
4580 * tools/g-ir-scanner:
4581 Resolve libtool .la files.
4582 Strip name spaces for methods.
4583 Add function symbols
4585 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4587 * giscanner/cgobject.py:
4588 * giscanner/gidlwriter.py:
4589 * giscanner/gobjecttreebuilder.py:
4590 * giscanner/treebuilder.py:
4591 Add support for classes and methods
4593 2008-04-20 Johan Dahlin <johan@gnome.org>
4595 * giscanner/gidlwriter.py:
4596 * giscanner/gobjecttreebuilder.py:
4597 * giscanner/odict.py:
4598 Avoid conflicts, keep the output ordered similar to
4599 the order of the input.
4600 Add a simple ordered dictionary implemenation
4602 2008-04-19 Johan Dahlin <johan@gnome.org>
4604 * giscanner/cgobject.py:
4605 * giscanner/gidlwriter.py:
4606 * giscanner/gobjecttreebuilder.py:
4607 * tools/g-ir-scanner:
4608 Start introspecting get-type functions.
4609 Implement support for GLib/GFlags GTypes.
4610 Add a ctype based GObject binding.
4612 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4614 * giscanner/gidlwriter.py:
4615 * giscanner/xmlwriter.py:
4616 * tools/g-ir-scanner:
4617 Add a simplistic gidl writer, which can't do too much.
4619 2008-04-18 Johan Dahlin <johan@gnome.org>
4621 * giscanner/sourcescanner.py:
4622 * giscanner/treebuilder.py:
4623 * tools/g-ir-scanner:
4624 split tree building and source scanning interface to separate files.
4626 2008-04-18 Johan Dahlin <johan@gnome.org>
4628 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4630 - Add support for struct/parameter/return, start parsing of ctypes
4632 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4635 2008-03-31 Johan Dahlin <johan@gnome.org>
4637 * tools/g-ir-scanner:
4638 Start to build abstract syntax node of scanned sources.
4639 Add support for cpp options.
4641 2008-03-27 Johan Dahlin <johan@gnome.org>
4643 * giscanner/giscannermodule.c:
4644 * giscanner/scannerlexer.l:
4645 * giscanner/sourcescanner.c:
4646 * tools/g-ir-scanner:
4648 Add simple pre-processor using subprocess and a PIPE.
4649 Change the parse_file apis to accept a file descriptor.
4651 2008-03-25 Johan Dahlin <johan@gnome.org>
4653 * giscanner/__init__.py:
4654 * tools/g-ir-scanner:
4655 Fix a typo and add an example python test program.
4657 2008-03-25 Johan Dahlin <johan@gnome.org>
4659 * giscanner/__init__.py:
4660 * giscanner/giscannermodule.c:
4661 * giscanner/sourcescanner.c:
4662 * giscanner/sourcescanner.h:
4663 Add constants and wrap a few more SymbolType fields
4665 2008-03-25 Johan Dahlin <johan@gnome.org>
4669 * giscanner/__init__.py:
4670 * giscanner/giscannermodule.c:
4671 * giscanner/Makefile.am:
4673 Add initial python bindings for the scanner and
4674 depend on python 2.5.
4676 2008-03-25 Johan Dahlin <johan@gnome.org>
4680 * giscanner/Makefile.am:
4681 * giscanner/sourcescanner.c:
4682 * giscanner/sourcescanner.h:
4683 * tools/Makefile.am:
4684 * tools/grealpath.h:
4685 * tools/sourcescanner.c:
4686 * tools/sourcescanner.h:
4688 Move the scanner to a separate library.
4690 2008-03-23 Johan Dahlin <johan@gnome.org>
4692 * tools/Makefile.am:
4695 * tools/scannerlexer.l:
4696 * tools/scannerparser.y:
4697 * tools/sourcescanner.c:
4698 * tools/sourcescanner.h:
4699 Split out the source scanner from the generator.
4700 Rename the symbols used in the scanner to use the gi_ prefix.
4701 This should make it possible to use the raw C parser from
4704 2008-03-23 Johan Dahlin <johan@gnome.org>
4706 * tests/parser/Makefile.am (utility.gidl):
4707 * tests/parser/utility-expected.gidl:
4708 Pass in the gobject.gidl since we're defining a GObject.
4710 2008-03-12 Johan Dahlin <johan@gnome.org>
4712 * relaxng/relaxng.rng:
4713 Add a releaxng in relaxng we can use to validate the relaxngs
4716 2008-03-12 Jürg Billeter <j@bitron.ch>
4718 * tools/scanner.c: (g_igenerator_new):
4719 * tools/scannerparser.y:
4720 Fix compiler warnings.
4722 2008-03-12 Jürg Billeter <j@bitron.ch>
4726 * tools/scannerparser.y:
4727 Start fixing memory management in g-idl-scanner.
4729 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4731 * tools/gidlcompilercontext.c: (write_compiled):
4732 Fix critical warning when no shlib passed to g-idl-compiler.
4734 2008-03-12 Johan Dahlin <johan@gnome.org>
4736 * tests/parser/utility-expected.gidl:
4737 * tests/parser/utility.h:
4738 Add a get_type-function, so the scanner actually
4739 parses it as an object.
4741 2008-03-12 Johan Dahlin <johan@gnome.org>
4743 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4746 * tests/parser/Foo-expected.gidl:
4747 * tests/parser/Makefile.am:
4748 * tests/parser/foo-object.h:
4749 * tests/parser/foo.c:
4750 * tests/parser/utility-expected.gidl:
4751 * tests/parser/utility.c:
4752 * tests/parser/utility.h:
4754 Add a new gidl test. 'utility.gidl', which is used to be able
4755 to test external type references. Add a reference to UtilityObject*
4758 2008-03-11 Johan Dahlin <johan@gnome.org>
4762 Remove most global variables
4764 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4766 * tools/scannerlexer.l:
4768 * tests/parser/Foo-expected.gidl:
4769 * tests/parser/foo.c:
4770 * tests/parser/Makefile.am:
4771 * tests/parser/foo-object.h:
4773 Added a few extra tests. Which resulted in finding a few
4774 bugs. Which resulted in me fixing those bugs
4776 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4778 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4779 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4780 Add some comments for strings into generated output for
4783 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4785 * tools/gidlcompilercontext.c: (write_compiled):
4786 Write out the shlibs variable before writing out the strings
4787 length. Fixes compiler warning when using '-l' flag with
4790 2008-03-11 Johan Dahlin <johan@gnome.org>
4792 * tests/parser/Foo-expected.gidl:
4793 * tests/parser/foo-object.h:
4796 * tools/scannerlexer.l:
4797 Add support for parsing return arguments. Add support for
4798 caller-owns return types.
4799 Patch by Philip Van Hoof.
4801 * tools/scannerparser.y:
4802 Remove parsing of the @deprecated syntax used in headers.
4803 We will support gtk-doc deprecation in the future instead.
4805 2008-03-11 Johan Dahlin <johan@gnome.org>
4807 * tools/compiler.c (main): Coding style fixes
4809 2008-03-10 Johan Dahlin <johan@gnome.org>
4812 Add GCOV_LIBS to GILIBS
4814 2008-03-10 Johan Dahlin <johan@gnome.org>
4816 * tests/parser/Foo-expected.gidl:
4817 * tests/parser/foo.c:
4818 Rename null-ok to direction=out
4820 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4822 reviewed and extensively tested by Johan
4824 * tests/parser/Foo-expected.gidl:
4825 * tests/parser/foo-object.h:
4826 * tests/parser/foo.c:
4829 * tools/gidlwriter.c:
4832 * tools/scannerlexer.l:
4833 * tools/scannerparser.y:
4835 Add support for scanning for gtk-doc comments inside
4836 C source files. Add tests
4838 2008-03-10 Johan Dahlin <johan@gnome.org>
4840 * tests/parser/Makefile.am:
4841 * tests/parser/foo.c:
4844 * tools/scannerparser.y:
4845 Add an api to lex filenames.
4846 Lex all source .c files passed in on the command line.
4847 Scan sources in a test and a couple of private structures
4848 which should not be included in the generated gidl
4850 2008-03-10 Johan Dahlin <johan@gnome.org>
4852 * tests/invoke/Makefile.am: Make the generated metadata
4853 depend on the g-idl-compiler
4855 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4857 * tools/gidlmodule.c
4858 * tools/gidlmodule.h
4861 Remove the old g-idl-compiler code.
4864 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4866 * tools/quote-file.sh
4869 Move to using the 'C' struct compiler code.
4871 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4873 * girepository/ginfo.c
4875 Change the way that external references with no namespace
4876 are dealt with. External references with no namespace
4877 are placed into the XML as-if they are a local reference.
4878 This is temporary, but helps with roundtrip tests.
4880 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4882 * girepository/ginfo.c
4883 Add the ability to get the value of a constant of
4884 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4885 is provided as a string.
4887 This would deal properly with:
4888 typedef char* random;
4889 const random = "A string";
4891 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4893 * girepository/ginfo.c
4894 * girepository/girepository.h
4896 Add a function to check if an enum is registered or not.
4897 Previously anything testing this relied on the g-type
4898 string offset having a value of 0.
4900 * girepository/gmetadata.c
4901 * girepository/gmetadata.h
4903 Remove unneccesary or erroneous checks. There were two
4904 metadata validation checks which made sure that the blob
4905 sizes were the same as some magic numbers compiled into the code.
4906 This is wrong as it breaks any forwards compatibility that may
4909 Checks were also present that made sure that unregistered type
4910 blobs had a value of 0 in the g-type offset field. This is
4911 unneccessary. If a type blob is unregistered then any value
4912 in its g-type field is simply invalid.
4914 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4916 * girepository/ginfo.c
4917 * girepository/gmetadata.c
4918 * girepository/gmetadata.h
4920 Change the metadata format to have a standard header
4921 for all the type blobs. Merge the SimpleTypeBlob
4922 and InterfaceTypeBlob into a union. A union of these
4923 two blobs existed previously but was not explicit
4924 in the metadata format.
4926 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4928 * tools/gidlcompilercontext.c
4929 * tools/gidlcompilercontext.h
4930 * tools/gidlcompilerentrynode.c
4931 * tools/gidlcompilerentrynode.h
4932 * tools/gidlcompilertypenode.c
4933 * tools/gidlcompilertypenode.h
4935 Add code to compile a tree of GIdlNodes to
4936 a 'C' struct representing the metadata.
4937 This is to aid cross-compiling. Previously
4938 the g-idl-compiler created a binary blob with
4939 data written in the byte order and alignment
4940 of the tool rather than the intended target.
4942 Cleaned up and improved by Johan and Robert :-)
4944 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4946 * girepository/ginvoke.c
4947 * girepository/girepository.h
4948 * girepository/gmetadata.c
4949 * girepository/gmetadata.h
4951 * tools/gidlparser.c
4952 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4953 to avoid confusion with the interface blob.
4956 * tools/gidlparser.c
4957 Remove magic numbers and replace with type-tag
4958 enumeration symbols.
4960 * girepository/gmetadata.c
4961 Add validate declaration.
4963 2008-03-10 Jürg Billeter <j@bitron.ch>
4965 * tools/gidlparser.c: (parse_type_internal):
4966 * tools/scannerlexer.l:
4967 * tools/scannerparser.y:
4968 Support C99 _Bool type in scanner.
4970 2008-03-10 Jürg Billeter <j@bitron.ch>
4972 * tests/parser/Foo-expected.gidl:
4973 * tests/parser/foo-object.h:
4974 * tests/parser/foo.c: (foo_enum_method):
4975 * tools/scanner.c: (g_igenerator_process_function_symbol):
4976 Don't skip functions that are defined in the namespace of a type
4977 that doesn't support methods, as for example enums.
4979 2008-03-10 Johan Dahlin <johan@gnome.org>
4981 * gidl.dtd: Remove, we're using relaxng for now
4983 * tests/parser/Foo-expected.gidl:
4984 * tests/parser/foo-object.h:
4985 * tests/parser/foo.c:
4986 Rename the enum/flags get_type functions to include the whole type.
4988 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4990 * tools/gidlwriter.c (enum_generate): added "type-name",
4991 "get-type" and "deprecated" missing arguments.
4992 * tests/parser/Foo-expected.gidl:
4993 * tests/parser/foo-object.h: test enum type, and no type.
4995 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4998 Consistent checks, add missing 'test'
5000 2008-03-05 Havoc Pennington <hp@redhat.com>
5002 * configure.ac: Take advantage of a libffi.pc if one exists, as it
5003 does on Fedora 8. Make libffi a hard requirement, since it was in
5004 practice anyway (was not really conditional in the code or
5005 makefile, only in configure).
5007 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
5009 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
5010 reviewed by: Johan Dahlin <johan@gnome.org>
5012 * tests/Makefile.am:
5013 * tests/roundtrips.sh:
5014 Modify the roundtrips test so that they do not use the
5015 --raw option of the gidl compiler but instead compile a
5016 shared library to use with g_module.
5018 * tests/invoke/Makefile.am:
5019 * tests/invoke/invoke.c:
5020 Modify the invoke tests to build a shared library rather
5021 than use the --raw option.
5023 * tests/invoke/invoke-namespace-find.sh: Removed:
5024 Noone knows why this was here, so removed.
5026 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
5028 * tools/scanner.c: (g_igenerator_process_function_symbol):
5029 Move g_idl_node_can_have_member test later, as it broke spotting
5030 get_type's for nodes that can't have members.
5032 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5035 * tools/gidlnode.c: (g_idl_node_can_have_member):
5036 Add g_idl_node_can_have_member.
5038 * tools/scanner.c: (g_igenerator_process_function_symbol):
5039 Use g_idl_node_can_have_member to test if we should add a function
5040 as a member of the type node.
5042 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5044 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
5046 * tests/parser/Makefile.am:
5047 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
5049 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5051 * tools/scanner.c: (main):
5052 Ignore -pthread when passed to g-idl-scanner.
5054 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5056 * tools/grealpath.h: Added:
5057 * tools/scanner.c: (main):
5058 * tools/scannerlexer.l:
5059 * tools/Makefile.am:
5060 Always use absolute paths with symbolic links resolved when
5061 comparing filenames.
5063 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5065 * gobject-introspection.pc.in:
5066 Provide variables for g-idl-parser, scanner and compiler in the
5069 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
5072 * girepository/Makefile.am:
5073 * tools/Makefile.am:
5074 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
5076 2008-02-10 Johan Dahlin <johan@gnome.org>
5078 * tests/parser/Foo-expected.gidl:
5079 * tests/parser/foo-object.h:
5080 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
5081 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
5084 2008-02-10 Johan Dahlin <johan@gnome.org>
5086 * tests/parser/Foo-expected.gidl:
5087 * tests/parser/foo-object.h:
5088 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
5089 Add enum and flags test.
5091 2008-02-10 Johan Dahlin <johan@gnome.org>
5095 * girepository/Makefile.am:
5096 Make 'make distcheck' work again.
5098 2008-02-10 Johan Dahlin <johan@gnome.org>
5100 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
5103 * tests/parser/Makefile.am: Only create Foo.gidl when running make
5104 check, eg exclude it from BUILT_SOURCES.
5106 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
5111 * girepository/Makefile.am:
5112 * m4/Makefile.am: Added:
5113 * m4/as-compiler-flag.m4: Added:
5114 * m4/gcov.m4: Added:
5115 * tools/Makefile.am:
5116 Add ability to generate a coverage report.
5117 Adds configure option --enable-gcov and make rule 'check-coverage'.
5119 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
5123 * gidl/Makefile.am: Added:
5124 * girepository/Makefile.am: Added:
5125 * src/Makefile.am: Renamed to tools/Makefile.am:
5126 * src/compiler.c: Renamed to tools/compiler.c:
5127 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
5128 * src/generate.c: Renamed to tools/generate.c:
5129 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
5130 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
5131 * src/gidlnode.c: Renamed to tools/gidlnode.c:
5132 * src/gidlnode.h: Renamed to tools/gidlnode.h:
5133 * src/gidlparser.c: Renamed to tools/gidlparser.c:
5134 * src/gidlparser.h: Renamed to tools/gidlparser.h:
5135 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
5136 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
5137 * src/ginfo.c: Renamed to girepository/ginfo.c:
5138 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
5139 * src/girepository.c: Renamed to girepository/girepository.c:
5140 * src/girepository.h: Renamed to girepository/girepository.h:
5141 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
5142 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
5143 * src/scanner.c: Renamed to tools/scanner.c:
5144 * src/scanner.h: Renamed to tools/scanner.h:
5145 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
5146 * src/scannerparser.y: Renamed to tools/scannerparser.y:
5147 * tests/invoke/Makefile.am:
5148 Split src/ into girepository/ and tools/
5152 * girepository/Makefile.am:
5153 * tests/Makefile.am:
5154 * tests/invoke/Makefile.am:
5155 * tests/parser/Makefile.am:
5156 * tests/roundtrips.sh:
5157 * tools/Makefile.am:
5158 Make distcheck work.
5160 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
5162 * tests/invoke/invoke.c: (main):
5163 * tests/invoke/testfns.c: (test6), (test7):
5164 * tests/invoke/testfns.xml:
5165 Add tests for invokation with a GList argument.
5166 Also tests caller-owns return values.
5168 2008-02-04 Rob Taylor <robtaylor@floopily.org>
5171 Add some documentation for GICallableInfo
5173 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
5176 Correct syntax errors in the DTD file.
5178 * relaxng/c-types.xml:
5179 * relaxng/g-types.xml:
5181 Add a RelaxNG specification for the GObject Introspection XML data.
5182 The Specification has validated all of the test files.
5184 2008-01-25 Rob Taylor <robtaylor@floopily.org>
5186 * tests/roundtrips.sh:
5187 * tests/struct.test:
5188 Add roundtrip tests for structs.
5190 2008-01-11 Johan Dahlin <johan@gnome.org>
5192 * src/scanner.c (g_igenerator_process_function_symbol):
5193 Refactor out g_idle_node_add_member.
5194 (create_node_from_gtype, create_node_from_ctype):
5195 Use case instead of if...else
5196 (get_type_from_type_id):
5197 Rename to create_node_from_gtype
5198 (get_type_from_ctype):
5199 Rename to create_node_from_ctype
5201 Rename ginode -> node, gitype -> type, gifunc -> func.
5203 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
5204 Two new functions, refactor out of scanner.c
5206 * src/scanner.c: (g_igenerator_process_function_symbol):
5207 * src/scannerlexer.l:
5208 Do not save the content of the deprecated variable, only
5211 2008-01-11 Johan Dahlin <johan@gnome.org>
5213 * tests/parser/foo-object.h: Add a couple of comment parser tests.
5215 2008-01-11 Jürg Billeter <j@bitron.ch>
5217 * src/scannerlexer.l:
5218 Fix GTK-Doc parsing.
5220 2008-01-11 Jürg Billeter <j@bitron.ch>
5222 * src/scannerlexer.l:
5223 Fix GTK-Doc parsing.
5225 2008-01-11 Jürg Billeter <j@bitron.ch>
5227 * src/scanner.c: (lookup_symbol):
5228 Return unresolved name if we find unknown symbol.
5230 2008-01-11 Jürg Billeter <j@bitron.ch>
5232 * src/scanner.c: (g_igenerator_generate):
5233 Initialize GObject to fix scanning interface properties.
5235 * tests/parser/Foo-expected.gidl:
5236 * tests/parser/foo-object.h:
5237 * tests/parser/foo.c: (foo_interface_get_type):
5238 Test interfaces with GObject prerequisite.
5240 * tests/parser/Makefile.am:
5241 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
5243 2007-12-27 Johan Dahlin <johan@gnome.org>
5245 * src/scannerlexer.l:
5246 Parse gtk-doc comments.
5248 * src/gidlwriter.c: (function_generate):
5249 Reorganize, avoid duplication and add support for
5250 writing deprecated functions.
5252 * src/scannerparser.y:
5254 Add new structure CDirective and functions to create/free them.
5256 * src/scanner.c: (g_igenerator_process_function_symbol),
5257 (g_igenerator_process_unregistered_struct_typedef),
5258 (g_igenerator_process_struct_typedef),
5259 (g_igenerator_process_union_typedef),
5260 (g_igenerator_process_enum_typedef),
5261 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
5262 (g_igenerator_start_preprocessor):
5263 Parse @deprecated directive for functions.
5264 Remove some more C99isms.
5265 Send in -C to cpp to avoid stripping comments.
5267 * tests/parser/foo-object.h:
5268 * tests/parser/Foo-expected.gidl:
5269 Add deprecated directive
5271 2007-12-27 Johan Dahlin <johan@gnome.org>
5273 * src/scannerlexer.l (intsuffix): Add emacs mode line and
5274 escape ' and " so it looks more like C.
5277 Unlink temporary file used.
5279 2007-12-27 Johan Dahlin <johan@gnome.org>
5281 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
5282 (g_igenerator_start_preprocessor), (main):
5284 * src/scannerparser.y:
5285 Plug a couple of simple memory leaks.
5287 2007-12-27 Johan Dahlin <johan@gnome.org>
5289 * src/scanner.c: (g_igenerator_parse_macros),
5290 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
5293 * src/scannerparser.y:
5294 * tests/parser/Makefile.am:
5296 Improve error reporting, return when the preprocessor fails.
5297 Add a verbose parameter, to aid debugging.
5298 Revert to using a temporary file to communicate between the
5299 preprocessor and the parser, because we need to wait for
5300 the exit code from the pre-processor before starting to parse.
5302 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
5304 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
5305 cparser.y to scannerparser.y
5307 2007-12-11 Johan Dahlin <johan@gnome.org>
5311 * src/scanner.c: (g_igenerator_new):
5313 Get rid of the global the_generator variable.
5315 2007-12-10 Johan Dahlin <johan@gnome.org>
5317 * src/scanner.c (main): Add an output option,
5318 add checks for required parameters
5321 set BUILD_SOURCES and CLEANFILES properly
5323 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5324 (g_writer_write_indent), (g_writer_write_unindent),
5325 (field_generate), (value_generate), (constant_generate),
5326 (property_generate), (function_generate), (vfunc_generate),
5327 (signal_generate), (interface_generate), (struct_generate),
5328 (union_generate), (boxed_generate), (enum_generate),
5329 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5331 * src/scanner.c: (g_igenerator_generate):
5333 * src/scannerwriter.c:
5335 Refactor scannerwriter to only be tied to a GIdlModule and move
5336 it (again!) to gidlwriter.c. Change the writer function to take
5339 2007-12-10 Johan Dahlin <johan@gnome.org>
5342 * src/scanner.c: (g_igenerator_generate):
5344 * src/scannerwriter.c: (g_igenerator_write_inline),
5345 (g_igenerator_write), (g_igenerator_write_indent),
5346 (g_igenerator_write_unindent), (field_generate), (value_generate),
5347 (constant_generate), (property_generate), (function_generate),
5348 (vfunc_generate), (signal_generate), (interface_generate),
5349 (struct_generate), (union_generate), (boxed_generate),
5350 (enum_generate), (node_generate), (module_generate),
5351 (g_scanner_write_file):
5353 Move the scanner gidl writing to a separate source file.
5355 2007-12-10 Johan Dahlin <johan@gnome.org>
5360 Move over all CType construction functions.
5362 * tests/parser/Makefile.am:
5363 Be verbose when printing parsing tests results.
5365 2007-12-10 Johan Dahlin <johan@gnome.org>
5367 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5368 preprocessor handling to here. Start cpp insteado of cc -E,
5369 always include -U__GNUC__, since it's specific to the preprocessor
5372 * tests/parser/Makefile.am (check-local): Silent diff and skip
5373 -U__GNUC__ which is always defined now
5375 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5377 reviewed by: <delete if not using a buddy>
5379 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5380 * tests/parser/Makefile.am:
5382 2007-12-09 Johan Dahlin <johan@gnome.org>
5385 Use GOption for command line options.
5386 (g_igenerator_new, main): Simplify constructor and they way
5387 parameters are passed into it.
5393 * src/gen-introspect.c:
5394 * src/gen-introspect.h:
5396 Rename gen-introspect.[ch] to scanner.[ch]
5398 2007-12-09 Johan Dahlin <johan@gnome.org>
5402 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5403 don't make the repository library and the other utilites link against
5406 * src/gen-introspect.c: (g_igenerator_create_object),
5407 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5408 (g_igenerator_create_enum), (g_igenerator_create_flags),
5409 (g_igenerator_process_module_symbol),
5410 (g_igenerator_process_module), (g_igenerator_generate), (main):
5411 * src/gen-introspect.h:
5412 Refactor g_igenerator_process_types into smaller pieces.
5414 * tests/parser/Makefile.am:
5415 Depend on the gen-introspect binary
5417 2007-12-09 Johan Dahlin <johan@gnome.org>
5419 * src/gen-introspect.c (g_igenerator_process_types):
5420 Break into smaller pieces, one for each generated node type.
5422 2007-12-08 Johan Dahlin <johan@gnome.org>
5424 * src/gen-introspect.c: (g_igenerator_process_types),
5425 (g_igenerator_add_module):
5426 * tests/parser/Foo-expected.gidl:
5427 * tests/parser/foo-object.h:
5428 * tests/parser/foo.c: (foo_subobject_class_init),
5429 (foo_subobject_init):
5431 Add a subobject test and make sure to register defined classes
5432 in the lookup symbol hash table.
5434 2007-12-08 Johan Dahlin <johan@gnome.org>
5438 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5439 (g_igenerator_process_types), (g_igenerator_add_module),
5440 (g_igenerator_add_include_idl), (main):
5441 * src/gen-introspect.h:
5442 * tests/parser/Makefile.am:
5443 * tests/parser/Foo-expected.gidl:
5445 Change the gen-introspect to generate namespaced module names,
5446 such as GLib.Object instead of GObject.
5447 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5448 add a --include-idl parameter to gen-introspect,
5449 and update the parser test.
5451 2007-12-08 Johan Dahlin <johan@gnome.org>
5453 * src/gen-introspect.c:
5454 Move main to the end of the file and attempt to make it valid
5457 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5458 we're not quite ready to generate metadata yet.
5463 Add a simple gen-introspect parser test
5465 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5467 reviewed by: Johan Dahlin <johan@gnome.org>
5470 * gobject-introspection.pc.in:
5472 * src/compiler.c: (format_output), (write_out_metadata), (main):
5473 * src/gen-introspect.c: (main):
5474 * src/gen-introspect.h:
5475 * src/generate.c: (write_callable_info), (write_repository),
5476 (load_metadata), (main):
5477 * src/gidlmodule.c: (g_idl_module_new),
5478 (g_idl_module_build_metadata):
5480 * src/gidlparser.c: (start_element_handler):
5481 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5482 (g_base_info_get_name), (g_base_info_get_namespace),
5483 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5484 (g_base_info_get_metadata), (g_function_info_get_symbol),
5485 (g_function_info_get_flags), (g_function_info_get_property),
5486 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5487 (g_callable_info_may_return_null),
5488 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5489 (g_callable_info_get_arg), (g_arg_info_get_direction),
5490 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5491 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5492 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5493 (g_type_info_get_tag), (g_type_info_get_param_type),
5494 (g_type_info_get_interface), (g_type_info_get_array_length),
5495 (g_type_info_is_zero_terminated),
5496 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5497 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5498 (g_value_info_get_value), (g_field_info_get_flags),
5499 (g_field_info_get_size), (g_field_info_get_offset),
5500 (g_registered_type_info_get_type_name),
5501 (g_registered_type_info_get_type_init),
5502 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5503 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5504 (find_method), (g_struct_info_find_method),
5505 (g_enum_info_get_n_values), (g_enum_info_get_value),
5506 (g_object_info_get_parent), (g_object_info_get_type_name),
5507 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5508 (g_object_info_get_interface), (g_object_info_get_n_fields),
5509 (g_object_info_get_field), (g_object_info_get_n_properties),
5510 (g_object_info_get_property), (g_object_info_get_n_methods),
5511 (g_object_info_get_method), (g_object_info_find_method),
5512 (g_object_info_get_n_signals), (g_object_info_get_signal),
5513 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5514 (g_object_info_get_n_constants), (g_object_info_get_constant),
5515 (g_interface_info_get_n_prerequisites),
5516 (g_interface_info_get_prerequisite),
5517 (g_interface_info_get_n_properties),
5518 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5519 (g_interface_info_get_method), (g_interface_info_find_method),
5520 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5521 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5522 (g_interface_info_get_n_constants),
5523 (g_interface_info_get_constant), (g_property_info_get_flags),
5524 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5525 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5526 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5527 (g_constant_info_get_value), (g_union_info_get_n_fields),
5528 (g_union_info_get_field), (g_union_info_get_n_methods),
5529 (g_union_info_get_method), (g_union_info_is_discriminated),
5530 (g_union_info_get_discriminator_offset),
5531 (g_union_info_get_discriminator):
5532 * src/ginvoke.c: (g_function_info_invoke):
5533 * src/girepository.c: (g_irepository_register),
5534 (g_irepository_unregister), (g_irepository_get_default),
5535 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5536 (g_irepository_get_info), (g_irepository_find_by_name),
5537 (g_irepository_get_shared_library),
5538 (g_irepository_build_search_path), (g_irepository_register_file),
5539 (g_irepository_error_quark):
5540 * src/girepository.h:
5541 * src/gmetadata.c: (g_metadata_get_dir_entry),
5542 (g_metadata_check_sanity), (validate_header),
5543 (validate_array_type_blob), (validate_iface_type_blob),
5544 (validate_param_type_blob), (validate_error_type_blob),
5545 (validate_type_blob), (validate_arg_blob),
5546 (validate_signature_blob), (validate_function_blob),
5547 (validate_callback_blob), (validate_constant_blob),
5548 (validate_value_blob), (validate_field_blob),
5549 (validate_property_blob), (validate_signal_blob),
5550 (validate_vfunc_blob), (validate_struct_blob),
5551 (validate_enum_blob), (validate_object_blob),
5552 (validate_interface_blob), (validate_errordomain_blob),
5553 (validate_union_blob), (validate_blob), (validate_directory),
5554 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5555 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5556 (g_metadata_new_from_mapped_file), (g_metadata_free),
5557 (g_metadata_set_module), (g_metadata_get_namespace):
5559 * tests/Makefile.am:
5560 * tests/invoke/Makefile.am:
5561 * tests/invoke/invoke-namespace-find.sh:
5562 * tests/invoke/invoke.c: (main):
5564 Add a namespace/shared library mapping. fixes #313268.
5566 2007-12-03 Johan Dahlin <johan@gnome.org>
5568 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5571 2007-11-30 Jürg Billeter <j@bitron.ch>
5577 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5578 (g_igenerator_write_inline), (g_igenerator_write),
5579 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5580 (field_generate), (value_generate), (constant_generate),
5581 (property_generate), (function_generate), (vfunc_generate),
5582 (signal_generate), (interface_generate), (struct_generate),
5583 (union_generate), (boxed_generate), (enum_generate),
5584 (node_generate), (module_generate), (get_type_from_type_id),
5585 (str_replace), (g_igenerator_process_properties),
5586 (g_igenerator_process_signals), (g_igenerator_process_types),
5587 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5588 (g_igenerator_process_unregistered_struct_typedef),
5589 (g_igenerator_process_struct_typedef),
5590 (g_igenerator_process_union_typedef),
5591 (g_igenerator_process_enum_typedef),
5592 (g_igenerator_process_function_typedef),
5593 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5594 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5595 (g_igenerator_generate), (main), (csymbol_new),
5596 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5597 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5598 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5599 (eat_hspace), (eat_line), (read_identifier),
5600 (g_igenerator_parse_macros):
5601 * src/gen-introspect.h:
5603 Import gen-introspect to generate introspection information by
5606 2007-11-30 Jürg Billeter <j@bitron.ch>
5608 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5610 2007-11-30 Jürg Billeter <j@bitron.ch>
5612 * src/gidlparser.c: (end_element_handler): Don't leave requires
5615 2007-11-29 Johan Dahlin <johan@gnome.org>
5617 * src/gidlparser.c (parse_type_internal): Add char,
5618 gchar and guchar to the builtin types.
5620 2007-11-26 Johan Dahlin <johan@gnome.org>
5622 * src/ginfo.c: (g_object_info_get_type_name),
5623 (g_object_info_get_type_init):
5624 * src/girepository.c: (g_irepository_is_registered):
5625 * src/girepository.h:
5627 Add g_object_info_get_type_name, g_object_info_get_type_init and
5628 g_irepository_is_registered.
5630 2006-08-14 Jürg Billeter <j@bitron.ch>
5632 * src/gidlparser.c: (end_element_handler): Don't leave
5633 namespace and implements states too early.
5636 2007-11-26 Johan Dahlin <johan@gnome.org>
5638 * src/gmetadata.c (validate_struct_blob):
5639 pass blob_type to validate_function_blob instead of
5640 hard-coding BLOB_TYPE_STRUCT.
5642 Patch by Torsten Schoenfeld, fixes #314190
5644 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5646 * src/compiler.c, src/generate.c, src/gidlnode.c,
5647 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5648 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5649 warnings about return values, signedness mismatches, unused
5650 variables, and unhandles enum values in switch statements.
5652 * tests/invoke/Makefile.am: Don't install the invoke test program.
5653 Add -I ../../src to the cflags used for the test functions files.
5655 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5657 * src/girepository.h: Export g_invoke_error_quark.
5659 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5661 * src/ginvoke.c: Remove the fallback implementation of
5662 g_function_info_invoke since we now formally depend on libffi.
5664 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5666 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5667 Remove these files from cvs, as they are now generated.
5669 * src/gmetadata.c (validate_iface_type_blob): Don't
5670 complain if blob->pointer is not set, since that
5671 happens for enum and flag types. (#308935, Gustavo
5674 * Commit an autoconf-conversion patch by
5675 Gustavo Carneiro (#308708)
5677 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5679 * src/compiler.c (main): Use it here to validate
5680 the generated metadata.
5682 * src/gmetadata.[hc]: Add code to validate a
5685 * metadata-format.txt: Updates
5687 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5689 * tests/*: Add struct offsets to field and vfunc
5692 * src/generate.c (write_vfunc_info): Write offset
5693 information for vfuncs.
5695 * src/gidlnode.c (g_idl_node_build_metadata): Write
5696 the struct offsets into the metadata.
5698 * src/gidlparser.c: Parse the offset attributes of
5699 field and vfunc elements.
5701 * src/gidlnode.h: Add offset members to field and
5704 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5708 * gidl.dtd: Updates.
5710 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5711 file, creates, compiles and runs a C file, and folds the
5712 resulting struct offsets back into the .gidl file.
5714 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5716 * src/gidlparser.c (start_field): Make fields in objects
5719 * src/gidlmodule.c: Include string.h
5724 * metadata-format.txt: Cleanup basic types.
5725 * src/*: Adapt to the changes.
5726 * tests/*: Adapt to the changes.
5727 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5729 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5730 size for enum blobs.
5731 (g_idl_node_get_full_size): Report the correct size for
5734 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5735 error checking for blob sizes.
5737 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5739 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5740 interface types for which is_pointer is FALSE, e.g. enums.
5742 * src/gidlnode.c (g_idl_node_get_full_size)
5743 * src/gidlparser.c (parse_type_internal):
5744 * src/generate.c (write_type_info): Support unspecialized
5745 lists, hashtables and errors. Also emit a '*' after these.
5749 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5753 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5755 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5757 * src/*.c: Change the directory to be addressed by
5758 1-based indexes, and use an index of zero to mean
5761 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5763 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5765 * tests/union.test: Add a union test.
5767 * src/generate.c: Handle unions.
5769 * src/girepository.h:
5770 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5772 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5774 * src/gidlparser.c (start_union): Parse <union> elements.
5776 * src/gidlnode.h: Add a GIdlNodeUnion.
5778 * gidl.dtd: Add a <union> element.
5780 * src/gmetadata.c (g_metadata_check_sanity): Check
5783 * src/gmetadata.h: Add union_blob_size to Header,
5786 * metadata-format.txt: Add a UnionBlob.
5788 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5790 * tests/*: Update testcases.
5792 * src/generate.c (write_callable_info): Don't forget to
5793 write transfer and null-ok attributes for return types
5796 * src/girepository.h:
5797 * src/ginfo.c (g_callable_info_may_return_null):
5798 New function to find out if a function may return NULL.
5800 * src/compiler.c (format_output): Make the generated
5803 * README: Point to a recent libffi snapshot.
5805 * tests/invoke/*: Some invoke tests.
5807 * src/Makefile: Add ginvoke.c and the necessary
5810 * src/girepository.h (g_function_info_invoke): Add
5813 * src/ginvoke.c (g_function_info_invoke): Initial
5814 implementation of invoke functionality based on libffi.
5816 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5817 strings and types hash tables in the right order when
5819 (find_entry_node): Free the name parts.
5821 2005-05-12 Johan Dahlin <johan@gnome.org>
5823 * src/generate.c: Generate consistent end tags.
5827 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5831 * src/gidlparser.c (start_function): Actually add
5832 methods to objects. (Steven Walter)
5834 * src/girepository.h:
5835 * src/ginfo.c: Rename Transfer and Direction to
5836 GITransfer and GIDirection. (Torsten Schoenfeld)
5838 * tests/*: Make tests work with the changes in name
5841 * src/gidlnode.c (find_entry_node): Parse qualified
5842 names and generate xref nodes for them if needed. Don't
5843 require all modules to be loaded any more.
5845 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5848 * src/ginfo.c (g_object_info_get_parent): Return NULL
5849 if blob->parent is 0. Still need to make sure index
5852 * src/generate.c: Generate qualified names when
5853 referring to non-local types. Emit transfer attribute
5856 * src/compiler.c (format_output): Put the function
5857 attributes where gcc accepts them.
5859 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5861 * src/compiler.c (main): Add a --verbose cmdline option
5862 and only log messages if it is specified.
5865 * src/gidlnode.c (init_stats, dump_stats): Collect some
5866 statistics on string and type sharing.
5868 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5869 g_message() instead of fprintf().
5871 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5872 (g_idl_node_get_size): Implement for structs.
5873 (g_idl_node_get_full_size): Handle parent being NULL.
5874 (serialize_type): Handle lookup failures more gracefully.
5876 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5878 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5879 size calculation for 2-parameter types and for objects.
5881 * src/compiler.c: Add a cmdline option for debug output
5882 and install a log handler to implement it.
5883 * src/gidlnode.c: Add some debug spew.
5887 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5888 forget to count the module name when calculating the
5889 required size for the metadata.
5892 * src/gidlparser.c: Fix compiler warnings.
5894 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5896 * src/compiler.c (main): Free the option context.
5898 * gidl.dtd: Clean up handling of names. All elements
5899 have a "name", only the elements corresponding to
5900 actual callable functions (function, method, constructor),
5901 have an additional "symbol" attribute holding the
5902 dlsym()-able function name.
5904 * src/generate.c: Adapt to generate xml matching the
5908 * src/gidlnode.c: Adapt to parse the new dtd.
5910 * tests/*.test: Adjust to the new dtd.
5912 * metadata-format.txt:
5913 * src/gmetadata.h: Remove the short_name field
5915 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5916 * src/girepository.h:
5917 * src/ginfo.c (g_value_info_get_short_name): Removed
5919 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5921 * gidl.dtd: Allow constructors for boxed types,
5922 patch by Jonathan Blandford.
5925 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5927 * --- Initial import ---