1 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
3 Bug 562289 – Race when removing invalid cache
5 * giscanner/cachestore.py:
6 ENOENT is mapped to a OSError, not IOError.
8 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
10 * gir/glib-2.0.c: Add return value transfer annotation
11 for g_markup_escape_text.
13 2008-11-25 Colin Walters <walters@verbum.org>
15 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
17 * giscanner/dumper.py: Implement it.
18 * gir/Makefile.am, tests/**/Makefile.am: Use it.
20 2008-11-25 Colin Walters <walters@verbum.org>
22 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
23 to just use a Makefile rule and dependencies. This corresponds with a change
24 made to gir-repository to fix srcdir != builddir issues.
26 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
29 Post release version bump
32 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
37 2008-11-25 Colin Walters <walters@verbum.org>
39 Bug 559705 – Missing association between static methods and classes
41 * docs/typelib-format.txt:
42 * girepository/ginfo.c (g_function_info_get_flags):
43 * girepository/girmodule.c (g_ir_module_build_typelib):
44 * girepository/girnode.c (g_ir_node_get_size),
45 (g_ir_node_build_typelib):
46 * girepository/girparser.c (start_function):
47 * girepository/gtypelib.c (g_typelib_check_sanity),
48 (validate_header), (validate_function_blob):
49 * girepository/gtypelib.h:
51 * giscanner/girwriter.py:
52 * giscanner/glibtransformer.py:
53 * tests/scanner/foo-1.0-expected.gir:
54 * tests/scanner/foo-1.0-expected.tgir:
55 * tests/scanner/foo.h:
57 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
59 * giscanner/ast.py: Define socklen_t as an alias for int32.
61 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
63 * girepository/gdump.c (dump_type): Remove a warning,
64 be less verbose on error on fundamental types.
66 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
68 * giscanner/dumper.py: Add license headers,
69 refactor into a class, avoid some duplication and do some
70 extra pedantic checks.
72 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
74 Make it compilable with -Werror on my system by adding
75 a couple of prototypes and including headers.
77 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
79 Bug 562022 – gobject-introspection needs python headers
81 * configure.ac: fail without python headers present.
84 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
86 Bug 561617 – Return value array annotations
88 * giscanner/transformer.py:
89 * tests/scanner/annotation.c (annotation_return_array):
90 * tests/scanner/annotation.h:
91 Add support for (array) for return value annotations as well.
93 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
95 * tests/everything/everything.[ch]: add a test function which calls a
98 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
100 * giscanner/cachestore.py:
101 Catch ValueError exceptions.
103 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
105 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
107 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
109 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
110 instead of hard-coding struct sizes.
112 2008-11-18 Owen Taylor <otaylor@redhat.com>
114 Bug 561296 - Add "storage type" to the typelib data for enums
116 In order to set and get enum and flag fields in structures, we need
117 to know the integral type that the enumeration is stored as. We are already
118 computing that at compile time in order to compute struct offsets, so the
119 easiest thing to do is to save that in the typelib.
121 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
122 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
123 and compute and save it at compile time.
125 * girepository/girepository.h girepository/ginfo.c:
126 Add g_enum_info_get_storage_type().
128 * girepository/gfield.c: Implement reading and writing enum and flags fields
129 based on the storage type.
131 2008-11-18 Owen Taylor <otaylor@redhat.com>
133 Add enums to the Everything test module
135 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
136 test module and register them as GTypes.
138 https://bugzilla.gnome.org/show_bug.cgi?id=561296
140 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
142 * giscanner/cachestore.py:
143 Catch BadPickleGet exceptions as well.
145 2008-11-17 Owen Taylor <otaylor@redhat.com>
147 * tests/everything/everything.c: Fix doc comment annotations
148 for test_struct_b_clone() to refer to the right function.
150 2008-11-17 Dan Winship <danw@gnome.org>
152 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
153 spelling of GHashTable. #561135
155 * tests/scanner/annotation.c (annotation_object_get_hash):
156 * tests/scanner/annotation-1.0-expected.gir:
157 * tests/scanner/annotation-1.0-expected.tgir: add a test of
158 GHashTable annotations
160 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
162 * giscanner/ast.py: Change string array match type to be in terms
163 of canonicalized type.
164 * giscanner/transformer.py: Add canonicalize_ctype which gives us
165 a version of a c:type without aliases, so we can deep canonicalize
166 char** to utf8*. Update parse_ctype to use it.
167 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
169 2008-11-16 Colin Walters <walters@verbum.org>
171 * girepository/girepository.c: Ensure we always call init_globals,
172 even if passed a non-default repository.
174 2008-11-16 Colin Walters <walters@verbum.org>
176 Bug 559706 - Interface prerequisites
178 * common.mk: Dep on libgirepository.la for scanner libs so that
179 we rebuild things even if just gdump.c changes.
180 * girepository/gdump.c: Dump prerequisites.
181 * giscanner/ast.py: Add prerequisite list.
182 * giscanner/girparser.py: Parse them from gdump.
183 * giscanner/girwriter.py: Write them.
184 * giscanner/glibtransformer.py: Resolve them.
187 2008-11-16 Owen Taylor <otaylor@redhat.com>
189 Bug 561087 - Respect is_pointer in serialize_type()
191 Add a '*' to the serialization for the cases where we set is_pointer
192 in the type blob we write out depending on node->is_pointer. Don't
193 add the '*' in the cases where is_pointer is set or not set in a
196 http://bugzilla.gnome.org/show_bug.cgi?id=561087
198 2008-11-16 Owen Taylor <otaylor@redhat.com>
200 Bug 560825 – Add size and alignment to typelib
202 Include the size and alignment of structures and unions in the typelib,
203 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
205 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
206 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
207 to StructBlob and UnionBlob.
209 * girepository/ginfo.c girepository/girepository.h:
210 Add g_[struct|union]_get[size|alignment]().
212 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
214 2008-11-16 Owen Taylor <otaylor@redhat.com>
216 Bug 552371 – implement struct field get/set
218 * girepository/gfield.c girepository/girepository.h: Add
219 convenience functions g_field_info_set_field() and
220 g_field_info_get_field() to set and get fields based on the
221 offsets in GIFieldInfo.
223 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
225 Bug 560241 - Out-arguments should not be marked as being pointers
228 * girepository/girparser.c: Improved logic for out arguments.
230 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
232 Bug 559601 - Pointers in structs/unions unduly treated as arrays
234 * giscanner/transformer.py: Differentiate type creation logic
235 between parameters and struct components.
237 2008-11-15 Colin Walters <walters@verbum.org>
239 * giscanner/dumper.py: Check return code from pkg-config
242 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
244 * tests/everything/everything.c (test_array_int_in),
245 (test_array_gtype_in):
246 * tests/everything/everything.h:
247 Rename the int/gtype array tests. Make the return value
248 useful, an aggregation of the array input values.
250 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
252 * tests/everything/Makefile.am:
253 * tests/everything/everything.c:
254 * tests/everything/everything.h:
255 * tests/everything/gitesttypes.c:
256 * tests/everything/gitesttypes.h:
257 Rename gitesttypes.[ch] to everything.[ch]
259 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
261 Bug 560708 – Don't treat arrays that have a length specified as
262 zero-terminated by default
264 * giscanner/transformer.py: Default to non zero terminated for
266 * tests/*: Update, add test for zero vs not.
268 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
270 Bug 557788 - Return types for constructors in generated typelib bogus
272 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
273 obviously broken in the face of duplicate names in different
275 * tests/scanner/*expected.gir: Fix up.
277 2008-11-13 Owen Taylor <otaylor@redhat.com>
279 * girepository/girffi.c: Fix "Unexpected time for time_t"
282 2008-11-13 Colin Walters <walters@verbum.org>
284 Bug 558436 - avoid having scanner load app code
286 * giscanner/cgobject.py: Delete; we no longer load shared
288 * giscanner/dumper.py: Support for linking a library to
289 a stub binary for introspection.
290 * giscanner/glibtransformer.py: Rewrite to use gdump XML
291 from invocation of child binary.
292 * giscanner/transformer.py: Fix up to use fully qualified
293 name in parse tree. Make parse_ctype public so we can use
294 it inside glibtransformer.
295 * tests/scanner/barapp.c: New test, using --program arg
297 * tests/*: Update to use common.mk for invoking scanner.
298 * tools/g-ir-scanner: Add options --program, --program-arg,
300 * docs/g-ir-scanner.1: Update.
302 2008-11-13 Colin Walters <walters@verbum.org>
304 * configure.ac: Depend on Gio, we use it in gdump.c.
305 * girepository/gdump.c: Code to dump GType data to XML.
306 * girepository/girepository.c: Add option group for dumping.
307 * girepository/girepository.h: Define API for the above.
309 2008-11-13 Colin Walters <walters@verbum.org>
311 * common.mk: Add a file to include with Makefile fragments
312 useful for scanner invocation.
314 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
316 * tests/everything/gitesttypes.c (test_filename_return): Return
317 strings in filename encoding.
319 2008-11-13 Owen Taylor <otaylor@redhat.com>
321 Bug 560253 – Add structure and boxed types to Everything test module
323 * tests/everything/gitesttypes.[ch]: Add examples of:
325 Plain old data structs
326 Plain old data structs with nested fields
328 Plain old data boxed with nested fields
329 More complicated boxed types with internal state
331 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
333 * tests/everything/gitesttypes.c (test_gtype_in):
334 * tests/everything/gitesttypes.h:
335 Add a test of GType arrays, a la gtk_list_store_set_columns.
337 2008-11-12 Owen Taylor <otaylor@redhat.com>
339 Bug 560419 – Cache includes when parsing
341 Keep track of all modules parsed within a GIrParser, and when a
342 module is referenced a second time, use the existing parsed copy
343 instead of reparsing.
345 2008-11-12 Owen Taylor <otaylor@redhat.com>
347 Fix management of ParseContext.includes_modules (#560419)
349 * girepository/girparser.c: Fix some trivial bugs in managing the
350 list of include modules. (Add to module's list twice, not
351 initialized to NULL, not freed.)
353 2008-11-12 Owen Taylor <otaylor@redhat.com>
355 Keep aliases and disguised_structures local to each module (#560419)
357 * girepository/girmodule.[ch]: When parsing, keep keep a separate
358 hash tables of aliases and 'disguised' flags for each module, and
359 store that on the module.
361 After parsing an include merge the aliases/disguised flags to the
364 * girepository/girparser.c: Remove 'prefix_aliases' flag and
365 always prefix aliases/disguised structure types when parsing; this
366 simplifies the code considerably.
368 2008-11-12 Owen Taylor <otaylor@redhat.com>
370 Fix mismatches between .gir name and 'name' attribute (#560419)
372 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
373 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
374 where the 'name' element of <namespace/> didn't match the filename of the
375 gir, an assumption that the compiler has always expected and now enforces.
377 2008-11-12 Owen Taylor <otaylor@redhat.com>
379 Only allow one <namespace/> element per <repository/> (#560419)
381 * girepository/girparser.c: The logic in girparser.c didn't work
382 very well if there were multiple <namespace/> nodes within a
383 single <repository/> (context->namespace was always the overall
384 filename and not the the name specified in the <namespace/>
385 element for one thing; this would cause aliases to be mis-prefixed
386 in include modules.) Also check that the "name" in the
387 <namespace/> node matches the filename.
389 2008-11-12 Owen Taylor <otaylor@redhat.com>
391 Add a GirParser object to hold the state of a compilation
393 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
394 GirParser object to hold state that is global across a
395 compilation. Currently just holds the include path, but will
396 eventually also keep a cached list of parsed modules.
398 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
400 * girepository/girepository.c (find_namespace_latest): Fix
403 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
405 * configure.ac: use 'introspection' component for bugs
407 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
409 * tests/everything/gitesttypes.c (test_filename_return):
410 * tests/everything/gitesttypes.h:
411 Add a filename return test.
413 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
415 * tests/offsets/Makefile.am (gitestoffsets.c): fix
416 gen-gitestoffsets invocation with builddir != srcdir
418 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
420 * girepository/girepository.c:
421 Change the element type from utf8 to filename
422 * girepository/girnode.c (g_ir_node_build_typelib):
423 Special case filename equally to utf8 here.
425 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
428 Remove unused variables, add a dependency of girepository.ch, so when
429 they change we rebuild the gir automatically.
431 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
433 * girepository/girepository.c (g_irepository_get_search_path):
434 * girepository/girepository.h:
435 Add a g_irepository_get_search_path, so we can access the search
438 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
440 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
442 * girepository/girparser.c: avoid freeing an uninitialized pointer
444 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
447 * giscanner/glibtransformer.py:
448 * tools/g-ir-scanner:
449 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
450 so we can just pass in --library=foo/bar/baz.la and the scanner
451 does the right thing.
452 Don't warn for _get_type() functions if they don't take any
455 2008-11-11 Owen Taylor <otaylor@redhat.com>
457 Bug 560404 – Prefix types when resolving aliases in included modules
459 * girepository/girparser.c: When resolving aliases in an included
460 module, prefix types before looking them up.
462 2008-11-11 Owen Taylor <otaylor@redhat.com>
464 Compute field offsets and overall size for object structures
466 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
467 field of type object in structure"
469 Do basic computation of field offsets for objects and interfaces;
470 this doesn't attempt to address all of the "mess" for virtual
471 functions described in Bug 560281.
473 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
475 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
477 Based on patch by Johan Bilien.
479 * giscanner/transformer.py (_create_member, _create_parameter):
480 Resolve types here as well.
481 (_resolve_type_name_1): Try resolving using 'ctype' first since
482 it's least ambiguous. Fixes struct member type resolution with
483 similarly named types, e.g. Gdk.PangoRendererClass and
485 * tests/scanner/foo*: Add test.
487 2008-11-11 Owen Taylor <otaylor@redhat.com>
489 * girepository/girparser.c: Search provided include dirs before
490 the default directories.
492 2008-11-11 Owen Taylor <otaylor@redhat.com>
494 * girepository/giroffsets.c: Include fully-qualified names in
497 2008-11-11 Owen Taylor <otaylor@redhat.com>
499 * girepository/giroffsets.c: Fail gracefully with an informative
500 error message when recursion is encountered when computing a
503 2008-11-11 Owen Taylor <otaylor@redhat.com>
505 * girepository/girparser.c: Remove an unused variable.
507 2008-11-10 Owen Taylor <otaylor@redhat.com>
509 Add tests for field offset computations
511 * tests/offsets/offsets.h: Header file with structure definitions to test
513 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
514 field offsets for the structures in offsets.h two ways: using
515 the information from a generated typelib, and as computed by the
518 We diff these two versions to test that everything is OK.
520 2008-11-10 Owen Taylor <otaylor@redhat.com>
522 Remove field offsets from g-ir-generate output and test inputs
524 Field offsets are a) architecture dependent so they shouldn't be part
525 of the architecture-independent gir format which is installed in
526 datadir. b) Are architecture-dependent so they shouldn't be in test
529 * girepository/girparser.c: Don't parse offset for fields
530 * tools/generate.c: Don't parse offset for fields
531 * tests/*.gir test/scanner/*.tgir: Remove offsets
533 (Virtual function and discriminator offsets are not removed, as they
534 aren't fully hooked up to the field-offset computation machinery yet.)
536 2008-11-10 Owen Taylor <otaylor@redhat.com>
538 Bug 560252 - Compute field offsets before writing typelib
540 * girepository/girnode.h: Store the total size and alignment for
541 GIrNodeStruct/Boxed/Union.
543 * girepository/giroffset.c: New file implementing computation of
544 structure field offsets.
546 * girepository/girnode.c: Compute structure field offsets before
547 writing types into the typelib.
549 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
550 means "unknown". Also fix description of the discriminator_offset
553 2008-11-10 Owen Taylor <otaylor@redhat.com>
555 Bug 560250 - Fully parse included modules
557 For some things, like computing structure offsets to put into the typelib
558 we need more than just the aliases from included modules. Do a completel
559 parse of included modules and store in module->included_modules.
561 Also add g_ir_find_node() to find node information from within the
562 active set of modules and their includes.
564 2008-11-10 Owen Taylor <otaylor@redhat.com>
566 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
568 Extract a function to convert GITypeTag to ffi_type from the internals
569 of ginvoke.c. This will be useful in figure out structure alignment.
571 Also fix handling of gsize and time_t to be portable. (Add a check
572 to configure.ac to figure out the width of time_t.)
574 2008-11-10 Owen Taylor <otaylor@redhat.com>
576 Bug 560248 – "disguised structures"
578 Certain types like GIConv and GdkAtom are pointers internally but don't
579 look like pointers when referenced. They have the form.
581 typedef struct _X *X;
583 Parse these as structures/records but mark them in the gir with a 'disguised'
584 attribute so that we know that they need special handling.
586 In the typelib treat them like any other structure.
588 2008-11-09 Jürg Billeter <j@bitron.ch>
591 * giscanner/girwriter.py:
593 Write throws attribute for virtual functions, fixes bug 559703
595 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
597 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
598 up some confusion about the second argument to find_module, it's
599 actually the packages __path__ attribute which we can safely ignore
601 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
603 2008-11-07 Owen Taylor <otaylor@redhat.com>
605 Bug 559737 – Deal with continuations in macros
607 * giscanner/giscannerlexer.l: Treat continuation lines the same
608 as regular newlines. This makes the scanner not complain about
609 #define foo(x) \ <stuff> inside a C file. There's no attempt
610 however to handle parsing macro definitions split across lines.
612 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
614 * giscanner/cachestore.py:
615 Handle broken cache entries, write only filesystems and
616 running out of diskspace.
618 2008-11-07 Owen Taylor <otaylor@redhat.com>
620 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
621 Set current_filename before lexing the file so error messages
622 are reported in the right file.
624 2008-11-06 Colin Walters <walters@verbum.org>
626 * tests/everything/*: Add some tests for strv.
628 2008-11-05 Colin Walters <walters@verbum.org>
630 * girepository/ginvoke.c (g_function_info_invoke): Don't use
631 nested scope local variable for error which may go away after
632 conditional is complete.
634 2008-11-05 Colin Walters <walters@verbum.org>
636 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
637 manipulate hackily; just use GString. This avoids an
638 uninitialized memory read pointed out by Havoc.
640 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
642 * giscanner/__init__.py:
644 * giscanner/cachestore.py:
645 * giscanner/cgobject.py:
646 * giscanner/girparser.py:
647 * giscanner/girwriter.py:
648 * giscanner/giscannermodule.c:
649 * giscanner/glibast.py:
650 * giscanner/glibtransformer.py:
651 * giscanner/libtoolimporter.py:
652 * giscanner/minixpath.py:
653 * giscanner/odict.py:
654 * giscanner/sourcescanner.c:
655 * giscanner/sourcescanner.h:
656 * giscanner/sourcescanner.py:
657 * giscanner/transformer.py:
658 * giscanner/utils.py:
659 * giscanner/xmlwriter.py:
661 Relicense the giscanner library under LGPLv2+.
662 This has been approved by all contributors.
664 2008-11-01 Owen Taylor <otaylor@redhat.com>
666 Bug 558848 giparser.py: shared library should be optional
668 When parsing a .gir, allow the shared-library attribute
669 of <namespace/> to be missing: this corresponds to the handling
670 in libgirepository and elsewhere.
672 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
674 Bug 557898 – Fails to build on OSX 10.4
676 * configure.ac: Check for $shrext_cmds that should be implicitly
677 available if you're using libtool >= 2.0. If undefined, call
678 libtool --config explicitly to get its value.
679 * girepository/gtypelib.c: Remove special case for (non-)Darwin
682 2008-10-31 Colin Walters <walters@verbum.org>
684 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
686 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
688 * configure.ac: Post release version bump
691 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
695 * docs/release-checklist.txt:
698 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
700 * Makefile.am: add an upload-release target
701 * docs/release-checklist.txt:
702 Release process documentation
704 2008-10-31 Colin Walters <walters@verbum.org>
706 Bug 558109 – _g_typelib_init fails to find shared libraries
708 * transformer/glibtransformer.py: Use ctypes' find_library
709 on passed libraries and write that for the shared-library
710 entry. We want to avoid depending on -devel packages.
712 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
714 * docs/g-ir-scanner.1:
715 Document the renaming options.
717 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
719 * giscanner/Makefile.am:
720 * tests/invoke/Makefile.am:
721 * tests/repository/Makefile.am: List in-tree libraries first in
722 LDADD / LIBADD. If installed library is listed first, the
723 resulting binary will prefer installed version to one in .libs,
724 possibly making 'make check' behave strangely.
726 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
728 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
729 gir-repository from choking with gdk/quartz
731 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
733 * giscanner/giscannermodule.c (calc_attrs_length),
734 (pygi_collect_attributes):
735 * giscanner/xmlwriter.py:
736 Write a C version of the xml namespace formatter.
737 Saves 15% of the time it takes to create a gtk gir.
739 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
741 * giscanner/xmlwriter.py: Abstract attribute formatting
742 to a function external to the XMLWriter class.
744 * giscanner/scannerlexer.l:
745 Parse and discard __typeof and __attribute.
747 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
749 * giscanner/girparser.py:
750 Remove arguments from the constructor, move them to
751 separate accessors. Add a new parse_tree method
752 which takes an element tree instance.
753 * tools/g-ir-scanner:
754 Update callsite for this
756 * giscanner/Makefile.am:
757 * giscanner/cachestore.py:
758 * giscanner/transformer.py:
759 Cache the include parsing. Saves ~25% time when
760 creating vte (which includes everything up to gtk+).
762 2008-10-30 Colin Walters <walters@verbum.org>
764 * giscanner/transformer.py: Don't reparse includes
765 we've already processed.
767 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
769 * giscanner/girparser.py:
770 * giscanner/transformer.py:
771 Avoid parsing parameters, types etc when parsing
772 includes. Should speed up include parsing a bit.
774 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
776 * giscanner/girparser.py:
777 Avoid big if/else and use a dispatch table like
780 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
782 * giscanner/transformer.py:
783 Clean up include parsing and registration.
785 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
787 * giscanner/transformer.py:
790 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
792 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
795 construct PYTHONPATH just once
797 * tests/everything/Makefile.am:
798 * tests/scanner/Makefile.am:
799 add $(top_srcdir) to PYTHONPATH to
800 handle builddir != srcdir
802 * giscanner/libtoolimporter.py:
803 * giscanner/sourcescanner.py:
804 Make the libtoolimporter work when distchecking too.
806 Mostly based on patch by Tommi Komulainen
808 2008-10-29 Owen Taylor <otaylor@redhat.com>
810 * giscanner/glibtransformer.py: If a filename of an existing
811 file is passed to --library, hunt for it directly, rather than
812 searching for a corresponding library.
814 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
816 * giscanner/libtoolimporter.py:
817 * giscanner/sourcescanner.py:
818 Clean up the libtool importer a bit. Add a context so we
819 can use it through a with statement.
820 Don't just look in the current directory, look in the whole
823 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
825 Bug 558065 – gitesttypes should be installed
829 * tests/types/Makefile.am -> tests/everything/Makefile.am
830 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
831 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
832 move tests/types to tests/everything
834 * tests/everything/Makefile.am: build normal shared library
835 libgirepository-everything.so.1.0.0 and corresponding typelib
836 Everything-1.0.typelib
838 * tests/everything/Makefile.am: explicitly link libtool
839 versioning with typelib versioning with variables
841 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
843 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
845 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
847 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
850 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
852 Bug 558068 – when invoking a method, offset the in arguments by one,
855 * tests/invoke/invoke.c, tests/invoke/testfns.c,
856 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
857 * girepository/ginvoke.c: do not offset the index of given out
858 arguments by one for methods, "this" is provided as in argument only.
860 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
862 * gir/gio-2.0.c: add annotation for g_file_delete
864 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
866 Bug 558062 – provide and use paths in the .pc file
868 * gobject-introspection-1.0.pc.in: provide typelibdir variable
869 for where .typelibs should be installed (callers shouldn't need
870 to construct paths from bits and pieces)
872 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
874 Bug 557791 – g_irepository_require() could return a GTypelib *
876 * girepository/girepository.c: Return GTypelib; this is useful
877 for low level manipulation.
879 2008-10-25 Colin Walters <walters@verbum.org>
881 Bug 557788 – Return types for constructors in generated typelib bogus
883 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
884 rely on end pass resolution.
886 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
888 Bug 557786 - support fixed size arrays
890 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
891 * giscanner/scannerparser.y: Retain fixed array size.
892 * giscanner/ast.py: Add to note.
893 * giscanner/girwriter.py: Write to gir.
894 * girepository/girnode.c: Write it to typelib.
895 * tools/generate.c: Generate.
896 * tests/*: Add tests.
898 2008-10-25 Colin Walters <walters@verbum.org>
900 Bug 557076 - move typelibs to $libdir
902 * configure.ac: Steal some configury bits from dbus to expand
904 * gir/Makefile.am: Move to libdir.
905 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
906 instead just look at one hardcoded path in libdir.
907 * acinclude.m4: Bits from dbus.
909 2008-10-24 Johan Dahlin <johan@gnome.org>
911 * girepository/girnode.c (g_ir_node_check_unhandled_members):
912 Be quiet, do not warn about unhandled members.
914 2008-10-24 Johan Dahlin <johan@gnome.org>
916 * girepository/gtypelib.c:
917 Only use SHLIB_SUFFIX on darwin, otherwise use
918 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
920 2008-10-24 Lucas Rocha <lucasr@gnome.org>
922 Bug 557623 - Constructors shouldn't be flagged as methods.
924 * girepository/ginfo.c (g_function_info_get_flags): ditto.
926 2008-10-24 Johan Dahlin <johan@gnome.org>
928 * giscanner/scannerparser.y:
929 Check against division by zero for the modula operator.
930 This fixes header parsing of OSX system headers included
933 2008-10-24 Johan Dahlin <johan@gnome.org>
937 Add a CONTRIBUTORS file and dist it.
939 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
941 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
943 * girepository/girparser.c (parse_param_transfer):
944 * giscanner/transformer.py (_create_parameter, _create_return):
945 * giscanner/girwriter.py (_write_return, _write_parameter):
946 * tools/generate.c (write_callable_info): always write and
947 require "transfer-ownership" for return-values and parameters
950 * tests/invoke/testfns-1.0.gir:
952 * tests/scanner/DrawableAdditions.xml:
953 * tests/scanner/GtkFrob-1.0-expected.tgir:
954 * tests/scanner/annotation-1.0-expected.tgir:
955 * tests/scanner/drawable-1.0-expected.tgir:
956 * tests/scanner/drawable-injected-1.0-expected.gir:
957 * tests/scanner/drawable-injected-1.0-expected.tgir:
958 * tests/scanner/foo-1.0-expected.tgir: Updated
960 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
962 * giscanner/cgobject.py: build fundamental types same way as glib
964 * giscanner/glibtransformer.py (_type_from_gtype): record GType
965 when constructing the Type from it
967 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
968 the parameter is a GObject from its GType, if available.
970 * giscanner/glibtransformer.py (_adjust_transfer):
971 * tests/scanner/foo-1.0-expected.gir:
972 * tests/scanner/foo-1.0-expected.tgir: deduce
973 transfer-ownership from GTypes
975 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
977 * giscanner/transformer.py (_create_parameter):
978 * tests/scanner/foo-1.0-expected.gir: make varargs
979 transfer-ownership="none"
981 2008-10-23 Colin Walters <walters@verbum.org>
983 Bug 556739 - transfer ownership
985 * giscanner/ast.py: Refactor Parameter/Return to share
986 common attributes. Add transfer_inferred attribute
987 which says whether or not we made a guess.
988 * giscanner/transformer.py: Add much more extensive
989 heuristics around parameter and return transfer.
990 * giscanner/glibtransformer.py: Adjust to inspect
994 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
996 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
998 * tests/scanner/Makefile.am:
999 * tests/scanner/annotation-1.0-expected.tgir:
1000 * tests/scanner/drawable-1.0-expected.tgir:
1001 * tests/scanner/drawable-injected-1.0-expected.tgir:
1002 * tests/scanner/foo-1.0-expected.tgir:
1003 * tests/scanner/GtkFrob-1.0-expected.tgir:
1004 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1005 annotations survive the roundtrip via typelib
1007 The expectations are as currently produced by g-ir-generate,
1008 comparison with the .gir files shows there are differences.
1010 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1012 Bug 557468 – Support for GI_TYPELIB_PATH
1014 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1015 provided paths to the global search path.
1017 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1019 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1021 * tests/scanner/drawable-1.0-expected.tgir:
1022 * tests/scanner/drawable-injected-1.0-expected.tgir:
1023 * tests/scanner/foo-1.0-expected.tgir:
1024 * tools/generate.c (write_object_info): write 'abstract'
1025 attribute for classes
1027 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1029 * girepository/girmodule.c, girepository/gtypelib.c,
1030 girepository/girparser.[ch]: fix some build warnings.
1032 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1034 Bug 557405 – Use 'allow-none' consistently
1036 * docs/typelib-format.txt:
1037 * girepository/ginfo.c (g_arg_info_may_be_null):
1038 * girepository/girnode.c (g_ir_node_build_typelib):
1039 * girepository/girnode.h (struct _GIrNodeParam):
1040 * girepository/girparser.c (start_parameter):
1041 * girepository/girwriter.c (function_generate):
1042 * girepository/gtypelib.h (ArgBlob):
1044 * tests/function.gir:
1045 * tools/generate.c (write_callable_info): Use 'allow-none'
1046 consistently throughout
1048 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1050 Bug 557092 – Callback annotations not used
1052 * giscanner/transformer.py (_create_callback): use annotations
1054 * tests/scanner/annotation.h
1055 * tests/scanner/annotation-1.0-expected.gir: add tests
1057 2008-10-21 Colin Walters <walters@verbum.org>
1059 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1060 uncommented parameters.
1063 2008-10-21 Colin Walters <walters@verbum.org>
1065 * girepository/girepository.c: Ensure that when doing an unversioned
1066 require, we prefer items earlier in the search path to later ones.
1068 2008-10-21 Owen Taylor <otaylor@redhat.com>
1070 * giscanner/transformer.py: For string parameters allow transfer annotation
1071 to override the standard automatic guessing based on 'const'.
1073 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1075 Bug 557241 – "throws" flag for functions
1077 * tests/scanner/drawable-1.0-expected.gir,
1078 tests/scanner/drawable-injected-1.0-expected.gir,
1079 tests/scanner/drawable.[ch]: add simple test for throwing
1080 function (has GError ** as last argument)
1082 * giscanner/ast.py: add a 'throws' flag to Function
1083 * giscanner/glibtransformer.py: if a function's last paramerter is
1084 a GError, set the 'throws' flag and remove that parameter
1085 * giscanner/girwriter.py: write out the 'throws' attribute
1086 * giscanner/girparser.py: support parsing the 'throws' attribute
1088 * tests/repository/gitestthrows.c: add a simple test to check the
1089 throws flag in a typelib and invoke the function
1091 * girepository/ginfo.c, girepository/girnode.[ch],
1092 girepository/girnode.h, girepository/girparser.c,
1093 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1095 * girepository/ginvoke.c: if a function throws, add a GError as last
1096 arguments, and propagate the error to the invoker.
1098 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1100 * giscanner/transformer.py (_create_parameters): Warn if we see
1101 annotations for unknown parameters. If .h and .c files name
1102 parameters differently, the annotations may be lost.
1104 2008-10-21 Johan Dahlin <johan@gnome.org>
1106 Bug 556358 - don't use libtool internals
1108 * giscanner/Makefile.am:
1109 * giscanner/libtoolimporter.py:
1110 * giscanner/sourcescanner.py:
1111 * giscanner/utils.py:
1112 Add a python meta importer and remove a libtool symlink hack.
1114 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1116 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1117 and --add-include-path appropriately when invoking the scanner.
1118 * tests/types/Makefile.am (%typelib): Likewise.
1120 2008-10-20 Colin Walters <walters@verbum.org>
1122 Bug 556777 - validate properties
1124 * giscanner/transformer.py: Add option to throw on unknown types.
1125 * giscanner/glibtransformer.py: Use it on properties.
1126 * tests/*: Add a test.
1128 2008-10-20 Colin Walters <walters@verbum.org>
1130 * giscanner/glibast.py: Also register g variants of
1131 default_array_types. This is not beautiful, but
1132 good alternatives aren't easy to come by.
1133 This fixes gchar ** parsing.
1135 2008-10-20 Colin Walters <walters@verbum.org>
1137 * docs/typelib-format.txt, girepository/gtypelib.h:
1138 Take a bit from ObjectInfo to represent abstract flag.
1139 * giscanner/cgobject.py: Expose g_type_get_flags.
1140 * girepository/girepository.h: Add accessor.
1141 * girepository/ginfo.c: Implement it.
1142 * giscanner/ast.py: Add is_abstract flag to generic
1144 * giscanner/glibast.py: Use it.
1145 * giscanner/girwriter.py: Write it.
1146 * girepository/girparser.c: Parse it.
1149 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1151 * giscanner/girparser.py (_parse_function): don't lose
1152 'transfer-ownership' attributes when injecting, check for the
1155 2008-10-19 Johan Dahlin <johan@gnome.org>
1157 * giscanner/scannerlexer.l: Parse and ignore __asm.
1159 2008-10-19 Colin Walters <walters@verbum.org>
1161 * giscanner/girparser.py: Parse array length= to ensure
1162 it doesn't get lost from --inject.
1164 2008-10-17 Colin Walters <walters@verbum.org>
1166 Bug 556795 - char ** regression
1168 * giscanner/transformer.py: Fix parsing of ctypes, add some
1169 comments about what's going on.
1170 * tests/*: Add a test for char **.
1172 2008-10-17 Colin Walters <walters@verbum.org>
1174 Bug 556783 - change namespace handling to be more consistent
1176 * giscanner/transformer.py: Eliminate usage of
1177 strip_namespace_object. We now treat --namespace as the default
1178 --strip-prefix; however, if --strip-prefix is specified it
1179 overrides --namespace. This applies to everything except function
1180 names, where we do also strip the namespace.
1181 * giscanner/glibtransformer.py: Remove usage of
1182 strip_namespace_object.
1184 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1185 --namespace and --strip-prefix.
1187 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1189 Bug 556732 – generate gir files consistently
1191 * girepository/girparser.c (start_parameter):
1193 * tests/invoke/testfns-1.0.gir:
1194 * tools/generate.c (write_callable_info): write
1195 'transfer-ownership' attribute consistently with both
1196 return-value and parameter elements
1198 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1200 Bug 556732 – generate gir files consistently
1202 * tools/generate.c (write_callable_info): write 'direction'
1203 attribute only if other than 'in' to be consistent with
1206 * tests/object.gir: remove direction="in" which is the default
1208 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1210 Bug 556732 – generate gir files consistently
1212 * giscanner/ast.py (Field): add readable and writable properties
1213 * giscanner/girparser.py (_parse_field): copy 'readable' and
1214 'writable' attributes
1215 * giscanner/transformer.py (_create_member): create fields as
1217 * giscanner/glibtransformer.py (_introspect_object,
1218 _pair_class_struct): make object instance and class fields
1220 * giscanner/girwriter.py (_write_field):
1221 * tools/generate.c (write_field_info): write field 'readable'
1222 and 'writable' attributes only if non-default (read-only)
1223 * girepository/girparser.c (start_field): in the absence of
1224 attributes assume fields are read-only
1226 * tests/struct.gir: remove redundant readable="1" from fields
1227 * tests/scanner/foo-1.0-expected.gir:
1228 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1229 all record and union fields
1231 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1233 Bug 556732 – generate gir files consistently
1235 * giscanner/girwriter.py (_write_property): write properties
1236 'construct' attribute if set
1237 * tools/generate.c (write_property_info): write properties
1238 'readable' and 'writable' attributes only if non-default
1239 * tests/object.gir: add writable="0"
1240 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1242 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1244 * gir/glib-2.0.c: added annotations
1246 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1248 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1251 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1253 Bug 556610 – giscanner/girparser.py drops parameter options
1255 * tests/scanner/drawable-injected-1.0-expected.gir,
1256 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1257 * giscanner/ast.py: allow Parameter to take options in the constructor
1258 * giscanner/girparser.py: parse parameter options (transfer,
1259 direction, allow-none)
1261 2008-10-16 Colin Walters <walters@verbum.org>
1263 Bug 556185 - segfault on g_callable_info_get_return_type
1265 Initial patch from John Ehresman.
1267 * tests/repository/*: Add a test using
1268 g_callable_info_get_return_type. Instead of casting a
1269 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1270 to call g_type_info_get_interface.
1272 2008-10-16 Colin Walters <walters@verbum.org>
1274 Bug 556579 - union and struct name misresolved
1276 * giscanner/transformer.py: The calls to _resolve_type_name
1277 for struct/union names was a legacy holdover from when type
1278 resolution had multiple phases. Now it's actively harmful
1279 since we might pull in an identical name from another
1283 2008-10-16 Colin Walters <walters@verbum.org>
1285 Bug 556432 - transfer annotations and defaults
1287 * giscanner/transformer.py: Canonicalize type
1288 after removing *, not before. This ensures that
1289 guchar* is transformed to 'uint8'.
1290 Add some comments here.
1291 * giscanner/glibtransformer.py: Add _adjust_transfer
1292 phase for tweaking GObject transfers.
1295 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1297 * configure.ac: enable bunch of gcc warning CFLAGS
1299 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1301 Bug 556543 – reduce compiler warnings
1303 * girepository/ginfo.c:
1304 * girepository/girepository.c (register_internal,
1305 count_interfaces, find_interface, find_namespace_version,
1306 parse_version, g_irepository_require):
1307 * girepository/girmodule.c (g_ir_module_build_typelib):
1308 * girepository/girnode.c (init_stats, dump_stats,
1309 _g_irnode_init_stats, _g_irnode_dump_stats,
1310 g_ir_node_can_have_member):
1311 * girepository/girparser.c (firstpass_end_element_handler,
1312 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1313 start_alias, start_type, end_type_top, parse_include, cleanup,
1315 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1316 * giscanner/giscannermodule.c (directive_get_options,
1317 type_get_child_list):
1318 * giscanner/scannerlexer.l (parse_gtkdoc):
1319 * giscanner/scannerparser.y (ctype_free):
1320 * giscanner/sourcescanner.c:
1321 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1322 * tests/types/gitesttypes.c:
1323 * tools/compiler.c (main):
1324 * tools/generate.c (write_repository): Remove unused variables
1325 and code, add missing includes, declarations and case
1328 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1330 Bug 556541 – access union members through UnionBlob rather than
1333 * girepository/ginfo.c (g_union_info_find_method): access union
1334 members through UnionBlob rather than StructBlob
1336 2008-10-15 Colin Walters <walters@verbum.org>
1338 Bug 556331 - clean up includes handling
1340 * tools/g-ir-scanner: Rework command line arguments; now we take
1341 --add-include-path and --include separately.
1342 * giscanner/girwriter.py: Separate name= and version= in include
1344 * giscanner/ast.py: Add Include type.
1345 * giscanner/transformer.py: Cleanups to register_include now that
1346 we don't need to handle mixed filenames and relative arguments.
1347 * girepository/girparser.c: Parse name and version separately;
1348 this fixes a bug as a side effect where we weren't resolving
1349 through aliases for basic types.
1350 * girepository/girepository.c: Fix format string args.
1351 * gir/Makefile.am: Update.
1354 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1356 Bug 556434 – unhandled interface/object/... member types
1358 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1359 g_ir_node_build_typelib): Check all
1360 interface/object/boxed/struct/union members are processed and
1361 abort if they are not. (Mostly callbacks in structs, but also
1362 fields in interfaces.)
1364 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1366 * a/girepository/girnode.c (g_ir_node_build_members,
1367 g_ir_node_build_typelib): refactor common code for processing
1368 members to a function
1370 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1372 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1373 transformation is lossless (it's not)
1375 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1377 * tests/Makefile.am: fix tests to compare xml to xml instead of
1378 typelib to xml, and stop on error
1380 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1382 * tools/generate.c (write_type_name, write_type_info,
1383 write_type_info, write_object_info, write_object_info,
1384 write_interface_info, write_error_domain_info): reduce code
1387 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1389 Bug 556174 – parse types for lists etc.
1391 * girepository/girparser.c (end_type_recurse):
1393 * tools/generate.c (write_type_info, write_field_info,
1394 write_callable_info, write_callable_info, write_constant_info,
1395 write_property_info): use nested <type>s for lists and hashes
1397 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1400 * tests/object.gir: remove trailing whitespace from inside
1401 elements to match g-ir-generate output
1403 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1405 * tools/generate.c (xml_printf): quote printf arguments so that
1406 we don't generate invalid XML by writing unescaped double quotes
1407 and such in attributes
1409 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1411 * tools/generate.c (write_field_info, write_callable_info,
1412 write_function_info, write_callback_info, write_struct_info,
1413 write_constant_value, write_signal_info, write_vfunc_info,
1414 write_object_info, write_interface_info, write_union_info,
1415 write_repository): remove unused indent parameters, xmlwriter
1416 keeps track of necessary indentation
1418 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1420 * tools/generate.c (xml_element_new, xml_element_free,
1421 xml_start_element, xml_end_element, xml_end_element_unchecked,
1422 xml_open, xml_close): Keep track of generated XML tree and
1423 handle indentation and closing tags properly.
1424 (write_field_info, write_callable_info, write_function_info,
1425 write_callback_info, write_struct_info, write_value_info,
1426 write_constant_info, write_enum_info, write_signal_info,
1427 write_vfunc_info, write_property_info, write_object_info,
1428 write_interface_info, write_error_domain_info, write_union_info,
1429 write_repository): Use xml_start_element and xml_end_element to
1432 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1434 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1435 (write_type_name, write_type_info, write_field_info,
1436 write_callable_info, write_function_info, write_callback_info,
1437 write_struct_info, write_value_info, write_constant_value,
1438 write_constant_info, write_enum_info, write_signal_info,
1439 write_vfunc_info, write_property_info, write_object_info,
1440 write_interface_info, write_error_domain_info, write_union_info,
1441 write_repository): wrap all FILE access to go through simple xmlwriter
1443 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1445 Bug 556400 – Fails to build on OS X 10.4
1447 * configure.ac: check for functions backtrace and backtrace_symbols
1448 * girepository/girparser.c (backtrace_stderr): Comment out
1449 implementation if the functions are not available.
1450 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1451 directory for better portability
1453 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1455 Bug 556433 – assume direction = out for int * parameters
1457 * giscanner/ast.py: define a list of types for which, if passed as
1458 reference, we assume a default direction of 'out'
1459 * giscanner/transformer.py: if a type has type pointer to one of the
1460 previously defined types, and no direction is set, assume out.
1461 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1463 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1465 * tests/scanner/annotation.c: fixed a few copy-paste errors
1467 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1469 Bug 556323 – transfer-ownership is wrong for functions returning const
1472 * giscanner/transformer.py: check for a const string as return value,
1473 not just const char*. Suggested by Colin Walters
1474 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1476 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1478 * girepository/ginfo.c, girepository/girepository.h: add
1479 g_union_info_find_method
1481 2008-10-14 Colin Walters <walters@verbum.org>
1483 * tests/repository/Makefile.am: Reenable repo test.
1484 * tests/repository/gitestrepo.c: Prepend search
1485 path for $(top_builddir)/gir dir so that we don't
1486 require installation for "make check" to pass.
1488 2008-10-13 Jürg Billeter <j@bitron.ch>
1490 * giscanner/glibtransformer.py:
1491 * tests/scanner/annotation-1.0-expected.gir:
1492 * tests/scanner/drawable-1.0-expected.gir:
1493 * tests/scanner/foo-1.0-expected.gir:
1494 * tests/scanner/utility-1.0-expected.gir:
1496 Support fields in GObject structs
1498 2008-10-13 Jürg Billeter <j@bitron.ch>
1500 * giscanner/ast.py: add signed integer and off_t to type_names
1502 2008-10-12 Jürg Billeter <j@bitron.ch>
1504 * giscanner/girparser.py: Parse bits attribute of fields
1506 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1508 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1509 * tests/repository/gitestrepo.c (main): instantiate
1510 'GCancellable' to ensure the GType is registered before using
1513 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1515 * giscanner/girparser.py: actually add the parsed constant nodes
1517 2008-10-12 Colin Walters <walters@verbum.org>
1519 * girepository/girepository.c: Don't cast DirEntry to Blob,
1520 actually look it up by offset.
1522 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1524 * giscanner/girparser.py: parse constant nodes in gir files
1526 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1528 * giscanner/transformer.py: prefix for constants have an underscore,
1529 so remove them as if they were functions, not objects.
1531 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1533 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1536 2008-10-12 Colin Walters <walters@verbum.org>
1538 Initial patch from Jani Monoses.
1540 * girepository/gtypelib.c: Fix inverted test for success
1543 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1545 * tools/generate.c (write_callable_info): use "transfer-ownership"
1546 attribute for return values
1548 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1550 * tools/generate.c (write_callable_info): move "transfer" and
1551 "null-ok" attributes from <function> to <return-value> element
1553 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1555 * girepository/girparser.c (start_return_value): handle
1556 "transfer-ownership" attribute
1558 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1560 * girepository/girparser.c (parse_param_transfer):
1561 * tools/generate.c (write_callable_info): use "container" for
1562 container/shallow ownership transfer (not "shallow")
1564 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1566 * girepository/girparser.c (parse_param_transfer,
1567 start_parameter): Refactor handling of transfer=none/shallow/full
1568 to separate function
1570 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1572 Bug 556048 – Crash in g_irepository_find_by_gtype
1574 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1575 * girepository/girepository.c (find_interface): Fix
1576 find_by_gtype case to get the type name from right offset
1578 2008-10-12 Jürg Billeter <j@bitron.ch>
1580 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1583 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1585 * girepository/gtypelib.h (RegisteredTypeBlob): make
1586 'unregistered' one bit wide as everywhere else
1588 2008-10-12 Jürg Billeter <j@bitron.ch>
1590 * giscanner/glibtransformer.py:
1591 * tests/scanner/annotation-1.0-expected.gir:
1592 * tests/scanner/drawable-1.0-expected.gir:
1593 * tests/scanner/drawable.h:
1594 * tests/scanner/foo-1.0-expected.gir:
1595 * tests/scanner/utility-1.0-expected.gir:
1597 Readd class records as workaround to not break Gtk typelib
1599 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1601 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1603 2008-10-12 Jürg Billeter <j@bitron.ch>
1605 * giscanner/glibtransformer.py: Don't generate <record> elements
1607 * tests/scanner/*: Update test cases
1609 2008-10-11 Colin Walters <walters@verbum.org>
1611 Bug 552858: versioning
1613 This is a big patch. You should probably remove your installation
1616 * docs/typelib-format.txt: Add nsversion entry which holds
1617 version of namespace.
1618 * girepository/girepository.h: Add 'version' parameter to
1619 g_irepository_require. This may be NULL. Normally
1620 bindings should pass an explicit version though.
1621 * girepository/girepository.c: Lots of infrastructure to
1622 support versioning. Add some more documentation. Disallow
1623 some usage of NULL namespaces.
1624 * girepository/girmodule.c: Add version parameter.
1625 * girepository/gtypelib.c: Update header size.
1626 * giscanner/ast.py: Add version to Namespace.
1627 * giscanner/girparser.py: Parse version attribute from
1628 XML, pass to Namespace.
1629 * giscanner/girwriter.py: Write out version parameter.
1630 * giscanner/transformer.py: Clean up include registration.
1631 * tests/*: Add version attribute.
1632 * tests/invoke/invoke.c: Don't try looking up test before
1633 it's loaded in repository.
1634 * tools/generate.c: Output version parameter.
1635 * gir/Makefile.am: Add 2.0 version to .gir files.
1637 2008-10-11 Colin Walters <walters@verbum.org>
1639 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1640 if we have mismatched parens.
1642 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1644 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1645 on 'members' variable.
1647 2008-10-11 Colin Walters <walters@verbum.org>
1649 Bug 555947 - update annotations syntax
1651 * giscanner/ast.py: Default to None for transfer. Remove
1652 default transfers for container types; we require this to
1654 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1655 'full' to match repository.
1656 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1657 * giscanner/transformer.py: Update for new annotations syntax.
1660 2008-10-11 Johan Bilien <jobi@litl.com>
1662 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1664 2008-10-11 Johan Bilien <jobi@litl.com>
1666 Bug 552347: Parse #defines constants
1668 * girepository/gtypelib.c: update the list of value_size
1669 with recently defined type tags
1670 * giscanner/scannerparser.y: brought back parsing of #defined, as
1671 present in older version
1672 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1673 * giscanner/girwriter.py: write out constant tags in the gir
1674 * giscanner/sourcescanner.py: add accessor for const_string
1675 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1678 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1680 Bug 555946: Install a test module exercising all types, transfer
1685 * tests/types/*: Add and install a test module that has functions
1686 accepting and returning most of the basic types to enable bindings
1687 implementors to more easily test their type conversion routines.
1689 2008-10-11 Jürg Billeter <j@bitron.ch>
1691 Bug 552374: Const strings should be identified in the gir.
1693 * giscanner/transformer.py: support string memory management
1694 * tests/scanner/foo.h: use char * and const char *
1695 * tests/scanner/foo-expected.gir: test that
1697 2008-10-11 Johan Dahlin <johan@gnome.org>
1699 * giscanner/girparser.py:
1700 Also parse enums which are not glib types.
1702 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1704 Bug 552370: add one more test for unsigned as a type, not as
1707 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1708 * test/scanner/foo.h: add function which uses unsigned as a type.
1709 * test/scanner/foo-expected.gir: test that.
1711 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1713 Bug 555712: Struct and union issues
1715 * giscanner/scannerparser.y (struct_declarator): Use information
1716 provided about the bit width of a field.
1717 * giscanner/transformer.py (Transformer._create_member): Pass the
1718 symbol's const_int member to the created field (it represents the
1720 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1721 field attribute, if present.
1722 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1723 width in bits of the field (only relevant for bitfields).
1726 * giscanner/transformer.py (Transformer._create_typedef_struct)
1727 (Transformer._create_typedef_union): Add calls to _create_struct()
1728 and _create_union(), respectively. This causes the scanner to
1729 generate output for fields of struct and union typedefs.
1732 2008-10-11 Jürg Billeter <j@bitron.ch>
1734 Bug 552370: unsigned not scanned properly
1736 * giscanner/scannerparser.y: combine basic types such as unsigned
1737 int and long long when scanning
1738 * tests/scanner/foo-expected.gir:
1739 * tests/scanner/foo.c: (foo_test_unsigned):
1740 * tests/scanner/foo.h: test that
1742 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1744 Bug 554854: The --typelib-xml and --inject options should reuse
1745 giscanner parser/writer.
1747 * giscanner/ast.py: add constructor list to Struct and Union.
1748 Add new param in Return's contructor to define transfer.
1749 * giscanner/girparser.py: several additions to the parser in order
1750 to have parsing all nodes of the gir xml files.
1751 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1752 and writer in --inject and --typelib-xml options.
1753 * giscanner/xmlwriter.py: ignore empty attributes instead of
1754 raising an error as this basically exposes a bug in GIRParser.
1755 This should be reverted as soon as the parser is fixed.
1757 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1759 Bug 552376: scanner generates wrong names for enum members when
1760 there's no defined gtype.
1762 * giscanner/utils.py (strip_common_prefix): Always strip common
1763 prefix exactly up to the last "_", and not beyond.
1764 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1765 here is that the first character after the last '_' should should be
1766 the same as the character in the same position on the type name.
1767 * tests/scanner/foo-expected.gir: test that
1769 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1771 Bug 555293: append library_paths to LPATH env variable to work
1772 around a bug in find_library when using ldconfig.
1774 * tools/g-ir-scanner (main): ditto.
1776 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1778 * girepository/girepository.c (register_internal): fix regression on
1779 invoke test case by making sure we load the global module in the
1780 typelib when dealing with inline typelibs.
1781 * girepository/gtypelib.c: a couple of coding style fixes.
1783 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1785 Bug 555294: Add support for multiple shared libraries per typelib.
1787 * girepository/ginvoke.c (g_function_info_invoke),
1788 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1789 g_typelib_symbol instead of g_module_symbol.
1790 * girepository/girepository.h: remove g_typelib_set_module and add
1792 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1793 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1794 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1795 modules instead of just one. The symbol lookup is now abstracted
1796 behind g_typelib_symbol which tries to find the passed symbol name in
1798 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1799 and write shared_library attribute as a comma-separated list of libs.
1801 2008-10-06 Colin Walters <walters@verbum.org>
1803 * giscanner/transformer.py: Parse length= annotation as
1804 a parameter name, not a raw int.
1807 2008-10-03 Colin Walters <walters@verbum.org>
1809 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1811 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1813 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1817 2008-10-03 Colin Walters <walters@verbum.org>
1819 Bug 554576: scan problem with ev_selection_render_selection()
1821 * giscanner/transformer.py: Only do type resolution once we've
1822 scanned all types. What could happen before is that we'd strip
1823 the namespace from local type "EvSelection" => Selection, and
1824 then later pull a "Selection" from some other namespace because
1825 we hadn't yet seen the local EvSelection. This could come
1826 down to hash table ordering and other things so not easy
1827 to write a test for.
1829 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1831 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1832 GLibEnumMember constructor as it should be the enum member nick.
1834 2008-10-02 Colin Walters <walters@verbum.org>
1836 Bug 552961: remove this parameter for methods
1838 * giscanner/glibtransformer.py: Delete this parameter; it is
1840 * girepository/ginvoke.c: Insert this parameter for methods.
1841 * girepository/gtypelib.c: Remove no longer needed verification of
1842 method this parameter.
1845 2008-09-30 Dan Winship <danw@gnome.org>
1847 Bug 554490: g-ir-scanner gets confused by '\\'
1849 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1850 backslashes so it will correctly parse '\\' and "\\"
1852 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1855 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1857 2008-10-02 Colin Walters <walters@verbum.org>
1859 bug 552393: Note variadic functions
1861 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1862 to use parameter_list directly.
1863 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1864 * giscanner/ast.py: Add Varargs type.
1865 * giscanner/transformer.py: Check for ellipsis symbol, transform
1867 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1868 Parse varargs functions, but filter them out before we start
1869 compiling the typelib.
1871 2008-10-02 Colin Walters <walters@verbum.org>
1873 Bug 554632: type tag for GType
1875 * girepository/girepository.h, girepository/girepository.c:
1876 Add type tag for GType - it's a special type we don't want
1877 to resolve to just "long".
1878 * docs/typelib-format.txt: Update.
1879 * girepository/girparser.c: Parse it.
1880 * giscanner/glibtransformer.py: Ensure we don't put GType in
1882 * tools/generate.c: Remove hardcoded type list.
1885 2008-09-30 Dan Winship <danw@gnome.org>
1887 Bug 554521: scanner generates wrong names for enum members with
1888 full type name prefix
1890 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1891 right amount when the entire "first" string is a prefix of
1894 * tests/scanner/foo.h (FooEnumFullname):
1895 * tests/scanner/foo-expected.gir: test that
1897 2008-09-29 Colin Walters <walters@verbum.org>
1899 Bug 552380: Array parameters should be marked in the gir
1901 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1902 uint8[]. Add Array, List, and Map subclasses of Type;
1903 these types can be generic. Return transfer defaults
1904 to true if return value is string or container type.
1905 Delete Sequence type.
1906 * giscanner/scannerlexer.l: Syntax change for annotations;
1907 use <> since it's more readable.
1908 * giscanner/girwriter.py: Write out these changes.
1909 * giscanner/girparser.py: Parse them.
1910 * giscanner/transformer.py: Have a defined set of
1911 both list and map types. When creating a type,
1912 check if the ctype we've parsed is one of them,
1913 if so create a container type subclass as appropriate.
1914 * girepository/girparser.c: Parse in generic types.
1917 2008-09-27 Colin Walters <walters@verbum.org>
1919 * tools/g-ir-scanner: Add --inject option.
1921 2008-09-25 Colin Walters <walters@verbum.org>
1923 Remove non-repository types from GIR
1925 * giscanner/ast.py: The canonical name is 'utf8', not
1927 * giscanner/glibast.py: A few more glib type mappings.
1928 * girepository/girparser.c: We only parse repository types.
1929 * tests/*.gir: Update.
1931 2008-09-23 Colin Walters <walters@verbum.org>
1933 Bug 552566: Add time_t type
1935 We need a type for time_t since it's special in C, and just
1936 mapping it to long precluded bindings from handling it
1939 2008-09-19 Colin Walters <walters@verbum.org>
1941 Bug 552390: Handle capitialization like "DBus" more robustly
1943 The to_underscores function was designed for use against prefixed
1944 names; we need a separate function which will convert names like
1945 DBusFoo into dbus_foo, not d_bus_foo.
1947 2008-09-19 Colin Walters <walters@verbum.org>
1949 Add check to make sure we're not hitting out unresolved types
1951 Validate the "this" argument for methods
1953 Remove heuristic matching of methods to classes based on prefix
1955 It was a broken hack that dated from when we handled underscoring
1956 and capitalization conventions less well.
1958 2008-09-18 Colin Walters <walters@verbum.org>
1960 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1962 On Darwin, the suffix for installed shared libraries (.dylib) is
1963 different from loadable modules (.so). We use a bit of magic shell
1964 script from Behdad Esfahbod to figure out the right suffix.
1966 2008-09-15 Johan Dahlin <johan@gnome.org>
1968 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1969 a wrapper for type_qualifier as well.
1971 2008-09-15 Colin Walters <walters@verbum.org>
1973 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1975 * giscanner/ast.py: Add deprecation attributes.
1976 * giscanner/girwriter.py: Write out deprecation data.
1977 * girepository/girparser.c: Relax parsing; deprecated
1978 attribute now includes freeform string.
1979 * giscanner/scannerlexer.l: Parse Deprecated.
1980 * giscanner/transformer.py: Look for deprecated attribute
1982 * tests/scanner/*: Add a Deprecated test.
1984 2008-09-14 Tor Lillqvist <tml@novell.com>
1986 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1988 2008-09-14 Colin Walters <walters@verbum.org>
1990 * giscanner/glibtransformer.py: Ignore functions with
1993 2008-09-12 Colin Walters <walters@verbum.org>
1995 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1997 2008-09-12 Colin Walters <walters@verbum.org>
1999 * giscanner/ast.py: Bind pid_t to INT for vte.
2001 2008-09-12 Colin Walters <walters@verbum.org>
2003 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2004 * giscanner/glibast.py: Avoid overwriting ctype.
2005 * giscsanner/transformer.py: Try resolving types using the GType names.
2007 2008-09-12 Colin Walters <walters@verbum.org>
2009 * giscanner/minixpath.py: Code to run an "XPath"
2010 assertion against an XML tree, taken from
2011 gir-repository/gir/tests.py.
2012 * giscanner/Makefile.am: Ship it.
2013 * tools/g-ir-scanner: Add --xpath-assertions option.
2014 * gir/GLib-assertions.txt: Add a few assertions.
2015 * gir/Makefile.am: Run them.
2017 2008-09-11 Colin Walters <walters@verbum.org>
2019 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2021 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2022 prefix if it ends with _. Tweak callback stripping to determine
2023 based on presence of _ whether we need to use strip_namespace_func
2024 or strip_namespace_object.
2026 2008-09-09 Owen Taylor <otaylor@redhat.com>
2028 * docs/typelib-format.txt: Wether => Whether
2030 2008-09-08 Colin Walters <walters@verbum.org>
2032 * girepository/girparser.c: Default to "readable" for properties.
2033 * giscanner/ast.py: Add readable, writable etc.
2034 * giscanner/girwriter.py: Writ them.
2035 * giscanner/glibtransformer.py: Inspect them.
2038 2008-09-07 Colin Walters <walters@verbum.org>
2040 * giscanner/cgobject.py: Add comment.
2042 2008-09-07 Colin Walters <walters@verbum.org>
2044 * giscanner/cgobject.py: Also call g_thread_init.
2046 2008-09-07 Colin Walters <walters@verbum.org>
2048 * giscanner/transformer.py: Fix regression by not
2049 stripping prefix before stripping namespace for unions
2052 2008-09-06 Colin Walters <walters@verbum.org>
2054 * giscanner/transformer.py: If a namespace contains
2055 multiple caps, try stripping both gnomekeyring_ and
2058 2008-09-07 Johan Dahlin <johan@gnome.org>
2060 Bug 551162 – giscanner does not recognize asm and __asm__
2061 * giscanner/scannerlexer.l:
2062 Patch by Jani Monoses.
2064 2008-09-06 Colin Walters <walters@verbum.org>
2066 * girepository/girnode.c: Allow gtype_name
2067 and gtype_init in struct and union.
2068 * girepository/girparser.c: Parse glib:
2069 boxed bits for both structure and union.
2070 * girepository/gtypelib.c: Don't barf
2071 if structure is boxed.
2072 * giscanner/girparser.py: Parse new XML
2074 * giscanner/girwriter.py: Write out new
2076 * giscanner/glibast.py: Define new classes
2077 which are both Boxed and Struct/Union, as
2078 well as an "Other" for everything else.
2079 * giscanner/glibtransformer.py: Handle
2080 boxed types specially; we try to merge
2081 them with a struct/union if one exists,
2082 otherwise fall back to generic boxed.
2084 * tools/generate.c: Write out new format.
2086 2008-09-06 Johan Dahlin <johan@gnome.org>
2088 * giscanner/grealpath.h: Include stdlib.h
2090 * docs/g-ir-generate.1: Remove leading %
2092 2008-09-01 Colin Walters <walters@verbum.org>
2094 * girepository/girparser.c: Look at c:type to determine
2095 whether or not an item is a pointer.
2097 2008-09-01 Johan Dahlin <johan@gnome.org>
2099 * tests/scanner/Makefile.am:
2100 Set PYTHONPATH so the scanner can run
2101 even if you didn't install anything.
2103 2008-09-01 Johan Dahlin <johan@gnome.org>
2106 Post-release version bump
2109 2008-09-01 Johan Dahlin <johan@gnome.org>
2113 2008-08-31 Colin Walters <walters@verbum.org>
2115 * giscanner/glibtransformer.py: Quiet info
2118 2008-08-31 Johan Dahlin <johan@gnome.org>
2121 Bump version to 0.5.0
2123 2008-08-31 Colin Walters <walters@verbum.org>
2125 * giscanner/glibtransformer.py: Follow aliases to ensure
2126 we don't get a constructor returning a basic type.
2127 * giscanner/transformer.py: Add function to follow aliases.
2130 2008-08-31 Johan Dahlin <johan@gnome.org>
2132 * giscanner/scannerlexer.l:
2133 * giscanner/scannerparser.y:
2134 * giscanner/sourcescanner.h:
2135 * giscanner/sourcescanner.py:
2136 Parse GCC extensions in the parser instead of just undeffing them
2137 in the pre-processor.
2139 2008-08-31 Johan Dahlin <johan@gnome.org>
2141 * giscanner/glibtransformer.py:
2142 Clean up a huge if. Do not add methods or constructors
2144 * giscanner/utils.py:
2145 second might be longer than first, check that.
2147 2008-08-31 Johan Dahlin <johan@gnome.org>
2152 2008-08-31 Colin Walters <walters@verbum.org>
2154 * girepository/girparser.c: Don't lose if we
2157 2008-08-31 Colin Walters <walters@verbum.org>
2159 * giscanner/glibtransformer.py: Look for libtool
2160 library in current directory
2161 * tests/scanner - Update.
2163 2008-08-30 Colin Walters <walters@verbum.org>
2165 * docs/typelib-format.txt: Add a guint32
2167 * gir/Makefile.am: Dep on Makefile
2168 * girepository/ginfo.c:
2169 * girepository/girepository.c: Clean up
2170 default typelib handling; remove global
2171 default_typelib variable. Ensure we handle
2172 NULL repository in more places.
2173 Support dependency resolution.
2174 Support lazy loading.
2175 * girepository/girepository.h: Remove
2176 g_irepository_unregister; we don't support
2177 unloading typelibs since really they're
2178 process-global. Update for lazy loading
2180 * girepository/girmodule.c: Use g_new0.
2181 Add dependencies to GirModule.
2182 * girepository/girparser.c: Parse dependencies.
2183 * girepository/gtypelib.c: Add 4 bytes for
2185 * tests/Makefile.am: Kill off gobject.gir,
2186 it conflicts with the real one.
2187 * tests/object.gir: Dep on GObject.
2188 * tools/generate.c: Take --includedir
2189 argument to say which directories to search
2190 for typelibs. Print out dependencies.
2192 2008-08-30 Colin Walters <walters@verbum.org>
2194 * giscanner/glibtransformer.py: Reduce warning noise.
2196 2008-08-29 Colin Walters <walters@verbum.org>
2198 * girepository/ginfo.c: Add some assertions regarding
2199 refcounts, just to be sure.
2200 * giscanner/glibtransformer.py: Blacklist a few more
2203 2008-08-29 Colin Walters <walters@verbum.org>
2205 * giscanner/glibtransformer.py: Blacklist a few
2206 functions that use GError oddly
2208 2008-08-29 Colin Walters <walters@verbum.org>
2210 * girepository/gtypelib.c: Don't crash if no
2213 2008-08-29 Colin Walters <walters@verbum.org>
2215 * girepository/girparser.c: Handle chains of aliases
2216 across modules by ensuring we fully qualify aliases
2219 2008-08-29 Colin Walters <walters@verbum.org>
2221 * girepository/girparser.c: Don't search aliases
2224 2008-08-29 Colin Walters <walters@verbum.org>
2226 * girepository/girparser.c: Rewrite type parsing
2227 to handle both GLib parsing case as well as correctly
2228 handling GLib.List and friends. Don't try to treat
2229 e.g. ListStore as a List.
2231 2008-08-29 Colin Walters <walters@verbum.org>
2233 * girepository/gtypelib.c: Add more context
2236 2008-08-29 Colin Walters <walters@verbum.org>
2238 * giscanner/glibtransformer.py: Add some informative
2239 logging messages in corner cases. Be sure we use
2240 the most recent node set instead of a cache
2241 when generating result set.
2242 * tests/: Remove duplicated bits in expected girs
2243 * girepository/girparser.c: Accept both List (for
2244 compiling GLib) and GLib.List (what the scanner
2247 * tools/generate.c: Generate canonical form.
2249 2008-08-29 Johan Dahlin <johan@gnome.org>
2251 * giscanner/config.py.in:
2252 Use datarootdir instead of datadir to avoid
2253 an autoconf warning.
2255 2008-08-29 Johan Dahlin <johan@gnome.org>
2259 * examples/gdk-pixbuf.gidl:
2261 Update and remove old cruft.
2263 2008-08-29 Johan Dahlin <johan@gnome.org>
2266 * docs/g-ir-compiler.1:
2267 * docs/g-ir-generate.1:
2268 * docs/g-ir-scanner.1:
2269 Add man pages for the generator and compiler.
2271 2008-08-29 Johan Dahlin <johan@gnome.org>
2273 * docs/g-ir-scanner.1: Document
2275 * giscanner/Makefile.am:
2276 * giscanner/gidlparser.py:
2277 * giscanner/gidlwriter.py:
2278 * tools/g-ir-scanner:
2279 Remove gidl support.
2281 2008-08-28 Colin Walters <walters@verbum.org>
2283 * tests/scanner/Makefile.am: Pass the right
2284 --includedir args. Add a Makefile dep.
2285 * tools/compiler.c: Pass includedirs down.
2286 * girepository/girparser.c: Actually put
2287 includedirs in context, pass down. Fix
2290 2008-08-28 Colin Walters <walters@verbum.org>
2292 * gir/Makefile.am: Use --includedir
2293 * girepository/girparser.c: Recursively parse
2294 includes to pull in aliases and expand them.
2295 We need this to avoid putting unknown names in
2297 * tools/compiler.c: Add --includedir option.
2298 * giscanner/ast.py: Map size/ssize to types
2301 2008-08-28 Tor Lillqvist <tml@novell.com>
2303 Make check now runs successfully on Windows.
2305 * tools/compiler.c (write_out_typelib): Use binary mode for output
2308 * girepository/girnode.c: Don't print NULL strings.
2310 * tests/invoke/Makefile.am
2311 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2312 convince libtool to build shared libraries.
2314 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2315 g_assert() instead of printing out expected errors.
2317 2008-08-28 Tor Lillqvist <tml@novell.com>
2319 * girepository/gtypelib.h: Change type of bitfield fields from
2320 guint to the most suitable smaller type. This makes the struct
2321 sizes match the ones on Linux that the sanity check expects when
2322 using gcc -mms-bitfields on Windows.
2324 2008-08-28 Johan Dahlin <johan@gnome.org>
2329 * giscanner/Makefile.am:
2330 * tests/Makefile.am:
2331 * tests/scanner/Makefile.am:
2332 Make distcheck pass.
2334 2008-08-27 Johan Dahlin <johan@gnome.org>
2336 * giscanner/Makefile.am:
2337 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2339 2008-08-27 Tor Lillqvist <tml@novell.com>
2341 Make g-ir-scanner work on Windows. Still problems with the typelib
2342 code. Changes okayed by jdahlin.
2344 * configure.ac: Check for Windows, set Automake conditional
2345 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2346 avoid shell quoting issues
2348 * girepository/Makefile.am: Use -no-undefined so that libtool
2349 agrees to build a shared library on Windows.
2351 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2352 Windows. Empty implementation on Windows so far.
2354 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2355 informative error message for the assertion failures. Tell also
2356 what the expected size of the struct is. Check all sizes first and
2357 fail afterwards if at least one size was different from expected.
2359 * tools/Makefile.am: Reorder libraries into proper logical
2362 * tools/generate.c: Don't include <dlfcn.h>, not used.
2364 * giscanner/Makefile.am: On Windows, link with the Python library,
2365 and install the module DLL as _giscanner.pyd. Remove the
2366 unnecessary import library and libtool library that libtool has
2369 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2370 and just skip it. Recognize also two "l" suffixes for long long
2371 constants. Recognize also __inline__.
2373 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2374 GetFullPathName(). As such, GetFullPathName() does more than the
2375 UNIX realpath(). It also changes relative paths into absolute
2376 paths. But for our purposes that shouldn't matter.
2378 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2379 Windows the file descriptor passed to us is from Python. Python
2380 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2381 uses msvcrt.dll. On Windows, file descriptors are specific to
2382 which C library is used. So we must find out what underlying OS
2383 handle corresponds to the file descriptor Python passes us, and
2384 then make that into a file descriptor valid for the C library this
2387 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2388 __attribute__ as the lexer now handles it. The definition as empty
2389 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2390 __attribute__. Close the temp file before unlinking it.
2392 * giscanner/cgobject.py: Use correct library name for the gobject
2395 * gir/Makefile.am: Must pass the full basename of the DLLs on
2396 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2397 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2398 reality they won't change, until there is a GLib 3, and then also
2399 the Unix code here needs changing.
2401 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2404 2008-08-26 Colin Walters <walters@verbum.org>
2406 * girepository/girepository.c: Search
2407 $DATADIR/girepository instead of
2408 $DATADIR/gitypelibs; this naming makes
2409 it clearer that e.g. jgir can install
2411 * gir/Makefile.am: Install there.
2413 2008-08-26 Colin Walters <walters@verbum.org>
2415 * girepository/gtypelib.c (_g_typelib_init): Also
2416 use G_MODULE_SUFFIX instead of hardcoding .so.
2418 2008-08-26 Colin Walters <walters@verbum.org>
2420 * girepository/gtypelib.c (_g_typelib_init): Free
2421 string in the right place.
2423 2008-08-26 Colin Walters <walters@verbum.org>
2425 * girepository/gtypelib.c (_g_typelib_init): Handle
2426 both .la and .so names; this works better in the
2427 uninstalled library case.
2429 2008-08-26 Johan Dahlin <johan@gnome.org>
2432 * giscanner/Makefile.am:
2433 * giscanner/cgobject.py:
2434 * giscanner/config.py.in:
2435 * giscanner/sourcescanner.py:
2436 Avoid undeffing __GNUC__, instead define
2437 __attribute__ & friends. Remove glibconfig.h hack.
2438 This makes gobject-introspection work better on
2439 MacOS X, Thanks to Richard Hult for kind help.
2441 2008-08-25 Colin Walters <walters@verbum.org>
2443 * giscanner/glibtransformer.py: Always print
2446 2008-08-25 Colin Walters <walters@verbum.org>
2448 * giscanner/glibtransformer.py: Skip over
2449 interfaces we don't know.
2451 2008-08-25 Colin Walters <walters@verbum.org>
2453 * girepository/girparser.c: Parse new implements
2454 syntax, drop gapi one.
2455 * tests/object.gir: Update.
2456 * tools/generate.c: Generate new syntax.
2458 2008-08-25 Colin Walters <walters@verbum.org>
2460 * giscanner/ast.py: Add interfaces property
2462 * giscanner/girwriter.py: Write out implemented
2464 * giscanner/glibtransformer.py: Introspect
2465 implemented interfaces.
2466 * tests/scanner/*: Make FooObject implement
2469 2008-08-25 Colin Walters <walters@verbum.org>
2471 * giscanner/glibtransformer.py: More correctly pair
2472 methods; if we have a symbol that starts with
2473 e.g. hippo_canvas look for a matching HippoCanvas
2474 class before accepting e.g. HippoCanvasImage.
2476 2008-08-24 Colin Walters <walters@verbum.org>
2478 * tools/g-ir-scanner: Filter out unknown options from
2481 2008-08-24 Colin Walters <walters@verbum.org>
2483 * giscanner/glibtransformer.py: Fail with better
2484 error if we can't find library.
2486 2008-08-24 Colin Walters <walters@verbum.org>
2488 * tools/g-ir-scanner: Use subprocess instead of
2489 commands, works on Windows and avoids the evil
2492 2008-08-24 Colin Walters <walters@verbum.org>
2494 * giscanner/glibtransformer.py: Skip over
2495 g_object_get_type from GLib trunk.
2497 2008-08-24 Colin Walters <walters@verbum.org>
2499 * girepository/girepository.c (g_irepository_require):
2500 Don't open shared library here; we already do it
2503 2008-08-24 Colin Walters <walters@verbum.org>
2505 * girepository/gtypelib.c: Add context stack so
2506 when we get an error we can print out nicely
2509 2008-08-24 Johan Dahlin <johan@gnome.org>
2511 * girepository/girparser.c (start_glib_boxed), (start_function),
2512 (start_field), (start_alias):
2513 Refactor a couple of parsing functions to be simpler to follow.
2516 2008-08-24 Johan Dahlin <johan@gnome.org>
2518 * girepository/girparser.c (start_function):
2519 Remove left-over code, checking type of function.
2521 2008-08-23 Colin Walters <walters@verbum.org>
2523 * giscanner/config.py: Define DATADIR.
2524 * giscanner/transformer.py: Look in DATADIR.
2526 2008-08-23 Colin Walters <walters@verbum.org>
2528 * girepository/gtypelib.c: Check constructor
2530 * girepository/girnode.c: Small tweaks.
2531 * girepository/ginfo.c: Calculate signature offsets
2533 * girepository/girparser.c: Remove duplicate
2535 * giscanner/glibtransformer.py: Avoid marking
2536 functions which return a basic type as
2539 2008-08-23 Colin Walters <walters@verbum.org>
2541 * girepository/girparser.c: Ignore <include>.
2542 * giscanner/girparser.py: Parse them.
2543 * giscanner/girwriter.py: Generate them.
2544 * giscanner/transformer.py: Process <include>
2545 recursively. Don't require full path for
2546 includes, look in {$XDG_DATA_DIRS}/gir.
2547 * tools/g-ir-scanner: Pass through includes.
2548 * Makefile.am: Remove extra --include
2550 * *-expected.gir: Add expected includes.
2552 2008-08-23 Johan Dahlin <johan@gnome.org>
2554 * tests/scanner/Makefile.am:
2555 * tests/scanner/annotation-expected.gir:
2556 * tests/scanner/drawable-expected.gir:
2557 Avoid duplication in the Makefile, regenerate with new
2558 namespaces (same as the filename)
2560 2008-08-22 Colin Walters <walters@verbum.org>
2562 * girepository/girnode.c: Don't hardcode integers,
2565 2008-08-22 Johan Dahlin <johan@gnome.org>
2567 * giscanner/sourcescanner.py:
2568 Check for ../gobject-introspection-1.0.pc.in to determine
2569 if we run installed or uninstalled.
2571 2008-08-22 Johan Dahlin <johan@gnome.org>
2574 * giscanner/sourcescanner.py:
2575 Send in undefs/defines via writing it directly to stdin
2576 of cpp instead of via arguments.
2578 2008-08-22 Colin Walters <walters@verbum.org>
2580 * tools/generate.c, tools/compiler.c: Default
2582 * all Makefile.am: Update.
2584 2008-08-22 Colin Walters <walters@verbum.org>
2586 * girepository/girparser.c: Pass through
2587 recursive types. Avoid overwriting errors.
2588 * giscanner/xmlwriter.py: Always write the
2590 * tests/*.gir: Adjust.
2591 * tests/scanner/Makefile.am: Build typelibs,
2592 and generate XML from those. Once we
2593 have a good diff mechanism...
2594 * tests/scanner/*-expected.gir: Add XML
2596 * tools/g-ir-scanner: Accept --typelib-xml
2598 * tools/generate.c: Better defaults for transfer.
2600 2008-08-22 Johan Dahlin <johan@gnome.org>
2604 * giscanner/Makefile.am:
2605 * giscanner/config.py.in:
2606 * giscanner/sourcescanner.py:
2607 Use the generated glibconfig.h for all scanner invokations.
2608 Rename it to glibconfig-scanner.h and install it.
2609 Add a config.py which so far contains the include dir.
2611 2008-08-22 Johan Dahlin <johan@gnome.org>
2614 Replace glibconfig.h with our own, do some replacement
2615 for CPP/C features we do not support
2617 2008-08-22 Colin Walters <walters@verbum.org>
2619 * tools/generate.c (write_callable_info): Fix unref
2622 2008-08-22 Colin Walters <walters@verbum.org>
2624 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2625 * tests/Makefile.am: Support $(DEBUG)
2626 * tools/generate.c: Do immediate close tags if no
2629 2008-08-21 Colin Walters <walters@verbum.org>
2631 * tests/scanner/drawable-expected.gir,
2632 * tests/scanner/drawable.c,
2633 * tests/scanner/drawable.h:
2636 2008-08-21 Colin Walters <walters@verbum.org>
2638 * giscanner/glibtransformer.py: Compute prefix
2639 by searching through the symbol for bits
2640 rather than going directly from ctype; this fixes
2643 2008-08-21 Colin Walters <walters@verbum.org>
2645 * giscanner/glibtransformer.py: Also try squashing
2646 underscores from namespace, fixes webkit_web_view_new.
2648 2008-08-21 Colin Walters <walters@verbum.org>
2650 * giscanner/glibtransformer.py: More ctor work,
2651 avoid having gtk_window_group_new end up under
2654 2008-08-21 Colin Walters <walters@verbum.org>
2656 * giscanner/glibtransformer.py: Much simpler approach
2657 of mapping uscored names to classes.
2658 * giscanner/utils.py: Remove unnecessary function.
2660 2008-08-21 Johan Dahlin <johan@gnome.org>
2662 * girepository/girepository.c (g_irepository_require):
2663 Plug memory leak and avoid using freed memory.
2664 Resolve the whole module path, here as well.
2666 2008-08-21 Colin Walters <walters@verbum.org>
2668 * giscanner/glibtransformer.py: Look up all permutations
2669 of class names when scanning methods/ctors based on
2670 the prefix instead of using the return value. This
2671 associates gtk_window_new with the right class.
2673 2008-08-21 Colin Walters <walters@verbum.org>
2675 * girepository/girmodule.c (g_ir_module_build_typelib):
2676 Revert change to increment header_size; we do that in
2679 2008-08-21 Colin Walters <walters@verbum.org>
2681 * girepository/girnode.c (write_string): Tweak to
2682 use UINT instead of INT. Not likely to matter.
2683 * girepository/girmodule.c (g_ir_module_build_typelib):
2684 Add to header_offset as well for header strings
2685 to match what write_string does.
2686 * girepository/gtypelib.c: Replace is_name with
2687 validate_name, which more strongly validates and
2688 handles errors in a better way. Update all callers.
2689 * giscanner/glibtransformer.py: Handle constructors
2692 2008-08-21 Johan Dahlin <johan@gnome.org>
2694 * gir/Makefile.am (typelibs_DATA): Build and
2695 install the Gio.typelib too
2697 * girepository/gtypelib.c (_g_typelib_init):
2698 Use g_module_build_path to resolve the shlib name
2700 2008-08-21 Colin Walters <walters@verbum.org>
2702 * gir/Makefile.am: CLEANFILES typelibs too.
2704 2008-08-21 Johan Dahlin <johan@gnome.org>
2706 * giscanner/glibtransformer.py:
2707 Do not send .la files through find_library.
2709 2008-08-21 Colin Walters <walters@verbum.org>
2711 * girepository/girparser.c (g_irepository_require):
2712 Fix one small leak in error case.
2714 2008-08-21 Johan Dahlin <johan@gnome.org>
2717 Parse glibconfig.h as well and install the compiled
2720 2008-08-21 Johan Dahlin <johan@gnome.org>
2723 * giscanner/glibtransformer.py:
2724 * tools/g-ir-scanner:
2725 Do not hard-core library names in the Makefile, reuse
2726 ctypes find_library instead.
2728 2008-08-21 Johan Dahlin <johan@gnome.org>
2730 * girepository/girparser.c (resolve_aliases):
2731 Remove compilation warnings
2733 2008-08-21 Johan Dahlin <johan@gnome.org>
2735 * girepository/girepository.c (g_irepository_require):
2736 Rewrap and fix double free bug by leaking a bit.
2738 2008-08-20 Colin Walters <walters@verbum.org>
2740 * girepository/girepository.c: Add new function
2741 g_irepository_get_typelib_path which tells
2742 us from where we loaded a namespace.
2744 2008-08-20 Colin Walters <walters@verbum.org>
2746 * tests/scanner/*-expected.gir: Adjust for
2747 added shared-library.
2748 * giscanner/giwriter.py: Make pylint happy.
2750 2008-08-20 Colin Walters <walters@verbum.org>
2752 * girepository/girmodule.c (g_ir_module_build_typelib):
2753 Calculate size correctly, avoid use-after-free.
2755 2008-08-20 Colin Walters <walters@verbum.org>
2757 * girepository/girepository.c: Remove
2758 g_irepository_register_file in favor of
2759 g_irepository_require. There are two
2760 possible deployment scenarios for typelibs:
2761 First, separate in $DATADIR/gitypelibs/. Second,
2762 they may be embedded in shlibs. However since
2763 the first is now the normal case, the API is
2764 optimized around it.
2766 Refactor internals to look up typelibs for
2767 namespaces just-in-time, but we expect
2768 consumers to call g_irepository_require.
2770 Also, add some docs. No one has died from that
2772 * gir/Makefile.am: Need --library for glib.
2773 * giscanner/girwriter.py: Write out shared-library.
2774 * tools/g-ir-writer: Take the first --library
2775 argument as the target of shared-library. In
2776 the future we should make this nicer with pkg-config
2779 2008-08-20 Colin Walters <walters@verbum.org>
2781 * girepository/girparser.py: And parse them.
2783 2008-08-20 Johan Dahlin <johan@gnome.org>
2785 * giscanner/glibast.py: Add gshort/gushort types
2787 2008-08-20 Colin Walters <walters@verbum.org>
2789 * gir/Makefile.am: Rename .gir files using GI namespace.
2790 * girepository/girepository.c: Use XDG_DATA_DIRS for
2791 looking up typelibs. Also typelibs are now suffixed
2793 * tests/invoke/Makefile.am: Only use metadata.
2794 * girepository/Makefile.am: Remove unnecessary include.
2795 * tests/scanner/Makefile.am: Update using GI namespaces
2796 for scanner includes.
2798 2008-08-20 Colin Walters <walters@verbum.org>
2800 * girepository/transformer.py: Suppress aliases whose
2802 * girepository/ast.py: Define some more aliases.
2804 2008-08-20 Colin Walters <walters@verbum.org>
2806 * girepository/girparser.c: Avoid alias infloops.
2808 2008-08-20 Colin Walters <walters@verbum.org>
2810 * tests/scanner/foo-expected.gir: Fix expected list type.
2812 2008-08-20 Johan Dahlin <johan@gnome.org>
2814 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2815 Add a workaround for #548689.
2816 We can now compile gtk!
2818 2008-08-20 Colin Walters <walters@verbum.org>
2820 * giscanner/glibtransformer.py: Try to look up
2821 aliases using the c:type too.
2823 2008-08-20 Colin Walters <walters@verbum.org>
2825 * girepository/girparser.c: Parse union fields.
2827 2008-08-20 Johan Dahlin <johan@gnome.org>
2829 * giscanner/ast.py: Make time_t an alias for long
2831 * gir/gio-2.0-good.gir:
2832 * gir/glib-2.0-good.gir:
2833 * gir/gobject-2.0-good.gir:
2835 * giscanner/glibtransformer.py:
2836 Do not delete Class structures, we need them in gdk/gtk.
2837 * tests/scanner/drawable-expected.gir:
2838 * tests/scanner/foo-expected.gir:
2839 * tests/scanner/utility-expected.gir:
2842 2008-08-20 Johan Dahlin <johan@gnome.org>
2844 * tests/scanner/Makefile.am:
2845 * tests/scanner/annotation-expected.gir:
2846 * tests/scanner/annotation.c (annotation_object_class_init),
2847 (annotation_object_init), (annotation_object_method),
2848 (annotation_object_in), (annotation_object_out),
2849 (annotation_object_inout), (annotation_object_inout2),
2850 (annotation_object_inout3), (annotation_object_calleeowns),
2851 (annotation_object_calleesowns), (annotation_object_get_strings),
2852 (annotation_object_with_voidp), (annotation_object_get_objects),
2853 (annotation_object_create_object), (annotation_object_allow_none):
2854 * tests/scanner/annotation.h:
2855 * tests/scanner/foo-expected.gir:
2856 * tests/scanner/foo.c:
2857 * tests/scanner/foo.h:
2858 Split out annotation tests out of foo
2860 2008-08-20 Johan Dahlin <johan@gnome.org>
2862 * tests/scanner/Foo-expected.gir:
2863 * tests/scanner/Makefile.am:
2864 * tests/scanner/foo-expected.gir:
2865 * tests/scanner/foo-object.h:
2866 * tests/scanner/foo.c:
2867 Foo->foo, foo-object.h -> foo.h
2869 2008-08-20 Johan Dahlin <johan@gnome.org>
2871 * tests/scanner/Foo-expected.gir:
2872 * tests/scanner/Makefile.am:
2873 * tests/scanner/drawable-expected.gir:
2874 * tests/scanner/drawable.c (test_drawable_class_init),
2875 (test_drawable_init):
2876 * tests/scanner/drawable.h:
2877 * tests/scanner/foo-object.h:
2878 * tests/scanner/foo.c (foo_boxed_method):
2879 Move the drawable parts out of Foo to its own test.
2881 2008-08-20 Johan Dahlin <johan@gnome.org>
2883 * tests/scanner/Foo-expected.gir:
2884 * tests/scanner/foo-object.h:
2885 * tests/scanner/foo.c (foo_drawable_class_init),
2886 (foo_drawable_init):
2887 Add a based on GdkDrawable which generates
2890 2008-08-19 Colin Walters <walters@verbum.org>
2892 * giscanner/transformer.py: Don't try
2893 to strip prefix before namespace.
2895 2008-08-19 Johan Dahlin <johan@gnome.org>
2897 * giscanner/transformer.py:
2898 * tests/scanner/Foo-expected.gir:
2899 * tests/scanner/foo-object.h:
2900 Add support for typedef void foo type of
2903 2008-08-19 Johan Dahlin <johan@gnome.org>
2906 * giscanner/girwriter.py:
2907 * giscanner/glibtransformer.py:
2908 * giscanner/transformer.py:
2909 * tests/scanner/Foo-expected.gir:
2910 Add basic support for union, base the code much
2911 on Struct. Add a testcase.
2913 2008-08-19 Johan Dahlin <johan@gnome.org>
2915 * tests/scanner/Foo-expected.gir:
2916 * tests/scanner/foo-object.h:
2917 Add a union testcase which the compiler currently
2920 2008-08-19 Johan Dahlin <johan@gnome.org>
2922 * gobject-introspection-1.0.pc.in:
2923 Add a g_ir_compiler variable
2925 2008-08-19 Colin Walters <walters@verbum.org>
2927 * giscanner/ast.py: Rework types to be more closely
2929 * giscanner/girparser.py: Parse more bits.
2930 * giscanner/girwriter.py: Write sequences in a new
2931 way that specifies container type.
2932 * giscanner/glibast.py: Adjust for ast.py changes,
2933 add 'ctype' property to GLibObject and GLibInterface
2934 so we can look things up by it later.
2935 * gicanner/transformer.py: Names is new class holding
2936 the various namespaces we manage. Do not confuse
2937 with Namespace which is toplevel XML node effectively.
2938 Rework all type resolution to go through
2939 _resolve_type_name_1.
2940 * giscanner/glibtransformer.py: Raise UnknownTypeError
2941 instead of ValueError for cleanliness. Add Unresolved
2942 class to mark types whose parent we haven't seen yet.
2943 Use new Names object from transformer.py.
2944 Correctly look up parent=.
2945 Fix type validation to handle sequences.
2946 * tests/scanner/Foo-expected.gir: Update for sequence
2947 work, int instead of int32.
2948 * tools/g-ir-scanner: Add --noclosure option
2949 * gir/Makefile.am: Use --noclosure by default for
2952 2008-08-18 Johan Dahlin <johan@gnome.org>
2954 * gir/gio-2.0-good.gir:
2955 * gir/glib-2.0-good.gir:
2956 * gir/gobject-2.0-good.gir:
2959 2008-08-18 Johan Dahlin <johan@gnome.org>
2962 * giscanner/girparser.py:
2963 * giscanner/girwriter.py:
2964 * giscanner/glibast.py:
2965 * giscanner/glibtransformer.py:
2966 * giscanner/transformer.py:
2967 * tests/scanner/Foo-expected.gir:
2968 * tests/scanner/foo-object.h:
2969 * tests/scanner/utility-expected.gir:
2970 * tests/scanner/utility.h:
2971 Redo type resolving and validation.
2972 Add a couple of new tests.
2973 Patch mostly written by Colin.
2975 2008-08-18 Johan Dahlin <johan@gnome.org>
2978 * giscanner/girparser.py:
2980 * giscanner/transformer.py:
2981 Improve enum parsing for enums without a GType.
2982 Make flags/enum references to other girs work
2983 * giscanner/utils.py:
2985 * tests/scanner/Makefile.am:
2986 * tests/scanner/foo-object.h:
2987 * tests/scanner/utility-expected.gir:
2988 * tests/scanner/utility.h:
2989 Add a new test for external enum references
2991 2008-08-18 Johan Dahlin <johan@gnome.org>
2993 * docs/global-module-registry.txt: Update
2995 * tests/array.gir: Update with new type proposal
2997 * girepository/girepository.c (g_type_tag_to_string):
2998 * girepository/girepository.h:
2999 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3001 * girepository/girnode.h:
3002 Make enum serializing functions public. Clean up some whitespace.
3004 2008-08-17 Johan Dahlin <johan@gnome.org>
3006 * docs/global-module-registry.txt:
3007 Add a document for an on disk module registry format
3009 2008-08-17 Johan Dahlin <johan@gnome.org>
3012 * gir/gio-2.0-good.gir:
3015 2008-08-17 Johan Dahlin <johan@gnome.org>
3018 * gir/glib-2.0-good.gir:
3019 * gir/gobject-2.0-good.gir:
3020 * giscanner/cgobject.py:
3021 * giscanner/glibtransformer.py:
3022 Regenerate GObject & GType.
3023 Avoid warnings when generating gobject-2.0.gir.
3024 Introspect a little more, and skip *_get_type functions.
3026 2008-08-17 Colin Walters <walters@verbum.org>
3028 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3029 Rename to -good, always generate during build.
3030 * gir/Makefile.am: Ensure .gir files dep on
3031 all scanner sources.
3032 * Makefile.am: Switch build order to ensure
3033 the scanner is ready before we do gir/.
3034 * tools/g-ir-scanner: Look for .git too.
3036 2008-08-17 Johan Dahlin <johan@gnome.org>
3038 * girepository/gtypelib.c (validate_enum_blob):
3039 * giscanner/glibtransformer.py:
3040 * giscanner/transformer.py:
3041 Remove resolve_possible_typedefs, it was unused.
3042 Allow multiple enum values of the sample value in an enum,
3043 since it's actually pretty common.
3044 Register enums so they can be resolved too.
3046 2008-08-16 Johan Dahlin <johan@gnome.org>
3048 * giscanner/girparser.py:
3049 Parse enumeration/bitfield.
3051 2008-08-16 Johan Dahlin <johan@gnome.org>
3053 * giscanner/girparser.py:
3056 2008-08-16 Johan Dahlin <johan@gnome.org>
3058 * giscanner/glibtransformer.py:
3059 Resolve type names for alias targets
3060 * giscanner/transformer.py:
3061 Skip FILE* parameters fow now
3063 2008-08-16 Johan Dahlin <johan@gnome.org>
3066 * gir/gobject-2.0.gir:
3069 * tests/scanner/Makefile.am:
3072 2008-08-15 Colin Walters <walters@verbum.org>
3074 * giscanner/glibtransformer.py: Explicitly construct
3075 new list, since we're deleting as we iterate.
3076 Don't delete all structures which end in Class; just
3077 ones which have a paired GObject.
3078 Fix printing of type warning.
3079 * giscanner/transformer.py: Make strip_namespace_object
3080 be the identity function if it doesn't match the
3083 2008-08-15 Colin Walters <walters@verbum.org>
3085 * giscanner/cgobject.py: Define yet more argument
3086 prototypes; fix prototype for g_type_fundamental.
3088 2008-08-14 Johan Dahlin <johan@gnome.org>
3090 * tests/Makefile.am:
3091 * tests/constant.gir:
3092 * tests/gobject.gir:
3094 * tools/generate.c (write_struct_info):
3095 Fix generator for constant/gobject/struct
3097 2008-08-14 Johan Dahlin <johan@gnome.org>
3099 * tests/Makefile.am:
3101 * tools/generate.c (write_enum_info):
3102 Fix generation of enum/bitfields
3104 2008-08-14 Johan Dahlin <johan@gnome.org>
3106 * girepository/girparser.c (start_field), (start_constant),
3107 (start_type), (end_element_handler):
3108 Clear up constant parsing
3113 * tools/generate.c (write_callable_info), (write_function_info),
3114 (write_callback_info), (write_constant_info), (write_signal_info),
3115 (write_vfunc_info), (write_property_info), (write_object_info),
3116 (write_interface_info):
3117 Constants/Signals are handled now.
3119 2008-08-14 Johan Dahlin <johan@gnome.org>
3121 * girepository/girparser.c (start_type):
3122 Don't require c:type.
3123 * tests/Makefile.am:
3126 Update, remove parts we don't support yet
3127 * tests/roundtrips.sh:
3129 * tools/generate.c (write_type_info), (write_field_info),
3130 (write_callable_info), (write_struct_info):
3131 Make it emit proper gir.
3133 2008-08-14 Johan Dahlin <johan@gnome.org>
3135 * giscanner/transformer.py:
3136 New internal function for adding a new node.
3138 2008-08-14 Johan Dahlin <johan@gnome.org>
3141 Define an internal _H_ variable so we skip parsing both
3142 i18n headers, only one is needed.
3144 Add the glib-2.0.gir too.
3145 * giscanner/glibast.py:
3146 Add gconstpointer as an alias for ANY
3147 * giscanner/transformer.py:
3148 Do not lower case enumeration names per se.
3149 Skip functions which has parameters called 'va_list'
3151 2008-08-14 Colin Walters <walters@verbum.org>
3153 * giscanner/transformer.py: Comment data structures.
3154 Also squash pointers in resolve_type_name to correspond
3155 with what we do for params.
3156 * giscanner/glibtransformer.py: Print warnings in more
3157 situations. Rework checks for method/constructor to
3158 look up in our GType database instead of just checking
3159 for *. Avoid generating <record> for GObject which
3160 duplicate the <class>.
3161 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3164 2008-08-14 Johan Dahlin <johan@gnome.org>
3166 * giscanner/girwriter.py:
3167 * giscanner/glibast.py:
3168 * giscanner/glibtransformer.py:
3169 * giscanner/transformer.py:
3171 * tests/Makefile.am:
3172 Add pyflakes.py and run it in make check.
3173 Update the source code to fix the errors reported by
3176 2008-08-14 Johan Dahlin <johan@gnome.org>
3179 * giscanner/girparser.py:
3180 * giscanner/glibast.py:
3181 * giscanner/glibtransformer.py:
3182 Refactor the parser a bit.
3183 Add parent type to interfaces and update callsites.
3185 2008-08-14 Johan Dahlin <johan@gnome.org>
3187 * giscanner/glibtransformer.py:
3188 * giscanner/utils.py:
3189 Refactor a bit, avoid isinstance and add a method
3190 for each type we parse.
3192 2008-08-14 Johan Dahlin <johan@gnome.org>
3195 * giscanner/girparser.py:
3196 * giscanner/glibtransformer.py:
3197 * tests/Makefile.am:
3198 Run pep8.py in make check, fix old errors.
3200 2008-08-13 Colin Walters <walters@verbum.org>
3202 * giscanner/girparser.py: Parse records.
3204 2008-08-13 Colin Walters <walters@verbum.org>
3206 * gir/Makefile.am: Install again.
3207 * gir/gobject-2.0.gir: Add some more bits.
3209 2008-08-13 Colin Walters <walters@verbum.org>
3211 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3212 * giscanner/girparser.py: Handle aliases.
3213 * giscanner/transformer.py: Record aliases. Make resolver
3214 functions public; we now call into these explicitly from
3215 glibtransformer. Handle resolving aliases.
3216 * giscanner/glibtransformer.py: Separate our internal namespace
3217 from included ones. Call up into transformer's resolver functions.
3219 2008-08-13 Johan Dahlin <johan@gnome.org>
3221 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3222 * girepository/girparser.c (start_class):
3223 * giscanner/glibtransformer.py:
3224 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3226 2008-08-13 Johan Dahlin <johan@gnome.org>
3228 * giscanner/cgobject.py:
3229 Register GInitiallyUnowned
3230 * giscanner/girwriter.py:
3231 * giscanner/glibtransformer.py:
3232 Special case GObject/GInitially owned as they are a bit special to use.
3234 2008-08-13 Colin Walters <walters@verbum.org>
3236 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3237 Object is in GObject namespace.
3239 2008-08-13 Colin Walters <walters@verbum.org>
3241 * giscanner/girparser.py: Fix processing of functions
3244 2008-08-13 Colin Walters <walters@verbum.org>
3246 * giscanner/girparser.py: Parse more than just <class.
3247 * giscanner/glibtransformer.py: Put aliases in a separate
3248 data structure since their name is not canonicall.
3249 * giscanner/transformer.py: Handle resolving type names
3252 2008-08-13 Johan Dahlin <johan@gnome.org>
3254 * tools/g-ir-scanner:
3255 Allow multiple libraries
3256 * giscanner/glibtransformer.py:
3257 Rename load_library to add_library, traverse over all libraries
3258 when trying to resolve a function
3260 2008-08-12 Colin Walters <walters@verbum.org>
3262 * giscanner/transformer.py: Record typedefs as <alias> elements.
3263 Also attempt to look up types in external namespaces.
3264 * giscanner/girwriter.py: Write them.
3265 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3266 checks. Resolve interface methods and properties.
3267 * tests/scanner/foo-object.h: Add a method with typedef.
3268 * tests/scanner/Foo-expected.gir: Update.
3269 * girepository/girnode.c: Debug tweaks.
3270 * girepository/girparser.c: Make a first pass through the XML where we
3271 record all the aliases. This lets us resolve them as we go through the
3273 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3274 from gir-repository.
3276 2008-08-12 Colin Walters <walters@verbum.org>
3278 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3279 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3281 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3283 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3285 2008-08-12 Colin Walters <walters@verbum.org>
3287 * giscanner/glibtransformer.py: Also transform object properties.
3289 2008-08-12 Colin Walters <walters@verbum.org>
3291 * giscanner/glibtransformer.py: Also transform callbacks
3292 and structure field types.
3293 * tests/scanner/Fooe-expected.gir: Update to expect correct
3294 names for callbacks and structs.
3296 2008-08-12 Colin Walters <walters@verbum.org>
3298 * girepository/girparser.c: Handle 'any'.
3299 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3300 Add test for void *.
3302 2008-08-12 Colin Walters <walters@verbum.org>
3304 * giscanner/glibtransformer.py: We need to do type
3305 resolution in a second pass after we've seen all the
3306 enums, records, etc.
3308 2008-08-12 Colin Walters <walters@verbum.org>
3310 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3311 Add enum return value.
3312 * giscanner/glibtransformer.py: Transform function return types
3315 2008-08-12 Colin Walters <walters@verbum.org>
3317 * tests/scanner/Makefile.am: Dep .gir files on scanner
3318 sources too. Also remove @ so we see scanner invocations.
3320 2008-08-12 Colin Walters <walters@verbum.org>
3322 * girepository/girparser.c, girepository/gtypelib.c,
3323 girepository/gtypelib.h, girepository/girnode.c:
3324 Remove usage of (GAPI-oriented) TypeTag in favor of
3325 GITypeTag from girepository.h.
3327 2008-08-10 Colin Walters <walters@verbum.org>
3329 * tests/roundtrips.sh: Use the correct tests.
3331 2008-08-10 Colin Walters <walters@verbum.org>
3333 * giscanner/cgobject.py: Declare/wrap a few more functions.
3334 Fix parameter types for g_object_new and g_type_fundamental.
3336 2008-08-10 Colin Walters <walters@verbum.org>
3338 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3339 us to declare types for both return value and parameters. The
3340 ctypes default of 'int' is bad because it hides 32/64 bit
3341 problems. Convert all existing functions to use it.
3343 2008-08-09 Johan Dahlin <johan@gnome.org>
3345 * giscanner/__init__.py:
3347 * giscanner/cgobject.py:
3348 * giscanner/gidlparser.py:
3349 * giscanner/gidlwriter.py:
3350 * giscanner/girparser.py:
3351 * giscanner/girwriter.py:
3352 * giscanner/glibast.py:
3353 * giscanner/glibtransformer.py:
3354 * giscanner/odict.py:
3355 * giscanner/sourcescanner.py:
3356 * giscanner/transformer.py:
3357 * giscanner/utils.py:
3358 * giscanner/xmlwriter.py:
3359 * tools/g-ir-scanner:
3363 2008-08-09 Johan Dahlin <johan@gnome.org>
3366 * relaxng/c-types.xml:
3367 * relaxng/g-types.xml:
3368 * relaxng/relaxng.rng:
3370 Remove outdated relaxng schemas.
3372 2008-08-09 Johan Dahlin <johan@gnome.org>
3375 Rename metadata to typelib in variable names,
3378 2008-08-09 Johan Dahlin <johan@gnome.org>
3382 Remove old C scanner, which got rewritten in python.
3384 2008-08-09 Johan Dahlin <johan@gnome.org>
3386 * girepository/Makefile.am:
3387 * tools/Makefile.am:
3388 * tools/girmodule.c:
3389 * tools/girmodule.h:
3392 * tools/girparser.c:
3393 * tools/girparser.h:
3394 * tools/girwriter.c:
3395 * tools/girwriter.h:
3396 Move shared *.[ch] files to girepository from tools
3398 2008-08-09 Johan Dahlin <johan@gnome.org>
3400 * tests/Makefile.am:
3403 * tests/constant.test:
3405 * tests/errors.test:
3406 * tests/function.test:
3407 * tests/gobject.test:
3408 * tests/interface.test:
3409 * tests/object.test:
3410 * tests/struct.test:
3415 Rename *.test to *.gir
3417 2008-08-09 Johan Dahlin <johan@gnome.org>
3420 * tests/Makefile.am:
3421 * tests/parser/Foo-expected.gir:
3422 * tests/parser/Makefile.am:
3423 * tests/parser/foo-object.h:
3424 * tests/parser/foo.c:
3425 * tests/parser/utility-expected.gir:
3426 * tests/parser/utility.c:
3427 * tests/parser/utility.h:
3428 * tests/scanner/Makefile.am:
3429 Rename tests/parser to test/scanner
3431 2008-08-08 Colin Walters <walters@verbum.org>
3433 * tests/roundtrips.sh: Use local .gir files again.
3435 2008-08-08 Colin Walters <walters@verbum.org>
3437 * tests/invoke/Makefile.am: .gir file depends on libtool
3440 2008-08-08 Colin Walters <walters@verbum.org>
3442 * tools/girnode.c: Pass through parent node so we can
3443 print the node whose child is NULL, if that occurs.
3445 2008-08-08 Johan Dahlin <johan@gnome.org>
3447 * tests/Makefile.am:
3448 Disable roundtrip tests which are not yet working
3449 * tests/invoke/testfns.gir:
3452 2008-08-08 Johan Dahlin <johan@gnome.org>
3454 * giscanner/girwriter.py:
3456 * giscanner/glibast.py:
3457 * giscanner/glibtransformer.py:
3458 Swap order of members, to keep it consistent with
3461 2008-08-08 Johan Dahlin <johan@gnome.org>
3463 * girepository/gtypelib.c (validate_header):
3464 * girepository/gtypelib.h:
3466 * giscanner/girwriter.py:
3467 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3468 (gi_source_symbol_unref):
3471 * tests/constant.test:
3473 * tests/errors.test:
3474 * tests/function.test:
3475 * tests/gobject.test:
3476 * tests/interface.test:
3477 * tests/invoke/Makefile.am:
3478 * tests/invoke/testfns.xml:
3479 * tests/object.test:
3480 * tests/parser/Makefile.am:
3481 * tests/roundtrips.sh:
3482 * tests/struct.test:
3487 * tools/Makefile.am:
3488 * tools/compiler.c (main):
3489 * tools/generate.c (write_callable_info), (write_function_info),
3491 * tools/gidlmodule.c:
3492 * tools/gidlmodule.h:
3495 * tools/gidlparser.c:
3496 * tools/gidlparser.h:
3497 * tools/gidlwriter.c:
3498 * tools/gidlwriter.h:
3499 * tools/scanner.c (create_node_from_gtype),
3500 (create_node_from_ctype), (g_igenerator_process_properties),
3501 (g_igenerator_process_signals), (g_igenerator_create_object),
3502 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3503 (g_igenerator_create_enum), (g_igenerator_create_flags),
3504 (g_igenerator_process_function_symbol),
3505 (g_igenerator_process_unregistered_struct_typedef),
3506 (g_igenerator_process_struct_typedef),
3507 (g_igenerator_process_union_typedef),
3508 (g_igenerator_process_enum_typedef),
3509 (g_igenerator_process_function_typedef),
3510 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3511 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3512 Merge in the gir-compiler branch.
3513 Thanks to Philip and Colin for their help.
3515 2008-07-26 Colin Walters <walters@verbum.org>
3517 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3518 and g-idl-generate to go along with how we're changing this
3519 module to be installed.
3520 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3522 2008-07-24 Colin Walters <walters@verbum.org>
3524 * girepository/girepository.c (g_irepository_register): Add
3525 environment variable G_IREPOSITORY_VERBOSE so we can print
3526 out what we're doing.
3527 * girepository/girepository.c (g_irepository_register_file):
3528 Add GError error message to g_debug call.
3530 2008-07-08 Jürg Billeter <j@bitron.ch>
3532 * giscanner/glibast.py:
3536 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3538 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3541 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3544 * giscanner/girwriter.py:
3545 * giscanner/transformer.py:
3546 * tests/parser/Foo-expected.gir:
3547 * tests/parser/foo-object.h:
3548 * tests/parser/foo.c (foo_object_allow_none):
3549 Add support for gtk-doc annotations for allow-none.
3552 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3555 * giscanner/girwriter.py:
3556 * giscanner/glibast.py:
3557 * giscanner/glibtransformer.py:
3558 * giscanner/transformer.py:
3559 * tests/parser/Foo-expected.gir:
3560 Start using abstract type instead of the raw C types.
3561 Register a bunch of glib types we care about.
3563 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3568 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3570 * girepository/girepository.c:
3571 * girepository/gtypelib.c:
3572 * girepository/ginfo.c:
3573 * girepository/ginvoke.c:
3574 * girepository/girepository.h:
3575 * girepository/gtypelib.h:
3576 * girepository/gmetadata.c:
3577 * girepository/Makefile.am:
3578 * girepository/gmetadata.h:
3580 * tools/gidlmodule.c:
3583 * tools/gidlmodule.h:
3584 * tools/gidlparser.c:
3586 Renamed GMetadata to GTypelib
3588 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3590 * giscanner/xmlwriter.py:
3591 Improve line wrapping when > 79 charaters
3593 2008-06-05 Jürg Billeter <j@bitron.ch>
3596 * giscanner/girwriter.py:
3597 * giscanner/transformer.py:
3598 Use <type> element for field types
3599 * tests/parser/Foo-expected.gir:
3602 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3604 * giscanner/glibtransformer.py:
3605 Fix a bug which prevented GdkEvent from being generated
3607 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3609 * giscanner/Makefile.am:
3611 * giscanner/girwriter.py:
3612 * giscanner/glibast.py:
3613 * giscanner/glibtransformer.py:
3614 * giscanner/transformer.py:
3615 * giscanner/utils.py:
3616 * tests/parser/Foo-expected.gir:
3617 Improve enum member parsing and introspection
3619 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3621 * giscanner/scannerparser.y:
3622 * giscanner/sourcescanner.h:
3623 * giscanner/sourcescanner.py:
3624 Add a new source type enum for member.
3625 Use __repr__ for improved debugging
3626 * giscanner/girparser.py:
3628 * giscanner/transformer.py:
3629 Improve parsing of struct members.
3630 * tests/parser/foo-object.h:
3633 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3635 * giscanner/xmlwriter.py:
3636 Improve error reporting when trying to quote None.
3637 * giscanner/girparser.py:
3638 Do not print warnings when including more complete .gir files
3639 * giscanner/girwriter.py:
3640 Do not require a name for parameters, add a todo for singletons
3641 * giscanner/glibtransformer.py:
3642 Refactor the way structs are done, add a couple of hacks to allow
3644 * giscanner/transformer.py:
3645 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3646 * gobject-introspection-1.0.pc.in:
3647 Export girdir, so we can access gobject-2.0.gir from outside
3649 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3651 * tools/g-ir-scanner:
3652 * tests/parser/Makefile.am:
3653 Update sys.path before running the parser so we don't have
3654 to setup PYTHONPATH ourselves.
3658 * girepository/Makefile.am:
3659 * giscanner/transformer.py:
3660 * gobject-introspection-1.0.pc.in:
3661 * gobject-introspection.pc.in:
3662 * tools/Makefile.am:
3664 Rename pkg-config name to gobject-introspection-1.0,
3665 Do not installed anything which is not using the gir format.
3666 Disable compililation the old C scanner, but still keep the source
3667 until all the remaning functionallity has been ported.
3669 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3671 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3672 a crash when symbol->indent is NULL.
3674 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3675 a function to convert a CTYPE symbol to a string
3677 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3680 * giscanner/girwriter.py:
3681 * giscanner/giscannermodule.c
3682 (pygi_source_scanner_append_filename),
3683 (pygi_source_scanner_parse_file):
3684 * giscanner/glibtransformer.py:
3685 * giscanner/sourcescanner.py:
3686 Revert back to using temporary files to send in headers.
3687 Allow Functions to be passed in as callbacks, add a couple
3688 of try/excepts missing features.
3689 We can now scan pango
3691 2008-05-08 Johan Dahlin <johan@gnome.org>
3693 * giscanner/glibtransformer.py:
3694 * giscanner/transformer.py:
3695 Move namespace stripping glibtransformer->transformer
3697 2008-05-08 Johan Dahlin <johan@gnome.org>
3700 * giscanner/girwriter.py:
3701 * giscanner/glibtransformer.py:
3702 * giscanner/transformer.py:
3703 * tools/g-ir-scanner:
3704 Introduce a namespace ast node
3706 2008-05-05 Johan Dahlin <johan@gnome.org>
3708 * giscanner/__init__.py:
3709 * giscanner/sourcescanner.py:
3710 * giscanner/transformer.py:
3711 Move sourcescanner symbols to the sourcescanner module, instead
3712 of in the global __init__ namespace.
3714 2008-05-03 Johan Dahlin <johan@gnome.org>
3716 * giscanner/glibtransformer.py:
3717 * tools/g-ir-scanner:
3718 Handle missing parameters better, allow - and + in .la dlname
3721 2008-05-03 Johan Dahlin <johan@gnome.org>
3723 * giscanner/__init__.py:
3725 * giscanner/girwriter.py:
3726 * giscanner/glibtransformer.py:
3727 * giscanner/transformer.py:
3728 Parse struct fields properly, improve debugging.
3730 2008-04-29 Johan Dahlin <johan@gnome.org>
3733 * giscanner/girwriter.py:
3734 * giscanner/transformer.py:
3735 * tests/parser/Foo-expected.gir:
3737 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3739 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3742 * docs/g-ir-scanner.1:
3743 * metadata-annotations-proposal.txt:
3744 * metadata-format.txt:
3745 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3747 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3749 * giscanner/girwriter.py:
3750 * giscanner/glibtransformer.py:
3751 * giscanner/transformer.py:
3752 * giscanner/xmlwriter.py:
3753 * tests/parser/Foo-expected.gir:
3754 * tests/parser/foo-object.h:
3755 Write record/structs to gir file too. Add a couple of tests,
3756 fix an off by one error in xmlwriter.py.
3758 2008-04-28 Johan Dahlin <johan@gnome.org>
3760 * giscanner/xmlwriter.py: Calculate the line length properly,
3761 include the provided extra indentation in the calculation, really.
3763 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3766 * giscanner/glibast.py:
3767 * giscanner/glibtransformer.py:
3768 * giscanner/transformer.py:
3769 * tools/g-ir-scanner:
3770 Add a --strip-prefix and sort out confusion between names and symbols
3771 for functions and struct + derivaties.
3772 Refactor bootstrap of g-ir-scanner, so we can set options on
3773 Transformer() before parsing everything.
3775 2008-04-28 Johan Dahlin <johan@gnome.org>
3777 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3778 when scanning girepository.h
3780 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3781 a __GI_SCANNER__ when we run.
3783 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3786 * giscanner/girwriter.py:
3787 * giscanner/glibast.py:
3788 * giscanner/glibtransformer.py:
3789 * tests/parser/Foo-expected.gir:
3790 * tests/parser/utility-expected.gir:
3791 Rename most c:identifier to c:type. Add new ones to
3792 class/interface/enum/boxed.
3794 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3797 * giscanner/girwriter.py:
3798 * giscanner/glibtransformer.py:
3799 * tests/parser/Foo-expected.gidl:
3800 * tests/parser/Makefile.am:
3801 Move c:identifier from return-value to subchild type,
3802 as per Jürgs suggestion
3804 2008-04-28 Johan Dahlin <johan@gnome.org>
3806 * giscanner/girwriter.py:
3807 * tests/parser/Foo-expected.gir:
3808 Write property.type as a child node.
3810 2008-04-27 Johan Dahlin <johan@gnome.org>
3815 * gidl/gobject-2.0.gidl:
3817 * gir/gobject-2.0.gir:
3818 * tests/parser/Makefile.am:
3819 Replace the GObject gidl with a GObject gir.
3821 2008-04-27 Johan Dahlin <johan@gnome.org>
3823 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3826 * giscanner/xmlwriter.py:
3827 * tests/parser/Foo-expected.gir:
3828 Include indentation in line length calculation
3830 2008-04-27 Johan Dahlin <johan@gnome.org>
3832 * giscanner/girparser.py:
3833 Prettify NS parsing using elementtree.
3835 2008-04-27 Johan Dahlin <johan@gnome.org>
3838 * giscanner/Makefile.am:
3839 * giscanner/girparser.py:
3840 * giscanner/glibtransformer.py:
3841 * tests/parser/Foo-expected.gidl:
3842 * tests/parser/Foo-expected.gir:
3843 * tests/parser/Makefile.am:
3844 * tests/parser/utility-expected.gidl:
3845 * tests/parser/utility-expected.gir:
3846 * tools/g-ir-scanner:
3847 Switch over to GIR as the default format. Add a simple GIDL
3849 Update tests and fix simplify makefiles by depending
3850 on GNU make extensions.
3852 2008-04-27 Johan Dahlin <johan@gnome.org>
3854 * giscanner/xmlwriter.py:
3855 Wrap attributes for lines which are wider than 79 characters
3857 * giscanner/scannerlexer.l:
3858 Allow parenthesis in annotations
3861 * giscanner/gidlwriter.py:
3862 * giscanner/girwriter.py:
3863 * giscanner/glibtransformer.py:
3864 * giscanner/transformer.py:
3865 Add initial sequence support, including annotation.
3866 Refactor type handling a bit.
3868 2008-04-27 Johan Dahlin <johan@gnome.org>
3870 * tests/parser/Foo-expected.gidl:
3871 * tests/parser/foo-object.h:
3872 * tests/parser/foo.c (foo_object_class_init),
3873 (foo_object_get_strings), (foo_object_get_objects):
3874 Add two new functions to check sequence return values.
3875 Also fixes a compilation warning.
3877 2008-04-27 Johan Dahlin <johan@gnome.org>
3879 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3880 a compilation warning.
3882 * tools/Makefile.am (g_ir_scanner_SOURCES):
3883 g-ir-scanner has no sources.
3885 2008-04-25 Johan Dahlin <johan@gnome.org>
3887 * giscanner/Makefile.am:
3889 * giscanner/gidlparser.py:
3890 * giscanner/gidlwriter.py:
3891 * giscanner/girwriter.py:
3892 * giscanner/glibast.py:
3893 * giscanner/glibtransformer.py:
3894 * giscanner/transformer.py:
3895 Split out nodes to ast.py and glibast.py
3897 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3899 * giscanner/Makefile.am:
3900 * giscanner/gidlparser.py:
3901 * giscanner/gidlwriter.py:
3902 * giscanner/girwriter.py:
3903 * giscanner/glibtransformer.py:
3904 * giscanner/gobjecttreebuilder.py:
3905 * giscanner/transformer.py:
3906 * giscanner/treebuilder.py:
3907 * tools/g-ir-scanner:
3908 Rename treebuilder to transformer and
3909 gobjectreebuilder to glibtransformer.
3911 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3913 * giscanner/Makefile.am:
3914 * giscanner/__init__.py:
3915 * giscanner/cgobject.py:
3916 * giscanner/gidlparser.py:
3917 * giscanner/gidlwriter.py:
3918 * giscanner/girwriter.py:
3919 * giscanner/gobjecttreebuilder.py:
3920 * giscanner/odict.py:
3921 * giscanner/sourcescanner.py:
3922 * giscanner/treebuilder.py:
3923 * giscanner/xmlwriter.py:
3924 * tools/Makefile.am:
3925 * tools/g-ir-scanner:
3926 Add LGPLv2 license header and install all python files
3928 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3931 * giscanner/gidlwriter.py:
3932 * giscanner/giscannermodule.c (pygi_source_directive_new),
3933 (directive_get_options), (pygi_source_symbol_new),
3934 (symbol_get_base_type), (pygi_source_type_new),
3935 (type_get_base_type), (type_get_child_list),
3936 (pygi_source_scanner_get_symbols),
3937 (pygi_source_scanner_get_directives):
3938 * giscanner/gobjecttreebuilder.py:
3939 * giscanner/sourcescanner.py:
3940 * giscanner/treebuilder.py:
3941 * tests/parser/foo-object.h:
3942 Add support for virtual methods.
3943 Pair struct FooClass with struct Foo.
3944 Clean up the SourceScanner bindings a bit.
3945 Add a testcase for virtual methods.
3947 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3949 * giscanner/cgobject.py:
3950 * giscanner/gidlwriter.py:
3951 * giscanner/gobjecttreebuilder.py:
3952 Add support for signals
3954 * tests/parser/foo.c (foo_object_class_init):
3955 * Foo-expected.gidl:
3956 Add a signal and update the expected output.
3958 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3960 * giscanner/gidlwriter.py:
3961 * giscanner/girwriter.py:
3962 * giscanner/giscannermodule.c (directive_get_name),
3963 (directive_get_value), (directive_get_options),
3964 (symbol_get_directives), (symbol_set_directives),
3965 (pygi_source_scanner_parse_file),
3966 (pygi_source_scanner_lex_filename),
3967 (pygi_source_scanner_get_directives), (init_giscanner):
3968 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3969 * giscanner/sourcescanner.h:
3970 * giscanner/sourcescanner.py:
3971 * giscanner/treebuilder.py:
3972 * tools/g-ir-scanner:
3973 Add support for source/header annotations.
3975 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3977 * giscanner/gidlwriter.py:
3978 * giscanner/girwriter.py:
3979 * giscanner/gobjecttreebuilder.py:
3980 * giscanner/treebuilder.py:
3981 Add support for Callbacks
3983 2008-04-22 Havoc Pennington <hp@pobox.com>
3985 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3986 not in metadata->module, look for it in the global module, in case
3987 some other object or the app itself provides the symbol.
3989 2008-04-22 Havoc Pennington <hp@pobox.com>
3991 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3992 dlopening a library that is already in the main app, by checking
3993 whether one of the lib's symbols is already loaded.
3995 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3997 * tests/parser/Foo-expected.gidl:
3998 * tests/parser/foo-object.h:
4001 2008-04-22 Havoc Pennington <hp@pobox.com>
4003 * girepository/ginfo.c (g_interface_info_find_method):
4004 Use interface_blob_size not object_blob_size to compute offset.
4006 2008-04-22 Havoc Pennington <hp@pobox.com>
4008 * girepository/gmetadata.c (_g_metadata_init): remove
4009 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4010 (Glade and Clutter for example) rely on being loaded globally.
4012 2008-04-22 Havoc Pennington <hp@pobox.com>
4014 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4015 function to get the GType given a RegisteredTypeInfo
4017 2008-04-22 Johan Dahlin <johan@gnome.org>
4019 * COPYING: Add a LGPL license, to prevent automake to
4020 put in a copy of GPL here. Pointed out by Havoc.
4022 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4023 (g_type_info_is_pointer), (g_type_info_get_tag),
4024 (g_type_info_get_param_type), (g_type_info_get_interface),
4025 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4026 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4027 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4028 (g_object_info_get_interface), (g_object_info_get_field),
4029 (g_interface_info_get_prerequisite),
4030 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4031 * girepository/ginvoke.c (get_ffi_type):
4032 * girepository/girepository.h:
4033 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4034 (g_metadata_check_sanity), (validate_header),
4035 (validate_array_type_blob), (validate_iface_type_blob),
4036 (validate_param_type_blob), (validate_error_type_blob),
4037 (validate_type_blob), (validate_constant_blob),
4038 (validate_struct_blob), (validate_enum_blob):
4039 * girepository/gmetadata.h:
4040 * tests/Makefile.am:
4041 * tests/invoke/Makefile.am:
4042 * tests/invoke/invoke.c (main):
4043 * tests/roundtrips.sh:
4044 * tools/Makefile.am:
4045 * tools/compiler.c (format_output), (write_out_metadata), (main):
4046 * tools/generate.c (write_type_name), (write_type_info),
4047 (write_constant_value), (write_enum_info), (load_metadata), (main):
4048 * tools/gidlcompilercontext.c:
4049 * tools/gidlcompilercontext.h:
4050 * tools/gidlcompilerentrynode.c:
4051 * tools/gidlcompilerentrynode.h:
4052 * tools/gidlcompilertypenode.c:
4053 * tools/gidlcompilertypenode.h:
4054 * tools/gidlmodule.c (g_idl_module_build_metadata):
4055 * tools/gidlmodule.h:
4056 * tools/gidlnode.c (init_stats), (dump_stats),
4057 (g_idl_node_get_size), (g_idl_node_get_full_size),
4058 (g_idl_node_cmp), (g_idl_node_can_have_member),
4059 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4060 (parse_int_value), (parse_uint_value), (parse_float_value),
4061 (parse_boolean_value), (find_entry_node), (find_entry),
4062 (serialize_type), (g_idl_node_build_metadata), (write_string):
4064 * tools/gidlparser.c (parse_type_internal):
4065 * tools/quote-file.sh:
4066 Revert revisions 157,149-148,136-129 and 120.
4067 Move back to using g-idl-generate to generate the metadata and
4068 avoids dependency on a c compiler.
4070 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4072 * giscanner/girwriter.py:
4073 * tools/g-ir-scanner:
4074 Add an initial GIR writer and a --format option to g-ir-scanner
4076 2008-04-21 Johan Dahlin <johan@gnome.org>
4078 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4079 gobject-2.0 and raise ImportError if not found.
4081 * giscanner/gidlparser.py:
4082 * giscanner/gidlwriter.py:
4083 * giscanner/gobjecttreebuilder.py:
4084 * tools/g-ir-scanner:
4085 Add a --include argument to include types from other idls.
4086 Add a minimalistic GIDL parser (just objects for now)
4087 Implement resolving of external type references and use it to
4088 resolve parent types, argument types and return types.
4090 2008-04-21 Johan Dahlin <johan@gnome.org>
4092 * giscanner/gidlwriter.py:
4093 * giscanner/gobjecttreebuilder.py:
4094 * giscanner/treebuilder.py:
4095 Add support for properties.
4096 Refactor Class/Interface support a bit, to share more code and
4097 always initialize their method attribute to an empty list.
4099 2008-04-21 Johan Dahlin <johan@gnome.org>
4101 * giscanner/cgobject.py:
4102 Add a workaround for a glib bug interface introspection bug
4103 (object_interface_list_properties, object_class_list_properties):
4104 Cast the return value to GParamSpec.
4106 * tests/parser/Foo-expected.gidl: Update
4107 * tests/parser/foo.c: Add a string property
4109 * giscanner/gobjecttreebuilder.py:
4110 After stripping namespaces, remove the original
4111 item to avoid duplication (GtkButton struct and Button object)
4113 2008-04-21 Johan Dahlin <johan@gnome.org>
4115 * giscanner/gobjecttreebuilder.py:
4116 * giscanner/treebuilder.py:
4117 Strip namespaces before objects, so we'll export
4118 GtkButton as Button in the gtk namespace
4120 2008-04-21 Johan Dahlin <johan@gnome.org>
4122 * giscanner/gidlwriter.py:
4123 * giscanner/gobjecttreebuilder.py:
4124 * giscanner/treebuilder.py:
4125 Add constructors for object/boxed types.
4127 2008-04-21 Johan Dahlin <johan@gnome.org>
4129 * giscanner/gidlwriter.py:
4130 * giscanner/gobjecttreebuilder.py:
4131 Add support for boxed types
4133 2008-04-21 Johan Dahlin <johan@gnome.org>
4135 * giscanner/giscannermodule.c: Mark structures as const,
4136 wrap SourceType.const_string.
4138 * tests/parser/foo-object.h: Add a couple of constants.
4140 * giscanner/gidlwriter.py:
4141 * giscanner/gobjecttreebuilder.py:
4142 * giscanner/treebuilder.py:
4143 Add basic support for interfaces
4145 * tools/g-ir-scanner:
4146 Add -o/--output for writing to a file
4148 2008-04-21 Havoc Pennington <hp@redhat.com>
4150 * TODO: add some C API wishlist items I could think of quickly
4152 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4154 * giscanner/gidlwriter.py:
4155 * giscanner/xmlwriter.py:
4156 Add a simple api for writing tags which can be used
4157 with the new 'with statement' in python 2.5
4159 2008-04-21 Johan Dahlin <johan@gnome.org>
4161 * giscanner/gobjecttreebuilder.py:
4162 Strip namespace and object prefix from method names.
4164 2008-04-21 Johan Dahlin <johan@gnome.org>
4166 * tools/g-ir-scanner (main): Add --pkg option to pass in
4167 pkg-config modules to get cflags from.
4169 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4170 Avoid duplication, reuse function writer for methods.
4172 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4174 * giscanner/gidlwriter.py:
4175 * giscanner/gobjecttreebuilder.py:
4176 * giscanner/treebuilder.py:
4177 * tools/g-ir-scanner:
4178 Resolve libtool .la files.
4179 Strip name spaces for methods.
4180 Add function symbols
4182 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4184 * giscanner/cgobject.py:
4185 * giscanner/gidlwriter.py:
4186 * giscanner/gobjecttreebuilder.py:
4187 * giscanner/treebuilder.py:
4188 Add support for classes and methods
4190 2008-04-20 Johan Dahlin <johan@gnome.org>
4192 * giscanner/gidlwriter.py:
4193 * giscanner/gobjecttreebuilder.py:
4194 * giscanner/odict.py:
4195 Avoid conflicts, keep the output ordered similar to
4196 the order of the input.
4197 Add a simple ordered dictionary implemenation
4199 2008-04-19 Johan Dahlin <johan@gnome.org>
4201 * giscanner/cgobject.py:
4202 * giscanner/gidlwriter.py:
4203 * giscanner/gobjecttreebuilder.py:
4204 * tools/g-ir-scanner:
4205 Start introspecting get-type functions.
4206 Implement support for GLib/GFlags GTypes.
4207 Add a ctype based GObject binding.
4209 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4211 * giscanner/gidlwriter.py:
4212 * giscanner/xmlwriter.py:
4213 * tools/g-ir-scanner:
4214 Add a simplistic gidl writer, which can't do too much.
4216 2008-04-18 Johan Dahlin <johan@gnome.org>
4218 * giscanner/sourcescanner.py:
4219 * giscanner/treebuilder.py:
4220 * tools/g-ir-scanner:
4221 split tree building and source scanning interface to separate files.
4223 2008-04-18 Johan Dahlin <johan@gnome.org>
4225 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4227 - Add support for struct/parameter/return, start parsing of ctypes
4229 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4232 2008-03-31 Johan Dahlin <johan@gnome.org>
4234 * tools/g-ir-scanner:
4235 Start to build abstract syntax node of scanned sources.
4236 Add support for cpp options.
4238 2008-03-27 Johan Dahlin <johan@gnome.org>
4240 * giscanner/giscannermodule.c:
4241 * giscanner/scannerlexer.l:
4242 * giscanner/sourcescanner.c:
4243 * tools/g-ir-scanner:
4245 Add simple pre-processor using subprocess and a PIPE.
4246 Change the parse_file apis to accept a file descriptor.
4248 2008-03-25 Johan Dahlin <johan@gnome.org>
4250 * giscanner/__init__.py:
4251 * tools/g-ir-scanner:
4252 Fix a typo and add an example python test program.
4254 2008-03-25 Johan Dahlin <johan@gnome.org>
4256 * giscanner/__init__.py:
4257 * giscanner/giscannermodule.c:
4258 * giscanner/sourcescanner.c:
4259 * giscanner/sourcescanner.h:
4260 Add constants and wrap a few more SymbolType fields
4262 2008-03-25 Johan Dahlin <johan@gnome.org>
4266 * giscanner/__init__.py:
4267 * giscanner/giscannermodule.c:
4268 * giscanner/Makefile.am:
4270 Add initial python bindings for the scanner and
4271 depend on python 2.5.
4273 2008-03-25 Johan Dahlin <johan@gnome.org>
4277 * giscanner/Makefile.am:
4278 * giscanner/sourcescanner.c:
4279 * giscanner/sourcescanner.h:
4280 * tools/Makefile.am:
4281 * tools/grealpath.h:
4282 * tools/sourcescanner.c:
4283 * tools/sourcescanner.h:
4285 Move the scanner to a separate library.
4287 2008-03-23 Johan Dahlin <johan@gnome.org>
4289 * tools/Makefile.am:
4292 * tools/scannerlexer.l:
4293 * tools/scannerparser.y:
4294 * tools/sourcescanner.c:
4295 * tools/sourcescanner.h:
4296 Split out the source scanner from the generator.
4297 Rename the symbols used in the scanner to use the gi_ prefix.
4298 This should make it possible to use the raw C parser from
4301 2008-03-23 Johan Dahlin <johan@gnome.org>
4303 * tests/parser/Makefile.am (utility.gidl):
4304 * tests/parser/utility-expected.gidl:
4305 Pass in the gobject.gidl since we're defining a GObject.
4307 2008-03-12 Johan Dahlin <johan@gnome.org>
4309 * relaxng/relaxng.rng:
4310 Add a releaxng in relaxng we can use to validate the relaxngs
4313 2008-03-12 Jürg Billeter <j@bitron.ch>
4315 * tools/scanner.c: (g_igenerator_new):
4316 * tools/scannerparser.y:
4317 Fix compiler warnings.
4319 2008-03-12 Jürg Billeter <j@bitron.ch>
4323 * tools/scannerparser.y:
4324 Start fixing memory management in g-idl-scanner.
4326 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4328 * tools/gidlcompilercontext.c: (write_compiled):
4329 Fix critical warning when no shlib passed to g-idl-compiler.
4331 2008-03-12 Johan Dahlin <johan@gnome.org>
4333 * tests/parser/utility-expected.gidl:
4334 * tests/parser/utility.h:
4335 Add a get_type-function, so the scanner actually
4336 parses it as an object.
4338 2008-03-12 Johan Dahlin <johan@gnome.org>
4340 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4343 * tests/parser/Foo-expected.gidl:
4344 * tests/parser/Makefile.am:
4345 * tests/parser/foo-object.h:
4346 * tests/parser/foo.c:
4347 * tests/parser/utility-expected.gidl:
4348 * tests/parser/utility.c:
4349 * tests/parser/utility.h:
4351 Add a new gidl test. 'utility.gidl', which is used to be able
4352 to test external type references. Add a reference to UtilityObject*
4355 2008-03-11 Johan Dahlin <johan@gnome.org>
4359 Remove most global variables
4361 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4363 * tools/scannerlexer.l:
4365 * tests/parser/Foo-expected.gidl:
4366 * tests/parser/foo.c:
4367 * tests/parser/Makefile.am:
4368 * tests/parser/foo-object.h:
4370 Added a few extra tests. Which resulted in finding a few
4371 bugs. Which resulted in me fixing those bugs
4373 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4375 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4376 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4377 Add some comments for strings into generated output for
4380 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4382 * tools/gidlcompilercontext.c: (write_compiled):
4383 Write out the shlibs variable before writing out the strings
4384 length. Fixes compiler warning when using '-l' flag with
4387 2008-03-11 Johan Dahlin <johan@gnome.org>
4389 * tests/parser/Foo-expected.gidl:
4390 * tests/parser/foo-object.h:
4393 * tools/scannerlexer.l:
4394 Add support for parsing return arguments. Add support for
4395 caller-owns return types.
4396 Patch by Philip Van Hoof.
4398 * tools/scannerparser.y:
4399 Remove parsing of the @deprecated syntax used in headers.
4400 We will support gtk-doc deprecation in the future instead.
4402 2008-03-11 Johan Dahlin <johan@gnome.org>
4404 * tools/compiler.c (main): Coding style fixes
4406 2008-03-10 Johan Dahlin <johan@gnome.org>
4409 Add GCOV_LIBS to GILIBS
4411 2008-03-10 Johan Dahlin <johan@gnome.org>
4413 * tests/parser/Foo-expected.gidl:
4414 * tests/parser/foo.c:
4415 Rename null-ok to direction=out
4417 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4419 reviewed and extensively tested by Johan
4421 * tests/parser/Foo-expected.gidl:
4422 * tests/parser/foo-object.h:
4423 * tests/parser/foo.c:
4426 * tools/gidlwriter.c:
4429 * tools/scannerlexer.l:
4430 * tools/scannerparser.y:
4432 Add support for scanning for gtk-doc comments inside
4433 C source files. Add tests
4435 2008-03-10 Johan Dahlin <johan@gnome.org>
4437 * tests/parser/Makefile.am:
4438 * tests/parser/foo.c:
4441 * tools/scannerparser.y:
4442 Add an api to lex filenames.
4443 Lex all source .c files passed in on the command line.
4444 Scan sources in a test and a couple of private structures
4445 which should not be included in the generated gidl
4447 2008-03-10 Johan Dahlin <johan@gnome.org>
4449 * tests/invoke/Makefile.am: Make the generated metadata
4450 depend on the g-idl-compiler
4452 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4454 * tools/gidlmodule.c
4455 * tools/gidlmodule.h
4458 Remove the old g-idl-compiler code.
4461 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4463 * tools/quote-file.sh
4466 Move to using the 'C' struct compiler code.
4468 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4470 * girepository/ginfo.c
4472 Change the way that external references with no namespace
4473 are dealt with. External references with no namespace
4474 are placed into the XML as-if they are a local reference.
4475 This is temporary, but helps with roundtrip tests.
4477 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4479 * girepository/ginfo.c
4480 Add the ability to get the value of a constant of
4481 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4482 is provided as a string.
4484 This would deal properly with:
4485 typedef char* random;
4486 const random = "A string";
4488 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4490 * girepository/ginfo.c
4491 * girepository/girepository.h
4493 Add a function to check if an enum is registered or not.
4494 Previously anything testing this relied on the g-type
4495 string offset having a value of 0.
4497 * girepository/gmetadata.c
4498 * girepository/gmetadata.h
4500 Remove unneccesary or erroneous checks. There were two
4501 metadata validation checks which made sure that the blob
4502 sizes were the same as some magic numbers compiled into the code.
4503 This is wrong as it breaks any forwards compatibility that may
4506 Checks were also present that made sure that unregistered type
4507 blobs had a value of 0 in the g-type offset field. This is
4508 unneccessary. If a type blob is unregistered then any value
4509 in its g-type field is simply invalid.
4511 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4513 * girepository/ginfo.c
4514 * girepository/gmetadata.c
4515 * girepository/gmetadata.h
4517 Change the metadata format to have a standard header
4518 for all the type blobs. Merge the SimpleTypeBlob
4519 and InterfaceTypeBlob into a union. A union of these
4520 two blobs existed previously but was not explicit
4521 in the metadata format.
4523 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4525 * tools/gidlcompilercontext.c
4526 * tools/gidlcompilercontext.h
4527 * tools/gidlcompilerentrynode.c
4528 * tools/gidlcompilerentrynode.h
4529 * tools/gidlcompilertypenode.c
4530 * tools/gidlcompilertypenode.h
4532 Add code to compile a tree of GIdlNodes to
4533 a 'C' struct representing the metadata.
4534 This is to aid cross-compiling. Previously
4535 the g-idl-compiler created a binary blob with
4536 data written in the byte order and alignment
4537 of the tool rather than the intended target.
4539 Cleaned up and improved by Johan and Robert :-)
4541 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4543 * girepository/ginvoke.c
4544 * girepository/girepository.h
4545 * girepository/gmetadata.c
4546 * girepository/gmetadata.h
4548 * tools/gidlparser.c
4549 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4550 to avoid confusion with the interface blob.
4553 * tools/gidlparser.c
4554 Remove magic numbers and replace with type-tag
4555 enumeration symbols.
4557 * girepository/gmetadata.c
4558 Add validate declaration.
4560 2008-03-10 Jürg Billeter <j@bitron.ch>
4562 * tools/gidlparser.c: (parse_type_internal):
4563 * tools/scannerlexer.l:
4564 * tools/scannerparser.y:
4565 Support C99 _Bool type in scanner.
4567 2008-03-10 Jürg Billeter <j@bitron.ch>
4569 * tests/parser/Foo-expected.gidl:
4570 * tests/parser/foo-object.h:
4571 * tests/parser/foo.c: (foo_enum_method):
4572 * tools/scanner.c: (g_igenerator_process_function_symbol):
4573 Don't skip functions that are defined in the namespace of a type
4574 that doesn't support methods, as for example enums.
4576 2008-03-10 Johan Dahlin <johan@gnome.org>
4578 * gidl.dtd: Remove, we're using relaxng for now
4580 * tests/parser/Foo-expected.gidl:
4581 * tests/parser/foo-object.h:
4582 * tests/parser/foo.c:
4583 Rename the enum/flags get_type functions to include the whole type.
4585 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4587 * tools/gidlwriter.c (enum_generate): added "type-name",
4588 "get-type" and "deprecated" missing arguments.
4589 * tests/parser/Foo-expected.gidl:
4590 * tests/parser/foo-object.h: test enum type, and no type.
4592 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4595 Consistent checks, add missing 'test'
4597 2008-03-05 Havoc Pennington <hp@redhat.com>
4599 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4600 does on Fedora 8. Make libffi a hard requirement, since it was in
4601 practice anyway (was not really conditional in the code or
4602 makefile, only in configure).
4604 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4606 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4607 reviewed by: Johan Dahlin <johan@gnome.org>
4609 * tests/Makefile.am:
4610 * tests/roundtrips.sh:
4611 Modify the roundtrips test so that they do not use the
4612 --raw option of the gidl compiler but instead compile a
4613 shared library to use with g_module.
4615 * tests/invoke/Makefile.am:
4616 * tests/invoke/invoke.c:
4617 Modify the invoke tests to build a shared library rather
4618 than use the --raw option.
4620 * tests/invoke/invoke-namespace-find.sh: Removed:
4621 Noone knows why this was here, so removed.
4623 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4625 * tools/scanner.c: (g_igenerator_process_function_symbol):
4626 Move g_idl_node_can_have_member test later, as it broke spotting
4627 get_type's for nodes that can't have members.
4629 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4632 * tools/gidlnode.c: (g_idl_node_can_have_member):
4633 Add g_idl_node_can_have_member.
4635 * tools/scanner.c: (g_igenerator_process_function_symbol):
4636 Use g_idl_node_can_have_member to test if we should add a function
4637 as a member of the type node.
4639 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4641 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4643 * tests/parser/Makefile.am:
4644 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4646 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4648 * tools/scanner.c: (main):
4649 Ignore -pthread when passed to g-idl-scanner.
4651 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4653 * tools/grealpath.h: Added:
4654 * tools/scanner.c: (main):
4655 * tools/scannerlexer.l:
4656 * tools/Makefile.am:
4657 Always use absolute paths with symbolic links resolved when
4658 comparing filenames.
4660 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4662 * gobject-introspection.pc.in:
4663 Provide variables for g-idl-parser, scanner and compiler in the
4666 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4669 * girepository/Makefile.am:
4670 * tools/Makefile.am:
4671 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4673 2008-02-10 Johan Dahlin <johan@gnome.org>
4675 * tests/parser/Foo-expected.gidl:
4676 * tests/parser/foo-object.h:
4677 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4678 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4681 2008-02-10 Johan Dahlin <johan@gnome.org>
4683 * tests/parser/Foo-expected.gidl:
4684 * tests/parser/foo-object.h:
4685 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4686 Add enum and flags test.
4688 2008-02-10 Johan Dahlin <johan@gnome.org>
4692 * girepository/Makefile.am:
4693 Make 'make distcheck' work again.
4695 2008-02-10 Johan Dahlin <johan@gnome.org>
4697 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4700 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4701 check, eg exclude it from BUILT_SOURCES.
4703 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4708 * girepository/Makefile.am:
4709 * m4/Makefile.am: Added:
4710 * m4/as-compiler-flag.m4: Added:
4711 * m4/gcov.m4: Added:
4712 * tools/Makefile.am:
4713 Add ability to generate a coverage report.
4714 Adds configure option --enable-gcov and make rule 'check-coverage'.
4716 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4720 * gidl/Makefile.am: Added:
4721 * girepository/Makefile.am: Added:
4722 * src/Makefile.am: Renamed to tools/Makefile.am:
4723 * src/compiler.c: Renamed to tools/compiler.c:
4724 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4725 * src/generate.c: Renamed to tools/generate.c:
4726 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4727 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4728 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4729 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4730 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4731 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4732 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4733 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4734 * src/ginfo.c: Renamed to girepository/ginfo.c:
4735 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4736 * src/girepository.c: Renamed to girepository/girepository.c:
4737 * src/girepository.h: Renamed to girepository/girepository.h:
4738 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4739 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4740 * src/scanner.c: Renamed to tools/scanner.c:
4741 * src/scanner.h: Renamed to tools/scanner.h:
4742 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4743 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4744 * tests/invoke/Makefile.am:
4745 Split src/ into girepository/ and tools/
4749 * girepository/Makefile.am:
4750 * tests/Makefile.am:
4751 * tests/invoke/Makefile.am:
4752 * tests/parser/Makefile.am:
4753 * tests/roundtrips.sh:
4754 * tools/Makefile.am:
4755 Make distcheck work.
4757 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4759 * tests/invoke/invoke.c: (main):
4760 * tests/invoke/testfns.c: (test6), (test7):
4761 * tests/invoke/testfns.xml:
4762 Add tests for invokation with a GList argument.
4763 Also tests caller-owns return values.
4765 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4768 Add some documentation for GICallableInfo
4770 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4773 Correct syntax errors in the DTD file.
4775 * relaxng/c-types.xml:
4776 * relaxng/g-types.xml:
4778 Add a RelaxNG specification for the GObject Introspection XML data.
4779 The Specification has validated all of the test files.
4781 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4783 * tests/roundtrips.sh:
4784 * tests/struct.test:
4785 Add roundtrip tests for structs.
4787 2008-01-11 Johan Dahlin <johan@gnome.org>
4789 * src/scanner.c (g_igenerator_process_function_symbol):
4790 Refactor out g_idle_node_add_member.
4791 (create_node_from_gtype, create_node_from_ctype):
4792 Use case instead of if...else
4793 (get_type_from_type_id):
4794 Rename to create_node_from_gtype
4795 (get_type_from_ctype):
4796 Rename to create_node_from_ctype
4798 Rename ginode -> node, gitype -> type, gifunc -> func.
4800 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4801 Two new functions, refactor out of scanner.c
4803 * src/scanner.c: (g_igenerator_process_function_symbol):
4804 * src/scannerlexer.l:
4805 Do not save the content of the deprecated variable, only
4808 2008-01-11 Johan Dahlin <johan@gnome.org>
4810 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4812 2008-01-11 Jürg Billeter <j@bitron.ch>
4814 * src/scannerlexer.l:
4815 Fix GTK-Doc parsing.
4817 2008-01-11 Jürg Billeter <j@bitron.ch>
4819 * src/scannerlexer.l:
4820 Fix GTK-Doc parsing.
4822 2008-01-11 Jürg Billeter <j@bitron.ch>
4824 * src/scanner.c: (lookup_symbol):
4825 Return unresolved name if we find unknown symbol.
4827 2008-01-11 Jürg Billeter <j@bitron.ch>
4829 * src/scanner.c: (g_igenerator_generate):
4830 Initialize GObject to fix scanning interface properties.
4832 * tests/parser/Foo-expected.gidl:
4833 * tests/parser/foo-object.h:
4834 * tests/parser/foo.c: (foo_interface_get_type):
4835 Test interfaces with GObject prerequisite.
4837 * tests/parser/Makefile.am:
4838 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4840 2007-12-27 Johan Dahlin <johan@gnome.org>
4842 * src/scannerlexer.l:
4843 Parse gtk-doc comments.
4845 * src/gidlwriter.c: (function_generate):
4846 Reorganize, avoid duplication and add support for
4847 writing deprecated functions.
4849 * src/scannerparser.y:
4851 Add new structure CDirective and functions to create/free them.
4853 * src/scanner.c: (g_igenerator_process_function_symbol),
4854 (g_igenerator_process_unregistered_struct_typedef),
4855 (g_igenerator_process_struct_typedef),
4856 (g_igenerator_process_union_typedef),
4857 (g_igenerator_process_enum_typedef),
4858 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4859 (g_igenerator_start_preprocessor):
4860 Parse @deprecated directive for functions.
4861 Remove some more C99isms.
4862 Send in -C to cpp to avoid stripping comments.
4864 * tests/parser/foo-object.h:
4865 * tests/parser/Foo-expected.gidl:
4866 Add deprecated directive
4868 2007-12-27 Johan Dahlin <johan@gnome.org>
4870 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4871 escape ' and " so it looks more like C.
4874 Unlink temporary file used.
4876 2007-12-27 Johan Dahlin <johan@gnome.org>
4878 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4879 (g_igenerator_start_preprocessor), (main):
4881 * src/scannerparser.y:
4882 Plug a couple of simple memory leaks.
4884 2007-12-27 Johan Dahlin <johan@gnome.org>
4886 * src/scanner.c: (g_igenerator_parse_macros),
4887 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4890 * src/scannerparser.y:
4891 * tests/parser/Makefile.am:
4893 Improve error reporting, return when the preprocessor fails.
4894 Add a verbose parameter, to aid debugging.
4895 Revert to using a temporary file to communicate between the
4896 preprocessor and the parser, because we need to wait for
4897 the exit code from the pre-processor before starting to parse.
4899 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4901 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4902 cparser.y to scannerparser.y
4904 2007-12-11 Johan Dahlin <johan@gnome.org>
4908 * src/scanner.c: (g_igenerator_new):
4910 Get rid of the global the_generator variable.
4912 2007-12-10 Johan Dahlin <johan@gnome.org>
4914 * src/scanner.c (main): Add an output option,
4915 add checks for required parameters
4918 set BUILD_SOURCES and CLEANFILES properly
4920 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4921 (g_writer_write_indent), (g_writer_write_unindent),
4922 (field_generate), (value_generate), (constant_generate),
4923 (property_generate), (function_generate), (vfunc_generate),
4924 (signal_generate), (interface_generate), (struct_generate),
4925 (union_generate), (boxed_generate), (enum_generate),
4926 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4928 * src/scanner.c: (g_igenerator_generate):
4930 * src/scannerwriter.c:
4932 Refactor scannerwriter to only be tied to a GIdlModule and move
4933 it (again!) to gidlwriter.c. Change the writer function to take
4936 2007-12-10 Johan Dahlin <johan@gnome.org>
4939 * src/scanner.c: (g_igenerator_generate):
4941 * src/scannerwriter.c: (g_igenerator_write_inline),
4942 (g_igenerator_write), (g_igenerator_write_indent),
4943 (g_igenerator_write_unindent), (field_generate), (value_generate),
4944 (constant_generate), (property_generate), (function_generate),
4945 (vfunc_generate), (signal_generate), (interface_generate),
4946 (struct_generate), (union_generate), (boxed_generate),
4947 (enum_generate), (node_generate), (module_generate),
4948 (g_scanner_write_file):
4950 Move the scanner gidl writing to a separate source file.
4952 2007-12-10 Johan Dahlin <johan@gnome.org>
4957 Move over all CType construction functions.
4959 * tests/parser/Makefile.am:
4960 Be verbose when printing parsing tests results.
4962 2007-12-10 Johan Dahlin <johan@gnome.org>
4964 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4965 preprocessor handling to here. Start cpp insteado of cc -E,
4966 always include -U__GNUC__, since it's specific to the preprocessor
4969 * tests/parser/Makefile.am (check-local): Silent diff and skip
4970 -U__GNUC__ which is always defined now
4972 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4974 reviewed by: <delete if not using a buddy>
4976 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4977 * tests/parser/Makefile.am:
4979 2007-12-09 Johan Dahlin <johan@gnome.org>
4982 Use GOption for command line options.
4983 (g_igenerator_new, main): Simplify constructor and they way
4984 parameters are passed into it.
4990 * src/gen-introspect.c:
4991 * src/gen-introspect.h:
4993 Rename gen-introspect.[ch] to scanner.[ch]
4995 2007-12-09 Johan Dahlin <johan@gnome.org>
4999 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5000 don't make the repository library and the other utilites link against
5003 * src/gen-introspect.c: (g_igenerator_create_object),
5004 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5005 (g_igenerator_create_enum), (g_igenerator_create_flags),
5006 (g_igenerator_process_module_symbol),
5007 (g_igenerator_process_module), (g_igenerator_generate), (main):
5008 * src/gen-introspect.h:
5009 Refactor g_igenerator_process_types into smaller pieces.
5011 * tests/parser/Makefile.am:
5012 Depend on the gen-introspect binary
5014 2007-12-09 Johan Dahlin <johan@gnome.org>
5016 * src/gen-introspect.c (g_igenerator_process_types):
5017 Break into smaller pieces, one for each generated node type.
5019 2007-12-08 Johan Dahlin <johan@gnome.org>
5021 * src/gen-introspect.c: (g_igenerator_process_types),
5022 (g_igenerator_add_module):
5023 * tests/parser/Foo-expected.gidl:
5024 * tests/parser/foo-object.h:
5025 * tests/parser/foo.c: (foo_subobject_class_init),
5026 (foo_subobject_init):
5028 Add a subobject test and make sure to register defined classes
5029 in the lookup symbol hash table.
5031 2007-12-08 Johan Dahlin <johan@gnome.org>
5035 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5036 (g_igenerator_process_types), (g_igenerator_add_module),
5037 (g_igenerator_add_include_idl), (main):
5038 * src/gen-introspect.h:
5039 * tests/parser/Makefile.am:
5040 * tests/parser/Foo-expected.gidl:
5042 Change the gen-introspect to generate namespaced module names,
5043 such as GLib.Object instead of GObject.
5044 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5045 add a --include-idl parameter to gen-introspect,
5046 and update the parser test.
5048 2007-12-08 Johan Dahlin <johan@gnome.org>
5050 * src/gen-introspect.c:
5051 Move main to the end of the file and attempt to make it valid
5054 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5055 we're not quite ready to generate metadata yet.
5060 Add a simple gen-introspect parser test
5062 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5064 reviewed by: Johan Dahlin <johan@gnome.org>
5067 * gobject-introspection.pc.in:
5069 * src/compiler.c: (format_output), (write_out_metadata), (main):
5070 * src/gen-introspect.c: (main):
5071 * src/gen-introspect.h:
5072 * src/generate.c: (write_callable_info), (write_repository),
5073 (load_metadata), (main):
5074 * src/gidlmodule.c: (g_idl_module_new),
5075 (g_idl_module_build_metadata):
5077 * src/gidlparser.c: (start_element_handler):
5078 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5079 (g_base_info_get_name), (g_base_info_get_namespace),
5080 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5081 (g_base_info_get_metadata), (g_function_info_get_symbol),
5082 (g_function_info_get_flags), (g_function_info_get_property),
5083 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5084 (g_callable_info_may_return_null),
5085 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5086 (g_callable_info_get_arg), (g_arg_info_get_direction),
5087 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5088 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5089 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5090 (g_type_info_get_tag), (g_type_info_get_param_type),
5091 (g_type_info_get_interface), (g_type_info_get_array_length),
5092 (g_type_info_is_zero_terminated),
5093 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5094 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5095 (g_value_info_get_value), (g_field_info_get_flags),
5096 (g_field_info_get_size), (g_field_info_get_offset),
5097 (g_registered_type_info_get_type_name),
5098 (g_registered_type_info_get_type_init),
5099 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5100 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5101 (find_method), (g_struct_info_find_method),
5102 (g_enum_info_get_n_values), (g_enum_info_get_value),
5103 (g_object_info_get_parent), (g_object_info_get_type_name),
5104 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5105 (g_object_info_get_interface), (g_object_info_get_n_fields),
5106 (g_object_info_get_field), (g_object_info_get_n_properties),
5107 (g_object_info_get_property), (g_object_info_get_n_methods),
5108 (g_object_info_get_method), (g_object_info_find_method),
5109 (g_object_info_get_n_signals), (g_object_info_get_signal),
5110 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5111 (g_object_info_get_n_constants), (g_object_info_get_constant),
5112 (g_interface_info_get_n_prerequisites),
5113 (g_interface_info_get_prerequisite),
5114 (g_interface_info_get_n_properties),
5115 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5116 (g_interface_info_get_method), (g_interface_info_find_method),
5117 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5118 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5119 (g_interface_info_get_n_constants),
5120 (g_interface_info_get_constant), (g_property_info_get_flags),
5121 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5122 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5123 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5124 (g_constant_info_get_value), (g_union_info_get_n_fields),
5125 (g_union_info_get_field), (g_union_info_get_n_methods),
5126 (g_union_info_get_method), (g_union_info_is_discriminated),
5127 (g_union_info_get_discriminator_offset),
5128 (g_union_info_get_discriminator):
5129 * src/ginvoke.c: (g_function_info_invoke):
5130 * src/girepository.c: (g_irepository_register),
5131 (g_irepository_unregister), (g_irepository_get_default),
5132 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5133 (g_irepository_get_info), (g_irepository_find_by_name),
5134 (g_irepository_get_shared_library),
5135 (g_irepository_build_search_path), (g_irepository_register_file),
5136 (g_irepository_error_quark):
5137 * src/girepository.h:
5138 * src/gmetadata.c: (g_metadata_get_dir_entry),
5139 (g_metadata_check_sanity), (validate_header),
5140 (validate_array_type_blob), (validate_iface_type_blob),
5141 (validate_param_type_blob), (validate_error_type_blob),
5142 (validate_type_blob), (validate_arg_blob),
5143 (validate_signature_blob), (validate_function_blob),
5144 (validate_callback_blob), (validate_constant_blob),
5145 (validate_value_blob), (validate_field_blob),
5146 (validate_property_blob), (validate_signal_blob),
5147 (validate_vfunc_blob), (validate_struct_blob),
5148 (validate_enum_blob), (validate_object_blob),
5149 (validate_interface_blob), (validate_errordomain_blob),
5150 (validate_union_blob), (validate_blob), (validate_directory),
5151 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5152 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5153 (g_metadata_new_from_mapped_file), (g_metadata_free),
5154 (g_metadata_set_module), (g_metadata_get_namespace):
5156 * tests/Makefile.am:
5157 * tests/invoke/Makefile.am:
5158 * tests/invoke/invoke-namespace-find.sh:
5159 * tests/invoke/invoke.c: (main):
5161 Add a namespace/shared library mapping. fixes #313268.
5163 2007-12-03 Johan Dahlin <johan@gnome.org>
5165 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5168 2007-11-30 Jürg Billeter <j@bitron.ch>
5174 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5175 (g_igenerator_write_inline), (g_igenerator_write),
5176 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5177 (field_generate), (value_generate), (constant_generate),
5178 (property_generate), (function_generate), (vfunc_generate),
5179 (signal_generate), (interface_generate), (struct_generate),
5180 (union_generate), (boxed_generate), (enum_generate),
5181 (node_generate), (module_generate), (get_type_from_type_id),
5182 (str_replace), (g_igenerator_process_properties),
5183 (g_igenerator_process_signals), (g_igenerator_process_types),
5184 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5185 (g_igenerator_process_unregistered_struct_typedef),
5186 (g_igenerator_process_struct_typedef),
5187 (g_igenerator_process_union_typedef),
5188 (g_igenerator_process_enum_typedef),
5189 (g_igenerator_process_function_typedef),
5190 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5191 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5192 (g_igenerator_generate), (main), (csymbol_new),
5193 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5194 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5195 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5196 (eat_hspace), (eat_line), (read_identifier),
5197 (g_igenerator_parse_macros):
5198 * src/gen-introspect.h:
5200 Import gen-introspect to generate introspection information by
5203 2007-11-30 Jürg Billeter <j@bitron.ch>
5205 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5207 2007-11-30 Jürg Billeter <j@bitron.ch>
5209 * src/gidlparser.c: (end_element_handler): Don't leave requires
5212 2007-11-29 Johan Dahlin <johan@gnome.org>
5214 * src/gidlparser.c (parse_type_internal): Add char,
5215 gchar and guchar to the builtin types.
5217 2007-11-26 Johan Dahlin <johan@gnome.org>
5219 * src/ginfo.c: (g_object_info_get_type_name),
5220 (g_object_info_get_type_init):
5221 * src/girepository.c: (g_irepository_is_registered):
5222 * src/girepository.h:
5224 Add g_object_info_get_type_name, g_object_info_get_type_init and
5225 g_irepository_is_registered.
5227 2006-08-14 Jürg Billeter <j@bitron.ch>
5229 * src/gidlparser.c: (end_element_handler): Don't leave
5230 namespace and implements states too early.
5233 2007-11-26 Johan Dahlin <johan@gnome.org>
5235 * src/gmetadata.c (validate_struct_blob):
5236 pass blob_type to validate_function_blob instead of
5237 hard-coding BLOB_TYPE_STRUCT.
5239 Patch by Torsten Schoenfeld, fixes #314190
5241 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5243 * src/compiler.c, src/generate.c, src/gidlnode.c,
5244 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5245 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5246 warnings about return values, signedness mismatches, unused
5247 variables, and unhandles enum values in switch statements.
5249 * tests/invoke/Makefile.am: Don't install the invoke test program.
5250 Add -I ../../src to the cflags used for the test functions files.
5252 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5254 * src/girepository.h: Export g_invoke_error_quark.
5256 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5258 * src/ginvoke.c: Remove the fallback implementation of
5259 g_function_info_invoke since we now formally depend on libffi.
5261 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5263 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5264 Remove these files from cvs, as they are now generated.
5266 * src/gmetadata.c (validate_iface_type_blob): Don't
5267 complain if blob->pointer is not set, since that
5268 happens for enum and flag types. (#308935, Gustavo
5271 * Commit an autoconf-conversion patch by
5272 Gustavo Carneiro (#308708)
5274 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5276 * src/compiler.c (main): Use it here to validate
5277 the generated metadata.
5279 * src/gmetadata.[hc]: Add code to validate a
5282 * metadata-format.txt: Updates
5284 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5286 * tests/*: Add struct offsets to field and vfunc
5289 * src/generate.c (write_vfunc_info): Write offset
5290 information for vfuncs.
5292 * src/gidlnode.c (g_idl_node_build_metadata): Write
5293 the struct offsets into the metadata.
5295 * src/gidlparser.c: Parse the offset attributes of
5296 field and vfunc elements.
5298 * src/gidlnode.h: Add offset members to field and
5301 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5305 * gidl.dtd: Updates.
5307 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5308 file, creates, compiles and runs a C file, and folds the
5309 resulting struct offsets back into the .gidl file.
5311 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5313 * src/gidlparser.c (start_field): Make fields in objects
5316 * src/gidlmodule.c: Include string.h
5321 * metadata-format.txt: Cleanup basic types.
5322 * src/*: Adapt to the changes.
5323 * tests/*: Adapt to the changes.
5324 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5326 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5327 size for enum blobs.
5328 (g_idl_node_get_full_size): Report the correct size for
5331 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5332 error checking for blob sizes.
5334 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5336 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5337 interface types for which is_pointer is FALSE, e.g. enums.
5339 * src/gidlnode.c (g_idl_node_get_full_size)
5340 * src/gidlparser.c (parse_type_internal):
5341 * src/generate.c (write_type_info): Support unspecialized
5342 lists, hashtables and errors. Also emit a '*' after these.
5346 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5350 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5352 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5354 * src/*.c: Change the directory to be addressed by
5355 1-based indexes, and use an index of zero to mean
5358 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5360 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5362 * tests/union.test: Add a union test.
5364 * src/generate.c: Handle unions.
5366 * src/girepository.h:
5367 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5369 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5371 * src/gidlparser.c (start_union): Parse <union> elements.
5373 * src/gidlnode.h: Add a GIdlNodeUnion.
5375 * gidl.dtd: Add a <union> element.
5377 * src/gmetadata.c (g_metadata_check_sanity): Check
5380 * src/gmetadata.h: Add union_blob_size to Header,
5383 * metadata-format.txt: Add a UnionBlob.
5385 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5387 * tests/*: Update testcases.
5389 * src/generate.c (write_callable_info): Don't forget to
5390 write transfer and null-ok attributes for return types
5393 * src/girepository.h:
5394 * src/ginfo.c (g_callable_info_may_return_null):
5395 New function to find out if a function may return NULL.
5397 * src/compiler.c (format_output): Make the generated
5400 * README: Point to a recent libffi snapshot.
5402 * tests/invoke/*: Some invoke tests.
5404 * src/Makefile: Add ginvoke.c and the necessary
5407 * src/girepository.h (g_function_info_invoke): Add
5410 * src/ginvoke.c (g_function_info_invoke): Initial
5411 implementation of invoke functionality based on libffi.
5413 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5414 strings and types hash tables in the right order when
5416 (find_entry_node): Free the name parts.
5418 2005-05-12 Johan Dahlin <johan@gnome.org>
5420 * src/generate.c: Generate consistent end tags.
5424 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5428 * src/gidlparser.c (start_function): Actually add
5429 methods to objects. (Steven Walter)
5431 * src/girepository.h:
5432 * src/ginfo.c: Rename Transfer and Direction to
5433 GITransfer and GIDirection. (Torsten Schoenfeld)
5435 * tests/*: Make tests work with the changes in name
5438 * src/gidlnode.c (find_entry_node): Parse qualified
5439 names and generate xref nodes for them if needed. Don't
5440 require all modules to be loaded any more.
5442 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5445 * src/ginfo.c (g_object_info_get_parent): Return NULL
5446 if blob->parent is 0. Still need to make sure index
5449 * src/generate.c: Generate qualified names when
5450 referring to non-local types. Emit transfer attribute
5453 * src/compiler.c (format_output): Put the function
5454 attributes where gcc accepts them.
5456 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5458 * src/compiler.c (main): Add a --verbose cmdline option
5459 and only log messages if it is specified.
5462 * src/gidlnode.c (init_stats, dump_stats): Collect some
5463 statistics on string and type sharing.
5465 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5466 g_message() instead of fprintf().
5468 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5469 (g_idl_node_get_size): Implement for structs.
5470 (g_idl_node_get_full_size): Handle parent being NULL.
5471 (serialize_type): Handle lookup failures more gracefully.
5473 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5475 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5476 size calculation for 2-parameter types and for objects.
5478 * src/compiler.c: Add a cmdline option for debug output
5479 and install a log handler to implement it.
5480 * src/gidlnode.c: Add some debug spew.
5484 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5485 forget to count the module name when calculating the
5486 required size for the metadata.
5489 * src/gidlparser.c: Fix compiler warnings.
5491 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5493 * src/compiler.c (main): Free the option context.
5495 * gidl.dtd: Clean up handling of names. All elements
5496 have a "name", only the elements corresponding to
5497 actual callable functions (function, method, constructor),
5498 have an additional "symbol" attribute holding the
5499 dlsym()-able function name.
5501 * src/generate.c: Adapt to generate xml matching the
5505 * src/gidlnode.c: Adapt to parse the new dtd.
5507 * tests/*.test: Adjust to the new dtd.
5509 * metadata-format.txt:
5510 * src/gmetadata.h: Remove the short_name field
5512 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5513 * src/girepository.h:
5514 * src/ginfo.c (g_value_info_get_short_name): Removed
5516 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5518 * gidl.dtd: Allow constructors for boxed types,
5519 patch by Jonathan Blandford.
5522 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5524 * --- Initial import ---