2 2009-01-21 Johan Dahlin <jdahlin@async.com.br>
6 2009-01-21 Johan Dahlin <jdahlin@async.com.br>
8 Bug 562622 – Errordomains missing
10 * giscanner/girwriter.py:
11 * giscanner/glibast.py:
12 * giscanner/glibtransformer.py:
13 * tests/scanner/Makefile.am:
14 * tests/scanner/foo-1.0-expected.gir:
15 * tests/scanner/foo-1.0-expected.tgir:
16 * tests/scanner/foo.c (foo_error_get_type), (foo_error_quark):
17 * tests/scanner/foo.h:
19 2009-01-20 Johan Dahlin <jdahlin@async.com.br>
21 * giscanner/scannerlexer.l:
22 Increase the buffer size to 1M, so
23 gtkalias.h can be parsed.
25 2009-01-20 Johan Dahlin <jdahlin@async.com.br>
27 * giscanner/glibtransformer.py:
28 When trying to map functions to structs, do
29 not require a public structure to exist, should
30 fix Gst gir generation in.
32 2009-01-20 Johan Dahlin <jdahlin@async.com.br>
34 Bug 562615 – Struct methods missing
36 * giscanner/annotationparser.py:
38 * giscanner/girwriter.py:
39 * giscanner/glibast.py:
40 * giscanner/glibtransformer.py:
41 * tests/scanner/foo-1.0-expected.gir:
42 * tests/scanner/foo-1.0-expected.tgir:
44 2009-01-16 Dan Winship <danw@gnome.org>
46 * gir/GL-1.0.gir: add back GLvoid, which got lost during the
47 gir-repository -> gobject-introspection migration
49 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
51 * gir/freetype2-2.0.gir: add FT_Int32
52 * gir/xft-2.0.gir: add XftFont
53 * girepository/gdump.c (g_irepository_dump):
54 Report errors when an invalid type is encountered
55 * giscanner/glibtransformer.py:
56 Make the error message a bit nicer.
58 Part of preparating for gir generating inside pango.
60 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
65 * gir/fontconfig-2.0.gir:
66 * gir/freetype2-2.0.gir:
67 * gir/libxml2-2.0.gir:
72 Move over the hand-written girs from gir-repository
73 so upstream libraries depending on these can avoid
74 a gir-repository dependency.
76 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
78 Bug 567813 – Everything should be versioned
81 * girepository/Makefile.am:
82 * girepository/girepository.c (init_globals):
83 * girepository/girparser.c (locate_gir):
84 * giscanner/dumper.py:
85 * giscanner/transformer.py:
86 * gobject-introspection-1.0.pc.in:
87 * tests/everything/Makefile.am:
88 * tests/invoke/Makefile.am:
89 * tests/offsets/Makefile.am:
90 * tests/repository/Makefile.am:
91 * tests/scanner/Makefile.am:
94 2009-01-13 Johan Dahlin <jdahlin@async.com.br>
96 Bug 555036 – put gtk-doc in GIR
98 * giscanner/annotationparser.py:
100 * giscanner/girwriter.py:
101 * giscanner/glibast.py:
102 * tests/scanner/annotation-1.0-expected.gir:
103 * tests/scanner/annotation.h:
104 * tests/scanner/foo-1.0-expected.gir:
106 2009-01-13 Johan Dahlin <jdahlin@async.com.br>
108 * giscanner/cachestore.py (CacheStore.load): Catch AttributeError
109 which seems to be occasionally raised for Record.
111 * giscanner/annotationparser.py:
112 Fix a bug where \n was not present in a comment
114 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
116 Bug 562467 – Property annotation
118 * giscanner/annotationparser.py:
119 * tests/scanner/annotation-1.0-expected.gir:
120 * tests/scanner/annotation-1.0-expected.tgir:
121 * tests/scanner/annotation.c (annotation_object_set_property),
122 (annotation_object_get_property), (annotation_object_class_init):
124 Annotations are parsed for properties.
126 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
128 Bug 546739 – Introspection should know precise signal parameter types
130 * giscanner/annotationparser.py:
131 * tests/scanner/annotation-1.0-expected.gir:
132 * tests/scanner/annotation-1.0-expected.tgir:
133 * tests/scanner/annotation.c (annotation_object_class_init):
135 Annotations are parsed for signals, the (type) annotation is introduced.
137 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
139 Bug 563591 – Flags not recognized when there is no introspection data
142 * giscanner/girwriter.py:
143 * giscanner/giscannermodule.c (type_get_is_bitfield):
144 * giscanner/glibast.py:
145 * giscanner/glibtransformer.py:
146 * giscanner/scannerparser.y:
147 * giscanner/sourcescanner.c (gi_source_type_copy):
148 * giscanner/sourcescanner.h:
149 * giscanner/sourcescanner.py:
150 * giscanner/transformer.py:
151 * tests/scanner/foo-1.0-expected.gir:
152 * tests/scanner/foo-1.0-expected.tgir:
153 * tests/scanner/foo.h:
155 Large parts of this patch was done by Jürg Billeter.
157 2009-01-12 Havoc Pennington <hp@pobox.com>
159 Bug 563386 – scanner ignores "const" on boxed return values
161 * tests/everything/everything.c (test_simple_boxed_a_const_return):
162 * tests/everything/everything.h:
164 This adds just the tests specified in the bug above, the fix itself
165 was included in Bug 563794
167 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
169 Bug 566404 – Annotations for GLib
171 * gir/glib-2.0.c: Added allow-none annotations for g_thread_init()
172 and g_main_loop_new().
174 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
176 Bug 566419 – Element type of arrays not properly handled in all cases
178 * giscanner/annotationparser.py:
179 * tests/scanner/annotation-1.0-expected.gir:
180 * tests/scanner/annotation-1.0-expected.tgir:
181 * tests/scanner/annotation.c (annotation_object_set_data),
182 (annotation_object_set_data2), (annotation_object_set_data3):
183 * tests/scanner/annotation.h:
185 Based on patch by Andreas Rottmann
187 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
189 Bug 566560 – giscanner.transformer.SkipError
191 * giscanner/transformer.py:
193 Catch SkipError for all nodes, not just functions.
194 Makes it possible to skip unsupported parameter types in
197 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
199 Bug 563794 - Redo annotation parsing & applying
201 Thanks to Colin for helping out considerably in landing this.
203 * giscanner/Makefile.am:
205 * giscanner/dumper.py:
206 * giscanner/girparser.py:
207 * giscanner/giscannermodule.c (pygi_source_scanner_get_comments),
208 (calc_attrs_length), (pygi_collect_attributes), (init_giscanner):
209 * giscanner/glibtransformer.py:
210 * giscanner/scannerlexer.l:
211 * giscanner/sourcescanner.c (gi_source_symbol_unref),
212 (gi_source_scanner_new), (gi_source_scanner_free),
213 (gi_source_scanner_get_comments):
214 * giscanner/sourcescanner.h:
215 * giscanner/sourcescanner.py:
216 * giscanner/transformer.py:
217 * giscanner/xmlwriter.py:
218 * tests/scanner/annotation-1.0-expected.gir:
219 * tests/scanner/annotation-1.0-expected.tgir:
220 * tests/scanner/annotation.c:
221 * tests/scanner/annotation.h:
222 * tests/scanner/foo-1.0-expected.gir:
223 * tests/scanner/foo-1.0-expected.tgir:
224 * tests/scanner/foo.h:
225 * tools/g-ir-scanner:
227 This commit merges the annotation parser rewrite branch.
228 It'll change the annotation parsing to be done completely in python
229 code which will make it easier to do further annotation parsing
232 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
234 Bug 563469 – Arrays not treated correctly in struct offset calculation
236 * tests/scanner/foo.h (FooObject): Added field `some_int'.
237 * tests/scanner/foo-1.0-expected.gir,
238 * tests/scanner/foo-1.0-expected.tgir: Adapted.
240 * giscanner/glibtransformer.py (GLibTransformer._create_gobject):
241 carry over object fields from original (struct) node.
242 (GLibTransformer._pair_class_struct): Don't add fields of the
243 class struct to to the node for the class, they should go under a
244 nested <record> element (see also Bug 551738). This is needed as
245 otherwise offset calculation would not work, as the instance
246 fields are mingled with the class fields without a way to
249 2009-01-03 Johan Dahlin <jdahlin@async.com.br>
252 Disable blank line check, it works differently under
253 Python 2.5 from 2.6 and was rather annoying from the start.
255 2008-01-03 Andreas Rottmann <a.rottmann@gmx.at>
257 Bug 556489 – callback annotations
259 * giscanner/transformer.py
261 * tools/generate.c (write_callable_info): Write out the new scope,
262 closure and destroy attributes.
264 * giscanner/transformer.py (Transformer._type_is_callback): New
265 method, checking if a given type is a callback.
266 (Transformer._augment_callback_params): New method; adds
267 information (closure, destroy) to callback parameters.
268 (Transformer._handle_closure, Transformer._handle_destroy): New methods,
269 auxiliary to _augment_callback_params.
270 (Transformer._create_function): Call _augment_callback_params().
271 (Transformer._create_parameter): Handle scope option.
273 (Transformer._create_typedef_callback): New method, creates a
274 callback, and registers it in the typedef namespace
275 (Transformer._create_typedef): Use _create_typedef_callback()
276 instead of the plain _create_callback().
278 * giscanner/ast.py (Parameter): Added callback-related fields.
279 * giscanner/girwriter.py: Write out new Parameter fields.
281 * girepository/girnode.h (GIrNodeParam): Added fields scope,
283 * girepository/gtypelib.h (ArgBlob): Ditto.
284 * girepository/girparser.c (start_parameter): Handle new fields.
286 * girepository/girmodule.c (g_ir_module_build_typelib): Adjust
287 arg_blob_size, bump major version due to this change.
288 * girepository/girnode.c (g_ir_node_get_full_size_internal)
289 (g_ir_node_build_typelib)
290 * girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
292 (g_ir_node_build_typelib): Fill in new ArgBlob flags from param.
294 * girepository/girepository.h (GIScope): New enumeration, listing
295 the different possible scopes for callbacks.
297 * girepository/ginfo.c (g_arg_info_get_scope)
298 (g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
299 callback-related argument indices (callback scope, closure for a
300 callback, destroy notification for a callback).
302 * tests/scanner/: Added testcases for new features.
304 2009-01-03 Jürg Billeter <j@bitron.ch>
307 * giscanner/dumper.py:
308 * giscanner/girparser.py:
309 * giscanner/glibtransformer.py:
310 * giscanner/sourcescanner.py:
311 * giscanner/transformer.py:
312 * giscanner/xmlwriter.py:
314 Fix inconsistencies with PEP8
316 2008-12-21 Johan Dahlin <jdahlin@async.com.br>
319 Annotate transfer, direction and allow none for
320 g_file_load_contents, g_file_load_contents_finish and
321 g_file_load_partial_contents_finish parameters.
323 2008-12-12 Owen Taylor <otaylor@redhat.com>
325 Disable array auto-detection for out-annotated parameters (#563934)
327 If we have a parameter annotated as (out), then having a ctype of
328 'char **' (or similar) doesn't necessarily indicate an array.
330 * giscanner/transformer.py: Skip array-detection logic for
331 (out)-annotated parameters.
332 * tests/scanner/annotation.h tests/scanner/annotation.c
333 tests/scanner/annotation-1.0-expected.gir
334 tests/scanner/annotation-1.0-expected.tgir: Add a test for
335 an (out) string parameter.
337 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
339 * giscanner/dumper.py (DumpCompiler._link): Pass in
340 --tag=CC to libtool to avoid making libtool confused
341 when CC is different from gcc on some systems.
343 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
345 Bug 563998 – Cache the GIBaseInfo for GTypes
347 * girepository/girepository.c (g_irepository_find_by_gtype):
348 add a cache of GType -> GIBaseInfo.
350 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
352 Bug 562545 – Add function taking / returning GValue
354 * tests/everything/everything.[ch]: add a test of function taking and
355 returning "const GValue *"
357 2008-12-09 Johan Dahlin <johan@async.com.br>
359 * giscanner/cachestore.py (CacheStore.store): Use
360 shutil.move instead of os.rename, since it will
361 automatically fall back to copying+remove if the
362 src directory is on a different partition from
365 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
367 Bug 563742 – introspection should record the introduced version of
368 symbols marked with the "Since:" tag
373 * giscanner/girwriter.py:
374 * giscanner/scannerlexer.l:
375 * giscanner/transformer.py:
376 * tests/scanner/annotation-1.0-expected.gir:
377 * tests/scanner/annotation-1.0-expected.tgir:
378 * tests/scanner/annotation.c (annotation_versioned):
379 * tests/scanner/annotation.h:
381 2008-12-08 Johan Dahlin <johan@async.com.br>
383 * giscanner/cachestore.py (_get_cachedir): Don't require
384 HOME to be set and if it set, don't require the
387 2008-12-08 Johan Dahlin <johan@async.com.br>
389 * giscanner/cachestore.py (CacheStore.store): Dump the cache
390 file to a temporary file and rename it the expected filename
391 only when it's completely written.
392 This should make the cache more roboust when run in parallel,
393 and hopefully avoid triggering bugs in Python.
395 2008-12-03 Christophe Fergeau <teuf@gnome.org>
397 Bug 562971 – g-ir-scanner failure on libgpod headers
399 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
400 default 16384. Without it, the lexer was aborting with a cryptic
401 error message on source files containing really long comment
404 2008-12-01 Colin Walters <walters@verbum.org>
406 * girepository/gfield.c: Fix memory leak; unref type info we
407 created, not field info
409 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
411 Bug 562289 – Race when removing invalid cache
413 * giscanner/cachestore.py:
414 ENOENT is mapped to a OSError, not IOError.
416 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
418 * gir/glib-2.0.c: Add return value transfer annotation
419 for g_markup_escape_text.
421 2008-11-25 Colin Walters <walters@verbum.org>
423 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
425 * giscanner/dumper.py: Implement it.
426 * gir/Makefile.am, tests/**/Makefile.am: Use it.
428 2008-11-25 Colin Walters <walters@verbum.org>
430 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
431 to just use a Makefile rule and dependencies. This corresponds with a change
432 made to gir-repository to fix srcdir != builddir issues.
434 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
437 Post release version bump
440 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
445 2008-11-25 Colin Walters <walters@verbum.org>
447 Bug 559705 – Missing association between static methods and classes
449 * docs/typelib-format.txt:
450 * girepository/ginfo.c (g_function_info_get_flags):
451 * girepository/girmodule.c (g_ir_module_build_typelib):
452 * girepository/girnode.c (g_ir_node_get_size),
453 (g_ir_node_build_typelib):
454 * girepository/girparser.c (start_function):
455 * girepository/gtypelib.c (g_typelib_check_sanity),
456 (validate_header), (validate_function_blob):
457 * girepository/gtypelib.h:
459 * giscanner/girwriter.py:
460 * giscanner/glibtransformer.py:
461 * tests/scanner/foo-1.0-expected.gir:
462 * tests/scanner/foo-1.0-expected.tgir:
463 * tests/scanner/foo.h:
465 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
467 * giscanner/ast.py: Define socklen_t as an alias for int32.
469 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
471 * girepository/gdump.c (dump_type): Remove a warning,
472 be less verbose on error on fundamental types.
474 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
476 * giscanner/dumper.py: Add license headers,
477 refactor into a class, avoid some duplication and do some
478 extra pedantic checks.
480 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
482 Make it compilable with -Werror on my system by adding
483 a couple of prototypes and including headers.
485 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
487 Bug 562022 – gobject-introspection needs python headers
489 * configure.ac: fail without python headers present.
492 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
494 Bug 561617 – Return value array annotations
496 * giscanner/transformer.py:
497 * tests/scanner/annotation.c (annotation_return_array):
498 * tests/scanner/annotation.h:
499 Add support for (array) for return value annotations as well.
501 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
503 * tests/everything/everything.[ch]: add a test function which calls a
506 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
508 * giscanner/cachestore.py:
509 Catch ValueError exceptions.
511 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
513 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
515 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
517 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
518 instead of hard-coding struct sizes.
520 2008-11-18 Owen Taylor <otaylor@redhat.com>
522 Bug 561296 - Add "storage type" to the typelib data for enums
524 In order to set and get enum and flag fields in structures, we need
525 to know the integral type that the enumeration is stored as. We are already
526 computing that at compile time in order to compute struct offsets, so the
527 easiest thing to do is to save that in the typelib.
529 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
530 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
531 and compute and save it at compile time.
533 * girepository/girepository.h girepository/ginfo.c:
534 Add g_enum_info_get_storage_type().
536 * girepository/gfield.c: Implement reading and writing enum and flags fields
537 based on the storage type.
539 2008-11-18 Owen Taylor <otaylor@redhat.com>
541 Add enums to the Everything test module
543 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
544 test module and register them as GTypes.
546 https://bugzilla.gnome.org/show_bug.cgi?id=561296
548 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
550 * giscanner/cachestore.py:
551 Catch BadPickleGet exceptions as well.
553 2008-11-17 Owen Taylor <otaylor@redhat.com>
555 * tests/everything/everything.c: Fix doc comment annotations
556 for test_struct_b_clone() to refer to the right function.
558 2008-11-17 Dan Winship <danw@gnome.org>
560 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
561 spelling of GHashTable. #561135
563 * tests/scanner/annotation.c (annotation_object_get_hash):
564 * tests/scanner/annotation-1.0-expected.gir:
565 * tests/scanner/annotation-1.0-expected.tgir: add a test of
566 GHashTable annotations
568 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
570 * giscanner/ast.py: Change string array match type to be in terms
571 of canonicalized type.
572 * giscanner/transformer.py: Add canonicalize_ctype which gives us
573 a version of a c:type without aliases, so we can deep canonicalize
574 char** to utf8*. Update parse_ctype to use it.
575 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
577 2008-11-16 Colin Walters <walters@verbum.org>
579 * girepository/girepository.c: Ensure we always call init_globals,
580 even if passed a non-default repository.
582 2008-11-16 Colin Walters <walters@verbum.org>
584 Bug 559706 - Interface prerequisites
586 * common.mk: Dep on libgirepository.la for scanner libs so that
587 we rebuild things even if just gdump.c changes.
588 * girepository/gdump.c: Dump prerequisites.
589 * giscanner/ast.py: Add prerequisite list.
590 * giscanner/girparser.py: Parse them from gdump.
591 * giscanner/girwriter.py: Write them.
592 * giscanner/glibtransformer.py: Resolve them.
595 2008-11-16 Owen Taylor <otaylor@redhat.com>
597 Bug 561087 - Respect is_pointer in serialize_type()
599 Add a '*' to the serialization for the cases where we set is_pointer
600 in the type blob we write out depending on node->is_pointer. Don't
601 add the '*' in the cases where is_pointer is set or not set in a
604 http://bugzilla.gnome.org/show_bug.cgi?id=561087
606 2008-11-16 Owen Taylor <otaylor@redhat.com>
608 Bug 560825 – Add size and alignment to typelib
610 Include the size and alignment of structures and unions in the typelib,
611 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
613 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
614 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
615 to StructBlob and UnionBlob.
617 * girepository/ginfo.c girepository/girepository.h:
618 Add g_[struct|union]_get[size|alignment]().
620 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
622 2008-11-16 Owen Taylor <otaylor@redhat.com>
624 Bug 552371 – implement struct field get/set
626 * girepository/gfield.c girepository/girepository.h: Add
627 convenience functions g_field_info_set_field() and
628 g_field_info_get_field() to set and get fields based on the
629 offsets in GIFieldInfo.
631 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
633 Bug 560241 - Out-arguments should not be marked as being pointers
636 * girepository/girparser.c: Improved logic for out arguments.
638 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
640 Bug 559601 - Pointers in structs/unions unduly treated as arrays
642 * giscanner/transformer.py: Differentiate type creation logic
643 between parameters and struct components.
645 2008-11-15 Colin Walters <walters@verbum.org>
647 * giscanner/dumper.py: Check return code from pkg-config
650 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
652 * tests/everything/everything.c (test_array_int_in),
653 (test_array_gtype_in):
654 * tests/everything/everything.h:
655 Rename the int/gtype array tests. Make the return value
656 useful, an aggregation of the array input values.
658 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
660 * tests/everything/Makefile.am:
661 * tests/everything/everything.c:
662 * tests/everything/everything.h:
663 * tests/everything/gitesttypes.c:
664 * tests/everything/gitesttypes.h:
665 Rename gitesttypes.[ch] to everything.[ch]
667 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
669 Bug 560708 – Don't treat arrays that have a length specified as
670 zero-terminated by default
672 * giscanner/transformer.py: Default to non zero terminated for
674 * tests/*: Update, add test for zero vs not.
676 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
678 Bug 557788 - Return types for constructors in generated typelib bogus
680 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
681 obviously broken in the face of duplicate names in different
683 * tests/scanner/*expected.gir: Fix up.
685 2008-11-13 Owen Taylor <otaylor@redhat.com>
687 * girepository/girffi.c: Fix "Unexpected time for time_t"
690 2008-11-13 Colin Walters <walters@verbum.org>
692 Bug 558436 - avoid having scanner load app code
694 * giscanner/cgobject.py: Delete; we no longer load shared
696 * giscanner/dumper.py: Support for linking a library to
697 a stub binary for introspection.
698 * giscanner/glibtransformer.py: Rewrite to use gdump XML
699 from invocation of child binary.
700 * giscanner/transformer.py: Fix up to use fully qualified
701 name in parse tree. Make parse_ctype public so we can use
702 it inside glibtransformer.
703 * tests/scanner/barapp.c: New test, using --program arg
705 * tests/*: Update to use common.mk for invoking scanner.
706 * tools/g-ir-scanner: Add options --program, --program-arg,
708 * docs/g-ir-scanner.1: Update.
710 2008-11-13 Colin Walters <walters@verbum.org>
712 * configure.ac: Depend on Gio, we use it in gdump.c.
713 * girepository/gdump.c: Code to dump GType data to XML.
714 * girepository/girepository.c: Add option group for dumping.
715 * girepository/girepository.h: Define API for the above.
717 2008-11-13 Colin Walters <walters@verbum.org>
719 * common.mk: Add a file to include with Makefile fragments
720 useful for scanner invocation.
722 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
724 * tests/everything/gitesttypes.c (test_filename_return): Return
725 strings in filename encoding.
727 2008-11-13 Owen Taylor <otaylor@redhat.com>
729 Bug 560253 – Add structure and boxed types to Everything test module
731 * tests/everything/gitesttypes.[ch]: Add examples of:
733 Plain old data structs
734 Plain old data structs with nested fields
736 Plain old data boxed with nested fields
737 More complicated boxed types with internal state
739 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
741 * tests/everything/gitesttypes.c (test_gtype_in):
742 * tests/everything/gitesttypes.h:
743 Add a test of GType arrays, a la gtk_list_store_set_columns.
745 2008-11-12 Owen Taylor <otaylor@redhat.com>
747 Bug 560419 – Cache includes when parsing
749 Keep track of all modules parsed within a GIrParser, and when a
750 module is referenced a second time, use the existing parsed copy
751 instead of reparsing.
753 2008-11-12 Owen Taylor <otaylor@redhat.com>
755 Fix management of ParseContext.includes_modules (#560419)
757 * girepository/girparser.c: Fix some trivial bugs in managing the
758 list of include modules. (Add to module's list twice, not
759 initialized to NULL, not freed.)
761 2008-11-12 Owen Taylor <otaylor@redhat.com>
763 Keep aliases and disguised_structures local to each module (#560419)
765 * girepository/girmodule.[ch]: When parsing, keep keep a separate
766 hash tables of aliases and 'disguised' flags for each module, and
767 store that on the module.
769 After parsing an include merge the aliases/disguised flags to the
772 * girepository/girparser.c: Remove 'prefix_aliases' flag and
773 always prefix aliases/disguised structure types when parsing; this
774 simplifies the code considerably.
776 2008-11-12 Owen Taylor <otaylor@redhat.com>
778 Fix mismatches between .gir name and 'name' attribute (#560419)
780 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
781 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
782 where the 'name' element of <namespace/> didn't match the filename of the
783 gir, an assumption that the compiler has always expected and now enforces.
785 2008-11-12 Owen Taylor <otaylor@redhat.com>
787 Only allow one <namespace/> element per <repository/> (#560419)
789 * girepository/girparser.c: The logic in girparser.c didn't work
790 very well if there were multiple <namespace/> nodes within a
791 single <repository/> (context->namespace was always the overall
792 filename and not the the name specified in the <namespace/>
793 element for one thing; this would cause aliases to be mis-prefixed
794 in include modules.) Also check that the "name" in the
795 <namespace/> node matches the filename.
797 2008-11-12 Owen Taylor <otaylor@redhat.com>
799 Add a GirParser object to hold the state of a compilation
801 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
802 GirParser object to hold state that is global across a
803 compilation. Currently just holds the include path, but will
804 eventually also keep a cached list of parsed modules.
806 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
808 * girepository/girepository.c (find_namespace_latest): Fix
811 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
813 * configure.ac: use 'introspection' component for bugs
815 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
817 * tests/everything/gitesttypes.c (test_filename_return):
818 * tests/everything/gitesttypes.h:
819 Add a filename return test.
821 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
823 * tests/offsets/Makefile.am (gitestoffsets.c): fix
824 gen-gitestoffsets invocation with builddir != srcdir
826 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
828 * girepository/girepository.c:
829 Change the element type from utf8 to filename
830 * girepository/girnode.c (g_ir_node_build_typelib):
831 Special case filename equally to utf8 here.
833 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
836 Remove unused variables, add a dependency of girepository.ch, so when
837 they change we rebuild the gir automatically.
839 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
841 * girepository/girepository.c (g_irepository_get_search_path):
842 * girepository/girepository.h:
843 Add a g_irepository_get_search_path, so we can access the search
846 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
848 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
850 * girepository/girparser.c: avoid freeing an uninitialized pointer
852 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
855 * giscanner/glibtransformer.py:
856 * tools/g-ir-scanner:
857 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
858 so we can just pass in --library=foo/bar/baz.la and the scanner
859 does the right thing.
860 Don't warn for _get_type() functions if they don't take any
863 2008-11-11 Owen Taylor <otaylor@redhat.com>
865 Bug 560404 – Prefix types when resolving aliases in included modules
867 * girepository/girparser.c: When resolving aliases in an included
868 module, prefix types before looking them up.
870 2008-11-11 Owen Taylor <otaylor@redhat.com>
872 Compute field offsets and overall size for object structures
874 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
875 field of type object in structure"
877 Do basic computation of field offsets for objects and interfaces;
878 this doesn't attempt to address all of the "mess" for virtual
879 functions described in Bug 560281.
881 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
883 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
885 Based on patch by Johan Bilien.
887 * giscanner/transformer.py (_create_member, _create_parameter):
888 Resolve types here as well.
889 (_resolve_type_name_1): Try resolving using 'ctype' first since
890 it's least ambiguous. Fixes struct member type resolution with
891 similarly named types, e.g. Gdk.PangoRendererClass and
893 * tests/scanner/foo*: Add test.
895 2008-11-11 Owen Taylor <otaylor@redhat.com>
897 * girepository/girparser.c: Search provided include dirs before
898 the default directories.
900 2008-11-11 Owen Taylor <otaylor@redhat.com>
902 * girepository/giroffsets.c: Include fully-qualified names in
905 2008-11-11 Owen Taylor <otaylor@redhat.com>
907 * girepository/giroffsets.c: Fail gracefully with an informative
908 error message when recursion is encountered when computing a
911 2008-11-11 Owen Taylor <otaylor@redhat.com>
913 * girepository/girparser.c: Remove an unused variable.
915 2008-11-10 Owen Taylor <otaylor@redhat.com>
917 Add tests for field offset computations
919 * tests/offsets/offsets.h: Header file with structure definitions to test
921 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
922 field offsets for the structures in offsets.h two ways: using
923 the information from a generated typelib, and as computed by the
926 We diff these two versions to test that everything is OK.
928 2008-11-10 Owen Taylor <otaylor@redhat.com>
930 Remove field offsets from g-ir-generate output and test inputs
932 Field offsets are a) architecture dependent so they shouldn't be part
933 of the architecture-independent gir format which is installed in
934 datadir. b) Are architecture-dependent so they shouldn't be in test
937 * girepository/girparser.c: Don't parse offset for fields
938 * tools/generate.c: Don't parse offset for fields
939 * tests/*.gir test/scanner/*.tgir: Remove offsets
941 (Virtual function and discriminator offsets are not removed, as they
942 aren't fully hooked up to the field-offset computation machinery yet.)
944 2008-11-10 Owen Taylor <otaylor@redhat.com>
946 Bug 560252 - Compute field offsets before writing typelib
948 * girepository/girnode.h: Store the total size and alignment for
949 GIrNodeStruct/Boxed/Union.
951 * girepository/giroffset.c: New file implementing computation of
952 structure field offsets.
954 * girepository/girnode.c: Compute structure field offsets before
955 writing types into the typelib.
957 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
958 means "unknown". Also fix description of the discriminator_offset
961 2008-11-10 Owen Taylor <otaylor@redhat.com>
963 Bug 560250 - Fully parse included modules
965 For some things, like computing structure offsets to put into the typelib
966 we need more than just the aliases from included modules. Do a completel
967 parse of included modules and store in module->included_modules.
969 Also add g_ir_find_node() to find node information from within the
970 active set of modules and their includes.
972 2008-11-10 Owen Taylor <otaylor@redhat.com>
974 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
976 Extract a function to convert GITypeTag to ffi_type from the internals
977 of ginvoke.c. This will be useful in figure out structure alignment.
979 Also fix handling of gsize and time_t to be portable. (Add a check
980 to configure.ac to figure out the width of time_t.)
982 2008-11-10 Owen Taylor <otaylor@redhat.com>
984 Bug 560248 – "disguised structures"
986 Certain types like GIConv and GdkAtom are pointers internally but don't
987 look like pointers when referenced. They have the form.
989 typedef struct _X *X;
991 Parse these as structures/records but mark them in the gir with a 'disguised'
992 attribute so that we know that they need special handling.
994 In the typelib treat them like any other structure.
996 2008-11-09 Jürg Billeter <j@bitron.ch>
999 * giscanner/girwriter.py:
1001 Write throws attribute for virtual functions, fixes bug 559703
1003 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
1005 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
1006 up some confusion about the second argument to find_module, it's
1007 actually the packages __path__ attribute which we can safely ignore
1009 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
1011 2008-11-07 Owen Taylor <otaylor@redhat.com>
1013 Bug 559737 – Deal with continuations in macros
1015 * giscanner/giscannerlexer.l: Treat continuation lines the same
1016 as regular newlines. This makes the scanner not complain about
1017 #define foo(x) \ <stuff> inside a C file. There's no attempt
1018 however to handle parsing macro definitions split across lines.
1020 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
1022 * giscanner/cachestore.py:
1023 Handle broken cache entries, write only filesystems and
1024 running out of diskspace.
1026 2008-11-07 Owen Taylor <otaylor@redhat.com>
1028 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
1029 Set current_filename before lexing the file so error messages
1030 are reported in the right file.
1032 2008-11-06 Colin Walters <walters@verbum.org>
1034 * tests/everything/*: Add some tests for strv.
1036 2008-11-05 Colin Walters <walters@verbum.org>
1038 * girepository/ginvoke.c (g_function_info_invoke): Don't use
1039 nested scope local variable for error which may go away after
1040 conditional is complete.
1042 2008-11-05 Colin Walters <walters@verbum.org>
1044 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
1045 manipulate hackily; just use GString. This avoids an
1046 uninitialized memory read pointed out by Havoc.
1048 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
1050 * giscanner/__init__.py:
1052 * giscanner/cachestore.py:
1053 * giscanner/cgobject.py:
1054 * giscanner/girparser.py:
1055 * giscanner/girwriter.py:
1056 * giscanner/giscannermodule.c:
1057 * giscanner/glibast.py:
1058 * giscanner/glibtransformer.py:
1059 * giscanner/libtoolimporter.py:
1060 * giscanner/minixpath.py:
1061 * giscanner/odict.py:
1062 * giscanner/sourcescanner.c:
1063 * giscanner/sourcescanner.h:
1064 * giscanner/sourcescanner.py:
1065 * giscanner/transformer.py:
1066 * giscanner/utils.py:
1067 * giscanner/xmlwriter.py:
1069 Relicense the giscanner library under LGPLv2+.
1070 This has been approved by all contributors.
1072 2008-11-01 Owen Taylor <otaylor@redhat.com>
1074 Bug 558848 giparser.py: shared library should be optional
1076 When parsing a .gir, allow the shared-library attribute
1077 of <namespace/> to be missing: this corresponds to the handling
1078 in libgirepository and elsewhere.
1080 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
1082 Bug 557898 – Fails to build on OSX 10.4
1084 * configure.ac: Check for $shrext_cmds that should be implicitly
1085 available if you're using libtool >= 2.0. If undefined, call
1086 libtool --config explicitly to get its value.
1087 * girepository/gtypelib.c: Remove special case for (non-)Darwin
1088 systems as unneeded.
1090 2008-10-31 Colin Walters <walters@verbum.org>
1092 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
1094 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1096 * configure.ac: Post release version bump
1099 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1103 * docs/release-checklist.txt:
1106 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1108 * Makefile.am: add an upload-release target
1109 * docs/release-checklist.txt:
1110 Release process documentation
1112 2008-10-31 Colin Walters <walters@verbum.org>
1114 Bug 558109 – _g_typelib_init fails to find shared libraries
1116 * transformer/glibtransformer.py: Use ctypes' find_library
1117 on passed libraries and write that for the shared-library
1118 entry. We want to avoid depending on -devel packages.
1120 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1122 * docs/g-ir-scanner.1:
1123 Document the renaming options.
1125 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
1127 * giscanner/Makefile.am:
1128 * tests/invoke/Makefile.am:
1129 * tests/repository/Makefile.am: List in-tree libraries first in
1130 LDADD / LIBADD. If installed library is listed first, the
1131 resulting binary will prefer installed version to one in .libs,
1132 possibly making 'make check' behave strangely.
1134 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
1136 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
1137 gir-repository from choking with gdk/quartz
1139 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1141 * giscanner/giscannermodule.c (calc_attrs_length),
1142 (pygi_collect_attributes):
1143 * giscanner/xmlwriter.py:
1144 Write a C version of the xml namespace formatter.
1145 Saves 15% of the time it takes to create a gtk gir.
1147 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1149 * giscanner/xmlwriter.py: Abstract attribute formatting
1150 to a function external to the XMLWriter class.
1152 * giscanner/scannerlexer.l:
1153 Parse and discard __typeof and __attribute.
1155 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1157 * giscanner/girparser.py:
1158 Remove arguments from the constructor, move them to
1159 separate accessors. Add a new parse_tree method
1160 which takes an element tree instance.
1161 * tools/g-ir-scanner:
1162 Update callsite for this
1164 * giscanner/Makefile.am:
1165 * giscanner/cachestore.py:
1166 * giscanner/transformer.py:
1167 Cache the include parsing. Saves ~25% time when
1168 creating vte (which includes everything up to gtk+).
1170 2008-10-30 Colin Walters <walters@verbum.org>
1172 * giscanner/transformer.py: Don't reparse includes
1173 we've already processed.
1175 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1177 * giscanner/girparser.py:
1178 * giscanner/transformer.py:
1179 Avoid parsing parameters, types etc when parsing
1180 includes. Should speed up include parsing a bit.
1182 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1184 * giscanner/girparser.py:
1185 Avoid big if/else and use a dispatch table like
1188 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1190 * giscanner/transformer.py:
1191 Clean up include parsing and registration.
1193 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1195 * giscanner/transformer.py:
1198 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1200 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
1203 construct PYTHONPATH just once
1205 * tests/everything/Makefile.am:
1206 * tests/scanner/Makefile.am:
1207 add $(top_srcdir) to PYTHONPATH to
1208 handle builddir != srcdir
1210 * giscanner/libtoolimporter.py:
1211 * giscanner/sourcescanner.py:
1212 Make the libtoolimporter work when distchecking too.
1214 Mostly based on patch by Tommi Komulainen
1216 2008-10-29 Owen Taylor <otaylor@redhat.com>
1218 * giscanner/glibtransformer.py: If a filename of an existing
1219 file is passed to --library, hunt for it directly, rather than
1220 searching for a corresponding library.
1222 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
1224 * giscanner/libtoolimporter.py:
1225 * giscanner/sourcescanner.py:
1226 Clean up the libtool importer a bit. Add a context so we
1227 can use it through a with statement.
1228 Don't just look in the current directory, look in the whole
1231 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
1233 Bug 558065 – gitesttypes should be installed
1236 * tests/Makefile.am:
1237 * tests/types/Makefile.am -> tests/everything/Makefile.am
1238 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
1239 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
1240 move tests/types to tests/everything
1242 * tests/everything/Makefile.am: build normal shared library
1243 libgirepository-everything.so.1.0.0 and corresponding typelib
1244 Everything-1.0.typelib
1246 * tests/everything/Makefile.am: explicitly link libtool
1247 versioning with typelib versioning with variables
1249 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
1251 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
1253 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1255 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
1258 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1260 Bug 558068 – when invoking a method, offset the in arguments by one,
1263 * tests/invoke/invoke.c, tests/invoke/testfns.c,
1264 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
1265 * girepository/ginvoke.c: do not offset the index of given out
1266 arguments by one for methods, "this" is provided as in argument only.
1268 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1270 * gir/gio-2.0.c: add annotation for g_file_delete
1272 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
1274 Bug 558062 – provide and use paths in the .pc file
1276 * gobject-introspection-1.0.pc.in: provide typelibdir variable
1277 for where .typelibs should be installed (callers shouldn't need
1278 to construct paths from bits and pieces)
1280 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1282 Bug 557791 – g_irepository_require() could return a GTypelib *
1284 * girepository/girepository.c: Return GTypelib; this is useful
1285 for low level manipulation.
1287 2008-10-25 Colin Walters <walters@verbum.org>
1289 Bug 557788 – Return types for constructors in generated typelib bogus
1291 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
1292 rely on end pass resolution.
1294 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1296 Bug 557786 - support fixed size arrays
1298 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
1299 * giscanner/scannerparser.y: Retain fixed array size.
1300 * giscanner/ast.py: Add to note.
1301 * giscanner/girwriter.py: Write to gir.
1302 * girepository/girnode.c: Write it to typelib.
1303 * tools/generate.c: Generate.
1304 * tests/*: Add tests.
1306 2008-10-25 Colin Walters <walters@verbum.org>
1308 Bug 557076 - move typelibs to $libdir
1310 * configure.ac: Steal some configury bits from dbus to expand
1312 * gir/Makefile.am: Move to libdir.
1313 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
1314 instead just look at one hardcoded path in libdir.
1315 * acinclude.m4: Bits from dbus.
1317 2008-10-24 Johan Dahlin <johan@gnome.org>
1319 * girepository/girnode.c (g_ir_node_check_unhandled_members):
1320 Be quiet, do not warn about unhandled members.
1322 2008-10-24 Johan Dahlin <johan@gnome.org>
1324 * girepository/gtypelib.c:
1325 Only use SHLIB_SUFFIX on darwin, otherwise use
1326 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1328 2008-10-24 Lucas Rocha <lucasr@gnome.org>
1330 Bug 557623 - Constructors shouldn't be flagged as methods.
1332 * girepository/ginfo.c (g_function_info_get_flags): ditto.
1334 2008-10-24 Johan Dahlin <johan@gnome.org>
1336 * giscanner/scannerparser.y:
1337 Check against division by zero for the modula operator.
1338 This fixes header parsing of OSX system headers included
1341 2008-10-24 Johan Dahlin <johan@gnome.org>
1345 Add a CONTRIBUTORS file and dist it.
1347 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1349 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1351 * girepository/girparser.c (parse_param_transfer):
1352 * giscanner/transformer.py (_create_parameter, _create_return):
1353 * giscanner/girwriter.py (_write_return, _write_parameter):
1354 * tools/generate.c (write_callable_info): always write and
1355 require "transfer-ownership" for return-values and parameters
1358 * tests/invoke/testfns-1.0.gir:
1360 * tests/scanner/DrawableAdditions.xml:
1361 * tests/scanner/GtkFrob-1.0-expected.tgir:
1362 * tests/scanner/annotation-1.0-expected.tgir:
1363 * tests/scanner/drawable-1.0-expected.tgir:
1364 * tests/scanner/drawable-injected-1.0-expected.gir:
1365 * tests/scanner/drawable-injected-1.0-expected.tgir:
1366 * tests/scanner/foo-1.0-expected.tgir: Updated
1368 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1370 * giscanner/cgobject.py: build fundamental types same way as glib
1372 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1373 when constructing the Type from it
1375 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1376 the parameter is a GObject from its GType, if available.
1378 * giscanner/glibtransformer.py (_adjust_transfer):
1379 * tests/scanner/foo-1.0-expected.gir:
1380 * tests/scanner/foo-1.0-expected.tgir: deduce
1381 transfer-ownership from GTypes
1383 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1385 * giscanner/transformer.py (_create_parameter):
1386 * tests/scanner/foo-1.0-expected.gir: make varargs
1387 transfer-ownership="none"
1389 2008-10-23 Colin Walters <walters@verbum.org>
1391 Bug 556739 - transfer ownership
1393 * giscanner/ast.py: Refactor Parameter/Return to share
1394 common attributes. Add transfer_inferred attribute
1395 which says whether or not we made a guess.
1396 * giscanner/transformer.py: Add much more extensive
1397 heuristics around parameter and return transfer.
1398 * giscanner/glibtransformer.py: Adjust to inspect
1402 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1404 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1406 * tests/scanner/Makefile.am:
1407 * tests/scanner/annotation-1.0-expected.tgir:
1408 * tests/scanner/drawable-1.0-expected.tgir:
1409 * tests/scanner/drawable-injected-1.0-expected.tgir:
1410 * tests/scanner/foo-1.0-expected.tgir:
1411 * tests/scanner/GtkFrob-1.0-expected.tgir:
1412 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1413 annotations survive the roundtrip via typelib
1415 The expectations are as currently produced by g-ir-generate,
1416 comparison with the .gir files shows there are differences.
1418 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1420 Bug 557468 – Support for GI_TYPELIB_PATH
1422 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1423 provided paths to the global search path.
1425 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1427 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1429 * tests/scanner/drawable-1.0-expected.tgir:
1430 * tests/scanner/drawable-injected-1.0-expected.tgir:
1431 * tests/scanner/foo-1.0-expected.tgir:
1432 * tools/generate.c (write_object_info): write 'abstract'
1433 attribute for classes
1435 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1437 * girepository/girmodule.c, girepository/gtypelib.c,
1438 girepository/girparser.[ch]: fix some build warnings.
1440 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1442 Bug 557405 – Use 'allow-none' consistently
1444 * docs/typelib-format.txt:
1445 * girepository/ginfo.c (g_arg_info_may_be_null):
1446 * girepository/girnode.c (g_ir_node_build_typelib):
1447 * girepository/girnode.h (struct _GIrNodeParam):
1448 * girepository/girparser.c (start_parameter):
1449 * girepository/girwriter.c (function_generate):
1450 * girepository/gtypelib.h (ArgBlob):
1452 * tests/function.gir:
1453 * tools/generate.c (write_callable_info): Use 'allow-none'
1454 consistently throughout
1456 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1458 Bug 557092 – Callback annotations not used
1460 * giscanner/transformer.py (_create_callback): use annotations
1462 * tests/scanner/annotation.h
1463 * tests/scanner/annotation-1.0-expected.gir: add tests
1465 2008-10-21 Colin Walters <walters@verbum.org>
1467 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1468 uncommented parameters.
1471 2008-10-21 Colin Walters <walters@verbum.org>
1473 * girepository/girepository.c: Ensure that when doing an unversioned
1474 require, we prefer items earlier in the search path to later ones.
1476 2008-10-21 Owen Taylor <otaylor@redhat.com>
1478 * giscanner/transformer.py: For string parameters allow transfer annotation
1479 to override the standard automatic guessing based on 'const'.
1481 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1483 Bug 557241 – "throws" flag for functions
1485 * tests/scanner/drawable-1.0-expected.gir,
1486 tests/scanner/drawable-injected-1.0-expected.gir,
1487 tests/scanner/drawable.[ch]: add simple test for throwing
1488 function (has GError ** as last argument)
1490 * giscanner/ast.py: add a 'throws' flag to Function
1491 * giscanner/glibtransformer.py: if a function's last paramerter is
1492 a GError, set the 'throws' flag and remove that parameter
1493 * giscanner/girwriter.py: write out the 'throws' attribute
1494 * giscanner/girparser.py: support parsing the 'throws' attribute
1496 * tests/repository/gitestthrows.c: add a simple test to check the
1497 throws flag in a typelib and invoke the function
1499 * girepository/ginfo.c, girepository/girnode.[ch],
1500 girepository/girnode.h, girepository/girparser.c,
1501 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1503 * girepository/ginvoke.c: if a function throws, add a GError as last
1504 arguments, and propagate the error to the invoker.
1506 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1508 * giscanner/transformer.py (_create_parameters): Warn if we see
1509 annotations for unknown parameters. If .h and .c files name
1510 parameters differently, the annotations may be lost.
1512 2008-10-21 Johan Dahlin <johan@gnome.org>
1514 Bug 556358 - don't use libtool internals
1516 * giscanner/Makefile.am:
1517 * giscanner/libtoolimporter.py:
1518 * giscanner/sourcescanner.py:
1519 * giscanner/utils.py:
1520 Add a python meta importer and remove a libtool symlink hack.
1522 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1524 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1525 and --add-include-path appropriately when invoking the scanner.
1526 * tests/types/Makefile.am (%typelib): Likewise.
1528 2008-10-20 Colin Walters <walters@verbum.org>
1530 Bug 556777 - validate properties
1532 * giscanner/transformer.py: Add option to throw on unknown types.
1533 * giscanner/glibtransformer.py: Use it on properties.
1534 * tests/*: Add a test.
1536 2008-10-20 Colin Walters <walters@verbum.org>
1538 * giscanner/glibast.py: Also register g variants of
1539 default_array_types. This is not beautiful, but
1540 good alternatives aren't easy to come by.
1541 This fixes gchar ** parsing.
1543 2008-10-20 Colin Walters <walters@verbum.org>
1545 * docs/typelib-format.txt, girepository/gtypelib.h:
1546 Take a bit from ObjectInfo to represent abstract flag.
1547 * giscanner/cgobject.py: Expose g_type_get_flags.
1548 * girepository/girepository.h: Add accessor.
1549 * girepository/ginfo.c: Implement it.
1550 * giscanner/ast.py: Add is_abstract flag to generic
1552 * giscanner/glibast.py: Use it.
1553 * giscanner/girwriter.py: Write it.
1554 * girepository/girparser.c: Parse it.
1557 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1559 * giscanner/girparser.py (_parse_function): don't lose
1560 'transfer-ownership' attributes when injecting, check for the
1563 2008-10-19 Johan Dahlin <johan@gnome.org>
1565 * giscanner/scannerlexer.l: Parse and ignore __asm.
1567 2008-10-19 Colin Walters <walters@verbum.org>
1569 * giscanner/girparser.py: Parse array length= to ensure
1570 it doesn't get lost from --inject.
1572 2008-10-17 Colin Walters <walters@verbum.org>
1574 Bug 556795 - char ** regression
1576 * giscanner/transformer.py: Fix parsing of ctypes, add some
1577 comments about what's going on.
1578 * tests/*: Add a test for char **.
1580 2008-10-17 Colin Walters <walters@verbum.org>
1582 Bug 556783 - change namespace handling to be more consistent
1584 * giscanner/transformer.py: Eliminate usage of
1585 strip_namespace_object. We now treat --namespace as the default
1586 --strip-prefix; however, if --strip-prefix is specified it
1587 overrides --namespace. This applies to everything except function
1588 names, where we do also strip the namespace.
1589 * giscanner/glibtransformer.py: Remove usage of
1590 strip_namespace_object.
1592 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1593 --namespace and --strip-prefix.
1595 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1597 Bug 556732 – generate gir files consistently
1599 * girepository/girparser.c (start_parameter):
1601 * tests/invoke/testfns-1.0.gir:
1602 * tools/generate.c (write_callable_info): write
1603 'transfer-ownership' attribute consistently with both
1604 return-value and parameter elements
1606 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1608 Bug 556732 – generate gir files consistently
1610 * tools/generate.c (write_callable_info): write 'direction'
1611 attribute only if other than 'in' to be consistent with
1614 * tests/object.gir: remove direction="in" which is the default
1616 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1618 Bug 556732 – generate gir files consistently
1620 * giscanner/ast.py (Field): add readable and writable properties
1621 * giscanner/girparser.py (_parse_field): copy 'readable' and
1622 'writable' attributes
1623 * giscanner/transformer.py (_create_member): create fields as
1625 * giscanner/glibtransformer.py (_introspect_object,
1626 _pair_class_struct): make object instance and class fields
1628 * giscanner/girwriter.py (_write_field):
1629 * tools/generate.c (write_field_info): write field 'readable'
1630 and 'writable' attributes only if non-default (read-only)
1631 * girepository/girparser.c (start_field): in the absence of
1632 attributes assume fields are read-only
1634 * tests/struct.gir: remove redundant readable="1" from fields
1635 * tests/scanner/foo-1.0-expected.gir:
1636 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1637 all record and union fields
1639 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1641 Bug 556732 – generate gir files consistently
1643 * giscanner/girwriter.py (_write_property): write properties
1644 'construct' attribute if set
1645 * tools/generate.c (write_property_info): write properties
1646 'readable' and 'writable' attributes only if non-default
1647 * tests/object.gir: add writable="0"
1648 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1650 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1652 * gir/glib-2.0.c: added annotations
1654 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1656 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1659 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1661 Bug 556610 – giscanner/girparser.py drops parameter options
1663 * tests/scanner/drawable-injected-1.0-expected.gir,
1664 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1665 * giscanner/ast.py: allow Parameter to take options in the constructor
1666 * giscanner/girparser.py: parse parameter options (transfer,
1667 direction, allow-none)
1669 2008-10-16 Colin Walters <walters@verbum.org>
1671 Bug 556185 - segfault on g_callable_info_get_return_type
1673 Initial patch from John Ehresman.
1675 * tests/repository/*: Add a test using
1676 g_callable_info_get_return_type. Instead of casting a
1677 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1678 to call g_type_info_get_interface.
1680 2008-10-16 Colin Walters <walters@verbum.org>
1682 Bug 556579 - union and struct name misresolved
1684 * giscanner/transformer.py: The calls to _resolve_type_name
1685 for struct/union names was a legacy holdover from when type
1686 resolution had multiple phases. Now it's actively harmful
1687 since we might pull in an identical name from another
1691 2008-10-16 Colin Walters <walters@verbum.org>
1693 Bug 556432 - transfer annotations and defaults
1695 * giscanner/transformer.py: Canonicalize type
1696 after removing *, not before. This ensures that
1697 guchar* is transformed to 'uint8'.
1698 Add some comments here.
1699 * giscanner/glibtransformer.py: Add _adjust_transfer
1700 phase for tweaking GObject transfers.
1703 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1705 * configure.ac: enable bunch of gcc warning CFLAGS
1707 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1709 Bug 556543 – reduce compiler warnings
1711 * girepository/ginfo.c:
1712 * girepository/girepository.c (register_internal,
1713 count_interfaces, find_interface, find_namespace_version,
1714 parse_version, g_irepository_require):
1715 * girepository/girmodule.c (g_ir_module_build_typelib):
1716 * girepository/girnode.c (init_stats, dump_stats,
1717 _g_irnode_init_stats, _g_irnode_dump_stats,
1718 g_ir_node_can_have_member):
1719 * girepository/girparser.c (firstpass_end_element_handler,
1720 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1721 start_alias, start_type, end_type_top, parse_include, cleanup,
1723 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1724 * giscanner/giscannermodule.c (directive_get_options,
1725 type_get_child_list):
1726 * giscanner/scannerlexer.l (parse_gtkdoc):
1727 * giscanner/scannerparser.y (ctype_free):
1728 * giscanner/sourcescanner.c:
1729 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1730 * tests/types/gitesttypes.c:
1731 * tools/compiler.c (main):
1732 * tools/generate.c (write_repository): Remove unused variables
1733 and code, add missing includes, declarations and case
1736 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1738 Bug 556541 – access union members through UnionBlob rather than
1741 * girepository/ginfo.c (g_union_info_find_method): access union
1742 members through UnionBlob rather than StructBlob
1744 2008-10-15 Colin Walters <walters@verbum.org>
1746 Bug 556331 - clean up includes handling
1748 * tools/g-ir-scanner: Rework command line arguments; now we take
1749 --add-include-path and --include separately.
1750 * giscanner/girwriter.py: Separate name= and version= in include
1752 * giscanner/ast.py: Add Include type.
1753 * giscanner/transformer.py: Cleanups to register_include now that
1754 we don't need to handle mixed filenames and relative arguments.
1755 * girepository/girparser.c: Parse name and version separately;
1756 this fixes a bug as a side effect where we weren't resolving
1757 through aliases for basic types.
1758 * girepository/girepository.c: Fix format string args.
1759 * gir/Makefile.am: Update.
1762 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1764 Bug 556434 – unhandled interface/object/... member types
1766 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1767 g_ir_node_build_typelib): Check all
1768 interface/object/boxed/struct/union members are processed and
1769 abort if they are not. (Mostly callbacks in structs, but also
1770 fields in interfaces.)
1772 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1774 * a/girepository/girnode.c (g_ir_node_build_members,
1775 g_ir_node_build_typelib): refactor common code for processing
1776 members to a function
1778 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1780 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1781 transformation is lossless (it's not)
1783 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1785 * tests/Makefile.am: fix tests to compare xml to xml instead of
1786 typelib to xml, and stop on error
1788 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1790 * tools/generate.c (write_type_name, write_type_info,
1791 write_type_info, write_object_info, write_object_info,
1792 write_interface_info, write_error_domain_info): reduce code
1795 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1797 Bug 556174 – parse types for lists etc.
1799 * girepository/girparser.c (end_type_recurse):
1801 * tools/generate.c (write_type_info, write_field_info,
1802 write_callable_info, write_callable_info, write_constant_info,
1803 write_property_info): use nested <type>s for lists and hashes
1805 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1808 * tests/object.gir: remove trailing whitespace from inside
1809 elements to match g-ir-generate output
1811 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1813 * tools/generate.c (xml_printf): quote printf arguments so that
1814 we don't generate invalid XML by writing unescaped double quotes
1815 and such in attributes
1817 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1819 * tools/generate.c (write_field_info, write_callable_info,
1820 write_function_info, write_callback_info, write_struct_info,
1821 write_constant_value, write_signal_info, write_vfunc_info,
1822 write_object_info, write_interface_info, write_union_info,
1823 write_repository): remove unused indent parameters, xmlwriter
1824 keeps track of necessary indentation
1826 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1828 * tools/generate.c (xml_element_new, xml_element_free,
1829 xml_start_element, xml_end_element, xml_end_element_unchecked,
1830 xml_open, xml_close): Keep track of generated XML tree and
1831 handle indentation and closing tags properly.
1832 (write_field_info, write_callable_info, write_function_info,
1833 write_callback_info, write_struct_info, write_value_info,
1834 write_constant_info, write_enum_info, write_signal_info,
1835 write_vfunc_info, write_property_info, write_object_info,
1836 write_interface_info, write_error_domain_info, write_union_info,
1837 write_repository): Use xml_start_element and xml_end_element to
1840 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1842 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1843 (write_type_name, write_type_info, write_field_info,
1844 write_callable_info, write_function_info, write_callback_info,
1845 write_struct_info, write_value_info, write_constant_value,
1846 write_constant_info, write_enum_info, write_signal_info,
1847 write_vfunc_info, write_property_info, write_object_info,
1848 write_interface_info, write_error_domain_info, write_union_info,
1849 write_repository): wrap all FILE access to go through simple xmlwriter
1851 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1853 Bug 556400 – Fails to build on OS X 10.4
1855 * configure.ac: check for functions backtrace and backtrace_symbols
1856 * girepository/girparser.c (backtrace_stderr): Comment out
1857 implementation if the functions are not available.
1858 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1859 directory for better portability
1861 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1863 Bug 556433 – assume direction = out for int * parameters
1865 * giscanner/ast.py: define a list of types for which, if passed as
1866 reference, we assume a default direction of 'out'
1867 * giscanner/transformer.py: if a type has type pointer to one of the
1868 previously defined types, and no direction is set, assume out.
1869 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1871 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1873 * tests/scanner/annotation.c: fixed a few copy-paste errors
1875 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1877 Bug 556323 – transfer-ownership is wrong for functions returning const
1880 * giscanner/transformer.py: check for a const string as return value,
1881 not just const char*. Suggested by Colin Walters
1882 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1884 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1886 * girepository/ginfo.c, girepository/girepository.h: add
1887 g_union_info_find_method
1889 2008-10-14 Colin Walters <walters@verbum.org>
1891 * tests/repository/Makefile.am: Reenable repo test.
1892 * tests/repository/gitestrepo.c: Prepend search
1893 path for $(top_builddir)/gir dir so that we don't
1894 require installation for "make check" to pass.
1896 2008-10-13 Jürg Billeter <j@bitron.ch>
1898 * giscanner/glibtransformer.py:
1899 * tests/scanner/annotation-1.0-expected.gir:
1900 * tests/scanner/drawable-1.0-expected.gir:
1901 * tests/scanner/foo-1.0-expected.gir:
1902 * tests/scanner/utility-1.0-expected.gir:
1904 Support fields in GObject structs
1906 2008-10-13 Jürg Billeter <j@bitron.ch>
1908 * giscanner/ast.py: add signed integer and off_t to type_names
1910 2008-10-12 Jürg Billeter <j@bitron.ch>
1912 * giscanner/girparser.py: Parse bits attribute of fields
1914 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1916 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1917 * tests/repository/gitestrepo.c (main): instantiate
1918 'GCancellable' to ensure the GType is registered before using
1921 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1923 * giscanner/girparser.py: actually add the parsed constant nodes
1925 2008-10-12 Colin Walters <walters@verbum.org>
1927 * girepository/girepository.c: Don't cast DirEntry to Blob,
1928 actually look it up by offset.
1930 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1932 * giscanner/girparser.py: parse constant nodes in gir files
1934 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1936 * giscanner/transformer.py: prefix for constants have an underscore,
1937 so remove them as if they were functions, not objects.
1939 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1941 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1944 2008-10-12 Colin Walters <walters@verbum.org>
1946 Initial patch from Jani Monoses.
1948 * girepository/gtypelib.c: Fix inverted test for success
1951 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1953 * tools/generate.c (write_callable_info): use "transfer-ownership"
1954 attribute for return values
1956 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1958 * tools/generate.c (write_callable_info): move "transfer" and
1959 "null-ok" attributes from <function> to <return-value> element
1961 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1963 * girepository/girparser.c (start_return_value): handle
1964 "transfer-ownership" attribute
1966 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1968 * girepository/girparser.c (parse_param_transfer):
1969 * tools/generate.c (write_callable_info): use "container" for
1970 container/shallow ownership transfer (not "shallow")
1972 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1974 * girepository/girparser.c (parse_param_transfer,
1975 start_parameter): Refactor handling of transfer=none/shallow/full
1976 to separate function
1978 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1980 Bug 556048 – Crash in g_irepository_find_by_gtype
1982 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1983 * girepository/girepository.c (find_interface): Fix
1984 find_by_gtype case to get the type name from right offset
1986 2008-10-12 Jürg Billeter <j@bitron.ch>
1988 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1991 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1993 * girepository/gtypelib.h (RegisteredTypeBlob): make
1994 'unregistered' one bit wide as everywhere else
1996 2008-10-12 Jürg Billeter <j@bitron.ch>
1998 * giscanner/glibtransformer.py:
1999 * tests/scanner/annotation-1.0-expected.gir:
2000 * tests/scanner/drawable-1.0-expected.gir:
2001 * tests/scanner/drawable.h:
2002 * tests/scanner/foo-1.0-expected.gir:
2003 * tests/scanner/utility-1.0-expected.gir:
2005 Readd class records as workaround to not break Gtk typelib
2007 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
2009 * tests/types/Makefile.am: fix typo in gitesttypes namespace
2011 2008-10-12 Jürg Billeter <j@bitron.ch>
2013 * giscanner/glibtransformer.py: Don't generate <record> elements
2015 * tests/scanner/*: Update test cases
2017 2008-10-11 Colin Walters <walters@verbum.org>
2019 Bug 552858: versioning
2021 This is a big patch. You should probably remove your installation
2024 * docs/typelib-format.txt: Add nsversion entry which holds
2025 version of namespace.
2026 * girepository/girepository.h: Add 'version' parameter to
2027 g_irepository_require. This may be NULL. Normally
2028 bindings should pass an explicit version though.
2029 * girepository/girepository.c: Lots of infrastructure to
2030 support versioning. Add some more documentation. Disallow
2031 some usage of NULL namespaces.
2032 * girepository/girmodule.c: Add version parameter.
2033 * girepository/gtypelib.c: Update header size.
2034 * giscanner/ast.py: Add version to Namespace.
2035 * giscanner/girparser.py: Parse version attribute from
2036 XML, pass to Namespace.
2037 * giscanner/girwriter.py: Write out version parameter.
2038 * giscanner/transformer.py: Clean up include registration.
2039 * tests/*: Add version attribute.
2040 * tests/invoke/invoke.c: Don't try looking up test before
2041 it's loaded in repository.
2042 * tools/generate.c: Output version parameter.
2043 * gir/Makefile.am: Add 2.0 version to .gir files.
2045 2008-10-11 Colin Walters <walters@verbum.org>
2047 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
2048 if we have mismatched parens.
2050 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2052 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
2053 on 'members' variable.
2055 2008-10-11 Colin Walters <walters@verbum.org>
2057 Bug 555947 - update annotations syntax
2059 * giscanner/ast.py: Default to None for transfer. Remove
2060 default transfers for container types; we require this to
2062 * giscanner/girwriter.py: Transfer is now 'none', 'container',
2063 'full' to match repository.
2064 * giscanner/scannerlexer.l: Annotations now are parenthesized.
2065 * giscanner/transformer.py: Update for new annotations syntax.
2068 2008-10-11 Johan Bilien <jobi@litl.com>
2070 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
2072 2008-10-11 Johan Bilien <jobi@litl.com>
2074 Bug 552347: Parse #defines constants
2076 * girepository/gtypelib.c: update the list of value_size
2077 with recently defined type tags
2078 * giscanner/scannerparser.y: brought back parsing of #defined, as
2079 present in older version
2080 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
2081 * giscanner/girwriter.py: write out constant tags in the gir
2082 * giscanner/sourcescanner.py: add accessor for const_string
2083 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
2086 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
2088 Bug 555946: Install a test module exercising all types, transfer
2093 * tests/types/*: Add and install a test module that has functions
2094 accepting and returning most of the basic types to enable bindings
2095 implementors to more easily test their type conversion routines.
2097 2008-10-11 Jürg Billeter <j@bitron.ch>
2099 Bug 552374: Const strings should be identified in the gir.
2101 * giscanner/transformer.py: support string memory management
2102 * tests/scanner/foo.h: use char * and const char *
2103 * tests/scanner/foo-expected.gir: test that
2105 2008-10-11 Johan Dahlin <johan@gnome.org>
2107 * giscanner/girparser.py:
2108 Also parse enums which are not glib types.
2110 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2112 Bug 552370: add one more test for unsigned as a type, not as
2115 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
2116 * test/scanner/foo.h: add function which uses unsigned as a type.
2117 * test/scanner/foo-expected.gir: test that.
2119 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
2121 Bug 555712: Struct and union issues
2123 * giscanner/scannerparser.y (struct_declarator): Use information
2124 provided about the bit width of a field.
2125 * giscanner/transformer.py (Transformer._create_member): Pass the
2126 symbol's const_int member to the created field (it represents the
2128 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
2129 field attribute, if present.
2130 * giscanner/ast.py (Field): Add 'bits' member, specifying the
2131 width in bits of the field (only relevant for bitfields).
2134 * giscanner/transformer.py (Transformer._create_typedef_struct)
2135 (Transformer._create_typedef_union): Add calls to _create_struct()
2136 and _create_union(), respectively. This causes the scanner to
2137 generate output for fields of struct and union typedefs.
2140 2008-10-11 Jürg Billeter <j@bitron.ch>
2142 Bug 552370: unsigned not scanned properly
2144 * giscanner/scannerparser.y: combine basic types such as unsigned
2145 int and long long when scanning
2146 * tests/scanner/foo-expected.gir:
2147 * tests/scanner/foo.c: (foo_test_unsigned):
2148 * tests/scanner/foo.h: test that
2150 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2152 Bug 554854: The --typelib-xml and --inject options should reuse
2153 giscanner parser/writer.
2155 * giscanner/ast.py: add constructor list to Struct and Union.
2156 Add new param in Return's contructor to define transfer.
2157 * giscanner/girparser.py: several additions to the parser in order
2158 to have parsing all nodes of the gir xml files.
2159 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
2160 and writer in --inject and --typelib-xml options.
2161 * giscanner/xmlwriter.py: ignore empty attributes instead of
2162 raising an error as this basically exposes a bug in GIRParser.
2163 This should be reverted as soon as the parser is fixed.
2165 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2167 Bug 552376: scanner generates wrong names for enum members when
2168 there's no defined gtype.
2170 * giscanner/utils.py (strip_common_prefix): Always strip common
2171 prefix exactly up to the last "_", and not beyond.
2172 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
2173 here is that the first character after the last '_' should should be
2174 the same as the character in the same position on the type name.
2175 * tests/scanner/foo-expected.gir: test that
2177 2008-10-10 Lucas Rocha <lucasr@gnome.org>
2179 Bug 555293: append library_paths to LPATH env variable to work
2180 around a bug in find_library when using ldconfig.
2182 * tools/g-ir-scanner (main): ditto.
2184 2008-10-09 Lucas Rocha <lucasr@gnome.org>
2186 * girepository/girepository.c (register_internal): fix regression on
2187 invoke test case by making sure we load the global module in the
2188 typelib when dealing with inline typelibs.
2189 * girepository/gtypelib.c: a couple of coding style fixes.
2191 2008-10-06 Lucas Rocha <lucasr@gnome.org>
2193 Bug 555294: Add support for multiple shared libraries per typelib.
2195 * girepository/ginvoke.c (g_function_info_invoke),
2196 girepository/ginfo.c(g_registered_type_info_get_g_type): use
2197 g_typelib_symbol instead of g_module_symbol.
2198 * girepository/girepository.h: remove g_typelib_set_module and add
2200 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
2201 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
2202 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
2203 modules instead of just one. The symbol lookup is now abstracted
2204 behind g_typelib_symbol which tries to find the passed symbol name in
2206 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
2207 and write shared_library attribute as a comma-separated list of libs.
2209 2008-10-06 Colin Walters <walters@verbum.org>
2211 * giscanner/transformer.py: Parse length= annotation as
2212 a parameter name, not a raw int.
2215 2008-10-03 Colin Walters <walters@verbum.org>
2217 Bug 551744: Non-GObject types aren't aggregating ctors and methods
2219 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
2221 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
2225 2008-10-03 Colin Walters <walters@verbum.org>
2227 Bug 554576: scan problem with ev_selection_render_selection()
2229 * giscanner/transformer.py: Only do type resolution once we've
2230 scanned all types. What could happen before is that we'd strip
2231 the namespace from local type "EvSelection" => Selection, and
2232 then later pull a "Selection" from some other namespace because
2233 we hadn't yet seen the local EvSelection. This could come
2234 down to hash table ordering and other things so not easy
2235 to write a test for.
2237 2008-10-03 Lucas Rocha <lucasr@gnome.org>
2239 * giscanner/girwriter.py (_parser_member): fix the last parameter of
2240 GLibEnumMember constructor as it should be the enum member nick.
2242 2008-10-02 Colin Walters <walters@verbum.org>
2244 Bug 552961: remove this parameter for methods
2246 * giscanner/glibtransformer.py: Delete this parameter; it is
2248 * girepository/ginvoke.c: Insert this parameter for methods.
2249 * girepository/gtypelib.c: Remove no longer needed verification of
2250 method this parameter.
2253 2008-09-30 Dan Winship <danw@gnome.org>
2255 Bug 554490: g-ir-scanner gets confused by '\\'
2257 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
2258 backslashes so it will correctly parse '\\' and "\\"
2260 * tests/scanner/annotation.c: add a use of '\\' to make sure that
2263 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
2265 2008-10-02 Colin Walters <walters@verbum.org>
2267 bug 552393: Note variadic functions
2269 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
2270 to use parameter_list directly.
2271 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
2272 * giscanner/ast.py: Add Varargs type.
2273 * giscanner/transformer.py: Check for ellipsis symbol, transform
2275 * girepository/girnode.h: Add varargs flag to in-memory nodes.
2276 Parse varargs functions, but filter them out before we start
2277 compiling the typelib.
2279 2008-10-02 Colin Walters <walters@verbum.org>
2281 Bug 554632: type tag for GType
2283 * girepository/girepository.h, girepository/girepository.c:
2284 Add type tag for GType - it's a special type we don't want
2285 to resolve to just "long".
2286 * docs/typelib-format.txt: Update.
2287 * girepository/girparser.c: Parse it.
2288 * giscanner/glibtransformer.py: Ensure we don't put GType in
2290 * tools/generate.c: Remove hardcoded type list.
2293 2008-09-30 Dan Winship <danw@gnome.org>
2295 Bug 554521: scanner generates wrong names for enum members with
2296 full type name prefix
2298 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
2299 right amount when the entire "first" string is a prefix of
2302 * tests/scanner/foo.h (FooEnumFullname):
2303 * tests/scanner/foo-expected.gir: test that
2305 2008-09-29 Colin Walters <walters@verbum.org>
2307 Bug 552380: Array parameters should be marked in the gir
2309 * giscanner/ast.py: Default char** to utf8[], and guchar* to
2310 uint8[]. Add Array, List, and Map subclasses of Type;
2311 these types can be generic. Return transfer defaults
2312 to true if return value is string or container type.
2313 Delete Sequence type.
2314 * giscanner/scannerlexer.l: Syntax change for annotations;
2315 use <> since it's more readable.
2316 * giscanner/girwriter.py: Write out these changes.
2317 * giscanner/girparser.py: Parse them.
2318 * giscanner/transformer.py: Have a defined set of
2319 both list and map types. When creating a type,
2320 check if the ctype we've parsed is one of them,
2321 if so create a container type subclass as appropriate.
2322 * girepository/girparser.c: Parse in generic types.
2325 2008-09-27 Colin Walters <walters@verbum.org>
2327 * tools/g-ir-scanner: Add --inject option.
2329 2008-09-25 Colin Walters <walters@verbum.org>
2331 Remove non-repository types from GIR
2333 * giscanner/ast.py: The canonical name is 'utf8', not
2335 * giscanner/glibast.py: A few more glib type mappings.
2336 * girepository/girparser.c: We only parse repository types.
2337 * tests/*.gir: Update.
2339 2008-09-23 Colin Walters <walters@verbum.org>
2341 Bug 552566: Add time_t type
2343 We need a type for time_t since it's special in C, and just
2344 mapping it to long precluded bindings from handling it
2347 2008-09-19 Colin Walters <walters@verbum.org>
2349 Bug 552390: Handle capitialization like "DBus" more robustly
2351 The to_underscores function was designed for use against prefixed
2352 names; we need a separate function which will convert names like
2353 DBusFoo into dbus_foo, not d_bus_foo.
2355 2008-09-19 Colin Walters <walters@verbum.org>
2357 Add check to make sure we're not hitting out unresolved types
2359 Validate the "this" argument for methods
2361 Remove heuristic matching of methods to classes based on prefix
2363 It was a broken hack that dated from when we handled underscoring
2364 and capitalization conventions less well.
2366 2008-09-18 Colin Walters <walters@verbum.org>
2368 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2370 On Darwin, the suffix for installed shared libraries (.dylib) is
2371 different from loadable modules (.so). We use a bit of magic shell
2372 script from Behdad Esfahbod to figure out the right suffix.
2374 2008-09-15 Johan Dahlin <johan@gnome.org>
2376 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2377 a wrapper for type_qualifier as well.
2379 2008-09-15 Colin Walters <walters@verbum.org>
2381 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2383 * giscanner/ast.py: Add deprecation attributes.
2384 * giscanner/girwriter.py: Write out deprecation data.
2385 * girepository/girparser.c: Relax parsing; deprecated
2386 attribute now includes freeform string.
2387 * giscanner/scannerlexer.l: Parse Deprecated.
2388 * giscanner/transformer.py: Look for deprecated attribute
2390 * tests/scanner/*: Add a Deprecated test.
2392 2008-09-14 Tor Lillqvist <tml@novell.com>
2394 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2396 2008-09-14 Colin Walters <walters@verbum.org>
2398 * giscanner/glibtransformer.py: Ignore functions with
2401 2008-09-12 Colin Walters <walters@verbum.org>
2403 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2405 2008-09-12 Colin Walters <walters@verbum.org>
2407 * giscanner/ast.py: Bind pid_t to INT for vte.
2409 2008-09-12 Colin Walters <walters@verbum.org>
2411 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2412 * giscanner/glibast.py: Avoid overwriting ctype.
2413 * giscsanner/transformer.py: Try resolving types using the GType names.
2415 2008-09-12 Colin Walters <walters@verbum.org>
2417 * giscanner/minixpath.py: Code to run an "XPath"
2418 assertion against an XML tree, taken from
2419 gir-repository/gir/tests.py.
2420 * giscanner/Makefile.am: Ship it.
2421 * tools/g-ir-scanner: Add --xpath-assertions option.
2422 * gir/GLib-assertions.txt: Add a few assertions.
2423 * gir/Makefile.am: Run them.
2425 2008-09-11 Colin Walters <walters@verbum.org>
2427 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2429 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2430 prefix if it ends with _. Tweak callback stripping to determine
2431 based on presence of _ whether we need to use strip_namespace_func
2432 or strip_namespace_object.
2434 2008-09-09 Owen Taylor <otaylor@redhat.com>
2436 * docs/typelib-format.txt: Wether => Whether
2438 2008-09-08 Colin Walters <walters@verbum.org>
2440 * girepository/girparser.c: Default to "readable" for properties.
2441 * giscanner/ast.py: Add readable, writable etc.
2442 * giscanner/girwriter.py: Writ them.
2443 * giscanner/glibtransformer.py: Inspect them.
2446 2008-09-07 Colin Walters <walters@verbum.org>
2448 * giscanner/cgobject.py: Add comment.
2450 2008-09-07 Colin Walters <walters@verbum.org>
2452 * giscanner/cgobject.py: Also call g_thread_init.
2454 2008-09-07 Colin Walters <walters@verbum.org>
2456 * giscanner/transformer.py: Fix regression by not
2457 stripping prefix before stripping namespace for unions
2460 2008-09-06 Colin Walters <walters@verbum.org>
2462 * giscanner/transformer.py: If a namespace contains
2463 multiple caps, try stripping both gnomekeyring_ and
2466 2008-09-07 Johan Dahlin <johan@gnome.org>
2468 Bug 551162 – giscanner does not recognize asm and __asm__
2469 * giscanner/scannerlexer.l:
2470 Patch by Jani Monoses.
2472 2008-09-06 Colin Walters <walters@verbum.org>
2474 * girepository/girnode.c: Allow gtype_name
2475 and gtype_init in struct and union.
2476 * girepository/girparser.c: Parse glib:
2477 boxed bits for both structure and union.
2478 * girepository/gtypelib.c: Don't barf
2479 if structure is boxed.
2480 * giscanner/girparser.py: Parse new XML
2482 * giscanner/girwriter.py: Write out new
2484 * giscanner/glibast.py: Define new classes
2485 which are both Boxed and Struct/Union, as
2486 well as an "Other" for everything else.
2487 * giscanner/glibtransformer.py: Handle
2488 boxed types specially; we try to merge
2489 them with a struct/union if one exists,
2490 otherwise fall back to generic boxed.
2492 * tools/generate.c: Write out new format.
2494 2008-09-06 Johan Dahlin <johan@gnome.org>
2496 * giscanner/grealpath.h: Include stdlib.h
2498 * docs/g-ir-generate.1: Remove leading %
2500 2008-09-01 Colin Walters <walters@verbum.org>
2502 * girepository/girparser.c: Look at c:type to determine
2503 whether or not an item is a pointer.
2505 2008-09-01 Johan Dahlin <johan@gnome.org>
2507 * tests/scanner/Makefile.am:
2508 Set PYTHONPATH so the scanner can run
2509 even if you didn't install anything.
2511 2008-09-01 Johan Dahlin <johan@gnome.org>
2514 Post-release version bump
2517 2008-09-01 Johan Dahlin <johan@gnome.org>
2521 2008-08-31 Colin Walters <walters@verbum.org>
2523 * giscanner/glibtransformer.py: Quiet info
2526 2008-08-31 Johan Dahlin <johan@gnome.org>
2529 Bump version to 0.5.0
2531 2008-08-31 Colin Walters <walters@verbum.org>
2533 * giscanner/glibtransformer.py: Follow aliases to ensure
2534 we don't get a constructor returning a basic type.
2535 * giscanner/transformer.py: Add function to follow aliases.
2538 2008-08-31 Johan Dahlin <johan@gnome.org>
2540 * giscanner/scannerlexer.l:
2541 * giscanner/scannerparser.y:
2542 * giscanner/sourcescanner.h:
2543 * giscanner/sourcescanner.py:
2544 Parse GCC extensions in the parser instead of just undeffing them
2545 in the pre-processor.
2547 2008-08-31 Johan Dahlin <johan@gnome.org>
2549 * giscanner/glibtransformer.py:
2550 Clean up a huge if. Do not add methods or constructors
2552 * giscanner/utils.py:
2553 second might be longer than first, check that.
2555 2008-08-31 Johan Dahlin <johan@gnome.org>
2560 2008-08-31 Colin Walters <walters@verbum.org>
2562 * girepository/girparser.c: Don't lose if we
2565 2008-08-31 Colin Walters <walters@verbum.org>
2567 * giscanner/glibtransformer.py: Look for libtool
2568 library in current directory
2569 * tests/scanner - Update.
2571 2008-08-30 Colin Walters <walters@verbum.org>
2573 * docs/typelib-format.txt: Add a guint32
2575 * gir/Makefile.am: Dep on Makefile
2576 * girepository/ginfo.c:
2577 * girepository/girepository.c: Clean up
2578 default typelib handling; remove global
2579 default_typelib variable. Ensure we handle
2580 NULL repository in more places.
2581 Support dependency resolution.
2582 Support lazy loading.
2583 * girepository/girepository.h: Remove
2584 g_irepository_unregister; we don't support
2585 unloading typelibs since really they're
2586 process-global. Update for lazy loading
2588 * girepository/girmodule.c: Use g_new0.
2589 Add dependencies to GirModule.
2590 * girepository/girparser.c: Parse dependencies.
2591 * girepository/gtypelib.c: Add 4 bytes for
2593 * tests/Makefile.am: Kill off gobject.gir,
2594 it conflicts with the real one.
2595 * tests/object.gir: Dep on GObject.
2596 * tools/generate.c: Take --includedir
2597 argument to say which directories to search
2598 for typelibs. Print out dependencies.
2600 2008-08-30 Colin Walters <walters@verbum.org>
2602 * giscanner/glibtransformer.py: Reduce warning noise.
2604 2008-08-29 Colin Walters <walters@verbum.org>
2606 * girepository/ginfo.c: Add some assertions regarding
2607 refcounts, just to be sure.
2608 * giscanner/glibtransformer.py: Blacklist a few more
2611 2008-08-29 Colin Walters <walters@verbum.org>
2613 * giscanner/glibtransformer.py: Blacklist a few
2614 functions that use GError oddly
2616 2008-08-29 Colin Walters <walters@verbum.org>
2618 * girepository/gtypelib.c: Don't crash if no
2621 2008-08-29 Colin Walters <walters@verbum.org>
2623 * girepository/girparser.c: Handle chains of aliases
2624 across modules by ensuring we fully qualify aliases
2627 2008-08-29 Colin Walters <walters@verbum.org>
2629 * girepository/girparser.c: Don't search aliases
2632 2008-08-29 Colin Walters <walters@verbum.org>
2634 * girepository/girparser.c: Rewrite type parsing
2635 to handle both GLib parsing case as well as correctly
2636 handling GLib.List and friends. Don't try to treat
2637 e.g. ListStore as a List.
2639 2008-08-29 Colin Walters <walters@verbum.org>
2641 * girepository/gtypelib.c: Add more context
2644 2008-08-29 Colin Walters <walters@verbum.org>
2646 * giscanner/glibtransformer.py: Add some informative
2647 logging messages in corner cases. Be sure we use
2648 the most recent node set instead of a cache
2649 when generating result set.
2650 * tests/: Remove duplicated bits in expected girs
2651 * girepository/girparser.c: Accept both List (for
2652 compiling GLib) and GLib.List (what the scanner
2655 * tools/generate.c: Generate canonical form.
2657 2008-08-29 Johan Dahlin <johan@gnome.org>
2659 * giscanner/config.py.in:
2660 Use datarootdir instead of datadir to avoid
2661 an autoconf warning.
2663 2008-08-29 Johan Dahlin <johan@gnome.org>
2667 * examples/gdk-pixbuf.gidl:
2669 Update and remove old cruft.
2671 2008-08-29 Johan Dahlin <johan@gnome.org>
2674 * docs/g-ir-compiler.1:
2675 * docs/g-ir-generate.1:
2676 * docs/g-ir-scanner.1:
2677 Add man pages for the generator and compiler.
2679 2008-08-29 Johan Dahlin <johan@gnome.org>
2681 * docs/g-ir-scanner.1: Document
2683 * giscanner/Makefile.am:
2684 * giscanner/gidlparser.py:
2685 * giscanner/gidlwriter.py:
2686 * tools/g-ir-scanner:
2687 Remove gidl support.
2689 2008-08-28 Colin Walters <walters@verbum.org>
2691 * tests/scanner/Makefile.am: Pass the right
2692 --includedir args. Add a Makefile dep.
2693 * tools/compiler.c: Pass includedirs down.
2694 * girepository/girparser.c: Actually put
2695 includedirs in context, pass down. Fix
2698 2008-08-28 Colin Walters <walters@verbum.org>
2700 * gir/Makefile.am: Use --includedir
2701 * girepository/girparser.c: Recursively parse
2702 includes to pull in aliases and expand them.
2703 We need this to avoid putting unknown names in
2705 * tools/compiler.c: Add --includedir option.
2706 * giscanner/ast.py: Map size/ssize to types
2709 2008-08-28 Tor Lillqvist <tml@novell.com>
2711 Make check now runs successfully on Windows.
2713 * tools/compiler.c (write_out_typelib): Use binary mode for output
2716 * girepository/girnode.c: Don't print NULL strings.
2718 * tests/invoke/Makefile.am
2719 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2720 convince libtool to build shared libraries.
2722 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2723 g_assert() instead of printing out expected errors.
2725 2008-08-28 Tor Lillqvist <tml@novell.com>
2727 * girepository/gtypelib.h: Change type of bitfield fields from
2728 guint to the most suitable smaller type. This makes the struct
2729 sizes match the ones on Linux that the sanity check expects when
2730 using gcc -mms-bitfields on Windows.
2732 2008-08-28 Johan Dahlin <johan@gnome.org>
2737 * giscanner/Makefile.am:
2738 * tests/Makefile.am:
2739 * tests/scanner/Makefile.am:
2740 Make distcheck pass.
2742 2008-08-27 Johan Dahlin <johan@gnome.org>
2744 * giscanner/Makefile.am:
2745 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2747 2008-08-27 Tor Lillqvist <tml@novell.com>
2749 Make g-ir-scanner work on Windows. Still problems with the typelib
2750 code. Changes okayed by jdahlin.
2752 * configure.ac: Check for Windows, set Automake conditional
2753 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2754 avoid shell quoting issues
2756 * girepository/Makefile.am: Use -no-undefined so that libtool
2757 agrees to build a shared library on Windows.
2759 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2760 Windows. Empty implementation on Windows so far.
2762 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2763 informative error message for the assertion failures. Tell also
2764 what the expected size of the struct is. Check all sizes first and
2765 fail afterwards if at least one size was different from expected.
2767 * tools/Makefile.am: Reorder libraries into proper logical
2770 * tools/generate.c: Don't include <dlfcn.h>, not used.
2772 * giscanner/Makefile.am: On Windows, link with the Python library,
2773 and install the module DLL as _giscanner.pyd. Remove the
2774 unnecessary import library and libtool library that libtool has
2777 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2778 and just skip it. Recognize also two "l" suffixes for long long
2779 constants. Recognize also __inline__.
2781 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2782 GetFullPathName(). As such, GetFullPathName() does more than the
2783 UNIX realpath(). It also changes relative paths into absolute
2784 paths. But for our purposes that shouldn't matter.
2786 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2787 Windows the file descriptor passed to us is from Python. Python
2788 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2789 uses msvcrt.dll. On Windows, file descriptors are specific to
2790 which C library is used. So we must find out what underlying OS
2791 handle corresponds to the file descriptor Python passes us, and
2792 then make that into a file descriptor valid for the C library this
2795 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2796 __attribute__ as the lexer now handles it. The definition as empty
2797 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2798 __attribute__. Close the temp file before unlinking it.
2800 * giscanner/cgobject.py: Use correct library name for the gobject
2803 * gir/Makefile.am: Must pass the full basename of the DLLs on
2804 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2805 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2806 reality they won't change, until there is a GLib 3, and then also
2807 the Unix code here needs changing.
2809 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2812 2008-08-26 Colin Walters <walters@verbum.org>
2814 * girepository/girepository.c: Search
2815 $DATADIR/girepository instead of
2816 $DATADIR/gitypelibs; this naming makes
2817 it clearer that e.g. jgir can install
2819 * gir/Makefile.am: Install there.
2821 2008-08-26 Colin Walters <walters@verbum.org>
2823 * girepository/gtypelib.c (_g_typelib_init): Also
2824 use G_MODULE_SUFFIX instead of hardcoding .so.
2826 2008-08-26 Colin Walters <walters@verbum.org>
2828 * girepository/gtypelib.c (_g_typelib_init): Free
2829 string in the right place.
2831 2008-08-26 Colin Walters <walters@verbum.org>
2833 * girepository/gtypelib.c (_g_typelib_init): Handle
2834 both .la and .so names; this works better in the
2835 uninstalled library case.
2837 2008-08-26 Johan Dahlin <johan@gnome.org>
2840 * giscanner/Makefile.am:
2841 * giscanner/cgobject.py:
2842 * giscanner/config.py.in:
2843 * giscanner/sourcescanner.py:
2844 Avoid undeffing __GNUC__, instead define
2845 __attribute__ & friends. Remove glibconfig.h hack.
2846 This makes gobject-introspection work better on
2847 MacOS X, Thanks to Richard Hult for kind help.
2849 2008-08-25 Colin Walters <walters@verbum.org>
2851 * giscanner/glibtransformer.py: Always print
2854 2008-08-25 Colin Walters <walters@verbum.org>
2856 * giscanner/glibtransformer.py: Skip over
2857 interfaces we don't know.
2859 2008-08-25 Colin Walters <walters@verbum.org>
2861 * girepository/girparser.c: Parse new implements
2862 syntax, drop gapi one.
2863 * tests/object.gir: Update.
2864 * tools/generate.c: Generate new syntax.
2866 2008-08-25 Colin Walters <walters@verbum.org>
2868 * giscanner/ast.py: Add interfaces property
2870 * giscanner/girwriter.py: Write out implemented
2872 * giscanner/glibtransformer.py: Introspect
2873 implemented interfaces.
2874 * tests/scanner/*: Make FooObject implement
2877 2008-08-25 Colin Walters <walters@verbum.org>
2879 * giscanner/glibtransformer.py: More correctly pair
2880 methods; if we have a symbol that starts with
2881 e.g. hippo_canvas look for a matching HippoCanvas
2882 class before accepting e.g. HippoCanvasImage.
2884 2008-08-24 Colin Walters <walters@verbum.org>
2886 * tools/g-ir-scanner: Filter out unknown options from
2889 2008-08-24 Colin Walters <walters@verbum.org>
2891 * giscanner/glibtransformer.py: Fail with better
2892 error if we can't find library.
2894 2008-08-24 Colin Walters <walters@verbum.org>
2896 * tools/g-ir-scanner: Use subprocess instead of
2897 commands, works on Windows and avoids the evil
2900 2008-08-24 Colin Walters <walters@verbum.org>
2902 * giscanner/glibtransformer.py: Skip over
2903 g_object_get_type from GLib trunk.
2905 2008-08-24 Colin Walters <walters@verbum.org>
2907 * girepository/girepository.c (g_irepository_require):
2908 Don't open shared library here; we already do it
2911 2008-08-24 Colin Walters <walters@verbum.org>
2913 * girepository/gtypelib.c: Add context stack so
2914 when we get an error we can print out nicely
2917 2008-08-24 Johan Dahlin <johan@gnome.org>
2919 * girepository/girparser.c (start_glib_boxed), (start_function),
2920 (start_field), (start_alias):
2921 Refactor a couple of parsing functions to be simpler to follow.
2924 2008-08-24 Johan Dahlin <johan@gnome.org>
2926 * girepository/girparser.c (start_function):
2927 Remove left-over code, checking type of function.
2929 2008-08-23 Colin Walters <walters@verbum.org>
2931 * giscanner/config.py: Define DATADIR.
2932 * giscanner/transformer.py: Look in DATADIR.
2934 2008-08-23 Colin Walters <walters@verbum.org>
2936 * girepository/gtypelib.c: Check constructor
2938 * girepository/girnode.c: Small tweaks.
2939 * girepository/ginfo.c: Calculate signature offsets
2941 * girepository/girparser.c: Remove duplicate
2943 * giscanner/glibtransformer.py: Avoid marking
2944 functions which return a basic type as
2947 2008-08-23 Colin Walters <walters@verbum.org>
2949 * girepository/girparser.c: Ignore <include>.
2950 * giscanner/girparser.py: Parse them.
2951 * giscanner/girwriter.py: Generate them.
2952 * giscanner/transformer.py: Process <include>
2953 recursively. Don't require full path for
2954 includes, look in {$XDG_DATA_DIRS}/gir.
2955 * tools/g-ir-scanner: Pass through includes.
2956 * Makefile.am: Remove extra --include
2958 * *-expected.gir: Add expected includes.
2960 2008-08-23 Johan Dahlin <johan@gnome.org>
2962 * tests/scanner/Makefile.am:
2963 * tests/scanner/annotation-expected.gir:
2964 * tests/scanner/drawable-expected.gir:
2965 Avoid duplication in the Makefile, regenerate with new
2966 namespaces (same as the filename)
2968 2008-08-22 Colin Walters <walters@verbum.org>
2970 * girepository/girnode.c: Don't hardcode integers,
2973 2008-08-22 Johan Dahlin <johan@gnome.org>
2975 * giscanner/sourcescanner.py:
2976 Check for ../gobject-introspection-1.0.pc.in to determine
2977 if we run installed or uninstalled.
2979 2008-08-22 Johan Dahlin <johan@gnome.org>
2982 * giscanner/sourcescanner.py:
2983 Send in undefs/defines via writing it directly to stdin
2984 of cpp instead of via arguments.
2986 2008-08-22 Colin Walters <walters@verbum.org>
2988 * tools/generate.c, tools/compiler.c: Default
2990 * all Makefile.am: Update.
2992 2008-08-22 Colin Walters <walters@verbum.org>
2994 * girepository/girparser.c: Pass through
2995 recursive types. Avoid overwriting errors.
2996 * giscanner/xmlwriter.py: Always write the
2998 * tests/*.gir: Adjust.
2999 * tests/scanner/Makefile.am: Build typelibs,
3000 and generate XML from those. Once we
3001 have a good diff mechanism...
3002 * tests/scanner/*-expected.gir: Add XML
3004 * tools/g-ir-scanner: Accept --typelib-xml
3006 * tools/generate.c: Better defaults for transfer.
3008 2008-08-22 Johan Dahlin <johan@gnome.org>
3012 * giscanner/Makefile.am:
3013 * giscanner/config.py.in:
3014 * giscanner/sourcescanner.py:
3015 Use the generated glibconfig.h for all scanner invokations.
3016 Rename it to glibconfig-scanner.h and install it.
3017 Add a config.py which so far contains the include dir.
3019 2008-08-22 Johan Dahlin <johan@gnome.org>
3022 Replace glibconfig.h with our own, do some replacement
3023 for CPP/C features we do not support
3025 2008-08-22 Colin Walters <walters@verbum.org>
3027 * tools/generate.c (write_callable_info): Fix unref
3030 2008-08-22 Colin Walters <walters@verbum.org>
3032 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
3033 * tests/Makefile.am: Support $(DEBUG)
3034 * tools/generate.c: Do immediate close tags if no
3037 2008-08-21 Colin Walters <walters@verbum.org>
3039 * tests/scanner/drawable-expected.gir,
3040 * tests/scanner/drawable.c,
3041 * tests/scanner/drawable.h:
3044 2008-08-21 Colin Walters <walters@verbum.org>
3046 * giscanner/glibtransformer.py: Compute prefix
3047 by searching through the symbol for bits
3048 rather than going directly from ctype; this fixes
3051 2008-08-21 Colin Walters <walters@verbum.org>
3053 * giscanner/glibtransformer.py: Also try squashing
3054 underscores from namespace, fixes webkit_web_view_new.
3056 2008-08-21 Colin Walters <walters@verbum.org>
3058 * giscanner/glibtransformer.py: More ctor work,
3059 avoid having gtk_window_group_new end up under
3062 2008-08-21 Colin Walters <walters@verbum.org>
3064 * giscanner/glibtransformer.py: Much simpler approach
3065 of mapping uscored names to classes.
3066 * giscanner/utils.py: Remove unnecessary function.
3068 2008-08-21 Johan Dahlin <johan@gnome.org>
3070 * girepository/girepository.c (g_irepository_require):
3071 Plug memory leak and avoid using freed memory.
3072 Resolve the whole module path, here as well.
3074 2008-08-21 Colin Walters <walters@verbum.org>
3076 * giscanner/glibtransformer.py: Look up all permutations
3077 of class names when scanning methods/ctors based on
3078 the prefix instead of using the return value. This
3079 associates gtk_window_new with the right class.
3081 2008-08-21 Colin Walters <walters@verbum.org>
3083 * girepository/girmodule.c (g_ir_module_build_typelib):
3084 Revert change to increment header_size; we do that in
3087 2008-08-21 Colin Walters <walters@verbum.org>
3089 * girepository/girnode.c (write_string): Tweak to
3090 use UINT instead of INT. Not likely to matter.
3091 * girepository/girmodule.c (g_ir_module_build_typelib):
3092 Add to header_offset as well for header strings
3093 to match what write_string does.
3094 * girepository/gtypelib.c: Replace is_name with
3095 validate_name, which more strongly validates and
3096 handles errors in a better way. Update all callers.
3097 * giscanner/glibtransformer.py: Handle constructors
3100 2008-08-21 Johan Dahlin <johan@gnome.org>
3102 * gir/Makefile.am (typelibs_DATA): Build and
3103 install the Gio.typelib too
3105 * girepository/gtypelib.c (_g_typelib_init):
3106 Use g_module_build_path to resolve the shlib name
3108 2008-08-21 Colin Walters <walters@verbum.org>
3110 * gir/Makefile.am: CLEANFILES typelibs too.
3112 2008-08-21 Johan Dahlin <johan@gnome.org>
3114 * giscanner/glibtransformer.py:
3115 Do not send .la files through find_library.
3117 2008-08-21 Colin Walters <walters@verbum.org>
3119 * girepository/girparser.c (g_irepository_require):
3120 Fix one small leak in error case.
3122 2008-08-21 Johan Dahlin <johan@gnome.org>
3125 Parse glibconfig.h as well and install the compiled
3128 2008-08-21 Johan Dahlin <johan@gnome.org>
3131 * giscanner/glibtransformer.py:
3132 * tools/g-ir-scanner:
3133 Do not hard-core library names in the Makefile, reuse
3134 ctypes find_library instead.
3136 2008-08-21 Johan Dahlin <johan@gnome.org>
3138 * girepository/girparser.c (resolve_aliases):
3139 Remove compilation warnings
3141 2008-08-21 Johan Dahlin <johan@gnome.org>
3143 * girepository/girepository.c (g_irepository_require):
3144 Rewrap and fix double free bug by leaking a bit.
3146 2008-08-20 Colin Walters <walters@verbum.org>
3148 * girepository/girepository.c: Add new function
3149 g_irepository_get_typelib_path which tells
3150 us from where we loaded a namespace.
3152 2008-08-20 Colin Walters <walters@verbum.org>
3154 * tests/scanner/*-expected.gir: Adjust for
3155 added shared-library.
3156 * giscanner/giwriter.py: Make pylint happy.
3158 2008-08-20 Colin Walters <walters@verbum.org>
3160 * girepository/girmodule.c (g_ir_module_build_typelib):
3161 Calculate size correctly, avoid use-after-free.
3163 2008-08-20 Colin Walters <walters@verbum.org>
3165 * girepository/girepository.c: Remove
3166 g_irepository_register_file in favor of
3167 g_irepository_require. There are two
3168 possible deployment scenarios for typelibs:
3169 First, separate in $DATADIR/gitypelibs/. Second,
3170 they may be embedded in shlibs. However since
3171 the first is now the normal case, the API is
3172 optimized around it.
3174 Refactor internals to look up typelibs for
3175 namespaces just-in-time, but we expect
3176 consumers to call g_irepository_require.
3178 Also, add some docs. No one has died from that
3180 * gir/Makefile.am: Need --library for glib.
3181 * giscanner/girwriter.py: Write out shared-library.
3182 * tools/g-ir-writer: Take the first --library
3183 argument as the target of shared-library. In
3184 the future we should make this nicer with pkg-config
3187 2008-08-20 Colin Walters <walters@verbum.org>
3189 * girepository/girparser.py: And parse them.
3191 2008-08-20 Johan Dahlin <johan@gnome.org>
3193 * giscanner/glibast.py: Add gshort/gushort types
3195 2008-08-20 Colin Walters <walters@verbum.org>
3197 * gir/Makefile.am: Rename .gir files using GI namespace.
3198 * girepository/girepository.c: Use XDG_DATA_DIRS for
3199 looking up typelibs. Also typelibs are now suffixed
3201 * tests/invoke/Makefile.am: Only use metadata.
3202 * girepository/Makefile.am: Remove unnecessary include.
3203 * tests/scanner/Makefile.am: Update using GI namespaces
3204 for scanner includes.
3206 2008-08-20 Colin Walters <walters@verbum.org>
3208 * girepository/transformer.py: Suppress aliases whose
3210 * girepository/ast.py: Define some more aliases.
3212 2008-08-20 Colin Walters <walters@verbum.org>
3214 * girepository/girparser.c: Avoid alias infloops.
3216 2008-08-20 Colin Walters <walters@verbum.org>
3218 * tests/scanner/foo-expected.gir: Fix expected list type.
3220 2008-08-20 Johan Dahlin <johan@gnome.org>
3222 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
3223 Add a workaround for #548689.
3224 We can now compile gtk!
3226 2008-08-20 Colin Walters <walters@verbum.org>
3228 * giscanner/glibtransformer.py: Try to look up
3229 aliases using the c:type too.
3231 2008-08-20 Colin Walters <walters@verbum.org>
3233 * girepository/girparser.c: Parse union fields.
3235 2008-08-20 Johan Dahlin <johan@gnome.org>
3237 * giscanner/ast.py: Make time_t an alias for long
3239 * gir/gio-2.0-good.gir:
3240 * gir/glib-2.0-good.gir:
3241 * gir/gobject-2.0-good.gir:
3243 * giscanner/glibtransformer.py:
3244 Do not delete Class structures, we need them in gdk/gtk.
3245 * tests/scanner/drawable-expected.gir:
3246 * tests/scanner/foo-expected.gir:
3247 * tests/scanner/utility-expected.gir:
3250 2008-08-20 Johan Dahlin <johan@gnome.org>
3252 * tests/scanner/Makefile.am:
3253 * tests/scanner/annotation-expected.gir:
3254 * tests/scanner/annotation.c (annotation_object_class_init),
3255 (annotation_object_init), (annotation_object_method),
3256 (annotation_object_in), (annotation_object_out),
3257 (annotation_object_inout), (annotation_object_inout2),
3258 (annotation_object_inout3), (annotation_object_calleeowns),
3259 (annotation_object_calleesowns), (annotation_object_get_strings),
3260 (annotation_object_with_voidp), (annotation_object_get_objects),
3261 (annotation_object_create_object), (annotation_object_allow_none):
3262 * tests/scanner/annotation.h:
3263 * tests/scanner/foo-expected.gir:
3264 * tests/scanner/foo.c:
3265 * tests/scanner/foo.h:
3266 Split out annotation tests out of foo
3268 2008-08-20 Johan Dahlin <johan@gnome.org>
3270 * tests/scanner/Foo-expected.gir:
3271 * tests/scanner/Makefile.am:
3272 * tests/scanner/foo-expected.gir:
3273 * tests/scanner/foo-object.h:
3274 * tests/scanner/foo.c:
3275 Foo->foo, foo-object.h -> foo.h
3277 2008-08-20 Johan Dahlin <johan@gnome.org>
3279 * tests/scanner/Foo-expected.gir:
3280 * tests/scanner/Makefile.am:
3281 * tests/scanner/drawable-expected.gir:
3282 * tests/scanner/drawable.c (test_drawable_class_init),
3283 (test_drawable_init):
3284 * tests/scanner/drawable.h:
3285 * tests/scanner/foo-object.h:
3286 * tests/scanner/foo.c (foo_boxed_method):
3287 Move the drawable parts out of Foo to its own test.
3289 2008-08-20 Johan Dahlin <johan@gnome.org>
3291 * tests/scanner/Foo-expected.gir:
3292 * tests/scanner/foo-object.h:
3293 * tests/scanner/foo.c (foo_drawable_class_init),
3294 (foo_drawable_init):
3295 Add a based on GdkDrawable which generates
3298 2008-08-19 Colin Walters <walters@verbum.org>
3300 * giscanner/transformer.py: Don't try
3301 to strip prefix before namespace.
3303 2008-08-19 Johan Dahlin <johan@gnome.org>
3305 * giscanner/transformer.py:
3306 * tests/scanner/Foo-expected.gir:
3307 * tests/scanner/foo-object.h:
3308 Add support for typedef void foo type of
3311 2008-08-19 Johan Dahlin <johan@gnome.org>
3314 * giscanner/girwriter.py:
3315 * giscanner/glibtransformer.py:
3316 * giscanner/transformer.py:
3317 * tests/scanner/Foo-expected.gir:
3318 Add basic support for union, base the code much
3319 on Struct. Add a testcase.
3321 2008-08-19 Johan Dahlin <johan@gnome.org>
3323 * tests/scanner/Foo-expected.gir:
3324 * tests/scanner/foo-object.h:
3325 Add a union testcase which the compiler currently
3328 2008-08-19 Johan Dahlin <johan@gnome.org>
3330 * gobject-introspection-1.0.pc.in:
3331 Add a g_ir_compiler variable
3333 2008-08-19 Colin Walters <walters@verbum.org>
3335 * giscanner/ast.py: Rework types to be more closely
3337 * giscanner/girparser.py: Parse more bits.
3338 * giscanner/girwriter.py: Write sequences in a new
3339 way that specifies container type.
3340 * giscanner/glibast.py: Adjust for ast.py changes,
3341 add 'ctype' property to GLibObject and GLibInterface
3342 so we can look things up by it later.
3343 * gicanner/transformer.py: Names is new class holding
3344 the various namespaces we manage. Do not confuse
3345 with Namespace which is toplevel XML node effectively.
3346 Rework all type resolution to go through
3347 _resolve_type_name_1.
3348 * giscanner/glibtransformer.py: Raise UnknownTypeError
3349 instead of ValueError for cleanliness. Add Unresolved
3350 class to mark types whose parent we haven't seen yet.
3351 Use new Names object from transformer.py.
3352 Correctly look up parent=.
3353 Fix type validation to handle sequences.
3354 * tests/scanner/Foo-expected.gir: Update for sequence
3355 work, int instead of int32.
3356 * tools/g-ir-scanner: Add --noclosure option
3357 * gir/Makefile.am: Use --noclosure by default for
3360 2008-08-18 Johan Dahlin <johan@gnome.org>
3362 * gir/gio-2.0-good.gir:
3363 * gir/glib-2.0-good.gir:
3364 * gir/gobject-2.0-good.gir:
3367 2008-08-18 Johan Dahlin <johan@gnome.org>
3370 * giscanner/girparser.py:
3371 * giscanner/girwriter.py:
3372 * giscanner/glibast.py:
3373 * giscanner/glibtransformer.py:
3374 * giscanner/transformer.py:
3375 * tests/scanner/Foo-expected.gir:
3376 * tests/scanner/foo-object.h:
3377 * tests/scanner/utility-expected.gir:
3378 * tests/scanner/utility.h:
3379 Redo type resolving and validation.
3380 Add a couple of new tests.
3381 Patch mostly written by Colin.
3383 2008-08-18 Johan Dahlin <johan@gnome.org>
3386 * giscanner/girparser.py:
3388 * giscanner/transformer.py:
3389 Improve enum parsing for enums without a GType.
3390 Make flags/enum references to other girs work
3391 * giscanner/utils.py:
3393 * tests/scanner/Makefile.am:
3394 * tests/scanner/foo-object.h:
3395 * tests/scanner/utility-expected.gir:
3396 * tests/scanner/utility.h:
3397 Add a new test for external enum references
3399 2008-08-18 Johan Dahlin <johan@gnome.org>
3401 * docs/global-module-registry.txt: Update
3403 * tests/array.gir: Update with new type proposal
3405 * girepository/girepository.c (g_type_tag_to_string):
3406 * girepository/girepository.h:
3407 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3409 * girepository/girnode.h:
3410 Make enum serializing functions public. Clean up some whitespace.
3412 2008-08-17 Johan Dahlin <johan@gnome.org>
3414 * docs/global-module-registry.txt:
3415 Add a document for an on disk module registry format
3417 2008-08-17 Johan Dahlin <johan@gnome.org>
3420 * gir/gio-2.0-good.gir:
3423 2008-08-17 Johan Dahlin <johan@gnome.org>
3426 * gir/glib-2.0-good.gir:
3427 * gir/gobject-2.0-good.gir:
3428 * giscanner/cgobject.py:
3429 * giscanner/glibtransformer.py:
3430 Regenerate GObject & GType.
3431 Avoid warnings when generating gobject-2.0.gir.
3432 Introspect a little more, and skip *_get_type functions.
3434 2008-08-17 Colin Walters <walters@verbum.org>
3436 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3437 Rename to -good, always generate during build.
3438 * gir/Makefile.am: Ensure .gir files dep on
3439 all scanner sources.
3440 * Makefile.am: Switch build order to ensure
3441 the scanner is ready before we do gir/.
3442 * tools/g-ir-scanner: Look for .git too.
3444 2008-08-17 Johan Dahlin <johan@gnome.org>
3446 * girepository/gtypelib.c (validate_enum_blob):
3447 * giscanner/glibtransformer.py:
3448 * giscanner/transformer.py:
3449 Remove resolve_possible_typedefs, it was unused.
3450 Allow multiple enum values of the sample value in an enum,
3451 since it's actually pretty common.
3452 Register enums so they can be resolved too.
3454 2008-08-16 Johan Dahlin <johan@gnome.org>
3456 * giscanner/girparser.py:
3457 Parse enumeration/bitfield.
3459 2008-08-16 Johan Dahlin <johan@gnome.org>
3461 * giscanner/girparser.py:
3464 2008-08-16 Johan Dahlin <johan@gnome.org>
3466 * giscanner/glibtransformer.py:
3467 Resolve type names for alias targets
3468 * giscanner/transformer.py:
3469 Skip FILE* parameters fow now
3471 2008-08-16 Johan Dahlin <johan@gnome.org>
3474 * gir/gobject-2.0.gir:
3477 * tests/scanner/Makefile.am:
3480 2008-08-15 Colin Walters <walters@verbum.org>
3482 * giscanner/glibtransformer.py: Explicitly construct
3483 new list, since we're deleting as we iterate.
3484 Don't delete all structures which end in Class; just
3485 ones which have a paired GObject.
3486 Fix printing of type warning.
3487 * giscanner/transformer.py: Make strip_namespace_object
3488 be the identity function if it doesn't match the
3491 2008-08-15 Colin Walters <walters@verbum.org>
3493 * giscanner/cgobject.py: Define yet more argument
3494 prototypes; fix prototype for g_type_fundamental.
3496 2008-08-14 Johan Dahlin <johan@gnome.org>
3498 * tests/Makefile.am:
3499 * tests/constant.gir:
3500 * tests/gobject.gir:
3502 * tools/generate.c (write_struct_info):
3503 Fix generator for constant/gobject/struct
3505 2008-08-14 Johan Dahlin <johan@gnome.org>
3507 * tests/Makefile.am:
3509 * tools/generate.c (write_enum_info):
3510 Fix generation of enum/bitfields
3512 2008-08-14 Johan Dahlin <johan@gnome.org>
3514 * girepository/girparser.c (start_field), (start_constant),
3515 (start_type), (end_element_handler):
3516 Clear up constant parsing
3521 * tools/generate.c (write_callable_info), (write_function_info),
3522 (write_callback_info), (write_constant_info), (write_signal_info),
3523 (write_vfunc_info), (write_property_info), (write_object_info),
3524 (write_interface_info):
3525 Constants/Signals are handled now.
3527 2008-08-14 Johan Dahlin <johan@gnome.org>
3529 * girepository/girparser.c (start_type):
3530 Don't require c:type.
3531 * tests/Makefile.am:
3534 Update, remove parts we don't support yet
3535 * tests/roundtrips.sh:
3537 * tools/generate.c (write_type_info), (write_field_info),
3538 (write_callable_info), (write_struct_info):
3539 Make it emit proper gir.
3541 2008-08-14 Johan Dahlin <johan@gnome.org>
3543 * giscanner/transformer.py:
3544 New internal function for adding a new node.
3546 2008-08-14 Johan Dahlin <johan@gnome.org>
3549 Define an internal _H_ variable so we skip parsing both
3550 i18n headers, only one is needed.
3552 Add the glib-2.0.gir too.
3553 * giscanner/glibast.py:
3554 Add gconstpointer as an alias for ANY
3555 * giscanner/transformer.py:
3556 Do not lower case enumeration names per se.
3557 Skip functions which has parameters called 'va_list'
3559 2008-08-14 Colin Walters <walters@verbum.org>
3561 * giscanner/transformer.py: Comment data structures.
3562 Also squash pointers in resolve_type_name to correspond
3563 with what we do for params.
3564 * giscanner/glibtransformer.py: Print warnings in more
3565 situations. Rework checks for method/constructor to
3566 look up in our GType database instead of just checking
3567 for *. Avoid generating <record> for GObject which
3568 duplicate the <class>.
3569 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3572 2008-08-14 Johan Dahlin <johan@gnome.org>
3574 * giscanner/girwriter.py:
3575 * giscanner/glibast.py:
3576 * giscanner/glibtransformer.py:
3577 * giscanner/transformer.py:
3579 * tests/Makefile.am:
3580 Add pyflakes.py and run it in make check.
3581 Update the source code to fix the errors reported by
3584 2008-08-14 Johan Dahlin <johan@gnome.org>
3587 * giscanner/girparser.py:
3588 * giscanner/glibast.py:
3589 * giscanner/glibtransformer.py:
3590 Refactor the parser a bit.
3591 Add parent type to interfaces and update callsites.
3593 2008-08-14 Johan Dahlin <johan@gnome.org>
3595 * giscanner/glibtransformer.py:
3596 * giscanner/utils.py:
3597 Refactor a bit, avoid isinstance and add a method
3598 for each type we parse.
3600 2008-08-14 Johan Dahlin <johan@gnome.org>
3603 * giscanner/girparser.py:
3604 * giscanner/glibtransformer.py:
3605 * tests/Makefile.am:
3606 Run pep8.py in make check, fix old errors.
3608 2008-08-13 Colin Walters <walters@verbum.org>
3610 * giscanner/girparser.py: Parse records.
3612 2008-08-13 Colin Walters <walters@verbum.org>
3614 * gir/Makefile.am: Install again.
3615 * gir/gobject-2.0.gir: Add some more bits.
3617 2008-08-13 Colin Walters <walters@verbum.org>
3619 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3620 * giscanner/girparser.py: Handle aliases.
3621 * giscanner/transformer.py: Record aliases. Make resolver
3622 functions public; we now call into these explicitly from
3623 glibtransformer. Handle resolving aliases.
3624 * giscanner/glibtransformer.py: Separate our internal namespace
3625 from included ones. Call up into transformer's resolver functions.
3627 2008-08-13 Johan Dahlin <johan@gnome.org>
3629 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3630 * girepository/girparser.c (start_class):
3631 * giscanner/glibtransformer.py:
3632 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3634 2008-08-13 Johan Dahlin <johan@gnome.org>
3636 * giscanner/cgobject.py:
3637 Register GInitiallyUnowned
3638 * giscanner/girwriter.py:
3639 * giscanner/glibtransformer.py:
3640 Special case GObject/GInitially owned as they are a bit special to use.
3642 2008-08-13 Colin Walters <walters@verbum.org>
3644 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3645 Object is in GObject namespace.
3647 2008-08-13 Colin Walters <walters@verbum.org>
3649 * giscanner/girparser.py: Fix processing of functions
3652 2008-08-13 Colin Walters <walters@verbum.org>
3654 * giscanner/girparser.py: Parse more than just <class.
3655 * giscanner/glibtransformer.py: Put aliases in a separate
3656 data structure since their name is not canonicall.
3657 * giscanner/transformer.py: Handle resolving type names
3660 2008-08-13 Johan Dahlin <johan@gnome.org>
3662 * tools/g-ir-scanner:
3663 Allow multiple libraries
3664 * giscanner/glibtransformer.py:
3665 Rename load_library to add_library, traverse over all libraries
3666 when trying to resolve a function
3668 2008-08-12 Colin Walters <walters@verbum.org>
3670 * giscanner/transformer.py: Record typedefs as <alias> elements.
3671 Also attempt to look up types in external namespaces.
3672 * giscanner/girwriter.py: Write them.
3673 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3674 checks. Resolve interface methods and properties.
3675 * tests/scanner/foo-object.h: Add a method with typedef.
3676 * tests/scanner/Foo-expected.gir: Update.
3677 * girepository/girnode.c: Debug tweaks.
3678 * girepository/girparser.c: Make a first pass through the XML where we
3679 record all the aliases. This lets us resolve them as we go through the
3681 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3682 from gir-repository.
3684 2008-08-12 Colin Walters <walters@verbum.org>
3686 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3687 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3689 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3691 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3693 2008-08-12 Colin Walters <walters@verbum.org>
3695 * giscanner/glibtransformer.py: Also transform object properties.
3697 2008-08-12 Colin Walters <walters@verbum.org>
3699 * giscanner/glibtransformer.py: Also transform callbacks
3700 and structure field types.
3701 * tests/scanner/Fooe-expected.gir: Update to expect correct
3702 names for callbacks and structs.
3704 2008-08-12 Colin Walters <walters@verbum.org>
3706 * girepository/girparser.c: Handle 'any'.
3707 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3708 Add test for void *.
3710 2008-08-12 Colin Walters <walters@verbum.org>
3712 * giscanner/glibtransformer.py: We need to do type
3713 resolution in a second pass after we've seen all the
3714 enums, records, etc.
3716 2008-08-12 Colin Walters <walters@verbum.org>
3718 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3719 Add enum return value.
3720 * giscanner/glibtransformer.py: Transform function return types
3723 2008-08-12 Colin Walters <walters@verbum.org>
3725 * tests/scanner/Makefile.am: Dep .gir files on scanner
3726 sources too. Also remove @ so we see scanner invocations.
3728 2008-08-12 Colin Walters <walters@verbum.org>
3730 * girepository/girparser.c, girepository/gtypelib.c,
3731 girepository/gtypelib.h, girepository/girnode.c:
3732 Remove usage of (GAPI-oriented) TypeTag in favor of
3733 GITypeTag from girepository.h.
3735 2008-08-10 Colin Walters <walters@verbum.org>
3737 * tests/roundtrips.sh: Use the correct tests.
3739 2008-08-10 Colin Walters <walters@verbum.org>
3741 * giscanner/cgobject.py: Declare/wrap a few more functions.
3742 Fix parameter types for g_object_new and g_type_fundamental.
3744 2008-08-10 Colin Walters <walters@verbum.org>
3746 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3747 us to declare types for both return value and parameters. The
3748 ctypes default of 'int' is bad because it hides 32/64 bit
3749 problems. Convert all existing functions to use it.
3751 2008-08-09 Johan Dahlin <johan@gnome.org>
3753 * giscanner/__init__.py:
3755 * giscanner/cgobject.py:
3756 * giscanner/gidlparser.py:
3757 * giscanner/gidlwriter.py:
3758 * giscanner/girparser.py:
3759 * giscanner/girwriter.py:
3760 * giscanner/glibast.py:
3761 * giscanner/glibtransformer.py:
3762 * giscanner/odict.py:
3763 * giscanner/sourcescanner.py:
3764 * giscanner/transformer.py:
3765 * giscanner/utils.py:
3766 * giscanner/xmlwriter.py:
3767 * tools/g-ir-scanner:
3771 2008-08-09 Johan Dahlin <johan@gnome.org>
3774 * relaxng/c-types.xml:
3775 * relaxng/g-types.xml:
3776 * relaxng/relaxng.rng:
3778 Remove outdated relaxng schemas.
3780 2008-08-09 Johan Dahlin <johan@gnome.org>
3783 Rename metadata to typelib in variable names,
3786 2008-08-09 Johan Dahlin <johan@gnome.org>
3790 Remove old C scanner, which got rewritten in python.
3792 2008-08-09 Johan Dahlin <johan@gnome.org>
3794 * girepository/Makefile.am:
3795 * tools/Makefile.am:
3796 * tools/girmodule.c:
3797 * tools/girmodule.h:
3800 * tools/girparser.c:
3801 * tools/girparser.h:
3802 * tools/girwriter.c:
3803 * tools/girwriter.h:
3804 Move shared *.[ch] files to girepository from tools
3806 2008-08-09 Johan Dahlin <johan@gnome.org>
3808 * tests/Makefile.am:
3811 * tests/constant.test:
3813 * tests/errors.test:
3814 * tests/function.test:
3815 * tests/gobject.test:
3816 * tests/interface.test:
3817 * tests/object.test:
3818 * tests/struct.test:
3823 Rename *.test to *.gir
3825 2008-08-09 Johan Dahlin <johan@gnome.org>
3828 * tests/Makefile.am:
3829 * tests/parser/Foo-expected.gir:
3830 * tests/parser/Makefile.am:
3831 * tests/parser/foo-object.h:
3832 * tests/parser/foo.c:
3833 * tests/parser/utility-expected.gir:
3834 * tests/parser/utility.c:
3835 * tests/parser/utility.h:
3836 * tests/scanner/Makefile.am:
3837 Rename tests/parser to test/scanner
3839 2008-08-08 Colin Walters <walters@verbum.org>
3841 * tests/roundtrips.sh: Use local .gir files again.
3843 2008-08-08 Colin Walters <walters@verbum.org>
3845 * tests/invoke/Makefile.am: .gir file depends on libtool
3848 2008-08-08 Colin Walters <walters@verbum.org>
3850 * tools/girnode.c: Pass through parent node so we can
3851 print the node whose child is NULL, if that occurs.
3853 2008-08-08 Johan Dahlin <johan@gnome.org>
3855 * tests/Makefile.am:
3856 Disable roundtrip tests which are not yet working
3857 * tests/invoke/testfns.gir:
3860 2008-08-08 Johan Dahlin <johan@gnome.org>
3862 * giscanner/girwriter.py:
3864 * giscanner/glibast.py:
3865 * giscanner/glibtransformer.py:
3866 Swap order of members, to keep it consistent with
3869 2008-08-08 Johan Dahlin <johan@gnome.org>
3871 * girepository/gtypelib.c (validate_header):
3872 * girepository/gtypelib.h:
3874 * giscanner/girwriter.py:
3875 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3876 (gi_source_symbol_unref):
3879 * tests/constant.test:
3881 * tests/errors.test:
3882 * tests/function.test:
3883 * tests/gobject.test:
3884 * tests/interface.test:
3885 * tests/invoke/Makefile.am:
3886 * tests/invoke/testfns.xml:
3887 * tests/object.test:
3888 * tests/parser/Makefile.am:
3889 * tests/roundtrips.sh:
3890 * tests/struct.test:
3895 * tools/Makefile.am:
3896 * tools/compiler.c (main):
3897 * tools/generate.c (write_callable_info), (write_function_info),
3899 * tools/gidlmodule.c:
3900 * tools/gidlmodule.h:
3903 * tools/gidlparser.c:
3904 * tools/gidlparser.h:
3905 * tools/gidlwriter.c:
3906 * tools/gidlwriter.h:
3907 * tools/scanner.c (create_node_from_gtype),
3908 (create_node_from_ctype), (g_igenerator_process_properties),
3909 (g_igenerator_process_signals), (g_igenerator_create_object),
3910 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3911 (g_igenerator_create_enum), (g_igenerator_create_flags),
3912 (g_igenerator_process_function_symbol),
3913 (g_igenerator_process_unregistered_struct_typedef),
3914 (g_igenerator_process_struct_typedef),
3915 (g_igenerator_process_union_typedef),
3916 (g_igenerator_process_enum_typedef),
3917 (g_igenerator_process_function_typedef),
3918 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3919 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3920 Merge in the gir-compiler branch.
3921 Thanks to Philip and Colin for their help.
3923 2008-07-26 Colin Walters <walters@verbum.org>
3925 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3926 and g-idl-generate to go along with how we're changing this
3927 module to be installed.
3928 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3930 2008-07-24 Colin Walters <walters@verbum.org>
3932 * girepository/girepository.c (g_irepository_register): Add
3933 environment variable G_IREPOSITORY_VERBOSE so we can print
3934 out what we're doing.
3935 * girepository/girepository.c (g_irepository_register_file):
3936 Add GError error message to g_debug call.
3938 2008-07-08 Jürg Billeter <j@bitron.ch>
3940 * giscanner/glibast.py:
3944 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3946 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3949 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3952 * giscanner/girwriter.py:
3953 * giscanner/transformer.py:
3954 * tests/parser/Foo-expected.gir:
3955 * tests/parser/foo-object.h:
3956 * tests/parser/foo.c (foo_object_allow_none):
3957 Add support for gtk-doc annotations for allow-none.
3960 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3963 * giscanner/girwriter.py:
3964 * giscanner/glibast.py:
3965 * giscanner/glibtransformer.py:
3966 * giscanner/transformer.py:
3967 * tests/parser/Foo-expected.gir:
3968 Start using abstract type instead of the raw C types.
3969 Register a bunch of glib types we care about.
3971 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3976 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3978 * girepository/girepository.c:
3979 * girepository/gtypelib.c:
3980 * girepository/ginfo.c:
3981 * girepository/ginvoke.c:
3982 * girepository/girepository.h:
3983 * girepository/gtypelib.h:
3984 * girepository/gmetadata.c:
3985 * girepository/Makefile.am:
3986 * girepository/gmetadata.h:
3988 * tools/gidlmodule.c:
3991 * tools/gidlmodule.h:
3992 * tools/gidlparser.c:
3994 Renamed GMetadata to GTypelib
3996 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3998 * giscanner/xmlwriter.py:
3999 Improve line wrapping when > 79 charaters
4001 2008-06-05 Jürg Billeter <j@bitron.ch>
4004 * giscanner/girwriter.py:
4005 * giscanner/transformer.py:
4006 Use <type> element for field types
4007 * tests/parser/Foo-expected.gir:
4010 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
4012 * giscanner/glibtransformer.py:
4013 Fix a bug which prevented GdkEvent from being generated
4015 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
4017 * giscanner/Makefile.am:
4019 * giscanner/girwriter.py:
4020 * giscanner/glibast.py:
4021 * giscanner/glibtransformer.py:
4022 * giscanner/transformer.py:
4023 * giscanner/utils.py:
4024 * tests/parser/Foo-expected.gir:
4025 Improve enum member parsing and introspection
4027 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4029 * giscanner/scannerparser.y:
4030 * giscanner/sourcescanner.h:
4031 * giscanner/sourcescanner.py:
4032 Add a new source type enum for member.
4033 Use __repr__ for improved debugging
4034 * giscanner/girparser.py:
4036 * giscanner/transformer.py:
4037 Improve parsing of struct members.
4038 * tests/parser/foo-object.h:
4041 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4043 * giscanner/xmlwriter.py:
4044 Improve error reporting when trying to quote None.
4045 * giscanner/girparser.py:
4046 Do not print warnings when including more complete .gir files
4047 * giscanner/girwriter.py:
4048 Do not require a name for parameters, add a todo for singletons
4049 * giscanner/glibtransformer.py:
4050 Refactor the way structs are done, add a couple of hacks to allow
4052 * giscanner/transformer.py:
4053 Add enough hacks so cairo, atk and pango.gir can be parsed properly
4054 * gobject-introspection-1.0.pc.in:
4055 Export girdir, so we can access gobject-2.0.gir from outside
4057 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4059 * tools/g-ir-scanner:
4060 * tests/parser/Makefile.am:
4061 Update sys.path before running the parser so we don't have
4062 to setup PYTHONPATH ourselves.
4066 * girepository/Makefile.am:
4067 * giscanner/transformer.py:
4068 * gobject-introspection-1.0.pc.in:
4069 * gobject-introspection.pc.in:
4070 * tools/Makefile.am:
4072 Rename pkg-config name to gobject-introspection-1.0,
4073 Do not installed anything which is not using the gir format.
4074 Disable compililation the old C scanner, but still keep the source
4075 until all the remaning functionallity has been ported.
4077 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4079 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
4080 a crash when symbol->indent is NULL.
4082 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
4083 a function to convert a CTYPE symbol to a string
4085 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
4088 * giscanner/girwriter.py:
4089 * giscanner/giscannermodule.c
4090 (pygi_source_scanner_append_filename),
4091 (pygi_source_scanner_parse_file):
4092 * giscanner/glibtransformer.py:
4093 * giscanner/sourcescanner.py:
4094 Revert back to using temporary files to send in headers.
4095 Allow Functions to be passed in as callbacks, add a couple
4096 of try/excepts missing features.
4097 We can now scan pango
4099 2008-05-08 Johan Dahlin <johan@gnome.org>
4101 * giscanner/glibtransformer.py:
4102 * giscanner/transformer.py:
4103 Move namespace stripping glibtransformer->transformer
4105 2008-05-08 Johan Dahlin <johan@gnome.org>
4108 * giscanner/girwriter.py:
4109 * giscanner/glibtransformer.py:
4110 * giscanner/transformer.py:
4111 * tools/g-ir-scanner:
4112 Introduce a namespace ast node
4114 2008-05-05 Johan Dahlin <johan@gnome.org>
4116 * giscanner/__init__.py:
4117 * giscanner/sourcescanner.py:
4118 * giscanner/transformer.py:
4119 Move sourcescanner symbols to the sourcescanner module, instead
4120 of in the global __init__ namespace.
4122 2008-05-03 Johan Dahlin <johan@gnome.org>
4124 * giscanner/glibtransformer.py:
4125 * tools/g-ir-scanner:
4126 Handle missing parameters better, allow - and + in .la dlname
4129 2008-05-03 Johan Dahlin <johan@gnome.org>
4131 * giscanner/__init__.py:
4133 * giscanner/girwriter.py:
4134 * giscanner/glibtransformer.py:
4135 * giscanner/transformer.py:
4136 Parse struct fields properly, improve debugging.
4138 2008-04-29 Johan Dahlin <johan@gnome.org>
4141 * giscanner/girwriter.py:
4142 * giscanner/transformer.py:
4143 * tests/parser/Foo-expected.gir:
4145 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
4147 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
4150 * docs/g-ir-scanner.1:
4151 * metadata-annotations-proposal.txt:
4152 * metadata-format.txt:
4153 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
4155 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
4157 * giscanner/girwriter.py:
4158 * giscanner/glibtransformer.py:
4159 * giscanner/transformer.py:
4160 * giscanner/xmlwriter.py:
4161 * tests/parser/Foo-expected.gir:
4162 * tests/parser/foo-object.h:
4163 Write record/structs to gir file too. Add a couple of tests,
4164 fix an off by one error in xmlwriter.py.
4166 2008-04-28 Johan Dahlin <johan@gnome.org>
4168 * giscanner/xmlwriter.py: Calculate the line length properly,
4169 include the provided extra indentation in the calculation, really.
4171 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4174 * giscanner/glibast.py:
4175 * giscanner/glibtransformer.py:
4176 * giscanner/transformer.py:
4177 * tools/g-ir-scanner:
4178 Add a --strip-prefix and sort out confusion between names and symbols
4179 for functions and struct + derivaties.
4180 Refactor bootstrap of g-ir-scanner, so we can set options on
4181 Transformer() before parsing everything.
4183 2008-04-28 Johan Dahlin <johan@gnome.org>
4185 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
4186 when scanning girepository.h
4188 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
4189 a __GI_SCANNER__ when we run.
4191 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4194 * giscanner/girwriter.py:
4195 * giscanner/glibast.py:
4196 * giscanner/glibtransformer.py:
4197 * tests/parser/Foo-expected.gir:
4198 * tests/parser/utility-expected.gir:
4199 Rename most c:identifier to c:type. Add new ones to
4200 class/interface/enum/boxed.
4202 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4205 * giscanner/girwriter.py:
4206 * giscanner/glibtransformer.py:
4207 * tests/parser/Foo-expected.gidl:
4208 * tests/parser/Makefile.am:
4209 Move c:identifier from return-value to subchild type,
4210 as per Jürgs suggestion
4212 2008-04-28 Johan Dahlin <johan@gnome.org>
4214 * giscanner/girwriter.py:
4215 * tests/parser/Foo-expected.gir:
4216 Write property.type as a child node.
4218 2008-04-27 Johan Dahlin <johan@gnome.org>
4223 * gidl/gobject-2.0.gidl:
4225 * gir/gobject-2.0.gir:
4226 * tests/parser/Makefile.am:
4227 Replace the GObject gidl with a GObject gir.
4229 2008-04-27 Johan Dahlin <johan@gnome.org>
4231 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
4234 * giscanner/xmlwriter.py:
4235 * tests/parser/Foo-expected.gir:
4236 Include indentation in line length calculation
4238 2008-04-27 Johan Dahlin <johan@gnome.org>
4240 * giscanner/girparser.py:
4241 Prettify NS parsing using elementtree.
4243 2008-04-27 Johan Dahlin <johan@gnome.org>
4246 * giscanner/Makefile.am:
4247 * giscanner/girparser.py:
4248 * giscanner/glibtransformer.py:
4249 * tests/parser/Foo-expected.gidl:
4250 * tests/parser/Foo-expected.gir:
4251 * tests/parser/Makefile.am:
4252 * tests/parser/utility-expected.gidl:
4253 * tests/parser/utility-expected.gir:
4254 * tools/g-ir-scanner:
4255 Switch over to GIR as the default format. Add a simple GIDL
4257 Update tests and fix simplify makefiles by depending
4258 on GNU make extensions.
4260 2008-04-27 Johan Dahlin <johan@gnome.org>
4262 * giscanner/xmlwriter.py:
4263 Wrap attributes for lines which are wider than 79 characters
4265 * giscanner/scannerlexer.l:
4266 Allow parenthesis in annotations
4269 * giscanner/gidlwriter.py:
4270 * giscanner/girwriter.py:
4271 * giscanner/glibtransformer.py:
4272 * giscanner/transformer.py:
4273 Add initial sequence support, including annotation.
4274 Refactor type handling a bit.
4276 2008-04-27 Johan Dahlin <johan@gnome.org>
4278 * tests/parser/Foo-expected.gidl:
4279 * tests/parser/foo-object.h:
4280 * tests/parser/foo.c (foo_object_class_init),
4281 (foo_object_get_strings), (foo_object_get_objects):
4282 Add two new functions to check sequence return values.
4283 Also fixes a compilation warning.
4285 2008-04-27 Johan Dahlin <johan@gnome.org>
4287 * giscanner/giscannermodule.c (]): Cast the getter, avoids
4288 a compilation warning.
4290 * tools/Makefile.am (g_ir_scanner_SOURCES):
4291 g-ir-scanner has no sources.
4293 2008-04-25 Johan Dahlin <johan@gnome.org>
4295 * giscanner/Makefile.am:
4297 * giscanner/gidlparser.py:
4298 * giscanner/gidlwriter.py:
4299 * giscanner/girwriter.py:
4300 * giscanner/glibast.py:
4301 * giscanner/glibtransformer.py:
4302 * giscanner/transformer.py:
4303 Split out nodes to ast.py and glibast.py
4305 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4307 * giscanner/Makefile.am:
4308 * giscanner/gidlparser.py:
4309 * giscanner/gidlwriter.py:
4310 * giscanner/girwriter.py:
4311 * giscanner/glibtransformer.py:
4312 * giscanner/gobjecttreebuilder.py:
4313 * giscanner/transformer.py:
4314 * giscanner/treebuilder.py:
4315 * tools/g-ir-scanner:
4316 Rename treebuilder to transformer and
4317 gobjectreebuilder to glibtransformer.
4319 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4321 * giscanner/Makefile.am:
4322 * giscanner/__init__.py:
4323 * giscanner/cgobject.py:
4324 * giscanner/gidlparser.py:
4325 * giscanner/gidlwriter.py:
4326 * giscanner/girwriter.py:
4327 * giscanner/gobjecttreebuilder.py:
4328 * giscanner/odict.py:
4329 * giscanner/sourcescanner.py:
4330 * giscanner/treebuilder.py:
4331 * giscanner/xmlwriter.py:
4332 * tools/Makefile.am:
4333 * tools/g-ir-scanner:
4334 Add LGPLv2 license header and install all python files
4336 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4339 * giscanner/gidlwriter.py:
4340 * giscanner/giscannermodule.c (pygi_source_directive_new),
4341 (directive_get_options), (pygi_source_symbol_new),
4342 (symbol_get_base_type), (pygi_source_type_new),
4343 (type_get_base_type), (type_get_child_list),
4344 (pygi_source_scanner_get_symbols),
4345 (pygi_source_scanner_get_directives):
4346 * giscanner/gobjecttreebuilder.py:
4347 * giscanner/sourcescanner.py:
4348 * giscanner/treebuilder.py:
4349 * tests/parser/foo-object.h:
4350 Add support for virtual methods.
4351 Pair struct FooClass with struct Foo.
4352 Clean up the SourceScanner bindings a bit.
4353 Add a testcase for virtual methods.
4355 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4357 * giscanner/cgobject.py:
4358 * giscanner/gidlwriter.py:
4359 * giscanner/gobjecttreebuilder.py:
4360 Add support for signals
4362 * tests/parser/foo.c (foo_object_class_init):
4363 * Foo-expected.gidl:
4364 Add a signal and update the expected output.
4366 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4368 * giscanner/gidlwriter.py:
4369 * giscanner/girwriter.py:
4370 * giscanner/giscannermodule.c (directive_get_name),
4371 (directive_get_value), (directive_get_options),
4372 (symbol_get_directives), (symbol_set_directives),
4373 (pygi_source_scanner_parse_file),
4374 (pygi_source_scanner_lex_filename),
4375 (pygi_source_scanner_get_directives), (init_giscanner):
4376 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4377 * giscanner/sourcescanner.h:
4378 * giscanner/sourcescanner.py:
4379 * giscanner/treebuilder.py:
4380 * tools/g-ir-scanner:
4381 Add support for source/header annotations.
4383 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4385 * giscanner/gidlwriter.py:
4386 * giscanner/girwriter.py:
4387 * giscanner/gobjecttreebuilder.py:
4388 * giscanner/treebuilder.py:
4389 Add support for Callbacks
4391 2008-04-22 Havoc Pennington <hp@pobox.com>
4393 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4394 not in metadata->module, look for it in the global module, in case
4395 some other object or the app itself provides the symbol.
4397 2008-04-22 Havoc Pennington <hp@pobox.com>
4399 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4400 dlopening a library that is already in the main app, by checking
4401 whether one of the lib's symbols is already loaded.
4403 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4405 * tests/parser/Foo-expected.gidl:
4406 * tests/parser/foo-object.h:
4409 2008-04-22 Havoc Pennington <hp@pobox.com>
4411 * girepository/ginfo.c (g_interface_info_find_method):
4412 Use interface_blob_size not object_blob_size to compute offset.
4414 2008-04-22 Havoc Pennington <hp@pobox.com>
4416 * girepository/gmetadata.c (_g_metadata_init): remove
4417 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4418 (Glade and Clutter for example) rely on being loaded globally.
4420 2008-04-22 Havoc Pennington <hp@pobox.com>
4422 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4423 function to get the GType given a RegisteredTypeInfo
4425 2008-04-22 Johan Dahlin <johan@gnome.org>
4427 * COPYING: Add a LGPL license, to prevent automake to
4428 put in a copy of GPL here. Pointed out by Havoc.
4430 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4431 (g_type_info_is_pointer), (g_type_info_get_tag),
4432 (g_type_info_get_param_type), (g_type_info_get_interface),
4433 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4434 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4435 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4436 (g_object_info_get_interface), (g_object_info_get_field),
4437 (g_interface_info_get_prerequisite),
4438 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4439 * girepository/ginvoke.c (get_ffi_type):
4440 * girepository/girepository.h:
4441 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4442 (g_metadata_check_sanity), (validate_header),
4443 (validate_array_type_blob), (validate_iface_type_blob),
4444 (validate_param_type_blob), (validate_error_type_blob),
4445 (validate_type_blob), (validate_constant_blob),
4446 (validate_struct_blob), (validate_enum_blob):
4447 * girepository/gmetadata.h:
4448 * tests/Makefile.am:
4449 * tests/invoke/Makefile.am:
4450 * tests/invoke/invoke.c (main):
4451 * tests/roundtrips.sh:
4452 * tools/Makefile.am:
4453 * tools/compiler.c (format_output), (write_out_metadata), (main):
4454 * tools/generate.c (write_type_name), (write_type_info),
4455 (write_constant_value), (write_enum_info), (load_metadata), (main):
4456 * tools/gidlcompilercontext.c:
4457 * tools/gidlcompilercontext.h:
4458 * tools/gidlcompilerentrynode.c:
4459 * tools/gidlcompilerentrynode.h:
4460 * tools/gidlcompilertypenode.c:
4461 * tools/gidlcompilertypenode.h:
4462 * tools/gidlmodule.c (g_idl_module_build_metadata):
4463 * tools/gidlmodule.h:
4464 * tools/gidlnode.c (init_stats), (dump_stats),
4465 (g_idl_node_get_size), (g_idl_node_get_full_size),
4466 (g_idl_node_cmp), (g_idl_node_can_have_member),
4467 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4468 (parse_int_value), (parse_uint_value), (parse_float_value),
4469 (parse_boolean_value), (find_entry_node), (find_entry),
4470 (serialize_type), (g_idl_node_build_metadata), (write_string):
4472 * tools/gidlparser.c (parse_type_internal):
4473 * tools/quote-file.sh:
4474 Revert revisions 157,149-148,136-129 and 120.
4475 Move back to using g-idl-generate to generate the metadata and
4476 avoids dependency on a c compiler.
4478 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4480 * giscanner/girwriter.py:
4481 * tools/g-ir-scanner:
4482 Add an initial GIR writer and a --format option to g-ir-scanner
4484 2008-04-21 Johan Dahlin <johan@gnome.org>
4486 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4487 gobject-2.0 and raise ImportError if not found.
4489 * giscanner/gidlparser.py:
4490 * giscanner/gidlwriter.py:
4491 * giscanner/gobjecttreebuilder.py:
4492 * tools/g-ir-scanner:
4493 Add a --include argument to include types from other idls.
4494 Add a minimalistic GIDL parser (just objects for now)
4495 Implement resolving of external type references and use it to
4496 resolve parent types, argument types and return types.
4498 2008-04-21 Johan Dahlin <johan@gnome.org>
4500 * giscanner/gidlwriter.py:
4501 * giscanner/gobjecttreebuilder.py:
4502 * giscanner/treebuilder.py:
4503 Add support for properties.
4504 Refactor Class/Interface support a bit, to share more code and
4505 always initialize their method attribute to an empty list.
4507 2008-04-21 Johan Dahlin <johan@gnome.org>
4509 * giscanner/cgobject.py:
4510 Add a workaround for a glib bug interface introspection bug
4511 (object_interface_list_properties, object_class_list_properties):
4512 Cast the return value to GParamSpec.
4514 * tests/parser/Foo-expected.gidl: Update
4515 * tests/parser/foo.c: Add a string property
4517 * giscanner/gobjecttreebuilder.py:
4518 After stripping namespaces, remove the original
4519 item to avoid duplication (GtkButton struct and Button object)
4521 2008-04-21 Johan Dahlin <johan@gnome.org>
4523 * giscanner/gobjecttreebuilder.py:
4524 * giscanner/treebuilder.py:
4525 Strip namespaces before objects, so we'll export
4526 GtkButton as Button in the gtk namespace
4528 2008-04-21 Johan Dahlin <johan@gnome.org>
4530 * giscanner/gidlwriter.py:
4531 * giscanner/gobjecttreebuilder.py:
4532 * giscanner/treebuilder.py:
4533 Add constructors for object/boxed types.
4535 2008-04-21 Johan Dahlin <johan@gnome.org>
4537 * giscanner/gidlwriter.py:
4538 * giscanner/gobjecttreebuilder.py:
4539 Add support for boxed types
4541 2008-04-21 Johan Dahlin <johan@gnome.org>
4543 * giscanner/giscannermodule.c: Mark structures as const,
4544 wrap SourceType.const_string.
4546 * tests/parser/foo-object.h: Add a couple of constants.
4548 * giscanner/gidlwriter.py:
4549 * giscanner/gobjecttreebuilder.py:
4550 * giscanner/treebuilder.py:
4551 Add basic support for interfaces
4553 * tools/g-ir-scanner:
4554 Add -o/--output for writing to a file
4556 2008-04-21 Havoc Pennington <hp@redhat.com>
4558 * TODO: add some C API wishlist items I could think of quickly
4560 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4562 * giscanner/gidlwriter.py:
4563 * giscanner/xmlwriter.py:
4564 Add a simple api for writing tags which can be used
4565 with the new 'with statement' in python 2.5
4567 2008-04-21 Johan Dahlin <johan@gnome.org>
4569 * giscanner/gobjecttreebuilder.py:
4570 Strip namespace and object prefix from method names.
4572 2008-04-21 Johan Dahlin <johan@gnome.org>
4574 * tools/g-ir-scanner (main): Add --pkg option to pass in
4575 pkg-config modules to get cflags from.
4577 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4578 Avoid duplication, reuse function writer for methods.
4580 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4582 * giscanner/gidlwriter.py:
4583 * giscanner/gobjecttreebuilder.py:
4584 * giscanner/treebuilder.py:
4585 * tools/g-ir-scanner:
4586 Resolve libtool .la files.
4587 Strip name spaces for methods.
4588 Add function symbols
4590 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4592 * giscanner/cgobject.py:
4593 * giscanner/gidlwriter.py:
4594 * giscanner/gobjecttreebuilder.py:
4595 * giscanner/treebuilder.py:
4596 Add support for classes and methods
4598 2008-04-20 Johan Dahlin <johan@gnome.org>
4600 * giscanner/gidlwriter.py:
4601 * giscanner/gobjecttreebuilder.py:
4602 * giscanner/odict.py:
4603 Avoid conflicts, keep the output ordered similar to
4604 the order of the input.
4605 Add a simple ordered dictionary implemenation
4607 2008-04-19 Johan Dahlin <johan@gnome.org>
4609 * giscanner/cgobject.py:
4610 * giscanner/gidlwriter.py:
4611 * giscanner/gobjecttreebuilder.py:
4612 * tools/g-ir-scanner:
4613 Start introspecting get-type functions.
4614 Implement support for GLib/GFlags GTypes.
4615 Add a ctype based GObject binding.
4617 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4619 * giscanner/gidlwriter.py:
4620 * giscanner/xmlwriter.py:
4621 * tools/g-ir-scanner:
4622 Add a simplistic gidl writer, which can't do too much.
4624 2008-04-18 Johan Dahlin <johan@gnome.org>
4626 * giscanner/sourcescanner.py:
4627 * giscanner/treebuilder.py:
4628 * tools/g-ir-scanner:
4629 split tree building and source scanning interface to separate files.
4631 2008-04-18 Johan Dahlin <johan@gnome.org>
4633 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4635 - Add support for struct/parameter/return, start parsing of ctypes
4637 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4640 2008-03-31 Johan Dahlin <johan@gnome.org>
4642 * tools/g-ir-scanner:
4643 Start to build abstract syntax node of scanned sources.
4644 Add support for cpp options.
4646 2008-03-27 Johan Dahlin <johan@gnome.org>
4648 * giscanner/giscannermodule.c:
4649 * giscanner/scannerlexer.l:
4650 * giscanner/sourcescanner.c:
4651 * tools/g-ir-scanner:
4653 Add simple pre-processor using subprocess and a PIPE.
4654 Change the parse_file apis to accept a file descriptor.
4656 2008-03-25 Johan Dahlin <johan@gnome.org>
4658 * giscanner/__init__.py:
4659 * tools/g-ir-scanner:
4660 Fix a typo and add an example python test program.
4662 2008-03-25 Johan Dahlin <johan@gnome.org>
4664 * giscanner/__init__.py:
4665 * giscanner/giscannermodule.c:
4666 * giscanner/sourcescanner.c:
4667 * giscanner/sourcescanner.h:
4668 Add constants and wrap a few more SymbolType fields
4670 2008-03-25 Johan Dahlin <johan@gnome.org>
4674 * giscanner/__init__.py:
4675 * giscanner/giscannermodule.c:
4676 * giscanner/Makefile.am:
4678 Add initial python bindings for the scanner and
4679 depend on python 2.5.
4681 2008-03-25 Johan Dahlin <johan@gnome.org>
4685 * giscanner/Makefile.am:
4686 * giscanner/sourcescanner.c:
4687 * giscanner/sourcescanner.h:
4688 * tools/Makefile.am:
4689 * tools/grealpath.h:
4690 * tools/sourcescanner.c:
4691 * tools/sourcescanner.h:
4693 Move the scanner to a separate library.
4695 2008-03-23 Johan Dahlin <johan@gnome.org>
4697 * tools/Makefile.am:
4700 * tools/scannerlexer.l:
4701 * tools/scannerparser.y:
4702 * tools/sourcescanner.c:
4703 * tools/sourcescanner.h:
4704 Split out the source scanner from the generator.
4705 Rename the symbols used in the scanner to use the gi_ prefix.
4706 This should make it possible to use the raw C parser from
4709 2008-03-23 Johan Dahlin <johan@gnome.org>
4711 * tests/parser/Makefile.am (utility.gidl):
4712 * tests/parser/utility-expected.gidl:
4713 Pass in the gobject.gidl since we're defining a GObject.
4715 2008-03-12 Johan Dahlin <johan@gnome.org>
4717 * relaxng/relaxng.rng:
4718 Add a releaxng in relaxng we can use to validate the relaxngs
4721 2008-03-12 Jürg Billeter <j@bitron.ch>
4723 * tools/scanner.c: (g_igenerator_new):
4724 * tools/scannerparser.y:
4725 Fix compiler warnings.
4727 2008-03-12 Jürg Billeter <j@bitron.ch>
4731 * tools/scannerparser.y:
4732 Start fixing memory management in g-idl-scanner.
4734 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4736 * tools/gidlcompilercontext.c: (write_compiled):
4737 Fix critical warning when no shlib passed to g-idl-compiler.
4739 2008-03-12 Johan Dahlin <johan@gnome.org>
4741 * tests/parser/utility-expected.gidl:
4742 * tests/parser/utility.h:
4743 Add a get_type-function, so the scanner actually
4744 parses it as an object.
4746 2008-03-12 Johan Dahlin <johan@gnome.org>
4748 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4751 * tests/parser/Foo-expected.gidl:
4752 * tests/parser/Makefile.am:
4753 * tests/parser/foo-object.h:
4754 * tests/parser/foo.c:
4755 * tests/parser/utility-expected.gidl:
4756 * tests/parser/utility.c:
4757 * tests/parser/utility.h:
4759 Add a new gidl test. 'utility.gidl', which is used to be able
4760 to test external type references. Add a reference to UtilityObject*
4763 2008-03-11 Johan Dahlin <johan@gnome.org>
4767 Remove most global variables
4769 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4771 * tools/scannerlexer.l:
4773 * tests/parser/Foo-expected.gidl:
4774 * tests/parser/foo.c:
4775 * tests/parser/Makefile.am:
4776 * tests/parser/foo-object.h:
4778 Added a few extra tests. Which resulted in finding a few
4779 bugs. Which resulted in me fixing those bugs
4781 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4783 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4784 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4785 Add some comments for strings into generated output for
4788 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4790 * tools/gidlcompilercontext.c: (write_compiled):
4791 Write out the shlibs variable before writing out the strings
4792 length. Fixes compiler warning when using '-l' flag with
4795 2008-03-11 Johan Dahlin <johan@gnome.org>
4797 * tests/parser/Foo-expected.gidl:
4798 * tests/parser/foo-object.h:
4801 * tools/scannerlexer.l:
4802 Add support for parsing return arguments. Add support for
4803 caller-owns return types.
4804 Patch by Philip Van Hoof.
4806 * tools/scannerparser.y:
4807 Remove parsing of the @deprecated syntax used in headers.
4808 We will support gtk-doc deprecation in the future instead.
4810 2008-03-11 Johan Dahlin <johan@gnome.org>
4812 * tools/compiler.c (main): Coding style fixes
4814 2008-03-10 Johan Dahlin <johan@gnome.org>
4817 Add GCOV_LIBS to GILIBS
4819 2008-03-10 Johan Dahlin <johan@gnome.org>
4821 * tests/parser/Foo-expected.gidl:
4822 * tests/parser/foo.c:
4823 Rename null-ok to direction=out
4825 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4827 reviewed and extensively tested by Johan
4829 * tests/parser/Foo-expected.gidl:
4830 * tests/parser/foo-object.h:
4831 * tests/parser/foo.c:
4834 * tools/gidlwriter.c:
4837 * tools/scannerlexer.l:
4838 * tools/scannerparser.y:
4840 Add support for scanning for gtk-doc comments inside
4841 C source files. Add tests
4843 2008-03-10 Johan Dahlin <johan@gnome.org>
4845 * tests/parser/Makefile.am:
4846 * tests/parser/foo.c:
4849 * tools/scannerparser.y:
4850 Add an api to lex filenames.
4851 Lex all source .c files passed in on the command line.
4852 Scan sources in a test and a couple of private structures
4853 which should not be included in the generated gidl
4855 2008-03-10 Johan Dahlin <johan@gnome.org>
4857 * tests/invoke/Makefile.am: Make the generated metadata
4858 depend on the g-idl-compiler
4860 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4862 * tools/gidlmodule.c
4863 * tools/gidlmodule.h
4866 Remove the old g-idl-compiler code.
4869 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4871 * tools/quote-file.sh
4874 Move to using the 'C' struct compiler code.
4876 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4878 * girepository/ginfo.c
4880 Change the way that external references with no namespace
4881 are dealt with. External references with no namespace
4882 are placed into the XML as-if they are a local reference.
4883 This is temporary, but helps with roundtrip tests.
4885 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4887 * girepository/ginfo.c
4888 Add the ability to get the value of a constant of
4889 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4890 is provided as a string.
4892 This would deal properly with:
4893 typedef char* random;
4894 const random = "A string";
4896 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4898 * girepository/ginfo.c
4899 * girepository/girepository.h
4901 Add a function to check if an enum is registered or not.
4902 Previously anything testing this relied on the g-type
4903 string offset having a value of 0.
4905 * girepository/gmetadata.c
4906 * girepository/gmetadata.h
4908 Remove unneccesary or erroneous checks. There were two
4909 metadata validation checks which made sure that the blob
4910 sizes were the same as some magic numbers compiled into the code.
4911 This is wrong as it breaks any forwards compatibility that may
4914 Checks were also present that made sure that unregistered type
4915 blobs had a value of 0 in the g-type offset field. This is
4916 unneccessary. If a type blob is unregistered then any value
4917 in its g-type field is simply invalid.
4919 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4921 * girepository/ginfo.c
4922 * girepository/gmetadata.c
4923 * girepository/gmetadata.h
4925 Change the metadata format to have a standard header
4926 for all the type blobs. Merge the SimpleTypeBlob
4927 and InterfaceTypeBlob into a union. A union of these
4928 two blobs existed previously but was not explicit
4929 in the metadata format.
4931 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4933 * tools/gidlcompilercontext.c
4934 * tools/gidlcompilercontext.h
4935 * tools/gidlcompilerentrynode.c
4936 * tools/gidlcompilerentrynode.h
4937 * tools/gidlcompilertypenode.c
4938 * tools/gidlcompilertypenode.h
4940 Add code to compile a tree of GIdlNodes to
4941 a 'C' struct representing the metadata.
4942 This is to aid cross-compiling. Previously
4943 the g-idl-compiler created a binary blob with
4944 data written in the byte order and alignment
4945 of the tool rather than the intended target.
4947 Cleaned up and improved by Johan and Robert :-)
4949 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4951 * girepository/ginvoke.c
4952 * girepository/girepository.h
4953 * girepository/gmetadata.c
4954 * girepository/gmetadata.h
4956 * tools/gidlparser.c
4957 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4958 to avoid confusion with the interface blob.
4961 * tools/gidlparser.c
4962 Remove magic numbers and replace with type-tag
4963 enumeration symbols.
4965 * girepository/gmetadata.c
4966 Add validate declaration.
4968 2008-03-10 Jürg Billeter <j@bitron.ch>
4970 * tools/gidlparser.c: (parse_type_internal):
4971 * tools/scannerlexer.l:
4972 * tools/scannerparser.y:
4973 Support C99 _Bool type in scanner.
4975 2008-03-10 Jürg Billeter <j@bitron.ch>
4977 * tests/parser/Foo-expected.gidl:
4978 * tests/parser/foo-object.h:
4979 * tests/parser/foo.c: (foo_enum_method):
4980 * tools/scanner.c: (g_igenerator_process_function_symbol):
4981 Don't skip functions that are defined in the namespace of a type
4982 that doesn't support methods, as for example enums.
4984 2008-03-10 Johan Dahlin <johan@gnome.org>
4986 * gidl.dtd: Remove, we're using relaxng for now
4988 * tests/parser/Foo-expected.gidl:
4989 * tests/parser/foo-object.h:
4990 * tests/parser/foo.c:
4991 Rename the enum/flags get_type functions to include the whole type.
4993 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4995 * tools/gidlwriter.c (enum_generate): added "type-name",
4996 "get-type" and "deprecated" missing arguments.
4997 * tests/parser/Foo-expected.gidl:
4998 * tests/parser/foo-object.h: test enum type, and no type.
5000 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
5003 Consistent checks, add missing 'test'
5005 2008-03-05 Havoc Pennington <hp@redhat.com>
5007 * configure.ac: Take advantage of a libffi.pc if one exists, as it
5008 does on Fedora 8. Make libffi a hard requirement, since it was in
5009 practice anyway (was not really conditional in the code or
5010 makefile, only in configure).
5012 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
5014 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
5015 reviewed by: Johan Dahlin <johan@gnome.org>
5017 * tests/Makefile.am:
5018 * tests/roundtrips.sh:
5019 Modify the roundtrips test so that they do not use the
5020 --raw option of the gidl compiler but instead compile a
5021 shared library to use with g_module.
5023 * tests/invoke/Makefile.am:
5024 * tests/invoke/invoke.c:
5025 Modify the invoke tests to build a shared library rather
5026 than use the --raw option.
5028 * tests/invoke/invoke-namespace-find.sh: Removed:
5029 Noone knows why this was here, so removed.
5031 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
5033 * tools/scanner.c: (g_igenerator_process_function_symbol):
5034 Move g_idl_node_can_have_member test later, as it broke spotting
5035 get_type's for nodes that can't have members.
5037 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5040 * tools/gidlnode.c: (g_idl_node_can_have_member):
5041 Add g_idl_node_can_have_member.
5043 * tools/scanner.c: (g_igenerator_process_function_symbol):
5044 Use g_idl_node_can_have_member to test if we should add a function
5045 as a member of the type node.
5047 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5049 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
5051 * tests/parser/Makefile.am:
5052 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
5054 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5056 * tools/scanner.c: (main):
5057 Ignore -pthread when passed to g-idl-scanner.
5059 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5061 * tools/grealpath.h: Added:
5062 * tools/scanner.c: (main):
5063 * tools/scannerlexer.l:
5064 * tools/Makefile.am:
5065 Always use absolute paths with symbolic links resolved when
5066 comparing filenames.
5068 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5070 * gobject-introspection.pc.in:
5071 Provide variables for g-idl-parser, scanner and compiler in the
5074 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
5077 * girepository/Makefile.am:
5078 * tools/Makefile.am:
5079 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
5081 2008-02-10 Johan Dahlin <johan@gnome.org>
5083 * tests/parser/Foo-expected.gidl:
5084 * tests/parser/foo-object.h:
5085 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
5086 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
5089 2008-02-10 Johan Dahlin <johan@gnome.org>
5091 * tests/parser/Foo-expected.gidl:
5092 * tests/parser/foo-object.h:
5093 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
5094 Add enum and flags test.
5096 2008-02-10 Johan Dahlin <johan@gnome.org>
5100 * girepository/Makefile.am:
5101 Make 'make distcheck' work again.
5103 2008-02-10 Johan Dahlin <johan@gnome.org>
5105 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
5108 * tests/parser/Makefile.am: Only create Foo.gidl when running make
5109 check, eg exclude it from BUILT_SOURCES.
5111 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
5116 * girepository/Makefile.am:
5117 * m4/Makefile.am: Added:
5118 * m4/as-compiler-flag.m4: Added:
5119 * m4/gcov.m4: Added:
5120 * tools/Makefile.am:
5121 Add ability to generate a coverage report.
5122 Adds configure option --enable-gcov and make rule 'check-coverage'.
5124 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
5128 * gidl/Makefile.am: Added:
5129 * girepository/Makefile.am: Added:
5130 * src/Makefile.am: Renamed to tools/Makefile.am:
5131 * src/compiler.c: Renamed to tools/compiler.c:
5132 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
5133 * src/generate.c: Renamed to tools/generate.c:
5134 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
5135 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
5136 * src/gidlnode.c: Renamed to tools/gidlnode.c:
5137 * src/gidlnode.h: Renamed to tools/gidlnode.h:
5138 * src/gidlparser.c: Renamed to tools/gidlparser.c:
5139 * src/gidlparser.h: Renamed to tools/gidlparser.h:
5140 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
5141 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
5142 * src/ginfo.c: Renamed to girepository/ginfo.c:
5143 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
5144 * src/girepository.c: Renamed to girepository/girepository.c:
5145 * src/girepository.h: Renamed to girepository/girepository.h:
5146 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
5147 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
5148 * src/scanner.c: Renamed to tools/scanner.c:
5149 * src/scanner.h: Renamed to tools/scanner.h:
5150 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
5151 * src/scannerparser.y: Renamed to tools/scannerparser.y:
5152 * tests/invoke/Makefile.am:
5153 Split src/ into girepository/ and tools/
5157 * girepository/Makefile.am:
5158 * tests/Makefile.am:
5159 * tests/invoke/Makefile.am:
5160 * tests/parser/Makefile.am:
5161 * tests/roundtrips.sh:
5162 * tools/Makefile.am:
5163 Make distcheck work.
5165 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
5167 * tests/invoke/invoke.c: (main):
5168 * tests/invoke/testfns.c: (test6), (test7):
5169 * tests/invoke/testfns.xml:
5170 Add tests for invokation with a GList argument.
5171 Also tests caller-owns return values.
5173 2008-02-04 Rob Taylor <robtaylor@floopily.org>
5176 Add some documentation for GICallableInfo
5178 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
5181 Correct syntax errors in the DTD file.
5183 * relaxng/c-types.xml:
5184 * relaxng/g-types.xml:
5186 Add a RelaxNG specification for the GObject Introspection XML data.
5187 The Specification has validated all of the test files.
5189 2008-01-25 Rob Taylor <robtaylor@floopily.org>
5191 * tests/roundtrips.sh:
5192 * tests/struct.test:
5193 Add roundtrip tests for structs.
5195 2008-01-11 Johan Dahlin <johan@gnome.org>
5197 * src/scanner.c (g_igenerator_process_function_symbol):
5198 Refactor out g_idle_node_add_member.
5199 (create_node_from_gtype, create_node_from_ctype):
5200 Use case instead of if...else
5201 (get_type_from_type_id):
5202 Rename to create_node_from_gtype
5203 (get_type_from_ctype):
5204 Rename to create_node_from_ctype
5206 Rename ginode -> node, gitype -> type, gifunc -> func.
5208 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
5209 Two new functions, refactor out of scanner.c
5211 * src/scanner.c: (g_igenerator_process_function_symbol):
5212 * src/scannerlexer.l:
5213 Do not save the content of the deprecated variable, only
5216 2008-01-11 Johan Dahlin <johan@gnome.org>
5218 * tests/parser/foo-object.h: Add a couple of comment parser tests.
5220 2008-01-11 Jürg Billeter <j@bitron.ch>
5222 * src/scannerlexer.l:
5223 Fix GTK-Doc parsing.
5225 2008-01-11 Jürg Billeter <j@bitron.ch>
5227 * src/scannerlexer.l:
5228 Fix GTK-Doc parsing.
5230 2008-01-11 Jürg Billeter <j@bitron.ch>
5232 * src/scanner.c: (lookup_symbol):
5233 Return unresolved name if we find unknown symbol.
5235 2008-01-11 Jürg Billeter <j@bitron.ch>
5237 * src/scanner.c: (g_igenerator_generate):
5238 Initialize GObject to fix scanning interface properties.
5240 * tests/parser/Foo-expected.gidl:
5241 * tests/parser/foo-object.h:
5242 * tests/parser/foo.c: (foo_interface_get_type):
5243 Test interfaces with GObject prerequisite.
5245 * tests/parser/Makefile.am:
5246 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
5248 2007-12-27 Johan Dahlin <johan@gnome.org>
5250 * src/scannerlexer.l:
5251 Parse gtk-doc comments.
5253 * src/gidlwriter.c: (function_generate):
5254 Reorganize, avoid duplication and add support for
5255 writing deprecated functions.
5257 * src/scannerparser.y:
5259 Add new structure CDirective and functions to create/free them.
5261 * src/scanner.c: (g_igenerator_process_function_symbol),
5262 (g_igenerator_process_unregistered_struct_typedef),
5263 (g_igenerator_process_struct_typedef),
5264 (g_igenerator_process_union_typedef),
5265 (g_igenerator_process_enum_typedef),
5266 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
5267 (g_igenerator_start_preprocessor):
5268 Parse @deprecated directive for functions.
5269 Remove some more C99isms.
5270 Send in -C to cpp to avoid stripping comments.
5272 * tests/parser/foo-object.h:
5273 * tests/parser/Foo-expected.gidl:
5274 Add deprecated directive
5276 2007-12-27 Johan Dahlin <johan@gnome.org>
5278 * src/scannerlexer.l (intsuffix): Add emacs mode line and
5279 escape ' and " so it looks more like C.
5282 Unlink temporary file used.
5284 2007-12-27 Johan Dahlin <johan@gnome.org>
5286 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
5287 (g_igenerator_start_preprocessor), (main):
5289 * src/scannerparser.y:
5290 Plug a couple of simple memory leaks.
5292 2007-12-27 Johan Dahlin <johan@gnome.org>
5294 * src/scanner.c: (g_igenerator_parse_macros),
5295 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
5298 * src/scannerparser.y:
5299 * tests/parser/Makefile.am:
5301 Improve error reporting, return when the preprocessor fails.
5302 Add a verbose parameter, to aid debugging.
5303 Revert to using a temporary file to communicate between the
5304 preprocessor and the parser, because we need to wait for
5305 the exit code from the pre-processor before starting to parse.
5307 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
5309 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
5310 cparser.y to scannerparser.y
5312 2007-12-11 Johan Dahlin <johan@gnome.org>
5316 * src/scanner.c: (g_igenerator_new):
5318 Get rid of the global the_generator variable.
5320 2007-12-10 Johan Dahlin <johan@gnome.org>
5322 * src/scanner.c (main): Add an output option,
5323 add checks for required parameters
5326 set BUILD_SOURCES and CLEANFILES properly
5328 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5329 (g_writer_write_indent), (g_writer_write_unindent),
5330 (field_generate), (value_generate), (constant_generate),
5331 (property_generate), (function_generate), (vfunc_generate),
5332 (signal_generate), (interface_generate), (struct_generate),
5333 (union_generate), (boxed_generate), (enum_generate),
5334 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5336 * src/scanner.c: (g_igenerator_generate):
5338 * src/scannerwriter.c:
5340 Refactor scannerwriter to only be tied to a GIdlModule and move
5341 it (again!) to gidlwriter.c. Change the writer function to take
5344 2007-12-10 Johan Dahlin <johan@gnome.org>
5347 * src/scanner.c: (g_igenerator_generate):
5349 * src/scannerwriter.c: (g_igenerator_write_inline),
5350 (g_igenerator_write), (g_igenerator_write_indent),
5351 (g_igenerator_write_unindent), (field_generate), (value_generate),
5352 (constant_generate), (property_generate), (function_generate),
5353 (vfunc_generate), (signal_generate), (interface_generate),
5354 (struct_generate), (union_generate), (boxed_generate),
5355 (enum_generate), (node_generate), (module_generate),
5356 (g_scanner_write_file):
5358 Move the scanner gidl writing to a separate source file.
5360 2007-12-10 Johan Dahlin <johan@gnome.org>
5365 Move over all CType construction functions.
5367 * tests/parser/Makefile.am:
5368 Be verbose when printing parsing tests results.
5370 2007-12-10 Johan Dahlin <johan@gnome.org>
5372 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5373 preprocessor handling to here. Start cpp insteado of cc -E,
5374 always include -U__GNUC__, since it's specific to the preprocessor
5377 * tests/parser/Makefile.am (check-local): Silent diff and skip
5378 -U__GNUC__ which is always defined now
5380 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5382 reviewed by: <delete if not using a buddy>
5384 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5385 * tests/parser/Makefile.am:
5387 2007-12-09 Johan Dahlin <johan@gnome.org>
5390 Use GOption for command line options.
5391 (g_igenerator_new, main): Simplify constructor and they way
5392 parameters are passed into it.
5398 * src/gen-introspect.c:
5399 * src/gen-introspect.h:
5401 Rename gen-introspect.[ch] to scanner.[ch]
5403 2007-12-09 Johan Dahlin <johan@gnome.org>
5407 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5408 don't make the repository library and the other utilites link against
5411 * src/gen-introspect.c: (g_igenerator_create_object),
5412 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5413 (g_igenerator_create_enum), (g_igenerator_create_flags),
5414 (g_igenerator_process_module_symbol),
5415 (g_igenerator_process_module), (g_igenerator_generate), (main):
5416 * src/gen-introspect.h:
5417 Refactor g_igenerator_process_types into smaller pieces.
5419 * tests/parser/Makefile.am:
5420 Depend on the gen-introspect binary
5422 2007-12-09 Johan Dahlin <johan@gnome.org>
5424 * src/gen-introspect.c (g_igenerator_process_types):
5425 Break into smaller pieces, one for each generated node type.
5427 2007-12-08 Johan Dahlin <johan@gnome.org>
5429 * src/gen-introspect.c: (g_igenerator_process_types),
5430 (g_igenerator_add_module):
5431 * tests/parser/Foo-expected.gidl:
5432 * tests/parser/foo-object.h:
5433 * tests/parser/foo.c: (foo_subobject_class_init),
5434 (foo_subobject_init):
5436 Add a subobject test and make sure to register defined classes
5437 in the lookup symbol hash table.
5439 2007-12-08 Johan Dahlin <johan@gnome.org>
5443 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5444 (g_igenerator_process_types), (g_igenerator_add_module),
5445 (g_igenerator_add_include_idl), (main):
5446 * src/gen-introspect.h:
5447 * tests/parser/Makefile.am:
5448 * tests/parser/Foo-expected.gidl:
5450 Change the gen-introspect to generate namespaced module names,
5451 such as GLib.Object instead of GObject.
5452 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5453 add a --include-idl parameter to gen-introspect,
5454 and update the parser test.
5456 2007-12-08 Johan Dahlin <johan@gnome.org>
5458 * src/gen-introspect.c:
5459 Move main to the end of the file and attempt to make it valid
5462 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5463 we're not quite ready to generate metadata yet.
5468 Add a simple gen-introspect parser test
5470 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5472 reviewed by: Johan Dahlin <johan@gnome.org>
5475 * gobject-introspection.pc.in:
5477 * src/compiler.c: (format_output), (write_out_metadata), (main):
5478 * src/gen-introspect.c: (main):
5479 * src/gen-introspect.h:
5480 * src/generate.c: (write_callable_info), (write_repository),
5481 (load_metadata), (main):
5482 * src/gidlmodule.c: (g_idl_module_new),
5483 (g_idl_module_build_metadata):
5485 * src/gidlparser.c: (start_element_handler):
5486 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5487 (g_base_info_get_name), (g_base_info_get_namespace),
5488 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5489 (g_base_info_get_metadata), (g_function_info_get_symbol),
5490 (g_function_info_get_flags), (g_function_info_get_property),
5491 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5492 (g_callable_info_may_return_null),
5493 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5494 (g_callable_info_get_arg), (g_arg_info_get_direction),
5495 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5496 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5497 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5498 (g_type_info_get_tag), (g_type_info_get_param_type),
5499 (g_type_info_get_interface), (g_type_info_get_array_length),
5500 (g_type_info_is_zero_terminated),
5501 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5502 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5503 (g_value_info_get_value), (g_field_info_get_flags),
5504 (g_field_info_get_size), (g_field_info_get_offset),
5505 (g_registered_type_info_get_type_name),
5506 (g_registered_type_info_get_type_init),
5507 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5508 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5509 (find_method), (g_struct_info_find_method),
5510 (g_enum_info_get_n_values), (g_enum_info_get_value),
5511 (g_object_info_get_parent), (g_object_info_get_type_name),
5512 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5513 (g_object_info_get_interface), (g_object_info_get_n_fields),
5514 (g_object_info_get_field), (g_object_info_get_n_properties),
5515 (g_object_info_get_property), (g_object_info_get_n_methods),
5516 (g_object_info_get_method), (g_object_info_find_method),
5517 (g_object_info_get_n_signals), (g_object_info_get_signal),
5518 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5519 (g_object_info_get_n_constants), (g_object_info_get_constant),
5520 (g_interface_info_get_n_prerequisites),
5521 (g_interface_info_get_prerequisite),
5522 (g_interface_info_get_n_properties),
5523 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5524 (g_interface_info_get_method), (g_interface_info_find_method),
5525 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5526 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5527 (g_interface_info_get_n_constants),
5528 (g_interface_info_get_constant), (g_property_info_get_flags),
5529 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5530 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5531 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5532 (g_constant_info_get_value), (g_union_info_get_n_fields),
5533 (g_union_info_get_field), (g_union_info_get_n_methods),
5534 (g_union_info_get_method), (g_union_info_is_discriminated),
5535 (g_union_info_get_discriminator_offset),
5536 (g_union_info_get_discriminator):
5537 * src/ginvoke.c: (g_function_info_invoke):
5538 * src/girepository.c: (g_irepository_register),
5539 (g_irepository_unregister), (g_irepository_get_default),
5540 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5541 (g_irepository_get_info), (g_irepository_find_by_name),
5542 (g_irepository_get_shared_library),
5543 (g_irepository_build_search_path), (g_irepository_register_file),
5544 (g_irepository_error_quark):
5545 * src/girepository.h:
5546 * src/gmetadata.c: (g_metadata_get_dir_entry),
5547 (g_metadata_check_sanity), (validate_header),
5548 (validate_array_type_blob), (validate_iface_type_blob),
5549 (validate_param_type_blob), (validate_error_type_blob),
5550 (validate_type_blob), (validate_arg_blob),
5551 (validate_signature_blob), (validate_function_blob),
5552 (validate_callback_blob), (validate_constant_blob),
5553 (validate_value_blob), (validate_field_blob),
5554 (validate_property_blob), (validate_signal_blob),
5555 (validate_vfunc_blob), (validate_struct_blob),
5556 (validate_enum_blob), (validate_object_blob),
5557 (validate_interface_blob), (validate_errordomain_blob),
5558 (validate_union_blob), (validate_blob), (validate_directory),
5559 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5560 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5561 (g_metadata_new_from_mapped_file), (g_metadata_free),
5562 (g_metadata_set_module), (g_metadata_get_namespace):
5564 * tests/Makefile.am:
5565 * tests/invoke/Makefile.am:
5566 * tests/invoke/invoke-namespace-find.sh:
5567 * tests/invoke/invoke.c: (main):
5569 Add a namespace/shared library mapping. fixes #313268.
5571 2007-12-03 Johan Dahlin <johan@gnome.org>
5573 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5576 2007-11-30 Jürg Billeter <j@bitron.ch>
5582 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5583 (g_igenerator_write_inline), (g_igenerator_write),
5584 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5585 (field_generate), (value_generate), (constant_generate),
5586 (property_generate), (function_generate), (vfunc_generate),
5587 (signal_generate), (interface_generate), (struct_generate),
5588 (union_generate), (boxed_generate), (enum_generate),
5589 (node_generate), (module_generate), (get_type_from_type_id),
5590 (str_replace), (g_igenerator_process_properties),
5591 (g_igenerator_process_signals), (g_igenerator_process_types),
5592 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5593 (g_igenerator_process_unregistered_struct_typedef),
5594 (g_igenerator_process_struct_typedef),
5595 (g_igenerator_process_union_typedef),
5596 (g_igenerator_process_enum_typedef),
5597 (g_igenerator_process_function_typedef),
5598 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5599 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5600 (g_igenerator_generate), (main), (csymbol_new),
5601 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5602 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5603 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5604 (eat_hspace), (eat_line), (read_identifier),
5605 (g_igenerator_parse_macros):
5606 * src/gen-introspect.h:
5608 Import gen-introspect to generate introspection information by
5611 2007-11-30 Jürg Billeter <j@bitron.ch>
5613 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5615 2007-11-30 Jürg Billeter <j@bitron.ch>
5617 * src/gidlparser.c: (end_element_handler): Don't leave requires
5620 2007-11-29 Johan Dahlin <johan@gnome.org>
5622 * src/gidlparser.c (parse_type_internal): Add char,
5623 gchar and guchar to the builtin types.
5625 2007-11-26 Johan Dahlin <johan@gnome.org>
5627 * src/ginfo.c: (g_object_info_get_type_name),
5628 (g_object_info_get_type_init):
5629 * src/girepository.c: (g_irepository_is_registered):
5630 * src/girepository.h:
5632 Add g_object_info_get_type_name, g_object_info_get_type_init and
5633 g_irepository_is_registered.
5635 2006-08-14 Jürg Billeter <j@bitron.ch>
5637 * src/gidlparser.c: (end_element_handler): Don't leave
5638 namespace and implements states too early.
5641 2007-11-26 Johan Dahlin <johan@gnome.org>
5643 * src/gmetadata.c (validate_struct_blob):
5644 pass blob_type to validate_function_blob instead of
5645 hard-coding BLOB_TYPE_STRUCT.
5647 Patch by Torsten Schoenfeld, fixes #314190
5649 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5651 * src/compiler.c, src/generate.c, src/gidlnode.c,
5652 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5653 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5654 warnings about return values, signedness mismatches, unused
5655 variables, and unhandles enum values in switch statements.
5657 * tests/invoke/Makefile.am: Don't install the invoke test program.
5658 Add -I ../../src to the cflags used for the test functions files.
5660 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5662 * src/girepository.h: Export g_invoke_error_quark.
5664 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5666 * src/ginvoke.c: Remove the fallback implementation of
5667 g_function_info_invoke since we now formally depend on libffi.
5669 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5671 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5672 Remove these files from cvs, as they are now generated.
5674 * src/gmetadata.c (validate_iface_type_blob): Don't
5675 complain if blob->pointer is not set, since that
5676 happens for enum and flag types. (#308935, Gustavo
5679 * Commit an autoconf-conversion patch by
5680 Gustavo Carneiro (#308708)
5682 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5684 * src/compiler.c (main): Use it here to validate
5685 the generated metadata.
5687 * src/gmetadata.[hc]: Add code to validate a
5690 * metadata-format.txt: Updates
5692 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5694 * tests/*: Add struct offsets to field and vfunc
5697 * src/generate.c (write_vfunc_info): Write offset
5698 information for vfuncs.
5700 * src/gidlnode.c (g_idl_node_build_metadata): Write
5701 the struct offsets into the metadata.
5703 * src/gidlparser.c: Parse the offset attributes of
5704 field and vfunc elements.
5706 * src/gidlnode.h: Add offset members to field and
5709 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5713 * gidl.dtd: Updates.
5715 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5716 file, creates, compiles and runs a C file, and folds the
5717 resulting struct offsets back into the .gidl file.
5719 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5721 * src/gidlparser.c (start_field): Make fields in objects
5724 * src/gidlmodule.c: Include string.h
5729 * metadata-format.txt: Cleanup basic types.
5730 * src/*: Adapt to the changes.
5731 * tests/*: Adapt to the changes.
5732 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5734 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5735 size for enum blobs.
5736 (g_idl_node_get_full_size): Report the correct size for
5739 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5740 error checking for blob sizes.
5742 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5744 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5745 interface types for which is_pointer is FALSE, e.g. enums.
5747 * src/gidlnode.c (g_idl_node_get_full_size)
5748 * src/gidlparser.c (parse_type_internal):
5749 * src/generate.c (write_type_info): Support unspecialized
5750 lists, hashtables and errors. Also emit a '*' after these.
5754 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5758 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5760 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5762 * src/*.c: Change the directory to be addressed by
5763 1-based indexes, and use an index of zero to mean
5766 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5768 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5770 * tests/union.test: Add a union test.
5772 * src/generate.c: Handle unions.
5774 * src/girepository.h:
5775 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5777 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5779 * src/gidlparser.c (start_union): Parse <union> elements.
5781 * src/gidlnode.h: Add a GIdlNodeUnion.
5783 * gidl.dtd: Add a <union> element.
5785 * src/gmetadata.c (g_metadata_check_sanity): Check
5788 * src/gmetadata.h: Add union_blob_size to Header,
5791 * metadata-format.txt: Add a UnionBlob.
5793 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5795 * tests/*: Update testcases.
5797 * src/generate.c (write_callable_info): Don't forget to
5798 write transfer and null-ok attributes for return types
5801 * src/girepository.h:
5802 * src/ginfo.c (g_callable_info_may_return_null):
5803 New function to find out if a function may return NULL.
5805 * src/compiler.c (format_output): Make the generated
5808 * README: Point to a recent libffi snapshot.
5810 * tests/invoke/*: Some invoke tests.
5812 * src/Makefile: Add ginvoke.c and the necessary
5815 * src/girepository.h (g_function_info_invoke): Add
5818 * src/ginvoke.c (g_function_info_invoke): Initial
5819 implementation of invoke functionality based on libffi.
5821 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5822 strings and types hash tables in the right order when
5824 (find_entry_node): Free the name parts.
5826 2005-05-12 Johan Dahlin <johan@gnome.org>
5828 * src/generate.c: Generate consistent end tags.
5832 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5836 * src/gidlparser.c (start_function): Actually add
5837 methods to objects. (Steven Walter)
5839 * src/girepository.h:
5840 * src/ginfo.c: Rename Transfer and Direction to
5841 GITransfer and GIDirection. (Torsten Schoenfeld)
5843 * tests/*: Make tests work with the changes in name
5846 * src/gidlnode.c (find_entry_node): Parse qualified
5847 names and generate xref nodes for them if needed. Don't
5848 require all modules to be loaded any more.
5850 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5853 * src/ginfo.c (g_object_info_get_parent): Return NULL
5854 if blob->parent is 0. Still need to make sure index
5857 * src/generate.c: Generate qualified names when
5858 referring to non-local types. Emit transfer attribute
5861 * src/compiler.c (format_output): Put the function
5862 attributes where gcc accepts them.
5864 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5866 * src/compiler.c (main): Add a --verbose cmdline option
5867 and only log messages if it is specified.
5870 * src/gidlnode.c (init_stats, dump_stats): Collect some
5871 statistics on string and type sharing.
5873 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5874 g_message() instead of fprintf().
5876 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5877 (g_idl_node_get_size): Implement for structs.
5878 (g_idl_node_get_full_size): Handle parent being NULL.
5879 (serialize_type): Handle lookup failures more gracefully.
5881 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5883 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5884 size calculation for 2-parameter types and for objects.
5886 * src/compiler.c: Add a cmdline option for debug output
5887 and install a log handler to implement it.
5888 * src/gidlnode.c: Add some debug spew.
5892 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5893 forget to count the module name when calculating the
5894 required size for the metadata.
5897 * src/gidlparser.c: Fix compiler warnings.
5899 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5901 * src/compiler.c (main): Free the option context.
5903 * gidl.dtd: Clean up handling of names. All elements
5904 have a "name", only the elements corresponding to
5905 actual callable functions (function, method, constructor),
5906 have an additional "symbol" attribute holding the
5907 dlsym()-able function name.
5909 * src/generate.c: Adapt to generate xml matching the
5913 * src/gidlnode.c: Adapt to parse the new dtd.
5915 * tests/*.test: Adjust to the new dtd.
5917 * metadata-format.txt:
5918 * src/gmetadata.h: Remove the short_name field
5920 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5921 * src/girepository.h:
5922 * src/ginfo.c (g_value_info_get_short_name): Removed
5924 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5926 * gidl.dtd: Allow constructors for boxed types,
5927 patch by Jonathan Blandford.
5930 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5932 * --- Initial import ---