1 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
3 * giscanner/dumper.py (DumpCompiler._link): Pass in
4 --tag=CC to libtool to avoid making libtool confused
5 when CC is different from gcc on some systems.
7 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
9 Bug 563998 – Cache the GIBaseInfo for GTypes
11 * girepository/girepository.c (g_irepository_find_by_gtype):
12 add a cache of GType -> GIBaseInfo.
14 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
16 Bug 562545 – Add function taking / returning GValue
18 * tests/everything/everything.[ch]: add a test of function taking and
19 returning "const GValue *"
21 2008-12-09 Johan Dahlin <johan@async.com.br>
23 * giscanner/cachestore.py (CacheStore.store): Use
24 shutil.move instead of os.rename, since it will
25 automatically fall back to copying+remove if the
26 src directory is on a different partition from
29 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
31 Bug 563742 – introspection should record the introduced version of
32 symbols marked with the "Since:" tag
37 * giscanner/girwriter.py:
38 * giscanner/scannerlexer.l:
39 * giscanner/transformer.py:
40 * tests/scanner/annotation-1.0-expected.gir:
41 * tests/scanner/annotation-1.0-expected.tgir:
42 * tests/scanner/annotation.c (annotation_versioned):
43 * tests/scanner/annotation.h:
45 2008-12-08 Johan Dahlin <johan@async.com.br>
47 * giscanner/cachestore.py (_get_cachedir): Don't require
48 HOME to be set and if it set, don't require the
51 2008-12-08 Johan Dahlin <johan@async.com.br>
53 * giscanner/cachestore.py (CacheStore.store): Dump the cache
54 file to a temporary file and rename it the expected filename
55 only when it's completely written.
56 This should make the cache more roboust when run in parallel,
57 and hopefully avoid triggering bugs in Python.
59 2008-12-03 Christophe Fergeau <teuf@gnome.org>
61 Bug 562971 – g-ir-scanner failure on libgpod headers
63 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
64 default 16384. Without it, the lexer was aborting with a cryptic
65 error message on source files containing really long comment
68 2008-12-01 Colin Walters <walters@verbum.org>
70 * girepository/gfield.c: Fix memory leak; unref type info we
71 created, not field info
73 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
75 Bug 562289 – Race when removing invalid cache
77 * giscanner/cachestore.py:
78 ENOENT is mapped to a OSError, not IOError.
80 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
82 * gir/glib-2.0.c: Add return value transfer annotation
83 for g_markup_escape_text.
85 2008-11-25 Colin Walters <walters@verbum.org>
87 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
89 * giscanner/dumper.py: Implement it.
90 * gir/Makefile.am, tests/**/Makefile.am: Use it.
92 2008-11-25 Colin Walters <walters@verbum.org>
94 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
95 to just use a Makefile rule and dependencies. This corresponds with a change
96 made to gir-repository to fix srcdir != builddir issues.
98 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
101 Post release version bump
104 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
109 2008-11-25 Colin Walters <walters@verbum.org>
111 Bug 559705 – Missing association between static methods and classes
113 * docs/typelib-format.txt:
114 * girepository/ginfo.c (g_function_info_get_flags):
115 * girepository/girmodule.c (g_ir_module_build_typelib):
116 * girepository/girnode.c (g_ir_node_get_size),
117 (g_ir_node_build_typelib):
118 * girepository/girparser.c (start_function):
119 * girepository/gtypelib.c (g_typelib_check_sanity),
120 (validate_header), (validate_function_blob):
121 * girepository/gtypelib.h:
123 * giscanner/girwriter.py:
124 * giscanner/glibtransformer.py:
125 * tests/scanner/foo-1.0-expected.gir:
126 * tests/scanner/foo-1.0-expected.tgir:
127 * tests/scanner/foo.h:
129 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
131 * giscanner/ast.py: Define socklen_t as an alias for int32.
133 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
135 * girepository/gdump.c (dump_type): Remove a warning,
136 be less verbose on error on fundamental types.
138 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
140 * giscanner/dumper.py: Add license headers,
141 refactor into a class, avoid some duplication and do some
142 extra pedantic checks.
144 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
146 Make it compilable with -Werror on my system by adding
147 a couple of prototypes and including headers.
149 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
151 Bug 562022 – gobject-introspection needs python headers
153 * configure.ac: fail without python headers present.
156 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
158 Bug 561617 – Return value array annotations
160 * giscanner/transformer.py:
161 * tests/scanner/annotation.c (annotation_return_array):
162 * tests/scanner/annotation.h:
163 Add support for (array) for return value annotations as well.
165 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
167 * tests/everything/everything.[ch]: add a test function which calls a
170 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
172 * giscanner/cachestore.py:
173 Catch ValueError exceptions.
175 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
177 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
179 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
181 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
182 instead of hard-coding struct sizes.
184 2008-11-18 Owen Taylor <otaylor@redhat.com>
186 Bug 561296 - Add "storage type" to the typelib data for enums
188 In order to set and get enum and flag fields in structures, we need
189 to know the integral type that the enumeration is stored as. We are already
190 computing that at compile time in order to compute struct offsets, so the
191 easiest thing to do is to save that in the typelib.
193 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
194 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
195 and compute and save it at compile time.
197 * girepository/girepository.h girepository/ginfo.c:
198 Add g_enum_info_get_storage_type().
200 * girepository/gfield.c: Implement reading and writing enum and flags fields
201 based on the storage type.
203 2008-11-18 Owen Taylor <otaylor@redhat.com>
205 Add enums to the Everything test module
207 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
208 test module and register them as GTypes.
210 https://bugzilla.gnome.org/show_bug.cgi?id=561296
212 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
214 * giscanner/cachestore.py:
215 Catch BadPickleGet exceptions as well.
217 2008-11-17 Owen Taylor <otaylor@redhat.com>
219 * tests/everything/everything.c: Fix doc comment annotations
220 for test_struct_b_clone() to refer to the right function.
222 2008-11-17 Dan Winship <danw@gnome.org>
224 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
225 spelling of GHashTable. #561135
227 * tests/scanner/annotation.c (annotation_object_get_hash):
228 * tests/scanner/annotation-1.0-expected.gir:
229 * tests/scanner/annotation-1.0-expected.tgir: add a test of
230 GHashTable annotations
232 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
234 * giscanner/ast.py: Change string array match type to be in terms
235 of canonicalized type.
236 * giscanner/transformer.py: Add canonicalize_ctype which gives us
237 a version of a c:type without aliases, so we can deep canonicalize
238 char** to utf8*. Update parse_ctype to use it.
239 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
241 2008-11-16 Colin Walters <walters@verbum.org>
243 * girepository/girepository.c: Ensure we always call init_globals,
244 even if passed a non-default repository.
246 2008-11-16 Colin Walters <walters@verbum.org>
248 Bug 559706 - Interface prerequisites
250 * common.mk: Dep on libgirepository.la for scanner libs so that
251 we rebuild things even if just gdump.c changes.
252 * girepository/gdump.c: Dump prerequisites.
253 * giscanner/ast.py: Add prerequisite list.
254 * giscanner/girparser.py: Parse them from gdump.
255 * giscanner/girwriter.py: Write them.
256 * giscanner/glibtransformer.py: Resolve them.
259 2008-11-16 Owen Taylor <otaylor@redhat.com>
261 Bug 561087 - Respect is_pointer in serialize_type()
263 Add a '*' to the serialization for the cases where we set is_pointer
264 in the type blob we write out depending on node->is_pointer. Don't
265 add the '*' in the cases where is_pointer is set or not set in a
268 http://bugzilla.gnome.org/show_bug.cgi?id=561087
270 2008-11-16 Owen Taylor <otaylor@redhat.com>
272 Bug 560825 – Add size and alignment to typelib
274 Include the size and alignment of structures and unions in the typelib,
275 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
277 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
278 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
279 to StructBlob and UnionBlob.
281 * girepository/ginfo.c girepository/girepository.h:
282 Add g_[struct|union]_get[size|alignment]().
284 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
286 2008-11-16 Owen Taylor <otaylor@redhat.com>
288 Bug 552371 – implement struct field get/set
290 * girepository/gfield.c girepository/girepository.h: Add
291 convenience functions g_field_info_set_field() and
292 g_field_info_get_field() to set and get fields based on the
293 offsets in GIFieldInfo.
295 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
297 Bug 560241 - Out-arguments should not be marked as being pointers
300 * girepository/girparser.c: Improved logic for out arguments.
302 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
304 Bug 559601 - Pointers in structs/unions unduly treated as arrays
306 * giscanner/transformer.py: Differentiate type creation logic
307 between parameters and struct components.
309 2008-11-15 Colin Walters <walters@verbum.org>
311 * giscanner/dumper.py: Check return code from pkg-config
314 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
316 * tests/everything/everything.c (test_array_int_in),
317 (test_array_gtype_in):
318 * tests/everything/everything.h:
319 Rename the int/gtype array tests. Make the return value
320 useful, an aggregation of the array input values.
322 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
324 * tests/everything/Makefile.am:
325 * tests/everything/everything.c:
326 * tests/everything/everything.h:
327 * tests/everything/gitesttypes.c:
328 * tests/everything/gitesttypes.h:
329 Rename gitesttypes.[ch] to everything.[ch]
331 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
333 Bug 560708 – Don't treat arrays that have a length specified as
334 zero-terminated by default
336 * giscanner/transformer.py: Default to non zero terminated for
338 * tests/*: Update, add test for zero vs not.
340 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
342 Bug 557788 - Return types for constructors in generated typelib bogus
344 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
345 obviously broken in the face of duplicate names in different
347 * tests/scanner/*expected.gir: Fix up.
349 2008-11-13 Owen Taylor <otaylor@redhat.com>
351 * girepository/girffi.c: Fix "Unexpected time for time_t"
354 2008-11-13 Colin Walters <walters@verbum.org>
356 Bug 558436 - avoid having scanner load app code
358 * giscanner/cgobject.py: Delete; we no longer load shared
360 * giscanner/dumper.py: Support for linking a library to
361 a stub binary for introspection.
362 * giscanner/glibtransformer.py: Rewrite to use gdump XML
363 from invocation of child binary.
364 * giscanner/transformer.py: Fix up to use fully qualified
365 name in parse tree. Make parse_ctype public so we can use
366 it inside glibtransformer.
367 * tests/scanner/barapp.c: New test, using --program arg
369 * tests/*: Update to use common.mk for invoking scanner.
370 * tools/g-ir-scanner: Add options --program, --program-arg,
372 * docs/g-ir-scanner.1: Update.
374 2008-11-13 Colin Walters <walters@verbum.org>
376 * configure.ac: Depend on Gio, we use it in gdump.c.
377 * girepository/gdump.c: Code to dump GType data to XML.
378 * girepository/girepository.c: Add option group for dumping.
379 * girepository/girepository.h: Define API for the above.
381 2008-11-13 Colin Walters <walters@verbum.org>
383 * common.mk: Add a file to include with Makefile fragments
384 useful for scanner invocation.
386 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
388 * tests/everything/gitesttypes.c (test_filename_return): Return
389 strings in filename encoding.
391 2008-11-13 Owen Taylor <otaylor@redhat.com>
393 Bug 560253 – Add structure and boxed types to Everything test module
395 * tests/everything/gitesttypes.[ch]: Add examples of:
397 Plain old data structs
398 Plain old data structs with nested fields
400 Plain old data boxed with nested fields
401 More complicated boxed types with internal state
403 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
405 * tests/everything/gitesttypes.c (test_gtype_in):
406 * tests/everything/gitesttypes.h:
407 Add a test of GType arrays, a la gtk_list_store_set_columns.
409 2008-11-12 Owen Taylor <otaylor@redhat.com>
411 Bug 560419 – Cache includes when parsing
413 Keep track of all modules parsed within a GIrParser, and when a
414 module is referenced a second time, use the existing parsed copy
415 instead of reparsing.
417 2008-11-12 Owen Taylor <otaylor@redhat.com>
419 Fix management of ParseContext.includes_modules (#560419)
421 * girepository/girparser.c: Fix some trivial bugs in managing the
422 list of include modules. (Add to module's list twice, not
423 initialized to NULL, not freed.)
425 2008-11-12 Owen Taylor <otaylor@redhat.com>
427 Keep aliases and disguised_structures local to each module (#560419)
429 * girepository/girmodule.[ch]: When parsing, keep keep a separate
430 hash tables of aliases and 'disguised' flags for each module, and
431 store that on the module.
433 After parsing an include merge the aliases/disguised flags to the
436 * girepository/girparser.c: Remove 'prefix_aliases' flag and
437 always prefix aliases/disguised structure types when parsing; this
438 simplifies the code considerably.
440 2008-11-12 Owen Taylor <otaylor@redhat.com>
442 Fix mismatches between .gir name and 'name' attribute (#560419)
444 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
445 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
446 where the 'name' element of <namespace/> didn't match the filename of the
447 gir, an assumption that the compiler has always expected and now enforces.
449 2008-11-12 Owen Taylor <otaylor@redhat.com>
451 Only allow one <namespace/> element per <repository/> (#560419)
453 * girepository/girparser.c: The logic in girparser.c didn't work
454 very well if there were multiple <namespace/> nodes within a
455 single <repository/> (context->namespace was always the overall
456 filename and not the the name specified in the <namespace/>
457 element for one thing; this would cause aliases to be mis-prefixed
458 in include modules.) Also check that the "name" in the
459 <namespace/> node matches the filename.
461 2008-11-12 Owen Taylor <otaylor@redhat.com>
463 Add a GirParser object to hold the state of a compilation
465 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
466 GirParser object to hold state that is global across a
467 compilation. Currently just holds the include path, but will
468 eventually also keep a cached list of parsed modules.
470 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
472 * girepository/girepository.c (find_namespace_latest): Fix
475 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
477 * configure.ac: use 'introspection' component for bugs
479 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
481 * tests/everything/gitesttypes.c (test_filename_return):
482 * tests/everything/gitesttypes.h:
483 Add a filename return test.
485 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
487 * tests/offsets/Makefile.am (gitestoffsets.c): fix
488 gen-gitestoffsets invocation with builddir != srcdir
490 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
492 * girepository/girepository.c:
493 Change the element type from utf8 to filename
494 * girepository/girnode.c (g_ir_node_build_typelib):
495 Special case filename equally to utf8 here.
497 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
500 Remove unused variables, add a dependency of girepository.ch, so when
501 they change we rebuild the gir automatically.
503 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
505 * girepository/girepository.c (g_irepository_get_search_path):
506 * girepository/girepository.h:
507 Add a g_irepository_get_search_path, so we can access the search
510 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
512 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
514 * girepository/girparser.c: avoid freeing an uninitialized pointer
516 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
519 * giscanner/glibtransformer.py:
520 * tools/g-ir-scanner:
521 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
522 so we can just pass in --library=foo/bar/baz.la and the scanner
523 does the right thing.
524 Don't warn for _get_type() functions if they don't take any
527 2008-11-11 Owen Taylor <otaylor@redhat.com>
529 Bug 560404 – Prefix types when resolving aliases in included modules
531 * girepository/girparser.c: When resolving aliases in an included
532 module, prefix types before looking them up.
534 2008-11-11 Owen Taylor <otaylor@redhat.com>
536 Compute field offsets and overall size for object structures
538 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
539 field of type object in structure"
541 Do basic computation of field offsets for objects and interfaces;
542 this doesn't attempt to address all of the "mess" for virtual
543 functions described in Bug 560281.
545 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
547 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
549 Based on patch by Johan Bilien.
551 * giscanner/transformer.py (_create_member, _create_parameter):
552 Resolve types here as well.
553 (_resolve_type_name_1): Try resolving using 'ctype' first since
554 it's least ambiguous. Fixes struct member type resolution with
555 similarly named types, e.g. Gdk.PangoRendererClass and
557 * tests/scanner/foo*: Add test.
559 2008-11-11 Owen Taylor <otaylor@redhat.com>
561 * girepository/girparser.c: Search provided include dirs before
562 the default directories.
564 2008-11-11 Owen Taylor <otaylor@redhat.com>
566 * girepository/giroffsets.c: Include fully-qualified names in
569 2008-11-11 Owen Taylor <otaylor@redhat.com>
571 * girepository/giroffsets.c: Fail gracefully with an informative
572 error message when recursion is encountered when computing a
575 2008-11-11 Owen Taylor <otaylor@redhat.com>
577 * girepository/girparser.c: Remove an unused variable.
579 2008-11-10 Owen Taylor <otaylor@redhat.com>
581 Add tests for field offset computations
583 * tests/offsets/offsets.h: Header file with structure definitions to test
585 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
586 field offsets for the structures in offsets.h two ways: using
587 the information from a generated typelib, and as computed by the
590 We diff these two versions to test that everything is OK.
592 2008-11-10 Owen Taylor <otaylor@redhat.com>
594 Remove field offsets from g-ir-generate output and test inputs
596 Field offsets are a) architecture dependent so they shouldn't be part
597 of the architecture-independent gir format which is installed in
598 datadir. b) Are architecture-dependent so they shouldn't be in test
601 * girepository/girparser.c: Don't parse offset for fields
602 * tools/generate.c: Don't parse offset for fields
603 * tests/*.gir test/scanner/*.tgir: Remove offsets
605 (Virtual function and discriminator offsets are not removed, as they
606 aren't fully hooked up to the field-offset computation machinery yet.)
608 2008-11-10 Owen Taylor <otaylor@redhat.com>
610 Bug 560252 - Compute field offsets before writing typelib
612 * girepository/girnode.h: Store the total size and alignment for
613 GIrNodeStruct/Boxed/Union.
615 * girepository/giroffset.c: New file implementing computation of
616 structure field offsets.
618 * girepository/girnode.c: Compute structure field offsets before
619 writing types into the typelib.
621 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
622 means "unknown". Also fix description of the discriminator_offset
625 2008-11-10 Owen Taylor <otaylor@redhat.com>
627 Bug 560250 - Fully parse included modules
629 For some things, like computing structure offsets to put into the typelib
630 we need more than just the aliases from included modules. Do a completel
631 parse of included modules and store in module->included_modules.
633 Also add g_ir_find_node() to find node information from within the
634 active set of modules and their includes.
636 2008-11-10 Owen Taylor <otaylor@redhat.com>
638 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
640 Extract a function to convert GITypeTag to ffi_type from the internals
641 of ginvoke.c. This will be useful in figure out structure alignment.
643 Also fix handling of gsize and time_t to be portable. (Add a check
644 to configure.ac to figure out the width of time_t.)
646 2008-11-10 Owen Taylor <otaylor@redhat.com>
648 Bug 560248 – "disguised structures"
650 Certain types like GIConv and GdkAtom are pointers internally but don't
651 look like pointers when referenced. They have the form.
653 typedef struct _X *X;
655 Parse these as structures/records but mark them in the gir with a 'disguised'
656 attribute so that we know that they need special handling.
658 In the typelib treat them like any other structure.
660 2008-11-09 Jürg Billeter <j@bitron.ch>
663 * giscanner/girwriter.py:
665 Write throws attribute for virtual functions, fixes bug 559703
667 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
669 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
670 up some confusion about the second argument to find_module, it's
671 actually the packages __path__ attribute which we can safely ignore
673 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
675 2008-11-07 Owen Taylor <otaylor@redhat.com>
677 Bug 559737 – Deal with continuations in macros
679 * giscanner/giscannerlexer.l: Treat continuation lines the same
680 as regular newlines. This makes the scanner not complain about
681 #define foo(x) \ <stuff> inside a C file. There's no attempt
682 however to handle parsing macro definitions split across lines.
684 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
686 * giscanner/cachestore.py:
687 Handle broken cache entries, write only filesystems and
688 running out of diskspace.
690 2008-11-07 Owen Taylor <otaylor@redhat.com>
692 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
693 Set current_filename before lexing the file so error messages
694 are reported in the right file.
696 2008-11-06 Colin Walters <walters@verbum.org>
698 * tests/everything/*: Add some tests for strv.
700 2008-11-05 Colin Walters <walters@verbum.org>
702 * girepository/ginvoke.c (g_function_info_invoke): Don't use
703 nested scope local variable for error which may go away after
704 conditional is complete.
706 2008-11-05 Colin Walters <walters@verbum.org>
708 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
709 manipulate hackily; just use GString. This avoids an
710 uninitialized memory read pointed out by Havoc.
712 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
714 * giscanner/__init__.py:
716 * giscanner/cachestore.py:
717 * giscanner/cgobject.py:
718 * giscanner/girparser.py:
719 * giscanner/girwriter.py:
720 * giscanner/giscannermodule.c:
721 * giscanner/glibast.py:
722 * giscanner/glibtransformer.py:
723 * giscanner/libtoolimporter.py:
724 * giscanner/minixpath.py:
725 * giscanner/odict.py:
726 * giscanner/sourcescanner.c:
727 * giscanner/sourcescanner.h:
728 * giscanner/sourcescanner.py:
729 * giscanner/transformer.py:
730 * giscanner/utils.py:
731 * giscanner/xmlwriter.py:
733 Relicense the giscanner library under LGPLv2+.
734 This has been approved by all contributors.
736 2008-11-01 Owen Taylor <otaylor@redhat.com>
738 Bug 558848 giparser.py: shared library should be optional
740 When parsing a .gir, allow the shared-library attribute
741 of <namespace/> to be missing: this corresponds to the handling
742 in libgirepository and elsewhere.
744 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
746 Bug 557898 – Fails to build on OSX 10.4
748 * configure.ac: Check for $shrext_cmds that should be implicitly
749 available if you're using libtool >= 2.0. If undefined, call
750 libtool --config explicitly to get its value.
751 * girepository/gtypelib.c: Remove special case for (non-)Darwin
754 2008-10-31 Colin Walters <walters@verbum.org>
756 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
758 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
760 * configure.ac: Post release version bump
763 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
767 * docs/release-checklist.txt:
770 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
772 * Makefile.am: add an upload-release target
773 * docs/release-checklist.txt:
774 Release process documentation
776 2008-10-31 Colin Walters <walters@verbum.org>
778 Bug 558109 – _g_typelib_init fails to find shared libraries
780 * transformer/glibtransformer.py: Use ctypes' find_library
781 on passed libraries and write that for the shared-library
782 entry. We want to avoid depending on -devel packages.
784 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
786 * docs/g-ir-scanner.1:
787 Document the renaming options.
789 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
791 * giscanner/Makefile.am:
792 * tests/invoke/Makefile.am:
793 * tests/repository/Makefile.am: List in-tree libraries first in
794 LDADD / LIBADD. If installed library is listed first, the
795 resulting binary will prefer installed version to one in .libs,
796 possibly making 'make check' behave strangely.
798 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
800 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
801 gir-repository from choking with gdk/quartz
803 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
805 * giscanner/giscannermodule.c (calc_attrs_length),
806 (pygi_collect_attributes):
807 * giscanner/xmlwriter.py:
808 Write a C version of the xml namespace formatter.
809 Saves 15% of the time it takes to create a gtk gir.
811 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
813 * giscanner/xmlwriter.py: Abstract attribute formatting
814 to a function external to the XMLWriter class.
816 * giscanner/scannerlexer.l:
817 Parse and discard __typeof and __attribute.
819 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
821 * giscanner/girparser.py:
822 Remove arguments from the constructor, move them to
823 separate accessors. Add a new parse_tree method
824 which takes an element tree instance.
825 * tools/g-ir-scanner:
826 Update callsite for this
828 * giscanner/Makefile.am:
829 * giscanner/cachestore.py:
830 * giscanner/transformer.py:
831 Cache the include parsing. Saves ~25% time when
832 creating vte (which includes everything up to gtk+).
834 2008-10-30 Colin Walters <walters@verbum.org>
836 * giscanner/transformer.py: Don't reparse includes
837 we've already processed.
839 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
841 * giscanner/girparser.py:
842 * giscanner/transformer.py:
843 Avoid parsing parameters, types etc when parsing
844 includes. Should speed up include parsing a bit.
846 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
848 * giscanner/girparser.py:
849 Avoid big if/else and use a dispatch table like
852 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
854 * giscanner/transformer.py:
855 Clean up include parsing and registration.
857 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
859 * giscanner/transformer.py:
862 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
864 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
867 construct PYTHONPATH just once
869 * tests/everything/Makefile.am:
870 * tests/scanner/Makefile.am:
871 add $(top_srcdir) to PYTHONPATH to
872 handle builddir != srcdir
874 * giscanner/libtoolimporter.py:
875 * giscanner/sourcescanner.py:
876 Make the libtoolimporter work when distchecking too.
878 Mostly based on patch by Tommi Komulainen
880 2008-10-29 Owen Taylor <otaylor@redhat.com>
882 * giscanner/glibtransformer.py: If a filename of an existing
883 file is passed to --library, hunt for it directly, rather than
884 searching for a corresponding library.
886 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
888 * giscanner/libtoolimporter.py:
889 * giscanner/sourcescanner.py:
890 Clean up the libtool importer a bit. Add a context so we
891 can use it through a with statement.
892 Don't just look in the current directory, look in the whole
895 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
897 Bug 558065 – gitesttypes should be installed
901 * tests/types/Makefile.am -> tests/everything/Makefile.am
902 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
903 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
904 move tests/types to tests/everything
906 * tests/everything/Makefile.am: build normal shared library
907 libgirepository-everything.so.1.0.0 and corresponding typelib
908 Everything-1.0.typelib
910 * tests/everything/Makefile.am: explicitly link libtool
911 versioning with typelib versioning with variables
913 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
915 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
917 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
919 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
922 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
924 Bug 558068 – when invoking a method, offset the in arguments by one,
927 * tests/invoke/invoke.c, tests/invoke/testfns.c,
928 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
929 * girepository/ginvoke.c: do not offset the index of given out
930 arguments by one for methods, "this" is provided as in argument only.
932 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
934 * gir/gio-2.0.c: add annotation for g_file_delete
936 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
938 Bug 558062 – provide and use paths in the .pc file
940 * gobject-introspection-1.0.pc.in: provide typelibdir variable
941 for where .typelibs should be installed (callers shouldn't need
942 to construct paths from bits and pieces)
944 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
946 Bug 557791 – g_irepository_require() could return a GTypelib *
948 * girepository/girepository.c: Return GTypelib; this is useful
949 for low level manipulation.
951 2008-10-25 Colin Walters <walters@verbum.org>
953 Bug 557788 – Return types for constructors in generated typelib bogus
955 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
956 rely on end pass resolution.
958 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
960 Bug 557786 - support fixed size arrays
962 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
963 * giscanner/scannerparser.y: Retain fixed array size.
964 * giscanner/ast.py: Add to note.
965 * giscanner/girwriter.py: Write to gir.
966 * girepository/girnode.c: Write it to typelib.
967 * tools/generate.c: Generate.
968 * tests/*: Add tests.
970 2008-10-25 Colin Walters <walters@verbum.org>
972 Bug 557076 - move typelibs to $libdir
974 * configure.ac: Steal some configury bits from dbus to expand
976 * gir/Makefile.am: Move to libdir.
977 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
978 instead just look at one hardcoded path in libdir.
979 * acinclude.m4: Bits from dbus.
981 2008-10-24 Johan Dahlin <johan@gnome.org>
983 * girepository/girnode.c (g_ir_node_check_unhandled_members):
984 Be quiet, do not warn about unhandled members.
986 2008-10-24 Johan Dahlin <johan@gnome.org>
988 * girepository/gtypelib.c:
989 Only use SHLIB_SUFFIX on darwin, otherwise use
990 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
992 2008-10-24 Lucas Rocha <lucasr@gnome.org>
994 Bug 557623 - Constructors shouldn't be flagged as methods.
996 * girepository/ginfo.c (g_function_info_get_flags): ditto.
998 2008-10-24 Johan Dahlin <johan@gnome.org>
1000 * giscanner/scannerparser.y:
1001 Check against division by zero for the modula operator.
1002 This fixes header parsing of OSX system headers included
1005 2008-10-24 Johan Dahlin <johan@gnome.org>
1009 Add a CONTRIBUTORS file and dist it.
1011 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1013 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1015 * girepository/girparser.c (parse_param_transfer):
1016 * giscanner/transformer.py (_create_parameter, _create_return):
1017 * giscanner/girwriter.py (_write_return, _write_parameter):
1018 * tools/generate.c (write_callable_info): always write and
1019 require "transfer-ownership" for return-values and parameters
1022 * tests/invoke/testfns-1.0.gir:
1024 * tests/scanner/DrawableAdditions.xml:
1025 * tests/scanner/GtkFrob-1.0-expected.tgir:
1026 * tests/scanner/annotation-1.0-expected.tgir:
1027 * tests/scanner/drawable-1.0-expected.tgir:
1028 * tests/scanner/drawable-injected-1.0-expected.gir:
1029 * tests/scanner/drawable-injected-1.0-expected.tgir:
1030 * tests/scanner/foo-1.0-expected.tgir: Updated
1032 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1034 * giscanner/cgobject.py: build fundamental types same way as glib
1036 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1037 when constructing the Type from it
1039 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1040 the parameter is a GObject from its GType, if available.
1042 * giscanner/glibtransformer.py (_adjust_transfer):
1043 * tests/scanner/foo-1.0-expected.gir:
1044 * tests/scanner/foo-1.0-expected.tgir: deduce
1045 transfer-ownership from GTypes
1047 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1049 * giscanner/transformer.py (_create_parameter):
1050 * tests/scanner/foo-1.0-expected.gir: make varargs
1051 transfer-ownership="none"
1053 2008-10-23 Colin Walters <walters@verbum.org>
1055 Bug 556739 - transfer ownership
1057 * giscanner/ast.py: Refactor Parameter/Return to share
1058 common attributes. Add transfer_inferred attribute
1059 which says whether or not we made a guess.
1060 * giscanner/transformer.py: Add much more extensive
1061 heuristics around parameter and return transfer.
1062 * giscanner/glibtransformer.py: Adjust to inspect
1066 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1068 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1070 * tests/scanner/Makefile.am:
1071 * tests/scanner/annotation-1.0-expected.tgir:
1072 * tests/scanner/drawable-1.0-expected.tgir:
1073 * tests/scanner/drawable-injected-1.0-expected.tgir:
1074 * tests/scanner/foo-1.0-expected.tgir:
1075 * tests/scanner/GtkFrob-1.0-expected.tgir:
1076 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1077 annotations survive the roundtrip via typelib
1079 The expectations are as currently produced by g-ir-generate,
1080 comparison with the .gir files shows there are differences.
1082 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1084 Bug 557468 – Support for GI_TYPELIB_PATH
1086 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1087 provided paths to the global search path.
1089 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1091 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
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 * tools/generate.c (write_object_info): write 'abstract'
1097 attribute for classes
1099 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1101 * girepository/girmodule.c, girepository/gtypelib.c,
1102 girepository/girparser.[ch]: fix some build warnings.
1104 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1106 Bug 557405 – Use 'allow-none' consistently
1108 * docs/typelib-format.txt:
1109 * girepository/ginfo.c (g_arg_info_may_be_null):
1110 * girepository/girnode.c (g_ir_node_build_typelib):
1111 * girepository/girnode.h (struct _GIrNodeParam):
1112 * girepository/girparser.c (start_parameter):
1113 * girepository/girwriter.c (function_generate):
1114 * girepository/gtypelib.h (ArgBlob):
1116 * tests/function.gir:
1117 * tools/generate.c (write_callable_info): Use 'allow-none'
1118 consistently throughout
1120 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1122 Bug 557092 – Callback annotations not used
1124 * giscanner/transformer.py (_create_callback): use annotations
1126 * tests/scanner/annotation.h
1127 * tests/scanner/annotation-1.0-expected.gir: add tests
1129 2008-10-21 Colin Walters <walters@verbum.org>
1131 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1132 uncommented parameters.
1135 2008-10-21 Colin Walters <walters@verbum.org>
1137 * girepository/girepository.c: Ensure that when doing an unversioned
1138 require, we prefer items earlier in the search path to later ones.
1140 2008-10-21 Owen Taylor <otaylor@redhat.com>
1142 * giscanner/transformer.py: For string parameters allow transfer annotation
1143 to override the standard automatic guessing based on 'const'.
1145 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1147 Bug 557241 – "throws" flag for functions
1149 * tests/scanner/drawable-1.0-expected.gir,
1150 tests/scanner/drawable-injected-1.0-expected.gir,
1151 tests/scanner/drawable.[ch]: add simple test for throwing
1152 function (has GError ** as last argument)
1154 * giscanner/ast.py: add a 'throws' flag to Function
1155 * giscanner/glibtransformer.py: if a function's last paramerter is
1156 a GError, set the 'throws' flag and remove that parameter
1157 * giscanner/girwriter.py: write out the 'throws' attribute
1158 * giscanner/girparser.py: support parsing the 'throws' attribute
1160 * tests/repository/gitestthrows.c: add a simple test to check the
1161 throws flag in a typelib and invoke the function
1163 * girepository/ginfo.c, girepository/girnode.[ch],
1164 girepository/girnode.h, girepository/girparser.c,
1165 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1167 * girepository/ginvoke.c: if a function throws, add a GError as last
1168 arguments, and propagate the error to the invoker.
1170 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1172 * giscanner/transformer.py (_create_parameters): Warn if we see
1173 annotations for unknown parameters. If .h and .c files name
1174 parameters differently, the annotations may be lost.
1176 2008-10-21 Johan Dahlin <johan@gnome.org>
1178 Bug 556358 - don't use libtool internals
1180 * giscanner/Makefile.am:
1181 * giscanner/libtoolimporter.py:
1182 * giscanner/sourcescanner.py:
1183 * giscanner/utils.py:
1184 Add a python meta importer and remove a libtool symlink hack.
1186 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1188 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1189 and --add-include-path appropriately when invoking the scanner.
1190 * tests/types/Makefile.am (%typelib): Likewise.
1192 2008-10-20 Colin Walters <walters@verbum.org>
1194 Bug 556777 - validate properties
1196 * giscanner/transformer.py: Add option to throw on unknown types.
1197 * giscanner/glibtransformer.py: Use it on properties.
1198 * tests/*: Add a test.
1200 2008-10-20 Colin Walters <walters@verbum.org>
1202 * giscanner/glibast.py: Also register g variants of
1203 default_array_types. This is not beautiful, but
1204 good alternatives aren't easy to come by.
1205 This fixes gchar ** parsing.
1207 2008-10-20 Colin Walters <walters@verbum.org>
1209 * docs/typelib-format.txt, girepository/gtypelib.h:
1210 Take a bit from ObjectInfo to represent abstract flag.
1211 * giscanner/cgobject.py: Expose g_type_get_flags.
1212 * girepository/girepository.h: Add accessor.
1213 * girepository/ginfo.c: Implement it.
1214 * giscanner/ast.py: Add is_abstract flag to generic
1216 * giscanner/glibast.py: Use it.
1217 * giscanner/girwriter.py: Write it.
1218 * girepository/girparser.c: Parse it.
1221 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1223 * giscanner/girparser.py (_parse_function): don't lose
1224 'transfer-ownership' attributes when injecting, check for the
1227 2008-10-19 Johan Dahlin <johan@gnome.org>
1229 * giscanner/scannerlexer.l: Parse and ignore __asm.
1231 2008-10-19 Colin Walters <walters@verbum.org>
1233 * giscanner/girparser.py: Parse array length= to ensure
1234 it doesn't get lost from --inject.
1236 2008-10-17 Colin Walters <walters@verbum.org>
1238 Bug 556795 - char ** regression
1240 * giscanner/transformer.py: Fix parsing of ctypes, add some
1241 comments about what's going on.
1242 * tests/*: Add a test for char **.
1244 2008-10-17 Colin Walters <walters@verbum.org>
1246 Bug 556783 - change namespace handling to be more consistent
1248 * giscanner/transformer.py: Eliminate usage of
1249 strip_namespace_object. We now treat --namespace as the default
1250 --strip-prefix; however, if --strip-prefix is specified it
1251 overrides --namespace. This applies to everything except function
1252 names, where we do also strip the namespace.
1253 * giscanner/glibtransformer.py: Remove usage of
1254 strip_namespace_object.
1256 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1257 --namespace and --strip-prefix.
1259 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1261 Bug 556732 – generate gir files consistently
1263 * girepository/girparser.c (start_parameter):
1265 * tests/invoke/testfns-1.0.gir:
1266 * tools/generate.c (write_callable_info): write
1267 'transfer-ownership' attribute consistently with both
1268 return-value and parameter elements
1270 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1272 Bug 556732 – generate gir files consistently
1274 * tools/generate.c (write_callable_info): write 'direction'
1275 attribute only if other than 'in' to be consistent with
1278 * tests/object.gir: remove direction="in" which is the default
1280 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1282 Bug 556732 – generate gir files consistently
1284 * giscanner/ast.py (Field): add readable and writable properties
1285 * giscanner/girparser.py (_parse_field): copy 'readable' and
1286 'writable' attributes
1287 * giscanner/transformer.py (_create_member): create fields as
1289 * giscanner/glibtransformer.py (_introspect_object,
1290 _pair_class_struct): make object instance and class fields
1292 * giscanner/girwriter.py (_write_field):
1293 * tools/generate.c (write_field_info): write field 'readable'
1294 and 'writable' attributes only if non-default (read-only)
1295 * girepository/girparser.c (start_field): in the absence of
1296 attributes assume fields are read-only
1298 * tests/struct.gir: remove redundant readable="1" from fields
1299 * tests/scanner/foo-1.0-expected.gir:
1300 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1301 all record and union fields
1303 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1305 Bug 556732 – generate gir files consistently
1307 * giscanner/girwriter.py (_write_property): write properties
1308 'construct' attribute if set
1309 * tools/generate.c (write_property_info): write properties
1310 'readable' and 'writable' attributes only if non-default
1311 * tests/object.gir: add writable="0"
1312 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1314 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1316 * gir/glib-2.0.c: added annotations
1318 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1320 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1323 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1325 Bug 556610 – giscanner/girparser.py drops parameter options
1327 * tests/scanner/drawable-injected-1.0-expected.gir,
1328 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1329 * giscanner/ast.py: allow Parameter to take options in the constructor
1330 * giscanner/girparser.py: parse parameter options (transfer,
1331 direction, allow-none)
1333 2008-10-16 Colin Walters <walters@verbum.org>
1335 Bug 556185 - segfault on g_callable_info_get_return_type
1337 Initial patch from John Ehresman.
1339 * tests/repository/*: Add a test using
1340 g_callable_info_get_return_type. Instead of casting a
1341 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1342 to call g_type_info_get_interface.
1344 2008-10-16 Colin Walters <walters@verbum.org>
1346 Bug 556579 - union and struct name misresolved
1348 * giscanner/transformer.py: The calls to _resolve_type_name
1349 for struct/union names was a legacy holdover from when type
1350 resolution had multiple phases. Now it's actively harmful
1351 since we might pull in an identical name from another
1355 2008-10-16 Colin Walters <walters@verbum.org>
1357 Bug 556432 - transfer annotations and defaults
1359 * giscanner/transformer.py: Canonicalize type
1360 after removing *, not before. This ensures that
1361 guchar* is transformed to 'uint8'.
1362 Add some comments here.
1363 * giscanner/glibtransformer.py: Add _adjust_transfer
1364 phase for tweaking GObject transfers.
1367 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1369 * configure.ac: enable bunch of gcc warning CFLAGS
1371 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1373 Bug 556543 – reduce compiler warnings
1375 * girepository/ginfo.c:
1376 * girepository/girepository.c (register_internal,
1377 count_interfaces, find_interface, find_namespace_version,
1378 parse_version, g_irepository_require):
1379 * girepository/girmodule.c (g_ir_module_build_typelib):
1380 * girepository/girnode.c (init_stats, dump_stats,
1381 _g_irnode_init_stats, _g_irnode_dump_stats,
1382 g_ir_node_can_have_member):
1383 * girepository/girparser.c (firstpass_end_element_handler,
1384 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1385 start_alias, start_type, end_type_top, parse_include, cleanup,
1387 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1388 * giscanner/giscannermodule.c (directive_get_options,
1389 type_get_child_list):
1390 * giscanner/scannerlexer.l (parse_gtkdoc):
1391 * giscanner/scannerparser.y (ctype_free):
1392 * giscanner/sourcescanner.c:
1393 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1394 * tests/types/gitesttypes.c:
1395 * tools/compiler.c (main):
1396 * tools/generate.c (write_repository): Remove unused variables
1397 and code, add missing includes, declarations and case
1400 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1402 Bug 556541 – access union members through UnionBlob rather than
1405 * girepository/ginfo.c (g_union_info_find_method): access union
1406 members through UnionBlob rather than StructBlob
1408 2008-10-15 Colin Walters <walters@verbum.org>
1410 Bug 556331 - clean up includes handling
1412 * tools/g-ir-scanner: Rework command line arguments; now we take
1413 --add-include-path and --include separately.
1414 * giscanner/girwriter.py: Separate name= and version= in include
1416 * giscanner/ast.py: Add Include type.
1417 * giscanner/transformer.py: Cleanups to register_include now that
1418 we don't need to handle mixed filenames and relative arguments.
1419 * girepository/girparser.c: Parse name and version separately;
1420 this fixes a bug as a side effect where we weren't resolving
1421 through aliases for basic types.
1422 * girepository/girepository.c: Fix format string args.
1423 * gir/Makefile.am: Update.
1426 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1428 Bug 556434 – unhandled interface/object/... member types
1430 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1431 g_ir_node_build_typelib): Check all
1432 interface/object/boxed/struct/union members are processed and
1433 abort if they are not. (Mostly callbacks in structs, but also
1434 fields in interfaces.)
1436 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1438 * a/girepository/girnode.c (g_ir_node_build_members,
1439 g_ir_node_build_typelib): refactor common code for processing
1440 members to a function
1442 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1444 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1445 transformation is lossless (it's not)
1447 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1449 * tests/Makefile.am: fix tests to compare xml to xml instead of
1450 typelib to xml, and stop on error
1452 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1454 * tools/generate.c (write_type_name, write_type_info,
1455 write_type_info, write_object_info, write_object_info,
1456 write_interface_info, write_error_domain_info): reduce code
1459 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1461 Bug 556174 – parse types for lists etc.
1463 * girepository/girparser.c (end_type_recurse):
1465 * tools/generate.c (write_type_info, write_field_info,
1466 write_callable_info, write_callable_info, write_constant_info,
1467 write_property_info): use nested <type>s for lists and hashes
1469 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1472 * tests/object.gir: remove trailing whitespace from inside
1473 elements to match g-ir-generate output
1475 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1477 * tools/generate.c (xml_printf): quote printf arguments so that
1478 we don't generate invalid XML by writing unescaped double quotes
1479 and such in attributes
1481 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1483 * tools/generate.c (write_field_info, write_callable_info,
1484 write_function_info, write_callback_info, write_struct_info,
1485 write_constant_value, write_signal_info, write_vfunc_info,
1486 write_object_info, write_interface_info, write_union_info,
1487 write_repository): remove unused indent parameters, xmlwriter
1488 keeps track of necessary indentation
1490 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1492 * tools/generate.c (xml_element_new, xml_element_free,
1493 xml_start_element, xml_end_element, xml_end_element_unchecked,
1494 xml_open, xml_close): Keep track of generated XML tree and
1495 handle indentation and closing tags properly.
1496 (write_field_info, write_callable_info, write_function_info,
1497 write_callback_info, write_struct_info, write_value_info,
1498 write_constant_info, write_enum_info, write_signal_info,
1499 write_vfunc_info, write_property_info, write_object_info,
1500 write_interface_info, write_error_domain_info, write_union_info,
1501 write_repository): Use xml_start_element and xml_end_element to
1504 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1506 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1507 (write_type_name, write_type_info, write_field_info,
1508 write_callable_info, write_function_info, write_callback_info,
1509 write_struct_info, write_value_info, write_constant_value,
1510 write_constant_info, write_enum_info, write_signal_info,
1511 write_vfunc_info, write_property_info, write_object_info,
1512 write_interface_info, write_error_domain_info, write_union_info,
1513 write_repository): wrap all FILE access to go through simple xmlwriter
1515 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1517 Bug 556400 – Fails to build on OS X 10.4
1519 * configure.ac: check for functions backtrace and backtrace_symbols
1520 * girepository/girparser.c (backtrace_stderr): Comment out
1521 implementation if the functions are not available.
1522 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1523 directory for better portability
1525 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1527 Bug 556433 – assume direction = out for int * parameters
1529 * giscanner/ast.py: define a list of types for which, if passed as
1530 reference, we assume a default direction of 'out'
1531 * giscanner/transformer.py: if a type has type pointer to one of the
1532 previously defined types, and no direction is set, assume out.
1533 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1535 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1537 * tests/scanner/annotation.c: fixed a few copy-paste errors
1539 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1541 Bug 556323 – transfer-ownership is wrong for functions returning const
1544 * giscanner/transformer.py: check for a const string as return value,
1545 not just const char*. Suggested by Colin Walters
1546 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1548 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1550 * girepository/ginfo.c, girepository/girepository.h: add
1551 g_union_info_find_method
1553 2008-10-14 Colin Walters <walters@verbum.org>
1555 * tests/repository/Makefile.am: Reenable repo test.
1556 * tests/repository/gitestrepo.c: Prepend search
1557 path for $(top_builddir)/gir dir so that we don't
1558 require installation for "make check" to pass.
1560 2008-10-13 Jürg Billeter <j@bitron.ch>
1562 * giscanner/glibtransformer.py:
1563 * tests/scanner/annotation-1.0-expected.gir:
1564 * tests/scanner/drawable-1.0-expected.gir:
1565 * tests/scanner/foo-1.0-expected.gir:
1566 * tests/scanner/utility-1.0-expected.gir:
1568 Support fields in GObject structs
1570 2008-10-13 Jürg Billeter <j@bitron.ch>
1572 * giscanner/ast.py: add signed integer and off_t to type_names
1574 2008-10-12 Jürg Billeter <j@bitron.ch>
1576 * giscanner/girparser.py: Parse bits attribute of fields
1578 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1580 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1581 * tests/repository/gitestrepo.c (main): instantiate
1582 'GCancellable' to ensure the GType is registered before using
1585 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1587 * giscanner/girparser.py: actually add the parsed constant nodes
1589 2008-10-12 Colin Walters <walters@verbum.org>
1591 * girepository/girepository.c: Don't cast DirEntry to Blob,
1592 actually look it up by offset.
1594 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1596 * giscanner/girparser.py: parse constant nodes in gir files
1598 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1600 * giscanner/transformer.py: prefix for constants have an underscore,
1601 so remove them as if they were functions, not objects.
1603 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1605 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1608 2008-10-12 Colin Walters <walters@verbum.org>
1610 Initial patch from Jani Monoses.
1612 * girepository/gtypelib.c: Fix inverted test for success
1615 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1617 * tools/generate.c (write_callable_info): use "transfer-ownership"
1618 attribute for return values
1620 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1622 * tools/generate.c (write_callable_info): move "transfer" and
1623 "null-ok" attributes from <function> to <return-value> element
1625 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1627 * girepository/girparser.c (start_return_value): handle
1628 "transfer-ownership" attribute
1630 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1632 * girepository/girparser.c (parse_param_transfer):
1633 * tools/generate.c (write_callable_info): use "container" for
1634 container/shallow ownership transfer (not "shallow")
1636 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1638 * girepository/girparser.c (parse_param_transfer,
1639 start_parameter): Refactor handling of transfer=none/shallow/full
1640 to separate function
1642 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1644 Bug 556048 – Crash in g_irepository_find_by_gtype
1646 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1647 * girepository/girepository.c (find_interface): Fix
1648 find_by_gtype case to get the type name from right offset
1650 2008-10-12 Jürg Billeter <j@bitron.ch>
1652 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1655 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1657 * girepository/gtypelib.h (RegisteredTypeBlob): make
1658 'unregistered' one bit wide as everywhere else
1660 2008-10-12 Jürg Billeter <j@bitron.ch>
1662 * giscanner/glibtransformer.py:
1663 * tests/scanner/annotation-1.0-expected.gir:
1664 * tests/scanner/drawable-1.0-expected.gir:
1665 * tests/scanner/drawable.h:
1666 * tests/scanner/foo-1.0-expected.gir:
1667 * tests/scanner/utility-1.0-expected.gir:
1669 Readd class records as workaround to not break Gtk typelib
1671 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1673 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1675 2008-10-12 Jürg Billeter <j@bitron.ch>
1677 * giscanner/glibtransformer.py: Don't generate <record> elements
1679 * tests/scanner/*: Update test cases
1681 2008-10-11 Colin Walters <walters@verbum.org>
1683 Bug 552858: versioning
1685 This is a big patch. You should probably remove your installation
1688 * docs/typelib-format.txt: Add nsversion entry which holds
1689 version of namespace.
1690 * girepository/girepository.h: Add 'version' parameter to
1691 g_irepository_require. This may be NULL. Normally
1692 bindings should pass an explicit version though.
1693 * girepository/girepository.c: Lots of infrastructure to
1694 support versioning. Add some more documentation. Disallow
1695 some usage of NULL namespaces.
1696 * girepository/girmodule.c: Add version parameter.
1697 * girepository/gtypelib.c: Update header size.
1698 * giscanner/ast.py: Add version to Namespace.
1699 * giscanner/girparser.py: Parse version attribute from
1700 XML, pass to Namespace.
1701 * giscanner/girwriter.py: Write out version parameter.
1702 * giscanner/transformer.py: Clean up include registration.
1703 * tests/*: Add version attribute.
1704 * tests/invoke/invoke.c: Don't try looking up test before
1705 it's loaded in repository.
1706 * tools/generate.c: Output version parameter.
1707 * gir/Makefile.am: Add 2.0 version to .gir files.
1709 2008-10-11 Colin Walters <walters@verbum.org>
1711 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1712 if we have mismatched parens.
1714 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1716 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1717 on 'members' variable.
1719 2008-10-11 Colin Walters <walters@verbum.org>
1721 Bug 555947 - update annotations syntax
1723 * giscanner/ast.py: Default to None for transfer. Remove
1724 default transfers for container types; we require this to
1726 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1727 'full' to match repository.
1728 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1729 * giscanner/transformer.py: Update for new annotations syntax.
1732 2008-10-11 Johan Bilien <jobi@litl.com>
1734 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1736 2008-10-11 Johan Bilien <jobi@litl.com>
1738 Bug 552347: Parse #defines constants
1740 * girepository/gtypelib.c: update the list of value_size
1741 with recently defined type tags
1742 * giscanner/scannerparser.y: brought back parsing of #defined, as
1743 present in older version
1744 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1745 * giscanner/girwriter.py: write out constant tags in the gir
1746 * giscanner/sourcescanner.py: add accessor for const_string
1747 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1750 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1752 Bug 555946: Install a test module exercising all types, transfer
1757 * tests/types/*: Add and install a test module that has functions
1758 accepting and returning most of the basic types to enable bindings
1759 implementors to more easily test their type conversion routines.
1761 2008-10-11 Jürg Billeter <j@bitron.ch>
1763 Bug 552374: Const strings should be identified in the gir.
1765 * giscanner/transformer.py: support string memory management
1766 * tests/scanner/foo.h: use char * and const char *
1767 * tests/scanner/foo-expected.gir: test that
1769 2008-10-11 Johan Dahlin <johan@gnome.org>
1771 * giscanner/girparser.py:
1772 Also parse enums which are not glib types.
1774 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1776 Bug 552370: add one more test for unsigned as a type, not as
1779 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1780 * test/scanner/foo.h: add function which uses unsigned as a type.
1781 * test/scanner/foo-expected.gir: test that.
1783 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1785 Bug 555712: Struct and union issues
1787 * giscanner/scannerparser.y (struct_declarator): Use information
1788 provided about the bit width of a field.
1789 * giscanner/transformer.py (Transformer._create_member): Pass the
1790 symbol's const_int member to the created field (it represents the
1792 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1793 field attribute, if present.
1794 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1795 width in bits of the field (only relevant for bitfields).
1798 * giscanner/transformer.py (Transformer._create_typedef_struct)
1799 (Transformer._create_typedef_union): Add calls to _create_struct()
1800 and _create_union(), respectively. This causes the scanner to
1801 generate output for fields of struct and union typedefs.
1804 2008-10-11 Jürg Billeter <j@bitron.ch>
1806 Bug 552370: unsigned not scanned properly
1808 * giscanner/scannerparser.y: combine basic types such as unsigned
1809 int and long long when scanning
1810 * tests/scanner/foo-expected.gir:
1811 * tests/scanner/foo.c: (foo_test_unsigned):
1812 * tests/scanner/foo.h: test that
1814 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1816 Bug 554854: The --typelib-xml and --inject options should reuse
1817 giscanner parser/writer.
1819 * giscanner/ast.py: add constructor list to Struct and Union.
1820 Add new param in Return's contructor to define transfer.
1821 * giscanner/girparser.py: several additions to the parser in order
1822 to have parsing all nodes of the gir xml files.
1823 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1824 and writer in --inject and --typelib-xml options.
1825 * giscanner/xmlwriter.py: ignore empty attributes instead of
1826 raising an error as this basically exposes a bug in GIRParser.
1827 This should be reverted as soon as the parser is fixed.
1829 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1831 Bug 552376: scanner generates wrong names for enum members when
1832 there's no defined gtype.
1834 * giscanner/utils.py (strip_common_prefix): Always strip common
1835 prefix exactly up to the last "_", and not beyond.
1836 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1837 here is that the first character after the last '_' should should be
1838 the same as the character in the same position on the type name.
1839 * tests/scanner/foo-expected.gir: test that
1841 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1843 Bug 555293: append library_paths to LPATH env variable to work
1844 around a bug in find_library when using ldconfig.
1846 * tools/g-ir-scanner (main): ditto.
1848 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1850 * girepository/girepository.c (register_internal): fix regression on
1851 invoke test case by making sure we load the global module in the
1852 typelib when dealing with inline typelibs.
1853 * girepository/gtypelib.c: a couple of coding style fixes.
1855 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1857 Bug 555294: Add support for multiple shared libraries per typelib.
1859 * girepository/ginvoke.c (g_function_info_invoke),
1860 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1861 g_typelib_symbol instead of g_module_symbol.
1862 * girepository/girepository.h: remove g_typelib_set_module and add
1864 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1865 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1866 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1867 modules instead of just one. The symbol lookup is now abstracted
1868 behind g_typelib_symbol which tries to find the passed symbol name in
1870 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1871 and write shared_library attribute as a comma-separated list of libs.
1873 2008-10-06 Colin Walters <walters@verbum.org>
1875 * giscanner/transformer.py: Parse length= annotation as
1876 a parameter name, not a raw int.
1879 2008-10-03 Colin Walters <walters@verbum.org>
1881 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1883 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1885 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1889 2008-10-03 Colin Walters <walters@verbum.org>
1891 Bug 554576: scan problem with ev_selection_render_selection()
1893 * giscanner/transformer.py: Only do type resolution once we've
1894 scanned all types. What could happen before is that we'd strip
1895 the namespace from local type "EvSelection" => Selection, and
1896 then later pull a "Selection" from some other namespace because
1897 we hadn't yet seen the local EvSelection. This could come
1898 down to hash table ordering and other things so not easy
1899 to write a test for.
1901 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1903 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1904 GLibEnumMember constructor as it should be the enum member nick.
1906 2008-10-02 Colin Walters <walters@verbum.org>
1908 Bug 552961: remove this parameter for methods
1910 * giscanner/glibtransformer.py: Delete this parameter; it is
1912 * girepository/ginvoke.c: Insert this parameter for methods.
1913 * girepository/gtypelib.c: Remove no longer needed verification of
1914 method this parameter.
1917 2008-09-30 Dan Winship <danw@gnome.org>
1919 Bug 554490: g-ir-scanner gets confused by '\\'
1921 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1922 backslashes so it will correctly parse '\\' and "\\"
1924 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1927 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1929 2008-10-02 Colin Walters <walters@verbum.org>
1931 bug 552393: Note variadic functions
1933 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1934 to use parameter_list directly.
1935 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1936 * giscanner/ast.py: Add Varargs type.
1937 * giscanner/transformer.py: Check for ellipsis symbol, transform
1939 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1940 Parse varargs functions, but filter them out before we start
1941 compiling the typelib.
1943 2008-10-02 Colin Walters <walters@verbum.org>
1945 Bug 554632: type tag for GType
1947 * girepository/girepository.h, girepository/girepository.c:
1948 Add type tag for GType - it's a special type we don't want
1949 to resolve to just "long".
1950 * docs/typelib-format.txt: Update.
1951 * girepository/girparser.c: Parse it.
1952 * giscanner/glibtransformer.py: Ensure we don't put GType in
1954 * tools/generate.c: Remove hardcoded type list.
1957 2008-09-30 Dan Winship <danw@gnome.org>
1959 Bug 554521: scanner generates wrong names for enum members with
1960 full type name prefix
1962 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1963 right amount when the entire "first" string is a prefix of
1966 * tests/scanner/foo.h (FooEnumFullname):
1967 * tests/scanner/foo-expected.gir: test that
1969 2008-09-29 Colin Walters <walters@verbum.org>
1971 Bug 552380: Array parameters should be marked in the gir
1973 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1974 uint8[]. Add Array, List, and Map subclasses of Type;
1975 these types can be generic. Return transfer defaults
1976 to true if return value is string or container type.
1977 Delete Sequence type.
1978 * giscanner/scannerlexer.l: Syntax change for annotations;
1979 use <> since it's more readable.
1980 * giscanner/girwriter.py: Write out these changes.
1981 * giscanner/girparser.py: Parse them.
1982 * giscanner/transformer.py: Have a defined set of
1983 both list and map types. When creating a type,
1984 check if the ctype we've parsed is one of them,
1985 if so create a container type subclass as appropriate.
1986 * girepository/girparser.c: Parse in generic types.
1989 2008-09-27 Colin Walters <walters@verbum.org>
1991 * tools/g-ir-scanner: Add --inject option.
1993 2008-09-25 Colin Walters <walters@verbum.org>
1995 Remove non-repository types from GIR
1997 * giscanner/ast.py: The canonical name is 'utf8', not
1999 * giscanner/glibast.py: A few more glib type mappings.
2000 * girepository/girparser.c: We only parse repository types.
2001 * tests/*.gir: Update.
2003 2008-09-23 Colin Walters <walters@verbum.org>
2005 Bug 552566: Add time_t type
2007 We need a type for time_t since it's special in C, and just
2008 mapping it to long precluded bindings from handling it
2011 2008-09-19 Colin Walters <walters@verbum.org>
2013 Bug 552390: Handle capitialization like "DBus" more robustly
2015 The to_underscores function was designed for use against prefixed
2016 names; we need a separate function which will convert names like
2017 DBusFoo into dbus_foo, not d_bus_foo.
2019 2008-09-19 Colin Walters <walters@verbum.org>
2021 Add check to make sure we're not hitting out unresolved types
2023 Validate the "this" argument for methods
2025 Remove heuristic matching of methods to classes based on prefix
2027 It was a broken hack that dated from when we handled underscoring
2028 and capitalization conventions less well.
2030 2008-09-18 Colin Walters <walters@verbum.org>
2032 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2034 On Darwin, the suffix for installed shared libraries (.dylib) is
2035 different from loadable modules (.so). We use a bit of magic shell
2036 script from Behdad Esfahbod to figure out the right suffix.
2038 2008-09-15 Johan Dahlin <johan@gnome.org>
2040 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2041 a wrapper for type_qualifier as well.
2043 2008-09-15 Colin Walters <walters@verbum.org>
2045 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2047 * giscanner/ast.py: Add deprecation attributes.
2048 * giscanner/girwriter.py: Write out deprecation data.
2049 * girepository/girparser.c: Relax parsing; deprecated
2050 attribute now includes freeform string.
2051 * giscanner/scannerlexer.l: Parse Deprecated.
2052 * giscanner/transformer.py: Look for deprecated attribute
2054 * tests/scanner/*: Add a Deprecated test.
2056 2008-09-14 Tor Lillqvist <tml@novell.com>
2058 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2060 2008-09-14 Colin Walters <walters@verbum.org>
2062 * giscanner/glibtransformer.py: Ignore functions with
2065 2008-09-12 Colin Walters <walters@verbum.org>
2067 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2069 2008-09-12 Colin Walters <walters@verbum.org>
2071 * giscanner/ast.py: Bind pid_t to INT for vte.
2073 2008-09-12 Colin Walters <walters@verbum.org>
2075 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2076 * giscanner/glibast.py: Avoid overwriting ctype.
2077 * giscsanner/transformer.py: Try resolving types using the GType names.
2079 2008-09-12 Colin Walters <walters@verbum.org>
2081 * giscanner/minixpath.py: Code to run an "XPath"
2082 assertion against an XML tree, taken from
2083 gir-repository/gir/tests.py.
2084 * giscanner/Makefile.am: Ship it.
2085 * tools/g-ir-scanner: Add --xpath-assertions option.
2086 * gir/GLib-assertions.txt: Add a few assertions.
2087 * gir/Makefile.am: Run them.
2089 2008-09-11 Colin Walters <walters@verbum.org>
2091 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2093 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2094 prefix if it ends with _. Tweak callback stripping to determine
2095 based on presence of _ whether we need to use strip_namespace_func
2096 or strip_namespace_object.
2098 2008-09-09 Owen Taylor <otaylor@redhat.com>
2100 * docs/typelib-format.txt: Wether => Whether
2102 2008-09-08 Colin Walters <walters@verbum.org>
2104 * girepository/girparser.c: Default to "readable" for properties.
2105 * giscanner/ast.py: Add readable, writable etc.
2106 * giscanner/girwriter.py: Writ them.
2107 * giscanner/glibtransformer.py: Inspect them.
2110 2008-09-07 Colin Walters <walters@verbum.org>
2112 * giscanner/cgobject.py: Add comment.
2114 2008-09-07 Colin Walters <walters@verbum.org>
2116 * giscanner/cgobject.py: Also call g_thread_init.
2118 2008-09-07 Colin Walters <walters@verbum.org>
2120 * giscanner/transformer.py: Fix regression by not
2121 stripping prefix before stripping namespace for unions
2124 2008-09-06 Colin Walters <walters@verbum.org>
2126 * giscanner/transformer.py: If a namespace contains
2127 multiple caps, try stripping both gnomekeyring_ and
2130 2008-09-07 Johan Dahlin <johan@gnome.org>
2132 Bug 551162 – giscanner does not recognize asm and __asm__
2133 * giscanner/scannerlexer.l:
2134 Patch by Jani Monoses.
2136 2008-09-06 Colin Walters <walters@verbum.org>
2138 * girepository/girnode.c: Allow gtype_name
2139 and gtype_init in struct and union.
2140 * girepository/girparser.c: Parse glib:
2141 boxed bits for both structure and union.
2142 * girepository/gtypelib.c: Don't barf
2143 if structure is boxed.
2144 * giscanner/girparser.py: Parse new XML
2146 * giscanner/girwriter.py: Write out new
2148 * giscanner/glibast.py: Define new classes
2149 which are both Boxed and Struct/Union, as
2150 well as an "Other" for everything else.
2151 * giscanner/glibtransformer.py: Handle
2152 boxed types specially; we try to merge
2153 them with a struct/union if one exists,
2154 otherwise fall back to generic boxed.
2156 * tools/generate.c: Write out new format.
2158 2008-09-06 Johan Dahlin <johan@gnome.org>
2160 * giscanner/grealpath.h: Include stdlib.h
2162 * docs/g-ir-generate.1: Remove leading %
2164 2008-09-01 Colin Walters <walters@verbum.org>
2166 * girepository/girparser.c: Look at c:type to determine
2167 whether or not an item is a pointer.
2169 2008-09-01 Johan Dahlin <johan@gnome.org>
2171 * tests/scanner/Makefile.am:
2172 Set PYTHONPATH so the scanner can run
2173 even if you didn't install anything.
2175 2008-09-01 Johan Dahlin <johan@gnome.org>
2178 Post-release version bump
2181 2008-09-01 Johan Dahlin <johan@gnome.org>
2185 2008-08-31 Colin Walters <walters@verbum.org>
2187 * giscanner/glibtransformer.py: Quiet info
2190 2008-08-31 Johan Dahlin <johan@gnome.org>
2193 Bump version to 0.5.0
2195 2008-08-31 Colin Walters <walters@verbum.org>
2197 * giscanner/glibtransformer.py: Follow aliases to ensure
2198 we don't get a constructor returning a basic type.
2199 * giscanner/transformer.py: Add function to follow aliases.
2202 2008-08-31 Johan Dahlin <johan@gnome.org>
2204 * giscanner/scannerlexer.l:
2205 * giscanner/scannerparser.y:
2206 * giscanner/sourcescanner.h:
2207 * giscanner/sourcescanner.py:
2208 Parse GCC extensions in the parser instead of just undeffing them
2209 in the pre-processor.
2211 2008-08-31 Johan Dahlin <johan@gnome.org>
2213 * giscanner/glibtransformer.py:
2214 Clean up a huge if. Do not add methods or constructors
2216 * giscanner/utils.py:
2217 second might be longer than first, check that.
2219 2008-08-31 Johan Dahlin <johan@gnome.org>
2224 2008-08-31 Colin Walters <walters@verbum.org>
2226 * girepository/girparser.c: Don't lose if we
2229 2008-08-31 Colin Walters <walters@verbum.org>
2231 * giscanner/glibtransformer.py: Look for libtool
2232 library in current directory
2233 * tests/scanner - Update.
2235 2008-08-30 Colin Walters <walters@verbum.org>
2237 * docs/typelib-format.txt: Add a guint32
2239 * gir/Makefile.am: Dep on Makefile
2240 * girepository/ginfo.c:
2241 * girepository/girepository.c: Clean up
2242 default typelib handling; remove global
2243 default_typelib variable. Ensure we handle
2244 NULL repository in more places.
2245 Support dependency resolution.
2246 Support lazy loading.
2247 * girepository/girepository.h: Remove
2248 g_irepository_unregister; we don't support
2249 unloading typelibs since really they're
2250 process-global. Update for lazy loading
2252 * girepository/girmodule.c: Use g_new0.
2253 Add dependencies to GirModule.
2254 * girepository/girparser.c: Parse dependencies.
2255 * girepository/gtypelib.c: Add 4 bytes for
2257 * tests/Makefile.am: Kill off gobject.gir,
2258 it conflicts with the real one.
2259 * tests/object.gir: Dep on GObject.
2260 * tools/generate.c: Take --includedir
2261 argument to say which directories to search
2262 for typelibs. Print out dependencies.
2264 2008-08-30 Colin Walters <walters@verbum.org>
2266 * giscanner/glibtransformer.py: Reduce warning noise.
2268 2008-08-29 Colin Walters <walters@verbum.org>
2270 * girepository/ginfo.c: Add some assertions regarding
2271 refcounts, just to be sure.
2272 * giscanner/glibtransformer.py: Blacklist a few more
2275 2008-08-29 Colin Walters <walters@verbum.org>
2277 * giscanner/glibtransformer.py: Blacklist a few
2278 functions that use GError oddly
2280 2008-08-29 Colin Walters <walters@verbum.org>
2282 * girepository/gtypelib.c: Don't crash if no
2285 2008-08-29 Colin Walters <walters@verbum.org>
2287 * girepository/girparser.c: Handle chains of aliases
2288 across modules by ensuring we fully qualify aliases
2291 2008-08-29 Colin Walters <walters@verbum.org>
2293 * girepository/girparser.c: Don't search aliases
2296 2008-08-29 Colin Walters <walters@verbum.org>
2298 * girepository/girparser.c: Rewrite type parsing
2299 to handle both GLib parsing case as well as correctly
2300 handling GLib.List and friends. Don't try to treat
2301 e.g. ListStore as a List.
2303 2008-08-29 Colin Walters <walters@verbum.org>
2305 * girepository/gtypelib.c: Add more context
2308 2008-08-29 Colin Walters <walters@verbum.org>
2310 * giscanner/glibtransformer.py: Add some informative
2311 logging messages in corner cases. Be sure we use
2312 the most recent node set instead of a cache
2313 when generating result set.
2314 * tests/: Remove duplicated bits in expected girs
2315 * girepository/girparser.c: Accept both List (for
2316 compiling GLib) and GLib.List (what the scanner
2319 * tools/generate.c: Generate canonical form.
2321 2008-08-29 Johan Dahlin <johan@gnome.org>
2323 * giscanner/config.py.in:
2324 Use datarootdir instead of datadir to avoid
2325 an autoconf warning.
2327 2008-08-29 Johan Dahlin <johan@gnome.org>
2331 * examples/gdk-pixbuf.gidl:
2333 Update and remove old cruft.
2335 2008-08-29 Johan Dahlin <johan@gnome.org>
2338 * docs/g-ir-compiler.1:
2339 * docs/g-ir-generate.1:
2340 * docs/g-ir-scanner.1:
2341 Add man pages for the generator and compiler.
2343 2008-08-29 Johan Dahlin <johan@gnome.org>
2345 * docs/g-ir-scanner.1: Document
2347 * giscanner/Makefile.am:
2348 * giscanner/gidlparser.py:
2349 * giscanner/gidlwriter.py:
2350 * tools/g-ir-scanner:
2351 Remove gidl support.
2353 2008-08-28 Colin Walters <walters@verbum.org>
2355 * tests/scanner/Makefile.am: Pass the right
2356 --includedir args. Add a Makefile dep.
2357 * tools/compiler.c: Pass includedirs down.
2358 * girepository/girparser.c: Actually put
2359 includedirs in context, pass down. Fix
2362 2008-08-28 Colin Walters <walters@verbum.org>
2364 * gir/Makefile.am: Use --includedir
2365 * girepository/girparser.c: Recursively parse
2366 includes to pull in aliases and expand them.
2367 We need this to avoid putting unknown names in
2369 * tools/compiler.c: Add --includedir option.
2370 * giscanner/ast.py: Map size/ssize to types
2373 2008-08-28 Tor Lillqvist <tml@novell.com>
2375 Make check now runs successfully on Windows.
2377 * tools/compiler.c (write_out_typelib): Use binary mode for output
2380 * girepository/girnode.c: Don't print NULL strings.
2382 * tests/invoke/Makefile.am
2383 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2384 convince libtool to build shared libraries.
2386 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2387 g_assert() instead of printing out expected errors.
2389 2008-08-28 Tor Lillqvist <tml@novell.com>
2391 * girepository/gtypelib.h: Change type of bitfield fields from
2392 guint to the most suitable smaller type. This makes the struct
2393 sizes match the ones on Linux that the sanity check expects when
2394 using gcc -mms-bitfields on Windows.
2396 2008-08-28 Johan Dahlin <johan@gnome.org>
2401 * giscanner/Makefile.am:
2402 * tests/Makefile.am:
2403 * tests/scanner/Makefile.am:
2404 Make distcheck pass.
2406 2008-08-27 Johan Dahlin <johan@gnome.org>
2408 * giscanner/Makefile.am:
2409 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2411 2008-08-27 Tor Lillqvist <tml@novell.com>
2413 Make g-ir-scanner work on Windows. Still problems with the typelib
2414 code. Changes okayed by jdahlin.
2416 * configure.ac: Check for Windows, set Automake conditional
2417 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2418 avoid shell quoting issues
2420 * girepository/Makefile.am: Use -no-undefined so that libtool
2421 agrees to build a shared library on Windows.
2423 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2424 Windows. Empty implementation on Windows so far.
2426 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2427 informative error message for the assertion failures. Tell also
2428 what the expected size of the struct is. Check all sizes first and
2429 fail afterwards if at least one size was different from expected.
2431 * tools/Makefile.am: Reorder libraries into proper logical
2434 * tools/generate.c: Don't include <dlfcn.h>, not used.
2436 * giscanner/Makefile.am: On Windows, link with the Python library,
2437 and install the module DLL as _giscanner.pyd. Remove the
2438 unnecessary import library and libtool library that libtool has
2441 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2442 and just skip it. Recognize also two "l" suffixes for long long
2443 constants. Recognize also __inline__.
2445 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2446 GetFullPathName(). As such, GetFullPathName() does more than the
2447 UNIX realpath(). It also changes relative paths into absolute
2448 paths. But for our purposes that shouldn't matter.
2450 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2451 Windows the file descriptor passed to us is from Python. Python
2452 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2453 uses msvcrt.dll. On Windows, file descriptors are specific to
2454 which C library is used. So we must find out what underlying OS
2455 handle corresponds to the file descriptor Python passes us, and
2456 then make that into a file descriptor valid for the C library this
2459 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2460 __attribute__ as the lexer now handles it. The definition as empty
2461 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2462 __attribute__. Close the temp file before unlinking it.
2464 * giscanner/cgobject.py: Use correct library name for the gobject
2467 * gir/Makefile.am: Must pass the full basename of the DLLs on
2468 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2469 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2470 reality they won't change, until there is a GLib 3, and then also
2471 the Unix code here needs changing.
2473 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2476 2008-08-26 Colin Walters <walters@verbum.org>
2478 * girepository/girepository.c: Search
2479 $DATADIR/girepository instead of
2480 $DATADIR/gitypelibs; this naming makes
2481 it clearer that e.g. jgir can install
2483 * gir/Makefile.am: Install there.
2485 2008-08-26 Colin Walters <walters@verbum.org>
2487 * girepository/gtypelib.c (_g_typelib_init): Also
2488 use G_MODULE_SUFFIX instead of hardcoding .so.
2490 2008-08-26 Colin Walters <walters@verbum.org>
2492 * girepository/gtypelib.c (_g_typelib_init): Free
2493 string in the right place.
2495 2008-08-26 Colin Walters <walters@verbum.org>
2497 * girepository/gtypelib.c (_g_typelib_init): Handle
2498 both .la and .so names; this works better in the
2499 uninstalled library case.
2501 2008-08-26 Johan Dahlin <johan@gnome.org>
2504 * giscanner/Makefile.am:
2505 * giscanner/cgobject.py:
2506 * giscanner/config.py.in:
2507 * giscanner/sourcescanner.py:
2508 Avoid undeffing __GNUC__, instead define
2509 __attribute__ & friends. Remove glibconfig.h hack.
2510 This makes gobject-introspection work better on
2511 MacOS X, Thanks to Richard Hult for kind help.
2513 2008-08-25 Colin Walters <walters@verbum.org>
2515 * giscanner/glibtransformer.py: Always print
2518 2008-08-25 Colin Walters <walters@verbum.org>
2520 * giscanner/glibtransformer.py: Skip over
2521 interfaces we don't know.
2523 2008-08-25 Colin Walters <walters@verbum.org>
2525 * girepository/girparser.c: Parse new implements
2526 syntax, drop gapi one.
2527 * tests/object.gir: Update.
2528 * tools/generate.c: Generate new syntax.
2530 2008-08-25 Colin Walters <walters@verbum.org>
2532 * giscanner/ast.py: Add interfaces property
2534 * giscanner/girwriter.py: Write out implemented
2536 * giscanner/glibtransformer.py: Introspect
2537 implemented interfaces.
2538 * tests/scanner/*: Make FooObject implement
2541 2008-08-25 Colin Walters <walters@verbum.org>
2543 * giscanner/glibtransformer.py: More correctly pair
2544 methods; if we have a symbol that starts with
2545 e.g. hippo_canvas look for a matching HippoCanvas
2546 class before accepting e.g. HippoCanvasImage.
2548 2008-08-24 Colin Walters <walters@verbum.org>
2550 * tools/g-ir-scanner: Filter out unknown options from
2553 2008-08-24 Colin Walters <walters@verbum.org>
2555 * giscanner/glibtransformer.py: Fail with better
2556 error if we can't find library.
2558 2008-08-24 Colin Walters <walters@verbum.org>
2560 * tools/g-ir-scanner: Use subprocess instead of
2561 commands, works on Windows and avoids the evil
2564 2008-08-24 Colin Walters <walters@verbum.org>
2566 * giscanner/glibtransformer.py: Skip over
2567 g_object_get_type from GLib trunk.
2569 2008-08-24 Colin Walters <walters@verbum.org>
2571 * girepository/girepository.c (g_irepository_require):
2572 Don't open shared library here; we already do it
2575 2008-08-24 Colin Walters <walters@verbum.org>
2577 * girepository/gtypelib.c: Add context stack so
2578 when we get an error we can print out nicely
2581 2008-08-24 Johan Dahlin <johan@gnome.org>
2583 * girepository/girparser.c (start_glib_boxed), (start_function),
2584 (start_field), (start_alias):
2585 Refactor a couple of parsing functions to be simpler to follow.
2588 2008-08-24 Johan Dahlin <johan@gnome.org>
2590 * girepository/girparser.c (start_function):
2591 Remove left-over code, checking type of function.
2593 2008-08-23 Colin Walters <walters@verbum.org>
2595 * giscanner/config.py: Define DATADIR.
2596 * giscanner/transformer.py: Look in DATADIR.
2598 2008-08-23 Colin Walters <walters@verbum.org>
2600 * girepository/gtypelib.c: Check constructor
2602 * girepository/girnode.c: Small tweaks.
2603 * girepository/ginfo.c: Calculate signature offsets
2605 * girepository/girparser.c: Remove duplicate
2607 * giscanner/glibtransformer.py: Avoid marking
2608 functions which return a basic type as
2611 2008-08-23 Colin Walters <walters@verbum.org>
2613 * girepository/girparser.c: Ignore <include>.
2614 * giscanner/girparser.py: Parse them.
2615 * giscanner/girwriter.py: Generate them.
2616 * giscanner/transformer.py: Process <include>
2617 recursively. Don't require full path for
2618 includes, look in {$XDG_DATA_DIRS}/gir.
2619 * tools/g-ir-scanner: Pass through includes.
2620 * Makefile.am: Remove extra --include
2622 * *-expected.gir: Add expected includes.
2624 2008-08-23 Johan Dahlin <johan@gnome.org>
2626 * tests/scanner/Makefile.am:
2627 * tests/scanner/annotation-expected.gir:
2628 * tests/scanner/drawable-expected.gir:
2629 Avoid duplication in the Makefile, regenerate with new
2630 namespaces (same as the filename)
2632 2008-08-22 Colin Walters <walters@verbum.org>
2634 * girepository/girnode.c: Don't hardcode integers,
2637 2008-08-22 Johan Dahlin <johan@gnome.org>
2639 * giscanner/sourcescanner.py:
2640 Check for ../gobject-introspection-1.0.pc.in to determine
2641 if we run installed or uninstalled.
2643 2008-08-22 Johan Dahlin <johan@gnome.org>
2646 * giscanner/sourcescanner.py:
2647 Send in undefs/defines via writing it directly to stdin
2648 of cpp instead of via arguments.
2650 2008-08-22 Colin Walters <walters@verbum.org>
2652 * tools/generate.c, tools/compiler.c: Default
2654 * all Makefile.am: Update.
2656 2008-08-22 Colin Walters <walters@verbum.org>
2658 * girepository/girparser.c: Pass through
2659 recursive types. Avoid overwriting errors.
2660 * giscanner/xmlwriter.py: Always write the
2662 * tests/*.gir: Adjust.
2663 * tests/scanner/Makefile.am: Build typelibs,
2664 and generate XML from those. Once we
2665 have a good diff mechanism...
2666 * tests/scanner/*-expected.gir: Add XML
2668 * tools/g-ir-scanner: Accept --typelib-xml
2670 * tools/generate.c: Better defaults for transfer.
2672 2008-08-22 Johan Dahlin <johan@gnome.org>
2676 * giscanner/Makefile.am:
2677 * giscanner/config.py.in:
2678 * giscanner/sourcescanner.py:
2679 Use the generated glibconfig.h for all scanner invokations.
2680 Rename it to glibconfig-scanner.h and install it.
2681 Add a config.py which so far contains the include dir.
2683 2008-08-22 Johan Dahlin <johan@gnome.org>
2686 Replace glibconfig.h with our own, do some replacement
2687 for CPP/C features we do not support
2689 2008-08-22 Colin Walters <walters@verbum.org>
2691 * tools/generate.c (write_callable_info): Fix unref
2694 2008-08-22 Colin Walters <walters@verbum.org>
2696 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2697 * tests/Makefile.am: Support $(DEBUG)
2698 * tools/generate.c: Do immediate close tags if no
2701 2008-08-21 Colin Walters <walters@verbum.org>
2703 * tests/scanner/drawable-expected.gir,
2704 * tests/scanner/drawable.c,
2705 * tests/scanner/drawable.h:
2708 2008-08-21 Colin Walters <walters@verbum.org>
2710 * giscanner/glibtransformer.py: Compute prefix
2711 by searching through the symbol for bits
2712 rather than going directly from ctype; this fixes
2715 2008-08-21 Colin Walters <walters@verbum.org>
2717 * giscanner/glibtransformer.py: Also try squashing
2718 underscores from namespace, fixes webkit_web_view_new.
2720 2008-08-21 Colin Walters <walters@verbum.org>
2722 * giscanner/glibtransformer.py: More ctor work,
2723 avoid having gtk_window_group_new end up under
2726 2008-08-21 Colin Walters <walters@verbum.org>
2728 * giscanner/glibtransformer.py: Much simpler approach
2729 of mapping uscored names to classes.
2730 * giscanner/utils.py: Remove unnecessary function.
2732 2008-08-21 Johan Dahlin <johan@gnome.org>
2734 * girepository/girepository.c (g_irepository_require):
2735 Plug memory leak and avoid using freed memory.
2736 Resolve the whole module path, here as well.
2738 2008-08-21 Colin Walters <walters@verbum.org>
2740 * giscanner/glibtransformer.py: Look up all permutations
2741 of class names when scanning methods/ctors based on
2742 the prefix instead of using the return value. This
2743 associates gtk_window_new with the right class.
2745 2008-08-21 Colin Walters <walters@verbum.org>
2747 * girepository/girmodule.c (g_ir_module_build_typelib):
2748 Revert change to increment header_size; we do that in
2751 2008-08-21 Colin Walters <walters@verbum.org>
2753 * girepository/girnode.c (write_string): Tweak to
2754 use UINT instead of INT. Not likely to matter.
2755 * girepository/girmodule.c (g_ir_module_build_typelib):
2756 Add to header_offset as well for header strings
2757 to match what write_string does.
2758 * girepository/gtypelib.c: Replace is_name with
2759 validate_name, which more strongly validates and
2760 handles errors in a better way. Update all callers.
2761 * giscanner/glibtransformer.py: Handle constructors
2764 2008-08-21 Johan Dahlin <johan@gnome.org>
2766 * gir/Makefile.am (typelibs_DATA): Build and
2767 install the Gio.typelib too
2769 * girepository/gtypelib.c (_g_typelib_init):
2770 Use g_module_build_path to resolve the shlib name
2772 2008-08-21 Colin Walters <walters@verbum.org>
2774 * gir/Makefile.am: CLEANFILES typelibs too.
2776 2008-08-21 Johan Dahlin <johan@gnome.org>
2778 * giscanner/glibtransformer.py:
2779 Do not send .la files through find_library.
2781 2008-08-21 Colin Walters <walters@verbum.org>
2783 * girepository/girparser.c (g_irepository_require):
2784 Fix one small leak in error case.
2786 2008-08-21 Johan Dahlin <johan@gnome.org>
2789 Parse glibconfig.h as well and install the compiled
2792 2008-08-21 Johan Dahlin <johan@gnome.org>
2795 * giscanner/glibtransformer.py:
2796 * tools/g-ir-scanner:
2797 Do not hard-core library names in the Makefile, reuse
2798 ctypes find_library instead.
2800 2008-08-21 Johan Dahlin <johan@gnome.org>
2802 * girepository/girparser.c (resolve_aliases):
2803 Remove compilation warnings
2805 2008-08-21 Johan Dahlin <johan@gnome.org>
2807 * girepository/girepository.c (g_irepository_require):
2808 Rewrap and fix double free bug by leaking a bit.
2810 2008-08-20 Colin Walters <walters@verbum.org>
2812 * girepository/girepository.c: Add new function
2813 g_irepository_get_typelib_path which tells
2814 us from where we loaded a namespace.
2816 2008-08-20 Colin Walters <walters@verbum.org>
2818 * tests/scanner/*-expected.gir: Adjust for
2819 added shared-library.
2820 * giscanner/giwriter.py: Make pylint happy.
2822 2008-08-20 Colin Walters <walters@verbum.org>
2824 * girepository/girmodule.c (g_ir_module_build_typelib):
2825 Calculate size correctly, avoid use-after-free.
2827 2008-08-20 Colin Walters <walters@verbum.org>
2829 * girepository/girepository.c: Remove
2830 g_irepository_register_file in favor of
2831 g_irepository_require. There are two
2832 possible deployment scenarios for typelibs:
2833 First, separate in $DATADIR/gitypelibs/. Second,
2834 they may be embedded in shlibs. However since
2835 the first is now the normal case, the API is
2836 optimized around it.
2838 Refactor internals to look up typelibs for
2839 namespaces just-in-time, but we expect
2840 consumers to call g_irepository_require.
2842 Also, add some docs. No one has died from that
2844 * gir/Makefile.am: Need --library for glib.
2845 * giscanner/girwriter.py: Write out shared-library.
2846 * tools/g-ir-writer: Take the first --library
2847 argument as the target of shared-library. In
2848 the future we should make this nicer with pkg-config
2851 2008-08-20 Colin Walters <walters@verbum.org>
2853 * girepository/girparser.py: And parse them.
2855 2008-08-20 Johan Dahlin <johan@gnome.org>
2857 * giscanner/glibast.py: Add gshort/gushort types
2859 2008-08-20 Colin Walters <walters@verbum.org>
2861 * gir/Makefile.am: Rename .gir files using GI namespace.
2862 * girepository/girepository.c: Use XDG_DATA_DIRS for
2863 looking up typelibs. Also typelibs are now suffixed
2865 * tests/invoke/Makefile.am: Only use metadata.
2866 * girepository/Makefile.am: Remove unnecessary include.
2867 * tests/scanner/Makefile.am: Update using GI namespaces
2868 for scanner includes.
2870 2008-08-20 Colin Walters <walters@verbum.org>
2872 * girepository/transformer.py: Suppress aliases whose
2874 * girepository/ast.py: Define some more aliases.
2876 2008-08-20 Colin Walters <walters@verbum.org>
2878 * girepository/girparser.c: Avoid alias infloops.
2880 2008-08-20 Colin Walters <walters@verbum.org>
2882 * tests/scanner/foo-expected.gir: Fix expected list type.
2884 2008-08-20 Johan Dahlin <johan@gnome.org>
2886 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2887 Add a workaround for #548689.
2888 We can now compile gtk!
2890 2008-08-20 Colin Walters <walters@verbum.org>
2892 * giscanner/glibtransformer.py: Try to look up
2893 aliases using the c:type too.
2895 2008-08-20 Colin Walters <walters@verbum.org>
2897 * girepository/girparser.c: Parse union fields.
2899 2008-08-20 Johan Dahlin <johan@gnome.org>
2901 * giscanner/ast.py: Make time_t an alias for long
2903 * gir/gio-2.0-good.gir:
2904 * gir/glib-2.0-good.gir:
2905 * gir/gobject-2.0-good.gir:
2907 * giscanner/glibtransformer.py:
2908 Do not delete Class structures, we need them in gdk/gtk.
2909 * tests/scanner/drawable-expected.gir:
2910 * tests/scanner/foo-expected.gir:
2911 * tests/scanner/utility-expected.gir:
2914 2008-08-20 Johan Dahlin <johan@gnome.org>
2916 * tests/scanner/Makefile.am:
2917 * tests/scanner/annotation-expected.gir:
2918 * tests/scanner/annotation.c (annotation_object_class_init),
2919 (annotation_object_init), (annotation_object_method),
2920 (annotation_object_in), (annotation_object_out),
2921 (annotation_object_inout), (annotation_object_inout2),
2922 (annotation_object_inout3), (annotation_object_calleeowns),
2923 (annotation_object_calleesowns), (annotation_object_get_strings),
2924 (annotation_object_with_voidp), (annotation_object_get_objects),
2925 (annotation_object_create_object), (annotation_object_allow_none):
2926 * tests/scanner/annotation.h:
2927 * tests/scanner/foo-expected.gir:
2928 * tests/scanner/foo.c:
2929 * tests/scanner/foo.h:
2930 Split out annotation tests out of foo
2932 2008-08-20 Johan Dahlin <johan@gnome.org>
2934 * tests/scanner/Foo-expected.gir:
2935 * tests/scanner/Makefile.am:
2936 * tests/scanner/foo-expected.gir:
2937 * tests/scanner/foo-object.h:
2938 * tests/scanner/foo.c:
2939 Foo->foo, foo-object.h -> foo.h
2941 2008-08-20 Johan Dahlin <johan@gnome.org>
2943 * tests/scanner/Foo-expected.gir:
2944 * tests/scanner/Makefile.am:
2945 * tests/scanner/drawable-expected.gir:
2946 * tests/scanner/drawable.c (test_drawable_class_init),
2947 (test_drawable_init):
2948 * tests/scanner/drawable.h:
2949 * tests/scanner/foo-object.h:
2950 * tests/scanner/foo.c (foo_boxed_method):
2951 Move the drawable parts out of Foo to its own test.
2953 2008-08-20 Johan Dahlin <johan@gnome.org>
2955 * tests/scanner/Foo-expected.gir:
2956 * tests/scanner/foo-object.h:
2957 * tests/scanner/foo.c (foo_drawable_class_init),
2958 (foo_drawable_init):
2959 Add a based on GdkDrawable which generates
2962 2008-08-19 Colin Walters <walters@verbum.org>
2964 * giscanner/transformer.py: Don't try
2965 to strip prefix before namespace.
2967 2008-08-19 Johan Dahlin <johan@gnome.org>
2969 * giscanner/transformer.py:
2970 * tests/scanner/Foo-expected.gir:
2971 * tests/scanner/foo-object.h:
2972 Add support for typedef void foo type of
2975 2008-08-19 Johan Dahlin <johan@gnome.org>
2978 * giscanner/girwriter.py:
2979 * giscanner/glibtransformer.py:
2980 * giscanner/transformer.py:
2981 * tests/scanner/Foo-expected.gir:
2982 Add basic support for union, base the code much
2983 on Struct. Add a testcase.
2985 2008-08-19 Johan Dahlin <johan@gnome.org>
2987 * tests/scanner/Foo-expected.gir:
2988 * tests/scanner/foo-object.h:
2989 Add a union testcase which the compiler currently
2992 2008-08-19 Johan Dahlin <johan@gnome.org>
2994 * gobject-introspection-1.0.pc.in:
2995 Add a g_ir_compiler variable
2997 2008-08-19 Colin Walters <walters@verbum.org>
2999 * giscanner/ast.py: Rework types to be more closely
3001 * giscanner/girparser.py: Parse more bits.
3002 * giscanner/girwriter.py: Write sequences in a new
3003 way that specifies container type.
3004 * giscanner/glibast.py: Adjust for ast.py changes,
3005 add 'ctype' property to GLibObject and GLibInterface
3006 so we can look things up by it later.
3007 * gicanner/transformer.py: Names is new class holding
3008 the various namespaces we manage. Do not confuse
3009 with Namespace which is toplevel XML node effectively.
3010 Rework all type resolution to go through
3011 _resolve_type_name_1.
3012 * giscanner/glibtransformer.py: Raise UnknownTypeError
3013 instead of ValueError for cleanliness. Add Unresolved
3014 class to mark types whose parent we haven't seen yet.
3015 Use new Names object from transformer.py.
3016 Correctly look up parent=.
3017 Fix type validation to handle sequences.
3018 * tests/scanner/Foo-expected.gir: Update for sequence
3019 work, int instead of int32.
3020 * tools/g-ir-scanner: Add --noclosure option
3021 * gir/Makefile.am: Use --noclosure by default for
3024 2008-08-18 Johan Dahlin <johan@gnome.org>
3026 * gir/gio-2.0-good.gir:
3027 * gir/glib-2.0-good.gir:
3028 * gir/gobject-2.0-good.gir:
3031 2008-08-18 Johan Dahlin <johan@gnome.org>
3034 * giscanner/girparser.py:
3035 * giscanner/girwriter.py:
3036 * giscanner/glibast.py:
3037 * giscanner/glibtransformer.py:
3038 * giscanner/transformer.py:
3039 * tests/scanner/Foo-expected.gir:
3040 * tests/scanner/foo-object.h:
3041 * tests/scanner/utility-expected.gir:
3042 * tests/scanner/utility.h:
3043 Redo type resolving and validation.
3044 Add a couple of new tests.
3045 Patch mostly written by Colin.
3047 2008-08-18 Johan Dahlin <johan@gnome.org>
3050 * giscanner/girparser.py:
3052 * giscanner/transformer.py:
3053 Improve enum parsing for enums without a GType.
3054 Make flags/enum references to other girs work
3055 * giscanner/utils.py:
3057 * tests/scanner/Makefile.am:
3058 * tests/scanner/foo-object.h:
3059 * tests/scanner/utility-expected.gir:
3060 * tests/scanner/utility.h:
3061 Add a new test for external enum references
3063 2008-08-18 Johan Dahlin <johan@gnome.org>
3065 * docs/global-module-registry.txt: Update
3067 * tests/array.gir: Update with new type proposal
3069 * girepository/girepository.c (g_type_tag_to_string):
3070 * girepository/girepository.h:
3071 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3073 * girepository/girnode.h:
3074 Make enum serializing functions public. Clean up some whitespace.
3076 2008-08-17 Johan Dahlin <johan@gnome.org>
3078 * docs/global-module-registry.txt:
3079 Add a document for an on disk module registry format
3081 2008-08-17 Johan Dahlin <johan@gnome.org>
3084 * gir/gio-2.0-good.gir:
3087 2008-08-17 Johan Dahlin <johan@gnome.org>
3090 * gir/glib-2.0-good.gir:
3091 * gir/gobject-2.0-good.gir:
3092 * giscanner/cgobject.py:
3093 * giscanner/glibtransformer.py:
3094 Regenerate GObject & GType.
3095 Avoid warnings when generating gobject-2.0.gir.
3096 Introspect a little more, and skip *_get_type functions.
3098 2008-08-17 Colin Walters <walters@verbum.org>
3100 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3101 Rename to -good, always generate during build.
3102 * gir/Makefile.am: Ensure .gir files dep on
3103 all scanner sources.
3104 * Makefile.am: Switch build order to ensure
3105 the scanner is ready before we do gir/.
3106 * tools/g-ir-scanner: Look for .git too.
3108 2008-08-17 Johan Dahlin <johan@gnome.org>
3110 * girepository/gtypelib.c (validate_enum_blob):
3111 * giscanner/glibtransformer.py:
3112 * giscanner/transformer.py:
3113 Remove resolve_possible_typedefs, it was unused.
3114 Allow multiple enum values of the sample value in an enum,
3115 since it's actually pretty common.
3116 Register enums so they can be resolved too.
3118 2008-08-16 Johan Dahlin <johan@gnome.org>
3120 * giscanner/girparser.py:
3121 Parse enumeration/bitfield.
3123 2008-08-16 Johan Dahlin <johan@gnome.org>
3125 * giscanner/girparser.py:
3128 2008-08-16 Johan Dahlin <johan@gnome.org>
3130 * giscanner/glibtransformer.py:
3131 Resolve type names for alias targets
3132 * giscanner/transformer.py:
3133 Skip FILE* parameters fow now
3135 2008-08-16 Johan Dahlin <johan@gnome.org>
3138 * gir/gobject-2.0.gir:
3141 * tests/scanner/Makefile.am:
3144 2008-08-15 Colin Walters <walters@verbum.org>
3146 * giscanner/glibtransformer.py: Explicitly construct
3147 new list, since we're deleting as we iterate.
3148 Don't delete all structures which end in Class; just
3149 ones which have a paired GObject.
3150 Fix printing of type warning.
3151 * giscanner/transformer.py: Make strip_namespace_object
3152 be the identity function if it doesn't match the
3155 2008-08-15 Colin Walters <walters@verbum.org>
3157 * giscanner/cgobject.py: Define yet more argument
3158 prototypes; fix prototype for g_type_fundamental.
3160 2008-08-14 Johan Dahlin <johan@gnome.org>
3162 * tests/Makefile.am:
3163 * tests/constant.gir:
3164 * tests/gobject.gir:
3166 * tools/generate.c (write_struct_info):
3167 Fix generator for constant/gobject/struct
3169 2008-08-14 Johan Dahlin <johan@gnome.org>
3171 * tests/Makefile.am:
3173 * tools/generate.c (write_enum_info):
3174 Fix generation of enum/bitfields
3176 2008-08-14 Johan Dahlin <johan@gnome.org>
3178 * girepository/girparser.c (start_field), (start_constant),
3179 (start_type), (end_element_handler):
3180 Clear up constant parsing
3185 * tools/generate.c (write_callable_info), (write_function_info),
3186 (write_callback_info), (write_constant_info), (write_signal_info),
3187 (write_vfunc_info), (write_property_info), (write_object_info),
3188 (write_interface_info):
3189 Constants/Signals are handled now.
3191 2008-08-14 Johan Dahlin <johan@gnome.org>
3193 * girepository/girparser.c (start_type):
3194 Don't require c:type.
3195 * tests/Makefile.am:
3198 Update, remove parts we don't support yet
3199 * tests/roundtrips.sh:
3201 * tools/generate.c (write_type_info), (write_field_info),
3202 (write_callable_info), (write_struct_info):
3203 Make it emit proper gir.
3205 2008-08-14 Johan Dahlin <johan@gnome.org>
3207 * giscanner/transformer.py:
3208 New internal function for adding a new node.
3210 2008-08-14 Johan Dahlin <johan@gnome.org>
3213 Define an internal _H_ variable so we skip parsing both
3214 i18n headers, only one is needed.
3216 Add the glib-2.0.gir too.
3217 * giscanner/glibast.py:
3218 Add gconstpointer as an alias for ANY
3219 * giscanner/transformer.py:
3220 Do not lower case enumeration names per se.
3221 Skip functions which has parameters called 'va_list'
3223 2008-08-14 Colin Walters <walters@verbum.org>
3225 * giscanner/transformer.py: Comment data structures.
3226 Also squash pointers in resolve_type_name to correspond
3227 with what we do for params.
3228 * giscanner/glibtransformer.py: Print warnings in more
3229 situations. Rework checks for method/constructor to
3230 look up in our GType database instead of just checking
3231 for *. Avoid generating <record> for GObject which
3232 duplicate the <class>.
3233 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3236 2008-08-14 Johan Dahlin <johan@gnome.org>
3238 * giscanner/girwriter.py:
3239 * giscanner/glibast.py:
3240 * giscanner/glibtransformer.py:
3241 * giscanner/transformer.py:
3243 * tests/Makefile.am:
3244 Add pyflakes.py and run it in make check.
3245 Update the source code to fix the errors reported by
3248 2008-08-14 Johan Dahlin <johan@gnome.org>
3251 * giscanner/girparser.py:
3252 * giscanner/glibast.py:
3253 * giscanner/glibtransformer.py:
3254 Refactor the parser a bit.
3255 Add parent type to interfaces and update callsites.
3257 2008-08-14 Johan Dahlin <johan@gnome.org>
3259 * giscanner/glibtransformer.py:
3260 * giscanner/utils.py:
3261 Refactor a bit, avoid isinstance and add a method
3262 for each type we parse.
3264 2008-08-14 Johan Dahlin <johan@gnome.org>
3267 * giscanner/girparser.py:
3268 * giscanner/glibtransformer.py:
3269 * tests/Makefile.am:
3270 Run pep8.py in make check, fix old errors.
3272 2008-08-13 Colin Walters <walters@verbum.org>
3274 * giscanner/girparser.py: Parse records.
3276 2008-08-13 Colin Walters <walters@verbum.org>
3278 * gir/Makefile.am: Install again.
3279 * gir/gobject-2.0.gir: Add some more bits.
3281 2008-08-13 Colin Walters <walters@verbum.org>
3283 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3284 * giscanner/girparser.py: Handle aliases.
3285 * giscanner/transformer.py: Record aliases. Make resolver
3286 functions public; we now call into these explicitly from
3287 glibtransformer. Handle resolving aliases.
3288 * giscanner/glibtransformer.py: Separate our internal namespace
3289 from included ones. Call up into transformer's resolver functions.
3291 2008-08-13 Johan Dahlin <johan@gnome.org>
3293 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3294 * girepository/girparser.c (start_class):
3295 * giscanner/glibtransformer.py:
3296 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3298 2008-08-13 Johan Dahlin <johan@gnome.org>
3300 * giscanner/cgobject.py:
3301 Register GInitiallyUnowned
3302 * giscanner/girwriter.py:
3303 * giscanner/glibtransformer.py:
3304 Special case GObject/GInitially owned as they are a bit special to use.
3306 2008-08-13 Colin Walters <walters@verbum.org>
3308 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3309 Object is in GObject namespace.
3311 2008-08-13 Colin Walters <walters@verbum.org>
3313 * giscanner/girparser.py: Fix processing of functions
3316 2008-08-13 Colin Walters <walters@verbum.org>
3318 * giscanner/girparser.py: Parse more than just <class.
3319 * giscanner/glibtransformer.py: Put aliases in a separate
3320 data structure since their name is not canonicall.
3321 * giscanner/transformer.py: Handle resolving type names
3324 2008-08-13 Johan Dahlin <johan@gnome.org>
3326 * tools/g-ir-scanner:
3327 Allow multiple libraries
3328 * giscanner/glibtransformer.py:
3329 Rename load_library to add_library, traverse over all libraries
3330 when trying to resolve a function
3332 2008-08-12 Colin Walters <walters@verbum.org>
3334 * giscanner/transformer.py: Record typedefs as <alias> elements.
3335 Also attempt to look up types in external namespaces.
3336 * giscanner/girwriter.py: Write them.
3337 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3338 checks. Resolve interface methods and properties.
3339 * tests/scanner/foo-object.h: Add a method with typedef.
3340 * tests/scanner/Foo-expected.gir: Update.
3341 * girepository/girnode.c: Debug tweaks.
3342 * girepository/girparser.c: Make a first pass through the XML where we
3343 record all the aliases. This lets us resolve them as we go through the
3345 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3346 from gir-repository.
3348 2008-08-12 Colin Walters <walters@verbum.org>
3350 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3351 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3353 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3355 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3357 2008-08-12 Colin Walters <walters@verbum.org>
3359 * giscanner/glibtransformer.py: Also transform object properties.
3361 2008-08-12 Colin Walters <walters@verbum.org>
3363 * giscanner/glibtransformer.py: Also transform callbacks
3364 and structure field types.
3365 * tests/scanner/Fooe-expected.gir: Update to expect correct
3366 names for callbacks and structs.
3368 2008-08-12 Colin Walters <walters@verbum.org>
3370 * girepository/girparser.c: Handle 'any'.
3371 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3372 Add test for void *.
3374 2008-08-12 Colin Walters <walters@verbum.org>
3376 * giscanner/glibtransformer.py: We need to do type
3377 resolution in a second pass after we've seen all the
3378 enums, records, etc.
3380 2008-08-12 Colin Walters <walters@verbum.org>
3382 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3383 Add enum return value.
3384 * giscanner/glibtransformer.py: Transform function return types
3387 2008-08-12 Colin Walters <walters@verbum.org>
3389 * tests/scanner/Makefile.am: Dep .gir files on scanner
3390 sources too. Also remove @ so we see scanner invocations.
3392 2008-08-12 Colin Walters <walters@verbum.org>
3394 * girepository/girparser.c, girepository/gtypelib.c,
3395 girepository/gtypelib.h, girepository/girnode.c:
3396 Remove usage of (GAPI-oriented) TypeTag in favor of
3397 GITypeTag from girepository.h.
3399 2008-08-10 Colin Walters <walters@verbum.org>
3401 * tests/roundtrips.sh: Use the correct tests.
3403 2008-08-10 Colin Walters <walters@verbum.org>
3405 * giscanner/cgobject.py: Declare/wrap a few more functions.
3406 Fix parameter types for g_object_new and g_type_fundamental.
3408 2008-08-10 Colin Walters <walters@verbum.org>
3410 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3411 us to declare types for both return value and parameters. The
3412 ctypes default of 'int' is bad because it hides 32/64 bit
3413 problems. Convert all existing functions to use it.
3415 2008-08-09 Johan Dahlin <johan@gnome.org>
3417 * giscanner/__init__.py:
3419 * giscanner/cgobject.py:
3420 * giscanner/gidlparser.py:
3421 * giscanner/gidlwriter.py:
3422 * giscanner/girparser.py:
3423 * giscanner/girwriter.py:
3424 * giscanner/glibast.py:
3425 * giscanner/glibtransformer.py:
3426 * giscanner/odict.py:
3427 * giscanner/sourcescanner.py:
3428 * giscanner/transformer.py:
3429 * giscanner/utils.py:
3430 * giscanner/xmlwriter.py:
3431 * tools/g-ir-scanner:
3435 2008-08-09 Johan Dahlin <johan@gnome.org>
3438 * relaxng/c-types.xml:
3439 * relaxng/g-types.xml:
3440 * relaxng/relaxng.rng:
3442 Remove outdated relaxng schemas.
3444 2008-08-09 Johan Dahlin <johan@gnome.org>
3447 Rename metadata to typelib in variable names,
3450 2008-08-09 Johan Dahlin <johan@gnome.org>
3454 Remove old C scanner, which got rewritten in python.
3456 2008-08-09 Johan Dahlin <johan@gnome.org>
3458 * girepository/Makefile.am:
3459 * tools/Makefile.am:
3460 * tools/girmodule.c:
3461 * tools/girmodule.h:
3464 * tools/girparser.c:
3465 * tools/girparser.h:
3466 * tools/girwriter.c:
3467 * tools/girwriter.h:
3468 Move shared *.[ch] files to girepository from tools
3470 2008-08-09 Johan Dahlin <johan@gnome.org>
3472 * tests/Makefile.am:
3475 * tests/constant.test:
3477 * tests/errors.test:
3478 * tests/function.test:
3479 * tests/gobject.test:
3480 * tests/interface.test:
3481 * tests/object.test:
3482 * tests/struct.test:
3487 Rename *.test to *.gir
3489 2008-08-09 Johan Dahlin <johan@gnome.org>
3492 * tests/Makefile.am:
3493 * tests/parser/Foo-expected.gir:
3494 * tests/parser/Makefile.am:
3495 * tests/parser/foo-object.h:
3496 * tests/parser/foo.c:
3497 * tests/parser/utility-expected.gir:
3498 * tests/parser/utility.c:
3499 * tests/parser/utility.h:
3500 * tests/scanner/Makefile.am:
3501 Rename tests/parser to test/scanner
3503 2008-08-08 Colin Walters <walters@verbum.org>
3505 * tests/roundtrips.sh: Use local .gir files again.
3507 2008-08-08 Colin Walters <walters@verbum.org>
3509 * tests/invoke/Makefile.am: .gir file depends on libtool
3512 2008-08-08 Colin Walters <walters@verbum.org>
3514 * tools/girnode.c: Pass through parent node so we can
3515 print the node whose child is NULL, if that occurs.
3517 2008-08-08 Johan Dahlin <johan@gnome.org>
3519 * tests/Makefile.am:
3520 Disable roundtrip tests which are not yet working
3521 * tests/invoke/testfns.gir:
3524 2008-08-08 Johan Dahlin <johan@gnome.org>
3526 * giscanner/girwriter.py:
3528 * giscanner/glibast.py:
3529 * giscanner/glibtransformer.py:
3530 Swap order of members, to keep it consistent with
3533 2008-08-08 Johan Dahlin <johan@gnome.org>
3535 * girepository/gtypelib.c (validate_header):
3536 * girepository/gtypelib.h:
3538 * giscanner/girwriter.py:
3539 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3540 (gi_source_symbol_unref):
3543 * tests/constant.test:
3545 * tests/errors.test:
3546 * tests/function.test:
3547 * tests/gobject.test:
3548 * tests/interface.test:
3549 * tests/invoke/Makefile.am:
3550 * tests/invoke/testfns.xml:
3551 * tests/object.test:
3552 * tests/parser/Makefile.am:
3553 * tests/roundtrips.sh:
3554 * tests/struct.test:
3559 * tools/Makefile.am:
3560 * tools/compiler.c (main):
3561 * tools/generate.c (write_callable_info), (write_function_info),
3563 * tools/gidlmodule.c:
3564 * tools/gidlmodule.h:
3567 * tools/gidlparser.c:
3568 * tools/gidlparser.h:
3569 * tools/gidlwriter.c:
3570 * tools/gidlwriter.h:
3571 * tools/scanner.c (create_node_from_gtype),
3572 (create_node_from_ctype), (g_igenerator_process_properties),
3573 (g_igenerator_process_signals), (g_igenerator_create_object),
3574 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3575 (g_igenerator_create_enum), (g_igenerator_create_flags),
3576 (g_igenerator_process_function_symbol),
3577 (g_igenerator_process_unregistered_struct_typedef),
3578 (g_igenerator_process_struct_typedef),
3579 (g_igenerator_process_union_typedef),
3580 (g_igenerator_process_enum_typedef),
3581 (g_igenerator_process_function_typedef),
3582 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3583 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3584 Merge in the gir-compiler branch.
3585 Thanks to Philip and Colin for their help.
3587 2008-07-26 Colin Walters <walters@verbum.org>
3589 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3590 and g-idl-generate to go along with how we're changing this
3591 module to be installed.
3592 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3594 2008-07-24 Colin Walters <walters@verbum.org>
3596 * girepository/girepository.c (g_irepository_register): Add
3597 environment variable G_IREPOSITORY_VERBOSE so we can print
3598 out what we're doing.
3599 * girepository/girepository.c (g_irepository_register_file):
3600 Add GError error message to g_debug call.
3602 2008-07-08 Jürg Billeter <j@bitron.ch>
3604 * giscanner/glibast.py:
3608 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3610 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3613 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3616 * giscanner/girwriter.py:
3617 * giscanner/transformer.py:
3618 * tests/parser/Foo-expected.gir:
3619 * tests/parser/foo-object.h:
3620 * tests/parser/foo.c (foo_object_allow_none):
3621 Add support for gtk-doc annotations for allow-none.
3624 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3627 * giscanner/girwriter.py:
3628 * giscanner/glibast.py:
3629 * giscanner/glibtransformer.py:
3630 * giscanner/transformer.py:
3631 * tests/parser/Foo-expected.gir:
3632 Start using abstract type instead of the raw C types.
3633 Register a bunch of glib types we care about.
3635 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3640 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3642 * girepository/girepository.c:
3643 * girepository/gtypelib.c:
3644 * girepository/ginfo.c:
3645 * girepository/ginvoke.c:
3646 * girepository/girepository.h:
3647 * girepository/gtypelib.h:
3648 * girepository/gmetadata.c:
3649 * girepository/Makefile.am:
3650 * girepository/gmetadata.h:
3652 * tools/gidlmodule.c:
3655 * tools/gidlmodule.h:
3656 * tools/gidlparser.c:
3658 Renamed GMetadata to GTypelib
3660 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3662 * giscanner/xmlwriter.py:
3663 Improve line wrapping when > 79 charaters
3665 2008-06-05 Jürg Billeter <j@bitron.ch>
3668 * giscanner/girwriter.py:
3669 * giscanner/transformer.py:
3670 Use <type> element for field types
3671 * tests/parser/Foo-expected.gir:
3674 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3676 * giscanner/glibtransformer.py:
3677 Fix a bug which prevented GdkEvent from being generated
3679 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3681 * giscanner/Makefile.am:
3683 * giscanner/girwriter.py:
3684 * giscanner/glibast.py:
3685 * giscanner/glibtransformer.py:
3686 * giscanner/transformer.py:
3687 * giscanner/utils.py:
3688 * tests/parser/Foo-expected.gir:
3689 Improve enum member parsing and introspection
3691 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3693 * giscanner/scannerparser.y:
3694 * giscanner/sourcescanner.h:
3695 * giscanner/sourcescanner.py:
3696 Add a new source type enum for member.
3697 Use __repr__ for improved debugging
3698 * giscanner/girparser.py:
3700 * giscanner/transformer.py:
3701 Improve parsing of struct members.
3702 * tests/parser/foo-object.h:
3705 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3707 * giscanner/xmlwriter.py:
3708 Improve error reporting when trying to quote None.
3709 * giscanner/girparser.py:
3710 Do not print warnings when including more complete .gir files
3711 * giscanner/girwriter.py:
3712 Do not require a name for parameters, add a todo for singletons
3713 * giscanner/glibtransformer.py:
3714 Refactor the way structs are done, add a couple of hacks to allow
3716 * giscanner/transformer.py:
3717 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3718 * gobject-introspection-1.0.pc.in:
3719 Export girdir, so we can access gobject-2.0.gir from outside
3721 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3723 * tools/g-ir-scanner:
3724 * tests/parser/Makefile.am:
3725 Update sys.path before running the parser so we don't have
3726 to setup PYTHONPATH ourselves.
3730 * girepository/Makefile.am:
3731 * giscanner/transformer.py:
3732 * gobject-introspection-1.0.pc.in:
3733 * gobject-introspection.pc.in:
3734 * tools/Makefile.am:
3736 Rename pkg-config name to gobject-introspection-1.0,
3737 Do not installed anything which is not using the gir format.
3738 Disable compililation the old C scanner, but still keep the source
3739 until all the remaning functionallity has been ported.
3741 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3743 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3744 a crash when symbol->indent is NULL.
3746 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3747 a function to convert a CTYPE symbol to a string
3749 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3752 * giscanner/girwriter.py:
3753 * giscanner/giscannermodule.c
3754 (pygi_source_scanner_append_filename),
3755 (pygi_source_scanner_parse_file):
3756 * giscanner/glibtransformer.py:
3757 * giscanner/sourcescanner.py:
3758 Revert back to using temporary files to send in headers.
3759 Allow Functions to be passed in as callbacks, add a couple
3760 of try/excepts missing features.
3761 We can now scan pango
3763 2008-05-08 Johan Dahlin <johan@gnome.org>
3765 * giscanner/glibtransformer.py:
3766 * giscanner/transformer.py:
3767 Move namespace stripping glibtransformer->transformer
3769 2008-05-08 Johan Dahlin <johan@gnome.org>
3772 * giscanner/girwriter.py:
3773 * giscanner/glibtransformer.py:
3774 * giscanner/transformer.py:
3775 * tools/g-ir-scanner:
3776 Introduce a namespace ast node
3778 2008-05-05 Johan Dahlin <johan@gnome.org>
3780 * giscanner/__init__.py:
3781 * giscanner/sourcescanner.py:
3782 * giscanner/transformer.py:
3783 Move sourcescanner symbols to the sourcescanner module, instead
3784 of in the global __init__ namespace.
3786 2008-05-03 Johan Dahlin <johan@gnome.org>
3788 * giscanner/glibtransformer.py:
3789 * tools/g-ir-scanner:
3790 Handle missing parameters better, allow - and + in .la dlname
3793 2008-05-03 Johan Dahlin <johan@gnome.org>
3795 * giscanner/__init__.py:
3797 * giscanner/girwriter.py:
3798 * giscanner/glibtransformer.py:
3799 * giscanner/transformer.py:
3800 Parse struct fields properly, improve debugging.
3802 2008-04-29 Johan Dahlin <johan@gnome.org>
3805 * giscanner/girwriter.py:
3806 * giscanner/transformer.py:
3807 * tests/parser/Foo-expected.gir:
3809 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3811 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3814 * docs/g-ir-scanner.1:
3815 * metadata-annotations-proposal.txt:
3816 * metadata-format.txt:
3817 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3819 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3821 * giscanner/girwriter.py:
3822 * giscanner/glibtransformer.py:
3823 * giscanner/transformer.py:
3824 * giscanner/xmlwriter.py:
3825 * tests/parser/Foo-expected.gir:
3826 * tests/parser/foo-object.h:
3827 Write record/structs to gir file too. Add a couple of tests,
3828 fix an off by one error in xmlwriter.py.
3830 2008-04-28 Johan Dahlin <johan@gnome.org>
3832 * giscanner/xmlwriter.py: Calculate the line length properly,
3833 include the provided extra indentation in the calculation, really.
3835 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3838 * giscanner/glibast.py:
3839 * giscanner/glibtransformer.py:
3840 * giscanner/transformer.py:
3841 * tools/g-ir-scanner:
3842 Add a --strip-prefix and sort out confusion between names and symbols
3843 for functions and struct + derivaties.
3844 Refactor bootstrap of g-ir-scanner, so we can set options on
3845 Transformer() before parsing everything.
3847 2008-04-28 Johan Dahlin <johan@gnome.org>
3849 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3850 when scanning girepository.h
3852 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3853 a __GI_SCANNER__ when we run.
3855 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3858 * giscanner/girwriter.py:
3859 * giscanner/glibast.py:
3860 * giscanner/glibtransformer.py:
3861 * tests/parser/Foo-expected.gir:
3862 * tests/parser/utility-expected.gir:
3863 Rename most c:identifier to c:type. Add new ones to
3864 class/interface/enum/boxed.
3866 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3869 * giscanner/girwriter.py:
3870 * giscanner/glibtransformer.py:
3871 * tests/parser/Foo-expected.gidl:
3872 * tests/parser/Makefile.am:
3873 Move c:identifier from return-value to subchild type,
3874 as per Jürgs suggestion
3876 2008-04-28 Johan Dahlin <johan@gnome.org>
3878 * giscanner/girwriter.py:
3879 * tests/parser/Foo-expected.gir:
3880 Write property.type as a child node.
3882 2008-04-27 Johan Dahlin <johan@gnome.org>
3887 * gidl/gobject-2.0.gidl:
3889 * gir/gobject-2.0.gir:
3890 * tests/parser/Makefile.am:
3891 Replace the GObject gidl with a GObject gir.
3893 2008-04-27 Johan Dahlin <johan@gnome.org>
3895 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3898 * giscanner/xmlwriter.py:
3899 * tests/parser/Foo-expected.gir:
3900 Include indentation in line length calculation
3902 2008-04-27 Johan Dahlin <johan@gnome.org>
3904 * giscanner/girparser.py:
3905 Prettify NS parsing using elementtree.
3907 2008-04-27 Johan Dahlin <johan@gnome.org>
3910 * giscanner/Makefile.am:
3911 * giscanner/girparser.py:
3912 * giscanner/glibtransformer.py:
3913 * tests/parser/Foo-expected.gidl:
3914 * tests/parser/Foo-expected.gir:
3915 * tests/parser/Makefile.am:
3916 * tests/parser/utility-expected.gidl:
3917 * tests/parser/utility-expected.gir:
3918 * tools/g-ir-scanner:
3919 Switch over to GIR as the default format. Add a simple GIDL
3921 Update tests and fix simplify makefiles by depending
3922 on GNU make extensions.
3924 2008-04-27 Johan Dahlin <johan@gnome.org>
3926 * giscanner/xmlwriter.py:
3927 Wrap attributes for lines which are wider than 79 characters
3929 * giscanner/scannerlexer.l:
3930 Allow parenthesis in annotations
3933 * giscanner/gidlwriter.py:
3934 * giscanner/girwriter.py:
3935 * giscanner/glibtransformer.py:
3936 * giscanner/transformer.py:
3937 Add initial sequence support, including annotation.
3938 Refactor type handling a bit.
3940 2008-04-27 Johan Dahlin <johan@gnome.org>
3942 * tests/parser/Foo-expected.gidl:
3943 * tests/parser/foo-object.h:
3944 * tests/parser/foo.c (foo_object_class_init),
3945 (foo_object_get_strings), (foo_object_get_objects):
3946 Add two new functions to check sequence return values.
3947 Also fixes a compilation warning.
3949 2008-04-27 Johan Dahlin <johan@gnome.org>
3951 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3952 a compilation warning.
3954 * tools/Makefile.am (g_ir_scanner_SOURCES):
3955 g-ir-scanner has no sources.
3957 2008-04-25 Johan Dahlin <johan@gnome.org>
3959 * giscanner/Makefile.am:
3961 * giscanner/gidlparser.py:
3962 * giscanner/gidlwriter.py:
3963 * giscanner/girwriter.py:
3964 * giscanner/glibast.py:
3965 * giscanner/glibtransformer.py:
3966 * giscanner/transformer.py:
3967 Split out nodes to ast.py and glibast.py
3969 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3971 * giscanner/Makefile.am:
3972 * giscanner/gidlparser.py:
3973 * giscanner/gidlwriter.py:
3974 * giscanner/girwriter.py:
3975 * giscanner/glibtransformer.py:
3976 * giscanner/gobjecttreebuilder.py:
3977 * giscanner/transformer.py:
3978 * giscanner/treebuilder.py:
3979 * tools/g-ir-scanner:
3980 Rename treebuilder to transformer and
3981 gobjectreebuilder to glibtransformer.
3983 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3985 * giscanner/Makefile.am:
3986 * giscanner/__init__.py:
3987 * giscanner/cgobject.py:
3988 * giscanner/gidlparser.py:
3989 * giscanner/gidlwriter.py:
3990 * giscanner/girwriter.py:
3991 * giscanner/gobjecttreebuilder.py:
3992 * giscanner/odict.py:
3993 * giscanner/sourcescanner.py:
3994 * giscanner/treebuilder.py:
3995 * giscanner/xmlwriter.py:
3996 * tools/Makefile.am:
3997 * tools/g-ir-scanner:
3998 Add LGPLv2 license header and install all python files
4000 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4003 * giscanner/gidlwriter.py:
4004 * giscanner/giscannermodule.c (pygi_source_directive_new),
4005 (directive_get_options), (pygi_source_symbol_new),
4006 (symbol_get_base_type), (pygi_source_type_new),
4007 (type_get_base_type), (type_get_child_list),
4008 (pygi_source_scanner_get_symbols),
4009 (pygi_source_scanner_get_directives):
4010 * giscanner/gobjecttreebuilder.py:
4011 * giscanner/sourcescanner.py:
4012 * giscanner/treebuilder.py:
4013 * tests/parser/foo-object.h:
4014 Add support for virtual methods.
4015 Pair struct FooClass with struct Foo.
4016 Clean up the SourceScanner bindings a bit.
4017 Add a testcase for virtual methods.
4019 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4021 * giscanner/cgobject.py:
4022 * giscanner/gidlwriter.py:
4023 * giscanner/gobjecttreebuilder.py:
4024 Add support for signals
4026 * tests/parser/foo.c (foo_object_class_init):
4027 * Foo-expected.gidl:
4028 Add a signal and update the expected output.
4030 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4032 * giscanner/gidlwriter.py:
4033 * giscanner/girwriter.py:
4034 * giscanner/giscannermodule.c (directive_get_name),
4035 (directive_get_value), (directive_get_options),
4036 (symbol_get_directives), (symbol_set_directives),
4037 (pygi_source_scanner_parse_file),
4038 (pygi_source_scanner_lex_filename),
4039 (pygi_source_scanner_get_directives), (init_giscanner):
4040 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4041 * giscanner/sourcescanner.h:
4042 * giscanner/sourcescanner.py:
4043 * giscanner/treebuilder.py:
4044 * tools/g-ir-scanner:
4045 Add support for source/header annotations.
4047 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4049 * giscanner/gidlwriter.py:
4050 * giscanner/girwriter.py:
4051 * giscanner/gobjecttreebuilder.py:
4052 * giscanner/treebuilder.py:
4053 Add support for Callbacks
4055 2008-04-22 Havoc Pennington <hp@pobox.com>
4057 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4058 not in metadata->module, look for it in the global module, in case
4059 some other object or the app itself provides the symbol.
4061 2008-04-22 Havoc Pennington <hp@pobox.com>
4063 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4064 dlopening a library that is already in the main app, by checking
4065 whether one of the lib's symbols is already loaded.
4067 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4069 * tests/parser/Foo-expected.gidl:
4070 * tests/parser/foo-object.h:
4073 2008-04-22 Havoc Pennington <hp@pobox.com>
4075 * girepository/ginfo.c (g_interface_info_find_method):
4076 Use interface_blob_size not object_blob_size to compute offset.
4078 2008-04-22 Havoc Pennington <hp@pobox.com>
4080 * girepository/gmetadata.c (_g_metadata_init): remove
4081 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4082 (Glade and Clutter for example) rely on being loaded globally.
4084 2008-04-22 Havoc Pennington <hp@pobox.com>
4086 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4087 function to get the GType given a RegisteredTypeInfo
4089 2008-04-22 Johan Dahlin <johan@gnome.org>
4091 * COPYING: Add a LGPL license, to prevent automake to
4092 put in a copy of GPL here. Pointed out by Havoc.
4094 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4095 (g_type_info_is_pointer), (g_type_info_get_tag),
4096 (g_type_info_get_param_type), (g_type_info_get_interface),
4097 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4098 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4099 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4100 (g_object_info_get_interface), (g_object_info_get_field),
4101 (g_interface_info_get_prerequisite),
4102 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4103 * girepository/ginvoke.c (get_ffi_type):
4104 * girepository/girepository.h:
4105 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4106 (g_metadata_check_sanity), (validate_header),
4107 (validate_array_type_blob), (validate_iface_type_blob),
4108 (validate_param_type_blob), (validate_error_type_blob),
4109 (validate_type_blob), (validate_constant_blob),
4110 (validate_struct_blob), (validate_enum_blob):
4111 * girepository/gmetadata.h:
4112 * tests/Makefile.am:
4113 * tests/invoke/Makefile.am:
4114 * tests/invoke/invoke.c (main):
4115 * tests/roundtrips.sh:
4116 * tools/Makefile.am:
4117 * tools/compiler.c (format_output), (write_out_metadata), (main):
4118 * tools/generate.c (write_type_name), (write_type_info),
4119 (write_constant_value), (write_enum_info), (load_metadata), (main):
4120 * tools/gidlcompilercontext.c:
4121 * tools/gidlcompilercontext.h:
4122 * tools/gidlcompilerentrynode.c:
4123 * tools/gidlcompilerentrynode.h:
4124 * tools/gidlcompilertypenode.c:
4125 * tools/gidlcompilertypenode.h:
4126 * tools/gidlmodule.c (g_idl_module_build_metadata):
4127 * tools/gidlmodule.h:
4128 * tools/gidlnode.c (init_stats), (dump_stats),
4129 (g_idl_node_get_size), (g_idl_node_get_full_size),
4130 (g_idl_node_cmp), (g_idl_node_can_have_member),
4131 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4132 (parse_int_value), (parse_uint_value), (parse_float_value),
4133 (parse_boolean_value), (find_entry_node), (find_entry),
4134 (serialize_type), (g_idl_node_build_metadata), (write_string):
4136 * tools/gidlparser.c (parse_type_internal):
4137 * tools/quote-file.sh:
4138 Revert revisions 157,149-148,136-129 and 120.
4139 Move back to using g-idl-generate to generate the metadata and
4140 avoids dependency on a c compiler.
4142 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4144 * giscanner/girwriter.py:
4145 * tools/g-ir-scanner:
4146 Add an initial GIR writer and a --format option to g-ir-scanner
4148 2008-04-21 Johan Dahlin <johan@gnome.org>
4150 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4151 gobject-2.0 and raise ImportError if not found.
4153 * giscanner/gidlparser.py:
4154 * giscanner/gidlwriter.py:
4155 * giscanner/gobjecttreebuilder.py:
4156 * tools/g-ir-scanner:
4157 Add a --include argument to include types from other idls.
4158 Add a minimalistic GIDL parser (just objects for now)
4159 Implement resolving of external type references and use it to
4160 resolve parent types, argument types and return types.
4162 2008-04-21 Johan Dahlin <johan@gnome.org>
4164 * giscanner/gidlwriter.py:
4165 * giscanner/gobjecttreebuilder.py:
4166 * giscanner/treebuilder.py:
4167 Add support for properties.
4168 Refactor Class/Interface support a bit, to share more code and
4169 always initialize their method attribute to an empty list.
4171 2008-04-21 Johan Dahlin <johan@gnome.org>
4173 * giscanner/cgobject.py:
4174 Add a workaround for a glib bug interface introspection bug
4175 (object_interface_list_properties, object_class_list_properties):
4176 Cast the return value to GParamSpec.
4178 * tests/parser/Foo-expected.gidl: Update
4179 * tests/parser/foo.c: Add a string property
4181 * giscanner/gobjecttreebuilder.py:
4182 After stripping namespaces, remove the original
4183 item to avoid duplication (GtkButton struct and Button object)
4185 2008-04-21 Johan Dahlin <johan@gnome.org>
4187 * giscanner/gobjecttreebuilder.py:
4188 * giscanner/treebuilder.py:
4189 Strip namespaces before objects, so we'll export
4190 GtkButton as Button in the gtk namespace
4192 2008-04-21 Johan Dahlin <johan@gnome.org>
4194 * giscanner/gidlwriter.py:
4195 * giscanner/gobjecttreebuilder.py:
4196 * giscanner/treebuilder.py:
4197 Add constructors for object/boxed types.
4199 2008-04-21 Johan Dahlin <johan@gnome.org>
4201 * giscanner/gidlwriter.py:
4202 * giscanner/gobjecttreebuilder.py:
4203 Add support for boxed types
4205 2008-04-21 Johan Dahlin <johan@gnome.org>
4207 * giscanner/giscannermodule.c: Mark structures as const,
4208 wrap SourceType.const_string.
4210 * tests/parser/foo-object.h: Add a couple of constants.
4212 * giscanner/gidlwriter.py:
4213 * giscanner/gobjecttreebuilder.py:
4214 * giscanner/treebuilder.py:
4215 Add basic support for interfaces
4217 * tools/g-ir-scanner:
4218 Add -o/--output for writing to a file
4220 2008-04-21 Havoc Pennington <hp@redhat.com>
4222 * TODO: add some C API wishlist items I could think of quickly
4224 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4226 * giscanner/gidlwriter.py:
4227 * giscanner/xmlwriter.py:
4228 Add a simple api for writing tags which can be used
4229 with the new 'with statement' in python 2.5
4231 2008-04-21 Johan Dahlin <johan@gnome.org>
4233 * giscanner/gobjecttreebuilder.py:
4234 Strip namespace and object prefix from method names.
4236 2008-04-21 Johan Dahlin <johan@gnome.org>
4238 * tools/g-ir-scanner (main): Add --pkg option to pass in
4239 pkg-config modules to get cflags from.
4241 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4242 Avoid duplication, reuse function writer for methods.
4244 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4246 * giscanner/gidlwriter.py:
4247 * giscanner/gobjecttreebuilder.py:
4248 * giscanner/treebuilder.py:
4249 * tools/g-ir-scanner:
4250 Resolve libtool .la files.
4251 Strip name spaces for methods.
4252 Add function symbols
4254 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4256 * giscanner/cgobject.py:
4257 * giscanner/gidlwriter.py:
4258 * giscanner/gobjecttreebuilder.py:
4259 * giscanner/treebuilder.py:
4260 Add support for classes and methods
4262 2008-04-20 Johan Dahlin <johan@gnome.org>
4264 * giscanner/gidlwriter.py:
4265 * giscanner/gobjecttreebuilder.py:
4266 * giscanner/odict.py:
4267 Avoid conflicts, keep the output ordered similar to
4268 the order of the input.
4269 Add a simple ordered dictionary implemenation
4271 2008-04-19 Johan Dahlin <johan@gnome.org>
4273 * giscanner/cgobject.py:
4274 * giscanner/gidlwriter.py:
4275 * giscanner/gobjecttreebuilder.py:
4276 * tools/g-ir-scanner:
4277 Start introspecting get-type functions.
4278 Implement support for GLib/GFlags GTypes.
4279 Add a ctype based GObject binding.
4281 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4283 * giscanner/gidlwriter.py:
4284 * giscanner/xmlwriter.py:
4285 * tools/g-ir-scanner:
4286 Add a simplistic gidl writer, which can't do too much.
4288 2008-04-18 Johan Dahlin <johan@gnome.org>
4290 * giscanner/sourcescanner.py:
4291 * giscanner/treebuilder.py:
4292 * tools/g-ir-scanner:
4293 split tree building and source scanning interface to separate files.
4295 2008-04-18 Johan Dahlin <johan@gnome.org>
4297 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4299 - Add support for struct/parameter/return, start parsing of ctypes
4301 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4304 2008-03-31 Johan Dahlin <johan@gnome.org>
4306 * tools/g-ir-scanner:
4307 Start to build abstract syntax node of scanned sources.
4308 Add support for cpp options.
4310 2008-03-27 Johan Dahlin <johan@gnome.org>
4312 * giscanner/giscannermodule.c:
4313 * giscanner/scannerlexer.l:
4314 * giscanner/sourcescanner.c:
4315 * tools/g-ir-scanner:
4317 Add simple pre-processor using subprocess and a PIPE.
4318 Change the parse_file apis to accept a file descriptor.
4320 2008-03-25 Johan Dahlin <johan@gnome.org>
4322 * giscanner/__init__.py:
4323 * tools/g-ir-scanner:
4324 Fix a typo and add an example python test program.
4326 2008-03-25 Johan Dahlin <johan@gnome.org>
4328 * giscanner/__init__.py:
4329 * giscanner/giscannermodule.c:
4330 * giscanner/sourcescanner.c:
4331 * giscanner/sourcescanner.h:
4332 Add constants and wrap a few more SymbolType fields
4334 2008-03-25 Johan Dahlin <johan@gnome.org>
4338 * giscanner/__init__.py:
4339 * giscanner/giscannermodule.c:
4340 * giscanner/Makefile.am:
4342 Add initial python bindings for the scanner and
4343 depend on python 2.5.
4345 2008-03-25 Johan Dahlin <johan@gnome.org>
4349 * giscanner/Makefile.am:
4350 * giscanner/sourcescanner.c:
4351 * giscanner/sourcescanner.h:
4352 * tools/Makefile.am:
4353 * tools/grealpath.h:
4354 * tools/sourcescanner.c:
4355 * tools/sourcescanner.h:
4357 Move the scanner to a separate library.
4359 2008-03-23 Johan Dahlin <johan@gnome.org>
4361 * tools/Makefile.am:
4364 * tools/scannerlexer.l:
4365 * tools/scannerparser.y:
4366 * tools/sourcescanner.c:
4367 * tools/sourcescanner.h:
4368 Split out the source scanner from the generator.
4369 Rename the symbols used in the scanner to use the gi_ prefix.
4370 This should make it possible to use the raw C parser from
4373 2008-03-23 Johan Dahlin <johan@gnome.org>
4375 * tests/parser/Makefile.am (utility.gidl):
4376 * tests/parser/utility-expected.gidl:
4377 Pass in the gobject.gidl since we're defining a GObject.
4379 2008-03-12 Johan Dahlin <johan@gnome.org>
4381 * relaxng/relaxng.rng:
4382 Add a releaxng in relaxng we can use to validate the relaxngs
4385 2008-03-12 Jürg Billeter <j@bitron.ch>
4387 * tools/scanner.c: (g_igenerator_new):
4388 * tools/scannerparser.y:
4389 Fix compiler warnings.
4391 2008-03-12 Jürg Billeter <j@bitron.ch>
4395 * tools/scannerparser.y:
4396 Start fixing memory management in g-idl-scanner.
4398 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4400 * tools/gidlcompilercontext.c: (write_compiled):
4401 Fix critical warning when no shlib passed to g-idl-compiler.
4403 2008-03-12 Johan Dahlin <johan@gnome.org>
4405 * tests/parser/utility-expected.gidl:
4406 * tests/parser/utility.h:
4407 Add a get_type-function, so the scanner actually
4408 parses it as an object.
4410 2008-03-12 Johan Dahlin <johan@gnome.org>
4412 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4415 * tests/parser/Foo-expected.gidl:
4416 * tests/parser/Makefile.am:
4417 * tests/parser/foo-object.h:
4418 * tests/parser/foo.c:
4419 * tests/parser/utility-expected.gidl:
4420 * tests/parser/utility.c:
4421 * tests/parser/utility.h:
4423 Add a new gidl test. 'utility.gidl', which is used to be able
4424 to test external type references. Add a reference to UtilityObject*
4427 2008-03-11 Johan Dahlin <johan@gnome.org>
4431 Remove most global variables
4433 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4435 * tools/scannerlexer.l:
4437 * tests/parser/Foo-expected.gidl:
4438 * tests/parser/foo.c:
4439 * tests/parser/Makefile.am:
4440 * tests/parser/foo-object.h:
4442 Added a few extra tests. Which resulted in finding a few
4443 bugs. Which resulted in me fixing those bugs
4445 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4447 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4448 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4449 Add some comments for strings into generated output for
4452 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4454 * tools/gidlcompilercontext.c: (write_compiled):
4455 Write out the shlibs variable before writing out the strings
4456 length. Fixes compiler warning when using '-l' flag with
4459 2008-03-11 Johan Dahlin <johan@gnome.org>
4461 * tests/parser/Foo-expected.gidl:
4462 * tests/parser/foo-object.h:
4465 * tools/scannerlexer.l:
4466 Add support for parsing return arguments. Add support for
4467 caller-owns return types.
4468 Patch by Philip Van Hoof.
4470 * tools/scannerparser.y:
4471 Remove parsing of the @deprecated syntax used in headers.
4472 We will support gtk-doc deprecation in the future instead.
4474 2008-03-11 Johan Dahlin <johan@gnome.org>
4476 * tools/compiler.c (main): Coding style fixes
4478 2008-03-10 Johan Dahlin <johan@gnome.org>
4481 Add GCOV_LIBS to GILIBS
4483 2008-03-10 Johan Dahlin <johan@gnome.org>
4485 * tests/parser/Foo-expected.gidl:
4486 * tests/parser/foo.c:
4487 Rename null-ok to direction=out
4489 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4491 reviewed and extensively tested by Johan
4493 * tests/parser/Foo-expected.gidl:
4494 * tests/parser/foo-object.h:
4495 * tests/parser/foo.c:
4498 * tools/gidlwriter.c:
4501 * tools/scannerlexer.l:
4502 * tools/scannerparser.y:
4504 Add support for scanning for gtk-doc comments inside
4505 C source files. Add tests
4507 2008-03-10 Johan Dahlin <johan@gnome.org>
4509 * tests/parser/Makefile.am:
4510 * tests/parser/foo.c:
4513 * tools/scannerparser.y:
4514 Add an api to lex filenames.
4515 Lex all source .c files passed in on the command line.
4516 Scan sources in a test and a couple of private structures
4517 which should not be included in the generated gidl
4519 2008-03-10 Johan Dahlin <johan@gnome.org>
4521 * tests/invoke/Makefile.am: Make the generated metadata
4522 depend on the g-idl-compiler
4524 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4526 * tools/gidlmodule.c
4527 * tools/gidlmodule.h
4530 Remove the old g-idl-compiler code.
4533 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4535 * tools/quote-file.sh
4538 Move to using the 'C' struct compiler code.
4540 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4542 * girepository/ginfo.c
4544 Change the way that external references with no namespace
4545 are dealt with. External references with no namespace
4546 are placed into the XML as-if they are a local reference.
4547 This is temporary, but helps with roundtrip tests.
4549 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4551 * girepository/ginfo.c
4552 Add the ability to get the value of a constant of
4553 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4554 is provided as a string.
4556 This would deal properly with:
4557 typedef char* random;
4558 const random = "A string";
4560 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4562 * girepository/ginfo.c
4563 * girepository/girepository.h
4565 Add a function to check if an enum is registered or not.
4566 Previously anything testing this relied on the g-type
4567 string offset having a value of 0.
4569 * girepository/gmetadata.c
4570 * girepository/gmetadata.h
4572 Remove unneccesary or erroneous checks. There were two
4573 metadata validation checks which made sure that the blob
4574 sizes were the same as some magic numbers compiled into the code.
4575 This is wrong as it breaks any forwards compatibility that may
4578 Checks were also present that made sure that unregistered type
4579 blobs had a value of 0 in the g-type offset field. This is
4580 unneccessary. If a type blob is unregistered then any value
4581 in its g-type field is simply invalid.
4583 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4585 * girepository/ginfo.c
4586 * girepository/gmetadata.c
4587 * girepository/gmetadata.h
4589 Change the metadata format to have a standard header
4590 for all the type blobs. Merge the SimpleTypeBlob
4591 and InterfaceTypeBlob into a union. A union of these
4592 two blobs existed previously but was not explicit
4593 in the metadata format.
4595 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4597 * tools/gidlcompilercontext.c
4598 * tools/gidlcompilercontext.h
4599 * tools/gidlcompilerentrynode.c
4600 * tools/gidlcompilerentrynode.h
4601 * tools/gidlcompilertypenode.c
4602 * tools/gidlcompilertypenode.h
4604 Add code to compile a tree of GIdlNodes to
4605 a 'C' struct representing the metadata.
4606 This is to aid cross-compiling. Previously
4607 the g-idl-compiler created a binary blob with
4608 data written in the byte order and alignment
4609 of the tool rather than the intended target.
4611 Cleaned up and improved by Johan and Robert :-)
4613 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4615 * girepository/ginvoke.c
4616 * girepository/girepository.h
4617 * girepository/gmetadata.c
4618 * girepository/gmetadata.h
4620 * tools/gidlparser.c
4621 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4622 to avoid confusion with the interface blob.
4625 * tools/gidlparser.c
4626 Remove magic numbers and replace with type-tag
4627 enumeration symbols.
4629 * girepository/gmetadata.c
4630 Add validate declaration.
4632 2008-03-10 Jürg Billeter <j@bitron.ch>
4634 * tools/gidlparser.c: (parse_type_internal):
4635 * tools/scannerlexer.l:
4636 * tools/scannerparser.y:
4637 Support C99 _Bool type in scanner.
4639 2008-03-10 Jürg Billeter <j@bitron.ch>
4641 * tests/parser/Foo-expected.gidl:
4642 * tests/parser/foo-object.h:
4643 * tests/parser/foo.c: (foo_enum_method):
4644 * tools/scanner.c: (g_igenerator_process_function_symbol):
4645 Don't skip functions that are defined in the namespace of a type
4646 that doesn't support methods, as for example enums.
4648 2008-03-10 Johan Dahlin <johan@gnome.org>
4650 * gidl.dtd: Remove, we're using relaxng for now
4652 * tests/parser/Foo-expected.gidl:
4653 * tests/parser/foo-object.h:
4654 * tests/parser/foo.c:
4655 Rename the enum/flags get_type functions to include the whole type.
4657 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4659 * tools/gidlwriter.c (enum_generate): added "type-name",
4660 "get-type" and "deprecated" missing arguments.
4661 * tests/parser/Foo-expected.gidl:
4662 * tests/parser/foo-object.h: test enum type, and no type.
4664 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4667 Consistent checks, add missing 'test'
4669 2008-03-05 Havoc Pennington <hp@redhat.com>
4671 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4672 does on Fedora 8. Make libffi a hard requirement, since it was in
4673 practice anyway (was not really conditional in the code or
4674 makefile, only in configure).
4676 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4678 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4679 reviewed by: Johan Dahlin <johan@gnome.org>
4681 * tests/Makefile.am:
4682 * tests/roundtrips.sh:
4683 Modify the roundtrips test so that they do not use the
4684 --raw option of the gidl compiler but instead compile a
4685 shared library to use with g_module.
4687 * tests/invoke/Makefile.am:
4688 * tests/invoke/invoke.c:
4689 Modify the invoke tests to build a shared library rather
4690 than use the --raw option.
4692 * tests/invoke/invoke-namespace-find.sh: Removed:
4693 Noone knows why this was here, so removed.
4695 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4697 * tools/scanner.c: (g_igenerator_process_function_symbol):
4698 Move g_idl_node_can_have_member test later, as it broke spotting
4699 get_type's for nodes that can't have members.
4701 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4704 * tools/gidlnode.c: (g_idl_node_can_have_member):
4705 Add g_idl_node_can_have_member.
4707 * tools/scanner.c: (g_igenerator_process_function_symbol):
4708 Use g_idl_node_can_have_member to test if we should add a function
4709 as a member of the type node.
4711 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4713 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4715 * tests/parser/Makefile.am:
4716 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4718 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4720 * tools/scanner.c: (main):
4721 Ignore -pthread when passed to g-idl-scanner.
4723 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4725 * tools/grealpath.h: Added:
4726 * tools/scanner.c: (main):
4727 * tools/scannerlexer.l:
4728 * tools/Makefile.am:
4729 Always use absolute paths with symbolic links resolved when
4730 comparing filenames.
4732 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4734 * gobject-introspection.pc.in:
4735 Provide variables for g-idl-parser, scanner and compiler in the
4738 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4741 * girepository/Makefile.am:
4742 * tools/Makefile.am:
4743 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4745 2008-02-10 Johan Dahlin <johan@gnome.org>
4747 * tests/parser/Foo-expected.gidl:
4748 * tests/parser/foo-object.h:
4749 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4750 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4753 2008-02-10 Johan Dahlin <johan@gnome.org>
4755 * tests/parser/Foo-expected.gidl:
4756 * tests/parser/foo-object.h:
4757 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4758 Add enum and flags test.
4760 2008-02-10 Johan Dahlin <johan@gnome.org>
4764 * girepository/Makefile.am:
4765 Make 'make distcheck' work again.
4767 2008-02-10 Johan Dahlin <johan@gnome.org>
4769 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4772 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4773 check, eg exclude it from BUILT_SOURCES.
4775 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4780 * girepository/Makefile.am:
4781 * m4/Makefile.am: Added:
4782 * m4/as-compiler-flag.m4: Added:
4783 * m4/gcov.m4: Added:
4784 * tools/Makefile.am:
4785 Add ability to generate a coverage report.
4786 Adds configure option --enable-gcov and make rule 'check-coverage'.
4788 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4792 * gidl/Makefile.am: Added:
4793 * girepository/Makefile.am: Added:
4794 * src/Makefile.am: Renamed to tools/Makefile.am:
4795 * src/compiler.c: Renamed to tools/compiler.c:
4796 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4797 * src/generate.c: Renamed to tools/generate.c:
4798 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4799 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4800 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4801 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4802 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4803 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4804 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4805 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4806 * src/ginfo.c: Renamed to girepository/ginfo.c:
4807 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4808 * src/girepository.c: Renamed to girepository/girepository.c:
4809 * src/girepository.h: Renamed to girepository/girepository.h:
4810 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4811 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4812 * src/scanner.c: Renamed to tools/scanner.c:
4813 * src/scanner.h: Renamed to tools/scanner.h:
4814 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4815 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4816 * tests/invoke/Makefile.am:
4817 Split src/ into girepository/ and tools/
4821 * girepository/Makefile.am:
4822 * tests/Makefile.am:
4823 * tests/invoke/Makefile.am:
4824 * tests/parser/Makefile.am:
4825 * tests/roundtrips.sh:
4826 * tools/Makefile.am:
4827 Make distcheck work.
4829 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4831 * tests/invoke/invoke.c: (main):
4832 * tests/invoke/testfns.c: (test6), (test7):
4833 * tests/invoke/testfns.xml:
4834 Add tests for invokation with a GList argument.
4835 Also tests caller-owns return values.
4837 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4840 Add some documentation for GICallableInfo
4842 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4845 Correct syntax errors in the DTD file.
4847 * relaxng/c-types.xml:
4848 * relaxng/g-types.xml:
4850 Add a RelaxNG specification for the GObject Introspection XML data.
4851 The Specification has validated all of the test files.
4853 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4855 * tests/roundtrips.sh:
4856 * tests/struct.test:
4857 Add roundtrip tests for structs.
4859 2008-01-11 Johan Dahlin <johan@gnome.org>
4861 * src/scanner.c (g_igenerator_process_function_symbol):
4862 Refactor out g_idle_node_add_member.
4863 (create_node_from_gtype, create_node_from_ctype):
4864 Use case instead of if...else
4865 (get_type_from_type_id):
4866 Rename to create_node_from_gtype
4867 (get_type_from_ctype):
4868 Rename to create_node_from_ctype
4870 Rename ginode -> node, gitype -> type, gifunc -> func.
4872 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4873 Two new functions, refactor out of scanner.c
4875 * src/scanner.c: (g_igenerator_process_function_symbol):
4876 * src/scannerlexer.l:
4877 Do not save the content of the deprecated variable, only
4880 2008-01-11 Johan Dahlin <johan@gnome.org>
4882 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4884 2008-01-11 Jürg Billeter <j@bitron.ch>
4886 * src/scannerlexer.l:
4887 Fix GTK-Doc parsing.
4889 2008-01-11 Jürg Billeter <j@bitron.ch>
4891 * src/scannerlexer.l:
4892 Fix GTK-Doc parsing.
4894 2008-01-11 Jürg Billeter <j@bitron.ch>
4896 * src/scanner.c: (lookup_symbol):
4897 Return unresolved name if we find unknown symbol.
4899 2008-01-11 Jürg Billeter <j@bitron.ch>
4901 * src/scanner.c: (g_igenerator_generate):
4902 Initialize GObject to fix scanning interface properties.
4904 * tests/parser/Foo-expected.gidl:
4905 * tests/parser/foo-object.h:
4906 * tests/parser/foo.c: (foo_interface_get_type):
4907 Test interfaces with GObject prerequisite.
4909 * tests/parser/Makefile.am:
4910 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4912 2007-12-27 Johan Dahlin <johan@gnome.org>
4914 * src/scannerlexer.l:
4915 Parse gtk-doc comments.
4917 * src/gidlwriter.c: (function_generate):
4918 Reorganize, avoid duplication and add support for
4919 writing deprecated functions.
4921 * src/scannerparser.y:
4923 Add new structure CDirective and functions to create/free them.
4925 * src/scanner.c: (g_igenerator_process_function_symbol),
4926 (g_igenerator_process_unregistered_struct_typedef),
4927 (g_igenerator_process_struct_typedef),
4928 (g_igenerator_process_union_typedef),
4929 (g_igenerator_process_enum_typedef),
4930 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4931 (g_igenerator_start_preprocessor):
4932 Parse @deprecated directive for functions.
4933 Remove some more C99isms.
4934 Send in -C to cpp to avoid stripping comments.
4936 * tests/parser/foo-object.h:
4937 * tests/parser/Foo-expected.gidl:
4938 Add deprecated directive
4940 2007-12-27 Johan Dahlin <johan@gnome.org>
4942 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4943 escape ' and " so it looks more like C.
4946 Unlink temporary file used.
4948 2007-12-27 Johan Dahlin <johan@gnome.org>
4950 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4951 (g_igenerator_start_preprocessor), (main):
4953 * src/scannerparser.y:
4954 Plug a couple of simple memory leaks.
4956 2007-12-27 Johan Dahlin <johan@gnome.org>
4958 * src/scanner.c: (g_igenerator_parse_macros),
4959 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4962 * src/scannerparser.y:
4963 * tests/parser/Makefile.am:
4965 Improve error reporting, return when the preprocessor fails.
4966 Add a verbose parameter, to aid debugging.
4967 Revert to using a temporary file to communicate between the
4968 preprocessor and the parser, because we need to wait for
4969 the exit code from the pre-processor before starting to parse.
4971 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4973 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4974 cparser.y to scannerparser.y
4976 2007-12-11 Johan Dahlin <johan@gnome.org>
4980 * src/scanner.c: (g_igenerator_new):
4982 Get rid of the global the_generator variable.
4984 2007-12-10 Johan Dahlin <johan@gnome.org>
4986 * src/scanner.c (main): Add an output option,
4987 add checks for required parameters
4990 set BUILD_SOURCES and CLEANFILES properly
4992 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4993 (g_writer_write_indent), (g_writer_write_unindent),
4994 (field_generate), (value_generate), (constant_generate),
4995 (property_generate), (function_generate), (vfunc_generate),
4996 (signal_generate), (interface_generate), (struct_generate),
4997 (union_generate), (boxed_generate), (enum_generate),
4998 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5000 * src/scanner.c: (g_igenerator_generate):
5002 * src/scannerwriter.c:
5004 Refactor scannerwriter to only be tied to a GIdlModule and move
5005 it (again!) to gidlwriter.c. Change the writer function to take
5008 2007-12-10 Johan Dahlin <johan@gnome.org>
5011 * src/scanner.c: (g_igenerator_generate):
5013 * src/scannerwriter.c: (g_igenerator_write_inline),
5014 (g_igenerator_write), (g_igenerator_write_indent),
5015 (g_igenerator_write_unindent), (field_generate), (value_generate),
5016 (constant_generate), (property_generate), (function_generate),
5017 (vfunc_generate), (signal_generate), (interface_generate),
5018 (struct_generate), (union_generate), (boxed_generate),
5019 (enum_generate), (node_generate), (module_generate),
5020 (g_scanner_write_file):
5022 Move the scanner gidl writing to a separate source file.
5024 2007-12-10 Johan Dahlin <johan@gnome.org>
5029 Move over all CType construction functions.
5031 * tests/parser/Makefile.am:
5032 Be verbose when printing parsing tests results.
5034 2007-12-10 Johan Dahlin <johan@gnome.org>
5036 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5037 preprocessor handling to here. Start cpp insteado of cc -E,
5038 always include -U__GNUC__, since it's specific to the preprocessor
5041 * tests/parser/Makefile.am (check-local): Silent diff and skip
5042 -U__GNUC__ which is always defined now
5044 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5046 reviewed by: <delete if not using a buddy>
5048 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5049 * tests/parser/Makefile.am:
5051 2007-12-09 Johan Dahlin <johan@gnome.org>
5054 Use GOption for command line options.
5055 (g_igenerator_new, main): Simplify constructor and they way
5056 parameters are passed into it.
5062 * src/gen-introspect.c:
5063 * src/gen-introspect.h:
5065 Rename gen-introspect.[ch] to scanner.[ch]
5067 2007-12-09 Johan Dahlin <johan@gnome.org>
5071 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5072 don't make the repository library and the other utilites link against
5075 * src/gen-introspect.c: (g_igenerator_create_object),
5076 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5077 (g_igenerator_create_enum), (g_igenerator_create_flags),
5078 (g_igenerator_process_module_symbol),
5079 (g_igenerator_process_module), (g_igenerator_generate), (main):
5080 * src/gen-introspect.h:
5081 Refactor g_igenerator_process_types into smaller pieces.
5083 * tests/parser/Makefile.am:
5084 Depend on the gen-introspect binary
5086 2007-12-09 Johan Dahlin <johan@gnome.org>
5088 * src/gen-introspect.c (g_igenerator_process_types):
5089 Break into smaller pieces, one for each generated node type.
5091 2007-12-08 Johan Dahlin <johan@gnome.org>
5093 * src/gen-introspect.c: (g_igenerator_process_types),
5094 (g_igenerator_add_module):
5095 * tests/parser/Foo-expected.gidl:
5096 * tests/parser/foo-object.h:
5097 * tests/parser/foo.c: (foo_subobject_class_init),
5098 (foo_subobject_init):
5100 Add a subobject test and make sure to register defined classes
5101 in the lookup symbol hash table.
5103 2007-12-08 Johan Dahlin <johan@gnome.org>
5107 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5108 (g_igenerator_process_types), (g_igenerator_add_module),
5109 (g_igenerator_add_include_idl), (main):
5110 * src/gen-introspect.h:
5111 * tests/parser/Makefile.am:
5112 * tests/parser/Foo-expected.gidl:
5114 Change the gen-introspect to generate namespaced module names,
5115 such as GLib.Object instead of GObject.
5116 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5117 add a --include-idl parameter to gen-introspect,
5118 and update the parser test.
5120 2007-12-08 Johan Dahlin <johan@gnome.org>
5122 * src/gen-introspect.c:
5123 Move main to the end of the file and attempt to make it valid
5126 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5127 we're not quite ready to generate metadata yet.
5132 Add a simple gen-introspect parser test
5134 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5136 reviewed by: Johan Dahlin <johan@gnome.org>
5139 * gobject-introspection.pc.in:
5141 * src/compiler.c: (format_output), (write_out_metadata), (main):
5142 * src/gen-introspect.c: (main):
5143 * src/gen-introspect.h:
5144 * src/generate.c: (write_callable_info), (write_repository),
5145 (load_metadata), (main):
5146 * src/gidlmodule.c: (g_idl_module_new),
5147 (g_idl_module_build_metadata):
5149 * src/gidlparser.c: (start_element_handler):
5150 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5151 (g_base_info_get_name), (g_base_info_get_namespace),
5152 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5153 (g_base_info_get_metadata), (g_function_info_get_symbol),
5154 (g_function_info_get_flags), (g_function_info_get_property),
5155 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5156 (g_callable_info_may_return_null),
5157 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5158 (g_callable_info_get_arg), (g_arg_info_get_direction),
5159 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5160 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5161 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5162 (g_type_info_get_tag), (g_type_info_get_param_type),
5163 (g_type_info_get_interface), (g_type_info_get_array_length),
5164 (g_type_info_is_zero_terminated),
5165 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5166 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5167 (g_value_info_get_value), (g_field_info_get_flags),
5168 (g_field_info_get_size), (g_field_info_get_offset),
5169 (g_registered_type_info_get_type_name),
5170 (g_registered_type_info_get_type_init),
5171 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5172 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5173 (find_method), (g_struct_info_find_method),
5174 (g_enum_info_get_n_values), (g_enum_info_get_value),
5175 (g_object_info_get_parent), (g_object_info_get_type_name),
5176 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5177 (g_object_info_get_interface), (g_object_info_get_n_fields),
5178 (g_object_info_get_field), (g_object_info_get_n_properties),
5179 (g_object_info_get_property), (g_object_info_get_n_methods),
5180 (g_object_info_get_method), (g_object_info_find_method),
5181 (g_object_info_get_n_signals), (g_object_info_get_signal),
5182 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5183 (g_object_info_get_n_constants), (g_object_info_get_constant),
5184 (g_interface_info_get_n_prerequisites),
5185 (g_interface_info_get_prerequisite),
5186 (g_interface_info_get_n_properties),
5187 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5188 (g_interface_info_get_method), (g_interface_info_find_method),
5189 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5190 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5191 (g_interface_info_get_n_constants),
5192 (g_interface_info_get_constant), (g_property_info_get_flags),
5193 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5194 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5195 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5196 (g_constant_info_get_value), (g_union_info_get_n_fields),
5197 (g_union_info_get_field), (g_union_info_get_n_methods),
5198 (g_union_info_get_method), (g_union_info_is_discriminated),
5199 (g_union_info_get_discriminator_offset),
5200 (g_union_info_get_discriminator):
5201 * src/ginvoke.c: (g_function_info_invoke):
5202 * src/girepository.c: (g_irepository_register),
5203 (g_irepository_unregister), (g_irepository_get_default),
5204 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5205 (g_irepository_get_info), (g_irepository_find_by_name),
5206 (g_irepository_get_shared_library),
5207 (g_irepository_build_search_path), (g_irepository_register_file),
5208 (g_irepository_error_quark):
5209 * src/girepository.h:
5210 * src/gmetadata.c: (g_metadata_get_dir_entry),
5211 (g_metadata_check_sanity), (validate_header),
5212 (validate_array_type_blob), (validate_iface_type_blob),
5213 (validate_param_type_blob), (validate_error_type_blob),
5214 (validate_type_blob), (validate_arg_blob),
5215 (validate_signature_blob), (validate_function_blob),
5216 (validate_callback_blob), (validate_constant_blob),
5217 (validate_value_blob), (validate_field_blob),
5218 (validate_property_blob), (validate_signal_blob),
5219 (validate_vfunc_blob), (validate_struct_blob),
5220 (validate_enum_blob), (validate_object_blob),
5221 (validate_interface_blob), (validate_errordomain_blob),
5222 (validate_union_blob), (validate_blob), (validate_directory),
5223 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5224 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5225 (g_metadata_new_from_mapped_file), (g_metadata_free),
5226 (g_metadata_set_module), (g_metadata_get_namespace):
5228 * tests/Makefile.am:
5229 * tests/invoke/Makefile.am:
5230 * tests/invoke/invoke-namespace-find.sh:
5231 * tests/invoke/invoke.c: (main):
5233 Add a namespace/shared library mapping. fixes #313268.
5235 2007-12-03 Johan Dahlin <johan@gnome.org>
5237 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5240 2007-11-30 Jürg Billeter <j@bitron.ch>
5246 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5247 (g_igenerator_write_inline), (g_igenerator_write),
5248 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5249 (field_generate), (value_generate), (constant_generate),
5250 (property_generate), (function_generate), (vfunc_generate),
5251 (signal_generate), (interface_generate), (struct_generate),
5252 (union_generate), (boxed_generate), (enum_generate),
5253 (node_generate), (module_generate), (get_type_from_type_id),
5254 (str_replace), (g_igenerator_process_properties),
5255 (g_igenerator_process_signals), (g_igenerator_process_types),
5256 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5257 (g_igenerator_process_unregistered_struct_typedef),
5258 (g_igenerator_process_struct_typedef),
5259 (g_igenerator_process_union_typedef),
5260 (g_igenerator_process_enum_typedef),
5261 (g_igenerator_process_function_typedef),
5262 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5263 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5264 (g_igenerator_generate), (main), (csymbol_new),
5265 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5266 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5267 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5268 (eat_hspace), (eat_line), (read_identifier),
5269 (g_igenerator_parse_macros):
5270 * src/gen-introspect.h:
5272 Import gen-introspect to generate introspection information by
5275 2007-11-30 Jürg Billeter <j@bitron.ch>
5277 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5279 2007-11-30 Jürg Billeter <j@bitron.ch>
5281 * src/gidlparser.c: (end_element_handler): Don't leave requires
5284 2007-11-29 Johan Dahlin <johan@gnome.org>
5286 * src/gidlparser.c (parse_type_internal): Add char,
5287 gchar and guchar to the builtin types.
5289 2007-11-26 Johan Dahlin <johan@gnome.org>
5291 * src/ginfo.c: (g_object_info_get_type_name),
5292 (g_object_info_get_type_init):
5293 * src/girepository.c: (g_irepository_is_registered):
5294 * src/girepository.h:
5296 Add g_object_info_get_type_name, g_object_info_get_type_init and
5297 g_irepository_is_registered.
5299 2006-08-14 Jürg Billeter <j@bitron.ch>
5301 * src/gidlparser.c: (end_element_handler): Don't leave
5302 namespace and implements states too early.
5305 2007-11-26 Johan Dahlin <johan@gnome.org>
5307 * src/gmetadata.c (validate_struct_blob):
5308 pass blob_type to validate_function_blob instead of
5309 hard-coding BLOB_TYPE_STRUCT.
5311 Patch by Torsten Schoenfeld, fixes #314190
5313 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5315 * src/compiler.c, src/generate.c, src/gidlnode.c,
5316 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5317 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5318 warnings about return values, signedness mismatches, unused
5319 variables, and unhandles enum values in switch statements.
5321 * tests/invoke/Makefile.am: Don't install the invoke test program.
5322 Add -I ../../src to the cflags used for the test functions files.
5324 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5326 * src/girepository.h: Export g_invoke_error_quark.
5328 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5330 * src/ginvoke.c: Remove the fallback implementation of
5331 g_function_info_invoke since we now formally depend on libffi.
5333 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5335 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5336 Remove these files from cvs, as they are now generated.
5338 * src/gmetadata.c (validate_iface_type_blob): Don't
5339 complain if blob->pointer is not set, since that
5340 happens for enum and flag types. (#308935, Gustavo
5343 * Commit an autoconf-conversion patch by
5344 Gustavo Carneiro (#308708)
5346 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5348 * src/compiler.c (main): Use it here to validate
5349 the generated metadata.
5351 * src/gmetadata.[hc]: Add code to validate a
5354 * metadata-format.txt: Updates
5356 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5358 * tests/*: Add struct offsets to field and vfunc
5361 * src/generate.c (write_vfunc_info): Write offset
5362 information for vfuncs.
5364 * src/gidlnode.c (g_idl_node_build_metadata): Write
5365 the struct offsets into the metadata.
5367 * src/gidlparser.c: Parse the offset attributes of
5368 field and vfunc elements.
5370 * src/gidlnode.h: Add offset members to field and
5373 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5377 * gidl.dtd: Updates.
5379 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5380 file, creates, compiles and runs a C file, and folds the
5381 resulting struct offsets back into the .gidl file.
5383 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5385 * src/gidlparser.c (start_field): Make fields in objects
5388 * src/gidlmodule.c: Include string.h
5393 * metadata-format.txt: Cleanup basic types.
5394 * src/*: Adapt to the changes.
5395 * tests/*: Adapt to the changes.
5396 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5398 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5399 size for enum blobs.
5400 (g_idl_node_get_full_size): Report the correct size for
5403 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5404 error checking for blob sizes.
5406 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5408 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5409 interface types for which is_pointer is FALSE, e.g. enums.
5411 * src/gidlnode.c (g_idl_node_get_full_size)
5412 * src/gidlparser.c (parse_type_internal):
5413 * src/generate.c (write_type_info): Support unspecialized
5414 lists, hashtables and errors. Also emit a '*' after these.
5418 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5422 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5424 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5426 * src/*.c: Change the directory to be addressed by
5427 1-based indexes, and use an index of zero to mean
5430 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5432 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5434 * tests/union.test: Add a union test.
5436 * src/generate.c: Handle unions.
5438 * src/girepository.h:
5439 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5441 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5443 * src/gidlparser.c (start_union): Parse <union> elements.
5445 * src/gidlnode.h: Add a GIdlNodeUnion.
5447 * gidl.dtd: Add a <union> element.
5449 * src/gmetadata.c (g_metadata_check_sanity): Check
5452 * src/gmetadata.h: Add union_blob_size to Header,
5455 * metadata-format.txt: Add a UnionBlob.
5457 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5459 * tests/*: Update testcases.
5461 * src/generate.c (write_callable_info): Don't forget to
5462 write transfer and null-ok attributes for return types
5465 * src/girepository.h:
5466 * src/ginfo.c (g_callable_info_may_return_null):
5467 New function to find out if a function may return NULL.
5469 * src/compiler.c (format_output): Make the generated
5472 * README: Point to a recent libffi snapshot.
5474 * tests/invoke/*: Some invoke tests.
5476 * src/Makefile: Add ginvoke.c and the necessary
5479 * src/girepository.h (g_function_info_invoke): Add
5482 * src/ginvoke.c (g_function_info_invoke): Initial
5483 implementation of invoke functionality based on libffi.
5485 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5486 strings and types hash tables in the right order when
5488 (find_entry_node): Free the name parts.
5490 2005-05-12 Johan Dahlin <johan@gnome.org>
5492 * src/generate.c: Generate consistent end tags.
5496 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5500 * src/gidlparser.c (start_function): Actually add
5501 methods to objects. (Steven Walter)
5503 * src/girepository.h:
5504 * src/ginfo.c: Rename Transfer and Direction to
5505 GITransfer and GIDirection. (Torsten Schoenfeld)
5507 * tests/*: Make tests work with the changes in name
5510 * src/gidlnode.c (find_entry_node): Parse qualified
5511 names and generate xref nodes for them if needed. Don't
5512 require all modules to be loaded any more.
5514 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5517 * src/ginfo.c (g_object_info_get_parent): Return NULL
5518 if blob->parent is 0. Still need to make sure index
5521 * src/generate.c: Generate qualified names when
5522 referring to non-local types. Emit transfer attribute
5525 * src/compiler.c (format_output): Put the function
5526 attributes where gcc accepts them.
5528 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5530 * src/compiler.c (main): Add a --verbose cmdline option
5531 and only log messages if it is specified.
5534 * src/gidlnode.c (init_stats, dump_stats): Collect some
5535 statistics on string and type sharing.
5537 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5538 g_message() instead of fprintf().
5540 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5541 (g_idl_node_get_size): Implement for structs.
5542 (g_idl_node_get_full_size): Handle parent being NULL.
5543 (serialize_type): Handle lookup failures more gracefully.
5545 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5547 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5548 size calculation for 2-parameter types and for objects.
5550 * src/compiler.c: Add a cmdline option for debug output
5551 and install a log handler to implement it.
5552 * src/gidlnode.c: Add some debug spew.
5556 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5557 forget to count the module name when calculating the
5558 required size for the metadata.
5561 * src/gidlparser.c: Fix compiler warnings.
5563 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5565 * src/compiler.c (main): Free the option context.
5567 * gidl.dtd: Clean up handling of names. All elements
5568 have a "name", only the elements corresponding to
5569 actual callable functions (function, method, constructor),
5570 have an additional "symbol" attribute holding the
5571 dlsym()-able function name.
5573 * src/generate.c: Adapt to generate xml matching the
5577 * src/gidlnode.c: Adapt to parse the new dtd.
5579 * tests/*.test: Adjust to the new dtd.
5581 * metadata-format.txt:
5582 * src/gmetadata.h: Remove the short_name field
5584 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5585 * src/girepository.h:
5586 * src/ginfo.c (g_value_info_get_short_name): Removed
5588 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5590 * gidl.dtd: Allow constructors for boxed types,
5591 patch by Jonathan Blandford.
5594 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5596 * --- Initial import ---