1 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
3 Bug 566419 – Element type of arrays not properly handled in all cases
5 * giscanner/annotationparser.py:
6 * tests/scanner/annotation-1.0-expected.gir:
7 * tests/scanner/annotation-1.0-expected.tgir:
8 * tests/scanner/annotation.c (annotation_object_set_data),
9 (annotation_object_set_data2), (annotation_object_set_data3):
10 * tests/scanner/annotation.h:
12 Based on patch by Andreas Rottmann
14 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
16 Bug 566560 – giscanner.transformer.SkipError
18 * giscanner/transformer.py:
20 Catch SkipError for all nodes, not just functions.
21 Makes it possible to skip unsupported parameter types in
24 2009-01-12 Johan Dahlin <jdahlin@async.com.br>
26 Bug 563794 - Redo annotation parsing & applying
28 Thanks to Colin for helping out considerably in landing this.
30 * giscanner/Makefile.am:
32 * giscanner/dumper.py:
33 * giscanner/girparser.py:
34 * giscanner/giscannermodule.c (pygi_source_scanner_get_comments),
35 (calc_attrs_length), (pygi_collect_attributes), (init_giscanner):
36 * giscanner/glibtransformer.py:
37 * giscanner/scannerlexer.l:
38 * giscanner/sourcescanner.c (gi_source_symbol_unref),
39 (gi_source_scanner_new), (gi_source_scanner_free),
40 (gi_source_scanner_get_comments):
41 * giscanner/sourcescanner.h:
42 * giscanner/sourcescanner.py:
43 * giscanner/transformer.py:
44 * giscanner/xmlwriter.py:
45 * tests/scanner/annotation-1.0-expected.gir:
46 * tests/scanner/annotation-1.0-expected.tgir:
47 * tests/scanner/annotation.c:
48 * tests/scanner/annotation.h:
49 * tests/scanner/foo-1.0-expected.gir:
50 * tests/scanner/foo-1.0-expected.tgir:
51 * tests/scanner/foo.h:
54 This commit merges the annotation parser rewrite branch.
55 It'll change the annotation parsing to be done completely in python
56 code which will make it easier to do further annotation parsing
59 2009-01-03 Andreas Rottmann <a.rottmann@gmx.at>
61 Bug 563469 – Arrays not treated correctly in struct offset calculation
63 * tests/scanner/foo.h (FooObject): Added field `some_int'.
64 * tests/scanner/foo-1.0-expected.gir,
65 * tests/scanner/foo-1.0-expected.tgir: Adapted.
67 * giscanner/glibtransformer.py (GLibTransformer._create_gobject):
68 carry over object fields from original (struct) node.
69 (GLibTransformer._pair_class_struct): Don't add fields of the
70 class struct to to the node for the class, they should go under a
71 nested <record> element (see also Bug 551738). This is needed as
72 otherwise offset calculation would not work, as the instance
73 fields are mingled with the class fields without a way to
76 2009-01-03 Johan Dahlin <jdahlin@async.com.br>
79 Disable blank line check, it works differently under
80 Python 2.5 from 2.6 and was rather annoying from the start.
82 2008-01-03 Andreas Rottmann <a.rottmann@gmx.at>
84 Bug 556489 – callback annotations
86 * giscanner/transformer.py
88 * tools/generate.c (write_callable_info): Write out the new scope,
89 closure and destroy attributes.
91 * giscanner/transformer.py (Transformer._type_is_callback): New
92 method, checking if a given type is a callback.
93 (Transformer._augment_callback_params): New method; adds
94 information (closure, destroy) to callback parameters.
95 (Transformer._handle_closure, Transformer._handle_destroy): New methods,
96 auxiliary to _augment_callback_params.
97 (Transformer._create_function): Call _augment_callback_params().
98 (Transformer._create_parameter): Handle scope option.
100 (Transformer._create_typedef_callback): New method, creates a
101 callback, and registers it in the typedef namespace
102 (Transformer._create_typedef): Use _create_typedef_callback()
103 instead of the plain _create_callback().
105 * giscanner/ast.py (Parameter): Added callback-related fields.
106 * giscanner/girwriter.py: Write out new Parameter fields.
108 * girepository/girnode.h (GIrNodeParam): Added fields scope,
110 * girepository/gtypelib.h (ArgBlob): Ditto.
111 * girepository/girparser.c (start_parameter): Handle new fields.
113 * girepository/girmodule.c (g_ir_module_build_typelib): Adjust
114 arg_blob_size, bump major version due to this change.
115 * girepository/girnode.c (g_ir_node_get_full_size_internal)
116 (g_ir_node_build_typelib)
117 * girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
119 (g_ir_node_build_typelib): Fill in new ArgBlob flags from param.
121 * girepository/girepository.h (GIScope): New enumeration, listing
122 the different possible scopes for callbacks.
124 * girepository/ginfo.c (g_arg_info_get_scope)
125 (g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
126 callback-related argument indices (callback scope, closure for a
127 callback, destroy notification for a callback).
129 * tests/scanner/: Added testcases for new features.
131 2009-01-03 Jürg Billeter <j@bitron.ch>
134 * giscanner/dumper.py:
135 * giscanner/girparser.py:
136 * giscanner/glibtransformer.py:
137 * giscanner/sourcescanner.py:
138 * giscanner/transformer.py:
139 * giscanner/xmlwriter.py:
141 Fix inconsistencies with PEP8
143 2008-12-21 Johan Dahlin <jdahlin@async.com.br>
146 Annotate transfer, direction and allow none for
147 g_file_load_contents, g_file_load_contents_finish and
148 g_file_load_partial_contents_finish parameters.
150 2008-12-12 Owen Taylor <otaylor@redhat.com>
152 Disable array auto-detection for out-annotated parameters (#563934)
154 If we have a parameter annotated as (out), then having a ctype of
155 'char **' (or similar) doesn't necessarily indicate an array.
157 * giscanner/transformer.py: Skip array-detection logic for
158 (out)-annotated parameters.
159 * tests/scanner/annotation.h tests/scanner/annotation.c
160 tests/scanner/annotation-1.0-expected.gir
161 tests/scanner/annotation-1.0-expected.tgir: Add a test for
162 an (out) string parameter.
164 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
166 * giscanner/dumper.py (DumpCompiler._link): Pass in
167 --tag=CC to libtool to avoid making libtool confused
168 when CC is different from gcc on some systems.
170 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
172 Bug 563998 – Cache the GIBaseInfo for GTypes
174 * girepository/girepository.c (g_irepository_find_by_gtype):
175 add a cache of GType -> GIBaseInfo.
177 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
179 Bug 562545 – Add function taking / returning GValue
181 * tests/everything/everything.[ch]: add a test of function taking and
182 returning "const GValue *"
184 2008-12-09 Johan Dahlin <johan@async.com.br>
186 * giscanner/cachestore.py (CacheStore.store): Use
187 shutil.move instead of os.rename, since it will
188 automatically fall back to copying+remove if the
189 src directory is on a different partition from
192 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
194 Bug 563742 – introspection should record the introduced version of
195 symbols marked with the "Since:" tag
200 * giscanner/girwriter.py:
201 * giscanner/scannerlexer.l:
202 * giscanner/transformer.py:
203 * tests/scanner/annotation-1.0-expected.gir:
204 * tests/scanner/annotation-1.0-expected.tgir:
205 * tests/scanner/annotation.c (annotation_versioned):
206 * tests/scanner/annotation.h:
208 2008-12-08 Johan Dahlin <johan@async.com.br>
210 * giscanner/cachestore.py (_get_cachedir): Don't require
211 HOME to be set and if it set, don't require the
214 2008-12-08 Johan Dahlin <johan@async.com.br>
216 * giscanner/cachestore.py (CacheStore.store): Dump the cache
217 file to a temporary file and rename it the expected filename
218 only when it's completely written.
219 This should make the cache more roboust when run in parallel,
220 and hopefully avoid triggering bugs in Python.
222 2008-12-03 Christophe Fergeau <teuf@gnome.org>
224 Bug 562971 – g-ir-scanner failure on libgpod headers
226 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
227 default 16384. Without it, the lexer was aborting with a cryptic
228 error message on source files containing really long comment
231 2008-12-01 Colin Walters <walters@verbum.org>
233 * girepository/gfield.c: Fix memory leak; unref type info we
234 created, not field info
236 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
238 Bug 562289 – Race when removing invalid cache
240 * giscanner/cachestore.py:
241 ENOENT is mapped to a OSError, not IOError.
243 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
245 * gir/glib-2.0.c: Add return value transfer annotation
246 for g_markup_escape_text.
248 2008-11-25 Colin Walters <walters@verbum.org>
250 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
252 * giscanner/dumper.py: Implement it.
253 * gir/Makefile.am, tests/**/Makefile.am: Use it.
255 2008-11-25 Colin Walters <walters@verbum.org>
257 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
258 to just use a Makefile rule and dependencies. This corresponds with a change
259 made to gir-repository to fix srcdir != builddir issues.
261 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
264 Post release version bump
267 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
272 2008-11-25 Colin Walters <walters@verbum.org>
274 Bug 559705 – Missing association between static methods and classes
276 * docs/typelib-format.txt:
277 * girepository/ginfo.c (g_function_info_get_flags):
278 * girepository/girmodule.c (g_ir_module_build_typelib):
279 * girepository/girnode.c (g_ir_node_get_size),
280 (g_ir_node_build_typelib):
281 * girepository/girparser.c (start_function):
282 * girepository/gtypelib.c (g_typelib_check_sanity),
283 (validate_header), (validate_function_blob):
284 * girepository/gtypelib.h:
286 * giscanner/girwriter.py:
287 * giscanner/glibtransformer.py:
288 * tests/scanner/foo-1.0-expected.gir:
289 * tests/scanner/foo-1.0-expected.tgir:
290 * tests/scanner/foo.h:
292 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
294 * giscanner/ast.py: Define socklen_t as an alias for int32.
296 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
298 * girepository/gdump.c (dump_type): Remove a warning,
299 be less verbose on error on fundamental types.
301 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
303 * giscanner/dumper.py: Add license headers,
304 refactor into a class, avoid some duplication and do some
305 extra pedantic checks.
307 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
309 Make it compilable with -Werror on my system by adding
310 a couple of prototypes and including headers.
312 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
314 Bug 562022 – gobject-introspection needs python headers
316 * configure.ac: fail without python headers present.
319 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
321 Bug 561617 – Return value array annotations
323 * giscanner/transformer.py:
324 * tests/scanner/annotation.c (annotation_return_array):
325 * tests/scanner/annotation.h:
326 Add support for (array) for return value annotations as well.
328 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
330 * tests/everything/everything.[ch]: add a test function which calls a
333 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
335 * giscanner/cachestore.py:
336 Catch ValueError exceptions.
338 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
340 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
342 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
344 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
345 instead of hard-coding struct sizes.
347 2008-11-18 Owen Taylor <otaylor@redhat.com>
349 Bug 561296 - Add "storage type" to the typelib data for enums
351 In order to set and get enum and flag fields in structures, we need
352 to know the integral type that the enumeration is stored as. We are already
353 computing that at compile time in order to compute struct offsets, so the
354 easiest thing to do is to save that in the typelib.
356 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
357 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
358 and compute and save it at compile time.
360 * girepository/girepository.h girepository/ginfo.c:
361 Add g_enum_info_get_storage_type().
363 * girepository/gfield.c: Implement reading and writing enum and flags fields
364 based on the storage type.
366 2008-11-18 Owen Taylor <otaylor@redhat.com>
368 Add enums to the Everything test module
370 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
371 test module and register them as GTypes.
373 https://bugzilla.gnome.org/show_bug.cgi?id=561296
375 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
377 * giscanner/cachestore.py:
378 Catch BadPickleGet exceptions as well.
380 2008-11-17 Owen Taylor <otaylor@redhat.com>
382 * tests/everything/everything.c: Fix doc comment annotations
383 for test_struct_b_clone() to refer to the right function.
385 2008-11-17 Dan Winship <danw@gnome.org>
387 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
388 spelling of GHashTable. #561135
390 * tests/scanner/annotation.c (annotation_object_get_hash):
391 * tests/scanner/annotation-1.0-expected.gir:
392 * tests/scanner/annotation-1.0-expected.tgir: add a test of
393 GHashTable annotations
395 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
397 * giscanner/ast.py: Change string array match type to be in terms
398 of canonicalized type.
399 * giscanner/transformer.py: Add canonicalize_ctype which gives us
400 a version of a c:type without aliases, so we can deep canonicalize
401 char** to utf8*. Update parse_ctype to use it.
402 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
404 2008-11-16 Colin Walters <walters@verbum.org>
406 * girepository/girepository.c: Ensure we always call init_globals,
407 even if passed a non-default repository.
409 2008-11-16 Colin Walters <walters@verbum.org>
411 Bug 559706 - Interface prerequisites
413 * common.mk: Dep on libgirepository.la for scanner libs so that
414 we rebuild things even if just gdump.c changes.
415 * girepository/gdump.c: Dump prerequisites.
416 * giscanner/ast.py: Add prerequisite list.
417 * giscanner/girparser.py: Parse them from gdump.
418 * giscanner/girwriter.py: Write them.
419 * giscanner/glibtransformer.py: Resolve them.
422 2008-11-16 Owen Taylor <otaylor@redhat.com>
424 Bug 561087 - Respect is_pointer in serialize_type()
426 Add a '*' to the serialization for the cases where we set is_pointer
427 in the type blob we write out depending on node->is_pointer. Don't
428 add the '*' in the cases where is_pointer is set or not set in a
431 http://bugzilla.gnome.org/show_bug.cgi?id=561087
433 2008-11-16 Owen Taylor <otaylor@redhat.com>
435 Bug 560825 – Add size and alignment to typelib
437 Include the size and alignment of structures and unions in the typelib,
438 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
440 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
441 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
442 to StructBlob and UnionBlob.
444 * girepository/ginfo.c girepository/girepository.h:
445 Add g_[struct|union]_get[size|alignment]().
447 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
449 2008-11-16 Owen Taylor <otaylor@redhat.com>
451 Bug 552371 – implement struct field get/set
453 * girepository/gfield.c girepository/girepository.h: Add
454 convenience functions g_field_info_set_field() and
455 g_field_info_get_field() to set and get fields based on the
456 offsets in GIFieldInfo.
458 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
460 Bug 560241 - Out-arguments should not be marked as being pointers
463 * girepository/girparser.c: Improved logic for out arguments.
465 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
467 Bug 559601 - Pointers in structs/unions unduly treated as arrays
469 * giscanner/transformer.py: Differentiate type creation logic
470 between parameters and struct components.
472 2008-11-15 Colin Walters <walters@verbum.org>
474 * giscanner/dumper.py: Check return code from pkg-config
477 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
479 * tests/everything/everything.c (test_array_int_in),
480 (test_array_gtype_in):
481 * tests/everything/everything.h:
482 Rename the int/gtype array tests. Make the return value
483 useful, an aggregation of the array input values.
485 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
487 * tests/everything/Makefile.am:
488 * tests/everything/everything.c:
489 * tests/everything/everything.h:
490 * tests/everything/gitesttypes.c:
491 * tests/everything/gitesttypes.h:
492 Rename gitesttypes.[ch] to everything.[ch]
494 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
496 Bug 560708 – Don't treat arrays that have a length specified as
497 zero-terminated by default
499 * giscanner/transformer.py: Default to non zero terminated for
501 * tests/*: Update, add test for zero vs not.
503 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
505 Bug 557788 - Return types for constructors in generated typelib bogus
507 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
508 obviously broken in the face of duplicate names in different
510 * tests/scanner/*expected.gir: Fix up.
512 2008-11-13 Owen Taylor <otaylor@redhat.com>
514 * girepository/girffi.c: Fix "Unexpected time for time_t"
517 2008-11-13 Colin Walters <walters@verbum.org>
519 Bug 558436 - avoid having scanner load app code
521 * giscanner/cgobject.py: Delete; we no longer load shared
523 * giscanner/dumper.py: Support for linking a library to
524 a stub binary for introspection.
525 * giscanner/glibtransformer.py: Rewrite to use gdump XML
526 from invocation of child binary.
527 * giscanner/transformer.py: Fix up to use fully qualified
528 name in parse tree. Make parse_ctype public so we can use
529 it inside glibtransformer.
530 * tests/scanner/barapp.c: New test, using --program arg
532 * tests/*: Update to use common.mk for invoking scanner.
533 * tools/g-ir-scanner: Add options --program, --program-arg,
535 * docs/g-ir-scanner.1: Update.
537 2008-11-13 Colin Walters <walters@verbum.org>
539 * configure.ac: Depend on Gio, we use it in gdump.c.
540 * girepository/gdump.c: Code to dump GType data to XML.
541 * girepository/girepository.c: Add option group for dumping.
542 * girepository/girepository.h: Define API for the above.
544 2008-11-13 Colin Walters <walters@verbum.org>
546 * common.mk: Add a file to include with Makefile fragments
547 useful for scanner invocation.
549 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
551 * tests/everything/gitesttypes.c (test_filename_return): Return
552 strings in filename encoding.
554 2008-11-13 Owen Taylor <otaylor@redhat.com>
556 Bug 560253 – Add structure and boxed types to Everything test module
558 * tests/everything/gitesttypes.[ch]: Add examples of:
560 Plain old data structs
561 Plain old data structs with nested fields
563 Plain old data boxed with nested fields
564 More complicated boxed types with internal state
566 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
568 * tests/everything/gitesttypes.c (test_gtype_in):
569 * tests/everything/gitesttypes.h:
570 Add a test of GType arrays, a la gtk_list_store_set_columns.
572 2008-11-12 Owen Taylor <otaylor@redhat.com>
574 Bug 560419 – Cache includes when parsing
576 Keep track of all modules parsed within a GIrParser, and when a
577 module is referenced a second time, use the existing parsed copy
578 instead of reparsing.
580 2008-11-12 Owen Taylor <otaylor@redhat.com>
582 Fix management of ParseContext.includes_modules (#560419)
584 * girepository/girparser.c: Fix some trivial bugs in managing the
585 list of include modules. (Add to module's list twice, not
586 initialized to NULL, not freed.)
588 2008-11-12 Owen Taylor <otaylor@redhat.com>
590 Keep aliases and disguised_structures local to each module (#560419)
592 * girepository/girmodule.[ch]: When parsing, keep keep a separate
593 hash tables of aliases and 'disguised' flags for each module, and
594 store that on the module.
596 After parsing an include merge the aliases/disguised flags to the
599 * girepository/girparser.c: Remove 'prefix_aliases' flag and
600 always prefix aliases/disguised structure types when parsing; this
601 simplifies the code considerably.
603 2008-11-12 Owen Taylor <otaylor@redhat.com>
605 Fix mismatches between .gir name and 'name' attribute (#560419)
607 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
608 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
609 where the 'name' element of <namespace/> didn't match the filename of the
610 gir, an assumption that the compiler has always expected and now enforces.
612 2008-11-12 Owen Taylor <otaylor@redhat.com>
614 Only allow one <namespace/> element per <repository/> (#560419)
616 * girepository/girparser.c: The logic in girparser.c didn't work
617 very well if there were multiple <namespace/> nodes within a
618 single <repository/> (context->namespace was always the overall
619 filename and not the the name specified in the <namespace/>
620 element for one thing; this would cause aliases to be mis-prefixed
621 in include modules.) Also check that the "name" in the
622 <namespace/> node matches the filename.
624 2008-11-12 Owen Taylor <otaylor@redhat.com>
626 Add a GirParser object to hold the state of a compilation
628 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
629 GirParser object to hold state that is global across a
630 compilation. Currently just holds the include path, but will
631 eventually also keep a cached list of parsed modules.
633 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
635 * girepository/girepository.c (find_namespace_latest): Fix
638 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
640 * configure.ac: use 'introspection' component for bugs
642 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
644 * tests/everything/gitesttypes.c (test_filename_return):
645 * tests/everything/gitesttypes.h:
646 Add a filename return test.
648 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
650 * tests/offsets/Makefile.am (gitestoffsets.c): fix
651 gen-gitestoffsets invocation with builddir != srcdir
653 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
655 * girepository/girepository.c:
656 Change the element type from utf8 to filename
657 * girepository/girnode.c (g_ir_node_build_typelib):
658 Special case filename equally to utf8 here.
660 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
663 Remove unused variables, add a dependency of girepository.ch, so when
664 they change we rebuild the gir automatically.
666 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
668 * girepository/girepository.c (g_irepository_get_search_path):
669 * girepository/girepository.h:
670 Add a g_irepository_get_search_path, so we can access the search
673 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
675 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
677 * girepository/girparser.c: avoid freeing an uninitialized pointer
679 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
682 * giscanner/glibtransformer.py:
683 * tools/g-ir-scanner:
684 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
685 so we can just pass in --library=foo/bar/baz.la and the scanner
686 does the right thing.
687 Don't warn for _get_type() functions if they don't take any
690 2008-11-11 Owen Taylor <otaylor@redhat.com>
692 Bug 560404 – Prefix types when resolving aliases in included modules
694 * girepository/girparser.c: When resolving aliases in an included
695 module, prefix types before looking them up.
697 2008-11-11 Owen Taylor <otaylor@redhat.com>
699 Compute field offsets and overall size for object structures
701 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
702 field of type object in structure"
704 Do basic computation of field offsets for objects and interfaces;
705 this doesn't attempt to address all of the "mess" for virtual
706 functions described in Bug 560281.
708 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
710 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
712 Based on patch by Johan Bilien.
714 * giscanner/transformer.py (_create_member, _create_parameter):
715 Resolve types here as well.
716 (_resolve_type_name_1): Try resolving using 'ctype' first since
717 it's least ambiguous. Fixes struct member type resolution with
718 similarly named types, e.g. Gdk.PangoRendererClass and
720 * tests/scanner/foo*: Add test.
722 2008-11-11 Owen Taylor <otaylor@redhat.com>
724 * girepository/girparser.c: Search provided include dirs before
725 the default directories.
727 2008-11-11 Owen Taylor <otaylor@redhat.com>
729 * girepository/giroffsets.c: Include fully-qualified names in
732 2008-11-11 Owen Taylor <otaylor@redhat.com>
734 * girepository/giroffsets.c: Fail gracefully with an informative
735 error message when recursion is encountered when computing a
738 2008-11-11 Owen Taylor <otaylor@redhat.com>
740 * girepository/girparser.c: Remove an unused variable.
742 2008-11-10 Owen Taylor <otaylor@redhat.com>
744 Add tests for field offset computations
746 * tests/offsets/offsets.h: Header file with structure definitions to test
748 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
749 field offsets for the structures in offsets.h two ways: using
750 the information from a generated typelib, and as computed by the
753 We diff these two versions to test that everything is OK.
755 2008-11-10 Owen Taylor <otaylor@redhat.com>
757 Remove field offsets from g-ir-generate output and test inputs
759 Field offsets are a) architecture dependent so they shouldn't be part
760 of the architecture-independent gir format which is installed in
761 datadir. b) Are architecture-dependent so they shouldn't be in test
764 * girepository/girparser.c: Don't parse offset for fields
765 * tools/generate.c: Don't parse offset for fields
766 * tests/*.gir test/scanner/*.tgir: Remove offsets
768 (Virtual function and discriminator offsets are not removed, as they
769 aren't fully hooked up to the field-offset computation machinery yet.)
771 2008-11-10 Owen Taylor <otaylor@redhat.com>
773 Bug 560252 - Compute field offsets before writing typelib
775 * girepository/girnode.h: Store the total size and alignment for
776 GIrNodeStruct/Boxed/Union.
778 * girepository/giroffset.c: New file implementing computation of
779 structure field offsets.
781 * girepository/girnode.c: Compute structure field offsets before
782 writing types into the typelib.
784 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
785 means "unknown". Also fix description of the discriminator_offset
788 2008-11-10 Owen Taylor <otaylor@redhat.com>
790 Bug 560250 - Fully parse included modules
792 For some things, like computing structure offsets to put into the typelib
793 we need more than just the aliases from included modules. Do a completel
794 parse of included modules and store in module->included_modules.
796 Also add g_ir_find_node() to find node information from within the
797 active set of modules and their includes.
799 2008-11-10 Owen Taylor <otaylor@redhat.com>
801 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
803 Extract a function to convert GITypeTag to ffi_type from the internals
804 of ginvoke.c. This will be useful in figure out structure alignment.
806 Also fix handling of gsize and time_t to be portable. (Add a check
807 to configure.ac to figure out the width of time_t.)
809 2008-11-10 Owen Taylor <otaylor@redhat.com>
811 Bug 560248 – "disguised structures"
813 Certain types like GIConv and GdkAtom are pointers internally but don't
814 look like pointers when referenced. They have the form.
816 typedef struct _X *X;
818 Parse these as structures/records but mark them in the gir with a 'disguised'
819 attribute so that we know that they need special handling.
821 In the typelib treat them like any other structure.
823 2008-11-09 Jürg Billeter <j@bitron.ch>
826 * giscanner/girwriter.py:
828 Write throws attribute for virtual functions, fixes bug 559703
830 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
832 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
833 up some confusion about the second argument to find_module, it's
834 actually the packages __path__ attribute which we can safely ignore
836 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
838 2008-11-07 Owen Taylor <otaylor@redhat.com>
840 Bug 559737 – Deal with continuations in macros
842 * giscanner/giscannerlexer.l: Treat continuation lines the same
843 as regular newlines. This makes the scanner not complain about
844 #define foo(x) \ <stuff> inside a C file. There's no attempt
845 however to handle parsing macro definitions split across lines.
847 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
849 * giscanner/cachestore.py:
850 Handle broken cache entries, write only filesystems and
851 running out of diskspace.
853 2008-11-07 Owen Taylor <otaylor@redhat.com>
855 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
856 Set current_filename before lexing the file so error messages
857 are reported in the right file.
859 2008-11-06 Colin Walters <walters@verbum.org>
861 * tests/everything/*: Add some tests for strv.
863 2008-11-05 Colin Walters <walters@verbum.org>
865 * girepository/ginvoke.c (g_function_info_invoke): Don't use
866 nested scope local variable for error which may go away after
867 conditional is complete.
869 2008-11-05 Colin Walters <walters@verbum.org>
871 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
872 manipulate hackily; just use GString. This avoids an
873 uninitialized memory read pointed out by Havoc.
875 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
877 * giscanner/__init__.py:
879 * giscanner/cachestore.py:
880 * giscanner/cgobject.py:
881 * giscanner/girparser.py:
882 * giscanner/girwriter.py:
883 * giscanner/giscannermodule.c:
884 * giscanner/glibast.py:
885 * giscanner/glibtransformer.py:
886 * giscanner/libtoolimporter.py:
887 * giscanner/minixpath.py:
888 * giscanner/odict.py:
889 * giscanner/sourcescanner.c:
890 * giscanner/sourcescanner.h:
891 * giscanner/sourcescanner.py:
892 * giscanner/transformer.py:
893 * giscanner/utils.py:
894 * giscanner/xmlwriter.py:
896 Relicense the giscanner library under LGPLv2+.
897 This has been approved by all contributors.
899 2008-11-01 Owen Taylor <otaylor@redhat.com>
901 Bug 558848 giparser.py: shared library should be optional
903 When parsing a .gir, allow the shared-library attribute
904 of <namespace/> to be missing: this corresponds to the handling
905 in libgirepository and elsewhere.
907 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
909 Bug 557898 – Fails to build on OSX 10.4
911 * configure.ac: Check for $shrext_cmds that should be implicitly
912 available if you're using libtool >= 2.0. If undefined, call
913 libtool --config explicitly to get its value.
914 * girepository/gtypelib.c: Remove special case for (non-)Darwin
917 2008-10-31 Colin Walters <walters@verbum.org>
919 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
921 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
923 * configure.ac: Post release version bump
926 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
930 * docs/release-checklist.txt:
933 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
935 * Makefile.am: add an upload-release target
936 * docs/release-checklist.txt:
937 Release process documentation
939 2008-10-31 Colin Walters <walters@verbum.org>
941 Bug 558109 – _g_typelib_init fails to find shared libraries
943 * transformer/glibtransformer.py: Use ctypes' find_library
944 on passed libraries and write that for the shared-library
945 entry. We want to avoid depending on -devel packages.
947 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
949 * docs/g-ir-scanner.1:
950 Document the renaming options.
952 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
954 * giscanner/Makefile.am:
955 * tests/invoke/Makefile.am:
956 * tests/repository/Makefile.am: List in-tree libraries first in
957 LDADD / LIBADD. If installed library is listed first, the
958 resulting binary will prefer installed version to one in .libs,
959 possibly making 'make check' behave strangely.
961 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
963 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
964 gir-repository from choking with gdk/quartz
966 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
968 * giscanner/giscannermodule.c (calc_attrs_length),
969 (pygi_collect_attributes):
970 * giscanner/xmlwriter.py:
971 Write a C version of the xml namespace formatter.
972 Saves 15% of the time it takes to create a gtk gir.
974 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
976 * giscanner/xmlwriter.py: Abstract attribute formatting
977 to a function external to the XMLWriter class.
979 * giscanner/scannerlexer.l:
980 Parse and discard __typeof and __attribute.
982 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
984 * giscanner/girparser.py:
985 Remove arguments from the constructor, move them to
986 separate accessors. Add a new parse_tree method
987 which takes an element tree instance.
988 * tools/g-ir-scanner:
989 Update callsite for this
991 * giscanner/Makefile.am:
992 * giscanner/cachestore.py:
993 * giscanner/transformer.py:
994 Cache the include parsing. Saves ~25% time when
995 creating vte (which includes everything up to gtk+).
997 2008-10-30 Colin Walters <walters@verbum.org>
999 * giscanner/transformer.py: Don't reparse includes
1000 we've already processed.
1002 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1004 * giscanner/girparser.py:
1005 * giscanner/transformer.py:
1006 Avoid parsing parameters, types etc when parsing
1007 includes. Should speed up include parsing a bit.
1009 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1011 * giscanner/girparser.py:
1012 Avoid big if/else and use a dispatch table like
1015 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1017 * giscanner/transformer.py:
1018 Clean up include parsing and registration.
1020 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1022 * giscanner/transformer.py:
1025 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
1027 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
1030 construct PYTHONPATH just once
1032 * tests/everything/Makefile.am:
1033 * tests/scanner/Makefile.am:
1034 add $(top_srcdir) to PYTHONPATH to
1035 handle builddir != srcdir
1037 * giscanner/libtoolimporter.py:
1038 * giscanner/sourcescanner.py:
1039 Make the libtoolimporter work when distchecking too.
1041 Mostly based on patch by Tommi Komulainen
1043 2008-10-29 Owen Taylor <otaylor@redhat.com>
1045 * giscanner/glibtransformer.py: If a filename of an existing
1046 file is passed to --library, hunt for it directly, rather than
1047 searching for a corresponding library.
1049 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
1051 * giscanner/libtoolimporter.py:
1052 * giscanner/sourcescanner.py:
1053 Clean up the libtool importer a bit. Add a context so we
1054 can use it through a with statement.
1055 Don't just look in the current directory, look in the whole
1058 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
1060 Bug 558065 – gitesttypes should be installed
1063 * tests/Makefile.am:
1064 * tests/types/Makefile.am -> tests/everything/Makefile.am
1065 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
1066 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
1067 move tests/types to tests/everything
1069 * tests/everything/Makefile.am: build normal shared library
1070 libgirepository-everything.so.1.0.0 and corresponding typelib
1071 Everything-1.0.typelib
1073 * tests/everything/Makefile.am: explicitly link libtool
1074 versioning with typelib versioning with variables
1076 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
1078 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
1080 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1082 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
1085 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1087 Bug 558068 – when invoking a method, offset the in arguments by one,
1090 * tests/invoke/invoke.c, tests/invoke/testfns.c,
1091 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
1092 * girepository/ginvoke.c: do not offset the index of given out
1093 arguments by one for methods, "this" is provided as in argument only.
1095 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1097 * gir/gio-2.0.c: add annotation for g_file_delete
1099 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
1101 Bug 558062 – provide and use paths in the .pc file
1103 * gobject-introspection-1.0.pc.in: provide typelibdir variable
1104 for where .typelibs should be installed (callers shouldn't need
1105 to construct paths from bits and pieces)
1107 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1109 Bug 557791 – g_irepository_require() could return a GTypelib *
1111 * girepository/girepository.c: Return GTypelib; this is useful
1112 for low level manipulation.
1114 2008-10-25 Colin Walters <walters@verbum.org>
1116 Bug 557788 – Return types for constructors in generated typelib bogus
1118 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
1119 rely on end pass resolution.
1121 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1123 Bug 557786 - support fixed size arrays
1125 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
1126 * giscanner/scannerparser.y: Retain fixed array size.
1127 * giscanner/ast.py: Add to note.
1128 * giscanner/girwriter.py: Write to gir.
1129 * girepository/girnode.c: Write it to typelib.
1130 * tools/generate.c: Generate.
1131 * tests/*: Add tests.
1133 2008-10-25 Colin Walters <walters@verbum.org>
1135 Bug 557076 - move typelibs to $libdir
1137 * configure.ac: Steal some configury bits from dbus to expand
1139 * gir/Makefile.am: Move to libdir.
1140 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
1141 instead just look at one hardcoded path in libdir.
1142 * acinclude.m4: Bits from dbus.
1144 2008-10-24 Johan Dahlin <johan@gnome.org>
1146 * girepository/girnode.c (g_ir_node_check_unhandled_members):
1147 Be quiet, do not warn about unhandled members.
1149 2008-10-24 Johan Dahlin <johan@gnome.org>
1151 * girepository/gtypelib.c:
1152 Only use SHLIB_SUFFIX on darwin, otherwise use
1153 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1155 2008-10-24 Lucas Rocha <lucasr@gnome.org>
1157 Bug 557623 - Constructors shouldn't be flagged as methods.
1159 * girepository/ginfo.c (g_function_info_get_flags): ditto.
1161 2008-10-24 Johan Dahlin <johan@gnome.org>
1163 * giscanner/scannerparser.y:
1164 Check against division by zero for the modula operator.
1165 This fixes header parsing of OSX system headers included
1168 2008-10-24 Johan Dahlin <johan@gnome.org>
1172 Add a CONTRIBUTORS file and dist it.
1174 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1176 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1178 * girepository/girparser.c (parse_param_transfer):
1179 * giscanner/transformer.py (_create_parameter, _create_return):
1180 * giscanner/girwriter.py (_write_return, _write_parameter):
1181 * tools/generate.c (write_callable_info): always write and
1182 require "transfer-ownership" for return-values and parameters
1185 * tests/invoke/testfns-1.0.gir:
1187 * tests/scanner/DrawableAdditions.xml:
1188 * tests/scanner/GtkFrob-1.0-expected.tgir:
1189 * tests/scanner/annotation-1.0-expected.tgir:
1190 * tests/scanner/drawable-1.0-expected.tgir:
1191 * tests/scanner/drawable-injected-1.0-expected.gir:
1192 * tests/scanner/drawable-injected-1.0-expected.tgir:
1193 * tests/scanner/foo-1.0-expected.tgir: Updated
1195 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1197 * giscanner/cgobject.py: build fundamental types same way as glib
1199 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1200 when constructing the Type from it
1202 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1203 the parameter is a GObject from its GType, if available.
1205 * giscanner/glibtransformer.py (_adjust_transfer):
1206 * tests/scanner/foo-1.0-expected.gir:
1207 * tests/scanner/foo-1.0-expected.tgir: deduce
1208 transfer-ownership from GTypes
1210 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1212 * giscanner/transformer.py (_create_parameter):
1213 * tests/scanner/foo-1.0-expected.gir: make varargs
1214 transfer-ownership="none"
1216 2008-10-23 Colin Walters <walters@verbum.org>
1218 Bug 556739 - transfer ownership
1220 * giscanner/ast.py: Refactor Parameter/Return to share
1221 common attributes. Add transfer_inferred attribute
1222 which says whether or not we made a guess.
1223 * giscanner/transformer.py: Add much more extensive
1224 heuristics around parameter and return transfer.
1225 * giscanner/glibtransformer.py: Adjust to inspect
1229 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1231 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1233 * tests/scanner/Makefile.am:
1234 * tests/scanner/annotation-1.0-expected.tgir:
1235 * tests/scanner/drawable-1.0-expected.tgir:
1236 * tests/scanner/drawable-injected-1.0-expected.tgir:
1237 * tests/scanner/foo-1.0-expected.tgir:
1238 * tests/scanner/GtkFrob-1.0-expected.tgir:
1239 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1240 annotations survive the roundtrip via typelib
1242 The expectations are as currently produced by g-ir-generate,
1243 comparison with the .gir files shows there are differences.
1245 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1247 Bug 557468 – Support for GI_TYPELIB_PATH
1249 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1250 provided paths to the global search path.
1252 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1254 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1256 * tests/scanner/drawable-1.0-expected.tgir:
1257 * tests/scanner/drawable-injected-1.0-expected.tgir:
1258 * tests/scanner/foo-1.0-expected.tgir:
1259 * tools/generate.c (write_object_info): write 'abstract'
1260 attribute for classes
1262 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1264 * girepository/girmodule.c, girepository/gtypelib.c,
1265 girepository/girparser.[ch]: fix some build warnings.
1267 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1269 Bug 557405 – Use 'allow-none' consistently
1271 * docs/typelib-format.txt:
1272 * girepository/ginfo.c (g_arg_info_may_be_null):
1273 * girepository/girnode.c (g_ir_node_build_typelib):
1274 * girepository/girnode.h (struct _GIrNodeParam):
1275 * girepository/girparser.c (start_parameter):
1276 * girepository/girwriter.c (function_generate):
1277 * girepository/gtypelib.h (ArgBlob):
1279 * tests/function.gir:
1280 * tools/generate.c (write_callable_info): Use 'allow-none'
1281 consistently throughout
1283 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1285 Bug 557092 – Callback annotations not used
1287 * giscanner/transformer.py (_create_callback): use annotations
1289 * tests/scanner/annotation.h
1290 * tests/scanner/annotation-1.0-expected.gir: add tests
1292 2008-10-21 Colin Walters <walters@verbum.org>
1294 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1295 uncommented parameters.
1298 2008-10-21 Colin Walters <walters@verbum.org>
1300 * girepository/girepository.c: Ensure that when doing an unversioned
1301 require, we prefer items earlier in the search path to later ones.
1303 2008-10-21 Owen Taylor <otaylor@redhat.com>
1305 * giscanner/transformer.py: For string parameters allow transfer annotation
1306 to override the standard automatic guessing based on 'const'.
1308 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1310 Bug 557241 – "throws" flag for functions
1312 * tests/scanner/drawable-1.0-expected.gir,
1313 tests/scanner/drawable-injected-1.0-expected.gir,
1314 tests/scanner/drawable.[ch]: add simple test for throwing
1315 function (has GError ** as last argument)
1317 * giscanner/ast.py: add a 'throws' flag to Function
1318 * giscanner/glibtransformer.py: if a function's last paramerter is
1319 a GError, set the 'throws' flag and remove that parameter
1320 * giscanner/girwriter.py: write out the 'throws' attribute
1321 * giscanner/girparser.py: support parsing the 'throws' attribute
1323 * tests/repository/gitestthrows.c: add a simple test to check the
1324 throws flag in a typelib and invoke the function
1326 * girepository/ginfo.c, girepository/girnode.[ch],
1327 girepository/girnode.h, girepository/girparser.c,
1328 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1330 * girepository/ginvoke.c: if a function throws, add a GError as last
1331 arguments, and propagate the error to the invoker.
1333 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1335 * giscanner/transformer.py (_create_parameters): Warn if we see
1336 annotations for unknown parameters. If .h and .c files name
1337 parameters differently, the annotations may be lost.
1339 2008-10-21 Johan Dahlin <johan@gnome.org>
1341 Bug 556358 - don't use libtool internals
1343 * giscanner/Makefile.am:
1344 * giscanner/libtoolimporter.py:
1345 * giscanner/sourcescanner.py:
1346 * giscanner/utils.py:
1347 Add a python meta importer and remove a libtool symlink hack.
1349 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1351 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1352 and --add-include-path appropriately when invoking the scanner.
1353 * tests/types/Makefile.am (%typelib): Likewise.
1355 2008-10-20 Colin Walters <walters@verbum.org>
1357 Bug 556777 - validate properties
1359 * giscanner/transformer.py: Add option to throw on unknown types.
1360 * giscanner/glibtransformer.py: Use it on properties.
1361 * tests/*: Add a test.
1363 2008-10-20 Colin Walters <walters@verbum.org>
1365 * giscanner/glibast.py: Also register g variants of
1366 default_array_types. This is not beautiful, but
1367 good alternatives aren't easy to come by.
1368 This fixes gchar ** parsing.
1370 2008-10-20 Colin Walters <walters@verbum.org>
1372 * docs/typelib-format.txt, girepository/gtypelib.h:
1373 Take a bit from ObjectInfo to represent abstract flag.
1374 * giscanner/cgobject.py: Expose g_type_get_flags.
1375 * girepository/girepository.h: Add accessor.
1376 * girepository/ginfo.c: Implement it.
1377 * giscanner/ast.py: Add is_abstract flag to generic
1379 * giscanner/glibast.py: Use it.
1380 * giscanner/girwriter.py: Write it.
1381 * girepository/girparser.c: Parse it.
1384 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1386 * giscanner/girparser.py (_parse_function): don't lose
1387 'transfer-ownership' attributes when injecting, check for the
1390 2008-10-19 Johan Dahlin <johan@gnome.org>
1392 * giscanner/scannerlexer.l: Parse and ignore __asm.
1394 2008-10-19 Colin Walters <walters@verbum.org>
1396 * giscanner/girparser.py: Parse array length= to ensure
1397 it doesn't get lost from --inject.
1399 2008-10-17 Colin Walters <walters@verbum.org>
1401 Bug 556795 - char ** regression
1403 * giscanner/transformer.py: Fix parsing of ctypes, add some
1404 comments about what's going on.
1405 * tests/*: Add a test for char **.
1407 2008-10-17 Colin Walters <walters@verbum.org>
1409 Bug 556783 - change namespace handling to be more consistent
1411 * giscanner/transformer.py: Eliminate usage of
1412 strip_namespace_object. We now treat --namespace as the default
1413 --strip-prefix; however, if --strip-prefix is specified it
1414 overrides --namespace. This applies to everything except function
1415 names, where we do also strip the namespace.
1416 * giscanner/glibtransformer.py: Remove usage of
1417 strip_namespace_object.
1419 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1420 --namespace and --strip-prefix.
1422 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1424 Bug 556732 – generate gir files consistently
1426 * girepository/girparser.c (start_parameter):
1428 * tests/invoke/testfns-1.0.gir:
1429 * tools/generate.c (write_callable_info): write
1430 'transfer-ownership' attribute consistently with both
1431 return-value and parameter elements
1433 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1435 Bug 556732 – generate gir files consistently
1437 * tools/generate.c (write_callable_info): write 'direction'
1438 attribute only if other than 'in' to be consistent with
1441 * tests/object.gir: remove direction="in" which is the default
1443 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1445 Bug 556732 – generate gir files consistently
1447 * giscanner/ast.py (Field): add readable and writable properties
1448 * giscanner/girparser.py (_parse_field): copy 'readable' and
1449 'writable' attributes
1450 * giscanner/transformer.py (_create_member): create fields as
1452 * giscanner/glibtransformer.py (_introspect_object,
1453 _pair_class_struct): make object instance and class fields
1455 * giscanner/girwriter.py (_write_field):
1456 * tools/generate.c (write_field_info): write field 'readable'
1457 and 'writable' attributes only if non-default (read-only)
1458 * girepository/girparser.c (start_field): in the absence of
1459 attributes assume fields are read-only
1461 * tests/struct.gir: remove redundant readable="1" from fields
1462 * tests/scanner/foo-1.0-expected.gir:
1463 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1464 all record and union fields
1466 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1468 Bug 556732 – generate gir files consistently
1470 * giscanner/girwriter.py (_write_property): write properties
1471 'construct' attribute if set
1472 * tools/generate.c (write_property_info): write properties
1473 'readable' and 'writable' attributes only if non-default
1474 * tests/object.gir: add writable="0"
1475 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1477 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1479 * gir/glib-2.0.c: added annotations
1481 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1483 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1486 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1488 Bug 556610 – giscanner/girparser.py drops parameter options
1490 * tests/scanner/drawable-injected-1.0-expected.gir,
1491 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1492 * giscanner/ast.py: allow Parameter to take options in the constructor
1493 * giscanner/girparser.py: parse parameter options (transfer,
1494 direction, allow-none)
1496 2008-10-16 Colin Walters <walters@verbum.org>
1498 Bug 556185 - segfault on g_callable_info_get_return_type
1500 Initial patch from John Ehresman.
1502 * tests/repository/*: Add a test using
1503 g_callable_info_get_return_type. Instead of casting a
1504 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1505 to call g_type_info_get_interface.
1507 2008-10-16 Colin Walters <walters@verbum.org>
1509 Bug 556579 - union and struct name misresolved
1511 * giscanner/transformer.py: The calls to _resolve_type_name
1512 for struct/union names was a legacy holdover from when type
1513 resolution had multiple phases. Now it's actively harmful
1514 since we might pull in an identical name from another
1518 2008-10-16 Colin Walters <walters@verbum.org>
1520 Bug 556432 - transfer annotations and defaults
1522 * giscanner/transformer.py: Canonicalize type
1523 after removing *, not before. This ensures that
1524 guchar* is transformed to 'uint8'.
1525 Add some comments here.
1526 * giscanner/glibtransformer.py: Add _adjust_transfer
1527 phase for tweaking GObject transfers.
1530 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1532 * configure.ac: enable bunch of gcc warning CFLAGS
1534 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1536 Bug 556543 – reduce compiler warnings
1538 * girepository/ginfo.c:
1539 * girepository/girepository.c (register_internal,
1540 count_interfaces, find_interface, find_namespace_version,
1541 parse_version, g_irepository_require):
1542 * girepository/girmodule.c (g_ir_module_build_typelib):
1543 * girepository/girnode.c (init_stats, dump_stats,
1544 _g_irnode_init_stats, _g_irnode_dump_stats,
1545 g_ir_node_can_have_member):
1546 * girepository/girparser.c (firstpass_end_element_handler,
1547 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1548 start_alias, start_type, end_type_top, parse_include, cleanup,
1550 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1551 * giscanner/giscannermodule.c (directive_get_options,
1552 type_get_child_list):
1553 * giscanner/scannerlexer.l (parse_gtkdoc):
1554 * giscanner/scannerparser.y (ctype_free):
1555 * giscanner/sourcescanner.c:
1556 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1557 * tests/types/gitesttypes.c:
1558 * tools/compiler.c (main):
1559 * tools/generate.c (write_repository): Remove unused variables
1560 and code, add missing includes, declarations and case
1563 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1565 Bug 556541 – access union members through UnionBlob rather than
1568 * girepository/ginfo.c (g_union_info_find_method): access union
1569 members through UnionBlob rather than StructBlob
1571 2008-10-15 Colin Walters <walters@verbum.org>
1573 Bug 556331 - clean up includes handling
1575 * tools/g-ir-scanner: Rework command line arguments; now we take
1576 --add-include-path and --include separately.
1577 * giscanner/girwriter.py: Separate name= and version= in include
1579 * giscanner/ast.py: Add Include type.
1580 * giscanner/transformer.py: Cleanups to register_include now that
1581 we don't need to handle mixed filenames and relative arguments.
1582 * girepository/girparser.c: Parse name and version separately;
1583 this fixes a bug as a side effect where we weren't resolving
1584 through aliases for basic types.
1585 * girepository/girepository.c: Fix format string args.
1586 * gir/Makefile.am: Update.
1589 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1591 Bug 556434 – unhandled interface/object/... member types
1593 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1594 g_ir_node_build_typelib): Check all
1595 interface/object/boxed/struct/union members are processed and
1596 abort if they are not. (Mostly callbacks in structs, but also
1597 fields in interfaces.)
1599 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1601 * a/girepository/girnode.c (g_ir_node_build_members,
1602 g_ir_node_build_typelib): refactor common code for processing
1603 members to a function
1605 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1607 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1608 transformation is lossless (it's not)
1610 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1612 * tests/Makefile.am: fix tests to compare xml to xml instead of
1613 typelib to xml, and stop on error
1615 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1617 * tools/generate.c (write_type_name, write_type_info,
1618 write_type_info, write_object_info, write_object_info,
1619 write_interface_info, write_error_domain_info): reduce code
1622 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1624 Bug 556174 – parse types for lists etc.
1626 * girepository/girparser.c (end_type_recurse):
1628 * tools/generate.c (write_type_info, write_field_info,
1629 write_callable_info, write_callable_info, write_constant_info,
1630 write_property_info): use nested <type>s for lists and hashes
1632 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1635 * tests/object.gir: remove trailing whitespace from inside
1636 elements to match g-ir-generate output
1638 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1640 * tools/generate.c (xml_printf): quote printf arguments so that
1641 we don't generate invalid XML by writing unescaped double quotes
1642 and such in attributes
1644 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1646 * tools/generate.c (write_field_info, write_callable_info,
1647 write_function_info, write_callback_info, write_struct_info,
1648 write_constant_value, write_signal_info, write_vfunc_info,
1649 write_object_info, write_interface_info, write_union_info,
1650 write_repository): remove unused indent parameters, xmlwriter
1651 keeps track of necessary indentation
1653 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1655 * tools/generate.c (xml_element_new, xml_element_free,
1656 xml_start_element, xml_end_element, xml_end_element_unchecked,
1657 xml_open, xml_close): Keep track of generated XML tree and
1658 handle indentation and closing tags properly.
1659 (write_field_info, write_callable_info, write_function_info,
1660 write_callback_info, write_struct_info, write_value_info,
1661 write_constant_info, write_enum_info, write_signal_info,
1662 write_vfunc_info, write_property_info, write_object_info,
1663 write_interface_info, write_error_domain_info, write_union_info,
1664 write_repository): Use xml_start_element and xml_end_element to
1667 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1669 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1670 (write_type_name, write_type_info, write_field_info,
1671 write_callable_info, write_function_info, write_callback_info,
1672 write_struct_info, write_value_info, write_constant_value,
1673 write_constant_info, write_enum_info, write_signal_info,
1674 write_vfunc_info, write_property_info, write_object_info,
1675 write_interface_info, write_error_domain_info, write_union_info,
1676 write_repository): wrap all FILE access to go through simple xmlwriter
1678 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1680 Bug 556400 – Fails to build on OS X 10.4
1682 * configure.ac: check for functions backtrace and backtrace_symbols
1683 * girepository/girparser.c (backtrace_stderr): Comment out
1684 implementation if the functions are not available.
1685 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1686 directory for better portability
1688 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1690 Bug 556433 – assume direction = out for int * parameters
1692 * giscanner/ast.py: define a list of types for which, if passed as
1693 reference, we assume a default direction of 'out'
1694 * giscanner/transformer.py: if a type has type pointer to one of the
1695 previously defined types, and no direction is set, assume out.
1696 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1698 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1700 * tests/scanner/annotation.c: fixed a few copy-paste errors
1702 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1704 Bug 556323 – transfer-ownership is wrong for functions returning const
1707 * giscanner/transformer.py: check for a const string as return value,
1708 not just const char*. Suggested by Colin Walters
1709 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1711 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1713 * girepository/ginfo.c, girepository/girepository.h: add
1714 g_union_info_find_method
1716 2008-10-14 Colin Walters <walters@verbum.org>
1718 * tests/repository/Makefile.am: Reenable repo test.
1719 * tests/repository/gitestrepo.c: Prepend search
1720 path for $(top_builddir)/gir dir so that we don't
1721 require installation for "make check" to pass.
1723 2008-10-13 Jürg Billeter <j@bitron.ch>
1725 * giscanner/glibtransformer.py:
1726 * tests/scanner/annotation-1.0-expected.gir:
1727 * tests/scanner/drawable-1.0-expected.gir:
1728 * tests/scanner/foo-1.0-expected.gir:
1729 * tests/scanner/utility-1.0-expected.gir:
1731 Support fields in GObject structs
1733 2008-10-13 Jürg Billeter <j@bitron.ch>
1735 * giscanner/ast.py: add signed integer and off_t to type_names
1737 2008-10-12 Jürg Billeter <j@bitron.ch>
1739 * giscanner/girparser.py: Parse bits attribute of fields
1741 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1743 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1744 * tests/repository/gitestrepo.c (main): instantiate
1745 'GCancellable' to ensure the GType is registered before using
1748 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1750 * giscanner/girparser.py: actually add the parsed constant nodes
1752 2008-10-12 Colin Walters <walters@verbum.org>
1754 * girepository/girepository.c: Don't cast DirEntry to Blob,
1755 actually look it up by offset.
1757 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1759 * giscanner/girparser.py: parse constant nodes in gir files
1761 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1763 * giscanner/transformer.py: prefix for constants have an underscore,
1764 so remove them as if they were functions, not objects.
1766 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1768 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1771 2008-10-12 Colin Walters <walters@verbum.org>
1773 Initial patch from Jani Monoses.
1775 * girepository/gtypelib.c: Fix inverted test for success
1778 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1780 * tools/generate.c (write_callable_info): use "transfer-ownership"
1781 attribute for return values
1783 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1785 * tools/generate.c (write_callable_info): move "transfer" and
1786 "null-ok" attributes from <function> to <return-value> element
1788 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1790 * girepository/girparser.c (start_return_value): handle
1791 "transfer-ownership" attribute
1793 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1795 * girepository/girparser.c (parse_param_transfer):
1796 * tools/generate.c (write_callable_info): use "container" for
1797 container/shallow ownership transfer (not "shallow")
1799 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1801 * girepository/girparser.c (parse_param_transfer,
1802 start_parameter): Refactor handling of transfer=none/shallow/full
1803 to separate function
1805 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1807 Bug 556048 – Crash in g_irepository_find_by_gtype
1809 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1810 * girepository/girepository.c (find_interface): Fix
1811 find_by_gtype case to get the type name from right offset
1813 2008-10-12 Jürg Billeter <j@bitron.ch>
1815 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1818 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1820 * girepository/gtypelib.h (RegisteredTypeBlob): make
1821 'unregistered' one bit wide as everywhere else
1823 2008-10-12 Jürg Billeter <j@bitron.ch>
1825 * giscanner/glibtransformer.py:
1826 * tests/scanner/annotation-1.0-expected.gir:
1827 * tests/scanner/drawable-1.0-expected.gir:
1828 * tests/scanner/drawable.h:
1829 * tests/scanner/foo-1.0-expected.gir:
1830 * tests/scanner/utility-1.0-expected.gir:
1832 Readd class records as workaround to not break Gtk typelib
1834 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1836 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1838 2008-10-12 Jürg Billeter <j@bitron.ch>
1840 * giscanner/glibtransformer.py: Don't generate <record> elements
1842 * tests/scanner/*: Update test cases
1844 2008-10-11 Colin Walters <walters@verbum.org>
1846 Bug 552858: versioning
1848 This is a big patch. You should probably remove your installation
1851 * docs/typelib-format.txt: Add nsversion entry which holds
1852 version of namespace.
1853 * girepository/girepository.h: Add 'version' parameter to
1854 g_irepository_require. This may be NULL. Normally
1855 bindings should pass an explicit version though.
1856 * girepository/girepository.c: Lots of infrastructure to
1857 support versioning. Add some more documentation. Disallow
1858 some usage of NULL namespaces.
1859 * girepository/girmodule.c: Add version parameter.
1860 * girepository/gtypelib.c: Update header size.
1861 * giscanner/ast.py: Add version to Namespace.
1862 * giscanner/girparser.py: Parse version attribute from
1863 XML, pass to Namespace.
1864 * giscanner/girwriter.py: Write out version parameter.
1865 * giscanner/transformer.py: Clean up include registration.
1866 * tests/*: Add version attribute.
1867 * tests/invoke/invoke.c: Don't try looking up test before
1868 it's loaded in repository.
1869 * tools/generate.c: Output version parameter.
1870 * gir/Makefile.am: Add 2.0 version to .gir files.
1872 2008-10-11 Colin Walters <walters@verbum.org>
1874 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1875 if we have mismatched parens.
1877 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1879 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1880 on 'members' variable.
1882 2008-10-11 Colin Walters <walters@verbum.org>
1884 Bug 555947 - update annotations syntax
1886 * giscanner/ast.py: Default to None for transfer. Remove
1887 default transfers for container types; we require this to
1889 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1890 'full' to match repository.
1891 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1892 * giscanner/transformer.py: Update for new annotations syntax.
1895 2008-10-11 Johan Bilien <jobi@litl.com>
1897 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1899 2008-10-11 Johan Bilien <jobi@litl.com>
1901 Bug 552347: Parse #defines constants
1903 * girepository/gtypelib.c: update the list of value_size
1904 with recently defined type tags
1905 * giscanner/scannerparser.y: brought back parsing of #defined, as
1906 present in older version
1907 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1908 * giscanner/girwriter.py: write out constant tags in the gir
1909 * giscanner/sourcescanner.py: add accessor for const_string
1910 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1913 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1915 Bug 555946: Install a test module exercising all types, transfer
1920 * tests/types/*: Add and install a test module that has functions
1921 accepting and returning most of the basic types to enable bindings
1922 implementors to more easily test their type conversion routines.
1924 2008-10-11 Jürg Billeter <j@bitron.ch>
1926 Bug 552374: Const strings should be identified in the gir.
1928 * giscanner/transformer.py: support string memory management
1929 * tests/scanner/foo.h: use char * and const char *
1930 * tests/scanner/foo-expected.gir: test that
1932 2008-10-11 Johan Dahlin <johan@gnome.org>
1934 * giscanner/girparser.py:
1935 Also parse enums which are not glib types.
1937 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1939 Bug 552370: add one more test for unsigned as a type, not as
1942 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1943 * test/scanner/foo.h: add function which uses unsigned as a type.
1944 * test/scanner/foo-expected.gir: test that.
1946 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1948 Bug 555712: Struct and union issues
1950 * giscanner/scannerparser.y (struct_declarator): Use information
1951 provided about the bit width of a field.
1952 * giscanner/transformer.py (Transformer._create_member): Pass the
1953 symbol's const_int member to the created field (it represents the
1955 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1956 field attribute, if present.
1957 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1958 width in bits of the field (only relevant for bitfields).
1961 * giscanner/transformer.py (Transformer._create_typedef_struct)
1962 (Transformer._create_typedef_union): Add calls to _create_struct()
1963 and _create_union(), respectively. This causes the scanner to
1964 generate output for fields of struct and union typedefs.
1967 2008-10-11 Jürg Billeter <j@bitron.ch>
1969 Bug 552370: unsigned not scanned properly
1971 * giscanner/scannerparser.y: combine basic types such as unsigned
1972 int and long long when scanning
1973 * tests/scanner/foo-expected.gir:
1974 * tests/scanner/foo.c: (foo_test_unsigned):
1975 * tests/scanner/foo.h: test that
1977 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1979 Bug 554854: The --typelib-xml and --inject options should reuse
1980 giscanner parser/writer.
1982 * giscanner/ast.py: add constructor list to Struct and Union.
1983 Add new param in Return's contructor to define transfer.
1984 * giscanner/girparser.py: several additions to the parser in order
1985 to have parsing all nodes of the gir xml files.
1986 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1987 and writer in --inject and --typelib-xml options.
1988 * giscanner/xmlwriter.py: ignore empty attributes instead of
1989 raising an error as this basically exposes a bug in GIRParser.
1990 This should be reverted as soon as the parser is fixed.
1992 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1994 Bug 552376: scanner generates wrong names for enum members when
1995 there's no defined gtype.
1997 * giscanner/utils.py (strip_common_prefix): Always strip common
1998 prefix exactly up to the last "_", and not beyond.
1999 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
2000 here is that the first character after the last '_' should should be
2001 the same as the character in the same position on the type name.
2002 * tests/scanner/foo-expected.gir: test that
2004 2008-10-10 Lucas Rocha <lucasr@gnome.org>
2006 Bug 555293: append library_paths to LPATH env variable to work
2007 around a bug in find_library when using ldconfig.
2009 * tools/g-ir-scanner (main): ditto.
2011 2008-10-09 Lucas Rocha <lucasr@gnome.org>
2013 * girepository/girepository.c (register_internal): fix regression on
2014 invoke test case by making sure we load the global module in the
2015 typelib when dealing with inline typelibs.
2016 * girepository/gtypelib.c: a couple of coding style fixes.
2018 2008-10-06 Lucas Rocha <lucasr@gnome.org>
2020 Bug 555294: Add support for multiple shared libraries per typelib.
2022 * girepository/ginvoke.c (g_function_info_invoke),
2023 girepository/ginfo.c(g_registered_type_info_get_g_type): use
2024 g_typelib_symbol instead of g_module_symbol.
2025 * girepository/girepository.h: remove g_typelib_set_module and add
2027 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
2028 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
2029 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
2030 modules instead of just one. The symbol lookup is now abstracted
2031 behind g_typelib_symbol which tries to find the passed symbol name in
2033 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
2034 and write shared_library attribute as a comma-separated list of libs.
2036 2008-10-06 Colin Walters <walters@verbum.org>
2038 * giscanner/transformer.py: Parse length= annotation as
2039 a parameter name, not a raw int.
2042 2008-10-03 Colin Walters <walters@verbum.org>
2044 Bug 551744: Non-GObject types aren't aggregating ctors and methods
2046 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
2048 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
2052 2008-10-03 Colin Walters <walters@verbum.org>
2054 Bug 554576: scan problem with ev_selection_render_selection()
2056 * giscanner/transformer.py: Only do type resolution once we've
2057 scanned all types. What could happen before is that we'd strip
2058 the namespace from local type "EvSelection" => Selection, and
2059 then later pull a "Selection" from some other namespace because
2060 we hadn't yet seen the local EvSelection. This could come
2061 down to hash table ordering and other things so not easy
2062 to write a test for.
2064 2008-10-03 Lucas Rocha <lucasr@gnome.org>
2066 * giscanner/girwriter.py (_parser_member): fix the last parameter of
2067 GLibEnumMember constructor as it should be the enum member nick.
2069 2008-10-02 Colin Walters <walters@verbum.org>
2071 Bug 552961: remove this parameter for methods
2073 * giscanner/glibtransformer.py: Delete this parameter; it is
2075 * girepository/ginvoke.c: Insert this parameter for methods.
2076 * girepository/gtypelib.c: Remove no longer needed verification of
2077 method this parameter.
2080 2008-09-30 Dan Winship <danw@gnome.org>
2082 Bug 554490: g-ir-scanner gets confused by '\\'
2084 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
2085 backslashes so it will correctly parse '\\' and "\\"
2087 * tests/scanner/annotation.c: add a use of '\\' to make sure that
2090 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
2092 2008-10-02 Colin Walters <walters@verbum.org>
2094 bug 552393: Note variadic functions
2096 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
2097 to use parameter_list directly.
2098 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
2099 * giscanner/ast.py: Add Varargs type.
2100 * giscanner/transformer.py: Check for ellipsis symbol, transform
2102 * girepository/girnode.h: Add varargs flag to in-memory nodes.
2103 Parse varargs functions, but filter them out before we start
2104 compiling the typelib.
2106 2008-10-02 Colin Walters <walters@verbum.org>
2108 Bug 554632: type tag for GType
2110 * girepository/girepository.h, girepository/girepository.c:
2111 Add type tag for GType - it's a special type we don't want
2112 to resolve to just "long".
2113 * docs/typelib-format.txt: Update.
2114 * girepository/girparser.c: Parse it.
2115 * giscanner/glibtransformer.py: Ensure we don't put GType in
2117 * tools/generate.c: Remove hardcoded type list.
2120 2008-09-30 Dan Winship <danw@gnome.org>
2122 Bug 554521: scanner generates wrong names for enum members with
2123 full type name prefix
2125 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
2126 right amount when the entire "first" string is a prefix of
2129 * tests/scanner/foo.h (FooEnumFullname):
2130 * tests/scanner/foo-expected.gir: test that
2132 2008-09-29 Colin Walters <walters@verbum.org>
2134 Bug 552380: Array parameters should be marked in the gir
2136 * giscanner/ast.py: Default char** to utf8[], and guchar* to
2137 uint8[]. Add Array, List, and Map subclasses of Type;
2138 these types can be generic. Return transfer defaults
2139 to true if return value is string or container type.
2140 Delete Sequence type.
2141 * giscanner/scannerlexer.l: Syntax change for annotations;
2142 use <> since it's more readable.
2143 * giscanner/girwriter.py: Write out these changes.
2144 * giscanner/girparser.py: Parse them.
2145 * giscanner/transformer.py: Have a defined set of
2146 both list and map types. When creating a type,
2147 check if the ctype we've parsed is one of them,
2148 if so create a container type subclass as appropriate.
2149 * girepository/girparser.c: Parse in generic types.
2152 2008-09-27 Colin Walters <walters@verbum.org>
2154 * tools/g-ir-scanner: Add --inject option.
2156 2008-09-25 Colin Walters <walters@verbum.org>
2158 Remove non-repository types from GIR
2160 * giscanner/ast.py: The canonical name is 'utf8', not
2162 * giscanner/glibast.py: A few more glib type mappings.
2163 * girepository/girparser.c: We only parse repository types.
2164 * tests/*.gir: Update.
2166 2008-09-23 Colin Walters <walters@verbum.org>
2168 Bug 552566: Add time_t type
2170 We need a type for time_t since it's special in C, and just
2171 mapping it to long precluded bindings from handling it
2174 2008-09-19 Colin Walters <walters@verbum.org>
2176 Bug 552390: Handle capitialization like "DBus" more robustly
2178 The to_underscores function was designed for use against prefixed
2179 names; we need a separate function which will convert names like
2180 DBusFoo into dbus_foo, not d_bus_foo.
2182 2008-09-19 Colin Walters <walters@verbum.org>
2184 Add check to make sure we're not hitting out unresolved types
2186 Validate the "this" argument for methods
2188 Remove heuristic matching of methods to classes based on prefix
2190 It was a broken hack that dated from when we handled underscoring
2191 and capitalization conventions less well.
2193 2008-09-18 Colin Walters <walters@verbum.org>
2195 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2197 On Darwin, the suffix for installed shared libraries (.dylib) is
2198 different from loadable modules (.so). We use a bit of magic shell
2199 script from Behdad Esfahbod to figure out the right suffix.
2201 2008-09-15 Johan Dahlin <johan@gnome.org>
2203 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2204 a wrapper for type_qualifier as well.
2206 2008-09-15 Colin Walters <walters@verbum.org>
2208 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2210 * giscanner/ast.py: Add deprecation attributes.
2211 * giscanner/girwriter.py: Write out deprecation data.
2212 * girepository/girparser.c: Relax parsing; deprecated
2213 attribute now includes freeform string.
2214 * giscanner/scannerlexer.l: Parse Deprecated.
2215 * giscanner/transformer.py: Look for deprecated attribute
2217 * tests/scanner/*: Add a Deprecated test.
2219 2008-09-14 Tor Lillqvist <tml@novell.com>
2221 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2223 2008-09-14 Colin Walters <walters@verbum.org>
2225 * giscanner/glibtransformer.py: Ignore functions with
2228 2008-09-12 Colin Walters <walters@verbum.org>
2230 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2232 2008-09-12 Colin Walters <walters@verbum.org>
2234 * giscanner/ast.py: Bind pid_t to INT for vte.
2236 2008-09-12 Colin Walters <walters@verbum.org>
2238 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2239 * giscanner/glibast.py: Avoid overwriting ctype.
2240 * giscsanner/transformer.py: Try resolving types using the GType names.
2242 2008-09-12 Colin Walters <walters@verbum.org>
2244 * giscanner/minixpath.py: Code to run an "XPath"
2245 assertion against an XML tree, taken from
2246 gir-repository/gir/tests.py.
2247 * giscanner/Makefile.am: Ship it.
2248 * tools/g-ir-scanner: Add --xpath-assertions option.
2249 * gir/GLib-assertions.txt: Add a few assertions.
2250 * gir/Makefile.am: Run them.
2252 2008-09-11 Colin Walters <walters@verbum.org>
2254 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2256 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2257 prefix if it ends with _. Tweak callback stripping to determine
2258 based on presence of _ whether we need to use strip_namespace_func
2259 or strip_namespace_object.
2261 2008-09-09 Owen Taylor <otaylor@redhat.com>
2263 * docs/typelib-format.txt: Wether => Whether
2265 2008-09-08 Colin Walters <walters@verbum.org>
2267 * girepository/girparser.c: Default to "readable" for properties.
2268 * giscanner/ast.py: Add readable, writable etc.
2269 * giscanner/girwriter.py: Writ them.
2270 * giscanner/glibtransformer.py: Inspect them.
2273 2008-09-07 Colin Walters <walters@verbum.org>
2275 * giscanner/cgobject.py: Add comment.
2277 2008-09-07 Colin Walters <walters@verbum.org>
2279 * giscanner/cgobject.py: Also call g_thread_init.
2281 2008-09-07 Colin Walters <walters@verbum.org>
2283 * giscanner/transformer.py: Fix regression by not
2284 stripping prefix before stripping namespace for unions
2287 2008-09-06 Colin Walters <walters@verbum.org>
2289 * giscanner/transformer.py: If a namespace contains
2290 multiple caps, try stripping both gnomekeyring_ and
2293 2008-09-07 Johan Dahlin <johan@gnome.org>
2295 Bug 551162 – giscanner does not recognize asm and __asm__
2296 * giscanner/scannerlexer.l:
2297 Patch by Jani Monoses.
2299 2008-09-06 Colin Walters <walters@verbum.org>
2301 * girepository/girnode.c: Allow gtype_name
2302 and gtype_init in struct and union.
2303 * girepository/girparser.c: Parse glib:
2304 boxed bits for both structure and union.
2305 * girepository/gtypelib.c: Don't barf
2306 if structure is boxed.
2307 * giscanner/girparser.py: Parse new XML
2309 * giscanner/girwriter.py: Write out new
2311 * giscanner/glibast.py: Define new classes
2312 which are both Boxed and Struct/Union, as
2313 well as an "Other" for everything else.
2314 * giscanner/glibtransformer.py: Handle
2315 boxed types specially; we try to merge
2316 them with a struct/union if one exists,
2317 otherwise fall back to generic boxed.
2319 * tools/generate.c: Write out new format.
2321 2008-09-06 Johan Dahlin <johan@gnome.org>
2323 * giscanner/grealpath.h: Include stdlib.h
2325 * docs/g-ir-generate.1: Remove leading %
2327 2008-09-01 Colin Walters <walters@verbum.org>
2329 * girepository/girparser.c: Look at c:type to determine
2330 whether or not an item is a pointer.
2332 2008-09-01 Johan Dahlin <johan@gnome.org>
2334 * tests/scanner/Makefile.am:
2335 Set PYTHONPATH so the scanner can run
2336 even if you didn't install anything.
2338 2008-09-01 Johan Dahlin <johan@gnome.org>
2341 Post-release version bump
2344 2008-09-01 Johan Dahlin <johan@gnome.org>
2348 2008-08-31 Colin Walters <walters@verbum.org>
2350 * giscanner/glibtransformer.py: Quiet info
2353 2008-08-31 Johan Dahlin <johan@gnome.org>
2356 Bump version to 0.5.0
2358 2008-08-31 Colin Walters <walters@verbum.org>
2360 * giscanner/glibtransformer.py: Follow aliases to ensure
2361 we don't get a constructor returning a basic type.
2362 * giscanner/transformer.py: Add function to follow aliases.
2365 2008-08-31 Johan Dahlin <johan@gnome.org>
2367 * giscanner/scannerlexer.l:
2368 * giscanner/scannerparser.y:
2369 * giscanner/sourcescanner.h:
2370 * giscanner/sourcescanner.py:
2371 Parse GCC extensions in the parser instead of just undeffing them
2372 in the pre-processor.
2374 2008-08-31 Johan Dahlin <johan@gnome.org>
2376 * giscanner/glibtransformer.py:
2377 Clean up a huge if. Do not add methods or constructors
2379 * giscanner/utils.py:
2380 second might be longer than first, check that.
2382 2008-08-31 Johan Dahlin <johan@gnome.org>
2387 2008-08-31 Colin Walters <walters@verbum.org>
2389 * girepository/girparser.c: Don't lose if we
2392 2008-08-31 Colin Walters <walters@verbum.org>
2394 * giscanner/glibtransformer.py: Look for libtool
2395 library in current directory
2396 * tests/scanner - Update.
2398 2008-08-30 Colin Walters <walters@verbum.org>
2400 * docs/typelib-format.txt: Add a guint32
2402 * gir/Makefile.am: Dep on Makefile
2403 * girepository/ginfo.c:
2404 * girepository/girepository.c: Clean up
2405 default typelib handling; remove global
2406 default_typelib variable. Ensure we handle
2407 NULL repository in more places.
2408 Support dependency resolution.
2409 Support lazy loading.
2410 * girepository/girepository.h: Remove
2411 g_irepository_unregister; we don't support
2412 unloading typelibs since really they're
2413 process-global. Update for lazy loading
2415 * girepository/girmodule.c: Use g_new0.
2416 Add dependencies to GirModule.
2417 * girepository/girparser.c: Parse dependencies.
2418 * girepository/gtypelib.c: Add 4 bytes for
2420 * tests/Makefile.am: Kill off gobject.gir,
2421 it conflicts with the real one.
2422 * tests/object.gir: Dep on GObject.
2423 * tools/generate.c: Take --includedir
2424 argument to say which directories to search
2425 for typelibs. Print out dependencies.
2427 2008-08-30 Colin Walters <walters@verbum.org>
2429 * giscanner/glibtransformer.py: Reduce warning noise.
2431 2008-08-29 Colin Walters <walters@verbum.org>
2433 * girepository/ginfo.c: Add some assertions regarding
2434 refcounts, just to be sure.
2435 * giscanner/glibtransformer.py: Blacklist a few more
2438 2008-08-29 Colin Walters <walters@verbum.org>
2440 * giscanner/glibtransformer.py: Blacklist a few
2441 functions that use GError oddly
2443 2008-08-29 Colin Walters <walters@verbum.org>
2445 * girepository/gtypelib.c: Don't crash if no
2448 2008-08-29 Colin Walters <walters@verbum.org>
2450 * girepository/girparser.c: Handle chains of aliases
2451 across modules by ensuring we fully qualify aliases
2454 2008-08-29 Colin Walters <walters@verbum.org>
2456 * girepository/girparser.c: Don't search aliases
2459 2008-08-29 Colin Walters <walters@verbum.org>
2461 * girepository/girparser.c: Rewrite type parsing
2462 to handle both GLib parsing case as well as correctly
2463 handling GLib.List and friends. Don't try to treat
2464 e.g. ListStore as a List.
2466 2008-08-29 Colin Walters <walters@verbum.org>
2468 * girepository/gtypelib.c: Add more context
2471 2008-08-29 Colin Walters <walters@verbum.org>
2473 * giscanner/glibtransformer.py: Add some informative
2474 logging messages in corner cases. Be sure we use
2475 the most recent node set instead of a cache
2476 when generating result set.
2477 * tests/: Remove duplicated bits in expected girs
2478 * girepository/girparser.c: Accept both List (for
2479 compiling GLib) and GLib.List (what the scanner
2482 * tools/generate.c: Generate canonical form.
2484 2008-08-29 Johan Dahlin <johan@gnome.org>
2486 * giscanner/config.py.in:
2487 Use datarootdir instead of datadir to avoid
2488 an autoconf warning.
2490 2008-08-29 Johan Dahlin <johan@gnome.org>
2494 * examples/gdk-pixbuf.gidl:
2496 Update and remove old cruft.
2498 2008-08-29 Johan Dahlin <johan@gnome.org>
2501 * docs/g-ir-compiler.1:
2502 * docs/g-ir-generate.1:
2503 * docs/g-ir-scanner.1:
2504 Add man pages for the generator and compiler.
2506 2008-08-29 Johan Dahlin <johan@gnome.org>
2508 * docs/g-ir-scanner.1: Document
2510 * giscanner/Makefile.am:
2511 * giscanner/gidlparser.py:
2512 * giscanner/gidlwriter.py:
2513 * tools/g-ir-scanner:
2514 Remove gidl support.
2516 2008-08-28 Colin Walters <walters@verbum.org>
2518 * tests/scanner/Makefile.am: Pass the right
2519 --includedir args. Add a Makefile dep.
2520 * tools/compiler.c: Pass includedirs down.
2521 * girepository/girparser.c: Actually put
2522 includedirs in context, pass down. Fix
2525 2008-08-28 Colin Walters <walters@verbum.org>
2527 * gir/Makefile.am: Use --includedir
2528 * girepository/girparser.c: Recursively parse
2529 includes to pull in aliases and expand them.
2530 We need this to avoid putting unknown names in
2532 * tools/compiler.c: Add --includedir option.
2533 * giscanner/ast.py: Map size/ssize to types
2536 2008-08-28 Tor Lillqvist <tml@novell.com>
2538 Make check now runs successfully on Windows.
2540 * tools/compiler.c (write_out_typelib): Use binary mode for output
2543 * girepository/girnode.c: Don't print NULL strings.
2545 * tests/invoke/Makefile.am
2546 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2547 convince libtool to build shared libraries.
2549 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2550 g_assert() instead of printing out expected errors.
2552 2008-08-28 Tor Lillqvist <tml@novell.com>
2554 * girepository/gtypelib.h: Change type of bitfield fields from
2555 guint to the most suitable smaller type. This makes the struct
2556 sizes match the ones on Linux that the sanity check expects when
2557 using gcc -mms-bitfields on Windows.
2559 2008-08-28 Johan Dahlin <johan@gnome.org>
2564 * giscanner/Makefile.am:
2565 * tests/Makefile.am:
2566 * tests/scanner/Makefile.am:
2567 Make distcheck pass.
2569 2008-08-27 Johan Dahlin <johan@gnome.org>
2571 * giscanner/Makefile.am:
2572 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2574 2008-08-27 Tor Lillqvist <tml@novell.com>
2576 Make g-ir-scanner work on Windows. Still problems with the typelib
2577 code. Changes okayed by jdahlin.
2579 * configure.ac: Check for Windows, set Automake conditional
2580 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2581 avoid shell quoting issues
2583 * girepository/Makefile.am: Use -no-undefined so that libtool
2584 agrees to build a shared library on Windows.
2586 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2587 Windows. Empty implementation on Windows so far.
2589 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2590 informative error message for the assertion failures. Tell also
2591 what the expected size of the struct is. Check all sizes first and
2592 fail afterwards if at least one size was different from expected.
2594 * tools/Makefile.am: Reorder libraries into proper logical
2597 * tools/generate.c: Don't include <dlfcn.h>, not used.
2599 * giscanner/Makefile.am: On Windows, link with the Python library,
2600 and install the module DLL as _giscanner.pyd. Remove the
2601 unnecessary import library and libtool library that libtool has
2604 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2605 and just skip it. Recognize also two "l" suffixes for long long
2606 constants. Recognize also __inline__.
2608 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2609 GetFullPathName(). As such, GetFullPathName() does more than the
2610 UNIX realpath(). It also changes relative paths into absolute
2611 paths. But for our purposes that shouldn't matter.
2613 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2614 Windows the file descriptor passed to us is from Python. Python
2615 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2616 uses msvcrt.dll. On Windows, file descriptors are specific to
2617 which C library is used. So we must find out what underlying OS
2618 handle corresponds to the file descriptor Python passes us, and
2619 then make that into a file descriptor valid for the C library this
2622 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2623 __attribute__ as the lexer now handles it. The definition as empty
2624 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2625 __attribute__. Close the temp file before unlinking it.
2627 * giscanner/cgobject.py: Use correct library name for the gobject
2630 * gir/Makefile.am: Must pass the full basename of the DLLs on
2631 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2632 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2633 reality they won't change, until there is a GLib 3, and then also
2634 the Unix code here needs changing.
2636 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2639 2008-08-26 Colin Walters <walters@verbum.org>
2641 * girepository/girepository.c: Search
2642 $DATADIR/girepository instead of
2643 $DATADIR/gitypelibs; this naming makes
2644 it clearer that e.g. jgir can install
2646 * gir/Makefile.am: Install there.
2648 2008-08-26 Colin Walters <walters@verbum.org>
2650 * girepository/gtypelib.c (_g_typelib_init): Also
2651 use G_MODULE_SUFFIX instead of hardcoding .so.
2653 2008-08-26 Colin Walters <walters@verbum.org>
2655 * girepository/gtypelib.c (_g_typelib_init): Free
2656 string in the right place.
2658 2008-08-26 Colin Walters <walters@verbum.org>
2660 * girepository/gtypelib.c (_g_typelib_init): Handle
2661 both .la and .so names; this works better in the
2662 uninstalled library case.
2664 2008-08-26 Johan Dahlin <johan@gnome.org>
2667 * giscanner/Makefile.am:
2668 * giscanner/cgobject.py:
2669 * giscanner/config.py.in:
2670 * giscanner/sourcescanner.py:
2671 Avoid undeffing __GNUC__, instead define
2672 __attribute__ & friends. Remove glibconfig.h hack.
2673 This makes gobject-introspection work better on
2674 MacOS X, Thanks to Richard Hult for kind help.
2676 2008-08-25 Colin Walters <walters@verbum.org>
2678 * giscanner/glibtransformer.py: Always print
2681 2008-08-25 Colin Walters <walters@verbum.org>
2683 * giscanner/glibtransformer.py: Skip over
2684 interfaces we don't know.
2686 2008-08-25 Colin Walters <walters@verbum.org>
2688 * girepository/girparser.c: Parse new implements
2689 syntax, drop gapi one.
2690 * tests/object.gir: Update.
2691 * tools/generate.c: Generate new syntax.
2693 2008-08-25 Colin Walters <walters@verbum.org>
2695 * giscanner/ast.py: Add interfaces property
2697 * giscanner/girwriter.py: Write out implemented
2699 * giscanner/glibtransformer.py: Introspect
2700 implemented interfaces.
2701 * tests/scanner/*: Make FooObject implement
2704 2008-08-25 Colin Walters <walters@verbum.org>
2706 * giscanner/glibtransformer.py: More correctly pair
2707 methods; if we have a symbol that starts with
2708 e.g. hippo_canvas look for a matching HippoCanvas
2709 class before accepting e.g. HippoCanvasImage.
2711 2008-08-24 Colin Walters <walters@verbum.org>
2713 * tools/g-ir-scanner: Filter out unknown options from
2716 2008-08-24 Colin Walters <walters@verbum.org>
2718 * giscanner/glibtransformer.py: Fail with better
2719 error if we can't find library.
2721 2008-08-24 Colin Walters <walters@verbum.org>
2723 * tools/g-ir-scanner: Use subprocess instead of
2724 commands, works on Windows and avoids the evil
2727 2008-08-24 Colin Walters <walters@verbum.org>
2729 * giscanner/glibtransformer.py: Skip over
2730 g_object_get_type from GLib trunk.
2732 2008-08-24 Colin Walters <walters@verbum.org>
2734 * girepository/girepository.c (g_irepository_require):
2735 Don't open shared library here; we already do it
2738 2008-08-24 Colin Walters <walters@verbum.org>
2740 * girepository/gtypelib.c: Add context stack so
2741 when we get an error we can print out nicely
2744 2008-08-24 Johan Dahlin <johan@gnome.org>
2746 * girepository/girparser.c (start_glib_boxed), (start_function),
2747 (start_field), (start_alias):
2748 Refactor a couple of parsing functions to be simpler to follow.
2751 2008-08-24 Johan Dahlin <johan@gnome.org>
2753 * girepository/girparser.c (start_function):
2754 Remove left-over code, checking type of function.
2756 2008-08-23 Colin Walters <walters@verbum.org>
2758 * giscanner/config.py: Define DATADIR.
2759 * giscanner/transformer.py: Look in DATADIR.
2761 2008-08-23 Colin Walters <walters@verbum.org>
2763 * girepository/gtypelib.c: Check constructor
2765 * girepository/girnode.c: Small tweaks.
2766 * girepository/ginfo.c: Calculate signature offsets
2768 * girepository/girparser.c: Remove duplicate
2770 * giscanner/glibtransformer.py: Avoid marking
2771 functions which return a basic type as
2774 2008-08-23 Colin Walters <walters@verbum.org>
2776 * girepository/girparser.c: Ignore <include>.
2777 * giscanner/girparser.py: Parse them.
2778 * giscanner/girwriter.py: Generate them.
2779 * giscanner/transformer.py: Process <include>
2780 recursively. Don't require full path for
2781 includes, look in {$XDG_DATA_DIRS}/gir.
2782 * tools/g-ir-scanner: Pass through includes.
2783 * Makefile.am: Remove extra --include
2785 * *-expected.gir: Add expected includes.
2787 2008-08-23 Johan Dahlin <johan@gnome.org>
2789 * tests/scanner/Makefile.am:
2790 * tests/scanner/annotation-expected.gir:
2791 * tests/scanner/drawable-expected.gir:
2792 Avoid duplication in the Makefile, regenerate with new
2793 namespaces (same as the filename)
2795 2008-08-22 Colin Walters <walters@verbum.org>
2797 * girepository/girnode.c: Don't hardcode integers,
2800 2008-08-22 Johan Dahlin <johan@gnome.org>
2802 * giscanner/sourcescanner.py:
2803 Check for ../gobject-introspection-1.0.pc.in to determine
2804 if we run installed or uninstalled.
2806 2008-08-22 Johan Dahlin <johan@gnome.org>
2809 * giscanner/sourcescanner.py:
2810 Send in undefs/defines via writing it directly to stdin
2811 of cpp instead of via arguments.
2813 2008-08-22 Colin Walters <walters@verbum.org>
2815 * tools/generate.c, tools/compiler.c: Default
2817 * all Makefile.am: Update.
2819 2008-08-22 Colin Walters <walters@verbum.org>
2821 * girepository/girparser.c: Pass through
2822 recursive types. Avoid overwriting errors.
2823 * giscanner/xmlwriter.py: Always write the
2825 * tests/*.gir: Adjust.
2826 * tests/scanner/Makefile.am: Build typelibs,
2827 and generate XML from those. Once we
2828 have a good diff mechanism...
2829 * tests/scanner/*-expected.gir: Add XML
2831 * tools/g-ir-scanner: Accept --typelib-xml
2833 * tools/generate.c: Better defaults for transfer.
2835 2008-08-22 Johan Dahlin <johan@gnome.org>
2839 * giscanner/Makefile.am:
2840 * giscanner/config.py.in:
2841 * giscanner/sourcescanner.py:
2842 Use the generated glibconfig.h for all scanner invokations.
2843 Rename it to glibconfig-scanner.h and install it.
2844 Add a config.py which so far contains the include dir.
2846 2008-08-22 Johan Dahlin <johan@gnome.org>
2849 Replace glibconfig.h with our own, do some replacement
2850 for CPP/C features we do not support
2852 2008-08-22 Colin Walters <walters@verbum.org>
2854 * tools/generate.c (write_callable_info): Fix unref
2857 2008-08-22 Colin Walters <walters@verbum.org>
2859 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2860 * tests/Makefile.am: Support $(DEBUG)
2861 * tools/generate.c: Do immediate close tags if no
2864 2008-08-21 Colin Walters <walters@verbum.org>
2866 * tests/scanner/drawable-expected.gir,
2867 * tests/scanner/drawable.c,
2868 * tests/scanner/drawable.h:
2871 2008-08-21 Colin Walters <walters@verbum.org>
2873 * giscanner/glibtransformer.py: Compute prefix
2874 by searching through the symbol for bits
2875 rather than going directly from ctype; this fixes
2878 2008-08-21 Colin Walters <walters@verbum.org>
2880 * giscanner/glibtransformer.py: Also try squashing
2881 underscores from namespace, fixes webkit_web_view_new.
2883 2008-08-21 Colin Walters <walters@verbum.org>
2885 * giscanner/glibtransformer.py: More ctor work,
2886 avoid having gtk_window_group_new end up under
2889 2008-08-21 Colin Walters <walters@verbum.org>
2891 * giscanner/glibtransformer.py: Much simpler approach
2892 of mapping uscored names to classes.
2893 * giscanner/utils.py: Remove unnecessary function.
2895 2008-08-21 Johan Dahlin <johan@gnome.org>
2897 * girepository/girepository.c (g_irepository_require):
2898 Plug memory leak and avoid using freed memory.
2899 Resolve the whole module path, here as well.
2901 2008-08-21 Colin Walters <walters@verbum.org>
2903 * giscanner/glibtransformer.py: Look up all permutations
2904 of class names when scanning methods/ctors based on
2905 the prefix instead of using the return value. This
2906 associates gtk_window_new with the right class.
2908 2008-08-21 Colin Walters <walters@verbum.org>
2910 * girepository/girmodule.c (g_ir_module_build_typelib):
2911 Revert change to increment header_size; we do that in
2914 2008-08-21 Colin Walters <walters@verbum.org>
2916 * girepository/girnode.c (write_string): Tweak to
2917 use UINT instead of INT. Not likely to matter.
2918 * girepository/girmodule.c (g_ir_module_build_typelib):
2919 Add to header_offset as well for header strings
2920 to match what write_string does.
2921 * girepository/gtypelib.c: Replace is_name with
2922 validate_name, which more strongly validates and
2923 handles errors in a better way. Update all callers.
2924 * giscanner/glibtransformer.py: Handle constructors
2927 2008-08-21 Johan Dahlin <johan@gnome.org>
2929 * gir/Makefile.am (typelibs_DATA): Build and
2930 install the Gio.typelib too
2932 * girepository/gtypelib.c (_g_typelib_init):
2933 Use g_module_build_path to resolve the shlib name
2935 2008-08-21 Colin Walters <walters@verbum.org>
2937 * gir/Makefile.am: CLEANFILES typelibs too.
2939 2008-08-21 Johan Dahlin <johan@gnome.org>
2941 * giscanner/glibtransformer.py:
2942 Do not send .la files through find_library.
2944 2008-08-21 Colin Walters <walters@verbum.org>
2946 * girepository/girparser.c (g_irepository_require):
2947 Fix one small leak in error case.
2949 2008-08-21 Johan Dahlin <johan@gnome.org>
2952 Parse glibconfig.h as well and install the compiled
2955 2008-08-21 Johan Dahlin <johan@gnome.org>
2958 * giscanner/glibtransformer.py:
2959 * tools/g-ir-scanner:
2960 Do not hard-core library names in the Makefile, reuse
2961 ctypes find_library instead.
2963 2008-08-21 Johan Dahlin <johan@gnome.org>
2965 * girepository/girparser.c (resolve_aliases):
2966 Remove compilation warnings
2968 2008-08-21 Johan Dahlin <johan@gnome.org>
2970 * girepository/girepository.c (g_irepository_require):
2971 Rewrap and fix double free bug by leaking a bit.
2973 2008-08-20 Colin Walters <walters@verbum.org>
2975 * girepository/girepository.c: Add new function
2976 g_irepository_get_typelib_path which tells
2977 us from where we loaded a namespace.
2979 2008-08-20 Colin Walters <walters@verbum.org>
2981 * tests/scanner/*-expected.gir: Adjust for
2982 added shared-library.
2983 * giscanner/giwriter.py: Make pylint happy.
2985 2008-08-20 Colin Walters <walters@verbum.org>
2987 * girepository/girmodule.c (g_ir_module_build_typelib):
2988 Calculate size correctly, avoid use-after-free.
2990 2008-08-20 Colin Walters <walters@verbum.org>
2992 * girepository/girepository.c: Remove
2993 g_irepository_register_file in favor of
2994 g_irepository_require. There are two
2995 possible deployment scenarios for typelibs:
2996 First, separate in $DATADIR/gitypelibs/. Second,
2997 they may be embedded in shlibs. However since
2998 the first is now the normal case, the API is
2999 optimized around it.
3001 Refactor internals to look up typelibs for
3002 namespaces just-in-time, but we expect
3003 consumers to call g_irepository_require.
3005 Also, add some docs. No one has died from that
3007 * gir/Makefile.am: Need --library for glib.
3008 * giscanner/girwriter.py: Write out shared-library.
3009 * tools/g-ir-writer: Take the first --library
3010 argument as the target of shared-library. In
3011 the future we should make this nicer with pkg-config
3014 2008-08-20 Colin Walters <walters@verbum.org>
3016 * girepository/girparser.py: And parse them.
3018 2008-08-20 Johan Dahlin <johan@gnome.org>
3020 * giscanner/glibast.py: Add gshort/gushort types
3022 2008-08-20 Colin Walters <walters@verbum.org>
3024 * gir/Makefile.am: Rename .gir files using GI namespace.
3025 * girepository/girepository.c: Use XDG_DATA_DIRS for
3026 looking up typelibs. Also typelibs are now suffixed
3028 * tests/invoke/Makefile.am: Only use metadata.
3029 * girepository/Makefile.am: Remove unnecessary include.
3030 * tests/scanner/Makefile.am: Update using GI namespaces
3031 for scanner includes.
3033 2008-08-20 Colin Walters <walters@verbum.org>
3035 * girepository/transformer.py: Suppress aliases whose
3037 * girepository/ast.py: Define some more aliases.
3039 2008-08-20 Colin Walters <walters@verbum.org>
3041 * girepository/girparser.c: Avoid alias infloops.
3043 2008-08-20 Colin Walters <walters@verbum.org>
3045 * tests/scanner/foo-expected.gir: Fix expected list type.
3047 2008-08-20 Johan Dahlin <johan@gnome.org>
3049 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
3050 Add a workaround for #548689.
3051 We can now compile gtk!
3053 2008-08-20 Colin Walters <walters@verbum.org>
3055 * giscanner/glibtransformer.py: Try to look up
3056 aliases using the c:type too.
3058 2008-08-20 Colin Walters <walters@verbum.org>
3060 * girepository/girparser.c: Parse union fields.
3062 2008-08-20 Johan Dahlin <johan@gnome.org>
3064 * giscanner/ast.py: Make time_t an alias for long
3066 * gir/gio-2.0-good.gir:
3067 * gir/glib-2.0-good.gir:
3068 * gir/gobject-2.0-good.gir:
3070 * giscanner/glibtransformer.py:
3071 Do not delete Class structures, we need them in gdk/gtk.
3072 * tests/scanner/drawable-expected.gir:
3073 * tests/scanner/foo-expected.gir:
3074 * tests/scanner/utility-expected.gir:
3077 2008-08-20 Johan Dahlin <johan@gnome.org>
3079 * tests/scanner/Makefile.am:
3080 * tests/scanner/annotation-expected.gir:
3081 * tests/scanner/annotation.c (annotation_object_class_init),
3082 (annotation_object_init), (annotation_object_method),
3083 (annotation_object_in), (annotation_object_out),
3084 (annotation_object_inout), (annotation_object_inout2),
3085 (annotation_object_inout3), (annotation_object_calleeowns),
3086 (annotation_object_calleesowns), (annotation_object_get_strings),
3087 (annotation_object_with_voidp), (annotation_object_get_objects),
3088 (annotation_object_create_object), (annotation_object_allow_none):
3089 * tests/scanner/annotation.h:
3090 * tests/scanner/foo-expected.gir:
3091 * tests/scanner/foo.c:
3092 * tests/scanner/foo.h:
3093 Split out annotation tests out of foo
3095 2008-08-20 Johan Dahlin <johan@gnome.org>
3097 * tests/scanner/Foo-expected.gir:
3098 * tests/scanner/Makefile.am:
3099 * tests/scanner/foo-expected.gir:
3100 * tests/scanner/foo-object.h:
3101 * tests/scanner/foo.c:
3102 Foo->foo, foo-object.h -> foo.h
3104 2008-08-20 Johan Dahlin <johan@gnome.org>
3106 * tests/scanner/Foo-expected.gir:
3107 * tests/scanner/Makefile.am:
3108 * tests/scanner/drawable-expected.gir:
3109 * tests/scanner/drawable.c (test_drawable_class_init),
3110 (test_drawable_init):
3111 * tests/scanner/drawable.h:
3112 * tests/scanner/foo-object.h:
3113 * tests/scanner/foo.c (foo_boxed_method):
3114 Move the drawable parts out of Foo to its own test.
3116 2008-08-20 Johan Dahlin <johan@gnome.org>
3118 * tests/scanner/Foo-expected.gir:
3119 * tests/scanner/foo-object.h:
3120 * tests/scanner/foo.c (foo_drawable_class_init),
3121 (foo_drawable_init):
3122 Add a based on GdkDrawable which generates
3125 2008-08-19 Colin Walters <walters@verbum.org>
3127 * giscanner/transformer.py: Don't try
3128 to strip prefix before namespace.
3130 2008-08-19 Johan Dahlin <johan@gnome.org>
3132 * giscanner/transformer.py:
3133 * tests/scanner/Foo-expected.gir:
3134 * tests/scanner/foo-object.h:
3135 Add support for typedef void foo type of
3138 2008-08-19 Johan Dahlin <johan@gnome.org>
3141 * giscanner/girwriter.py:
3142 * giscanner/glibtransformer.py:
3143 * giscanner/transformer.py:
3144 * tests/scanner/Foo-expected.gir:
3145 Add basic support for union, base the code much
3146 on Struct. Add a testcase.
3148 2008-08-19 Johan Dahlin <johan@gnome.org>
3150 * tests/scanner/Foo-expected.gir:
3151 * tests/scanner/foo-object.h:
3152 Add a union testcase which the compiler currently
3155 2008-08-19 Johan Dahlin <johan@gnome.org>
3157 * gobject-introspection-1.0.pc.in:
3158 Add a g_ir_compiler variable
3160 2008-08-19 Colin Walters <walters@verbum.org>
3162 * giscanner/ast.py: Rework types to be more closely
3164 * giscanner/girparser.py: Parse more bits.
3165 * giscanner/girwriter.py: Write sequences in a new
3166 way that specifies container type.
3167 * giscanner/glibast.py: Adjust for ast.py changes,
3168 add 'ctype' property to GLibObject and GLibInterface
3169 so we can look things up by it later.
3170 * gicanner/transformer.py: Names is new class holding
3171 the various namespaces we manage. Do not confuse
3172 with Namespace which is toplevel XML node effectively.
3173 Rework all type resolution to go through
3174 _resolve_type_name_1.
3175 * giscanner/glibtransformer.py: Raise UnknownTypeError
3176 instead of ValueError for cleanliness. Add Unresolved
3177 class to mark types whose parent we haven't seen yet.
3178 Use new Names object from transformer.py.
3179 Correctly look up parent=.
3180 Fix type validation to handle sequences.
3181 * tests/scanner/Foo-expected.gir: Update for sequence
3182 work, int instead of int32.
3183 * tools/g-ir-scanner: Add --noclosure option
3184 * gir/Makefile.am: Use --noclosure by default for
3187 2008-08-18 Johan Dahlin <johan@gnome.org>
3189 * gir/gio-2.0-good.gir:
3190 * gir/glib-2.0-good.gir:
3191 * gir/gobject-2.0-good.gir:
3194 2008-08-18 Johan Dahlin <johan@gnome.org>
3197 * giscanner/girparser.py:
3198 * giscanner/girwriter.py:
3199 * giscanner/glibast.py:
3200 * giscanner/glibtransformer.py:
3201 * giscanner/transformer.py:
3202 * tests/scanner/Foo-expected.gir:
3203 * tests/scanner/foo-object.h:
3204 * tests/scanner/utility-expected.gir:
3205 * tests/scanner/utility.h:
3206 Redo type resolving and validation.
3207 Add a couple of new tests.
3208 Patch mostly written by Colin.
3210 2008-08-18 Johan Dahlin <johan@gnome.org>
3213 * giscanner/girparser.py:
3215 * giscanner/transformer.py:
3216 Improve enum parsing for enums without a GType.
3217 Make flags/enum references to other girs work
3218 * giscanner/utils.py:
3220 * tests/scanner/Makefile.am:
3221 * tests/scanner/foo-object.h:
3222 * tests/scanner/utility-expected.gir:
3223 * tests/scanner/utility.h:
3224 Add a new test for external enum references
3226 2008-08-18 Johan Dahlin <johan@gnome.org>
3228 * docs/global-module-registry.txt: Update
3230 * tests/array.gir: Update with new type proposal
3232 * girepository/girepository.c (g_type_tag_to_string):
3233 * girepository/girepository.h:
3234 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3236 * girepository/girnode.h:
3237 Make enum serializing functions public. Clean up some whitespace.
3239 2008-08-17 Johan Dahlin <johan@gnome.org>
3241 * docs/global-module-registry.txt:
3242 Add a document for an on disk module registry format
3244 2008-08-17 Johan Dahlin <johan@gnome.org>
3247 * gir/gio-2.0-good.gir:
3250 2008-08-17 Johan Dahlin <johan@gnome.org>
3253 * gir/glib-2.0-good.gir:
3254 * gir/gobject-2.0-good.gir:
3255 * giscanner/cgobject.py:
3256 * giscanner/glibtransformer.py:
3257 Regenerate GObject & GType.
3258 Avoid warnings when generating gobject-2.0.gir.
3259 Introspect a little more, and skip *_get_type functions.
3261 2008-08-17 Colin Walters <walters@verbum.org>
3263 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3264 Rename to -good, always generate during build.
3265 * gir/Makefile.am: Ensure .gir files dep on
3266 all scanner sources.
3267 * Makefile.am: Switch build order to ensure
3268 the scanner is ready before we do gir/.
3269 * tools/g-ir-scanner: Look for .git too.
3271 2008-08-17 Johan Dahlin <johan@gnome.org>
3273 * girepository/gtypelib.c (validate_enum_blob):
3274 * giscanner/glibtransformer.py:
3275 * giscanner/transformer.py:
3276 Remove resolve_possible_typedefs, it was unused.
3277 Allow multiple enum values of the sample value in an enum,
3278 since it's actually pretty common.
3279 Register enums so they can be resolved too.
3281 2008-08-16 Johan Dahlin <johan@gnome.org>
3283 * giscanner/girparser.py:
3284 Parse enumeration/bitfield.
3286 2008-08-16 Johan Dahlin <johan@gnome.org>
3288 * giscanner/girparser.py:
3291 2008-08-16 Johan Dahlin <johan@gnome.org>
3293 * giscanner/glibtransformer.py:
3294 Resolve type names for alias targets
3295 * giscanner/transformer.py:
3296 Skip FILE* parameters fow now
3298 2008-08-16 Johan Dahlin <johan@gnome.org>
3301 * gir/gobject-2.0.gir:
3304 * tests/scanner/Makefile.am:
3307 2008-08-15 Colin Walters <walters@verbum.org>
3309 * giscanner/glibtransformer.py: Explicitly construct
3310 new list, since we're deleting as we iterate.
3311 Don't delete all structures which end in Class; just
3312 ones which have a paired GObject.
3313 Fix printing of type warning.
3314 * giscanner/transformer.py: Make strip_namespace_object
3315 be the identity function if it doesn't match the
3318 2008-08-15 Colin Walters <walters@verbum.org>
3320 * giscanner/cgobject.py: Define yet more argument
3321 prototypes; fix prototype for g_type_fundamental.
3323 2008-08-14 Johan Dahlin <johan@gnome.org>
3325 * tests/Makefile.am:
3326 * tests/constant.gir:
3327 * tests/gobject.gir:
3329 * tools/generate.c (write_struct_info):
3330 Fix generator for constant/gobject/struct
3332 2008-08-14 Johan Dahlin <johan@gnome.org>
3334 * tests/Makefile.am:
3336 * tools/generate.c (write_enum_info):
3337 Fix generation of enum/bitfields
3339 2008-08-14 Johan Dahlin <johan@gnome.org>
3341 * girepository/girparser.c (start_field), (start_constant),
3342 (start_type), (end_element_handler):
3343 Clear up constant parsing
3348 * tools/generate.c (write_callable_info), (write_function_info),
3349 (write_callback_info), (write_constant_info), (write_signal_info),
3350 (write_vfunc_info), (write_property_info), (write_object_info),
3351 (write_interface_info):
3352 Constants/Signals are handled now.
3354 2008-08-14 Johan Dahlin <johan@gnome.org>
3356 * girepository/girparser.c (start_type):
3357 Don't require c:type.
3358 * tests/Makefile.am:
3361 Update, remove parts we don't support yet
3362 * tests/roundtrips.sh:
3364 * tools/generate.c (write_type_info), (write_field_info),
3365 (write_callable_info), (write_struct_info):
3366 Make it emit proper gir.
3368 2008-08-14 Johan Dahlin <johan@gnome.org>
3370 * giscanner/transformer.py:
3371 New internal function for adding a new node.
3373 2008-08-14 Johan Dahlin <johan@gnome.org>
3376 Define an internal _H_ variable so we skip parsing both
3377 i18n headers, only one is needed.
3379 Add the glib-2.0.gir too.
3380 * giscanner/glibast.py:
3381 Add gconstpointer as an alias for ANY
3382 * giscanner/transformer.py:
3383 Do not lower case enumeration names per se.
3384 Skip functions which has parameters called 'va_list'
3386 2008-08-14 Colin Walters <walters@verbum.org>
3388 * giscanner/transformer.py: Comment data structures.
3389 Also squash pointers in resolve_type_name to correspond
3390 with what we do for params.
3391 * giscanner/glibtransformer.py: Print warnings in more
3392 situations. Rework checks for method/constructor to
3393 look up in our GType database instead of just checking
3394 for *. Avoid generating <record> for GObject which
3395 duplicate the <class>.
3396 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3399 2008-08-14 Johan Dahlin <johan@gnome.org>
3401 * giscanner/girwriter.py:
3402 * giscanner/glibast.py:
3403 * giscanner/glibtransformer.py:
3404 * giscanner/transformer.py:
3406 * tests/Makefile.am:
3407 Add pyflakes.py and run it in make check.
3408 Update the source code to fix the errors reported by
3411 2008-08-14 Johan Dahlin <johan@gnome.org>
3414 * giscanner/girparser.py:
3415 * giscanner/glibast.py:
3416 * giscanner/glibtransformer.py:
3417 Refactor the parser a bit.
3418 Add parent type to interfaces and update callsites.
3420 2008-08-14 Johan Dahlin <johan@gnome.org>
3422 * giscanner/glibtransformer.py:
3423 * giscanner/utils.py:
3424 Refactor a bit, avoid isinstance and add a method
3425 for each type we parse.
3427 2008-08-14 Johan Dahlin <johan@gnome.org>
3430 * giscanner/girparser.py:
3431 * giscanner/glibtransformer.py:
3432 * tests/Makefile.am:
3433 Run pep8.py in make check, fix old errors.
3435 2008-08-13 Colin Walters <walters@verbum.org>
3437 * giscanner/girparser.py: Parse records.
3439 2008-08-13 Colin Walters <walters@verbum.org>
3441 * gir/Makefile.am: Install again.
3442 * gir/gobject-2.0.gir: Add some more bits.
3444 2008-08-13 Colin Walters <walters@verbum.org>
3446 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3447 * giscanner/girparser.py: Handle aliases.
3448 * giscanner/transformer.py: Record aliases. Make resolver
3449 functions public; we now call into these explicitly from
3450 glibtransformer. Handle resolving aliases.
3451 * giscanner/glibtransformer.py: Separate our internal namespace
3452 from included ones. Call up into transformer's resolver functions.
3454 2008-08-13 Johan Dahlin <johan@gnome.org>
3456 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3457 * girepository/girparser.c (start_class):
3458 * giscanner/glibtransformer.py:
3459 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3461 2008-08-13 Johan Dahlin <johan@gnome.org>
3463 * giscanner/cgobject.py:
3464 Register GInitiallyUnowned
3465 * giscanner/girwriter.py:
3466 * giscanner/glibtransformer.py:
3467 Special case GObject/GInitially owned as they are a bit special to use.
3469 2008-08-13 Colin Walters <walters@verbum.org>
3471 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3472 Object is in GObject namespace.
3474 2008-08-13 Colin Walters <walters@verbum.org>
3476 * giscanner/girparser.py: Fix processing of functions
3479 2008-08-13 Colin Walters <walters@verbum.org>
3481 * giscanner/girparser.py: Parse more than just <class.
3482 * giscanner/glibtransformer.py: Put aliases in a separate
3483 data structure since their name is not canonicall.
3484 * giscanner/transformer.py: Handle resolving type names
3487 2008-08-13 Johan Dahlin <johan@gnome.org>
3489 * tools/g-ir-scanner:
3490 Allow multiple libraries
3491 * giscanner/glibtransformer.py:
3492 Rename load_library to add_library, traverse over all libraries
3493 when trying to resolve a function
3495 2008-08-12 Colin Walters <walters@verbum.org>
3497 * giscanner/transformer.py: Record typedefs as <alias> elements.
3498 Also attempt to look up types in external namespaces.
3499 * giscanner/girwriter.py: Write them.
3500 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3501 checks. Resolve interface methods and properties.
3502 * tests/scanner/foo-object.h: Add a method with typedef.
3503 * tests/scanner/Foo-expected.gir: Update.
3504 * girepository/girnode.c: Debug tweaks.
3505 * girepository/girparser.c: Make a first pass through the XML where we
3506 record all the aliases. This lets us resolve them as we go through the
3508 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3509 from gir-repository.
3511 2008-08-12 Colin Walters <walters@verbum.org>
3513 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3514 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3516 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3518 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3520 2008-08-12 Colin Walters <walters@verbum.org>
3522 * giscanner/glibtransformer.py: Also transform object properties.
3524 2008-08-12 Colin Walters <walters@verbum.org>
3526 * giscanner/glibtransformer.py: Also transform callbacks
3527 and structure field types.
3528 * tests/scanner/Fooe-expected.gir: Update to expect correct
3529 names for callbacks and structs.
3531 2008-08-12 Colin Walters <walters@verbum.org>
3533 * girepository/girparser.c: Handle 'any'.
3534 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3535 Add test for void *.
3537 2008-08-12 Colin Walters <walters@verbum.org>
3539 * giscanner/glibtransformer.py: We need to do type
3540 resolution in a second pass after we've seen all the
3541 enums, records, etc.
3543 2008-08-12 Colin Walters <walters@verbum.org>
3545 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3546 Add enum return value.
3547 * giscanner/glibtransformer.py: Transform function return types
3550 2008-08-12 Colin Walters <walters@verbum.org>
3552 * tests/scanner/Makefile.am: Dep .gir files on scanner
3553 sources too. Also remove @ so we see scanner invocations.
3555 2008-08-12 Colin Walters <walters@verbum.org>
3557 * girepository/girparser.c, girepository/gtypelib.c,
3558 girepository/gtypelib.h, girepository/girnode.c:
3559 Remove usage of (GAPI-oriented) TypeTag in favor of
3560 GITypeTag from girepository.h.
3562 2008-08-10 Colin Walters <walters@verbum.org>
3564 * tests/roundtrips.sh: Use the correct tests.
3566 2008-08-10 Colin Walters <walters@verbum.org>
3568 * giscanner/cgobject.py: Declare/wrap a few more functions.
3569 Fix parameter types for g_object_new and g_type_fundamental.
3571 2008-08-10 Colin Walters <walters@verbum.org>
3573 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3574 us to declare types for both return value and parameters. The
3575 ctypes default of 'int' is bad because it hides 32/64 bit
3576 problems. Convert all existing functions to use it.
3578 2008-08-09 Johan Dahlin <johan@gnome.org>
3580 * giscanner/__init__.py:
3582 * giscanner/cgobject.py:
3583 * giscanner/gidlparser.py:
3584 * giscanner/gidlwriter.py:
3585 * giscanner/girparser.py:
3586 * giscanner/girwriter.py:
3587 * giscanner/glibast.py:
3588 * giscanner/glibtransformer.py:
3589 * giscanner/odict.py:
3590 * giscanner/sourcescanner.py:
3591 * giscanner/transformer.py:
3592 * giscanner/utils.py:
3593 * giscanner/xmlwriter.py:
3594 * tools/g-ir-scanner:
3598 2008-08-09 Johan Dahlin <johan@gnome.org>
3601 * relaxng/c-types.xml:
3602 * relaxng/g-types.xml:
3603 * relaxng/relaxng.rng:
3605 Remove outdated relaxng schemas.
3607 2008-08-09 Johan Dahlin <johan@gnome.org>
3610 Rename metadata to typelib in variable names,
3613 2008-08-09 Johan Dahlin <johan@gnome.org>
3617 Remove old C scanner, which got rewritten in python.
3619 2008-08-09 Johan Dahlin <johan@gnome.org>
3621 * girepository/Makefile.am:
3622 * tools/Makefile.am:
3623 * tools/girmodule.c:
3624 * tools/girmodule.h:
3627 * tools/girparser.c:
3628 * tools/girparser.h:
3629 * tools/girwriter.c:
3630 * tools/girwriter.h:
3631 Move shared *.[ch] files to girepository from tools
3633 2008-08-09 Johan Dahlin <johan@gnome.org>
3635 * tests/Makefile.am:
3638 * tests/constant.test:
3640 * tests/errors.test:
3641 * tests/function.test:
3642 * tests/gobject.test:
3643 * tests/interface.test:
3644 * tests/object.test:
3645 * tests/struct.test:
3650 Rename *.test to *.gir
3652 2008-08-09 Johan Dahlin <johan@gnome.org>
3655 * tests/Makefile.am:
3656 * tests/parser/Foo-expected.gir:
3657 * tests/parser/Makefile.am:
3658 * tests/parser/foo-object.h:
3659 * tests/parser/foo.c:
3660 * tests/parser/utility-expected.gir:
3661 * tests/parser/utility.c:
3662 * tests/parser/utility.h:
3663 * tests/scanner/Makefile.am:
3664 Rename tests/parser to test/scanner
3666 2008-08-08 Colin Walters <walters@verbum.org>
3668 * tests/roundtrips.sh: Use local .gir files again.
3670 2008-08-08 Colin Walters <walters@verbum.org>
3672 * tests/invoke/Makefile.am: .gir file depends on libtool
3675 2008-08-08 Colin Walters <walters@verbum.org>
3677 * tools/girnode.c: Pass through parent node so we can
3678 print the node whose child is NULL, if that occurs.
3680 2008-08-08 Johan Dahlin <johan@gnome.org>
3682 * tests/Makefile.am:
3683 Disable roundtrip tests which are not yet working
3684 * tests/invoke/testfns.gir:
3687 2008-08-08 Johan Dahlin <johan@gnome.org>
3689 * giscanner/girwriter.py:
3691 * giscanner/glibast.py:
3692 * giscanner/glibtransformer.py:
3693 Swap order of members, to keep it consistent with
3696 2008-08-08 Johan Dahlin <johan@gnome.org>
3698 * girepository/gtypelib.c (validate_header):
3699 * girepository/gtypelib.h:
3701 * giscanner/girwriter.py:
3702 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3703 (gi_source_symbol_unref):
3706 * tests/constant.test:
3708 * tests/errors.test:
3709 * tests/function.test:
3710 * tests/gobject.test:
3711 * tests/interface.test:
3712 * tests/invoke/Makefile.am:
3713 * tests/invoke/testfns.xml:
3714 * tests/object.test:
3715 * tests/parser/Makefile.am:
3716 * tests/roundtrips.sh:
3717 * tests/struct.test:
3722 * tools/Makefile.am:
3723 * tools/compiler.c (main):
3724 * tools/generate.c (write_callable_info), (write_function_info),
3726 * tools/gidlmodule.c:
3727 * tools/gidlmodule.h:
3730 * tools/gidlparser.c:
3731 * tools/gidlparser.h:
3732 * tools/gidlwriter.c:
3733 * tools/gidlwriter.h:
3734 * tools/scanner.c (create_node_from_gtype),
3735 (create_node_from_ctype), (g_igenerator_process_properties),
3736 (g_igenerator_process_signals), (g_igenerator_create_object),
3737 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3738 (g_igenerator_create_enum), (g_igenerator_create_flags),
3739 (g_igenerator_process_function_symbol),
3740 (g_igenerator_process_unregistered_struct_typedef),
3741 (g_igenerator_process_struct_typedef),
3742 (g_igenerator_process_union_typedef),
3743 (g_igenerator_process_enum_typedef),
3744 (g_igenerator_process_function_typedef),
3745 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3746 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3747 Merge in the gir-compiler branch.
3748 Thanks to Philip and Colin for their help.
3750 2008-07-26 Colin Walters <walters@verbum.org>
3752 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3753 and g-idl-generate to go along with how we're changing this
3754 module to be installed.
3755 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3757 2008-07-24 Colin Walters <walters@verbum.org>
3759 * girepository/girepository.c (g_irepository_register): Add
3760 environment variable G_IREPOSITORY_VERBOSE so we can print
3761 out what we're doing.
3762 * girepository/girepository.c (g_irepository_register_file):
3763 Add GError error message to g_debug call.
3765 2008-07-08 Jürg Billeter <j@bitron.ch>
3767 * giscanner/glibast.py:
3771 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3773 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3776 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3779 * giscanner/girwriter.py:
3780 * giscanner/transformer.py:
3781 * tests/parser/Foo-expected.gir:
3782 * tests/parser/foo-object.h:
3783 * tests/parser/foo.c (foo_object_allow_none):
3784 Add support for gtk-doc annotations for allow-none.
3787 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3790 * giscanner/girwriter.py:
3791 * giscanner/glibast.py:
3792 * giscanner/glibtransformer.py:
3793 * giscanner/transformer.py:
3794 * tests/parser/Foo-expected.gir:
3795 Start using abstract type instead of the raw C types.
3796 Register a bunch of glib types we care about.
3798 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3803 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3805 * girepository/girepository.c:
3806 * girepository/gtypelib.c:
3807 * girepository/ginfo.c:
3808 * girepository/ginvoke.c:
3809 * girepository/girepository.h:
3810 * girepository/gtypelib.h:
3811 * girepository/gmetadata.c:
3812 * girepository/Makefile.am:
3813 * girepository/gmetadata.h:
3815 * tools/gidlmodule.c:
3818 * tools/gidlmodule.h:
3819 * tools/gidlparser.c:
3821 Renamed GMetadata to GTypelib
3823 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3825 * giscanner/xmlwriter.py:
3826 Improve line wrapping when > 79 charaters
3828 2008-06-05 Jürg Billeter <j@bitron.ch>
3831 * giscanner/girwriter.py:
3832 * giscanner/transformer.py:
3833 Use <type> element for field types
3834 * tests/parser/Foo-expected.gir:
3837 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3839 * giscanner/glibtransformer.py:
3840 Fix a bug which prevented GdkEvent from being generated
3842 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3844 * giscanner/Makefile.am:
3846 * giscanner/girwriter.py:
3847 * giscanner/glibast.py:
3848 * giscanner/glibtransformer.py:
3849 * giscanner/transformer.py:
3850 * giscanner/utils.py:
3851 * tests/parser/Foo-expected.gir:
3852 Improve enum member parsing and introspection
3854 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3856 * giscanner/scannerparser.y:
3857 * giscanner/sourcescanner.h:
3858 * giscanner/sourcescanner.py:
3859 Add a new source type enum for member.
3860 Use __repr__ for improved debugging
3861 * giscanner/girparser.py:
3863 * giscanner/transformer.py:
3864 Improve parsing of struct members.
3865 * tests/parser/foo-object.h:
3868 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3870 * giscanner/xmlwriter.py:
3871 Improve error reporting when trying to quote None.
3872 * giscanner/girparser.py:
3873 Do not print warnings when including more complete .gir files
3874 * giscanner/girwriter.py:
3875 Do not require a name for parameters, add a todo for singletons
3876 * giscanner/glibtransformer.py:
3877 Refactor the way structs are done, add a couple of hacks to allow
3879 * giscanner/transformer.py:
3880 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3881 * gobject-introspection-1.0.pc.in:
3882 Export girdir, so we can access gobject-2.0.gir from outside
3884 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3886 * tools/g-ir-scanner:
3887 * tests/parser/Makefile.am:
3888 Update sys.path before running the parser so we don't have
3889 to setup PYTHONPATH ourselves.
3893 * girepository/Makefile.am:
3894 * giscanner/transformer.py:
3895 * gobject-introspection-1.0.pc.in:
3896 * gobject-introspection.pc.in:
3897 * tools/Makefile.am:
3899 Rename pkg-config name to gobject-introspection-1.0,
3900 Do not installed anything which is not using the gir format.
3901 Disable compililation the old C scanner, but still keep the source
3902 until all the remaning functionallity has been ported.
3904 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3906 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3907 a crash when symbol->indent is NULL.
3909 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3910 a function to convert a CTYPE symbol to a string
3912 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3915 * giscanner/girwriter.py:
3916 * giscanner/giscannermodule.c
3917 (pygi_source_scanner_append_filename),
3918 (pygi_source_scanner_parse_file):
3919 * giscanner/glibtransformer.py:
3920 * giscanner/sourcescanner.py:
3921 Revert back to using temporary files to send in headers.
3922 Allow Functions to be passed in as callbacks, add a couple
3923 of try/excepts missing features.
3924 We can now scan pango
3926 2008-05-08 Johan Dahlin <johan@gnome.org>
3928 * giscanner/glibtransformer.py:
3929 * giscanner/transformer.py:
3930 Move namespace stripping glibtransformer->transformer
3932 2008-05-08 Johan Dahlin <johan@gnome.org>
3935 * giscanner/girwriter.py:
3936 * giscanner/glibtransformer.py:
3937 * giscanner/transformer.py:
3938 * tools/g-ir-scanner:
3939 Introduce a namespace ast node
3941 2008-05-05 Johan Dahlin <johan@gnome.org>
3943 * giscanner/__init__.py:
3944 * giscanner/sourcescanner.py:
3945 * giscanner/transformer.py:
3946 Move sourcescanner symbols to the sourcescanner module, instead
3947 of in the global __init__ namespace.
3949 2008-05-03 Johan Dahlin <johan@gnome.org>
3951 * giscanner/glibtransformer.py:
3952 * tools/g-ir-scanner:
3953 Handle missing parameters better, allow - and + in .la dlname
3956 2008-05-03 Johan Dahlin <johan@gnome.org>
3958 * giscanner/__init__.py:
3960 * giscanner/girwriter.py:
3961 * giscanner/glibtransformer.py:
3962 * giscanner/transformer.py:
3963 Parse struct fields properly, improve debugging.
3965 2008-04-29 Johan Dahlin <johan@gnome.org>
3968 * giscanner/girwriter.py:
3969 * giscanner/transformer.py:
3970 * tests/parser/Foo-expected.gir:
3972 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3974 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3977 * docs/g-ir-scanner.1:
3978 * metadata-annotations-proposal.txt:
3979 * metadata-format.txt:
3980 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3982 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3984 * giscanner/girwriter.py:
3985 * giscanner/glibtransformer.py:
3986 * giscanner/transformer.py:
3987 * giscanner/xmlwriter.py:
3988 * tests/parser/Foo-expected.gir:
3989 * tests/parser/foo-object.h:
3990 Write record/structs to gir file too. Add a couple of tests,
3991 fix an off by one error in xmlwriter.py.
3993 2008-04-28 Johan Dahlin <johan@gnome.org>
3995 * giscanner/xmlwriter.py: Calculate the line length properly,
3996 include the provided extra indentation in the calculation, really.
3998 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4001 * giscanner/glibast.py:
4002 * giscanner/glibtransformer.py:
4003 * giscanner/transformer.py:
4004 * tools/g-ir-scanner:
4005 Add a --strip-prefix and sort out confusion between names and symbols
4006 for functions and struct + derivaties.
4007 Refactor bootstrap of g-ir-scanner, so we can set options on
4008 Transformer() before parsing everything.
4010 2008-04-28 Johan Dahlin <johan@gnome.org>
4012 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
4013 when scanning girepository.h
4015 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
4016 a __GI_SCANNER__ when we run.
4018 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4021 * giscanner/girwriter.py:
4022 * giscanner/glibast.py:
4023 * giscanner/glibtransformer.py:
4024 * tests/parser/Foo-expected.gir:
4025 * tests/parser/utility-expected.gir:
4026 Rename most c:identifier to c:type. Add new ones to
4027 class/interface/enum/boxed.
4029 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
4032 * giscanner/girwriter.py:
4033 * giscanner/glibtransformer.py:
4034 * tests/parser/Foo-expected.gidl:
4035 * tests/parser/Makefile.am:
4036 Move c:identifier from return-value to subchild type,
4037 as per Jürgs suggestion
4039 2008-04-28 Johan Dahlin <johan@gnome.org>
4041 * giscanner/girwriter.py:
4042 * tests/parser/Foo-expected.gir:
4043 Write property.type as a child node.
4045 2008-04-27 Johan Dahlin <johan@gnome.org>
4050 * gidl/gobject-2.0.gidl:
4052 * gir/gobject-2.0.gir:
4053 * tests/parser/Makefile.am:
4054 Replace the GObject gidl with a GObject gir.
4056 2008-04-27 Johan Dahlin <johan@gnome.org>
4058 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
4061 * giscanner/xmlwriter.py:
4062 * tests/parser/Foo-expected.gir:
4063 Include indentation in line length calculation
4065 2008-04-27 Johan Dahlin <johan@gnome.org>
4067 * giscanner/girparser.py:
4068 Prettify NS parsing using elementtree.
4070 2008-04-27 Johan Dahlin <johan@gnome.org>
4073 * giscanner/Makefile.am:
4074 * giscanner/girparser.py:
4075 * giscanner/glibtransformer.py:
4076 * tests/parser/Foo-expected.gidl:
4077 * tests/parser/Foo-expected.gir:
4078 * tests/parser/Makefile.am:
4079 * tests/parser/utility-expected.gidl:
4080 * tests/parser/utility-expected.gir:
4081 * tools/g-ir-scanner:
4082 Switch over to GIR as the default format. Add a simple GIDL
4084 Update tests and fix simplify makefiles by depending
4085 on GNU make extensions.
4087 2008-04-27 Johan Dahlin <johan@gnome.org>
4089 * giscanner/xmlwriter.py:
4090 Wrap attributes for lines which are wider than 79 characters
4092 * giscanner/scannerlexer.l:
4093 Allow parenthesis in annotations
4096 * giscanner/gidlwriter.py:
4097 * giscanner/girwriter.py:
4098 * giscanner/glibtransformer.py:
4099 * giscanner/transformer.py:
4100 Add initial sequence support, including annotation.
4101 Refactor type handling a bit.
4103 2008-04-27 Johan Dahlin <johan@gnome.org>
4105 * tests/parser/Foo-expected.gidl:
4106 * tests/parser/foo-object.h:
4107 * tests/parser/foo.c (foo_object_class_init),
4108 (foo_object_get_strings), (foo_object_get_objects):
4109 Add two new functions to check sequence return values.
4110 Also fixes a compilation warning.
4112 2008-04-27 Johan Dahlin <johan@gnome.org>
4114 * giscanner/giscannermodule.c (]): Cast the getter, avoids
4115 a compilation warning.
4117 * tools/Makefile.am (g_ir_scanner_SOURCES):
4118 g-ir-scanner has no sources.
4120 2008-04-25 Johan Dahlin <johan@gnome.org>
4122 * giscanner/Makefile.am:
4124 * giscanner/gidlparser.py:
4125 * giscanner/gidlwriter.py:
4126 * giscanner/girwriter.py:
4127 * giscanner/glibast.py:
4128 * giscanner/glibtransformer.py:
4129 * giscanner/transformer.py:
4130 Split out nodes to ast.py and glibast.py
4132 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4134 * giscanner/Makefile.am:
4135 * giscanner/gidlparser.py:
4136 * giscanner/gidlwriter.py:
4137 * giscanner/girwriter.py:
4138 * giscanner/glibtransformer.py:
4139 * giscanner/gobjecttreebuilder.py:
4140 * giscanner/transformer.py:
4141 * giscanner/treebuilder.py:
4142 * tools/g-ir-scanner:
4143 Rename treebuilder to transformer and
4144 gobjectreebuilder to glibtransformer.
4146 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4148 * giscanner/Makefile.am:
4149 * giscanner/__init__.py:
4150 * giscanner/cgobject.py:
4151 * giscanner/gidlparser.py:
4152 * giscanner/gidlwriter.py:
4153 * giscanner/girwriter.py:
4154 * giscanner/gobjecttreebuilder.py:
4155 * giscanner/odict.py:
4156 * giscanner/sourcescanner.py:
4157 * giscanner/treebuilder.py:
4158 * giscanner/xmlwriter.py:
4159 * tools/Makefile.am:
4160 * tools/g-ir-scanner:
4161 Add LGPLv2 license header and install all python files
4163 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4166 * giscanner/gidlwriter.py:
4167 * giscanner/giscannermodule.c (pygi_source_directive_new),
4168 (directive_get_options), (pygi_source_symbol_new),
4169 (symbol_get_base_type), (pygi_source_type_new),
4170 (type_get_base_type), (type_get_child_list),
4171 (pygi_source_scanner_get_symbols),
4172 (pygi_source_scanner_get_directives):
4173 * giscanner/gobjecttreebuilder.py:
4174 * giscanner/sourcescanner.py:
4175 * giscanner/treebuilder.py:
4176 * tests/parser/foo-object.h:
4177 Add support for virtual methods.
4178 Pair struct FooClass with struct Foo.
4179 Clean up the SourceScanner bindings a bit.
4180 Add a testcase for virtual methods.
4182 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4184 * giscanner/cgobject.py:
4185 * giscanner/gidlwriter.py:
4186 * giscanner/gobjecttreebuilder.py:
4187 Add support for signals
4189 * tests/parser/foo.c (foo_object_class_init):
4190 * Foo-expected.gidl:
4191 Add a signal and update the expected output.
4193 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4195 * giscanner/gidlwriter.py:
4196 * giscanner/girwriter.py:
4197 * giscanner/giscannermodule.c (directive_get_name),
4198 (directive_get_value), (directive_get_options),
4199 (symbol_get_directives), (symbol_set_directives),
4200 (pygi_source_scanner_parse_file),
4201 (pygi_source_scanner_lex_filename),
4202 (pygi_source_scanner_get_directives), (init_giscanner):
4203 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4204 * giscanner/sourcescanner.h:
4205 * giscanner/sourcescanner.py:
4206 * giscanner/treebuilder.py:
4207 * tools/g-ir-scanner:
4208 Add support for source/header annotations.
4210 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4212 * giscanner/gidlwriter.py:
4213 * giscanner/girwriter.py:
4214 * giscanner/gobjecttreebuilder.py:
4215 * giscanner/treebuilder.py:
4216 Add support for Callbacks
4218 2008-04-22 Havoc Pennington <hp@pobox.com>
4220 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4221 not in metadata->module, look for it in the global module, in case
4222 some other object or the app itself provides the symbol.
4224 2008-04-22 Havoc Pennington <hp@pobox.com>
4226 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4227 dlopening a library that is already in the main app, by checking
4228 whether one of the lib's symbols is already loaded.
4230 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4232 * tests/parser/Foo-expected.gidl:
4233 * tests/parser/foo-object.h:
4236 2008-04-22 Havoc Pennington <hp@pobox.com>
4238 * girepository/ginfo.c (g_interface_info_find_method):
4239 Use interface_blob_size not object_blob_size to compute offset.
4241 2008-04-22 Havoc Pennington <hp@pobox.com>
4243 * girepository/gmetadata.c (_g_metadata_init): remove
4244 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4245 (Glade and Clutter for example) rely on being loaded globally.
4247 2008-04-22 Havoc Pennington <hp@pobox.com>
4249 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4250 function to get the GType given a RegisteredTypeInfo
4252 2008-04-22 Johan Dahlin <johan@gnome.org>
4254 * COPYING: Add a LGPL license, to prevent automake to
4255 put in a copy of GPL here. Pointed out by Havoc.
4257 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4258 (g_type_info_is_pointer), (g_type_info_get_tag),
4259 (g_type_info_get_param_type), (g_type_info_get_interface),
4260 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4261 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4262 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4263 (g_object_info_get_interface), (g_object_info_get_field),
4264 (g_interface_info_get_prerequisite),
4265 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4266 * girepository/ginvoke.c (get_ffi_type):
4267 * girepository/girepository.h:
4268 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4269 (g_metadata_check_sanity), (validate_header),
4270 (validate_array_type_blob), (validate_iface_type_blob),
4271 (validate_param_type_blob), (validate_error_type_blob),
4272 (validate_type_blob), (validate_constant_blob),
4273 (validate_struct_blob), (validate_enum_blob):
4274 * girepository/gmetadata.h:
4275 * tests/Makefile.am:
4276 * tests/invoke/Makefile.am:
4277 * tests/invoke/invoke.c (main):
4278 * tests/roundtrips.sh:
4279 * tools/Makefile.am:
4280 * tools/compiler.c (format_output), (write_out_metadata), (main):
4281 * tools/generate.c (write_type_name), (write_type_info),
4282 (write_constant_value), (write_enum_info), (load_metadata), (main):
4283 * tools/gidlcompilercontext.c:
4284 * tools/gidlcompilercontext.h:
4285 * tools/gidlcompilerentrynode.c:
4286 * tools/gidlcompilerentrynode.h:
4287 * tools/gidlcompilertypenode.c:
4288 * tools/gidlcompilertypenode.h:
4289 * tools/gidlmodule.c (g_idl_module_build_metadata):
4290 * tools/gidlmodule.h:
4291 * tools/gidlnode.c (init_stats), (dump_stats),
4292 (g_idl_node_get_size), (g_idl_node_get_full_size),
4293 (g_idl_node_cmp), (g_idl_node_can_have_member),
4294 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4295 (parse_int_value), (parse_uint_value), (parse_float_value),
4296 (parse_boolean_value), (find_entry_node), (find_entry),
4297 (serialize_type), (g_idl_node_build_metadata), (write_string):
4299 * tools/gidlparser.c (parse_type_internal):
4300 * tools/quote-file.sh:
4301 Revert revisions 157,149-148,136-129 and 120.
4302 Move back to using g-idl-generate to generate the metadata and
4303 avoids dependency on a c compiler.
4305 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4307 * giscanner/girwriter.py:
4308 * tools/g-ir-scanner:
4309 Add an initial GIR writer and a --format option to g-ir-scanner
4311 2008-04-21 Johan Dahlin <johan@gnome.org>
4313 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4314 gobject-2.0 and raise ImportError if not found.
4316 * giscanner/gidlparser.py:
4317 * giscanner/gidlwriter.py:
4318 * giscanner/gobjecttreebuilder.py:
4319 * tools/g-ir-scanner:
4320 Add a --include argument to include types from other idls.
4321 Add a minimalistic GIDL parser (just objects for now)
4322 Implement resolving of external type references and use it to
4323 resolve parent types, argument types and return types.
4325 2008-04-21 Johan Dahlin <johan@gnome.org>
4327 * giscanner/gidlwriter.py:
4328 * giscanner/gobjecttreebuilder.py:
4329 * giscanner/treebuilder.py:
4330 Add support for properties.
4331 Refactor Class/Interface support a bit, to share more code and
4332 always initialize their method attribute to an empty list.
4334 2008-04-21 Johan Dahlin <johan@gnome.org>
4336 * giscanner/cgobject.py:
4337 Add a workaround for a glib bug interface introspection bug
4338 (object_interface_list_properties, object_class_list_properties):
4339 Cast the return value to GParamSpec.
4341 * tests/parser/Foo-expected.gidl: Update
4342 * tests/parser/foo.c: Add a string property
4344 * giscanner/gobjecttreebuilder.py:
4345 After stripping namespaces, remove the original
4346 item to avoid duplication (GtkButton struct and Button object)
4348 2008-04-21 Johan Dahlin <johan@gnome.org>
4350 * giscanner/gobjecttreebuilder.py:
4351 * giscanner/treebuilder.py:
4352 Strip namespaces before objects, so we'll export
4353 GtkButton as Button in the gtk namespace
4355 2008-04-21 Johan Dahlin <johan@gnome.org>
4357 * giscanner/gidlwriter.py:
4358 * giscanner/gobjecttreebuilder.py:
4359 * giscanner/treebuilder.py:
4360 Add constructors for object/boxed types.
4362 2008-04-21 Johan Dahlin <johan@gnome.org>
4364 * giscanner/gidlwriter.py:
4365 * giscanner/gobjecttreebuilder.py:
4366 Add support for boxed types
4368 2008-04-21 Johan Dahlin <johan@gnome.org>
4370 * giscanner/giscannermodule.c: Mark structures as const,
4371 wrap SourceType.const_string.
4373 * tests/parser/foo-object.h: Add a couple of constants.
4375 * giscanner/gidlwriter.py:
4376 * giscanner/gobjecttreebuilder.py:
4377 * giscanner/treebuilder.py:
4378 Add basic support for interfaces
4380 * tools/g-ir-scanner:
4381 Add -o/--output for writing to a file
4383 2008-04-21 Havoc Pennington <hp@redhat.com>
4385 * TODO: add some C API wishlist items I could think of quickly
4387 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4389 * giscanner/gidlwriter.py:
4390 * giscanner/xmlwriter.py:
4391 Add a simple api for writing tags which can be used
4392 with the new 'with statement' in python 2.5
4394 2008-04-21 Johan Dahlin <johan@gnome.org>
4396 * giscanner/gobjecttreebuilder.py:
4397 Strip namespace and object prefix from method names.
4399 2008-04-21 Johan Dahlin <johan@gnome.org>
4401 * tools/g-ir-scanner (main): Add --pkg option to pass in
4402 pkg-config modules to get cflags from.
4404 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4405 Avoid duplication, reuse function writer for methods.
4407 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4409 * giscanner/gidlwriter.py:
4410 * giscanner/gobjecttreebuilder.py:
4411 * giscanner/treebuilder.py:
4412 * tools/g-ir-scanner:
4413 Resolve libtool .la files.
4414 Strip name spaces for methods.
4415 Add function symbols
4417 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4419 * giscanner/cgobject.py:
4420 * giscanner/gidlwriter.py:
4421 * giscanner/gobjecttreebuilder.py:
4422 * giscanner/treebuilder.py:
4423 Add support for classes and methods
4425 2008-04-20 Johan Dahlin <johan@gnome.org>
4427 * giscanner/gidlwriter.py:
4428 * giscanner/gobjecttreebuilder.py:
4429 * giscanner/odict.py:
4430 Avoid conflicts, keep the output ordered similar to
4431 the order of the input.
4432 Add a simple ordered dictionary implemenation
4434 2008-04-19 Johan Dahlin <johan@gnome.org>
4436 * giscanner/cgobject.py:
4437 * giscanner/gidlwriter.py:
4438 * giscanner/gobjecttreebuilder.py:
4439 * tools/g-ir-scanner:
4440 Start introspecting get-type functions.
4441 Implement support for GLib/GFlags GTypes.
4442 Add a ctype based GObject binding.
4444 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4446 * giscanner/gidlwriter.py:
4447 * giscanner/xmlwriter.py:
4448 * tools/g-ir-scanner:
4449 Add a simplistic gidl writer, which can't do too much.
4451 2008-04-18 Johan Dahlin <johan@gnome.org>
4453 * giscanner/sourcescanner.py:
4454 * giscanner/treebuilder.py:
4455 * tools/g-ir-scanner:
4456 split tree building and source scanning interface to separate files.
4458 2008-04-18 Johan Dahlin <johan@gnome.org>
4460 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4462 - Add support for struct/parameter/return, start parsing of ctypes
4464 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4467 2008-03-31 Johan Dahlin <johan@gnome.org>
4469 * tools/g-ir-scanner:
4470 Start to build abstract syntax node of scanned sources.
4471 Add support for cpp options.
4473 2008-03-27 Johan Dahlin <johan@gnome.org>
4475 * giscanner/giscannermodule.c:
4476 * giscanner/scannerlexer.l:
4477 * giscanner/sourcescanner.c:
4478 * tools/g-ir-scanner:
4480 Add simple pre-processor using subprocess and a PIPE.
4481 Change the parse_file apis to accept a file descriptor.
4483 2008-03-25 Johan Dahlin <johan@gnome.org>
4485 * giscanner/__init__.py:
4486 * tools/g-ir-scanner:
4487 Fix a typo and add an example python test program.
4489 2008-03-25 Johan Dahlin <johan@gnome.org>
4491 * giscanner/__init__.py:
4492 * giscanner/giscannermodule.c:
4493 * giscanner/sourcescanner.c:
4494 * giscanner/sourcescanner.h:
4495 Add constants and wrap a few more SymbolType fields
4497 2008-03-25 Johan Dahlin <johan@gnome.org>
4501 * giscanner/__init__.py:
4502 * giscanner/giscannermodule.c:
4503 * giscanner/Makefile.am:
4505 Add initial python bindings for the scanner and
4506 depend on python 2.5.
4508 2008-03-25 Johan Dahlin <johan@gnome.org>
4512 * giscanner/Makefile.am:
4513 * giscanner/sourcescanner.c:
4514 * giscanner/sourcescanner.h:
4515 * tools/Makefile.am:
4516 * tools/grealpath.h:
4517 * tools/sourcescanner.c:
4518 * tools/sourcescanner.h:
4520 Move the scanner to a separate library.
4522 2008-03-23 Johan Dahlin <johan@gnome.org>
4524 * tools/Makefile.am:
4527 * tools/scannerlexer.l:
4528 * tools/scannerparser.y:
4529 * tools/sourcescanner.c:
4530 * tools/sourcescanner.h:
4531 Split out the source scanner from the generator.
4532 Rename the symbols used in the scanner to use the gi_ prefix.
4533 This should make it possible to use the raw C parser from
4536 2008-03-23 Johan Dahlin <johan@gnome.org>
4538 * tests/parser/Makefile.am (utility.gidl):
4539 * tests/parser/utility-expected.gidl:
4540 Pass in the gobject.gidl since we're defining a GObject.
4542 2008-03-12 Johan Dahlin <johan@gnome.org>
4544 * relaxng/relaxng.rng:
4545 Add a releaxng in relaxng we can use to validate the relaxngs
4548 2008-03-12 Jürg Billeter <j@bitron.ch>
4550 * tools/scanner.c: (g_igenerator_new):
4551 * tools/scannerparser.y:
4552 Fix compiler warnings.
4554 2008-03-12 Jürg Billeter <j@bitron.ch>
4558 * tools/scannerparser.y:
4559 Start fixing memory management in g-idl-scanner.
4561 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4563 * tools/gidlcompilercontext.c: (write_compiled):
4564 Fix critical warning when no shlib passed to g-idl-compiler.
4566 2008-03-12 Johan Dahlin <johan@gnome.org>
4568 * tests/parser/utility-expected.gidl:
4569 * tests/parser/utility.h:
4570 Add a get_type-function, so the scanner actually
4571 parses it as an object.
4573 2008-03-12 Johan Dahlin <johan@gnome.org>
4575 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4578 * tests/parser/Foo-expected.gidl:
4579 * tests/parser/Makefile.am:
4580 * tests/parser/foo-object.h:
4581 * tests/parser/foo.c:
4582 * tests/parser/utility-expected.gidl:
4583 * tests/parser/utility.c:
4584 * tests/parser/utility.h:
4586 Add a new gidl test. 'utility.gidl', which is used to be able
4587 to test external type references. Add a reference to UtilityObject*
4590 2008-03-11 Johan Dahlin <johan@gnome.org>
4594 Remove most global variables
4596 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4598 * tools/scannerlexer.l:
4600 * tests/parser/Foo-expected.gidl:
4601 * tests/parser/foo.c:
4602 * tests/parser/Makefile.am:
4603 * tests/parser/foo-object.h:
4605 Added a few extra tests. Which resulted in finding a few
4606 bugs. Which resulted in me fixing those bugs
4608 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4610 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4611 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4612 Add some comments for strings into generated output for
4615 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4617 * tools/gidlcompilercontext.c: (write_compiled):
4618 Write out the shlibs variable before writing out the strings
4619 length. Fixes compiler warning when using '-l' flag with
4622 2008-03-11 Johan Dahlin <johan@gnome.org>
4624 * tests/parser/Foo-expected.gidl:
4625 * tests/parser/foo-object.h:
4628 * tools/scannerlexer.l:
4629 Add support for parsing return arguments. Add support for
4630 caller-owns return types.
4631 Patch by Philip Van Hoof.
4633 * tools/scannerparser.y:
4634 Remove parsing of the @deprecated syntax used in headers.
4635 We will support gtk-doc deprecation in the future instead.
4637 2008-03-11 Johan Dahlin <johan@gnome.org>
4639 * tools/compiler.c (main): Coding style fixes
4641 2008-03-10 Johan Dahlin <johan@gnome.org>
4644 Add GCOV_LIBS to GILIBS
4646 2008-03-10 Johan Dahlin <johan@gnome.org>
4648 * tests/parser/Foo-expected.gidl:
4649 * tests/parser/foo.c:
4650 Rename null-ok to direction=out
4652 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4654 reviewed and extensively tested by Johan
4656 * tests/parser/Foo-expected.gidl:
4657 * tests/parser/foo-object.h:
4658 * tests/parser/foo.c:
4661 * tools/gidlwriter.c:
4664 * tools/scannerlexer.l:
4665 * tools/scannerparser.y:
4667 Add support for scanning for gtk-doc comments inside
4668 C source files. Add tests
4670 2008-03-10 Johan Dahlin <johan@gnome.org>
4672 * tests/parser/Makefile.am:
4673 * tests/parser/foo.c:
4676 * tools/scannerparser.y:
4677 Add an api to lex filenames.
4678 Lex all source .c files passed in on the command line.
4679 Scan sources in a test and a couple of private structures
4680 which should not be included in the generated gidl
4682 2008-03-10 Johan Dahlin <johan@gnome.org>
4684 * tests/invoke/Makefile.am: Make the generated metadata
4685 depend on the g-idl-compiler
4687 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4689 * tools/gidlmodule.c
4690 * tools/gidlmodule.h
4693 Remove the old g-idl-compiler code.
4696 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4698 * tools/quote-file.sh
4701 Move to using the 'C' struct compiler code.
4703 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4705 * girepository/ginfo.c
4707 Change the way that external references with no namespace
4708 are dealt with. External references with no namespace
4709 are placed into the XML as-if they are a local reference.
4710 This is temporary, but helps with roundtrip tests.
4712 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4714 * girepository/ginfo.c
4715 Add the ability to get the value of a constant of
4716 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4717 is provided as a string.
4719 This would deal properly with:
4720 typedef char* random;
4721 const random = "A string";
4723 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4725 * girepository/ginfo.c
4726 * girepository/girepository.h
4728 Add a function to check if an enum is registered or not.
4729 Previously anything testing this relied on the g-type
4730 string offset having a value of 0.
4732 * girepository/gmetadata.c
4733 * girepository/gmetadata.h
4735 Remove unneccesary or erroneous checks. There were two
4736 metadata validation checks which made sure that the blob
4737 sizes were the same as some magic numbers compiled into the code.
4738 This is wrong as it breaks any forwards compatibility that may
4741 Checks were also present that made sure that unregistered type
4742 blobs had a value of 0 in the g-type offset field. This is
4743 unneccessary. If a type blob is unregistered then any value
4744 in its g-type field is simply invalid.
4746 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4748 * girepository/ginfo.c
4749 * girepository/gmetadata.c
4750 * girepository/gmetadata.h
4752 Change the metadata format to have a standard header
4753 for all the type blobs. Merge the SimpleTypeBlob
4754 and InterfaceTypeBlob into a union. A union of these
4755 two blobs existed previously but was not explicit
4756 in the metadata format.
4758 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4760 * tools/gidlcompilercontext.c
4761 * tools/gidlcompilercontext.h
4762 * tools/gidlcompilerentrynode.c
4763 * tools/gidlcompilerentrynode.h
4764 * tools/gidlcompilertypenode.c
4765 * tools/gidlcompilertypenode.h
4767 Add code to compile a tree of GIdlNodes to
4768 a 'C' struct representing the metadata.
4769 This is to aid cross-compiling. Previously
4770 the g-idl-compiler created a binary blob with
4771 data written in the byte order and alignment
4772 of the tool rather than the intended target.
4774 Cleaned up and improved by Johan and Robert :-)
4776 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4778 * girepository/ginvoke.c
4779 * girepository/girepository.h
4780 * girepository/gmetadata.c
4781 * girepository/gmetadata.h
4783 * tools/gidlparser.c
4784 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4785 to avoid confusion with the interface blob.
4788 * tools/gidlparser.c
4789 Remove magic numbers and replace with type-tag
4790 enumeration symbols.
4792 * girepository/gmetadata.c
4793 Add validate declaration.
4795 2008-03-10 Jürg Billeter <j@bitron.ch>
4797 * tools/gidlparser.c: (parse_type_internal):
4798 * tools/scannerlexer.l:
4799 * tools/scannerparser.y:
4800 Support C99 _Bool type in scanner.
4802 2008-03-10 Jürg Billeter <j@bitron.ch>
4804 * tests/parser/Foo-expected.gidl:
4805 * tests/parser/foo-object.h:
4806 * tests/parser/foo.c: (foo_enum_method):
4807 * tools/scanner.c: (g_igenerator_process_function_symbol):
4808 Don't skip functions that are defined in the namespace of a type
4809 that doesn't support methods, as for example enums.
4811 2008-03-10 Johan Dahlin <johan@gnome.org>
4813 * gidl.dtd: Remove, we're using relaxng for now
4815 * tests/parser/Foo-expected.gidl:
4816 * tests/parser/foo-object.h:
4817 * tests/parser/foo.c:
4818 Rename the enum/flags get_type functions to include the whole type.
4820 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4822 * tools/gidlwriter.c (enum_generate): added "type-name",
4823 "get-type" and "deprecated" missing arguments.
4824 * tests/parser/Foo-expected.gidl:
4825 * tests/parser/foo-object.h: test enum type, and no type.
4827 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4830 Consistent checks, add missing 'test'
4832 2008-03-05 Havoc Pennington <hp@redhat.com>
4834 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4835 does on Fedora 8. Make libffi a hard requirement, since it was in
4836 practice anyway (was not really conditional in the code or
4837 makefile, only in configure).
4839 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4841 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4842 reviewed by: Johan Dahlin <johan@gnome.org>
4844 * tests/Makefile.am:
4845 * tests/roundtrips.sh:
4846 Modify the roundtrips test so that they do not use the
4847 --raw option of the gidl compiler but instead compile a
4848 shared library to use with g_module.
4850 * tests/invoke/Makefile.am:
4851 * tests/invoke/invoke.c:
4852 Modify the invoke tests to build a shared library rather
4853 than use the --raw option.
4855 * tests/invoke/invoke-namespace-find.sh: Removed:
4856 Noone knows why this was here, so removed.
4858 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4860 * tools/scanner.c: (g_igenerator_process_function_symbol):
4861 Move g_idl_node_can_have_member test later, as it broke spotting
4862 get_type's for nodes that can't have members.
4864 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4867 * tools/gidlnode.c: (g_idl_node_can_have_member):
4868 Add g_idl_node_can_have_member.
4870 * tools/scanner.c: (g_igenerator_process_function_symbol):
4871 Use g_idl_node_can_have_member to test if we should add a function
4872 as a member of the type node.
4874 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4876 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4878 * tests/parser/Makefile.am:
4879 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4881 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4883 * tools/scanner.c: (main):
4884 Ignore -pthread when passed to g-idl-scanner.
4886 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4888 * tools/grealpath.h: Added:
4889 * tools/scanner.c: (main):
4890 * tools/scannerlexer.l:
4891 * tools/Makefile.am:
4892 Always use absolute paths with symbolic links resolved when
4893 comparing filenames.
4895 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4897 * gobject-introspection.pc.in:
4898 Provide variables for g-idl-parser, scanner and compiler in the
4901 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4904 * girepository/Makefile.am:
4905 * tools/Makefile.am:
4906 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4908 2008-02-10 Johan Dahlin <johan@gnome.org>
4910 * tests/parser/Foo-expected.gidl:
4911 * tests/parser/foo-object.h:
4912 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4913 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4916 2008-02-10 Johan Dahlin <johan@gnome.org>
4918 * tests/parser/Foo-expected.gidl:
4919 * tests/parser/foo-object.h:
4920 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4921 Add enum and flags test.
4923 2008-02-10 Johan Dahlin <johan@gnome.org>
4927 * girepository/Makefile.am:
4928 Make 'make distcheck' work again.
4930 2008-02-10 Johan Dahlin <johan@gnome.org>
4932 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4935 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4936 check, eg exclude it from BUILT_SOURCES.
4938 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4943 * girepository/Makefile.am:
4944 * m4/Makefile.am: Added:
4945 * m4/as-compiler-flag.m4: Added:
4946 * m4/gcov.m4: Added:
4947 * tools/Makefile.am:
4948 Add ability to generate a coverage report.
4949 Adds configure option --enable-gcov and make rule 'check-coverage'.
4951 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4955 * gidl/Makefile.am: Added:
4956 * girepository/Makefile.am: Added:
4957 * src/Makefile.am: Renamed to tools/Makefile.am:
4958 * src/compiler.c: Renamed to tools/compiler.c:
4959 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4960 * src/generate.c: Renamed to tools/generate.c:
4961 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4962 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4963 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4964 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4965 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4966 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4967 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4968 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4969 * src/ginfo.c: Renamed to girepository/ginfo.c:
4970 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4971 * src/girepository.c: Renamed to girepository/girepository.c:
4972 * src/girepository.h: Renamed to girepository/girepository.h:
4973 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4974 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4975 * src/scanner.c: Renamed to tools/scanner.c:
4976 * src/scanner.h: Renamed to tools/scanner.h:
4977 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4978 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4979 * tests/invoke/Makefile.am:
4980 Split src/ into girepository/ and tools/
4984 * girepository/Makefile.am:
4985 * tests/Makefile.am:
4986 * tests/invoke/Makefile.am:
4987 * tests/parser/Makefile.am:
4988 * tests/roundtrips.sh:
4989 * tools/Makefile.am:
4990 Make distcheck work.
4992 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4994 * tests/invoke/invoke.c: (main):
4995 * tests/invoke/testfns.c: (test6), (test7):
4996 * tests/invoke/testfns.xml:
4997 Add tests for invokation with a GList argument.
4998 Also tests caller-owns return values.
5000 2008-02-04 Rob Taylor <robtaylor@floopily.org>
5003 Add some documentation for GICallableInfo
5005 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
5008 Correct syntax errors in the DTD file.
5010 * relaxng/c-types.xml:
5011 * relaxng/g-types.xml:
5013 Add a RelaxNG specification for the GObject Introspection XML data.
5014 The Specification has validated all of the test files.
5016 2008-01-25 Rob Taylor <robtaylor@floopily.org>
5018 * tests/roundtrips.sh:
5019 * tests/struct.test:
5020 Add roundtrip tests for structs.
5022 2008-01-11 Johan Dahlin <johan@gnome.org>
5024 * src/scanner.c (g_igenerator_process_function_symbol):
5025 Refactor out g_idle_node_add_member.
5026 (create_node_from_gtype, create_node_from_ctype):
5027 Use case instead of if...else
5028 (get_type_from_type_id):
5029 Rename to create_node_from_gtype
5030 (get_type_from_ctype):
5031 Rename to create_node_from_ctype
5033 Rename ginode -> node, gitype -> type, gifunc -> func.
5035 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
5036 Two new functions, refactor out of scanner.c
5038 * src/scanner.c: (g_igenerator_process_function_symbol):
5039 * src/scannerlexer.l:
5040 Do not save the content of the deprecated variable, only
5043 2008-01-11 Johan Dahlin <johan@gnome.org>
5045 * tests/parser/foo-object.h: Add a couple of comment parser tests.
5047 2008-01-11 Jürg Billeter <j@bitron.ch>
5049 * src/scannerlexer.l:
5050 Fix GTK-Doc parsing.
5052 2008-01-11 Jürg Billeter <j@bitron.ch>
5054 * src/scannerlexer.l:
5055 Fix GTK-Doc parsing.
5057 2008-01-11 Jürg Billeter <j@bitron.ch>
5059 * src/scanner.c: (lookup_symbol):
5060 Return unresolved name if we find unknown symbol.
5062 2008-01-11 Jürg Billeter <j@bitron.ch>
5064 * src/scanner.c: (g_igenerator_generate):
5065 Initialize GObject to fix scanning interface properties.
5067 * tests/parser/Foo-expected.gidl:
5068 * tests/parser/foo-object.h:
5069 * tests/parser/foo.c: (foo_interface_get_type):
5070 Test interfaces with GObject prerequisite.
5072 * tests/parser/Makefile.am:
5073 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
5075 2007-12-27 Johan Dahlin <johan@gnome.org>
5077 * src/scannerlexer.l:
5078 Parse gtk-doc comments.
5080 * src/gidlwriter.c: (function_generate):
5081 Reorganize, avoid duplication and add support for
5082 writing deprecated functions.
5084 * src/scannerparser.y:
5086 Add new structure CDirective and functions to create/free them.
5088 * src/scanner.c: (g_igenerator_process_function_symbol),
5089 (g_igenerator_process_unregistered_struct_typedef),
5090 (g_igenerator_process_struct_typedef),
5091 (g_igenerator_process_union_typedef),
5092 (g_igenerator_process_enum_typedef),
5093 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
5094 (g_igenerator_start_preprocessor):
5095 Parse @deprecated directive for functions.
5096 Remove some more C99isms.
5097 Send in -C to cpp to avoid stripping comments.
5099 * tests/parser/foo-object.h:
5100 * tests/parser/Foo-expected.gidl:
5101 Add deprecated directive
5103 2007-12-27 Johan Dahlin <johan@gnome.org>
5105 * src/scannerlexer.l (intsuffix): Add emacs mode line and
5106 escape ' and " so it looks more like C.
5109 Unlink temporary file used.
5111 2007-12-27 Johan Dahlin <johan@gnome.org>
5113 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
5114 (g_igenerator_start_preprocessor), (main):
5116 * src/scannerparser.y:
5117 Plug a couple of simple memory leaks.
5119 2007-12-27 Johan Dahlin <johan@gnome.org>
5121 * src/scanner.c: (g_igenerator_parse_macros),
5122 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
5125 * src/scannerparser.y:
5126 * tests/parser/Makefile.am:
5128 Improve error reporting, return when the preprocessor fails.
5129 Add a verbose parameter, to aid debugging.
5130 Revert to using a temporary file to communicate between the
5131 preprocessor and the parser, because we need to wait for
5132 the exit code from the pre-processor before starting to parse.
5134 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
5136 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
5137 cparser.y to scannerparser.y
5139 2007-12-11 Johan Dahlin <johan@gnome.org>
5143 * src/scanner.c: (g_igenerator_new):
5145 Get rid of the global the_generator variable.
5147 2007-12-10 Johan Dahlin <johan@gnome.org>
5149 * src/scanner.c (main): Add an output option,
5150 add checks for required parameters
5153 set BUILD_SOURCES and CLEANFILES properly
5155 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5156 (g_writer_write_indent), (g_writer_write_unindent),
5157 (field_generate), (value_generate), (constant_generate),
5158 (property_generate), (function_generate), (vfunc_generate),
5159 (signal_generate), (interface_generate), (struct_generate),
5160 (union_generate), (boxed_generate), (enum_generate),
5161 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5163 * src/scanner.c: (g_igenerator_generate):
5165 * src/scannerwriter.c:
5167 Refactor scannerwriter to only be tied to a GIdlModule and move
5168 it (again!) to gidlwriter.c. Change the writer function to take
5171 2007-12-10 Johan Dahlin <johan@gnome.org>
5174 * src/scanner.c: (g_igenerator_generate):
5176 * src/scannerwriter.c: (g_igenerator_write_inline),
5177 (g_igenerator_write), (g_igenerator_write_indent),
5178 (g_igenerator_write_unindent), (field_generate), (value_generate),
5179 (constant_generate), (property_generate), (function_generate),
5180 (vfunc_generate), (signal_generate), (interface_generate),
5181 (struct_generate), (union_generate), (boxed_generate),
5182 (enum_generate), (node_generate), (module_generate),
5183 (g_scanner_write_file):
5185 Move the scanner gidl writing to a separate source file.
5187 2007-12-10 Johan Dahlin <johan@gnome.org>
5192 Move over all CType construction functions.
5194 * tests/parser/Makefile.am:
5195 Be verbose when printing parsing tests results.
5197 2007-12-10 Johan Dahlin <johan@gnome.org>
5199 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5200 preprocessor handling to here. Start cpp insteado of cc -E,
5201 always include -U__GNUC__, since it's specific to the preprocessor
5204 * tests/parser/Makefile.am (check-local): Silent diff and skip
5205 -U__GNUC__ which is always defined now
5207 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5209 reviewed by: <delete if not using a buddy>
5211 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5212 * tests/parser/Makefile.am:
5214 2007-12-09 Johan Dahlin <johan@gnome.org>
5217 Use GOption for command line options.
5218 (g_igenerator_new, main): Simplify constructor and they way
5219 parameters are passed into it.
5225 * src/gen-introspect.c:
5226 * src/gen-introspect.h:
5228 Rename gen-introspect.[ch] to scanner.[ch]
5230 2007-12-09 Johan Dahlin <johan@gnome.org>
5234 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5235 don't make the repository library and the other utilites link against
5238 * src/gen-introspect.c: (g_igenerator_create_object),
5239 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5240 (g_igenerator_create_enum), (g_igenerator_create_flags),
5241 (g_igenerator_process_module_symbol),
5242 (g_igenerator_process_module), (g_igenerator_generate), (main):
5243 * src/gen-introspect.h:
5244 Refactor g_igenerator_process_types into smaller pieces.
5246 * tests/parser/Makefile.am:
5247 Depend on the gen-introspect binary
5249 2007-12-09 Johan Dahlin <johan@gnome.org>
5251 * src/gen-introspect.c (g_igenerator_process_types):
5252 Break into smaller pieces, one for each generated node type.
5254 2007-12-08 Johan Dahlin <johan@gnome.org>
5256 * src/gen-introspect.c: (g_igenerator_process_types),
5257 (g_igenerator_add_module):
5258 * tests/parser/Foo-expected.gidl:
5259 * tests/parser/foo-object.h:
5260 * tests/parser/foo.c: (foo_subobject_class_init),
5261 (foo_subobject_init):
5263 Add a subobject test and make sure to register defined classes
5264 in the lookup symbol hash table.
5266 2007-12-08 Johan Dahlin <johan@gnome.org>
5270 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5271 (g_igenerator_process_types), (g_igenerator_add_module),
5272 (g_igenerator_add_include_idl), (main):
5273 * src/gen-introspect.h:
5274 * tests/parser/Makefile.am:
5275 * tests/parser/Foo-expected.gidl:
5277 Change the gen-introspect to generate namespaced module names,
5278 such as GLib.Object instead of GObject.
5279 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5280 add a --include-idl parameter to gen-introspect,
5281 and update the parser test.
5283 2007-12-08 Johan Dahlin <johan@gnome.org>
5285 * src/gen-introspect.c:
5286 Move main to the end of the file and attempt to make it valid
5289 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5290 we're not quite ready to generate metadata yet.
5295 Add a simple gen-introspect parser test
5297 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5299 reviewed by: Johan Dahlin <johan@gnome.org>
5302 * gobject-introspection.pc.in:
5304 * src/compiler.c: (format_output), (write_out_metadata), (main):
5305 * src/gen-introspect.c: (main):
5306 * src/gen-introspect.h:
5307 * src/generate.c: (write_callable_info), (write_repository),
5308 (load_metadata), (main):
5309 * src/gidlmodule.c: (g_idl_module_new),
5310 (g_idl_module_build_metadata):
5312 * src/gidlparser.c: (start_element_handler):
5313 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5314 (g_base_info_get_name), (g_base_info_get_namespace),
5315 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5316 (g_base_info_get_metadata), (g_function_info_get_symbol),
5317 (g_function_info_get_flags), (g_function_info_get_property),
5318 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5319 (g_callable_info_may_return_null),
5320 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5321 (g_callable_info_get_arg), (g_arg_info_get_direction),
5322 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5323 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5324 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5325 (g_type_info_get_tag), (g_type_info_get_param_type),
5326 (g_type_info_get_interface), (g_type_info_get_array_length),
5327 (g_type_info_is_zero_terminated),
5328 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5329 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5330 (g_value_info_get_value), (g_field_info_get_flags),
5331 (g_field_info_get_size), (g_field_info_get_offset),
5332 (g_registered_type_info_get_type_name),
5333 (g_registered_type_info_get_type_init),
5334 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5335 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5336 (find_method), (g_struct_info_find_method),
5337 (g_enum_info_get_n_values), (g_enum_info_get_value),
5338 (g_object_info_get_parent), (g_object_info_get_type_name),
5339 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5340 (g_object_info_get_interface), (g_object_info_get_n_fields),
5341 (g_object_info_get_field), (g_object_info_get_n_properties),
5342 (g_object_info_get_property), (g_object_info_get_n_methods),
5343 (g_object_info_get_method), (g_object_info_find_method),
5344 (g_object_info_get_n_signals), (g_object_info_get_signal),
5345 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5346 (g_object_info_get_n_constants), (g_object_info_get_constant),
5347 (g_interface_info_get_n_prerequisites),
5348 (g_interface_info_get_prerequisite),
5349 (g_interface_info_get_n_properties),
5350 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5351 (g_interface_info_get_method), (g_interface_info_find_method),
5352 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5353 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5354 (g_interface_info_get_n_constants),
5355 (g_interface_info_get_constant), (g_property_info_get_flags),
5356 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5357 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5358 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5359 (g_constant_info_get_value), (g_union_info_get_n_fields),
5360 (g_union_info_get_field), (g_union_info_get_n_methods),
5361 (g_union_info_get_method), (g_union_info_is_discriminated),
5362 (g_union_info_get_discriminator_offset),
5363 (g_union_info_get_discriminator):
5364 * src/ginvoke.c: (g_function_info_invoke):
5365 * src/girepository.c: (g_irepository_register),
5366 (g_irepository_unregister), (g_irepository_get_default),
5367 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5368 (g_irepository_get_info), (g_irepository_find_by_name),
5369 (g_irepository_get_shared_library),
5370 (g_irepository_build_search_path), (g_irepository_register_file),
5371 (g_irepository_error_quark):
5372 * src/girepository.h:
5373 * src/gmetadata.c: (g_metadata_get_dir_entry),
5374 (g_metadata_check_sanity), (validate_header),
5375 (validate_array_type_blob), (validate_iface_type_blob),
5376 (validate_param_type_blob), (validate_error_type_blob),
5377 (validate_type_blob), (validate_arg_blob),
5378 (validate_signature_blob), (validate_function_blob),
5379 (validate_callback_blob), (validate_constant_blob),
5380 (validate_value_blob), (validate_field_blob),
5381 (validate_property_blob), (validate_signal_blob),
5382 (validate_vfunc_blob), (validate_struct_blob),
5383 (validate_enum_blob), (validate_object_blob),
5384 (validate_interface_blob), (validate_errordomain_blob),
5385 (validate_union_blob), (validate_blob), (validate_directory),
5386 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5387 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5388 (g_metadata_new_from_mapped_file), (g_metadata_free),
5389 (g_metadata_set_module), (g_metadata_get_namespace):
5391 * tests/Makefile.am:
5392 * tests/invoke/Makefile.am:
5393 * tests/invoke/invoke-namespace-find.sh:
5394 * tests/invoke/invoke.c: (main):
5396 Add a namespace/shared library mapping. fixes #313268.
5398 2007-12-03 Johan Dahlin <johan@gnome.org>
5400 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5403 2007-11-30 Jürg Billeter <j@bitron.ch>
5409 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5410 (g_igenerator_write_inline), (g_igenerator_write),
5411 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5412 (field_generate), (value_generate), (constant_generate),
5413 (property_generate), (function_generate), (vfunc_generate),
5414 (signal_generate), (interface_generate), (struct_generate),
5415 (union_generate), (boxed_generate), (enum_generate),
5416 (node_generate), (module_generate), (get_type_from_type_id),
5417 (str_replace), (g_igenerator_process_properties),
5418 (g_igenerator_process_signals), (g_igenerator_process_types),
5419 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5420 (g_igenerator_process_unregistered_struct_typedef),
5421 (g_igenerator_process_struct_typedef),
5422 (g_igenerator_process_union_typedef),
5423 (g_igenerator_process_enum_typedef),
5424 (g_igenerator_process_function_typedef),
5425 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5426 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5427 (g_igenerator_generate), (main), (csymbol_new),
5428 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5429 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5430 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5431 (eat_hspace), (eat_line), (read_identifier),
5432 (g_igenerator_parse_macros):
5433 * src/gen-introspect.h:
5435 Import gen-introspect to generate introspection information by
5438 2007-11-30 Jürg Billeter <j@bitron.ch>
5440 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5442 2007-11-30 Jürg Billeter <j@bitron.ch>
5444 * src/gidlparser.c: (end_element_handler): Don't leave requires
5447 2007-11-29 Johan Dahlin <johan@gnome.org>
5449 * src/gidlparser.c (parse_type_internal): Add char,
5450 gchar and guchar to the builtin types.
5452 2007-11-26 Johan Dahlin <johan@gnome.org>
5454 * src/ginfo.c: (g_object_info_get_type_name),
5455 (g_object_info_get_type_init):
5456 * src/girepository.c: (g_irepository_is_registered):
5457 * src/girepository.h:
5459 Add g_object_info_get_type_name, g_object_info_get_type_init and
5460 g_irepository_is_registered.
5462 2006-08-14 Jürg Billeter <j@bitron.ch>
5464 * src/gidlparser.c: (end_element_handler): Don't leave
5465 namespace and implements states too early.
5468 2007-11-26 Johan Dahlin <johan@gnome.org>
5470 * src/gmetadata.c (validate_struct_blob):
5471 pass blob_type to validate_function_blob instead of
5472 hard-coding BLOB_TYPE_STRUCT.
5474 Patch by Torsten Schoenfeld, fixes #314190
5476 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5478 * src/compiler.c, src/generate.c, src/gidlnode.c,
5479 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5480 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5481 warnings about return values, signedness mismatches, unused
5482 variables, and unhandles enum values in switch statements.
5484 * tests/invoke/Makefile.am: Don't install the invoke test program.
5485 Add -I ../../src to the cflags used for the test functions files.
5487 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5489 * src/girepository.h: Export g_invoke_error_quark.
5491 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5493 * src/ginvoke.c: Remove the fallback implementation of
5494 g_function_info_invoke since we now formally depend on libffi.
5496 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5498 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5499 Remove these files from cvs, as they are now generated.
5501 * src/gmetadata.c (validate_iface_type_blob): Don't
5502 complain if blob->pointer is not set, since that
5503 happens for enum and flag types. (#308935, Gustavo
5506 * Commit an autoconf-conversion patch by
5507 Gustavo Carneiro (#308708)
5509 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5511 * src/compiler.c (main): Use it here to validate
5512 the generated metadata.
5514 * src/gmetadata.[hc]: Add code to validate a
5517 * metadata-format.txt: Updates
5519 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5521 * tests/*: Add struct offsets to field and vfunc
5524 * src/generate.c (write_vfunc_info): Write offset
5525 information for vfuncs.
5527 * src/gidlnode.c (g_idl_node_build_metadata): Write
5528 the struct offsets into the metadata.
5530 * src/gidlparser.c: Parse the offset attributes of
5531 field and vfunc elements.
5533 * src/gidlnode.h: Add offset members to field and
5536 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5540 * gidl.dtd: Updates.
5542 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5543 file, creates, compiles and runs a C file, and folds the
5544 resulting struct offsets back into the .gidl file.
5546 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5548 * src/gidlparser.c (start_field): Make fields in objects
5551 * src/gidlmodule.c: Include string.h
5556 * metadata-format.txt: Cleanup basic types.
5557 * src/*: Adapt to the changes.
5558 * tests/*: Adapt to the changes.
5559 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5561 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5562 size for enum blobs.
5563 (g_idl_node_get_full_size): Report the correct size for
5566 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5567 error checking for blob sizes.
5569 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5571 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5572 interface types for which is_pointer is FALSE, e.g. enums.
5574 * src/gidlnode.c (g_idl_node_get_full_size)
5575 * src/gidlparser.c (parse_type_internal):
5576 * src/generate.c (write_type_info): Support unspecialized
5577 lists, hashtables and errors. Also emit a '*' after these.
5581 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5585 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5587 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5589 * src/*.c: Change the directory to be addressed by
5590 1-based indexes, and use an index of zero to mean
5593 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5595 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5597 * tests/union.test: Add a union test.
5599 * src/generate.c: Handle unions.
5601 * src/girepository.h:
5602 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5604 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5606 * src/gidlparser.c (start_union): Parse <union> elements.
5608 * src/gidlnode.h: Add a GIdlNodeUnion.
5610 * gidl.dtd: Add a <union> element.
5612 * src/gmetadata.c (g_metadata_check_sanity): Check
5615 * src/gmetadata.h: Add union_blob_size to Header,
5618 * metadata-format.txt: Add a UnionBlob.
5620 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5622 * tests/*: Update testcases.
5624 * src/generate.c (write_callable_info): Don't forget to
5625 write transfer and null-ok attributes for return types
5628 * src/girepository.h:
5629 * src/ginfo.c (g_callable_info_may_return_null):
5630 New function to find out if a function may return NULL.
5632 * src/compiler.c (format_output): Make the generated
5635 * README: Point to a recent libffi snapshot.
5637 * tests/invoke/*: Some invoke tests.
5639 * src/Makefile: Add ginvoke.c and the necessary
5642 * src/girepository.h (g_function_info_invoke): Add
5645 * src/ginvoke.c (g_function_info_invoke): Initial
5646 implementation of invoke functionality based on libffi.
5648 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5649 strings and types hash tables in the right order when
5651 (find_entry_node): Free the name parts.
5653 2005-05-12 Johan Dahlin <johan@gnome.org>
5655 * src/generate.c: Generate consistent end tags.
5659 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5663 * src/gidlparser.c (start_function): Actually add
5664 methods to objects. (Steven Walter)
5666 * src/girepository.h:
5667 * src/ginfo.c: Rename Transfer and Direction to
5668 GITransfer and GIDirection. (Torsten Schoenfeld)
5670 * tests/*: Make tests work with the changes in name
5673 * src/gidlnode.c (find_entry_node): Parse qualified
5674 names and generate xref nodes for them if needed. Don't
5675 require all modules to be loaded any more.
5677 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5680 * src/ginfo.c (g_object_info_get_parent): Return NULL
5681 if blob->parent is 0. Still need to make sure index
5684 * src/generate.c: Generate qualified names when
5685 referring to non-local types. Emit transfer attribute
5688 * src/compiler.c (format_output): Put the function
5689 attributes where gcc accepts them.
5691 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5693 * src/compiler.c (main): Add a --verbose cmdline option
5694 and only log messages if it is specified.
5697 * src/gidlnode.c (init_stats, dump_stats): Collect some
5698 statistics on string and type sharing.
5700 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5701 g_message() instead of fprintf().
5703 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5704 (g_idl_node_get_size): Implement for structs.
5705 (g_idl_node_get_full_size): Handle parent being NULL.
5706 (serialize_type): Handle lookup failures more gracefully.
5708 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5710 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5711 size calculation for 2-parameter types and for objects.
5713 * src/compiler.c: Add a cmdline option for debug output
5714 and install a log handler to implement it.
5715 * src/gidlnode.c: Add some debug spew.
5719 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5720 forget to count the module name when calculating the
5721 required size for the metadata.
5724 * src/gidlparser.c: Fix compiler warnings.
5726 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5728 * src/compiler.c (main): Free the option context.
5730 * gidl.dtd: Clean up handling of names. All elements
5731 have a "name", only the elements corresponding to
5732 actual callable functions (function, method, constructor),
5733 have an additional "symbol" attribute holding the
5734 dlsym()-able function name.
5736 * src/generate.c: Adapt to generate xml matching the
5740 * src/gidlnode.c: Adapt to parse the new dtd.
5742 * tests/*.test: Adjust to the new dtd.
5744 * metadata-format.txt:
5745 * src/gmetadata.h: Remove the short_name field
5747 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5748 * src/girepository.h:
5749 * src/ginfo.c (g_value_info_get_short_name): Removed
5751 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5753 * gidl.dtd: Allow constructors for boxed types,
5754 patch by Jonathan Blandford.
5757 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5759 * --- Initial import ---