1 2009-01-16 Dan Winship <danw@gnome.org>
3 * gir/GL-1.0.gir: add back GLvoid, which got lost during the
4 gir-repository -> gobject-introspection migration
6 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
8 * gir/freetype2-2.0.gir: add FT_Int32
9 * gir/xft-2.0.gir: add XftFont
10 * girepository/gdump.c (g_irepository_dump):
11 Report errors when an invalid type is encountered
12 * giscanner/glibtransformer.py:
13 Make the error message a bit nicer.
15 Part of preparating for gir generating inside pango.
17 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
22 * gir/fontconfig-2.0.gir:
23 * gir/freetype2-2.0.gir:
24 * gir/libxml2-2.0.gir:
29 Move over the hand-written girs from gir-repository
30 so upstream libraries depending on these can avoid
31 a gir-repository dependency.
33 2009-01-15 Johan Dahlin <jdahlin@async.com.br>
35 Bug 567813 – Everything should be versioned
38 * girepository/Makefile.am:
39 * girepository/girepository.c (init_globals):
40 * girepository/girparser.c (locate_gir):
41 * giscanner/dumper.py:
42 * giscanner/transformer.py:
43 * gobject-introspection-1.0.pc.in:
44 * tests/everything/Makefile.am:
45 * tests/invoke/Makefile.am:
46 * tests/offsets/Makefile.am:
47 * tests/repository/Makefile.am:
48 * tests/scanner/Makefile.am:
51 2009-01-13 Johan Dahlin <jdahlin@async.com.br>
53 Bug 555036 – put gtk-doc in GIR
55 * giscanner/annotationparser.py:
57 * giscanner/girwriter.py:
58 * giscanner/glibast.py:
59 * tests/scanner/annotation-1.0-expected.gir:
60 * tests/scanner/annotation.h:
61 * tests/scanner/foo-1.0-expected.gir:
63 2009-01-13 Johan Dahlin <jdahlin@async.com.br>
65 * giscanner/cachestore.py (CacheStore.load): Catch AttributeError
66 which seems to be occasionally raised for Record.
68 * giscanner/annotationparser.py:
69 Fix a bug where \n was not present in a comment
71 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
73 Bug 562467 – Property annotation
75 * giscanner/annotationparser.py:
76 * tests/scanner/annotation-1.0-expected.gir:
77 * tests/scanner/annotation-1.0-expected.tgir:
78 * tests/scanner/annotation.c (annotation_object_set_property),
79 (annotation_object_get_property), (annotation_object_class_init):
81 Annotations are parsed for properties.
83 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
85 Bug 546739 – Introspection should know precise signal parameter types
87 * giscanner/annotationparser.py:
88 * tests/scanner/annotation-1.0-expected.gir:
89 * tests/scanner/annotation-1.0-expected.tgir:
90 * tests/scanner/annotation.c (annotation_object_class_init):
92 Annotations are parsed for signals, the (type) annotation is introduced.
94 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
96 Bug 563591 – Flags not recognized when there is no introspection data
99 * giscanner/girwriter.py:
100 * giscanner/giscannermodule.c (type_get_is_bitfield):
101 * giscanner/glibast.py:
102 * giscanner/glibtransformer.py:
103 * giscanner/scannerparser.y:
104 * giscanner/sourcescanner.c (gi_source_type_copy):
105 * giscanner/sourcescanner.h:
106 * giscanner/sourcescanner.py:
107 * giscanner/transformer.py:
108 * tests/scanner/foo-1.0-expected.gir:
109 * tests/scanner/foo-1.0-expected.tgir:
110 * tests/scanner/foo.h:
112 Large parts of this patch was done by Jürg Billeter.
114 2009-01-12 Havoc Pennington <hp@pobox.com>
116 Bug 563386 – scanner ignores "const" on boxed return values
118 * tests/everything/everything.c (test_simple_boxed_a_const_return):
119 * tests/everything/everything.h:
121 This adds just the tests specified in the bug above, the fix itself
122 was included in Bug 563794
124 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
126 Bug 566404 – Annotations for GLib
128 * gir/glib-2.0.c: Added allow-none annotations for g_thread_init()
129 and g_main_loop_new().
131 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
133 Bug 566419 – Element type of arrays not properly handled in all cases
135 * giscanner/annotationparser.py:
136 * tests/scanner/annotation-1.0-expected.gir:
137 * tests/scanner/annotation-1.0-expected.tgir:
138 * tests/scanner/annotation.c (annotation_object_set_data),
139 (annotation_object_set_data2), (annotation_object_set_data3):
140 * tests/scanner/annotation.h:
142 Based on patch by Andreas Rottmann
144 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
146 Bug 566560 – giscanner.transformer.SkipError
148 * giscanner/transformer.py:
150 Catch SkipError for all nodes, not just functions.
151 Makes it possible to skip unsupported parameter types in
154 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
156 Bug 563794 - Redo annotation parsing & applying
158 Thanks to Colin for helping out considerably in landing this.
160 * giscanner/Makefile.am:
162 * giscanner/dumper.py:
163 * giscanner/girparser.py:
164 * giscanner/giscannermodule.c (pygi_source_scanner_get_comments),
165 (calc_attrs_length), (pygi_collect_attributes), (init_giscanner):
166 * giscanner/glibtransformer.py:
167 * giscanner/scannerlexer.l:
168 * giscanner/sourcescanner.c (gi_source_symbol_unref),
169 (gi_source_scanner_new), (gi_source_scanner_free),
170 (gi_source_scanner_get_comments):
171 * giscanner/sourcescanner.h:
172 * giscanner/sourcescanner.py:
173 * giscanner/transformer.py:
174 * giscanner/xmlwriter.py:
175 * tests/scanner/annotation-1.0-expected.gir:
176 * tests/scanner/annotation-1.0-expected.tgir:
177 * tests/scanner/annotation.c:
178 * tests/scanner/annotation.h:
179 * tests/scanner/foo-1.0-expected.gir:
180 * tests/scanner/foo-1.0-expected.tgir:
181 * tests/scanner/foo.h:
182 * tools/g-ir-scanner:
184 This commit merges the annotation parser rewrite branch.
185 It'll change the annotation parsing to be done completely in python
186 code which will make it easier to do further annotation parsing
189 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
191 Bug 563469 – Arrays not treated correctly in struct offset calculation
193 * tests/scanner/foo.h (FooObject): Added field `some_int'.
194 * tests/scanner/foo-1.0-expected.gir,
195 * tests/scanner/foo-1.0-expected.tgir: Adapted.
197 * giscanner/glibtransformer.py (GLibTransformer._create_gobject):
198 carry over object fields from original (struct) node.
199 (GLibTransformer._pair_class_struct): Don't add fields of the
200 class struct to to the node for the class, they should go under a
201 nested <record> element (see also Bug 551738). This is needed as
202 otherwise offset calculation would not work, as the instance
203 fields are mingled with the class fields without a way to
206 2009-01-03 Johan Dahlin <jdahlin@async.com.br>
209 Disable blank line check, it works differently under
210 Python 2.5 from 2.6 and was rather annoying from the start.
212 2008-01-03 Andreas Rottmann <a.rottmann@gmx.at>
214 Bug 556489 – callback annotations
216 * giscanner/transformer.py
218 * tools/generate.c (write_callable_info): Write out the new scope,
219 closure and destroy attributes.
221 * giscanner/transformer.py (Transformer._type_is_callback): New
222 method, checking if a given type is a callback.
223 (Transformer._augment_callback_params): New method; adds
224 information (closure, destroy) to callback parameters.
225 (Transformer._handle_closure, Transformer._handle_destroy): New methods,
226 auxiliary to _augment_callback_params.
227 (Transformer._create_function): Call _augment_callback_params().
228 (Transformer._create_parameter): Handle scope option.
230 (Transformer._create_typedef_callback): New method, creates a
231 callback, and registers it in the typedef namespace
232 (Transformer._create_typedef): Use _create_typedef_callback()
233 instead of the plain _create_callback().
235 * giscanner/ast.py (Parameter): Added callback-related fields.
236 * giscanner/girwriter.py: Write out new Parameter fields.
238 * girepository/girnode.h (GIrNodeParam): Added fields scope,
240 * girepository/gtypelib.h (ArgBlob): Ditto.
241 * girepository/girparser.c (start_parameter): Handle new fields.
243 * girepository/girmodule.c (g_ir_module_build_typelib): Adjust
244 arg_blob_size, bump major version due to this change.
245 * girepository/girnode.c (g_ir_node_get_full_size_internal)
246 (g_ir_node_build_typelib)
247 * girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
249 (g_ir_node_build_typelib): Fill in new ArgBlob flags from param.
251 * girepository/girepository.h (GIScope): New enumeration, listing
252 the different possible scopes for callbacks.
254 * girepository/ginfo.c (g_arg_info_get_scope)
255 (g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
256 callback-related argument indices (callback scope, closure for a
257 callback, destroy notification for a callback).
259 * tests/scanner/: Added testcases for new features.
261 2009-01-03 Jürg Billeter <j@bitron.ch>
264 * giscanner/dumper.py:
265 * giscanner/girparser.py:
266 * giscanner/glibtransformer.py:
267 * giscanner/sourcescanner.py:
268 * giscanner/transformer.py:
269 * giscanner/xmlwriter.py:
271 Fix inconsistencies with PEP8
273 2008-12-21 Johan Dahlin <jdahlin@async.com.br>
276 Annotate transfer, direction and allow none for
277 g_file_load_contents, g_file_load_contents_finish and
278 g_file_load_partial_contents_finish parameters.
280 2008-12-12 Owen Taylor <otaylor@redhat.com>
282 Disable array auto-detection for out-annotated parameters (#563934)
284 If we have a parameter annotated as (out), then having a ctype of
285 'char **' (or similar) doesn't necessarily indicate an array.
287 * giscanner/transformer.py: Skip array-detection logic for
288 (out)-annotated parameters.
289 * tests/scanner/annotation.h tests/scanner/annotation.c
290 tests/scanner/annotation-1.0-expected.gir
291 tests/scanner/annotation-1.0-expected.tgir: Add a test for
292 an (out) string parameter.
294 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
296 * giscanner/dumper.py (DumpCompiler._link): Pass in
297 --tag=CC to libtool to avoid making libtool confused
298 when CC is different from gcc on some systems.
300 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
302 Bug 563998 – Cache the GIBaseInfo for GTypes
304 * girepository/girepository.c (g_irepository_find_by_gtype):
305 add a cache of GType -> GIBaseInfo.
307 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
309 Bug 562545 – Add function taking / returning GValue
311 * tests/everything/everything.[ch]: add a test of function taking and
312 returning "const GValue *"
314 2008-12-09 Johan Dahlin <johan@async.com.br>
316 * giscanner/cachestore.py (CacheStore.store): Use
317 shutil.move instead of os.rename, since it will
318 automatically fall back to copying+remove if the
319 src directory is on a different partition from
322 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
324 Bug 563742 – introspection should record the introduced version of
325 symbols marked with the "Since:" tag
330 * giscanner/girwriter.py:
331 * giscanner/scannerlexer.l:
332 * giscanner/transformer.py:
333 * tests/scanner/annotation-1.0-expected.gir:
334 * tests/scanner/annotation-1.0-expected.tgir:
335 * tests/scanner/annotation.c (annotation_versioned):
336 * tests/scanner/annotation.h:
338 2008-12-08 Johan Dahlin <johan@async.com.br>
340 * giscanner/cachestore.py (_get_cachedir): Don't require
341 HOME to be set and if it set, don't require the
344 2008-12-08 Johan Dahlin <johan@async.com.br>
346 * giscanner/cachestore.py (CacheStore.store): Dump the cache
347 file to a temporary file and rename it the expected filename
348 only when it's completely written.
349 This should make the cache more roboust when run in parallel,
350 and hopefully avoid triggering bugs in Python.
352 2008-12-03 Christophe Fergeau <teuf@gnome.org>
354 Bug 562971 – g-ir-scanner failure on libgpod headers
356 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
357 default 16384. Without it, the lexer was aborting with a cryptic
358 error message on source files containing really long comment
361 2008-12-01 Colin Walters <walters@verbum.org>
363 * girepository/gfield.c: Fix memory leak; unref type info we
364 created, not field info
366 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
368 Bug 562289 – Race when removing invalid cache
370 * giscanner/cachestore.py:
371 ENOENT is mapped to a OSError, not IOError.
373 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
375 * gir/glib-2.0.c: Add return value transfer annotation
376 for g_markup_escape_text.
378 2008-11-25 Colin Walters <walters@verbum.org>
380 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
382 * giscanner/dumper.py: Implement it.
383 * gir/Makefile.am, tests/**/Makefile.am: Use it.
385 2008-11-25 Colin Walters <walters@verbum.org>
387 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
388 to just use a Makefile rule and dependencies. This corresponds with a change
389 made to gir-repository to fix srcdir != builddir issues.
391 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
394 Post release version bump
397 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
402 2008-11-25 Colin Walters <walters@verbum.org>
404 Bug 559705 – Missing association between static methods and classes
406 * docs/typelib-format.txt:
407 * girepository/ginfo.c (g_function_info_get_flags):
408 * girepository/girmodule.c (g_ir_module_build_typelib):
409 * girepository/girnode.c (g_ir_node_get_size),
410 (g_ir_node_build_typelib):
411 * girepository/girparser.c (start_function):
412 * girepository/gtypelib.c (g_typelib_check_sanity),
413 (validate_header), (validate_function_blob):
414 * girepository/gtypelib.h:
416 * giscanner/girwriter.py:
417 * giscanner/glibtransformer.py:
418 * tests/scanner/foo-1.0-expected.gir:
419 * tests/scanner/foo-1.0-expected.tgir:
420 * tests/scanner/foo.h:
422 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
424 * giscanner/ast.py: Define socklen_t as an alias for int32.
426 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
428 * girepository/gdump.c (dump_type): Remove a warning,
429 be less verbose on error on fundamental types.
431 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
433 * giscanner/dumper.py: Add license headers,
434 refactor into a class, avoid some duplication and do some
435 extra pedantic checks.
437 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
439 Make it compilable with -Werror on my system by adding
440 a couple of prototypes and including headers.
442 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
444 Bug 562022 – gobject-introspection needs python headers
446 * configure.ac: fail without python headers present.
449 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
451 Bug 561617 – Return value array annotations
453 * giscanner/transformer.py:
454 * tests/scanner/annotation.c (annotation_return_array):
455 * tests/scanner/annotation.h:
456 Add support for (array) for return value annotations as well.
458 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
460 * tests/everything/everything.[ch]: add a test function which calls a
463 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
465 * giscanner/cachestore.py:
466 Catch ValueError exceptions.
468 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
470 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
472 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
474 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
475 instead of hard-coding struct sizes.
477 2008-11-18 Owen Taylor <otaylor@redhat.com>
479 Bug 561296 - Add "storage type" to the typelib data for enums
481 In order to set and get enum and flag fields in structures, we need
482 to know the integral type that the enumeration is stored as. We are already
483 computing that at compile time in order to compute struct offsets, so the
484 easiest thing to do is to save that in the typelib.
486 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
487 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
488 and compute and save it at compile time.
490 * girepository/girepository.h girepository/ginfo.c:
491 Add g_enum_info_get_storage_type().
493 * girepository/gfield.c: Implement reading and writing enum and flags fields
494 based on the storage type.
496 2008-11-18 Owen Taylor <otaylor@redhat.com>
498 Add enums to the Everything test module
500 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
501 test module and register them as GTypes.
503 https://bugzilla.gnome.org/show_bug.cgi?id=561296
505 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
507 * giscanner/cachestore.py:
508 Catch BadPickleGet exceptions as well.
510 2008-11-17 Owen Taylor <otaylor@redhat.com>
512 * tests/everything/everything.c: Fix doc comment annotations
513 for test_struct_b_clone() to refer to the right function.
515 2008-11-17 Dan Winship <danw@gnome.org>
517 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
518 spelling of GHashTable. #561135
520 * tests/scanner/annotation.c (annotation_object_get_hash):
521 * tests/scanner/annotation-1.0-expected.gir:
522 * tests/scanner/annotation-1.0-expected.tgir: add a test of
523 GHashTable annotations
525 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
527 * giscanner/ast.py: Change string array match type to be in terms
528 of canonicalized type.
529 * giscanner/transformer.py: Add canonicalize_ctype which gives us
530 a version of a c:type without aliases, so we can deep canonicalize
531 char** to utf8*. Update parse_ctype to use it.
532 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
534 2008-11-16 Colin Walters <walters@verbum.org>
536 * girepository/girepository.c: Ensure we always call init_globals,
537 even if passed a non-default repository.
539 2008-11-16 Colin Walters <walters@verbum.org>
541 Bug 559706 - Interface prerequisites
543 * common.mk: Dep on libgirepository.la for scanner libs so that
544 we rebuild things even if just gdump.c changes.
545 * girepository/gdump.c: Dump prerequisites.
546 * giscanner/ast.py: Add prerequisite list.
547 * giscanner/girparser.py: Parse them from gdump.
548 * giscanner/girwriter.py: Write them.
549 * giscanner/glibtransformer.py: Resolve them.
552 2008-11-16 Owen Taylor <otaylor@redhat.com>
554 Bug 561087 - Respect is_pointer in serialize_type()
556 Add a '*' to the serialization for the cases where we set is_pointer
557 in the type blob we write out depending on node->is_pointer. Don't
558 add the '*' in the cases where is_pointer is set or not set in a
561 http://bugzilla.gnome.org/show_bug.cgi?id=561087
563 2008-11-16 Owen Taylor <otaylor@redhat.com>
565 Bug 560825 – Add size and alignment to typelib
567 Include the size and alignment of structures and unions in the typelib,
568 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
570 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
571 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
572 to StructBlob and UnionBlob.
574 * girepository/ginfo.c girepository/girepository.h:
575 Add g_[struct|union]_get[size|alignment]().
577 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
579 2008-11-16 Owen Taylor <otaylor@redhat.com>
581 Bug 552371 – implement struct field get/set
583 * girepository/gfield.c girepository/girepository.h: Add
584 convenience functions g_field_info_set_field() and
585 g_field_info_get_field() to set and get fields based on the
586 offsets in GIFieldInfo.
588 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
590 Bug 560241 - Out-arguments should not be marked as being pointers
593 * girepository/girparser.c: Improved logic for out arguments.
595 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
597 Bug 559601 - Pointers in structs/unions unduly treated as arrays
599 * giscanner/transformer.py: Differentiate type creation logic
600 between parameters and struct components.
602 2008-11-15 Colin Walters <walters@verbum.org>
604 * giscanner/dumper.py: Check return code from pkg-config
607 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
609 * tests/everything/everything.c (test_array_int_in),
610 (test_array_gtype_in):
611 * tests/everything/everything.h:
612 Rename the int/gtype array tests. Make the return value
613 useful, an aggregation of the array input values.
615 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
617 * tests/everything/Makefile.am:
618 * tests/everything/everything.c:
619 * tests/everything/everything.h:
620 * tests/everything/gitesttypes.c:
621 * tests/everything/gitesttypes.h:
622 Rename gitesttypes.[ch] to everything.[ch]
624 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
626 Bug 560708 – Don't treat arrays that have a length specified as
627 zero-terminated by default
629 * giscanner/transformer.py: Default to non zero terminated for
631 * tests/*: Update, add test for zero vs not.
633 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
635 Bug 557788 - Return types for constructors in generated typelib bogus
637 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
638 obviously broken in the face of duplicate names in different
640 * tests/scanner/*expected.gir: Fix up.
642 2008-11-13 Owen Taylor <otaylor@redhat.com>
644 * girepository/girffi.c: Fix "Unexpected time for time_t"
647 2008-11-13 Colin Walters <walters@verbum.org>
649 Bug 558436 - avoid having scanner load app code
651 * giscanner/cgobject.py: Delete; we no longer load shared
653 * giscanner/dumper.py: Support for linking a library to
654 a stub binary for introspection.
655 * giscanner/glibtransformer.py: Rewrite to use gdump XML
656 from invocation of child binary.
657 * giscanner/transformer.py: Fix up to use fully qualified
658 name in parse tree. Make parse_ctype public so we can use
659 it inside glibtransformer.
660 * tests/scanner/barapp.c: New test, using --program arg
662 * tests/*: Update to use common.mk for invoking scanner.
663 * tools/g-ir-scanner: Add options --program, --program-arg,
665 * docs/g-ir-scanner.1: Update.
667 2008-11-13 Colin Walters <walters@verbum.org>
669 * configure.ac: Depend on Gio, we use it in gdump.c.
670 * girepository/gdump.c: Code to dump GType data to XML.
671 * girepository/girepository.c: Add option group for dumping.
672 * girepository/girepository.h: Define API for the above.
674 2008-11-13 Colin Walters <walters@verbum.org>
676 * common.mk: Add a file to include with Makefile fragments
677 useful for scanner invocation.
679 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
681 * tests/everything/gitesttypes.c (test_filename_return): Return
682 strings in filename encoding.
684 2008-11-13 Owen Taylor <otaylor@redhat.com>
686 Bug 560253 – Add structure and boxed types to Everything test module
688 * tests/everything/gitesttypes.[ch]: Add examples of:
690 Plain old data structs
691 Plain old data structs with nested fields
693 Plain old data boxed with nested fields
694 More complicated boxed types with internal state
696 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
698 * tests/everything/gitesttypes.c (test_gtype_in):
699 * tests/everything/gitesttypes.h:
700 Add a test of GType arrays, a la gtk_list_store_set_columns.
702 2008-11-12 Owen Taylor <otaylor@redhat.com>
704 Bug 560419 – Cache includes when parsing
706 Keep track of all modules parsed within a GIrParser, and when a
707 module is referenced a second time, use the existing parsed copy
708 instead of reparsing.
710 2008-11-12 Owen Taylor <otaylor@redhat.com>
712 Fix management of ParseContext.includes_modules (#560419)
714 * girepository/girparser.c: Fix some trivial bugs in managing the
715 list of include modules. (Add to module's list twice, not
716 initialized to NULL, not freed.)
718 2008-11-12 Owen Taylor <otaylor@redhat.com>
720 Keep aliases and disguised_structures local to each module (#560419)
722 * girepository/girmodule.[ch]: When parsing, keep keep a separate
723 hash tables of aliases and 'disguised' flags for each module, and
724 store that on the module.
726 After parsing an include merge the aliases/disguised flags to the
729 * girepository/girparser.c: Remove 'prefix_aliases' flag and
730 always prefix aliases/disguised structure types when parsing; this
731 simplifies the code considerably.
733 2008-11-12 Owen Taylor <otaylor@redhat.com>
735 Fix mismatches between .gir name and 'name' attribute (#560419)
737 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
738 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
739 where the 'name' element of <namespace/> didn't match the filename of the
740 gir, an assumption that the compiler has always expected and now enforces.
742 2008-11-12 Owen Taylor <otaylor@redhat.com>
744 Only allow one <namespace/> element per <repository/> (#560419)
746 * girepository/girparser.c: The logic in girparser.c didn't work
747 very well if there were multiple <namespace/> nodes within a
748 single <repository/> (context->namespace was always the overall
749 filename and not the the name specified in the <namespace/>
750 element for one thing; this would cause aliases to be mis-prefixed
751 in include modules.) Also check that the "name" in the
752 <namespace/> node matches the filename.
754 2008-11-12 Owen Taylor <otaylor@redhat.com>
756 Add a GirParser object to hold the state of a compilation
758 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
759 GirParser object to hold state that is global across a
760 compilation. Currently just holds the include path, but will
761 eventually also keep a cached list of parsed modules.
763 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
765 * girepository/girepository.c (find_namespace_latest): Fix
768 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
770 * configure.ac: use 'introspection' component for bugs
772 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
774 * tests/everything/gitesttypes.c (test_filename_return):
775 * tests/everything/gitesttypes.h:
776 Add a filename return test.
778 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
780 * tests/offsets/Makefile.am (gitestoffsets.c): fix
781 gen-gitestoffsets invocation with builddir != srcdir
783 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
785 * girepository/girepository.c:
786 Change the element type from utf8 to filename
787 * girepository/girnode.c (g_ir_node_build_typelib):
788 Special case filename equally to utf8 here.
790 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
793 Remove unused variables, add a dependency of girepository.ch, so when
794 they change we rebuild the gir automatically.
796 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
798 * girepository/girepository.c (g_irepository_get_search_path):
799 * girepository/girepository.h:
800 Add a g_irepository_get_search_path, so we can access the search
803 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
805 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
807 * girepository/girparser.c: avoid freeing an uninitialized pointer
809 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
812 * giscanner/glibtransformer.py:
813 * tools/g-ir-scanner:
814 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
815 so we can just pass in --library=foo/bar/baz.la and the scanner
816 does the right thing.
817 Don't warn for _get_type() functions if they don't take any
820 2008-11-11 Owen Taylor <otaylor@redhat.com>
822 Bug 560404 – Prefix types when resolving aliases in included modules
824 * girepository/girparser.c: When resolving aliases in an included
825 module, prefix types before looking them up.
827 2008-11-11 Owen Taylor <otaylor@redhat.com>
829 Compute field offsets and overall size for object structures
831 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
832 field of type object in structure"
834 Do basic computation of field offsets for objects and interfaces;
835 this doesn't attempt to address all of the "mess" for virtual
836 functions described in Bug 560281.
838 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
840 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
842 Based on patch by Johan Bilien.
844 * giscanner/transformer.py (_create_member, _create_parameter):
845 Resolve types here as well.
846 (_resolve_type_name_1): Try resolving using 'ctype' first since
847 it's least ambiguous. Fixes struct member type resolution with
848 similarly named types, e.g. Gdk.PangoRendererClass and
850 * tests/scanner/foo*: Add test.
852 2008-11-11 Owen Taylor <otaylor@redhat.com>
854 * girepository/girparser.c: Search provided include dirs before
855 the default directories.
857 2008-11-11 Owen Taylor <otaylor@redhat.com>
859 * girepository/giroffsets.c: Include fully-qualified names in
862 2008-11-11 Owen Taylor <otaylor@redhat.com>
864 * girepository/giroffsets.c: Fail gracefully with an informative
865 error message when recursion is encountered when computing a
868 2008-11-11 Owen Taylor <otaylor@redhat.com>
870 * girepository/girparser.c: Remove an unused variable.
872 2008-11-10 Owen Taylor <otaylor@redhat.com>
874 Add tests for field offset computations
876 * tests/offsets/offsets.h: Header file with structure definitions to test
878 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
879 field offsets for the structures in offsets.h two ways: using
880 the information from a generated typelib, and as computed by the
883 We diff these two versions to test that everything is OK.
885 2008-11-10 Owen Taylor <otaylor@redhat.com>
887 Remove field offsets from g-ir-generate output and test inputs
889 Field offsets are a) architecture dependent so they shouldn't be part
890 of the architecture-independent gir format which is installed in
891 datadir. b) Are architecture-dependent so they shouldn't be in test
894 * girepository/girparser.c: Don't parse offset for fields
895 * tools/generate.c: Don't parse offset for fields
896 * tests/*.gir test/scanner/*.tgir: Remove offsets
898 (Virtual function and discriminator offsets are not removed, as they
899 aren't fully hooked up to the field-offset computation machinery yet.)
901 2008-11-10 Owen Taylor <otaylor@redhat.com>
903 Bug 560252 - Compute field offsets before writing typelib
905 * girepository/girnode.h: Store the total size and alignment for
906 GIrNodeStruct/Boxed/Union.
908 * girepository/giroffset.c: New file implementing computation of
909 structure field offsets.
911 * girepository/girnode.c: Compute structure field offsets before
912 writing types into the typelib.
914 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
915 means "unknown". Also fix description of the discriminator_offset
918 2008-11-10 Owen Taylor <otaylor@redhat.com>
920 Bug 560250 - Fully parse included modules
922 For some things, like computing structure offsets to put into the typelib
923 we need more than just the aliases from included modules. Do a completel
924 parse of included modules and store in module->included_modules.
926 Also add g_ir_find_node() to find node information from within the
927 active set of modules and their includes.
929 2008-11-10 Owen Taylor <otaylor@redhat.com>
931 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
933 Extract a function to convert GITypeTag to ffi_type from the internals
934 of ginvoke.c. This will be useful in figure out structure alignment.
936 Also fix handling of gsize and time_t to be portable. (Add a check
937 to configure.ac to figure out the width of time_t.)
939 2008-11-10 Owen Taylor <otaylor@redhat.com>
941 Bug 560248 – "disguised structures"
943 Certain types like GIConv and GdkAtom are pointers internally but don't
944 look like pointers when referenced. They have the form.
946 typedef struct _X *X;
948 Parse these as structures/records but mark them in the gir with a 'disguised'
949 attribute so that we know that they need special handling.
951 In the typelib treat them like any other structure.
953 2008-11-09 Jürg Billeter <j@bitron.ch>
956 * giscanner/girwriter.py:
958 Write throws attribute for virtual functions, fixes bug 559703
960 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
962 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
963 up some confusion about the second argument to find_module, it's
964 actually the packages __path__ attribute which we can safely ignore
966 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
968 2008-11-07 Owen Taylor <otaylor@redhat.com>
970 Bug 559737 – Deal with continuations in macros
972 * giscanner/giscannerlexer.l: Treat continuation lines the same
973 as regular newlines. This makes the scanner not complain about
974 #define foo(x) \ <stuff> inside a C file. There's no attempt
975 however to handle parsing macro definitions split across lines.
977 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
979 * giscanner/cachestore.py:
980 Handle broken cache entries, write only filesystems and
981 running out of diskspace.
983 2008-11-07 Owen Taylor <otaylor@redhat.com>
985 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
986 Set current_filename before lexing the file so error messages
987 are reported in the right file.
989 2008-11-06 Colin Walters <walters@verbum.org>
991 * tests/everything/*: Add some tests for strv.
993 2008-11-05 Colin Walters <walters@verbum.org>
995 * girepository/ginvoke.c (g_function_info_invoke): Don't use
996 nested scope local variable for error which may go away after
997 conditional is complete.
999 2008-11-05 Colin Walters <walters@verbum.org>
1001 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
1002 manipulate hackily; just use GString. This avoids an
1003 uninitialized memory read pointed out by Havoc.
1005 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
1007 * giscanner/__init__.py:
1009 * giscanner/cachestore.py:
1010 * giscanner/cgobject.py:
1011 * giscanner/girparser.py:
1012 * giscanner/girwriter.py:
1013 * giscanner/giscannermodule.c:
1014 * giscanner/glibast.py:
1015 * giscanner/glibtransformer.py:
1016 * giscanner/libtoolimporter.py:
1017 * giscanner/minixpath.py:
1018 * giscanner/odict.py:
1019 * giscanner/sourcescanner.c:
1020 * giscanner/sourcescanner.h:
1021 * giscanner/sourcescanner.py:
1022 * giscanner/transformer.py:
1023 * giscanner/utils.py:
1024 * giscanner/xmlwriter.py:
1026 Relicense the giscanner library under LGPLv2+.
1027 This has been approved by all contributors.
1029 2008-11-01 Owen Taylor <otaylor@redhat.com>
1031 Bug 558848 giparser.py: shared library should be optional
1033 When parsing a .gir, allow the shared-library attribute
1034 of <namespace/> to be missing: this corresponds to the handling
1035 in libgirepository and elsewhere.
1037 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
1039 Bug 557898 – Fails to build on OSX 10.4
1041 * configure.ac: Check for $shrext_cmds that should be implicitly
1042 available if you're using libtool >= 2.0. If undefined, call
1043 libtool --config explicitly to get its value.
1044 * girepository/gtypelib.c: Remove special case for (non-)Darwin
1045 systems as unneeded.
1047 2008-10-31 Colin Walters <walters@verbum.org>
1049 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
1051 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1053 * configure.ac: Post release version bump
1056 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1060 * docs/release-checklist.txt:
1063 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1065 * Makefile.am: add an upload-release target
1066 * docs/release-checklist.txt:
1067 Release process documentation
1069 2008-10-31 Colin Walters <walters@verbum.org>
1071 Bug 558109 – _g_typelib_init fails to find shared libraries
1073 * transformer/glibtransformer.py: Use ctypes' find_library
1074 on passed libraries and write that for the shared-library
1075 entry. We want to avoid depending on -devel packages.
1077 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
1079 * docs/g-ir-scanner.1:
1080 Document the renaming options.
1082 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
1084 * giscanner/Makefile.am:
1085 * tests/invoke/Makefile.am:
1086 * tests/repository/Makefile.am: List in-tree libraries first in
1087 LDADD / LIBADD. If installed library is listed first, the
1088 resulting binary will prefer installed version to one in .libs,
1089 possibly making 'make check' behave strangely.
1091 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
1093 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
1094 gir-repository from choking with gdk/quartz
1096 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1098 * giscanner/giscannermodule.c (calc_attrs_length),
1099 (pygi_collect_attributes):
1100 * giscanner/xmlwriter.py:
1101 Write a C version of the xml namespace formatter.
1102 Saves 15% of the time it takes to create a gtk gir.
1104 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1106 * giscanner/xmlwriter.py: Abstract attribute formatting
1107 to a function external to the XMLWriter class.
1109 * giscanner/scannerlexer.l:
1110 Parse and discard __typeof and __attribute.
1112 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1114 * giscanner/girparser.py:
1115 Remove arguments from the constructor, move them to
1116 separate accessors. Add a new parse_tree method
1117 which takes an element tree instance.
1118 * tools/g-ir-scanner:
1119 Update callsite for this
1121 * giscanner/Makefile.am:
1122 * giscanner/cachestore.py:
1123 * giscanner/transformer.py:
1124 Cache the include parsing. Saves ~25% time when
1125 creating vte (which includes everything up to gtk+).
1127 2008-10-30 Colin Walters <walters@verbum.org>
1129 * giscanner/transformer.py: Don't reparse includes
1130 we've already processed.
1132 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1134 * giscanner/girparser.py:
1135 * giscanner/transformer.py:
1136 Avoid parsing parameters, types etc when parsing
1137 includes. Should speed up include parsing a bit.
1139 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1141 * giscanner/girparser.py:
1142 Avoid big if/else and use a dispatch table like
1145 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1147 * giscanner/transformer.py:
1148 Clean up include parsing and registration.
1150 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1152 * giscanner/transformer.py:
1155 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1157 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
1160 construct PYTHONPATH just once
1162 * tests/everything/Makefile.am:
1163 * tests/scanner/Makefile.am:
1164 add $(top_srcdir) to PYTHONPATH to
1165 handle builddir != srcdir
1167 * giscanner/libtoolimporter.py:
1168 * giscanner/sourcescanner.py:
1169 Make the libtoolimporter work when distchecking too.
1171 Mostly based on patch by Tommi Komulainen
1173 2008-10-29 Owen Taylor <otaylor@redhat.com>
1175 * giscanner/glibtransformer.py: If a filename of an existing
1176 file is passed to --library, hunt for it directly, rather than
1177 searching for a corresponding library.
1179 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
1181 * giscanner/libtoolimporter.py:
1182 * giscanner/sourcescanner.py:
1183 Clean up the libtool importer a bit. Add a context so we
1184 can use it through a with statement.
1185 Don't just look in the current directory, look in the whole
1188 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
1190 Bug 558065 – gitesttypes should be installed
1193 * tests/Makefile.am:
1194 * tests/types/Makefile.am -> tests/everything/Makefile.am
1195 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
1196 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
1197 move tests/types to tests/everything
1199 * tests/everything/Makefile.am: build normal shared library
1200 libgirepository-everything.so.1.0.0 and corresponding typelib
1201 Everything-1.0.typelib
1203 * tests/everything/Makefile.am: explicitly link libtool
1204 versioning with typelib versioning with variables
1206 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
1208 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
1210 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1212 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
1215 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1217 Bug 558068 – when invoking a method, offset the in arguments by one,
1220 * tests/invoke/invoke.c, tests/invoke/testfns.c,
1221 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
1222 * girepository/ginvoke.c: do not offset the index of given out
1223 arguments by one for methods, "this" is provided as in argument only.
1225 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1227 * gir/gio-2.0.c: add annotation for g_file_delete
1229 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
1231 Bug 558062 – provide and use paths in the .pc file
1233 * gobject-introspection-1.0.pc.in: provide typelibdir variable
1234 for where .typelibs should be installed (callers shouldn't need
1235 to construct paths from bits and pieces)
1237 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1239 Bug 557791 – g_irepository_require() could return a GTypelib *
1241 * girepository/girepository.c: Return GTypelib; this is useful
1242 for low level manipulation.
1244 2008-10-25 Colin Walters <walters@verbum.org>
1246 Bug 557788 – Return types for constructors in generated typelib bogus
1248 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
1249 rely on end pass resolution.
1251 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1253 Bug 557786 - support fixed size arrays
1255 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
1256 * giscanner/scannerparser.y: Retain fixed array size.
1257 * giscanner/ast.py: Add to note.
1258 * giscanner/girwriter.py: Write to gir.
1259 * girepository/girnode.c: Write it to typelib.
1260 * tools/generate.c: Generate.
1261 * tests/*: Add tests.
1263 2008-10-25 Colin Walters <walters@verbum.org>
1265 Bug 557076 - move typelibs to $libdir
1267 * configure.ac: Steal some configury bits from dbus to expand
1269 * gir/Makefile.am: Move to libdir.
1270 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
1271 instead just look at one hardcoded path in libdir.
1272 * acinclude.m4: Bits from dbus.
1274 2008-10-24 Johan Dahlin <johan@gnome.org>
1276 * girepository/girnode.c (g_ir_node_check_unhandled_members):
1277 Be quiet, do not warn about unhandled members.
1279 2008-10-24 Johan Dahlin <johan@gnome.org>
1281 * girepository/gtypelib.c:
1282 Only use SHLIB_SUFFIX on darwin, otherwise use
1283 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1285 2008-10-24 Lucas Rocha <lucasr@gnome.org>
1287 Bug 557623 - Constructors shouldn't be flagged as methods.
1289 * girepository/ginfo.c (g_function_info_get_flags): ditto.
1291 2008-10-24 Johan Dahlin <johan@gnome.org>
1293 * giscanner/scannerparser.y:
1294 Check against division by zero for the modula operator.
1295 This fixes header parsing of OSX system headers included
1298 2008-10-24 Johan Dahlin <johan@gnome.org>
1302 Add a CONTRIBUTORS file and dist it.
1304 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1306 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1308 * girepository/girparser.c (parse_param_transfer):
1309 * giscanner/transformer.py (_create_parameter, _create_return):
1310 * giscanner/girwriter.py (_write_return, _write_parameter):
1311 * tools/generate.c (write_callable_info): always write and
1312 require "transfer-ownership" for return-values and parameters
1315 * tests/invoke/testfns-1.0.gir:
1317 * tests/scanner/DrawableAdditions.xml:
1318 * tests/scanner/GtkFrob-1.0-expected.tgir:
1319 * tests/scanner/annotation-1.0-expected.tgir:
1320 * tests/scanner/drawable-1.0-expected.tgir:
1321 * tests/scanner/drawable-injected-1.0-expected.gir:
1322 * tests/scanner/drawable-injected-1.0-expected.tgir:
1323 * tests/scanner/foo-1.0-expected.tgir: Updated
1325 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1327 * giscanner/cgobject.py: build fundamental types same way as glib
1329 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1330 when constructing the Type from it
1332 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1333 the parameter is a GObject from its GType, if available.
1335 * giscanner/glibtransformer.py (_adjust_transfer):
1336 * tests/scanner/foo-1.0-expected.gir:
1337 * tests/scanner/foo-1.0-expected.tgir: deduce
1338 transfer-ownership from GTypes
1340 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1342 * giscanner/transformer.py (_create_parameter):
1343 * tests/scanner/foo-1.0-expected.gir: make varargs
1344 transfer-ownership="none"
1346 2008-10-23 Colin Walters <walters@verbum.org>
1348 Bug 556739 - transfer ownership
1350 * giscanner/ast.py: Refactor Parameter/Return to share
1351 common attributes. Add transfer_inferred attribute
1352 which says whether or not we made a guess.
1353 * giscanner/transformer.py: Add much more extensive
1354 heuristics around parameter and return transfer.
1355 * giscanner/glibtransformer.py: Adjust to inspect
1359 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1361 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1363 * tests/scanner/Makefile.am:
1364 * tests/scanner/annotation-1.0-expected.tgir:
1365 * tests/scanner/drawable-1.0-expected.tgir:
1366 * tests/scanner/drawable-injected-1.0-expected.tgir:
1367 * tests/scanner/foo-1.0-expected.tgir:
1368 * tests/scanner/GtkFrob-1.0-expected.tgir:
1369 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1370 annotations survive the roundtrip via typelib
1372 The expectations are as currently produced by g-ir-generate,
1373 comparison with the .gir files shows there are differences.
1375 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1377 Bug 557468 – Support for GI_TYPELIB_PATH
1379 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1380 provided paths to the global search path.
1382 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1384 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1386 * tests/scanner/drawable-1.0-expected.tgir:
1387 * tests/scanner/drawable-injected-1.0-expected.tgir:
1388 * tests/scanner/foo-1.0-expected.tgir:
1389 * tools/generate.c (write_object_info): write 'abstract'
1390 attribute for classes
1392 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1394 * girepository/girmodule.c, girepository/gtypelib.c,
1395 girepository/girparser.[ch]: fix some build warnings.
1397 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1399 Bug 557405 – Use 'allow-none' consistently
1401 * docs/typelib-format.txt:
1402 * girepository/ginfo.c (g_arg_info_may_be_null):
1403 * girepository/girnode.c (g_ir_node_build_typelib):
1404 * girepository/girnode.h (struct _GIrNodeParam):
1405 * girepository/girparser.c (start_parameter):
1406 * girepository/girwriter.c (function_generate):
1407 * girepository/gtypelib.h (ArgBlob):
1409 * tests/function.gir:
1410 * tools/generate.c (write_callable_info): Use 'allow-none'
1411 consistently throughout
1413 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1415 Bug 557092 – Callback annotations not used
1417 * giscanner/transformer.py (_create_callback): use annotations
1419 * tests/scanner/annotation.h
1420 * tests/scanner/annotation-1.0-expected.gir: add tests
1422 2008-10-21 Colin Walters <walters@verbum.org>
1424 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1425 uncommented parameters.
1428 2008-10-21 Colin Walters <walters@verbum.org>
1430 * girepository/girepository.c: Ensure that when doing an unversioned
1431 require, we prefer items earlier in the search path to later ones.
1433 2008-10-21 Owen Taylor <otaylor@redhat.com>
1435 * giscanner/transformer.py: For string parameters allow transfer annotation
1436 to override the standard automatic guessing based on 'const'.
1438 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1440 Bug 557241 – "throws" flag for functions
1442 * tests/scanner/drawable-1.0-expected.gir,
1443 tests/scanner/drawable-injected-1.0-expected.gir,
1444 tests/scanner/drawable.[ch]: add simple test for throwing
1445 function (has GError ** as last argument)
1447 * giscanner/ast.py: add a 'throws' flag to Function
1448 * giscanner/glibtransformer.py: if a function's last paramerter is
1449 a GError, set the 'throws' flag and remove that parameter
1450 * giscanner/girwriter.py: write out the 'throws' attribute
1451 * giscanner/girparser.py: support parsing the 'throws' attribute
1453 * tests/repository/gitestthrows.c: add a simple test to check the
1454 throws flag in a typelib and invoke the function
1456 * girepository/ginfo.c, girepository/girnode.[ch],
1457 girepository/girnode.h, girepository/girparser.c,
1458 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1460 * girepository/ginvoke.c: if a function throws, add a GError as last
1461 arguments, and propagate the error to the invoker.
1463 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1465 * giscanner/transformer.py (_create_parameters): Warn if we see
1466 annotations for unknown parameters. If .h and .c files name
1467 parameters differently, the annotations may be lost.
1469 2008-10-21 Johan Dahlin <johan@gnome.org>
1471 Bug 556358 - don't use libtool internals
1473 * giscanner/Makefile.am:
1474 * giscanner/libtoolimporter.py:
1475 * giscanner/sourcescanner.py:
1476 * giscanner/utils.py:
1477 Add a python meta importer and remove a libtool symlink hack.
1479 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1481 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1482 and --add-include-path appropriately when invoking the scanner.
1483 * tests/types/Makefile.am (%typelib): Likewise.
1485 2008-10-20 Colin Walters <walters@verbum.org>
1487 Bug 556777 - validate properties
1489 * giscanner/transformer.py: Add option to throw on unknown types.
1490 * giscanner/glibtransformer.py: Use it on properties.
1491 * tests/*: Add a test.
1493 2008-10-20 Colin Walters <walters@verbum.org>
1495 * giscanner/glibast.py: Also register g variants of
1496 default_array_types. This is not beautiful, but
1497 good alternatives aren't easy to come by.
1498 This fixes gchar ** parsing.
1500 2008-10-20 Colin Walters <walters@verbum.org>
1502 * docs/typelib-format.txt, girepository/gtypelib.h:
1503 Take a bit from ObjectInfo to represent abstract flag.
1504 * giscanner/cgobject.py: Expose g_type_get_flags.
1505 * girepository/girepository.h: Add accessor.
1506 * girepository/ginfo.c: Implement it.
1507 * giscanner/ast.py: Add is_abstract flag to generic
1509 * giscanner/glibast.py: Use it.
1510 * giscanner/girwriter.py: Write it.
1511 * girepository/girparser.c: Parse it.
1514 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1516 * giscanner/girparser.py (_parse_function): don't lose
1517 'transfer-ownership' attributes when injecting, check for the
1520 2008-10-19 Johan Dahlin <johan@gnome.org>
1522 * giscanner/scannerlexer.l: Parse and ignore __asm.
1524 2008-10-19 Colin Walters <walters@verbum.org>
1526 * giscanner/girparser.py: Parse array length= to ensure
1527 it doesn't get lost from --inject.
1529 2008-10-17 Colin Walters <walters@verbum.org>
1531 Bug 556795 - char ** regression
1533 * giscanner/transformer.py: Fix parsing of ctypes, add some
1534 comments about what's going on.
1535 * tests/*: Add a test for char **.
1537 2008-10-17 Colin Walters <walters@verbum.org>
1539 Bug 556783 - change namespace handling to be more consistent
1541 * giscanner/transformer.py: Eliminate usage of
1542 strip_namespace_object. We now treat --namespace as the default
1543 --strip-prefix; however, if --strip-prefix is specified it
1544 overrides --namespace. This applies to everything except function
1545 names, where we do also strip the namespace.
1546 * giscanner/glibtransformer.py: Remove usage of
1547 strip_namespace_object.
1549 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1550 --namespace and --strip-prefix.
1552 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1554 Bug 556732 – generate gir files consistently
1556 * girepository/girparser.c (start_parameter):
1558 * tests/invoke/testfns-1.0.gir:
1559 * tools/generate.c (write_callable_info): write
1560 'transfer-ownership' attribute consistently with both
1561 return-value and parameter elements
1563 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1565 Bug 556732 – generate gir files consistently
1567 * tools/generate.c (write_callable_info): write 'direction'
1568 attribute only if other than 'in' to be consistent with
1571 * tests/object.gir: remove direction="in" which is the default
1573 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1575 Bug 556732 – generate gir files consistently
1577 * giscanner/ast.py (Field): add readable and writable properties
1578 * giscanner/girparser.py (_parse_field): copy 'readable' and
1579 'writable' attributes
1580 * giscanner/transformer.py (_create_member): create fields as
1582 * giscanner/glibtransformer.py (_introspect_object,
1583 _pair_class_struct): make object instance and class fields
1585 * giscanner/girwriter.py (_write_field):
1586 * tools/generate.c (write_field_info): write field 'readable'
1587 and 'writable' attributes only if non-default (read-only)
1588 * girepository/girparser.c (start_field): in the absence of
1589 attributes assume fields are read-only
1591 * tests/struct.gir: remove redundant readable="1" from fields
1592 * tests/scanner/foo-1.0-expected.gir:
1593 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1594 all record and union fields
1596 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1598 Bug 556732 – generate gir files consistently
1600 * giscanner/girwriter.py (_write_property): write properties
1601 'construct' attribute if set
1602 * tools/generate.c (write_property_info): write properties
1603 'readable' and 'writable' attributes only if non-default
1604 * tests/object.gir: add writable="0"
1605 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1607 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1609 * gir/glib-2.0.c: added annotations
1611 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1613 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1616 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1618 Bug 556610 – giscanner/girparser.py drops parameter options
1620 * tests/scanner/drawable-injected-1.0-expected.gir,
1621 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1622 * giscanner/ast.py: allow Parameter to take options in the constructor
1623 * giscanner/girparser.py: parse parameter options (transfer,
1624 direction, allow-none)
1626 2008-10-16 Colin Walters <walters@verbum.org>
1628 Bug 556185 - segfault on g_callable_info_get_return_type
1630 Initial patch from John Ehresman.
1632 * tests/repository/*: Add a test using
1633 g_callable_info_get_return_type. Instead of casting a
1634 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1635 to call g_type_info_get_interface.
1637 2008-10-16 Colin Walters <walters@verbum.org>
1639 Bug 556579 - union and struct name misresolved
1641 * giscanner/transformer.py: The calls to _resolve_type_name
1642 for struct/union names was a legacy holdover from when type
1643 resolution had multiple phases. Now it's actively harmful
1644 since we might pull in an identical name from another
1648 2008-10-16 Colin Walters <walters@verbum.org>
1650 Bug 556432 - transfer annotations and defaults
1652 * giscanner/transformer.py: Canonicalize type
1653 after removing *, not before. This ensures that
1654 guchar* is transformed to 'uint8'.
1655 Add some comments here.
1656 * giscanner/glibtransformer.py: Add _adjust_transfer
1657 phase for tweaking GObject transfers.
1660 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1662 * configure.ac: enable bunch of gcc warning CFLAGS
1664 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1666 Bug 556543 – reduce compiler warnings
1668 * girepository/ginfo.c:
1669 * girepository/girepository.c (register_internal,
1670 count_interfaces, find_interface, find_namespace_version,
1671 parse_version, g_irepository_require):
1672 * girepository/girmodule.c (g_ir_module_build_typelib):
1673 * girepository/girnode.c (init_stats, dump_stats,
1674 _g_irnode_init_stats, _g_irnode_dump_stats,
1675 g_ir_node_can_have_member):
1676 * girepository/girparser.c (firstpass_end_element_handler,
1677 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1678 start_alias, start_type, end_type_top, parse_include, cleanup,
1680 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1681 * giscanner/giscannermodule.c (directive_get_options,
1682 type_get_child_list):
1683 * giscanner/scannerlexer.l (parse_gtkdoc):
1684 * giscanner/scannerparser.y (ctype_free):
1685 * giscanner/sourcescanner.c:
1686 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1687 * tests/types/gitesttypes.c:
1688 * tools/compiler.c (main):
1689 * tools/generate.c (write_repository): Remove unused variables
1690 and code, add missing includes, declarations and case
1693 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1695 Bug 556541 – access union members through UnionBlob rather than
1698 * girepository/ginfo.c (g_union_info_find_method): access union
1699 members through UnionBlob rather than StructBlob
1701 2008-10-15 Colin Walters <walters@verbum.org>
1703 Bug 556331 - clean up includes handling
1705 * tools/g-ir-scanner: Rework command line arguments; now we take
1706 --add-include-path and --include separately.
1707 * giscanner/girwriter.py: Separate name= and version= in include
1709 * giscanner/ast.py: Add Include type.
1710 * giscanner/transformer.py: Cleanups to register_include now that
1711 we don't need to handle mixed filenames and relative arguments.
1712 * girepository/girparser.c: Parse name and version separately;
1713 this fixes a bug as a side effect where we weren't resolving
1714 through aliases for basic types.
1715 * girepository/girepository.c: Fix format string args.
1716 * gir/Makefile.am: Update.
1719 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1721 Bug 556434 – unhandled interface/object/... member types
1723 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1724 g_ir_node_build_typelib): Check all
1725 interface/object/boxed/struct/union members are processed and
1726 abort if they are not. (Mostly callbacks in structs, but also
1727 fields in interfaces.)
1729 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1731 * a/girepository/girnode.c (g_ir_node_build_members,
1732 g_ir_node_build_typelib): refactor common code for processing
1733 members to a function
1735 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1737 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1738 transformation is lossless (it's not)
1740 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1742 * tests/Makefile.am: fix tests to compare xml to xml instead of
1743 typelib to xml, and stop on error
1745 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1747 * tools/generate.c (write_type_name, write_type_info,
1748 write_type_info, write_object_info, write_object_info,
1749 write_interface_info, write_error_domain_info): reduce code
1752 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1754 Bug 556174 – parse types for lists etc.
1756 * girepository/girparser.c (end_type_recurse):
1758 * tools/generate.c (write_type_info, write_field_info,
1759 write_callable_info, write_callable_info, write_constant_info,
1760 write_property_info): use nested <type>s for lists and hashes
1762 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1765 * tests/object.gir: remove trailing whitespace from inside
1766 elements to match g-ir-generate output
1768 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1770 * tools/generate.c (xml_printf): quote printf arguments so that
1771 we don't generate invalid XML by writing unescaped double quotes
1772 and such in attributes
1774 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1776 * tools/generate.c (write_field_info, write_callable_info,
1777 write_function_info, write_callback_info, write_struct_info,
1778 write_constant_value, write_signal_info, write_vfunc_info,
1779 write_object_info, write_interface_info, write_union_info,
1780 write_repository): remove unused indent parameters, xmlwriter
1781 keeps track of necessary indentation
1783 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1785 * tools/generate.c (xml_element_new, xml_element_free,
1786 xml_start_element, xml_end_element, xml_end_element_unchecked,
1787 xml_open, xml_close): Keep track of generated XML tree and
1788 handle indentation and closing tags properly.
1789 (write_field_info, write_callable_info, write_function_info,
1790 write_callback_info, write_struct_info, write_value_info,
1791 write_constant_info, write_enum_info, write_signal_info,
1792 write_vfunc_info, write_property_info, write_object_info,
1793 write_interface_info, write_error_domain_info, write_union_info,
1794 write_repository): Use xml_start_element and xml_end_element to
1797 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1799 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1800 (write_type_name, write_type_info, write_field_info,
1801 write_callable_info, write_function_info, write_callback_info,
1802 write_struct_info, write_value_info, write_constant_value,
1803 write_constant_info, write_enum_info, write_signal_info,
1804 write_vfunc_info, write_property_info, write_object_info,
1805 write_interface_info, write_error_domain_info, write_union_info,
1806 write_repository): wrap all FILE access to go through simple xmlwriter
1808 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1810 Bug 556400 – Fails to build on OS X 10.4
1812 * configure.ac: check for functions backtrace and backtrace_symbols
1813 * girepository/girparser.c (backtrace_stderr): Comment out
1814 implementation if the functions are not available.
1815 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1816 directory for better portability
1818 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1820 Bug 556433 – assume direction = out for int * parameters
1822 * giscanner/ast.py: define a list of types for which, if passed as
1823 reference, we assume a default direction of 'out'
1824 * giscanner/transformer.py: if a type has type pointer to one of the
1825 previously defined types, and no direction is set, assume out.
1826 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1828 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1830 * tests/scanner/annotation.c: fixed a few copy-paste errors
1832 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1834 Bug 556323 – transfer-ownership is wrong for functions returning const
1837 * giscanner/transformer.py: check for a const string as return value,
1838 not just const char*. Suggested by Colin Walters
1839 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1841 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1843 * girepository/ginfo.c, girepository/girepository.h: add
1844 g_union_info_find_method
1846 2008-10-14 Colin Walters <walters@verbum.org>
1848 * tests/repository/Makefile.am: Reenable repo test.
1849 * tests/repository/gitestrepo.c: Prepend search
1850 path for $(top_builddir)/gir dir so that we don't
1851 require installation for "make check" to pass.
1853 2008-10-13 Jürg Billeter <j@bitron.ch>
1855 * giscanner/glibtransformer.py:
1856 * tests/scanner/annotation-1.0-expected.gir:
1857 * tests/scanner/drawable-1.0-expected.gir:
1858 * tests/scanner/foo-1.0-expected.gir:
1859 * tests/scanner/utility-1.0-expected.gir:
1861 Support fields in GObject structs
1863 2008-10-13 Jürg Billeter <j@bitron.ch>
1865 * giscanner/ast.py: add signed integer and off_t to type_names
1867 2008-10-12 Jürg Billeter <j@bitron.ch>
1869 * giscanner/girparser.py: Parse bits attribute of fields
1871 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1873 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1874 * tests/repository/gitestrepo.c (main): instantiate
1875 'GCancellable' to ensure the GType is registered before using
1878 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1880 * giscanner/girparser.py: actually add the parsed constant nodes
1882 2008-10-12 Colin Walters <walters@verbum.org>
1884 * girepository/girepository.c: Don't cast DirEntry to Blob,
1885 actually look it up by offset.
1887 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1889 * giscanner/girparser.py: parse constant nodes in gir files
1891 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1893 * giscanner/transformer.py: prefix for constants have an underscore,
1894 so remove them as if they were functions, not objects.
1896 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1898 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1901 2008-10-12 Colin Walters <walters@verbum.org>
1903 Initial patch from Jani Monoses.
1905 * girepository/gtypelib.c: Fix inverted test for success
1908 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1910 * tools/generate.c (write_callable_info): use "transfer-ownership"
1911 attribute for return values
1913 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1915 * tools/generate.c (write_callable_info): move "transfer" and
1916 "null-ok" attributes from <function> to <return-value> element
1918 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1920 * girepository/girparser.c (start_return_value): handle
1921 "transfer-ownership" attribute
1923 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1925 * girepository/girparser.c (parse_param_transfer):
1926 * tools/generate.c (write_callable_info): use "container" for
1927 container/shallow ownership transfer (not "shallow")
1929 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1931 * girepository/girparser.c (parse_param_transfer,
1932 start_parameter): Refactor handling of transfer=none/shallow/full
1933 to separate function
1935 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1937 Bug 556048 – Crash in g_irepository_find_by_gtype
1939 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1940 * girepository/girepository.c (find_interface): Fix
1941 find_by_gtype case to get the type name from right offset
1943 2008-10-12 Jürg Billeter <j@bitron.ch>
1945 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1948 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1950 * girepository/gtypelib.h (RegisteredTypeBlob): make
1951 'unregistered' one bit wide as everywhere else
1953 2008-10-12 Jürg Billeter <j@bitron.ch>
1955 * giscanner/glibtransformer.py:
1956 * tests/scanner/annotation-1.0-expected.gir:
1957 * tests/scanner/drawable-1.0-expected.gir:
1958 * tests/scanner/drawable.h:
1959 * tests/scanner/foo-1.0-expected.gir:
1960 * tests/scanner/utility-1.0-expected.gir:
1962 Readd class records as workaround to not break Gtk typelib
1964 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1966 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1968 2008-10-12 Jürg Billeter <j@bitron.ch>
1970 * giscanner/glibtransformer.py: Don't generate <record> elements
1972 * tests/scanner/*: Update test cases
1974 2008-10-11 Colin Walters <walters@verbum.org>
1976 Bug 552858: versioning
1978 This is a big patch. You should probably remove your installation
1981 * docs/typelib-format.txt: Add nsversion entry which holds
1982 version of namespace.
1983 * girepository/girepository.h: Add 'version' parameter to
1984 g_irepository_require. This may be NULL. Normally
1985 bindings should pass an explicit version though.
1986 * girepository/girepository.c: Lots of infrastructure to
1987 support versioning. Add some more documentation. Disallow
1988 some usage of NULL namespaces.
1989 * girepository/girmodule.c: Add version parameter.
1990 * girepository/gtypelib.c: Update header size.
1991 * giscanner/ast.py: Add version to Namespace.
1992 * giscanner/girparser.py: Parse version attribute from
1993 XML, pass to Namespace.
1994 * giscanner/girwriter.py: Write out version parameter.
1995 * giscanner/transformer.py: Clean up include registration.
1996 * tests/*: Add version attribute.
1997 * tests/invoke/invoke.c: Don't try looking up test before
1998 it's loaded in repository.
1999 * tools/generate.c: Output version parameter.
2000 * gir/Makefile.am: Add 2.0 version to .gir files.
2002 2008-10-11 Colin Walters <walters@verbum.org>
2004 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
2005 if we have mismatched parens.
2007 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2009 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
2010 on 'members' variable.
2012 2008-10-11 Colin Walters <walters@verbum.org>
2014 Bug 555947 - update annotations syntax
2016 * giscanner/ast.py: Default to None for transfer. Remove
2017 default transfers for container types; we require this to
2019 * giscanner/girwriter.py: Transfer is now 'none', 'container',
2020 'full' to match repository.
2021 * giscanner/scannerlexer.l: Annotations now are parenthesized.
2022 * giscanner/transformer.py: Update for new annotations syntax.
2025 2008-10-11 Johan Bilien <jobi@litl.com>
2027 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
2029 2008-10-11 Johan Bilien <jobi@litl.com>
2031 Bug 552347: Parse #defines constants
2033 * girepository/gtypelib.c: update the list of value_size
2034 with recently defined type tags
2035 * giscanner/scannerparser.y: brought back parsing of #defined, as
2036 present in older version
2037 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
2038 * giscanner/girwriter.py: write out constant tags in the gir
2039 * giscanner/sourcescanner.py: add accessor for const_string
2040 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
2043 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
2045 Bug 555946: Install a test module exercising all types, transfer
2050 * tests/types/*: Add and install a test module that has functions
2051 accepting and returning most of the basic types to enable bindings
2052 implementors to more easily test their type conversion routines.
2054 2008-10-11 Jürg Billeter <j@bitron.ch>
2056 Bug 552374: Const strings should be identified in the gir.
2058 * giscanner/transformer.py: support string memory management
2059 * tests/scanner/foo.h: use char * and const char *
2060 * tests/scanner/foo-expected.gir: test that
2062 2008-10-11 Johan Dahlin <johan@gnome.org>
2064 * giscanner/girparser.py:
2065 Also parse enums which are not glib types.
2067 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2069 Bug 552370: add one more test for unsigned as a type, not as
2072 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
2073 * test/scanner/foo.h: add function which uses unsigned as a type.
2074 * test/scanner/foo-expected.gir: test that.
2076 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
2078 Bug 555712: Struct and union issues
2080 * giscanner/scannerparser.y (struct_declarator): Use information
2081 provided about the bit width of a field.
2082 * giscanner/transformer.py (Transformer._create_member): Pass the
2083 symbol's const_int member to the created field (it represents the
2085 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
2086 field attribute, if present.
2087 * giscanner/ast.py (Field): Add 'bits' member, specifying the
2088 width in bits of the field (only relevant for bitfields).
2091 * giscanner/transformer.py (Transformer._create_typedef_struct)
2092 (Transformer._create_typedef_union): Add calls to _create_struct()
2093 and _create_union(), respectively. This causes the scanner to
2094 generate output for fields of struct and union typedefs.
2097 2008-10-11 Jürg Billeter <j@bitron.ch>
2099 Bug 552370: unsigned not scanned properly
2101 * giscanner/scannerparser.y: combine basic types such as unsigned
2102 int and long long when scanning
2103 * tests/scanner/foo-expected.gir:
2104 * tests/scanner/foo.c: (foo_test_unsigned):
2105 * tests/scanner/foo.h: test that
2107 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2109 Bug 554854: The --typelib-xml and --inject options should reuse
2110 giscanner parser/writer.
2112 * giscanner/ast.py: add constructor list to Struct and Union.
2113 Add new param in Return's contructor to define transfer.
2114 * giscanner/girparser.py: several additions to the parser in order
2115 to have parsing all nodes of the gir xml files.
2116 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
2117 and writer in --inject and --typelib-xml options.
2118 * giscanner/xmlwriter.py: ignore empty attributes instead of
2119 raising an error as this basically exposes a bug in GIRParser.
2120 This should be reverted as soon as the parser is fixed.
2122 2008-10-11 Lucas Rocha <lucasr@gnome.org>
2124 Bug 552376: scanner generates wrong names for enum members when
2125 there's no defined gtype.
2127 * giscanner/utils.py (strip_common_prefix): Always strip common
2128 prefix exactly up to the last "_", and not beyond.
2129 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
2130 here is that the first character after the last '_' should should be
2131 the same as the character in the same position on the type name.
2132 * tests/scanner/foo-expected.gir: test that
2134 2008-10-10 Lucas Rocha <lucasr@gnome.org>
2136 Bug 555293: append library_paths to LPATH env variable to work
2137 around a bug in find_library when using ldconfig.
2139 * tools/g-ir-scanner (main): ditto.
2141 2008-10-09 Lucas Rocha <lucasr@gnome.org>
2143 * girepository/girepository.c (register_internal): fix regression on
2144 invoke test case by making sure we load the global module in the
2145 typelib when dealing with inline typelibs.
2146 * girepository/gtypelib.c: a couple of coding style fixes.
2148 2008-10-06 Lucas Rocha <lucasr@gnome.org>
2150 Bug 555294: Add support for multiple shared libraries per typelib.
2152 * girepository/ginvoke.c (g_function_info_invoke),
2153 girepository/ginfo.c(g_registered_type_info_get_g_type): use
2154 g_typelib_symbol instead of g_module_symbol.
2155 * girepository/girepository.h: remove g_typelib_set_module and add
2157 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
2158 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
2159 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
2160 modules instead of just one. The symbol lookup is now abstracted
2161 behind g_typelib_symbol which tries to find the passed symbol name in
2163 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
2164 and write shared_library attribute as a comma-separated list of libs.
2166 2008-10-06 Colin Walters <walters@verbum.org>
2168 * giscanner/transformer.py: Parse length= annotation as
2169 a parameter name, not a raw int.
2172 2008-10-03 Colin Walters <walters@verbum.org>
2174 Bug 551744: Non-GObject types aren't aggregating ctors and methods
2176 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
2178 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
2182 2008-10-03 Colin Walters <walters@verbum.org>
2184 Bug 554576: scan problem with ev_selection_render_selection()
2186 * giscanner/transformer.py: Only do type resolution once we've
2187 scanned all types. What could happen before is that we'd strip
2188 the namespace from local type "EvSelection" => Selection, and
2189 then later pull a "Selection" from some other namespace because
2190 we hadn't yet seen the local EvSelection. This could come
2191 down to hash table ordering and other things so not easy
2192 to write a test for.
2194 2008-10-03 Lucas Rocha <lucasr@gnome.org>
2196 * giscanner/girwriter.py (_parser_member): fix the last parameter of
2197 GLibEnumMember constructor as it should be the enum member nick.
2199 2008-10-02 Colin Walters <walters@verbum.org>
2201 Bug 552961: remove this parameter for methods
2203 * giscanner/glibtransformer.py: Delete this parameter; it is
2205 * girepository/ginvoke.c: Insert this parameter for methods.
2206 * girepository/gtypelib.c: Remove no longer needed verification of
2207 method this parameter.
2210 2008-09-30 Dan Winship <danw@gnome.org>
2212 Bug 554490: g-ir-scanner gets confused by '\\'
2214 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
2215 backslashes so it will correctly parse '\\' and "\\"
2217 * tests/scanner/annotation.c: add a use of '\\' to make sure that
2220 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
2222 2008-10-02 Colin Walters <walters@verbum.org>
2224 bug 552393: Note variadic functions
2226 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
2227 to use parameter_list directly.
2228 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
2229 * giscanner/ast.py: Add Varargs type.
2230 * giscanner/transformer.py: Check for ellipsis symbol, transform
2232 * girepository/girnode.h: Add varargs flag to in-memory nodes.
2233 Parse varargs functions, but filter them out before we start
2234 compiling the typelib.
2236 2008-10-02 Colin Walters <walters@verbum.org>
2238 Bug 554632: type tag for GType
2240 * girepository/girepository.h, girepository/girepository.c:
2241 Add type tag for GType - it's a special type we don't want
2242 to resolve to just "long".
2243 * docs/typelib-format.txt: Update.
2244 * girepository/girparser.c: Parse it.
2245 * giscanner/glibtransformer.py: Ensure we don't put GType in
2247 * tools/generate.c: Remove hardcoded type list.
2250 2008-09-30 Dan Winship <danw@gnome.org>
2252 Bug 554521: scanner generates wrong names for enum members with
2253 full type name prefix
2255 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
2256 right amount when the entire "first" string is a prefix of
2259 * tests/scanner/foo.h (FooEnumFullname):
2260 * tests/scanner/foo-expected.gir: test that
2262 2008-09-29 Colin Walters <walters@verbum.org>
2264 Bug 552380: Array parameters should be marked in the gir
2266 * giscanner/ast.py: Default char** to utf8[], and guchar* to
2267 uint8[]. Add Array, List, and Map subclasses of Type;
2268 these types can be generic. Return transfer defaults
2269 to true if return value is string or container type.
2270 Delete Sequence type.
2271 * giscanner/scannerlexer.l: Syntax change for annotations;
2272 use <> since it's more readable.
2273 * giscanner/girwriter.py: Write out these changes.
2274 * giscanner/girparser.py: Parse them.
2275 * giscanner/transformer.py: Have a defined set of
2276 both list and map types. When creating a type,
2277 check if the ctype we've parsed is one of them,
2278 if so create a container type subclass as appropriate.
2279 * girepository/girparser.c: Parse in generic types.
2282 2008-09-27 Colin Walters <walters@verbum.org>
2284 * tools/g-ir-scanner: Add --inject option.
2286 2008-09-25 Colin Walters <walters@verbum.org>
2288 Remove non-repository types from GIR
2290 * giscanner/ast.py: The canonical name is 'utf8', not
2292 * giscanner/glibast.py: A few more glib type mappings.
2293 * girepository/girparser.c: We only parse repository types.
2294 * tests/*.gir: Update.
2296 2008-09-23 Colin Walters <walters@verbum.org>
2298 Bug 552566: Add time_t type
2300 We need a type for time_t since it's special in C, and just
2301 mapping it to long precluded bindings from handling it
2304 2008-09-19 Colin Walters <walters@verbum.org>
2306 Bug 552390: Handle capitialization like "DBus" more robustly
2308 The to_underscores function was designed for use against prefixed
2309 names; we need a separate function which will convert names like
2310 DBusFoo into dbus_foo, not d_bus_foo.
2312 2008-09-19 Colin Walters <walters@verbum.org>
2314 Add check to make sure we're not hitting out unresolved types
2316 Validate the "this" argument for methods
2318 Remove heuristic matching of methods to classes based on prefix
2320 It was a broken hack that dated from when we handled underscoring
2321 and capitalization conventions less well.
2323 2008-09-18 Colin Walters <walters@verbum.org>
2325 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2327 On Darwin, the suffix for installed shared libraries (.dylib) is
2328 different from loadable modules (.so). We use a bit of magic shell
2329 script from Behdad Esfahbod to figure out the right suffix.
2331 2008-09-15 Johan Dahlin <johan@gnome.org>
2333 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2334 a wrapper for type_qualifier as well.
2336 2008-09-15 Colin Walters <walters@verbum.org>
2338 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2340 * giscanner/ast.py: Add deprecation attributes.
2341 * giscanner/girwriter.py: Write out deprecation data.
2342 * girepository/girparser.c: Relax parsing; deprecated
2343 attribute now includes freeform string.
2344 * giscanner/scannerlexer.l: Parse Deprecated.
2345 * giscanner/transformer.py: Look for deprecated attribute
2347 * tests/scanner/*: Add a Deprecated test.
2349 2008-09-14 Tor Lillqvist <tml@novell.com>
2351 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2353 2008-09-14 Colin Walters <walters@verbum.org>
2355 * giscanner/glibtransformer.py: Ignore functions with
2358 2008-09-12 Colin Walters <walters@verbum.org>
2360 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2362 2008-09-12 Colin Walters <walters@verbum.org>
2364 * giscanner/ast.py: Bind pid_t to INT for vte.
2366 2008-09-12 Colin Walters <walters@verbum.org>
2368 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2369 * giscanner/glibast.py: Avoid overwriting ctype.
2370 * giscsanner/transformer.py: Try resolving types using the GType names.
2372 2008-09-12 Colin Walters <walters@verbum.org>
2374 * giscanner/minixpath.py: Code to run an "XPath"
2375 assertion against an XML tree, taken from
2376 gir-repository/gir/tests.py.
2377 * giscanner/Makefile.am: Ship it.
2378 * tools/g-ir-scanner: Add --xpath-assertions option.
2379 * gir/GLib-assertions.txt: Add a few assertions.
2380 * gir/Makefile.am: Run them.
2382 2008-09-11 Colin Walters <walters@verbum.org>
2384 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2386 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2387 prefix if it ends with _. Tweak callback stripping to determine
2388 based on presence of _ whether we need to use strip_namespace_func
2389 or strip_namespace_object.
2391 2008-09-09 Owen Taylor <otaylor@redhat.com>
2393 * docs/typelib-format.txt: Wether => Whether
2395 2008-09-08 Colin Walters <walters@verbum.org>
2397 * girepository/girparser.c: Default to "readable" for properties.
2398 * giscanner/ast.py: Add readable, writable etc.
2399 * giscanner/girwriter.py: Writ them.
2400 * giscanner/glibtransformer.py: Inspect them.
2403 2008-09-07 Colin Walters <walters@verbum.org>
2405 * giscanner/cgobject.py: Add comment.
2407 2008-09-07 Colin Walters <walters@verbum.org>
2409 * giscanner/cgobject.py: Also call g_thread_init.
2411 2008-09-07 Colin Walters <walters@verbum.org>
2413 * giscanner/transformer.py: Fix regression by not
2414 stripping prefix before stripping namespace for unions
2417 2008-09-06 Colin Walters <walters@verbum.org>
2419 * giscanner/transformer.py: If a namespace contains
2420 multiple caps, try stripping both gnomekeyring_ and
2423 2008-09-07 Johan Dahlin <johan@gnome.org>
2425 Bug 551162 – giscanner does not recognize asm and __asm__
2426 * giscanner/scannerlexer.l:
2427 Patch by Jani Monoses.
2429 2008-09-06 Colin Walters <walters@verbum.org>
2431 * girepository/girnode.c: Allow gtype_name
2432 and gtype_init in struct and union.
2433 * girepository/girparser.c: Parse glib:
2434 boxed bits for both structure and union.
2435 * girepository/gtypelib.c: Don't barf
2436 if structure is boxed.
2437 * giscanner/girparser.py: Parse new XML
2439 * giscanner/girwriter.py: Write out new
2441 * giscanner/glibast.py: Define new classes
2442 which are both Boxed and Struct/Union, as
2443 well as an "Other" for everything else.
2444 * giscanner/glibtransformer.py: Handle
2445 boxed types specially; we try to merge
2446 them with a struct/union if one exists,
2447 otherwise fall back to generic boxed.
2449 * tools/generate.c: Write out new format.
2451 2008-09-06 Johan Dahlin <johan@gnome.org>
2453 * giscanner/grealpath.h: Include stdlib.h
2455 * docs/g-ir-generate.1: Remove leading %
2457 2008-09-01 Colin Walters <walters@verbum.org>
2459 * girepository/girparser.c: Look at c:type to determine
2460 whether or not an item is a pointer.
2462 2008-09-01 Johan Dahlin <johan@gnome.org>
2464 * tests/scanner/Makefile.am:
2465 Set PYTHONPATH so the scanner can run
2466 even if you didn't install anything.
2468 2008-09-01 Johan Dahlin <johan@gnome.org>
2471 Post-release version bump
2474 2008-09-01 Johan Dahlin <johan@gnome.org>
2478 2008-08-31 Colin Walters <walters@verbum.org>
2480 * giscanner/glibtransformer.py: Quiet info
2483 2008-08-31 Johan Dahlin <johan@gnome.org>
2486 Bump version to 0.5.0
2488 2008-08-31 Colin Walters <walters@verbum.org>
2490 * giscanner/glibtransformer.py: Follow aliases to ensure
2491 we don't get a constructor returning a basic type.
2492 * giscanner/transformer.py: Add function to follow aliases.
2495 2008-08-31 Johan Dahlin <johan@gnome.org>
2497 * giscanner/scannerlexer.l:
2498 * giscanner/scannerparser.y:
2499 * giscanner/sourcescanner.h:
2500 * giscanner/sourcescanner.py:
2501 Parse GCC extensions in the parser instead of just undeffing them
2502 in the pre-processor.
2504 2008-08-31 Johan Dahlin <johan@gnome.org>
2506 * giscanner/glibtransformer.py:
2507 Clean up a huge if. Do not add methods or constructors
2509 * giscanner/utils.py:
2510 second might be longer than first, check that.
2512 2008-08-31 Johan Dahlin <johan@gnome.org>
2517 2008-08-31 Colin Walters <walters@verbum.org>
2519 * girepository/girparser.c: Don't lose if we
2522 2008-08-31 Colin Walters <walters@verbum.org>
2524 * giscanner/glibtransformer.py: Look for libtool
2525 library in current directory
2526 * tests/scanner - Update.
2528 2008-08-30 Colin Walters <walters@verbum.org>
2530 * docs/typelib-format.txt: Add a guint32
2532 * gir/Makefile.am: Dep on Makefile
2533 * girepository/ginfo.c:
2534 * girepository/girepository.c: Clean up
2535 default typelib handling; remove global
2536 default_typelib variable. Ensure we handle
2537 NULL repository in more places.
2538 Support dependency resolution.
2539 Support lazy loading.
2540 * girepository/girepository.h: Remove
2541 g_irepository_unregister; we don't support
2542 unloading typelibs since really they're
2543 process-global. Update for lazy loading
2545 * girepository/girmodule.c: Use g_new0.
2546 Add dependencies to GirModule.
2547 * girepository/girparser.c: Parse dependencies.
2548 * girepository/gtypelib.c: Add 4 bytes for
2550 * tests/Makefile.am: Kill off gobject.gir,
2551 it conflicts with the real one.
2552 * tests/object.gir: Dep on GObject.
2553 * tools/generate.c: Take --includedir
2554 argument to say which directories to search
2555 for typelibs. Print out dependencies.
2557 2008-08-30 Colin Walters <walters@verbum.org>
2559 * giscanner/glibtransformer.py: Reduce warning noise.
2561 2008-08-29 Colin Walters <walters@verbum.org>
2563 * girepository/ginfo.c: Add some assertions regarding
2564 refcounts, just to be sure.
2565 * giscanner/glibtransformer.py: Blacklist a few more
2568 2008-08-29 Colin Walters <walters@verbum.org>
2570 * giscanner/glibtransformer.py: Blacklist a few
2571 functions that use GError oddly
2573 2008-08-29 Colin Walters <walters@verbum.org>
2575 * girepository/gtypelib.c: Don't crash if no
2578 2008-08-29 Colin Walters <walters@verbum.org>
2580 * girepository/girparser.c: Handle chains of aliases
2581 across modules by ensuring we fully qualify aliases
2584 2008-08-29 Colin Walters <walters@verbum.org>
2586 * girepository/girparser.c: Don't search aliases
2589 2008-08-29 Colin Walters <walters@verbum.org>
2591 * girepository/girparser.c: Rewrite type parsing
2592 to handle both GLib parsing case as well as correctly
2593 handling GLib.List and friends. Don't try to treat
2594 e.g. ListStore as a List.
2596 2008-08-29 Colin Walters <walters@verbum.org>
2598 * girepository/gtypelib.c: Add more context
2601 2008-08-29 Colin Walters <walters@verbum.org>
2603 * giscanner/glibtransformer.py: Add some informative
2604 logging messages in corner cases. Be sure we use
2605 the most recent node set instead of a cache
2606 when generating result set.
2607 * tests/: Remove duplicated bits in expected girs
2608 * girepository/girparser.c: Accept both List (for
2609 compiling GLib) and GLib.List (what the scanner
2612 * tools/generate.c: Generate canonical form.
2614 2008-08-29 Johan Dahlin <johan@gnome.org>
2616 * giscanner/config.py.in:
2617 Use datarootdir instead of datadir to avoid
2618 an autoconf warning.
2620 2008-08-29 Johan Dahlin <johan@gnome.org>
2624 * examples/gdk-pixbuf.gidl:
2626 Update and remove old cruft.
2628 2008-08-29 Johan Dahlin <johan@gnome.org>
2631 * docs/g-ir-compiler.1:
2632 * docs/g-ir-generate.1:
2633 * docs/g-ir-scanner.1:
2634 Add man pages for the generator and compiler.
2636 2008-08-29 Johan Dahlin <johan@gnome.org>
2638 * docs/g-ir-scanner.1: Document
2640 * giscanner/Makefile.am:
2641 * giscanner/gidlparser.py:
2642 * giscanner/gidlwriter.py:
2643 * tools/g-ir-scanner:
2644 Remove gidl support.
2646 2008-08-28 Colin Walters <walters@verbum.org>
2648 * tests/scanner/Makefile.am: Pass the right
2649 --includedir args. Add a Makefile dep.
2650 * tools/compiler.c: Pass includedirs down.
2651 * girepository/girparser.c: Actually put
2652 includedirs in context, pass down. Fix
2655 2008-08-28 Colin Walters <walters@verbum.org>
2657 * gir/Makefile.am: Use --includedir
2658 * girepository/girparser.c: Recursively parse
2659 includes to pull in aliases and expand them.
2660 We need this to avoid putting unknown names in
2662 * tools/compiler.c: Add --includedir option.
2663 * giscanner/ast.py: Map size/ssize to types
2666 2008-08-28 Tor Lillqvist <tml@novell.com>
2668 Make check now runs successfully on Windows.
2670 * tools/compiler.c (write_out_typelib): Use binary mode for output
2673 * girepository/girnode.c: Don't print NULL strings.
2675 * tests/invoke/Makefile.am
2676 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2677 convince libtool to build shared libraries.
2679 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2680 g_assert() instead of printing out expected errors.
2682 2008-08-28 Tor Lillqvist <tml@novell.com>
2684 * girepository/gtypelib.h: Change type of bitfield fields from
2685 guint to the most suitable smaller type. This makes the struct
2686 sizes match the ones on Linux that the sanity check expects when
2687 using gcc -mms-bitfields on Windows.
2689 2008-08-28 Johan Dahlin <johan@gnome.org>
2694 * giscanner/Makefile.am:
2695 * tests/Makefile.am:
2696 * tests/scanner/Makefile.am:
2697 Make distcheck pass.
2699 2008-08-27 Johan Dahlin <johan@gnome.org>
2701 * giscanner/Makefile.am:
2702 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2704 2008-08-27 Tor Lillqvist <tml@novell.com>
2706 Make g-ir-scanner work on Windows. Still problems with the typelib
2707 code. Changes okayed by jdahlin.
2709 * configure.ac: Check for Windows, set Automake conditional
2710 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2711 avoid shell quoting issues
2713 * girepository/Makefile.am: Use -no-undefined so that libtool
2714 agrees to build a shared library on Windows.
2716 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2717 Windows. Empty implementation on Windows so far.
2719 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2720 informative error message for the assertion failures. Tell also
2721 what the expected size of the struct is. Check all sizes first and
2722 fail afterwards if at least one size was different from expected.
2724 * tools/Makefile.am: Reorder libraries into proper logical
2727 * tools/generate.c: Don't include <dlfcn.h>, not used.
2729 * giscanner/Makefile.am: On Windows, link with the Python library,
2730 and install the module DLL as _giscanner.pyd. Remove the
2731 unnecessary import library and libtool library that libtool has
2734 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2735 and just skip it. Recognize also two "l" suffixes for long long
2736 constants. Recognize also __inline__.
2738 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2739 GetFullPathName(). As such, GetFullPathName() does more than the
2740 UNIX realpath(). It also changes relative paths into absolute
2741 paths. But for our purposes that shouldn't matter.
2743 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2744 Windows the file descriptor passed to us is from Python. Python
2745 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2746 uses msvcrt.dll. On Windows, file descriptors are specific to
2747 which C library is used. So we must find out what underlying OS
2748 handle corresponds to the file descriptor Python passes us, and
2749 then make that into a file descriptor valid for the C library this
2752 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2753 __attribute__ as the lexer now handles it. The definition as empty
2754 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2755 __attribute__. Close the temp file before unlinking it.
2757 * giscanner/cgobject.py: Use correct library name for the gobject
2760 * gir/Makefile.am: Must pass the full basename of the DLLs on
2761 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2762 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2763 reality they won't change, until there is a GLib 3, and then also
2764 the Unix code here needs changing.
2766 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2769 2008-08-26 Colin Walters <walters@verbum.org>
2771 * girepository/girepository.c: Search
2772 $DATADIR/girepository instead of
2773 $DATADIR/gitypelibs; this naming makes
2774 it clearer that e.g. jgir can install
2776 * gir/Makefile.am: Install there.
2778 2008-08-26 Colin Walters <walters@verbum.org>
2780 * girepository/gtypelib.c (_g_typelib_init): Also
2781 use G_MODULE_SUFFIX instead of hardcoding .so.
2783 2008-08-26 Colin Walters <walters@verbum.org>
2785 * girepository/gtypelib.c (_g_typelib_init): Free
2786 string in the right place.
2788 2008-08-26 Colin Walters <walters@verbum.org>
2790 * girepository/gtypelib.c (_g_typelib_init): Handle
2791 both .la and .so names; this works better in the
2792 uninstalled library case.
2794 2008-08-26 Johan Dahlin <johan@gnome.org>
2797 * giscanner/Makefile.am:
2798 * giscanner/cgobject.py:
2799 * giscanner/config.py.in:
2800 * giscanner/sourcescanner.py:
2801 Avoid undeffing __GNUC__, instead define
2802 __attribute__ & friends. Remove glibconfig.h hack.
2803 This makes gobject-introspection work better on
2804 MacOS X, Thanks to Richard Hult for kind help.
2806 2008-08-25 Colin Walters <walters@verbum.org>
2808 * giscanner/glibtransformer.py: Always print
2811 2008-08-25 Colin Walters <walters@verbum.org>
2813 * giscanner/glibtransformer.py: Skip over
2814 interfaces we don't know.
2816 2008-08-25 Colin Walters <walters@verbum.org>
2818 * girepository/girparser.c: Parse new implements
2819 syntax, drop gapi one.
2820 * tests/object.gir: Update.
2821 * tools/generate.c: Generate new syntax.
2823 2008-08-25 Colin Walters <walters@verbum.org>
2825 * giscanner/ast.py: Add interfaces property
2827 * giscanner/girwriter.py: Write out implemented
2829 * giscanner/glibtransformer.py: Introspect
2830 implemented interfaces.
2831 * tests/scanner/*: Make FooObject implement
2834 2008-08-25 Colin Walters <walters@verbum.org>
2836 * giscanner/glibtransformer.py: More correctly pair
2837 methods; if we have a symbol that starts with
2838 e.g. hippo_canvas look for a matching HippoCanvas
2839 class before accepting e.g. HippoCanvasImage.
2841 2008-08-24 Colin Walters <walters@verbum.org>
2843 * tools/g-ir-scanner: Filter out unknown options from
2846 2008-08-24 Colin Walters <walters@verbum.org>
2848 * giscanner/glibtransformer.py: Fail with better
2849 error if we can't find library.
2851 2008-08-24 Colin Walters <walters@verbum.org>
2853 * tools/g-ir-scanner: Use subprocess instead of
2854 commands, works on Windows and avoids the evil
2857 2008-08-24 Colin Walters <walters@verbum.org>
2859 * giscanner/glibtransformer.py: Skip over
2860 g_object_get_type from GLib trunk.
2862 2008-08-24 Colin Walters <walters@verbum.org>
2864 * girepository/girepository.c (g_irepository_require):
2865 Don't open shared library here; we already do it
2868 2008-08-24 Colin Walters <walters@verbum.org>
2870 * girepository/gtypelib.c: Add context stack so
2871 when we get an error we can print out nicely
2874 2008-08-24 Johan Dahlin <johan@gnome.org>
2876 * girepository/girparser.c (start_glib_boxed), (start_function),
2877 (start_field), (start_alias):
2878 Refactor a couple of parsing functions to be simpler to follow.
2881 2008-08-24 Johan Dahlin <johan@gnome.org>
2883 * girepository/girparser.c (start_function):
2884 Remove left-over code, checking type of function.
2886 2008-08-23 Colin Walters <walters@verbum.org>
2888 * giscanner/config.py: Define DATADIR.
2889 * giscanner/transformer.py: Look in DATADIR.
2891 2008-08-23 Colin Walters <walters@verbum.org>
2893 * girepository/gtypelib.c: Check constructor
2895 * girepository/girnode.c: Small tweaks.
2896 * girepository/ginfo.c: Calculate signature offsets
2898 * girepository/girparser.c: Remove duplicate
2900 * giscanner/glibtransformer.py: Avoid marking
2901 functions which return a basic type as
2904 2008-08-23 Colin Walters <walters@verbum.org>
2906 * girepository/girparser.c: Ignore <include>.
2907 * giscanner/girparser.py: Parse them.
2908 * giscanner/girwriter.py: Generate them.
2909 * giscanner/transformer.py: Process <include>
2910 recursively. Don't require full path for
2911 includes, look in {$XDG_DATA_DIRS}/gir.
2912 * tools/g-ir-scanner: Pass through includes.
2913 * Makefile.am: Remove extra --include
2915 * *-expected.gir: Add expected includes.
2917 2008-08-23 Johan Dahlin <johan@gnome.org>
2919 * tests/scanner/Makefile.am:
2920 * tests/scanner/annotation-expected.gir:
2921 * tests/scanner/drawable-expected.gir:
2922 Avoid duplication in the Makefile, regenerate with new
2923 namespaces (same as the filename)
2925 2008-08-22 Colin Walters <walters@verbum.org>
2927 * girepository/girnode.c: Don't hardcode integers,
2930 2008-08-22 Johan Dahlin <johan@gnome.org>
2932 * giscanner/sourcescanner.py:
2933 Check for ../gobject-introspection-1.0.pc.in to determine
2934 if we run installed or uninstalled.
2936 2008-08-22 Johan Dahlin <johan@gnome.org>
2939 * giscanner/sourcescanner.py:
2940 Send in undefs/defines via writing it directly to stdin
2941 of cpp instead of via arguments.
2943 2008-08-22 Colin Walters <walters@verbum.org>
2945 * tools/generate.c, tools/compiler.c: Default
2947 * all Makefile.am: Update.
2949 2008-08-22 Colin Walters <walters@verbum.org>
2951 * girepository/girparser.c: Pass through
2952 recursive types. Avoid overwriting errors.
2953 * giscanner/xmlwriter.py: Always write the
2955 * tests/*.gir: Adjust.
2956 * tests/scanner/Makefile.am: Build typelibs,
2957 and generate XML from those. Once we
2958 have a good diff mechanism...
2959 * tests/scanner/*-expected.gir: Add XML
2961 * tools/g-ir-scanner: Accept --typelib-xml
2963 * tools/generate.c: Better defaults for transfer.
2965 2008-08-22 Johan Dahlin <johan@gnome.org>
2969 * giscanner/Makefile.am:
2970 * giscanner/config.py.in:
2971 * giscanner/sourcescanner.py:
2972 Use the generated glibconfig.h for all scanner invokations.
2973 Rename it to glibconfig-scanner.h and install it.
2974 Add a config.py which so far contains the include dir.
2976 2008-08-22 Johan Dahlin <johan@gnome.org>
2979 Replace glibconfig.h with our own, do some replacement
2980 for CPP/C features we do not support
2982 2008-08-22 Colin Walters <walters@verbum.org>
2984 * tools/generate.c (write_callable_info): Fix unref
2987 2008-08-22 Colin Walters <walters@verbum.org>
2989 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2990 * tests/Makefile.am: Support $(DEBUG)
2991 * tools/generate.c: Do immediate close tags if no
2994 2008-08-21 Colin Walters <walters@verbum.org>
2996 * tests/scanner/drawable-expected.gir,
2997 * tests/scanner/drawable.c,
2998 * tests/scanner/drawable.h:
3001 2008-08-21 Colin Walters <walters@verbum.org>
3003 * giscanner/glibtransformer.py: Compute prefix
3004 by searching through the symbol for bits
3005 rather than going directly from ctype; this fixes
3008 2008-08-21 Colin Walters <walters@verbum.org>
3010 * giscanner/glibtransformer.py: Also try squashing
3011 underscores from namespace, fixes webkit_web_view_new.
3013 2008-08-21 Colin Walters <walters@verbum.org>
3015 * giscanner/glibtransformer.py: More ctor work,
3016 avoid having gtk_window_group_new end up under
3019 2008-08-21 Colin Walters <walters@verbum.org>
3021 * giscanner/glibtransformer.py: Much simpler approach
3022 of mapping uscored names to classes.
3023 * giscanner/utils.py: Remove unnecessary function.
3025 2008-08-21 Johan Dahlin <johan@gnome.org>
3027 * girepository/girepository.c (g_irepository_require):
3028 Plug memory leak and avoid using freed memory.
3029 Resolve the whole module path, here as well.
3031 2008-08-21 Colin Walters <walters@verbum.org>
3033 * giscanner/glibtransformer.py: Look up all permutations
3034 of class names when scanning methods/ctors based on
3035 the prefix instead of using the return value. This
3036 associates gtk_window_new with the right class.
3038 2008-08-21 Colin Walters <walters@verbum.org>
3040 * girepository/girmodule.c (g_ir_module_build_typelib):
3041 Revert change to increment header_size; we do that in
3044 2008-08-21 Colin Walters <walters@verbum.org>
3046 * girepository/girnode.c (write_string): Tweak to
3047 use UINT instead of INT. Not likely to matter.
3048 * girepository/girmodule.c (g_ir_module_build_typelib):
3049 Add to header_offset as well for header strings
3050 to match what write_string does.
3051 * girepository/gtypelib.c: Replace is_name with
3052 validate_name, which more strongly validates and
3053 handles errors in a better way. Update all callers.
3054 * giscanner/glibtransformer.py: Handle constructors
3057 2008-08-21 Johan Dahlin <johan@gnome.org>
3059 * gir/Makefile.am (typelibs_DATA): Build and
3060 install the Gio.typelib too
3062 * girepository/gtypelib.c (_g_typelib_init):
3063 Use g_module_build_path to resolve the shlib name
3065 2008-08-21 Colin Walters <walters@verbum.org>
3067 * gir/Makefile.am: CLEANFILES typelibs too.
3069 2008-08-21 Johan Dahlin <johan@gnome.org>
3071 * giscanner/glibtransformer.py:
3072 Do not send .la files through find_library.
3074 2008-08-21 Colin Walters <walters@verbum.org>
3076 * girepository/girparser.c (g_irepository_require):
3077 Fix one small leak in error case.
3079 2008-08-21 Johan Dahlin <johan@gnome.org>
3082 Parse glibconfig.h as well and install the compiled
3085 2008-08-21 Johan Dahlin <johan@gnome.org>
3088 * giscanner/glibtransformer.py:
3089 * tools/g-ir-scanner:
3090 Do not hard-core library names in the Makefile, reuse
3091 ctypes find_library instead.
3093 2008-08-21 Johan Dahlin <johan@gnome.org>
3095 * girepository/girparser.c (resolve_aliases):
3096 Remove compilation warnings
3098 2008-08-21 Johan Dahlin <johan@gnome.org>
3100 * girepository/girepository.c (g_irepository_require):
3101 Rewrap and fix double free bug by leaking a bit.
3103 2008-08-20 Colin Walters <walters@verbum.org>
3105 * girepository/girepository.c: Add new function
3106 g_irepository_get_typelib_path which tells
3107 us from where we loaded a namespace.
3109 2008-08-20 Colin Walters <walters@verbum.org>
3111 * tests/scanner/*-expected.gir: Adjust for
3112 added shared-library.
3113 * giscanner/giwriter.py: Make pylint happy.
3115 2008-08-20 Colin Walters <walters@verbum.org>
3117 * girepository/girmodule.c (g_ir_module_build_typelib):
3118 Calculate size correctly, avoid use-after-free.
3120 2008-08-20 Colin Walters <walters@verbum.org>
3122 * girepository/girepository.c: Remove
3123 g_irepository_register_file in favor of
3124 g_irepository_require. There are two
3125 possible deployment scenarios for typelibs:
3126 First, separate in $DATADIR/gitypelibs/. Second,
3127 they may be embedded in shlibs. However since
3128 the first is now the normal case, the API is
3129 optimized around it.
3131 Refactor internals to look up typelibs for
3132 namespaces just-in-time, but we expect
3133 consumers to call g_irepository_require.
3135 Also, add some docs. No one has died from that
3137 * gir/Makefile.am: Need --library for glib.
3138 * giscanner/girwriter.py: Write out shared-library.
3139 * tools/g-ir-writer: Take the first --library
3140 argument as the target of shared-library. In
3141 the future we should make this nicer with pkg-config
3144 2008-08-20 Colin Walters <walters@verbum.org>
3146 * girepository/girparser.py: And parse them.
3148 2008-08-20 Johan Dahlin <johan@gnome.org>
3150 * giscanner/glibast.py: Add gshort/gushort types
3152 2008-08-20 Colin Walters <walters@verbum.org>
3154 * gir/Makefile.am: Rename .gir files using GI namespace.
3155 * girepository/girepository.c: Use XDG_DATA_DIRS for
3156 looking up typelibs. Also typelibs are now suffixed
3158 * tests/invoke/Makefile.am: Only use metadata.
3159 * girepository/Makefile.am: Remove unnecessary include.
3160 * tests/scanner/Makefile.am: Update using GI namespaces
3161 for scanner includes.
3163 2008-08-20 Colin Walters <walters@verbum.org>
3165 * girepository/transformer.py: Suppress aliases whose
3167 * girepository/ast.py: Define some more aliases.
3169 2008-08-20 Colin Walters <walters@verbum.org>
3171 * girepository/girparser.c: Avoid alias infloops.
3173 2008-08-20 Colin Walters <walters@verbum.org>
3175 * tests/scanner/foo-expected.gir: Fix expected list type.
3177 2008-08-20 Johan Dahlin <johan@gnome.org>
3179 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
3180 Add a workaround for #548689.
3181 We can now compile gtk!
3183 2008-08-20 Colin Walters <walters@verbum.org>
3185 * giscanner/glibtransformer.py: Try to look up
3186 aliases using the c:type too.
3188 2008-08-20 Colin Walters <walters@verbum.org>
3190 * girepository/girparser.c: Parse union fields.
3192 2008-08-20 Johan Dahlin <johan@gnome.org>
3194 * giscanner/ast.py: Make time_t an alias for long
3196 * gir/gio-2.0-good.gir:
3197 * gir/glib-2.0-good.gir:
3198 * gir/gobject-2.0-good.gir:
3200 * giscanner/glibtransformer.py:
3201 Do not delete Class structures, we need them in gdk/gtk.
3202 * tests/scanner/drawable-expected.gir:
3203 * tests/scanner/foo-expected.gir:
3204 * tests/scanner/utility-expected.gir:
3207 2008-08-20 Johan Dahlin <johan@gnome.org>
3209 * tests/scanner/Makefile.am:
3210 * tests/scanner/annotation-expected.gir:
3211 * tests/scanner/annotation.c (annotation_object_class_init),
3212 (annotation_object_init), (annotation_object_method),
3213 (annotation_object_in), (annotation_object_out),
3214 (annotation_object_inout), (annotation_object_inout2),
3215 (annotation_object_inout3), (annotation_object_calleeowns),
3216 (annotation_object_calleesowns), (annotation_object_get_strings),
3217 (annotation_object_with_voidp), (annotation_object_get_objects),
3218 (annotation_object_create_object), (annotation_object_allow_none):
3219 * tests/scanner/annotation.h:
3220 * tests/scanner/foo-expected.gir:
3221 * tests/scanner/foo.c:
3222 * tests/scanner/foo.h:
3223 Split out annotation tests out of foo
3225 2008-08-20 Johan Dahlin <johan@gnome.org>
3227 * tests/scanner/Foo-expected.gir:
3228 * tests/scanner/Makefile.am:
3229 * tests/scanner/foo-expected.gir:
3230 * tests/scanner/foo-object.h:
3231 * tests/scanner/foo.c:
3232 Foo->foo, foo-object.h -> foo.h
3234 2008-08-20 Johan Dahlin <johan@gnome.org>
3236 * tests/scanner/Foo-expected.gir:
3237 * tests/scanner/Makefile.am:
3238 * tests/scanner/drawable-expected.gir:
3239 * tests/scanner/drawable.c (test_drawable_class_init),
3240 (test_drawable_init):
3241 * tests/scanner/drawable.h:
3242 * tests/scanner/foo-object.h:
3243 * tests/scanner/foo.c (foo_boxed_method):
3244 Move the drawable parts out of Foo to its own test.
3246 2008-08-20 Johan Dahlin <johan@gnome.org>
3248 * tests/scanner/Foo-expected.gir:
3249 * tests/scanner/foo-object.h:
3250 * tests/scanner/foo.c (foo_drawable_class_init),
3251 (foo_drawable_init):
3252 Add a based on GdkDrawable which generates
3255 2008-08-19 Colin Walters <walters@verbum.org>
3257 * giscanner/transformer.py: Don't try
3258 to strip prefix before namespace.
3260 2008-08-19 Johan Dahlin <johan@gnome.org>
3262 * giscanner/transformer.py:
3263 * tests/scanner/Foo-expected.gir:
3264 * tests/scanner/foo-object.h:
3265 Add support for typedef void foo type of
3268 2008-08-19 Johan Dahlin <johan@gnome.org>
3271 * giscanner/girwriter.py:
3272 * giscanner/glibtransformer.py:
3273 * giscanner/transformer.py:
3274 * tests/scanner/Foo-expected.gir:
3275 Add basic support for union, base the code much
3276 on Struct. Add a testcase.
3278 2008-08-19 Johan Dahlin <johan@gnome.org>
3280 * tests/scanner/Foo-expected.gir:
3281 * tests/scanner/foo-object.h:
3282 Add a union testcase which the compiler currently
3285 2008-08-19 Johan Dahlin <johan@gnome.org>
3287 * gobject-introspection-1.0.pc.in:
3288 Add a g_ir_compiler variable
3290 2008-08-19 Colin Walters <walters@verbum.org>
3292 * giscanner/ast.py: Rework types to be more closely
3294 * giscanner/girparser.py: Parse more bits.
3295 * giscanner/girwriter.py: Write sequences in a new
3296 way that specifies container type.
3297 * giscanner/glibast.py: Adjust for ast.py changes,
3298 add 'ctype' property to GLibObject and GLibInterface
3299 so we can look things up by it later.
3300 * gicanner/transformer.py: Names is new class holding
3301 the various namespaces we manage. Do not confuse
3302 with Namespace which is toplevel XML node effectively.
3303 Rework all type resolution to go through
3304 _resolve_type_name_1.
3305 * giscanner/glibtransformer.py: Raise UnknownTypeError
3306 instead of ValueError for cleanliness. Add Unresolved
3307 class to mark types whose parent we haven't seen yet.
3308 Use new Names object from transformer.py.
3309 Correctly look up parent=.
3310 Fix type validation to handle sequences.
3311 * tests/scanner/Foo-expected.gir: Update for sequence
3312 work, int instead of int32.
3313 * tools/g-ir-scanner: Add --noclosure option
3314 * gir/Makefile.am: Use --noclosure by default for
3317 2008-08-18 Johan Dahlin <johan@gnome.org>
3319 * gir/gio-2.0-good.gir:
3320 * gir/glib-2.0-good.gir:
3321 * gir/gobject-2.0-good.gir:
3324 2008-08-18 Johan Dahlin <johan@gnome.org>
3327 * giscanner/girparser.py:
3328 * giscanner/girwriter.py:
3329 * giscanner/glibast.py:
3330 * giscanner/glibtransformer.py:
3331 * giscanner/transformer.py:
3332 * tests/scanner/Foo-expected.gir:
3333 * tests/scanner/foo-object.h:
3334 * tests/scanner/utility-expected.gir:
3335 * tests/scanner/utility.h:
3336 Redo type resolving and validation.
3337 Add a couple of new tests.
3338 Patch mostly written by Colin.
3340 2008-08-18 Johan Dahlin <johan@gnome.org>
3343 * giscanner/girparser.py:
3345 * giscanner/transformer.py:
3346 Improve enum parsing for enums without a GType.
3347 Make flags/enum references to other girs work
3348 * giscanner/utils.py:
3350 * tests/scanner/Makefile.am:
3351 * tests/scanner/foo-object.h:
3352 * tests/scanner/utility-expected.gir:
3353 * tests/scanner/utility.h:
3354 Add a new test for external enum references
3356 2008-08-18 Johan Dahlin <johan@gnome.org>
3358 * docs/global-module-registry.txt: Update
3360 * tests/array.gir: Update with new type proposal
3362 * girepository/girepository.c (g_type_tag_to_string):
3363 * girepository/girepository.h:
3364 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3366 * girepository/girnode.h:
3367 Make enum serializing functions public. Clean up some whitespace.
3369 2008-08-17 Johan Dahlin <johan@gnome.org>
3371 * docs/global-module-registry.txt:
3372 Add a document for an on disk module registry format
3374 2008-08-17 Johan Dahlin <johan@gnome.org>
3377 * gir/gio-2.0-good.gir:
3380 2008-08-17 Johan Dahlin <johan@gnome.org>
3383 * gir/glib-2.0-good.gir:
3384 * gir/gobject-2.0-good.gir:
3385 * giscanner/cgobject.py:
3386 * giscanner/glibtransformer.py:
3387 Regenerate GObject & GType.
3388 Avoid warnings when generating gobject-2.0.gir.
3389 Introspect a little more, and skip *_get_type functions.
3391 2008-08-17 Colin Walters <walters@verbum.org>
3393 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3394 Rename to -good, always generate during build.
3395 * gir/Makefile.am: Ensure .gir files dep on
3396 all scanner sources.
3397 * Makefile.am: Switch build order to ensure
3398 the scanner is ready before we do gir/.
3399 * tools/g-ir-scanner: Look for .git too.
3401 2008-08-17 Johan Dahlin <johan@gnome.org>
3403 * girepository/gtypelib.c (validate_enum_blob):
3404 * giscanner/glibtransformer.py:
3405 * giscanner/transformer.py:
3406 Remove resolve_possible_typedefs, it was unused.
3407 Allow multiple enum values of the sample value in an enum,
3408 since it's actually pretty common.
3409 Register enums so they can be resolved too.
3411 2008-08-16 Johan Dahlin <johan@gnome.org>
3413 * giscanner/girparser.py:
3414 Parse enumeration/bitfield.
3416 2008-08-16 Johan Dahlin <johan@gnome.org>
3418 * giscanner/girparser.py:
3421 2008-08-16 Johan Dahlin <johan@gnome.org>
3423 * giscanner/glibtransformer.py:
3424 Resolve type names for alias targets
3425 * giscanner/transformer.py:
3426 Skip FILE* parameters fow now
3428 2008-08-16 Johan Dahlin <johan@gnome.org>
3431 * gir/gobject-2.0.gir:
3434 * tests/scanner/Makefile.am:
3437 2008-08-15 Colin Walters <walters@verbum.org>
3439 * giscanner/glibtransformer.py: Explicitly construct
3440 new list, since we're deleting as we iterate.
3441 Don't delete all structures which end in Class; just
3442 ones which have a paired GObject.
3443 Fix printing of type warning.
3444 * giscanner/transformer.py: Make strip_namespace_object
3445 be the identity function if it doesn't match the
3448 2008-08-15 Colin Walters <walters@verbum.org>
3450 * giscanner/cgobject.py: Define yet more argument
3451 prototypes; fix prototype for g_type_fundamental.
3453 2008-08-14 Johan Dahlin <johan@gnome.org>
3455 * tests/Makefile.am:
3456 * tests/constant.gir:
3457 * tests/gobject.gir:
3459 * tools/generate.c (write_struct_info):
3460 Fix generator for constant/gobject/struct
3462 2008-08-14 Johan Dahlin <johan@gnome.org>
3464 * tests/Makefile.am:
3466 * tools/generate.c (write_enum_info):
3467 Fix generation of enum/bitfields
3469 2008-08-14 Johan Dahlin <johan@gnome.org>
3471 * girepository/girparser.c (start_field), (start_constant),
3472 (start_type), (end_element_handler):
3473 Clear up constant parsing
3478 * tools/generate.c (write_callable_info), (write_function_info),
3479 (write_callback_info), (write_constant_info), (write_signal_info),
3480 (write_vfunc_info), (write_property_info), (write_object_info),
3481 (write_interface_info):
3482 Constants/Signals are handled now.
3484 2008-08-14 Johan Dahlin <johan@gnome.org>
3486 * girepository/girparser.c (start_type):
3487 Don't require c:type.
3488 * tests/Makefile.am:
3491 Update, remove parts we don't support yet
3492 * tests/roundtrips.sh:
3494 * tools/generate.c (write_type_info), (write_field_info),
3495 (write_callable_info), (write_struct_info):
3496 Make it emit proper gir.
3498 2008-08-14 Johan Dahlin <johan@gnome.org>
3500 * giscanner/transformer.py:
3501 New internal function for adding a new node.
3503 2008-08-14 Johan Dahlin <johan@gnome.org>
3506 Define an internal _H_ variable so we skip parsing both
3507 i18n headers, only one is needed.
3509 Add the glib-2.0.gir too.
3510 * giscanner/glibast.py:
3511 Add gconstpointer as an alias for ANY
3512 * giscanner/transformer.py:
3513 Do not lower case enumeration names per se.
3514 Skip functions which has parameters called 'va_list'
3516 2008-08-14 Colin Walters <walters@verbum.org>
3518 * giscanner/transformer.py: Comment data structures.
3519 Also squash pointers in resolve_type_name to correspond
3520 with what we do for params.
3521 * giscanner/glibtransformer.py: Print warnings in more
3522 situations. Rework checks for method/constructor to
3523 look up in our GType database instead of just checking
3524 for *. Avoid generating <record> for GObject which
3525 duplicate the <class>.
3526 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3529 2008-08-14 Johan Dahlin <johan@gnome.org>
3531 * giscanner/girwriter.py:
3532 * giscanner/glibast.py:
3533 * giscanner/glibtransformer.py:
3534 * giscanner/transformer.py:
3536 * tests/Makefile.am:
3537 Add pyflakes.py and run it in make check.
3538 Update the source code to fix the errors reported by
3541 2008-08-14 Johan Dahlin <johan@gnome.org>
3544 * giscanner/girparser.py:
3545 * giscanner/glibast.py:
3546 * giscanner/glibtransformer.py:
3547 Refactor the parser a bit.
3548 Add parent type to interfaces and update callsites.
3550 2008-08-14 Johan Dahlin <johan@gnome.org>
3552 * giscanner/glibtransformer.py:
3553 * giscanner/utils.py:
3554 Refactor a bit, avoid isinstance and add a method
3555 for each type we parse.
3557 2008-08-14 Johan Dahlin <johan@gnome.org>
3560 * giscanner/girparser.py:
3561 * giscanner/glibtransformer.py:
3562 * tests/Makefile.am:
3563 Run pep8.py in make check, fix old errors.
3565 2008-08-13 Colin Walters <walters@verbum.org>
3567 * giscanner/girparser.py: Parse records.
3569 2008-08-13 Colin Walters <walters@verbum.org>
3571 * gir/Makefile.am: Install again.
3572 * gir/gobject-2.0.gir: Add some more bits.
3574 2008-08-13 Colin Walters <walters@verbum.org>
3576 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3577 * giscanner/girparser.py: Handle aliases.
3578 * giscanner/transformer.py: Record aliases. Make resolver
3579 functions public; we now call into these explicitly from
3580 glibtransformer. Handle resolving aliases.
3581 * giscanner/glibtransformer.py: Separate our internal namespace
3582 from included ones. Call up into transformer's resolver functions.
3584 2008-08-13 Johan Dahlin <johan@gnome.org>
3586 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3587 * girepository/girparser.c (start_class):
3588 * giscanner/glibtransformer.py:
3589 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3591 2008-08-13 Johan Dahlin <johan@gnome.org>
3593 * giscanner/cgobject.py:
3594 Register GInitiallyUnowned
3595 * giscanner/girwriter.py:
3596 * giscanner/glibtransformer.py:
3597 Special case GObject/GInitially owned as they are a bit special to use.
3599 2008-08-13 Colin Walters <walters@verbum.org>
3601 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3602 Object is in GObject namespace.
3604 2008-08-13 Colin Walters <walters@verbum.org>
3606 * giscanner/girparser.py: Fix processing of functions
3609 2008-08-13 Colin Walters <walters@verbum.org>
3611 * giscanner/girparser.py: Parse more than just <class.
3612 * giscanner/glibtransformer.py: Put aliases in a separate
3613 data structure since their name is not canonicall.
3614 * giscanner/transformer.py: Handle resolving type names
3617 2008-08-13 Johan Dahlin <johan@gnome.org>
3619 * tools/g-ir-scanner:
3620 Allow multiple libraries
3621 * giscanner/glibtransformer.py:
3622 Rename load_library to add_library, traverse over all libraries
3623 when trying to resolve a function
3625 2008-08-12 Colin Walters <walters@verbum.org>
3627 * giscanner/transformer.py: Record typedefs as <alias> elements.
3628 Also attempt to look up types in external namespaces.
3629 * giscanner/girwriter.py: Write them.
3630 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3631 checks. Resolve interface methods and properties.
3632 * tests/scanner/foo-object.h: Add a method with typedef.
3633 * tests/scanner/Foo-expected.gir: Update.
3634 * girepository/girnode.c: Debug tweaks.
3635 * girepository/girparser.c: Make a first pass through the XML where we
3636 record all the aliases. This lets us resolve them as we go through the
3638 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3639 from gir-repository.
3641 2008-08-12 Colin Walters <walters@verbum.org>
3643 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3644 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3646 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3648 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3650 2008-08-12 Colin Walters <walters@verbum.org>
3652 * giscanner/glibtransformer.py: Also transform object properties.
3654 2008-08-12 Colin Walters <walters@verbum.org>
3656 * giscanner/glibtransformer.py: Also transform callbacks
3657 and structure field types.
3658 * tests/scanner/Fooe-expected.gir: Update to expect correct
3659 names for callbacks and structs.
3661 2008-08-12 Colin Walters <walters@verbum.org>
3663 * girepository/girparser.c: Handle 'any'.
3664 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3665 Add test for void *.
3667 2008-08-12 Colin Walters <walters@verbum.org>
3669 * giscanner/glibtransformer.py: We need to do type
3670 resolution in a second pass after we've seen all the
3671 enums, records, etc.
3673 2008-08-12 Colin Walters <walters@verbum.org>
3675 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3676 Add enum return value.
3677 * giscanner/glibtransformer.py: Transform function return types
3680 2008-08-12 Colin Walters <walters@verbum.org>
3682 * tests/scanner/Makefile.am: Dep .gir files on scanner
3683 sources too. Also remove @ so we see scanner invocations.
3685 2008-08-12 Colin Walters <walters@verbum.org>
3687 * girepository/girparser.c, girepository/gtypelib.c,
3688 girepository/gtypelib.h, girepository/girnode.c:
3689 Remove usage of (GAPI-oriented) TypeTag in favor of
3690 GITypeTag from girepository.h.
3692 2008-08-10 Colin Walters <walters@verbum.org>
3694 * tests/roundtrips.sh: Use the correct tests.
3696 2008-08-10 Colin Walters <walters@verbum.org>
3698 * giscanner/cgobject.py: Declare/wrap a few more functions.
3699 Fix parameter types for g_object_new and g_type_fundamental.
3701 2008-08-10 Colin Walters <walters@verbum.org>
3703 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3704 us to declare types for both return value and parameters. The
3705 ctypes default of 'int' is bad because it hides 32/64 bit
3706 problems. Convert all existing functions to use it.
3708 2008-08-09 Johan Dahlin <johan@gnome.org>
3710 * giscanner/__init__.py:
3712 * giscanner/cgobject.py:
3713 * giscanner/gidlparser.py:
3714 * giscanner/gidlwriter.py:
3715 * giscanner/girparser.py:
3716 * giscanner/girwriter.py:
3717 * giscanner/glibast.py:
3718 * giscanner/glibtransformer.py:
3719 * giscanner/odict.py:
3720 * giscanner/sourcescanner.py:
3721 * giscanner/transformer.py:
3722 * giscanner/utils.py:
3723 * giscanner/xmlwriter.py:
3724 * tools/g-ir-scanner:
3728 2008-08-09 Johan Dahlin <johan@gnome.org>
3731 * relaxng/c-types.xml:
3732 * relaxng/g-types.xml:
3733 * relaxng/relaxng.rng:
3735 Remove outdated relaxng schemas.
3737 2008-08-09 Johan Dahlin <johan@gnome.org>
3740 Rename metadata to typelib in variable names,
3743 2008-08-09 Johan Dahlin <johan@gnome.org>
3747 Remove old C scanner, which got rewritten in python.
3749 2008-08-09 Johan Dahlin <johan@gnome.org>
3751 * girepository/Makefile.am:
3752 * tools/Makefile.am:
3753 * tools/girmodule.c:
3754 * tools/girmodule.h:
3757 * tools/girparser.c:
3758 * tools/girparser.h:
3759 * tools/girwriter.c:
3760 * tools/girwriter.h:
3761 Move shared *.[ch] files to girepository from tools
3763 2008-08-09 Johan Dahlin <johan@gnome.org>
3765 * tests/Makefile.am:
3768 * tests/constant.test:
3770 * tests/errors.test:
3771 * tests/function.test:
3772 * tests/gobject.test:
3773 * tests/interface.test:
3774 * tests/object.test:
3775 * tests/struct.test:
3780 Rename *.test to *.gir
3782 2008-08-09 Johan Dahlin <johan@gnome.org>
3785 * tests/Makefile.am:
3786 * tests/parser/Foo-expected.gir:
3787 * tests/parser/Makefile.am:
3788 * tests/parser/foo-object.h:
3789 * tests/parser/foo.c:
3790 * tests/parser/utility-expected.gir:
3791 * tests/parser/utility.c:
3792 * tests/parser/utility.h:
3793 * tests/scanner/Makefile.am:
3794 Rename tests/parser to test/scanner
3796 2008-08-08 Colin Walters <walters@verbum.org>
3798 * tests/roundtrips.sh: Use local .gir files again.
3800 2008-08-08 Colin Walters <walters@verbum.org>
3802 * tests/invoke/Makefile.am: .gir file depends on libtool
3805 2008-08-08 Colin Walters <walters@verbum.org>
3807 * tools/girnode.c: Pass through parent node so we can
3808 print the node whose child is NULL, if that occurs.
3810 2008-08-08 Johan Dahlin <johan@gnome.org>
3812 * tests/Makefile.am:
3813 Disable roundtrip tests which are not yet working
3814 * tests/invoke/testfns.gir:
3817 2008-08-08 Johan Dahlin <johan@gnome.org>
3819 * giscanner/girwriter.py:
3821 * giscanner/glibast.py:
3822 * giscanner/glibtransformer.py:
3823 Swap order of members, to keep it consistent with
3826 2008-08-08 Johan Dahlin <johan@gnome.org>
3828 * girepository/gtypelib.c (validate_header):
3829 * girepository/gtypelib.h:
3831 * giscanner/girwriter.py:
3832 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3833 (gi_source_symbol_unref):
3836 * tests/constant.test:
3838 * tests/errors.test:
3839 * tests/function.test:
3840 * tests/gobject.test:
3841 * tests/interface.test:
3842 * tests/invoke/Makefile.am:
3843 * tests/invoke/testfns.xml:
3844 * tests/object.test:
3845 * tests/parser/Makefile.am:
3846 * tests/roundtrips.sh:
3847 * tests/struct.test:
3852 * tools/Makefile.am:
3853 * tools/compiler.c (main):
3854 * tools/generate.c (write_callable_info), (write_function_info),
3856 * tools/gidlmodule.c:
3857 * tools/gidlmodule.h:
3860 * tools/gidlparser.c:
3861 * tools/gidlparser.h:
3862 * tools/gidlwriter.c:
3863 * tools/gidlwriter.h:
3864 * tools/scanner.c (create_node_from_gtype),
3865 (create_node_from_ctype), (g_igenerator_process_properties),
3866 (g_igenerator_process_signals), (g_igenerator_create_object),
3867 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3868 (g_igenerator_create_enum), (g_igenerator_create_flags),
3869 (g_igenerator_process_function_symbol),
3870 (g_igenerator_process_unregistered_struct_typedef),
3871 (g_igenerator_process_struct_typedef),
3872 (g_igenerator_process_union_typedef),
3873 (g_igenerator_process_enum_typedef),
3874 (g_igenerator_process_function_typedef),
3875 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3876 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3877 Merge in the gir-compiler branch.
3878 Thanks to Philip and Colin for their help.
3880 2008-07-26 Colin Walters <walters@verbum.org>
3882 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3883 and g-idl-generate to go along with how we're changing this
3884 module to be installed.
3885 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3887 2008-07-24 Colin Walters <walters@verbum.org>
3889 * girepository/girepository.c (g_irepository_register): Add
3890 environment variable G_IREPOSITORY_VERBOSE so we can print
3891 out what we're doing.
3892 * girepository/girepository.c (g_irepository_register_file):
3893 Add GError error message to g_debug call.
3895 2008-07-08 Jürg Billeter <j@bitron.ch>
3897 * giscanner/glibast.py:
3901 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3903 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3906 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3909 * giscanner/girwriter.py:
3910 * giscanner/transformer.py:
3911 * tests/parser/Foo-expected.gir:
3912 * tests/parser/foo-object.h:
3913 * tests/parser/foo.c (foo_object_allow_none):
3914 Add support for gtk-doc annotations for allow-none.
3917 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3920 * giscanner/girwriter.py:
3921 * giscanner/glibast.py:
3922 * giscanner/glibtransformer.py:
3923 * giscanner/transformer.py:
3924 * tests/parser/Foo-expected.gir:
3925 Start using abstract type instead of the raw C types.
3926 Register a bunch of glib types we care about.
3928 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3933 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3935 * girepository/girepository.c:
3936 * girepository/gtypelib.c:
3937 * girepository/ginfo.c:
3938 * girepository/ginvoke.c:
3939 * girepository/girepository.h:
3940 * girepository/gtypelib.h:
3941 * girepository/gmetadata.c:
3942 * girepository/Makefile.am:
3943 * girepository/gmetadata.h:
3945 * tools/gidlmodule.c:
3948 * tools/gidlmodule.h:
3949 * tools/gidlparser.c:
3951 Renamed GMetadata to GTypelib
3953 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3955 * giscanner/xmlwriter.py:
3956 Improve line wrapping when > 79 charaters
3958 2008-06-05 Jürg Billeter <j@bitron.ch>
3961 * giscanner/girwriter.py:
3962 * giscanner/transformer.py:
3963 Use <type> element for field types
3964 * tests/parser/Foo-expected.gir:
3967 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3969 * giscanner/glibtransformer.py:
3970 Fix a bug which prevented GdkEvent from being generated
3972 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3974 * giscanner/Makefile.am:
3976 * giscanner/girwriter.py:
3977 * giscanner/glibast.py:
3978 * giscanner/glibtransformer.py:
3979 * giscanner/transformer.py:
3980 * giscanner/utils.py:
3981 * tests/parser/Foo-expected.gir:
3982 Improve enum member parsing and introspection
3984 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3986 * giscanner/scannerparser.y:
3987 * giscanner/sourcescanner.h:
3988 * giscanner/sourcescanner.py:
3989 Add a new source type enum for member.
3990 Use __repr__ for improved debugging
3991 * giscanner/girparser.py:
3993 * giscanner/transformer.py:
3994 Improve parsing of struct members.
3995 * tests/parser/foo-object.h:
3998 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4000 * giscanner/xmlwriter.py:
4001 Improve error reporting when trying to quote None.
4002 * giscanner/girparser.py:
4003 Do not print warnings when including more complete .gir files
4004 * giscanner/girwriter.py:
4005 Do not require a name for parameters, add a todo for singletons
4006 * giscanner/glibtransformer.py:
4007 Refactor the way structs are done, add a couple of hacks to allow
4009 * giscanner/transformer.py:
4010 Add enough hacks so cairo, atk and pango.gir can be parsed properly
4011 * gobject-introspection-1.0.pc.in:
4012 Export girdir, so we can access gobject-2.0.gir from outside
4014 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4016 * tools/g-ir-scanner:
4017 * tests/parser/Makefile.am:
4018 Update sys.path before running the parser so we don't have
4019 to setup PYTHONPATH ourselves.
4023 * girepository/Makefile.am:
4024 * giscanner/transformer.py:
4025 * gobject-introspection-1.0.pc.in:
4026 * gobject-introspection.pc.in:
4027 * tools/Makefile.am:
4029 Rename pkg-config name to gobject-introspection-1.0,
4030 Do not installed anything which is not using the gir format.
4031 Disable compililation the old C scanner, but still keep the source
4032 until all the remaning functionallity has been ported.
4034 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
4036 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
4037 a crash when symbol->indent is NULL.
4039 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
4040 a function to convert a CTYPE symbol to a string
4042 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
4045 * giscanner/girwriter.py:
4046 * giscanner/giscannermodule.c
4047 (pygi_source_scanner_append_filename),
4048 (pygi_source_scanner_parse_file):
4049 * giscanner/glibtransformer.py:
4050 * giscanner/sourcescanner.py:
4051 Revert back to using temporary files to send in headers.
4052 Allow Functions to be passed in as callbacks, add a couple
4053 of try/excepts missing features.
4054 We can now scan pango
4056 2008-05-08 Johan Dahlin <johan@gnome.org>
4058 * giscanner/glibtransformer.py:
4059 * giscanner/transformer.py:
4060 Move namespace stripping glibtransformer->transformer
4062 2008-05-08 Johan Dahlin <johan@gnome.org>
4065 * giscanner/girwriter.py:
4066 * giscanner/glibtransformer.py:
4067 * giscanner/transformer.py:
4068 * tools/g-ir-scanner:
4069 Introduce a namespace ast node
4071 2008-05-05 Johan Dahlin <johan@gnome.org>
4073 * giscanner/__init__.py:
4074 * giscanner/sourcescanner.py:
4075 * giscanner/transformer.py:
4076 Move sourcescanner symbols to the sourcescanner module, instead
4077 of in the global __init__ namespace.
4079 2008-05-03 Johan Dahlin <johan@gnome.org>
4081 * giscanner/glibtransformer.py:
4082 * tools/g-ir-scanner:
4083 Handle missing parameters better, allow - and + in .la dlname
4086 2008-05-03 Johan Dahlin <johan@gnome.org>
4088 * giscanner/__init__.py:
4090 * giscanner/girwriter.py:
4091 * giscanner/glibtransformer.py:
4092 * giscanner/transformer.py:
4093 Parse struct fields properly, improve debugging.
4095 2008-04-29 Johan Dahlin <johan@gnome.org>
4098 * giscanner/girwriter.py:
4099 * giscanner/transformer.py:
4100 * tests/parser/Foo-expected.gir:
4102 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
4104 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
4107 * docs/g-ir-scanner.1:
4108 * metadata-annotations-proposal.txt:
4109 * metadata-format.txt:
4110 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
4112 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
4114 * giscanner/girwriter.py:
4115 * giscanner/glibtransformer.py:
4116 * giscanner/transformer.py:
4117 * giscanner/xmlwriter.py:
4118 * tests/parser/Foo-expected.gir:
4119 * tests/parser/foo-object.h:
4120 Write record/structs to gir file too. Add a couple of tests,
4121 fix an off by one error in xmlwriter.py.
4123 2008-04-28 Johan Dahlin <johan@gnome.org>
4125 * giscanner/xmlwriter.py: Calculate the line length properly,
4126 include the provided extra indentation in the calculation, really.
4128 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4131 * giscanner/glibast.py:
4132 * giscanner/glibtransformer.py:
4133 * giscanner/transformer.py:
4134 * tools/g-ir-scanner:
4135 Add a --strip-prefix and sort out confusion between names and symbols
4136 for functions and struct + derivaties.
4137 Refactor bootstrap of g-ir-scanner, so we can set options on
4138 Transformer() before parsing everything.
4140 2008-04-28 Johan Dahlin <johan@gnome.org>
4142 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
4143 when scanning girepository.h
4145 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
4146 a __GI_SCANNER__ when we run.
4148 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4151 * giscanner/girwriter.py:
4152 * giscanner/glibast.py:
4153 * giscanner/glibtransformer.py:
4154 * tests/parser/Foo-expected.gir:
4155 * tests/parser/utility-expected.gir:
4156 Rename most c:identifier to c:type. Add new ones to
4157 class/interface/enum/boxed.
4159 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4162 * giscanner/girwriter.py:
4163 * giscanner/glibtransformer.py:
4164 * tests/parser/Foo-expected.gidl:
4165 * tests/parser/Makefile.am:
4166 Move c:identifier from return-value to subchild type,
4167 as per Jürgs suggestion
4169 2008-04-28 Johan Dahlin <johan@gnome.org>
4171 * giscanner/girwriter.py:
4172 * tests/parser/Foo-expected.gir:
4173 Write property.type as a child node.
4175 2008-04-27 Johan Dahlin <johan@gnome.org>
4180 * gidl/gobject-2.0.gidl:
4182 * gir/gobject-2.0.gir:
4183 * tests/parser/Makefile.am:
4184 Replace the GObject gidl with a GObject gir.
4186 2008-04-27 Johan Dahlin <johan@gnome.org>
4188 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
4191 * giscanner/xmlwriter.py:
4192 * tests/parser/Foo-expected.gir:
4193 Include indentation in line length calculation
4195 2008-04-27 Johan Dahlin <johan@gnome.org>
4197 * giscanner/girparser.py:
4198 Prettify NS parsing using elementtree.
4200 2008-04-27 Johan Dahlin <johan@gnome.org>
4203 * giscanner/Makefile.am:
4204 * giscanner/girparser.py:
4205 * giscanner/glibtransformer.py:
4206 * tests/parser/Foo-expected.gidl:
4207 * tests/parser/Foo-expected.gir:
4208 * tests/parser/Makefile.am:
4209 * tests/parser/utility-expected.gidl:
4210 * tests/parser/utility-expected.gir:
4211 * tools/g-ir-scanner:
4212 Switch over to GIR as the default format. Add a simple GIDL
4214 Update tests and fix simplify makefiles by depending
4215 on GNU make extensions.
4217 2008-04-27 Johan Dahlin <johan@gnome.org>
4219 * giscanner/xmlwriter.py:
4220 Wrap attributes for lines which are wider than 79 characters
4222 * giscanner/scannerlexer.l:
4223 Allow parenthesis in annotations
4226 * giscanner/gidlwriter.py:
4227 * giscanner/girwriter.py:
4228 * giscanner/glibtransformer.py:
4229 * giscanner/transformer.py:
4230 Add initial sequence support, including annotation.
4231 Refactor type handling a bit.
4233 2008-04-27 Johan Dahlin <johan@gnome.org>
4235 * tests/parser/Foo-expected.gidl:
4236 * tests/parser/foo-object.h:
4237 * tests/parser/foo.c (foo_object_class_init),
4238 (foo_object_get_strings), (foo_object_get_objects):
4239 Add two new functions to check sequence return values.
4240 Also fixes a compilation warning.
4242 2008-04-27 Johan Dahlin <johan@gnome.org>
4244 * giscanner/giscannermodule.c (]): Cast the getter, avoids
4245 a compilation warning.
4247 * tools/Makefile.am (g_ir_scanner_SOURCES):
4248 g-ir-scanner has no sources.
4250 2008-04-25 Johan Dahlin <johan@gnome.org>
4252 * giscanner/Makefile.am:
4254 * giscanner/gidlparser.py:
4255 * giscanner/gidlwriter.py:
4256 * giscanner/girwriter.py:
4257 * giscanner/glibast.py:
4258 * giscanner/glibtransformer.py:
4259 * giscanner/transformer.py:
4260 Split out nodes to ast.py and glibast.py
4262 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4264 * giscanner/Makefile.am:
4265 * giscanner/gidlparser.py:
4266 * giscanner/gidlwriter.py:
4267 * giscanner/girwriter.py:
4268 * giscanner/glibtransformer.py:
4269 * giscanner/gobjecttreebuilder.py:
4270 * giscanner/transformer.py:
4271 * giscanner/treebuilder.py:
4272 * tools/g-ir-scanner:
4273 Rename treebuilder to transformer and
4274 gobjectreebuilder to glibtransformer.
4276 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4278 * giscanner/Makefile.am:
4279 * giscanner/__init__.py:
4280 * giscanner/cgobject.py:
4281 * giscanner/gidlparser.py:
4282 * giscanner/gidlwriter.py:
4283 * giscanner/girwriter.py:
4284 * giscanner/gobjecttreebuilder.py:
4285 * giscanner/odict.py:
4286 * giscanner/sourcescanner.py:
4287 * giscanner/treebuilder.py:
4288 * giscanner/xmlwriter.py:
4289 * tools/Makefile.am:
4290 * tools/g-ir-scanner:
4291 Add LGPLv2 license header and install all python files
4293 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4296 * giscanner/gidlwriter.py:
4297 * giscanner/giscannermodule.c (pygi_source_directive_new),
4298 (directive_get_options), (pygi_source_symbol_new),
4299 (symbol_get_base_type), (pygi_source_type_new),
4300 (type_get_base_type), (type_get_child_list),
4301 (pygi_source_scanner_get_symbols),
4302 (pygi_source_scanner_get_directives):
4303 * giscanner/gobjecttreebuilder.py:
4304 * giscanner/sourcescanner.py:
4305 * giscanner/treebuilder.py:
4306 * tests/parser/foo-object.h:
4307 Add support for virtual methods.
4308 Pair struct FooClass with struct Foo.
4309 Clean up the SourceScanner bindings a bit.
4310 Add a testcase for virtual methods.
4312 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4314 * giscanner/cgobject.py:
4315 * giscanner/gidlwriter.py:
4316 * giscanner/gobjecttreebuilder.py:
4317 Add support for signals
4319 * tests/parser/foo.c (foo_object_class_init):
4320 * Foo-expected.gidl:
4321 Add a signal and update the expected output.
4323 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4325 * giscanner/gidlwriter.py:
4326 * giscanner/girwriter.py:
4327 * giscanner/giscannermodule.c (directive_get_name),
4328 (directive_get_value), (directive_get_options),
4329 (symbol_get_directives), (symbol_set_directives),
4330 (pygi_source_scanner_parse_file),
4331 (pygi_source_scanner_lex_filename),
4332 (pygi_source_scanner_get_directives), (init_giscanner):
4333 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4334 * giscanner/sourcescanner.h:
4335 * giscanner/sourcescanner.py:
4336 * giscanner/treebuilder.py:
4337 * tools/g-ir-scanner:
4338 Add support for source/header annotations.
4340 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4342 * giscanner/gidlwriter.py:
4343 * giscanner/girwriter.py:
4344 * giscanner/gobjecttreebuilder.py:
4345 * giscanner/treebuilder.py:
4346 Add support for Callbacks
4348 2008-04-22 Havoc Pennington <hp@pobox.com>
4350 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4351 not in metadata->module, look for it in the global module, in case
4352 some other object or the app itself provides the symbol.
4354 2008-04-22 Havoc Pennington <hp@pobox.com>
4356 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4357 dlopening a library that is already in the main app, by checking
4358 whether one of the lib's symbols is already loaded.
4360 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4362 * tests/parser/Foo-expected.gidl:
4363 * tests/parser/foo-object.h:
4366 2008-04-22 Havoc Pennington <hp@pobox.com>
4368 * girepository/ginfo.c (g_interface_info_find_method):
4369 Use interface_blob_size not object_blob_size to compute offset.
4371 2008-04-22 Havoc Pennington <hp@pobox.com>
4373 * girepository/gmetadata.c (_g_metadata_init): remove
4374 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4375 (Glade and Clutter for example) rely on being loaded globally.
4377 2008-04-22 Havoc Pennington <hp@pobox.com>
4379 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4380 function to get the GType given a RegisteredTypeInfo
4382 2008-04-22 Johan Dahlin <johan@gnome.org>
4384 * COPYING: Add a LGPL license, to prevent automake to
4385 put in a copy of GPL here. Pointed out by Havoc.
4387 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4388 (g_type_info_is_pointer), (g_type_info_get_tag),
4389 (g_type_info_get_param_type), (g_type_info_get_interface),
4390 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4391 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4392 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4393 (g_object_info_get_interface), (g_object_info_get_field),
4394 (g_interface_info_get_prerequisite),
4395 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4396 * girepository/ginvoke.c (get_ffi_type):
4397 * girepository/girepository.h:
4398 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4399 (g_metadata_check_sanity), (validate_header),
4400 (validate_array_type_blob), (validate_iface_type_blob),
4401 (validate_param_type_blob), (validate_error_type_blob),
4402 (validate_type_blob), (validate_constant_blob),
4403 (validate_struct_blob), (validate_enum_blob):
4404 * girepository/gmetadata.h:
4405 * tests/Makefile.am:
4406 * tests/invoke/Makefile.am:
4407 * tests/invoke/invoke.c (main):
4408 * tests/roundtrips.sh:
4409 * tools/Makefile.am:
4410 * tools/compiler.c (format_output), (write_out_metadata), (main):
4411 * tools/generate.c (write_type_name), (write_type_info),
4412 (write_constant_value), (write_enum_info), (load_metadata), (main):
4413 * tools/gidlcompilercontext.c:
4414 * tools/gidlcompilercontext.h:
4415 * tools/gidlcompilerentrynode.c:
4416 * tools/gidlcompilerentrynode.h:
4417 * tools/gidlcompilertypenode.c:
4418 * tools/gidlcompilertypenode.h:
4419 * tools/gidlmodule.c (g_idl_module_build_metadata):
4420 * tools/gidlmodule.h:
4421 * tools/gidlnode.c (init_stats), (dump_stats),
4422 (g_idl_node_get_size), (g_idl_node_get_full_size),
4423 (g_idl_node_cmp), (g_idl_node_can_have_member),
4424 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4425 (parse_int_value), (parse_uint_value), (parse_float_value),
4426 (parse_boolean_value), (find_entry_node), (find_entry),
4427 (serialize_type), (g_idl_node_build_metadata), (write_string):
4429 * tools/gidlparser.c (parse_type_internal):
4430 * tools/quote-file.sh:
4431 Revert revisions 157,149-148,136-129 and 120.
4432 Move back to using g-idl-generate to generate the metadata and
4433 avoids dependency on a c compiler.
4435 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4437 * giscanner/girwriter.py:
4438 * tools/g-ir-scanner:
4439 Add an initial GIR writer and a --format option to g-ir-scanner
4441 2008-04-21 Johan Dahlin <johan@gnome.org>
4443 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4444 gobject-2.0 and raise ImportError if not found.
4446 * giscanner/gidlparser.py:
4447 * giscanner/gidlwriter.py:
4448 * giscanner/gobjecttreebuilder.py:
4449 * tools/g-ir-scanner:
4450 Add a --include argument to include types from other idls.
4451 Add a minimalistic GIDL parser (just objects for now)
4452 Implement resolving of external type references and use it to
4453 resolve parent types, argument types and return types.
4455 2008-04-21 Johan Dahlin <johan@gnome.org>
4457 * giscanner/gidlwriter.py:
4458 * giscanner/gobjecttreebuilder.py:
4459 * giscanner/treebuilder.py:
4460 Add support for properties.
4461 Refactor Class/Interface support a bit, to share more code and
4462 always initialize their method attribute to an empty list.
4464 2008-04-21 Johan Dahlin <johan@gnome.org>
4466 * giscanner/cgobject.py:
4467 Add a workaround for a glib bug interface introspection bug
4468 (object_interface_list_properties, object_class_list_properties):
4469 Cast the return value to GParamSpec.
4471 * tests/parser/Foo-expected.gidl: Update
4472 * tests/parser/foo.c: Add a string property
4474 * giscanner/gobjecttreebuilder.py:
4475 After stripping namespaces, remove the original
4476 item to avoid duplication (GtkButton struct and Button object)
4478 2008-04-21 Johan Dahlin <johan@gnome.org>
4480 * giscanner/gobjecttreebuilder.py:
4481 * giscanner/treebuilder.py:
4482 Strip namespaces before objects, so we'll export
4483 GtkButton as Button in the gtk namespace
4485 2008-04-21 Johan Dahlin <johan@gnome.org>
4487 * giscanner/gidlwriter.py:
4488 * giscanner/gobjecttreebuilder.py:
4489 * giscanner/treebuilder.py:
4490 Add constructors for object/boxed types.
4492 2008-04-21 Johan Dahlin <johan@gnome.org>
4494 * giscanner/gidlwriter.py:
4495 * giscanner/gobjecttreebuilder.py:
4496 Add support for boxed types
4498 2008-04-21 Johan Dahlin <johan@gnome.org>
4500 * giscanner/giscannermodule.c: Mark structures as const,
4501 wrap SourceType.const_string.
4503 * tests/parser/foo-object.h: Add a couple of constants.
4505 * giscanner/gidlwriter.py:
4506 * giscanner/gobjecttreebuilder.py:
4507 * giscanner/treebuilder.py:
4508 Add basic support for interfaces
4510 * tools/g-ir-scanner:
4511 Add -o/--output for writing to a file
4513 2008-04-21 Havoc Pennington <hp@redhat.com>
4515 * TODO: add some C API wishlist items I could think of quickly
4517 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4519 * giscanner/gidlwriter.py:
4520 * giscanner/xmlwriter.py:
4521 Add a simple api for writing tags which can be used
4522 with the new 'with statement' in python 2.5
4524 2008-04-21 Johan Dahlin <johan@gnome.org>
4526 * giscanner/gobjecttreebuilder.py:
4527 Strip namespace and object prefix from method names.
4529 2008-04-21 Johan Dahlin <johan@gnome.org>
4531 * tools/g-ir-scanner (main): Add --pkg option to pass in
4532 pkg-config modules to get cflags from.
4534 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4535 Avoid duplication, reuse function writer for methods.
4537 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4539 * giscanner/gidlwriter.py:
4540 * giscanner/gobjecttreebuilder.py:
4541 * giscanner/treebuilder.py:
4542 * tools/g-ir-scanner:
4543 Resolve libtool .la files.
4544 Strip name spaces for methods.
4545 Add function symbols
4547 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4549 * giscanner/cgobject.py:
4550 * giscanner/gidlwriter.py:
4551 * giscanner/gobjecttreebuilder.py:
4552 * giscanner/treebuilder.py:
4553 Add support for classes and methods
4555 2008-04-20 Johan Dahlin <johan@gnome.org>
4557 * giscanner/gidlwriter.py:
4558 * giscanner/gobjecttreebuilder.py:
4559 * giscanner/odict.py:
4560 Avoid conflicts, keep the output ordered similar to
4561 the order of the input.
4562 Add a simple ordered dictionary implemenation
4564 2008-04-19 Johan Dahlin <johan@gnome.org>
4566 * giscanner/cgobject.py:
4567 * giscanner/gidlwriter.py:
4568 * giscanner/gobjecttreebuilder.py:
4569 * tools/g-ir-scanner:
4570 Start introspecting get-type functions.
4571 Implement support for GLib/GFlags GTypes.
4572 Add a ctype based GObject binding.
4574 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4576 * giscanner/gidlwriter.py:
4577 * giscanner/xmlwriter.py:
4578 * tools/g-ir-scanner:
4579 Add a simplistic gidl writer, which can't do too much.
4581 2008-04-18 Johan Dahlin <johan@gnome.org>
4583 * giscanner/sourcescanner.py:
4584 * giscanner/treebuilder.py:
4585 * tools/g-ir-scanner:
4586 split tree building and source scanning interface to separate files.
4588 2008-04-18 Johan Dahlin <johan@gnome.org>
4590 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4592 - Add support for struct/parameter/return, start parsing of ctypes
4594 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4597 2008-03-31 Johan Dahlin <johan@gnome.org>
4599 * tools/g-ir-scanner:
4600 Start to build abstract syntax node of scanned sources.
4601 Add support for cpp options.
4603 2008-03-27 Johan Dahlin <johan@gnome.org>
4605 * giscanner/giscannermodule.c:
4606 * giscanner/scannerlexer.l:
4607 * giscanner/sourcescanner.c:
4608 * tools/g-ir-scanner:
4610 Add simple pre-processor using subprocess and a PIPE.
4611 Change the parse_file apis to accept a file descriptor.
4613 2008-03-25 Johan Dahlin <johan@gnome.org>
4615 * giscanner/__init__.py:
4616 * tools/g-ir-scanner:
4617 Fix a typo and add an example python test program.
4619 2008-03-25 Johan Dahlin <johan@gnome.org>
4621 * giscanner/__init__.py:
4622 * giscanner/giscannermodule.c:
4623 * giscanner/sourcescanner.c:
4624 * giscanner/sourcescanner.h:
4625 Add constants and wrap a few more SymbolType fields
4627 2008-03-25 Johan Dahlin <johan@gnome.org>
4631 * giscanner/__init__.py:
4632 * giscanner/giscannermodule.c:
4633 * giscanner/Makefile.am:
4635 Add initial python bindings for the scanner and
4636 depend on python 2.5.
4638 2008-03-25 Johan Dahlin <johan@gnome.org>
4642 * giscanner/Makefile.am:
4643 * giscanner/sourcescanner.c:
4644 * giscanner/sourcescanner.h:
4645 * tools/Makefile.am:
4646 * tools/grealpath.h:
4647 * tools/sourcescanner.c:
4648 * tools/sourcescanner.h:
4650 Move the scanner to a separate library.
4652 2008-03-23 Johan Dahlin <johan@gnome.org>
4654 * tools/Makefile.am:
4657 * tools/scannerlexer.l:
4658 * tools/scannerparser.y:
4659 * tools/sourcescanner.c:
4660 * tools/sourcescanner.h:
4661 Split out the source scanner from the generator.
4662 Rename the symbols used in the scanner to use the gi_ prefix.
4663 This should make it possible to use the raw C parser from
4666 2008-03-23 Johan Dahlin <johan@gnome.org>
4668 * tests/parser/Makefile.am (utility.gidl):
4669 * tests/parser/utility-expected.gidl:
4670 Pass in the gobject.gidl since we're defining a GObject.
4672 2008-03-12 Johan Dahlin <johan@gnome.org>
4674 * relaxng/relaxng.rng:
4675 Add a releaxng in relaxng we can use to validate the relaxngs
4678 2008-03-12 Jürg Billeter <j@bitron.ch>
4680 * tools/scanner.c: (g_igenerator_new):
4681 * tools/scannerparser.y:
4682 Fix compiler warnings.
4684 2008-03-12 Jürg Billeter <j@bitron.ch>
4688 * tools/scannerparser.y:
4689 Start fixing memory management in g-idl-scanner.
4691 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4693 * tools/gidlcompilercontext.c: (write_compiled):
4694 Fix critical warning when no shlib passed to g-idl-compiler.
4696 2008-03-12 Johan Dahlin <johan@gnome.org>
4698 * tests/parser/utility-expected.gidl:
4699 * tests/parser/utility.h:
4700 Add a get_type-function, so the scanner actually
4701 parses it as an object.
4703 2008-03-12 Johan Dahlin <johan@gnome.org>
4705 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4708 * tests/parser/Foo-expected.gidl:
4709 * tests/parser/Makefile.am:
4710 * tests/parser/foo-object.h:
4711 * tests/parser/foo.c:
4712 * tests/parser/utility-expected.gidl:
4713 * tests/parser/utility.c:
4714 * tests/parser/utility.h:
4716 Add a new gidl test. 'utility.gidl', which is used to be able
4717 to test external type references. Add a reference to UtilityObject*
4720 2008-03-11 Johan Dahlin <johan@gnome.org>
4724 Remove most global variables
4726 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4728 * tools/scannerlexer.l:
4730 * tests/parser/Foo-expected.gidl:
4731 * tests/parser/foo.c:
4732 * tests/parser/Makefile.am:
4733 * tests/parser/foo-object.h:
4735 Added a few extra tests. Which resulted in finding a few
4736 bugs. Which resulted in me fixing those bugs
4738 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4740 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4741 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4742 Add some comments for strings into generated output for
4745 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4747 * tools/gidlcompilercontext.c: (write_compiled):
4748 Write out the shlibs variable before writing out the strings
4749 length. Fixes compiler warning when using '-l' flag with
4752 2008-03-11 Johan Dahlin <johan@gnome.org>
4754 * tests/parser/Foo-expected.gidl:
4755 * tests/parser/foo-object.h:
4758 * tools/scannerlexer.l:
4759 Add support for parsing return arguments. Add support for
4760 caller-owns return types.
4761 Patch by Philip Van Hoof.
4763 * tools/scannerparser.y:
4764 Remove parsing of the @deprecated syntax used in headers.
4765 We will support gtk-doc deprecation in the future instead.
4767 2008-03-11 Johan Dahlin <johan@gnome.org>
4769 * tools/compiler.c (main): Coding style fixes
4771 2008-03-10 Johan Dahlin <johan@gnome.org>
4774 Add GCOV_LIBS to GILIBS
4776 2008-03-10 Johan Dahlin <johan@gnome.org>
4778 * tests/parser/Foo-expected.gidl:
4779 * tests/parser/foo.c:
4780 Rename null-ok to direction=out
4782 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4784 reviewed and extensively tested by Johan
4786 * tests/parser/Foo-expected.gidl:
4787 * tests/parser/foo-object.h:
4788 * tests/parser/foo.c:
4791 * tools/gidlwriter.c:
4794 * tools/scannerlexer.l:
4795 * tools/scannerparser.y:
4797 Add support for scanning for gtk-doc comments inside
4798 C source files. Add tests
4800 2008-03-10 Johan Dahlin <johan@gnome.org>
4802 * tests/parser/Makefile.am:
4803 * tests/parser/foo.c:
4806 * tools/scannerparser.y:
4807 Add an api to lex filenames.
4808 Lex all source .c files passed in on the command line.
4809 Scan sources in a test and a couple of private structures
4810 which should not be included in the generated gidl
4812 2008-03-10 Johan Dahlin <johan@gnome.org>
4814 * tests/invoke/Makefile.am: Make the generated metadata
4815 depend on the g-idl-compiler
4817 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4819 * tools/gidlmodule.c
4820 * tools/gidlmodule.h
4823 Remove the old g-idl-compiler code.
4826 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4828 * tools/quote-file.sh
4831 Move to using the 'C' struct compiler code.
4833 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4835 * girepository/ginfo.c
4837 Change the way that external references with no namespace
4838 are dealt with. External references with no namespace
4839 are placed into the XML as-if they are a local reference.
4840 This is temporary, but helps with roundtrip tests.
4842 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4844 * girepository/ginfo.c
4845 Add the ability to get the value of a constant of
4846 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4847 is provided as a string.
4849 This would deal properly with:
4850 typedef char* random;
4851 const random = "A string";
4853 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4855 * girepository/ginfo.c
4856 * girepository/girepository.h
4858 Add a function to check if an enum is registered or not.
4859 Previously anything testing this relied on the g-type
4860 string offset having a value of 0.
4862 * girepository/gmetadata.c
4863 * girepository/gmetadata.h
4865 Remove unneccesary or erroneous checks. There were two
4866 metadata validation checks which made sure that the blob
4867 sizes were the same as some magic numbers compiled into the code.
4868 This is wrong as it breaks any forwards compatibility that may
4871 Checks were also present that made sure that unregistered type
4872 blobs had a value of 0 in the g-type offset field. This is
4873 unneccessary. If a type blob is unregistered then any value
4874 in its g-type field is simply invalid.
4876 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4878 * girepository/ginfo.c
4879 * girepository/gmetadata.c
4880 * girepository/gmetadata.h
4882 Change the metadata format to have a standard header
4883 for all the type blobs. Merge the SimpleTypeBlob
4884 and InterfaceTypeBlob into a union. A union of these
4885 two blobs existed previously but was not explicit
4886 in the metadata format.
4888 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4890 * tools/gidlcompilercontext.c
4891 * tools/gidlcompilercontext.h
4892 * tools/gidlcompilerentrynode.c
4893 * tools/gidlcompilerentrynode.h
4894 * tools/gidlcompilertypenode.c
4895 * tools/gidlcompilertypenode.h
4897 Add code to compile a tree of GIdlNodes to
4898 a 'C' struct representing the metadata.
4899 This is to aid cross-compiling. Previously
4900 the g-idl-compiler created a binary blob with
4901 data written in the byte order and alignment
4902 of the tool rather than the intended target.
4904 Cleaned up and improved by Johan and Robert :-)
4906 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4908 * girepository/ginvoke.c
4909 * girepository/girepository.h
4910 * girepository/gmetadata.c
4911 * girepository/gmetadata.h
4913 * tools/gidlparser.c
4914 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4915 to avoid confusion with the interface blob.
4918 * tools/gidlparser.c
4919 Remove magic numbers and replace with type-tag
4920 enumeration symbols.
4922 * girepository/gmetadata.c
4923 Add validate declaration.
4925 2008-03-10 Jürg Billeter <j@bitron.ch>
4927 * tools/gidlparser.c: (parse_type_internal):
4928 * tools/scannerlexer.l:
4929 * tools/scannerparser.y:
4930 Support C99 _Bool type in scanner.
4932 2008-03-10 Jürg Billeter <j@bitron.ch>
4934 * tests/parser/Foo-expected.gidl:
4935 * tests/parser/foo-object.h:
4936 * tests/parser/foo.c: (foo_enum_method):
4937 * tools/scanner.c: (g_igenerator_process_function_symbol):
4938 Don't skip functions that are defined in the namespace of a type
4939 that doesn't support methods, as for example enums.
4941 2008-03-10 Johan Dahlin <johan@gnome.org>
4943 * gidl.dtd: Remove, we're using relaxng for now
4945 * tests/parser/Foo-expected.gidl:
4946 * tests/parser/foo-object.h:
4947 * tests/parser/foo.c:
4948 Rename the enum/flags get_type functions to include the whole type.
4950 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4952 * tools/gidlwriter.c (enum_generate): added "type-name",
4953 "get-type" and "deprecated" missing arguments.
4954 * tests/parser/Foo-expected.gidl:
4955 * tests/parser/foo-object.h: test enum type, and no type.
4957 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4960 Consistent checks, add missing 'test'
4962 2008-03-05 Havoc Pennington <hp@redhat.com>
4964 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4965 does on Fedora 8. Make libffi a hard requirement, since it was in
4966 practice anyway (was not really conditional in the code or
4967 makefile, only in configure).
4969 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4971 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4972 reviewed by: Johan Dahlin <johan@gnome.org>
4974 * tests/Makefile.am:
4975 * tests/roundtrips.sh:
4976 Modify the roundtrips test so that they do not use the
4977 --raw option of the gidl compiler but instead compile a
4978 shared library to use with g_module.
4980 * tests/invoke/Makefile.am:
4981 * tests/invoke/invoke.c:
4982 Modify the invoke tests to build a shared library rather
4983 than use the --raw option.
4985 * tests/invoke/invoke-namespace-find.sh: Removed:
4986 Noone knows why this was here, so removed.
4988 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4990 * tools/scanner.c: (g_igenerator_process_function_symbol):
4991 Move g_idl_node_can_have_member test later, as it broke spotting
4992 get_type's for nodes that can't have members.
4994 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4997 * tools/gidlnode.c: (g_idl_node_can_have_member):
4998 Add g_idl_node_can_have_member.
5000 * tools/scanner.c: (g_igenerator_process_function_symbol):
5001 Use g_idl_node_can_have_member to test if we should add a function
5002 as a member of the type node.
5004 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5006 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
5008 * tests/parser/Makefile.am:
5009 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
5011 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5013 * tools/scanner.c: (main):
5014 Ignore -pthread when passed to g-idl-scanner.
5016 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5018 * tools/grealpath.h: Added:
5019 * tools/scanner.c: (main):
5020 * tools/scannerlexer.l:
5021 * tools/Makefile.am:
5022 Always use absolute paths with symbolic links resolved when
5023 comparing filenames.
5025 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
5027 * gobject-introspection.pc.in:
5028 Provide variables for g-idl-parser, scanner and compiler in the
5031 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
5034 * girepository/Makefile.am:
5035 * tools/Makefile.am:
5036 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
5038 2008-02-10 Johan Dahlin <johan@gnome.org>
5040 * tests/parser/Foo-expected.gidl:
5041 * tests/parser/foo-object.h:
5042 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
5043 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
5046 2008-02-10 Johan Dahlin <johan@gnome.org>
5048 * tests/parser/Foo-expected.gidl:
5049 * tests/parser/foo-object.h:
5050 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
5051 Add enum and flags test.
5053 2008-02-10 Johan Dahlin <johan@gnome.org>
5057 * girepository/Makefile.am:
5058 Make 'make distcheck' work again.
5060 2008-02-10 Johan Dahlin <johan@gnome.org>
5062 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
5065 * tests/parser/Makefile.am: Only create Foo.gidl when running make
5066 check, eg exclude it from BUILT_SOURCES.
5068 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
5073 * girepository/Makefile.am:
5074 * m4/Makefile.am: Added:
5075 * m4/as-compiler-flag.m4: Added:
5076 * m4/gcov.m4: Added:
5077 * tools/Makefile.am:
5078 Add ability to generate a coverage report.
5079 Adds configure option --enable-gcov and make rule 'check-coverage'.
5081 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
5085 * gidl/Makefile.am: Added:
5086 * girepository/Makefile.am: Added:
5087 * src/Makefile.am: Renamed to tools/Makefile.am:
5088 * src/compiler.c: Renamed to tools/compiler.c:
5089 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
5090 * src/generate.c: Renamed to tools/generate.c:
5091 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
5092 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
5093 * src/gidlnode.c: Renamed to tools/gidlnode.c:
5094 * src/gidlnode.h: Renamed to tools/gidlnode.h:
5095 * src/gidlparser.c: Renamed to tools/gidlparser.c:
5096 * src/gidlparser.h: Renamed to tools/gidlparser.h:
5097 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
5098 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
5099 * src/ginfo.c: Renamed to girepository/ginfo.c:
5100 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
5101 * src/girepository.c: Renamed to girepository/girepository.c:
5102 * src/girepository.h: Renamed to girepository/girepository.h:
5103 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
5104 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
5105 * src/scanner.c: Renamed to tools/scanner.c:
5106 * src/scanner.h: Renamed to tools/scanner.h:
5107 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
5108 * src/scannerparser.y: Renamed to tools/scannerparser.y:
5109 * tests/invoke/Makefile.am:
5110 Split src/ into girepository/ and tools/
5114 * girepository/Makefile.am:
5115 * tests/Makefile.am:
5116 * tests/invoke/Makefile.am:
5117 * tests/parser/Makefile.am:
5118 * tests/roundtrips.sh:
5119 * tools/Makefile.am:
5120 Make distcheck work.
5122 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
5124 * tests/invoke/invoke.c: (main):
5125 * tests/invoke/testfns.c: (test6), (test7):
5126 * tests/invoke/testfns.xml:
5127 Add tests for invokation with a GList argument.
5128 Also tests caller-owns return values.
5130 2008-02-04 Rob Taylor <robtaylor@floopily.org>
5133 Add some documentation for GICallableInfo
5135 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
5138 Correct syntax errors in the DTD file.
5140 * relaxng/c-types.xml:
5141 * relaxng/g-types.xml:
5143 Add a RelaxNG specification for the GObject Introspection XML data.
5144 The Specification has validated all of the test files.
5146 2008-01-25 Rob Taylor <robtaylor@floopily.org>
5148 * tests/roundtrips.sh:
5149 * tests/struct.test:
5150 Add roundtrip tests for structs.
5152 2008-01-11 Johan Dahlin <johan@gnome.org>
5154 * src/scanner.c (g_igenerator_process_function_symbol):
5155 Refactor out g_idle_node_add_member.
5156 (create_node_from_gtype, create_node_from_ctype):
5157 Use case instead of if...else
5158 (get_type_from_type_id):
5159 Rename to create_node_from_gtype
5160 (get_type_from_ctype):
5161 Rename to create_node_from_ctype
5163 Rename ginode -> node, gitype -> type, gifunc -> func.
5165 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
5166 Two new functions, refactor out of scanner.c
5168 * src/scanner.c: (g_igenerator_process_function_symbol):
5169 * src/scannerlexer.l:
5170 Do not save the content of the deprecated variable, only
5173 2008-01-11 Johan Dahlin <johan@gnome.org>
5175 * tests/parser/foo-object.h: Add a couple of comment parser tests.
5177 2008-01-11 Jürg Billeter <j@bitron.ch>
5179 * src/scannerlexer.l:
5180 Fix GTK-Doc parsing.
5182 2008-01-11 Jürg Billeter <j@bitron.ch>
5184 * src/scannerlexer.l:
5185 Fix GTK-Doc parsing.
5187 2008-01-11 Jürg Billeter <j@bitron.ch>
5189 * src/scanner.c: (lookup_symbol):
5190 Return unresolved name if we find unknown symbol.
5192 2008-01-11 Jürg Billeter <j@bitron.ch>
5194 * src/scanner.c: (g_igenerator_generate):
5195 Initialize GObject to fix scanning interface properties.
5197 * tests/parser/Foo-expected.gidl:
5198 * tests/parser/foo-object.h:
5199 * tests/parser/foo.c: (foo_interface_get_type):
5200 Test interfaces with GObject prerequisite.
5202 * tests/parser/Makefile.am:
5203 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
5205 2007-12-27 Johan Dahlin <johan@gnome.org>
5207 * src/scannerlexer.l:
5208 Parse gtk-doc comments.
5210 * src/gidlwriter.c: (function_generate):
5211 Reorganize, avoid duplication and add support for
5212 writing deprecated functions.
5214 * src/scannerparser.y:
5216 Add new structure CDirective and functions to create/free them.
5218 * src/scanner.c: (g_igenerator_process_function_symbol),
5219 (g_igenerator_process_unregistered_struct_typedef),
5220 (g_igenerator_process_struct_typedef),
5221 (g_igenerator_process_union_typedef),
5222 (g_igenerator_process_enum_typedef),
5223 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
5224 (g_igenerator_start_preprocessor):
5225 Parse @deprecated directive for functions.
5226 Remove some more C99isms.
5227 Send in -C to cpp to avoid stripping comments.
5229 * tests/parser/foo-object.h:
5230 * tests/parser/Foo-expected.gidl:
5231 Add deprecated directive
5233 2007-12-27 Johan Dahlin <johan@gnome.org>
5235 * src/scannerlexer.l (intsuffix): Add emacs mode line and
5236 escape ' and " so it looks more like C.
5239 Unlink temporary file used.
5241 2007-12-27 Johan Dahlin <johan@gnome.org>
5243 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
5244 (g_igenerator_start_preprocessor), (main):
5246 * src/scannerparser.y:
5247 Plug a couple of simple memory leaks.
5249 2007-12-27 Johan Dahlin <johan@gnome.org>
5251 * src/scanner.c: (g_igenerator_parse_macros),
5252 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
5255 * src/scannerparser.y:
5256 * tests/parser/Makefile.am:
5258 Improve error reporting, return when the preprocessor fails.
5259 Add a verbose parameter, to aid debugging.
5260 Revert to using a temporary file to communicate between the
5261 preprocessor and the parser, because we need to wait for
5262 the exit code from the pre-processor before starting to parse.
5264 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
5266 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
5267 cparser.y to scannerparser.y
5269 2007-12-11 Johan Dahlin <johan@gnome.org>
5273 * src/scanner.c: (g_igenerator_new):
5275 Get rid of the global the_generator variable.
5277 2007-12-10 Johan Dahlin <johan@gnome.org>
5279 * src/scanner.c (main): Add an output option,
5280 add checks for required parameters
5283 set BUILD_SOURCES and CLEANFILES properly
5285 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5286 (g_writer_write_indent), (g_writer_write_unindent),
5287 (field_generate), (value_generate), (constant_generate),
5288 (property_generate), (function_generate), (vfunc_generate),
5289 (signal_generate), (interface_generate), (struct_generate),
5290 (union_generate), (boxed_generate), (enum_generate),
5291 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5293 * src/scanner.c: (g_igenerator_generate):
5295 * src/scannerwriter.c:
5297 Refactor scannerwriter to only be tied to a GIdlModule and move
5298 it (again!) to gidlwriter.c. Change the writer function to take
5301 2007-12-10 Johan Dahlin <johan@gnome.org>
5304 * src/scanner.c: (g_igenerator_generate):
5306 * src/scannerwriter.c: (g_igenerator_write_inline),
5307 (g_igenerator_write), (g_igenerator_write_indent),
5308 (g_igenerator_write_unindent), (field_generate), (value_generate),
5309 (constant_generate), (property_generate), (function_generate),
5310 (vfunc_generate), (signal_generate), (interface_generate),
5311 (struct_generate), (union_generate), (boxed_generate),
5312 (enum_generate), (node_generate), (module_generate),
5313 (g_scanner_write_file):
5315 Move the scanner gidl writing to a separate source file.
5317 2007-12-10 Johan Dahlin <johan@gnome.org>
5322 Move over all CType construction functions.
5324 * tests/parser/Makefile.am:
5325 Be verbose when printing parsing tests results.
5327 2007-12-10 Johan Dahlin <johan@gnome.org>
5329 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5330 preprocessor handling to here. Start cpp insteado of cc -E,
5331 always include -U__GNUC__, since it's specific to the preprocessor
5334 * tests/parser/Makefile.am (check-local): Silent diff and skip
5335 -U__GNUC__ which is always defined now
5337 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5339 reviewed by: <delete if not using a buddy>
5341 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5342 * tests/parser/Makefile.am:
5344 2007-12-09 Johan Dahlin <johan@gnome.org>
5347 Use GOption for command line options.
5348 (g_igenerator_new, main): Simplify constructor and they way
5349 parameters are passed into it.
5355 * src/gen-introspect.c:
5356 * src/gen-introspect.h:
5358 Rename gen-introspect.[ch] to scanner.[ch]
5360 2007-12-09 Johan Dahlin <johan@gnome.org>
5364 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5365 don't make the repository library and the other utilites link against
5368 * src/gen-introspect.c: (g_igenerator_create_object),
5369 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5370 (g_igenerator_create_enum), (g_igenerator_create_flags),
5371 (g_igenerator_process_module_symbol),
5372 (g_igenerator_process_module), (g_igenerator_generate), (main):
5373 * src/gen-introspect.h:
5374 Refactor g_igenerator_process_types into smaller pieces.
5376 * tests/parser/Makefile.am:
5377 Depend on the gen-introspect binary
5379 2007-12-09 Johan Dahlin <johan@gnome.org>
5381 * src/gen-introspect.c (g_igenerator_process_types):
5382 Break into smaller pieces, one for each generated node type.
5384 2007-12-08 Johan Dahlin <johan@gnome.org>
5386 * src/gen-introspect.c: (g_igenerator_process_types),
5387 (g_igenerator_add_module):
5388 * tests/parser/Foo-expected.gidl:
5389 * tests/parser/foo-object.h:
5390 * tests/parser/foo.c: (foo_subobject_class_init),
5391 (foo_subobject_init):
5393 Add a subobject test and make sure to register defined classes
5394 in the lookup symbol hash table.
5396 2007-12-08 Johan Dahlin <johan@gnome.org>
5400 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5401 (g_igenerator_process_types), (g_igenerator_add_module),
5402 (g_igenerator_add_include_idl), (main):
5403 * src/gen-introspect.h:
5404 * tests/parser/Makefile.am:
5405 * tests/parser/Foo-expected.gidl:
5407 Change the gen-introspect to generate namespaced module names,
5408 such as GLib.Object instead of GObject.
5409 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5410 add a --include-idl parameter to gen-introspect,
5411 and update the parser test.
5413 2007-12-08 Johan Dahlin <johan@gnome.org>
5415 * src/gen-introspect.c:
5416 Move main to the end of the file and attempt to make it valid
5419 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5420 we're not quite ready to generate metadata yet.
5425 Add a simple gen-introspect parser test
5427 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5429 reviewed by: Johan Dahlin <johan@gnome.org>
5432 * gobject-introspection.pc.in:
5434 * src/compiler.c: (format_output), (write_out_metadata), (main):
5435 * src/gen-introspect.c: (main):
5436 * src/gen-introspect.h:
5437 * src/generate.c: (write_callable_info), (write_repository),
5438 (load_metadata), (main):
5439 * src/gidlmodule.c: (g_idl_module_new),
5440 (g_idl_module_build_metadata):
5442 * src/gidlparser.c: (start_element_handler):
5443 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5444 (g_base_info_get_name), (g_base_info_get_namespace),
5445 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5446 (g_base_info_get_metadata), (g_function_info_get_symbol),
5447 (g_function_info_get_flags), (g_function_info_get_property),
5448 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5449 (g_callable_info_may_return_null),
5450 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5451 (g_callable_info_get_arg), (g_arg_info_get_direction),
5452 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5453 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5454 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5455 (g_type_info_get_tag), (g_type_info_get_param_type),
5456 (g_type_info_get_interface), (g_type_info_get_array_length),
5457 (g_type_info_is_zero_terminated),
5458 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5459 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5460 (g_value_info_get_value), (g_field_info_get_flags),
5461 (g_field_info_get_size), (g_field_info_get_offset),
5462 (g_registered_type_info_get_type_name),
5463 (g_registered_type_info_get_type_init),
5464 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5465 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5466 (find_method), (g_struct_info_find_method),
5467 (g_enum_info_get_n_values), (g_enum_info_get_value),
5468 (g_object_info_get_parent), (g_object_info_get_type_name),
5469 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5470 (g_object_info_get_interface), (g_object_info_get_n_fields),
5471 (g_object_info_get_field), (g_object_info_get_n_properties),
5472 (g_object_info_get_property), (g_object_info_get_n_methods),
5473 (g_object_info_get_method), (g_object_info_find_method),
5474 (g_object_info_get_n_signals), (g_object_info_get_signal),
5475 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5476 (g_object_info_get_n_constants), (g_object_info_get_constant),
5477 (g_interface_info_get_n_prerequisites),
5478 (g_interface_info_get_prerequisite),
5479 (g_interface_info_get_n_properties),
5480 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5481 (g_interface_info_get_method), (g_interface_info_find_method),
5482 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5483 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5484 (g_interface_info_get_n_constants),
5485 (g_interface_info_get_constant), (g_property_info_get_flags),
5486 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5487 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5488 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5489 (g_constant_info_get_value), (g_union_info_get_n_fields),
5490 (g_union_info_get_field), (g_union_info_get_n_methods),
5491 (g_union_info_get_method), (g_union_info_is_discriminated),
5492 (g_union_info_get_discriminator_offset),
5493 (g_union_info_get_discriminator):
5494 * src/ginvoke.c: (g_function_info_invoke):
5495 * src/girepository.c: (g_irepository_register),
5496 (g_irepository_unregister), (g_irepository_get_default),
5497 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5498 (g_irepository_get_info), (g_irepository_find_by_name),
5499 (g_irepository_get_shared_library),
5500 (g_irepository_build_search_path), (g_irepository_register_file),
5501 (g_irepository_error_quark):
5502 * src/girepository.h:
5503 * src/gmetadata.c: (g_metadata_get_dir_entry),
5504 (g_metadata_check_sanity), (validate_header),
5505 (validate_array_type_blob), (validate_iface_type_blob),
5506 (validate_param_type_blob), (validate_error_type_blob),
5507 (validate_type_blob), (validate_arg_blob),
5508 (validate_signature_blob), (validate_function_blob),
5509 (validate_callback_blob), (validate_constant_blob),
5510 (validate_value_blob), (validate_field_blob),
5511 (validate_property_blob), (validate_signal_blob),
5512 (validate_vfunc_blob), (validate_struct_blob),
5513 (validate_enum_blob), (validate_object_blob),
5514 (validate_interface_blob), (validate_errordomain_blob),
5515 (validate_union_blob), (validate_blob), (validate_directory),
5516 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5517 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5518 (g_metadata_new_from_mapped_file), (g_metadata_free),
5519 (g_metadata_set_module), (g_metadata_get_namespace):
5521 * tests/Makefile.am:
5522 * tests/invoke/Makefile.am:
5523 * tests/invoke/invoke-namespace-find.sh:
5524 * tests/invoke/invoke.c: (main):
5526 Add a namespace/shared library mapping. fixes #313268.
5528 2007-12-03 Johan Dahlin <johan@gnome.org>
5530 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5533 2007-11-30 Jürg Billeter <j@bitron.ch>
5539 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5540 (g_igenerator_write_inline), (g_igenerator_write),
5541 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5542 (field_generate), (value_generate), (constant_generate),
5543 (property_generate), (function_generate), (vfunc_generate),
5544 (signal_generate), (interface_generate), (struct_generate),
5545 (union_generate), (boxed_generate), (enum_generate),
5546 (node_generate), (module_generate), (get_type_from_type_id),
5547 (str_replace), (g_igenerator_process_properties),
5548 (g_igenerator_process_signals), (g_igenerator_process_types),
5549 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5550 (g_igenerator_process_unregistered_struct_typedef),
5551 (g_igenerator_process_struct_typedef),
5552 (g_igenerator_process_union_typedef),
5553 (g_igenerator_process_enum_typedef),
5554 (g_igenerator_process_function_typedef),
5555 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5556 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5557 (g_igenerator_generate), (main), (csymbol_new),
5558 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5559 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5560 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5561 (eat_hspace), (eat_line), (read_identifier),
5562 (g_igenerator_parse_macros):
5563 * src/gen-introspect.h:
5565 Import gen-introspect to generate introspection information by
5568 2007-11-30 Jürg Billeter <j@bitron.ch>
5570 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5572 2007-11-30 Jürg Billeter <j@bitron.ch>
5574 * src/gidlparser.c: (end_element_handler): Don't leave requires
5577 2007-11-29 Johan Dahlin <johan@gnome.org>
5579 * src/gidlparser.c (parse_type_internal): Add char,
5580 gchar and guchar to the builtin types.
5582 2007-11-26 Johan Dahlin <johan@gnome.org>
5584 * src/ginfo.c: (g_object_info_get_type_name),
5585 (g_object_info_get_type_init):
5586 * src/girepository.c: (g_irepository_is_registered):
5587 * src/girepository.h:
5589 Add g_object_info_get_type_name, g_object_info_get_type_init and
5590 g_irepository_is_registered.
5592 2006-08-14 Jürg Billeter <j@bitron.ch>
5594 * src/gidlparser.c: (end_element_handler): Don't leave
5595 namespace and implements states too early.
5598 2007-11-26 Johan Dahlin <johan@gnome.org>
5600 * src/gmetadata.c (validate_struct_blob):
5601 pass blob_type to validate_function_blob instead of
5602 hard-coding BLOB_TYPE_STRUCT.
5604 Patch by Torsten Schoenfeld, fixes #314190
5606 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5608 * src/compiler.c, src/generate.c, src/gidlnode.c,
5609 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5610 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5611 warnings about return values, signedness mismatches, unused
5612 variables, and unhandles enum values in switch statements.
5614 * tests/invoke/Makefile.am: Don't install the invoke test program.
5615 Add -I ../../src to the cflags used for the test functions files.
5617 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5619 * src/girepository.h: Export g_invoke_error_quark.
5621 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5623 * src/ginvoke.c: Remove the fallback implementation of
5624 g_function_info_invoke since we now formally depend on libffi.
5626 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5628 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5629 Remove these files from cvs, as they are now generated.
5631 * src/gmetadata.c (validate_iface_type_blob): Don't
5632 complain if blob->pointer is not set, since that
5633 happens for enum and flag types. (#308935, Gustavo
5636 * Commit an autoconf-conversion patch by
5637 Gustavo Carneiro (#308708)
5639 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5641 * src/compiler.c (main): Use it here to validate
5642 the generated metadata.
5644 * src/gmetadata.[hc]: Add code to validate a
5647 * metadata-format.txt: Updates
5649 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5651 * tests/*: Add struct offsets to field and vfunc
5654 * src/generate.c (write_vfunc_info): Write offset
5655 information for vfuncs.
5657 * src/gidlnode.c (g_idl_node_build_metadata): Write
5658 the struct offsets into the metadata.
5660 * src/gidlparser.c: Parse the offset attributes of
5661 field and vfunc elements.
5663 * src/gidlnode.h: Add offset members to field and
5666 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5670 * gidl.dtd: Updates.
5672 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5673 file, creates, compiles and runs a C file, and folds the
5674 resulting struct offsets back into the .gidl file.
5676 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5678 * src/gidlparser.c (start_field): Make fields in objects
5681 * src/gidlmodule.c: Include string.h
5686 * metadata-format.txt: Cleanup basic types.
5687 * src/*: Adapt to the changes.
5688 * tests/*: Adapt to the changes.
5689 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5691 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5692 size for enum blobs.
5693 (g_idl_node_get_full_size): Report the correct size for
5696 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5697 error checking for blob sizes.
5699 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5701 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5702 interface types for which is_pointer is FALSE, e.g. enums.
5704 * src/gidlnode.c (g_idl_node_get_full_size)
5705 * src/gidlparser.c (parse_type_internal):
5706 * src/generate.c (write_type_info): Support unspecialized
5707 lists, hashtables and errors. Also emit a '*' after these.
5711 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5715 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5717 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5719 * src/*.c: Change the directory to be addressed by
5720 1-based indexes, and use an index of zero to mean
5723 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5725 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5727 * tests/union.test: Add a union test.
5729 * src/generate.c: Handle unions.
5731 * src/girepository.h:
5732 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5734 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5736 * src/gidlparser.c (start_union): Parse <union> elements.
5738 * src/gidlnode.h: Add a GIdlNodeUnion.
5740 * gidl.dtd: Add a <union> element.
5742 * src/gmetadata.c (g_metadata_check_sanity): Check
5745 * src/gmetadata.h: Add union_blob_size to Header,
5748 * metadata-format.txt: Add a UnionBlob.
5750 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5752 * tests/*: Update testcases.
5754 * src/generate.c (write_callable_info): Don't forget to
5755 write transfer and null-ok attributes for return types
5758 * src/girepository.h:
5759 * src/ginfo.c (g_callable_info_may_return_null):
5760 New function to find out if a function may return NULL.
5762 * src/compiler.c (format_output): Make the generated
5765 * README: Point to a recent libffi snapshot.
5767 * tests/invoke/*: Some invoke tests.
5769 * src/Makefile: Add ginvoke.c and the necessary
5772 * src/girepository.h (g_function_info_invoke): Add
5775 * src/ginvoke.c (g_function_info_invoke): Initial
5776 implementation of invoke functionality based on libffi.
5778 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5779 strings and types hash tables in the right order when
5781 (find_entry_node): Free the name parts.
5783 2005-05-12 Johan Dahlin <johan@gnome.org>
5785 * src/generate.c: Generate consistent end tags.
5789 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5793 * src/gidlparser.c (start_function): Actually add
5794 methods to objects. (Steven Walter)
5796 * src/girepository.h:
5797 * src/ginfo.c: Rename Transfer and Direction to
5798 GITransfer and GIDirection. (Torsten Schoenfeld)
5800 * tests/*: Make tests work with the changes in name
5803 * src/gidlnode.c (find_entry_node): Parse qualified
5804 names and generate xref nodes for them if needed. Don't
5805 require all modules to be loaded any more.
5807 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5810 * src/ginfo.c (g_object_info_get_parent): Return NULL
5811 if blob->parent is 0. Still need to make sure index
5814 * src/generate.c: Generate qualified names when
5815 referring to non-local types. Emit transfer attribute
5818 * src/compiler.c (format_output): Put the function
5819 attributes where gcc accepts them.
5821 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5823 * src/compiler.c (main): Add a --verbose cmdline option
5824 and only log messages if it is specified.
5827 * src/gidlnode.c (init_stats, dump_stats): Collect some
5828 statistics on string and type sharing.
5830 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5831 g_message() instead of fprintf().
5833 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5834 (g_idl_node_get_size): Implement for structs.
5835 (g_idl_node_get_full_size): Handle parent being NULL.
5836 (serialize_type): Handle lookup failures more gracefully.
5838 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5840 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5841 size calculation for 2-parameter types and for objects.
5843 * src/compiler.c: Add a cmdline option for debug output
5844 and install a log handler to implement it.
5845 * src/gidlnode.c: Add some debug spew.
5849 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5850 forget to count the module name when calculating the
5851 required size for the metadata.
5854 * src/gidlparser.c: Fix compiler warnings.
5856 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5858 * src/compiler.c (main): Free the option context.
5860 * gidl.dtd: Clean up handling of names. All elements
5861 have a "name", only the elements corresponding to
5862 actual callable functions (function, method, constructor),
5863 have an additional "symbol" attribute holding the
5864 dlsym()-able function name.
5866 * src/generate.c: Adapt to generate xml matching the
5870 * src/gidlnode.c: Adapt to parse the new dtd.
5872 * tests/*.test: Adjust to the new dtd.
5874 * metadata-format.txt:
5875 * src/gmetadata.h: Remove the short_name field
5877 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5878 * src/girepository.h:
5879 * src/ginfo.c (g_value_info_get_short_name): Removed
5881 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5883 * gidl.dtd: Allow constructors for boxed types,
5884 patch by Jonathan Blandford.
5887 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5889 * --- Initial import ---