1 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
3 Bug 562467 – Property annotation
5 * giscanner/annotationparser.py:
6 * tests/scanner/annotation-1.0-expected.gir:
7 * tests/scanner/annotation-1.0-expected.tgir:
8 * tests/scanner/annotation.c (annotation_object_set_property),
9 (annotation_object_get_property), (annotation_object_class_init):
11 Annotations are parsed for properties.
13 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
15 Bug 546739 – Introspection should know precise signal parameter types
17 * giscanner/annotationparser.py:
18 * tests/scanner/annotation-1.0-expected.gir:
19 * tests/scanner/annotation-1.0-expected.tgir:
20 * tests/scanner/annotation.c (annotation_object_class_init):
22 Annotations are parsed for signals, the (type) annotation is introduced.
24 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
26 Bug 563591 – Flags not recognized when there is no introspection data
29 * giscanner/girwriter.py:
30 * giscanner/giscannermodule.c (type_get_is_bitfield):
31 * giscanner/glibast.py:
32 * giscanner/glibtransformer.py:
33 * giscanner/scannerparser.y:
34 * giscanner/sourcescanner.c (gi_source_type_copy):
35 * giscanner/sourcescanner.h:
36 * giscanner/sourcescanner.py:
37 * giscanner/transformer.py:
38 * tests/scanner/foo-1.0-expected.gir:
39 * tests/scanner/foo-1.0-expected.tgir:
40 * tests/scanner/foo.h:
42 Large parts of this patch was done by Jürg Billeter.
44 2009-01-12 Havoc Pennington <hp@pobox.com>
46 Bug 563386 – scanner ignores "const" on boxed return values
48 * tests/everything/everything.c (test_simple_boxed_a_const_return):
49 * tests/everything/everything.h:
51 This adds just the tests specified in the bug above, the fix itself
52 was included in Bug 563794
54 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
56 Bug 566404 – Annotations for GLib
58 * gir/glib-2.0.c: Added allow-none annotations for g_thread_init()
59 and g_main_loop_new().
61 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
63 Bug 566419 – Element type of arrays not properly handled in all cases
65 * giscanner/annotationparser.py:
66 * tests/scanner/annotation-1.0-expected.gir:
67 * tests/scanner/annotation-1.0-expected.tgir:
68 * tests/scanner/annotation.c (annotation_object_set_data),
69 (annotation_object_set_data2), (annotation_object_set_data3):
70 * tests/scanner/annotation.h:
72 Based on patch by Andreas Rottmann
74 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
76 Bug 566560 – giscanner.transformer.SkipError
78 * giscanner/transformer.py:
80 Catch SkipError for all nodes, not just functions.
81 Makes it possible to skip unsupported parameter types in
84 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
86 Bug 563794 - Redo annotation parsing & applying
88 Thanks to Colin for helping out considerably in landing this.
90 * giscanner/Makefile.am:
92 * giscanner/dumper.py:
93 * giscanner/girparser.py:
94 * giscanner/giscannermodule.c (pygi_source_scanner_get_comments),
95 (calc_attrs_length), (pygi_collect_attributes), (init_giscanner):
96 * giscanner/glibtransformer.py:
97 * giscanner/scannerlexer.l:
98 * giscanner/sourcescanner.c (gi_source_symbol_unref),
99 (gi_source_scanner_new), (gi_source_scanner_free),
100 (gi_source_scanner_get_comments):
101 * giscanner/sourcescanner.h:
102 * giscanner/sourcescanner.py:
103 * giscanner/transformer.py:
104 * giscanner/xmlwriter.py:
105 * tests/scanner/annotation-1.0-expected.gir:
106 * tests/scanner/annotation-1.0-expected.tgir:
107 * tests/scanner/annotation.c:
108 * tests/scanner/annotation.h:
109 * tests/scanner/foo-1.0-expected.gir:
110 * tests/scanner/foo-1.0-expected.tgir:
111 * tests/scanner/foo.h:
112 * tools/g-ir-scanner:
114 This commit merges the annotation parser rewrite branch.
115 It'll change the annotation parsing to be done completely in python
116 code which will make it easier to do further annotation parsing
119 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
121 Bug 563469 – Arrays not treated correctly in struct offset calculation
123 * tests/scanner/foo.h (FooObject): Added field `some_int'.
124 * tests/scanner/foo-1.0-expected.gir,
125 * tests/scanner/foo-1.0-expected.tgir: Adapted.
127 * giscanner/glibtransformer.py (GLibTransformer._create_gobject):
128 carry over object fields from original (struct) node.
129 (GLibTransformer._pair_class_struct): Don't add fields of the
130 class struct to to the node for the class, they should go under a
131 nested <record> element (see also Bug 551738). This is needed as
132 otherwise offset calculation would not work, as the instance
133 fields are mingled with the class fields without a way to
136 2009-01-03 Johan Dahlin <jdahlin@async.com.br>
139 Disable blank line check, it works differently under
140 Python 2.5 from 2.6 and was rather annoying from the start.
142 2008-01-03 Andreas Rottmann <a.rottmann@gmx.at>
144 Bug 556489 – callback annotations
146 * giscanner/transformer.py
148 * tools/generate.c (write_callable_info): Write out the new scope,
149 closure and destroy attributes.
151 * giscanner/transformer.py (Transformer._type_is_callback): New
152 method, checking if a given type is a callback.
153 (Transformer._augment_callback_params): New method; adds
154 information (closure, destroy) to callback parameters.
155 (Transformer._handle_closure, Transformer._handle_destroy): New methods,
156 auxiliary to _augment_callback_params.
157 (Transformer._create_function): Call _augment_callback_params().
158 (Transformer._create_parameter): Handle scope option.
160 (Transformer._create_typedef_callback): New method, creates a
161 callback, and registers it in the typedef namespace
162 (Transformer._create_typedef): Use _create_typedef_callback()
163 instead of the plain _create_callback().
165 * giscanner/ast.py (Parameter): Added callback-related fields.
166 * giscanner/girwriter.py: Write out new Parameter fields.
168 * girepository/girnode.h (GIrNodeParam): Added fields scope,
170 * girepository/gtypelib.h (ArgBlob): Ditto.
171 * girepository/girparser.c (start_parameter): Handle new fields.
173 * girepository/girmodule.c (g_ir_module_build_typelib): Adjust
174 arg_blob_size, bump major version due to this change.
175 * girepository/girnode.c (g_ir_node_get_full_size_internal)
176 (g_ir_node_build_typelib)
177 * girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
179 (g_ir_node_build_typelib): Fill in new ArgBlob flags from param.
181 * girepository/girepository.h (GIScope): New enumeration, listing
182 the different possible scopes for callbacks.
184 * girepository/ginfo.c (g_arg_info_get_scope)
185 (g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
186 callback-related argument indices (callback scope, closure for a
187 callback, destroy notification for a callback).
189 * tests/scanner/: Added testcases for new features.
191 2009-01-03 Jürg Billeter <j@bitron.ch>
194 * giscanner/dumper.py:
195 * giscanner/girparser.py:
196 * giscanner/glibtransformer.py:
197 * giscanner/sourcescanner.py:
198 * giscanner/transformer.py:
199 * giscanner/xmlwriter.py:
201 Fix inconsistencies with PEP8
203 2008-12-21 Johan Dahlin <jdahlin@async.com.br>
206 Annotate transfer, direction and allow none for
207 g_file_load_contents, g_file_load_contents_finish and
208 g_file_load_partial_contents_finish parameters.
210 2008-12-12 Owen Taylor <otaylor@redhat.com>
212 Disable array auto-detection for out-annotated parameters (#563934)
214 If we have a parameter annotated as (out), then having a ctype of
215 'char **' (or similar) doesn't necessarily indicate an array.
217 * giscanner/transformer.py: Skip array-detection logic for
218 (out)-annotated parameters.
219 * tests/scanner/annotation.h tests/scanner/annotation.c
220 tests/scanner/annotation-1.0-expected.gir
221 tests/scanner/annotation-1.0-expected.tgir: Add a test for
222 an (out) string parameter.
224 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
226 * giscanner/dumper.py (DumpCompiler._link): Pass in
227 --tag=CC to libtool to avoid making libtool confused
228 when CC is different from gcc on some systems.
230 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
232 Bug 563998 – Cache the GIBaseInfo for GTypes
234 * girepository/girepository.c (g_irepository_find_by_gtype):
235 add a cache of GType -> GIBaseInfo.
237 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
239 Bug 562545 – Add function taking / returning GValue
241 * tests/everything/everything.[ch]: add a test of function taking and
242 returning "const GValue *"
244 2008-12-09 Johan Dahlin <johan@async.com.br>
246 * giscanner/cachestore.py (CacheStore.store): Use
247 shutil.move instead of os.rename, since it will
248 automatically fall back to copying+remove if the
249 src directory is on a different partition from
252 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
254 Bug 563742 – introspection should record the introduced version of
255 symbols marked with the "Since:" tag
260 * giscanner/girwriter.py:
261 * giscanner/scannerlexer.l:
262 * giscanner/transformer.py:
263 * tests/scanner/annotation-1.0-expected.gir:
264 * tests/scanner/annotation-1.0-expected.tgir:
265 * tests/scanner/annotation.c (annotation_versioned):
266 * tests/scanner/annotation.h:
268 2008-12-08 Johan Dahlin <johan@async.com.br>
270 * giscanner/cachestore.py (_get_cachedir): Don't require
271 HOME to be set and if it set, don't require the
274 2008-12-08 Johan Dahlin <johan@async.com.br>
276 * giscanner/cachestore.py (CacheStore.store): Dump the cache
277 file to a temporary file and rename it the expected filename
278 only when it's completely written.
279 This should make the cache more roboust when run in parallel,
280 and hopefully avoid triggering bugs in Python.
282 2008-12-03 Christophe Fergeau <teuf@gnome.org>
284 Bug 562971 – g-ir-scanner failure on libgpod headers
286 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
287 default 16384. Without it, the lexer was aborting with a cryptic
288 error message on source files containing really long comment
291 2008-12-01 Colin Walters <walters@verbum.org>
293 * girepository/gfield.c: Fix memory leak; unref type info we
294 created, not field info
296 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
298 Bug 562289 – Race when removing invalid cache
300 * giscanner/cachestore.py:
301 ENOENT is mapped to a OSError, not IOError.
303 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
305 * gir/glib-2.0.c: Add return value transfer annotation
306 for g_markup_escape_text.
308 2008-11-25 Colin Walters <walters@verbum.org>
310 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
312 * giscanner/dumper.py: Implement it.
313 * gir/Makefile.am, tests/**/Makefile.am: Use it.
315 2008-11-25 Colin Walters <walters@verbum.org>
317 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
318 to just use a Makefile rule and dependencies. This corresponds with a change
319 made to gir-repository to fix srcdir != builddir issues.
321 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
324 Post release version bump
327 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
332 2008-11-25 Colin Walters <walters@verbum.org>
334 Bug 559705 – Missing association between static methods and classes
336 * docs/typelib-format.txt:
337 * girepository/ginfo.c (g_function_info_get_flags):
338 * girepository/girmodule.c (g_ir_module_build_typelib):
339 * girepository/girnode.c (g_ir_node_get_size),
340 (g_ir_node_build_typelib):
341 * girepository/girparser.c (start_function):
342 * girepository/gtypelib.c (g_typelib_check_sanity),
343 (validate_header), (validate_function_blob):
344 * girepository/gtypelib.h:
346 * giscanner/girwriter.py:
347 * giscanner/glibtransformer.py:
348 * tests/scanner/foo-1.0-expected.gir:
349 * tests/scanner/foo-1.0-expected.tgir:
350 * tests/scanner/foo.h:
352 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
354 * giscanner/ast.py: Define socklen_t as an alias for int32.
356 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
358 * girepository/gdump.c (dump_type): Remove a warning,
359 be less verbose on error on fundamental types.
361 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
363 * giscanner/dumper.py: Add license headers,
364 refactor into a class, avoid some duplication and do some
365 extra pedantic checks.
367 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
369 Make it compilable with -Werror on my system by adding
370 a couple of prototypes and including headers.
372 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
374 Bug 562022 – gobject-introspection needs python headers
376 * configure.ac: fail without python headers present.
379 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
381 Bug 561617 – Return value array annotations
383 * giscanner/transformer.py:
384 * tests/scanner/annotation.c (annotation_return_array):
385 * tests/scanner/annotation.h:
386 Add support for (array) for return value annotations as well.
388 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
390 * tests/everything/everything.[ch]: add a test function which calls a
393 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
395 * giscanner/cachestore.py:
396 Catch ValueError exceptions.
398 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
400 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
402 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
404 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
405 instead of hard-coding struct sizes.
407 2008-11-18 Owen Taylor <otaylor@redhat.com>
409 Bug 561296 - Add "storage type" to the typelib data for enums
411 In order to set and get enum and flag fields in structures, we need
412 to know the integral type that the enumeration is stored as. We are already
413 computing that at compile time in order to compute struct offsets, so the
414 easiest thing to do is to save that in the typelib.
416 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
417 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
418 and compute and save it at compile time.
420 * girepository/girepository.h girepository/ginfo.c:
421 Add g_enum_info_get_storage_type().
423 * girepository/gfield.c: Implement reading and writing enum and flags fields
424 based on the storage type.
426 2008-11-18 Owen Taylor <otaylor@redhat.com>
428 Add enums to the Everything test module
430 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
431 test module and register them as GTypes.
433 https://bugzilla.gnome.org/show_bug.cgi?id=561296
435 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
437 * giscanner/cachestore.py:
438 Catch BadPickleGet exceptions as well.
440 2008-11-17 Owen Taylor <otaylor@redhat.com>
442 * tests/everything/everything.c: Fix doc comment annotations
443 for test_struct_b_clone() to refer to the right function.
445 2008-11-17 Dan Winship <danw@gnome.org>
447 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
448 spelling of GHashTable. #561135
450 * tests/scanner/annotation.c (annotation_object_get_hash):
451 * tests/scanner/annotation-1.0-expected.gir:
452 * tests/scanner/annotation-1.0-expected.tgir: add a test of
453 GHashTable annotations
455 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
457 * giscanner/ast.py: Change string array match type to be in terms
458 of canonicalized type.
459 * giscanner/transformer.py: Add canonicalize_ctype which gives us
460 a version of a c:type without aliases, so we can deep canonicalize
461 char** to utf8*. Update parse_ctype to use it.
462 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
464 2008-11-16 Colin Walters <walters@verbum.org>
466 * girepository/girepository.c: Ensure we always call init_globals,
467 even if passed a non-default repository.
469 2008-11-16 Colin Walters <walters@verbum.org>
471 Bug 559706 - Interface prerequisites
473 * common.mk: Dep on libgirepository.la for scanner libs so that
474 we rebuild things even if just gdump.c changes.
475 * girepository/gdump.c: Dump prerequisites.
476 * giscanner/ast.py: Add prerequisite list.
477 * giscanner/girparser.py: Parse them from gdump.
478 * giscanner/girwriter.py: Write them.
479 * giscanner/glibtransformer.py: Resolve them.
482 2008-11-16 Owen Taylor <otaylor@redhat.com>
484 Bug 561087 - Respect is_pointer in serialize_type()
486 Add a '*' to the serialization for the cases where we set is_pointer
487 in the type blob we write out depending on node->is_pointer. Don't
488 add the '*' in the cases where is_pointer is set or not set in a
491 http://bugzilla.gnome.org/show_bug.cgi?id=561087
493 2008-11-16 Owen Taylor <otaylor@redhat.com>
495 Bug 560825 – Add size and alignment to typelib
497 Include the size and alignment of structures and unions in the typelib,
498 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
500 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
501 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
502 to StructBlob and UnionBlob.
504 * girepository/ginfo.c girepository/girepository.h:
505 Add g_[struct|union]_get[size|alignment]().
507 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
509 2008-11-16 Owen Taylor <otaylor@redhat.com>
511 Bug 552371 – implement struct field get/set
513 * girepository/gfield.c girepository/girepository.h: Add
514 convenience functions g_field_info_set_field() and
515 g_field_info_get_field() to set and get fields based on the
516 offsets in GIFieldInfo.
518 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
520 Bug 560241 - Out-arguments should not be marked as being pointers
523 * girepository/girparser.c: Improved logic for out arguments.
525 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
527 Bug 559601 - Pointers in structs/unions unduly treated as arrays
529 * giscanner/transformer.py: Differentiate type creation logic
530 between parameters and struct components.
532 2008-11-15 Colin Walters <walters@verbum.org>
534 * giscanner/dumper.py: Check return code from pkg-config
537 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
539 * tests/everything/everything.c (test_array_int_in),
540 (test_array_gtype_in):
541 * tests/everything/everything.h:
542 Rename the int/gtype array tests. Make the return value
543 useful, an aggregation of the array input values.
545 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
547 * tests/everything/Makefile.am:
548 * tests/everything/everything.c:
549 * tests/everything/everything.h:
550 * tests/everything/gitesttypes.c:
551 * tests/everything/gitesttypes.h:
552 Rename gitesttypes.[ch] to everything.[ch]
554 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
556 Bug 560708 – Don't treat arrays that have a length specified as
557 zero-terminated by default
559 * giscanner/transformer.py: Default to non zero terminated for
561 * tests/*: Update, add test for zero vs not.
563 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
565 Bug 557788 - Return types for constructors in generated typelib bogus
567 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
568 obviously broken in the face of duplicate names in different
570 * tests/scanner/*expected.gir: Fix up.
572 2008-11-13 Owen Taylor <otaylor@redhat.com>
574 * girepository/girffi.c: Fix "Unexpected time for time_t"
577 2008-11-13 Colin Walters <walters@verbum.org>
579 Bug 558436 - avoid having scanner load app code
581 * giscanner/cgobject.py: Delete; we no longer load shared
583 * giscanner/dumper.py: Support for linking a library to
584 a stub binary for introspection.
585 * giscanner/glibtransformer.py: Rewrite to use gdump XML
586 from invocation of child binary.
587 * giscanner/transformer.py: Fix up to use fully qualified
588 name in parse tree. Make parse_ctype public so we can use
589 it inside glibtransformer.
590 * tests/scanner/barapp.c: New test, using --program arg
592 * tests/*: Update to use common.mk for invoking scanner.
593 * tools/g-ir-scanner: Add options --program, --program-arg,
595 * docs/g-ir-scanner.1: Update.
597 2008-11-13 Colin Walters <walters@verbum.org>
599 * configure.ac: Depend on Gio, we use it in gdump.c.
600 * girepository/gdump.c: Code to dump GType data to XML.
601 * girepository/girepository.c: Add option group for dumping.
602 * girepository/girepository.h: Define API for the above.
604 2008-11-13 Colin Walters <walters@verbum.org>
606 * common.mk: Add a file to include with Makefile fragments
607 useful for scanner invocation.
609 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
611 * tests/everything/gitesttypes.c (test_filename_return): Return
612 strings in filename encoding.
614 2008-11-13 Owen Taylor <otaylor@redhat.com>
616 Bug 560253 – Add structure and boxed types to Everything test module
618 * tests/everything/gitesttypes.[ch]: Add examples of:
620 Plain old data structs
621 Plain old data structs with nested fields
623 Plain old data boxed with nested fields
624 More complicated boxed types with internal state
626 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
628 * tests/everything/gitesttypes.c (test_gtype_in):
629 * tests/everything/gitesttypes.h:
630 Add a test of GType arrays, a la gtk_list_store_set_columns.
632 2008-11-12 Owen Taylor <otaylor@redhat.com>
634 Bug 560419 – Cache includes when parsing
636 Keep track of all modules parsed within a GIrParser, and when a
637 module is referenced a second time, use the existing parsed copy
638 instead of reparsing.
640 2008-11-12 Owen Taylor <otaylor@redhat.com>
642 Fix management of ParseContext.includes_modules (#560419)
644 * girepository/girparser.c: Fix some trivial bugs in managing the
645 list of include modules. (Add to module's list twice, not
646 initialized to NULL, not freed.)
648 2008-11-12 Owen Taylor <otaylor@redhat.com>
650 Keep aliases and disguised_structures local to each module (#560419)
652 * girepository/girmodule.[ch]: When parsing, keep keep a separate
653 hash tables of aliases and 'disguised' flags for each module, and
654 store that on the module.
656 After parsing an include merge the aliases/disguised flags to the
659 * girepository/girparser.c: Remove 'prefix_aliases' flag and
660 always prefix aliases/disguised structure types when parsing; this
661 simplifies the code considerably.
663 2008-11-12 Owen Taylor <otaylor@redhat.com>
665 Fix mismatches between .gir name and 'name' attribute (#560419)
667 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
668 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
669 where the 'name' element of <namespace/> didn't match the filename of the
670 gir, an assumption that the compiler has always expected and now enforces.
672 2008-11-12 Owen Taylor <otaylor@redhat.com>
674 Only allow one <namespace/> element per <repository/> (#560419)
676 * girepository/girparser.c: The logic in girparser.c didn't work
677 very well if there were multiple <namespace/> nodes within a
678 single <repository/> (context->namespace was always the overall
679 filename and not the the name specified in the <namespace/>
680 element for one thing; this would cause aliases to be mis-prefixed
681 in include modules.) Also check that the "name" in the
682 <namespace/> node matches the filename.
684 2008-11-12 Owen Taylor <otaylor@redhat.com>
686 Add a GirParser object to hold the state of a compilation
688 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
689 GirParser object to hold state that is global across a
690 compilation. Currently just holds the include path, but will
691 eventually also keep a cached list of parsed modules.
693 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
695 * girepository/girepository.c (find_namespace_latest): Fix
698 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
700 * configure.ac: use 'introspection' component for bugs
702 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
704 * tests/everything/gitesttypes.c (test_filename_return):
705 * tests/everything/gitesttypes.h:
706 Add a filename return test.
708 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
710 * tests/offsets/Makefile.am (gitestoffsets.c): fix
711 gen-gitestoffsets invocation with builddir != srcdir
713 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
715 * girepository/girepository.c:
716 Change the element type from utf8 to filename
717 * girepository/girnode.c (g_ir_node_build_typelib):
718 Special case filename equally to utf8 here.
720 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
723 Remove unused variables, add a dependency of girepository.ch, so when
724 they change we rebuild the gir automatically.
726 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
728 * girepository/girepository.c (g_irepository_get_search_path):
729 * girepository/girepository.h:
730 Add a g_irepository_get_search_path, so we can access the search
733 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
735 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
737 * girepository/girparser.c: avoid freeing an uninitialized pointer
739 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
742 * giscanner/glibtransformer.py:
743 * tools/g-ir-scanner:
744 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
745 so we can just pass in --library=foo/bar/baz.la and the scanner
746 does the right thing.
747 Don't warn for _get_type() functions if they don't take any
750 2008-11-11 Owen Taylor <otaylor@redhat.com>
752 Bug 560404 – Prefix types when resolving aliases in included modules
754 * girepository/girparser.c: When resolving aliases in an included
755 module, prefix types before looking them up.
757 2008-11-11 Owen Taylor <otaylor@redhat.com>
759 Compute field offsets and overall size for object structures
761 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
762 field of type object in structure"
764 Do basic computation of field offsets for objects and interfaces;
765 this doesn't attempt to address all of the "mess" for virtual
766 functions described in Bug 560281.
768 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
770 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
772 Based on patch by Johan Bilien.
774 * giscanner/transformer.py (_create_member, _create_parameter):
775 Resolve types here as well.
776 (_resolve_type_name_1): Try resolving using 'ctype' first since
777 it's least ambiguous. Fixes struct member type resolution with
778 similarly named types, e.g. Gdk.PangoRendererClass and
780 * tests/scanner/foo*: Add test.
782 2008-11-11 Owen Taylor <otaylor@redhat.com>
784 * girepository/girparser.c: Search provided include dirs before
785 the default directories.
787 2008-11-11 Owen Taylor <otaylor@redhat.com>
789 * girepository/giroffsets.c: Include fully-qualified names in
792 2008-11-11 Owen Taylor <otaylor@redhat.com>
794 * girepository/giroffsets.c: Fail gracefully with an informative
795 error message when recursion is encountered when computing a
798 2008-11-11 Owen Taylor <otaylor@redhat.com>
800 * girepository/girparser.c: Remove an unused variable.
802 2008-11-10 Owen Taylor <otaylor@redhat.com>
804 Add tests for field offset computations
806 * tests/offsets/offsets.h: Header file with structure definitions to test
808 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
809 field offsets for the structures in offsets.h two ways: using
810 the information from a generated typelib, and as computed by the
813 We diff these two versions to test that everything is OK.
815 2008-11-10 Owen Taylor <otaylor@redhat.com>
817 Remove field offsets from g-ir-generate output and test inputs
819 Field offsets are a) architecture dependent so they shouldn't be part
820 of the architecture-independent gir format which is installed in
821 datadir. b) Are architecture-dependent so they shouldn't be in test
824 * girepository/girparser.c: Don't parse offset for fields
825 * tools/generate.c: Don't parse offset for fields
826 * tests/*.gir test/scanner/*.tgir: Remove offsets
828 (Virtual function and discriminator offsets are not removed, as they
829 aren't fully hooked up to the field-offset computation machinery yet.)
831 2008-11-10 Owen Taylor <otaylor@redhat.com>
833 Bug 560252 - Compute field offsets before writing typelib
835 * girepository/girnode.h: Store the total size and alignment for
836 GIrNodeStruct/Boxed/Union.
838 * girepository/giroffset.c: New file implementing computation of
839 structure field offsets.
841 * girepository/girnode.c: Compute structure field offsets before
842 writing types into the typelib.
844 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
845 means "unknown". Also fix description of the discriminator_offset
848 2008-11-10 Owen Taylor <otaylor@redhat.com>
850 Bug 560250 - Fully parse included modules
852 For some things, like computing structure offsets to put into the typelib
853 we need more than just the aliases from included modules. Do a completel
854 parse of included modules and store in module->included_modules.
856 Also add g_ir_find_node() to find node information from within the
857 active set of modules and their includes.
859 2008-11-10 Owen Taylor <otaylor@redhat.com>
861 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
863 Extract a function to convert GITypeTag to ffi_type from the internals
864 of ginvoke.c. This will be useful in figure out structure alignment.
866 Also fix handling of gsize and time_t to be portable. (Add a check
867 to configure.ac to figure out the width of time_t.)
869 2008-11-10 Owen Taylor <otaylor@redhat.com>
871 Bug 560248 – "disguised structures"
873 Certain types like GIConv and GdkAtom are pointers internally but don't
874 look like pointers when referenced. They have the form.
876 typedef struct _X *X;
878 Parse these as structures/records but mark them in the gir with a 'disguised'
879 attribute so that we know that they need special handling.
881 In the typelib treat them like any other structure.
883 2008-11-09 Jürg Billeter <j@bitron.ch>
886 * giscanner/girwriter.py:
888 Write throws attribute for virtual functions, fixes bug 559703
890 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
892 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
893 up some confusion about the second argument to find_module, it's
894 actually the packages __path__ attribute which we can safely ignore
896 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
898 2008-11-07 Owen Taylor <otaylor@redhat.com>
900 Bug 559737 – Deal with continuations in macros
902 * giscanner/giscannerlexer.l: Treat continuation lines the same
903 as regular newlines. This makes the scanner not complain about
904 #define foo(x) \ <stuff> inside a C file. There's no attempt
905 however to handle parsing macro definitions split across lines.
907 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
909 * giscanner/cachestore.py:
910 Handle broken cache entries, write only filesystems and
911 running out of diskspace.
913 2008-11-07 Owen Taylor <otaylor@redhat.com>
915 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
916 Set current_filename before lexing the file so error messages
917 are reported in the right file.
919 2008-11-06 Colin Walters <walters@verbum.org>
921 * tests/everything/*: Add some tests for strv.
923 2008-11-05 Colin Walters <walters@verbum.org>
925 * girepository/ginvoke.c (g_function_info_invoke): Don't use
926 nested scope local variable for error which may go away after
927 conditional is complete.
929 2008-11-05 Colin Walters <walters@verbum.org>
931 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
932 manipulate hackily; just use GString. This avoids an
933 uninitialized memory read pointed out by Havoc.
935 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
937 * giscanner/__init__.py:
939 * giscanner/cachestore.py:
940 * giscanner/cgobject.py:
941 * giscanner/girparser.py:
942 * giscanner/girwriter.py:
943 * giscanner/giscannermodule.c:
944 * giscanner/glibast.py:
945 * giscanner/glibtransformer.py:
946 * giscanner/libtoolimporter.py:
947 * giscanner/minixpath.py:
948 * giscanner/odict.py:
949 * giscanner/sourcescanner.c:
950 * giscanner/sourcescanner.h:
951 * giscanner/sourcescanner.py:
952 * giscanner/transformer.py:
953 * giscanner/utils.py:
954 * giscanner/xmlwriter.py:
956 Relicense the giscanner library under LGPLv2+.
957 This has been approved by all contributors.
959 2008-11-01 Owen Taylor <otaylor@redhat.com>
961 Bug 558848 giparser.py: shared library should be optional
963 When parsing a .gir, allow the shared-library attribute
964 of <namespace/> to be missing: this corresponds to the handling
965 in libgirepository and elsewhere.
967 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
969 Bug 557898 – Fails to build on OSX 10.4
971 * configure.ac: Check for $shrext_cmds that should be implicitly
972 available if you're using libtool >= 2.0. If undefined, call
973 libtool --config explicitly to get its value.
974 * girepository/gtypelib.c: Remove special case for (non-)Darwin
977 2008-10-31 Colin Walters <walters@verbum.org>
979 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
981 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
983 * configure.ac: Post release version bump
986 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
990 * docs/release-checklist.txt:
993 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
995 * Makefile.am: add an upload-release target
996 * docs/release-checklist.txt:
997 Release process documentation
999 2008-10-31 Colin Walters <walters@verbum.org>
1001 Bug 558109 – _g_typelib_init fails to find shared libraries
1003 * transformer/glibtransformer.py: Use ctypes' find_library
1004 on passed libraries and write that for the shared-library
1005 entry. We want to avoid depending on -devel packages.
1007 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1009 * docs/g-ir-scanner.1:
1010 Document the renaming options.
1012 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
1014 * giscanner/Makefile.am:
1015 * tests/invoke/Makefile.am:
1016 * tests/repository/Makefile.am: List in-tree libraries first in
1017 LDADD / LIBADD. If installed library is listed first, the
1018 resulting binary will prefer installed version to one in .libs,
1019 possibly making 'make check' behave strangely.
1021 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
1023 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
1024 gir-repository from choking with gdk/quartz
1026 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1028 * giscanner/giscannermodule.c (calc_attrs_length),
1029 (pygi_collect_attributes):
1030 * giscanner/xmlwriter.py:
1031 Write a C version of the xml namespace formatter.
1032 Saves 15% of the time it takes to create a gtk gir.
1034 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1036 * giscanner/xmlwriter.py: Abstract attribute formatting
1037 to a function external to the XMLWriter class.
1039 * giscanner/scannerlexer.l:
1040 Parse and discard __typeof and __attribute.
1042 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1044 * giscanner/girparser.py:
1045 Remove arguments from the constructor, move them to
1046 separate accessors. Add a new parse_tree method
1047 which takes an element tree instance.
1048 * tools/g-ir-scanner:
1049 Update callsite for this
1051 * giscanner/Makefile.am:
1052 * giscanner/cachestore.py:
1053 * giscanner/transformer.py:
1054 Cache the include parsing. Saves ~25% time when
1055 creating vte (which includes everything up to gtk+).
1057 2008-10-30 Colin Walters <walters@verbum.org>
1059 * giscanner/transformer.py: Don't reparse includes
1060 we've already processed.
1062 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1064 * giscanner/girparser.py:
1065 * giscanner/transformer.py:
1066 Avoid parsing parameters, types etc when parsing
1067 includes. Should speed up include parsing a bit.
1069 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1071 * giscanner/girparser.py:
1072 Avoid big if/else and use a dispatch table like
1075 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1077 * giscanner/transformer.py:
1078 Clean up include parsing and registration.
1080 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1082 * giscanner/transformer.py:
1085 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1087 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
1090 construct PYTHONPATH just once
1092 * tests/everything/Makefile.am:
1093 * tests/scanner/Makefile.am:
1094 add $(top_srcdir) to PYTHONPATH to
1095 handle builddir != srcdir
1097 * giscanner/libtoolimporter.py:
1098 * giscanner/sourcescanner.py:
1099 Make the libtoolimporter work when distchecking too.
1101 Mostly based on patch by Tommi Komulainen
1103 2008-10-29 Owen Taylor <otaylor@redhat.com>
1105 * giscanner/glibtransformer.py: If a filename of an existing
1106 file is passed to --library, hunt for it directly, rather than
1107 searching for a corresponding library.
1109 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
1111 * giscanner/libtoolimporter.py:
1112 * giscanner/sourcescanner.py:
1113 Clean up the libtool importer a bit. Add a context so we
1114 can use it through a with statement.
1115 Don't just look in the current directory, look in the whole
1118 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
1120 Bug 558065 – gitesttypes should be installed
1123 * tests/Makefile.am:
1124 * tests/types/Makefile.am -> tests/everything/Makefile.am
1125 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
1126 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
1127 move tests/types to tests/everything
1129 * tests/everything/Makefile.am: build normal shared library
1130 libgirepository-everything.so.1.0.0 and corresponding typelib
1131 Everything-1.0.typelib
1133 * tests/everything/Makefile.am: explicitly link libtool
1134 versioning with typelib versioning with variables
1136 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
1138 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
1140 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1142 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
1145 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1147 Bug 558068 – when invoking a method, offset the in arguments by one,
1150 * tests/invoke/invoke.c, tests/invoke/testfns.c,
1151 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
1152 * girepository/ginvoke.c: do not offset the index of given out
1153 arguments by one for methods, "this" is provided as in argument only.
1155 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1157 * gir/gio-2.0.c: add annotation for g_file_delete
1159 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
1161 Bug 558062 – provide and use paths in the .pc file
1163 * gobject-introspection-1.0.pc.in: provide typelibdir variable
1164 for where .typelibs should be installed (callers shouldn't need
1165 to construct paths from bits and pieces)
1167 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1169 Bug 557791 – g_irepository_require() could return a GTypelib *
1171 * girepository/girepository.c: Return GTypelib; this is useful
1172 for low level manipulation.
1174 2008-10-25 Colin Walters <walters@verbum.org>
1176 Bug 557788 – Return types for constructors in generated typelib bogus
1178 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
1179 rely on end pass resolution.
1181 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1183 Bug 557786 - support fixed size arrays
1185 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
1186 * giscanner/scannerparser.y: Retain fixed array size.
1187 * giscanner/ast.py: Add to note.
1188 * giscanner/girwriter.py: Write to gir.
1189 * girepository/girnode.c: Write it to typelib.
1190 * tools/generate.c: Generate.
1191 * tests/*: Add tests.
1193 2008-10-25 Colin Walters <walters@verbum.org>
1195 Bug 557076 - move typelibs to $libdir
1197 * configure.ac: Steal some configury bits from dbus to expand
1199 * gir/Makefile.am: Move to libdir.
1200 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
1201 instead just look at one hardcoded path in libdir.
1202 * acinclude.m4: Bits from dbus.
1204 2008-10-24 Johan Dahlin <johan@gnome.org>
1206 * girepository/girnode.c (g_ir_node_check_unhandled_members):
1207 Be quiet, do not warn about unhandled members.
1209 2008-10-24 Johan Dahlin <johan@gnome.org>
1211 * girepository/gtypelib.c:
1212 Only use SHLIB_SUFFIX on darwin, otherwise use
1213 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1215 2008-10-24 Lucas Rocha <lucasr@gnome.org>
1217 Bug 557623 - Constructors shouldn't be flagged as methods.
1219 * girepository/ginfo.c (g_function_info_get_flags): ditto.
1221 2008-10-24 Johan Dahlin <johan@gnome.org>
1223 * giscanner/scannerparser.y:
1224 Check against division by zero for the modula operator.
1225 This fixes header parsing of OSX system headers included
1228 2008-10-24 Johan Dahlin <johan@gnome.org>
1232 Add a CONTRIBUTORS file and dist it.
1234 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1236 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1238 * girepository/girparser.c (parse_param_transfer):
1239 * giscanner/transformer.py (_create_parameter, _create_return):
1240 * giscanner/girwriter.py (_write_return, _write_parameter):
1241 * tools/generate.c (write_callable_info): always write and
1242 require "transfer-ownership" for return-values and parameters
1245 * tests/invoke/testfns-1.0.gir:
1247 * tests/scanner/DrawableAdditions.xml:
1248 * tests/scanner/GtkFrob-1.0-expected.tgir:
1249 * tests/scanner/annotation-1.0-expected.tgir:
1250 * tests/scanner/drawable-1.0-expected.tgir:
1251 * tests/scanner/drawable-injected-1.0-expected.gir:
1252 * tests/scanner/drawable-injected-1.0-expected.tgir:
1253 * tests/scanner/foo-1.0-expected.tgir: Updated
1255 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1257 * giscanner/cgobject.py: build fundamental types same way as glib
1259 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1260 when constructing the Type from it
1262 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1263 the parameter is a GObject from its GType, if available.
1265 * giscanner/glibtransformer.py (_adjust_transfer):
1266 * tests/scanner/foo-1.0-expected.gir:
1267 * tests/scanner/foo-1.0-expected.tgir: deduce
1268 transfer-ownership from GTypes
1270 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1272 * giscanner/transformer.py (_create_parameter):
1273 * tests/scanner/foo-1.0-expected.gir: make varargs
1274 transfer-ownership="none"
1276 2008-10-23 Colin Walters <walters@verbum.org>
1278 Bug 556739 - transfer ownership
1280 * giscanner/ast.py: Refactor Parameter/Return to share
1281 common attributes. Add transfer_inferred attribute
1282 which says whether or not we made a guess.
1283 * giscanner/transformer.py: Add much more extensive
1284 heuristics around parameter and return transfer.
1285 * giscanner/glibtransformer.py: Adjust to inspect
1289 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1291 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1293 * tests/scanner/Makefile.am:
1294 * tests/scanner/annotation-1.0-expected.tgir:
1295 * tests/scanner/drawable-1.0-expected.tgir:
1296 * tests/scanner/drawable-injected-1.0-expected.tgir:
1297 * tests/scanner/foo-1.0-expected.tgir:
1298 * tests/scanner/GtkFrob-1.0-expected.tgir:
1299 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1300 annotations survive the roundtrip via typelib
1302 The expectations are as currently produced by g-ir-generate,
1303 comparison with the .gir files shows there are differences.
1305 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1307 Bug 557468 – Support for GI_TYPELIB_PATH
1309 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1310 provided paths to the global search path.
1312 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1314 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1316 * tests/scanner/drawable-1.0-expected.tgir:
1317 * tests/scanner/drawable-injected-1.0-expected.tgir:
1318 * tests/scanner/foo-1.0-expected.tgir:
1319 * tools/generate.c (write_object_info): write 'abstract'
1320 attribute for classes
1322 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1324 * girepository/girmodule.c, girepository/gtypelib.c,
1325 girepository/girparser.[ch]: fix some build warnings.
1327 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1329 Bug 557405 – Use 'allow-none' consistently
1331 * docs/typelib-format.txt:
1332 * girepository/ginfo.c (g_arg_info_may_be_null):
1333 * girepository/girnode.c (g_ir_node_build_typelib):
1334 * girepository/girnode.h (struct _GIrNodeParam):
1335 * girepository/girparser.c (start_parameter):
1336 * girepository/girwriter.c (function_generate):
1337 * girepository/gtypelib.h (ArgBlob):
1339 * tests/function.gir:
1340 * tools/generate.c (write_callable_info): Use 'allow-none'
1341 consistently throughout
1343 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1345 Bug 557092 – Callback annotations not used
1347 * giscanner/transformer.py (_create_callback): use annotations
1349 * tests/scanner/annotation.h
1350 * tests/scanner/annotation-1.0-expected.gir: add tests
1352 2008-10-21 Colin Walters <walters@verbum.org>
1354 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1355 uncommented parameters.
1358 2008-10-21 Colin Walters <walters@verbum.org>
1360 * girepository/girepository.c: Ensure that when doing an unversioned
1361 require, we prefer items earlier in the search path to later ones.
1363 2008-10-21 Owen Taylor <otaylor@redhat.com>
1365 * giscanner/transformer.py: For string parameters allow transfer annotation
1366 to override the standard automatic guessing based on 'const'.
1368 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1370 Bug 557241 – "throws" flag for functions
1372 * tests/scanner/drawable-1.0-expected.gir,
1373 tests/scanner/drawable-injected-1.0-expected.gir,
1374 tests/scanner/drawable.[ch]: add simple test for throwing
1375 function (has GError ** as last argument)
1377 * giscanner/ast.py: add a 'throws' flag to Function
1378 * giscanner/glibtransformer.py: if a function's last paramerter is
1379 a GError, set the 'throws' flag and remove that parameter
1380 * giscanner/girwriter.py: write out the 'throws' attribute
1381 * giscanner/girparser.py: support parsing the 'throws' attribute
1383 * tests/repository/gitestthrows.c: add a simple test to check the
1384 throws flag in a typelib and invoke the function
1386 * girepository/ginfo.c, girepository/girnode.[ch],
1387 girepository/girnode.h, girepository/girparser.c,
1388 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1390 * girepository/ginvoke.c: if a function throws, add a GError as last
1391 arguments, and propagate the error to the invoker.
1393 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1395 * giscanner/transformer.py (_create_parameters): Warn if we see
1396 annotations for unknown parameters. If .h and .c files name
1397 parameters differently, the annotations may be lost.
1399 2008-10-21 Johan Dahlin <johan@gnome.org>
1401 Bug 556358 - don't use libtool internals
1403 * giscanner/Makefile.am:
1404 * giscanner/libtoolimporter.py:
1405 * giscanner/sourcescanner.py:
1406 * giscanner/utils.py:
1407 Add a python meta importer and remove a libtool symlink hack.
1409 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1411 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1412 and --add-include-path appropriately when invoking the scanner.
1413 * tests/types/Makefile.am (%typelib): Likewise.
1415 2008-10-20 Colin Walters <walters@verbum.org>
1417 Bug 556777 - validate properties
1419 * giscanner/transformer.py: Add option to throw on unknown types.
1420 * giscanner/glibtransformer.py: Use it on properties.
1421 * tests/*: Add a test.
1423 2008-10-20 Colin Walters <walters@verbum.org>
1425 * giscanner/glibast.py: Also register g variants of
1426 default_array_types. This is not beautiful, but
1427 good alternatives aren't easy to come by.
1428 This fixes gchar ** parsing.
1430 2008-10-20 Colin Walters <walters@verbum.org>
1432 * docs/typelib-format.txt, girepository/gtypelib.h:
1433 Take a bit from ObjectInfo to represent abstract flag.
1434 * giscanner/cgobject.py: Expose g_type_get_flags.
1435 * girepository/girepository.h: Add accessor.
1436 * girepository/ginfo.c: Implement it.
1437 * giscanner/ast.py: Add is_abstract flag to generic
1439 * giscanner/glibast.py: Use it.
1440 * giscanner/girwriter.py: Write it.
1441 * girepository/girparser.c: Parse it.
1444 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1446 * giscanner/girparser.py (_parse_function): don't lose
1447 'transfer-ownership' attributes when injecting, check for the
1450 2008-10-19 Johan Dahlin <johan@gnome.org>
1452 * giscanner/scannerlexer.l: Parse and ignore __asm.
1454 2008-10-19 Colin Walters <walters@verbum.org>
1456 * giscanner/girparser.py: Parse array length= to ensure
1457 it doesn't get lost from --inject.
1459 2008-10-17 Colin Walters <walters@verbum.org>
1461 Bug 556795 - char ** regression
1463 * giscanner/transformer.py: Fix parsing of ctypes, add some
1464 comments about what's going on.
1465 * tests/*: Add a test for char **.
1467 2008-10-17 Colin Walters <walters@verbum.org>
1469 Bug 556783 - change namespace handling to be more consistent
1471 * giscanner/transformer.py: Eliminate usage of
1472 strip_namespace_object. We now treat --namespace as the default
1473 --strip-prefix; however, if --strip-prefix is specified it
1474 overrides --namespace. This applies to everything except function
1475 names, where we do also strip the namespace.
1476 * giscanner/glibtransformer.py: Remove usage of
1477 strip_namespace_object.
1479 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1480 --namespace and --strip-prefix.
1482 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1484 Bug 556732 – generate gir files consistently
1486 * girepository/girparser.c (start_parameter):
1488 * tests/invoke/testfns-1.0.gir:
1489 * tools/generate.c (write_callable_info): write
1490 'transfer-ownership' attribute consistently with both
1491 return-value and parameter elements
1493 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1495 Bug 556732 – generate gir files consistently
1497 * tools/generate.c (write_callable_info): write 'direction'
1498 attribute only if other than 'in' to be consistent with
1501 * tests/object.gir: remove direction="in" which is the default
1503 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1505 Bug 556732 – generate gir files consistently
1507 * giscanner/ast.py (Field): add readable and writable properties
1508 * giscanner/girparser.py (_parse_field): copy 'readable' and
1509 'writable' attributes
1510 * giscanner/transformer.py (_create_member): create fields as
1512 * giscanner/glibtransformer.py (_introspect_object,
1513 _pair_class_struct): make object instance and class fields
1515 * giscanner/girwriter.py (_write_field):
1516 * tools/generate.c (write_field_info): write field 'readable'
1517 and 'writable' attributes only if non-default (read-only)
1518 * girepository/girparser.c (start_field): in the absence of
1519 attributes assume fields are read-only
1521 * tests/struct.gir: remove redundant readable="1" from fields
1522 * tests/scanner/foo-1.0-expected.gir:
1523 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1524 all record and union fields
1526 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1528 Bug 556732 – generate gir files consistently
1530 * giscanner/girwriter.py (_write_property): write properties
1531 'construct' attribute if set
1532 * tools/generate.c (write_property_info): write properties
1533 'readable' and 'writable' attributes only if non-default
1534 * tests/object.gir: add writable="0"
1535 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1537 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1539 * gir/glib-2.0.c: added annotations
1541 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1543 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1546 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1548 Bug 556610 – giscanner/girparser.py drops parameter options
1550 * tests/scanner/drawable-injected-1.0-expected.gir,
1551 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1552 * giscanner/ast.py: allow Parameter to take options in the constructor
1553 * giscanner/girparser.py: parse parameter options (transfer,
1554 direction, allow-none)
1556 2008-10-16 Colin Walters <walters@verbum.org>
1558 Bug 556185 - segfault on g_callable_info_get_return_type
1560 Initial patch from John Ehresman.
1562 * tests/repository/*: Add a test using
1563 g_callable_info_get_return_type. Instead of casting a
1564 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1565 to call g_type_info_get_interface.
1567 2008-10-16 Colin Walters <walters@verbum.org>
1569 Bug 556579 - union and struct name misresolved
1571 * giscanner/transformer.py: The calls to _resolve_type_name
1572 for struct/union names was a legacy holdover from when type
1573 resolution had multiple phases. Now it's actively harmful
1574 since we might pull in an identical name from another
1578 2008-10-16 Colin Walters <walters@verbum.org>
1580 Bug 556432 - transfer annotations and defaults
1582 * giscanner/transformer.py: Canonicalize type
1583 after removing *, not before. This ensures that
1584 guchar* is transformed to 'uint8'.
1585 Add some comments here.
1586 * giscanner/glibtransformer.py: Add _adjust_transfer
1587 phase for tweaking GObject transfers.
1590 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1592 * configure.ac: enable bunch of gcc warning CFLAGS
1594 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1596 Bug 556543 – reduce compiler warnings
1598 * girepository/ginfo.c:
1599 * girepository/girepository.c (register_internal,
1600 count_interfaces, find_interface, find_namespace_version,
1601 parse_version, g_irepository_require):
1602 * girepository/girmodule.c (g_ir_module_build_typelib):
1603 * girepository/girnode.c (init_stats, dump_stats,
1604 _g_irnode_init_stats, _g_irnode_dump_stats,
1605 g_ir_node_can_have_member):
1606 * girepository/girparser.c (firstpass_end_element_handler,
1607 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1608 start_alias, start_type, end_type_top, parse_include, cleanup,
1610 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1611 * giscanner/giscannermodule.c (directive_get_options,
1612 type_get_child_list):
1613 * giscanner/scannerlexer.l (parse_gtkdoc):
1614 * giscanner/scannerparser.y (ctype_free):
1615 * giscanner/sourcescanner.c:
1616 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1617 * tests/types/gitesttypes.c:
1618 * tools/compiler.c (main):
1619 * tools/generate.c (write_repository): Remove unused variables
1620 and code, add missing includes, declarations and case
1623 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1625 Bug 556541 – access union members through UnionBlob rather than
1628 * girepository/ginfo.c (g_union_info_find_method): access union
1629 members through UnionBlob rather than StructBlob
1631 2008-10-15 Colin Walters <walters@verbum.org>
1633 Bug 556331 - clean up includes handling
1635 * tools/g-ir-scanner: Rework command line arguments; now we take
1636 --add-include-path and --include separately.
1637 * giscanner/girwriter.py: Separate name= and version= in include
1639 * giscanner/ast.py: Add Include type.
1640 * giscanner/transformer.py: Cleanups to register_include now that
1641 we don't need to handle mixed filenames and relative arguments.
1642 * girepository/girparser.c: Parse name and version separately;
1643 this fixes a bug as a side effect where we weren't resolving
1644 through aliases for basic types.
1645 * girepository/girepository.c: Fix format string args.
1646 * gir/Makefile.am: Update.
1649 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1651 Bug 556434 – unhandled interface/object/... member types
1653 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1654 g_ir_node_build_typelib): Check all
1655 interface/object/boxed/struct/union members are processed and
1656 abort if they are not. (Mostly callbacks in structs, but also
1657 fields in interfaces.)
1659 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1661 * a/girepository/girnode.c (g_ir_node_build_members,
1662 g_ir_node_build_typelib): refactor common code for processing
1663 members to a function
1665 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1667 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1668 transformation is lossless (it's not)
1670 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1672 * tests/Makefile.am: fix tests to compare xml to xml instead of
1673 typelib to xml, and stop on error
1675 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1677 * tools/generate.c (write_type_name, write_type_info,
1678 write_type_info, write_object_info, write_object_info,
1679 write_interface_info, write_error_domain_info): reduce code
1682 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1684 Bug 556174 – parse types for lists etc.
1686 * girepository/girparser.c (end_type_recurse):
1688 * tools/generate.c (write_type_info, write_field_info,
1689 write_callable_info, write_callable_info, write_constant_info,
1690 write_property_info): use nested <type>s for lists and hashes
1692 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1695 * tests/object.gir: remove trailing whitespace from inside
1696 elements to match g-ir-generate output
1698 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1700 * tools/generate.c (xml_printf): quote printf arguments so that
1701 we don't generate invalid XML by writing unescaped double quotes
1702 and such in attributes
1704 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1706 * tools/generate.c (write_field_info, write_callable_info,
1707 write_function_info, write_callback_info, write_struct_info,
1708 write_constant_value, write_signal_info, write_vfunc_info,
1709 write_object_info, write_interface_info, write_union_info,
1710 write_repository): remove unused indent parameters, xmlwriter
1711 keeps track of necessary indentation
1713 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1715 * tools/generate.c (xml_element_new, xml_element_free,
1716 xml_start_element, xml_end_element, xml_end_element_unchecked,
1717 xml_open, xml_close): Keep track of generated XML tree and
1718 handle indentation and closing tags properly.
1719 (write_field_info, write_callable_info, write_function_info,
1720 write_callback_info, write_struct_info, write_value_info,
1721 write_constant_info, write_enum_info, write_signal_info,
1722 write_vfunc_info, write_property_info, write_object_info,
1723 write_interface_info, write_error_domain_info, write_union_info,
1724 write_repository): Use xml_start_element and xml_end_element to
1727 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1729 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1730 (write_type_name, write_type_info, write_field_info,
1731 write_callable_info, write_function_info, write_callback_info,
1732 write_struct_info, write_value_info, write_constant_value,
1733 write_constant_info, write_enum_info, write_signal_info,
1734 write_vfunc_info, write_property_info, write_object_info,
1735 write_interface_info, write_error_domain_info, write_union_info,
1736 write_repository): wrap all FILE access to go through simple xmlwriter
1738 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1740 Bug 556400 – Fails to build on OS X 10.4
1742 * configure.ac: check for functions backtrace and backtrace_symbols
1743 * girepository/girparser.c (backtrace_stderr): Comment out
1744 implementation if the functions are not available.
1745 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1746 directory for better portability
1748 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1750 Bug 556433 – assume direction = out for int * parameters
1752 * giscanner/ast.py: define a list of types for which, if passed as
1753 reference, we assume a default direction of 'out'
1754 * giscanner/transformer.py: if a type has type pointer to one of the
1755 previously defined types, and no direction is set, assume out.
1756 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1758 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1760 * tests/scanner/annotation.c: fixed a few copy-paste errors
1762 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1764 Bug 556323 – transfer-ownership is wrong for functions returning const
1767 * giscanner/transformer.py: check for a const string as return value,
1768 not just const char*. Suggested by Colin Walters
1769 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1771 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1773 * girepository/ginfo.c, girepository/girepository.h: add
1774 g_union_info_find_method
1776 2008-10-14 Colin Walters <walters@verbum.org>
1778 * tests/repository/Makefile.am: Reenable repo test.
1779 * tests/repository/gitestrepo.c: Prepend search
1780 path for $(top_builddir)/gir dir so that we don't
1781 require installation for "make check" to pass.
1783 2008-10-13 Jürg Billeter <j@bitron.ch>
1785 * giscanner/glibtransformer.py:
1786 * tests/scanner/annotation-1.0-expected.gir:
1787 * tests/scanner/drawable-1.0-expected.gir:
1788 * tests/scanner/foo-1.0-expected.gir:
1789 * tests/scanner/utility-1.0-expected.gir:
1791 Support fields in GObject structs
1793 2008-10-13 Jürg Billeter <j@bitron.ch>
1795 * giscanner/ast.py: add signed integer and off_t to type_names
1797 2008-10-12 Jürg Billeter <j@bitron.ch>
1799 * giscanner/girparser.py: Parse bits attribute of fields
1801 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1803 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1804 * tests/repository/gitestrepo.c (main): instantiate
1805 'GCancellable' to ensure the GType is registered before using
1808 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1810 * giscanner/girparser.py: actually add the parsed constant nodes
1812 2008-10-12 Colin Walters <walters@verbum.org>
1814 * girepository/girepository.c: Don't cast DirEntry to Blob,
1815 actually look it up by offset.
1817 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1819 * giscanner/girparser.py: parse constant nodes in gir files
1821 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1823 * giscanner/transformer.py: prefix for constants have an underscore,
1824 so remove them as if they were functions, not objects.
1826 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1828 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1831 2008-10-12 Colin Walters <walters@verbum.org>
1833 Initial patch from Jani Monoses.
1835 * girepository/gtypelib.c: Fix inverted test for success
1838 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1840 * tools/generate.c (write_callable_info): use "transfer-ownership"
1841 attribute for return values
1843 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1845 * tools/generate.c (write_callable_info): move "transfer" and
1846 "null-ok" attributes from <function> to <return-value> element
1848 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1850 * girepository/girparser.c (start_return_value): handle
1851 "transfer-ownership" attribute
1853 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1855 * girepository/girparser.c (parse_param_transfer):
1856 * tools/generate.c (write_callable_info): use "container" for
1857 container/shallow ownership transfer (not "shallow")
1859 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1861 * girepository/girparser.c (parse_param_transfer,
1862 start_parameter): Refactor handling of transfer=none/shallow/full
1863 to separate function
1865 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1867 Bug 556048 – Crash in g_irepository_find_by_gtype
1869 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1870 * girepository/girepository.c (find_interface): Fix
1871 find_by_gtype case to get the type name from right offset
1873 2008-10-12 Jürg Billeter <j@bitron.ch>
1875 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1878 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1880 * girepository/gtypelib.h (RegisteredTypeBlob): make
1881 'unregistered' one bit wide as everywhere else
1883 2008-10-12 Jürg Billeter <j@bitron.ch>
1885 * giscanner/glibtransformer.py:
1886 * tests/scanner/annotation-1.0-expected.gir:
1887 * tests/scanner/drawable-1.0-expected.gir:
1888 * tests/scanner/drawable.h:
1889 * tests/scanner/foo-1.0-expected.gir:
1890 * tests/scanner/utility-1.0-expected.gir:
1892 Readd class records as workaround to not break Gtk typelib
1894 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1896 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1898 2008-10-12 Jürg Billeter <j@bitron.ch>
1900 * giscanner/glibtransformer.py: Don't generate <record> elements
1902 * tests/scanner/*: Update test cases
1904 2008-10-11 Colin Walters <walters@verbum.org>
1906 Bug 552858: versioning
1908 This is a big patch. You should probably remove your installation
1911 * docs/typelib-format.txt: Add nsversion entry which holds
1912 version of namespace.
1913 * girepository/girepository.h: Add 'version' parameter to
1914 g_irepository_require. This may be NULL. Normally
1915 bindings should pass an explicit version though.
1916 * girepository/girepository.c: Lots of infrastructure to
1917 support versioning. Add some more documentation. Disallow
1918 some usage of NULL namespaces.
1919 * girepository/girmodule.c: Add version parameter.
1920 * girepository/gtypelib.c: Update header size.
1921 * giscanner/ast.py: Add version to Namespace.
1922 * giscanner/girparser.py: Parse version attribute from
1923 XML, pass to Namespace.
1924 * giscanner/girwriter.py: Write out version parameter.
1925 * giscanner/transformer.py: Clean up include registration.
1926 * tests/*: Add version attribute.
1927 * tests/invoke/invoke.c: Don't try looking up test before
1928 it's loaded in repository.
1929 * tools/generate.c: Output version parameter.
1930 * gir/Makefile.am: Add 2.0 version to .gir files.
1932 2008-10-11 Colin Walters <walters@verbum.org>
1934 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1935 if we have mismatched parens.
1937 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1939 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1940 on 'members' variable.
1942 2008-10-11 Colin Walters <walters@verbum.org>
1944 Bug 555947 - update annotations syntax
1946 * giscanner/ast.py: Default to None for transfer. Remove
1947 default transfers for container types; we require this to
1949 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1950 'full' to match repository.
1951 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1952 * giscanner/transformer.py: Update for new annotations syntax.
1955 2008-10-11 Johan Bilien <jobi@litl.com>
1957 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1959 2008-10-11 Johan Bilien <jobi@litl.com>
1961 Bug 552347: Parse #defines constants
1963 * girepository/gtypelib.c: update the list of value_size
1964 with recently defined type tags
1965 * giscanner/scannerparser.y: brought back parsing of #defined, as
1966 present in older version
1967 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1968 * giscanner/girwriter.py: write out constant tags in the gir
1969 * giscanner/sourcescanner.py: add accessor for const_string
1970 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1973 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1975 Bug 555946: Install a test module exercising all types, transfer
1980 * tests/types/*: Add and install a test module that has functions
1981 accepting and returning most of the basic types to enable bindings
1982 implementors to more easily test their type conversion routines.
1984 2008-10-11 Jürg Billeter <j@bitron.ch>
1986 Bug 552374: Const strings should be identified in the gir.
1988 * giscanner/transformer.py: support string memory management
1989 * tests/scanner/foo.h: use char * and const char *
1990 * tests/scanner/foo-expected.gir: test that
1992 2008-10-11 Johan Dahlin <johan@gnome.org>
1994 * giscanner/girparser.py:
1995 Also parse enums which are not glib types.
1997 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1999 Bug 552370: add one more test for unsigned as a type, not as
2002 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
2003 * test/scanner/foo.h: add function which uses unsigned as a type.
2004 * test/scanner/foo-expected.gir: test that.
2006 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
2008 Bug 555712: Struct and union issues
2010 * giscanner/scannerparser.y (struct_declarator): Use information
2011 provided about the bit width of a field.
2012 * giscanner/transformer.py (Transformer._create_member): Pass the
2013 symbol's const_int member to the created field (it represents the
2015 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
2016 field attribute, if present.
2017 * giscanner/ast.py (Field): Add 'bits' member, specifying the
2018 width in bits of the field (only relevant for bitfields).
2021 * giscanner/transformer.py (Transformer._create_typedef_struct)
2022 (Transformer._create_typedef_union): Add calls to _create_struct()
2023 and _create_union(), respectively. This causes the scanner to
2024 generate output for fields of struct and union typedefs.
2027 2008-10-11 Jürg Billeter <j@bitron.ch>
2029 Bug 552370: unsigned not scanned properly
2031 * giscanner/scannerparser.y: combine basic types such as unsigned
2032 int and long long when scanning
2033 * tests/scanner/foo-expected.gir:
2034 * tests/scanner/foo.c: (foo_test_unsigned):
2035 * tests/scanner/foo.h: test that
2037 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2039 Bug 554854: The --typelib-xml and --inject options should reuse
2040 giscanner parser/writer.
2042 * giscanner/ast.py: add constructor list to Struct and Union.
2043 Add new param in Return's contructor to define transfer.
2044 * giscanner/girparser.py: several additions to the parser in order
2045 to have parsing all nodes of the gir xml files.
2046 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
2047 and writer in --inject and --typelib-xml options.
2048 * giscanner/xmlwriter.py: ignore empty attributes instead of
2049 raising an error as this basically exposes a bug in GIRParser.
2050 This should be reverted as soon as the parser is fixed.
2052 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2054 Bug 552376: scanner generates wrong names for enum members when
2055 there's no defined gtype.
2057 * giscanner/utils.py (strip_common_prefix): Always strip common
2058 prefix exactly up to the last "_", and not beyond.
2059 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
2060 here is that the first character after the last '_' should should be
2061 the same as the character in the same position on the type name.
2062 * tests/scanner/foo-expected.gir: test that
2064 2008-10-10 Lucas Rocha <lucasr@gnome.org>
2066 Bug 555293: append library_paths to LPATH env variable to work
2067 around a bug in find_library when using ldconfig.
2069 * tools/g-ir-scanner (main): ditto.
2071 2008-10-09 Lucas Rocha <lucasr@gnome.org>
2073 * girepository/girepository.c (register_internal): fix regression on
2074 invoke test case by making sure we load the global module in the
2075 typelib when dealing with inline typelibs.
2076 * girepository/gtypelib.c: a couple of coding style fixes.
2078 2008-10-06 Lucas Rocha <lucasr@gnome.org>
2080 Bug 555294: Add support for multiple shared libraries per typelib.
2082 * girepository/ginvoke.c (g_function_info_invoke),
2083 girepository/ginfo.c(g_registered_type_info_get_g_type): use
2084 g_typelib_symbol instead of g_module_symbol.
2085 * girepository/girepository.h: remove g_typelib_set_module and add
2087 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
2088 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
2089 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
2090 modules instead of just one. The symbol lookup is now abstracted
2091 behind g_typelib_symbol which tries to find the passed symbol name in
2093 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
2094 and write shared_library attribute as a comma-separated list of libs.
2096 2008-10-06 Colin Walters <walters@verbum.org>
2098 * giscanner/transformer.py: Parse length= annotation as
2099 a parameter name, not a raw int.
2102 2008-10-03 Colin Walters <walters@verbum.org>
2104 Bug 551744: Non-GObject types aren't aggregating ctors and methods
2106 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
2108 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
2112 2008-10-03 Colin Walters <walters@verbum.org>
2114 Bug 554576: scan problem with ev_selection_render_selection()
2116 * giscanner/transformer.py: Only do type resolution once we've
2117 scanned all types. What could happen before is that we'd strip
2118 the namespace from local type "EvSelection" => Selection, and
2119 then later pull a "Selection" from some other namespace because
2120 we hadn't yet seen the local EvSelection. This could come
2121 down to hash table ordering and other things so not easy
2122 to write a test for.
2124 2008-10-03 Lucas Rocha <lucasr@gnome.org>
2126 * giscanner/girwriter.py (_parser_member): fix the last parameter of
2127 GLibEnumMember constructor as it should be the enum member nick.
2129 2008-10-02 Colin Walters <walters@verbum.org>
2131 Bug 552961: remove this parameter for methods
2133 * giscanner/glibtransformer.py: Delete this parameter; it is
2135 * girepository/ginvoke.c: Insert this parameter for methods.
2136 * girepository/gtypelib.c: Remove no longer needed verification of
2137 method this parameter.
2140 2008-09-30 Dan Winship <danw@gnome.org>
2142 Bug 554490: g-ir-scanner gets confused by '\\'
2144 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
2145 backslashes so it will correctly parse '\\' and "\\"
2147 * tests/scanner/annotation.c: add a use of '\\' to make sure that
2150 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
2152 2008-10-02 Colin Walters <walters@verbum.org>
2154 bug 552393: Note variadic functions
2156 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
2157 to use parameter_list directly.
2158 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
2159 * giscanner/ast.py: Add Varargs type.
2160 * giscanner/transformer.py: Check for ellipsis symbol, transform
2162 * girepository/girnode.h: Add varargs flag to in-memory nodes.
2163 Parse varargs functions, but filter them out before we start
2164 compiling the typelib.
2166 2008-10-02 Colin Walters <walters@verbum.org>
2168 Bug 554632: type tag for GType
2170 * girepository/girepository.h, girepository/girepository.c:
2171 Add type tag for GType - it's a special type we don't want
2172 to resolve to just "long".
2173 * docs/typelib-format.txt: Update.
2174 * girepository/girparser.c: Parse it.
2175 * giscanner/glibtransformer.py: Ensure we don't put GType in
2177 * tools/generate.c: Remove hardcoded type list.
2180 2008-09-30 Dan Winship <danw@gnome.org>
2182 Bug 554521: scanner generates wrong names for enum members with
2183 full type name prefix
2185 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
2186 right amount when the entire "first" string is a prefix of
2189 * tests/scanner/foo.h (FooEnumFullname):
2190 * tests/scanner/foo-expected.gir: test that
2192 2008-09-29 Colin Walters <walters@verbum.org>
2194 Bug 552380: Array parameters should be marked in the gir
2196 * giscanner/ast.py: Default char** to utf8[], and guchar* to
2197 uint8[]. Add Array, List, and Map subclasses of Type;
2198 these types can be generic. Return transfer defaults
2199 to true if return value is string or container type.
2200 Delete Sequence type.
2201 * giscanner/scannerlexer.l: Syntax change for annotations;
2202 use <> since it's more readable.
2203 * giscanner/girwriter.py: Write out these changes.
2204 * giscanner/girparser.py: Parse them.
2205 * giscanner/transformer.py: Have a defined set of
2206 both list and map types. When creating a type,
2207 check if the ctype we've parsed is one of them,
2208 if so create a container type subclass as appropriate.
2209 * girepository/girparser.c: Parse in generic types.
2212 2008-09-27 Colin Walters <walters@verbum.org>
2214 * tools/g-ir-scanner: Add --inject option.
2216 2008-09-25 Colin Walters <walters@verbum.org>
2218 Remove non-repository types from GIR
2220 * giscanner/ast.py: The canonical name is 'utf8', not
2222 * giscanner/glibast.py: A few more glib type mappings.
2223 * girepository/girparser.c: We only parse repository types.
2224 * tests/*.gir: Update.
2226 2008-09-23 Colin Walters <walters@verbum.org>
2228 Bug 552566: Add time_t type
2230 We need a type for time_t since it's special in C, and just
2231 mapping it to long precluded bindings from handling it
2234 2008-09-19 Colin Walters <walters@verbum.org>
2236 Bug 552390: Handle capitialization like "DBus" more robustly
2238 The to_underscores function was designed for use against prefixed
2239 names; we need a separate function which will convert names like
2240 DBusFoo into dbus_foo, not d_bus_foo.
2242 2008-09-19 Colin Walters <walters@verbum.org>
2244 Add check to make sure we're not hitting out unresolved types
2246 Validate the "this" argument for methods
2248 Remove heuristic matching of methods to classes based on prefix
2250 It was a broken hack that dated from when we handled underscoring
2251 and capitalization conventions less well.
2253 2008-09-18 Colin Walters <walters@verbum.org>
2255 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2257 On Darwin, the suffix for installed shared libraries (.dylib) is
2258 different from loadable modules (.so). We use a bit of magic shell
2259 script from Behdad Esfahbod to figure out the right suffix.
2261 2008-09-15 Johan Dahlin <johan@gnome.org>
2263 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2264 a wrapper for type_qualifier as well.
2266 2008-09-15 Colin Walters <walters@verbum.org>
2268 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2270 * giscanner/ast.py: Add deprecation attributes.
2271 * giscanner/girwriter.py: Write out deprecation data.
2272 * girepository/girparser.c: Relax parsing; deprecated
2273 attribute now includes freeform string.
2274 * giscanner/scannerlexer.l: Parse Deprecated.
2275 * giscanner/transformer.py: Look for deprecated attribute
2277 * tests/scanner/*: Add a Deprecated test.
2279 2008-09-14 Tor Lillqvist <tml@novell.com>
2281 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2283 2008-09-14 Colin Walters <walters@verbum.org>
2285 * giscanner/glibtransformer.py: Ignore functions with
2288 2008-09-12 Colin Walters <walters@verbum.org>
2290 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2292 2008-09-12 Colin Walters <walters@verbum.org>
2294 * giscanner/ast.py: Bind pid_t to INT for vte.
2296 2008-09-12 Colin Walters <walters@verbum.org>
2298 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2299 * giscanner/glibast.py: Avoid overwriting ctype.
2300 * giscsanner/transformer.py: Try resolving types using the GType names.
2302 2008-09-12 Colin Walters <walters@verbum.org>
2304 * giscanner/minixpath.py: Code to run an "XPath"
2305 assertion against an XML tree, taken from
2306 gir-repository/gir/tests.py.
2307 * giscanner/Makefile.am: Ship it.
2308 * tools/g-ir-scanner: Add --xpath-assertions option.
2309 * gir/GLib-assertions.txt: Add a few assertions.
2310 * gir/Makefile.am: Run them.
2312 2008-09-11 Colin Walters <walters@verbum.org>
2314 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2316 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2317 prefix if it ends with _. Tweak callback stripping to determine
2318 based on presence of _ whether we need to use strip_namespace_func
2319 or strip_namespace_object.
2321 2008-09-09 Owen Taylor <otaylor@redhat.com>
2323 * docs/typelib-format.txt: Wether => Whether
2325 2008-09-08 Colin Walters <walters@verbum.org>
2327 * girepository/girparser.c: Default to "readable" for properties.
2328 * giscanner/ast.py: Add readable, writable etc.
2329 * giscanner/girwriter.py: Writ them.
2330 * giscanner/glibtransformer.py: Inspect them.
2333 2008-09-07 Colin Walters <walters@verbum.org>
2335 * giscanner/cgobject.py: Add comment.
2337 2008-09-07 Colin Walters <walters@verbum.org>
2339 * giscanner/cgobject.py: Also call g_thread_init.
2341 2008-09-07 Colin Walters <walters@verbum.org>
2343 * giscanner/transformer.py: Fix regression by not
2344 stripping prefix before stripping namespace for unions
2347 2008-09-06 Colin Walters <walters@verbum.org>
2349 * giscanner/transformer.py: If a namespace contains
2350 multiple caps, try stripping both gnomekeyring_ and
2353 2008-09-07 Johan Dahlin <johan@gnome.org>
2355 Bug 551162 – giscanner does not recognize asm and __asm__
2356 * giscanner/scannerlexer.l:
2357 Patch by Jani Monoses.
2359 2008-09-06 Colin Walters <walters@verbum.org>
2361 * girepository/girnode.c: Allow gtype_name
2362 and gtype_init in struct and union.
2363 * girepository/girparser.c: Parse glib:
2364 boxed bits for both structure and union.
2365 * girepository/gtypelib.c: Don't barf
2366 if structure is boxed.
2367 * giscanner/girparser.py: Parse new XML
2369 * giscanner/girwriter.py: Write out new
2371 * giscanner/glibast.py: Define new classes
2372 which are both Boxed and Struct/Union, as
2373 well as an "Other" for everything else.
2374 * giscanner/glibtransformer.py: Handle
2375 boxed types specially; we try to merge
2376 them with a struct/union if one exists,
2377 otherwise fall back to generic boxed.
2379 * tools/generate.c: Write out new format.
2381 2008-09-06 Johan Dahlin <johan@gnome.org>
2383 * giscanner/grealpath.h: Include stdlib.h
2385 * docs/g-ir-generate.1: Remove leading %
2387 2008-09-01 Colin Walters <walters@verbum.org>
2389 * girepository/girparser.c: Look at c:type to determine
2390 whether or not an item is a pointer.
2392 2008-09-01 Johan Dahlin <johan@gnome.org>
2394 * tests/scanner/Makefile.am:
2395 Set PYTHONPATH so the scanner can run
2396 even if you didn't install anything.
2398 2008-09-01 Johan Dahlin <johan@gnome.org>
2401 Post-release version bump
2404 2008-09-01 Johan Dahlin <johan@gnome.org>
2408 2008-08-31 Colin Walters <walters@verbum.org>
2410 * giscanner/glibtransformer.py: Quiet info
2413 2008-08-31 Johan Dahlin <johan@gnome.org>
2416 Bump version to 0.5.0
2418 2008-08-31 Colin Walters <walters@verbum.org>
2420 * giscanner/glibtransformer.py: Follow aliases to ensure
2421 we don't get a constructor returning a basic type.
2422 * giscanner/transformer.py: Add function to follow aliases.
2425 2008-08-31 Johan Dahlin <johan@gnome.org>
2427 * giscanner/scannerlexer.l:
2428 * giscanner/scannerparser.y:
2429 * giscanner/sourcescanner.h:
2430 * giscanner/sourcescanner.py:
2431 Parse GCC extensions in the parser instead of just undeffing them
2432 in the pre-processor.
2434 2008-08-31 Johan Dahlin <johan@gnome.org>
2436 * giscanner/glibtransformer.py:
2437 Clean up a huge if. Do not add methods or constructors
2439 * giscanner/utils.py:
2440 second might be longer than first, check that.
2442 2008-08-31 Johan Dahlin <johan@gnome.org>
2447 2008-08-31 Colin Walters <walters@verbum.org>
2449 * girepository/girparser.c: Don't lose if we
2452 2008-08-31 Colin Walters <walters@verbum.org>
2454 * giscanner/glibtransformer.py: Look for libtool
2455 library in current directory
2456 * tests/scanner - Update.
2458 2008-08-30 Colin Walters <walters@verbum.org>
2460 * docs/typelib-format.txt: Add a guint32
2462 * gir/Makefile.am: Dep on Makefile
2463 * girepository/ginfo.c:
2464 * girepository/girepository.c: Clean up
2465 default typelib handling; remove global
2466 default_typelib variable. Ensure we handle
2467 NULL repository in more places.
2468 Support dependency resolution.
2469 Support lazy loading.
2470 * girepository/girepository.h: Remove
2471 g_irepository_unregister; we don't support
2472 unloading typelibs since really they're
2473 process-global. Update for lazy loading
2475 * girepository/girmodule.c: Use g_new0.
2476 Add dependencies to GirModule.
2477 * girepository/girparser.c: Parse dependencies.
2478 * girepository/gtypelib.c: Add 4 bytes for
2480 * tests/Makefile.am: Kill off gobject.gir,
2481 it conflicts with the real one.
2482 * tests/object.gir: Dep on GObject.
2483 * tools/generate.c: Take --includedir
2484 argument to say which directories to search
2485 for typelibs. Print out dependencies.
2487 2008-08-30 Colin Walters <walters@verbum.org>
2489 * giscanner/glibtransformer.py: Reduce warning noise.
2491 2008-08-29 Colin Walters <walters@verbum.org>
2493 * girepository/ginfo.c: Add some assertions regarding
2494 refcounts, just to be sure.
2495 * giscanner/glibtransformer.py: Blacklist a few more
2498 2008-08-29 Colin Walters <walters@verbum.org>
2500 * giscanner/glibtransformer.py: Blacklist a few
2501 functions that use GError oddly
2503 2008-08-29 Colin Walters <walters@verbum.org>
2505 * girepository/gtypelib.c: Don't crash if no
2508 2008-08-29 Colin Walters <walters@verbum.org>
2510 * girepository/girparser.c: Handle chains of aliases
2511 across modules by ensuring we fully qualify aliases
2514 2008-08-29 Colin Walters <walters@verbum.org>
2516 * girepository/girparser.c: Don't search aliases
2519 2008-08-29 Colin Walters <walters@verbum.org>
2521 * girepository/girparser.c: Rewrite type parsing
2522 to handle both GLib parsing case as well as correctly
2523 handling GLib.List and friends. Don't try to treat
2524 e.g. ListStore as a List.
2526 2008-08-29 Colin Walters <walters@verbum.org>
2528 * girepository/gtypelib.c: Add more context
2531 2008-08-29 Colin Walters <walters@verbum.org>
2533 * giscanner/glibtransformer.py: Add some informative
2534 logging messages in corner cases. Be sure we use
2535 the most recent node set instead of a cache
2536 when generating result set.
2537 * tests/: Remove duplicated bits in expected girs
2538 * girepository/girparser.c: Accept both List (for
2539 compiling GLib) and GLib.List (what the scanner
2542 * tools/generate.c: Generate canonical form.
2544 2008-08-29 Johan Dahlin <johan@gnome.org>
2546 * giscanner/config.py.in:
2547 Use datarootdir instead of datadir to avoid
2548 an autoconf warning.
2550 2008-08-29 Johan Dahlin <johan@gnome.org>
2554 * examples/gdk-pixbuf.gidl:
2556 Update and remove old cruft.
2558 2008-08-29 Johan Dahlin <johan@gnome.org>
2561 * docs/g-ir-compiler.1:
2562 * docs/g-ir-generate.1:
2563 * docs/g-ir-scanner.1:
2564 Add man pages for the generator and compiler.
2566 2008-08-29 Johan Dahlin <johan@gnome.org>
2568 * docs/g-ir-scanner.1: Document
2570 * giscanner/Makefile.am:
2571 * giscanner/gidlparser.py:
2572 * giscanner/gidlwriter.py:
2573 * tools/g-ir-scanner:
2574 Remove gidl support.
2576 2008-08-28 Colin Walters <walters@verbum.org>
2578 * tests/scanner/Makefile.am: Pass the right
2579 --includedir args. Add a Makefile dep.
2580 * tools/compiler.c: Pass includedirs down.
2581 * girepository/girparser.c: Actually put
2582 includedirs in context, pass down. Fix
2585 2008-08-28 Colin Walters <walters@verbum.org>
2587 * gir/Makefile.am: Use --includedir
2588 * girepository/girparser.c: Recursively parse
2589 includes to pull in aliases and expand them.
2590 We need this to avoid putting unknown names in
2592 * tools/compiler.c: Add --includedir option.
2593 * giscanner/ast.py: Map size/ssize to types
2596 2008-08-28 Tor Lillqvist <tml@novell.com>
2598 Make check now runs successfully on Windows.
2600 * tools/compiler.c (write_out_typelib): Use binary mode for output
2603 * girepository/girnode.c: Don't print NULL strings.
2605 * tests/invoke/Makefile.am
2606 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2607 convince libtool to build shared libraries.
2609 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2610 g_assert() instead of printing out expected errors.
2612 2008-08-28 Tor Lillqvist <tml@novell.com>
2614 * girepository/gtypelib.h: Change type of bitfield fields from
2615 guint to the most suitable smaller type. This makes the struct
2616 sizes match the ones on Linux that the sanity check expects when
2617 using gcc -mms-bitfields on Windows.
2619 2008-08-28 Johan Dahlin <johan@gnome.org>
2624 * giscanner/Makefile.am:
2625 * tests/Makefile.am:
2626 * tests/scanner/Makefile.am:
2627 Make distcheck pass.
2629 2008-08-27 Johan Dahlin <johan@gnome.org>
2631 * giscanner/Makefile.am:
2632 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2634 2008-08-27 Tor Lillqvist <tml@novell.com>
2636 Make g-ir-scanner work on Windows. Still problems with the typelib
2637 code. Changes okayed by jdahlin.
2639 * configure.ac: Check for Windows, set Automake conditional
2640 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2641 avoid shell quoting issues
2643 * girepository/Makefile.am: Use -no-undefined so that libtool
2644 agrees to build a shared library on Windows.
2646 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2647 Windows. Empty implementation on Windows so far.
2649 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2650 informative error message for the assertion failures. Tell also
2651 what the expected size of the struct is. Check all sizes first and
2652 fail afterwards if at least one size was different from expected.
2654 * tools/Makefile.am: Reorder libraries into proper logical
2657 * tools/generate.c: Don't include <dlfcn.h>, not used.
2659 * giscanner/Makefile.am: On Windows, link with the Python library,
2660 and install the module DLL as _giscanner.pyd. Remove the
2661 unnecessary import library and libtool library that libtool has
2664 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2665 and just skip it. Recognize also two "l" suffixes for long long
2666 constants. Recognize also __inline__.
2668 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2669 GetFullPathName(). As such, GetFullPathName() does more than the
2670 UNIX realpath(). It also changes relative paths into absolute
2671 paths. But for our purposes that shouldn't matter.
2673 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2674 Windows the file descriptor passed to us is from Python. Python
2675 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2676 uses msvcrt.dll. On Windows, file descriptors are specific to
2677 which C library is used. So we must find out what underlying OS
2678 handle corresponds to the file descriptor Python passes us, and
2679 then make that into a file descriptor valid for the C library this
2682 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2683 __attribute__ as the lexer now handles it. The definition as empty
2684 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2685 __attribute__. Close the temp file before unlinking it.
2687 * giscanner/cgobject.py: Use correct library name for the gobject
2690 * gir/Makefile.am: Must pass the full basename of the DLLs on
2691 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2692 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2693 reality they won't change, until there is a GLib 3, and then also
2694 the Unix code here needs changing.
2696 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2699 2008-08-26 Colin Walters <walters@verbum.org>
2701 * girepository/girepository.c: Search
2702 $DATADIR/girepository instead of
2703 $DATADIR/gitypelibs; this naming makes
2704 it clearer that e.g. jgir can install
2706 * gir/Makefile.am: Install there.
2708 2008-08-26 Colin Walters <walters@verbum.org>
2710 * girepository/gtypelib.c (_g_typelib_init): Also
2711 use G_MODULE_SUFFIX instead of hardcoding .so.
2713 2008-08-26 Colin Walters <walters@verbum.org>
2715 * girepository/gtypelib.c (_g_typelib_init): Free
2716 string in the right place.
2718 2008-08-26 Colin Walters <walters@verbum.org>
2720 * girepository/gtypelib.c (_g_typelib_init): Handle
2721 both .la and .so names; this works better in the
2722 uninstalled library case.
2724 2008-08-26 Johan Dahlin <johan@gnome.org>
2727 * giscanner/Makefile.am:
2728 * giscanner/cgobject.py:
2729 * giscanner/config.py.in:
2730 * giscanner/sourcescanner.py:
2731 Avoid undeffing __GNUC__, instead define
2732 __attribute__ & friends. Remove glibconfig.h hack.
2733 This makes gobject-introspection work better on
2734 MacOS X, Thanks to Richard Hult for kind help.
2736 2008-08-25 Colin Walters <walters@verbum.org>
2738 * giscanner/glibtransformer.py: Always print
2741 2008-08-25 Colin Walters <walters@verbum.org>
2743 * giscanner/glibtransformer.py: Skip over
2744 interfaces we don't know.
2746 2008-08-25 Colin Walters <walters@verbum.org>
2748 * girepository/girparser.c: Parse new implements
2749 syntax, drop gapi one.
2750 * tests/object.gir: Update.
2751 * tools/generate.c: Generate new syntax.
2753 2008-08-25 Colin Walters <walters@verbum.org>
2755 * giscanner/ast.py: Add interfaces property
2757 * giscanner/girwriter.py: Write out implemented
2759 * giscanner/glibtransformer.py: Introspect
2760 implemented interfaces.
2761 * tests/scanner/*: Make FooObject implement
2764 2008-08-25 Colin Walters <walters@verbum.org>
2766 * giscanner/glibtransformer.py: More correctly pair
2767 methods; if we have a symbol that starts with
2768 e.g. hippo_canvas look for a matching HippoCanvas
2769 class before accepting e.g. HippoCanvasImage.
2771 2008-08-24 Colin Walters <walters@verbum.org>
2773 * tools/g-ir-scanner: Filter out unknown options from
2776 2008-08-24 Colin Walters <walters@verbum.org>
2778 * giscanner/glibtransformer.py: Fail with better
2779 error if we can't find library.
2781 2008-08-24 Colin Walters <walters@verbum.org>
2783 * tools/g-ir-scanner: Use subprocess instead of
2784 commands, works on Windows and avoids the evil
2787 2008-08-24 Colin Walters <walters@verbum.org>
2789 * giscanner/glibtransformer.py: Skip over
2790 g_object_get_type from GLib trunk.
2792 2008-08-24 Colin Walters <walters@verbum.org>
2794 * girepository/girepository.c (g_irepository_require):
2795 Don't open shared library here; we already do it
2798 2008-08-24 Colin Walters <walters@verbum.org>
2800 * girepository/gtypelib.c: Add context stack so
2801 when we get an error we can print out nicely
2804 2008-08-24 Johan Dahlin <johan@gnome.org>
2806 * girepository/girparser.c (start_glib_boxed), (start_function),
2807 (start_field), (start_alias):
2808 Refactor a couple of parsing functions to be simpler to follow.
2811 2008-08-24 Johan Dahlin <johan@gnome.org>
2813 * girepository/girparser.c (start_function):
2814 Remove left-over code, checking type of function.
2816 2008-08-23 Colin Walters <walters@verbum.org>
2818 * giscanner/config.py: Define DATADIR.
2819 * giscanner/transformer.py: Look in DATADIR.
2821 2008-08-23 Colin Walters <walters@verbum.org>
2823 * girepository/gtypelib.c: Check constructor
2825 * girepository/girnode.c: Small tweaks.
2826 * girepository/ginfo.c: Calculate signature offsets
2828 * girepository/girparser.c: Remove duplicate
2830 * giscanner/glibtransformer.py: Avoid marking
2831 functions which return a basic type as
2834 2008-08-23 Colin Walters <walters@verbum.org>
2836 * girepository/girparser.c: Ignore <include>.
2837 * giscanner/girparser.py: Parse them.
2838 * giscanner/girwriter.py: Generate them.
2839 * giscanner/transformer.py: Process <include>
2840 recursively. Don't require full path for
2841 includes, look in {$XDG_DATA_DIRS}/gir.
2842 * tools/g-ir-scanner: Pass through includes.
2843 * Makefile.am: Remove extra --include
2845 * *-expected.gir: Add expected includes.
2847 2008-08-23 Johan Dahlin <johan@gnome.org>
2849 * tests/scanner/Makefile.am:
2850 * tests/scanner/annotation-expected.gir:
2851 * tests/scanner/drawable-expected.gir:
2852 Avoid duplication in the Makefile, regenerate with new
2853 namespaces (same as the filename)
2855 2008-08-22 Colin Walters <walters@verbum.org>
2857 * girepository/girnode.c: Don't hardcode integers,
2860 2008-08-22 Johan Dahlin <johan@gnome.org>
2862 * giscanner/sourcescanner.py:
2863 Check for ../gobject-introspection-1.0.pc.in to determine
2864 if we run installed or uninstalled.
2866 2008-08-22 Johan Dahlin <johan@gnome.org>
2869 * giscanner/sourcescanner.py:
2870 Send in undefs/defines via writing it directly to stdin
2871 of cpp instead of via arguments.
2873 2008-08-22 Colin Walters <walters@verbum.org>
2875 * tools/generate.c, tools/compiler.c: Default
2877 * all Makefile.am: Update.
2879 2008-08-22 Colin Walters <walters@verbum.org>
2881 * girepository/girparser.c: Pass through
2882 recursive types. Avoid overwriting errors.
2883 * giscanner/xmlwriter.py: Always write the
2885 * tests/*.gir: Adjust.
2886 * tests/scanner/Makefile.am: Build typelibs,
2887 and generate XML from those. Once we
2888 have a good diff mechanism...
2889 * tests/scanner/*-expected.gir: Add XML
2891 * tools/g-ir-scanner: Accept --typelib-xml
2893 * tools/generate.c: Better defaults for transfer.
2895 2008-08-22 Johan Dahlin <johan@gnome.org>
2899 * giscanner/Makefile.am:
2900 * giscanner/config.py.in:
2901 * giscanner/sourcescanner.py:
2902 Use the generated glibconfig.h for all scanner invokations.
2903 Rename it to glibconfig-scanner.h and install it.
2904 Add a config.py which so far contains the include dir.
2906 2008-08-22 Johan Dahlin <johan@gnome.org>
2909 Replace glibconfig.h with our own, do some replacement
2910 for CPP/C features we do not support
2912 2008-08-22 Colin Walters <walters@verbum.org>
2914 * tools/generate.c (write_callable_info): Fix unref
2917 2008-08-22 Colin Walters <walters@verbum.org>
2919 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2920 * tests/Makefile.am: Support $(DEBUG)
2921 * tools/generate.c: Do immediate close tags if no
2924 2008-08-21 Colin Walters <walters@verbum.org>
2926 * tests/scanner/drawable-expected.gir,
2927 * tests/scanner/drawable.c,
2928 * tests/scanner/drawable.h:
2931 2008-08-21 Colin Walters <walters@verbum.org>
2933 * giscanner/glibtransformer.py: Compute prefix
2934 by searching through the symbol for bits
2935 rather than going directly from ctype; this fixes
2938 2008-08-21 Colin Walters <walters@verbum.org>
2940 * giscanner/glibtransformer.py: Also try squashing
2941 underscores from namespace, fixes webkit_web_view_new.
2943 2008-08-21 Colin Walters <walters@verbum.org>
2945 * giscanner/glibtransformer.py: More ctor work,
2946 avoid having gtk_window_group_new end up under
2949 2008-08-21 Colin Walters <walters@verbum.org>
2951 * giscanner/glibtransformer.py: Much simpler approach
2952 of mapping uscored names to classes.
2953 * giscanner/utils.py: Remove unnecessary function.
2955 2008-08-21 Johan Dahlin <johan@gnome.org>
2957 * girepository/girepository.c (g_irepository_require):
2958 Plug memory leak and avoid using freed memory.
2959 Resolve the whole module path, here as well.
2961 2008-08-21 Colin Walters <walters@verbum.org>
2963 * giscanner/glibtransformer.py: Look up all permutations
2964 of class names when scanning methods/ctors based on
2965 the prefix instead of using the return value. This
2966 associates gtk_window_new with the right class.
2968 2008-08-21 Colin Walters <walters@verbum.org>
2970 * girepository/girmodule.c (g_ir_module_build_typelib):
2971 Revert change to increment header_size; we do that in
2974 2008-08-21 Colin Walters <walters@verbum.org>
2976 * girepository/girnode.c (write_string): Tweak to
2977 use UINT instead of INT. Not likely to matter.
2978 * girepository/girmodule.c (g_ir_module_build_typelib):
2979 Add to header_offset as well for header strings
2980 to match what write_string does.
2981 * girepository/gtypelib.c: Replace is_name with
2982 validate_name, which more strongly validates and
2983 handles errors in a better way. Update all callers.
2984 * giscanner/glibtransformer.py: Handle constructors
2987 2008-08-21 Johan Dahlin <johan@gnome.org>
2989 * gir/Makefile.am (typelibs_DATA): Build and
2990 install the Gio.typelib too
2992 * girepository/gtypelib.c (_g_typelib_init):
2993 Use g_module_build_path to resolve the shlib name
2995 2008-08-21 Colin Walters <walters@verbum.org>
2997 * gir/Makefile.am: CLEANFILES typelibs too.
2999 2008-08-21 Johan Dahlin <johan@gnome.org>
3001 * giscanner/glibtransformer.py:
3002 Do not send .la files through find_library.
3004 2008-08-21 Colin Walters <walters@verbum.org>
3006 * girepository/girparser.c (g_irepository_require):
3007 Fix one small leak in error case.
3009 2008-08-21 Johan Dahlin <johan@gnome.org>
3012 Parse glibconfig.h as well and install the compiled
3015 2008-08-21 Johan Dahlin <johan@gnome.org>
3018 * giscanner/glibtransformer.py:
3019 * tools/g-ir-scanner:
3020 Do not hard-core library names in the Makefile, reuse
3021 ctypes find_library instead.
3023 2008-08-21 Johan Dahlin <johan@gnome.org>
3025 * girepository/girparser.c (resolve_aliases):
3026 Remove compilation warnings
3028 2008-08-21 Johan Dahlin <johan@gnome.org>
3030 * girepository/girepository.c (g_irepository_require):
3031 Rewrap and fix double free bug by leaking a bit.
3033 2008-08-20 Colin Walters <walters@verbum.org>
3035 * girepository/girepository.c: Add new function
3036 g_irepository_get_typelib_path which tells
3037 us from where we loaded a namespace.
3039 2008-08-20 Colin Walters <walters@verbum.org>
3041 * tests/scanner/*-expected.gir: Adjust for
3042 added shared-library.
3043 * giscanner/giwriter.py: Make pylint happy.
3045 2008-08-20 Colin Walters <walters@verbum.org>
3047 * girepository/girmodule.c (g_ir_module_build_typelib):
3048 Calculate size correctly, avoid use-after-free.
3050 2008-08-20 Colin Walters <walters@verbum.org>
3052 * girepository/girepository.c: Remove
3053 g_irepository_register_file in favor of
3054 g_irepository_require. There are two
3055 possible deployment scenarios for typelibs:
3056 First, separate in $DATADIR/gitypelibs/. Second,
3057 they may be embedded in shlibs. However since
3058 the first is now the normal case, the API is
3059 optimized around it.
3061 Refactor internals to look up typelibs for
3062 namespaces just-in-time, but we expect
3063 consumers to call g_irepository_require.
3065 Also, add some docs. No one has died from that
3067 * gir/Makefile.am: Need --library for glib.
3068 * giscanner/girwriter.py: Write out shared-library.
3069 * tools/g-ir-writer: Take the first --library
3070 argument as the target of shared-library. In
3071 the future we should make this nicer with pkg-config
3074 2008-08-20 Colin Walters <walters@verbum.org>
3076 * girepository/girparser.py: And parse them.
3078 2008-08-20 Johan Dahlin <johan@gnome.org>
3080 * giscanner/glibast.py: Add gshort/gushort types
3082 2008-08-20 Colin Walters <walters@verbum.org>
3084 * gir/Makefile.am: Rename .gir files using GI namespace.
3085 * girepository/girepository.c: Use XDG_DATA_DIRS for
3086 looking up typelibs. Also typelibs are now suffixed
3088 * tests/invoke/Makefile.am: Only use metadata.
3089 * girepository/Makefile.am: Remove unnecessary include.
3090 * tests/scanner/Makefile.am: Update using GI namespaces
3091 for scanner includes.
3093 2008-08-20 Colin Walters <walters@verbum.org>
3095 * girepository/transformer.py: Suppress aliases whose
3097 * girepository/ast.py: Define some more aliases.
3099 2008-08-20 Colin Walters <walters@verbum.org>
3101 * girepository/girparser.c: Avoid alias infloops.
3103 2008-08-20 Colin Walters <walters@verbum.org>
3105 * tests/scanner/foo-expected.gir: Fix expected list type.
3107 2008-08-20 Johan Dahlin <johan@gnome.org>
3109 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
3110 Add a workaround for #548689.
3111 We can now compile gtk!
3113 2008-08-20 Colin Walters <walters@verbum.org>
3115 * giscanner/glibtransformer.py: Try to look up
3116 aliases using the c:type too.
3118 2008-08-20 Colin Walters <walters@verbum.org>
3120 * girepository/girparser.c: Parse union fields.
3122 2008-08-20 Johan Dahlin <johan@gnome.org>
3124 * giscanner/ast.py: Make time_t an alias for long
3126 * gir/gio-2.0-good.gir:
3127 * gir/glib-2.0-good.gir:
3128 * gir/gobject-2.0-good.gir:
3130 * giscanner/glibtransformer.py:
3131 Do not delete Class structures, we need them in gdk/gtk.
3132 * tests/scanner/drawable-expected.gir:
3133 * tests/scanner/foo-expected.gir:
3134 * tests/scanner/utility-expected.gir:
3137 2008-08-20 Johan Dahlin <johan@gnome.org>
3139 * tests/scanner/Makefile.am:
3140 * tests/scanner/annotation-expected.gir:
3141 * tests/scanner/annotation.c (annotation_object_class_init),
3142 (annotation_object_init), (annotation_object_method),
3143 (annotation_object_in), (annotation_object_out),
3144 (annotation_object_inout), (annotation_object_inout2),
3145 (annotation_object_inout3), (annotation_object_calleeowns),
3146 (annotation_object_calleesowns), (annotation_object_get_strings),
3147 (annotation_object_with_voidp), (annotation_object_get_objects),
3148 (annotation_object_create_object), (annotation_object_allow_none):
3149 * tests/scanner/annotation.h:
3150 * tests/scanner/foo-expected.gir:
3151 * tests/scanner/foo.c:
3152 * tests/scanner/foo.h:
3153 Split out annotation tests out of foo
3155 2008-08-20 Johan Dahlin <johan@gnome.org>
3157 * tests/scanner/Foo-expected.gir:
3158 * tests/scanner/Makefile.am:
3159 * tests/scanner/foo-expected.gir:
3160 * tests/scanner/foo-object.h:
3161 * tests/scanner/foo.c:
3162 Foo->foo, foo-object.h -> foo.h
3164 2008-08-20 Johan Dahlin <johan@gnome.org>
3166 * tests/scanner/Foo-expected.gir:
3167 * tests/scanner/Makefile.am:
3168 * tests/scanner/drawable-expected.gir:
3169 * tests/scanner/drawable.c (test_drawable_class_init),
3170 (test_drawable_init):
3171 * tests/scanner/drawable.h:
3172 * tests/scanner/foo-object.h:
3173 * tests/scanner/foo.c (foo_boxed_method):
3174 Move the drawable parts out of Foo to its own test.
3176 2008-08-20 Johan Dahlin <johan@gnome.org>
3178 * tests/scanner/Foo-expected.gir:
3179 * tests/scanner/foo-object.h:
3180 * tests/scanner/foo.c (foo_drawable_class_init),
3181 (foo_drawable_init):
3182 Add a based on GdkDrawable which generates
3185 2008-08-19 Colin Walters <walters@verbum.org>
3187 * giscanner/transformer.py: Don't try
3188 to strip prefix before namespace.
3190 2008-08-19 Johan Dahlin <johan@gnome.org>
3192 * giscanner/transformer.py:
3193 * tests/scanner/Foo-expected.gir:
3194 * tests/scanner/foo-object.h:
3195 Add support for typedef void foo type of
3198 2008-08-19 Johan Dahlin <johan@gnome.org>
3201 * giscanner/girwriter.py:
3202 * giscanner/glibtransformer.py:
3203 * giscanner/transformer.py:
3204 * tests/scanner/Foo-expected.gir:
3205 Add basic support for union, base the code much
3206 on Struct. Add a testcase.
3208 2008-08-19 Johan Dahlin <johan@gnome.org>
3210 * tests/scanner/Foo-expected.gir:
3211 * tests/scanner/foo-object.h:
3212 Add a union testcase which the compiler currently
3215 2008-08-19 Johan Dahlin <johan@gnome.org>
3217 * gobject-introspection-1.0.pc.in:
3218 Add a g_ir_compiler variable
3220 2008-08-19 Colin Walters <walters@verbum.org>
3222 * giscanner/ast.py: Rework types to be more closely
3224 * giscanner/girparser.py: Parse more bits.
3225 * giscanner/girwriter.py: Write sequences in a new
3226 way that specifies container type.
3227 * giscanner/glibast.py: Adjust for ast.py changes,
3228 add 'ctype' property to GLibObject and GLibInterface
3229 so we can look things up by it later.
3230 * gicanner/transformer.py: Names is new class holding
3231 the various namespaces we manage. Do not confuse
3232 with Namespace which is toplevel XML node effectively.
3233 Rework all type resolution to go through
3234 _resolve_type_name_1.
3235 * giscanner/glibtransformer.py: Raise UnknownTypeError
3236 instead of ValueError for cleanliness. Add Unresolved
3237 class to mark types whose parent we haven't seen yet.
3238 Use new Names object from transformer.py.
3239 Correctly look up parent=.
3240 Fix type validation to handle sequences.
3241 * tests/scanner/Foo-expected.gir: Update for sequence
3242 work, int instead of int32.
3243 * tools/g-ir-scanner: Add --noclosure option
3244 * gir/Makefile.am: Use --noclosure by default for
3247 2008-08-18 Johan Dahlin <johan@gnome.org>
3249 * gir/gio-2.0-good.gir:
3250 * gir/glib-2.0-good.gir:
3251 * gir/gobject-2.0-good.gir:
3254 2008-08-18 Johan Dahlin <johan@gnome.org>
3257 * giscanner/girparser.py:
3258 * giscanner/girwriter.py:
3259 * giscanner/glibast.py:
3260 * giscanner/glibtransformer.py:
3261 * giscanner/transformer.py:
3262 * tests/scanner/Foo-expected.gir:
3263 * tests/scanner/foo-object.h:
3264 * tests/scanner/utility-expected.gir:
3265 * tests/scanner/utility.h:
3266 Redo type resolving and validation.
3267 Add a couple of new tests.
3268 Patch mostly written by Colin.
3270 2008-08-18 Johan Dahlin <johan@gnome.org>
3273 * giscanner/girparser.py:
3275 * giscanner/transformer.py:
3276 Improve enum parsing for enums without a GType.
3277 Make flags/enum references to other girs work
3278 * giscanner/utils.py:
3280 * tests/scanner/Makefile.am:
3281 * tests/scanner/foo-object.h:
3282 * tests/scanner/utility-expected.gir:
3283 * tests/scanner/utility.h:
3284 Add a new test for external enum references
3286 2008-08-18 Johan Dahlin <johan@gnome.org>
3288 * docs/global-module-registry.txt: Update
3290 * tests/array.gir: Update with new type proposal
3292 * girepository/girepository.c (g_type_tag_to_string):
3293 * girepository/girepository.h:
3294 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3296 * girepository/girnode.h:
3297 Make enum serializing functions public. Clean up some whitespace.
3299 2008-08-17 Johan Dahlin <johan@gnome.org>
3301 * docs/global-module-registry.txt:
3302 Add a document for an on disk module registry format
3304 2008-08-17 Johan Dahlin <johan@gnome.org>
3307 * gir/gio-2.0-good.gir:
3310 2008-08-17 Johan Dahlin <johan@gnome.org>
3313 * gir/glib-2.0-good.gir:
3314 * gir/gobject-2.0-good.gir:
3315 * giscanner/cgobject.py:
3316 * giscanner/glibtransformer.py:
3317 Regenerate GObject & GType.
3318 Avoid warnings when generating gobject-2.0.gir.
3319 Introspect a little more, and skip *_get_type functions.
3321 2008-08-17 Colin Walters <walters@verbum.org>
3323 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3324 Rename to -good, always generate during build.
3325 * gir/Makefile.am: Ensure .gir files dep on
3326 all scanner sources.
3327 * Makefile.am: Switch build order to ensure
3328 the scanner is ready before we do gir/.
3329 * tools/g-ir-scanner: Look for .git too.
3331 2008-08-17 Johan Dahlin <johan@gnome.org>
3333 * girepository/gtypelib.c (validate_enum_blob):
3334 * giscanner/glibtransformer.py:
3335 * giscanner/transformer.py:
3336 Remove resolve_possible_typedefs, it was unused.
3337 Allow multiple enum values of the sample value in an enum,
3338 since it's actually pretty common.
3339 Register enums so they can be resolved too.
3341 2008-08-16 Johan Dahlin <johan@gnome.org>
3343 * giscanner/girparser.py:
3344 Parse enumeration/bitfield.
3346 2008-08-16 Johan Dahlin <johan@gnome.org>
3348 * giscanner/girparser.py:
3351 2008-08-16 Johan Dahlin <johan@gnome.org>
3353 * giscanner/glibtransformer.py:
3354 Resolve type names for alias targets
3355 * giscanner/transformer.py:
3356 Skip FILE* parameters fow now
3358 2008-08-16 Johan Dahlin <johan@gnome.org>
3361 * gir/gobject-2.0.gir:
3364 * tests/scanner/Makefile.am:
3367 2008-08-15 Colin Walters <walters@verbum.org>
3369 * giscanner/glibtransformer.py: Explicitly construct
3370 new list, since we're deleting as we iterate.
3371 Don't delete all structures which end in Class; just
3372 ones which have a paired GObject.
3373 Fix printing of type warning.
3374 * giscanner/transformer.py: Make strip_namespace_object
3375 be the identity function if it doesn't match the
3378 2008-08-15 Colin Walters <walters@verbum.org>
3380 * giscanner/cgobject.py: Define yet more argument
3381 prototypes; fix prototype for g_type_fundamental.
3383 2008-08-14 Johan Dahlin <johan@gnome.org>
3385 * tests/Makefile.am:
3386 * tests/constant.gir:
3387 * tests/gobject.gir:
3389 * tools/generate.c (write_struct_info):
3390 Fix generator for constant/gobject/struct
3392 2008-08-14 Johan Dahlin <johan@gnome.org>
3394 * tests/Makefile.am:
3396 * tools/generate.c (write_enum_info):
3397 Fix generation of enum/bitfields
3399 2008-08-14 Johan Dahlin <johan@gnome.org>
3401 * girepository/girparser.c (start_field), (start_constant),
3402 (start_type), (end_element_handler):
3403 Clear up constant parsing
3408 * tools/generate.c (write_callable_info), (write_function_info),
3409 (write_callback_info), (write_constant_info), (write_signal_info),
3410 (write_vfunc_info), (write_property_info), (write_object_info),
3411 (write_interface_info):
3412 Constants/Signals are handled now.
3414 2008-08-14 Johan Dahlin <johan@gnome.org>
3416 * girepository/girparser.c (start_type):
3417 Don't require c:type.
3418 * tests/Makefile.am:
3421 Update, remove parts we don't support yet
3422 * tests/roundtrips.sh:
3424 * tools/generate.c (write_type_info), (write_field_info),
3425 (write_callable_info), (write_struct_info):
3426 Make it emit proper gir.
3428 2008-08-14 Johan Dahlin <johan@gnome.org>
3430 * giscanner/transformer.py:
3431 New internal function for adding a new node.
3433 2008-08-14 Johan Dahlin <johan@gnome.org>
3436 Define an internal _H_ variable so we skip parsing both
3437 i18n headers, only one is needed.
3439 Add the glib-2.0.gir too.
3440 * giscanner/glibast.py:
3441 Add gconstpointer as an alias for ANY
3442 * giscanner/transformer.py:
3443 Do not lower case enumeration names per se.
3444 Skip functions which has parameters called 'va_list'
3446 2008-08-14 Colin Walters <walters@verbum.org>
3448 * giscanner/transformer.py: Comment data structures.
3449 Also squash pointers in resolve_type_name to correspond
3450 with what we do for params.
3451 * giscanner/glibtransformer.py: Print warnings in more
3452 situations. Rework checks for method/constructor to
3453 look up in our GType database instead of just checking
3454 for *. Avoid generating <record> for GObject which
3455 duplicate the <class>.
3456 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3459 2008-08-14 Johan Dahlin <johan@gnome.org>
3461 * giscanner/girwriter.py:
3462 * giscanner/glibast.py:
3463 * giscanner/glibtransformer.py:
3464 * giscanner/transformer.py:
3466 * tests/Makefile.am:
3467 Add pyflakes.py and run it in make check.
3468 Update the source code to fix the errors reported by
3471 2008-08-14 Johan Dahlin <johan@gnome.org>
3474 * giscanner/girparser.py:
3475 * giscanner/glibast.py:
3476 * giscanner/glibtransformer.py:
3477 Refactor the parser a bit.
3478 Add parent type to interfaces and update callsites.
3480 2008-08-14 Johan Dahlin <johan@gnome.org>
3482 * giscanner/glibtransformer.py:
3483 * giscanner/utils.py:
3484 Refactor a bit, avoid isinstance and add a method
3485 for each type we parse.
3487 2008-08-14 Johan Dahlin <johan@gnome.org>
3490 * giscanner/girparser.py:
3491 * giscanner/glibtransformer.py:
3492 * tests/Makefile.am:
3493 Run pep8.py in make check, fix old errors.
3495 2008-08-13 Colin Walters <walters@verbum.org>
3497 * giscanner/girparser.py: Parse records.
3499 2008-08-13 Colin Walters <walters@verbum.org>
3501 * gir/Makefile.am: Install again.
3502 * gir/gobject-2.0.gir: Add some more bits.
3504 2008-08-13 Colin Walters <walters@verbum.org>
3506 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3507 * giscanner/girparser.py: Handle aliases.
3508 * giscanner/transformer.py: Record aliases. Make resolver
3509 functions public; we now call into these explicitly from
3510 glibtransformer. Handle resolving aliases.
3511 * giscanner/glibtransformer.py: Separate our internal namespace
3512 from included ones. Call up into transformer's resolver functions.
3514 2008-08-13 Johan Dahlin <johan@gnome.org>
3516 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3517 * girepository/girparser.c (start_class):
3518 * giscanner/glibtransformer.py:
3519 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3521 2008-08-13 Johan Dahlin <johan@gnome.org>
3523 * giscanner/cgobject.py:
3524 Register GInitiallyUnowned
3525 * giscanner/girwriter.py:
3526 * giscanner/glibtransformer.py:
3527 Special case GObject/GInitially owned as they are a bit special to use.
3529 2008-08-13 Colin Walters <walters@verbum.org>
3531 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3532 Object is in GObject namespace.
3534 2008-08-13 Colin Walters <walters@verbum.org>
3536 * giscanner/girparser.py: Fix processing of functions
3539 2008-08-13 Colin Walters <walters@verbum.org>
3541 * giscanner/girparser.py: Parse more than just <class.
3542 * giscanner/glibtransformer.py: Put aliases in a separate
3543 data structure since their name is not canonicall.
3544 * giscanner/transformer.py: Handle resolving type names
3547 2008-08-13 Johan Dahlin <johan@gnome.org>
3549 * tools/g-ir-scanner:
3550 Allow multiple libraries
3551 * giscanner/glibtransformer.py:
3552 Rename load_library to add_library, traverse over all libraries
3553 when trying to resolve a function
3555 2008-08-12 Colin Walters <walters@verbum.org>
3557 * giscanner/transformer.py: Record typedefs as <alias> elements.
3558 Also attempt to look up types in external namespaces.
3559 * giscanner/girwriter.py: Write them.
3560 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3561 checks. Resolve interface methods and properties.
3562 * tests/scanner/foo-object.h: Add a method with typedef.
3563 * tests/scanner/Foo-expected.gir: Update.
3564 * girepository/girnode.c: Debug tweaks.
3565 * girepository/girparser.c: Make a first pass through the XML where we
3566 record all the aliases. This lets us resolve them as we go through the
3568 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3569 from gir-repository.
3571 2008-08-12 Colin Walters <walters@verbum.org>
3573 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3574 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3576 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3578 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3580 2008-08-12 Colin Walters <walters@verbum.org>
3582 * giscanner/glibtransformer.py: Also transform object properties.
3584 2008-08-12 Colin Walters <walters@verbum.org>
3586 * giscanner/glibtransformer.py: Also transform callbacks
3587 and structure field types.
3588 * tests/scanner/Fooe-expected.gir: Update to expect correct
3589 names for callbacks and structs.
3591 2008-08-12 Colin Walters <walters@verbum.org>
3593 * girepository/girparser.c: Handle 'any'.
3594 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3595 Add test for void *.
3597 2008-08-12 Colin Walters <walters@verbum.org>
3599 * giscanner/glibtransformer.py: We need to do type
3600 resolution in a second pass after we've seen all the
3601 enums, records, etc.
3603 2008-08-12 Colin Walters <walters@verbum.org>
3605 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3606 Add enum return value.
3607 * giscanner/glibtransformer.py: Transform function return types
3610 2008-08-12 Colin Walters <walters@verbum.org>
3612 * tests/scanner/Makefile.am: Dep .gir files on scanner
3613 sources too. Also remove @ so we see scanner invocations.
3615 2008-08-12 Colin Walters <walters@verbum.org>
3617 * girepository/girparser.c, girepository/gtypelib.c,
3618 girepository/gtypelib.h, girepository/girnode.c:
3619 Remove usage of (GAPI-oriented) TypeTag in favor of
3620 GITypeTag from girepository.h.
3622 2008-08-10 Colin Walters <walters@verbum.org>
3624 * tests/roundtrips.sh: Use the correct tests.
3626 2008-08-10 Colin Walters <walters@verbum.org>
3628 * giscanner/cgobject.py: Declare/wrap a few more functions.
3629 Fix parameter types for g_object_new and g_type_fundamental.
3631 2008-08-10 Colin Walters <walters@verbum.org>
3633 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3634 us to declare types for both return value and parameters. The
3635 ctypes default of 'int' is bad because it hides 32/64 bit
3636 problems. Convert all existing functions to use it.
3638 2008-08-09 Johan Dahlin <johan@gnome.org>
3640 * giscanner/__init__.py:
3642 * giscanner/cgobject.py:
3643 * giscanner/gidlparser.py:
3644 * giscanner/gidlwriter.py:
3645 * giscanner/girparser.py:
3646 * giscanner/girwriter.py:
3647 * giscanner/glibast.py:
3648 * giscanner/glibtransformer.py:
3649 * giscanner/odict.py:
3650 * giscanner/sourcescanner.py:
3651 * giscanner/transformer.py:
3652 * giscanner/utils.py:
3653 * giscanner/xmlwriter.py:
3654 * tools/g-ir-scanner:
3658 2008-08-09 Johan Dahlin <johan@gnome.org>
3661 * relaxng/c-types.xml:
3662 * relaxng/g-types.xml:
3663 * relaxng/relaxng.rng:
3665 Remove outdated relaxng schemas.
3667 2008-08-09 Johan Dahlin <johan@gnome.org>
3670 Rename metadata to typelib in variable names,
3673 2008-08-09 Johan Dahlin <johan@gnome.org>
3677 Remove old C scanner, which got rewritten in python.
3679 2008-08-09 Johan Dahlin <johan@gnome.org>
3681 * girepository/Makefile.am:
3682 * tools/Makefile.am:
3683 * tools/girmodule.c:
3684 * tools/girmodule.h:
3687 * tools/girparser.c:
3688 * tools/girparser.h:
3689 * tools/girwriter.c:
3690 * tools/girwriter.h:
3691 Move shared *.[ch] files to girepository from tools
3693 2008-08-09 Johan Dahlin <johan@gnome.org>
3695 * tests/Makefile.am:
3698 * tests/constant.test:
3700 * tests/errors.test:
3701 * tests/function.test:
3702 * tests/gobject.test:
3703 * tests/interface.test:
3704 * tests/object.test:
3705 * tests/struct.test:
3710 Rename *.test to *.gir
3712 2008-08-09 Johan Dahlin <johan@gnome.org>
3715 * tests/Makefile.am:
3716 * tests/parser/Foo-expected.gir:
3717 * tests/parser/Makefile.am:
3718 * tests/parser/foo-object.h:
3719 * tests/parser/foo.c:
3720 * tests/parser/utility-expected.gir:
3721 * tests/parser/utility.c:
3722 * tests/parser/utility.h:
3723 * tests/scanner/Makefile.am:
3724 Rename tests/parser to test/scanner
3726 2008-08-08 Colin Walters <walters@verbum.org>
3728 * tests/roundtrips.sh: Use local .gir files again.
3730 2008-08-08 Colin Walters <walters@verbum.org>
3732 * tests/invoke/Makefile.am: .gir file depends on libtool
3735 2008-08-08 Colin Walters <walters@verbum.org>
3737 * tools/girnode.c: Pass through parent node so we can
3738 print the node whose child is NULL, if that occurs.
3740 2008-08-08 Johan Dahlin <johan@gnome.org>
3742 * tests/Makefile.am:
3743 Disable roundtrip tests which are not yet working
3744 * tests/invoke/testfns.gir:
3747 2008-08-08 Johan Dahlin <johan@gnome.org>
3749 * giscanner/girwriter.py:
3751 * giscanner/glibast.py:
3752 * giscanner/glibtransformer.py:
3753 Swap order of members, to keep it consistent with
3756 2008-08-08 Johan Dahlin <johan@gnome.org>
3758 * girepository/gtypelib.c (validate_header):
3759 * girepository/gtypelib.h:
3761 * giscanner/girwriter.py:
3762 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3763 (gi_source_symbol_unref):
3766 * tests/constant.test:
3768 * tests/errors.test:
3769 * tests/function.test:
3770 * tests/gobject.test:
3771 * tests/interface.test:
3772 * tests/invoke/Makefile.am:
3773 * tests/invoke/testfns.xml:
3774 * tests/object.test:
3775 * tests/parser/Makefile.am:
3776 * tests/roundtrips.sh:
3777 * tests/struct.test:
3782 * tools/Makefile.am:
3783 * tools/compiler.c (main):
3784 * tools/generate.c (write_callable_info), (write_function_info),
3786 * tools/gidlmodule.c:
3787 * tools/gidlmodule.h:
3790 * tools/gidlparser.c:
3791 * tools/gidlparser.h:
3792 * tools/gidlwriter.c:
3793 * tools/gidlwriter.h:
3794 * tools/scanner.c (create_node_from_gtype),
3795 (create_node_from_ctype), (g_igenerator_process_properties),
3796 (g_igenerator_process_signals), (g_igenerator_create_object),
3797 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3798 (g_igenerator_create_enum), (g_igenerator_create_flags),
3799 (g_igenerator_process_function_symbol),
3800 (g_igenerator_process_unregistered_struct_typedef),
3801 (g_igenerator_process_struct_typedef),
3802 (g_igenerator_process_union_typedef),
3803 (g_igenerator_process_enum_typedef),
3804 (g_igenerator_process_function_typedef),
3805 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3806 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3807 Merge in the gir-compiler branch.
3808 Thanks to Philip and Colin for their help.
3810 2008-07-26 Colin Walters <walters@verbum.org>
3812 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3813 and g-idl-generate to go along with how we're changing this
3814 module to be installed.
3815 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3817 2008-07-24 Colin Walters <walters@verbum.org>
3819 * girepository/girepository.c (g_irepository_register): Add
3820 environment variable G_IREPOSITORY_VERBOSE so we can print
3821 out what we're doing.
3822 * girepository/girepository.c (g_irepository_register_file):
3823 Add GError error message to g_debug call.
3825 2008-07-08 Jürg Billeter <j@bitron.ch>
3827 * giscanner/glibast.py:
3831 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3833 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3836 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3839 * giscanner/girwriter.py:
3840 * giscanner/transformer.py:
3841 * tests/parser/Foo-expected.gir:
3842 * tests/parser/foo-object.h:
3843 * tests/parser/foo.c (foo_object_allow_none):
3844 Add support for gtk-doc annotations for allow-none.
3847 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3850 * giscanner/girwriter.py:
3851 * giscanner/glibast.py:
3852 * giscanner/glibtransformer.py:
3853 * giscanner/transformer.py:
3854 * tests/parser/Foo-expected.gir:
3855 Start using abstract type instead of the raw C types.
3856 Register a bunch of glib types we care about.
3858 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3863 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3865 * girepository/girepository.c:
3866 * girepository/gtypelib.c:
3867 * girepository/ginfo.c:
3868 * girepository/ginvoke.c:
3869 * girepository/girepository.h:
3870 * girepository/gtypelib.h:
3871 * girepository/gmetadata.c:
3872 * girepository/Makefile.am:
3873 * girepository/gmetadata.h:
3875 * tools/gidlmodule.c:
3878 * tools/gidlmodule.h:
3879 * tools/gidlparser.c:
3881 Renamed GMetadata to GTypelib
3883 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3885 * giscanner/xmlwriter.py:
3886 Improve line wrapping when > 79 charaters
3888 2008-06-05 Jürg Billeter <j@bitron.ch>
3891 * giscanner/girwriter.py:
3892 * giscanner/transformer.py:
3893 Use <type> element for field types
3894 * tests/parser/Foo-expected.gir:
3897 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3899 * giscanner/glibtransformer.py:
3900 Fix a bug which prevented GdkEvent from being generated
3902 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3904 * giscanner/Makefile.am:
3906 * giscanner/girwriter.py:
3907 * giscanner/glibast.py:
3908 * giscanner/glibtransformer.py:
3909 * giscanner/transformer.py:
3910 * giscanner/utils.py:
3911 * tests/parser/Foo-expected.gir:
3912 Improve enum member parsing and introspection
3914 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3916 * giscanner/scannerparser.y:
3917 * giscanner/sourcescanner.h:
3918 * giscanner/sourcescanner.py:
3919 Add a new source type enum for member.
3920 Use __repr__ for improved debugging
3921 * giscanner/girparser.py:
3923 * giscanner/transformer.py:
3924 Improve parsing of struct members.
3925 * tests/parser/foo-object.h:
3928 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3930 * giscanner/xmlwriter.py:
3931 Improve error reporting when trying to quote None.
3932 * giscanner/girparser.py:
3933 Do not print warnings when including more complete .gir files
3934 * giscanner/girwriter.py:
3935 Do not require a name for parameters, add a todo for singletons
3936 * giscanner/glibtransformer.py:
3937 Refactor the way structs are done, add a couple of hacks to allow
3939 * giscanner/transformer.py:
3940 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3941 * gobject-introspection-1.0.pc.in:
3942 Export girdir, so we can access gobject-2.0.gir from outside
3944 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3946 * tools/g-ir-scanner:
3947 * tests/parser/Makefile.am:
3948 Update sys.path before running the parser so we don't have
3949 to setup PYTHONPATH ourselves.
3953 * girepository/Makefile.am:
3954 * giscanner/transformer.py:
3955 * gobject-introspection-1.0.pc.in:
3956 * gobject-introspection.pc.in:
3957 * tools/Makefile.am:
3959 Rename pkg-config name to gobject-introspection-1.0,
3960 Do not installed anything which is not using the gir format.
3961 Disable compililation the old C scanner, but still keep the source
3962 until all the remaning functionallity has been ported.
3964 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3966 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3967 a crash when symbol->indent is NULL.
3969 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3970 a function to convert a CTYPE symbol to a string
3972 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3975 * giscanner/girwriter.py:
3976 * giscanner/giscannermodule.c
3977 (pygi_source_scanner_append_filename),
3978 (pygi_source_scanner_parse_file):
3979 * giscanner/glibtransformer.py:
3980 * giscanner/sourcescanner.py:
3981 Revert back to using temporary files to send in headers.
3982 Allow Functions to be passed in as callbacks, add a couple
3983 of try/excepts missing features.
3984 We can now scan pango
3986 2008-05-08 Johan Dahlin <johan@gnome.org>
3988 * giscanner/glibtransformer.py:
3989 * giscanner/transformer.py:
3990 Move namespace stripping glibtransformer->transformer
3992 2008-05-08 Johan Dahlin <johan@gnome.org>
3995 * giscanner/girwriter.py:
3996 * giscanner/glibtransformer.py:
3997 * giscanner/transformer.py:
3998 * tools/g-ir-scanner:
3999 Introduce a namespace ast node
4001 2008-05-05 Johan Dahlin <johan@gnome.org>
4003 * giscanner/__init__.py:
4004 * giscanner/sourcescanner.py:
4005 * giscanner/transformer.py:
4006 Move sourcescanner symbols to the sourcescanner module, instead
4007 of in the global __init__ namespace.
4009 2008-05-03 Johan Dahlin <johan@gnome.org>
4011 * giscanner/glibtransformer.py:
4012 * tools/g-ir-scanner:
4013 Handle missing parameters better, allow - and + in .la dlname
4016 2008-05-03 Johan Dahlin <johan@gnome.org>
4018 * giscanner/__init__.py:
4020 * giscanner/girwriter.py:
4021 * giscanner/glibtransformer.py:
4022 * giscanner/transformer.py:
4023 Parse struct fields properly, improve debugging.
4025 2008-04-29 Johan Dahlin <johan@gnome.org>
4028 * giscanner/girwriter.py:
4029 * giscanner/transformer.py:
4030 * tests/parser/Foo-expected.gir:
4032 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
4034 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
4037 * docs/g-ir-scanner.1:
4038 * metadata-annotations-proposal.txt:
4039 * metadata-format.txt:
4040 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
4042 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
4044 * giscanner/girwriter.py:
4045 * giscanner/glibtransformer.py:
4046 * giscanner/transformer.py:
4047 * giscanner/xmlwriter.py:
4048 * tests/parser/Foo-expected.gir:
4049 * tests/parser/foo-object.h:
4050 Write record/structs to gir file too. Add a couple of tests,
4051 fix an off by one error in xmlwriter.py.
4053 2008-04-28 Johan Dahlin <johan@gnome.org>
4055 * giscanner/xmlwriter.py: Calculate the line length properly,
4056 include the provided extra indentation in the calculation, really.
4058 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4061 * giscanner/glibast.py:
4062 * giscanner/glibtransformer.py:
4063 * giscanner/transformer.py:
4064 * tools/g-ir-scanner:
4065 Add a --strip-prefix and sort out confusion between names and symbols
4066 for functions and struct + derivaties.
4067 Refactor bootstrap of g-ir-scanner, so we can set options on
4068 Transformer() before parsing everything.
4070 2008-04-28 Johan Dahlin <johan@gnome.org>
4072 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
4073 when scanning girepository.h
4075 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
4076 a __GI_SCANNER__ when we run.
4078 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4081 * giscanner/girwriter.py:
4082 * giscanner/glibast.py:
4083 * giscanner/glibtransformer.py:
4084 * tests/parser/Foo-expected.gir:
4085 * tests/parser/utility-expected.gir:
4086 Rename most c:identifier to c:type. Add new ones to
4087 class/interface/enum/boxed.
4089 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4092 * giscanner/girwriter.py:
4093 * giscanner/glibtransformer.py:
4094 * tests/parser/Foo-expected.gidl:
4095 * tests/parser/Makefile.am:
4096 Move c:identifier from return-value to subchild type,
4097 as per Jürgs suggestion
4099 2008-04-28 Johan Dahlin <johan@gnome.org>
4101 * giscanner/girwriter.py:
4102 * tests/parser/Foo-expected.gir:
4103 Write property.type as a child node.
4105 2008-04-27 Johan Dahlin <johan@gnome.org>
4110 * gidl/gobject-2.0.gidl:
4112 * gir/gobject-2.0.gir:
4113 * tests/parser/Makefile.am:
4114 Replace the GObject gidl with a GObject gir.
4116 2008-04-27 Johan Dahlin <johan@gnome.org>
4118 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
4121 * giscanner/xmlwriter.py:
4122 * tests/parser/Foo-expected.gir:
4123 Include indentation in line length calculation
4125 2008-04-27 Johan Dahlin <johan@gnome.org>
4127 * giscanner/girparser.py:
4128 Prettify NS parsing using elementtree.
4130 2008-04-27 Johan Dahlin <johan@gnome.org>
4133 * giscanner/Makefile.am:
4134 * giscanner/girparser.py:
4135 * giscanner/glibtransformer.py:
4136 * tests/parser/Foo-expected.gidl:
4137 * tests/parser/Foo-expected.gir:
4138 * tests/parser/Makefile.am:
4139 * tests/parser/utility-expected.gidl:
4140 * tests/parser/utility-expected.gir:
4141 * tools/g-ir-scanner:
4142 Switch over to GIR as the default format. Add a simple GIDL
4144 Update tests and fix simplify makefiles by depending
4145 on GNU make extensions.
4147 2008-04-27 Johan Dahlin <johan@gnome.org>
4149 * giscanner/xmlwriter.py:
4150 Wrap attributes for lines which are wider than 79 characters
4152 * giscanner/scannerlexer.l:
4153 Allow parenthesis in annotations
4156 * giscanner/gidlwriter.py:
4157 * giscanner/girwriter.py:
4158 * giscanner/glibtransformer.py:
4159 * giscanner/transformer.py:
4160 Add initial sequence support, including annotation.
4161 Refactor type handling a bit.
4163 2008-04-27 Johan Dahlin <johan@gnome.org>
4165 * tests/parser/Foo-expected.gidl:
4166 * tests/parser/foo-object.h:
4167 * tests/parser/foo.c (foo_object_class_init),
4168 (foo_object_get_strings), (foo_object_get_objects):
4169 Add two new functions to check sequence return values.
4170 Also fixes a compilation warning.
4172 2008-04-27 Johan Dahlin <johan@gnome.org>
4174 * giscanner/giscannermodule.c (]): Cast the getter, avoids
4175 a compilation warning.
4177 * tools/Makefile.am (g_ir_scanner_SOURCES):
4178 g-ir-scanner has no sources.
4180 2008-04-25 Johan Dahlin <johan@gnome.org>
4182 * giscanner/Makefile.am:
4184 * giscanner/gidlparser.py:
4185 * giscanner/gidlwriter.py:
4186 * giscanner/girwriter.py:
4187 * giscanner/glibast.py:
4188 * giscanner/glibtransformer.py:
4189 * giscanner/transformer.py:
4190 Split out nodes to ast.py and glibast.py
4192 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4194 * giscanner/Makefile.am:
4195 * giscanner/gidlparser.py:
4196 * giscanner/gidlwriter.py:
4197 * giscanner/girwriter.py:
4198 * giscanner/glibtransformer.py:
4199 * giscanner/gobjecttreebuilder.py:
4200 * giscanner/transformer.py:
4201 * giscanner/treebuilder.py:
4202 * tools/g-ir-scanner:
4203 Rename treebuilder to transformer and
4204 gobjectreebuilder to glibtransformer.
4206 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4208 * giscanner/Makefile.am:
4209 * giscanner/__init__.py:
4210 * giscanner/cgobject.py:
4211 * giscanner/gidlparser.py:
4212 * giscanner/gidlwriter.py:
4213 * giscanner/girwriter.py:
4214 * giscanner/gobjecttreebuilder.py:
4215 * giscanner/odict.py:
4216 * giscanner/sourcescanner.py:
4217 * giscanner/treebuilder.py:
4218 * giscanner/xmlwriter.py:
4219 * tools/Makefile.am:
4220 * tools/g-ir-scanner:
4221 Add LGPLv2 license header and install all python files
4223 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4226 * giscanner/gidlwriter.py:
4227 * giscanner/giscannermodule.c (pygi_source_directive_new),
4228 (directive_get_options), (pygi_source_symbol_new),
4229 (symbol_get_base_type), (pygi_source_type_new),
4230 (type_get_base_type), (type_get_child_list),
4231 (pygi_source_scanner_get_symbols),
4232 (pygi_source_scanner_get_directives):
4233 * giscanner/gobjecttreebuilder.py:
4234 * giscanner/sourcescanner.py:
4235 * giscanner/treebuilder.py:
4236 * tests/parser/foo-object.h:
4237 Add support for virtual methods.
4238 Pair struct FooClass with struct Foo.
4239 Clean up the SourceScanner bindings a bit.
4240 Add a testcase for virtual methods.
4242 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4244 * giscanner/cgobject.py:
4245 * giscanner/gidlwriter.py:
4246 * giscanner/gobjecttreebuilder.py:
4247 Add support for signals
4249 * tests/parser/foo.c (foo_object_class_init):
4250 * Foo-expected.gidl:
4251 Add a signal and update the expected output.
4253 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4255 * giscanner/gidlwriter.py:
4256 * giscanner/girwriter.py:
4257 * giscanner/giscannermodule.c (directive_get_name),
4258 (directive_get_value), (directive_get_options),
4259 (symbol_get_directives), (symbol_set_directives),
4260 (pygi_source_scanner_parse_file),
4261 (pygi_source_scanner_lex_filename),
4262 (pygi_source_scanner_get_directives), (init_giscanner):
4263 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4264 * giscanner/sourcescanner.h:
4265 * giscanner/sourcescanner.py:
4266 * giscanner/treebuilder.py:
4267 * tools/g-ir-scanner:
4268 Add support for source/header annotations.
4270 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4272 * giscanner/gidlwriter.py:
4273 * giscanner/girwriter.py:
4274 * giscanner/gobjecttreebuilder.py:
4275 * giscanner/treebuilder.py:
4276 Add support for Callbacks
4278 2008-04-22 Havoc Pennington <hp@pobox.com>
4280 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4281 not in metadata->module, look for it in the global module, in case
4282 some other object or the app itself provides the symbol.
4284 2008-04-22 Havoc Pennington <hp@pobox.com>
4286 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4287 dlopening a library that is already in the main app, by checking
4288 whether one of the lib's symbols is already loaded.
4290 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4292 * tests/parser/Foo-expected.gidl:
4293 * tests/parser/foo-object.h:
4296 2008-04-22 Havoc Pennington <hp@pobox.com>
4298 * girepository/ginfo.c (g_interface_info_find_method):
4299 Use interface_blob_size not object_blob_size to compute offset.
4301 2008-04-22 Havoc Pennington <hp@pobox.com>
4303 * girepository/gmetadata.c (_g_metadata_init): remove
4304 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4305 (Glade and Clutter for example) rely on being loaded globally.
4307 2008-04-22 Havoc Pennington <hp@pobox.com>
4309 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4310 function to get the GType given a RegisteredTypeInfo
4312 2008-04-22 Johan Dahlin <johan@gnome.org>
4314 * COPYING: Add a LGPL license, to prevent automake to
4315 put in a copy of GPL here. Pointed out by Havoc.
4317 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4318 (g_type_info_is_pointer), (g_type_info_get_tag),
4319 (g_type_info_get_param_type), (g_type_info_get_interface),
4320 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4321 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4322 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4323 (g_object_info_get_interface), (g_object_info_get_field),
4324 (g_interface_info_get_prerequisite),
4325 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4326 * girepository/ginvoke.c (get_ffi_type):
4327 * girepository/girepository.h:
4328 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4329 (g_metadata_check_sanity), (validate_header),
4330 (validate_array_type_blob), (validate_iface_type_blob),
4331 (validate_param_type_blob), (validate_error_type_blob),
4332 (validate_type_blob), (validate_constant_blob),
4333 (validate_struct_blob), (validate_enum_blob):
4334 * girepository/gmetadata.h:
4335 * tests/Makefile.am:
4336 * tests/invoke/Makefile.am:
4337 * tests/invoke/invoke.c (main):
4338 * tests/roundtrips.sh:
4339 * tools/Makefile.am:
4340 * tools/compiler.c (format_output), (write_out_metadata), (main):
4341 * tools/generate.c (write_type_name), (write_type_info),
4342 (write_constant_value), (write_enum_info), (load_metadata), (main):
4343 * tools/gidlcompilercontext.c:
4344 * tools/gidlcompilercontext.h:
4345 * tools/gidlcompilerentrynode.c:
4346 * tools/gidlcompilerentrynode.h:
4347 * tools/gidlcompilertypenode.c:
4348 * tools/gidlcompilertypenode.h:
4349 * tools/gidlmodule.c (g_idl_module_build_metadata):
4350 * tools/gidlmodule.h:
4351 * tools/gidlnode.c (init_stats), (dump_stats),
4352 (g_idl_node_get_size), (g_idl_node_get_full_size),
4353 (g_idl_node_cmp), (g_idl_node_can_have_member),
4354 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4355 (parse_int_value), (parse_uint_value), (parse_float_value),
4356 (parse_boolean_value), (find_entry_node), (find_entry),
4357 (serialize_type), (g_idl_node_build_metadata), (write_string):
4359 * tools/gidlparser.c (parse_type_internal):
4360 * tools/quote-file.sh:
4361 Revert revisions 157,149-148,136-129 and 120.
4362 Move back to using g-idl-generate to generate the metadata and
4363 avoids dependency on a c compiler.
4365 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4367 * giscanner/girwriter.py:
4368 * tools/g-ir-scanner:
4369 Add an initial GIR writer and a --format option to g-ir-scanner
4371 2008-04-21 Johan Dahlin <johan@gnome.org>
4373 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4374 gobject-2.0 and raise ImportError if not found.
4376 * giscanner/gidlparser.py:
4377 * giscanner/gidlwriter.py:
4378 * giscanner/gobjecttreebuilder.py:
4379 * tools/g-ir-scanner:
4380 Add a --include argument to include types from other idls.
4381 Add a minimalistic GIDL parser (just objects for now)
4382 Implement resolving of external type references and use it to
4383 resolve parent types, argument types and return types.
4385 2008-04-21 Johan Dahlin <johan@gnome.org>
4387 * giscanner/gidlwriter.py:
4388 * giscanner/gobjecttreebuilder.py:
4389 * giscanner/treebuilder.py:
4390 Add support for properties.
4391 Refactor Class/Interface support a bit, to share more code and
4392 always initialize their method attribute to an empty list.
4394 2008-04-21 Johan Dahlin <johan@gnome.org>
4396 * giscanner/cgobject.py:
4397 Add a workaround for a glib bug interface introspection bug
4398 (object_interface_list_properties, object_class_list_properties):
4399 Cast the return value to GParamSpec.
4401 * tests/parser/Foo-expected.gidl: Update
4402 * tests/parser/foo.c: Add a string property
4404 * giscanner/gobjecttreebuilder.py:
4405 After stripping namespaces, remove the original
4406 item to avoid duplication (GtkButton struct and Button object)
4408 2008-04-21 Johan Dahlin <johan@gnome.org>
4410 * giscanner/gobjecttreebuilder.py:
4411 * giscanner/treebuilder.py:
4412 Strip namespaces before objects, so we'll export
4413 GtkButton as Button in the gtk namespace
4415 2008-04-21 Johan Dahlin <johan@gnome.org>
4417 * giscanner/gidlwriter.py:
4418 * giscanner/gobjecttreebuilder.py:
4419 * giscanner/treebuilder.py:
4420 Add constructors for object/boxed types.
4422 2008-04-21 Johan Dahlin <johan@gnome.org>
4424 * giscanner/gidlwriter.py:
4425 * giscanner/gobjecttreebuilder.py:
4426 Add support for boxed types
4428 2008-04-21 Johan Dahlin <johan@gnome.org>
4430 * giscanner/giscannermodule.c: Mark structures as const,
4431 wrap SourceType.const_string.
4433 * tests/parser/foo-object.h: Add a couple of constants.
4435 * giscanner/gidlwriter.py:
4436 * giscanner/gobjecttreebuilder.py:
4437 * giscanner/treebuilder.py:
4438 Add basic support for interfaces
4440 * tools/g-ir-scanner:
4441 Add -o/--output for writing to a file
4443 2008-04-21 Havoc Pennington <hp@redhat.com>
4445 * TODO: add some C API wishlist items I could think of quickly
4447 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4449 * giscanner/gidlwriter.py:
4450 * giscanner/xmlwriter.py:
4451 Add a simple api for writing tags which can be used
4452 with the new 'with statement' in python 2.5
4454 2008-04-21 Johan Dahlin <johan@gnome.org>
4456 * giscanner/gobjecttreebuilder.py:
4457 Strip namespace and object prefix from method names.
4459 2008-04-21 Johan Dahlin <johan@gnome.org>
4461 * tools/g-ir-scanner (main): Add --pkg option to pass in
4462 pkg-config modules to get cflags from.
4464 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4465 Avoid duplication, reuse function writer for methods.
4467 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4469 * giscanner/gidlwriter.py:
4470 * giscanner/gobjecttreebuilder.py:
4471 * giscanner/treebuilder.py:
4472 * tools/g-ir-scanner:
4473 Resolve libtool .la files.
4474 Strip name spaces for methods.
4475 Add function symbols
4477 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4479 * giscanner/cgobject.py:
4480 * giscanner/gidlwriter.py:
4481 * giscanner/gobjecttreebuilder.py:
4482 * giscanner/treebuilder.py:
4483 Add support for classes and methods
4485 2008-04-20 Johan Dahlin <johan@gnome.org>
4487 * giscanner/gidlwriter.py:
4488 * giscanner/gobjecttreebuilder.py:
4489 * giscanner/odict.py:
4490 Avoid conflicts, keep the output ordered similar to
4491 the order of the input.
4492 Add a simple ordered dictionary implemenation
4494 2008-04-19 Johan Dahlin <johan@gnome.org>
4496 * giscanner/cgobject.py:
4497 * giscanner/gidlwriter.py:
4498 * giscanner/gobjecttreebuilder.py:
4499 * tools/g-ir-scanner:
4500 Start introspecting get-type functions.
4501 Implement support for GLib/GFlags GTypes.
4502 Add a ctype based GObject binding.
4504 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4506 * giscanner/gidlwriter.py:
4507 * giscanner/xmlwriter.py:
4508 * tools/g-ir-scanner:
4509 Add a simplistic gidl writer, which can't do too much.
4511 2008-04-18 Johan Dahlin <johan@gnome.org>
4513 * giscanner/sourcescanner.py:
4514 * giscanner/treebuilder.py:
4515 * tools/g-ir-scanner:
4516 split tree building and source scanning interface to separate files.
4518 2008-04-18 Johan Dahlin <johan@gnome.org>
4520 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4522 - Add support for struct/parameter/return, start parsing of ctypes
4524 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4527 2008-03-31 Johan Dahlin <johan@gnome.org>
4529 * tools/g-ir-scanner:
4530 Start to build abstract syntax node of scanned sources.
4531 Add support for cpp options.
4533 2008-03-27 Johan Dahlin <johan@gnome.org>
4535 * giscanner/giscannermodule.c:
4536 * giscanner/scannerlexer.l:
4537 * giscanner/sourcescanner.c:
4538 * tools/g-ir-scanner:
4540 Add simple pre-processor using subprocess and a PIPE.
4541 Change the parse_file apis to accept a file descriptor.
4543 2008-03-25 Johan Dahlin <johan@gnome.org>
4545 * giscanner/__init__.py:
4546 * tools/g-ir-scanner:
4547 Fix a typo and add an example python test program.
4549 2008-03-25 Johan Dahlin <johan@gnome.org>
4551 * giscanner/__init__.py:
4552 * giscanner/giscannermodule.c:
4553 * giscanner/sourcescanner.c:
4554 * giscanner/sourcescanner.h:
4555 Add constants and wrap a few more SymbolType fields
4557 2008-03-25 Johan Dahlin <johan@gnome.org>
4561 * giscanner/__init__.py:
4562 * giscanner/giscannermodule.c:
4563 * giscanner/Makefile.am:
4565 Add initial python bindings for the scanner and
4566 depend on python 2.5.
4568 2008-03-25 Johan Dahlin <johan@gnome.org>
4572 * giscanner/Makefile.am:
4573 * giscanner/sourcescanner.c:
4574 * giscanner/sourcescanner.h:
4575 * tools/Makefile.am:
4576 * tools/grealpath.h:
4577 * tools/sourcescanner.c:
4578 * tools/sourcescanner.h:
4580 Move the scanner to a separate library.
4582 2008-03-23 Johan Dahlin <johan@gnome.org>
4584 * tools/Makefile.am:
4587 * tools/scannerlexer.l:
4588 * tools/scannerparser.y:
4589 * tools/sourcescanner.c:
4590 * tools/sourcescanner.h:
4591 Split out the source scanner from the generator.
4592 Rename the symbols used in the scanner to use the gi_ prefix.
4593 This should make it possible to use the raw C parser from
4596 2008-03-23 Johan Dahlin <johan@gnome.org>
4598 * tests/parser/Makefile.am (utility.gidl):
4599 * tests/parser/utility-expected.gidl:
4600 Pass in the gobject.gidl since we're defining a GObject.
4602 2008-03-12 Johan Dahlin <johan@gnome.org>
4604 * relaxng/relaxng.rng:
4605 Add a releaxng in relaxng we can use to validate the relaxngs
4608 2008-03-12 Jürg Billeter <j@bitron.ch>
4610 * tools/scanner.c: (g_igenerator_new):
4611 * tools/scannerparser.y:
4612 Fix compiler warnings.
4614 2008-03-12 Jürg Billeter <j@bitron.ch>
4618 * tools/scannerparser.y:
4619 Start fixing memory management in g-idl-scanner.
4621 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4623 * tools/gidlcompilercontext.c: (write_compiled):
4624 Fix critical warning when no shlib passed to g-idl-compiler.
4626 2008-03-12 Johan Dahlin <johan@gnome.org>
4628 * tests/parser/utility-expected.gidl:
4629 * tests/parser/utility.h:
4630 Add a get_type-function, so the scanner actually
4631 parses it as an object.
4633 2008-03-12 Johan Dahlin <johan@gnome.org>
4635 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4638 * tests/parser/Foo-expected.gidl:
4639 * tests/parser/Makefile.am:
4640 * tests/parser/foo-object.h:
4641 * tests/parser/foo.c:
4642 * tests/parser/utility-expected.gidl:
4643 * tests/parser/utility.c:
4644 * tests/parser/utility.h:
4646 Add a new gidl test. 'utility.gidl', which is used to be able
4647 to test external type references. Add a reference to UtilityObject*
4650 2008-03-11 Johan Dahlin <johan@gnome.org>
4654 Remove most global variables
4656 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4658 * tools/scannerlexer.l:
4660 * tests/parser/Foo-expected.gidl:
4661 * tests/parser/foo.c:
4662 * tests/parser/Makefile.am:
4663 * tests/parser/foo-object.h:
4665 Added a few extra tests. Which resulted in finding a few
4666 bugs. Which resulted in me fixing those bugs
4668 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4670 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4671 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4672 Add some comments for strings into generated output for
4675 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4677 * tools/gidlcompilercontext.c: (write_compiled):
4678 Write out the shlibs variable before writing out the strings
4679 length. Fixes compiler warning when using '-l' flag with
4682 2008-03-11 Johan Dahlin <johan@gnome.org>
4684 * tests/parser/Foo-expected.gidl:
4685 * tests/parser/foo-object.h:
4688 * tools/scannerlexer.l:
4689 Add support for parsing return arguments. Add support for
4690 caller-owns return types.
4691 Patch by Philip Van Hoof.
4693 * tools/scannerparser.y:
4694 Remove parsing of the @deprecated syntax used in headers.
4695 We will support gtk-doc deprecation in the future instead.
4697 2008-03-11 Johan Dahlin <johan@gnome.org>
4699 * tools/compiler.c (main): Coding style fixes
4701 2008-03-10 Johan Dahlin <johan@gnome.org>
4704 Add GCOV_LIBS to GILIBS
4706 2008-03-10 Johan Dahlin <johan@gnome.org>
4708 * tests/parser/Foo-expected.gidl:
4709 * tests/parser/foo.c:
4710 Rename null-ok to direction=out
4712 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4714 reviewed and extensively tested by Johan
4716 * tests/parser/Foo-expected.gidl:
4717 * tests/parser/foo-object.h:
4718 * tests/parser/foo.c:
4721 * tools/gidlwriter.c:
4724 * tools/scannerlexer.l:
4725 * tools/scannerparser.y:
4727 Add support for scanning for gtk-doc comments inside
4728 C source files. Add tests
4730 2008-03-10 Johan Dahlin <johan@gnome.org>
4732 * tests/parser/Makefile.am:
4733 * tests/parser/foo.c:
4736 * tools/scannerparser.y:
4737 Add an api to lex filenames.
4738 Lex all source .c files passed in on the command line.
4739 Scan sources in a test and a couple of private structures
4740 which should not be included in the generated gidl
4742 2008-03-10 Johan Dahlin <johan@gnome.org>
4744 * tests/invoke/Makefile.am: Make the generated metadata
4745 depend on the g-idl-compiler
4747 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4749 * tools/gidlmodule.c
4750 * tools/gidlmodule.h
4753 Remove the old g-idl-compiler code.
4756 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4758 * tools/quote-file.sh
4761 Move to using the 'C' struct compiler code.
4763 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4765 * girepository/ginfo.c
4767 Change the way that external references with no namespace
4768 are dealt with. External references with no namespace
4769 are placed into the XML as-if they are a local reference.
4770 This is temporary, but helps with roundtrip tests.
4772 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4774 * girepository/ginfo.c
4775 Add the ability to get the value of a constant of
4776 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4777 is provided as a string.
4779 This would deal properly with:
4780 typedef char* random;
4781 const random = "A string";
4783 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4785 * girepository/ginfo.c
4786 * girepository/girepository.h
4788 Add a function to check if an enum is registered or not.
4789 Previously anything testing this relied on the g-type
4790 string offset having a value of 0.
4792 * girepository/gmetadata.c
4793 * girepository/gmetadata.h
4795 Remove unneccesary or erroneous checks. There were two
4796 metadata validation checks which made sure that the blob
4797 sizes were the same as some magic numbers compiled into the code.
4798 This is wrong as it breaks any forwards compatibility that may
4801 Checks were also present that made sure that unregistered type
4802 blobs had a value of 0 in the g-type offset field. This is
4803 unneccessary. If a type blob is unregistered then any value
4804 in its g-type field is simply invalid.
4806 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4808 * girepository/ginfo.c
4809 * girepository/gmetadata.c
4810 * girepository/gmetadata.h
4812 Change the metadata format to have a standard header
4813 for all the type blobs. Merge the SimpleTypeBlob
4814 and InterfaceTypeBlob into a union. A union of these
4815 two blobs existed previously but was not explicit
4816 in the metadata format.
4818 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4820 * tools/gidlcompilercontext.c
4821 * tools/gidlcompilercontext.h
4822 * tools/gidlcompilerentrynode.c
4823 * tools/gidlcompilerentrynode.h
4824 * tools/gidlcompilertypenode.c
4825 * tools/gidlcompilertypenode.h
4827 Add code to compile a tree of GIdlNodes to
4828 a 'C' struct representing the metadata.
4829 This is to aid cross-compiling. Previously
4830 the g-idl-compiler created a binary blob with
4831 data written in the byte order and alignment
4832 of the tool rather than the intended target.
4834 Cleaned up and improved by Johan and Robert :-)
4836 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4838 * girepository/ginvoke.c
4839 * girepository/girepository.h
4840 * girepository/gmetadata.c
4841 * girepository/gmetadata.h
4843 * tools/gidlparser.c
4844 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4845 to avoid confusion with the interface blob.
4848 * tools/gidlparser.c
4849 Remove magic numbers and replace with type-tag
4850 enumeration symbols.
4852 * girepository/gmetadata.c
4853 Add validate declaration.
4855 2008-03-10 Jürg Billeter <j@bitron.ch>
4857 * tools/gidlparser.c: (parse_type_internal):
4858 * tools/scannerlexer.l:
4859 * tools/scannerparser.y:
4860 Support C99 _Bool type in scanner.
4862 2008-03-10 Jürg Billeter <j@bitron.ch>
4864 * tests/parser/Foo-expected.gidl:
4865 * tests/parser/foo-object.h:
4866 * tests/parser/foo.c: (foo_enum_method):
4867 * tools/scanner.c: (g_igenerator_process_function_symbol):
4868 Don't skip functions that are defined in the namespace of a type
4869 that doesn't support methods, as for example enums.
4871 2008-03-10 Johan Dahlin <johan@gnome.org>
4873 * gidl.dtd: Remove, we're using relaxng for now
4875 * tests/parser/Foo-expected.gidl:
4876 * tests/parser/foo-object.h:
4877 * tests/parser/foo.c:
4878 Rename the enum/flags get_type functions to include the whole type.
4880 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4882 * tools/gidlwriter.c (enum_generate): added "type-name",
4883 "get-type" and "deprecated" missing arguments.
4884 * tests/parser/Foo-expected.gidl:
4885 * tests/parser/foo-object.h: test enum type, and no type.
4887 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4890 Consistent checks, add missing 'test'
4892 2008-03-05 Havoc Pennington <hp@redhat.com>
4894 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4895 does on Fedora 8. Make libffi a hard requirement, since it was in
4896 practice anyway (was not really conditional in the code or
4897 makefile, only in configure).
4899 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4901 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4902 reviewed by: Johan Dahlin <johan@gnome.org>
4904 * tests/Makefile.am:
4905 * tests/roundtrips.sh:
4906 Modify the roundtrips test so that they do not use the
4907 --raw option of the gidl compiler but instead compile a
4908 shared library to use with g_module.
4910 * tests/invoke/Makefile.am:
4911 * tests/invoke/invoke.c:
4912 Modify the invoke tests to build a shared library rather
4913 than use the --raw option.
4915 * tests/invoke/invoke-namespace-find.sh: Removed:
4916 Noone knows why this was here, so removed.
4918 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4920 * tools/scanner.c: (g_igenerator_process_function_symbol):
4921 Move g_idl_node_can_have_member test later, as it broke spotting
4922 get_type's for nodes that can't have members.
4924 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4927 * tools/gidlnode.c: (g_idl_node_can_have_member):
4928 Add g_idl_node_can_have_member.
4930 * tools/scanner.c: (g_igenerator_process_function_symbol):
4931 Use g_idl_node_can_have_member to test if we should add a function
4932 as a member of the type node.
4934 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4936 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4938 * tests/parser/Makefile.am:
4939 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4941 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4943 * tools/scanner.c: (main):
4944 Ignore -pthread when passed to g-idl-scanner.
4946 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4948 * tools/grealpath.h: Added:
4949 * tools/scanner.c: (main):
4950 * tools/scannerlexer.l:
4951 * tools/Makefile.am:
4952 Always use absolute paths with symbolic links resolved when
4953 comparing filenames.
4955 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4957 * gobject-introspection.pc.in:
4958 Provide variables for g-idl-parser, scanner and compiler in the
4961 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4964 * girepository/Makefile.am:
4965 * tools/Makefile.am:
4966 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4968 2008-02-10 Johan Dahlin <johan@gnome.org>
4970 * tests/parser/Foo-expected.gidl:
4971 * tests/parser/foo-object.h:
4972 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4973 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4976 2008-02-10 Johan Dahlin <johan@gnome.org>
4978 * tests/parser/Foo-expected.gidl:
4979 * tests/parser/foo-object.h:
4980 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4981 Add enum and flags test.
4983 2008-02-10 Johan Dahlin <johan@gnome.org>
4987 * girepository/Makefile.am:
4988 Make 'make distcheck' work again.
4990 2008-02-10 Johan Dahlin <johan@gnome.org>
4992 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4995 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4996 check, eg exclude it from BUILT_SOURCES.
4998 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
5003 * girepository/Makefile.am:
5004 * m4/Makefile.am: Added:
5005 * m4/as-compiler-flag.m4: Added:
5006 * m4/gcov.m4: Added:
5007 * tools/Makefile.am:
5008 Add ability to generate a coverage report.
5009 Adds configure option --enable-gcov and make rule 'check-coverage'.
5011 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
5015 * gidl/Makefile.am: Added:
5016 * girepository/Makefile.am: Added:
5017 * src/Makefile.am: Renamed to tools/Makefile.am:
5018 * src/compiler.c: Renamed to tools/compiler.c:
5019 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
5020 * src/generate.c: Renamed to tools/generate.c:
5021 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
5022 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
5023 * src/gidlnode.c: Renamed to tools/gidlnode.c:
5024 * src/gidlnode.h: Renamed to tools/gidlnode.h:
5025 * src/gidlparser.c: Renamed to tools/gidlparser.c:
5026 * src/gidlparser.h: Renamed to tools/gidlparser.h:
5027 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
5028 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
5029 * src/ginfo.c: Renamed to girepository/ginfo.c:
5030 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
5031 * src/girepository.c: Renamed to girepository/girepository.c:
5032 * src/girepository.h: Renamed to girepository/girepository.h:
5033 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
5034 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
5035 * src/scanner.c: Renamed to tools/scanner.c:
5036 * src/scanner.h: Renamed to tools/scanner.h:
5037 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
5038 * src/scannerparser.y: Renamed to tools/scannerparser.y:
5039 * tests/invoke/Makefile.am:
5040 Split src/ into girepository/ and tools/
5044 * girepository/Makefile.am:
5045 * tests/Makefile.am:
5046 * tests/invoke/Makefile.am:
5047 * tests/parser/Makefile.am:
5048 * tests/roundtrips.sh:
5049 * tools/Makefile.am:
5050 Make distcheck work.
5052 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
5054 * tests/invoke/invoke.c: (main):
5055 * tests/invoke/testfns.c: (test6), (test7):
5056 * tests/invoke/testfns.xml:
5057 Add tests for invokation with a GList argument.
5058 Also tests caller-owns return values.
5060 2008-02-04 Rob Taylor <robtaylor@floopily.org>
5063 Add some documentation for GICallableInfo
5065 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
5068 Correct syntax errors in the DTD file.
5070 * relaxng/c-types.xml:
5071 * relaxng/g-types.xml:
5073 Add a RelaxNG specification for the GObject Introspection XML data.
5074 The Specification has validated all of the test files.
5076 2008-01-25 Rob Taylor <robtaylor@floopily.org>
5078 * tests/roundtrips.sh:
5079 * tests/struct.test:
5080 Add roundtrip tests for structs.
5082 2008-01-11 Johan Dahlin <johan@gnome.org>
5084 * src/scanner.c (g_igenerator_process_function_symbol):
5085 Refactor out g_idle_node_add_member.
5086 (create_node_from_gtype, create_node_from_ctype):
5087 Use case instead of if...else
5088 (get_type_from_type_id):
5089 Rename to create_node_from_gtype
5090 (get_type_from_ctype):
5091 Rename to create_node_from_ctype
5093 Rename ginode -> node, gitype -> type, gifunc -> func.
5095 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
5096 Two new functions, refactor out of scanner.c
5098 * src/scanner.c: (g_igenerator_process_function_symbol):
5099 * src/scannerlexer.l:
5100 Do not save the content of the deprecated variable, only
5103 2008-01-11 Johan Dahlin <johan@gnome.org>
5105 * tests/parser/foo-object.h: Add a couple of comment parser tests.
5107 2008-01-11 Jürg Billeter <j@bitron.ch>
5109 * src/scannerlexer.l:
5110 Fix GTK-Doc parsing.
5112 2008-01-11 Jürg Billeter <j@bitron.ch>
5114 * src/scannerlexer.l:
5115 Fix GTK-Doc parsing.
5117 2008-01-11 Jürg Billeter <j@bitron.ch>
5119 * src/scanner.c: (lookup_symbol):
5120 Return unresolved name if we find unknown symbol.
5122 2008-01-11 Jürg Billeter <j@bitron.ch>
5124 * src/scanner.c: (g_igenerator_generate):
5125 Initialize GObject to fix scanning interface properties.
5127 * tests/parser/Foo-expected.gidl:
5128 * tests/parser/foo-object.h:
5129 * tests/parser/foo.c: (foo_interface_get_type):
5130 Test interfaces with GObject prerequisite.
5132 * tests/parser/Makefile.am:
5133 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
5135 2007-12-27 Johan Dahlin <johan@gnome.org>
5137 * src/scannerlexer.l:
5138 Parse gtk-doc comments.
5140 * src/gidlwriter.c: (function_generate):
5141 Reorganize, avoid duplication and add support for
5142 writing deprecated functions.
5144 * src/scannerparser.y:
5146 Add new structure CDirective and functions to create/free them.
5148 * src/scanner.c: (g_igenerator_process_function_symbol),
5149 (g_igenerator_process_unregistered_struct_typedef),
5150 (g_igenerator_process_struct_typedef),
5151 (g_igenerator_process_union_typedef),
5152 (g_igenerator_process_enum_typedef),
5153 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
5154 (g_igenerator_start_preprocessor):
5155 Parse @deprecated directive for functions.
5156 Remove some more C99isms.
5157 Send in -C to cpp to avoid stripping comments.
5159 * tests/parser/foo-object.h:
5160 * tests/parser/Foo-expected.gidl:
5161 Add deprecated directive
5163 2007-12-27 Johan Dahlin <johan@gnome.org>
5165 * src/scannerlexer.l (intsuffix): Add emacs mode line and
5166 escape ' and " so it looks more like C.
5169 Unlink temporary file used.
5171 2007-12-27 Johan Dahlin <johan@gnome.org>
5173 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
5174 (g_igenerator_start_preprocessor), (main):
5176 * src/scannerparser.y:
5177 Plug a couple of simple memory leaks.
5179 2007-12-27 Johan Dahlin <johan@gnome.org>
5181 * src/scanner.c: (g_igenerator_parse_macros),
5182 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
5185 * src/scannerparser.y:
5186 * tests/parser/Makefile.am:
5188 Improve error reporting, return when the preprocessor fails.
5189 Add a verbose parameter, to aid debugging.
5190 Revert to using a temporary file to communicate between the
5191 preprocessor and the parser, because we need to wait for
5192 the exit code from the pre-processor before starting to parse.
5194 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
5196 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
5197 cparser.y to scannerparser.y
5199 2007-12-11 Johan Dahlin <johan@gnome.org>
5203 * src/scanner.c: (g_igenerator_new):
5205 Get rid of the global the_generator variable.
5207 2007-12-10 Johan Dahlin <johan@gnome.org>
5209 * src/scanner.c (main): Add an output option,
5210 add checks for required parameters
5213 set BUILD_SOURCES and CLEANFILES properly
5215 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5216 (g_writer_write_indent), (g_writer_write_unindent),
5217 (field_generate), (value_generate), (constant_generate),
5218 (property_generate), (function_generate), (vfunc_generate),
5219 (signal_generate), (interface_generate), (struct_generate),
5220 (union_generate), (boxed_generate), (enum_generate),
5221 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5223 * src/scanner.c: (g_igenerator_generate):
5225 * src/scannerwriter.c:
5227 Refactor scannerwriter to only be tied to a GIdlModule and move
5228 it (again!) to gidlwriter.c. Change the writer function to take
5231 2007-12-10 Johan Dahlin <johan@gnome.org>
5234 * src/scanner.c: (g_igenerator_generate):
5236 * src/scannerwriter.c: (g_igenerator_write_inline),
5237 (g_igenerator_write), (g_igenerator_write_indent),
5238 (g_igenerator_write_unindent), (field_generate), (value_generate),
5239 (constant_generate), (property_generate), (function_generate),
5240 (vfunc_generate), (signal_generate), (interface_generate),
5241 (struct_generate), (union_generate), (boxed_generate),
5242 (enum_generate), (node_generate), (module_generate),
5243 (g_scanner_write_file):
5245 Move the scanner gidl writing to a separate source file.
5247 2007-12-10 Johan Dahlin <johan@gnome.org>
5252 Move over all CType construction functions.
5254 * tests/parser/Makefile.am:
5255 Be verbose when printing parsing tests results.
5257 2007-12-10 Johan Dahlin <johan@gnome.org>
5259 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5260 preprocessor handling to here. Start cpp insteado of cc -E,
5261 always include -U__GNUC__, since it's specific to the preprocessor
5264 * tests/parser/Makefile.am (check-local): Silent diff and skip
5265 -U__GNUC__ which is always defined now
5267 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5269 reviewed by: <delete if not using a buddy>
5271 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5272 * tests/parser/Makefile.am:
5274 2007-12-09 Johan Dahlin <johan@gnome.org>
5277 Use GOption for command line options.
5278 (g_igenerator_new, main): Simplify constructor and they way
5279 parameters are passed into it.
5285 * src/gen-introspect.c:
5286 * src/gen-introspect.h:
5288 Rename gen-introspect.[ch] to scanner.[ch]
5290 2007-12-09 Johan Dahlin <johan@gnome.org>
5294 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5295 don't make the repository library and the other utilites link against
5298 * src/gen-introspect.c: (g_igenerator_create_object),
5299 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5300 (g_igenerator_create_enum), (g_igenerator_create_flags),
5301 (g_igenerator_process_module_symbol),
5302 (g_igenerator_process_module), (g_igenerator_generate), (main):
5303 * src/gen-introspect.h:
5304 Refactor g_igenerator_process_types into smaller pieces.
5306 * tests/parser/Makefile.am:
5307 Depend on the gen-introspect binary
5309 2007-12-09 Johan Dahlin <johan@gnome.org>
5311 * src/gen-introspect.c (g_igenerator_process_types):
5312 Break into smaller pieces, one for each generated node type.
5314 2007-12-08 Johan Dahlin <johan@gnome.org>
5316 * src/gen-introspect.c: (g_igenerator_process_types),
5317 (g_igenerator_add_module):
5318 * tests/parser/Foo-expected.gidl:
5319 * tests/parser/foo-object.h:
5320 * tests/parser/foo.c: (foo_subobject_class_init),
5321 (foo_subobject_init):
5323 Add a subobject test and make sure to register defined classes
5324 in the lookup symbol hash table.
5326 2007-12-08 Johan Dahlin <johan@gnome.org>
5330 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5331 (g_igenerator_process_types), (g_igenerator_add_module),
5332 (g_igenerator_add_include_idl), (main):
5333 * src/gen-introspect.h:
5334 * tests/parser/Makefile.am:
5335 * tests/parser/Foo-expected.gidl:
5337 Change the gen-introspect to generate namespaced module names,
5338 such as GLib.Object instead of GObject.
5339 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5340 add a --include-idl parameter to gen-introspect,
5341 and update the parser test.
5343 2007-12-08 Johan Dahlin <johan@gnome.org>
5345 * src/gen-introspect.c:
5346 Move main to the end of the file and attempt to make it valid
5349 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5350 we're not quite ready to generate metadata yet.
5355 Add a simple gen-introspect parser test
5357 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5359 reviewed by: Johan Dahlin <johan@gnome.org>
5362 * gobject-introspection.pc.in:
5364 * src/compiler.c: (format_output), (write_out_metadata), (main):
5365 * src/gen-introspect.c: (main):
5366 * src/gen-introspect.h:
5367 * src/generate.c: (write_callable_info), (write_repository),
5368 (load_metadata), (main):
5369 * src/gidlmodule.c: (g_idl_module_new),
5370 (g_idl_module_build_metadata):
5372 * src/gidlparser.c: (start_element_handler):
5373 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5374 (g_base_info_get_name), (g_base_info_get_namespace),
5375 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5376 (g_base_info_get_metadata), (g_function_info_get_symbol),
5377 (g_function_info_get_flags), (g_function_info_get_property),
5378 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5379 (g_callable_info_may_return_null),
5380 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5381 (g_callable_info_get_arg), (g_arg_info_get_direction),
5382 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5383 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5384 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5385 (g_type_info_get_tag), (g_type_info_get_param_type),
5386 (g_type_info_get_interface), (g_type_info_get_array_length),
5387 (g_type_info_is_zero_terminated),
5388 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5389 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5390 (g_value_info_get_value), (g_field_info_get_flags),
5391 (g_field_info_get_size), (g_field_info_get_offset),
5392 (g_registered_type_info_get_type_name),
5393 (g_registered_type_info_get_type_init),
5394 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5395 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5396 (find_method), (g_struct_info_find_method),
5397 (g_enum_info_get_n_values), (g_enum_info_get_value),
5398 (g_object_info_get_parent), (g_object_info_get_type_name),
5399 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5400 (g_object_info_get_interface), (g_object_info_get_n_fields),
5401 (g_object_info_get_field), (g_object_info_get_n_properties),
5402 (g_object_info_get_property), (g_object_info_get_n_methods),
5403 (g_object_info_get_method), (g_object_info_find_method),
5404 (g_object_info_get_n_signals), (g_object_info_get_signal),
5405 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5406 (g_object_info_get_n_constants), (g_object_info_get_constant),
5407 (g_interface_info_get_n_prerequisites),
5408 (g_interface_info_get_prerequisite),
5409 (g_interface_info_get_n_properties),
5410 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5411 (g_interface_info_get_method), (g_interface_info_find_method),
5412 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5413 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5414 (g_interface_info_get_n_constants),
5415 (g_interface_info_get_constant), (g_property_info_get_flags),
5416 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5417 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5418 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5419 (g_constant_info_get_value), (g_union_info_get_n_fields),
5420 (g_union_info_get_field), (g_union_info_get_n_methods),
5421 (g_union_info_get_method), (g_union_info_is_discriminated),
5422 (g_union_info_get_discriminator_offset),
5423 (g_union_info_get_discriminator):
5424 * src/ginvoke.c: (g_function_info_invoke):
5425 * src/girepository.c: (g_irepository_register),
5426 (g_irepository_unregister), (g_irepository_get_default),
5427 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5428 (g_irepository_get_info), (g_irepository_find_by_name),
5429 (g_irepository_get_shared_library),
5430 (g_irepository_build_search_path), (g_irepository_register_file),
5431 (g_irepository_error_quark):
5432 * src/girepository.h:
5433 * src/gmetadata.c: (g_metadata_get_dir_entry),
5434 (g_metadata_check_sanity), (validate_header),
5435 (validate_array_type_blob), (validate_iface_type_blob),
5436 (validate_param_type_blob), (validate_error_type_blob),
5437 (validate_type_blob), (validate_arg_blob),
5438 (validate_signature_blob), (validate_function_blob),
5439 (validate_callback_blob), (validate_constant_blob),
5440 (validate_value_blob), (validate_field_blob),
5441 (validate_property_blob), (validate_signal_blob),
5442 (validate_vfunc_blob), (validate_struct_blob),
5443 (validate_enum_blob), (validate_object_blob),
5444 (validate_interface_blob), (validate_errordomain_blob),
5445 (validate_union_blob), (validate_blob), (validate_directory),
5446 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5447 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5448 (g_metadata_new_from_mapped_file), (g_metadata_free),
5449 (g_metadata_set_module), (g_metadata_get_namespace):
5451 * tests/Makefile.am:
5452 * tests/invoke/Makefile.am:
5453 * tests/invoke/invoke-namespace-find.sh:
5454 * tests/invoke/invoke.c: (main):
5456 Add a namespace/shared library mapping. fixes #313268.
5458 2007-12-03 Johan Dahlin <johan@gnome.org>
5460 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5463 2007-11-30 Jürg Billeter <j@bitron.ch>
5469 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5470 (g_igenerator_write_inline), (g_igenerator_write),
5471 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5472 (field_generate), (value_generate), (constant_generate),
5473 (property_generate), (function_generate), (vfunc_generate),
5474 (signal_generate), (interface_generate), (struct_generate),
5475 (union_generate), (boxed_generate), (enum_generate),
5476 (node_generate), (module_generate), (get_type_from_type_id),
5477 (str_replace), (g_igenerator_process_properties),
5478 (g_igenerator_process_signals), (g_igenerator_process_types),
5479 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5480 (g_igenerator_process_unregistered_struct_typedef),
5481 (g_igenerator_process_struct_typedef),
5482 (g_igenerator_process_union_typedef),
5483 (g_igenerator_process_enum_typedef),
5484 (g_igenerator_process_function_typedef),
5485 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5486 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5487 (g_igenerator_generate), (main), (csymbol_new),
5488 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5489 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5490 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5491 (eat_hspace), (eat_line), (read_identifier),
5492 (g_igenerator_parse_macros):
5493 * src/gen-introspect.h:
5495 Import gen-introspect to generate introspection information by
5498 2007-11-30 Jürg Billeter <j@bitron.ch>
5500 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5502 2007-11-30 Jürg Billeter <j@bitron.ch>
5504 * src/gidlparser.c: (end_element_handler): Don't leave requires
5507 2007-11-29 Johan Dahlin <johan@gnome.org>
5509 * src/gidlparser.c (parse_type_internal): Add char,
5510 gchar and guchar to the builtin types.
5512 2007-11-26 Johan Dahlin <johan@gnome.org>
5514 * src/ginfo.c: (g_object_info_get_type_name),
5515 (g_object_info_get_type_init):
5516 * src/girepository.c: (g_irepository_is_registered):
5517 * src/girepository.h:
5519 Add g_object_info_get_type_name, g_object_info_get_type_init and
5520 g_irepository_is_registered.
5522 2006-08-14 Jürg Billeter <j@bitron.ch>
5524 * src/gidlparser.c: (end_element_handler): Don't leave
5525 namespace and implements states too early.
5528 2007-11-26 Johan Dahlin <johan@gnome.org>
5530 * src/gmetadata.c (validate_struct_blob):
5531 pass blob_type to validate_function_blob instead of
5532 hard-coding BLOB_TYPE_STRUCT.
5534 Patch by Torsten Schoenfeld, fixes #314190
5536 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5538 * src/compiler.c, src/generate.c, src/gidlnode.c,
5539 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5540 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5541 warnings about return values, signedness mismatches, unused
5542 variables, and unhandles enum values in switch statements.
5544 * tests/invoke/Makefile.am: Don't install the invoke test program.
5545 Add -I ../../src to the cflags used for the test functions files.
5547 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5549 * src/girepository.h: Export g_invoke_error_quark.
5551 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5553 * src/ginvoke.c: Remove the fallback implementation of
5554 g_function_info_invoke since we now formally depend on libffi.
5556 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5558 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5559 Remove these files from cvs, as they are now generated.
5561 * src/gmetadata.c (validate_iface_type_blob): Don't
5562 complain if blob->pointer is not set, since that
5563 happens for enum and flag types. (#308935, Gustavo
5566 * Commit an autoconf-conversion patch by
5567 Gustavo Carneiro (#308708)
5569 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5571 * src/compiler.c (main): Use it here to validate
5572 the generated metadata.
5574 * src/gmetadata.[hc]: Add code to validate a
5577 * metadata-format.txt: Updates
5579 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5581 * tests/*: Add struct offsets to field and vfunc
5584 * src/generate.c (write_vfunc_info): Write offset
5585 information for vfuncs.
5587 * src/gidlnode.c (g_idl_node_build_metadata): Write
5588 the struct offsets into the metadata.
5590 * src/gidlparser.c: Parse the offset attributes of
5591 field and vfunc elements.
5593 * src/gidlnode.h: Add offset members to field and
5596 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5600 * gidl.dtd: Updates.
5602 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5603 file, creates, compiles and runs a C file, and folds the
5604 resulting struct offsets back into the .gidl file.
5606 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5608 * src/gidlparser.c (start_field): Make fields in objects
5611 * src/gidlmodule.c: Include string.h
5616 * metadata-format.txt: Cleanup basic types.
5617 * src/*: Adapt to the changes.
5618 * tests/*: Adapt to the changes.
5619 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5621 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5622 size for enum blobs.
5623 (g_idl_node_get_full_size): Report the correct size for
5626 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5627 error checking for blob sizes.
5629 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5631 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5632 interface types for which is_pointer is FALSE, e.g. enums.
5634 * src/gidlnode.c (g_idl_node_get_full_size)
5635 * src/gidlparser.c (parse_type_internal):
5636 * src/generate.c (write_type_info): Support unspecialized
5637 lists, hashtables and errors. Also emit a '*' after these.
5641 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5645 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5647 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5649 * src/*.c: Change the directory to be addressed by
5650 1-based indexes, and use an index of zero to mean
5653 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5655 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5657 * tests/union.test: Add a union test.
5659 * src/generate.c: Handle unions.
5661 * src/girepository.h:
5662 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5664 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5666 * src/gidlparser.c (start_union): Parse <union> elements.
5668 * src/gidlnode.h: Add a GIdlNodeUnion.
5670 * gidl.dtd: Add a <union> element.
5672 * src/gmetadata.c (g_metadata_check_sanity): Check
5675 * src/gmetadata.h: Add union_blob_size to Header,
5678 * metadata-format.txt: Add a UnionBlob.
5680 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5682 * tests/*: Update testcases.
5684 * src/generate.c (write_callable_info): Don't forget to
5685 write transfer and null-ok attributes for return types
5688 * src/girepository.h:
5689 * src/ginfo.c (g_callable_info_may_return_null):
5690 New function to find out if a function may return NULL.
5692 * src/compiler.c (format_output): Make the generated
5695 * README: Point to a recent libffi snapshot.
5697 * tests/invoke/*: Some invoke tests.
5699 * src/Makefile: Add ginvoke.c and the necessary
5702 * src/girepository.h (g_function_info_invoke): Add
5705 * src/ginvoke.c (g_function_info_invoke): Initial
5706 implementation of invoke functionality based on libffi.
5708 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5709 strings and types hash tables in the right order when
5711 (find_entry_node): Free the name parts.
5713 2005-05-12 Johan Dahlin <johan@gnome.org>
5715 * src/generate.c: Generate consistent end tags.
5719 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5723 * src/gidlparser.c (start_function): Actually add
5724 methods to objects. (Steven Walter)
5726 * src/girepository.h:
5727 * src/ginfo.c: Rename Transfer and Direction to
5728 GITransfer and GIDirection. (Torsten Schoenfeld)
5730 * tests/*: Make tests work with the changes in name
5733 * src/gidlnode.c (find_entry_node): Parse qualified
5734 names and generate xref nodes for them if needed. Don't
5735 require all modules to be loaded any more.
5737 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5740 * src/ginfo.c (g_object_info_get_parent): Return NULL
5741 if blob->parent is 0. Still need to make sure index
5744 * src/generate.c: Generate qualified names when
5745 referring to non-local types. Emit transfer attribute
5748 * src/compiler.c (format_output): Put the function
5749 attributes where gcc accepts them.
5751 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5753 * src/compiler.c (main): Add a --verbose cmdline option
5754 and only log messages if it is specified.
5757 * src/gidlnode.c (init_stats, dump_stats): Collect some
5758 statistics on string and type sharing.
5760 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5761 g_message() instead of fprintf().
5763 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5764 (g_idl_node_get_size): Implement for structs.
5765 (g_idl_node_get_full_size): Handle parent being NULL.
5766 (serialize_type): Handle lookup failures more gracefully.
5768 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5770 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5771 size calculation for 2-parameter types and for objects.
5773 * src/compiler.c: Add a cmdline option for debug output
5774 and install a log handler to implement it.
5775 * src/gidlnode.c: Add some debug spew.
5779 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5780 forget to count the module name when calculating the
5781 required size for the metadata.
5784 * src/gidlparser.c: Fix compiler warnings.
5786 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5788 * src/compiler.c (main): Free the option context.
5790 * gidl.dtd: Clean up handling of names. All elements
5791 have a "name", only the elements corresponding to
5792 actual callable functions (function, method, constructor),
5793 have an additional "symbol" attribute holding the
5794 dlsym()-able function name.
5796 * src/generate.c: Adapt to generate xml matching the
5800 * src/gidlnode.c: Adapt to parse the new dtd.
5802 * tests/*.test: Adjust to the new dtd.
5804 * metadata-format.txt:
5805 * src/gmetadata.h: Remove the short_name field
5807 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5808 * src/girepository.h:
5809 * src/ginfo.c (g_value_info_get_short_name): Removed
5811 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5813 * gidl.dtd: Allow constructors for boxed types,
5814 patch by Jonathan Blandford.
5817 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5819 * --- Initial import ---