1 2008-12-21 Johan Dahlin <jdahlin@async.com.br>
4 Annotate transfer, direction and allow none for
5 g_file_load_contents, g_file_load_contents_finish and
6 g_file_load_partial_contents_finish parameters.
8 2008-12-12 Owen Taylor <otaylor@redhat.com>
10 Disable array auto-detection for out-annotated parameters (#563934)
12 If we have a parameter annotated as (out), then having a ctype of
13 'char **' (or similar) doesn't necessarily indicate an array.
15 * giscanner/transformer.py: Skip array-detection logic for
16 (out)-annotated parameters.
17 * tests/scanner/annotation.h tests/scanner/annotation.c
18 tests/scanner/annotation-1.0-expected.gir
19 tests/scanner/annotation-1.0-expected.tgir: Add a test for
20 an (out) string parameter.
22 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
24 * giscanner/dumper.py (DumpCompiler._link): Pass in
25 --tag=CC to libtool to avoid making libtool confused
26 when CC is different from gcc on some systems.
28 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
30 Bug 563998 – Cache the GIBaseInfo for GTypes
32 * girepository/girepository.c (g_irepository_find_by_gtype):
33 add a cache of GType -> GIBaseInfo.
35 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
37 Bug 562545 – Add function taking / returning GValue
39 * tests/everything/everything.[ch]: add a test of function taking and
40 returning "const GValue *"
42 2008-12-09 Johan Dahlin <johan@async.com.br>
44 * giscanner/cachestore.py (CacheStore.store): Use
45 shutil.move instead of os.rename, since it will
46 automatically fall back to copying+remove if the
47 src directory is on a different partition from
50 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
52 Bug 563742 – introspection should record the introduced version of
53 symbols marked with the "Since:" tag
58 * giscanner/girwriter.py:
59 * giscanner/scannerlexer.l:
60 * giscanner/transformer.py:
61 * tests/scanner/annotation-1.0-expected.gir:
62 * tests/scanner/annotation-1.0-expected.tgir:
63 * tests/scanner/annotation.c (annotation_versioned):
64 * tests/scanner/annotation.h:
66 2008-12-08 Johan Dahlin <johan@async.com.br>
68 * giscanner/cachestore.py (_get_cachedir): Don't require
69 HOME to be set and if it set, don't require the
72 2008-12-08 Johan Dahlin <johan@async.com.br>
74 * giscanner/cachestore.py (CacheStore.store): Dump the cache
75 file to a temporary file and rename it the expected filename
76 only when it's completely written.
77 This should make the cache more roboust when run in parallel,
78 and hopefully avoid triggering bugs in Python.
80 2008-12-03 Christophe Fergeau <teuf@gnome.org>
82 Bug 562971 – g-ir-scanner failure on libgpod headers
84 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
85 default 16384. Without it, the lexer was aborting with a cryptic
86 error message on source files containing really long comment
89 2008-12-01 Colin Walters <walters@verbum.org>
91 * girepository/gfield.c: Fix memory leak; unref type info we
92 created, not field info
94 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
96 Bug 562289 – Race when removing invalid cache
98 * giscanner/cachestore.py:
99 ENOENT is mapped to a OSError, not IOError.
101 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
103 * gir/glib-2.0.c: Add return value transfer annotation
104 for g_markup_escape_text.
106 2008-11-25 Colin Walters <walters@verbum.org>
108 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
110 * giscanner/dumper.py: Implement it.
111 * gir/Makefile.am, tests/**/Makefile.am: Use it.
113 2008-11-25 Colin Walters <walters@verbum.org>
115 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
116 to just use a Makefile rule and dependencies. This corresponds with a change
117 made to gir-repository to fix srcdir != builddir issues.
119 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
122 Post release version bump
125 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
130 2008-11-25 Colin Walters <walters@verbum.org>
132 Bug 559705 – Missing association between static methods and classes
134 * docs/typelib-format.txt:
135 * girepository/ginfo.c (g_function_info_get_flags):
136 * girepository/girmodule.c (g_ir_module_build_typelib):
137 * girepository/girnode.c (g_ir_node_get_size),
138 (g_ir_node_build_typelib):
139 * girepository/girparser.c (start_function):
140 * girepository/gtypelib.c (g_typelib_check_sanity),
141 (validate_header), (validate_function_blob):
142 * girepository/gtypelib.h:
144 * giscanner/girwriter.py:
145 * giscanner/glibtransformer.py:
146 * tests/scanner/foo-1.0-expected.gir:
147 * tests/scanner/foo-1.0-expected.tgir:
148 * tests/scanner/foo.h:
150 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
152 * giscanner/ast.py: Define socklen_t as an alias for int32.
154 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
156 * girepository/gdump.c (dump_type): Remove a warning,
157 be less verbose on error on fundamental types.
159 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
161 * giscanner/dumper.py: Add license headers,
162 refactor into a class, avoid some duplication and do some
163 extra pedantic checks.
165 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
167 Make it compilable with -Werror on my system by adding
168 a couple of prototypes and including headers.
170 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
172 Bug 562022 – gobject-introspection needs python headers
174 * configure.ac: fail without python headers present.
177 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
179 Bug 561617 – Return value array annotations
181 * giscanner/transformer.py:
182 * tests/scanner/annotation.c (annotation_return_array):
183 * tests/scanner/annotation.h:
184 Add support for (array) for return value annotations as well.
186 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
188 * tests/everything/everything.[ch]: add a test function which calls a
191 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
193 * giscanner/cachestore.py:
194 Catch ValueError exceptions.
196 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
198 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
200 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
202 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
203 instead of hard-coding struct sizes.
205 2008-11-18 Owen Taylor <otaylor@redhat.com>
207 Bug 561296 - Add "storage type" to the typelib data for enums
209 In order to set and get enum and flag fields in structures, we need
210 to know the integral type that the enumeration is stored as. We are already
211 computing that at compile time in order to compute struct offsets, so the
212 easiest thing to do is to save that in the typelib.
214 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
215 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
216 and compute and save it at compile time.
218 * girepository/girepository.h girepository/ginfo.c:
219 Add g_enum_info_get_storage_type().
221 * girepository/gfield.c: Implement reading and writing enum and flags fields
222 based on the storage type.
224 2008-11-18 Owen Taylor <otaylor@redhat.com>
226 Add enums to the Everything test module
228 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
229 test module and register them as GTypes.
231 https://bugzilla.gnome.org/show_bug.cgi?id=561296
233 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
235 * giscanner/cachestore.py:
236 Catch BadPickleGet exceptions as well.
238 2008-11-17 Owen Taylor <otaylor@redhat.com>
240 * tests/everything/everything.c: Fix doc comment annotations
241 for test_struct_b_clone() to refer to the right function.
243 2008-11-17 Dan Winship <danw@gnome.org>
245 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
246 spelling of GHashTable. #561135
248 * tests/scanner/annotation.c (annotation_object_get_hash):
249 * tests/scanner/annotation-1.0-expected.gir:
250 * tests/scanner/annotation-1.0-expected.tgir: add a test of
251 GHashTable annotations
253 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
255 * giscanner/ast.py: Change string array match type to be in terms
256 of canonicalized type.
257 * giscanner/transformer.py: Add canonicalize_ctype which gives us
258 a version of a c:type without aliases, so we can deep canonicalize
259 char** to utf8*. Update parse_ctype to use it.
260 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
262 2008-11-16 Colin Walters <walters@verbum.org>
264 * girepository/girepository.c: Ensure we always call init_globals,
265 even if passed a non-default repository.
267 2008-11-16 Colin Walters <walters@verbum.org>
269 Bug 559706 - Interface prerequisites
271 * common.mk: Dep on libgirepository.la for scanner libs so that
272 we rebuild things even if just gdump.c changes.
273 * girepository/gdump.c: Dump prerequisites.
274 * giscanner/ast.py: Add prerequisite list.
275 * giscanner/girparser.py: Parse them from gdump.
276 * giscanner/girwriter.py: Write them.
277 * giscanner/glibtransformer.py: Resolve them.
280 2008-11-16 Owen Taylor <otaylor@redhat.com>
282 Bug 561087 - Respect is_pointer in serialize_type()
284 Add a '*' to the serialization for the cases where we set is_pointer
285 in the type blob we write out depending on node->is_pointer. Don't
286 add the '*' in the cases where is_pointer is set or not set in a
289 http://bugzilla.gnome.org/show_bug.cgi?id=561087
291 2008-11-16 Owen Taylor <otaylor@redhat.com>
293 Bug 560825 – Add size and alignment to typelib
295 Include the size and alignment of structures and unions in the typelib,
296 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
298 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
299 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
300 to StructBlob and UnionBlob.
302 * girepository/ginfo.c girepository/girepository.h:
303 Add g_[struct|union]_get[size|alignment]().
305 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
307 2008-11-16 Owen Taylor <otaylor@redhat.com>
309 Bug 552371 – implement struct field get/set
311 * girepository/gfield.c girepository/girepository.h: Add
312 convenience functions g_field_info_set_field() and
313 g_field_info_get_field() to set and get fields based on the
314 offsets in GIFieldInfo.
316 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
318 Bug 560241 - Out-arguments should not be marked as being pointers
321 * girepository/girparser.c: Improved logic for out arguments.
323 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
325 Bug 559601 - Pointers in structs/unions unduly treated as arrays
327 * giscanner/transformer.py: Differentiate type creation logic
328 between parameters and struct components.
330 2008-11-15 Colin Walters <walters@verbum.org>
332 * giscanner/dumper.py: Check return code from pkg-config
335 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
337 * tests/everything/everything.c (test_array_int_in),
338 (test_array_gtype_in):
339 * tests/everything/everything.h:
340 Rename the int/gtype array tests. Make the return value
341 useful, an aggregation of the array input values.
343 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
345 * tests/everything/Makefile.am:
346 * tests/everything/everything.c:
347 * tests/everything/everything.h:
348 * tests/everything/gitesttypes.c:
349 * tests/everything/gitesttypes.h:
350 Rename gitesttypes.[ch] to everything.[ch]
352 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
354 Bug 560708 – Don't treat arrays that have a length specified as
355 zero-terminated by default
357 * giscanner/transformer.py: Default to non zero terminated for
359 * tests/*: Update, add test for zero vs not.
361 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
363 Bug 557788 - Return types for constructors in generated typelib bogus
365 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
366 obviously broken in the face of duplicate names in different
368 * tests/scanner/*expected.gir: Fix up.
370 2008-11-13 Owen Taylor <otaylor@redhat.com>
372 * girepository/girffi.c: Fix "Unexpected time for time_t"
375 2008-11-13 Colin Walters <walters@verbum.org>
377 Bug 558436 - avoid having scanner load app code
379 * giscanner/cgobject.py: Delete; we no longer load shared
381 * giscanner/dumper.py: Support for linking a library to
382 a stub binary for introspection.
383 * giscanner/glibtransformer.py: Rewrite to use gdump XML
384 from invocation of child binary.
385 * giscanner/transformer.py: Fix up to use fully qualified
386 name in parse tree. Make parse_ctype public so we can use
387 it inside glibtransformer.
388 * tests/scanner/barapp.c: New test, using --program arg
390 * tests/*: Update to use common.mk for invoking scanner.
391 * tools/g-ir-scanner: Add options --program, --program-arg,
393 * docs/g-ir-scanner.1: Update.
395 2008-11-13 Colin Walters <walters@verbum.org>
397 * configure.ac: Depend on Gio, we use it in gdump.c.
398 * girepository/gdump.c: Code to dump GType data to XML.
399 * girepository/girepository.c: Add option group for dumping.
400 * girepository/girepository.h: Define API for the above.
402 2008-11-13 Colin Walters <walters@verbum.org>
404 * common.mk: Add a file to include with Makefile fragments
405 useful for scanner invocation.
407 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
409 * tests/everything/gitesttypes.c (test_filename_return): Return
410 strings in filename encoding.
412 2008-11-13 Owen Taylor <otaylor@redhat.com>
414 Bug 560253 – Add structure and boxed types to Everything test module
416 * tests/everything/gitesttypes.[ch]: Add examples of:
418 Plain old data structs
419 Plain old data structs with nested fields
421 Plain old data boxed with nested fields
422 More complicated boxed types with internal state
424 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
426 * tests/everything/gitesttypes.c (test_gtype_in):
427 * tests/everything/gitesttypes.h:
428 Add a test of GType arrays, a la gtk_list_store_set_columns.
430 2008-11-12 Owen Taylor <otaylor@redhat.com>
432 Bug 560419 – Cache includes when parsing
434 Keep track of all modules parsed within a GIrParser, and when a
435 module is referenced a second time, use the existing parsed copy
436 instead of reparsing.
438 2008-11-12 Owen Taylor <otaylor@redhat.com>
440 Fix management of ParseContext.includes_modules (#560419)
442 * girepository/girparser.c: Fix some trivial bugs in managing the
443 list of include modules. (Add to module's list twice, not
444 initialized to NULL, not freed.)
446 2008-11-12 Owen Taylor <otaylor@redhat.com>
448 Keep aliases and disguised_structures local to each module (#560419)
450 * girepository/girmodule.[ch]: When parsing, keep keep a separate
451 hash tables of aliases and 'disguised' flags for each module, and
452 store that on the module.
454 After parsing an include merge the aliases/disguised flags to the
457 * girepository/girparser.c: Remove 'prefix_aliases' flag and
458 always prefix aliases/disguised structure types when parsing; this
459 simplifies the code considerably.
461 2008-11-12 Owen Taylor <otaylor@redhat.com>
463 Fix mismatches between .gir name and 'name' attribute (#560419)
465 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
466 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
467 where the 'name' element of <namespace/> didn't match the filename of the
468 gir, an assumption that the compiler has always expected and now enforces.
470 2008-11-12 Owen Taylor <otaylor@redhat.com>
472 Only allow one <namespace/> element per <repository/> (#560419)
474 * girepository/girparser.c: The logic in girparser.c didn't work
475 very well if there were multiple <namespace/> nodes within a
476 single <repository/> (context->namespace was always the overall
477 filename and not the the name specified in the <namespace/>
478 element for one thing; this would cause aliases to be mis-prefixed
479 in include modules.) Also check that the "name" in the
480 <namespace/> node matches the filename.
482 2008-11-12 Owen Taylor <otaylor@redhat.com>
484 Add a GirParser object to hold the state of a compilation
486 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
487 GirParser object to hold state that is global across a
488 compilation. Currently just holds the include path, but will
489 eventually also keep a cached list of parsed modules.
491 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
493 * girepository/girepository.c (find_namespace_latest): Fix
496 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
498 * configure.ac: use 'introspection' component for bugs
500 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
502 * tests/everything/gitesttypes.c (test_filename_return):
503 * tests/everything/gitesttypes.h:
504 Add a filename return test.
506 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
508 * tests/offsets/Makefile.am (gitestoffsets.c): fix
509 gen-gitestoffsets invocation with builddir != srcdir
511 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
513 * girepository/girepository.c:
514 Change the element type from utf8 to filename
515 * girepository/girnode.c (g_ir_node_build_typelib):
516 Special case filename equally to utf8 here.
518 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
521 Remove unused variables, add a dependency of girepository.ch, so when
522 they change we rebuild the gir automatically.
524 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
526 * girepository/girepository.c (g_irepository_get_search_path):
527 * girepository/girepository.h:
528 Add a g_irepository_get_search_path, so we can access the search
531 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
533 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
535 * girepository/girparser.c: avoid freeing an uninitialized pointer
537 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
540 * giscanner/glibtransformer.py:
541 * tools/g-ir-scanner:
542 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
543 so we can just pass in --library=foo/bar/baz.la and the scanner
544 does the right thing.
545 Don't warn for _get_type() functions if they don't take any
548 2008-11-11 Owen Taylor <otaylor@redhat.com>
550 Bug 560404 – Prefix types when resolving aliases in included modules
552 * girepository/girparser.c: When resolving aliases in an included
553 module, prefix types before looking them up.
555 2008-11-11 Owen Taylor <otaylor@redhat.com>
557 Compute field offsets and overall size for object structures
559 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
560 field of type object in structure"
562 Do basic computation of field offsets for objects and interfaces;
563 this doesn't attempt to address all of the "mess" for virtual
564 functions described in Bug 560281.
566 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
568 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
570 Based on patch by Johan Bilien.
572 * giscanner/transformer.py (_create_member, _create_parameter):
573 Resolve types here as well.
574 (_resolve_type_name_1): Try resolving using 'ctype' first since
575 it's least ambiguous. Fixes struct member type resolution with
576 similarly named types, e.g. Gdk.PangoRendererClass and
578 * tests/scanner/foo*: Add test.
580 2008-11-11 Owen Taylor <otaylor@redhat.com>
582 * girepository/girparser.c: Search provided include dirs before
583 the default directories.
585 2008-11-11 Owen Taylor <otaylor@redhat.com>
587 * girepository/giroffsets.c: Include fully-qualified names in
590 2008-11-11 Owen Taylor <otaylor@redhat.com>
592 * girepository/giroffsets.c: Fail gracefully with an informative
593 error message when recursion is encountered when computing a
596 2008-11-11 Owen Taylor <otaylor@redhat.com>
598 * girepository/girparser.c: Remove an unused variable.
600 2008-11-10 Owen Taylor <otaylor@redhat.com>
602 Add tests for field offset computations
604 * tests/offsets/offsets.h: Header file with structure definitions to test
606 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
607 field offsets for the structures in offsets.h two ways: using
608 the information from a generated typelib, and as computed by the
611 We diff these two versions to test that everything is OK.
613 2008-11-10 Owen Taylor <otaylor@redhat.com>
615 Remove field offsets from g-ir-generate output and test inputs
617 Field offsets are a) architecture dependent so they shouldn't be part
618 of the architecture-independent gir format which is installed in
619 datadir. b) Are architecture-dependent so they shouldn't be in test
622 * girepository/girparser.c: Don't parse offset for fields
623 * tools/generate.c: Don't parse offset for fields
624 * tests/*.gir test/scanner/*.tgir: Remove offsets
626 (Virtual function and discriminator offsets are not removed, as they
627 aren't fully hooked up to the field-offset computation machinery yet.)
629 2008-11-10 Owen Taylor <otaylor@redhat.com>
631 Bug 560252 - Compute field offsets before writing typelib
633 * girepository/girnode.h: Store the total size and alignment for
634 GIrNodeStruct/Boxed/Union.
636 * girepository/giroffset.c: New file implementing computation of
637 structure field offsets.
639 * girepository/girnode.c: Compute structure field offsets before
640 writing types into the typelib.
642 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
643 means "unknown". Also fix description of the discriminator_offset
646 2008-11-10 Owen Taylor <otaylor@redhat.com>
648 Bug 560250 - Fully parse included modules
650 For some things, like computing structure offsets to put into the typelib
651 we need more than just the aliases from included modules. Do a completel
652 parse of included modules and store in module->included_modules.
654 Also add g_ir_find_node() to find node information from within the
655 active set of modules and their includes.
657 2008-11-10 Owen Taylor <otaylor@redhat.com>
659 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
661 Extract a function to convert GITypeTag to ffi_type from the internals
662 of ginvoke.c. This will be useful in figure out structure alignment.
664 Also fix handling of gsize and time_t to be portable. (Add a check
665 to configure.ac to figure out the width of time_t.)
667 2008-11-10 Owen Taylor <otaylor@redhat.com>
669 Bug 560248 – "disguised structures"
671 Certain types like GIConv and GdkAtom are pointers internally but don't
672 look like pointers when referenced. They have the form.
674 typedef struct _X *X;
676 Parse these as structures/records but mark them in the gir with a 'disguised'
677 attribute so that we know that they need special handling.
679 In the typelib treat them like any other structure.
681 2008-11-09 Jürg Billeter <j@bitron.ch>
684 * giscanner/girwriter.py:
686 Write throws attribute for virtual functions, fixes bug 559703
688 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
690 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
691 up some confusion about the second argument to find_module, it's
692 actually the packages __path__ attribute which we can safely ignore
694 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
696 2008-11-07 Owen Taylor <otaylor@redhat.com>
698 Bug 559737 – Deal with continuations in macros
700 * giscanner/giscannerlexer.l: Treat continuation lines the same
701 as regular newlines. This makes the scanner not complain about
702 #define foo(x) \ <stuff> inside a C file. There's no attempt
703 however to handle parsing macro definitions split across lines.
705 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
707 * giscanner/cachestore.py:
708 Handle broken cache entries, write only filesystems and
709 running out of diskspace.
711 2008-11-07 Owen Taylor <otaylor@redhat.com>
713 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
714 Set current_filename before lexing the file so error messages
715 are reported in the right file.
717 2008-11-06 Colin Walters <walters@verbum.org>
719 * tests/everything/*: Add some tests for strv.
721 2008-11-05 Colin Walters <walters@verbum.org>
723 * girepository/ginvoke.c (g_function_info_invoke): Don't use
724 nested scope local variable for error which may go away after
725 conditional is complete.
727 2008-11-05 Colin Walters <walters@verbum.org>
729 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
730 manipulate hackily; just use GString. This avoids an
731 uninitialized memory read pointed out by Havoc.
733 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
735 * giscanner/__init__.py:
737 * giscanner/cachestore.py:
738 * giscanner/cgobject.py:
739 * giscanner/girparser.py:
740 * giscanner/girwriter.py:
741 * giscanner/giscannermodule.c:
742 * giscanner/glibast.py:
743 * giscanner/glibtransformer.py:
744 * giscanner/libtoolimporter.py:
745 * giscanner/minixpath.py:
746 * giscanner/odict.py:
747 * giscanner/sourcescanner.c:
748 * giscanner/sourcescanner.h:
749 * giscanner/sourcescanner.py:
750 * giscanner/transformer.py:
751 * giscanner/utils.py:
752 * giscanner/xmlwriter.py:
754 Relicense the giscanner library under LGPLv2+.
755 This has been approved by all contributors.
757 2008-11-01 Owen Taylor <otaylor@redhat.com>
759 Bug 558848 giparser.py: shared library should be optional
761 When parsing a .gir, allow the shared-library attribute
762 of <namespace/> to be missing: this corresponds to the handling
763 in libgirepository and elsewhere.
765 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
767 Bug 557898 – Fails to build on OSX 10.4
769 * configure.ac: Check for $shrext_cmds that should be implicitly
770 available if you're using libtool >= 2.0. If undefined, call
771 libtool --config explicitly to get its value.
772 * girepository/gtypelib.c: Remove special case for (non-)Darwin
775 2008-10-31 Colin Walters <walters@verbum.org>
777 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
779 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
781 * configure.ac: Post release version bump
784 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
788 * docs/release-checklist.txt:
791 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
793 * Makefile.am: add an upload-release target
794 * docs/release-checklist.txt:
795 Release process documentation
797 2008-10-31 Colin Walters <walters@verbum.org>
799 Bug 558109 – _g_typelib_init fails to find shared libraries
801 * transformer/glibtransformer.py: Use ctypes' find_library
802 on passed libraries and write that for the shared-library
803 entry. We want to avoid depending on -devel packages.
805 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
807 * docs/g-ir-scanner.1:
808 Document the renaming options.
810 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
812 * giscanner/Makefile.am:
813 * tests/invoke/Makefile.am:
814 * tests/repository/Makefile.am: List in-tree libraries first in
815 LDADD / LIBADD. If installed library is listed first, the
816 resulting binary will prefer installed version to one in .libs,
817 possibly making 'make check' behave strangely.
819 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
821 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
822 gir-repository from choking with gdk/quartz
824 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
826 * giscanner/giscannermodule.c (calc_attrs_length),
827 (pygi_collect_attributes):
828 * giscanner/xmlwriter.py:
829 Write a C version of the xml namespace formatter.
830 Saves 15% of the time it takes to create a gtk gir.
832 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
834 * giscanner/xmlwriter.py: Abstract attribute formatting
835 to a function external to the XMLWriter class.
837 * giscanner/scannerlexer.l:
838 Parse and discard __typeof and __attribute.
840 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
842 * giscanner/girparser.py:
843 Remove arguments from the constructor, move them to
844 separate accessors. Add a new parse_tree method
845 which takes an element tree instance.
846 * tools/g-ir-scanner:
847 Update callsite for this
849 * giscanner/Makefile.am:
850 * giscanner/cachestore.py:
851 * giscanner/transformer.py:
852 Cache the include parsing. Saves ~25% time when
853 creating vte (which includes everything up to gtk+).
855 2008-10-30 Colin Walters <walters@verbum.org>
857 * giscanner/transformer.py: Don't reparse includes
858 we've already processed.
860 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
862 * giscanner/girparser.py:
863 * giscanner/transformer.py:
864 Avoid parsing parameters, types etc when parsing
865 includes. Should speed up include parsing a bit.
867 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
869 * giscanner/girparser.py:
870 Avoid big if/else and use a dispatch table like
873 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
875 * giscanner/transformer.py:
876 Clean up include parsing and registration.
878 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
880 * giscanner/transformer.py:
883 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
885 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
888 construct PYTHONPATH just once
890 * tests/everything/Makefile.am:
891 * tests/scanner/Makefile.am:
892 add $(top_srcdir) to PYTHONPATH to
893 handle builddir != srcdir
895 * giscanner/libtoolimporter.py:
896 * giscanner/sourcescanner.py:
897 Make the libtoolimporter work when distchecking too.
899 Mostly based on patch by Tommi Komulainen
901 2008-10-29 Owen Taylor <otaylor@redhat.com>
903 * giscanner/glibtransformer.py: If a filename of an existing
904 file is passed to --library, hunt for it directly, rather than
905 searching for a corresponding library.
907 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
909 * giscanner/libtoolimporter.py:
910 * giscanner/sourcescanner.py:
911 Clean up the libtool importer a bit. Add a context so we
912 can use it through a with statement.
913 Don't just look in the current directory, look in the whole
916 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
918 Bug 558065 – gitesttypes should be installed
922 * tests/types/Makefile.am -> tests/everything/Makefile.am
923 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
924 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
925 move tests/types to tests/everything
927 * tests/everything/Makefile.am: build normal shared library
928 libgirepository-everything.so.1.0.0 and corresponding typelib
929 Everything-1.0.typelib
931 * tests/everything/Makefile.am: explicitly link libtool
932 versioning with typelib versioning with variables
934 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
936 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
938 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
940 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
943 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
945 Bug 558068 – when invoking a method, offset the in arguments by one,
948 * tests/invoke/invoke.c, tests/invoke/testfns.c,
949 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
950 * girepository/ginvoke.c: do not offset the index of given out
951 arguments by one for methods, "this" is provided as in argument only.
953 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
955 * gir/gio-2.0.c: add annotation for g_file_delete
957 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
959 Bug 558062 – provide and use paths in the .pc file
961 * gobject-introspection-1.0.pc.in: provide typelibdir variable
962 for where .typelibs should be installed (callers shouldn't need
963 to construct paths from bits and pieces)
965 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
967 Bug 557791 – g_irepository_require() could return a GTypelib *
969 * girepository/girepository.c: Return GTypelib; this is useful
970 for low level manipulation.
972 2008-10-25 Colin Walters <walters@verbum.org>
974 Bug 557788 – Return types for constructors in generated typelib bogus
976 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
977 rely on end pass resolution.
979 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
981 Bug 557786 - support fixed size arrays
983 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
984 * giscanner/scannerparser.y: Retain fixed array size.
985 * giscanner/ast.py: Add to note.
986 * giscanner/girwriter.py: Write to gir.
987 * girepository/girnode.c: Write it to typelib.
988 * tools/generate.c: Generate.
989 * tests/*: Add tests.
991 2008-10-25 Colin Walters <walters@verbum.org>
993 Bug 557076 - move typelibs to $libdir
995 * configure.ac: Steal some configury bits from dbus to expand
997 * gir/Makefile.am: Move to libdir.
998 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
999 instead just look at one hardcoded path in libdir.
1000 * acinclude.m4: Bits from dbus.
1002 2008-10-24 Johan Dahlin <johan@gnome.org>
1004 * girepository/girnode.c (g_ir_node_check_unhandled_members):
1005 Be quiet, do not warn about unhandled members.
1007 2008-10-24 Johan Dahlin <johan@gnome.org>
1009 * girepository/gtypelib.c:
1010 Only use SHLIB_SUFFIX on darwin, otherwise use
1011 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1013 2008-10-24 Lucas Rocha <lucasr@gnome.org>
1015 Bug 557623 - Constructors shouldn't be flagged as methods.
1017 * girepository/ginfo.c (g_function_info_get_flags): ditto.
1019 2008-10-24 Johan Dahlin <johan@gnome.org>
1021 * giscanner/scannerparser.y:
1022 Check against division by zero for the modula operator.
1023 This fixes header parsing of OSX system headers included
1026 2008-10-24 Johan Dahlin <johan@gnome.org>
1030 Add a CONTRIBUTORS file and dist it.
1032 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1034 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1036 * girepository/girparser.c (parse_param_transfer):
1037 * giscanner/transformer.py (_create_parameter, _create_return):
1038 * giscanner/girwriter.py (_write_return, _write_parameter):
1039 * tools/generate.c (write_callable_info): always write and
1040 require "transfer-ownership" for return-values and parameters
1043 * tests/invoke/testfns-1.0.gir:
1045 * tests/scanner/DrawableAdditions.xml:
1046 * tests/scanner/GtkFrob-1.0-expected.tgir:
1047 * tests/scanner/annotation-1.0-expected.tgir:
1048 * tests/scanner/drawable-1.0-expected.tgir:
1049 * tests/scanner/drawable-injected-1.0-expected.gir:
1050 * tests/scanner/drawable-injected-1.0-expected.tgir:
1051 * tests/scanner/foo-1.0-expected.tgir: Updated
1053 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1055 * giscanner/cgobject.py: build fundamental types same way as glib
1057 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1058 when constructing the Type from it
1060 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1061 the parameter is a GObject from its GType, if available.
1063 * giscanner/glibtransformer.py (_adjust_transfer):
1064 * tests/scanner/foo-1.0-expected.gir:
1065 * tests/scanner/foo-1.0-expected.tgir: deduce
1066 transfer-ownership from GTypes
1068 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1070 * giscanner/transformer.py (_create_parameter):
1071 * tests/scanner/foo-1.0-expected.gir: make varargs
1072 transfer-ownership="none"
1074 2008-10-23 Colin Walters <walters@verbum.org>
1076 Bug 556739 - transfer ownership
1078 * giscanner/ast.py: Refactor Parameter/Return to share
1079 common attributes. Add transfer_inferred attribute
1080 which says whether or not we made a guess.
1081 * giscanner/transformer.py: Add much more extensive
1082 heuristics around parameter and return transfer.
1083 * giscanner/glibtransformer.py: Adjust to inspect
1087 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1089 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1091 * tests/scanner/Makefile.am:
1092 * tests/scanner/annotation-1.0-expected.tgir:
1093 * tests/scanner/drawable-1.0-expected.tgir:
1094 * tests/scanner/drawable-injected-1.0-expected.tgir:
1095 * tests/scanner/foo-1.0-expected.tgir:
1096 * tests/scanner/GtkFrob-1.0-expected.tgir:
1097 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1098 annotations survive the roundtrip via typelib
1100 The expectations are as currently produced by g-ir-generate,
1101 comparison with the .gir files shows there are differences.
1103 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1105 Bug 557468 – Support for GI_TYPELIB_PATH
1107 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1108 provided paths to the global search path.
1110 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1112 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1114 * tests/scanner/drawable-1.0-expected.tgir:
1115 * tests/scanner/drawable-injected-1.0-expected.tgir:
1116 * tests/scanner/foo-1.0-expected.tgir:
1117 * tools/generate.c (write_object_info): write 'abstract'
1118 attribute for classes
1120 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1122 * girepository/girmodule.c, girepository/gtypelib.c,
1123 girepository/girparser.[ch]: fix some build warnings.
1125 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1127 Bug 557405 – Use 'allow-none' consistently
1129 * docs/typelib-format.txt:
1130 * girepository/ginfo.c (g_arg_info_may_be_null):
1131 * girepository/girnode.c (g_ir_node_build_typelib):
1132 * girepository/girnode.h (struct _GIrNodeParam):
1133 * girepository/girparser.c (start_parameter):
1134 * girepository/girwriter.c (function_generate):
1135 * girepository/gtypelib.h (ArgBlob):
1137 * tests/function.gir:
1138 * tools/generate.c (write_callable_info): Use 'allow-none'
1139 consistently throughout
1141 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1143 Bug 557092 – Callback annotations not used
1145 * giscanner/transformer.py (_create_callback): use annotations
1147 * tests/scanner/annotation.h
1148 * tests/scanner/annotation-1.0-expected.gir: add tests
1150 2008-10-21 Colin Walters <walters@verbum.org>
1152 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1153 uncommented parameters.
1156 2008-10-21 Colin Walters <walters@verbum.org>
1158 * girepository/girepository.c: Ensure that when doing an unversioned
1159 require, we prefer items earlier in the search path to later ones.
1161 2008-10-21 Owen Taylor <otaylor@redhat.com>
1163 * giscanner/transformer.py: For string parameters allow transfer annotation
1164 to override the standard automatic guessing based on 'const'.
1166 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1168 Bug 557241 – "throws" flag for functions
1170 * tests/scanner/drawable-1.0-expected.gir,
1171 tests/scanner/drawable-injected-1.0-expected.gir,
1172 tests/scanner/drawable.[ch]: add simple test for throwing
1173 function (has GError ** as last argument)
1175 * giscanner/ast.py: add a 'throws' flag to Function
1176 * giscanner/glibtransformer.py: if a function's last paramerter is
1177 a GError, set the 'throws' flag and remove that parameter
1178 * giscanner/girwriter.py: write out the 'throws' attribute
1179 * giscanner/girparser.py: support parsing the 'throws' attribute
1181 * tests/repository/gitestthrows.c: add a simple test to check the
1182 throws flag in a typelib and invoke the function
1184 * girepository/ginfo.c, girepository/girnode.[ch],
1185 girepository/girnode.h, girepository/girparser.c,
1186 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1188 * girepository/ginvoke.c: if a function throws, add a GError as last
1189 arguments, and propagate the error to the invoker.
1191 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1193 * giscanner/transformer.py (_create_parameters): Warn if we see
1194 annotations for unknown parameters. If .h and .c files name
1195 parameters differently, the annotations may be lost.
1197 2008-10-21 Johan Dahlin <johan@gnome.org>
1199 Bug 556358 - don't use libtool internals
1201 * giscanner/Makefile.am:
1202 * giscanner/libtoolimporter.py:
1203 * giscanner/sourcescanner.py:
1204 * giscanner/utils.py:
1205 Add a python meta importer and remove a libtool symlink hack.
1207 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1209 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1210 and --add-include-path appropriately when invoking the scanner.
1211 * tests/types/Makefile.am (%typelib): Likewise.
1213 2008-10-20 Colin Walters <walters@verbum.org>
1215 Bug 556777 - validate properties
1217 * giscanner/transformer.py: Add option to throw on unknown types.
1218 * giscanner/glibtransformer.py: Use it on properties.
1219 * tests/*: Add a test.
1221 2008-10-20 Colin Walters <walters@verbum.org>
1223 * giscanner/glibast.py: Also register g variants of
1224 default_array_types. This is not beautiful, but
1225 good alternatives aren't easy to come by.
1226 This fixes gchar ** parsing.
1228 2008-10-20 Colin Walters <walters@verbum.org>
1230 * docs/typelib-format.txt, girepository/gtypelib.h:
1231 Take a bit from ObjectInfo to represent abstract flag.
1232 * giscanner/cgobject.py: Expose g_type_get_flags.
1233 * girepository/girepository.h: Add accessor.
1234 * girepository/ginfo.c: Implement it.
1235 * giscanner/ast.py: Add is_abstract flag to generic
1237 * giscanner/glibast.py: Use it.
1238 * giscanner/girwriter.py: Write it.
1239 * girepository/girparser.c: Parse it.
1242 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1244 * giscanner/girparser.py (_parse_function): don't lose
1245 'transfer-ownership' attributes when injecting, check for the
1248 2008-10-19 Johan Dahlin <johan@gnome.org>
1250 * giscanner/scannerlexer.l: Parse and ignore __asm.
1252 2008-10-19 Colin Walters <walters@verbum.org>
1254 * giscanner/girparser.py: Parse array length= to ensure
1255 it doesn't get lost from --inject.
1257 2008-10-17 Colin Walters <walters@verbum.org>
1259 Bug 556795 - char ** regression
1261 * giscanner/transformer.py: Fix parsing of ctypes, add some
1262 comments about what's going on.
1263 * tests/*: Add a test for char **.
1265 2008-10-17 Colin Walters <walters@verbum.org>
1267 Bug 556783 - change namespace handling to be more consistent
1269 * giscanner/transformer.py: Eliminate usage of
1270 strip_namespace_object. We now treat --namespace as the default
1271 --strip-prefix; however, if --strip-prefix is specified it
1272 overrides --namespace. This applies to everything except function
1273 names, where we do also strip the namespace.
1274 * giscanner/glibtransformer.py: Remove usage of
1275 strip_namespace_object.
1277 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1278 --namespace and --strip-prefix.
1280 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1282 Bug 556732 – generate gir files consistently
1284 * girepository/girparser.c (start_parameter):
1286 * tests/invoke/testfns-1.0.gir:
1287 * tools/generate.c (write_callable_info): write
1288 'transfer-ownership' attribute consistently with both
1289 return-value and parameter elements
1291 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1293 Bug 556732 – generate gir files consistently
1295 * tools/generate.c (write_callable_info): write 'direction'
1296 attribute only if other than 'in' to be consistent with
1299 * tests/object.gir: remove direction="in" which is the default
1301 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1303 Bug 556732 – generate gir files consistently
1305 * giscanner/ast.py (Field): add readable and writable properties
1306 * giscanner/girparser.py (_parse_field): copy 'readable' and
1307 'writable' attributes
1308 * giscanner/transformer.py (_create_member): create fields as
1310 * giscanner/glibtransformer.py (_introspect_object,
1311 _pair_class_struct): make object instance and class fields
1313 * giscanner/girwriter.py (_write_field):
1314 * tools/generate.c (write_field_info): write field 'readable'
1315 and 'writable' attributes only if non-default (read-only)
1316 * girepository/girparser.c (start_field): in the absence of
1317 attributes assume fields are read-only
1319 * tests/struct.gir: remove redundant readable="1" from fields
1320 * tests/scanner/foo-1.0-expected.gir:
1321 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1322 all record and union fields
1324 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1326 Bug 556732 – generate gir files consistently
1328 * giscanner/girwriter.py (_write_property): write properties
1329 'construct' attribute if set
1330 * tools/generate.c (write_property_info): write properties
1331 'readable' and 'writable' attributes only if non-default
1332 * tests/object.gir: add writable="0"
1333 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1335 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1337 * gir/glib-2.0.c: added annotations
1339 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1341 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1344 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1346 Bug 556610 – giscanner/girparser.py drops parameter options
1348 * tests/scanner/drawable-injected-1.0-expected.gir,
1349 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1350 * giscanner/ast.py: allow Parameter to take options in the constructor
1351 * giscanner/girparser.py: parse parameter options (transfer,
1352 direction, allow-none)
1354 2008-10-16 Colin Walters <walters@verbum.org>
1356 Bug 556185 - segfault on g_callable_info_get_return_type
1358 Initial patch from John Ehresman.
1360 * tests/repository/*: Add a test using
1361 g_callable_info_get_return_type. Instead of casting a
1362 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1363 to call g_type_info_get_interface.
1365 2008-10-16 Colin Walters <walters@verbum.org>
1367 Bug 556579 - union and struct name misresolved
1369 * giscanner/transformer.py: The calls to _resolve_type_name
1370 for struct/union names was a legacy holdover from when type
1371 resolution had multiple phases. Now it's actively harmful
1372 since we might pull in an identical name from another
1376 2008-10-16 Colin Walters <walters@verbum.org>
1378 Bug 556432 - transfer annotations and defaults
1380 * giscanner/transformer.py: Canonicalize type
1381 after removing *, not before. This ensures that
1382 guchar* is transformed to 'uint8'.
1383 Add some comments here.
1384 * giscanner/glibtransformer.py: Add _adjust_transfer
1385 phase for tweaking GObject transfers.
1388 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1390 * configure.ac: enable bunch of gcc warning CFLAGS
1392 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1394 Bug 556543 – reduce compiler warnings
1396 * girepository/ginfo.c:
1397 * girepository/girepository.c (register_internal,
1398 count_interfaces, find_interface, find_namespace_version,
1399 parse_version, g_irepository_require):
1400 * girepository/girmodule.c (g_ir_module_build_typelib):
1401 * girepository/girnode.c (init_stats, dump_stats,
1402 _g_irnode_init_stats, _g_irnode_dump_stats,
1403 g_ir_node_can_have_member):
1404 * girepository/girparser.c (firstpass_end_element_handler,
1405 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1406 start_alias, start_type, end_type_top, parse_include, cleanup,
1408 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1409 * giscanner/giscannermodule.c (directive_get_options,
1410 type_get_child_list):
1411 * giscanner/scannerlexer.l (parse_gtkdoc):
1412 * giscanner/scannerparser.y (ctype_free):
1413 * giscanner/sourcescanner.c:
1414 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1415 * tests/types/gitesttypes.c:
1416 * tools/compiler.c (main):
1417 * tools/generate.c (write_repository): Remove unused variables
1418 and code, add missing includes, declarations and case
1421 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1423 Bug 556541 – access union members through UnionBlob rather than
1426 * girepository/ginfo.c (g_union_info_find_method): access union
1427 members through UnionBlob rather than StructBlob
1429 2008-10-15 Colin Walters <walters@verbum.org>
1431 Bug 556331 - clean up includes handling
1433 * tools/g-ir-scanner: Rework command line arguments; now we take
1434 --add-include-path and --include separately.
1435 * giscanner/girwriter.py: Separate name= and version= in include
1437 * giscanner/ast.py: Add Include type.
1438 * giscanner/transformer.py: Cleanups to register_include now that
1439 we don't need to handle mixed filenames and relative arguments.
1440 * girepository/girparser.c: Parse name and version separately;
1441 this fixes a bug as a side effect where we weren't resolving
1442 through aliases for basic types.
1443 * girepository/girepository.c: Fix format string args.
1444 * gir/Makefile.am: Update.
1447 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1449 Bug 556434 – unhandled interface/object/... member types
1451 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1452 g_ir_node_build_typelib): Check all
1453 interface/object/boxed/struct/union members are processed and
1454 abort if they are not. (Mostly callbacks in structs, but also
1455 fields in interfaces.)
1457 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1459 * a/girepository/girnode.c (g_ir_node_build_members,
1460 g_ir_node_build_typelib): refactor common code for processing
1461 members to a function
1463 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1465 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1466 transformation is lossless (it's not)
1468 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1470 * tests/Makefile.am: fix tests to compare xml to xml instead of
1471 typelib to xml, and stop on error
1473 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1475 * tools/generate.c (write_type_name, write_type_info,
1476 write_type_info, write_object_info, write_object_info,
1477 write_interface_info, write_error_domain_info): reduce code
1480 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1482 Bug 556174 – parse types for lists etc.
1484 * girepository/girparser.c (end_type_recurse):
1486 * tools/generate.c (write_type_info, write_field_info,
1487 write_callable_info, write_callable_info, write_constant_info,
1488 write_property_info): use nested <type>s for lists and hashes
1490 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1493 * tests/object.gir: remove trailing whitespace from inside
1494 elements to match g-ir-generate output
1496 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1498 * tools/generate.c (xml_printf): quote printf arguments so that
1499 we don't generate invalid XML by writing unescaped double quotes
1500 and such in attributes
1502 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1504 * tools/generate.c (write_field_info, write_callable_info,
1505 write_function_info, write_callback_info, write_struct_info,
1506 write_constant_value, write_signal_info, write_vfunc_info,
1507 write_object_info, write_interface_info, write_union_info,
1508 write_repository): remove unused indent parameters, xmlwriter
1509 keeps track of necessary indentation
1511 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1513 * tools/generate.c (xml_element_new, xml_element_free,
1514 xml_start_element, xml_end_element, xml_end_element_unchecked,
1515 xml_open, xml_close): Keep track of generated XML tree and
1516 handle indentation and closing tags properly.
1517 (write_field_info, write_callable_info, write_function_info,
1518 write_callback_info, write_struct_info, write_value_info,
1519 write_constant_info, write_enum_info, write_signal_info,
1520 write_vfunc_info, write_property_info, write_object_info,
1521 write_interface_info, write_error_domain_info, write_union_info,
1522 write_repository): Use xml_start_element and xml_end_element to
1525 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1527 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1528 (write_type_name, write_type_info, write_field_info,
1529 write_callable_info, write_function_info, write_callback_info,
1530 write_struct_info, write_value_info, write_constant_value,
1531 write_constant_info, write_enum_info, write_signal_info,
1532 write_vfunc_info, write_property_info, write_object_info,
1533 write_interface_info, write_error_domain_info, write_union_info,
1534 write_repository): wrap all FILE access to go through simple xmlwriter
1536 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1538 Bug 556400 – Fails to build on OS X 10.4
1540 * configure.ac: check for functions backtrace and backtrace_symbols
1541 * girepository/girparser.c (backtrace_stderr): Comment out
1542 implementation if the functions are not available.
1543 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1544 directory for better portability
1546 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1548 Bug 556433 – assume direction = out for int * parameters
1550 * giscanner/ast.py: define a list of types for which, if passed as
1551 reference, we assume a default direction of 'out'
1552 * giscanner/transformer.py: if a type has type pointer to one of the
1553 previously defined types, and no direction is set, assume out.
1554 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1556 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1558 * tests/scanner/annotation.c: fixed a few copy-paste errors
1560 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1562 Bug 556323 – transfer-ownership is wrong for functions returning const
1565 * giscanner/transformer.py: check for a const string as return value,
1566 not just const char*. Suggested by Colin Walters
1567 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1569 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1571 * girepository/ginfo.c, girepository/girepository.h: add
1572 g_union_info_find_method
1574 2008-10-14 Colin Walters <walters@verbum.org>
1576 * tests/repository/Makefile.am: Reenable repo test.
1577 * tests/repository/gitestrepo.c: Prepend search
1578 path for $(top_builddir)/gir dir so that we don't
1579 require installation for "make check" to pass.
1581 2008-10-13 Jürg Billeter <j@bitron.ch>
1583 * giscanner/glibtransformer.py:
1584 * tests/scanner/annotation-1.0-expected.gir:
1585 * tests/scanner/drawable-1.0-expected.gir:
1586 * tests/scanner/foo-1.0-expected.gir:
1587 * tests/scanner/utility-1.0-expected.gir:
1589 Support fields in GObject structs
1591 2008-10-13 Jürg Billeter <j@bitron.ch>
1593 * giscanner/ast.py: add signed integer and off_t to type_names
1595 2008-10-12 Jürg Billeter <j@bitron.ch>
1597 * giscanner/girparser.py: Parse bits attribute of fields
1599 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1601 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1602 * tests/repository/gitestrepo.c (main): instantiate
1603 'GCancellable' to ensure the GType is registered before using
1606 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1608 * giscanner/girparser.py: actually add the parsed constant nodes
1610 2008-10-12 Colin Walters <walters@verbum.org>
1612 * girepository/girepository.c: Don't cast DirEntry to Blob,
1613 actually look it up by offset.
1615 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1617 * giscanner/girparser.py: parse constant nodes in gir files
1619 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1621 * giscanner/transformer.py: prefix for constants have an underscore,
1622 so remove them as if they were functions, not objects.
1624 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1626 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1629 2008-10-12 Colin Walters <walters@verbum.org>
1631 Initial patch from Jani Monoses.
1633 * girepository/gtypelib.c: Fix inverted test for success
1636 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1638 * tools/generate.c (write_callable_info): use "transfer-ownership"
1639 attribute for return values
1641 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1643 * tools/generate.c (write_callable_info): move "transfer" and
1644 "null-ok" attributes from <function> to <return-value> element
1646 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1648 * girepository/girparser.c (start_return_value): handle
1649 "transfer-ownership" attribute
1651 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1653 * girepository/girparser.c (parse_param_transfer):
1654 * tools/generate.c (write_callable_info): use "container" for
1655 container/shallow ownership transfer (not "shallow")
1657 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1659 * girepository/girparser.c (parse_param_transfer,
1660 start_parameter): Refactor handling of transfer=none/shallow/full
1661 to separate function
1663 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1665 Bug 556048 – Crash in g_irepository_find_by_gtype
1667 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1668 * girepository/girepository.c (find_interface): Fix
1669 find_by_gtype case to get the type name from right offset
1671 2008-10-12 Jürg Billeter <j@bitron.ch>
1673 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1676 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1678 * girepository/gtypelib.h (RegisteredTypeBlob): make
1679 'unregistered' one bit wide as everywhere else
1681 2008-10-12 Jürg Billeter <j@bitron.ch>
1683 * giscanner/glibtransformer.py:
1684 * tests/scanner/annotation-1.0-expected.gir:
1685 * tests/scanner/drawable-1.0-expected.gir:
1686 * tests/scanner/drawable.h:
1687 * tests/scanner/foo-1.0-expected.gir:
1688 * tests/scanner/utility-1.0-expected.gir:
1690 Readd class records as workaround to not break Gtk typelib
1692 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1694 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1696 2008-10-12 Jürg Billeter <j@bitron.ch>
1698 * giscanner/glibtransformer.py: Don't generate <record> elements
1700 * tests/scanner/*: Update test cases
1702 2008-10-11 Colin Walters <walters@verbum.org>
1704 Bug 552858: versioning
1706 This is a big patch. You should probably remove your installation
1709 * docs/typelib-format.txt: Add nsversion entry which holds
1710 version of namespace.
1711 * girepository/girepository.h: Add 'version' parameter to
1712 g_irepository_require. This may be NULL. Normally
1713 bindings should pass an explicit version though.
1714 * girepository/girepository.c: Lots of infrastructure to
1715 support versioning. Add some more documentation. Disallow
1716 some usage of NULL namespaces.
1717 * girepository/girmodule.c: Add version parameter.
1718 * girepository/gtypelib.c: Update header size.
1719 * giscanner/ast.py: Add version to Namespace.
1720 * giscanner/girparser.py: Parse version attribute from
1721 XML, pass to Namespace.
1722 * giscanner/girwriter.py: Write out version parameter.
1723 * giscanner/transformer.py: Clean up include registration.
1724 * tests/*: Add version attribute.
1725 * tests/invoke/invoke.c: Don't try looking up test before
1726 it's loaded in repository.
1727 * tools/generate.c: Output version parameter.
1728 * gir/Makefile.am: Add 2.0 version to .gir files.
1730 2008-10-11 Colin Walters <walters@verbum.org>
1732 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1733 if we have mismatched parens.
1735 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1737 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1738 on 'members' variable.
1740 2008-10-11 Colin Walters <walters@verbum.org>
1742 Bug 555947 - update annotations syntax
1744 * giscanner/ast.py: Default to None for transfer. Remove
1745 default transfers for container types; we require this to
1747 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1748 'full' to match repository.
1749 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1750 * giscanner/transformer.py: Update for new annotations syntax.
1753 2008-10-11 Johan Bilien <jobi@litl.com>
1755 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1757 2008-10-11 Johan Bilien <jobi@litl.com>
1759 Bug 552347: Parse #defines constants
1761 * girepository/gtypelib.c: update the list of value_size
1762 with recently defined type tags
1763 * giscanner/scannerparser.y: brought back parsing of #defined, as
1764 present in older version
1765 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1766 * giscanner/girwriter.py: write out constant tags in the gir
1767 * giscanner/sourcescanner.py: add accessor for const_string
1768 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1771 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1773 Bug 555946: Install a test module exercising all types, transfer
1778 * tests/types/*: Add and install a test module that has functions
1779 accepting and returning most of the basic types to enable bindings
1780 implementors to more easily test their type conversion routines.
1782 2008-10-11 Jürg Billeter <j@bitron.ch>
1784 Bug 552374: Const strings should be identified in the gir.
1786 * giscanner/transformer.py: support string memory management
1787 * tests/scanner/foo.h: use char * and const char *
1788 * tests/scanner/foo-expected.gir: test that
1790 2008-10-11 Johan Dahlin <johan@gnome.org>
1792 * giscanner/girparser.py:
1793 Also parse enums which are not glib types.
1795 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1797 Bug 552370: add one more test for unsigned as a type, not as
1800 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1801 * test/scanner/foo.h: add function which uses unsigned as a type.
1802 * test/scanner/foo-expected.gir: test that.
1804 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1806 Bug 555712: Struct and union issues
1808 * giscanner/scannerparser.y (struct_declarator): Use information
1809 provided about the bit width of a field.
1810 * giscanner/transformer.py (Transformer._create_member): Pass the
1811 symbol's const_int member to the created field (it represents the
1813 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1814 field attribute, if present.
1815 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1816 width in bits of the field (only relevant for bitfields).
1819 * giscanner/transformer.py (Transformer._create_typedef_struct)
1820 (Transformer._create_typedef_union): Add calls to _create_struct()
1821 and _create_union(), respectively. This causes the scanner to
1822 generate output for fields of struct and union typedefs.
1825 2008-10-11 Jürg Billeter <j@bitron.ch>
1827 Bug 552370: unsigned not scanned properly
1829 * giscanner/scannerparser.y: combine basic types such as unsigned
1830 int and long long when scanning
1831 * tests/scanner/foo-expected.gir:
1832 * tests/scanner/foo.c: (foo_test_unsigned):
1833 * tests/scanner/foo.h: test that
1835 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1837 Bug 554854: The --typelib-xml and --inject options should reuse
1838 giscanner parser/writer.
1840 * giscanner/ast.py: add constructor list to Struct and Union.
1841 Add new param in Return's contructor to define transfer.
1842 * giscanner/girparser.py: several additions to the parser in order
1843 to have parsing all nodes of the gir xml files.
1844 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1845 and writer in --inject and --typelib-xml options.
1846 * giscanner/xmlwriter.py: ignore empty attributes instead of
1847 raising an error as this basically exposes a bug in GIRParser.
1848 This should be reverted as soon as the parser is fixed.
1850 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1852 Bug 552376: scanner generates wrong names for enum members when
1853 there's no defined gtype.
1855 * giscanner/utils.py (strip_common_prefix): Always strip common
1856 prefix exactly up to the last "_", and not beyond.
1857 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1858 here is that the first character after the last '_' should should be
1859 the same as the character in the same position on the type name.
1860 * tests/scanner/foo-expected.gir: test that
1862 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1864 Bug 555293: append library_paths to LPATH env variable to work
1865 around a bug in find_library when using ldconfig.
1867 * tools/g-ir-scanner (main): ditto.
1869 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1871 * girepository/girepository.c (register_internal): fix regression on
1872 invoke test case by making sure we load the global module in the
1873 typelib when dealing with inline typelibs.
1874 * girepository/gtypelib.c: a couple of coding style fixes.
1876 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1878 Bug 555294: Add support for multiple shared libraries per typelib.
1880 * girepository/ginvoke.c (g_function_info_invoke),
1881 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1882 g_typelib_symbol instead of g_module_symbol.
1883 * girepository/girepository.h: remove g_typelib_set_module and add
1885 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1886 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1887 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1888 modules instead of just one. The symbol lookup is now abstracted
1889 behind g_typelib_symbol which tries to find the passed symbol name in
1891 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1892 and write shared_library attribute as a comma-separated list of libs.
1894 2008-10-06 Colin Walters <walters@verbum.org>
1896 * giscanner/transformer.py: Parse length= annotation as
1897 a parameter name, not a raw int.
1900 2008-10-03 Colin Walters <walters@verbum.org>
1902 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1904 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1906 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1910 2008-10-03 Colin Walters <walters@verbum.org>
1912 Bug 554576: scan problem with ev_selection_render_selection()
1914 * giscanner/transformer.py: Only do type resolution once we've
1915 scanned all types. What could happen before is that we'd strip
1916 the namespace from local type "EvSelection" => Selection, and
1917 then later pull a "Selection" from some other namespace because
1918 we hadn't yet seen the local EvSelection. This could come
1919 down to hash table ordering and other things so not easy
1920 to write a test for.
1922 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1924 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1925 GLibEnumMember constructor as it should be the enum member nick.
1927 2008-10-02 Colin Walters <walters@verbum.org>
1929 Bug 552961: remove this parameter for methods
1931 * giscanner/glibtransformer.py: Delete this parameter; it is
1933 * girepository/ginvoke.c: Insert this parameter for methods.
1934 * girepository/gtypelib.c: Remove no longer needed verification of
1935 method this parameter.
1938 2008-09-30 Dan Winship <danw@gnome.org>
1940 Bug 554490: g-ir-scanner gets confused by '\\'
1942 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1943 backslashes so it will correctly parse '\\' and "\\"
1945 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1948 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1950 2008-10-02 Colin Walters <walters@verbum.org>
1952 bug 552393: Note variadic functions
1954 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1955 to use parameter_list directly.
1956 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1957 * giscanner/ast.py: Add Varargs type.
1958 * giscanner/transformer.py: Check for ellipsis symbol, transform
1960 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1961 Parse varargs functions, but filter them out before we start
1962 compiling the typelib.
1964 2008-10-02 Colin Walters <walters@verbum.org>
1966 Bug 554632: type tag for GType
1968 * girepository/girepository.h, girepository/girepository.c:
1969 Add type tag for GType - it's a special type we don't want
1970 to resolve to just "long".
1971 * docs/typelib-format.txt: Update.
1972 * girepository/girparser.c: Parse it.
1973 * giscanner/glibtransformer.py: Ensure we don't put GType in
1975 * tools/generate.c: Remove hardcoded type list.
1978 2008-09-30 Dan Winship <danw@gnome.org>
1980 Bug 554521: scanner generates wrong names for enum members with
1981 full type name prefix
1983 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1984 right amount when the entire "first" string is a prefix of
1987 * tests/scanner/foo.h (FooEnumFullname):
1988 * tests/scanner/foo-expected.gir: test that
1990 2008-09-29 Colin Walters <walters@verbum.org>
1992 Bug 552380: Array parameters should be marked in the gir
1994 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1995 uint8[]. Add Array, List, and Map subclasses of Type;
1996 these types can be generic. Return transfer defaults
1997 to true if return value is string or container type.
1998 Delete Sequence type.
1999 * giscanner/scannerlexer.l: Syntax change for annotations;
2000 use <> since it's more readable.
2001 * giscanner/girwriter.py: Write out these changes.
2002 * giscanner/girparser.py: Parse them.
2003 * giscanner/transformer.py: Have a defined set of
2004 both list and map types. When creating a type,
2005 check if the ctype we've parsed is one of them,
2006 if so create a container type subclass as appropriate.
2007 * girepository/girparser.c: Parse in generic types.
2010 2008-09-27 Colin Walters <walters@verbum.org>
2012 * tools/g-ir-scanner: Add --inject option.
2014 2008-09-25 Colin Walters <walters@verbum.org>
2016 Remove non-repository types from GIR
2018 * giscanner/ast.py: The canonical name is 'utf8', not
2020 * giscanner/glibast.py: A few more glib type mappings.
2021 * girepository/girparser.c: We only parse repository types.
2022 * tests/*.gir: Update.
2024 2008-09-23 Colin Walters <walters@verbum.org>
2026 Bug 552566: Add time_t type
2028 We need a type for time_t since it's special in C, and just
2029 mapping it to long precluded bindings from handling it
2032 2008-09-19 Colin Walters <walters@verbum.org>
2034 Bug 552390: Handle capitialization like "DBus" more robustly
2036 The to_underscores function was designed for use against prefixed
2037 names; we need a separate function which will convert names like
2038 DBusFoo into dbus_foo, not d_bus_foo.
2040 2008-09-19 Colin Walters <walters@verbum.org>
2042 Add check to make sure we're not hitting out unresolved types
2044 Validate the "this" argument for methods
2046 Remove heuristic matching of methods to classes based on prefix
2048 It was a broken hack that dated from when we handled underscoring
2049 and capitalization conventions less well.
2051 2008-09-18 Colin Walters <walters@verbum.org>
2053 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2055 On Darwin, the suffix for installed shared libraries (.dylib) is
2056 different from loadable modules (.so). We use a bit of magic shell
2057 script from Behdad Esfahbod to figure out the right suffix.
2059 2008-09-15 Johan Dahlin <johan@gnome.org>
2061 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2062 a wrapper for type_qualifier as well.
2064 2008-09-15 Colin Walters <walters@verbum.org>
2066 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2068 * giscanner/ast.py: Add deprecation attributes.
2069 * giscanner/girwriter.py: Write out deprecation data.
2070 * girepository/girparser.c: Relax parsing; deprecated
2071 attribute now includes freeform string.
2072 * giscanner/scannerlexer.l: Parse Deprecated.
2073 * giscanner/transformer.py: Look for deprecated attribute
2075 * tests/scanner/*: Add a Deprecated test.
2077 2008-09-14 Tor Lillqvist <tml@novell.com>
2079 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2081 2008-09-14 Colin Walters <walters@verbum.org>
2083 * giscanner/glibtransformer.py: Ignore functions with
2086 2008-09-12 Colin Walters <walters@verbum.org>
2088 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2090 2008-09-12 Colin Walters <walters@verbum.org>
2092 * giscanner/ast.py: Bind pid_t to INT for vte.
2094 2008-09-12 Colin Walters <walters@verbum.org>
2096 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2097 * giscanner/glibast.py: Avoid overwriting ctype.
2098 * giscsanner/transformer.py: Try resolving types using the GType names.
2100 2008-09-12 Colin Walters <walters@verbum.org>
2102 * giscanner/minixpath.py: Code to run an "XPath"
2103 assertion against an XML tree, taken from
2104 gir-repository/gir/tests.py.
2105 * giscanner/Makefile.am: Ship it.
2106 * tools/g-ir-scanner: Add --xpath-assertions option.
2107 * gir/GLib-assertions.txt: Add a few assertions.
2108 * gir/Makefile.am: Run them.
2110 2008-09-11 Colin Walters <walters@verbum.org>
2112 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2114 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2115 prefix if it ends with _. Tweak callback stripping to determine
2116 based on presence of _ whether we need to use strip_namespace_func
2117 or strip_namespace_object.
2119 2008-09-09 Owen Taylor <otaylor@redhat.com>
2121 * docs/typelib-format.txt: Wether => Whether
2123 2008-09-08 Colin Walters <walters@verbum.org>
2125 * girepository/girparser.c: Default to "readable" for properties.
2126 * giscanner/ast.py: Add readable, writable etc.
2127 * giscanner/girwriter.py: Writ them.
2128 * giscanner/glibtransformer.py: Inspect them.
2131 2008-09-07 Colin Walters <walters@verbum.org>
2133 * giscanner/cgobject.py: Add comment.
2135 2008-09-07 Colin Walters <walters@verbum.org>
2137 * giscanner/cgobject.py: Also call g_thread_init.
2139 2008-09-07 Colin Walters <walters@verbum.org>
2141 * giscanner/transformer.py: Fix regression by not
2142 stripping prefix before stripping namespace for unions
2145 2008-09-06 Colin Walters <walters@verbum.org>
2147 * giscanner/transformer.py: If a namespace contains
2148 multiple caps, try stripping both gnomekeyring_ and
2151 2008-09-07 Johan Dahlin <johan@gnome.org>
2153 Bug 551162 – giscanner does not recognize asm and __asm__
2154 * giscanner/scannerlexer.l:
2155 Patch by Jani Monoses.
2157 2008-09-06 Colin Walters <walters@verbum.org>
2159 * girepository/girnode.c: Allow gtype_name
2160 and gtype_init in struct and union.
2161 * girepository/girparser.c: Parse glib:
2162 boxed bits for both structure and union.
2163 * girepository/gtypelib.c: Don't barf
2164 if structure is boxed.
2165 * giscanner/girparser.py: Parse new XML
2167 * giscanner/girwriter.py: Write out new
2169 * giscanner/glibast.py: Define new classes
2170 which are both Boxed and Struct/Union, as
2171 well as an "Other" for everything else.
2172 * giscanner/glibtransformer.py: Handle
2173 boxed types specially; we try to merge
2174 them with a struct/union if one exists,
2175 otherwise fall back to generic boxed.
2177 * tools/generate.c: Write out new format.
2179 2008-09-06 Johan Dahlin <johan@gnome.org>
2181 * giscanner/grealpath.h: Include stdlib.h
2183 * docs/g-ir-generate.1: Remove leading %
2185 2008-09-01 Colin Walters <walters@verbum.org>
2187 * girepository/girparser.c: Look at c:type to determine
2188 whether or not an item is a pointer.
2190 2008-09-01 Johan Dahlin <johan@gnome.org>
2192 * tests/scanner/Makefile.am:
2193 Set PYTHONPATH so the scanner can run
2194 even if you didn't install anything.
2196 2008-09-01 Johan Dahlin <johan@gnome.org>
2199 Post-release version bump
2202 2008-09-01 Johan Dahlin <johan@gnome.org>
2206 2008-08-31 Colin Walters <walters@verbum.org>
2208 * giscanner/glibtransformer.py: Quiet info
2211 2008-08-31 Johan Dahlin <johan@gnome.org>
2214 Bump version to 0.5.0
2216 2008-08-31 Colin Walters <walters@verbum.org>
2218 * giscanner/glibtransformer.py: Follow aliases to ensure
2219 we don't get a constructor returning a basic type.
2220 * giscanner/transformer.py: Add function to follow aliases.
2223 2008-08-31 Johan Dahlin <johan@gnome.org>
2225 * giscanner/scannerlexer.l:
2226 * giscanner/scannerparser.y:
2227 * giscanner/sourcescanner.h:
2228 * giscanner/sourcescanner.py:
2229 Parse GCC extensions in the parser instead of just undeffing them
2230 in the pre-processor.
2232 2008-08-31 Johan Dahlin <johan@gnome.org>
2234 * giscanner/glibtransformer.py:
2235 Clean up a huge if. Do not add methods or constructors
2237 * giscanner/utils.py:
2238 second might be longer than first, check that.
2240 2008-08-31 Johan Dahlin <johan@gnome.org>
2245 2008-08-31 Colin Walters <walters@verbum.org>
2247 * girepository/girparser.c: Don't lose if we
2250 2008-08-31 Colin Walters <walters@verbum.org>
2252 * giscanner/glibtransformer.py: Look for libtool
2253 library in current directory
2254 * tests/scanner - Update.
2256 2008-08-30 Colin Walters <walters@verbum.org>
2258 * docs/typelib-format.txt: Add a guint32
2260 * gir/Makefile.am: Dep on Makefile
2261 * girepository/ginfo.c:
2262 * girepository/girepository.c: Clean up
2263 default typelib handling; remove global
2264 default_typelib variable. Ensure we handle
2265 NULL repository in more places.
2266 Support dependency resolution.
2267 Support lazy loading.
2268 * girepository/girepository.h: Remove
2269 g_irepository_unregister; we don't support
2270 unloading typelibs since really they're
2271 process-global. Update for lazy loading
2273 * girepository/girmodule.c: Use g_new0.
2274 Add dependencies to GirModule.
2275 * girepository/girparser.c: Parse dependencies.
2276 * girepository/gtypelib.c: Add 4 bytes for
2278 * tests/Makefile.am: Kill off gobject.gir,
2279 it conflicts with the real one.
2280 * tests/object.gir: Dep on GObject.
2281 * tools/generate.c: Take --includedir
2282 argument to say which directories to search
2283 for typelibs. Print out dependencies.
2285 2008-08-30 Colin Walters <walters@verbum.org>
2287 * giscanner/glibtransformer.py: Reduce warning noise.
2289 2008-08-29 Colin Walters <walters@verbum.org>
2291 * girepository/ginfo.c: Add some assertions regarding
2292 refcounts, just to be sure.
2293 * giscanner/glibtransformer.py: Blacklist a few more
2296 2008-08-29 Colin Walters <walters@verbum.org>
2298 * giscanner/glibtransformer.py: Blacklist a few
2299 functions that use GError oddly
2301 2008-08-29 Colin Walters <walters@verbum.org>
2303 * girepository/gtypelib.c: Don't crash if no
2306 2008-08-29 Colin Walters <walters@verbum.org>
2308 * girepository/girparser.c: Handle chains of aliases
2309 across modules by ensuring we fully qualify aliases
2312 2008-08-29 Colin Walters <walters@verbum.org>
2314 * girepository/girparser.c: Don't search aliases
2317 2008-08-29 Colin Walters <walters@verbum.org>
2319 * girepository/girparser.c: Rewrite type parsing
2320 to handle both GLib parsing case as well as correctly
2321 handling GLib.List and friends. Don't try to treat
2322 e.g. ListStore as a List.
2324 2008-08-29 Colin Walters <walters@verbum.org>
2326 * girepository/gtypelib.c: Add more context
2329 2008-08-29 Colin Walters <walters@verbum.org>
2331 * giscanner/glibtransformer.py: Add some informative
2332 logging messages in corner cases. Be sure we use
2333 the most recent node set instead of a cache
2334 when generating result set.
2335 * tests/: Remove duplicated bits in expected girs
2336 * girepository/girparser.c: Accept both List (for
2337 compiling GLib) and GLib.List (what the scanner
2340 * tools/generate.c: Generate canonical form.
2342 2008-08-29 Johan Dahlin <johan@gnome.org>
2344 * giscanner/config.py.in:
2345 Use datarootdir instead of datadir to avoid
2346 an autoconf warning.
2348 2008-08-29 Johan Dahlin <johan@gnome.org>
2352 * examples/gdk-pixbuf.gidl:
2354 Update and remove old cruft.
2356 2008-08-29 Johan Dahlin <johan@gnome.org>
2359 * docs/g-ir-compiler.1:
2360 * docs/g-ir-generate.1:
2361 * docs/g-ir-scanner.1:
2362 Add man pages for the generator and compiler.
2364 2008-08-29 Johan Dahlin <johan@gnome.org>
2366 * docs/g-ir-scanner.1: Document
2368 * giscanner/Makefile.am:
2369 * giscanner/gidlparser.py:
2370 * giscanner/gidlwriter.py:
2371 * tools/g-ir-scanner:
2372 Remove gidl support.
2374 2008-08-28 Colin Walters <walters@verbum.org>
2376 * tests/scanner/Makefile.am: Pass the right
2377 --includedir args. Add a Makefile dep.
2378 * tools/compiler.c: Pass includedirs down.
2379 * girepository/girparser.c: Actually put
2380 includedirs in context, pass down. Fix
2383 2008-08-28 Colin Walters <walters@verbum.org>
2385 * gir/Makefile.am: Use --includedir
2386 * girepository/girparser.c: Recursively parse
2387 includes to pull in aliases and expand them.
2388 We need this to avoid putting unknown names in
2390 * tools/compiler.c: Add --includedir option.
2391 * giscanner/ast.py: Map size/ssize to types
2394 2008-08-28 Tor Lillqvist <tml@novell.com>
2396 Make check now runs successfully on Windows.
2398 * tools/compiler.c (write_out_typelib): Use binary mode for output
2401 * girepository/girnode.c: Don't print NULL strings.
2403 * tests/invoke/Makefile.am
2404 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2405 convince libtool to build shared libraries.
2407 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2408 g_assert() instead of printing out expected errors.
2410 2008-08-28 Tor Lillqvist <tml@novell.com>
2412 * girepository/gtypelib.h: Change type of bitfield fields from
2413 guint to the most suitable smaller type. This makes the struct
2414 sizes match the ones on Linux that the sanity check expects when
2415 using gcc -mms-bitfields on Windows.
2417 2008-08-28 Johan Dahlin <johan@gnome.org>
2422 * giscanner/Makefile.am:
2423 * tests/Makefile.am:
2424 * tests/scanner/Makefile.am:
2425 Make distcheck pass.
2427 2008-08-27 Johan Dahlin <johan@gnome.org>
2429 * giscanner/Makefile.am:
2430 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2432 2008-08-27 Tor Lillqvist <tml@novell.com>
2434 Make g-ir-scanner work on Windows. Still problems with the typelib
2435 code. Changes okayed by jdahlin.
2437 * configure.ac: Check for Windows, set Automake conditional
2438 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2439 avoid shell quoting issues
2441 * girepository/Makefile.am: Use -no-undefined so that libtool
2442 agrees to build a shared library on Windows.
2444 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2445 Windows. Empty implementation on Windows so far.
2447 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2448 informative error message for the assertion failures. Tell also
2449 what the expected size of the struct is. Check all sizes first and
2450 fail afterwards if at least one size was different from expected.
2452 * tools/Makefile.am: Reorder libraries into proper logical
2455 * tools/generate.c: Don't include <dlfcn.h>, not used.
2457 * giscanner/Makefile.am: On Windows, link with the Python library,
2458 and install the module DLL as _giscanner.pyd. Remove the
2459 unnecessary import library and libtool library that libtool has
2462 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2463 and just skip it. Recognize also two "l" suffixes for long long
2464 constants. Recognize also __inline__.
2466 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2467 GetFullPathName(). As such, GetFullPathName() does more than the
2468 UNIX realpath(). It also changes relative paths into absolute
2469 paths. But for our purposes that shouldn't matter.
2471 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2472 Windows the file descriptor passed to us is from Python. Python
2473 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2474 uses msvcrt.dll. On Windows, file descriptors are specific to
2475 which C library is used. So we must find out what underlying OS
2476 handle corresponds to the file descriptor Python passes us, and
2477 then make that into a file descriptor valid for the C library this
2480 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2481 __attribute__ as the lexer now handles it. The definition as empty
2482 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2483 __attribute__. Close the temp file before unlinking it.
2485 * giscanner/cgobject.py: Use correct library name for the gobject
2488 * gir/Makefile.am: Must pass the full basename of the DLLs on
2489 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2490 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2491 reality they won't change, until there is a GLib 3, and then also
2492 the Unix code here needs changing.
2494 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2497 2008-08-26 Colin Walters <walters@verbum.org>
2499 * girepository/girepository.c: Search
2500 $DATADIR/girepository instead of
2501 $DATADIR/gitypelibs; this naming makes
2502 it clearer that e.g. jgir can install
2504 * gir/Makefile.am: Install there.
2506 2008-08-26 Colin Walters <walters@verbum.org>
2508 * girepository/gtypelib.c (_g_typelib_init): Also
2509 use G_MODULE_SUFFIX instead of hardcoding .so.
2511 2008-08-26 Colin Walters <walters@verbum.org>
2513 * girepository/gtypelib.c (_g_typelib_init): Free
2514 string in the right place.
2516 2008-08-26 Colin Walters <walters@verbum.org>
2518 * girepository/gtypelib.c (_g_typelib_init): Handle
2519 both .la and .so names; this works better in the
2520 uninstalled library case.
2522 2008-08-26 Johan Dahlin <johan@gnome.org>
2525 * giscanner/Makefile.am:
2526 * giscanner/cgobject.py:
2527 * giscanner/config.py.in:
2528 * giscanner/sourcescanner.py:
2529 Avoid undeffing __GNUC__, instead define
2530 __attribute__ & friends. Remove glibconfig.h hack.
2531 This makes gobject-introspection work better on
2532 MacOS X, Thanks to Richard Hult for kind help.
2534 2008-08-25 Colin Walters <walters@verbum.org>
2536 * giscanner/glibtransformer.py: Always print
2539 2008-08-25 Colin Walters <walters@verbum.org>
2541 * giscanner/glibtransformer.py: Skip over
2542 interfaces we don't know.
2544 2008-08-25 Colin Walters <walters@verbum.org>
2546 * girepository/girparser.c: Parse new implements
2547 syntax, drop gapi one.
2548 * tests/object.gir: Update.
2549 * tools/generate.c: Generate new syntax.
2551 2008-08-25 Colin Walters <walters@verbum.org>
2553 * giscanner/ast.py: Add interfaces property
2555 * giscanner/girwriter.py: Write out implemented
2557 * giscanner/glibtransformer.py: Introspect
2558 implemented interfaces.
2559 * tests/scanner/*: Make FooObject implement
2562 2008-08-25 Colin Walters <walters@verbum.org>
2564 * giscanner/glibtransformer.py: More correctly pair
2565 methods; if we have a symbol that starts with
2566 e.g. hippo_canvas look for a matching HippoCanvas
2567 class before accepting e.g. HippoCanvasImage.
2569 2008-08-24 Colin Walters <walters@verbum.org>
2571 * tools/g-ir-scanner: Filter out unknown options from
2574 2008-08-24 Colin Walters <walters@verbum.org>
2576 * giscanner/glibtransformer.py: Fail with better
2577 error if we can't find library.
2579 2008-08-24 Colin Walters <walters@verbum.org>
2581 * tools/g-ir-scanner: Use subprocess instead of
2582 commands, works on Windows and avoids the evil
2585 2008-08-24 Colin Walters <walters@verbum.org>
2587 * giscanner/glibtransformer.py: Skip over
2588 g_object_get_type from GLib trunk.
2590 2008-08-24 Colin Walters <walters@verbum.org>
2592 * girepository/girepository.c (g_irepository_require):
2593 Don't open shared library here; we already do it
2596 2008-08-24 Colin Walters <walters@verbum.org>
2598 * girepository/gtypelib.c: Add context stack so
2599 when we get an error we can print out nicely
2602 2008-08-24 Johan Dahlin <johan@gnome.org>
2604 * girepository/girparser.c (start_glib_boxed), (start_function),
2605 (start_field), (start_alias):
2606 Refactor a couple of parsing functions to be simpler to follow.
2609 2008-08-24 Johan Dahlin <johan@gnome.org>
2611 * girepository/girparser.c (start_function):
2612 Remove left-over code, checking type of function.
2614 2008-08-23 Colin Walters <walters@verbum.org>
2616 * giscanner/config.py: Define DATADIR.
2617 * giscanner/transformer.py: Look in DATADIR.
2619 2008-08-23 Colin Walters <walters@verbum.org>
2621 * girepository/gtypelib.c: Check constructor
2623 * girepository/girnode.c: Small tweaks.
2624 * girepository/ginfo.c: Calculate signature offsets
2626 * girepository/girparser.c: Remove duplicate
2628 * giscanner/glibtransformer.py: Avoid marking
2629 functions which return a basic type as
2632 2008-08-23 Colin Walters <walters@verbum.org>
2634 * girepository/girparser.c: Ignore <include>.
2635 * giscanner/girparser.py: Parse them.
2636 * giscanner/girwriter.py: Generate them.
2637 * giscanner/transformer.py: Process <include>
2638 recursively. Don't require full path for
2639 includes, look in {$XDG_DATA_DIRS}/gir.
2640 * tools/g-ir-scanner: Pass through includes.
2641 * Makefile.am: Remove extra --include
2643 * *-expected.gir: Add expected includes.
2645 2008-08-23 Johan Dahlin <johan@gnome.org>
2647 * tests/scanner/Makefile.am:
2648 * tests/scanner/annotation-expected.gir:
2649 * tests/scanner/drawable-expected.gir:
2650 Avoid duplication in the Makefile, regenerate with new
2651 namespaces (same as the filename)
2653 2008-08-22 Colin Walters <walters@verbum.org>
2655 * girepository/girnode.c: Don't hardcode integers,
2658 2008-08-22 Johan Dahlin <johan@gnome.org>
2660 * giscanner/sourcescanner.py:
2661 Check for ../gobject-introspection-1.0.pc.in to determine
2662 if we run installed or uninstalled.
2664 2008-08-22 Johan Dahlin <johan@gnome.org>
2667 * giscanner/sourcescanner.py:
2668 Send in undefs/defines via writing it directly to stdin
2669 of cpp instead of via arguments.
2671 2008-08-22 Colin Walters <walters@verbum.org>
2673 * tools/generate.c, tools/compiler.c: Default
2675 * all Makefile.am: Update.
2677 2008-08-22 Colin Walters <walters@verbum.org>
2679 * girepository/girparser.c: Pass through
2680 recursive types. Avoid overwriting errors.
2681 * giscanner/xmlwriter.py: Always write the
2683 * tests/*.gir: Adjust.
2684 * tests/scanner/Makefile.am: Build typelibs,
2685 and generate XML from those. Once we
2686 have a good diff mechanism...
2687 * tests/scanner/*-expected.gir: Add XML
2689 * tools/g-ir-scanner: Accept --typelib-xml
2691 * tools/generate.c: Better defaults for transfer.
2693 2008-08-22 Johan Dahlin <johan@gnome.org>
2697 * giscanner/Makefile.am:
2698 * giscanner/config.py.in:
2699 * giscanner/sourcescanner.py:
2700 Use the generated glibconfig.h for all scanner invokations.
2701 Rename it to glibconfig-scanner.h and install it.
2702 Add a config.py which so far contains the include dir.
2704 2008-08-22 Johan Dahlin <johan@gnome.org>
2707 Replace glibconfig.h with our own, do some replacement
2708 for CPP/C features we do not support
2710 2008-08-22 Colin Walters <walters@verbum.org>
2712 * tools/generate.c (write_callable_info): Fix unref
2715 2008-08-22 Colin Walters <walters@verbum.org>
2717 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2718 * tests/Makefile.am: Support $(DEBUG)
2719 * tools/generate.c: Do immediate close tags if no
2722 2008-08-21 Colin Walters <walters@verbum.org>
2724 * tests/scanner/drawable-expected.gir,
2725 * tests/scanner/drawable.c,
2726 * tests/scanner/drawable.h:
2729 2008-08-21 Colin Walters <walters@verbum.org>
2731 * giscanner/glibtransformer.py: Compute prefix
2732 by searching through the symbol for bits
2733 rather than going directly from ctype; this fixes
2736 2008-08-21 Colin Walters <walters@verbum.org>
2738 * giscanner/glibtransformer.py: Also try squashing
2739 underscores from namespace, fixes webkit_web_view_new.
2741 2008-08-21 Colin Walters <walters@verbum.org>
2743 * giscanner/glibtransformer.py: More ctor work,
2744 avoid having gtk_window_group_new end up under
2747 2008-08-21 Colin Walters <walters@verbum.org>
2749 * giscanner/glibtransformer.py: Much simpler approach
2750 of mapping uscored names to classes.
2751 * giscanner/utils.py: Remove unnecessary function.
2753 2008-08-21 Johan Dahlin <johan@gnome.org>
2755 * girepository/girepository.c (g_irepository_require):
2756 Plug memory leak and avoid using freed memory.
2757 Resolve the whole module path, here as well.
2759 2008-08-21 Colin Walters <walters@verbum.org>
2761 * giscanner/glibtransformer.py: Look up all permutations
2762 of class names when scanning methods/ctors based on
2763 the prefix instead of using the return value. This
2764 associates gtk_window_new with the right class.
2766 2008-08-21 Colin Walters <walters@verbum.org>
2768 * girepository/girmodule.c (g_ir_module_build_typelib):
2769 Revert change to increment header_size; we do that in
2772 2008-08-21 Colin Walters <walters@verbum.org>
2774 * girepository/girnode.c (write_string): Tweak to
2775 use UINT instead of INT. Not likely to matter.
2776 * girepository/girmodule.c (g_ir_module_build_typelib):
2777 Add to header_offset as well for header strings
2778 to match what write_string does.
2779 * girepository/gtypelib.c: Replace is_name with
2780 validate_name, which more strongly validates and
2781 handles errors in a better way. Update all callers.
2782 * giscanner/glibtransformer.py: Handle constructors
2785 2008-08-21 Johan Dahlin <johan@gnome.org>
2787 * gir/Makefile.am (typelibs_DATA): Build and
2788 install the Gio.typelib too
2790 * girepository/gtypelib.c (_g_typelib_init):
2791 Use g_module_build_path to resolve the shlib name
2793 2008-08-21 Colin Walters <walters@verbum.org>
2795 * gir/Makefile.am: CLEANFILES typelibs too.
2797 2008-08-21 Johan Dahlin <johan@gnome.org>
2799 * giscanner/glibtransformer.py:
2800 Do not send .la files through find_library.
2802 2008-08-21 Colin Walters <walters@verbum.org>
2804 * girepository/girparser.c (g_irepository_require):
2805 Fix one small leak in error case.
2807 2008-08-21 Johan Dahlin <johan@gnome.org>
2810 Parse glibconfig.h as well and install the compiled
2813 2008-08-21 Johan Dahlin <johan@gnome.org>
2816 * giscanner/glibtransformer.py:
2817 * tools/g-ir-scanner:
2818 Do not hard-core library names in the Makefile, reuse
2819 ctypes find_library instead.
2821 2008-08-21 Johan Dahlin <johan@gnome.org>
2823 * girepository/girparser.c (resolve_aliases):
2824 Remove compilation warnings
2826 2008-08-21 Johan Dahlin <johan@gnome.org>
2828 * girepository/girepository.c (g_irepository_require):
2829 Rewrap and fix double free bug by leaking a bit.
2831 2008-08-20 Colin Walters <walters@verbum.org>
2833 * girepository/girepository.c: Add new function
2834 g_irepository_get_typelib_path which tells
2835 us from where we loaded a namespace.
2837 2008-08-20 Colin Walters <walters@verbum.org>
2839 * tests/scanner/*-expected.gir: Adjust for
2840 added shared-library.
2841 * giscanner/giwriter.py: Make pylint happy.
2843 2008-08-20 Colin Walters <walters@verbum.org>
2845 * girepository/girmodule.c (g_ir_module_build_typelib):
2846 Calculate size correctly, avoid use-after-free.
2848 2008-08-20 Colin Walters <walters@verbum.org>
2850 * girepository/girepository.c: Remove
2851 g_irepository_register_file in favor of
2852 g_irepository_require. There are two
2853 possible deployment scenarios for typelibs:
2854 First, separate in $DATADIR/gitypelibs/. Second,
2855 they may be embedded in shlibs. However since
2856 the first is now the normal case, the API is
2857 optimized around it.
2859 Refactor internals to look up typelibs for
2860 namespaces just-in-time, but we expect
2861 consumers to call g_irepository_require.
2863 Also, add some docs. No one has died from that
2865 * gir/Makefile.am: Need --library for glib.
2866 * giscanner/girwriter.py: Write out shared-library.
2867 * tools/g-ir-writer: Take the first --library
2868 argument as the target of shared-library. In
2869 the future we should make this nicer with pkg-config
2872 2008-08-20 Colin Walters <walters@verbum.org>
2874 * girepository/girparser.py: And parse them.
2876 2008-08-20 Johan Dahlin <johan@gnome.org>
2878 * giscanner/glibast.py: Add gshort/gushort types
2880 2008-08-20 Colin Walters <walters@verbum.org>
2882 * gir/Makefile.am: Rename .gir files using GI namespace.
2883 * girepository/girepository.c: Use XDG_DATA_DIRS for
2884 looking up typelibs. Also typelibs are now suffixed
2886 * tests/invoke/Makefile.am: Only use metadata.
2887 * girepository/Makefile.am: Remove unnecessary include.
2888 * tests/scanner/Makefile.am: Update using GI namespaces
2889 for scanner includes.
2891 2008-08-20 Colin Walters <walters@verbum.org>
2893 * girepository/transformer.py: Suppress aliases whose
2895 * girepository/ast.py: Define some more aliases.
2897 2008-08-20 Colin Walters <walters@verbum.org>
2899 * girepository/girparser.c: Avoid alias infloops.
2901 2008-08-20 Colin Walters <walters@verbum.org>
2903 * tests/scanner/foo-expected.gir: Fix expected list type.
2905 2008-08-20 Johan Dahlin <johan@gnome.org>
2907 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2908 Add a workaround for #548689.
2909 We can now compile gtk!
2911 2008-08-20 Colin Walters <walters@verbum.org>
2913 * giscanner/glibtransformer.py: Try to look up
2914 aliases using the c:type too.
2916 2008-08-20 Colin Walters <walters@verbum.org>
2918 * girepository/girparser.c: Parse union fields.
2920 2008-08-20 Johan Dahlin <johan@gnome.org>
2922 * giscanner/ast.py: Make time_t an alias for long
2924 * gir/gio-2.0-good.gir:
2925 * gir/glib-2.0-good.gir:
2926 * gir/gobject-2.0-good.gir:
2928 * giscanner/glibtransformer.py:
2929 Do not delete Class structures, we need them in gdk/gtk.
2930 * tests/scanner/drawable-expected.gir:
2931 * tests/scanner/foo-expected.gir:
2932 * tests/scanner/utility-expected.gir:
2935 2008-08-20 Johan Dahlin <johan@gnome.org>
2937 * tests/scanner/Makefile.am:
2938 * tests/scanner/annotation-expected.gir:
2939 * tests/scanner/annotation.c (annotation_object_class_init),
2940 (annotation_object_init), (annotation_object_method),
2941 (annotation_object_in), (annotation_object_out),
2942 (annotation_object_inout), (annotation_object_inout2),
2943 (annotation_object_inout3), (annotation_object_calleeowns),
2944 (annotation_object_calleesowns), (annotation_object_get_strings),
2945 (annotation_object_with_voidp), (annotation_object_get_objects),
2946 (annotation_object_create_object), (annotation_object_allow_none):
2947 * tests/scanner/annotation.h:
2948 * tests/scanner/foo-expected.gir:
2949 * tests/scanner/foo.c:
2950 * tests/scanner/foo.h:
2951 Split out annotation tests out of foo
2953 2008-08-20 Johan Dahlin <johan@gnome.org>
2955 * tests/scanner/Foo-expected.gir:
2956 * tests/scanner/Makefile.am:
2957 * tests/scanner/foo-expected.gir:
2958 * tests/scanner/foo-object.h:
2959 * tests/scanner/foo.c:
2960 Foo->foo, foo-object.h -> foo.h
2962 2008-08-20 Johan Dahlin <johan@gnome.org>
2964 * tests/scanner/Foo-expected.gir:
2965 * tests/scanner/Makefile.am:
2966 * tests/scanner/drawable-expected.gir:
2967 * tests/scanner/drawable.c (test_drawable_class_init),
2968 (test_drawable_init):
2969 * tests/scanner/drawable.h:
2970 * tests/scanner/foo-object.h:
2971 * tests/scanner/foo.c (foo_boxed_method):
2972 Move the drawable parts out of Foo to its own test.
2974 2008-08-20 Johan Dahlin <johan@gnome.org>
2976 * tests/scanner/Foo-expected.gir:
2977 * tests/scanner/foo-object.h:
2978 * tests/scanner/foo.c (foo_drawable_class_init),
2979 (foo_drawable_init):
2980 Add a based on GdkDrawable which generates
2983 2008-08-19 Colin Walters <walters@verbum.org>
2985 * giscanner/transformer.py: Don't try
2986 to strip prefix before namespace.
2988 2008-08-19 Johan Dahlin <johan@gnome.org>
2990 * giscanner/transformer.py:
2991 * tests/scanner/Foo-expected.gir:
2992 * tests/scanner/foo-object.h:
2993 Add support for typedef void foo type of
2996 2008-08-19 Johan Dahlin <johan@gnome.org>
2999 * giscanner/girwriter.py:
3000 * giscanner/glibtransformer.py:
3001 * giscanner/transformer.py:
3002 * tests/scanner/Foo-expected.gir:
3003 Add basic support for union, base the code much
3004 on Struct. Add a testcase.
3006 2008-08-19 Johan Dahlin <johan@gnome.org>
3008 * tests/scanner/Foo-expected.gir:
3009 * tests/scanner/foo-object.h:
3010 Add a union testcase which the compiler currently
3013 2008-08-19 Johan Dahlin <johan@gnome.org>
3015 * gobject-introspection-1.0.pc.in:
3016 Add a g_ir_compiler variable
3018 2008-08-19 Colin Walters <walters@verbum.org>
3020 * giscanner/ast.py: Rework types to be more closely
3022 * giscanner/girparser.py: Parse more bits.
3023 * giscanner/girwriter.py: Write sequences in a new
3024 way that specifies container type.
3025 * giscanner/glibast.py: Adjust for ast.py changes,
3026 add 'ctype' property to GLibObject and GLibInterface
3027 so we can look things up by it later.
3028 * gicanner/transformer.py: Names is new class holding
3029 the various namespaces we manage. Do not confuse
3030 with Namespace which is toplevel XML node effectively.
3031 Rework all type resolution to go through
3032 _resolve_type_name_1.
3033 * giscanner/glibtransformer.py: Raise UnknownTypeError
3034 instead of ValueError for cleanliness. Add Unresolved
3035 class to mark types whose parent we haven't seen yet.
3036 Use new Names object from transformer.py.
3037 Correctly look up parent=.
3038 Fix type validation to handle sequences.
3039 * tests/scanner/Foo-expected.gir: Update for sequence
3040 work, int instead of int32.
3041 * tools/g-ir-scanner: Add --noclosure option
3042 * gir/Makefile.am: Use --noclosure by default for
3045 2008-08-18 Johan Dahlin <johan@gnome.org>
3047 * gir/gio-2.0-good.gir:
3048 * gir/glib-2.0-good.gir:
3049 * gir/gobject-2.0-good.gir:
3052 2008-08-18 Johan Dahlin <johan@gnome.org>
3055 * giscanner/girparser.py:
3056 * giscanner/girwriter.py:
3057 * giscanner/glibast.py:
3058 * giscanner/glibtransformer.py:
3059 * giscanner/transformer.py:
3060 * tests/scanner/Foo-expected.gir:
3061 * tests/scanner/foo-object.h:
3062 * tests/scanner/utility-expected.gir:
3063 * tests/scanner/utility.h:
3064 Redo type resolving and validation.
3065 Add a couple of new tests.
3066 Patch mostly written by Colin.
3068 2008-08-18 Johan Dahlin <johan@gnome.org>
3071 * giscanner/girparser.py:
3073 * giscanner/transformer.py:
3074 Improve enum parsing for enums without a GType.
3075 Make flags/enum references to other girs work
3076 * giscanner/utils.py:
3078 * tests/scanner/Makefile.am:
3079 * tests/scanner/foo-object.h:
3080 * tests/scanner/utility-expected.gir:
3081 * tests/scanner/utility.h:
3082 Add a new test for external enum references
3084 2008-08-18 Johan Dahlin <johan@gnome.org>
3086 * docs/global-module-registry.txt: Update
3088 * tests/array.gir: Update with new type proposal
3090 * girepository/girepository.c (g_type_tag_to_string):
3091 * girepository/girepository.h:
3092 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3094 * girepository/girnode.h:
3095 Make enum serializing functions public. Clean up some whitespace.
3097 2008-08-17 Johan Dahlin <johan@gnome.org>
3099 * docs/global-module-registry.txt:
3100 Add a document for an on disk module registry format
3102 2008-08-17 Johan Dahlin <johan@gnome.org>
3105 * gir/gio-2.0-good.gir:
3108 2008-08-17 Johan Dahlin <johan@gnome.org>
3111 * gir/glib-2.0-good.gir:
3112 * gir/gobject-2.0-good.gir:
3113 * giscanner/cgobject.py:
3114 * giscanner/glibtransformer.py:
3115 Regenerate GObject & GType.
3116 Avoid warnings when generating gobject-2.0.gir.
3117 Introspect a little more, and skip *_get_type functions.
3119 2008-08-17 Colin Walters <walters@verbum.org>
3121 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3122 Rename to -good, always generate during build.
3123 * gir/Makefile.am: Ensure .gir files dep on
3124 all scanner sources.
3125 * Makefile.am: Switch build order to ensure
3126 the scanner is ready before we do gir/.
3127 * tools/g-ir-scanner: Look for .git too.
3129 2008-08-17 Johan Dahlin <johan@gnome.org>
3131 * girepository/gtypelib.c (validate_enum_blob):
3132 * giscanner/glibtransformer.py:
3133 * giscanner/transformer.py:
3134 Remove resolve_possible_typedefs, it was unused.
3135 Allow multiple enum values of the sample value in an enum,
3136 since it's actually pretty common.
3137 Register enums so they can be resolved too.
3139 2008-08-16 Johan Dahlin <johan@gnome.org>
3141 * giscanner/girparser.py:
3142 Parse enumeration/bitfield.
3144 2008-08-16 Johan Dahlin <johan@gnome.org>
3146 * giscanner/girparser.py:
3149 2008-08-16 Johan Dahlin <johan@gnome.org>
3151 * giscanner/glibtransformer.py:
3152 Resolve type names for alias targets
3153 * giscanner/transformer.py:
3154 Skip FILE* parameters fow now
3156 2008-08-16 Johan Dahlin <johan@gnome.org>
3159 * gir/gobject-2.0.gir:
3162 * tests/scanner/Makefile.am:
3165 2008-08-15 Colin Walters <walters@verbum.org>
3167 * giscanner/glibtransformer.py: Explicitly construct
3168 new list, since we're deleting as we iterate.
3169 Don't delete all structures which end in Class; just
3170 ones which have a paired GObject.
3171 Fix printing of type warning.
3172 * giscanner/transformer.py: Make strip_namespace_object
3173 be the identity function if it doesn't match the
3176 2008-08-15 Colin Walters <walters@verbum.org>
3178 * giscanner/cgobject.py: Define yet more argument
3179 prototypes; fix prototype for g_type_fundamental.
3181 2008-08-14 Johan Dahlin <johan@gnome.org>
3183 * tests/Makefile.am:
3184 * tests/constant.gir:
3185 * tests/gobject.gir:
3187 * tools/generate.c (write_struct_info):
3188 Fix generator for constant/gobject/struct
3190 2008-08-14 Johan Dahlin <johan@gnome.org>
3192 * tests/Makefile.am:
3194 * tools/generate.c (write_enum_info):
3195 Fix generation of enum/bitfields
3197 2008-08-14 Johan Dahlin <johan@gnome.org>
3199 * girepository/girparser.c (start_field), (start_constant),
3200 (start_type), (end_element_handler):
3201 Clear up constant parsing
3206 * tools/generate.c (write_callable_info), (write_function_info),
3207 (write_callback_info), (write_constant_info), (write_signal_info),
3208 (write_vfunc_info), (write_property_info), (write_object_info),
3209 (write_interface_info):
3210 Constants/Signals are handled now.
3212 2008-08-14 Johan Dahlin <johan@gnome.org>
3214 * girepository/girparser.c (start_type):
3215 Don't require c:type.
3216 * tests/Makefile.am:
3219 Update, remove parts we don't support yet
3220 * tests/roundtrips.sh:
3222 * tools/generate.c (write_type_info), (write_field_info),
3223 (write_callable_info), (write_struct_info):
3224 Make it emit proper gir.
3226 2008-08-14 Johan Dahlin <johan@gnome.org>
3228 * giscanner/transformer.py:
3229 New internal function for adding a new node.
3231 2008-08-14 Johan Dahlin <johan@gnome.org>
3234 Define an internal _H_ variable so we skip parsing both
3235 i18n headers, only one is needed.
3237 Add the glib-2.0.gir too.
3238 * giscanner/glibast.py:
3239 Add gconstpointer as an alias for ANY
3240 * giscanner/transformer.py:
3241 Do not lower case enumeration names per se.
3242 Skip functions which has parameters called 'va_list'
3244 2008-08-14 Colin Walters <walters@verbum.org>
3246 * giscanner/transformer.py: Comment data structures.
3247 Also squash pointers in resolve_type_name to correspond
3248 with what we do for params.
3249 * giscanner/glibtransformer.py: Print warnings in more
3250 situations. Rework checks for method/constructor to
3251 look up in our GType database instead of just checking
3252 for *. Avoid generating <record> for GObject which
3253 duplicate the <class>.
3254 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3257 2008-08-14 Johan Dahlin <johan@gnome.org>
3259 * giscanner/girwriter.py:
3260 * giscanner/glibast.py:
3261 * giscanner/glibtransformer.py:
3262 * giscanner/transformer.py:
3264 * tests/Makefile.am:
3265 Add pyflakes.py and run it in make check.
3266 Update the source code to fix the errors reported by
3269 2008-08-14 Johan Dahlin <johan@gnome.org>
3272 * giscanner/girparser.py:
3273 * giscanner/glibast.py:
3274 * giscanner/glibtransformer.py:
3275 Refactor the parser a bit.
3276 Add parent type to interfaces and update callsites.
3278 2008-08-14 Johan Dahlin <johan@gnome.org>
3280 * giscanner/glibtransformer.py:
3281 * giscanner/utils.py:
3282 Refactor a bit, avoid isinstance and add a method
3283 for each type we parse.
3285 2008-08-14 Johan Dahlin <johan@gnome.org>
3288 * giscanner/girparser.py:
3289 * giscanner/glibtransformer.py:
3290 * tests/Makefile.am:
3291 Run pep8.py in make check, fix old errors.
3293 2008-08-13 Colin Walters <walters@verbum.org>
3295 * giscanner/girparser.py: Parse records.
3297 2008-08-13 Colin Walters <walters@verbum.org>
3299 * gir/Makefile.am: Install again.
3300 * gir/gobject-2.0.gir: Add some more bits.
3302 2008-08-13 Colin Walters <walters@verbum.org>
3304 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3305 * giscanner/girparser.py: Handle aliases.
3306 * giscanner/transformer.py: Record aliases. Make resolver
3307 functions public; we now call into these explicitly from
3308 glibtransformer. Handle resolving aliases.
3309 * giscanner/glibtransformer.py: Separate our internal namespace
3310 from included ones. Call up into transformer's resolver functions.
3312 2008-08-13 Johan Dahlin <johan@gnome.org>
3314 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3315 * girepository/girparser.c (start_class):
3316 * giscanner/glibtransformer.py:
3317 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3319 2008-08-13 Johan Dahlin <johan@gnome.org>
3321 * giscanner/cgobject.py:
3322 Register GInitiallyUnowned
3323 * giscanner/girwriter.py:
3324 * giscanner/glibtransformer.py:
3325 Special case GObject/GInitially owned as they are a bit special to use.
3327 2008-08-13 Colin Walters <walters@verbum.org>
3329 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3330 Object is in GObject namespace.
3332 2008-08-13 Colin Walters <walters@verbum.org>
3334 * giscanner/girparser.py: Fix processing of functions
3337 2008-08-13 Colin Walters <walters@verbum.org>
3339 * giscanner/girparser.py: Parse more than just <class.
3340 * giscanner/glibtransformer.py: Put aliases in a separate
3341 data structure since their name is not canonicall.
3342 * giscanner/transformer.py: Handle resolving type names
3345 2008-08-13 Johan Dahlin <johan@gnome.org>
3347 * tools/g-ir-scanner:
3348 Allow multiple libraries
3349 * giscanner/glibtransformer.py:
3350 Rename load_library to add_library, traverse over all libraries
3351 when trying to resolve a function
3353 2008-08-12 Colin Walters <walters@verbum.org>
3355 * giscanner/transformer.py: Record typedefs as <alias> elements.
3356 Also attempt to look up types in external namespaces.
3357 * giscanner/girwriter.py: Write them.
3358 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3359 checks. Resolve interface methods and properties.
3360 * tests/scanner/foo-object.h: Add a method with typedef.
3361 * tests/scanner/Foo-expected.gir: Update.
3362 * girepository/girnode.c: Debug tweaks.
3363 * girepository/girparser.c: Make a first pass through the XML where we
3364 record all the aliases. This lets us resolve them as we go through the
3366 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3367 from gir-repository.
3369 2008-08-12 Colin Walters <walters@verbum.org>
3371 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3372 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3374 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3376 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3378 2008-08-12 Colin Walters <walters@verbum.org>
3380 * giscanner/glibtransformer.py: Also transform object properties.
3382 2008-08-12 Colin Walters <walters@verbum.org>
3384 * giscanner/glibtransformer.py: Also transform callbacks
3385 and structure field types.
3386 * tests/scanner/Fooe-expected.gir: Update to expect correct
3387 names for callbacks and structs.
3389 2008-08-12 Colin Walters <walters@verbum.org>
3391 * girepository/girparser.c: Handle 'any'.
3392 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3393 Add test for void *.
3395 2008-08-12 Colin Walters <walters@verbum.org>
3397 * giscanner/glibtransformer.py: We need to do type
3398 resolution in a second pass after we've seen all the
3399 enums, records, etc.
3401 2008-08-12 Colin Walters <walters@verbum.org>
3403 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3404 Add enum return value.
3405 * giscanner/glibtransformer.py: Transform function return types
3408 2008-08-12 Colin Walters <walters@verbum.org>
3410 * tests/scanner/Makefile.am: Dep .gir files on scanner
3411 sources too. Also remove @ so we see scanner invocations.
3413 2008-08-12 Colin Walters <walters@verbum.org>
3415 * girepository/girparser.c, girepository/gtypelib.c,
3416 girepository/gtypelib.h, girepository/girnode.c:
3417 Remove usage of (GAPI-oriented) TypeTag in favor of
3418 GITypeTag from girepository.h.
3420 2008-08-10 Colin Walters <walters@verbum.org>
3422 * tests/roundtrips.sh: Use the correct tests.
3424 2008-08-10 Colin Walters <walters@verbum.org>
3426 * giscanner/cgobject.py: Declare/wrap a few more functions.
3427 Fix parameter types for g_object_new and g_type_fundamental.
3429 2008-08-10 Colin Walters <walters@verbum.org>
3431 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3432 us to declare types for both return value and parameters. The
3433 ctypes default of 'int' is bad because it hides 32/64 bit
3434 problems. Convert all existing functions to use it.
3436 2008-08-09 Johan Dahlin <johan@gnome.org>
3438 * giscanner/__init__.py:
3440 * giscanner/cgobject.py:
3441 * giscanner/gidlparser.py:
3442 * giscanner/gidlwriter.py:
3443 * giscanner/girparser.py:
3444 * giscanner/girwriter.py:
3445 * giscanner/glibast.py:
3446 * giscanner/glibtransformer.py:
3447 * giscanner/odict.py:
3448 * giscanner/sourcescanner.py:
3449 * giscanner/transformer.py:
3450 * giscanner/utils.py:
3451 * giscanner/xmlwriter.py:
3452 * tools/g-ir-scanner:
3456 2008-08-09 Johan Dahlin <johan@gnome.org>
3459 * relaxng/c-types.xml:
3460 * relaxng/g-types.xml:
3461 * relaxng/relaxng.rng:
3463 Remove outdated relaxng schemas.
3465 2008-08-09 Johan Dahlin <johan@gnome.org>
3468 Rename metadata to typelib in variable names,
3471 2008-08-09 Johan Dahlin <johan@gnome.org>
3475 Remove old C scanner, which got rewritten in python.
3477 2008-08-09 Johan Dahlin <johan@gnome.org>
3479 * girepository/Makefile.am:
3480 * tools/Makefile.am:
3481 * tools/girmodule.c:
3482 * tools/girmodule.h:
3485 * tools/girparser.c:
3486 * tools/girparser.h:
3487 * tools/girwriter.c:
3488 * tools/girwriter.h:
3489 Move shared *.[ch] files to girepository from tools
3491 2008-08-09 Johan Dahlin <johan@gnome.org>
3493 * tests/Makefile.am:
3496 * tests/constant.test:
3498 * tests/errors.test:
3499 * tests/function.test:
3500 * tests/gobject.test:
3501 * tests/interface.test:
3502 * tests/object.test:
3503 * tests/struct.test:
3508 Rename *.test to *.gir
3510 2008-08-09 Johan Dahlin <johan@gnome.org>
3513 * tests/Makefile.am:
3514 * tests/parser/Foo-expected.gir:
3515 * tests/parser/Makefile.am:
3516 * tests/parser/foo-object.h:
3517 * tests/parser/foo.c:
3518 * tests/parser/utility-expected.gir:
3519 * tests/parser/utility.c:
3520 * tests/parser/utility.h:
3521 * tests/scanner/Makefile.am:
3522 Rename tests/parser to test/scanner
3524 2008-08-08 Colin Walters <walters@verbum.org>
3526 * tests/roundtrips.sh: Use local .gir files again.
3528 2008-08-08 Colin Walters <walters@verbum.org>
3530 * tests/invoke/Makefile.am: .gir file depends on libtool
3533 2008-08-08 Colin Walters <walters@verbum.org>
3535 * tools/girnode.c: Pass through parent node so we can
3536 print the node whose child is NULL, if that occurs.
3538 2008-08-08 Johan Dahlin <johan@gnome.org>
3540 * tests/Makefile.am:
3541 Disable roundtrip tests which are not yet working
3542 * tests/invoke/testfns.gir:
3545 2008-08-08 Johan Dahlin <johan@gnome.org>
3547 * giscanner/girwriter.py:
3549 * giscanner/glibast.py:
3550 * giscanner/glibtransformer.py:
3551 Swap order of members, to keep it consistent with
3554 2008-08-08 Johan Dahlin <johan@gnome.org>
3556 * girepository/gtypelib.c (validate_header):
3557 * girepository/gtypelib.h:
3559 * giscanner/girwriter.py:
3560 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3561 (gi_source_symbol_unref):
3564 * tests/constant.test:
3566 * tests/errors.test:
3567 * tests/function.test:
3568 * tests/gobject.test:
3569 * tests/interface.test:
3570 * tests/invoke/Makefile.am:
3571 * tests/invoke/testfns.xml:
3572 * tests/object.test:
3573 * tests/parser/Makefile.am:
3574 * tests/roundtrips.sh:
3575 * tests/struct.test:
3580 * tools/Makefile.am:
3581 * tools/compiler.c (main):
3582 * tools/generate.c (write_callable_info), (write_function_info),
3584 * tools/gidlmodule.c:
3585 * tools/gidlmodule.h:
3588 * tools/gidlparser.c:
3589 * tools/gidlparser.h:
3590 * tools/gidlwriter.c:
3591 * tools/gidlwriter.h:
3592 * tools/scanner.c (create_node_from_gtype),
3593 (create_node_from_ctype), (g_igenerator_process_properties),
3594 (g_igenerator_process_signals), (g_igenerator_create_object),
3595 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3596 (g_igenerator_create_enum), (g_igenerator_create_flags),
3597 (g_igenerator_process_function_symbol),
3598 (g_igenerator_process_unregistered_struct_typedef),
3599 (g_igenerator_process_struct_typedef),
3600 (g_igenerator_process_union_typedef),
3601 (g_igenerator_process_enum_typedef),
3602 (g_igenerator_process_function_typedef),
3603 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3604 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3605 Merge in the gir-compiler branch.
3606 Thanks to Philip and Colin for their help.
3608 2008-07-26 Colin Walters <walters@verbum.org>
3610 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3611 and g-idl-generate to go along with how we're changing this
3612 module to be installed.
3613 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3615 2008-07-24 Colin Walters <walters@verbum.org>
3617 * girepository/girepository.c (g_irepository_register): Add
3618 environment variable G_IREPOSITORY_VERBOSE so we can print
3619 out what we're doing.
3620 * girepository/girepository.c (g_irepository_register_file):
3621 Add GError error message to g_debug call.
3623 2008-07-08 Jürg Billeter <j@bitron.ch>
3625 * giscanner/glibast.py:
3629 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3631 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3634 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3637 * giscanner/girwriter.py:
3638 * giscanner/transformer.py:
3639 * tests/parser/Foo-expected.gir:
3640 * tests/parser/foo-object.h:
3641 * tests/parser/foo.c (foo_object_allow_none):
3642 Add support for gtk-doc annotations for allow-none.
3645 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3648 * giscanner/girwriter.py:
3649 * giscanner/glibast.py:
3650 * giscanner/glibtransformer.py:
3651 * giscanner/transformer.py:
3652 * tests/parser/Foo-expected.gir:
3653 Start using abstract type instead of the raw C types.
3654 Register a bunch of glib types we care about.
3656 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3661 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3663 * girepository/girepository.c:
3664 * girepository/gtypelib.c:
3665 * girepository/ginfo.c:
3666 * girepository/ginvoke.c:
3667 * girepository/girepository.h:
3668 * girepository/gtypelib.h:
3669 * girepository/gmetadata.c:
3670 * girepository/Makefile.am:
3671 * girepository/gmetadata.h:
3673 * tools/gidlmodule.c:
3676 * tools/gidlmodule.h:
3677 * tools/gidlparser.c:
3679 Renamed GMetadata to GTypelib
3681 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3683 * giscanner/xmlwriter.py:
3684 Improve line wrapping when > 79 charaters
3686 2008-06-05 Jürg Billeter <j@bitron.ch>
3689 * giscanner/girwriter.py:
3690 * giscanner/transformer.py:
3691 Use <type> element for field types
3692 * tests/parser/Foo-expected.gir:
3695 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3697 * giscanner/glibtransformer.py:
3698 Fix a bug which prevented GdkEvent from being generated
3700 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3702 * giscanner/Makefile.am:
3704 * giscanner/girwriter.py:
3705 * giscanner/glibast.py:
3706 * giscanner/glibtransformer.py:
3707 * giscanner/transformer.py:
3708 * giscanner/utils.py:
3709 * tests/parser/Foo-expected.gir:
3710 Improve enum member parsing and introspection
3712 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3714 * giscanner/scannerparser.y:
3715 * giscanner/sourcescanner.h:
3716 * giscanner/sourcescanner.py:
3717 Add a new source type enum for member.
3718 Use __repr__ for improved debugging
3719 * giscanner/girparser.py:
3721 * giscanner/transformer.py:
3722 Improve parsing of struct members.
3723 * tests/parser/foo-object.h:
3726 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3728 * giscanner/xmlwriter.py:
3729 Improve error reporting when trying to quote None.
3730 * giscanner/girparser.py:
3731 Do not print warnings when including more complete .gir files
3732 * giscanner/girwriter.py:
3733 Do not require a name for parameters, add a todo for singletons
3734 * giscanner/glibtransformer.py:
3735 Refactor the way structs are done, add a couple of hacks to allow
3737 * giscanner/transformer.py:
3738 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3739 * gobject-introspection-1.0.pc.in:
3740 Export girdir, so we can access gobject-2.0.gir from outside
3742 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3744 * tools/g-ir-scanner:
3745 * tests/parser/Makefile.am:
3746 Update sys.path before running the parser so we don't have
3747 to setup PYTHONPATH ourselves.
3751 * girepository/Makefile.am:
3752 * giscanner/transformer.py:
3753 * gobject-introspection-1.0.pc.in:
3754 * gobject-introspection.pc.in:
3755 * tools/Makefile.am:
3757 Rename pkg-config name to gobject-introspection-1.0,
3758 Do not installed anything which is not using the gir format.
3759 Disable compililation the old C scanner, but still keep the source
3760 until all the remaning functionallity has been ported.
3762 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3764 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3765 a crash when symbol->indent is NULL.
3767 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3768 a function to convert a CTYPE symbol to a string
3770 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3773 * giscanner/girwriter.py:
3774 * giscanner/giscannermodule.c
3775 (pygi_source_scanner_append_filename),
3776 (pygi_source_scanner_parse_file):
3777 * giscanner/glibtransformer.py:
3778 * giscanner/sourcescanner.py:
3779 Revert back to using temporary files to send in headers.
3780 Allow Functions to be passed in as callbacks, add a couple
3781 of try/excepts missing features.
3782 We can now scan pango
3784 2008-05-08 Johan Dahlin <johan@gnome.org>
3786 * giscanner/glibtransformer.py:
3787 * giscanner/transformer.py:
3788 Move namespace stripping glibtransformer->transformer
3790 2008-05-08 Johan Dahlin <johan@gnome.org>
3793 * giscanner/girwriter.py:
3794 * giscanner/glibtransformer.py:
3795 * giscanner/transformer.py:
3796 * tools/g-ir-scanner:
3797 Introduce a namespace ast node
3799 2008-05-05 Johan Dahlin <johan@gnome.org>
3801 * giscanner/__init__.py:
3802 * giscanner/sourcescanner.py:
3803 * giscanner/transformer.py:
3804 Move sourcescanner symbols to the sourcescanner module, instead
3805 of in the global __init__ namespace.
3807 2008-05-03 Johan Dahlin <johan@gnome.org>
3809 * giscanner/glibtransformer.py:
3810 * tools/g-ir-scanner:
3811 Handle missing parameters better, allow - and + in .la dlname
3814 2008-05-03 Johan Dahlin <johan@gnome.org>
3816 * giscanner/__init__.py:
3818 * giscanner/girwriter.py:
3819 * giscanner/glibtransformer.py:
3820 * giscanner/transformer.py:
3821 Parse struct fields properly, improve debugging.
3823 2008-04-29 Johan Dahlin <johan@gnome.org>
3826 * giscanner/girwriter.py:
3827 * giscanner/transformer.py:
3828 * tests/parser/Foo-expected.gir:
3830 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3832 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3835 * docs/g-ir-scanner.1:
3836 * metadata-annotations-proposal.txt:
3837 * metadata-format.txt:
3838 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3840 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3842 * giscanner/girwriter.py:
3843 * giscanner/glibtransformer.py:
3844 * giscanner/transformer.py:
3845 * giscanner/xmlwriter.py:
3846 * tests/parser/Foo-expected.gir:
3847 * tests/parser/foo-object.h:
3848 Write record/structs to gir file too. Add a couple of tests,
3849 fix an off by one error in xmlwriter.py.
3851 2008-04-28 Johan Dahlin <johan@gnome.org>
3853 * giscanner/xmlwriter.py: Calculate the line length properly,
3854 include the provided extra indentation in the calculation, really.
3856 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3859 * giscanner/glibast.py:
3860 * giscanner/glibtransformer.py:
3861 * giscanner/transformer.py:
3862 * tools/g-ir-scanner:
3863 Add a --strip-prefix and sort out confusion between names and symbols
3864 for functions and struct + derivaties.
3865 Refactor bootstrap of g-ir-scanner, so we can set options on
3866 Transformer() before parsing everything.
3868 2008-04-28 Johan Dahlin <johan@gnome.org>
3870 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3871 when scanning girepository.h
3873 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3874 a __GI_SCANNER__ when we run.
3876 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3879 * giscanner/girwriter.py:
3880 * giscanner/glibast.py:
3881 * giscanner/glibtransformer.py:
3882 * tests/parser/Foo-expected.gir:
3883 * tests/parser/utility-expected.gir:
3884 Rename most c:identifier to c:type. Add new ones to
3885 class/interface/enum/boxed.
3887 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3890 * giscanner/girwriter.py:
3891 * giscanner/glibtransformer.py:
3892 * tests/parser/Foo-expected.gidl:
3893 * tests/parser/Makefile.am:
3894 Move c:identifier from return-value to subchild type,
3895 as per Jürgs suggestion
3897 2008-04-28 Johan Dahlin <johan@gnome.org>
3899 * giscanner/girwriter.py:
3900 * tests/parser/Foo-expected.gir:
3901 Write property.type as a child node.
3903 2008-04-27 Johan Dahlin <johan@gnome.org>
3908 * gidl/gobject-2.0.gidl:
3910 * gir/gobject-2.0.gir:
3911 * tests/parser/Makefile.am:
3912 Replace the GObject gidl with a GObject gir.
3914 2008-04-27 Johan Dahlin <johan@gnome.org>
3916 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3919 * giscanner/xmlwriter.py:
3920 * tests/parser/Foo-expected.gir:
3921 Include indentation in line length calculation
3923 2008-04-27 Johan Dahlin <johan@gnome.org>
3925 * giscanner/girparser.py:
3926 Prettify NS parsing using elementtree.
3928 2008-04-27 Johan Dahlin <johan@gnome.org>
3931 * giscanner/Makefile.am:
3932 * giscanner/girparser.py:
3933 * giscanner/glibtransformer.py:
3934 * tests/parser/Foo-expected.gidl:
3935 * tests/parser/Foo-expected.gir:
3936 * tests/parser/Makefile.am:
3937 * tests/parser/utility-expected.gidl:
3938 * tests/parser/utility-expected.gir:
3939 * tools/g-ir-scanner:
3940 Switch over to GIR as the default format. Add a simple GIDL
3942 Update tests and fix simplify makefiles by depending
3943 on GNU make extensions.
3945 2008-04-27 Johan Dahlin <johan@gnome.org>
3947 * giscanner/xmlwriter.py:
3948 Wrap attributes for lines which are wider than 79 characters
3950 * giscanner/scannerlexer.l:
3951 Allow parenthesis in annotations
3954 * giscanner/gidlwriter.py:
3955 * giscanner/girwriter.py:
3956 * giscanner/glibtransformer.py:
3957 * giscanner/transformer.py:
3958 Add initial sequence support, including annotation.
3959 Refactor type handling a bit.
3961 2008-04-27 Johan Dahlin <johan@gnome.org>
3963 * tests/parser/Foo-expected.gidl:
3964 * tests/parser/foo-object.h:
3965 * tests/parser/foo.c (foo_object_class_init),
3966 (foo_object_get_strings), (foo_object_get_objects):
3967 Add two new functions to check sequence return values.
3968 Also fixes a compilation warning.
3970 2008-04-27 Johan Dahlin <johan@gnome.org>
3972 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3973 a compilation warning.
3975 * tools/Makefile.am (g_ir_scanner_SOURCES):
3976 g-ir-scanner has no sources.
3978 2008-04-25 Johan Dahlin <johan@gnome.org>
3980 * giscanner/Makefile.am:
3982 * giscanner/gidlparser.py:
3983 * giscanner/gidlwriter.py:
3984 * giscanner/girwriter.py:
3985 * giscanner/glibast.py:
3986 * giscanner/glibtransformer.py:
3987 * giscanner/transformer.py:
3988 Split out nodes to ast.py and glibast.py
3990 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3992 * giscanner/Makefile.am:
3993 * giscanner/gidlparser.py:
3994 * giscanner/gidlwriter.py:
3995 * giscanner/girwriter.py:
3996 * giscanner/glibtransformer.py:
3997 * giscanner/gobjecttreebuilder.py:
3998 * giscanner/transformer.py:
3999 * giscanner/treebuilder.py:
4000 * tools/g-ir-scanner:
4001 Rename treebuilder to transformer and
4002 gobjectreebuilder to glibtransformer.
4004 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4006 * giscanner/Makefile.am:
4007 * giscanner/__init__.py:
4008 * giscanner/cgobject.py:
4009 * giscanner/gidlparser.py:
4010 * giscanner/gidlwriter.py:
4011 * giscanner/girwriter.py:
4012 * giscanner/gobjecttreebuilder.py:
4013 * giscanner/odict.py:
4014 * giscanner/sourcescanner.py:
4015 * giscanner/treebuilder.py:
4016 * giscanner/xmlwriter.py:
4017 * tools/Makefile.am:
4018 * tools/g-ir-scanner:
4019 Add LGPLv2 license header and install all python files
4021 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4024 * giscanner/gidlwriter.py:
4025 * giscanner/giscannermodule.c (pygi_source_directive_new),
4026 (directive_get_options), (pygi_source_symbol_new),
4027 (symbol_get_base_type), (pygi_source_type_new),
4028 (type_get_base_type), (type_get_child_list),
4029 (pygi_source_scanner_get_symbols),
4030 (pygi_source_scanner_get_directives):
4031 * giscanner/gobjecttreebuilder.py:
4032 * giscanner/sourcescanner.py:
4033 * giscanner/treebuilder.py:
4034 * tests/parser/foo-object.h:
4035 Add support for virtual methods.
4036 Pair struct FooClass with struct Foo.
4037 Clean up the SourceScanner bindings a bit.
4038 Add a testcase for virtual methods.
4040 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4042 * giscanner/cgobject.py:
4043 * giscanner/gidlwriter.py:
4044 * giscanner/gobjecttreebuilder.py:
4045 Add support for signals
4047 * tests/parser/foo.c (foo_object_class_init):
4048 * Foo-expected.gidl:
4049 Add a signal and update the expected output.
4051 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4053 * giscanner/gidlwriter.py:
4054 * giscanner/girwriter.py:
4055 * giscanner/giscannermodule.c (directive_get_name),
4056 (directive_get_value), (directive_get_options),
4057 (symbol_get_directives), (symbol_set_directives),
4058 (pygi_source_scanner_parse_file),
4059 (pygi_source_scanner_lex_filename),
4060 (pygi_source_scanner_get_directives), (init_giscanner):
4061 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4062 * giscanner/sourcescanner.h:
4063 * giscanner/sourcescanner.py:
4064 * giscanner/treebuilder.py:
4065 * tools/g-ir-scanner:
4066 Add support for source/header annotations.
4068 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4070 * giscanner/gidlwriter.py:
4071 * giscanner/girwriter.py:
4072 * giscanner/gobjecttreebuilder.py:
4073 * giscanner/treebuilder.py:
4074 Add support for Callbacks
4076 2008-04-22 Havoc Pennington <hp@pobox.com>
4078 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4079 not in metadata->module, look for it in the global module, in case
4080 some other object or the app itself provides the symbol.
4082 2008-04-22 Havoc Pennington <hp@pobox.com>
4084 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4085 dlopening a library that is already in the main app, by checking
4086 whether one of the lib's symbols is already loaded.
4088 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4090 * tests/parser/Foo-expected.gidl:
4091 * tests/parser/foo-object.h:
4094 2008-04-22 Havoc Pennington <hp@pobox.com>
4096 * girepository/ginfo.c (g_interface_info_find_method):
4097 Use interface_blob_size not object_blob_size to compute offset.
4099 2008-04-22 Havoc Pennington <hp@pobox.com>
4101 * girepository/gmetadata.c (_g_metadata_init): remove
4102 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4103 (Glade and Clutter for example) rely on being loaded globally.
4105 2008-04-22 Havoc Pennington <hp@pobox.com>
4107 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4108 function to get the GType given a RegisteredTypeInfo
4110 2008-04-22 Johan Dahlin <johan@gnome.org>
4112 * COPYING: Add a LGPL license, to prevent automake to
4113 put in a copy of GPL here. Pointed out by Havoc.
4115 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4116 (g_type_info_is_pointer), (g_type_info_get_tag),
4117 (g_type_info_get_param_type), (g_type_info_get_interface),
4118 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4119 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4120 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4121 (g_object_info_get_interface), (g_object_info_get_field),
4122 (g_interface_info_get_prerequisite),
4123 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4124 * girepository/ginvoke.c (get_ffi_type):
4125 * girepository/girepository.h:
4126 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4127 (g_metadata_check_sanity), (validate_header),
4128 (validate_array_type_blob), (validate_iface_type_blob),
4129 (validate_param_type_blob), (validate_error_type_blob),
4130 (validate_type_blob), (validate_constant_blob),
4131 (validate_struct_blob), (validate_enum_blob):
4132 * girepository/gmetadata.h:
4133 * tests/Makefile.am:
4134 * tests/invoke/Makefile.am:
4135 * tests/invoke/invoke.c (main):
4136 * tests/roundtrips.sh:
4137 * tools/Makefile.am:
4138 * tools/compiler.c (format_output), (write_out_metadata), (main):
4139 * tools/generate.c (write_type_name), (write_type_info),
4140 (write_constant_value), (write_enum_info), (load_metadata), (main):
4141 * tools/gidlcompilercontext.c:
4142 * tools/gidlcompilercontext.h:
4143 * tools/gidlcompilerentrynode.c:
4144 * tools/gidlcompilerentrynode.h:
4145 * tools/gidlcompilertypenode.c:
4146 * tools/gidlcompilertypenode.h:
4147 * tools/gidlmodule.c (g_idl_module_build_metadata):
4148 * tools/gidlmodule.h:
4149 * tools/gidlnode.c (init_stats), (dump_stats),
4150 (g_idl_node_get_size), (g_idl_node_get_full_size),
4151 (g_idl_node_cmp), (g_idl_node_can_have_member),
4152 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4153 (parse_int_value), (parse_uint_value), (parse_float_value),
4154 (parse_boolean_value), (find_entry_node), (find_entry),
4155 (serialize_type), (g_idl_node_build_metadata), (write_string):
4157 * tools/gidlparser.c (parse_type_internal):
4158 * tools/quote-file.sh:
4159 Revert revisions 157,149-148,136-129 and 120.
4160 Move back to using g-idl-generate to generate the metadata and
4161 avoids dependency on a c compiler.
4163 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4165 * giscanner/girwriter.py:
4166 * tools/g-ir-scanner:
4167 Add an initial GIR writer and a --format option to g-ir-scanner
4169 2008-04-21 Johan Dahlin <johan@gnome.org>
4171 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4172 gobject-2.0 and raise ImportError if not found.
4174 * giscanner/gidlparser.py:
4175 * giscanner/gidlwriter.py:
4176 * giscanner/gobjecttreebuilder.py:
4177 * tools/g-ir-scanner:
4178 Add a --include argument to include types from other idls.
4179 Add a minimalistic GIDL parser (just objects for now)
4180 Implement resolving of external type references and use it to
4181 resolve parent types, argument types and return types.
4183 2008-04-21 Johan Dahlin <johan@gnome.org>
4185 * giscanner/gidlwriter.py:
4186 * giscanner/gobjecttreebuilder.py:
4187 * giscanner/treebuilder.py:
4188 Add support for properties.
4189 Refactor Class/Interface support a bit, to share more code and
4190 always initialize their method attribute to an empty list.
4192 2008-04-21 Johan Dahlin <johan@gnome.org>
4194 * giscanner/cgobject.py:
4195 Add a workaround for a glib bug interface introspection bug
4196 (object_interface_list_properties, object_class_list_properties):
4197 Cast the return value to GParamSpec.
4199 * tests/parser/Foo-expected.gidl: Update
4200 * tests/parser/foo.c: Add a string property
4202 * giscanner/gobjecttreebuilder.py:
4203 After stripping namespaces, remove the original
4204 item to avoid duplication (GtkButton struct and Button object)
4206 2008-04-21 Johan Dahlin <johan@gnome.org>
4208 * giscanner/gobjecttreebuilder.py:
4209 * giscanner/treebuilder.py:
4210 Strip namespaces before objects, so we'll export
4211 GtkButton as Button in the gtk namespace
4213 2008-04-21 Johan Dahlin <johan@gnome.org>
4215 * giscanner/gidlwriter.py:
4216 * giscanner/gobjecttreebuilder.py:
4217 * giscanner/treebuilder.py:
4218 Add constructors for object/boxed types.
4220 2008-04-21 Johan Dahlin <johan@gnome.org>
4222 * giscanner/gidlwriter.py:
4223 * giscanner/gobjecttreebuilder.py:
4224 Add support for boxed types
4226 2008-04-21 Johan Dahlin <johan@gnome.org>
4228 * giscanner/giscannermodule.c: Mark structures as const,
4229 wrap SourceType.const_string.
4231 * tests/parser/foo-object.h: Add a couple of constants.
4233 * giscanner/gidlwriter.py:
4234 * giscanner/gobjecttreebuilder.py:
4235 * giscanner/treebuilder.py:
4236 Add basic support for interfaces
4238 * tools/g-ir-scanner:
4239 Add -o/--output for writing to a file
4241 2008-04-21 Havoc Pennington <hp@redhat.com>
4243 * TODO: add some C API wishlist items I could think of quickly
4245 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4247 * giscanner/gidlwriter.py:
4248 * giscanner/xmlwriter.py:
4249 Add a simple api for writing tags which can be used
4250 with the new 'with statement' in python 2.5
4252 2008-04-21 Johan Dahlin <johan@gnome.org>
4254 * giscanner/gobjecttreebuilder.py:
4255 Strip namespace and object prefix from method names.
4257 2008-04-21 Johan Dahlin <johan@gnome.org>
4259 * tools/g-ir-scanner (main): Add --pkg option to pass in
4260 pkg-config modules to get cflags from.
4262 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4263 Avoid duplication, reuse function writer for methods.
4265 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4267 * giscanner/gidlwriter.py:
4268 * giscanner/gobjecttreebuilder.py:
4269 * giscanner/treebuilder.py:
4270 * tools/g-ir-scanner:
4271 Resolve libtool .la files.
4272 Strip name spaces for methods.
4273 Add function symbols
4275 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4277 * giscanner/cgobject.py:
4278 * giscanner/gidlwriter.py:
4279 * giscanner/gobjecttreebuilder.py:
4280 * giscanner/treebuilder.py:
4281 Add support for classes and methods
4283 2008-04-20 Johan Dahlin <johan@gnome.org>
4285 * giscanner/gidlwriter.py:
4286 * giscanner/gobjecttreebuilder.py:
4287 * giscanner/odict.py:
4288 Avoid conflicts, keep the output ordered similar to
4289 the order of the input.
4290 Add a simple ordered dictionary implemenation
4292 2008-04-19 Johan Dahlin <johan@gnome.org>
4294 * giscanner/cgobject.py:
4295 * giscanner/gidlwriter.py:
4296 * giscanner/gobjecttreebuilder.py:
4297 * tools/g-ir-scanner:
4298 Start introspecting get-type functions.
4299 Implement support for GLib/GFlags GTypes.
4300 Add a ctype based GObject binding.
4302 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4304 * giscanner/gidlwriter.py:
4305 * giscanner/xmlwriter.py:
4306 * tools/g-ir-scanner:
4307 Add a simplistic gidl writer, which can't do too much.
4309 2008-04-18 Johan Dahlin <johan@gnome.org>
4311 * giscanner/sourcescanner.py:
4312 * giscanner/treebuilder.py:
4313 * tools/g-ir-scanner:
4314 split tree building and source scanning interface to separate files.
4316 2008-04-18 Johan Dahlin <johan@gnome.org>
4318 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4320 - Add support for struct/parameter/return, start parsing of ctypes
4322 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4325 2008-03-31 Johan Dahlin <johan@gnome.org>
4327 * tools/g-ir-scanner:
4328 Start to build abstract syntax node of scanned sources.
4329 Add support for cpp options.
4331 2008-03-27 Johan Dahlin <johan@gnome.org>
4333 * giscanner/giscannermodule.c:
4334 * giscanner/scannerlexer.l:
4335 * giscanner/sourcescanner.c:
4336 * tools/g-ir-scanner:
4338 Add simple pre-processor using subprocess and a PIPE.
4339 Change the parse_file apis to accept a file descriptor.
4341 2008-03-25 Johan Dahlin <johan@gnome.org>
4343 * giscanner/__init__.py:
4344 * tools/g-ir-scanner:
4345 Fix a typo and add an example python test program.
4347 2008-03-25 Johan Dahlin <johan@gnome.org>
4349 * giscanner/__init__.py:
4350 * giscanner/giscannermodule.c:
4351 * giscanner/sourcescanner.c:
4352 * giscanner/sourcescanner.h:
4353 Add constants and wrap a few more SymbolType fields
4355 2008-03-25 Johan Dahlin <johan@gnome.org>
4359 * giscanner/__init__.py:
4360 * giscanner/giscannermodule.c:
4361 * giscanner/Makefile.am:
4363 Add initial python bindings for the scanner and
4364 depend on python 2.5.
4366 2008-03-25 Johan Dahlin <johan@gnome.org>
4370 * giscanner/Makefile.am:
4371 * giscanner/sourcescanner.c:
4372 * giscanner/sourcescanner.h:
4373 * tools/Makefile.am:
4374 * tools/grealpath.h:
4375 * tools/sourcescanner.c:
4376 * tools/sourcescanner.h:
4378 Move the scanner to a separate library.
4380 2008-03-23 Johan Dahlin <johan@gnome.org>
4382 * tools/Makefile.am:
4385 * tools/scannerlexer.l:
4386 * tools/scannerparser.y:
4387 * tools/sourcescanner.c:
4388 * tools/sourcescanner.h:
4389 Split out the source scanner from the generator.
4390 Rename the symbols used in the scanner to use the gi_ prefix.
4391 This should make it possible to use the raw C parser from
4394 2008-03-23 Johan Dahlin <johan@gnome.org>
4396 * tests/parser/Makefile.am (utility.gidl):
4397 * tests/parser/utility-expected.gidl:
4398 Pass in the gobject.gidl since we're defining a GObject.
4400 2008-03-12 Johan Dahlin <johan@gnome.org>
4402 * relaxng/relaxng.rng:
4403 Add a releaxng in relaxng we can use to validate the relaxngs
4406 2008-03-12 Jürg Billeter <j@bitron.ch>
4408 * tools/scanner.c: (g_igenerator_new):
4409 * tools/scannerparser.y:
4410 Fix compiler warnings.
4412 2008-03-12 Jürg Billeter <j@bitron.ch>
4416 * tools/scannerparser.y:
4417 Start fixing memory management in g-idl-scanner.
4419 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4421 * tools/gidlcompilercontext.c: (write_compiled):
4422 Fix critical warning when no shlib passed to g-idl-compiler.
4424 2008-03-12 Johan Dahlin <johan@gnome.org>
4426 * tests/parser/utility-expected.gidl:
4427 * tests/parser/utility.h:
4428 Add a get_type-function, so the scanner actually
4429 parses it as an object.
4431 2008-03-12 Johan Dahlin <johan@gnome.org>
4433 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4436 * tests/parser/Foo-expected.gidl:
4437 * tests/parser/Makefile.am:
4438 * tests/parser/foo-object.h:
4439 * tests/parser/foo.c:
4440 * tests/parser/utility-expected.gidl:
4441 * tests/parser/utility.c:
4442 * tests/parser/utility.h:
4444 Add a new gidl test. 'utility.gidl', which is used to be able
4445 to test external type references. Add a reference to UtilityObject*
4448 2008-03-11 Johan Dahlin <johan@gnome.org>
4452 Remove most global variables
4454 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4456 * tools/scannerlexer.l:
4458 * tests/parser/Foo-expected.gidl:
4459 * tests/parser/foo.c:
4460 * tests/parser/Makefile.am:
4461 * tests/parser/foo-object.h:
4463 Added a few extra tests. Which resulted in finding a few
4464 bugs. Which resulted in me fixing those bugs
4466 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4468 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4469 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4470 Add some comments for strings into generated output for
4473 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4475 * tools/gidlcompilercontext.c: (write_compiled):
4476 Write out the shlibs variable before writing out the strings
4477 length. Fixes compiler warning when using '-l' flag with
4480 2008-03-11 Johan Dahlin <johan@gnome.org>
4482 * tests/parser/Foo-expected.gidl:
4483 * tests/parser/foo-object.h:
4486 * tools/scannerlexer.l:
4487 Add support for parsing return arguments. Add support for
4488 caller-owns return types.
4489 Patch by Philip Van Hoof.
4491 * tools/scannerparser.y:
4492 Remove parsing of the @deprecated syntax used in headers.
4493 We will support gtk-doc deprecation in the future instead.
4495 2008-03-11 Johan Dahlin <johan@gnome.org>
4497 * tools/compiler.c (main): Coding style fixes
4499 2008-03-10 Johan Dahlin <johan@gnome.org>
4502 Add GCOV_LIBS to GILIBS
4504 2008-03-10 Johan Dahlin <johan@gnome.org>
4506 * tests/parser/Foo-expected.gidl:
4507 * tests/parser/foo.c:
4508 Rename null-ok to direction=out
4510 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4512 reviewed and extensively tested by Johan
4514 * tests/parser/Foo-expected.gidl:
4515 * tests/parser/foo-object.h:
4516 * tests/parser/foo.c:
4519 * tools/gidlwriter.c:
4522 * tools/scannerlexer.l:
4523 * tools/scannerparser.y:
4525 Add support for scanning for gtk-doc comments inside
4526 C source files. Add tests
4528 2008-03-10 Johan Dahlin <johan@gnome.org>
4530 * tests/parser/Makefile.am:
4531 * tests/parser/foo.c:
4534 * tools/scannerparser.y:
4535 Add an api to lex filenames.
4536 Lex all source .c files passed in on the command line.
4537 Scan sources in a test and a couple of private structures
4538 which should not be included in the generated gidl
4540 2008-03-10 Johan Dahlin <johan@gnome.org>
4542 * tests/invoke/Makefile.am: Make the generated metadata
4543 depend on the g-idl-compiler
4545 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4547 * tools/gidlmodule.c
4548 * tools/gidlmodule.h
4551 Remove the old g-idl-compiler code.
4554 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4556 * tools/quote-file.sh
4559 Move to using the 'C' struct compiler code.
4561 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4563 * girepository/ginfo.c
4565 Change the way that external references with no namespace
4566 are dealt with. External references with no namespace
4567 are placed into the XML as-if they are a local reference.
4568 This is temporary, but helps with roundtrip tests.
4570 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4572 * girepository/ginfo.c
4573 Add the ability to get the value of a constant of
4574 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4575 is provided as a string.
4577 This would deal properly with:
4578 typedef char* random;
4579 const random = "A string";
4581 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4583 * girepository/ginfo.c
4584 * girepository/girepository.h
4586 Add a function to check if an enum is registered or not.
4587 Previously anything testing this relied on the g-type
4588 string offset having a value of 0.
4590 * girepository/gmetadata.c
4591 * girepository/gmetadata.h
4593 Remove unneccesary or erroneous checks. There were two
4594 metadata validation checks which made sure that the blob
4595 sizes were the same as some magic numbers compiled into the code.
4596 This is wrong as it breaks any forwards compatibility that may
4599 Checks were also present that made sure that unregistered type
4600 blobs had a value of 0 in the g-type offset field. This is
4601 unneccessary. If a type blob is unregistered then any value
4602 in its g-type field is simply invalid.
4604 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4606 * girepository/ginfo.c
4607 * girepository/gmetadata.c
4608 * girepository/gmetadata.h
4610 Change the metadata format to have a standard header
4611 for all the type blobs. Merge the SimpleTypeBlob
4612 and InterfaceTypeBlob into a union. A union of these
4613 two blobs existed previously but was not explicit
4614 in the metadata format.
4616 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4618 * tools/gidlcompilercontext.c
4619 * tools/gidlcompilercontext.h
4620 * tools/gidlcompilerentrynode.c
4621 * tools/gidlcompilerentrynode.h
4622 * tools/gidlcompilertypenode.c
4623 * tools/gidlcompilertypenode.h
4625 Add code to compile a tree of GIdlNodes to
4626 a 'C' struct representing the metadata.
4627 This is to aid cross-compiling. Previously
4628 the g-idl-compiler created a binary blob with
4629 data written in the byte order and alignment
4630 of the tool rather than the intended target.
4632 Cleaned up and improved by Johan and Robert :-)
4634 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4636 * girepository/ginvoke.c
4637 * girepository/girepository.h
4638 * girepository/gmetadata.c
4639 * girepository/gmetadata.h
4641 * tools/gidlparser.c
4642 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4643 to avoid confusion with the interface blob.
4646 * tools/gidlparser.c
4647 Remove magic numbers and replace with type-tag
4648 enumeration symbols.
4650 * girepository/gmetadata.c
4651 Add validate declaration.
4653 2008-03-10 Jürg Billeter <j@bitron.ch>
4655 * tools/gidlparser.c: (parse_type_internal):
4656 * tools/scannerlexer.l:
4657 * tools/scannerparser.y:
4658 Support C99 _Bool type in scanner.
4660 2008-03-10 Jürg Billeter <j@bitron.ch>
4662 * tests/parser/Foo-expected.gidl:
4663 * tests/parser/foo-object.h:
4664 * tests/parser/foo.c: (foo_enum_method):
4665 * tools/scanner.c: (g_igenerator_process_function_symbol):
4666 Don't skip functions that are defined in the namespace of a type
4667 that doesn't support methods, as for example enums.
4669 2008-03-10 Johan Dahlin <johan@gnome.org>
4671 * gidl.dtd: Remove, we're using relaxng for now
4673 * tests/parser/Foo-expected.gidl:
4674 * tests/parser/foo-object.h:
4675 * tests/parser/foo.c:
4676 Rename the enum/flags get_type functions to include the whole type.
4678 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4680 * tools/gidlwriter.c (enum_generate): added "type-name",
4681 "get-type" and "deprecated" missing arguments.
4682 * tests/parser/Foo-expected.gidl:
4683 * tests/parser/foo-object.h: test enum type, and no type.
4685 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4688 Consistent checks, add missing 'test'
4690 2008-03-05 Havoc Pennington <hp@redhat.com>
4692 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4693 does on Fedora 8. Make libffi a hard requirement, since it was in
4694 practice anyway (was not really conditional in the code or
4695 makefile, only in configure).
4697 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4699 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4700 reviewed by: Johan Dahlin <johan@gnome.org>
4702 * tests/Makefile.am:
4703 * tests/roundtrips.sh:
4704 Modify the roundtrips test so that they do not use the
4705 --raw option of the gidl compiler but instead compile a
4706 shared library to use with g_module.
4708 * tests/invoke/Makefile.am:
4709 * tests/invoke/invoke.c:
4710 Modify the invoke tests to build a shared library rather
4711 than use the --raw option.
4713 * tests/invoke/invoke-namespace-find.sh: Removed:
4714 Noone knows why this was here, so removed.
4716 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4718 * tools/scanner.c: (g_igenerator_process_function_symbol):
4719 Move g_idl_node_can_have_member test later, as it broke spotting
4720 get_type's for nodes that can't have members.
4722 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4725 * tools/gidlnode.c: (g_idl_node_can_have_member):
4726 Add g_idl_node_can_have_member.
4728 * tools/scanner.c: (g_igenerator_process_function_symbol):
4729 Use g_idl_node_can_have_member to test if we should add a function
4730 as a member of the type node.
4732 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4734 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4736 * tests/parser/Makefile.am:
4737 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4739 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4741 * tools/scanner.c: (main):
4742 Ignore -pthread when passed to g-idl-scanner.
4744 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4746 * tools/grealpath.h: Added:
4747 * tools/scanner.c: (main):
4748 * tools/scannerlexer.l:
4749 * tools/Makefile.am:
4750 Always use absolute paths with symbolic links resolved when
4751 comparing filenames.
4753 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4755 * gobject-introspection.pc.in:
4756 Provide variables for g-idl-parser, scanner and compiler in the
4759 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4762 * girepository/Makefile.am:
4763 * tools/Makefile.am:
4764 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4766 2008-02-10 Johan Dahlin <johan@gnome.org>
4768 * tests/parser/Foo-expected.gidl:
4769 * tests/parser/foo-object.h:
4770 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4771 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4774 2008-02-10 Johan Dahlin <johan@gnome.org>
4776 * tests/parser/Foo-expected.gidl:
4777 * tests/parser/foo-object.h:
4778 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4779 Add enum and flags test.
4781 2008-02-10 Johan Dahlin <johan@gnome.org>
4785 * girepository/Makefile.am:
4786 Make 'make distcheck' work again.
4788 2008-02-10 Johan Dahlin <johan@gnome.org>
4790 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4793 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4794 check, eg exclude it from BUILT_SOURCES.
4796 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4801 * girepository/Makefile.am:
4802 * m4/Makefile.am: Added:
4803 * m4/as-compiler-flag.m4: Added:
4804 * m4/gcov.m4: Added:
4805 * tools/Makefile.am:
4806 Add ability to generate a coverage report.
4807 Adds configure option --enable-gcov and make rule 'check-coverage'.
4809 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4813 * gidl/Makefile.am: Added:
4814 * girepository/Makefile.am: Added:
4815 * src/Makefile.am: Renamed to tools/Makefile.am:
4816 * src/compiler.c: Renamed to tools/compiler.c:
4817 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4818 * src/generate.c: Renamed to tools/generate.c:
4819 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4820 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4821 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4822 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4823 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4824 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4825 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4826 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4827 * src/ginfo.c: Renamed to girepository/ginfo.c:
4828 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4829 * src/girepository.c: Renamed to girepository/girepository.c:
4830 * src/girepository.h: Renamed to girepository/girepository.h:
4831 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4832 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4833 * src/scanner.c: Renamed to tools/scanner.c:
4834 * src/scanner.h: Renamed to tools/scanner.h:
4835 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4836 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4837 * tests/invoke/Makefile.am:
4838 Split src/ into girepository/ and tools/
4842 * girepository/Makefile.am:
4843 * tests/Makefile.am:
4844 * tests/invoke/Makefile.am:
4845 * tests/parser/Makefile.am:
4846 * tests/roundtrips.sh:
4847 * tools/Makefile.am:
4848 Make distcheck work.
4850 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4852 * tests/invoke/invoke.c: (main):
4853 * tests/invoke/testfns.c: (test6), (test7):
4854 * tests/invoke/testfns.xml:
4855 Add tests for invokation with a GList argument.
4856 Also tests caller-owns return values.
4858 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4861 Add some documentation for GICallableInfo
4863 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4866 Correct syntax errors in the DTD file.
4868 * relaxng/c-types.xml:
4869 * relaxng/g-types.xml:
4871 Add a RelaxNG specification for the GObject Introspection XML data.
4872 The Specification has validated all of the test files.
4874 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4876 * tests/roundtrips.sh:
4877 * tests/struct.test:
4878 Add roundtrip tests for structs.
4880 2008-01-11 Johan Dahlin <johan@gnome.org>
4882 * src/scanner.c (g_igenerator_process_function_symbol):
4883 Refactor out g_idle_node_add_member.
4884 (create_node_from_gtype, create_node_from_ctype):
4885 Use case instead of if...else
4886 (get_type_from_type_id):
4887 Rename to create_node_from_gtype
4888 (get_type_from_ctype):
4889 Rename to create_node_from_ctype
4891 Rename ginode -> node, gitype -> type, gifunc -> func.
4893 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4894 Two new functions, refactor out of scanner.c
4896 * src/scanner.c: (g_igenerator_process_function_symbol):
4897 * src/scannerlexer.l:
4898 Do not save the content of the deprecated variable, only
4901 2008-01-11 Johan Dahlin <johan@gnome.org>
4903 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4905 2008-01-11 Jürg Billeter <j@bitron.ch>
4907 * src/scannerlexer.l:
4908 Fix GTK-Doc parsing.
4910 2008-01-11 Jürg Billeter <j@bitron.ch>
4912 * src/scannerlexer.l:
4913 Fix GTK-Doc parsing.
4915 2008-01-11 Jürg Billeter <j@bitron.ch>
4917 * src/scanner.c: (lookup_symbol):
4918 Return unresolved name if we find unknown symbol.
4920 2008-01-11 Jürg Billeter <j@bitron.ch>
4922 * src/scanner.c: (g_igenerator_generate):
4923 Initialize GObject to fix scanning interface properties.
4925 * tests/parser/Foo-expected.gidl:
4926 * tests/parser/foo-object.h:
4927 * tests/parser/foo.c: (foo_interface_get_type):
4928 Test interfaces with GObject prerequisite.
4930 * tests/parser/Makefile.am:
4931 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4933 2007-12-27 Johan Dahlin <johan@gnome.org>
4935 * src/scannerlexer.l:
4936 Parse gtk-doc comments.
4938 * src/gidlwriter.c: (function_generate):
4939 Reorganize, avoid duplication and add support for
4940 writing deprecated functions.
4942 * src/scannerparser.y:
4944 Add new structure CDirective and functions to create/free them.
4946 * src/scanner.c: (g_igenerator_process_function_symbol),
4947 (g_igenerator_process_unregistered_struct_typedef),
4948 (g_igenerator_process_struct_typedef),
4949 (g_igenerator_process_union_typedef),
4950 (g_igenerator_process_enum_typedef),
4951 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4952 (g_igenerator_start_preprocessor):
4953 Parse @deprecated directive for functions.
4954 Remove some more C99isms.
4955 Send in -C to cpp to avoid stripping comments.
4957 * tests/parser/foo-object.h:
4958 * tests/parser/Foo-expected.gidl:
4959 Add deprecated directive
4961 2007-12-27 Johan Dahlin <johan@gnome.org>
4963 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4964 escape ' and " so it looks more like C.
4967 Unlink temporary file used.
4969 2007-12-27 Johan Dahlin <johan@gnome.org>
4971 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4972 (g_igenerator_start_preprocessor), (main):
4974 * src/scannerparser.y:
4975 Plug a couple of simple memory leaks.
4977 2007-12-27 Johan Dahlin <johan@gnome.org>
4979 * src/scanner.c: (g_igenerator_parse_macros),
4980 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4983 * src/scannerparser.y:
4984 * tests/parser/Makefile.am:
4986 Improve error reporting, return when the preprocessor fails.
4987 Add a verbose parameter, to aid debugging.
4988 Revert to using a temporary file to communicate between the
4989 preprocessor and the parser, because we need to wait for
4990 the exit code from the pre-processor before starting to parse.
4992 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4994 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4995 cparser.y to scannerparser.y
4997 2007-12-11 Johan Dahlin <johan@gnome.org>
5001 * src/scanner.c: (g_igenerator_new):
5003 Get rid of the global the_generator variable.
5005 2007-12-10 Johan Dahlin <johan@gnome.org>
5007 * src/scanner.c (main): Add an output option,
5008 add checks for required parameters
5011 set BUILD_SOURCES and CLEANFILES properly
5013 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5014 (g_writer_write_indent), (g_writer_write_unindent),
5015 (field_generate), (value_generate), (constant_generate),
5016 (property_generate), (function_generate), (vfunc_generate),
5017 (signal_generate), (interface_generate), (struct_generate),
5018 (union_generate), (boxed_generate), (enum_generate),
5019 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5021 * src/scanner.c: (g_igenerator_generate):
5023 * src/scannerwriter.c:
5025 Refactor scannerwriter to only be tied to a GIdlModule and move
5026 it (again!) to gidlwriter.c. Change the writer function to take
5029 2007-12-10 Johan Dahlin <johan@gnome.org>
5032 * src/scanner.c: (g_igenerator_generate):
5034 * src/scannerwriter.c: (g_igenerator_write_inline),
5035 (g_igenerator_write), (g_igenerator_write_indent),
5036 (g_igenerator_write_unindent), (field_generate), (value_generate),
5037 (constant_generate), (property_generate), (function_generate),
5038 (vfunc_generate), (signal_generate), (interface_generate),
5039 (struct_generate), (union_generate), (boxed_generate),
5040 (enum_generate), (node_generate), (module_generate),
5041 (g_scanner_write_file):
5043 Move the scanner gidl writing to a separate source file.
5045 2007-12-10 Johan Dahlin <johan@gnome.org>
5050 Move over all CType construction functions.
5052 * tests/parser/Makefile.am:
5053 Be verbose when printing parsing tests results.
5055 2007-12-10 Johan Dahlin <johan@gnome.org>
5057 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5058 preprocessor handling to here. Start cpp insteado of cc -E,
5059 always include -U__GNUC__, since it's specific to the preprocessor
5062 * tests/parser/Makefile.am (check-local): Silent diff and skip
5063 -U__GNUC__ which is always defined now
5065 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5067 reviewed by: <delete if not using a buddy>
5069 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5070 * tests/parser/Makefile.am:
5072 2007-12-09 Johan Dahlin <johan@gnome.org>
5075 Use GOption for command line options.
5076 (g_igenerator_new, main): Simplify constructor and they way
5077 parameters are passed into it.
5083 * src/gen-introspect.c:
5084 * src/gen-introspect.h:
5086 Rename gen-introspect.[ch] to scanner.[ch]
5088 2007-12-09 Johan Dahlin <johan@gnome.org>
5092 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5093 don't make the repository library and the other utilites link against
5096 * src/gen-introspect.c: (g_igenerator_create_object),
5097 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5098 (g_igenerator_create_enum), (g_igenerator_create_flags),
5099 (g_igenerator_process_module_symbol),
5100 (g_igenerator_process_module), (g_igenerator_generate), (main):
5101 * src/gen-introspect.h:
5102 Refactor g_igenerator_process_types into smaller pieces.
5104 * tests/parser/Makefile.am:
5105 Depend on the gen-introspect binary
5107 2007-12-09 Johan Dahlin <johan@gnome.org>
5109 * src/gen-introspect.c (g_igenerator_process_types):
5110 Break into smaller pieces, one for each generated node type.
5112 2007-12-08 Johan Dahlin <johan@gnome.org>
5114 * src/gen-introspect.c: (g_igenerator_process_types),
5115 (g_igenerator_add_module):
5116 * tests/parser/Foo-expected.gidl:
5117 * tests/parser/foo-object.h:
5118 * tests/parser/foo.c: (foo_subobject_class_init),
5119 (foo_subobject_init):
5121 Add a subobject test and make sure to register defined classes
5122 in the lookup symbol hash table.
5124 2007-12-08 Johan Dahlin <johan@gnome.org>
5128 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5129 (g_igenerator_process_types), (g_igenerator_add_module),
5130 (g_igenerator_add_include_idl), (main):
5131 * src/gen-introspect.h:
5132 * tests/parser/Makefile.am:
5133 * tests/parser/Foo-expected.gidl:
5135 Change the gen-introspect to generate namespaced module names,
5136 such as GLib.Object instead of GObject.
5137 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5138 add a --include-idl parameter to gen-introspect,
5139 and update the parser test.
5141 2007-12-08 Johan Dahlin <johan@gnome.org>
5143 * src/gen-introspect.c:
5144 Move main to the end of the file and attempt to make it valid
5147 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5148 we're not quite ready to generate metadata yet.
5153 Add a simple gen-introspect parser test
5155 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5157 reviewed by: Johan Dahlin <johan@gnome.org>
5160 * gobject-introspection.pc.in:
5162 * src/compiler.c: (format_output), (write_out_metadata), (main):
5163 * src/gen-introspect.c: (main):
5164 * src/gen-introspect.h:
5165 * src/generate.c: (write_callable_info), (write_repository),
5166 (load_metadata), (main):
5167 * src/gidlmodule.c: (g_idl_module_new),
5168 (g_idl_module_build_metadata):
5170 * src/gidlparser.c: (start_element_handler):
5171 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5172 (g_base_info_get_name), (g_base_info_get_namespace),
5173 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5174 (g_base_info_get_metadata), (g_function_info_get_symbol),
5175 (g_function_info_get_flags), (g_function_info_get_property),
5176 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5177 (g_callable_info_may_return_null),
5178 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5179 (g_callable_info_get_arg), (g_arg_info_get_direction),
5180 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5181 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5182 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5183 (g_type_info_get_tag), (g_type_info_get_param_type),
5184 (g_type_info_get_interface), (g_type_info_get_array_length),
5185 (g_type_info_is_zero_terminated),
5186 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5187 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5188 (g_value_info_get_value), (g_field_info_get_flags),
5189 (g_field_info_get_size), (g_field_info_get_offset),
5190 (g_registered_type_info_get_type_name),
5191 (g_registered_type_info_get_type_init),
5192 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5193 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5194 (find_method), (g_struct_info_find_method),
5195 (g_enum_info_get_n_values), (g_enum_info_get_value),
5196 (g_object_info_get_parent), (g_object_info_get_type_name),
5197 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5198 (g_object_info_get_interface), (g_object_info_get_n_fields),
5199 (g_object_info_get_field), (g_object_info_get_n_properties),
5200 (g_object_info_get_property), (g_object_info_get_n_methods),
5201 (g_object_info_get_method), (g_object_info_find_method),
5202 (g_object_info_get_n_signals), (g_object_info_get_signal),
5203 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5204 (g_object_info_get_n_constants), (g_object_info_get_constant),
5205 (g_interface_info_get_n_prerequisites),
5206 (g_interface_info_get_prerequisite),
5207 (g_interface_info_get_n_properties),
5208 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5209 (g_interface_info_get_method), (g_interface_info_find_method),
5210 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5211 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5212 (g_interface_info_get_n_constants),
5213 (g_interface_info_get_constant), (g_property_info_get_flags),
5214 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5215 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5216 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5217 (g_constant_info_get_value), (g_union_info_get_n_fields),
5218 (g_union_info_get_field), (g_union_info_get_n_methods),
5219 (g_union_info_get_method), (g_union_info_is_discriminated),
5220 (g_union_info_get_discriminator_offset),
5221 (g_union_info_get_discriminator):
5222 * src/ginvoke.c: (g_function_info_invoke):
5223 * src/girepository.c: (g_irepository_register),
5224 (g_irepository_unregister), (g_irepository_get_default),
5225 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5226 (g_irepository_get_info), (g_irepository_find_by_name),
5227 (g_irepository_get_shared_library),
5228 (g_irepository_build_search_path), (g_irepository_register_file),
5229 (g_irepository_error_quark):
5230 * src/girepository.h:
5231 * src/gmetadata.c: (g_metadata_get_dir_entry),
5232 (g_metadata_check_sanity), (validate_header),
5233 (validate_array_type_blob), (validate_iface_type_blob),
5234 (validate_param_type_blob), (validate_error_type_blob),
5235 (validate_type_blob), (validate_arg_blob),
5236 (validate_signature_blob), (validate_function_blob),
5237 (validate_callback_blob), (validate_constant_blob),
5238 (validate_value_blob), (validate_field_blob),
5239 (validate_property_blob), (validate_signal_blob),
5240 (validate_vfunc_blob), (validate_struct_blob),
5241 (validate_enum_blob), (validate_object_blob),
5242 (validate_interface_blob), (validate_errordomain_blob),
5243 (validate_union_blob), (validate_blob), (validate_directory),
5244 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5245 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5246 (g_metadata_new_from_mapped_file), (g_metadata_free),
5247 (g_metadata_set_module), (g_metadata_get_namespace):
5249 * tests/Makefile.am:
5250 * tests/invoke/Makefile.am:
5251 * tests/invoke/invoke-namespace-find.sh:
5252 * tests/invoke/invoke.c: (main):
5254 Add a namespace/shared library mapping. fixes #313268.
5256 2007-12-03 Johan Dahlin <johan@gnome.org>
5258 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5261 2007-11-30 Jürg Billeter <j@bitron.ch>
5267 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5268 (g_igenerator_write_inline), (g_igenerator_write),
5269 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5270 (field_generate), (value_generate), (constant_generate),
5271 (property_generate), (function_generate), (vfunc_generate),
5272 (signal_generate), (interface_generate), (struct_generate),
5273 (union_generate), (boxed_generate), (enum_generate),
5274 (node_generate), (module_generate), (get_type_from_type_id),
5275 (str_replace), (g_igenerator_process_properties),
5276 (g_igenerator_process_signals), (g_igenerator_process_types),
5277 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5278 (g_igenerator_process_unregistered_struct_typedef),
5279 (g_igenerator_process_struct_typedef),
5280 (g_igenerator_process_union_typedef),
5281 (g_igenerator_process_enum_typedef),
5282 (g_igenerator_process_function_typedef),
5283 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5284 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5285 (g_igenerator_generate), (main), (csymbol_new),
5286 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5287 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5288 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5289 (eat_hspace), (eat_line), (read_identifier),
5290 (g_igenerator_parse_macros):
5291 * src/gen-introspect.h:
5293 Import gen-introspect to generate introspection information by
5296 2007-11-30 Jürg Billeter <j@bitron.ch>
5298 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5300 2007-11-30 Jürg Billeter <j@bitron.ch>
5302 * src/gidlparser.c: (end_element_handler): Don't leave requires
5305 2007-11-29 Johan Dahlin <johan@gnome.org>
5307 * src/gidlparser.c (parse_type_internal): Add char,
5308 gchar and guchar to the builtin types.
5310 2007-11-26 Johan Dahlin <johan@gnome.org>
5312 * src/ginfo.c: (g_object_info_get_type_name),
5313 (g_object_info_get_type_init):
5314 * src/girepository.c: (g_irepository_is_registered):
5315 * src/girepository.h:
5317 Add g_object_info_get_type_name, g_object_info_get_type_init and
5318 g_irepository_is_registered.
5320 2006-08-14 Jürg Billeter <j@bitron.ch>
5322 * src/gidlparser.c: (end_element_handler): Don't leave
5323 namespace and implements states too early.
5326 2007-11-26 Johan Dahlin <johan@gnome.org>
5328 * src/gmetadata.c (validate_struct_blob):
5329 pass blob_type to validate_function_blob instead of
5330 hard-coding BLOB_TYPE_STRUCT.
5332 Patch by Torsten Schoenfeld, fixes #314190
5334 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5336 * src/compiler.c, src/generate.c, src/gidlnode.c,
5337 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5338 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5339 warnings about return values, signedness mismatches, unused
5340 variables, and unhandles enum values in switch statements.
5342 * tests/invoke/Makefile.am: Don't install the invoke test program.
5343 Add -I ../../src to the cflags used for the test functions files.
5345 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5347 * src/girepository.h: Export g_invoke_error_quark.
5349 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5351 * src/ginvoke.c: Remove the fallback implementation of
5352 g_function_info_invoke since we now formally depend on libffi.
5354 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5356 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5357 Remove these files from cvs, as they are now generated.
5359 * src/gmetadata.c (validate_iface_type_blob): Don't
5360 complain if blob->pointer is not set, since that
5361 happens for enum and flag types. (#308935, Gustavo
5364 * Commit an autoconf-conversion patch by
5365 Gustavo Carneiro (#308708)
5367 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5369 * src/compiler.c (main): Use it here to validate
5370 the generated metadata.
5372 * src/gmetadata.[hc]: Add code to validate a
5375 * metadata-format.txt: Updates
5377 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5379 * tests/*: Add struct offsets to field and vfunc
5382 * src/generate.c (write_vfunc_info): Write offset
5383 information for vfuncs.
5385 * src/gidlnode.c (g_idl_node_build_metadata): Write
5386 the struct offsets into the metadata.
5388 * src/gidlparser.c: Parse the offset attributes of
5389 field and vfunc elements.
5391 * src/gidlnode.h: Add offset members to field and
5394 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5398 * gidl.dtd: Updates.
5400 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5401 file, creates, compiles and runs a C file, and folds the
5402 resulting struct offsets back into the .gidl file.
5404 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5406 * src/gidlparser.c (start_field): Make fields in objects
5409 * src/gidlmodule.c: Include string.h
5414 * metadata-format.txt: Cleanup basic types.
5415 * src/*: Adapt to the changes.
5416 * tests/*: Adapt to the changes.
5417 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5419 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5420 size for enum blobs.
5421 (g_idl_node_get_full_size): Report the correct size for
5424 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5425 error checking for blob sizes.
5427 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5429 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5430 interface types for which is_pointer is FALSE, e.g. enums.
5432 * src/gidlnode.c (g_idl_node_get_full_size)
5433 * src/gidlparser.c (parse_type_internal):
5434 * src/generate.c (write_type_info): Support unspecialized
5435 lists, hashtables and errors. Also emit a '*' after these.
5439 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5443 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5445 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5447 * src/*.c: Change the directory to be addressed by
5448 1-based indexes, and use an index of zero to mean
5451 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5453 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5455 * tests/union.test: Add a union test.
5457 * src/generate.c: Handle unions.
5459 * src/girepository.h:
5460 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5462 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5464 * src/gidlparser.c (start_union): Parse <union> elements.
5466 * src/gidlnode.h: Add a GIdlNodeUnion.
5468 * gidl.dtd: Add a <union> element.
5470 * src/gmetadata.c (g_metadata_check_sanity): Check
5473 * src/gmetadata.h: Add union_blob_size to Header,
5476 * metadata-format.txt: Add a UnionBlob.
5478 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5480 * tests/*: Update testcases.
5482 * src/generate.c (write_callable_info): Don't forget to
5483 write transfer and null-ok attributes for return types
5486 * src/girepository.h:
5487 * src/ginfo.c (g_callable_info_may_return_null):
5488 New function to find out if a function may return NULL.
5490 * src/compiler.c (format_output): Make the generated
5493 * README: Point to a recent libffi snapshot.
5495 * tests/invoke/*: Some invoke tests.
5497 * src/Makefile: Add ginvoke.c and the necessary
5500 * src/girepository.h (g_function_info_invoke): Add
5503 * src/ginvoke.c (g_function_info_invoke): Initial
5504 implementation of invoke functionality based on libffi.
5506 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5507 strings and types hash tables in the right order when
5509 (find_entry_node): Free the name parts.
5511 2005-05-12 Johan Dahlin <johan@gnome.org>
5513 * src/generate.c: Generate consistent end tags.
5517 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5521 * src/gidlparser.c (start_function): Actually add
5522 methods to objects. (Steven Walter)
5524 * src/girepository.h:
5525 * src/ginfo.c: Rename Transfer and Direction to
5526 GITransfer and GIDirection. (Torsten Schoenfeld)
5528 * tests/*: Make tests work with the changes in name
5531 * src/gidlnode.c (find_entry_node): Parse qualified
5532 names and generate xref nodes for them if needed. Don't
5533 require all modules to be loaded any more.
5535 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5538 * src/ginfo.c (g_object_info_get_parent): Return NULL
5539 if blob->parent is 0. Still need to make sure index
5542 * src/generate.c: Generate qualified names when
5543 referring to non-local types. Emit transfer attribute
5546 * src/compiler.c (format_output): Put the function
5547 attributes where gcc accepts them.
5549 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5551 * src/compiler.c (main): Add a --verbose cmdline option
5552 and only log messages if it is specified.
5555 * src/gidlnode.c (init_stats, dump_stats): Collect some
5556 statistics on string and type sharing.
5558 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5559 g_message() instead of fprintf().
5561 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5562 (g_idl_node_get_size): Implement for structs.
5563 (g_idl_node_get_full_size): Handle parent being NULL.
5564 (serialize_type): Handle lookup failures more gracefully.
5566 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5568 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5569 size calculation for 2-parameter types and for objects.
5571 * src/compiler.c: Add a cmdline option for debug output
5572 and install a log handler to implement it.
5573 * src/gidlnode.c: Add some debug spew.
5577 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5578 forget to count the module name when calculating the
5579 required size for the metadata.
5582 * src/gidlparser.c: Fix compiler warnings.
5584 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5586 * src/compiler.c (main): Free the option context.
5588 * gidl.dtd: Clean up handling of names. All elements
5589 have a "name", only the elements corresponding to
5590 actual callable functions (function, method, constructor),
5591 have an additional "symbol" attribute holding the
5592 dlsym()-able function name.
5594 * src/generate.c: Adapt to generate xml matching the
5598 * src/gidlnode.c: Adapt to parse the new dtd.
5600 * tests/*.test: Adjust to the new dtd.
5602 * metadata-format.txt:
5603 * src/gmetadata.h: Remove the short_name field
5605 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5606 * src/girepository.h:
5607 * src/ginfo.c (g_value_info_get_short_name): Removed
5609 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5611 * gidl.dtd: Allow constructors for boxed types,
5612 patch by Jonathan Blandford.
5615 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5617 * --- Initial import ---