1 2008-12-09 Johan Dahlin <johan@async.com.br>
3 * giscanner/cachestore.py (CacheStore.store): Use
4 shutil.move instead of os.rename, since it will
5 automatically fall back to copying+remove if the
6 src directory is on a different partition from
9 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
11 Bug 563742 – introspection should record the introduced version of
12 symbols marked with the "Since:" tag
17 * giscanner/girwriter.py:
18 * giscanner/scannerlexer.l:
19 * giscanner/transformer.py:
20 * tests/scanner/annotation-1.0-expected.gir:
21 * tests/scanner/annotation-1.0-expected.tgir:
22 * tests/scanner/annotation.c (annotation_versioned):
23 * tests/scanner/annotation.h:
25 2008-12-08 Johan Dahlin <johan@async.com.br>
27 * giscanner/cachestore.py (_get_cachedir): Don't require
28 HOME to be set and if it set, don't require the
31 2008-12-08 Johan Dahlin <johan@async.com.br>
33 * giscanner/cachestore.py (CacheStore.store): Dump the cache
34 file to a temporary file and rename it the expected filename
35 only when it's completely written.
36 This should make the cache more roboust when run in parallel,
37 and hopefully avoid triggering bugs in Python.
39 2008-12-03 Christophe Fergeau <teuf@gnome.org>
41 Bug 562971 – g-ir-scanner failure on libgpod headers
43 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
44 default 16384. Without it, the lexer was aborting with a cryptic
45 error message on source files containing really long comment
48 2008-12-01 Colin Walters <walters@verbum.org>
50 * girepository/gfield.c: Fix memory leak; unref type info we
51 created, not field info
53 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
55 Bug 562289 – Race when removing invalid cache
57 * giscanner/cachestore.py:
58 ENOENT is mapped to a OSError, not IOError.
60 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
62 * gir/glib-2.0.c: Add return value transfer annotation
63 for g_markup_escape_text.
65 2008-11-25 Colin Walters <walters@verbum.org>
67 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
69 * giscanner/dumper.py: Implement it.
70 * gir/Makefile.am, tests/**/Makefile.am: Use it.
72 2008-11-25 Colin Walters <walters@verbum.org>
74 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
75 to just use a Makefile rule and dependencies. This corresponds with a change
76 made to gir-repository to fix srcdir != builddir issues.
78 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
81 Post release version bump
84 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
89 2008-11-25 Colin Walters <walters@verbum.org>
91 Bug 559705 – Missing association between static methods and classes
93 * docs/typelib-format.txt:
94 * girepository/ginfo.c (g_function_info_get_flags):
95 * girepository/girmodule.c (g_ir_module_build_typelib):
96 * girepository/girnode.c (g_ir_node_get_size),
97 (g_ir_node_build_typelib):
98 * girepository/girparser.c (start_function):
99 * girepository/gtypelib.c (g_typelib_check_sanity),
100 (validate_header), (validate_function_blob):
101 * girepository/gtypelib.h:
103 * giscanner/girwriter.py:
104 * giscanner/glibtransformer.py:
105 * tests/scanner/foo-1.0-expected.gir:
106 * tests/scanner/foo-1.0-expected.tgir:
107 * tests/scanner/foo.h:
109 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
111 * giscanner/ast.py: Define socklen_t as an alias for int32.
113 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
115 * girepository/gdump.c (dump_type): Remove a warning,
116 be less verbose on error on fundamental types.
118 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
120 * giscanner/dumper.py: Add license headers,
121 refactor into a class, avoid some duplication and do some
122 extra pedantic checks.
124 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
126 Make it compilable with -Werror on my system by adding
127 a couple of prototypes and including headers.
129 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
131 Bug 562022 – gobject-introspection needs python headers
133 * configure.ac: fail without python headers present.
136 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
138 Bug 561617 – Return value array annotations
140 * giscanner/transformer.py:
141 * tests/scanner/annotation.c (annotation_return_array):
142 * tests/scanner/annotation.h:
143 Add support for (array) for return value annotations as well.
145 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
147 * tests/everything/everything.[ch]: add a test function which calls a
150 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
152 * giscanner/cachestore.py:
153 Catch ValueError exceptions.
155 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
157 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
159 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
161 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
162 instead of hard-coding struct sizes.
164 2008-11-18 Owen Taylor <otaylor@redhat.com>
166 Bug 561296 - Add "storage type" to the typelib data for enums
168 In order to set and get enum and flag fields in structures, we need
169 to know the integral type that the enumeration is stored as. We are already
170 computing that at compile time in order to compute struct offsets, so the
171 easiest thing to do is to save that in the typelib.
173 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
174 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
175 and compute and save it at compile time.
177 * girepository/girepository.h girepository/ginfo.c:
178 Add g_enum_info_get_storage_type().
180 * girepository/gfield.c: Implement reading and writing enum and flags fields
181 based on the storage type.
183 2008-11-18 Owen Taylor <otaylor@redhat.com>
185 Add enums to the Everything test module
187 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
188 test module and register them as GTypes.
190 https://bugzilla.gnome.org/show_bug.cgi?id=561296
192 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
194 * giscanner/cachestore.py:
195 Catch BadPickleGet exceptions as well.
197 2008-11-17 Owen Taylor <otaylor@redhat.com>
199 * tests/everything/everything.c: Fix doc comment annotations
200 for test_struct_b_clone() to refer to the right function.
202 2008-11-17 Dan Winship <danw@gnome.org>
204 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
205 spelling of GHashTable. #561135
207 * tests/scanner/annotation.c (annotation_object_get_hash):
208 * tests/scanner/annotation-1.0-expected.gir:
209 * tests/scanner/annotation-1.0-expected.tgir: add a test of
210 GHashTable annotations
212 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
214 * giscanner/ast.py: Change string array match type to be in terms
215 of canonicalized type.
216 * giscanner/transformer.py: Add canonicalize_ctype which gives us
217 a version of a c:type without aliases, so we can deep canonicalize
218 char** to utf8*. Update parse_ctype to use it.
219 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
221 2008-11-16 Colin Walters <walters@verbum.org>
223 * girepository/girepository.c: Ensure we always call init_globals,
224 even if passed a non-default repository.
226 2008-11-16 Colin Walters <walters@verbum.org>
228 Bug 559706 - Interface prerequisites
230 * common.mk: Dep on libgirepository.la for scanner libs so that
231 we rebuild things even if just gdump.c changes.
232 * girepository/gdump.c: Dump prerequisites.
233 * giscanner/ast.py: Add prerequisite list.
234 * giscanner/girparser.py: Parse them from gdump.
235 * giscanner/girwriter.py: Write them.
236 * giscanner/glibtransformer.py: Resolve them.
239 2008-11-16 Owen Taylor <otaylor@redhat.com>
241 Bug 561087 - Respect is_pointer in serialize_type()
243 Add a '*' to the serialization for the cases where we set is_pointer
244 in the type blob we write out depending on node->is_pointer. Don't
245 add the '*' in the cases where is_pointer is set or not set in a
248 http://bugzilla.gnome.org/show_bug.cgi?id=561087
250 2008-11-16 Owen Taylor <otaylor@redhat.com>
252 Bug 560825 – Add size and alignment to typelib
254 Include the size and alignment of structures and unions in the typelib,
255 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
257 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
258 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
259 to StructBlob and UnionBlob.
261 * girepository/ginfo.c girepository/girepository.h:
262 Add g_[struct|union]_get[size|alignment]().
264 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
266 2008-11-16 Owen Taylor <otaylor@redhat.com>
268 Bug 552371 – implement struct field get/set
270 * girepository/gfield.c girepository/girepository.h: Add
271 convenience functions g_field_info_set_field() and
272 g_field_info_get_field() to set and get fields based on the
273 offsets in GIFieldInfo.
275 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
277 Bug 560241 - Out-arguments should not be marked as being pointers
280 * girepository/girparser.c: Improved logic for out arguments.
282 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
284 Bug 559601 - Pointers in structs/unions unduly treated as arrays
286 * giscanner/transformer.py: Differentiate type creation logic
287 between parameters and struct components.
289 2008-11-15 Colin Walters <walters@verbum.org>
291 * giscanner/dumper.py: Check return code from pkg-config
294 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
296 * tests/everything/everything.c (test_array_int_in),
297 (test_array_gtype_in):
298 * tests/everything/everything.h:
299 Rename the int/gtype array tests. Make the return value
300 useful, an aggregation of the array input values.
302 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
304 * tests/everything/Makefile.am:
305 * tests/everything/everything.c:
306 * tests/everything/everything.h:
307 * tests/everything/gitesttypes.c:
308 * tests/everything/gitesttypes.h:
309 Rename gitesttypes.[ch] to everything.[ch]
311 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
313 Bug 560708 – Don't treat arrays that have a length specified as
314 zero-terminated by default
316 * giscanner/transformer.py: Default to non zero terminated for
318 * tests/*: Update, add test for zero vs not.
320 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
322 Bug 557788 - Return types for constructors in generated typelib bogus
324 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
325 obviously broken in the face of duplicate names in different
327 * tests/scanner/*expected.gir: Fix up.
329 2008-11-13 Owen Taylor <otaylor@redhat.com>
331 * girepository/girffi.c: Fix "Unexpected time for time_t"
334 2008-11-13 Colin Walters <walters@verbum.org>
336 Bug 558436 - avoid having scanner load app code
338 * giscanner/cgobject.py: Delete; we no longer load shared
340 * giscanner/dumper.py: Support for linking a library to
341 a stub binary for introspection.
342 * giscanner/glibtransformer.py: Rewrite to use gdump XML
343 from invocation of child binary.
344 * giscanner/transformer.py: Fix up to use fully qualified
345 name in parse tree. Make parse_ctype public so we can use
346 it inside glibtransformer.
347 * tests/scanner/barapp.c: New test, using --program arg
349 * tests/*: Update to use common.mk for invoking scanner.
350 * tools/g-ir-scanner: Add options --program, --program-arg,
352 * docs/g-ir-scanner.1: Update.
354 2008-11-13 Colin Walters <walters@verbum.org>
356 * configure.ac: Depend on Gio, we use it in gdump.c.
357 * girepository/gdump.c: Code to dump GType data to XML.
358 * girepository/girepository.c: Add option group for dumping.
359 * girepository/girepository.h: Define API for the above.
361 2008-11-13 Colin Walters <walters@verbum.org>
363 * common.mk: Add a file to include with Makefile fragments
364 useful for scanner invocation.
366 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
368 * tests/everything/gitesttypes.c (test_filename_return): Return
369 strings in filename encoding.
371 2008-11-13 Owen Taylor <otaylor@redhat.com>
373 Bug 560253 – Add structure and boxed types to Everything test module
375 * tests/everything/gitesttypes.[ch]: Add examples of:
377 Plain old data structs
378 Plain old data structs with nested fields
380 Plain old data boxed with nested fields
381 More complicated boxed types with internal state
383 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
385 * tests/everything/gitesttypes.c (test_gtype_in):
386 * tests/everything/gitesttypes.h:
387 Add a test of GType arrays, a la gtk_list_store_set_columns.
389 2008-11-12 Owen Taylor <otaylor@redhat.com>
391 Bug 560419 – Cache includes when parsing
393 Keep track of all modules parsed within a GIrParser, and when a
394 module is referenced a second time, use the existing parsed copy
395 instead of reparsing.
397 2008-11-12 Owen Taylor <otaylor@redhat.com>
399 Fix management of ParseContext.includes_modules (#560419)
401 * girepository/girparser.c: Fix some trivial bugs in managing the
402 list of include modules. (Add to module's list twice, not
403 initialized to NULL, not freed.)
405 2008-11-12 Owen Taylor <otaylor@redhat.com>
407 Keep aliases and disguised_structures local to each module (#560419)
409 * girepository/girmodule.[ch]: When parsing, keep keep a separate
410 hash tables of aliases and 'disguised' flags for each module, and
411 store that on the module.
413 After parsing an include merge the aliases/disguised flags to the
416 * girepository/girparser.c: Remove 'prefix_aliases' flag and
417 always prefix aliases/disguised structure types when parsing; this
418 simplifies the code considerably.
420 2008-11-12 Owen Taylor <otaylor@redhat.com>
422 Fix mismatches between .gir name and 'name' attribute (#560419)
424 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
425 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
426 where the 'name' element of <namespace/> didn't match the filename of the
427 gir, an assumption that the compiler has always expected and now enforces.
429 2008-11-12 Owen Taylor <otaylor@redhat.com>
431 Only allow one <namespace/> element per <repository/> (#560419)
433 * girepository/girparser.c: The logic in girparser.c didn't work
434 very well if there were multiple <namespace/> nodes within a
435 single <repository/> (context->namespace was always the overall
436 filename and not the the name specified in the <namespace/>
437 element for one thing; this would cause aliases to be mis-prefixed
438 in include modules.) Also check that the "name" in the
439 <namespace/> node matches the filename.
441 2008-11-12 Owen Taylor <otaylor@redhat.com>
443 Add a GirParser object to hold the state of a compilation
445 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
446 GirParser object to hold state that is global across a
447 compilation. Currently just holds the include path, but will
448 eventually also keep a cached list of parsed modules.
450 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
452 * girepository/girepository.c (find_namespace_latest): Fix
455 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
457 * configure.ac: use 'introspection' component for bugs
459 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
461 * tests/everything/gitesttypes.c (test_filename_return):
462 * tests/everything/gitesttypes.h:
463 Add a filename return test.
465 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
467 * tests/offsets/Makefile.am (gitestoffsets.c): fix
468 gen-gitestoffsets invocation with builddir != srcdir
470 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
472 * girepository/girepository.c:
473 Change the element type from utf8 to filename
474 * girepository/girnode.c (g_ir_node_build_typelib):
475 Special case filename equally to utf8 here.
477 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
480 Remove unused variables, add a dependency of girepository.ch, so when
481 they change we rebuild the gir automatically.
483 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
485 * girepository/girepository.c (g_irepository_get_search_path):
486 * girepository/girepository.h:
487 Add a g_irepository_get_search_path, so we can access the search
490 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
492 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
494 * girepository/girparser.c: avoid freeing an uninitialized pointer
496 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
499 * giscanner/glibtransformer.py:
500 * tools/g-ir-scanner:
501 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
502 so we can just pass in --library=foo/bar/baz.la and the scanner
503 does the right thing.
504 Don't warn for _get_type() functions if they don't take any
507 2008-11-11 Owen Taylor <otaylor@redhat.com>
509 Bug 560404 – Prefix types when resolving aliases in included modules
511 * girepository/girparser.c: When resolving aliases in an included
512 module, prefix types before looking them up.
514 2008-11-11 Owen Taylor <otaylor@redhat.com>
516 Compute field offsets and overall size for object structures
518 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
519 field of type object in structure"
521 Do basic computation of field offsets for objects and interfaces;
522 this doesn't attempt to address all of the "mess" for virtual
523 functions described in Bug 560281.
525 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
527 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
529 Based on patch by Johan Bilien.
531 * giscanner/transformer.py (_create_member, _create_parameter):
532 Resolve types here as well.
533 (_resolve_type_name_1): Try resolving using 'ctype' first since
534 it's least ambiguous. Fixes struct member type resolution with
535 similarly named types, e.g. Gdk.PangoRendererClass and
537 * tests/scanner/foo*: Add test.
539 2008-11-11 Owen Taylor <otaylor@redhat.com>
541 * girepository/girparser.c: Search provided include dirs before
542 the default directories.
544 2008-11-11 Owen Taylor <otaylor@redhat.com>
546 * girepository/giroffsets.c: Include fully-qualified names in
549 2008-11-11 Owen Taylor <otaylor@redhat.com>
551 * girepository/giroffsets.c: Fail gracefully with an informative
552 error message when recursion is encountered when computing a
555 2008-11-11 Owen Taylor <otaylor@redhat.com>
557 * girepository/girparser.c: Remove an unused variable.
559 2008-11-10 Owen Taylor <otaylor@redhat.com>
561 Add tests for field offset computations
563 * tests/offsets/offsets.h: Header file with structure definitions to test
565 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
566 field offsets for the structures in offsets.h two ways: using
567 the information from a generated typelib, and as computed by the
570 We diff these two versions to test that everything is OK.
572 2008-11-10 Owen Taylor <otaylor@redhat.com>
574 Remove field offsets from g-ir-generate output and test inputs
576 Field offsets are a) architecture dependent so they shouldn't be part
577 of the architecture-independent gir format which is installed in
578 datadir. b) Are architecture-dependent so they shouldn't be in test
581 * girepository/girparser.c: Don't parse offset for fields
582 * tools/generate.c: Don't parse offset for fields
583 * tests/*.gir test/scanner/*.tgir: Remove offsets
585 (Virtual function and discriminator offsets are not removed, as they
586 aren't fully hooked up to the field-offset computation machinery yet.)
588 2008-11-10 Owen Taylor <otaylor@redhat.com>
590 Bug 560252 - Compute field offsets before writing typelib
592 * girepository/girnode.h: Store the total size and alignment for
593 GIrNodeStruct/Boxed/Union.
595 * girepository/giroffset.c: New file implementing computation of
596 structure field offsets.
598 * girepository/girnode.c: Compute structure field offsets before
599 writing types into the typelib.
601 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
602 means "unknown". Also fix description of the discriminator_offset
605 2008-11-10 Owen Taylor <otaylor@redhat.com>
607 Bug 560250 - Fully parse included modules
609 For some things, like computing structure offsets to put into the typelib
610 we need more than just the aliases from included modules. Do a completel
611 parse of included modules and store in module->included_modules.
613 Also add g_ir_find_node() to find node information from within the
614 active set of modules and their includes.
616 2008-11-10 Owen Taylor <otaylor@redhat.com>
618 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
620 Extract a function to convert GITypeTag to ffi_type from the internals
621 of ginvoke.c. This will be useful in figure out structure alignment.
623 Also fix handling of gsize and time_t to be portable. (Add a check
624 to configure.ac to figure out the width of time_t.)
626 2008-11-10 Owen Taylor <otaylor@redhat.com>
628 Bug 560248 – "disguised structures"
630 Certain types like GIConv and GdkAtom are pointers internally but don't
631 look like pointers when referenced. They have the form.
633 typedef struct _X *X;
635 Parse these as structures/records but mark them in the gir with a 'disguised'
636 attribute so that we know that they need special handling.
638 In the typelib treat them like any other structure.
640 2008-11-09 Jürg Billeter <j@bitron.ch>
643 * giscanner/girwriter.py:
645 Write throws attribute for virtual functions, fixes bug 559703
647 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
649 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
650 up some confusion about the second argument to find_module, it's
651 actually the packages __path__ attribute which we can safely ignore
653 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
655 2008-11-07 Owen Taylor <otaylor@redhat.com>
657 Bug 559737 – Deal with continuations in macros
659 * giscanner/giscannerlexer.l: Treat continuation lines the same
660 as regular newlines. This makes the scanner not complain about
661 #define foo(x) \ <stuff> inside a C file. There's no attempt
662 however to handle parsing macro definitions split across lines.
664 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
666 * giscanner/cachestore.py:
667 Handle broken cache entries, write only filesystems and
668 running out of diskspace.
670 2008-11-07 Owen Taylor <otaylor@redhat.com>
672 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
673 Set current_filename before lexing the file so error messages
674 are reported in the right file.
676 2008-11-06 Colin Walters <walters@verbum.org>
678 * tests/everything/*: Add some tests for strv.
680 2008-11-05 Colin Walters <walters@verbum.org>
682 * girepository/ginvoke.c (g_function_info_invoke): Don't use
683 nested scope local variable for error which may go away after
684 conditional is complete.
686 2008-11-05 Colin Walters <walters@verbum.org>
688 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
689 manipulate hackily; just use GString. This avoids an
690 uninitialized memory read pointed out by Havoc.
692 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
694 * giscanner/__init__.py:
696 * giscanner/cachestore.py:
697 * giscanner/cgobject.py:
698 * giscanner/girparser.py:
699 * giscanner/girwriter.py:
700 * giscanner/giscannermodule.c:
701 * giscanner/glibast.py:
702 * giscanner/glibtransformer.py:
703 * giscanner/libtoolimporter.py:
704 * giscanner/minixpath.py:
705 * giscanner/odict.py:
706 * giscanner/sourcescanner.c:
707 * giscanner/sourcescanner.h:
708 * giscanner/sourcescanner.py:
709 * giscanner/transformer.py:
710 * giscanner/utils.py:
711 * giscanner/xmlwriter.py:
713 Relicense the giscanner library under LGPLv2+.
714 This has been approved by all contributors.
716 2008-11-01 Owen Taylor <otaylor@redhat.com>
718 Bug 558848 giparser.py: shared library should be optional
720 When parsing a .gir, allow the shared-library attribute
721 of <namespace/> to be missing: this corresponds to the handling
722 in libgirepository and elsewhere.
724 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
726 Bug 557898 – Fails to build on OSX 10.4
728 * configure.ac: Check for $shrext_cmds that should be implicitly
729 available if you're using libtool >= 2.0. If undefined, call
730 libtool --config explicitly to get its value.
731 * girepository/gtypelib.c: Remove special case for (non-)Darwin
734 2008-10-31 Colin Walters <walters@verbum.org>
736 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
738 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
740 * configure.ac: Post release version bump
743 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
747 * docs/release-checklist.txt:
750 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
752 * Makefile.am: add an upload-release target
753 * docs/release-checklist.txt:
754 Release process documentation
756 2008-10-31 Colin Walters <walters@verbum.org>
758 Bug 558109 – _g_typelib_init fails to find shared libraries
760 * transformer/glibtransformer.py: Use ctypes' find_library
761 on passed libraries and write that for the shared-library
762 entry. We want to avoid depending on -devel packages.
764 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
766 * docs/g-ir-scanner.1:
767 Document the renaming options.
769 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
771 * giscanner/Makefile.am:
772 * tests/invoke/Makefile.am:
773 * tests/repository/Makefile.am: List in-tree libraries first in
774 LDADD / LIBADD. If installed library is listed first, the
775 resulting binary will prefer installed version to one in .libs,
776 possibly making 'make check' behave strangely.
778 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
780 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
781 gir-repository from choking with gdk/quartz
783 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
785 * giscanner/giscannermodule.c (calc_attrs_length),
786 (pygi_collect_attributes):
787 * giscanner/xmlwriter.py:
788 Write a C version of the xml namespace formatter.
789 Saves 15% of the time it takes to create a gtk gir.
791 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
793 * giscanner/xmlwriter.py: Abstract attribute formatting
794 to a function external to the XMLWriter class.
796 * giscanner/scannerlexer.l:
797 Parse and discard __typeof and __attribute.
799 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
801 * giscanner/girparser.py:
802 Remove arguments from the constructor, move them to
803 separate accessors. Add a new parse_tree method
804 which takes an element tree instance.
805 * tools/g-ir-scanner:
806 Update callsite for this
808 * giscanner/Makefile.am:
809 * giscanner/cachestore.py:
810 * giscanner/transformer.py:
811 Cache the include parsing. Saves ~25% time when
812 creating vte (which includes everything up to gtk+).
814 2008-10-30 Colin Walters <walters@verbum.org>
816 * giscanner/transformer.py: Don't reparse includes
817 we've already processed.
819 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
821 * giscanner/girparser.py:
822 * giscanner/transformer.py:
823 Avoid parsing parameters, types etc when parsing
824 includes. Should speed up include parsing a bit.
826 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
828 * giscanner/girparser.py:
829 Avoid big if/else and use a dispatch table like
832 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
834 * giscanner/transformer.py:
835 Clean up include parsing and registration.
837 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
839 * giscanner/transformer.py:
842 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
844 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
847 construct PYTHONPATH just once
849 * tests/everything/Makefile.am:
850 * tests/scanner/Makefile.am:
851 add $(top_srcdir) to PYTHONPATH to
852 handle builddir != srcdir
854 * giscanner/libtoolimporter.py:
855 * giscanner/sourcescanner.py:
856 Make the libtoolimporter work when distchecking too.
858 Mostly based on patch by Tommi Komulainen
860 2008-10-29 Owen Taylor <otaylor@redhat.com>
862 * giscanner/glibtransformer.py: If a filename of an existing
863 file is passed to --library, hunt for it directly, rather than
864 searching for a corresponding library.
866 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
868 * giscanner/libtoolimporter.py:
869 * giscanner/sourcescanner.py:
870 Clean up the libtool importer a bit. Add a context so we
871 can use it through a with statement.
872 Don't just look in the current directory, look in the whole
875 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
877 Bug 558065 – gitesttypes should be installed
881 * tests/types/Makefile.am -> tests/everything/Makefile.am
882 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
883 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
884 move tests/types to tests/everything
886 * tests/everything/Makefile.am: build normal shared library
887 libgirepository-everything.so.1.0.0 and corresponding typelib
888 Everything-1.0.typelib
890 * tests/everything/Makefile.am: explicitly link libtool
891 versioning with typelib versioning with variables
893 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
895 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
897 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
899 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
902 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
904 Bug 558068 – when invoking a method, offset the in arguments by one,
907 * tests/invoke/invoke.c, tests/invoke/testfns.c,
908 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
909 * girepository/ginvoke.c: do not offset the index of given out
910 arguments by one for methods, "this" is provided as in argument only.
912 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
914 * gir/gio-2.0.c: add annotation for g_file_delete
916 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
918 Bug 558062 – provide and use paths in the .pc file
920 * gobject-introspection-1.0.pc.in: provide typelibdir variable
921 for where .typelibs should be installed (callers shouldn't need
922 to construct paths from bits and pieces)
924 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
926 Bug 557791 – g_irepository_require() could return a GTypelib *
928 * girepository/girepository.c: Return GTypelib; this is useful
929 for low level manipulation.
931 2008-10-25 Colin Walters <walters@verbum.org>
933 Bug 557788 – Return types for constructors in generated typelib bogus
935 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
936 rely on end pass resolution.
938 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
940 Bug 557786 - support fixed size arrays
942 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
943 * giscanner/scannerparser.y: Retain fixed array size.
944 * giscanner/ast.py: Add to note.
945 * giscanner/girwriter.py: Write to gir.
946 * girepository/girnode.c: Write it to typelib.
947 * tools/generate.c: Generate.
948 * tests/*: Add tests.
950 2008-10-25 Colin Walters <walters@verbum.org>
952 Bug 557076 - move typelibs to $libdir
954 * configure.ac: Steal some configury bits from dbus to expand
956 * gir/Makefile.am: Move to libdir.
957 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
958 instead just look at one hardcoded path in libdir.
959 * acinclude.m4: Bits from dbus.
961 2008-10-24 Johan Dahlin <johan@gnome.org>
963 * girepository/girnode.c (g_ir_node_check_unhandled_members):
964 Be quiet, do not warn about unhandled members.
966 2008-10-24 Johan Dahlin <johan@gnome.org>
968 * girepository/gtypelib.c:
969 Only use SHLIB_SUFFIX on darwin, otherwise use
970 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
972 2008-10-24 Lucas Rocha <lucasr@gnome.org>
974 Bug 557623 - Constructors shouldn't be flagged as methods.
976 * girepository/ginfo.c (g_function_info_get_flags): ditto.
978 2008-10-24 Johan Dahlin <johan@gnome.org>
980 * giscanner/scannerparser.y:
981 Check against division by zero for the modula operator.
982 This fixes header parsing of OSX system headers included
985 2008-10-24 Johan Dahlin <johan@gnome.org>
989 Add a CONTRIBUTORS file and dist it.
991 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
993 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
995 * girepository/girparser.c (parse_param_transfer):
996 * giscanner/transformer.py (_create_parameter, _create_return):
997 * giscanner/girwriter.py (_write_return, _write_parameter):
998 * tools/generate.c (write_callable_info): always write and
999 require "transfer-ownership" for return-values and parameters
1002 * tests/invoke/testfns-1.0.gir:
1004 * tests/scanner/DrawableAdditions.xml:
1005 * tests/scanner/GtkFrob-1.0-expected.tgir:
1006 * tests/scanner/annotation-1.0-expected.tgir:
1007 * tests/scanner/drawable-1.0-expected.tgir:
1008 * tests/scanner/drawable-injected-1.0-expected.gir:
1009 * tests/scanner/drawable-injected-1.0-expected.tgir:
1010 * tests/scanner/foo-1.0-expected.tgir: Updated
1012 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1014 * giscanner/cgobject.py: build fundamental types same way as glib
1016 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1017 when constructing the Type from it
1019 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1020 the parameter is a GObject from its GType, if available.
1022 * giscanner/glibtransformer.py (_adjust_transfer):
1023 * tests/scanner/foo-1.0-expected.gir:
1024 * tests/scanner/foo-1.0-expected.tgir: deduce
1025 transfer-ownership from GTypes
1027 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1029 * giscanner/transformer.py (_create_parameter):
1030 * tests/scanner/foo-1.0-expected.gir: make varargs
1031 transfer-ownership="none"
1033 2008-10-23 Colin Walters <walters@verbum.org>
1035 Bug 556739 - transfer ownership
1037 * giscanner/ast.py: Refactor Parameter/Return to share
1038 common attributes. Add transfer_inferred attribute
1039 which says whether or not we made a guess.
1040 * giscanner/transformer.py: Add much more extensive
1041 heuristics around parameter and return transfer.
1042 * giscanner/glibtransformer.py: Adjust to inspect
1046 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1048 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1050 * tests/scanner/Makefile.am:
1051 * tests/scanner/annotation-1.0-expected.tgir:
1052 * tests/scanner/drawable-1.0-expected.tgir:
1053 * tests/scanner/drawable-injected-1.0-expected.tgir:
1054 * tests/scanner/foo-1.0-expected.tgir:
1055 * tests/scanner/GtkFrob-1.0-expected.tgir:
1056 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1057 annotations survive the roundtrip via typelib
1059 The expectations are as currently produced by g-ir-generate,
1060 comparison with the .gir files shows there are differences.
1062 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1064 Bug 557468 – Support for GI_TYPELIB_PATH
1066 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1067 provided paths to the global search path.
1069 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1071 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1073 * tests/scanner/drawable-1.0-expected.tgir:
1074 * tests/scanner/drawable-injected-1.0-expected.tgir:
1075 * tests/scanner/foo-1.0-expected.tgir:
1076 * tools/generate.c (write_object_info): write 'abstract'
1077 attribute for classes
1079 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1081 * girepository/girmodule.c, girepository/gtypelib.c,
1082 girepository/girparser.[ch]: fix some build warnings.
1084 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1086 Bug 557405 – Use 'allow-none' consistently
1088 * docs/typelib-format.txt:
1089 * girepository/ginfo.c (g_arg_info_may_be_null):
1090 * girepository/girnode.c (g_ir_node_build_typelib):
1091 * girepository/girnode.h (struct _GIrNodeParam):
1092 * girepository/girparser.c (start_parameter):
1093 * girepository/girwriter.c (function_generate):
1094 * girepository/gtypelib.h (ArgBlob):
1096 * tests/function.gir:
1097 * tools/generate.c (write_callable_info): Use 'allow-none'
1098 consistently throughout
1100 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1102 Bug 557092 – Callback annotations not used
1104 * giscanner/transformer.py (_create_callback): use annotations
1106 * tests/scanner/annotation.h
1107 * tests/scanner/annotation-1.0-expected.gir: add tests
1109 2008-10-21 Colin Walters <walters@verbum.org>
1111 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1112 uncommented parameters.
1115 2008-10-21 Colin Walters <walters@verbum.org>
1117 * girepository/girepository.c: Ensure that when doing an unversioned
1118 require, we prefer items earlier in the search path to later ones.
1120 2008-10-21 Owen Taylor <otaylor@redhat.com>
1122 * giscanner/transformer.py: For string parameters allow transfer annotation
1123 to override the standard automatic guessing based on 'const'.
1125 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1127 Bug 557241 – "throws" flag for functions
1129 * tests/scanner/drawable-1.0-expected.gir,
1130 tests/scanner/drawable-injected-1.0-expected.gir,
1131 tests/scanner/drawable.[ch]: add simple test for throwing
1132 function (has GError ** as last argument)
1134 * giscanner/ast.py: add a 'throws' flag to Function
1135 * giscanner/glibtransformer.py: if a function's last paramerter is
1136 a GError, set the 'throws' flag and remove that parameter
1137 * giscanner/girwriter.py: write out the 'throws' attribute
1138 * giscanner/girparser.py: support parsing the 'throws' attribute
1140 * tests/repository/gitestthrows.c: add a simple test to check the
1141 throws flag in a typelib and invoke the function
1143 * girepository/ginfo.c, girepository/girnode.[ch],
1144 girepository/girnode.h, girepository/girparser.c,
1145 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1147 * girepository/ginvoke.c: if a function throws, add a GError as last
1148 arguments, and propagate the error to the invoker.
1150 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1152 * giscanner/transformer.py (_create_parameters): Warn if we see
1153 annotations for unknown parameters. If .h and .c files name
1154 parameters differently, the annotations may be lost.
1156 2008-10-21 Johan Dahlin <johan@gnome.org>
1158 Bug 556358 - don't use libtool internals
1160 * giscanner/Makefile.am:
1161 * giscanner/libtoolimporter.py:
1162 * giscanner/sourcescanner.py:
1163 * giscanner/utils.py:
1164 Add a python meta importer and remove a libtool symlink hack.
1166 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1168 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1169 and --add-include-path appropriately when invoking the scanner.
1170 * tests/types/Makefile.am (%typelib): Likewise.
1172 2008-10-20 Colin Walters <walters@verbum.org>
1174 Bug 556777 - validate properties
1176 * giscanner/transformer.py: Add option to throw on unknown types.
1177 * giscanner/glibtransformer.py: Use it on properties.
1178 * tests/*: Add a test.
1180 2008-10-20 Colin Walters <walters@verbum.org>
1182 * giscanner/glibast.py: Also register g variants of
1183 default_array_types. This is not beautiful, but
1184 good alternatives aren't easy to come by.
1185 This fixes gchar ** parsing.
1187 2008-10-20 Colin Walters <walters@verbum.org>
1189 * docs/typelib-format.txt, girepository/gtypelib.h:
1190 Take a bit from ObjectInfo to represent abstract flag.
1191 * giscanner/cgobject.py: Expose g_type_get_flags.
1192 * girepository/girepository.h: Add accessor.
1193 * girepository/ginfo.c: Implement it.
1194 * giscanner/ast.py: Add is_abstract flag to generic
1196 * giscanner/glibast.py: Use it.
1197 * giscanner/girwriter.py: Write it.
1198 * girepository/girparser.c: Parse it.
1201 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1203 * giscanner/girparser.py (_parse_function): don't lose
1204 'transfer-ownership' attributes when injecting, check for the
1207 2008-10-19 Johan Dahlin <johan@gnome.org>
1209 * giscanner/scannerlexer.l: Parse and ignore __asm.
1211 2008-10-19 Colin Walters <walters@verbum.org>
1213 * giscanner/girparser.py: Parse array length= to ensure
1214 it doesn't get lost from --inject.
1216 2008-10-17 Colin Walters <walters@verbum.org>
1218 Bug 556795 - char ** regression
1220 * giscanner/transformer.py: Fix parsing of ctypes, add some
1221 comments about what's going on.
1222 * tests/*: Add a test for char **.
1224 2008-10-17 Colin Walters <walters@verbum.org>
1226 Bug 556783 - change namespace handling to be more consistent
1228 * giscanner/transformer.py: Eliminate usage of
1229 strip_namespace_object. We now treat --namespace as the default
1230 --strip-prefix; however, if --strip-prefix is specified it
1231 overrides --namespace. This applies to everything except function
1232 names, where we do also strip the namespace.
1233 * giscanner/glibtransformer.py: Remove usage of
1234 strip_namespace_object.
1236 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1237 --namespace and --strip-prefix.
1239 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1241 Bug 556732 – generate gir files consistently
1243 * girepository/girparser.c (start_parameter):
1245 * tests/invoke/testfns-1.0.gir:
1246 * tools/generate.c (write_callable_info): write
1247 'transfer-ownership' attribute consistently with both
1248 return-value and parameter elements
1250 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1252 Bug 556732 – generate gir files consistently
1254 * tools/generate.c (write_callable_info): write 'direction'
1255 attribute only if other than 'in' to be consistent with
1258 * tests/object.gir: remove direction="in" which is the default
1260 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1262 Bug 556732 – generate gir files consistently
1264 * giscanner/ast.py (Field): add readable and writable properties
1265 * giscanner/girparser.py (_parse_field): copy 'readable' and
1266 'writable' attributes
1267 * giscanner/transformer.py (_create_member): create fields as
1269 * giscanner/glibtransformer.py (_introspect_object,
1270 _pair_class_struct): make object instance and class fields
1272 * giscanner/girwriter.py (_write_field):
1273 * tools/generate.c (write_field_info): write field 'readable'
1274 and 'writable' attributes only if non-default (read-only)
1275 * girepository/girparser.c (start_field): in the absence of
1276 attributes assume fields are read-only
1278 * tests/struct.gir: remove redundant readable="1" from fields
1279 * tests/scanner/foo-1.0-expected.gir:
1280 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1281 all record and union fields
1283 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1285 Bug 556732 – generate gir files consistently
1287 * giscanner/girwriter.py (_write_property): write properties
1288 'construct' attribute if set
1289 * tools/generate.c (write_property_info): write properties
1290 'readable' and 'writable' attributes only if non-default
1291 * tests/object.gir: add writable="0"
1292 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1294 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1296 * gir/glib-2.0.c: added annotations
1298 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1300 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1303 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1305 Bug 556610 – giscanner/girparser.py drops parameter options
1307 * tests/scanner/drawable-injected-1.0-expected.gir,
1308 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1309 * giscanner/ast.py: allow Parameter to take options in the constructor
1310 * giscanner/girparser.py: parse parameter options (transfer,
1311 direction, allow-none)
1313 2008-10-16 Colin Walters <walters@verbum.org>
1315 Bug 556185 - segfault on g_callable_info_get_return_type
1317 Initial patch from John Ehresman.
1319 * tests/repository/*: Add a test using
1320 g_callable_info_get_return_type. Instead of casting a
1321 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1322 to call g_type_info_get_interface.
1324 2008-10-16 Colin Walters <walters@verbum.org>
1326 Bug 556579 - union and struct name misresolved
1328 * giscanner/transformer.py: The calls to _resolve_type_name
1329 for struct/union names was a legacy holdover from when type
1330 resolution had multiple phases. Now it's actively harmful
1331 since we might pull in an identical name from another
1335 2008-10-16 Colin Walters <walters@verbum.org>
1337 Bug 556432 - transfer annotations and defaults
1339 * giscanner/transformer.py: Canonicalize type
1340 after removing *, not before. This ensures that
1341 guchar* is transformed to 'uint8'.
1342 Add some comments here.
1343 * giscanner/glibtransformer.py: Add _adjust_transfer
1344 phase for tweaking GObject transfers.
1347 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1349 * configure.ac: enable bunch of gcc warning CFLAGS
1351 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1353 Bug 556543 – reduce compiler warnings
1355 * girepository/ginfo.c:
1356 * girepository/girepository.c (register_internal,
1357 count_interfaces, find_interface, find_namespace_version,
1358 parse_version, g_irepository_require):
1359 * girepository/girmodule.c (g_ir_module_build_typelib):
1360 * girepository/girnode.c (init_stats, dump_stats,
1361 _g_irnode_init_stats, _g_irnode_dump_stats,
1362 g_ir_node_can_have_member):
1363 * girepository/girparser.c (firstpass_end_element_handler,
1364 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1365 start_alias, start_type, end_type_top, parse_include, cleanup,
1367 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1368 * giscanner/giscannermodule.c (directive_get_options,
1369 type_get_child_list):
1370 * giscanner/scannerlexer.l (parse_gtkdoc):
1371 * giscanner/scannerparser.y (ctype_free):
1372 * giscanner/sourcescanner.c:
1373 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1374 * tests/types/gitesttypes.c:
1375 * tools/compiler.c (main):
1376 * tools/generate.c (write_repository): Remove unused variables
1377 and code, add missing includes, declarations and case
1380 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1382 Bug 556541 – access union members through UnionBlob rather than
1385 * girepository/ginfo.c (g_union_info_find_method): access union
1386 members through UnionBlob rather than StructBlob
1388 2008-10-15 Colin Walters <walters@verbum.org>
1390 Bug 556331 - clean up includes handling
1392 * tools/g-ir-scanner: Rework command line arguments; now we take
1393 --add-include-path and --include separately.
1394 * giscanner/girwriter.py: Separate name= and version= in include
1396 * giscanner/ast.py: Add Include type.
1397 * giscanner/transformer.py: Cleanups to register_include now that
1398 we don't need to handle mixed filenames and relative arguments.
1399 * girepository/girparser.c: Parse name and version separately;
1400 this fixes a bug as a side effect where we weren't resolving
1401 through aliases for basic types.
1402 * girepository/girepository.c: Fix format string args.
1403 * gir/Makefile.am: Update.
1406 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1408 Bug 556434 – unhandled interface/object/... member types
1410 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1411 g_ir_node_build_typelib): Check all
1412 interface/object/boxed/struct/union members are processed and
1413 abort if they are not. (Mostly callbacks in structs, but also
1414 fields in interfaces.)
1416 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1418 * a/girepository/girnode.c (g_ir_node_build_members,
1419 g_ir_node_build_typelib): refactor common code for processing
1420 members to a function
1422 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1424 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1425 transformation is lossless (it's not)
1427 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1429 * tests/Makefile.am: fix tests to compare xml to xml instead of
1430 typelib to xml, and stop on error
1432 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1434 * tools/generate.c (write_type_name, write_type_info,
1435 write_type_info, write_object_info, write_object_info,
1436 write_interface_info, write_error_domain_info): reduce code
1439 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1441 Bug 556174 – parse types for lists etc.
1443 * girepository/girparser.c (end_type_recurse):
1445 * tools/generate.c (write_type_info, write_field_info,
1446 write_callable_info, write_callable_info, write_constant_info,
1447 write_property_info): use nested <type>s for lists and hashes
1449 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1452 * tests/object.gir: remove trailing whitespace from inside
1453 elements to match g-ir-generate output
1455 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1457 * tools/generate.c (xml_printf): quote printf arguments so that
1458 we don't generate invalid XML by writing unescaped double quotes
1459 and such in attributes
1461 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1463 * tools/generate.c (write_field_info, write_callable_info,
1464 write_function_info, write_callback_info, write_struct_info,
1465 write_constant_value, write_signal_info, write_vfunc_info,
1466 write_object_info, write_interface_info, write_union_info,
1467 write_repository): remove unused indent parameters, xmlwriter
1468 keeps track of necessary indentation
1470 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1472 * tools/generate.c (xml_element_new, xml_element_free,
1473 xml_start_element, xml_end_element, xml_end_element_unchecked,
1474 xml_open, xml_close): Keep track of generated XML tree and
1475 handle indentation and closing tags properly.
1476 (write_field_info, write_callable_info, write_function_info,
1477 write_callback_info, write_struct_info, write_value_info,
1478 write_constant_info, write_enum_info, write_signal_info,
1479 write_vfunc_info, write_property_info, write_object_info,
1480 write_interface_info, write_error_domain_info, write_union_info,
1481 write_repository): Use xml_start_element and xml_end_element to
1484 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1486 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1487 (write_type_name, write_type_info, write_field_info,
1488 write_callable_info, write_function_info, write_callback_info,
1489 write_struct_info, write_value_info, write_constant_value,
1490 write_constant_info, write_enum_info, write_signal_info,
1491 write_vfunc_info, write_property_info, write_object_info,
1492 write_interface_info, write_error_domain_info, write_union_info,
1493 write_repository): wrap all FILE access to go through simple xmlwriter
1495 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1497 Bug 556400 – Fails to build on OS X 10.4
1499 * configure.ac: check for functions backtrace and backtrace_symbols
1500 * girepository/girparser.c (backtrace_stderr): Comment out
1501 implementation if the functions are not available.
1502 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1503 directory for better portability
1505 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1507 Bug 556433 – assume direction = out for int * parameters
1509 * giscanner/ast.py: define a list of types for which, if passed as
1510 reference, we assume a default direction of 'out'
1511 * giscanner/transformer.py: if a type has type pointer to one of the
1512 previously defined types, and no direction is set, assume out.
1513 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1515 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1517 * tests/scanner/annotation.c: fixed a few copy-paste errors
1519 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1521 Bug 556323 – transfer-ownership is wrong for functions returning const
1524 * giscanner/transformer.py: check for a const string as return value,
1525 not just const char*. Suggested by Colin Walters
1526 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1528 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1530 * girepository/ginfo.c, girepository/girepository.h: add
1531 g_union_info_find_method
1533 2008-10-14 Colin Walters <walters@verbum.org>
1535 * tests/repository/Makefile.am: Reenable repo test.
1536 * tests/repository/gitestrepo.c: Prepend search
1537 path for $(top_builddir)/gir dir so that we don't
1538 require installation for "make check" to pass.
1540 2008-10-13 Jürg Billeter <j@bitron.ch>
1542 * giscanner/glibtransformer.py:
1543 * tests/scanner/annotation-1.0-expected.gir:
1544 * tests/scanner/drawable-1.0-expected.gir:
1545 * tests/scanner/foo-1.0-expected.gir:
1546 * tests/scanner/utility-1.0-expected.gir:
1548 Support fields in GObject structs
1550 2008-10-13 Jürg Billeter <j@bitron.ch>
1552 * giscanner/ast.py: add signed integer and off_t to type_names
1554 2008-10-12 Jürg Billeter <j@bitron.ch>
1556 * giscanner/girparser.py: Parse bits attribute of fields
1558 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1560 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1561 * tests/repository/gitestrepo.c (main): instantiate
1562 'GCancellable' to ensure the GType is registered before using
1565 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1567 * giscanner/girparser.py: actually add the parsed constant nodes
1569 2008-10-12 Colin Walters <walters@verbum.org>
1571 * girepository/girepository.c: Don't cast DirEntry to Blob,
1572 actually look it up by offset.
1574 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1576 * giscanner/girparser.py: parse constant nodes in gir files
1578 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1580 * giscanner/transformer.py: prefix for constants have an underscore,
1581 so remove them as if they were functions, not objects.
1583 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1585 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1588 2008-10-12 Colin Walters <walters@verbum.org>
1590 Initial patch from Jani Monoses.
1592 * girepository/gtypelib.c: Fix inverted test for success
1595 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1597 * tools/generate.c (write_callable_info): use "transfer-ownership"
1598 attribute for return values
1600 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1602 * tools/generate.c (write_callable_info): move "transfer" and
1603 "null-ok" attributes from <function> to <return-value> element
1605 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1607 * girepository/girparser.c (start_return_value): handle
1608 "transfer-ownership" attribute
1610 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1612 * girepository/girparser.c (parse_param_transfer):
1613 * tools/generate.c (write_callable_info): use "container" for
1614 container/shallow ownership transfer (not "shallow")
1616 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1618 * girepository/girparser.c (parse_param_transfer,
1619 start_parameter): Refactor handling of transfer=none/shallow/full
1620 to separate function
1622 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1624 Bug 556048 – Crash in g_irepository_find_by_gtype
1626 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1627 * girepository/girepository.c (find_interface): Fix
1628 find_by_gtype case to get the type name from right offset
1630 2008-10-12 Jürg Billeter <j@bitron.ch>
1632 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1635 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1637 * girepository/gtypelib.h (RegisteredTypeBlob): make
1638 'unregistered' one bit wide as everywhere else
1640 2008-10-12 Jürg Billeter <j@bitron.ch>
1642 * giscanner/glibtransformer.py:
1643 * tests/scanner/annotation-1.0-expected.gir:
1644 * tests/scanner/drawable-1.0-expected.gir:
1645 * tests/scanner/drawable.h:
1646 * tests/scanner/foo-1.0-expected.gir:
1647 * tests/scanner/utility-1.0-expected.gir:
1649 Readd class records as workaround to not break Gtk typelib
1651 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1653 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1655 2008-10-12 Jürg Billeter <j@bitron.ch>
1657 * giscanner/glibtransformer.py: Don't generate <record> elements
1659 * tests/scanner/*: Update test cases
1661 2008-10-11 Colin Walters <walters@verbum.org>
1663 Bug 552858: versioning
1665 This is a big patch. You should probably remove your installation
1668 * docs/typelib-format.txt: Add nsversion entry which holds
1669 version of namespace.
1670 * girepository/girepository.h: Add 'version' parameter to
1671 g_irepository_require. This may be NULL. Normally
1672 bindings should pass an explicit version though.
1673 * girepository/girepository.c: Lots of infrastructure to
1674 support versioning. Add some more documentation. Disallow
1675 some usage of NULL namespaces.
1676 * girepository/girmodule.c: Add version parameter.
1677 * girepository/gtypelib.c: Update header size.
1678 * giscanner/ast.py: Add version to Namespace.
1679 * giscanner/girparser.py: Parse version attribute from
1680 XML, pass to Namespace.
1681 * giscanner/girwriter.py: Write out version parameter.
1682 * giscanner/transformer.py: Clean up include registration.
1683 * tests/*: Add version attribute.
1684 * tests/invoke/invoke.c: Don't try looking up test before
1685 it's loaded in repository.
1686 * tools/generate.c: Output version parameter.
1687 * gir/Makefile.am: Add 2.0 version to .gir files.
1689 2008-10-11 Colin Walters <walters@verbum.org>
1691 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1692 if we have mismatched parens.
1694 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1696 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1697 on 'members' variable.
1699 2008-10-11 Colin Walters <walters@verbum.org>
1701 Bug 555947 - update annotations syntax
1703 * giscanner/ast.py: Default to None for transfer. Remove
1704 default transfers for container types; we require this to
1706 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1707 'full' to match repository.
1708 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1709 * giscanner/transformer.py: Update for new annotations syntax.
1712 2008-10-11 Johan Bilien <jobi@litl.com>
1714 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1716 2008-10-11 Johan Bilien <jobi@litl.com>
1718 Bug 552347: Parse #defines constants
1720 * girepository/gtypelib.c: update the list of value_size
1721 with recently defined type tags
1722 * giscanner/scannerparser.y: brought back parsing of #defined, as
1723 present in older version
1724 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1725 * giscanner/girwriter.py: write out constant tags in the gir
1726 * giscanner/sourcescanner.py: add accessor for const_string
1727 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1730 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1732 Bug 555946: Install a test module exercising all types, transfer
1737 * tests/types/*: Add and install a test module that has functions
1738 accepting and returning most of the basic types to enable bindings
1739 implementors to more easily test their type conversion routines.
1741 2008-10-11 Jürg Billeter <j@bitron.ch>
1743 Bug 552374: Const strings should be identified in the gir.
1745 * giscanner/transformer.py: support string memory management
1746 * tests/scanner/foo.h: use char * and const char *
1747 * tests/scanner/foo-expected.gir: test that
1749 2008-10-11 Johan Dahlin <johan@gnome.org>
1751 * giscanner/girparser.py:
1752 Also parse enums which are not glib types.
1754 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1756 Bug 552370: add one more test for unsigned as a type, not as
1759 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1760 * test/scanner/foo.h: add function which uses unsigned as a type.
1761 * test/scanner/foo-expected.gir: test that.
1763 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1765 Bug 555712: Struct and union issues
1767 * giscanner/scannerparser.y (struct_declarator): Use information
1768 provided about the bit width of a field.
1769 * giscanner/transformer.py (Transformer._create_member): Pass the
1770 symbol's const_int member to the created field (it represents the
1772 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1773 field attribute, if present.
1774 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1775 width in bits of the field (only relevant for bitfields).
1778 * giscanner/transformer.py (Transformer._create_typedef_struct)
1779 (Transformer._create_typedef_union): Add calls to _create_struct()
1780 and _create_union(), respectively. This causes the scanner to
1781 generate output for fields of struct and union typedefs.
1784 2008-10-11 Jürg Billeter <j@bitron.ch>
1786 Bug 552370: unsigned not scanned properly
1788 * giscanner/scannerparser.y: combine basic types such as unsigned
1789 int and long long when scanning
1790 * tests/scanner/foo-expected.gir:
1791 * tests/scanner/foo.c: (foo_test_unsigned):
1792 * tests/scanner/foo.h: test that
1794 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1796 Bug 554854: The --typelib-xml and --inject options should reuse
1797 giscanner parser/writer.
1799 * giscanner/ast.py: add constructor list to Struct and Union.
1800 Add new param in Return's contructor to define transfer.
1801 * giscanner/girparser.py: several additions to the parser in order
1802 to have parsing all nodes of the gir xml files.
1803 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1804 and writer in --inject and --typelib-xml options.
1805 * giscanner/xmlwriter.py: ignore empty attributes instead of
1806 raising an error as this basically exposes a bug in GIRParser.
1807 This should be reverted as soon as the parser is fixed.
1809 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1811 Bug 552376: scanner generates wrong names for enum members when
1812 there's no defined gtype.
1814 * giscanner/utils.py (strip_common_prefix): Always strip common
1815 prefix exactly up to the last "_", and not beyond.
1816 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1817 here is that the first character after the last '_' should should be
1818 the same as the character in the same position on the type name.
1819 * tests/scanner/foo-expected.gir: test that
1821 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1823 Bug 555293: append library_paths to LPATH env variable to work
1824 around a bug in find_library when using ldconfig.
1826 * tools/g-ir-scanner (main): ditto.
1828 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1830 * girepository/girepository.c (register_internal): fix regression on
1831 invoke test case by making sure we load the global module in the
1832 typelib when dealing with inline typelibs.
1833 * girepository/gtypelib.c: a couple of coding style fixes.
1835 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1837 Bug 555294: Add support for multiple shared libraries per typelib.
1839 * girepository/ginvoke.c (g_function_info_invoke),
1840 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1841 g_typelib_symbol instead of g_module_symbol.
1842 * girepository/girepository.h: remove g_typelib_set_module and add
1844 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1845 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1846 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1847 modules instead of just one. The symbol lookup is now abstracted
1848 behind g_typelib_symbol which tries to find the passed symbol name in
1850 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1851 and write shared_library attribute as a comma-separated list of libs.
1853 2008-10-06 Colin Walters <walters@verbum.org>
1855 * giscanner/transformer.py: Parse length= annotation as
1856 a parameter name, not a raw int.
1859 2008-10-03 Colin Walters <walters@verbum.org>
1861 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1863 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1865 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1869 2008-10-03 Colin Walters <walters@verbum.org>
1871 Bug 554576: scan problem with ev_selection_render_selection()
1873 * giscanner/transformer.py: Only do type resolution once we've
1874 scanned all types. What could happen before is that we'd strip
1875 the namespace from local type "EvSelection" => Selection, and
1876 then later pull a "Selection" from some other namespace because
1877 we hadn't yet seen the local EvSelection. This could come
1878 down to hash table ordering and other things so not easy
1879 to write a test for.
1881 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1883 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1884 GLibEnumMember constructor as it should be the enum member nick.
1886 2008-10-02 Colin Walters <walters@verbum.org>
1888 Bug 552961: remove this parameter for methods
1890 * giscanner/glibtransformer.py: Delete this parameter; it is
1892 * girepository/ginvoke.c: Insert this parameter for methods.
1893 * girepository/gtypelib.c: Remove no longer needed verification of
1894 method this parameter.
1897 2008-09-30 Dan Winship <danw@gnome.org>
1899 Bug 554490: g-ir-scanner gets confused by '\\'
1901 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1902 backslashes so it will correctly parse '\\' and "\\"
1904 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1907 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1909 2008-10-02 Colin Walters <walters@verbum.org>
1911 bug 552393: Note variadic functions
1913 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1914 to use parameter_list directly.
1915 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1916 * giscanner/ast.py: Add Varargs type.
1917 * giscanner/transformer.py: Check for ellipsis symbol, transform
1919 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1920 Parse varargs functions, but filter them out before we start
1921 compiling the typelib.
1923 2008-10-02 Colin Walters <walters@verbum.org>
1925 Bug 554632: type tag for GType
1927 * girepository/girepository.h, girepository/girepository.c:
1928 Add type tag for GType - it's a special type we don't want
1929 to resolve to just "long".
1930 * docs/typelib-format.txt: Update.
1931 * girepository/girparser.c: Parse it.
1932 * giscanner/glibtransformer.py: Ensure we don't put GType in
1934 * tools/generate.c: Remove hardcoded type list.
1937 2008-09-30 Dan Winship <danw@gnome.org>
1939 Bug 554521: scanner generates wrong names for enum members with
1940 full type name prefix
1942 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1943 right amount when the entire "first" string is a prefix of
1946 * tests/scanner/foo.h (FooEnumFullname):
1947 * tests/scanner/foo-expected.gir: test that
1949 2008-09-29 Colin Walters <walters@verbum.org>
1951 Bug 552380: Array parameters should be marked in the gir
1953 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1954 uint8[]. Add Array, List, and Map subclasses of Type;
1955 these types can be generic. Return transfer defaults
1956 to true if return value is string or container type.
1957 Delete Sequence type.
1958 * giscanner/scannerlexer.l: Syntax change for annotations;
1959 use <> since it's more readable.
1960 * giscanner/girwriter.py: Write out these changes.
1961 * giscanner/girparser.py: Parse them.
1962 * giscanner/transformer.py: Have a defined set of
1963 both list and map types. When creating a type,
1964 check if the ctype we've parsed is one of them,
1965 if so create a container type subclass as appropriate.
1966 * girepository/girparser.c: Parse in generic types.
1969 2008-09-27 Colin Walters <walters@verbum.org>
1971 * tools/g-ir-scanner: Add --inject option.
1973 2008-09-25 Colin Walters <walters@verbum.org>
1975 Remove non-repository types from GIR
1977 * giscanner/ast.py: The canonical name is 'utf8', not
1979 * giscanner/glibast.py: A few more glib type mappings.
1980 * girepository/girparser.c: We only parse repository types.
1981 * tests/*.gir: Update.
1983 2008-09-23 Colin Walters <walters@verbum.org>
1985 Bug 552566: Add time_t type
1987 We need a type for time_t since it's special in C, and just
1988 mapping it to long precluded bindings from handling it
1991 2008-09-19 Colin Walters <walters@verbum.org>
1993 Bug 552390: Handle capitialization like "DBus" more robustly
1995 The to_underscores function was designed for use against prefixed
1996 names; we need a separate function which will convert names like
1997 DBusFoo into dbus_foo, not d_bus_foo.
1999 2008-09-19 Colin Walters <walters@verbum.org>
2001 Add check to make sure we're not hitting out unresolved types
2003 Validate the "this" argument for methods
2005 Remove heuristic matching of methods to classes based on prefix
2007 It was a broken hack that dated from when we handled underscoring
2008 and capitalization conventions less well.
2010 2008-09-18 Colin Walters <walters@verbum.org>
2012 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2014 On Darwin, the suffix for installed shared libraries (.dylib) is
2015 different from loadable modules (.so). We use a bit of magic shell
2016 script from Behdad Esfahbod to figure out the right suffix.
2018 2008-09-15 Johan Dahlin <johan@gnome.org>
2020 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2021 a wrapper for type_qualifier as well.
2023 2008-09-15 Colin Walters <walters@verbum.org>
2025 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2027 * giscanner/ast.py: Add deprecation attributes.
2028 * giscanner/girwriter.py: Write out deprecation data.
2029 * girepository/girparser.c: Relax parsing; deprecated
2030 attribute now includes freeform string.
2031 * giscanner/scannerlexer.l: Parse Deprecated.
2032 * giscanner/transformer.py: Look for deprecated attribute
2034 * tests/scanner/*: Add a Deprecated test.
2036 2008-09-14 Tor Lillqvist <tml@novell.com>
2038 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2040 2008-09-14 Colin Walters <walters@verbum.org>
2042 * giscanner/glibtransformer.py: Ignore functions with
2045 2008-09-12 Colin Walters <walters@verbum.org>
2047 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2049 2008-09-12 Colin Walters <walters@verbum.org>
2051 * giscanner/ast.py: Bind pid_t to INT for vte.
2053 2008-09-12 Colin Walters <walters@verbum.org>
2055 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2056 * giscanner/glibast.py: Avoid overwriting ctype.
2057 * giscsanner/transformer.py: Try resolving types using the GType names.
2059 2008-09-12 Colin Walters <walters@verbum.org>
2061 * giscanner/minixpath.py: Code to run an "XPath"
2062 assertion against an XML tree, taken from
2063 gir-repository/gir/tests.py.
2064 * giscanner/Makefile.am: Ship it.
2065 * tools/g-ir-scanner: Add --xpath-assertions option.
2066 * gir/GLib-assertions.txt: Add a few assertions.
2067 * gir/Makefile.am: Run them.
2069 2008-09-11 Colin Walters <walters@verbum.org>
2071 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2073 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2074 prefix if it ends with _. Tweak callback stripping to determine
2075 based on presence of _ whether we need to use strip_namespace_func
2076 or strip_namespace_object.
2078 2008-09-09 Owen Taylor <otaylor@redhat.com>
2080 * docs/typelib-format.txt: Wether => Whether
2082 2008-09-08 Colin Walters <walters@verbum.org>
2084 * girepository/girparser.c: Default to "readable" for properties.
2085 * giscanner/ast.py: Add readable, writable etc.
2086 * giscanner/girwriter.py: Writ them.
2087 * giscanner/glibtransformer.py: Inspect them.
2090 2008-09-07 Colin Walters <walters@verbum.org>
2092 * giscanner/cgobject.py: Add comment.
2094 2008-09-07 Colin Walters <walters@verbum.org>
2096 * giscanner/cgobject.py: Also call g_thread_init.
2098 2008-09-07 Colin Walters <walters@verbum.org>
2100 * giscanner/transformer.py: Fix regression by not
2101 stripping prefix before stripping namespace for unions
2104 2008-09-06 Colin Walters <walters@verbum.org>
2106 * giscanner/transformer.py: If a namespace contains
2107 multiple caps, try stripping both gnomekeyring_ and
2110 2008-09-07 Johan Dahlin <johan@gnome.org>
2112 Bug 551162 – giscanner does not recognize asm and __asm__
2113 * giscanner/scannerlexer.l:
2114 Patch by Jani Monoses.
2116 2008-09-06 Colin Walters <walters@verbum.org>
2118 * girepository/girnode.c: Allow gtype_name
2119 and gtype_init in struct and union.
2120 * girepository/girparser.c: Parse glib:
2121 boxed bits for both structure and union.
2122 * girepository/gtypelib.c: Don't barf
2123 if structure is boxed.
2124 * giscanner/girparser.py: Parse new XML
2126 * giscanner/girwriter.py: Write out new
2128 * giscanner/glibast.py: Define new classes
2129 which are both Boxed and Struct/Union, as
2130 well as an "Other" for everything else.
2131 * giscanner/glibtransformer.py: Handle
2132 boxed types specially; we try to merge
2133 them with a struct/union if one exists,
2134 otherwise fall back to generic boxed.
2136 * tools/generate.c: Write out new format.
2138 2008-09-06 Johan Dahlin <johan@gnome.org>
2140 * giscanner/grealpath.h: Include stdlib.h
2142 * docs/g-ir-generate.1: Remove leading %
2144 2008-09-01 Colin Walters <walters@verbum.org>
2146 * girepository/girparser.c: Look at c:type to determine
2147 whether or not an item is a pointer.
2149 2008-09-01 Johan Dahlin <johan@gnome.org>
2151 * tests/scanner/Makefile.am:
2152 Set PYTHONPATH so the scanner can run
2153 even if you didn't install anything.
2155 2008-09-01 Johan Dahlin <johan@gnome.org>
2158 Post-release version bump
2161 2008-09-01 Johan Dahlin <johan@gnome.org>
2165 2008-08-31 Colin Walters <walters@verbum.org>
2167 * giscanner/glibtransformer.py: Quiet info
2170 2008-08-31 Johan Dahlin <johan@gnome.org>
2173 Bump version to 0.5.0
2175 2008-08-31 Colin Walters <walters@verbum.org>
2177 * giscanner/glibtransformer.py: Follow aliases to ensure
2178 we don't get a constructor returning a basic type.
2179 * giscanner/transformer.py: Add function to follow aliases.
2182 2008-08-31 Johan Dahlin <johan@gnome.org>
2184 * giscanner/scannerlexer.l:
2185 * giscanner/scannerparser.y:
2186 * giscanner/sourcescanner.h:
2187 * giscanner/sourcescanner.py:
2188 Parse GCC extensions in the parser instead of just undeffing them
2189 in the pre-processor.
2191 2008-08-31 Johan Dahlin <johan@gnome.org>
2193 * giscanner/glibtransformer.py:
2194 Clean up a huge if. Do not add methods or constructors
2196 * giscanner/utils.py:
2197 second might be longer than first, check that.
2199 2008-08-31 Johan Dahlin <johan@gnome.org>
2204 2008-08-31 Colin Walters <walters@verbum.org>
2206 * girepository/girparser.c: Don't lose if we
2209 2008-08-31 Colin Walters <walters@verbum.org>
2211 * giscanner/glibtransformer.py: Look for libtool
2212 library in current directory
2213 * tests/scanner - Update.
2215 2008-08-30 Colin Walters <walters@verbum.org>
2217 * docs/typelib-format.txt: Add a guint32
2219 * gir/Makefile.am: Dep on Makefile
2220 * girepository/ginfo.c:
2221 * girepository/girepository.c: Clean up
2222 default typelib handling; remove global
2223 default_typelib variable. Ensure we handle
2224 NULL repository in more places.
2225 Support dependency resolution.
2226 Support lazy loading.
2227 * girepository/girepository.h: Remove
2228 g_irepository_unregister; we don't support
2229 unloading typelibs since really they're
2230 process-global. Update for lazy loading
2232 * girepository/girmodule.c: Use g_new0.
2233 Add dependencies to GirModule.
2234 * girepository/girparser.c: Parse dependencies.
2235 * girepository/gtypelib.c: Add 4 bytes for
2237 * tests/Makefile.am: Kill off gobject.gir,
2238 it conflicts with the real one.
2239 * tests/object.gir: Dep on GObject.
2240 * tools/generate.c: Take --includedir
2241 argument to say which directories to search
2242 for typelibs. Print out dependencies.
2244 2008-08-30 Colin Walters <walters@verbum.org>
2246 * giscanner/glibtransformer.py: Reduce warning noise.
2248 2008-08-29 Colin Walters <walters@verbum.org>
2250 * girepository/ginfo.c: Add some assertions regarding
2251 refcounts, just to be sure.
2252 * giscanner/glibtransformer.py: Blacklist a few more
2255 2008-08-29 Colin Walters <walters@verbum.org>
2257 * giscanner/glibtransformer.py: Blacklist a few
2258 functions that use GError oddly
2260 2008-08-29 Colin Walters <walters@verbum.org>
2262 * girepository/gtypelib.c: Don't crash if no
2265 2008-08-29 Colin Walters <walters@verbum.org>
2267 * girepository/girparser.c: Handle chains of aliases
2268 across modules by ensuring we fully qualify aliases
2271 2008-08-29 Colin Walters <walters@verbum.org>
2273 * girepository/girparser.c: Don't search aliases
2276 2008-08-29 Colin Walters <walters@verbum.org>
2278 * girepository/girparser.c: Rewrite type parsing
2279 to handle both GLib parsing case as well as correctly
2280 handling GLib.List and friends. Don't try to treat
2281 e.g. ListStore as a List.
2283 2008-08-29 Colin Walters <walters@verbum.org>
2285 * girepository/gtypelib.c: Add more context
2288 2008-08-29 Colin Walters <walters@verbum.org>
2290 * giscanner/glibtransformer.py: Add some informative
2291 logging messages in corner cases. Be sure we use
2292 the most recent node set instead of a cache
2293 when generating result set.
2294 * tests/: Remove duplicated bits in expected girs
2295 * girepository/girparser.c: Accept both List (for
2296 compiling GLib) and GLib.List (what the scanner
2299 * tools/generate.c: Generate canonical form.
2301 2008-08-29 Johan Dahlin <johan@gnome.org>
2303 * giscanner/config.py.in:
2304 Use datarootdir instead of datadir to avoid
2305 an autoconf warning.
2307 2008-08-29 Johan Dahlin <johan@gnome.org>
2311 * examples/gdk-pixbuf.gidl:
2313 Update and remove old cruft.
2315 2008-08-29 Johan Dahlin <johan@gnome.org>
2318 * docs/g-ir-compiler.1:
2319 * docs/g-ir-generate.1:
2320 * docs/g-ir-scanner.1:
2321 Add man pages for the generator and compiler.
2323 2008-08-29 Johan Dahlin <johan@gnome.org>
2325 * docs/g-ir-scanner.1: Document
2327 * giscanner/Makefile.am:
2328 * giscanner/gidlparser.py:
2329 * giscanner/gidlwriter.py:
2330 * tools/g-ir-scanner:
2331 Remove gidl support.
2333 2008-08-28 Colin Walters <walters@verbum.org>
2335 * tests/scanner/Makefile.am: Pass the right
2336 --includedir args. Add a Makefile dep.
2337 * tools/compiler.c: Pass includedirs down.
2338 * girepository/girparser.c: Actually put
2339 includedirs in context, pass down. Fix
2342 2008-08-28 Colin Walters <walters@verbum.org>
2344 * gir/Makefile.am: Use --includedir
2345 * girepository/girparser.c: Recursively parse
2346 includes to pull in aliases and expand them.
2347 We need this to avoid putting unknown names in
2349 * tools/compiler.c: Add --includedir option.
2350 * giscanner/ast.py: Map size/ssize to types
2353 2008-08-28 Tor Lillqvist <tml@novell.com>
2355 Make check now runs successfully on Windows.
2357 * tools/compiler.c (write_out_typelib): Use binary mode for output
2360 * girepository/girnode.c: Don't print NULL strings.
2362 * tests/invoke/Makefile.am
2363 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2364 convince libtool to build shared libraries.
2366 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2367 g_assert() instead of printing out expected errors.
2369 2008-08-28 Tor Lillqvist <tml@novell.com>
2371 * girepository/gtypelib.h: Change type of bitfield fields from
2372 guint to the most suitable smaller type. This makes the struct
2373 sizes match the ones on Linux that the sanity check expects when
2374 using gcc -mms-bitfields on Windows.
2376 2008-08-28 Johan Dahlin <johan@gnome.org>
2381 * giscanner/Makefile.am:
2382 * tests/Makefile.am:
2383 * tests/scanner/Makefile.am:
2384 Make distcheck pass.
2386 2008-08-27 Johan Dahlin <johan@gnome.org>
2388 * giscanner/Makefile.am:
2389 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2391 2008-08-27 Tor Lillqvist <tml@novell.com>
2393 Make g-ir-scanner work on Windows. Still problems with the typelib
2394 code. Changes okayed by jdahlin.
2396 * configure.ac: Check for Windows, set Automake conditional
2397 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2398 avoid shell quoting issues
2400 * girepository/Makefile.am: Use -no-undefined so that libtool
2401 agrees to build a shared library on Windows.
2403 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2404 Windows. Empty implementation on Windows so far.
2406 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2407 informative error message for the assertion failures. Tell also
2408 what the expected size of the struct is. Check all sizes first and
2409 fail afterwards if at least one size was different from expected.
2411 * tools/Makefile.am: Reorder libraries into proper logical
2414 * tools/generate.c: Don't include <dlfcn.h>, not used.
2416 * giscanner/Makefile.am: On Windows, link with the Python library,
2417 and install the module DLL as _giscanner.pyd. Remove the
2418 unnecessary import library and libtool library that libtool has
2421 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2422 and just skip it. Recognize also two "l" suffixes for long long
2423 constants. Recognize also __inline__.
2425 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2426 GetFullPathName(). As such, GetFullPathName() does more than the
2427 UNIX realpath(). It also changes relative paths into absolute
2428 paths. But for our purposes that shouldn't matter.
2430 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2431 Windows the file descriptor passed to us is from Python. Python
2432 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2433 uses msvcrt.dll. On Windows, file descriptors are specific to
2434 which C library is used. So we must find out what underlying OS
2435 handle corresponds to the file descriptor Python passes us, and
2436 then make that into a file descriptor valid for the C library this
2439 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2440 __attribute__ as the lexer now handles it. The definition as empty
2441 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2442 __attribute__. Close the temp file before unlinking it.
2444 * giscanner/cgobject.py: Use correct library name for the gobject
2447 * gir/Makefile.am: Must pass the full basename of the DLLs on
2448 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2449 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2450 reality they won't change, until there is a GLib 3, and then also
2451 the Unix code here needs changing.
2453 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2456 2008-08-26 Colin Walters <walters@verbum.org>
2458 * girepository/girepository.c: Search
2459 $DATADIR/girepository instead of
2460 $DATADIR/gitypelibs; this naming makes
2461 it clearer that e.g. jgir can install
2463 * gir/Makefile.am: Install there.
2465 2008-08-26 Colin Walters <walters@verbum.org>
2467 * girepository/gtypelib.c (_g_typelib_init): Also
2468 use G_MODULE_SUFFIX instead of hardcoding .so.
2470 2008-08-26 Colin Walters <walters@verbum.org>
2472 * girepository/gtypelib.c (_g_typelib_init): Free
2473 string in the right place.
2475 2008-08-26 Colin Walters <walters@verbum.org>
2477 * girepository/gtypelib.c (_g_typelib_init): Handle
2478 both .la and .so names; this works better in the
2479 uninstalled library case.
2481 2008-08-26 Johan Dahlin <johan@gnome.org>
2484 * giscanner/Makefile.am:
2485 * giscanner/cgobject.py:
2486 * giscanner/config.py.in:
2487 * giscanner/sourcescanner.py:
2488 Avoid undeffing __GNUC__, instead define
2489 __attribute__ & friends. Remove glibconfig.h hack.
2490 This makes gobject-introspection work better on
2491 MacOS X, Thanks to Richard Hult for kind help.
2493 2008-08-25 Colin Walters <walters@verbum.org>
2495 * giscanner/glibtransformer.py: Always print
2498 2008-08-25 Colin Walters <walters@verbum.org>
2500 * giscanner/glibtransformer.py: Skip over
2501 interfaces we don't know.
2503 2008-08-25 Colin Walters <walters@verbum.org>
2505 * girepository/girparser.c: Parse new implements
2506 syntax, drop gapi one.
2507 * tests/object.gir: Update.
2508 * tools/generate.c: Generate new syntax.
2510 2008-08-25 Colin Walters <walters@verbum.org>
2512 * giscanner/ast.py: Add interfaces property
2514 * giscanner/girwriter.py: Write out implemented
2516 * giscanner/glibtransformer.py: Introspect
2517 implemented interfaces.
2518 * tests/scanner/*: Make FooObject implement
2521 2008-08-25 Colin Walters <walters@verbum.org>
2523 * giscanner/glibtransformer.py: More correctly pair
2524 methods; if we have a symbol that starts with
2525 e.g. hippo_canvas look for a matching HippoCanvas
2526 class before accepting e.g. HippoCanvasImage.
2528 2008-08-24 Colin Walters <walters@verbum.org>
2530 * tools/g-ir-scanner: Filter out unknown options from
2533 2008-08-24 Colin Walters <walters@verbum.org>
2535 * giscanner/glibtransformer.py: Fail with better
2536 error if we can't find library.
2538 2008-08-24 Colin Walters <walters@verbum.org>
2540 * tools/g-ir-scanner: Use subprocess instead of
2541 commands, works on Windows and avoids the evil
2544 2008-08-24 Colin Walters <walters@verbum.org>
2546 * giscanner/glibtransformer.py: Skip over
2547 g_object_get_type from GLib trunk.
2549 2008-08-24 Colin Walters <walters@verbum.org>
2551 * girepository/girepository.c (g_irepository_require):
2552 Don't open shared library here; we already do it
2555 2008-08-24 Colin Walters <walters@verbum.org>
2557 * girepository/gtypelib.c: Add context stack so
2558 when we get an error we can print out nicely
2561 2008-08-24 Johan Dahlin <johan@gnome.org>
2563 * girepository/girparser.c (start_glib_boxed), (start_function),
2564 (start_field), (start_alias):
2565 Refactor a couple of parsing functions to be simpler to follow.
2568 2008-08-24 Johan Dahlin <johan@gnome.org>
2570 * girepository/girparser.c (start_function):
2571 Remove left-over code, checking type of function.
2573 2008-08-23 Colin Walters <walters@verbum.org>
2575 * giscanner/config.py: Define DATADIR.
2576 * giscanner/transformer.py: Look in DATADIR.
2578 2008-08-23 Colin Walters <walters@verbum.org>
2580 * girepository/gtypelib.c: Check constructor
2582 * girepository/girnode.c: Small tweaks.
2583 * girepository/ginfo.c: Calculate signature offsets
2585 * girepository/girparser.c: Remove duplicate
2587 * giscanner/glibtransformer.py: Avoid marking
2588 functions which return a basic type as
2591 2008-08-23 Colin Walters <walters@verbum.org>
2593 * girepository/girparser.c: Ignore <include>.
2594 * giscanner/girparser.py: Parse them.
2595 * giscanner/girwriter.py: Generate them.
2596 * giscanner/transformer.py: Process <include>
2597 recursively. Don't require full path for
2598 includes, look in {$XDG_DATA_DIRS}/gir.
2599 * tools/g-ir-scanner: Pass through includes.
2600 * Makefile.am: Remove extra --include
2602 * *-expected.gir: Add expected includes.
2604 2008-08-23 Johan Dahlin <johan@gnome.org>
2606 * tests/scanner/Makefile.am:
2607 * tests/scanner/annotation-expected.gir:
2608 * tests/scanner/drawable-expected.gir:
2609 Avoid duplication in the Makefile, regenerate with new
2610 namespaces (same as the filename)
2612 2008-08-22 Colin Walters <walters@verbum.org>
2614 * girepository/girnode.c: Don't hardcode integers,
2617 2008-08-22 Johan Dahlin <johan@gnome.org>
2619 * giscanner/sourcescanner.py:
2620 Check for ../gobject-introspection-1.0.pc.in to determine
2621 if we run installed or uninstalled.
2623 2008-08-22 Johan Dahlin <johan@gnome.org>
2626 * giscanner/sourcescanner.py:
2627 Send in undefs/defines via writing it directly to stdin
2628 of cpp instead of via arguments.
2630 2008-08-22 Colin Walters <walters@verbum.org>
2632 * tools/generate.c, tools/compiler.c: Default
2634 * all Makefile.am: Update.
2636 2008-08-22 Colin Walters <walters@verbum.org>
2638 * girepository/girparser.c: Pass through
2639 recursive types. Avoid overwriting errors.
2640 * giscanner/xmlwriter.py: Always write the
2642 * tests/*.gir: Adjust.
2643 * tests/scanner/Makefile.am: Build typelibs,
2644 and generate XML from those. Once we
2645 have a good diff mechanism...
2646 * tests/scanner/*-expected.gir: Add XML
2648 * tools/g-ir-scanner: Accept --typelib-xml
2650 * tools/generate.c: Better defaults for transfer.
2652 2008-08-22 Johan Dahlin <johan@gnome.org>
2656 * giscanner/Makefile.am:
2657 * giscanner/config.py.in:
2658 * giscanner/sourcescanner.py:
2659 Use the generated glibconfig.h for all scanner invokations.
2660 Rename it to glibconfig-scanner.h and install it.
2661 Add a config.py which so far contains the include dir.
2663 2008-08-22 Johan Dahlin <johan@gnome.org>
2666 Replace glibconfig.h with our own, do some replacement
2667 for CPP/C features we do not support
2669 2008-08-22 Colin Walters <walters@verbum.org>
2671 * tools/generate.c (write_callable_info): Fix unref
2674 2008-08-22 Colin Walters <walters@verbum.org>
2676 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2677 * tests/Makefile.am: Support $(DEBUG)
2678 * tools/generate.c: Do immediate close tags if no
2681 2008-08-21 Colin Walters <walters@verbum.org>
2683 * tests/scanner/drawable-expected.gir,
2684 * tests/scanner/drawable.c,
2685 * tests/scanner/drawable.h:
2688 2008-08-21 Colin Walters <walters@verbum.org>
2690 * giscanner/glibtransformer.py: Compute prefix
2691 by searching through the symbol for bits
2692 rather than going directly from ctype; this fixes
2695 2008-08-21 Colin Walters <walters@verbum.org>
2697 * giscanner/glibtransformer.py: Also try squashing
2698 underscores from namespace, fixes webkit_web_view_new.
2700 2008-08-21 Colin Walters <walters@verbum.org>
2702 * giscanner/glibtransformer.py: More ctor work,
2703 avoid having gtk_window_group_new end up under
2706 2008-08-21 Colin Walters <walters@verbum.org>
2708 * giscanner/glibtransformer.py: Much simpler approach
2709 of mapping uscored names to classes.
2710 * giscanner/utils.py: Remove unnecessary function.
2712 2008-08-21 Johan Dahlin <johan@gnome.org>
2714 * girepository/girepository.c (g_irepository_require):
2715 Plug memory leak and avoid using freed memory.
2716 Resolve the whole module path, here as well.
2718 2008-08-21 Colin Walters <walters@verbum.org>
2720 * giscanner/glibtransformer.py: Look up all permutations
2721 of class names when scanning methods/ctors based on
2722 the prefix instead of using the return value. This
2723 associates gtk_window_new with the right class.
2725 2008-08-21 Colin Walters <walters@verbum.org>
2727 * girepository/girmodule.c (g_ir_module_build_typelib):
2728 Revert change to increment header_size; we do that in
2731 2008-08-21 Colin Walters <walters@verbum.org>
2733 * girepository/girnode.c (write_string): Tweak to
2734 use UINT instead of INT. Not likely to matter.
2735 * girepository/girmodule.c (g_ir_module_build_typelib):
2736 Add to header_offset as well for header strings
2737 to match what write_string does.
2738 * girepository/gtypelib.c: Replace is_name with
2739 validate_name, which more strongly validates and
2740 handles errors in a better way. Update all callers.
2741 * giscanner/glibtransformer.py: Handle constructors
2744 2008-08-21 Johan Dahlin <johan@gnome.org>
2746 * gir/Makefile.am (typelibs_DATA): Build and
2747 install the Gio.typelib too
2749 * girepository/gtypelib.c (_g_typelib_init):
2750 Use g_module_build_path to resolve the shlib name
2752 2008-08-21 Colin Walters <walters@verbum.org>
2754 * gir/Makefile.am: CLEANFILES typelibs too.
2756 2008-08-21 Johan Dahlin <johan@gnome.org>
2758 * giscanner/glibtransformer.py:
2759 Do not send .la files through find_library.
2761 2008-08-21 Colin Walters <walters@verbum.org>
2763 * girepository/girparser.c (g_irepository_require):
2764 Fix one small leak in error case.
2766 2008-08-21 Johan Dahlin <johan@gnome.org>
2769 Parse glibconfig.h as well and install the compiled
2772 2008-08-21 Johan Dahlin <johan@gnome.org>
2775 * giscanner/glibtransformer.py:
2776 * tools/g-ir-scanner:
2777 Do not hard-core library names in the Makefile, reuse
2778 ctypes find_library instead.
2780 2008-08-21 Johan Dahlin <johan@gnome.org>
2782 * girepository/girparser.c (resolve_aliases):
2783 Remove compilation warnings
2785 2008-08-21 Johan Dahlin <johan@gnome.org>
2787 * girepository/girepository.c (g_irepository_require):
2788 Rewrap and fix double free bug by leaking a bit.
2790 2008-08-20 Colin Walters <walters@verbum.org>
2792 * girepository/girepository.c: Add new function
2793 g_irepository_get_typelib_path which tells
2794 us from where we loaded a namespace.
2796 2008-08-20 Colin Walters <walters@verbum.org>
2798 * tests/scanner/*-expected.gir: Adjust for
2799 added shared-library.
2800 * giscanner/giwriter.py: Make pylint happy.
2802 2008-08-20 Colin Walters <walters@verbum.org>
2804 * girepository/girmodule.c (g_ir_module_build_typelib):
2805 Calculate size correctly, avoid use-after-free.
2807 2008-08-20 Colin Walters <walters@verbum.org>
2809 * girepository/girepository.c: Remove
2810 g_irepository_register_file in favor of
2811 g_irepository_require. There are two
2812 possible deployment scenarios for typelibs:
2813 First, separate in $DATADIR/gitypelibs/. Second,
2814 they may be embedded in shlibs. However since
2815 the first is now the normal case, the API is
2816 optimized around it.
2818 Refactor internals to look up typelibs for
2819 namespaces just-in-time, but we expect
2820 consumers to call g_irepository_require.
2822 Also, add some docs. No one has died from that
2824 * gir/Makefile.am: Need --library for glib.
2825 * giscanner/girwriter.py: Write out shared-library.
2826 * tools/g-ir-writer: Take the first --library
2827 argument as the target of shared-library. In
2828 the future we should make this nicer with pkg-config
2831 2008-08-20 Colin Walters <walters@verbum.org>
2833 * girepository/girparser.py: And parse them.
2835 2008-08-20 Johan Dahlin <johan@gnome.org>
2837 * giscanner/glibast.py: Add gshort/gushort types
2839 2008-08-20 Colin Walters <walters@verbum.org>
2841 * gir/Makefile.am: Rename .gir files using GI namespace.
2842 * girepository/girepository.c: Use XDG_DATA_DIRS for
2843 looking up typelibs. Also typelibs are now suffixed
2845 * tests/invoke/Makefile.am: Only use metadata.
2846 * girepository/Makefile.am: Remove unnecessary include.
2847 * tests/scanner/Makefile.am: Update using GI namespaces
2848 for scanner includes.
2850 2008-08-20 Colin Walters <walters@verbum.org>
2852 * girepository/transformer.py: Suppress aliases whose
2854 * girepository/ast.py: Define some more aliases.
2856 2008-08-20 Colin Walters <walters@verbum.org>
2858 * girepository/girparser.c: Avoid alias infloops.
2860 2008-08-20 Colin Walters <walters@verbum.org>
2862 * tests/scanner/foo-expected.gir: Fix expected list type.
2864 2008-08-20 Johan Dahlin <johan@gnome.org>
2866 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2867 Add a workaround for #548689.
2868 We can now compile gtk!
2870 2008-08-20 Colin Walters <walters@verbum.org>
2872 * giscanner/glibtransformer.py: Try to look up
2873 aliases using the c:type too.
2875 2008-08-20 Colin Walters <walters@verbum.org>
2877 * girepository/girparser.c: Parse union fields.
2879 2008-08-20 Johan Dahlin <johan@gnome.org>
2881 * giscanner/ast.py: Make time_t an alias for long
2883 * gir/gio-2.0-good.gir:
2884 * gir/glib-2.0-good.gir:
2885 * gir/gobject-2.0-good.gir:
2887 * giscanner/glibtransformer.py:
2888 Do not delete Class structures, we need them in gdk/gtk.
2889 * tests/scanner/drawable-expected.gir:
2890 * tests/scanner/foo-expected.gir:
2891 * tests/scanner/utility-expected.gir:
2894 2008-08-20 Johan Dahlin <johan@gnome.org>
2896 * tests/scanner/Makefile.am:
2897 * tests/scanner/annotation-expected.gir:
2898 * tests/scanner/annotation.c (annotation_object_class_init),
2899 (annotation_object_init), (annotation_object_method),
2900 (annotation_object_in), (annotation_object_out),
2901 (annotation_object_inout), (annotation_object_inout2),
2902 (annotation_object_inout3), (annotation_object_calleeowns),
2903 (annotation_object_calleesowns), (annotation_object_get_strings),
2904 (annotation_object_with_voidp), (annotation_object_get_objects),
2905 (annotation_object_create_object), (annotation_object_allow_none):
2906 * tests/scanner/annotation.h:
2907 * tests/scanner/foo-expected.gir:
2908 * tests/scanner/foo.c:
2909 * tests/scanner/foo.h:
2910 Split out annotation tests out of foo
2912 2008-08-20 Johan Dahlin <johan@gnome.org>
2914 * tests/scanner/Foo-expected.gir:
2915 * tests/scanner/Makefile.am:
2916 * tests/scanner/foo-expected.gir:
2917 * tests/scanner/foo-object.h:
2918 * tests/scanner/foo.c:
2919 Foo->foo, foo-object.h -> foo.h
2921 2008-08-20 Johan Dahlin <johan@gnome.org>
2923 * tests/scanner/Foo-expected.gir:
2924 * tests/scanner/Makefile.am:
2925 * tests/scanner/drawable-expected.gir:
2926 * tests/scanner/drawable.c (test_drawable_class_init),
2927 (test_drawable_init):
2928 * tests/scanner/drawable.h:
2929 * tests/scanner/foo-object.h:
2930 * tests/scanner/foo.c (foo_boxed_method):
2931 Move the drawable parts out of Foo to its own test.
2933 2008-08-20 Johan Dahlin <johan@gnome.org>
2935 * tests/scanner/Foo-expected.gir:
2936 * tests/scanner/foo-object.h:
2937 * tests/scanner/foo.c (foo_drawable_class_init),
2938 (foo_drawable_init):
2939 Add a based on GdkDrawable which generates
2942 2008-08-19 Colin Walters <walters@verbum.org>
2944 * giscanner/transformer.py: Don't try
2945 to strip prefix before namespace.
2947 2008-08-19 Johan Dahlin <johan@gnome.org>
2949 * giscanner/transformer.py:
2950 * tests/scanner/Foo-expected.gir:
2951 * tests/scanner/foo-object.h:
2952 Add support for typedef void foo type of
2955 2008-08-19 Johan Dahlin <johan@gnome.org>
2958 * giscanner/girwriter.py:
2959 * giscanner/glibtransformer.py:
2960 * giscanner/transformer.py:
2961 * tests/scanner/Foo-expected.gir:
2962 Add basic support for union, base the code much
2963 on Struct. Add a testcase.
2965 2008-08-19 Johan Dahlin <johan@gnome.org>
2967 * tests/scanner/Foo-expected.gir:
2968 * tests/scanner/foo-object.h:
2969 Add a union testcase which the compiler currently
2972 2008-08-19 Johan Dahlin <johan@gnome.org>
2974 * gobject-introspection-1.0.pc.in:
2975 Add a g_ir_compiler variable
2977 2008-08-19 Colin Walters <walters@verbum.org>
2979 * giscanner/ast.py: Rework types to be more closely
2981 * giscanner/girparser.py: Parse more bits.
2982 * giscanner/girwriter.py: Write sequences in a new
2983 way that specifies container type.
2984 * giscanner/glibast.py: Adjust for ast.py changes,
2985 add 'ctype' property to GLibObject and GLibInterface
2986 so we can look things up by it later.
2987 * gicanner/transformer.py: Names is new class holding
2988 the various namespaces we manage. Do not confuse
2989 with Namespace which is toplevel XML node effectively.
2990 Rework all type resolution to go through
2991 _resolve_type_name_1.
2992 * giscanner/glibtransformer.py: Raise UnknownTypeError
2993 instead of ValueError for cleanliness. Add Unresolved
2994 class to mark types whose parent we haven't seen yet.
2995 Use new Names object from transformer.py.
2996 Correctly look up parent=.
2997 Fix type validation to handle sequences.
2998 * tests/scanner/Foo-expected.gir: Update for sequence
2999 work, int instead of int32.
3000 * tools/g-ir-scanner: Add --noclosure option
3001 * gir/Makefile.am: Use --noclosure by default for
3004 2008-08-18 Johan Dahlin <johan@gnome.org>
3006 * gir/gio-2.0-good.gir:
3007 * gir/glib-2.0-good.gir:
3008 * gir/gobject-2.0-good.gir:
3011 2008-08-18 Johan Dahlin <johan@gnome.org>
3014 * giscanner/girparser.py:
3015 * giscanner/girwriter.py:
3016 * giscanner/glibast.py:
3017 * giscanner/glibtransformer.py:
3018 * giscanner/transformer.py:
3019 * tests/scanner/Foo-expected.gir:
3020 * tests/scanner/foo-object.h:
3021 * tests/scanner/utility-expected.gir:
3022 * tests/scanner/utility.h:
3023 Redo type resolving and validation.
3024 Add a couple of new tests.
3025 Patch mostly written by Colin.
3027 2008-08-18 Johan Dahlin <johan@gnome.org>
3030 * giscanner/girparser.py:
3032 * giscanner/transformer.py:
3033 Improve enum parsing for enums without a GType.
3034 Make flags/enum references to other girs work
3035 * giscanner/utils.py:
3037 * tests/scanner/Makefile.am:
3038 * tests/scanner/foo-object.h:
3039 * tests/scanner/utility-expected.gir:
3040 * tests/scanner/utility.h:
3041 Add a new test for external enum references
3043 2008-08-18 Johan Dahlin <johan@gnome.org>
3045 * docs/global-module-registry.txt: Update
3047 * tests/array.gir: Update with new type proposal
3049 * girepository/girepository.c (g_type_tag_to_string):
3050 * girepository/girepository.h:
3051 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3053 * girepository/girnode.h:
3054 Make enum serializing functions public. Clean up some whitespace.
3056 2008-08-17 Johan Dahlin <johan@gnome.org>
3058 * docs/global-module-registry.txt:
3059 Add a document for an on disk module registry format
3061 2008-08-17 Johan Dahlin <johan@gnome.org>
3064 * gir/gio-2.0-good.gir:
3067 2008-08-17 Johan Dahlin <johan@gnome.org>
3070 * gir/glib-2.0-good.gir:
3071 * gir/gobject-2.0-good.gir:
3072 * giscanner/cgobject.py:
3073 * giscanner/glibtransformer.py:
3074 Regenerate GObject & GType.
3075 Avoid warnings when generating gobject-2.0.gir.
3076 Introspect a little more, and skip *_get_type functions.
3078 2008-08-17 Colin Walters <walters@verbum.org>
3080 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3081 Rename to -good, always generate during build.
3082 * gir/Makefile.am: Ensure .gir files dep on
3083 all scanner sources.
3084 * Makefile.am: Switch build order to ensure
3085 the scanner is ready before we do gir/.
3086 * tools/g-ir-scanner: Look for .git too.
3088 2008-08-17 Johan Dahlin <johan@gnome.org>
3090 * girepository/gtypelib.c (validate_enum_blob):
3091 * giscanner/glibtransformer.py:
3092 * giscanner/transformer.py:
3093 Remove resolve_possible_typedefs, it was unused.
3094 Allow multiple enum values of the sample value in an enum,
3095 since it's actually pretty common.
3096 Register enums so they can be resolved too.
3098 2008-08-16 Johan Dahlin <johan@gnome.org>
3100 * giscanner/girparser.py:
3101 Parse enumeration/bitfield.
3103 2008-08-16 Johan Dahlin <johan@gnome.org>
3105 * giscanner/girparser.py:
3108 2008-08-16 Johan Dahlin <johan@gnome.org>
3110 * giscanner/glibtransformer.py:
3111 Resolve type names for alias targets
3112 * giscanner/transformer.py:
3113 Skip FILE* parameters fow now
3115 2008-08-16 Johan Dahlin <johan@gnome.org>
3118 * gir/gobject-2.0.gir:
3121 * tests/scanner/Makefile.am:
3124 2008-08-15 Colin Walters <walters@verbum.org>
3126 * giscanner/glibtransformer.py: Explicitly construct
3127 new list, since we're deleting as we iterate.
3128 Don't delete all structures which end in Class; just
3129 ones which have a paired GObject.
3130 Fix printing of type warning.
3131 * giscanner/transformer.py: Make strip_namespace_object
3132 be the identity function if it doesn't match the
3135 2008-08-15 Colin Walters <walters@verbum.org>
3137 * giscanner/cgobject.py: Define yet more argument
3138 prototypes; fix prototype for g_type_fundamental.
3140 2008-08-14 Johan Dahlin <johan@gnome.org>
3142 * tests/Makefile.am:
3143 * tests/constant.gir:
3144 * tests/gobject.gir:
3146 * tools/generate.c (write_struct_info):
3147 Fix generator for constant/gobject/struct
3149 2008-08-14 Johan Dahlin <johan@gnome.org>
3151 * tests/Makefile.am:
3153 * tools/generate.c (write_enum_info):
3154 Fix generation of enum/bitfields
3156 2008-08-14 Johan Dahlin <johan@gnome.org>
3158 * girepository/girparser.c (start_field), (start_constant),
3159 (start_type), (end_element_handler):
3160 Clear up constant parsing
3165 * tools/generate.c (write_callable_info), (write_function_info),
3166 (write_callback_info), (write_constant_info), (write_signal_info),
3167 (write_vfunc_info), (write_property_info), (write_object_info),
3168 (write_interface_info):
3169 Constants/Signals are handled now.
3171 2008-08-14 Johan Dahlin <johan@gnome.org>
3173 * girepository/girparser.c (start_type):
3174 Don't require c:type.
3175 * tests/Makefile.am:
3178 Update, remove parts we don't support yet
3179 * tests/roundtrips.sh:
3181 * tools/generate.c (write_type_info), (write_field_info),
3182 (write_callable_info), (write_struct_info):
3183 Make it emit proper gir.
3185 2008-08-14 Johan Dahlin <johan@gnome.org>
3187 * giscanner/transformer.py:
3188 New internal function for adding a new node.
3190 2008-08-14 Johan Dahlin <johan@gnome.org>
3193 Define an internal _H_ variable so we skip parsing both
3194 i18n headers, only one is needed.
3196 Add the glib-2.0.gir too.
3197 * giscanner/glibast.py:
3198 Add gconstpointer as an alias for ANY
3199 * giscanner/transformer.py:
3200 Do not lower case enumeration names per se.
3201 Skip functions which has parameters called 'va_list'
3203 2008-08-14 Colin Walters <walters@verbum.org>
3205 * giscanner/transformer.py: Comment data structures.
3206 Also squash pointers in resolve_type_name to correspond
3207 with what we do for params.
3208 * giscanner/glibtransformer.py: Print warnings in more
3209 situations. Rework checks for method/constructor to
3210 look up in our GType database instead of just checking
3211 for *. Avoid generating <record> for GObject which
3212 duplicate the <class>.
3213 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3216 2008-08-14 Johan Dahlin <johan@gnome.org>
3218 * giscanner/girwriter.py:
3219 * giscanner/glibast.py:
3220 * giscanner/glibtransformer.py:
3221 * giscanner/transformer.py:
3223 * tests/Makefile.am:
3224 Add pyflakes.py and run it in make check.
3225 Update the source code to fix the errors reported by
3228 2008-08-14 Johan Dahlin <johan@gnome.org>
3231 * giscanner/girparser.py:
3232 * giscanner/glibast.py:
3233 * giscanner/glibtransformer.py:
3234 Refactor the parser a bit.
3235 Add parent type to interfaces and update callsites.
3237 2008-08-14 Johan Dahlin <johan@gnome.org>
3239 * giscanner/glibtransformer.py:
3240 * giscanner/utils.py:
3241 Refactor a bit, avoid isinstance and add a method
3242 for each type we parse.
3244 2008-08-14 Johan Dahlin <johan@gnome.org>
3247 * giscanner/girparser.py:
3248 * giscanner/glibtransformer.py:
3249 * tests/Makefile.am:
3250 Run pep8.py in make check, fix old errors.
3252 2008-08-13 Colin Walters <walters@verbum.org>
3254 * giscanner/girparser.py: Parse records.
3256 2008-08-13 Colin Walters <walters@verbum.org>
3258 * gir/Makefile.am: Install again.
3259 * gir/gobject-2.0.gir: Add some more bits.
3261 2008-08-13 Colin Walters <walters@verbum.org>
3263 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3264 * giscanner/girparser.py: Handle aliases.
3265 * giscanner/transformer.py: Record aliases. Make resolver
3266 functions public; we now call into these explicitly from
3267 glibtransformer. Handle resolving aliases.
3268 * giscanner/glibtransformer.py: Separate our internal namespace
3269 from included ones. Call up into transformer's resolver functions.
3271 2008-08-13 Johan Dahlin <johan@gnome.org>
3273 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3274 * girepository/girparser.c (start_class):
3275 * giscanner/glibtransformer.py:
3276 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3278 2008-08-13 Johan Dahlin <johan@gnome.org>
3280 * giscanner/cgobject.py:
3281 Register GInitiallyUnowned
3282 * giscanner/girwriter.py:
3283 * giscanner/glibtransformer.py:
3284 Special case GObject/GInitially owned as they are a bit special to use.
3286 2008-08-13 Colin Walters <walters@verbum.org>
3288 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3289 Object is in GObject namespace.
3291 2008-08-13 Colin Walters <walters@verbum.org>
3293 * giscanner/girparser.py: Fix processing of functions
3296 2008-08-13 Colin Walters <walters@verbum.org>
3298 * giscanner/girparser.py: Parse more than just <class.
3299 * giscanner/glibtransformer.py: Put aliases in a separate
3300 data structure since their name is not canonicall.
3301 * giscanner/transformer.py: Handle resolving type names
3304 2008-08-13 Johan Dahlin <johan@gnome.org>
3306 * tools/g-ir-scanner:
3307 Allow multiple libraries
3308 * giscanner/glibtransformer.py:
3309 Rename load_library to add_library, traverse over all libraries
3310 when trying to resolve a function
3312 2008-08-12 Colin Walters <walters@verbum.org>
3314 * giscanner/transformer.py: Record typedefs as <alias> elements.
3315 Also attempt to look up types in external namespaces.
3316 * giscanner/girwriter.py: Write them.
3317 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3318 checks. Resolve interface methods and properties.
3319 * tests/scanner/foo-object.h: Add a method with typedef.
3320 * tests/scanner/Foo-expected.gir: Update.
3321 * girepository/girnode.c: Debug tweaks.
3322 * girepository/girparser.c: Make a first pass through the XML where we
3323 record all the aliases. This lets us resolve them as we go through the
3325 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3326 from gir-repository.
3328 2008-08-12 Colin Walters <walters@verbum.org>
3330 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3331 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3333 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3335 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3337 2008-08-12 Colin Walters <walters@verbum.org>
3339 * giscanner/glibtransformer.py: Also transform object properties.
3341 2008-08-12 Colin Walters <walters@verbum.org>
3343 * giscanner/glibtransformer.py: Also transform callbacks
3344 and structure field types.
3345 * tests/scanner/Fooe-expected.gir: Update to expect correct
3346 names for callbacks and structs.
3348 2008-08-12 Colin Walters <walters@verbum.org>
3350 * girepository/girparser.c: Handle 'any'.
3351 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3352 Add test for void *.
3354 2008-08-12 Colin Walters <walters@verbum.org>
3356 * giscanner/glibtransformer.py: We need to do type
3357 resolution in a second pass after we've seen all the
3358 enums, records, etc.
3360 2008-08-12 Colin Walters <walters@verbum.org>
3362 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3363 Add enum return value.
3364 * giscanner/glibtransformer.py: Transform function return types
3367 2008-08-12 Colin Walters <walters@verbum.org>
3369 * tests/scanner/Makefile.am: Dep .gir files on scanner
3370 sources too. Also remove @ so we see scanner invocations.
3372 2008-08-12 Colin Walters <walters@verbum.org>
3374 * girepository/girparser.c, girepository/gtypelib.c,
3375 girepository/gtypelib.h, girepository/girnode.c:
3376 Remove usage of (GAPI-oriented) TypeTag in favor of
3377 GITypeTag from girepository.h.
3379 2008-08-10 Colin Walters <walters@verbum.org>
3381 * tests/roundtrips.sh: Use the correct tests.
3383 2008-08-10 Colin Walters <walters@verbum.org>
3385 * giscanner/cgobject.py: Declare/wrap a few more functions.
3386 Fix parameter types for g_object_new and g_type_fundamental.
3388 2008-08-10 Colin Walters <walters@verbum.org>
3390 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3391 us to declare types for both return value and parameters. The
3392 ctypes default of 'int' is bad because it hides 32/64 bit
3393 problems. Convert all existing functions to use it.
3395 2008-08-09 Johan Dahlin <johan@gnome.org>
3397 * giscanner/__init__.py:
3399 * giscanner/cgobject.py:
3400 * giscanner/gidlparser.py:
3401 * giscanner/gidlwriter.py:
3402 * giscanner/girparser.py:
3403 * giscanner/girwriter.py:
3404 * giscanner/glibast.py:
3405 * giscanner/glibtransformer.py:
3406 * giscanner/odict.py:
3407 * giscanner/sourcescanner.py:
3408 * giscanner/transformer.py:
3409 * giscanner/utils.py:
3410 * giscanner/xmlwriter.py:
3411 * tools/g-ir-scanner:
3415 2008-08-09 Johan Dahlin <johan@gnome.org>
3418 * relaxng/c-types.xml:
3419 * relaxng/g-types.xml:
3420 * relaxng/relaxng.rng:
3422 Remove outdated relaxng schemas.
3424 2008-08-09 Johan Dahlin <johan@gnome.org>
3427 Rename metadata to typelib in variable names,
3430 2008-08-09 Johan Dahlin <johan@gnome.org>
3434 Remove old C scanner, which got rewritten in python.
3436 2008-08-09 Johan Dahlin <johan@gnome.org>
3438 * girepository/Makefile.am:
3439 * tools/Makefile.am:
3440 * tools/girmodule.c:
3441 * tools/girmodule.h:
3444 * tools/girparser.c:
3445 * tools/girparser.h:
3446 * tools/girwriter.c:
3447 * tools/girwriter.h:
3448 Move shared *.[ch] files to girepository from tools
3450 2008-08-09 Johan Dahlin <johan@gnome.org>
3452 * tests/Makefile.am:
3455 * tests/constant.test:
3457 * tests/errors.test:
3458 * tests/function.test:
3459 * tests/gobject.test:
3460 * tests/interface.test:
3461 * tests/object.test:
3462 * tests/struct.test:
3467 Rename *.test to *.gir
3469 2008-08-09 Johan Dahlin <johan@gnome.org>
3472 * tests/Makefile.am:
3473 * tests/parser/Foo-expected.gir:
3474 * tests/parser/Makefile.am:
3475 * tests/parser/foo-object.h:
3476 * tests/parser/foo.c:
3477 * tests/parser/utility-expected.gir:
3478 * tests/parser/utility.c:
3479 * tests/parser/utility.h:
3480 * tests/scanner/Makefile.am:
3481 Rename tests/parser to test/scanner
3483 2008-08-08 Colin Walters <walters@verbum.org>
3485 * tests/roundtrips.sh: Use local .gir files again.
3487 2008-08-08 Colin Walters <walters@verbum.org>
3489 * tests/invoke/Makefile.am: .gir file depends on libtool
3492 2008-08-08 Colin Walters <walters@verbum.org>
3494 * tools/girnode.c: Pass through parent node so we can
3495 print the node whose child is NULL, if that occurs.
3497 2008-08-08 Johan Dahlin <johan@gnome.org>
3499 * tests/Makefile.am:
3500 Disable roundtrip tests which are not yet working
3501 * tests/invoke/testfns.gir:
3504 2008-08-08 Johan Dahlin <johan@gnome.org>
3506 * giscanner/girwriter.py:
3508 * giscanner/glibast.py:
3509 * giscanner/glibtransformer.py:
3510 Swap order of members, to keep it consistent with
3513 2008-08-08 Johan Dahlin <johan@gnome.org>
3515 * girepository/gtypelib.c (validate_header):
3516 * girepository/gtypelib.h:
3518 * giscanner/girwriter.py:
3519 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3520 (gi_source_symbol_unref):
3523 * tests/constant.test:
3525 * tests/errors.test:
3526 * tests/function.test:
3527 * tests/gobject.test:
3528 * tests/interface.test:
3529 * tests/invoke/Makefile.am:
3530 * tests/invoke/testfns.xml:
3531 * tests/object.test:
3532 * tests/parser/Makefile.am:
3533 * tests/roundtrips.sh:
3534 * tests/struct.test:
3539 * tools/Makefile.am:
3540 * tools/compiler.c (main):
3541 * tools/generate.c (write_callable_info), (write_function_info),
3543 * tools/gidlmodule.c:
3544 * tools/gidlmodule.h:
3547 * tools/gidlparser.c:
3548 * tools/gidlparser.h:
3549 * tools/gidlwriter.c:
3550 * tools/gidlwriter.h:
3551 * tools/scanner.c (create_node_from_gtype),
3552 (create_node_from_ctype), (g_igenerator_process_properties),
3553 (g_igenerator_process_signals), (g_igenerator_create_object),
3554 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3555 (g_igenerator_create_enum), (g_igenerator_create_flags),
3556 (g_igenerator_process_function_symbol),
3557 (g_igenerator_process_unregistered_struct_typedef),
3558 (g_igenerator_process_struct_typedef),
3559 (g_igenerator_process_union_typedef),
3560 (g_igenerator_process_enum_typedef),
3561 (g_igenerator_process_function_typedef),
3562 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3563 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3564 Merge in the gir-compiler branch.
3565 Thanks to Philip and Colin for their help.
3567 2008-07-26 Colin Walters <walters@verbum.org>
3569 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3570 and g-idl-generate to go along with how we're changing this
3571 module to be installed.
3572 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3574 2008-07-24 Colin Walters <walters@verbum.org>
3576 * girepository/girepository.c (g_irepository_register): Add
3577 environment variable G_IREPOSITORY_VERBOSE so we can print
3578 out what we're doing.
3579 * girepository/girepository.c (g_irepository_register_file):
3580 Add GError error message to g_debug call.
3582 2008-07-08 Jürg Billeter <j@bitron.ch>
3584 * giscanner/glibast.py:
3588 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3590 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3593 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3596 * giscanner/girwriter.py:
3597 * giscanner/transformer.py:
3598 * tests/parser/Foo-expected.gir:
3599 * tests/parser/foo-object.h:
3600 * tests/parser/foo.c (foo_object_allow_none):
3601 Add support for gtk-doc annotations for allow-none.
3604 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3607 * giscanner/girwriter.py:
3608 * giscanner/glibast.py:
3609 * giscanner/glibtransformer.py:
3610 * giscanner/transformer.py:
3611 * tests/parser/Foo-expected.gir:
3612 Start using abstract type instead of the raw C types.
3613 Register a bunch of glib types we care about.
3615 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3620 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3622 * girepository/girepository.c:
3623 * girepository/gtypelib.c:
3624 * girepository/ginfo.c:
3625 * girepository/ginvoke.c:
3626 * girepository/girepository.h:
3627 * girepository/gtypelib.h:
3628 * girepository/gmetadata.c:
3629 * girepository/Makefile.am:
3630 * girepository/gmetadata.h:
3632 * tools/gidlmodule.c:
3635 * tools/gidlmodule.h:
3636 * tools/gidlparser.c:
3638 Renamed GMetadata to GTypelib
3640 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3642 * giscanner/xmlwriter.py:
3643 Improve line wrapping when > 79 charaters
3645 2008-06-05 Jürg Billeter <j@bitron.ch>
3648 * giscanner/girwriter.py:
3649 * giscanner/transformer.py:
3650 Use <type> element for field types
3651 * tests/parser/Foo-expected.gir:
3654 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3656 * giscanner/glibtransformer.py:
3657 Fix a bug which prevented GdkEvent from being generated
3659 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3661 * giscanner/Makefile.am:
3663 * giscanner/girwriter.py:
3664 * giscanner/glibast.py:
3665 * giscanner/glibtransformer.py:
3666 * giscanner/transformer.py:
3667 * giscanner/utils.py:
3668 * tests/parser/Foo-expected.gir:
3669 Improve enum member parsing and introspection
3671 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3673 * giscanner/scannerparser.y:
3674 * giscanner/sourcescanner.h:
3675 * giscanner/sourcescanner.py:
3676 Add a new source type enum for member.
3677 Use __repr__ for improved debugging
3678 * giscanner/girparser.py:
3680 * giscanner/transformer.py:
3681 Improve parsing of struct members.
3682 * tests/parser/foo-object.h:
3685 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3687 * giscanner/xmlwriter.py:
3688 Improve error reporting when trying to quote None.
3689 * giscanner/girparser.py:
3690 Do not print warnings when including more complete .gir files
3691 * giscanner/girwriter.py:
3692 Do not require a name for parameters, add a todo for singletons
3693 * giscanner/glibtransformer.py:
3694 Refactor the way structs are done, add a couple of hacks to allow
3696 * giscanner/transformer.py:
3697 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3698 * gobject-introspection-1.0.pc.in:
3699 Export girdir, so we can access gobject-2.0.gir from outside
3701 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3703 * tools/g-ir-scanner:
3704 * tests/parser/Makefile.am:
3705 Update sys.path before running the parser so we don't have
3706 to setup PYTHONPATH ourselves.
3710 * girepository/Makefile.am:
3711 * giscanner/transformer.py:
3712 * gobject-introspection-1.0.pc.in:
3713 * gobject-introspection.pc.in:
3714 * tools/Makefile.am:
3716 Rename pkg-config name to gobject-introspection-1.0,
3717 Do not installed anything which is not using the gir format.
3718 Disable compililation the old C scanner, but still keep the source
3719 until all the remaning functionallity has been ported.
3721 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3723 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3724 a crash when symbol->indent is NULL.
3726 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3727 a function to convert a CTYPE symbol to a string
3729 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3732 * giscanner/girwriter.py:
3733 * giscanner/giscannermodule.c
3734 (pygi_source_scanner_append_filename),
3735 (pygi_source_scanner_parse_file):
3736 * giscanner/glibtransformer.py:
3737 * giscanner/sourcescanner.py:
3738 Revert back to using temporary files to send in headers.
3739 Allow Functions to be passed in as callbacks, add a couple
3740 of try/excepts missing features.
3741 We can now scan pango
3743 2008-05-08 Johan Dahlin <johan@gnome.org>
3745 * giscanner/glibtransformer.py:
3746 * giscanner/transformer.py:
3747 Move namespace stripping glibtransformer->transformer
3749 2008-05-08 Johan Dahlin <johan@gnome.org>
3752 * giscanner/girwriter.py:
3753 * giscanner/glibtransformer.py:
3754 * giscanner/transformer.py:
3755 * tools/g-ir-scanner:
3756 Introduce a namespace ast node
3758 2008-05-05 Johan Dahlin <johan@gnome.org>
3760 * giscanner/__init__.py:
3761 * giscanner/sourcescanner.py:
3762 * giscanner/transformer.py:
3763 Move sourcescanner symbols to the sourcescanner module, instead
3764 of in the global __init__ namespace.
3766 2008-05-03 Johan Dahlin <johan@gnome.org>
3768 * giscanner/glibtransformer.py:
3769 * tools/g-ir-scanner:
3770 Handle missing parameters better, allow - and + in .la dlname
3773 2008-05-03 Johan Dahlin <johan@gnome.org>
3775 * giscanner/__init__.py:
3777 * giscanner/girwriter.py:
3778 * giscanner/glibtransformer.py:
3779 * giscanner/transformer.py:
3780 Parse struct fields properly, improve debugging.
3782 2008-04-29 Johan Dahlin <johan@gnome.org>
3785 * giscanner/girwriter.py:
3786 * giscanner/transformer.py:
3787 * tests/parser/Foo-expected.gir:
3789 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3791 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3794 * docs/g-ir-scanner.1:
3795 * metadata-annotations-proposal.txt:
3796 * metadata-format.txt:
3797 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3799 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3801 * giscanner/girwriter.py:
3802 * giscanner/glibtransformer.py:
3803 * giscanner/transformer.py:
3804 * giscanner/xmlwriter.py:
3805 * tests/parser/Foo-expected.gir:
3806 * tests/parser/foo-object.h:
3807 Write record/structs to gir file too. Add a couple of tests,
3808 fix an off by one error in xmlwriter.py.
3810 2008-04-28 Johan Dahlin <johan@gnome.org>
3812 * giscanner/xmlwriter.py: Calculate the line length properly,
3813 include the provided extra indentation in the calculation, really.
3815 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3818 * giscanner/glibast.py:
3819 * giscanner/glibtransformer.py:
3820 * giscanner/transformer.py:
3821 * tools/g-ir-scanner:
3822 Add a --strip-prefix and sort out confusion between names and symbols
3823 for functions and struct + derivaties.
3824 Refactor bootstrap of g-ir-scanner, so we can set options on
3825 Transformer() before parsing everything.
3827 2008-04-28 Johan Dahlin <johan@gnome.org>
3829 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3830 when scanning girepository.h
3832 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3833 a __GI_SCANNER__ when we run.
3835 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3838 * giscanner/girwriter.py:
3839 * giscanner/glibast.py:
3840 * giscanner/glibtransformer.py:
3841 * tests/parser/Foo-expected.gir:
3842 * tests/parser/utility-expected.gir:
3843 Rename most c:identifier to c:type. Add new ones to
3844 class/interface/enum/boxed.
3846 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3849 * giscanner/girwriter.py:
3850 * giscanner/glibtransformer.py:
3851 * tests/parser/Foo-expected.gidl:
3852 * tests/parser/Makefile.am:
3853 Move c:identifier from return-value to subchild type,
3854 as per Jürgs suggestion
3856 2008-04-28 Johan Dahlin <johan@gnome.org>
3858 * giscanner/girwriter.py:
3859 * tests/parser/Foo-expected.gir:
3860 Write property.type as a child node.
3862 2008-04-27 Johan Dahlin <johan@gnome.org>
3867 * gidl/gobject-2.0.gidl:
3869 * gir/gobject-2.0.gir:
3870 * tests/parser/Makefile.am:
3871 Replace the GObject gidl with a GObject gir.
3873 2008-04-27 Johan Dahlin <johan@gnome.org>
3875 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3878 * giscanner/xmlwriter.py:
3879 * tests/parser/Foo-expected.gir:
3880 Include indentation in line length calculation
3882 2008-04-27 Johan Dahlin <johan@gnome.org>
3884 * giscanner/girparser.py:
3885 Prettify NS parsing using elementtree.
3887 2008-04-27 Johan Dahlin <johan@gnome.org>
3890 * giscanner/Makefile.am:
3891 * giscanner/girparser.py:
3892 * giscanner/glibtransformer.py:
3893 * tests/parser/Foo-expected.gidl:
3894 * tests/parser/Foo-expected.gir:
3895 * tests/parser/Makefile.am:
3896 * tests/parser/utility-expected.gidl:
3897 * tests/parser/utility-expected.gir:
3898 * tools/g-ir-scanner:
3899 Switch over to GIR as the default format. Add a simple GIDL
3901 Update tests and fix simplify makefiles by depending
3902 on GNU make extensions.
3904 2008-04-27 Johan Dahlin <johan@gnome.org>
3906 * giscanner/xmlwriter.py:
3907 Wrap attributes for lines which are wider than 79 characters
3909 * giscanner/scannerlexer.l:
3910 Allow parenthesis in annotations
3913 * giscanner/gidlwriter.py:
3914 * giscanner/girwriter.py:
3915 * giscanner/glibtransformer.py:
3916 * giscanner/transformer.py:
3917 Add initial sequence support, including annotation.
3918 Refactor type handling a bit.
3920 2008-04-27 Johan Dahlin <johan@gnome.org>
3922 * tests/parser/Foo-expected.gidl:
3923 * tests/parser/foo-object.h:
3924 * tests/parser/foo.c (foo_object_class_init),
3925 (foo_object_get_strings), (foo_object_get_objects):
3926 Add two new functions to check sequence return values.
3927 Also fixes a compilation warning.
3929 2008-04-27 Johan Dahlin <johan@gnome.org>
3931 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3932 a compilation warning.
3934 * tools/Makefile.am (g_ir_scanner_SOURCES):
3935 g-ir-scanner has no sources.
3937 2008-04-25 Johan Dahlin <johan@gnome.org>
3939 * giscanner/Makefile.am:
3941 * giscanner/gidlparser.py:
3942 * giscanner/gidlwriter.py:
3943 * giscanner/girwriter.py:
3944 * giscanner/glibast.py:
3945 * giscanner/glibtransformer.py:
3946 * giscanner/transformer.py:
3947 Split out nodes to ast.py and glibast.py
3949 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3951 * giscanner/Makefile.am:
3952 * giscanner/gidlparser.py:
3953 * giscanner/gidlwriter.py:
3954 * giscanner/girwriter.py:
3955 * giscanner/glibtransformer.py:
3956 * giscanner/gobjecttreebuilder.py:
3957 * giscanner/transformer.py:
3958 * giscanner/treebuilder.py:
3959 * tools/g-ir-scanner:
3960 Rename treebuilder to transformer and
3961 gobjectreebuilder to glibtransformer.
3963 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3965 * giscanner/Makefile.am:
3966 * giscanner/__init__.py:
3967 * giscanner/cgobject.py:
3968 * giscanner/gidlparser.py:
3969 * giscanner/gidlwriter.py:
3970 * giscanner/girwriter.py:
3971 * giscanner/gobjecttreebuilder.py:
3972 * giscanner/odict.py:
3973 * giscanner/sourcescanner.py:
3974 * giscanner/treebuilder.py:
3975 * giscanner/xmlwriter.py:
3976 * tools/Makefile.am:
3977 * tools/g-ir-scanner:
3978 Add LGPLv2 license header and install all python files
3980 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3983 * giscanner/gidlwriter.py:
3984 * giscanner/giscannermodule.c (pygi_source_directive_new),
3985 (directive_get_options), (pygi_source_symbol_new),
3986 (symbol_get_base_type), (pygi_source_type_new),
3987 (type_get_base_type), (type_get_child_list),
3988 (pygi_source_scanner_get_symbols),
3989 (pygi_source_scanner_get_directives):
3990 * giscanner/gobjecttreebuilder.py:
3991 * giscanner/sourcescanner.py:
3992 * giscanner/treebuilder.py:
3993 * tests/parser/foo-object.h:
3994 Add support for virtual methods.
3995 Pair struct FooClass with struct Foo.
3996 Clean up the SourceScanner bindings a bit.
3997 Add a testcase for virtual methods.
3999 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4001 * giscanner/cgobject.py:
4002 * giscanner/gidlwriter.py:
4003 * giscanner/gobjecttreebuilder.py:
4004 Add support for signals
4006 * tests/parser/foo.c (foo_object_class_init):
4007 * Foo-expected.gidl:
4008 Add a signal and update the expected output.
4010 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4012 * giscanner/gidlwriter.py:
4013 * giscanner/girwriter.py:
4014 * giscanner/giscannermodule.c (directive_get_name),
4015 (directive_get_value), (directive_get_options),
4016 (symbol_get_directives), (symbol_set_directives),
4017 (pygi_source_scanner_parse_file),
4018 (pygi_source_scanner_lex_filename),
4019 (pygi_source_scanner_get_directives), (init_giscanner):
4020 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4021 * giscanner/sourcescanner.h:
4022 * giscanner/sourcescanner.py:
4023 * giscanner/treebuilder.py:
4024 * tools/g-ir-scanner:
4025 Add support for source/header annotations.
4027 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4029 * giscanner/gidlwriter.py:
4030 * giscanner/girwriter.py:
4031 * giscanner/gobjecttreebuilder.py:
4032 * giscanner/treebuilder.py:
4033 Add support for Callbacks
4035 2008-04-22 Havoc Pennington <hp@pobox.com>
4037 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4038 not in metadata->module, look for it in the global module, in case
4039 some other object or the app itself provides the symbol.
4041 2008-04-22 Havoc Pennington <hp@pobox.com>
4043 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4044 dlopening a library that is already in the main app, by checking
4045 whether one of the lib's symbols is already loaded.
4047 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4049 * tests/parser/Foo-expected.gidl:
4050 * tests/parser/foo-object.h:
4053 2008-04-22 Havoc Pennington <hp@pobox.com>
4055 * girepository/ginfo.c (g_interface_info_find_method):
4056 Use interface_blob_size not object_blob_size to compute offset.
4058 2008-04-22 Havoc Pennington <hp@pobox.com>
4060 * girepository/gmetadata.c (_g_metadata_init): remove
4061 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4062 (Glade and Clutter for example) rely on being loaded globally.
4064 2008-04-22 Havoc Pennington <hp@pobox.com>
4066 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4067 function to get the GType given a RegisteredTypeInfo
4069 2008-04-22 Johan Dahlin <johan@gnome.org>
4071 * COPYING: Add a LGPL license, to prevent automake to
4072 put in a copy of GPL here. Pointed out by Havoc.
4074 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4075 (g_type_info_is_pointer), (g_type_info_get_tag),
4076 (g_type_info_get_param_type), (g_type_info_get_interface),
4077 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4078 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4079 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4080 (g_object_info_get_interface), (g_object_info_get_field),
4081 (g_interface_info_get_prerequisite),
4082 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4083 * girepository/ginvoke.c (get_ffi_type):
4084 * girepository/girepository.h:
4085 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4086 (g_metadata_check_sanity), (validate_header),
4087 (validate_array_type_blob), (validate_iface_type_blob),
4088 (validate_param_type_blob), (validate_error_type_blob),
4089 (validate_type_blob), (validate_constant_blob),
4090 (validate_struct_blob), (validate_enum_blob):
4091 * girepository/gmetadata.h:
4092 * tests/Makefile.am:
4093 * tests/invoke/Makefile.am:
4094 * tests/invoke/invoke.c (main):
4095 * tests/roundtrips.sh:
4096 * tools/Makefile.am:
4097 * tools/compiler.c (format_output), (write_out_metadata), (main):
4098 * tools/generate.c (write_type_name), (write_type_info),
4099 (write_constant_value), (write_enum_info), (load_metadata), (main):
4100 * tools/gidlcompilercontext.c:
4101 * tools/gidlcompilercontext.h:
4102 * tools/gidlcompilerentrynode.c:
4103 * tools/gidlcompilerentrynode.h:
4104 * tools/gidlcompilertypenode.c:
4105 * tools/gidlcompilertypenode.h:
4106 * tools/gidlmodule.c (g_idl_module_build_metadata):
4107 * tools/gidlmodule.h:
4108 * tools/gidlnode.c (init_stats), (dump_stats),
4109 (g_idl_node_get_size), (g_idl_node_get_full_size),
4110 (g_idl_node_cmp), (g_idl_node_can_have_member),
4111 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4112 (parse_int_value), (parse_uint_value), (parse_float_value),
4113 (parse_boolean_value), (find_entry_node), (find_entry),
4114 (serialize_type), (g_idl_node_build_metadata), (write_string):
4116 * tools/gidlparser.c (parse_type_internal):
4117 * tools/quote-file.sh:
4118 Revert revisions 157,149-148,136-129 and 120.
4119 Move back to using g-idl-generate to generate the metadata and
4120 avoids dependency on a c compiler.
4122 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4124 * giscanner/girwriter.py:
4125 * tools/g-ir-scanner:
4126 Add an initial GIR writer and a --format option to g-ir-scanner
4128 2008-04-21 Johan Dahlin <johan@gnome.org>
4130 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4131 gobject-2.0 and raise ImportError if not found.
4133 * giscanner/gidlparser.py:
4134 * giscanner/gidlwriter.py:
4135 * giscanner/gobjecttreebuilder.py:
4136 * tools/g-ir-scanner:
4137 Add a --include argument to include types from other idls.
4138 Add a minimalistic GIDL parser (just objects for now)
4139 Implement resolving of external type references and use it to
4140 resolve parent types, argument types and return types.
4142 2008-04-21 Johan Dahlin <johan@gnome.org>
4144 * giscanner/gidlwriter.py:
4145 * giscanner/gobjecttreebuilder.py:
4146 * giscanner/treebuilder.py:
4147 Add support for properties.
4148 Refactor Class/Interface support a bit, to share more code and
4149 always initialize their method attribute to an empty list.
4151 2008-04-21 Johan Dahlin <johan@gnome.org>
4153 * giscanner/cgobject.py:
4154 Add a workaround for a glib bug interface introspection bug
4155 (object_interface_list_properties, object_class_list_properties):
4156 Cast the return value to GParamSpec.
4158 * tests/parser/Foo-expected.gidl: Update
4159 * tests/parser/foo.c: Add a string property
4161 * giscanner/gobjecttreebuilder.py:
4162 After stripping namespaces, remove the original
4163 item to avoid duplication (GtkButton struct and Button object)
4165 2008-04-21 Johan Dahlin <johan@gnome.org>
4167 * giscanner/gobjecttreebuilder.py:
4168 * giscanner/treebuilder.py:
4169 Strip namespaces before objects, so we'll export
4170 GtkButton as Button in the gtk namespace
4172 2008-04-21 Johan Dahlin <johan@gnome.org>
4174 * giscanner/gidlwriter.py:
4175 * giscanner/gobjecttreebuilder.py:
4176 * giscanner/treebuilder.py:
4177 Add constructors for object/boxed types.
4179 2008-04-21 Johan Dahlin <johan@gnome.org>
4181 * giscanner/gidlwriter.py:
4182 * giscanner/gobjecttreebuilder.py:
4183 Add support for boxed types
4185 2008-04-21 Johan Dahlin <johan@gnome.org>
4187 * giscanner/giscannermodule.c: Mark structures as const,
4188 wrap SourceType.const_string.
4190 * tests/parser/foo-object.h: Add a couple of constants.
4192 * giscanner/gidlwriter.py:
4193 * giscanner/gobjecttreebuilder.py:
4194 * giscanner/treebuilder.py:
4195 Add basic support for interfaces
4197 * tools/g-ir-scanner:
4198 Add -o/--output for writing to a file
4200 2008-04-21 Havoc Pennington <hp@redhat.com>
4202 * TODO: add some C API wishlist items I could think of quickly
4204 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4206 * giscanner/gidlwriter.py:
4207 * giscanner/xmlwriter.py:
4208 Add a simple api for writing tags which can be used
4209 with the new 'with statement' in python 2.5
4211 2008-04-21 Johan Dahlin <johan@gnome.org>
4213 * giscanner/gobjecttreebuilder.py:
4214 Strip namespace and object prefix from method names.
4216 2008-04-21 Johan Dahlin <johan@gnome.org>
4218 * tools/g-ir-scanner (main): Add --pkg option to pass in
4219 pkg-config modules to get cflags from.
4221 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4222 Avoid duplication, reuse function writer for methods.
4224 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4226 * giscanner/gidlwriter.py:
4227 * giscanner/gobjecttreebuilder.py:
4228 * giscanner/treebuilder.py:
4229 * tools/g-ir-scanner:
4230 Resolve libtool .la files.
4231 Strip name spaces for methods.
4232 Add function symbols
4234 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4236 * giscanner/cgobject.py:
4237 * giscanner/gidlwriter.py:
4238 * giscanner/gobjecttreebuilder.py:
4239 * giscanner/treebuilder.py:
4240 Add support for classes and methods
4242 2008-04-20 Johan Dahlin <johan@gnome.org>
4244 * giscanner/gidlwriter.py:
4245 * giscanner/gobjecttreebuilder.py:
4246 * giscanner/odict.py:
4247 Avoid conflicts, keep the output ordered similar to
4248 the order of the input.
4249 Add a simple ordered dictionary implemenation
4251 2008-04-19 Johan Dahlin <johan@gnome.org>
4253 * giscanner/cgobject.py:
4254 * giscanner/gidlwriter.py:
4255 * giscanner/gobjecttreebuilder.py:
4256 * tools/g-ir-scanner:
4257 Start introspecting get-type functions.
4258 Implement support for GLib/GFlags GTypes.
4259 Add a ctype based GObject binding.
4261 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4263 * giscanner/gidlwriter.py:
4264 * giscanner/xmlwriter.py:
4265 * tools/g-ir-scanner:
4266 Add a simplistic gidl writer, which can't do too much.
4268 2008-04-18 Johan Dahlin <johan@gnome.org>
4270 * giscanner/sourcescanner.py:
4271 * giscanner/treebuilder.py:
4272 * tools/g-ir-scanner:
4273 split tree building and source scanning interface to separate files.
4275 2008-04-18 Johan Dahlin <johan@gnome.org>
4277 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4279 - Add support for struct/parameter/return, start parsing of ctypes
4281 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4284 2008-03-31 Johan Dahlin <johan@gnome.org>
4286 * tools/g-ir-scanner:
4287 Start to build abstract syntax node of scanned sources.
4288 Add support for cpp options.
4290 2008-03-27 Johan Dahlin <johan@gnome.org>
4292 * giscanner/giscannermodule.c:
4293 * giscanner/scannerlexer.l:
4294 * giscanner/sourcescanner.c:
4295 * tools/g-ir-scanner:
4297 Add simple pre-processor using subprocess and a PIPE.
4298 Change the parse_file apis to accept a file descriptor.
4300 2008-03-25 Johan Dahlin <johan@gnome.org>
4302 * giscanner/__init__.py:
4303 * tools/g-ir-scanner:
4304 Fix a typo and add an example python test program.
4306 2008-03-25 Johan Dahlin <johan@gnome.org>
4308 * giscanner/__init__.py:
4309 * giscanner/giscannermodule.c:
4310 * giscanner/sourcescanner.c:
4311 * giscanner/sourcescanner.h:
4312 Add constants and wrap a few more SymbolType fields
4314 2008-03-25 Johan Dahlin <johan@gnome.org>
4318 * giscanner/__init__.py:
4319 * giscanner/giscannermodule.c:
4320 * giscanner/Makefile.am:
4322 Add initial python bindings for the scanner and
4323 depend on python 2.5.
4325 2008-03-25 Johan Dahlin <johan@gnome.org>
4329 * giscanner/Makefile.am:
4330 * giscanner/sourcescanner.c:
4331 * giscanner/sourcescanner.h:
4332 * tools/Makefile.am:
4333 * tools/grealpath.h:
4334 * tools/sourcescanner.c:
4335 * tools/sourcescanner.h:
4337 Move the scanner to a separate library.
4339 2008-03-23 Johan Dahlin <johan@gnome.org>
4341 * tools/Makefile.am:
4344 * tools/scannerlexer.l:
4345 * tools/scannerparser.y:
4346 * tools/sourcescanner.c:
4347 * tools/sourcescanner.h:
4348 Split out the source scanner from the generator.
4349 Rename the symbols used in the scanner to use the gi_ prefix.
4350 This should make it possible to use the raw C parser from
4353 2008-03-23 Johan Dahlin <johan@gnome.org>
4355 * tests/parser/Makefile.am (utility.gidl):
4356 * tests/parser/utility-expected.gidl:
4357 Pass in the gobject.gidl since we're defining a GObject.
4359 2008-03-12 Johan Dahlin <johan@gnome.org>
4361 * relaxng/relaxng.rng:
4362 Add a releaxng in relaxng we can use to validate the relaxngs
4365 2008-03-12 Jürg Billeter <j@bitron.ch>
4367 * tools/scanner.c: (g_igenerator_new):
4368 * tools/scannerparser.y:
4369 Fix compiler warnings.
4371 2008-03-12 Jürg Billeter <j@bitron.ch>
4375 * tools/scannerparser.y:
4376 Start fixing memory management in g-idl-scanner.
4378 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4380 * tools/gidlcompilercontext.c: (write_compiled):
4381 Fix critical warning when no shlib passed to g-idl-compiler.
4383 2008-03-12 Johan Dahlin <johan@gnome.org>
4385 * tests/parser/utility-expected.gidl:
4386 * tests/parser/utility.h:
4387 Add a get_type-function, so the scanner actually
4388 parses it as an object.
4390 2008-03-12 Johan Dahlin <johan@gnome.org>
4392 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4395 * tests/parser/Foo-expected.gidl:
4396 * tests/parser/Makefile.am:
4397 * tests/parser/foo-object.h:
4398 * tests/parser/foo.c:
4399 * tests/parser/utility-expected.gidl:
4400 * tests/parser/utility.c:
4401 * tests/parser/utility.h:
4403 Add a new gidl test. 'utility.gidl', which is used to be able
4404 to test external type references. Add a reference to UtilityObject*
4407 2008-03-11 Johan Dahlin <johan@gnome.org>
4411 Remove most global variables
4413 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4415 * tools/scannerlexer.l:
4417 * tests/parser/Foo-expected.gidl:
4418 * tests/parser/foo.c:
4419 * tests/parser/Makefile.am:
4420 * tests/parser/foo-object.h:
4422 Added a few extra tests. Which resulted in finding a few
4423 bugs. Which resulted in me fixing those bugs
4425 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4427 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4428 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4429 Add some comments for strings into generated output for
4432 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4434 * tools/gidlcompilercontext.c: (write_compiled):
4435 Write out the shlibs variable before writing out the strings
4436 length. Fixes compiler warning when using '-l' flag with
4439 2008-03-11 Johan Dahlin <johan@gnome.org>
4441 * tests/parser/Foo-expected.gidl:
4442 * tests/parser/foo-object.h:
4445 * tools/scannerlexer.l:
4446 Add support for parsing return arguments. Add support for
4447 caller-owns return types.
4448 Patch by Philip Van Hoof.
4450 * tools/scannerparser.y:
4451 Remove parsing of the @deprecated syntax used in headers.
4452 We will support gtk-doc deprecation in the future instead.
4454 2008-03-11 Johan Dahlin <johan@gnome.org>
4456 * tools/compiler.c (main): Coding style fixes
4458 2008-03-10 Johan Dahlin <johan@gnome.org>
4461 Add GCOV_LIBS to GILIBS
4463 2008-03-10 Johan Dahlin <johan@gnome.org>
4465 * tests/parser/Foo-expected.gidl:
4466 * tests/parser/foo.c:
4467 Rename null-ok to direction=out
4469 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4471 reviewed and extensively tested by Johan
4473 * tests/parser/Foo-expected.gidl:
4474 * tests/parser/foo-object.h:
4475 * tests/parser/foo.c:
4478 * tools/gidlwriter.c:
4481 * tools/scannerlexer.l:
4482 * tools/scannerparser.y:
4484 Add support for scanning for gtk-doc comments inside
4485 C source files. Add tests
4487 2008-03-10 Johan Dahlin <johan@gnome.org>
4489 * tests/parser/Makefile.am:
4490 * tests/parser/foo.c:
4493 * tools/scannerparser.y:
4494 Add an api to lex filenames.
4495 Lex all source .c files passed in on the command line.
4496 Scan sources in a test and a couple of private structures
4497 which should not be included in the generated gidl
4499 2008-03-10 Johan Dahlin <johan@gnome.org>
4501 * tests/invoke/Makefile.am: Make the generated metadata
4502 depend on the g-idl-compiler
4504 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4506 * tools/gidlmodule.c
4507 * tools/gidlmodule.h
4510 Remove the old g-idl-compiler code.
4513 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4515 * tools/quote-file.sh
4518 Move to using the 'C' struct compiler code.
4520 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4522 * girepository/ginfo.c
4524 Change the way that external references with no namespace
4525 are dealt with. External references with no namespace
4526 are placed into the XML as-if they are a local reference.
4527 This is temporary, but helps with roundtrip tests.
4529 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4531 * girepository/ginfo.c
4532 Add the ability to get the value of a constant of
4533 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4534 is provided as a string.
4536 This would deal properly with:
4537 typedef char* random;
4538 const random = "A string";
4540 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4542 * girepository/ginfo.c
4543 * girepository/girepository.h
4545 Add a function to check if an enum is registered or not.
4546 Previously anything testing this relied on the g-type
4547 string offset having a value of 0.
4549 * girepository/gmetadata.c
4550 * girepository/gmetadata.h
4552 Remove unneccesary or erroneous checks. There were two
4553 metadata validation checks which made sure that the blob
4554 sizes were the same as some magic numbers compiled into the code.
4555 This is wrong as it breaks any forwards compatibility that may
4558 Checks were also present that made sure that unregistered type
4559 blobs had a value of 0 in the g-type offset field. This is
4560 unneccessary. If a type blob is unregistered then any value
4561 in its g-type field is simply invalid.
4563 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4565 * girepository/ginfo.c
4566 * girepository/gmetadata.c
4567 * girepository/gmetadata.h
4569 Change the metadata format to have a standard header
4570 for all the type blobs. Merge the SimpleTypeBlob
4571 and InterfaceTypeBlob into a union. A union of these
4572 two blobs existed previously but was not explicit
4573 in the metadata format.
4575 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4577 * tools/gidlcompilercontext.c
4578 * tools/gidlcompilercontext.h
4579 * tools/gidlcompilerentrynode.c
4580 * tools/gidlcompilerentrynode.h
4581 * tools/gidlcompilertypenode.c
4582 * tools/gidlcompilertypenode.h
4584 Add code to compile a tree of GIdlNodes to
4585 a 'C' struct representing the metadata.
4586 This is to aid cross-compiling. Previously
4587 the g-idl-compiler created a binary blob with
4588 data written in the byte order and alignment
4589 of the tool rather than the intended target.
4591 Cleaned up and improved by Johan and Robert :-)
4593 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4595 * girepository/ginvoke.c
4596 * girepository/girepository.h
4597 * girepository/gmetadata.c
4598 * girepository/gmetadata.h
4600 * tools/gidlparser.c
4601 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4602 to avoid confusion with the interface blob.
4605 * tools/gidlparser.c
4606 Remove magic numbers and replace with type-tag
4607 enumeration symbols.
4609 * girepository/gmetadata.c
4610 Add validate declaration.
4612 2008-03-10 Jürg Billeter <j@bitron.ch>
4614 * tools/gidlparser.c: (parse_type_internal):
4615 * tools/scannerlexer.l:
4616 * tools/scannerparser.y:
4617 Support C99 _Bool type in scanner.
4619 2008-03-10 Jürg Billeter <j@bitron.ch>
4621 * tests/parser/Foo-expected.gidl:
4622 * tests/parser/foo-object.h:
4623 * tests/parser/foo.c: (foo_enum_method):
4624 * tools/scanner.c: (g_igenerator_process_function_symbol):
4625 Don't skip functions that are defined in the namespace of a type
4626 that doesn't support methods, as for example enums.
4628 2008-03-10 Johan Dahlin <johan@gnome.org>
4630 * gidl.dtd: Remove, we're using relaxng for now
4632 * tests/parser/Foo-expected.gidl:
4633 * tests/parser/foo-object.h:
4634 * tests/parser/foo.c:
4635 Rename the enum/flags get_type functions to include the whole type.
4637 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4639 * tools/gidlwriter.c (enum_generate): added "type-name",
4640 "get-type" and "deprecated" missing arguments.
4641 * tests/parser/Foo-expected.gidl:
4642 * tests/parser/foo-object.h: test enum type, and no type.
4644 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4647 Consistent checks, add missing 'test'
4649 2008-03-05 Havoc Pennington <hp@redhat.com>
4651 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4652 does on Fedora 8. Make libffi a hard requirement, since it was in
4653 practice anyway (was not really conditional in the code or
4654 makefile, only in configure).
4656 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4658 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4659 reviewed by: Johan Dahlin <johan@gnome.org>
4661 * tests/Makefile.am:
4662 * tests/roundtrips.sh:
4663 Modify the roundtrips test so that they do not use the
4664 --raw option of the gidl compiler but instead compile a
4665 shared library to use with g_module.
4667 * tests/invoke/Makefile.am:
4668 * tests/invoke/invoke.c:
4669 Modify the invoke tests to build a shared library rather
4670 than use the --raw option.
4672 * tests/invoke/invoke-namespace-find.sh: Removed:
4673 Noone knows why this was here, so removed.
4675 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4677 * tools/scanner.c: (g_igenerator_process_function_symbol):
4678 Move g_idl_node_can_have_member test later, as it broke spotting
4679 get_type's for nodes that can't have members.
4681 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4684 * tools/gidlnode.c: (g_idl_node_can_have_member):
4685 Add g_idl_node_can_have_member.
4687 * tools/scanner.c: (g_igenerator_process_function_symbol):
4688 Use g_idl_node_can_have_member to test if we should add a function
4689 as a member of the type node.
4691 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4693 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4695 * tests/parser/Makefile.am:
4696 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4698 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4700 * tools/scanner.c: (main):
4701 Ignore -pthread when passed to g-idl-scanner.
4703 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4705 * tools/grealpath.h: Added:
4706 * tools/scanner.c: (main):
4707 * tools/scannerlexer.l:
4708 * tools/Makefile.am:
4709 Always use absolute paths with symbolic links resolved when
4710 comparing filenames.
4712 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4714 * gobject-introspection.pc.in:
4715 Provide variables for g-idl-parser, scanner and compiler in the
4718 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4721 * girepository/Makefile.am:
4722 * tools/Makefile.am:
4723 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4725 2008-02-10 Johan Dahlin <johan@gnome.org>
4727 * tests/parser/Foo-expected.gidl:
4728 * tests/parser/foo-object.h:
4729 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4730 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4733 2008-02-10 Johan Dahlin <johan@gnome.org>
4735 * tests/parser/Foo-expected.gidl:
4736 * tests/parser/foo-object.h:
4737 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4738 Add enum and flags test.
4740 2008-02-10 Johan Dahlin <johan@gnome.org>
4744 * girepository/Makefile.am:
4745 Make 'make distcheck' work again.
4747 2008-02-10 Johan Dahlin <johan@gnome.org>
4749 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4752 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4753 check, eg exclude it from BUILT_SOURCES.
4755 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4760 * girepository/Makefile.am:
4761 * m4/Makefile.am: Added:
4762 * m4/as-compiler-flag.m4: Added:
4763 * m4/gcov.m4: Added:
4764 * tools/Makefile.am:
4765 Add ability to generate a coverage report.
4766 Adds configure option --enable-gcov and make rule 'check-coverage'.
4768 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4772 * gidl/Makefile.am: Added:
4773 * girepository/Makefile.am: Added:
4774 * src/Makefile.am: Renamed to tools/Makefile.am:
4775 * src/compiler.c: Renamed to tools/compiler.c:
4776 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4777 * src/generate.c: Renamed to tools/generate.c:
4778 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4779 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4780 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4781 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4782 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4783 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4784 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4785 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4786 * src/ginfo.c: Renamed to girepository/ginfo.c:
4787 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4788 * src/girepository.c: Renamed to girepository/girepository.c:
4789 * src/girepository.h: Renamed to girepository/girepository.h:
4790 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4791 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4792 * src/scanner.c: Renamed to tools/scanner.c:
4793 * src/scanner.h: Renamed to tools/scanner.h:
4794 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4795 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4796 * tests/invoke/Makefile.am:
4797 Split src/ into girepository/ and tools/
4801 * girepository/Makefile.am:
4802 * tests/Makefile.am:
4803 * tests/invoke/Makefile.am:
4804 * tests/parser/Makefile.am:
4805 * tests/roundtrips.sh:
4806 * tools/Makefile.am:
4807 Make distcheck work.
4809 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4811 * tests/invoke/invoke.c: (main):
4812 * tests/invoke/testfns.c: (test6), (test7):
4813 * tests/invoke/testfns.xml:
4814 Add tests for invokation with a GList argument.
4815 Also tests caller-owns return values.
4817 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4820 Add some documentation for GICallableInfo
4822 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4825 Correct syntax errors in the DTD file.
4827 * relaxng/c-types.xml:
4828 * relaxng/g-types.xml:
4830 Add a RelaxNG specification for the GObject Introspection XML data.
4831 The Specification has validated all of the test files.
4833 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4835 * tests/roundtrips.sh:
4836 * tests/struct.test:
4837 Add roundtrip tests for structs.
4839 2008-01-11 Johan Dahlin <johan@gnome.org>
4841 * src/scanner.c (g_igenerator_process_function_symbol):
4842 Refactor out g_idle_node_add_member.
4843 (create_node_from_gtype, create_node_from_ctype):
4844 Use case instead of if...else
4845 (get_type_from_type_id):
4846 Rename to create_node_from_gtype
4847 (get_type_from_ctype):
4848 Rename to create_node_from_ctype
4850 Rename ginode -> node, gitype -> type, gifunc -> func.
4852 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4853 Two new functions, refactor out of scanner.c
4855 * src/scanner.c: (g_igenerator_process_function_symbol):
4856 * src/scannerlexer.l:
4857 Do not save the content of the deprecated variable, only
4860 2008-01-11 Johan Dahlin <johan@gnome.org>
4862 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4864 2008-01-11 Jürg Billeter <j@bitron.ch>
4866 * src/scannerlexer.l:
4867 Fix GTK-Doc parsing.
4869 2008-01-11 Jürg Billeter <j@bitron.ch>
4871 * src/scannerlexer.l:
4872 Fix GTK-Doc parsing.
4874 2008-01-11 Jürg Billeter <j@bitron.ch>
4876 * src/scanner.c: (lookup_symbol):
4877 Return unresolved name if we find unknown symbol.
4879 2008-01-11 Jürg Billeter <j@bitron.ch>
4881 * src/scanner.c: (g_igenerator_generate):
4882 Initialize GObject to fix scanning interface properties.
4884 * tests/parser/Foo-expected.gidl:
4885 * tests/parser/foo-object.h:
4886 * tests/parser/foo.c: (foo_interface_get_type):
4887 Test interfaces with GObject prerequisite.
4889 * tests/parser/Makefile.am:
4890 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4892 2007-12-27 Johan Dahlin <johan@gnome.org>
4894 * src/scannerlexer.l:
4895 Parse gtk-doc comments.
4897 * src/gidlwriter.c: (function_generate):
4898 Reorganize, avoid duplication and add support for
4899 writing deprecated functions.
4901 * src/scannerparser.y:
4903 Add new structure CDirective and functions to create/free them.
4905 * src/scanner.c: (g_igenerator_process_function_symbol),
4906 (g_igenerator_process_unregistered_struct_typedef),
4907 (g_igenerator_process_struct_typedef),
4908 (g_igenerator_process_union_typedef),
4909 (g_igenerator_process_enum_typedef),
4910 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4911 (g_igenerator_start_preprocessor):
4912 Parse @deprecated directive for functions.
4913 Remove some more C99isms.
4914 Send in -C to cpp to avoid stripping comments.
4916 * tests/parser/foo-object.h:
4917 * tests/parser/Foo-expected.gidl:
4918 Add deprecated directive
4920 2007-12-27 Johan Dahlin <johan@gnome.org>
4922 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4923 escape ' and " so it looks more like C.
4926 Unlink temporary file used.
4928 2007-12-27 Johan Dahlin <johan@gnome.org>
4930 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4931 (g_igenerator_start_preprocessor), (main):
4933 * src/scannerparser.y:
4934 Plug a couple of simple memory leaks.
4936 2007-12-27 Johan Dahlin <johan@gnome.org>
4938 * src/scanner.c: (g_igenerator_parse_macros),
4939 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4942 * src/scannerparser.y:
4943 * tests/parser/Makefile.am:
4945 Improve error reporting, return when the preprocessor fails.
4946 Add a verbose parameter, to aid debugging.
4947 Revert to using a temporary file to communicate between the
4948 preprocessor and the parser, because we need to wait for
4949 the exit code from the pre-processor before starting to parse.
4951 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4953 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4954 cparser.y to scannerparser.y
4956 2007-12-11 Johan Dahlin <johan@gnome.org>
4960 * src/scanner.c: (g_igenerator_new):
4962 Get rid of the global the_generator variable.
4964 2007-12-10 Johan Dahlin <johan@gnome.org>
4966 * src/scanner.c (main): Add an output option,
4967 add checks for required parameters
4970 set BUILD_SOURCES and CLEANFILES properly
4972 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4973 (g_writer_write_indent), (g_writer_write_unindent),
4974 (field_generate), (value_generate), (constant_generate),
4975 (property_generate), (function_generate), (vfunc_generate),
4976 (signal_generate), (interface_generate), (struct_generate),
4977 (union_generate), (boxed_generate), (enum_generate),
4978 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4980 * src/scanner.c: (g_igenerator_generate):
4982 * src/scannerwriter.c:
4984 Refactor scannerwriter to only be tied to a GIdlModule and move
4985 it (again!) to gidlwriter.c. Change the writer function to take
4988 2007-12-10 Johan Dahlin <johan@gnome.org>
4991 * src/scanner.c: (g_igenerator_generate):
4993 * src/scannerwriter.c: (g_igenerator_write_inline),
4994 (g_igenerator_write), (g_igenerator_write_indent),
4995 (g_igenerator_write_unindent), (field_generate), (value_generate),
4996 (constant_generate), (property_generate), (function_generate),
4997 (vfunc_generate), (signal_generate), (interface_generate),
4998 (struct_generate), (union_generate), (boxed_generate),
4999 (enum_generate), (node_generate), (module_generate),
5000 (g_scanner_write_file):
5002 Move the scanner gidl writing to a separate source file.
5004 2007-12-10 Johan Dahlin <johan@gnome.org>
5009 Move over all CType construction functions.
5011 * tests/parser/Makefile.am:
5012 Be verbose when printing parsing tests results.
5014 2007-12-10 Johan Dahlin <johan@gnome.org>
5016 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5017 preprocessor handling to here. Start cpp insteado of cc -E,
5018 always include -U__GNUC__, since it's specific to the preprocessor
5021 * tests/parser/Makefile.am (check-local): Silent diff and skip
5022 -U__GNUC__ which is always defined now
5024 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5026 reviewed by: <delete if not using a buddy>
5028 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5029 * tests/parser/Makefile.am:
5031 2007-12-09 Johan Dahlin <johan@gnome.org>
5034 Use GOption for command line options.
5035 (g_igenerator_new, main): Simplify constructor and they way
5036 parameters are passed into it.
5042 * src/gen-introspect.c:
5043 * src/gen-introspect.h:
5045 Rename gen-introspect.[ch] to scanner.[ch]
5047 2007-12-09 Johan Dahlin <johan@gnome.org>
5051 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5052 don't make the repository library and the other utilites link against
5055 * src/gen-introspect.c: (g_igenerator_create_object),
5056 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5057 (g_igenerator_create_enum), (g_igenerator_create_flags),
5058 (g_igenerator_process_module_symbol),
5059 (g_igenerator_process_module), (g_igenerator_generate), (main):
5060 * src/gen-introspect.h:
5061 Refactor g_igenerator_process_types into smaller pieces.
5063 * tests/parser/Makefile.am:
5064 Depend on the gen-introspect binary
5066 2007-12-09 Johan Dahlin <johan@gnome.org>
5068 * src/gen-introspect.c (g_igenerator_process_types):
5069 Break into smaller pieces, one for each generated node type.
5071 2007-12-08 Johan Dahlin <johan@gnome.org>
5073 * src/gen-introspect.c: (g_igenerator_process_types),
5074 (g_igenerator_add_module):
5075 * tests/parser/Foo-expected.gidl:
5076 * tests/parser/foo-object.h:
5077 * tests/parser/foo.c: (foo_subobject_class_init),
5078 (foo_subobject_init):
5080 Add a subobject test and make sure to register defined classes
5081 in the lookup symbol hash table.
5083 2007-12-08 Johan Dahlin <johan@gnome.org>
5087 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5088 (g_igenerator_process_types), (g_igenerator_add_module),
5089 (g_igenerator_add_include_idl), (main):
5090 * src/gen-introspect.h:
5091 * tests/parser/Makefile.am:
5092 * tests/parser/Foo-expected.gidl:
5094 Change the gen-introspect to generate namespaced module names,
5095 such as GLib.Object instead of GObject.
5096 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5097 add a --include-idl parameter to gen-introspect,
5098 and update the parser test.
5100 2007-12-08 Johan Dahlin <johan@gnome.org>
5102 * src/gen-introspect.c:
5103 Move main to the end of the file and attempt to make it valid
5106 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5107 we're not quite ready to generate metadata yet.
5112 Add a simple gen-introspect parser test
5114 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5116 reviewed by: Johan Dahlin <johan@gnome.org>
5119 * gobject-introspection.pc.in:
5121 * src/compiler.c: (format_output), (write_out_metadata), (main):
5122 * src/gen-introspect.c: (main):
5123 * src/gen-introspect.h:
5124 * src/generate.c: (write_callable_info), (write_repository),
5125 (load_metadata), (main):
5126 * src/gidlmodule.c: (g_idl_module_new),
5127 (g_idl_module_build_metadata):
5129 * src/gidlparser.c: (start_element_handler):
5130 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5131 (g_base_info_get_name), (g_base_info_get_namespace),
5132 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5133 (g_base_info_get_metadata), (g_function_info_get_symbol),
5134 (g_function_info_get_flags), (g_function_info_get_property),
5135 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5136 (g_callable_info_may_return_null),
5137 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5138 (g_callable_info_get_arg), (g_arg_info_get_direction),
5139 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5140 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5141 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5142 (g_type_info_get_tag), (g_type_info_get_param_type),
5143 (g_type_info_get_interface), (g_type_info_get_array_length),
5144 (g_type_info_is_zero_terminated),
5145 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5146 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5147 (g_value_info_get_value), (g_field_info_get_flags),
5148 (g_field_info_get_size), (g_field_info_get_offset),
5149 (g_registered_type_info_get_type_name),
5150 (g_registered_type_info_get_type_init),
5151 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5152 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5153 (find_method), (g_struct_info_find_method),
5154 (g_enum_info_get_n_values), (g_enum_info_get_value),
5155 (g_object_info_get_parent), (g_object_info_get_type_name),
5156 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5157 (g_object_info_get_interface), (g_object_info_get_n_fields),
5158 (g_object_info_get_field), (g_object_info_get_n_properties),
5159 (g_object_info_get_property), (g_object_info_get_n_methods),
5160 (g_object_info_get_method), (g_object_info_find_method),
5161 (g_object_info_get_n_signals), (g_object_info_get_signal),
5162 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5163 (g_object_info_get_n_constants), (g_object_info_get_constant),
5164 (g_interface_info_get_n_prerequisites),
5165 (g_interface_info_get_prerequisite),
5166 (g_interface_info_get_n_properties),
5167 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5168 (g_interface_info_get_method), (g_interface_info_find_method),
5169 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5170 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5171 (g_interface_info_get_n_constants),
5172 (g_interface_info_get_constant), (g_property_info_get_flags),
5173 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5174 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5175 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5176 (g_constant_info_get_value), (g_union_info_get_n_fields),
5177 (g_union_info_get_field), (g_union_info_get_n_methods),
5178 (g_union_info_get_method), (g_union_info_is_discriminated),
5179 (g_union_info_get_discriminator_offset),
5180 (g_union_info_get_discriminator):
5181 * src/ginvoke.c: (g_function_info_invoke):
5182 * src/girepository.c: (g_irepository_register),
5183 (g_irepository_unregister), (g_irepository_get_default),
5184 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5185 (g_irepository_get_info), (g_irepository_find_by_name),
5186 (g_irepository_get_shared_library),
5187 (g_irepository_build_search_path), (g_irepository_register_file),
5188 (g_irepository_error_quark):
5189 * src/girepository.h:
5190 * src/gmetadata.c: (g_metadata_get_dir_entry),
5191 (g_metadata_check_sanity), (validate_header),
5192 (validate_array_type_blob), (validate_iface_type_blob),
5193 (validate_param_type_blob), (validate_error_type_blob),
5194 (validate_type_blob), (validate_arg_blob),
5195 (validate_signature_blob), (validate_function_blob),
5196 (validate_callback_blob), (validate_constant_blob),
5197 (validate_value_blob), (validate_field_blob),
5198 (validate_property_blob), (validate_signal_blob),
5199 (validate_vfunc_blob), (validate_struct_blob),
5200 (validate_enum_blob), (validate_object_blob),
5201 (validate_interface_blob), (validate_errordomain_blob),
5202 (validate_union_blob), (validate_blob), (validate_directory),
5203 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5204 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5205 (g_metadata_new_from_mapped_file), (g_metadata_free),
5206 (g_metadata_set_module), (g_metadata_get_namespace):
5208 * tests/Makefile.am:
5209 * tests/invoke/Makefile.am:
5210 * tests/invoke/invoke-namespace-find.sh:
5211 * tests/invoke/invoke.c: (main):
5213 Add a namespace/shared library mapping. fixes #313268.
5215 2007-12-03 Johan Dahlin <johan@gnome.org>
5217 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5220 2007-11-30 Jürg Billeter <j@bitron.ch>
5226 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5227 (g_igenerator_write_inline), (g_igenerator_write),
5228 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5229 (field_generate), (value_generate), (constant_generate),
5230 (property_generate), (function_generate), (vfunc_generate),
5231 (signal_generate), (interface_generate), (struct_generate),
5232 (union_generate), (boxed_generate), (enum_generate),
5233 (node_generate), (module_generate), (get_type_from_type_id),
5234 (str_replace), (g_igenerator_process_properties),
5235 (g_igenerator_process_signals), (g_igenerator_process_types),
5236 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5237 (g_igenerator_process_unregistered_struct_typedef),
5238 (g_igenerator_process_struct_typedef),
5239 (g_igenerator_process_union_typedef),
5240 (g_igenerator_process_enum_typedef),
5241 (g_igenerator_process_function_typedef),
5242 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5243 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5244 (g_igenerator_generate), (main), (csymbol_new),
5245 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5246 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5247 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5248 (eat_hspace), (eat_line), (read_identifier),
5249 (g_igenerator_parse_macros):
5250 * src/gen-introspect.h:
5252 Import gen-introspect to generate introspection information by
5255 2007-11-30 Jürg Billeter <j@bitron.ch>
5257 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5259 2007-11-30 Jürg Billeter <j@bitron.ch>
5261 * src/gidlparser.c: (end_element_handler): Don't leave requires
5264 2007-11-29 Johan Dahlin <johan@gnome.org>
5266 * src/gidlparser.c (parse_type_internal): Add char,
5267 gchar and guchar to the builtin types.
5269 2007-11-26 Johan Dahlin <johan@gnome.org>
5271 * src/ginfo.c: (g_object_info_get_type_name),
5272 (g_object_info_get_type_init):
5273 * src/girepository.c: (g_irepository_is_registered):
5274 * src/girepository.h:
5276 Add g_object_info_get_type_name, g_object_info_get_type_init and
5277 g_irepository_is_registered.
5279 2006-08-14 Jürg Billeter <j@bitron.ch>
5281 * src/gidlparser.c: (end_element_handler): Don't leave
5282 namespace and implements states too early.
5285 2007-11-26 Johan Dahlin <johan@gnome.org>
5287 * src/gmetadata.c (validate_struct_blob):
5288 pass blob_type to validate_function_blob instead of
5289 hard-coding BLOB_TYPE_STRUCT.
5291 Patch by Torsten Schoenfeld, fixes #314190
5293 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5295 * src/compiler.c, src/generate.c, src/gidlnode.c,
5296 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5297 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5298 warnings about return values, signedness mismatches, unused
5299 variables, and unhandles enum values in switch statements.
5301 * tests/invoke/Makefile.am: Don't install the invoke test program.
5302 Add -I ../../src to the cflags used for the test functions files.
5304 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5306 * src/girepository.h: Export g_invoke_error_quark.
5308 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5310 * src/ginvoke.c: Remove the fallback implementation of
5311 g_function_info_invoke since we now formally depend on libffi.
5313 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5315 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5316 Remove these files from cvs, as they are now generated.
5318 * src/gmetadata.c (validate_iface_type_blob): Don't
5319 complain if blob->pointer is not set, since that
5320 happens for enum and flag types. (#308935, Gustavo
5323 * Commit an autoconf-conversion patch by
5324 Gustavo Carneiro (#308708)
5326 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5328 * src/compiler.c (main): Use it here to validate
5329 the generated metadata.
5331 * src/gmetadata.[hc]: Add code to validate a
5334 * metadata-format.txt: Updates
5336 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5338 * tests/*: Add struct offsets to field and vfunc
5341 * src/generate.c (write_vfunc_info): Write offset
5342 information for vfuncs.
5344 * src/gidlnode.c (g_idl_node_build_metadata): Write
5345 the struct offsets into the metadata.
5347 * src/gidlparser.c: Parse the offset attributes of
5348 field and vfunc elements.
5350 * src/gidlnode.h: Add offset members to field and
5353 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5357 * gidl.dtd: Updates.
5359 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5360 file, creates, compiles and runs a C file, and folds the
5361 resulting struct offsets back into the .gidl file.
5363 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5365 * src/gidlparser.c (start_field): Make fields in objects
5368 * src/gidlmodule.c: Include string.h
5373 * metadata-format.txt: Cleanup basic types.
5374 * src/*: Adapt to the changes.
5375 * tests/*: Adapt to the changes.
5376 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5378 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5379 size for enum blobs.
5380 (g_idl_node_get_full_size): Report the correct size for
5383 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5384 error checking for blob sizes.
5386 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5388 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5389 interface types for which is_pointer is FALSE, e.g. enums.
5391 * src/gidlnode.c (g_idl_node_get_full_size)
5392 * src/gidlparser.c (parse_type_internal):
5393 * src/generate.c (write_type_info): Support unspecialized
5394 lists, hashtables and errors. Also emit a '*' after these.
5398 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5402 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5404 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5406 * src/*.c: Change the directory to be addressed by
5407 1-based indexes, and use an index of zero to mean
5410 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5412 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5414 * tests/union.test: Add a union test.
5416 * src/generate.c: Handle unions.
5418 * src/girepository.h:
5419 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5421 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5423 * src/gidlparser.c (start_union): Parse <union> elements.
5425 * src/gidlnode.h: Add a GIdlNodeUnion.
5427 * gidl.dtd: Add a <union> element.
5429 * src/gmetadata.c (g_metadata_check_sanity): Check
5432 * src/gmetadata.h: Add union_blob_size to Header,
5435 * metadata-format.txt: Add a UnionBlob.
5437 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5439 * tests/*: Update testcases.
5441 * src/generate.c (write_callable_info): Don't forget to
5442 write transfer and null-ok attributes for return types
5445 * src/girepository.h:
5446 * src/ginfo.c (g_callable_info_may_return_null):
5447 New function to find out if a function may return NULL.
5449 * src/compiler.c (format_output): Make the generated
5452 * README: Point to a recent libffi snapshot.
5454 * tests/invoke/*: Some invoke tests.
5456 * src/Makefile: Add ginvoke.c and the necessary
5459 * src/girepository.h (g_function_info_invoke): Add
5462 * src/ginvoke.c (g_function_info_invoke): Initial
5463 implementation of invoke functionality based on libffi.
5465 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5466 strings and types hash tables in the right order when
5468 (find_entry_node): Free the name parts.
5470 2005-05-12 Johan Dahlin <johan@gnome.org>
5472 * src/generate.c: Generate consistent end tags.
5476 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5480 * src/gidlparser.c (start_function): Actually add
5481 methods to objects. (Steven Walter)
5483 * src/girepository.h:
5484 * src/ginfo.c: Rename Transfer and Direction to
5485 GITransfer and GIDirection. (Torsten Schoenfeld)
5487 * tests/*: Make tests work with the changes in name
5490 * src/gidlnode.c (find_entry_node): Parse qualified
5491 names and generate xref nodes for them if needed. Don't
5492 require all modules to be loaded any more.
5494 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5497 * src/ginfo.c (g_object_info_get_parent): Return NULL
5498 if blob->parent is 0. Still need to make sure index
5501 * src/generate.c: Generate qualified names when
5502 referring to non-local types. Emit transfer attribute
5505 * src/compiler.c (format_output): Put the function
5506 attributes where gcc accepts them.
5508 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5510 * src/compiler.c (main): Add a --verbose cmdline option
5511 and only log messages if it is specified.
5514 * src/gidlnode.c (init_stats, dump_stats): Collect some
5515 statistics on string and type sharing.
5517 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5518 g_message() instead of fprintf().
5520 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5521 (g_idl_node_get_size): Implement for structs.
5522 (g_idl_node_get_full_size): Handle parent being NULL.
5523 (serialize_type): Handle lookup failures more gracefully.
5525 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5527 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5528 size calculation for 2-parameter types and for objects.
5530 * src/compiler.c: Add a cmdline option for debug output
5531 and install a log handler to implement it.
5532 * src/gidlnode.c: Add some debug spew.
5536 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5537 forget to count the module name when calculating the
5538 required size for the metadata.
5541 * src/gidlparser.c: Fix compiler warnings.
5543 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5545 * src/compiler.c (main): Free the option context.
5547 * gidl.dtd: Clean up handling of names. All elements
5548 have a "name", only the elements corresponding to
5549 actual callable functions (function, method, constructor),
5550 have an additional "symbol" attribute holding the
5551 dlsym()-able function name.
5553 * src/generate.c: Adapt to generate xml matching the
5557 * src/gidlnode.c: Adapt to parse the new dtd.
5559 * tests/*.test: Adjust to the new dtd.
5561 * metadata-format.txt:
5562 * src/gmetadata.h: Remove the short_name field
5564 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5565 * src/girepository.h:
5566 * src/ginfo.c (g_value_info_get_short_name): Removed
5568 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5570 * gidl.dtd: Allow constructors for boxed types,
5571 patch by Jonathan Blandford.
5574 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5576 * --- Initial import ---