1 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
3 Bug 563998 – Cache the GIBaseInfo for GTypes
5 * girepository/girepository.c (g_irepository_find_by_gtype):
6 add a cache of GType -> GIBaseInfo.
8 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
10 Bug 562545 – Add function taking / returning GValue
12 * tests/everything/everything.[ch]: add a test of function taking and
13 returning "const GValue *"
15 2008-12-09 Johan Dahlin <johan@async.com.br>
17 * giscanner/cachestore.py (CacheStore.store): Use
18 shutil.move instead of os.rename, since it will
19 automatically fall back to copying+remove if the
20 src directory is on a different partition from
23 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
25 Bug 563742 – introspection should record the introduced version of
26 symbols marked with the "Since:" tag
31 * giscanner/girwriter.py:
32 * giscanner/scannerlexer.l:
33 * giscanner/transformer.py:
34 * tests/scanner/annotation-1.0-expected.gir:
35 * tests/scanner/annotation-1.0-expected.tgir:
36 * tests/scanner/annotation.c (annotation_versioned):
37 * tests/scanner/annotation.h:
39 2008-12-08 Johan Dahlin <johan@async.com.br>
41 * giscanner/cachestore.py (_get_cachedir): Don't require
42 HOME to be set and if it set, don't require the
45 2008-12-08 Johan Dahlin <johan@async.com.br>
47 * giscanner/cachestore.py (CacheStore.store): Dump the cache
48 file to a temporary file and rename it the expected filename
49 only when it's completely written.
50 This should make the cache more roboust when run in parallel,
51 and hopefully avoid triggering bugs in Python.
53 2008-12-03 Christophe Fergeau <teuf@gnome.org>
55 Bug 562971 – g-ir-scanner failure on libgpod headers
57 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
58 default 16384. Without it, the lexer was aborting with a cryptic
59 error message on source files containing really long comment
62 2008-12-01 Colin Walters <walters@verbum.org>
64 * girepository/gfield.c: Fix memory leak; unref type info we
65 created, not field info
67 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
69 Bug 562289 – Race when removing invalid cache
71 * giscanner/cachestore.py:
72 ENOENT is mapped to a OSError, not IOError.
74 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
76 * gir/glib-2.0.c: Add return value transfer annotation
77 for g_markup_escape_text.
79 2008-11-25 Colin Walters <walters@verbum.org>
81 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
83 * giscanner/dumper.py: Implement it.
84 * gir/Makefile.am, tests/**/Makefile.am: Use it.
86 2008-11-25 Colin Walters <walters@verbum.org>
88 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
89 to just use a Makefile rule and dependencies. This corresponds with a change
90 made to gir-repository to fix srcdir != builddir issues.
92 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
95 Post release version bump
98 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
103 2008-11-25 Colin Walters <walters@verbum.org>
105 Bug 559705 – Missing association between static methods and classes
107 * docs/typelib-format.txt:
108 * girepository/ginfo.c (g_function_info_get_flags):
109 * girepository/girmodule.c (g_ir_module_build_typelib):
110 * girepository/girnode.c (g_ir_node_get_size),
111 (g_ir_node_build_typelib):
112 * girepository/girparser.c (start_function):
113 * girepository/gtypelib.c (g_typelib_check_sanity),
114 (validate_header), (validate_function_blob):
115 * girepository/gtypelib.h:
117 * giscanner/girwriter.py:
118 * giscanner/glibtransformer.py:
119 * tests/scanner/foo-1.0-expected.gir:
120 * tests/scanner/foo-1.0-expected.tgir:
121 * tests/scanner/foo.h:
123 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
125 * giscanner/ast.py: Define socklen_t as an alias for int32.
127 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
129 * girepository/gdump.c (dump_type): Remove a warning,
130 be less verbose on error on fundamental types.
132 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
134 * giscanner/dumper.py: Add license headers,
135 refactor into a class, avoid some duplication and do some
136 extra pedantic checks.
138 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
140 Make it compilable with -Werror on my system by adding
141 a couple of prototypes and including headers.
143 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
145 Bug 562022 – gobject-introspection needs python headers
147 * configure.ac: fail without python headers present.
150 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
152 Bug 561617 – Return value array annotations
154 * giscanner/transformer.py:
155 * tests/scanner/annotation.c (annotation_return_array):
156 * tests/scanner/annotation.h:
157 Add support for (array) for return value annotations as well.
159 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
161 * tests/everything/everything.[ch]: add a test function which calls a
164 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
166 * giscanner/cachestore.py:
167 Catch ValueError exceptions.
169 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
171 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
173 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
175 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
176 instead of hard-coding struct sizes.
178 2008-11-18 Owen Taylor <otaylor@redhat.com>
180 Bug 561296 - Add "storage type" to the typelib data for enums
182 In order to set and get enum and flag fields in structures, we need
183 to know the integral type that the enumeration is stored as. We are already
184 computing that at compile time in order to compute struct offsets, so the
185 easiest thing to do is to save that in the typelib.
187 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
188 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
189 and compute and save it at compile time.
191 * girepository/girepository.h girepository/ginfo.c:
192 Add g_enum_info_get_storage_type().
194 * girepository/gfield.c: Implement reading and writing enum and flags fields
195 based on the storage type.
197 2008-11-18 Owen Taylor <otaylor@redhat.com>
199 Add enums to the Everything test module
201 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
202 test module and register them as GTypes.
204 https://bugzilla.gnome.org/show_bug.cgi?id=561296
206 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
208 * giscanner/cachestore.py:
209 Catch BadPickleGet exceptions as well.
211 2008-11-17 Owen Taylor <otaylor@redhat.com>
213 * tests/everything/everything.c: Fix doc comment annotations
214 for test_struct_b_clone() to refer to the right function.
216 2008-11-17 Dan Winship <danw@gnome.org>
218 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
219 spelling of GHashTable. #561135
221 * tests/scanner/annotation.c (annotation_object_get_hash):
222 * tests/scanner/annotation-1.0-expected.gir:
223 * tests/scanner/annotation-1.0-expected.tgir: add a test of
224 GHashTable annotations
226 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
228 * giscanner/ast.py: Change string array match type to be in terms
229 of canonicalized type.
230 * giscanner/transformer.py: Add canonicalize_ctype which gives us
231 a version of a c:type without aliases, so we can deep canonicalize
232 char** to utf8*. Update parse_ctype to use it.
233 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
235 2008-11-16 Colin Walters <walters@verbum.org>
237 * girepository/girepository.c: Ensure we always call init_globals,
238 even if passed a non-default repository.
240 2008-11-16 Colin Walters <walters@verbum.org>
242 Bug 559706 - Interface prerequisites
244 * common.mk: Dep on libgirepository.la for scanner libs so that
245 we rebuild things even if just gdump.c changes.
246 * girepository/gdump.c: Dump prerequisites.
247 * giscanner/ast.py: Add prerequisite list.
248 * giscanner/girparser.py: Parse them from gdump.
249 * giscanner/girwriter.py: Write them.
250 * giscanner/glibtransformer.py: Resolve them.
253 2008-11-16 Owen Taylor <otaylor@redhat.com>
255 Bug 561087 - Respect is_pointer in serialize_type()
257 Add a '*' to the serialization for the cases where we set is_pointer
258 in the type blob we write out depending on node->is_pointer. Don't
259 add the '*' in the cases where is_pointer is set or not set in a
262 http://bugzilla.gnome.org/show_bug.cgi?id=561087
264 2008-11-16 Owen Taylor <otaylor@redhat.com>
266 Bug 560825 – Add size and alignment to typelib
268 Include the size and alignment of structures and unions in the typelib,
269 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
271 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
272 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
273 to StructBlob and UnionBlob.
275 * girepository/ginfo.c girepository/girepository.h:
276 Add g_[struct|union]_get[size|alignment]().
278 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
280 2008-11-16 Owen Taylor <otaylor@redhat.com>
282 Bug 552371 – implement struct field get/set
284 * girepository/gfield.c girepository/girepository.h: Add
285 convenience functions g_field_info_set_field() and
286 g_field_info_get_field() to set and get fields based on the
287 offsets in GIFieldInfo.
289 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
291 Bug 560241 - Out-arguments should not be marked as being pointers
294 * girepository/girparser.c: Improved logic for out arguments.
296 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
298 Bug 559601 - Pointers in structs/unions unduly treated as arrays
300 * giscanner/transformer.py: Differentiate type creation logic
301 between parameters and struct components.
303 2008-11-15 Colin Walters <walters@verbum.org>
305 * giscanner/dumper.py: Check return code from pkg-config
308 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
310 * tests/everything/everything.c (test_array_int_in),
311 (test_array_gtype_in):
312 * tests/everything/everything.h:
313 Rename the int/gtype array tests. Make the return value
314 useful, an aggregation of the array input values.
316 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
318 * tests/everything/Makefile.am:
319 * tests/everything/everything.c:
320 * tests/everything/everything.h:
321 * tests/everything/gitesttypes.c:
322 * tests/everything/gitesttypes.h:
323 Rename gitesttypes.[ch] to everything.[ch]
325 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
327 Bug 560708 – Don't treat arrays that have a length specified as
328 zero-terminated by default
330 * giscanner/transformer.py: Default to non zero terminated for
332 * tests/*: Update, add test for zero vs not.
334 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
336 Bug 557788 - Return types for constructors in generated typelib bogus
338 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
339 obviously broken in the face of duplicate names in different
341 * tests/scanner/*expected.gir: Fix up.
343 2008-11-13 Owen Taylor <otaylor@redhat.com>
345 * girepository/girffi.c: Fix "Unexpected time for time_t"
348 2008-11-13 Colin Walters <walters@verbum.org>
350 Bug 558436 - avoid having scanner load app code
352 * giscanner/cgobject.py: Delete; we no longer load shared
354 * giscanner/dumper.py: Support for linking a library to
355 a stub binary for introspection.
356 * giscanner/glibtransformer.py: Rewrite to use gdump XML
357 from invocation of child binary.
358 * giscanner/transformer.py: Fix up to use fully qualified
359 name in parse tree. Make parse_ctype public so we can use
360 it inside glibtransformer.
361 * tests/scanner/barapp.c: New test, using --program arg
363 * tests/*: Update to use common.mk for invoking scanner.
364 * tools/g-ir-scanner: Add options --program, --program-arg,
366 * docs/g-ir-scanner.1: Update.
368 2008-11-13 Colin Walters <walters@verbum.org>
370 * configure.ac: Depend on Gio, we use it in gdump.c.
371 * girepository/gdump.c: Code to dump GType data to XML.
372 * girepository/girepository.c: Add option group for dumping.
373 * girepository/girepository.h: Define API for the above.
375 2008-11-13 Colin Walters <walters@verbum.org>
377 * common.mk: Add a file to include with Makefile fragments
378 useful for scanner invocation.
380 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
382 * tests/everything/gitesttypes.c (test_filename_return): Return
383 strings in filename encoding.
385 2008-11-13 Owen Taylor <otaylor@redhat.com>
387 Bug 560253 – Add structure and boxed types to Everything test module
389 * tests/everything/gitesttypes.[ch]: Add examples of:
391 Plain old data structs
392 Plain old data structs with nested fields
394 Plain old data boxed with nested fields
395 More complicated boxed types with internal state
397 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
399 * tests/everything/gitesttypes.c (test_gtype_in):
400 * tests/everything/gitesttypes.h:
401 Add a test of GType arrays, a la gtk_list_store_set_columns.
403 2008-11-12 Owen Taylor <otaylor@redhat.com>
405 Bug 560419 – Cache includes when parsing
407 Keep track of all modules parsed within a GIrParser, and when a
408 module is referenced a second time, use the existing parsed copy
409 instead of reparsing.
411 2008-11-12 Owen Taylor <otaylor@redhat.com>
413 Fix management of ParseContext.includes_modules (#560419)
415 * girepository/girparser.c: Fix some trivial bugs in managing the
416 list of include modules. (Add to module's list twice, not
417 initialized to NULL, not freed.)
419 2008-11-12 Owen Taylor <otaylor@redhat.com>
421 Keep aliases and disguised_structures local to each module (#560419)
423 * girepository/girmodule.[ch]: When parsing, keep keep a separate
424 hash tables of aliases and 'disguised' flags for each module, and
425 store that on the module.
427 After parsing an include merge the aliases/disguised flags to the
430 * girepository/girparser.c: Remove 'prefix_aliases' flag and
431 always prefix aliases/disguised structure types when parsing; this
432 simplifies the code considerably.
434 2008-11-12 Owen Taylor <otaylor@redhat.com>
436 Fix mismatches between .gir name and 'name' attribute (#560419)
438 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
439 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
440 where the 'name' element of <namespace/> didn't match the filename of the
441 gir, an assumption that the compiler has always expected and now enforces.
443 2008-11-12 Owen Taylor <otaylor@redhat.com>
445 Only allow one <namespace/> element per <repository/> (#560419)
447 * girepository/girparser.c: The logic in girparser.c didn't work
448 very well if there were multiple <namespace/> nodes within a
449 single <repository/> (context->namespace was always the overall
450 filename and not the the name specified in the <namespace/>
451 element for one thing; this would cause aliases to be mis-prefixed
452 in include modules.) Also check that the "name" in the
453 <namespace/> node matches the filename.
455 2008-11-12 Owen Taylor <otaylor@redhat.com>
457 Add a GirParser object to hold the state of a compilation
459 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
460 GirParser object to hold state that is global across a
461 compilation. Currently just holds the include path, but will
462 eventually also keep a cached list of parsed modules.
464 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
466 * girepository/girepository.c (find_namespace_latest): Fix
469 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
471 * configure.ac: use 'introspection' component for bugs
473 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
475 * tests/everything/gitesttypes.c (test_filename_return):
476 * tests/everything/gitesttypes.h:
477 Add a filename return test.
479 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
481 * tests/offsets/Makefile.am (gitestoffsets.c): fix
482 gen-gitestoffsets invocation with builddir != srcdir
484 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
486 * girepository/girepository.c:
487 Change the element type from utf8 to filename
488 * girepository/girnode.c (g_ir_node_build_typelib):
489 Special case filename equally to utf8 here.
491 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
494 Remove unused variables, add a dependency of girepository.ch, so when
495 they change we rebuild the gir automatically.
497 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
499 * girepository/girepository.c (g_irepository_get_search_path):
500 * girepository/girepository.h:
501 Add a g_irepository_get_search_path, so we can access the search
504 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
506 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
508 * girepository/girparser.c: avoid freeing an uninitialized pointer
510 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
513 * giscanner/glibtransformer.py:
514 * tools/g-ir-scanner:
515 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
516 so we can just pass in --library=foo/bar/baz.la and the scanner
517 does the right thing.
518 Don't warn for _get_type() functions if they don't take any
521 2008-11-11 Owen Taylor <otaylor@redhat.com>
523 Bug 560404 – Prefix types when resolving aliases in included modules
525 * girepository/girparser.c: When resolving aliases in an included
526 module, prefix types before looking them up.
528 2008-11-11 Owen Taylor <otaylor@redhat.com>
530 Compute field offsets and overall size for object structures
532 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
533 field of type object in structure"
535 Do basic computation of field offsets for objects and interfaces;
536 this doesn't attempt to address all of the "mess" for virtual
537 functions described in Bug 560281.
539 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
541 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
543 Based on patch by Johan Bilien.
545 * giscanner/transformer.py (_create_member, _create_parameter):
546 Resolve types here as well.
547 (_resolve_type_name_1): Try resolving using 'ctype' first since
548 it's least ambiguous. Fixes struct member type resolution with
549 similarly named types, e.g. Gdk.PangoRendererClass and
551 * tests/scanner/foo*: Add test.
553 2008-11-11 Owen Taylor <otaylor@redhat.com>
555 * girepository/girparser.c: Search provided include dirs before
556 the default directories.
558 2008-11-11 Owen Taylor <otaylor@redhat.com>
560 * girepository/giroffsets.c: Include fully-qualified names in
563 2008-11-11 Owen Taylor <otaylor@redhat.com>
565 * girepository/giroffsets.c: Fail gracefully with an informative
566 error message when recursion is encountered when computing a
569 2008-11-11 Owen Taylor <otaylor@redhat.com>
571 * girepository/girparser.c: Remove an unused variable.
573 2008-11-10 Owen Taylor <otaylor@redhat.com>
575 Add tests for field offset computations
577 * tests/offsets/offsets.h: Header file with structure definitions to test
579 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
580 field offsets for the structures in offsets.h two ways: using
581 the information from a generated typelib, and as computed by the
584 We diff these two versions to test that everything is OK.
586 2008-11-10 Owen Taylor <otaylor@redhat.com>
588 Remove field offsets from g-ir-generate output and test inputs
590 Field offsets are a) architecture dependent so they shouldn't be part
591 of the architecture-independent gir format which is installed in
592 datadir. b) Are architecture-dependent so they shouldn't be in test
595 * girepository/girparser.c: Don't parse offset for fields
596 * tools/generate.c: Don't parse offset for fields
597 * tests/*.gir test/scanner/*.tgir: Remove offsets
599 (Virtual function and discriminator offsets are not removed, as they
600 aren't fully hooked up to the field-offset computation machinery yet.)
602 2008-11-10 Owen Taylor <otaylor@redhat.com>
604 Bug 560252 - Compute field offsets before writing typelib
606 * girepository/girnode.h: Store the total size and alignment for
607 GIrNodeStruct/Boxed/Union.
609 * girepository/giroffset.c: New file implementing computation of
610 structure field offsets.
612 * girepository/girnode.c: Compute structure field offsets before
613 writing types into the typelib.
615 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
616 means "unknown". Also fix description of the discriminator_offset
619 2008-11-10 Owen Taylor <otaylor@redhat.com>
621 Bug 560250 - Fully parse included modules
623 For some things, like computing structure offsets to put into the typelib
624 we need more than just the aliases from included modules. Do a completel
625 parse of included modules and store in module->included_modules.
627 Also add g_ir_find_node() to find node information from within the
628 active set of modules and their includes.
630 2008-11-10 Owen Taylor <otaylor@redhat.com>
632 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
634 Extract a function to convert GITypeTag to ffi_type from the internals
635 of ginvoke.c. This will be useful in figure out structure alignment.
637 Also fix handling of gsize and time_t to be portable. (Add a check
638 to configure.ac to figure out the width of time_t.)
640 2008-11-10 Owen Taylor <otaylor@redhat.com>
642 Bug 560248 – "disguised structures"
644 Certain types like GIConv and GdkAtom are pointers internally but don't
645 look like pointers when referenced. They have the form.
647 typedef struct _X *X;
649 Parse these as structures/records but mark them in the gir with a 'disguised'
650 attribute so that we know that they need special handling.
652 In the typelib treat them like any other structure.
654 2008-11-09 Jürg Billeter <j@bitron.ch>
657 * giscanner/girwriter.py:
659 Write throws attribute for virtual functions, fixes bug 559703
661 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
663 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
664 up some confusion about the second argument to find_module, it's
665 actually the packages __path__ attribute which we can safely ignore
667 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
669 2008-11-07 Owen Taylor <otaylor@redhat.com>
671 Bug 559737 – Deal with continuations in macros
673 * giscanner/giscannerlexer.l: Treat continuation lines the same
674 as regular newlines. This makes the scanner not complain about
675 #define foo(x) \ <stuff> inside a C file. There's no attempt
676 however to handle parsing macro definitions split across lines.
678 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
680 * giscanner/cachestore.py:
681 Handle broken cache entries, write only filesystems and
682 running out of diskspace.
684 2008-11-07 Owen Taylor <otaylor@redhat.com>
686 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
687 Set current_filename before lexing the file so error messages
688 are reported in the right file.
690 2008-11-06 Colin Walters <walters@verbum.org>
692 * tests/everything/*: Add some tests for strv.
694 2008-11-05 Colin Walters <walters@verbum.org>
696 * girepository/ginvoke.c (g_function_info_invoke): Don't use
697 nested scope local variable for error which may go away after
698 conditional is complete.
700 2008-11-05 Colin Walters <walters@verbum.org>
702 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
703 manipulate hackily; just use GString. This avoids an
704 uninitialized memory read pointed out by Havoc.
706 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
708 * giscanner/__init__.py:
710 * giscanner/cachestore.py:
711 * giscanner/cgobject.py:
712 * giscanner/girparser.py:
713 * giscanner/girwriter.py:
714 * giscanner/giscannermodule.c:
715 * giscanner/glibast.py:
716 * giscanner/glibtransformer.py:
717 * giscanner/libtoolimporter.py:
718 * giscanner/minixpath.py:
719 * giscanner/odict.py:
720 * giscanner/sourcescanner.c:
721 * giscanner/sourcescanner.h:
722 * giscanner/sourcescanner.py:
723 * giscanner/transformer.py:
724 * giscanner/utils.py:
725 * giscanner/xmlwriter.py:
727 Relicense the giscanner library under LGPLv2+.
728 This has been approved by all contributors.
730 2008-11-01 Owen Taylor <otaylor@redhat.com>
732 Bug 558848 giparser.py: shared library should be optional
734 When parsing a .gir, allow the shared-library attribute
735 of <namespace/> to be missing: this corresponds to the handling
736 in libgirepository and elsewhere.
738 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
740 Bug 557898 – Fails to build on OSX 10.4
742 * configure.ac: Check for $shrext_cmds that should be implicitly
743 available if you're using libtool >= 2.0. If undefined, call
744 libtool --config explicitly to get its value.
745 * girepository/gtypelib.c: Remove special case for (non-)Darwin
748 2008-10-31 Colin Walters <walters@verbum.org>
750 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
752 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
754 * configure.ac: Post release version bump
757 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
761 * docs/release-checklist.txt:
764 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
766 * Makefile.am: add an upload-release target
767 * docs/release-checklist.txt:
768 Release process documentation
770 2008-10-31 Colin Walters <walters@verbum.org>
772 Bug 558109 – _g_typelib_init fails to find shared libraries
774 * transformer/glibtransformer.py: Use ctypes' find_library
775 on passed libraries and write that for the shared-library
776 entry. We want to avoid depending on -devel packages.
778 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
780 * docs/g-ir-scanner.1:
781 Document the renaming options.
783 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
785 * giscanner/Makefile.am:
786 * tests/invoke/Makefile.am:
787 * tests/repository/Makefile.am: List in-tree libraries first in
788 LDADD / LIBADD. If installed library is listed first, the
789 resulting binary will prefer installed version to one in .libs,
790 possibly making 'make check' behave strangely.
792 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
794 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
795 gir-repository from choking with gdk/quartz
797 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
799 * giscanner/giscannermodule.c (calc_attrs_length),
800 (pygi_collect_attributes):
801 * giscanner/xmlwriter.py:
802 Write a C version of the xml namespace formatter.
803 Saves 15% of the time it takes to create a gtk gir.
805 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
807 * giscanner/xmlwriter.py: Abstract attribute formatting
808 to a function external to the XMLWriter class.
810 * giscanner/scannerlexer.l:
811 Parse and discard __typeof and __attribute.
813 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
815 * giscanner/girparser.py:
816 Remove arguments from the constructor, move them to
817 separate accessors. Add a new parse_tree method
818 which takes an element tree instance.
819 * tools/g-ir-scanner:
820 Update callsite for this
822 * giscanner/Makefile.am:
823 * giscanner/cachestore.py:
824 * giscanner/transformer.py:
825 Cache the include parsing. Saves ~25% time when
826 creating vte (which includes everything up to gtk+).
828 2008-10-30 Colin Walters <walters@verbum.org>
830 * giscanner/transformer.py: Don't reparse includes
831 we've already processed.
833 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
835 * giscanner/girparser.py:
836 * giscanner/transformer.py:
837 Avoid parsing parameters, types etc when parsing
838 includes. Should speed up include parsing a bit.
840 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
842 * giscanner/girparser.py:
843 Avoid big if/else and use a dispatch table like
846 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
848 * giscanner/transformer.py:
849 Clean up include parsing and registration.
851 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
853 * giscanner/transformer.py:
856 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
858 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
861 construct PYTHONPATH just once
863 * tests/everything/Makefile.am:
864 * tests/scanner/Makefile.am:
865 add $(top_srcdir) to PYTHONPATH to
866 handle builddir != srcdir
868 * giscanner/libtoolimporter.py:
869 * giscanner/sourcescanner.py:
870 Make the libtoolimporter work when distchecking too.
872 Mostly based on patch by Tommi Komulainen
874 2008-10-29 Owen Taylor <otaylor@redhat.com>
876 * giscanner/glibtransformer.py: If a filename of an existing
877 file is passed to --library, hunt for it directly, rather than
878 searching for a corresponding library.
880 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
882 * giscanner/libtoolimporter.py:
883 * giscanner/sourcescanner.py:
884 Clean up the libtool importer a bit. Add a context so we
885 can use it through a with statement.
886 Don't just look in the current directory, look in the whole
889 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
891 Bug 558065 – gitesttypes should be installed
895 * tests/types/Makefile.am -> tests/everything/Makefile.am
896 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
897 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
898 move tests/types to tests/everything
900 * tests/everything/Makefile.am: build normal shared library
901 libgirepository-everything.so.1.0.0 and corresponding typelib
902 Everything-1.0.typelib
904 * tests/everything/Makefile.am: explicitly link libtool
905 versioning with typelib versioning with variables
907 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
909 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
911 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
913 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
916 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
918 Bug 558068 – when invoking a method, offset the in arguments by one,
921 * tests/invoke/invoke.c, tests/invoke/testfns.c,
922 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
923 * girepository/ginvoke.c: do not offset the index of given out
924 arguments by one for methods, "this" is provided as in argument only.
926 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
928 * gir/gio-2.0.c: add annotation for g_file_delete
930 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
932 Bug 558062 – provide and use paths in the .pc file
934 * gobject-introspection-1.0.pc.in: provide typelibdir variable
935 for where .typelibs should be installed (callers shouldn't need
936 to construct paths from bits and pieces)
938 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
940 Bug 557791 – g_irepository_require() could return a GTypelib *
942 * girepository/girepository.c: Return GTypelib; this is useful
943 for low level manipulation.
945 2008-10-25 Colin Walters <walters@verbum.org>
947 Bug 557788 – Return types for constructors in generated typelib bogus
949 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
950 rely on end pass resolution.
952 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
954 Bug 557786 - support fixed size arrays
956 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
957 * giscanner/scannerparser.y: Retain fixed array size.
958 * giscanner/ast.py: Add to note.
959 * giscanner/girwriter.py: Write to gir.
960 * girepository/girnode.c: Write it to typelib.
961 * tools/generate.c: Generate.
962 * tests/*: Add tests.
964 2008-10-25 Colin Walters <walters@verbum.org>
966 Bug 557076 - move typelibs to $libdir
968 * configure.ac: Steal some configury bits from dbus to expand
970 * gir/Makefile.am: Move to libdir.
971 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
972 instead just look at one hardcoded path in libdir.
973 * acinclude.m4: Bits from dbus.
975 2008-10-24 Johan Dahlin <johan@gnome.org>
977 * girepository/girnode.c (g_ir_node_check_unhandled_members):
978 Be quiet, do not warn about unhandled members.
980 2008-10-24 Johan Dahlin <johan@gnome.org>
982 * girepository/gtypelib.c:
983 Only use SHLIB_SUFFIX on darwin, otherwise use
984 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
986 2008-10-24 Lucas Rocha <lucasr@gnome.org>
988 Bug 557623 - Constructors shouldn't be flagged as methods.
990 * girepository/ginfo.c (g_function_info_get_flags): ditto.
992 2008-10-24 Johan Dahlin <johan@gnome.org>
994 * giscanner/scannerparser.y:
995 Check against division by zero for the modula operator.
996 This fixes header parsing of OSX system headers included
999 2008-10-24 Johan Dahlin <johan@gnome.org>
1003 Add a CONTRIBUTORS file and dist it.
1005 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1007 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1009 * girepository/girparser.c (parse_param_transfer):
1010 * giscanner/transformer.py (_create_parameter, _create_return):
1011 * giscanner/girwriter.py (_write_return, _write_parameter):
1012 * tools/generate.c (write_callable_info): always write and
1013 require "transfer-ownership" for return-values and parameters
1016 * tests/invoke/testfns-1.0.gir:
1018 * tests/scanner/DrawableAdditions.xml:
1019 * tests/scanner/GtkFrob-1.0-expected.tgir:
1020 * tests/scanner/annotation-1.0-expected.tgir:
1021 * tests/scanner/drawable-1.0-expected.tgir:
1022 * tests/scanner/drawable-injected-1.0-expected.gir:
1023 * tests/scanner/drawable-injected-1.0-expected.tgir:
1024 * tests/scanner/foo-1.0-expected.tgir: Updated
1026 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1028 * giscanner/cgobject.py: build fundamental types same way as glib
1030 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1031 when constructing the Type from it
1033 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1034 the parameter is a GObject from its GType, if available.
1036 * giscanner/glibtransformer.py (_adjust_transfer):
1037 * tests/scanner/foo-1.0-expected.gir:
1038 * tests/scanner/foo-1.0-expected.tgir: deduce
1039 transfer-ownership from GTypes
1041 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1043 * giscanner/transformer.py (_create_parameter):
1044 * tests/scanner/foo-1.0-expected.gir: make varargs
1045 transfer-ownership="none"
1047 2008-10-23 Colin Walters <walters@verbum.org>
1049 Bug 556739 - transfer ownership
1051 * giscanner/ast.py: Refactor Parameter/Return to share
1052 common attributes. Add transfer_inferred attribute
1053 which says whether or not we made a guess.
1054 * giscanner/transformer.py: Add much more extensive
1055 heuristics around parameter and return transfer.
1056 * giscanner/glibtransformer.py: Adjust to inspect
1060 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1062 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1064 * tests/scanner/Makefile.am:
1065 * tests/scanner/annotation-1.0-expected.tgir:
1066 * tests/scanner/drawable-1.0-expected.tgir:
1067 * tests/scanner/drawable-injected-1.0-expected.tgir:
1068 * tests/scanner/foo-1.0-expected.tgir:
1069 * tests/scanner/GtkFrob-1.0-expected.tgir:
1070 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1071 annotations survive the roundtrip via typelib
1073 The expectations are as currently produced by g-ir-generate,
1074 comparison with the .gir files shows there are differences.
1076 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1078 Bug 557468 – Support for GI_TYPELIB_PATH
1080 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1081 provided paths to the global search path.
1083 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1085 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1087 * tests/scanner/drawable-1.0-expected.tgir:
1088 * tests/scanner/drawable-injected-1.0-expected.tgir:
1089 * tests/scanner/foo-1.0-expected.tgir:
1090 * tools/generate.c (write_object_info): write 'abstract'
1091 attribute for classes
1093 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1095 * girepository/girmodule.c, girepository/gtypelib.c,
1096 girepository/girparser.[ch]: fix some build warnings.
1098 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1100 Bug 557405 – Use 'allow-none' consistently
1102 * docs/typelib-format.txt:
1103 * girepository/ginfo.c (g_arg_info_may_be_null):
1104 * girepository/girnode.c (g_ir_node_build_typelib):
1105 * girepository/girnode.h (struct _GIrNodeParam):
1106 * girepository/girparser.c (start_parameter):
1107 * girepository/girwriter.c (function_generate):
1108 * girepository/gtypelib.h (ArgBlob):
1110 * tests/function.gir:
1111 * tools/generate.c (write_callable_info): Use 'allow-none'
1112 consistently throughout
1114 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1116 Bug 557092 – Callback annotations not used
1118 * giscanner/transformer.py (_create_callback): use annotations
1120 * tests/scanner/annotation.h
1121 * tests/scanner/annotation-1.0-expected.gir: add tests
1123 2008-10-21 Colin Walters <walters@verbum.org>
1125 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1126 uncommented parameters.
1129 2008-10-21 Colin Walters <walters@verbum.org>
1131 * girepository/girepository.c: Ensure that when doing an unversioned
1132 require, we prefer items earlier in the search path to later ones.
1134 2008-10-21 Owen Taylor <otaylor@redhat.com>
1136 * giscanner/transformer.py: For string parameters allow transfer annotation
1137 to override the standard automatic guessing based on 'const'.
1139 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1141 Bug 557241 – "throws" flag for functions
1143 * tests/scanner/drawable-1.0-expected.gir,
1144 tests/scanner/drawable-injected-1.0-expected.gir,
1145 tests/scanner/drawable.[ch]: add simple test for throwing
1146 function (has GError ** as last argument)
1148 * giscanner/ast.py: add a 'throws' flag to Function
1149 * giscanner/glibtransformer.py: if a function's last paramerter is
1150 a GError, set the 'throws' flag and remove that parameter
1151 * giscanner/girwriter.py: write out the 'throws' attribute
1152 * giscanner/girparser.py: support parsing the 'throws' attribute
1154 * tests/repository/gitestthrows.c: add a simple test to check the
1155 throws flag in a typelib and invoke the function
1157 * girepository/ginfo.c, girepository/girnode.[ch],
1158 girepository/girnode.h, girepository/girparser.c,
1159 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1161 * girepository/ginvoke.c: if a function throws, add a GError as last
1162 arguments, and propagate the error to the invoker.
1164 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1166 * giscanner/transformer.py (_create_parameters): Warn if we see
1167 annotations for unknown parameters. If .h and .c files name
1168 parameters differently, the annotations may be lost.
1170 2008-10-21 Johan Dahlin <johan@gnome.org>
1172 Bug 556358 - don't use libtool internals
1174 * giscanner/Makefile.am:
1175 * giscanner/libtoolimporter.py:
1176 * giscanner/sourcescanner.py:
1177 * giscanner/utils.py:
1178 Add a python meta importer and remove a libtool symlink hack.
1180 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1182 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1183 and --add-include-path appropriately when invoking the scanner.
1184 * tests/types/Makefile.am (%typelib): Likewise.
1186 2008-10-20 Colin Walters <walters@verbum.org>
1188 Bug 556777 - validate properties
1190 * giscanner/transformer.py: Add option to throw on unknown types.
1191 * giscanner/glibtransformer.py: Use it on properties.
1192 * tests/*: Add a test.
1194 2008-10-20 Colin Walters <walters@verbum.org>
1196 * giscanner/glibast.py: Also register g variants of
1197 default_array_types. This is not beautiful, but
1198 good alternatives aren't easy to come by.
1199 This fixes gchar ** parsing.
1201 2008-10-20 Colin Walters <walters@verbum.org>
1203 * docs/typelib-format.txt, girepository/gtypelib.h:
1204 Take a bit from ObjectInfo to represent abstract flag.
1205 * giscanner/cgobject.py: Expose g_type_get_flags.
1206 * girepository/girepository.h: Add accessor.
1207 * girepository/ginfo.c: Implement it.
1208 * giscanner/ast.py: Add is_abstract flag to generic
1210 * giscanner/glibast.py: Use it.
1211 * giscanner/girwriter.py: Write it.
1212 * girepository/girparser.c: Parse it.
1215 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1217 * giscanner/girparser.py (_parse_function): don't lose
1218 'transfer-ownership' attributes when injecting, check for the
1221 2008-10-19 Johan Dahlin <johan@gnome.org>
1223 * giscanner/scannerlexer.l: Parse and ignore __asm.
1225 2008-10-19 Colin Walters <walters@verbum.org>
1227 * giscanner/girparser.py: Parse array length= to ensure
1228 it doesn't get lost from --inject.
1230 2008-10-17 Colin Walters <walters@verbum.org>
1232 Bug 556795 - char ** regression
1234 * giscanner/transformer.py: Fix parsing of ctypes, add some
1235 comments about what's going on.
1236 * tests/*: Add a test for char **.
1238 2008-10-17 Colin Walters <walters@verbum.org>
1240 Bug 556783 - change namespace handling to be more consistent
1242 * giscanner/transformer.py: Eliminate usage of
1243 strip_namespace_object. We now treat --namespace as the default
1244 --strip-prefix; however, if --strip-prefix is specified it
1245 overrides --namespace. This applies to everything except function
1246 names, where we do also strip the namespace.
1247 * giscanner/glibtransformer.py: Remove usage of
1248 strip_namespace_object.
1250 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1251 --namespace and --strip-prefix.
1253 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1255 Bug 556732 – generate gir files consistently
1257 * girepository/girparser.c (start_parameter):
1259 * tests/invoke/testfns-1.0.gir:
1260 * tools/generate.c (write_callable_info): write
1261 'transfer-ownership' attribute consistently with both
1262 return-value and parameter elements
1264 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1266 Bug 556732 – generate gir files consistently
1268 * tools/generate.c (write_callable_info): write 'direction'
1269 attribute only if other than 'in' to be consistent with
1272 * tests/object.gir: remove direction="in" which is the default
1274 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1276 Bug 556732 – generate gir files consistently
1278 * giscanner/ast.py (Field): add readable and writable properties
1279 * giscanner/girparser.py (_parse_field): copy 'readable' and
1280 'writable' attributes
1281 * giscanner/transformer.py (_create_member): create fields as
1283 * giscanner/glibtransformer.py (_introspect_object,
1284 _pair_class_struct): make object instance and class fields
1286 * giscanner/girwriter.py (_write_field):
1287 * tools/generate.c (write_field_info): write field 'readable'
1288 and 'writable' attributes only if non-default (read-only)
1289 * girepository/girparser.c (start_field): in the absence of
1290 attributes assume fields are read-only
1292 * tests/struct.gir: remove redundant readable="1" from fields
1293 * tests/scanner/foo-1.0-expected.gir:
1294 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1295 all record and union fields
1297 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1299 Bug 556732 – generate gir files consistently
1301 * giscanner/girwriter.py (_write_property): write properties
1302 'construct' attribute if set
1303 * tools/generate.c (write_property_info): write properties
1304 'readable' and 'writable' attributes only if non-default
1305 * tests/object.gir: add writable="0"
1306 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1308 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1310 * gir/glib-2.0.c: added annotations
1312 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1314 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1317 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1319 Bug 556610 – giscanner/girparser.py drops parameter options
1321 * tests/scanner/drawable-injected-1.0-expected.gir,
1322 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1323 * giscanner/ast.py: allow Parameter to take options in the constructor
1324 * giscanner/girparser.py: parse parameter options (transfer,
1325 direction, allow-none)
1327 2008-10-16 Colin Walters <walters@verbum.org>
1329 Bug 556185 - segfault on g_callable_info_get_return_type
1331 Initial patch from John Ehresman.
1333 * tests/repository/*: Add a test using
1334 g_callable_info_get_return_type. Instead of casting a
1335 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1336 to call g_type_info_get_interface.
1338 2008-10-16 Colin Walters <walters@verbum.org>
1340 Bug 556579 - union and struct name misresolved
1342 * giscanner/transformer.py: The calls to _resolve_type_name
1343 for struct/union names was a legacy holdover from when type
1344 resolution had multiple phases. Now it's actively harmful
1345 since we might pull in an identical name from another
1349 2008-10-16 Colin Walters <walters@verbum.org>
1351 Bug 556432 - transfer annotations and defaults
1353 * giscanner/transformer.py: Canonicalize type
1354 after removing *, not before. This ensures that
1355 guchar* is transformed to 'uint8'.
1356 Add some comments here.
1357 * giscanner/glibtransformer.py: Add _adjust_transfer
1358 phase for tweaking GObject transfers.
1361 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1363 * configure.ac: enable bunch of gcc warning CFLAGS
1365 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1367 Bug 556543 – reduce compiler warnings
1369 * girepository/ginfo.c:
1370 * girepository/girepository.c (register_internal,
1371 count_interfaces, find_interface, find_namespace_version,
1372 parse_version, g_irepository_require):
1373 * girepository/girmodule.c (g_ir_module_build_typelib):
1374 * girepository/girnode.c (init_stats, dump_stats,
1375 _g_irnode_init_stats, _g_irnode_dump_stats,
1376 g_ir_node_can_have_member):
1377 * girepository/girparser.c (firstpass_end_element_handler,
1378 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1379 start_alias, start_type, end_type_top, parse_include, cleanup,
1381 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1382 * giscanner/giscannermodule.c (directive_get_options,
1383 type_get_child_list):
1384 * giscanner/scannerlexer.l (parse_gtkdoc):
1385 * giscanner/scannerparser.y (ctype_free):
1386 * giscanner/sourcescanner.c:
1387 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1388 * tests/types/gitesttypes.c:
1389 * tools/compiler.c (main):
1390 * tools/generate.c (write_repository): Remove unused variables
1391 and code, add missing includes, declarations and case
1394 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1396 Bug 556541 – access union members through UnionBlob rather than
1399 * girepository/ginfo.c (g_union_info_find_method): access union
1400 members through UnionBlob rather than StructBlob
1402 2008-10-15 Colin Walters <walters@verbum.org>
1404 Bug 556331 - clean up includes handling
1406 * tools/g-ir-scanner: Rework command line arguments; now we take
1407 --add-include-path and --include separately.
1408 * giscanner/girwriter.py: Separate name= and version= in include
1410 * giscanner/ast.py: Add Include type.
1411 * giscanner/transformer.py: Cleanups to register_include now that
1412 we don't need to handle mixed filenames and relative arguments.
1413 * girepository/girparser.c: Parse name and version separately;
1414 this fixes a bug as a side effect where we weren't resolving
1415 through aliases for basic types.
1416 * girepository/girepository.c: Fix format string args.
1417 * gir/Makefile.am: Update.
1420 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1422 Bug 556434 – unhandled interface/object/... member types
1424 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1425 g_ir_node_build_typelib): Check all
1426 interface/object/boxed/struct/union members are processed and
1427 abort if they are not. (Mostly callbacks in structs, but also
1428 fields in interfaces.)
1430 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1432 * a/girepository/girnode.c (g_ir_node_build_members,
1433 g_ir_node_build_typelib): refactor common code for processing
1434 members to a function
1436 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1438 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1439 transformation is lossless (it's not)
1441 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1443 * tests/Makefile.am: fix tests to compare xml to xml instead of
1444 typelib to xml, and stop on error
1446 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1448 * tools/generate.c (write_type_name, write_type_info,
1449 write_type_info, write_object_info, write_object_info,
1450 write_interface_info, write_error_domain_info): reduce code
1453 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1455 Bug 556174 – parse types for lists etc.
1457 * girepository/girparser.c (end_type_recurse):
1459 * tools/generate.c (write_type_info, write_field_info,
1460 write_callable_info, write_callable_info, write_constant_info,
1461 write_property_info): use nested <type>s for lists and hashes
1463 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1466 * tests/object.gir: remove trailing whitespace from inside
1467 elements to match g-ir-generate output
1469 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1471 * tools/generate.c (xml_printf): quote printf arguments so that
1472 we don't generate invalid XML by writing unescaped double quotes
1473 and such in attributes
1475 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1477 * tools/generate.c (write_field_info, write_callable_info,
1478 write_function_info, write_callback_info, write_struct_info,
1479 write_constant_value, write_signal_info, write_vfunc_info,
1480 write_object_info, write_interface_info, write_union_info,
1481 write_repository): remove unused indent parameters, xmlwriter
1482 keeps track of necessary indentation
1484 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1486 * tools/generate.c (xml_element_new, xml_element_free,
1487 xml_start_element, xml_end_element, xml_end_element_unchecked,
1488 xml_open, xml_close): Keep track of generated XML tree and
1489 handle indentation and closing tags properly.
1490 (write_field_info, write_callable_info, write_function_info,
1491 write_callback_info, write_struct_info, write_value_info,
1492 write_constant_info, write_enum_info, write_signal_info,
1493 write_vfunc_info, write_property_info, write_object_info,
1494 write_interface_info, write_error_domain_info, write_union_info,
1495 write_repository): Use xml_start_element and xml_end_element to
1498 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1500 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1501 (write_type_name, write_type_info, write_field_info,
1502 write_callable_info, write_function_info, write_callback_info,
1503 write_struct_info, write_value_info, write_constant_value,
1504 write_constant_info, write_enum_info, write_signal_info,
1505 write_vfunc_info, write_property_info, write_object_info,
1506 write_interface_info, write_error_domain_info, write_union_info,
1507 write_repository): wrap all FILE access to go through simple xmlwriter
1509 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1511 Bug 556400 – Fails to build on OS X 10.4
1513 * configure.ac: check for functions backtrace and backtrace_symbols
1514 * girepository/girparser.c (backtrace_stderr): Comment out
1515 implementation if the functions are not available.
1516 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1517 directory for better portability
1519 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1521 Bug 556433 – assume direction = out for int * parameters
1523 * giscanner/ast.py: define a list of types for which, if passed as
1524 reference, we assume a default direction of 'out'
1525 * giscanner/transformer.py: if a type has type pointer to one of the
1526 previously defined types, and no direction is set, assume out.
1527 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1529 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1531 * tests/scanner/annotation.c: fixed a few copy-paste errors
1533 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1535 Bug 556323 – transfer-ownership is wrong for functions returning const
1538 * giscanner/transformer.py: check for a const string as return value,
1539 not just const char*. Suggested by Colin Walters
1540 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1542 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1544 * girepository/ginfo.c, girepository/girepository.h: add
1545 g_union_info_find_method
1547 2008-10-14 Colin Walters <walters@verbum.org>
1549 * tests/repository/Makefile.am: Reenable repo test.
1550 * tests/repository/gitestrepo.c: Prepend search
1551 path for $(top_builddir)/gir dir so that we don't
1552 require installation for "make check" to pass.
1554 2008-10-13 Jürg Billeter <j@bitron.ch>
1556 * giscanner/glibtransformer.py:
1557 * tests/scanner/annotation-1.0-expected.gir:
1558 * tests/scanner/drawable-1.0-expected.gir:
1559 * tests/scanner/foo-1.0-expected.gir:
1560 * tests/scanner/utility-1.0-expected.gir:
1562 Support fields in GObject structs
1564 2008-10-13 Jürg Billeter <j@bitron.ch>
1566 * giscanner/ast.py: add signed integer and off_t to type_names
1568 2008-10-12 Jürg Billeter <j@bitron.ch>
1570 * giscanner/girparser.py: Parse bits attribute of fields
1572 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1574 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1575 * tests/repository/gitestrepo.c (main): instantiate
1576 'GCancellable' to ensure the GType is registered before using
1579 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1581 * giscanner/girparser.py: actually add the parsed constant nodes
1583 2008-10-12 Colin Walters <walters@verbum.org>
1585 * girepository/girepository.c: Don't cast DirEntry to Blob,
1586 actually look it up by offset.
1588 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1590 * giscanner/girparser.py: parse constant nodes in gir files
1592 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1594 * giscanner/transformer.py: prefix for constants have an underscore,
1595 so remove them as if they were functions, not objects.
1597 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1599 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1602 2008-10-12 Colin Walters <walters@verbum.org>
1604 Initial patch from Jani Monoses.
1606 * girepository/gtypelib.c: Fix inverted test for success
1609 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1611 * tools/generate.c (write_callable_info): use "transfer-ownership"
1612 attribute for return values
1614 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1616 * tools/generate.c (write_callable_info): move "transfer" and
1617 "null-ok" attributes from <function> to <return-value> element
1619 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1621 * girepository/girparser.c (start_return_value): handle
1622 "transfer-ownership" attribute
1624 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1626 * girepository/girparser.c (parse_param_transfer):
1627 * tools/generate.c (write_callable_info): use "container" for
1628 container/shallow ownership transfer (not "shallow")
1630 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1632 * girepository/girparser.c (parse_param_transfer,
1633 start_parameter): Refactor handling of transfer=none/shallow/full
1634 to separate function
1636 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1638 Bug 556048 – Crash in g_irepository_find_by_gtype
1640 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1641 * girepository/girepository.c (find_interface): Fix
1642 find_by_gtype case to get the type name from right offset
1644 2008-10-12 Jürg Billeter <j@bitron.ch>
1646 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1649 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1651 * girepository/gtypelib.h (RegisteredTypeBlob): make
1652 'unregistered' one bit wide as everywhere else
1654 2008-10-12 Jürg Billeter <j@bitron.ch>
1656 * giscanner/glibtransformer.py:
1657 * tests/scanner/annotation-1.0-expected.gir:
1658 * tests/scanner/drawable-1.0-expected.gir:
1659 * tests/scanner/drawable.h:
1660 * tests/scanner/foo-1.0-expected.gir:
1661 * tests/scanner/utility-1.0-expected.gir:
1663 Readd class records as workaround to not break Gtk typelib
1665 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1667 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1669 2008-10-12 Jürg Billeter <j@bitron.ch>
1671 * giscanner/glibtransformer.py: Don't generate <record> elements
1673 * tests/scanner/*: Update test cases
1675 2008-10-11 Colin Walters <walters@verbum.org>
1677 Bug 552858: versioning
1679 This is a big patch. You should probably remove your installation
1682 * docs/typelib-format.txt: Add nsversion entry which holds
1683 version of namespace.
1684 * girepository/girepository.h: Add 'version' parameter to
1685 g_irepository_require. This may be NULL. Normally
1686 bindings should pass an explicit version though.
1687 * girepository/girepository.c: Lots of infrastructure to
1688 support versioning. Add some more documentation. Disallow
1689 some usage of NULL namespaces.
1690 * girepository/girmodule.c: Add version parameter.
1691 * girepository/gtypelib.c: Update header size.
1692 * giscanner/ast.py: Add version to Namespace.
1693 * giscanner/girparser.py: Parse version attribute from
1694 XML, pass to Namespace.
1695 * giscanner/girwriter.py: Write out version parameter.
1696 * giscanner/transformer.py: Clean up include registration.
1697 * tests/*: Add version attribute.
1698 * tests/invoke/invoke.c: Don't try looking up test before
1699 it's loaded in repository.
1700 * tools/generate.c: Output version parameter.
1701 * gir/Makefile.am: Add 2.0 version to .gir files.
1703 2008-10-11 Colin Walters <walters@verbum.org>
1705 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1706 if we have mismatched parens.
1708 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1710 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1711 on 'members' variable.
1713 2008-10-11 Colin Walters <walters@verbum.org>
1715 Bug 555947 - update annotations syntax
1717 * giscanner/ast.py: Default to None for transfer. Remove
1718 default transfers for container types; we require this to
1720 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1721 'full' to match repository.
1722 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1723 * giscanner/transformer.py: Update for new annotations syntax.
1726 2008-10-11 Johan Bilien <jobi@litl.com>
1728 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1730 2008-10-11 Johan Bilien <jobi@litl.com>
1732 Bug 552347: Parse #defines constants
1734 * girepository/gtypelib.c: update the list of value_size
1735 with recently defined type tags
1736 * giscanner/scannerparser.y: brought back parsing of #defined, as
1737 present in older version
1738 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1739 * giscanner/girwriter.py: write out constant tags in the gir
1740 * giscanner/sourcescanner.py: add accessor for const_string
1741 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1744 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1746 Bug 555946: Install a test module exercising all types, transfer
1751 * tests/types/*: Add and install a test module that has functions
1752 accepting and returning most of the basic types to enable bindings
1753 implementors to more easily test their type conversion routines.
1755 2008-10-11 Jürg Billeter <j@bitron.ch>
1757 Bug 552374: Const strings should be identified in the gir.
1759 * giscanner/transformer.py: support string memory management
1760 * tests/scanner/foo.h: use char * and const char *
1761 * tests/scanner/foo-expected.gir: test that
1763 2008-10-11 Johan Dahlin <johan@gnome.org>
1765 * giscanner/girparser.py:
1766 Also parse enums which are not glib types.
1768 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1770 Bug 552370: add one more test for unsigned as a type, not as
1773 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1774 * test/scanner/foo.h: add function which uses unsigned as a type.
1775 * test/scanner/foo-expected.gir: test that.
1777 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1779 Bug 555712: Struct and union issues
1781 * giscanner/scannerparser.y (struct_declarator): Use information
1782 provided about the bit width of a field.
1783 * giscanner/transformer.py (Transformer._create_member): Pass the
1784 symbol's const_int member to the created field (it represents the
1786 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1787 field attribute, if present.
1788 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1789 width in bits of the field (only relevant for bitfields).
1792 * giscanner/transformer.py (Transformer._create_typedef_struct)
1793 (Transformer._create_typedef_union): Add calls to _create_struct()
1794 and _create_union(), respectively. This causes the scanner to
1795 generate output for fields of struct and union typedefs.
1798 2008-10-11 Jürg Billeter <j@bitron.ch>
1800 Bug 552370: unsigned not scanned properly
1802 * giscanner/scannerparser.y: combine basic types such as unsigned
1803 int and long long when scanning
1804 * tests/scanner/foo-expected.gir:
1805 * tests/scanner/foo.c: (foo_test_unsigned):
1806 * tests/scanner/foo.h: test that
1808 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1810 Bug 554854: The --typelib-xml and --inject options should reuse
1811 giscanner parser/writer.
1813 * giscanner/ast.py: add constructor list to Struct and Union.
1814 Add new param in Return's contructor to define transfer.
1815 * giscanner/girparser.py: several additions to the parser in order
1816 to have parsing all nodes of the gir xml files.
1817 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1818 and writer in --inject and --typelib-xml options.
1819 * giscanner/xmlwriter.py: ignore empty attributes instead of
1820 raising an error as this basically exposes a bug in GIRParser.
1821 This should be reverted as soon as the parser is fixed.
1823 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1825 Bug 552376: scanner generates wrong names for enum members when
1826 there's no defined gtype.
1828 * giscanner/utils.py (strip_common_prefix): Always strip common
1829 prefix exactly up to the last "_", and not beyond.
1830 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1831 here is that the first character after the last '_' should should be
1832 the same as the character in the same position on the type name.
1833 * tests/scanner/foo-expected.gir: test that
1835 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1837 Bug 555293: append library_paths to LPATH env variable to work
1838 around a bug in find_library when using ldconfig.
1840 * tools/g-ir-scanner (main): ditto.
1842 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1844 * girepository/girepository.c (register_internal): fix regression on
1845 invoke test case by making sure we load the global module in the
1846 typelib when dealing with inline typelibs.
1847 * girepository/gtypelib.c: a couple of coding style fixes.
1849 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1851 Bug 555294: Add support for multiple shared libraries per typelib.
1853 * girepository/ginvoke.c (g_function_info_invoke),
1854 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1855 g_typelib_symbol instead of g_module_symbol.
1856 * girepository/girepository.h: remove g_typelib_set_module and add
1858 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1859 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1860 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1861 modules instead of just one. The symbol lookup is now abstracted
1862 behind g_typelib_symbol which tries to find the passed symbol name in
1864 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1865 and write shared_library attribute as a comma-separated list of libs.
1867 2008-10-06 Colin Walters <walters@verbum.org>
1869 * giscanner/transformer.py: Parse length= annotation as
1870 a parameter name, not a raw int.
1873 2008-10-03 Colin Walters <walters@verbum.org>
1875 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1877 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1879 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1883 2008-10-03 Colin Walters <walters@verbum.org>
1885 Bug 554576: scan problem with ev_selection_render_selection()
1887 * giscanner/transformer.py: Only do type resolution once we've
1888 scanned all types. What could happen before is that we'd strip
1889 the namespace from local type "EvSelection" => Selection, and
1890 then later pull a "Selection" from some other namespace because
1891 we hadn't yet seen the local EvSelection. This could come
1892 down to hash table ordering and other things so not easy
1893 to write a test for.
1895 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1897 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1898 GLibEnumMember constructor as it should be the enum member nick.
1900 2008-10-02 Colin Walters <walters@verbum.org>
1902 Bug 552961: remove this parameter for methods
1904 * giscanner/glibtransformer.py: Delete this parameter; it is
1906 * girepository/ginvoke.c: Insert this parameter for methods.
1907 * girepository/gtypelib.c: Remove no longer needed verification of
1908 method this parameter.
1911 2008-09-30 Dan Winship <danw@gnome.org>
1913 Bug 554490: g-ir-scanner gets confused by '\\'
1915 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1916 backslashes so it will correctly parse '\\' and "\\"
1918 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1921 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1923 2008-10-02 Colin Walters <walters@verbum.org>
1925 bug 552393: Note variadic functions
1927 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1928 to use parameter_list directly.
1929 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1930 * giscanner/ast.py: Add Varargs type.
1931 * giscanner/transformer.py: Check for ellipsis symbol, transform
1933 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1934 Parse varargs functions, but filter them out before we start
1935 compiling the typelib.
1937 2008-10-02 Colin Walters <walters@verbum.org>
1939 Bug 554632: type tag for GType
1941 * girepository/girepository.h, girepository/girepository.c:
1942 Add type tag for GType - it's a special type we don't want
1943 to resolve to just "long".
1944 * docs/typelib-format.txt: Update.
1945 * girepository/girparser.c: Parse it.
1946 * giscanner/glibtransformer.py: Ensure we don't put GType in
1948 * tools/generate.c: Remove hardcoded type list.
1951 2008-09-30 Dan Winship <danw@gnome.org>
1953 Bug 554521: scanner generates wrong names for enum members with
1954 full type name prefix
1956 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1957 right amount when the entire "first" string is a prefix of
1960 * tests/scanner/foo.h (FooEnumFullname):
1961 * tests/scanner/foo-expected.gir: test that
1963 2008-09-29 Colin Walters <walters@verbum.org>
1965 Bug 552380: Array parameters should be marked in the gir
1967 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1968 uint8[]. Add Array, List, and Map subclasses of Type;
1969 these types can be generic. Return transfer defaults
1970 to true if return value is string or container type.
1971 Delete Sequence type.
1972 * giscanner/scannerlexer.l: Syntax change for annotations;
1973 use <> since it's more readable.
1974 * giscanner/girwriter.py: Write out these changes.
1975 * giscanner/girparser.py: Parse them.
1976 * giscanner/transformer.py: Have a defined set of
1977 both list and map types. When creating a type,
1978 check if the ctype we've parsed is one of them,
1979 if so create a container type subclass as appropriate.
1980 * girepository/girparser.c: Parse in generic types.
1983 2008-09-27 Colin Walters <walters@verbum.org>
1985 * tools/g-ir-scanner: Add --inject option.
1987 2008-09-25 Colin Walters <walters@verbum.org>
1989 Remove non-repository types from GIR
1991 * giscanner/ast.py: The canonical name is 'utf8', not
1993 * giscanner/glibast.py: A few more glib type mappings.
1994 * girepository/girparser.c: We only parse repository types.
1995 * tests/*.gir: Update.
1997 2008-09-23 Colin Walters <walters@verbum.org>
1999 Bug 552566: Add time_t type
2001 We need a type for time_t since it's special in C, and just
2002 mapping it to long precluded bindings from handling it
2005 2008-09-19 Colin Walters <walters@verbum.org>
2007 Bug 552390: Handle capitialization like "DBus" more robustly
2009 The to_underscores function was designed for use against prefixed
2010 names; we need a separate function which will convert names like
2011 DBusFoo into dbus_foo, not d_bus_foo.
2013 2008-09-19 Colin Walters <walters@verbum.org>
2015 Add check to make sure we're not hitting out unresolved types
2017 Validate the "this" argument for methods
2019 Remove heuristic matching of methods to classes based on prefix
2021 It was a broken hack that dated from when we handled underscoring
2022 and capitalization conventions less well.
2024 2008-09-18 Colin Walters <walters@verbum.org>
2026 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2028 On Darwin, the suffix for installed shared libraries (.dylib) is
2029 different from loadable modules (.so). We use a bit of magic shell
2030 script from Behdad Esfahbod to figure out the right suffix.
2032 2008-09-15 Johan Dahlin <johan@gnome.org>
2034 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2035 a wrapper for type_qualifier as well.
2037 2008-09-15 Colin Walters <walters@verbum.org>
2039 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2041 * giscanner/ast.py: Add deprecation attributes.
2042 * giscanner/girwriter.py: Write out deprecation data.
2043 * girepository/girparser.c: Relax parsing; deprecated
2044 attribute now includes freeform string.
2045 * giscanner/scannerlexer.l: Parse Deprecated.
2046 * giscanner/transformer.py: Look for deprecated attribute
2048 * tests/scanner/*: Add a Deprecated test.
2050 2008-09-14 Tor Lillqvist <tml@novell.com>
2052 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2054 2008-09-14 Colin Walters <walters@verbum.org>
2056 * giscanner/glibtransformer.py: Ignore functions with
2059 2008-09-12 Colin Walters <walters@verbum.org>
2061 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2063 2008-09-12 Colin Walters <walters@verbum.org>
2065 * giscanner/ast.py: Bind pid_t to INT for vte.
2067 2008-09-12 Colin Walters <walters@verbum.org>
2069 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2070 * giscanner/glibast.py: Avoid overwriting ctype.
2071 * giscsanner/transformer.py: Try resolving types using the GType names.
2073 2008-09-12 Colin Walters <walters@verbum.org>
2075 * giscanner/minixpath.py: Code to run an "XPath"
2076 assertion against an XML tree, taken from
2077 gir-repository/gir/tests.py.
2078 * giscanner/Makefile.am: Ship it.
2079 * tools/g-ir-scanner: Add --xpath-assertions option.
2080 * gir/GLib-assertions.txt: Add a few assertions.
2081 * gir/Makefile.am: Run them.
2083 2008-09-11 Colin Walters <walters@verbum.org>
2085 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2087 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2088 prefix if it ends with _. Tweak callback stripping to determine
2089 based on presence of _ whether we need to use strip_namespace_func
2090 or strip_namespace_object.
2092 2008-09-09 Owen Taylor <otaylor@redhat.com>
2094 * docs/typelib-format.txt: Wether => Whether
2096 2008-09-08 Colin Walters <walters@verbum.org>
2098 * girepository/girparser.c: Default to "readable" for properties.
2099 * giscanner/ast.py: Add readable, writable etc.
2100 * giscanner/girwriter.py: Writ them.
2101 * giscanner/glibtransformer.py: Inspect them.
2104 2008-09-07 Colin Walters <walters@verbum.org>
2106 * giscanner/cgobject.py: Add comment.
2108 2008-09-07 Colin Walters <walters@verbum.org>
2110 * giscanner/cgobject.py: Also call g_thread_init.
2112 2008-09-07 Colin Walters <walters@verbum.org>
2114 * giscanner/transformer.py: Fix regression by not
2115 stripping prefix before stripping namespace for unions
2118 2008-09-06 Colin Walters <walters@verbum.org>
2120 * giscanner/transformer.py: If a namespace contains
2121 multiple caps, try stripping both gnomekeyring_ and
2124 2008-09-07 Johan Dahlin <johan@gnome.org>
2126 Bug 551162 – giscanner does not recognize asm and __asm__
2127 * giscanner/scannerlexer.l:
2128 Patch by Jani Monoses.
2130 2008-09-06 Colin Walters <walters@verbum.org>
2132 * girepository/girnode.c: Allow gtype_name
2133 and gtype_init in struct and union.
2134 * girepository/girparser.c: Parse glib:
2135 boxed bits for both structure and union.
2136 * girepository/gtypelib.c: Don't barf
2137 if structure is boxed.
2138 * giscanner/girparser.py: Parse new XML
2140 * giscanner/girwriter.py: Write out new
2142 * giscanner/glibast.py: Define new classes
2143 which are both Boxed and Struct/Union, as
2144 well as an "Other" for everything else.
2145 * giscanner/glibtransformer.py: Handle
2146 boxed types specially; we try to merge
2147 them with a struct/union if one exists,
2148 otherwise fall back to generic boxed.
2150 * tools/generate.c: Write out new format.
2152 2008-09-06 Johan Dahlin <johan@gnome.org>
2154 * giscanner/grealpath.h: Include stdlib.h
2156 * docs/g-ir-generate.1: Remove leading %
2158 2008-09-01 Colin Walters <walters@verbum.org>
2160 * girepository/girparser.c: Look at c:type to determine
2161 whether or not an item is a pointer.
2163 2008-09-01 Johan Dahlin <johan@gnome.org>
2165 * tests/scanner/Makefile.am:
2166 Set PYTHONPATH so the scanner can run
2167 even if you didn't install anything.
2169 2008-09-01 Johan Dahlin <johan@gnome.org>
2172 Post-release version bump
2175 2008-09-01 Johan Dahlin <johan@gnome.org>
2179 2008-08-31 Colin Walters <walters@verbum.org>
2181 * giscanner/glibtransformer.py: Quiet info
2184 2008-08-31 Johan Dahlin <johan@gnome.org>
2187 Bump version to 0.5.0
2189 2008-08-31 Colin Walters <walters@verbum.org>
2191 * giscanner/glibtransformer.py: Follow aliases to ensure
2192 we don't get a constructor returning a basic type.
2193 * giscanner/transformer.py: Add function to follow aliases.
2196 2008-08-31 Johan Dahlin <johan@gnome.org>
2198 * giscanner/scannerlexer.l:
2199 * giscanner/scannerparser.y:
2200 * giscanner/sourcescanner.h:
2201 * giscanner/sourcescanner.py:
2202 Parse GCC extensions in the parser instead of just undeffing them
2203 in the pre-processor.
2205 2008-08-31 Johan Dahlin <johan@gnome.org>
2207 * giscanner/glibtransformer.py:
2208 Clean up a huge if. Do not add methods or constructors
2210 * giscanner/utils.py:
2211 second might be longer than first, check that.
2213 2008-08-31 Johan Dahlin <johan@gnome.org>
2218 2008-08-31 Colin Walters <walters@verbum.org>
2220 * girepository/girparser.c: Don't lose if we
2223 2008-08-31 Colin Walters <walters@verbum.org>
2225 * giscanner/glibtransformer.py: Look for libtool
2226 library in current directory
2227 * tests/scanner - Update.
2229 2008-08-30 Colin Walters <walters@verbum.org>
2231 * docs/typelib-format.txt: Add a guint32
2233 * gir/Makefile.am: Dep on Makefile
2234 * girepository/ginfo.c:
2235 * girepository/girepository.c: Clean up
2236 default typelib handling; remove global
2237 default_typelib variable. Ensure we handle
2238 NULL repository in more places.
2239 Support dependency resolution.
2240 Support lazy loading.
2241 * girepository/girepository.h: Remove
2242 g_irepository_unregister; we don't support
2243 unloading typelibs since really they're
2244 process-global. Update for lazy loading
2246 * girepository/girmodule.c: Use g_new0.
2247 Add dependencies to GirModule.
2248 * girepository/girparser.c: Parse dependencies.
2249 * girepository/gtypelib.c: Add 4 bytes for
2251 * tests/Makefile.am: Kill off gobject.gir,
2252 it conflicts with the real one.
2253 * tests/object.gir: Dep on GObject.
2254 * tools/generate.c: Take --includedir
2255 argument to say which directories to search
2256 for typelibs. Print out dependencies.
2258 2008-08-30 Colin Walters <walters@verbum.org>
2260 * giscanner/glibtransformer.py: Reduce warning noise.
2262 2008-08-29 Colin Walters <walters@verbum.org>
2264 * girepository/ginfo.c: Add some assertions regarding
2265 refcounts, just to be sure.
2266 * giscanner/glibtransformer.py: Blacklist a few more
2269 2008-08-29 Colin Walters <walters@verbum.org>
2271 * giscanner/glibtransformer.py: Blacklist a few
2272 functions that use GError oddly
2274 2008-08-29 Colin Walters <walters@verbum.org>
2276 * girepository/gtypelib.c: Don't crash if no
2279 2008-08-29 Colin Walters <walters@verbum.org>
2281 * girepository/girparser.c: Handle chains of aliases
2282 across modules by ensuring we fully qualify aliases
2285 2008-08-29 Colin Walters <walters@verbum.org>
2287 * girepository/girparser.c: Don't search aliases
2290 2008-08-29 Colin Walters <walters@verbum.org>
2292 * girepository/girparser.c: Rewrite type parsing
2293 to handle both GLib parsing case as well as correctly
2294 handling GLib.List and friends. Don't try to treat
2295 e.g. ListStore as a List.
2297 2008-08-29 Colin Walters <walters@verbum.org>
2299 * girepository/gtypelib.c: Add more context
2302 2008-08-29 Colin Walters <walters@verbum.org>
2304 * giscanner/glibtransformer.py: Add some informative
2305 logging messages in corner cases. Be sure we use
2306 the most recent node set instead of a cache
2307 when generating result set.
2308 * tests/: Remove duplicated bits in expected girs
2309 * girepository/girparser.c: Accept both List (for
2310 compiling GLib) and GLib.List (what the scanner
2313 * tools/generate.c: Generate canonical form.
2315 2008-08-29 Johan Dahlin <johan@gnome.org>
2317 * giscanner/config.py.in:
2318 Use datarootdir instead of datadir to avoid
2319 an autoconf warning.
2321 2008-08-29 Johan Dahlin <johan@gnome.org>
2325 * examples/gdk-pixbuf.gidl:
2327 Update and remove old cruft.
2329 2008-08-29 Johan Dahlin <johan@gnome.org>
2332 * docs/g-ir-compiler.1:
2333 * docs/g-ir-generate.1:
2334 * docs/g-ir-scanner.1:
2335 Add man pages for the generator and compiler.
2337 2008-08-29 Johan Dahlin <johan@gnome.org>
2339 * docs/g-ir-scanner.1: Document
2341 * giscanner/Makefile.am:
2342 * giscanner/gidlparser.py:
2343 * giscanner/gidlwriter.py:
2344 * tools/g-ir-scanner:
2345 Remove gidl support.
2347 2008-08-28 Colin Walters <walters@verbum.org>
2349 * tests/scanner/Makefile.am: Pass the right
2350 --includedir args. Add a Makefile dep.
2351 * tools/compiler.c: Pass includedirs down.
2352 * girepository/girparser.c: Actually put
2353 includedirs in context, pass down. Fix
2356 2008-08-28 Colin Walters <walters@verbum.org>
2358 * gir/Makefile.am: Use --includedir
2359 * girepository/girparser.c: Recursively parse
2360 includes to pull in aliases and expand them.
2361 We need this to avoid putting unknown names in
2363 * tools/compiler.c: Add --includedir option.
2364 * giscanner/ast.py: Map size/ssize to types
2367 2008-08-28 Tor Lillqvist <tml@novell.com>
2369 Make check now runs successfully on Windows.
2371 * tools/compiler.c (write_out_typelib): Use binary mode for output
2374 * girepository/girnode.c: Don't print NULL strings.
2376 * tests/invoke/Makefile.am
2377 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2378 convince libtool to build shared libraries.
2380 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2381 g_assert() instead of printing out expected errors.
2383 2008-08-28 Tor Lillqvist <tml@novell.com>
2385 * girepository/gtypelib.h: Change type of bitfield fields from
2386 guint to the most suitable smaller type. This makes the struct
2387 sizes match the ones on Linux that the sanity check expects when
2388 using gcc -mms-bitfields on Windows.
2390 2008-08-28 Johan Dahlin <johan@gnome.org>
2395 * giscanner/Makefile.am:
2396 * tests/Makefile.am:
2397 * tests/scanner/Makefile.am:
2398 Make distcheck pass.
2400 2008-08-27 Johan Dahlin <johan@gnome.org>
2402 * giscanner/Makefile.am:
2403 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2405 2008-08-27 Tor Lillqvist <tml@novell.com>
2407 Make g-ir-scanner work on Windows. Still problems with the typelib
2408 code. Changes okayed by jdahlin.
2410 * configure.ac: Check for Windows, set Automake conditional
2411 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2412 avoid shell quoting issues
2414 * girepository/Makefile.am: Use -no-undefined so that libtool
2415 agrees to build a shared library on Windows.
2417 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2418 Windows. Empty implementation on Windows so far.
2420 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2421 informative error message for the assertion failures. Tell also
2422 what the expected size of the struct is. Check all sizes first and
2423 fail afterwards if at least one size was different from expected.
2425 * tools/Makefile.am: Reorder libraries into proper logical
2428 * tools/generate.c: Don't include <dlfcn.h>, not used.
2430 * giscanner/Makefile.am: On Windows, link with the Python library,
2431 and install the module DLL as _giscanner.pyd. Remove the
2432 unnecessary import library and libtool library that libtool has
2435 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2436 and just skip it. Recognize also two "l" suffixes for long long
2437 constants. Recognize also __inline__.
2439 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2440 GetFullPathName(). As such, GetFullPathName() does more than the
2441 UNIX realpath(). It also changes relative paths into absolute
2442 paths. But for our purposes that shouldn't matter.
2444 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2445 Windows the file descriptor passed to us is from Python. Python
2446 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2447 uses msvcrt.dll. On Windows, file descriptors are specific to
2448 which C library is used. So we must find out what underlying OS
2449 handle corresponds to the file descriptor Python passes us, and
2450 then make that into a file descriptor valid for the C library this
2453 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2454 __attribute__ as the lexer now handles it. The definition as empty
2455 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2456 __attribute__. Close the temp file before unlinking it.
2458 * giscanner/cgobject.py: Use correct library name for the gobject
2461 * gir/Makefile.am: Must pass the full basename of the DLLs on
2462 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2463 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2464 reality they won't change, until there is a GLib 3, and then also
2465 the Unix code here needs changing.
2467 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2470 2008-08-26 Colin Walters <walters@verbum.org>
2472 * girepository/girepository.c: Search
2473 $DATADIR/girepository instead of
2474 $DATADIR/gitypelibs; this naming makes
2475 it clearer that e.g. jgir can install
2477 * gir/Makefile.am: Install there.
2479 2008-08-26 Colin Walters <walters@verbum.org>
2481 * girepository/gtypelib.c (_g_typelib_init): Also
2482 use G_MODULE_SUFFIX instead of hardcoding .so.
2484 2008-08-26 Colin Walters <walters@verbum.org>
2486 * girepository/gtypelib.c (_g_typelib_init): Free
2487 string in the right place.
2489 2008-08-26 Colin Walters <walters@verbum.org>
2491 * girepository/gtypelib.c (_g_typelib_init): Handle
2492 both .la and .so names; this works better in the
2493 uninstalled library case.
2495 2008-08-26 Johan Dahlin <johan@gnome.org>
2498 * giscanner/Makefile.am:
2499 * giscanner/cgobject.py:
2500 * giscanner/config.py.in:
2501 * giscanner/sourcescanner.py:
2502 Avoid undeffing __GNUC__, instead define
2503 __attribute__ & friends. Remove glibconfig.h hack.
2504 This makes gobject-introspection work better on
2505 MacOS X, Thanks to Richard Hult for kind help.
2507 2008-08-25 Colin Walters <walters@verbum.org>
2509 * giscanner/glibtransformer.py: Always print
2512 2008-08-25 Colin Walters <walters@verbum.org>
2514 * giscanner/glibtransformer.py: Skip over
2515 interfaces we don't know.
2517 2008-08-25 Colin Walters <walters@verbum.org>
2519 * girepository/girparser.c: Parse new implements
2520 syntax, drop gapi one.
2521 * tests/object.gir: Update.
2522 * tools/generate.c: Generate new syntax.
2524 2008-08-25 Colin Walters <walters@verbum.org>
2526 * giscanner/ast.py: Add interfaces property
2528 * giscanner/girwriter.py: Write out implemented
2530 * giscanner/glibtransformer.py: Introspect
2531 implemented interfaces.
2532 * tests/scanner/*: Make FooObject implement
2535 2008-08-25 Colin Walters <walters@verbum.org>
2537 * giscanner/glibtransformer.py: More correctly pair
2538 methods; if we have a symbol that starts with
2539 e.g. hippo_canvas look for a matching HippoCanvas
2540 class before accepting e.g. HippoCanvasImage.
2542 2008-08-24 Colin Walters <walters@verbum.org>
2544 * tools/g-ir-scanner: Filter out unknown options from
2547 2008-08-24 Colin Walters <walters@verbum.org>
2549 * giscanner/glibtransformer.py: Fail with better
2550 error if we can't find library.
2552 2008-08-24 Colin Walters <walters@verbum.org>
2554 * tools/g-ir-scanner: Use subprocess instead of
2555 commands, works on Windows and avoids the evil
2558 2008-08-24 Colin Walters <walters@verbum.org>
2560 * giscanner/glibtransformer.py: Skip over
2561 g_object_get_type from GLib trunk.
2563 2008-08-24 Colin Walters <walters@verbum.org>
2565 * girepository/girepository.c (g_irepository_require):
2566 Don't open shared library here; we already do it
2569 2008-08-24 Colin Walters <walters@verbum.org>
2571 * girepository/gtypelib.c: Add context stack so
2572 when we get an error we can print out nicely
2575 2008-08-24 Johan Dahlin <johan@gnome.org>
2577 * girepository/girparser.c (start_glib_boxed), (start_function),
2578 (start_field), (start_alias):
2579 Refactor a couple of parsing functions to be simpler to follow.
2582 2008-08-24 Johan Dahlin <johan@gnome.org>
2584 * girepository/girparser.c (start_function):
2585 Remove left-over code, checking type of function.
2587 2008-08-23 Colin Walters <walters@verbum.org>
2589 * giscanner/config.py: Define DATADIR.
2590 * giscanner/transformer.py: Look in DATADIR.
2592 2008-08-23 Colin Walters <walters@verbum.org>
2594 * girepository/gtypelib.c: Check constructor
2596 * girepository/girnode.c: Small tweaks.
2597 * girepository/ginfo.c: Calculate signature offsets
2599 * girepository/girparser.c: Remove duplicate
2601 * giscanner/glibtransformer.py: Avoid marking
2602 functions which return a basic type as
2605 2008-08-23 Colin Walters <walters@verbum.org>
2607 * girepository/girparser.c: Ignore <include>.
2608 * giscanner/girparser.py: Parse them.
2609 * giscanner/girwriter.py: Generate them.
2610 * giscanner/transformer.py: Process <include>
2611 recursively. Don't require full path for
2612 includes, look in {$XDG_DATA_DIRS}/gir.
2613 * tools/g-ir-scanner: Pass through includes.
2614 * Makefile.am: Remove extra --include
2616 * *-expected.gir: Add expected includes.
2618 2008-08-23 Johan Dahlin <johan@gnome.org>
2620 * tests/scanner/Makefile.am:
2621 * tests/scanner/annotation-expected.gir:
2622 * tests/scanner/drawable-expected.gir:
2623 Avoid duplication in the Makefile, regenerate with new
2624 namespaces (same as the filename)
2626 2008-08-22 Colin Walters <walters@verbum.org>
2628 * girepository/girnode.c: Don't hardcode integers,
2631 2008-08-22 Johan Dahlin <johan@gnome.org>
2633 * giscanner/sourcescanner.py:
2634 Check for ../gobject-introspection-1.0.pc.in to determine
2635 if we run installed or uninstalled.
2637 2008-08-22 Johan Dahlin <johan@gnome.org>
2640 * giscanner/sourcescanner.py:
2641 Send in undefs/defines via writing it directly to stdin
2642 of cpp instead of via arguments.
2644 2008-08-22 Colin Walters <walters@verbum.org>
2646 * tools/generate.c, tools/compiler.c: Default
2648 * all Makefile.am: Update.
2650 2008-08-22 Colin Walters <walters@verbum.org>
2652 * girepository/girparser.c: Pass through
2653 recursive types. Avoid overwriting errors.
2654 * giscanner/xmlwriter.py: Always write the
2656 * tests/*.gir: Adjust.
2657 * tests/scanner/Makefile.am: Build typelibs,
2658 and generate XML from those. Once we
2659 have a good diff mechanism...
2660 * tests/scanner/*-expected.gir: Add XML
2662 * tools/g-ir-scanner: Accept --typelib-xml
2664 * tools/generate.c: Better defaults for transfer.
2666 2008-08-22 Johan Dahlin <johan@gnome.org>
2670 * giscanner/Makefile.am:
2671 * giscanner/config.py.in:
2672 * giscanner/sourcescanner.py:
2673 Use the generated glibconfig.h for all scanner invokations.
2674 Rename it to glibconfig-scanner.h and install it.
2675 Add a config.py which so far contains the include dir.
2677 2008-08-22 Johan Dahlin <johan@gnome.org>
2680 Replace glibconfig.h with our own, do some replacement
2681 for CPP/C features we do not support
2683 2008-08-22 Colin Walters <walters@verbum.org>
2685 * tools/generate.c (write_callable_info): Fix unref
2688 2008-08-22 Colin Walters <walters@verbum.org>
2690 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2691 * tests/Makefile.am: Support $(DEBUG)
2692 * tools/generate.c: Do immediate close tags if no
2695 2008-08-21 Colin Walters <walters@verbum.org>
2697 * tests/scanner/drawable-expected.gir,
2698 * tests/scanner/drawable.c,
2699 * tests/scanner/drawable.h:
2702 2008-08-21 Colin Walters <walters@verbum.org>
2704 * giscanner/glibtransformer.py: Compute prefix
2705 by searching through the symbol for bits
2706 rather than going directly from ctype; this fixes
2709 2008-08-21 Colin Walters <walters@verbum.org>
2711 * giscanner/glibtransformer.py: Also try squashing
2712 underscores from namespace, fixes webkit_web_view_new.
2714 2008-08-21 Colin Walters <walters@verbum.org>
2716 * giscanner/glibtransformer.py: More ctor work,
2717 avoid having gtk_window_group_new end up under
2720 2008-08-21 Colin Walters <walters@verbum.org>
2722 * giscanner/glibtransformer.py: Much simpler approach
2723 of mapping uscored names to classes.
2724 * giscanner/utils.py: Remove unnecessary function.
2726 2008-08-21 Johan Dahlin <johan@gnome.org>
2728 * girepository/girepository.c (g_irepository_require):
2729 Plug memory leak and avoid using freed memory.
2730 Resolve the whole module path, here as well.
2732 2008-08-21 Colin Walters <walters@verbum.org>
2734 * giscanner/glibtransformer.py: Look up all permutations
2735 of class names when scanning methods/ctors based on
2736 the prefix instead of using the return value. This
2737 associates gtk_window_new with the right class.
2739 2008-08-21 Colin Walters <walters@verbum.org>
2741 * girepository/girmodule.c (g_ir_module_build_typelib):
2742 Revert change to increment header_size; we do that in
2745 2008-08-21 Colin Walters <walters@verbum.org>
2747 * girepository/girnode.c (write_string): Tweak to
2748 use UINT instead of INT. Not likely to matter.
2749 * girepository/girmodule.c (g_ir_module_build_typelib):
2750 Add to header_offset as well for header strings
2751 to match what write_string does.
2752 * girepository/gtypelib.c: Replace is_name with
2753 validate_name, which more strongly validates and
2754 handles errors in a better way. Update all callers.
2755 * giscanner/glibtransformer.py: Handle constructors
2758 2008-08-21 Johan Dahlin <johan@gnome.org>
2760 * gir/Makefile.am (typelibs_DATA): Build and
2761 install the Gio.typelib too
2763 * girepository/gtypelib.c (_g_typelib_init):
2764 Use g_module_build_path to resolve the shlib name
2766 2008-08-21 Colin Walters <walters@verbum.org>
2768 * gir/Makefile.am: CLEANFILES typelibs too.
2770 2008-08-21 Johan Dahlin <johan@gnome.org>
2772 * giscanner/glibtransformer.py:
2773 Do not send .la files through find_library.
2775 2008-08-21 Colin Walters <walters@verbum.org>
2777 * girepository/girparser.c (g_irepository_require):
2778 Fix one small leak in error case.
2780 2008-08-21 Johan Dahlin <johan@gnome.org>
2783 Parse glibconfig.h as well and install the compiled
2786 2008-08-21 Johan Dahlin <johan@gnome.org>
2789 * giscanner/glibtransformer.py:
2790 * tools/g-ir-scanner:
2791 Do not hard-core library names in the Makefile, reuse
2792 ctypes find_library instead.
2794 2008-08-21 Johan Dahlin <johan@gnome.org>
2796 * girepository/girparser.c (resolve_aliases):
2797 Remove compilation warnings
2799 2008-08-21 Johan Dahlin <johan@gnome.org>
2801 * girepository/girepository.c (g_irepository_require):
2802 Rewrap and fix double free bug by leaking a bit.
2804 2008-08-20 Colin Walters <walters@verbum.org>
2806 * girepository/girepository.c: Add new function
2807 g_irepository_get_typelib_path which tells
2808 us from where we loaded a namespace.
2810 2008-08-20 Colin Walters <walters@verbum.org>
2812 * tests/scanner/*-expected.gir: Adjust for
2813 added shared-library.
2814 * giscanner/giwriter.py: Make pylint happy.
2816 2008-08-20 Colin Walters <walters@verbum.org>
2818 * girepository/girmodule.c (g_ir_module_build_typelib):
2819 Calculate size correctly, avoid use-after-free.
2821 2008-08-20 Colin Walters <walters@verbum.org>
2823 * girepository/girepository.c: Remove
2824 g_irepository_register_file in favor of
2825 g_irepository_require. There are two
2826 possible deployment scenarios for typelibs:
2827 First, separate in $DATADIR/gitypelibs/. Second,
2828 they may be embedded in shlibs. However since
2829 the first is now the normal case, the API is
2830 optimized around it.
2832 Refactor internals to look up typelibs for
2833 namespaces just-in-time, but we expect
2834 consumers to call g_irepository_require.
2836 Also, add some docs. No one has died from that
2838 * gir/Makefile.am: Need --library for glib.
2839 * giscanner/girwriter.py: Write out shared-library.
2840 * tools/g-ir-writer: Take the first --library
2841 argument as the target of shared-library. In
2842 the future we should make this nicer with pkg-config
2845 2008-08-20 Colin Walters <walters@verbum.org>
2847 * girepository/girparser.py: And parse them.
2849 2008-08-20 Johan Dahlin <johan@gnome.org>
2851 * giscanner/glibast.py: Add gshort/gushort types
2853 2008-08-20 Colin Walters <walters@verbum.org>
2855 * gir/Makefile.am: Rename .gir files using GI namespace.
2856 * girepository/girepository.c: Use XDG_DATA_DIRS for
2857 looking up typelibs. Also typelibs are now suffixed
2859 * tests/invoke/Makefile.am: Only use metadata.
2860 * girepository/Makefile.am: Remove unnecessary include.
2861 * tests/scanner/Makefile.am: Update using GI namespaces
2862 for scanner includes.
2864 2008-08-20 Colin Walters <walters@verbum.org>
2866 * girepository/transformer.py: Suppress aliases whose
2868 * girepository/ast.py: Define some more aliases.
2870 2008-08-20 Colin Walters <walters@verbum.org>
2872 * girepository/girparser.c: Avoid alias infloops.
2874 2008-08-20 Colin Walters <walters@verbum.org>
2876 * tests/scanner/foo-expected.gir: Fix expected list type.
2878 2008-08-20 Johan Dahlin <johan@gnome.org>
2880 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2881 Add a workaround for #548689.
2882 We can now compile gtk!
2884 2008-08-20 Colin Walters <walters@verbum.org>
2886 * giscanner/glibtransformer.py: Try to look up
2887 aliases using the c:type too.
2889 2008-08-20 Colin Walters <walters@verbum.org>
2891 * girepository/girparser.c: Parse union fields.
2893 2008-08-20 Johan Dahlin <johan@gnome.org>
2895 * giscanner/ast.py: Make time_t an alias for long
2897 * gir/gio-2.0-good.gir:
2898 * gir/glib-2.0-good.gir:
2899 * gir/gobject-2.0-good.gir:
2901 * giscanner/glibtransformer.py:
2902 Do not delete Class structures, we need them in gdk/gtk.
2903 * tests/scanner/drawable-expected.gir:
2904 * tests/scanner/foo-expected.gir:
2905 * tests/scanner/utility-expected.gir:
2908 2008-08-20 Johan Dahlin <johan@gnome.org>
2910 * tests/scanner/Makefile.am:
2911 * tests/scanner/annotation-expected.gir:
2912 * tests/scanner/annotation.c (annotation_object_class_init),
2913 (annotation_object_init), (annotation_object_method),
2914 (annotation_object_in), (annotation_object_out),
2915 (annotation_object_inout), (annotation_object_inout2),
2916 (annotation_object_inout3), (annotation_object_calleeowns),
2917 (annotation_object_calleesowns), (annotation_object_get_strings),
2918 (annotation_object_with_voidp), (annotation_object_get_objects),
2919 (annotation_object_create_object), (annotation_object_allow_none):
2920 * tests/scanner/annotation.h:
2921 * tests/scanner/foo-expected.gir:
2922 * tests/scanner/foo.c:
2923 * tests/scanner/foo.h:
2924 Split out annotation tests out of foo
2926 2008-08-20 Johan Dahlin <johan@gnome.org>
2928 * tests/scanner/Foo-expected.gir:
2929 * tests/scanner/Makefile.am:
2930 * tests/scanner/foo-expected.gir:
2931 * tests/scanner/foo-object.h:
2932 * tests/scanner/foo.c:
2933 Foo->foo, foo-object.h -> foo.h
2935 2008-08-20 Johan Dahlin <johan@gnome.org>
2937 * tests/scanner/Foo-expected.gir:
2938 * tests/scanner/Makefile.am:
2939 * tests/scanner/drawable-expected.gir:
2940 * tests/scanner/drawable.c (test_drawable_class_init),
2941 (test_drawable_init):
2942 * tests/scanner/drawable.h:
2943 * tests/scanner/foo-object.h:
2944 * tests/scanner/foo.c (foo_boxed_method):
2945 Move the drawable parts out of Foo to its own test.
2947 2008-08-20 Johan Dahlin <johan@gnome.org>
2949 * tests/scanner/Foo-expected.gir:
2950 * tests/scanner/foo-object.h:
2951 * tests/scanner/foo.c (foo_drawable_class_init),
2952 (foo_drawable_init):
2953 Add a based on GdkDrawable which generates
2956 2008-08-19 Colin Walters <walters@verbum.org>
2958 * giscanner/transformer.py: Don't try
2959 to strip prefix before namespace.
2961 2008-08-19 Johan Dahlin <johan@gnome.org>
2963 * giscanner/transformer.py:
2964 * tests/scanner/Foo-expected.gir:
2965 * tests/scanner/foo-object.h:
2966 Add support for typedef void foo type of
2969 2008-08-19 Johan Dahlin <johan@gnome.org>
2972 * giscanner/girwriter.py:
2973 * giscanner/glibtransformer.py:
2974 * giscanner/transformer.py:
2975 * tests/scanner/Foo-expected.gir:
2976 Add basic support for union, base the code much
2977 on Struct. Add a testcase.
2979 2008-08-19 Johan Dahlin <johan@gnome.org>
2981 * tests/scanner/Foo-expected.gir:
2982 * tests/scanner/foo-object.h:
2983 Add a union testcase which the compiler currently
2986 2008-08-19 Johan Dahlin <johan@gnome.org>
2988 * gobject-introspection-1.0.pc.in:
2989 Add a g_ir_compiler variable
2991 2008-08-19 Colin Walters <walters@verbum.org>
2993 * giscanner/ast.py: Rework types to be more closely
2995 * giscanner/girparser.py: Parse more bits.
2996 * giscanner/girwriter.py: Write sequences in a new
2997 way that specifies container type.
2998 * giscanner/glibast.py: Adjust for ast.py changes,
2999 add 'ctype' property to GLibObject and GLibInterface
3000 so we can look things up by it later.
3001 * gicanner/transformer.py: Names is new class holding
3002 the various namespaces we manage. Do not confuse
3003 with Namespace which is toplevel XML node effectively.
3004 Rework all type resolution to go through
3005 _resolve_type_name_1.
3006 * giscanner/glibtransformer.py: Raise UnknownTypeError
3007 instead of ValueError for cleanliness. Add Unresolved
3008 class to mark types whose parent we haven't seen yet.
3009 Use new Names object from transformer.py.
3010 Correctly look up parent=.
3011 Fix type validation to handle sequences.
3012 * tests/scanner/Foo-expected.gir: Update for sequence
3013 work, int instead of int32.
3014 * tools/g-ir-scanner: Add --noclosure option
3015 * gir/Makefile.am: Use --noclosure by default for
3018 2008-08-18 Johan Dahlin <johan@gnome.org>
3020 * gir/gio-2.0-good.gir:
3021 * gir/glib-2.0-good.gir:
3022 * gir/gobject-2.0-good.gir:
3025 2008-08-18 Johan Dahlin <johan@gnome.org>
3028 * giscanner/girparser.py:
3029 * giscanner/girwriter.py:
3030 * giscanner/glibast.py:
3031 * giscanner/glibtransformer.py:
3032 * giscanner/transformer.py:
3033 * tests/scanner/Foo-expected.gir:
3034 * tests/scanner/foo-object.h:
3035 * tests/scanner/utility-expected.gir:
3036 * tests/scanner/utility.h:
3037 Redo type resolving and validation.
3038 Add a couple of new tests.
3039 Patch mostly written by Colin.
3041 2008-08-18 Johan Dahlin <johan@gnome.org>
3044 * giscanner/girparser.py:
3046 * giscanner/transformer.py:
3047 Improve enum parsing for enums without a GType.
3048 Make flags/enum references to other girs work
3049 * giscanner/utils.py:
3051 * tests/scanner/Makefile.am:
3052 * tests/scanner/foo-object.h:
3053 * tests/scanner/utility-expected.gir:
3054 * tests/scanner/utility.h:
3055 Add a new test for external enum references
3057 2008-08-18 Johan Dahlin <johan@gnome.org>
3059 * docs/global-module-registry.txt: Update
3061 * tests/array.gir: Update with new type proposal
3063 * girepository/girepository.c (g_type_tag_to_string):
3064 * girepository/girepository.h:
3065 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3067 * girepository/girnode.h:
3068 Make enum serializing functions public. Clean up some whitespace.
3070 2008-08-17 Johan Dahlin <johan@gnome.org>
3072 * docs/global-module-registry.txt:
3073 Add a document for an on disk module registry format
3075 2008-08-17 Johan Dahlin <johan@gnome.org>
3078 * gir/gio-2.0-good.gir:
3081 2008-08-17 Johan Dahlin <johan@gnome.org>
3084 * gir/glib-2.0-good.gir:
3085 * gir/gobject-2.0-good.gir:
3086 * giscanner/cgobject.py:
3087 * giscanner/glibtransformer.py:
3088 Regenerate GObject & GType.
3089 Avoid warnings when generating gobject-2.0.gir.
3090 Introspect a little more, and skip *_get_type functions.
3092 2008-08-17 Colin Walters <walters@verbum.org>
3094 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3095 Rename to -good, always generate during build.
3096 * gir/Makefile.am: Ensure .gir files dep on
3097 all scanner sources.
3098 * Makefile.am: Switch build order to ensure
3099 the scanner is ready before we do gir/.
3100 * tools/g-ir-scanner: Look for .git too.
3102 2008-08-17 Johan Dahlin <johan@gnome.org>
3104 * girepository/gtypelib.c (validate_enum_blob):
3105 * giscanner/glibtransformer.py:
3106 * giscanner/transformer.py:
3107 Remove resolve_possible_typedefs, it was unused.
3108 Allow multiple enum values of the sample value in an enum,
3109 since it's actually pretty common.
3110 Register enums so they can be resolved too.
3112 2008-08-16 Johan Dahlin <johan@gnome.org>
3114 * giscanner/girparser.py:
3115 Parse enumeration/bitfield.
3117 2008-08-16 Johan Dahlin <johan@gnome.org>
3119 * giscanner/girparser.py:
3122 2008-08-16 Johan Dahlin <johan@gnome.org>
3124 * giscanner/glibtransformer.py:
3125 Resolve type names for alias targets
3126 * giscanner/transformer.py:
3127 Skip FILE* parameters fow now
3129 2008-08-16 Johan Dahlin <johan@gnome.org>
3132 * gir/gobject-2.0.gir:
3135 * tests/scanner/Makefile.am:
3138 2008-08-15 Colin Walters <walters@verbum.org>
3140 * giscanner/glibtransformer.py: Explicitly construct
3141 new list, since we're deleting as we iterate.
3142 Don't delete all structures which end in Class; just
3143 ones which have a paired GObject.
3144 Fix printing of type warning.
3145 * giscanner/transformer.py: Make strip_namespace_object
3146 be the identity function if it doesn't match the
3149 2008-08-15 Colin Walters <walters@verbum.org>
3151 * giscanner/cgobject.py: Define yet more argument
3152 prototypes; fix prototype for g_type_fundamental.
3154 2008-08-14 Johan Dahlin <johan@gnome.org>
3156 * tests/Makefile.am:
3157 * tests/constant.gir:
3158 * tests/gobject.gir:
3160 * tools/generate.c (write_struct_info):
3161 Fix generator for constant/gobject/struct
3163 2008-08-14 Johan Dahlin <johan@gnome.org>
3165 * tests/Makefile.am:
3167 * tools/generate.c (write_enum_info):
3168 Fix generation of enum/bitfields
3170 2008-08-14 Johan Dahlin <johan@gnome.org>
3172 * girepository/girparser.c (start_field), (start_constant),
3173 (start_type), (end_element_handler):
3174 Clear up constant parsing
3179 * tools/generate.c (write_callable_info), (write_function_info),
3180 (write_callback_info), (write_constant_info), (write_signal_info),
3181 (write_vfunc_info), (write_property_info), (write_object_info),
3182 (write_interface_info):
3183 Constants/Signals are handled now.
3185 2008-08-14 Johan Dahlin <johan@gnome.org>
3187 * girepository/girparser.c (start_type):
3188 Don't require c:type.
3189 * tests/Makefile.am:
3192 Update, remove parts we don't support yet
3193 * tests/roundtrips.sh:
3195 * tools/generate.c (write_type_info), (write_field_info),
3196 (write_callable_info), (write_struct_info):
3197 Make it emit proper gir.
3199 2008-08-14 Johan Dahlin <johan@gnome.org>
3201 * giscanner/transformer.py:
3202 New internal function for adding a new node.
3204 2008-08-14 Johan Dahlin <johan@gnome.org>
3207 Define an internal _H_ variable so we skip parsing both
3208 i18n headers, only one is needed.
3210 Add the glib-2.0.gir too.
3211 * giscanner/glibast.py:
3212 Add gconstpointer as an alias for ANY
3213 * giscanner/transformer.py:
3214 Do not lower case enumeration names per se.
3215 Skip functions which has parameters called 'va_list'
3217 2008-08-14 Colin Walters <walters@verbum.org>
3219 * giscanner/transformer.py: Comment data structures.
3220 Also squash pointers in resolve_type_name to correspond
3221 with what we do for params.
3222 * giscanner/glibtransformer.py: Print warnings in more
3223 situations. Rework checks for method/constructor to
3224 look up in our GType database instead of just checking
3225 for *. Avoid generating <record> for GObject which
3226 duplicate the <class>.
3227 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3230 2008-08-14 Johan Dahlin <johan@gnome.org>
3232 * giscanner/girwriter.py:
3233 * giscanner/glibast.py:
3234 * giscanner/glibtransformer.py:
3235 * giscanner/transformer.py:
3237 * tests/Makefile.am:
3238 Add pyflakes.py and run it in make check.
3239 Update the source code to fix the errors reported by
3242 2008-08-14 Johan Dahlin <johan@gnome.org>
3245 * giscanner/girparser.py:
3246 * giscanner/glibast.py:
3247 * giscanner/glibtransformer.py:
3248 Refactor the parser a bit.
3249 Add parent type to interfaces and update callsites.
3251 2008-08-14 Johan Dahlin <johan@gnome.org>
3253 * giscanner/glibtransformer.py:
3254 * giscanner/utils.py:
3255 Refactor a bit, avoid isinstance and add a method
3256 for each type we parse.
3258 2008-08-14 Johan Dahlin <johan@gnome.org>
3261 * giscanner/girparser.py:
3262 * giscanner/glibtransformer.py:
3263 * tests/Makefile.am:
3264 Run pep8.py in make check, fix old errors.
3266 2008-08-13 Colin Walters <walters@verbum.org>
3268 * giscanner/girparser.py: Parse records.
3270 2008-08-13 Colin Walters <walters@verbum.org>
3272 * gir/Makefile.am: Install again.
3273 * gir/gobject-2.0.gir: Add some more bits.
3275 2008-08-13 Colin Walters <walters@verbum.org>
3277 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3278 * giscanner/girparser.py: Handle aliases.
3279 * giscanner/transformer.py: Record aliases. Make resolver
3280 functions public; we now call into these explicitly from
3281 glibtransformer. Handle resolving aliases.
3282 * giscanner/glibtransformer.py: Separate our internal namespace
3283 from included ones. Call up into transformer's resolver functions.
3285 2008-08-13 Johan Dahlin <johan@gnome.org>
3287 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3288 * girepository/girparser.c (start_class):
3289 * giscanner/glibtransformer.py:
3290 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3292 2008-08-13 Johan Dahlin <johan@gnome.org>
3294 * giscanner/cgobject.py:
3295 Register GInitiallyUnowned
3296 * giscanner/girwriter.py:
3297 * giscanner/glibtransformer.py:
3298 Special case GObject/GInitially owned as they are a bit special to use.
3300 2008-08-13 Colin Walters <walters@verbum.org>
3302 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3303 Object is in GObject namespace.
3305 2008-08-13 Colin Walters <walters@verbum.org>
3307 * giscanner/girparser.py: Fix processing of functions
3310 2008-08-13 Colin Walters <walters@verbum.org>
3312 * giscanner/girparser.py: Parse more than just <class.
3313 * giscanner/glibtransformer.py: Put aliases in a separate
3314 data structure since their name is not canonicall.
3315 * giscanner/transformer.py: Handle resolving type names
3318 2008-08-13 Johan Dahlin <johan@gnome.org>
3320 * tools/g-ir-scanner:
3321 Allow multiple libraries
3322 * giscanner/glibtransformer.py:
3323 Rename load_library to add_library, traverse over all libraries
3324 when trying to resolve a function
3326 2008-08-12 Colin Walters <walters@verbum.org>
3328 * giscanner/transformer.py: Record typedefs as <alias> elements.
3329 Also attempt to look up types in external namespaces.
3330 * giscanner/girwriter.py: Write them.
3331 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3332 checks. Resolve interface methods and properties.
3333 * tests/scanner/foo-object.h: Add a method with typedef.
3334 * tests/scanner/Foo-expected.gir: Update.
3335 * girepository/girnode.c: Debug tweaks.
3336 * girepository/girparser.c: Make a first pass through the XML where we
3337 record all the aliases. This lets us resolve them as we go through the
3339 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3340 from gir-repository.
3342 2008-08-12 Colin Walters <walters@verbum.org>
3344 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3345 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3347 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3349 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3351 2008-08-12 Colin Walters <walters@verbum.org>
3353 * giscanner/glibtransformer.py: Also transform object properties.
3355 2008-08-12 Colin Walters <walters@verbum.org>
3357 * giscanner/glibtransformer.py: Also transform callbacks
3358 and structure field types.
3359 * tests/scanner/Fooe-expected.gir: Update to expect correct
3360 names for callbacks and structs.
3362 2008-08-12 Colin Walters <walters@verbum.org>
3364 * girepository/girparser.c: Handle 'any'.
3365 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3366 Add test for void *.
3368 2008-08-12 Colin Walters <walters@verbum.org>
3370 * giscanner/glibtransformer.py: We need to do type
3371 resolution in a second pass after we've seen all the
3372 enums, records, etc.
3374 2008-08-12 Colin Walters <walters@verbum.org>
3376 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3377 Add enum return value.
3378 * giscanner/glibtransformer.py: Transform function return types
3381 2008-08-12 Colin Walters <walters@verbum.org>
3383 * tests/scanner/Makefile.am: Dep .gir files on scanner
3384 sources too. Also remove @ so we see scanner invocations.
3386 2008-08-12 Colin Walters <walters@verbum.org>
3388 * girepository/girparser.c, girepository/gtypelib.c,
3389 girepository/gtypelib.h, girepository/girnode.c:
3390 Remove usage of (GAPI-oriented) TypeTag in favor of
3391 GITypeTag from girepository.h.
3393 2008-08-10 Colin Walters <walters@verbum.org>
3395 * tests/roundtrips.sh: Use the correct tests.
3397 2008-08-10 Colin Walters <walters@verbum.org>
3399 * giscanner/cgobject.py: Declare/wrap a few more functions.
3400 Fix parameter types for g_object_new and g_type_fundamental.
3402 2008-08-10 Colin Walters <walters@verbum.org>
3404 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3405 us to declare types for both return value and parameters. The
3406 ctypes default of 'int' is bad because it hides 32/64 bit
3407 problems. Convert all existing functions to use it.
3409 2008-08-09 Johan Dahlin <johan@gnome.org>
3411 * giscanner/__init__.py:
3413 * giscanner/cgobject.py:
3414 * giscanner/gidlparser.py:
3415 * giscanner/gidlwriter.py:
3416 * giscanner/girparser.py:
3417 * giscanner/girwriter.py:
3418 * giscanner/glibast.py:
3419 * giscanner/glibtransformer.py:
3420 * giscanner/odict.py:
3421 * giscanner/sourcescanner.py:
3422 * giscanner/transformer.py:
3423 * giscanner/utils.py:
3424 * giscanner/xmlwriter.py:
3425 * tools/g-ir-scanner:
3429 2008-08-09 Johan Dahlin <johan@gnome.org>
3432 * relaxng/c-types.xml:
3433 * relaxng/g-types.xml:
3434 * relaxng/relaxng.rng:
3436 Remove outdated relaxng schemas.
3438 2008-08-09 Johan Dahlin <johan@gnome.org>
3441 Rename metadata to typelib in variable names,
3444 2008-08-09 Johan Dahlin <johan@gnome.org>
3448 Remove old C scanner, which got rewritten in python.
3450 2008-08-09 Johan Dahlin <johan@gnome.org>
3452 * girepository/Makefile.am:
3453 * tools/Makefile.am:
3454 * tools/girmodule.c:
3455 * tools/girmodule.h:
3458 * tools/girparser.c:
3459 * tools/girparser.h:
3460 * tools/girwriter.c:
3461 * tools/girwriter.h:
3462 Move shared *.[ch] files to girepository from tools
3464 2008-08-09 Johan Dahlin <johan@gnome.org>
3466 * tests/Makefile.am:
3469 * tests/constant.test:
3471 * tests/errors.test:
3472 * tests/function.test:
3473 * tests/gobject.test:
3474 * tests/interface.test:
3475 * tests/object.test:
3476 * tests/struct.test:
3481 Rename *.test to *.gir
3483 2008-08-09 Johan Dahlin <johan@gnome.org>
3486 * tests/Makefile.am:
3487 * tests/parser/Foo-expected.gir:
3488 * tests/parser/Makefile.am:
3489 * tests/parser/foo-object.h:
3490 * tests/parser/foo.c:
3491 * tests/parser/utility-expected.gir:
3492 * tests/parser/utility.c:
3493 * tests/parser/utility.h:
3494 * tests/scanner/Makefile.am:
3495 Rename tests/parser to test/scanner
3497 2008-08-08 Colin Walters <walters@verbum.org>
3499 * tests/roundtrips.sh: Use local .gir files again.
3501 2008-08-08 Colin Walters <walters@verbum.org>
3503 * tests/invoke/Makefile.am: .gir file depends on libtool
3506 2008-08-08 Colin Walters <walters@verbum.org>
3508 * tools/girnode.c: Pass through parent node so we can
3509 print the node whose child is NULL, if that occurs.
3511 2008-08-08 Johan Dahlin <johan@gnome.org>
3513 * tests/Makefile.am:
3514 Disable roundtrip tests which are not yet working
3515 * tests/invoke/testfns.gir:
3518 2008-08-08 Johan Dahlin <johan@gnome.org>
3520 * giscanner/girwriter.py:
3522 * giscanner/glibast.py:
3523 * giscanner/glibtransformer.py:
3524 Swap order of members, to keep it consistent with
3527 2008-08-08 Johan Dahlin <johan@gnome.org>
3529 * girepository/gtypelib.c (validate_header):
3530 * girepository/gtypelib.h:
3532 * giscanner/girwriter.py:
3533 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3534 (gi_source_symbol_unref):
3537 * tests/constant.test:
3539 * tests/errors.test:
3540 * tests/function.test:
3541 * tests/gobject.test:
3542 * tests/interface.test:
3543 * tests/invoke/Makefile.am:
3544 * tests/invoke/testfns.xml:
3545 * tests/object.test:
3546 * tests/parser/Makefile.am:
3547 * tests/roundtrips.sh:
3548 * tests/struct.test:
3553 * tools/Makefile.am:
3554 * tools/compiler.c (main):
3555 * tools/generate.c (write_callable_info), (write_function_info),
3557 * tools/gidlmodule.c:
3558 * tools/gidlmodule.h:
3561 * tools/gidlparser.c:
3562 * tools/gidlparser.h:
3563 * tools/gidlwriter.c:
3564 * tools/gidlwriter.h:
3565 * tools/scanner.c (create_node_from_gtype),
3566 (create_node_from_ctype), (g_igenerator_process_properties),
3567 (g_igenerator_process_signals), (g_igenerator_create_object),
3568 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3569 (g_igenerator_create_enum), (g_igenerator_create_flags),
3570 (g_igenerator_process_function_symbol),
3571 (g_igenerator_process_unregistered_struct_typedef),
3572 (g_igenerator_process_struct_typedef),
3573 (g_igenerator_process_union_typedef),
3574 (g_igenerator_process_enum_typedef),
3575 (g_igenerator_process_function_typedef),
3576 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3577 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3578 Merge in the gir-compiler branch.
3579 Thanks to Philip and Colin for their help.
3581 2008-07-26 Colin Walters <walters@verbum.org>
3583 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3584 and g-idl-generate to go along with how we're changing this
3585 module to be installed.
3586 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3588 2008-07-24 Colin Walters <walters@verbum.org>
3590 * girepository/girepository.c (g_irepository_register): Add
3591 environment variable G_IREPOSITORY_VERBOSE so we can print
3592 out what we're doing.
3593 * girepository/girepository.c (g_irepository_register_file):
3594 Add GError error message to g_debug call.
3596 2008-07-08 Jürg Billeter <j@bitron.ch>
3598 * giscanner/glibast.py:
3602 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3604 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3607 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3610 * giscanner/girwriter.py:
3611 * giscanner/transformer.py:
3612 * tests/parser/Foo-expected.gir:
3613 * tests/parser/foo-object.h:
3614 * tests/parser/foo.c (foo_object_allow_none):
3615 Add support for gtk-doc annotations for allow-none.
3618 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3621 * giscanner/girwriter.py:
3622 * giscanner/glibast.py:
3623 * giscanner/glibtransformer.py:
3624 * giscanner/transformer.py:
3625 * tests/parser/Foo-expected.gir:
3626 Start using abstract type instead of the raw C types.
3627 Register a bunch of glib types we care about.
3629 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3634 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3636 * girepository/girepository.c:
3637 * girepository/gtypelib.c:
3638 * girepository/ginfo.c:
3639 * girepository/ginvoke.c:
3640 * girepository/girepository.h:
3641 * girepository/gtypelib.h:
3642 * girepository/gmetadata.c:
3643 * girepository/Makefile.am:
3644 * girepository/gmetadata.h:
3646 * tools/gidlmodule.c:
3649 * tools/gidlmodule.h:
3650 * tools/gidlparser.c:
3652 Renamed GMetadata to GTypelib
3654 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3656 * giscanner/xmlwriter.py:
3657 Improve line wrapping when > 79 charaters
3659 2008-06-05 Jürg Billeter <j@bitron.ch>
3662 * giscanner/girwriter.py:
3663 * giscanner/transformer.py:
3664 Use <type> element for field types
3665 * tests/parser/Foo-expected.gir:
3668 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3670 * giscanner/glibtransformer.py:
3671 Fix a bug which prevented GdkEvent from being generated
3673 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3675 * giscanner/Makefile.am:
3677 * giscanner/girwriter.py:
3678 * giscanner/glibast.py:
3679 * giscanner/glibtransformer.py:
3680 * giscanner/transformer.py:
3681 * giscanner/utils.py:
3682 * tests/parser/Foo-expected.gir:
3683 Improve enum member parsing and introspection
3685 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3687 * giscanner/scannerparser.y:
3688 * giscanner/sourcescanner.h:
3689 * giscanner/sourcescanner.py:
3690 Add a new source type enum for member.
3691 Use __repr__ for improved debugging
3692 * giscanner/girparser.py:
3694 * giscanner/transformer.py:
3695 Improve parsing of struct members.
3696 * tests/parser/foo-object.h:
3699 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3701 * giscanner/xmlwriter.py:
3702 Improve error reporting when trying to quote None.
3703 * giscanner/girparser.py:
3704 Do not print warnings when including more complete .gir files
3705 * giscanner/girwriter.py:
3706 Do not require a name for parameters, add a todo for singletons
3707 * giscanner/glibtransformer.py:
3708 Refactor the way structs are done, add a couple of hacks to allow
3710 * giscanner/transformer.py:
3711 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3712 * gobject-introspection-1.0.pc.in:
3713 Export girdir, so we can access gobject-2.0.gir from outside
3715 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3717 * tools/g-ir-scanner:
3718 * tests/parser/Makefile.am:
3719 Update sys.path before running the parser so we don't have
3720 to setup PYTHONPATH ourselves.
3724 * girepository/Makefile.am:
3725 * giscanner/transformer.py:
3726 * gobject-introspection-1.0.pc.in:
3727 * gobject-introspection.pc.in:
3728 * tools/Makefile.am:
3730 Rename pkg-config name to gobject-introspection-1.0,
3731 Do not installed anything which is not using the gir format.
3732 Disable compililation the old C scanner, but still keep the source
3733 until all the remaning functionallity has been ported.
3735 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3737 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3738 a crash when symbol->indent is NULL.
3740 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3741 a function to convert a CTYPE symbol to a string
3743 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3746 * giscanner/girwriter.py:
3747 * giscanner/giscannermodule.c
3748 (pygi_source_scanner_append_filename),
3749 (pygi_source_scanner_parse_file):
3750 * giscanner/glibtransformer.py:
3751 * giscanner/sourcescanner.py:
3752 Revert back to using temporary files to send in headers.
3753 Allow Functions to be passed in as callbacks, add a couple
3754 of try/excepts missing features.
3755 We can now scan pango
3757 2008-05-08 Johan Dahlin <johan@gnome.org>
3759 * giscanner/glibtransformer.py:
3760 * giscanner/transformer.py:
3761 Move namespace stripping glibtransformer->transformer
3763 2008-05-08 Johan Dahlin <johan@gnome.org>
3766 * giscanner/girwriter.py:
3767 * giscanner/glibtransformer.py:
3768 * giscanner/transformer.py:
3769 * tools/g-ir-scanner:
3770 Introduce a namespace ast node
3772 2008-05-05 Johan Dahlin <johan@gnome.org>
3774 * giscanner/__init__.py:
3775 * giscanner/sourcescanner.py:
3776 * giscanner/transformer.py:
3777 Move sourcescanner symbols to the sourcescanner module, instead
3778 of in the global __init__ namespace.
3780 2008-05-03 Johan Dahlin <johan@gnome.org>
3782 * giscanner/glibtransformer.py:
3783 * tools/g-ir-scanner:
3784 Handle missing parameters better, allow - and + in .la dlname
3787 2008-05-03 Johan Dahlin <johan@gnome.org>
3789 * giscanner/__init__.py:
3791 * giscanner/girwriter.py:
3792 * giscanner/glibtransformer.py:
3793 * giscanner/transformer.py:
3794 Parse struct fields properly, improve debugging.
3796 2008-04-29 Johan Dahlin <johan@gnome.org>
3799 * giscanner/girwriter.py:
3800 * giscanner/transformer.py:
3801 * tests/parser/Foo-expected.gir:
3803 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3805 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3808 * docs/g-ir-scanner.1:
3809 * metadata-annotations-proposal.txt:
3810 * metadata-format.txt:
3811 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3813 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3815 * giscanner/girwriter.py:
3816 * giscanner/glibtransformer.py:
3817 * giscanner/transformer.py:
3818 * giscanner/xmlwriter.py:
3819 * tests/parser/Foo-expected.gir:
3820 * tests/parser/foo-object.h:
3821 Write record/structs to gir file too. Add a couple of tests,
3822 fix an off by one error in xmlwriter.py.
3824 2008-04-28 Johan Dahlin <johan@gnome.org>
3826 * giscanner/xmlwriter.py: Calculate the line length properly,
3827 include the provided extra indentation in the calculation, really.
3829 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3832 * giscanner/glibast.py:
3833 * giscanner/glibtransformer.py:
3834 * giscanner/transformer.py:
3835 * tools/g-ir-scanner:
3836 Add a --strip-prefix and sort out confusion between names and symbols
3837 for functions and struct + derivaties.
3838 Refactor bootstrap of g-ir-scanner, so we can set options on
3839 Transformer() before parsing everything.
3841 2008-04-28 Johan Dahlin <johan@gnome.org>
3843 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3844 when scanning girepository.h
3846 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3847 a __GI_SCANNER__ when we run.
3849 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3852 * giscanner/girwriter.py:
3853 * giscanner/glibast.py:
3854 * giscanner/glibtransformer.py:
3855 * tests/parser/Foo-expected.gir:
3856 * tests/parser/utility-expected.gir:
3857 Rename most c:identifier to c:type. Add new ones to
3858 class/interface/enum/boxed.
3860 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3863 * giscanner/girwriter.py:
3864 * giscanner/glibtransformer.py:
3865 * tests/parser/Foo-expected.gidl:
3866 * tests/parser/Makefile.am:
3867 Move c:identifier from return-value to subchild type,
3868 as per Jürgs suggestion
3870 2008-04-28 Johan Dahlin <johan@gnome.org>
3872 * giscanner/girwriter.py:
3873 * tests/parser/Foo-expected.gir:
3874 Write property.type as a child node.
3876 2008-04-27 Johan Dahlin <johan@gnome.org>
3881 * gidl/gobject-2.0.gidl:
3883 * gir/gobject-2.0.gir:
3884 * tests/parser/Makefile.am:
3885 Replace the GObject gidl with a GObject gir.
3887 2008-04-27 Johan Dahlin <johan@gnome.org>
3889 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3892 * giscanner/xmlwriter.py:
3893 * tests/parser/Foo-expected.gir:
3894 Include indentation in line length calculation
3896 2008-04-27 Johan Dahlin <johan@gnome.org>
3898 * giscanner/girparser.py:
3899 Prettify NS parsing using elementtree.
3901 2008-04-27 Johan Dahlin <johan@gnome.org>
3904 * giscanner/Makefile.am:
3905 * giscanner/girparser.py:
3906 * giscanner/glibtransformer.py:
3907 * tests/parser/Foo-expected.gidl:
3908 * tests/parser/Foo-expected.gir:
3909 * tests/parser/Makefile.am:
3910 * tests/parser/utility-expected.gidl:
3911 * tests/parser/utility-expected.gir:
3912 * tools/g-ir-scanner:
3913 Switch over to GIR as the default format. Add a simple GIDL
3915 Update tests and fix simplify makefiles by depending
3916 on GNU make extensions.
3918 2008-04-27 Johan Dahlin <johan@gnome.org>
3920 * giscanner/xmlwriter.py:
3921 Wrap attributes for lines which are wider than 79 characters
3923 * giscanner/scannerlexer.l:
3924 Allow parenthesis in annotations
3927 * giscanner/gidlwriter.py:
3928 * giscanner/girwriter.py:
3929 * giscanner/glibtransformer.py:
3930 * giscanner/transformer.py:
3931 Add initial sequence support, including annotation.
3932 Refactor type handling a bit.
3934 2008-04-27 Johan Dahlin <johan@gnome.org>
3936 * tests/parser/Foo-expected.gidl:
3937 * tests/parser/foo-object.h:
3938 * tests/parser/foo.c (foo_object_class_init),
3939 (foo_object_get_strings), (foo_object_get_objects):
3940 Add two new functions to check sequence return values.
3941 Also fixes a compilation warning.
3943 2008-04-27 Johan Dahlin <johan@gnome.org>
3945 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3946 a compilation warning.
3948 * tools/Makefile.am (g_ir_scanner_SOURCES):
3949 g-ir-scanner has no sources.
3951 2008-04-25 Johan Dahlin <johan@gnome.org>
3953 * giscanner/Makefile.am:
3955 * giscanner/gidlparser.py:
3956 * giscanner/gidlwriter.py:
3957 * giscanner/girwriter.py:
3958 * giscanner/glibast.py:
3959 * giscanner/glibtransformer.py:
3960 * giscanner/transformer.py:
3961 Split out nodes to ast.py and glibast.py
3963 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3965 * giscanner/Makefile.am:
3966 * giscanner/gidlparser.py:
3967 * giscanner/gidlwriter.py:
3968 * giscanner/girwriter.py:
3969 * giscanner/glibtransformer.py:
3970 * giscanner/gobjecttreebuilder.py:
3971 * giscanner/transformer.py:
3972 * giscanner/treebuilder.py:
3973 * tools/g-ir-scanner:
3974 Rename treebuilder to transformer and
3975 gobjectreebuilder to glibtransformer.
3977 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3979 * giscanner/Makefile.am:
3980 * giscanner/__init__.py:
3981 * giscanner/cgobject.py:
3982 * giscanner/gidlparser.py:
3983 * giscanner/gidlwriter.py:
3984 * giscanner/girwriter.py:
3985 * giscanner/gobjecttreebuilder.py:
3986 * giscanner/odict.py:
3987 * giscanner/sourcescanner.py:
3988 * giscanner/treebuilder.py:
3989 * giscanner/xmlwriter.py:
3990 * tools/Makefile.am:
3991 * tools/g-ir-scanner:
3992 Add LGPLv2 license header and install all python files
3994 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3997 * giscanner/gidlwriter.py:
3998 * giscanner/giscannermodule.c (pygi_source_directive_new),
3999 (directive_get_options), (pygi_source_symbol_new),
4000 (symbol_get_base_type), (pygi_source_type_new),
4001 (type_get_base_type), (type_get_child_list),
4002 (pygi_source_scanner_get_symbols),
4003 (pygi_source_scanner_get_directives):
4004 * giscanner/gobjecttreebuilder.py:
4005 * giscanner/sourcescanner.py:
4006 * giscanner/treebuilder.py:
4007 * tests/parser/foo-object.h:
4008 Add support for virtual methods.
4009 Pair struct FooClass with struct Foo.
4010 Clean up the SourceScanner bindings a bit.
4011 Add a testcase for virtual methods.
4013 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4015 * giscanner/cgobject.py:
4016 * giscanner/gidlwriter.py:
4017 * giscanner/gobjecttreebuilder.py:
4018 Add support for signals
4020 * tests/parser/foo.c (foo_object_class_init):
4021 * Foo-expected.gidl:
4022 Add a signal and update the expected output.
4024 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4026 * giscanner/gidlwriter.py:
4027 * giscanner/girwriter.py:
4028 * giscanner/giscannermodule.c (directive_get_name),
4029 (directive_get_value), (directive_get_options),
4030 (symbol_get_directives), (symbol_set_directives),
4031 (pygi_source_scanner_parse_file),
4032 (pygi_source_scanner_lex_filename),
4033 (pygi_source_scanner_get_directives), (init_giscanner):
4034 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4035 * giscanner/sourcescanner.h:
4036 * giscanner/sourcescanner.py:
4037 * giscanner/treebuilder.py:
4038 * tools/g-ir-scanner:
4039 Add support for source/header annotations.
4041 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4043 * giscanner/gidlwriter.py:
4044 * giscanner/girwriter.py:
4045 * giscanner/gobjecttreebuilder.py:
4046 * giscanner/treebuilder.py:
4047 Add support for Callbacks
4049 2008-04-22 Havoc Pennington <hp@pobox.com>
4051 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4052 not in metadata->module, look for it in the global module, in case
4053 some other object or the app itself provides the symbol.
4055 2008-04-22 Havoc Pennington <hp@pobox.com>
4057 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4058 dlopening a library that is already in the main app, by checking
4059 whether one of the lib's symbols is already loaded.
4061 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4063 * tests/parser/Foo-expected.gidl:
4064 * tests/parser/foo-object.h:
4067 2008-04-22 Havoc Pennington <hp@pobox.com>
4069 * girepository/ginfo.c (g_interface_info_find_method):
4070 Use interface_blob_size not object_blob_size to compute offset.
4072 2008-04-22 Havoc Pennington <hp@pobox.com>
4074 * girepository/gmetadata.c (_g_metadata_init): remove
4075 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4076 (Glade and Clutter for example) rely on being loaded globally.
4078 2008-04-22 Havoc Pennington <hp@pobox.com>
4080 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4081 function to get the GType given a RegisteredTypeInfo
4083 2008-04-22 Johan Dahlin <johan@gnome.org>
4085 * COPYING: Add a LGPL license, to prevent automake to
4086 put in a copy of GPL here. Pointed out by Havoc.
4088 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4089 (g_type_info_is_pointer), (g_type_info_get_tag),
4090 (g_type_info_get_param_type), (g_type_info_get_interface),
4091 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4092 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4093 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4094 (g_object_info_get_interface), (g_object_info_get_field),
4095 (g_interface_info_get_prerequisite),
4096 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4097 * girepository/ginvoke.c (get_ffi_type):
4098 * girepository/girepository.h:
4099 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4100 (g_metadata_check_sanity), (validate_header),
4101 (validate_array_type_blob), (validate_iface_type_blob),
4102 (validate_param_type_blob), (validate_error_type_blob),
4103 (validate_type_blob), (validate_constant_blob),
4104 (validate_struct_blob), (validate_enum_blob):
4105 * girepository/gmetadata.h:
4106 * tests/Makefile.am:
4107 * tests/invoke/Makefile.am:
4108 * tests/invoke/invoke.c (main):
4109 * tests/roundtrips.sh:
4110 * tools/Makefile.am:
4111 * tools/compiler.c (format_output), (write_out_metadata), (main):
4112 * tools/generate.c (write_type_name), (write_type_info),
4113 (write_constant_value), (write_enum_info), (load_metadata), (main):
4114 * tools/gidlcompilercontext.c:
4115 * tools/gidlcompilercontext.h:
4116 * tools/gidlcompilerentrynode.c:
4117 * tools/gidlcompilerentrynode.h:
4118 * tools/gidlcompilertypenode.c:
4119 * tools/gidlcompilertypenode.h:
4120 * tools/gidlmodule.c (g_idl_module_build_metadata):
4121 * tools/gidlmodule.h:
4122 * tools/gidlnode.c (init_stats), (dump_stats),
4123 (g_idl_node_get_size), (g_idl_node_get_full_size),
4124 (g_idl_node_cmp), (g_idl_node_can_have_member),
4125 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4126 (parse_int_value), (parse_uint_value), (parse_float_value),
4127 (parse_boolean_value), (find_entry_node), (find_entry),
4128 (serialize_type), (g_idl_node_build_metadata), (write_string):
4130 * tools/gidlparser.c (parse_type_internal):
4131 * tools/quote-file.sh:
4132 Revert revisions 157,149-148,136-129 and 120.
4133 Move back to using g-idl-generate to generate the metadata and
4134 avoids dependency on a c compiler.
4136 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4138 * giscanner/girwriter.py:
4139 * tools/g-ir-scanner:
4140 Add an initial GIR writer and a --format option to g-ir-scanner
4142 2008-04-21 Johan Dahlin <johan@gnome.org>
4144 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4145 gobject-2.0 and raise ImportError if not found.
4147 * giscanner/gidlparser.py:
4148 * giscanner/gidlwriter.py:
4149 * giscanner/gobjecttreebuilder.py:
4150 * tools/g-ir-scanner:
4151 Add a --include argument to include types from other idls.
4152 Add a minimalistic GIDL parser (just objects for now)
4153 Implement resolving of external type references and use it to
4154 resolve parent types, argument types and return types.
4156 2008-04-21 Johan Dahlin <johan@gnome.org>
4158 * giscanner/gidlwriter.py:
4159 * giscanner/gobjecttreebuilder.py:
4160 * giscanner/treebuilder.py:
4161 Add support for properties.
4162 Refactor Class/Interface support a bit, to share more code and
4163 always initialize their method attribute to an empty list.
4165 2008-04-21 Johan Dahlin <johan@gnome.org>
4167 * giscanner/cgobject.py:
4168 Add a workaround for a glib bug interface introspection bug
4169 (object_interface_list_properties, object_class_list_properties):
4170 Cast the return value to GParamSpec.
4172 * tests/parser/Foo-expected.gidl: Update
4173 * tests/parser/foo.c: Add a string property
4175 * giscanner/gobjecttreebuilder.py:
4176 After stripping namespaces, remove the original
4177 item to avoid duplication (GtkButton struct and Button object)
4179 2008-04-21 Johan Dahlin <johan@gnome.org>
4181 * giscanner/gobjecttreebuilder.py:
4182 * giscanner/treebuilder.py:
4183 Strip namespaces before objects, so we'll export
4184 GtkButton as Button in the gtk namespace
4186 2008-04-21 Johan Dahlin <johan@gnome.org>
4188 * giscanner/gidlwriter.py:
4189 * giscanner/gobjecttreebuilder.py:
4190 * giscanner/treebuilder.py:
4191 Add constructors for object/boxed types.
4193 2008-04-21 Johan Dahlin <johan@gnome.org>
4195 * giscanner/gidlwriter.py:
4196 * giscanner/gobjecttreebuilder.py:
4197 Add support for boxed types
4199 2008-04-21 Johan Dahlin <johan@gnome.org>
4201 * giscanner/giscannermodule.c: Mark structures as const,
4202 wrap SourceType.const_string.
4204 * tests/parser/foo-object.h: Add a couple of constants.
4206 * giscanner/gidlwriter.py:
4207 * giscanner/gobjecttreebuilder.py:
4208 * giscanner/treebuilder.py:
4209 Add basic support for interfaces
4211 * tools/g-ir-scanner:
4212 Add -o/--output for writing to a file
4214 2008-04-21 Havoc Pennington <hp@redhat.com>
4216 * TODO: add some C API wishlist items I could think of quickly
4218 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4220 * giscanner/gidlwriter.py:
4221 * giscanner/xmlwriter.py:
4222 Add a simple api for writing tags which can be used
4223 with the new 'with statement' in python 2.5
4225 2008-04-21 Johan Dahlin <johan@gnome.org>
4227 * giscanner/gobjecttreebuilder.py:
4228 Strip namespace and object prefix from method names.
4230 2008-04-21 Johan Dahlin <johan@gnome.org>
4232 * tools/g-ir-scanner (main): Add --pkg option to pass in
4233 pkg-config modules to get cflags from.
4235 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4236 Avoid duplication, reuse function writer for methods.
4238 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4240 * giscanner/gidlwriter.py:
4241 * giscanner/gobjecttreebuilder.py:
4242 * giscanner/treebuilder.py:
4243 * tools/g-ir-scanner:
4244 Resolve libtool .la files.
4245 Strip name spaces for methods.
4246 Add function symbols
4248 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4250 * giscanner/cgobject.py:
4251 * giscanner/gidlwriter.py:
4252 * giscanner/gobjecttreebuilder.py:
4253 * giscanner/treebuilder.py:
4254 Add support for classes and methods
4256 2008-04-20 Johan Dahlin <johan@gnome.org>
4258 * giscanner/gidlwriter.py:
4259 * giscanner/gobjecttreebuilder.py:
4260 * giscanner/odict.py:
4261 Avoid conflicts, keep the output ordered similar to
4262 the order of the input.
4263 Add a simple ordered dictionary implemenation
4265 2008-04-19 Johan Dahlin <johan@gnome.org>
4267 * giscanner/cgobject.py:
4268 * giscanner/gidlwriter.py:
4269 * giscanner/gobjecttreebuilder.py:
4270 * tools/g-ir-scanner:
4271 Start introspecting get-type functions.
4272 Implement support for GLib/GFlags GTypes.
4273 Add a ctype based GObject binding.
4275 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4277 * giscanner/gidlwriter.py:
4278 * giscanner/xmlwriter.py:
4279 * tools/g-ir-scanner:
4280 Add a simplistic gidl writer, which can't do too much.
4282 2008-04-18 Johan Dahlin <johan@gnome.org>
4284 * giscanner/sourcescanner.py:
4285 * giscanner/treebuilder.py:
4286 * tools/g-ir-scanner:
4287 split tree building and source scanning interface to separate files.
4289 2008-04-18 Johan Dahlin <johan@gnome.org>
4291 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4293 - Add support for struct/parameter/return, start parsing of ctypes
4295 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4298 2008-03-31 Johan Dahlin <johan@gnome.org>
4300 * tools/g-ir-scanner:
4301 Start to build abstract syntax node of scanned sources.
4302 Add support for cpp options.
4304 2008-03-27 Johan Dahlin <johan@gnome.org>
4306 * giscanner/giscannermodule.c:
4307 * giscanner/scannerlexer.l:
4308 * giscanner/sourcescanner.c:
4309 * tools/g-ir-scanner:
4311 Add simple pre-processor using subprocess and a PIPE.
4312 Change the parse_file apis to accept a file descriptor.
4314 2008-03-25 Johan Dahlin <johan@gnome.org>
4316 * giscanner/__init__.py:
4317 * tools/g-ir-scanner:
4318 Fix a typo and add an example python test program.
4320 2008-03-25 Johan Dahlin <johan@gnome.org>
4322 * giscanner/__init__.py:
4323 * giscanner/giscannermodule.c:
4324 * giscanner/sourcescanner.c:
4325 * giscanner/sourcescanner.h:
4326 Add constants and wrap a few more SymbolType fields
4328 2008-03-25 Johan Dahlin <johan@gnome.org>
4332 * giscanner/__init__.py:
4333 * giscanner/giscannermodule.c:
4334 * giscanner/Makefile.am:
4336 Add initial python bindings for the scanner and
4337 depend on python 2.5.
4339 2008-03-25 Johan Dahlin <johan@gnome.org>
4343 * giscanner/Makefile.am:
4344 * giscanner/sourcescanner.c:
4345 * giscanner/sourcescanner.h:
4346 * tools/Makefile.am:
4347 * tools/grealpath.h:
4348 * tools/sourcescanner.c:
4349 * tools/sourcescanner.h:
4351 Move the scanner to a separate library.
4353 2008-03-23 Johan Dahlin <johan@gnome.org>
4355 * tools/Makefile.am:
4358 * tools/scannerlexer.l:
4359 * tools/scannerparser.y:
4360 * tools/sourcescanner.c:
4361 * tools/sourcescanner.h:
4362 Split out the source scanner from the generator.
4363 Rename the symbols used in the scanner to use the gi_ prefix.
4364 This should make it possible to use the raw C parser from
4367 2008-03-23 Johan Dahlin <johan@gnome.org>
4369 * tests/parser/Makefile.am (utility.gidl):
4370 * tests/parser/utility-expected.gidl:
4371 Pass in the gobject.gidl since we're defining a GObject.
4373 2008-03-12 Johan Dahlin <johan@gnome.org>
4375 * relaxng/relaxng.rng:
4376 Add a releaxng in relaxng we can use to validate the relaxngs
4379 2008-03-12 Jürg Billeter <j@bitron.ch>
4381 * tools/scanner.c: (g_igenerator_new):
4382 * tools/scannerparser.y:
4383 Fix compiler warnings.
4385 2008-03-12 Jürg Billeter <j@bitron.ch>
4389 * tools/scannerparser.y:
4390 Start fixing memory management in g-idl-scanner.
4392 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4394 * tools/gidlcompilercontext.c: (write_compiled):
4395 Fix critical warning when no shlib passed to g-idl-compiler.
4397 2008-03-12 Johan Dahlin <johan@gnome.org>
4399 * tests/parser/utility-expected.gidl:
4400 * tests/parser/utility.h:
4401 Add a get_type-function, so the scanner actually
4402 parses it as an object.
4404 2008-03-12 Johan Dahlin <johan@gnome.org>
4406 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4409 * tests/parser/Foo-expected.gidl:
4410 * tests/parser/Makefile.am:
4411 * tests/parser/foo-object.h:
4412 * tests/parser/foo.c:
4413 * tests/parser/utility-expected.gidl:
4414 * tests/parser/utility.c:
4415 * tests/parser/utility.h:
4417 Add a new gidl test. 'utility.gidl', which is used to be able
4418 to test external type references. Add a reference to UtilityObject*
4421 2008-03-11 Johan Dahlin <johan@gnome.org>
4425 Remove most global variables
4427 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4429 * tools/scannerlexer.l:
4431 * tests/parser/Foo-expected.gidl:
4432 * tests/parser/foo.c:
4433 * tests/parser/Makefile.am:
4434 * tests/parser/foo-object.h:
4436 Added a few extra tests. Which resulted in finding a few
4437 bugs. Which resulted in me fixing those bugs
4439 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4441 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4442 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4443 Add some comments for strings into generated output for
4446 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4448 * tools/gidlcompilercontext.c: (write_compiled):
4449 Write out the shlibs variable before writing out the strings
4450 length. Fixes compiler warning when using '-l' flag with
4453 2008-03-11 Johan Dahlin <johan@gnome.org>
4455 * tests/parser/Foo-expected.gidl:
4456 * tests/parser/foo-object.h:
4459 * tools/scannerlexer.l:
4460 Add support for parsing return arguments. Add support for
4461 caller-owns return types.
4462 Patch by Philip Van Hoof.
4464 * tools/scannerparser.y:
4465 Remove parsing of the @deprecated syntax used in headers.
4466 We will support gtk-doc deprecation in the future instead.
4468 2008-03-11 Johan Dahlin <johan@gnome.org>
4470 * tools/compiler.c (main): Coding style fixes
4472 2008-03-10 Johan Dahlin <johan@gnome.org>
4475 Add GCOV_LIBS to GILIBS
4477 2008-03-10 Johan Dahlin <johan@gnome.org>
4479 * tests/parser/Foo-expected.gidl:
4480 * tests/parser/foo.c:
4481 Rename null-ok to direction=out
4483 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4485 reviewed and extensively tested by Johan
4487 * tests/parser/Foo-expected.gidl:
4488 * tests/parser/foo-object.h:
4489 * tests/parser/foo.c:
4492 * tools/gidlwriter.c:
4495 * tools/scannerlexer.l:
4496 * tools/scannerparser.y:
4498 Add support for scanning for gtk-doc comments inside
4499 C source files. Add tests
4501 2008-03-10 Johan Dahlin <johan@gnome.org>
4503 * tests/parser/Makefile.am:
4504 * tests/parser/foo.c:
4507 * tools/scannerparser.y:
4508 Add an api to lex filenames.
4509 Lex all source .c files passed in on the command line.
4510 Scan sources in a test and a couple of private structures
4511 which should not be included in the generated gidl
4513 2008-03-10 Johan Dahlin <johan@gnome.org>
4515 * tests/invoke/Makefile.am: Make the generated metadata
4516 depend on the g-idl-compiler
4518 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4520 * tools/gidlmodule.c
4521 * tools/gidlmodule.h
4524 Remove the old g-idl-compiler code.
4527 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4529 * tools/quote-file.sh
4532 Move to using the 'C' struct compiler code.
4534 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4536 * girepository/ginfo.c
4538 Change the way that external references with no namespace
4539 are dealt with. External references with no namespace
4540 are placed into the XML as-if they are a local reference.
4541 This is temporary, but helps with roundtrip tests.
4543 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4545 * girepository/ginfo.c
4546 Add the ability to get the value of a constant of
4547 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4548 is provided as a string.
4550 This would deal properly with:
4551 typedef char* random;
4552 const random = "A string";
4554 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4556 * girepository/ginfo.c
4557 * girepository/girepository.h
4559 Add a function to check if an enum is registered or not.
4560 Previously anything testing this relied on the g-type
4561 string offset having a value of 0.
4563 * girepository/gmetadata.c
4564 * girepository/gmetadata.h
4566 Remove unneccesary or erroneous checks. There were two
4567 metadata validation checks which made sure that the blob
4568 sizes were the same as some magic numbers compiled into the code.
4569 This is wrong as it breaks any forwards compatibility that may
4572 Checks were also present that made sure that unregistered type
4573 blobs had a value of 0 in the g-type offset field. This is
4574 unneccessary. If a type blob is unregistered then any value
4575 in its g-type field is simply invalid.
4577 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4579 * girepository/ginfo.c
4580 * girepository/gmetadata.c
4581 * girepository/gmetadata.h
4583 Change the metadata format to have a standard header
4584 for all the type blobs. Merge the SimpleTypeBlob
4585 and InterfaceTypeBlob into a union. A union of these
4586 two blobs existed previously but was not explicit
4587 in the metadata format.
4589 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4591 * tools/gidlcompilercontext.c
4592 * tools/gidlcompilercontext.h
4593 * tools/gidlcompilerentrynode.c
4594 * tools/gidlcompilerentrynode.h
4595 * tools/gidlcompilertypenode.c
4596 * tools/gidlcompilertypenode.h
4598 Add code to compile a tree of GIdlNodes to
4599 a 'C' struct representing the metadata.
4600 This is to aid cross-compiling. Previously
4601 the g-idl-compiler created a binary blob with
4602 data written in the byte order and alignment
4603 of the tool rather than the intended target.
4605 Cleaned up and improved by Johan and Robert :-)
4607 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4609 * girepository/ginvoke.c
4610 * girepository/girepository.h
4611 * girepository/gmetadata.c
4612 * girepository/gmetadata.h
4614 * tools/gidlparser.c
4615 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4616 to avoid confusion with the interface blob.
4619 * tools/gidlparser.c
4620 Remove magic numbers and replace with type-tag
4621 enumeration symbols.
4623 * girepository/gmetadata.c
4624 Add validate declaration.
4626 2008-03-10 Jürg Billeter <j@bitron.ch>
4628 * tools/gidlparser.c: (parse_type_internal):
4629 * tools/scannerlexer.l:
4630 * tools/scannerparser.y:
4631 Support C99 _Bool type in scanner.
4633 2008-03-10 Jürg Billeter <j@bitron.ch>
4635 * tests/parser/Foo-expected.gidl:
4636 * tests/parser/foo-object.h:
4637 * tests/parser/foo.c: (foo_enum_method):
4638 * tools/scanner.c: (g_igenerator_process_function_symbol):
4639 Don't skip functions that are defined in the namespace of a type
4640 that doesn't support methods, as for example enums.
4642 2008-03-10 Johan Dahlin <johan@gnome.org>
4644 * gidl.dtd: Remove, we're using relaxng for now
4646 * tests/parser/Foo-expected.gidl:
4647 * tests/parser/foo-object.h:
4648 * tests/parser/foo.c:
4649 Rename the enum/flags get_type functions to include the whole type.
4651 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4653 * tools/gidlwriter.c (enum_generate): added "type-name",
4654 "get-type" and "deprecated" missing arguments.
4655 * tests/parser/Foo-expected.gidl:
4656 * tests/parser/foo-object.h: test enum type, and no type.
4658 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4661 Consistent checks, add missing 'test'
4663 2008-03-05 Havoc Pennington <hp@redhat.com>
4665 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4666 does on Fedora 8. Make libffi a hard requirement, since it was in
4667 practice anyway (was not really conditional in the code or
4668 makefile, only in configure).
4670 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4672 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4673 reviewed by: Johan Dahlin <johan@gnome.org>
4675 * tests/Makefile.am:
4676 * tests/roundtrips.sh:
4677 Modify the roundtrips test so that they do not use the
4678 --raw option of the gidl compiler but instead compile a
4679 shared library to use with g_module.
4681 * tests/invoke/Makefile.am:
4682 * tests/invoke/invoke.c:
4683 Modify the invoke tests to build a shared library rather
4684 than use the --raw option.
4686 * tests/invoke/invoke-namespace-find.sh: Removed:
4687 Noone knows why this was here, so removed.
4689 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4691 * tools/scanner.c: (g_igenerator_process_function_symbol):
4692 Move g_idl_node_can_have_member test later, as it broke spotting
4693 get_type's for nodes that can't have members.
4695 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4698 * tools/gidlnode.c: (g_idl_node_can_have_member):
4699 Add g_idl_node_can_have_member.
4701 * tools/scanner.c: (g_igenerator_process_function_symbol):
4702 Use g_idl_node_can_have_member to test if we should add a function
4703 as a member of the type node.
4705 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4707 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4709 * tests/parser/Makefile.am:
4710 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4712 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4714 * tools/scanner.c: (main):
4715 Ignore -pthread when passed to g-idl-scanner.
4717 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4719 * tools/grealpath.h: Added:
4720 * tools/scanner.c: (main):
4721 * tools/scannerlexer.l:
4722 * tools/Makefile.am:
4723 Always use absolute paths with symbolic links resolved when
4724 comparing filenames.
4726 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4728 * gobject-introspection.pc.in:
4729 Provide variables for g-idl-parser, scanner and compiler in the
4732 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4735 * girepository/Makefile.am:
4736 * tools/Makefile.am:
4737 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4739 2008-02-10 Johan Dahlin <johan@gnome.org>
4741 * tests/parser/Foo-expected.gidl:
4742 * tests/parser/foo-object.h:
4743 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4744 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4747 2008-02-10 Johan Dahlin <johan@gnome.org>
4749 * tests/parser/Foo-expected.gidl:
4750 * tests/parser/foo-object.h:
4751 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4752 Add enum and flags test.
4754 2008-02-10 Johan Dahlin <johan@gnome.org>
4758 * girepository/Makefile.am:
4759 Make 'make distcheck' work again.
4761 2008-02-10 Johan Dahlin <johan@gnome.org>
4763 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4766 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4767 check, eg exclude it from BUILT_SOURCES.
4769 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4774 * girepository/Makefile.am:
4775 * m4/Makefile.am: Added:
4776 * m4/as-compiler-flag.m4: Added:
4777 * m4/gcov.m4: Added:
4778 * tools/Makefile.am:
4779 Add ability to generate a coverage report.
4780 Adds configure option --enable-gcov and make rule 'check-coverage'.
4782 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4786 * gidl/Makefile.am: Added:
4787 * girepository/Makefile.am: Added:
4788 * src/Makefile.am: Renamed to tools/Makefile.am:
4789 * src/compiler.c: Renamed to tools/compiler.c:
4790 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4791 * src/generate.c: Renamed to tools/generate.c:
4792 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4793 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4794 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4795 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4796 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4797 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4798 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4799 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4800 * src/ginfo.c: Renamed to girepository/ginfo.c:
4801 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4802 * src/girepository.c: Renamed to girepository/girepository.c:
4803 * src/girepository.h: Renamed to girepository/girepository.h:
4804 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4805 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4806 * src/scanner.c: Renamed to tools/scanner.c:
4807 * src/scanner.h: Renamed to tools/scanner.h:
4808 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4809 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4810 * tests/invoke/Makefile.am:
4811 Split src/ into girepository/ and tools/
4815 * girepository/Makefile.am:
4816 * tests/Makefile.am:
4817 * tests/invoke/Makefile.am:
4818 * tests/parser/Makefile.am:
4819 * tests/roundtrips.sh:
4820 * tools/Makefile.am:
4821 Make distcheck work.
4823 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4825 * tests/invoke/invoke.c: (main):
4826 * tests/invoke/testfns.c: (test6), (test7):
4827 * tests/invoke/testfns.xml:
4828 Add tests for invokation with a GList argument.
4829 Also tests caller-owns return values.
4831 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4834 Add some documentation for GICallableInfo
4836 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4839 Correct syntax errors in the DTD file.
4841 * relaxng/c-types.xml:
4842 * relaxng/g-types.xml:
4844 Add a RelaxNG specification for the GObject Introspection XML data.
4845 The Specification has validated all of the test files.
4847 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4849 * tests/roundtrips.sh:
4850 * tests/struct.test:
4851 Add roundtrip tests for structs.
4853 2008-01-11 Johan Dahlin <johan@gnome.org>
4855 * src/scanner.c (g_igenerator_process_function_symbol):
4856 Refactor out g_idle_node_add_member.
4857 (create_node_from_gtype, create_node_from_ctype):
4858 Use case instead of if...else
4859 (get_type_from_type_id):
4860 Rename to create_node_from_gtype
4861 (get_type_from_ctype):
4862 Rename to create_node_from_ctype
4864 Rename ginode -> node, gitype -> type, gifunc -> func.
4866 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4867 Two new functions, refactor out of scanner.c
4869 * src/scanner.c: (g_igenerator_process_function_symbol):
4870 * src/scannerlexer.l:
4871 Do not save the content of the deprecated variable, only
4874 2008-01-11 Johan Dahlin <johan@gnome.org>
4876 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4878 2008-01-11 Jürg Billeter <j@bitron.ch>
4880 * src/scannerlexer.l:
4881 Fix GTK-Doc parsing.
4883 2008-01-11 Jürg Billeter <j@bitron.ch>
4885 * src/scannerlexer.l:
4886 Fix GTK-Doc parsing.
4888 2008-01-11 Jürg Billeter <j@bitron.ch>
4890 * src/scanner.c: (lookup_symbol):
4891 Return unresolved name if we find unknown symbol.
4893 2008-01-11 Jürg Billeter <j@bitron.ch>
4895 * src/scanner.c: (g_igenerator_generate):
4896 Initialize GObject to fix scanning interface properties.
4898 * tests/parser/Foo-expected.gidl:
4899 * tests/parser/foo-object.h:
4900 * tests/parser/foo.c: (foo_interface_get_type):
4901 Test interfaces with GObject prerequisite.
4903 * tests/parser/Makefile.am:
4904 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4906 2007-12-27 Johan Dahlin <johan@gnome.org>
4908 * src/scannerlexer.l:
4909 Parse gtk-doc comments.
4911 * src/gidlwriter.c: (function_generate):
4912 Reorganize, avoid duplication and add support for
4913 writing deprecated functions.
4915 * src/scannerparser.y:
4917 Add new structure CDirective and functions to create/free them.
4919 * src/scanner.c: (g_igenerator_process_function_symbol),
4920 (g_igenerator_process_unregistered_struct_typedef),
4921 (g_igenerator_process_struct_typedef),
4922 (g_igenerator_process_union_typedef),
4923 (g_igenerator_process_enum_typedef),
4924 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4925 (g_igenerator_start_preprocessor):
4926 Parse @deprecated directive for functions.
4927 Remove some more C99isms.
4928 Send in -C to cpp to avoid stripping comments.
4930 * tests/parser/foo-object.h:
4931 * tests/parser/Foo-expected.gidl:
4932 Add deprecated directive
4934 2007-12-27 Johan Dahlin <johan@gnome.org>
4936 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4937 escape ' and " so it looks more like C.
4940 Unlink temporary file used.
4942 2007-12-27 Johan Dahlin <johan@gnome.org>
4944 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4945 (g_igenerator_start_preprocessor), (main):
4947 * src/scannerparser.y:
4948 Plug a couple of simple memory leaks.
4950 2007-12-27 Johan Dahlin <johan@gnome.org>
4952 * src/scanner.c: (g_igenerator_parse_macros),
4953 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4956 * src/scannerparser.y:
4957 * tests/parser/Makefile.am:
4959 Improve error reporting, return when the preprocessor fails.
4960 Add a verbose parameter, to aid debugging.
4961 Revert to using a temporary file to communicate between the
4962 preprocessor and the parser, because we need to wait for
4963 the exit code from the pre-processor before starting to parse.
4965 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4967 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4968 cparser.y to scannerparser.y
4970 2007-12-11 Johan Dahlin <johan@gnome.org>
4974 * src/scanner.c: (g_igenerator_new):
4976 Get rid of the global the_generator variable.
4978 2007-12-10 Johan Dahlin <johan@gnome.org>
4980 * src/scanner.c (main): Add an output option,
4981 add checks for required parameters
4984 set BUILD_SOURCES and CLEANFILES properly
4986 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4987 (g_writer_write_indent), (g_writer_write_unindent),
4988 (field_generate), (value_generate), (constant_generate),
4989 (property_generate), (function_generate), (vfunc_generate),
4990 (signal_generate), (interface_generate), (struct_generate),
4991 (union_generate), (boxed_generate), (enum_generate),
4992 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4994 * src/scanner.c: (g_igenerator_generate):
4996 * src/scannerwriter.c:
4998 Refactor scannerwriter to only be tied to a GIdlModule and move
4999 it (again!) to gidlwriter.c. Change the writer function to take
5002 2007-12-10 Johan Dahlin <johan@gnome.org>
5005 * src/scanner.c: (g_igenerator_generate):
5007 * src/scannerwriter.c: (g_igenerator_write_inline),
5008 (g_igenerator_write), (g_igenerator_write_indent),
5009 (g_igenerator_write_unindent), (field_generate), (value_generate),
5010 (constant_generate), (property_generate), (function_generate),
5011 (vfunc_generate), (signal_generate), (interface_generate),
5012 (struct_generate), (union_generate), (boxed_generate),
5013 (enum_generate), (node_generate), (module_generate),
5014 (g_scanner_write_file):
5016 Move the scanner gidl writing to a separate source file.
5018 2007-12-10 Johan Dahlin <johan@gnome.org>
5023 Move over all CType construction functions.
5025 * tests/parser/Makefile.am:
5026 Be verbose when printing parsing tests results.
5028 2007-12-10 Johan Dahlin <johan@gnome.org>
5030 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5031 preprocessor handling to here. Start cpp insteado of cc -E,
5032 always include -U__GNUC__, since it's specific to the preprocessor
5035 * tests/parser/Makefile.am (check-local): Silent diff and skip
5036 -U__GNUC__ which is always defined now
5038 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5040 reviewed by: <delete if not using a buddy>
5042 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5043 * tests/parser/Makefile.am:
5045 2007-12-09 Johan Dahlin <johan@gnome.org>
5048 Use GOption for command line options.
5049 (g_igenerator_new, main): Simplify constructor and they way
5050 parameters are passed into it.
5056 * src/gen-introspect.c:
5057 * src/gen-introspect.h:
5059 Rename gen-introspect.[ch] to scanner.[ch]
5061 2007-12-09 Johan Dahlin <johan@gnome.org>
5065 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5066 don't make the repository library and the other utilites link against
5069 * src/gen-introspect.c: (g_igenerator_create_object),
5070 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5071 (g_igenerator_create_enum), (g_igenerator_create_flags),
5072 (g_igenerator_process_module_symbol),
5073 (g_igenerator_process_module), (g_igenerator_generate), (main):
5074 * src/gen-introspect.h:
5075 Refactor g_igenerator_process_types into smaller pieces.
5077 * tests/parser/Makefile.am:
5078 Depend on the gen-introspect binary
5080 2007-12-09 Johan Dahlin <johan@gnome.org>
5082 * src/gen-introspect.c (g_igenerator_process_types):
5083 Break into smaller pieces, one for each generated node type.
5085 2007-12-08 Johan Dahlin <johan@gnome.org>
5087 * src/gen-introspect.c: (g_igenerator_process_types),
5088 (g_igenerator_add_module):
5089 * tests/parser/Foo-expected.gidl:
5090 * tests/parser/foo-object.h:
5091 * tests/parser/foo.c: (foo_subobject_class_init),
5092 (foo_subobject_init):
5094 Add a subobject test and make sure to register defined classes
5095 in the lookup symbol hash table.
5097 2007-12-08 Johan Dahlin <johan@gnome.org>
5101 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5102 (g_igenerator_process_types), (g_igenerator_add_module),
5103 (g_igenerator_add_include_idl), (main):
5104 * src/gen-introspect.h:
5105 * tests/parser/Makefile.am:
5106 * tests/parser/Foo-expected.gidl:
5108 Change the gen-introspect to generate namespaced module names,
5109 such as GLib.Object instead of GObject.
5110 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5111 add a --include-idl parameter to gen-introspect,
5112 and update the parser test.
5114 2007-12-08 Johan Dahlin <johan@gnome.org>
5116 * src/gen-introspect.c:
5117 Move main to the end of the file and attempt to make it valid
5120 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5121 we're not quite ready to generate metadata yet.
5126 Add a simple gen-introspect parser test
5128 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5130 reviewed by: Johan Dahlin <johan@gnome.org>
5133 * gobject-introspection.pc.in:
5135 * src/compiler.c: (format_output), (write_out_metadata), (main):
5136 * src/gen-introspect.c: (main):
5137 * src/gen-introspect.h:
5138 * src/generate.c: (write_callable_info), (write_repository),
5139 (load_metadata), (main):
5140 * src/gidlmodule.c: (g_idl_module_new),
5141 (g_idl_module_build_metadata):
5143 * src/gidlparser.c: (start_element_handler):
5144 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5145 (g_base_info_get_name), (g_base_info_get_namespace),
5146 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5147 (g_base_info_get_metadata), (g_function_info_get_symbol),
5148 (g_function_info_get_flags), (g_function_info_get_property),
5149 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5150 (g_callable_info_may_return_null),
5151 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5152 (g_callable_info_get_arg), (g_arg_info_get_direction),
5153 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5154 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5155 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5156 (g_type_info_get_tag), (g_type_info_get_param_type),
5157 (g_type_info_get_interface), (g_type_info_get_array_length),
5158 (g_type_info_is_zero_terminated),
5159 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5160 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5161 (g_value_info_get_value), (g_field_info_get_flags),
5162 (g_field_info_get_size), (g_field_info_get_offset),
5163 (g_registered_type_info_get_type_name),
5164 (g_registered_type_info_get_type_init),
5165 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5166 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5167 (find_method), (g_struct_info_find_method),
5168 (g_enum_info_get_n_values), (g_enum_info_get_value),
5169 (g_object_info_get_parent), (g_object_info_get_type_name),
5170 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5171 (g_object_info_get_interface), (g_object_info_get_n_fields),
5172 (g_object_info_get_field), (g_object_info_get_n_properties),
5173 (g_object_info_get_property), (g_object_info_get_n_methods),
5174 (g_object_info_get_method), (g_object_info_find_method),
5175 (g_object_info_get_n_signals), (g_object_info_get_signal),
5176 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5177 (g_object_info_get_n_constants), (g_object_info_get_constant),
5178 (g_interface_info_get_n_prerequisites),
5179 (g_interface_info_get_prerequisite),
5180 (g_interface_info_get_n_properties),
5181 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5182 (g_interface_info_get_method), (g_interface_info_find_method),
5183 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5184 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5185 (g_interface_info_get_n_constants),
5186 (g_interface_info_get_constant), (g_property_info_get_flags),
5187 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5188 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5189 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5190 (g_constant_info_get_value), (g_union_info_get_n_fields),
5191 (g_union_info_get_field), (g_union_info_get_n_methods),
5192 (g_union_info_get_method), (g_union_info_is_discriminated),
5193 (g_union_info_get_discriminator_offset),
5194 (g_union_info_get_discriminator):
5195 * src/ginvoke.c: (g_function_info_invoke):
5196 * src/girepository.c: (g_irepository_register),
5197 (g_irepository_unregister), (g_irepository_get_default),
5198 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5199 (g_irepository_get_info), (g_irepository_find_by_name),
5200 (g_irepository_get_shared_library),
5201 (g_irepository_build_search_path), (g_irepository_register_file),
5202 (g_irepository_error_quark):
5203 * src/girepository.h:
5204 * src/gmetadata.c: (g_metadata_get_dir_entry),
5205 (g_metadata_check_sanity), (validate_header),
5206 (validate_array_type_blob), (validate_iface_type_blob),
5207 (validate_param_type_blob), (validate_error_type_blob),
5208 (validate_type_blob), (validate_arg_blob),
5209 (validate_signature_blob), (validate_function_blob),
5210 (validate_callback_blob), (validate_constant_blob),
5211 (validate_value_blob), (validate_field_blob),
5212 (validate_property_blob), (validate_signal_blob),
5213 (validate_vfunc_blob), (validate_struct_blob),
5214 (validate_enum_blob), (validate_object_blob),
5215 (validate_interface_blob), (validate_errordomain_blob),
5216 (validate_union_blob), (validate_blob), (validate_directory),
5217 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5218 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5219 (g_metadata_new_from_mapped_file), (g_metadata_free),
5220 (g_metadata_set_module), (g_metadata_get_namespace):
5222 * tests/Makefile.am:
5223 * tests/invoke/Makefile.am:
5224 * tests/invoke/invoke-namespace-find.sh:
5225 * tests/invoke/invoke.c: (main):
5227 Add a namespace/shared library mapping. fixes #313268.
5229 2007-12-03 Johan Dahlin <johan@gnome.org>
5231 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5234 2007-11-30 Jürg Billeter <j@bitron.ch>
5240 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5241 (g_igenerator_write_inline), (g_igenerator_write),
5242 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5243 (field_generate), (value_generate), (constant_generate),
5244 (property_generate), (function_generate), (vfunc_generate),
5245 (signal_generate), (interface_generate), (struct_generate),
5246 (union_generate), (boxed_generate), (enum_generate),
5247 (node_generate), (module_generate), (get_type_from_type_id),
5248 (str_replace), (g_igenerator_process_properties),
5249 (g_igenerator_process_signals), (g_igenerator_process_types),
5250 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5251 (g_igenerator_process_unregistered_struct_typedef),
5252 (g_igenerator_process_struct_typedef),
5253 (g_igenerator_process_union_typedef),
5254 (g_igenerator_process_enum_typedef),
5255 (g_igenerator_process_function_typedef),
5256 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5257 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5258 (g_igenerator_generate), (main), (csymbol_new),
5259 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5260 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5261 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5262 (eat_hspace), (eat_line), (read_identifier),
5263 (g_igenerator_parse_macros):
5264 * src/gen-introspect.h:
5266 Import gen-introspect to generate introspection information by
5269 2007-11-30 Jürg Billeter <j@bitron.ch>
5271 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5273 2007-11-30 Jürg Billeter <j@bitron.ch>
5275 * src/gidlparser.c: (end_element_handler): Don't leave requires
5278 2007-11-29 Johan Dahlin <johan@gnome.org>
5280 * src/gidlparser.c (parse_type_internal): Add char,
5281 gchar and guchar to the builtin types.
5283 2007-11-26 Johan Dahlin <johan@gnome.org>
5285 * src/ginfo.c: (g_object_info_get_type_name),
5286 (g_object_info_get_type_init):
5287 * src/girepository.c: (g_irepository_is_registered):
5288 * src/girepository.h:
5290 Add g_object_info_get_type_name, g_object_info_get_type_init and
5291 g_irepository_is_registered.
5293 2006-08-14 Jürg Billeter <j@bitron.ch>
5295 * src/gidlparser.c: (end_element_handler): Don't leave
5296 namespace and implements states too early.
5299 2007-11-26 Johan Dahlin <johan@gnome.org>
5301 * src/gmetadata.c (validate_struct_blob):
5302 pass blob_type to validate_function_blob instead of
5303 hard-coding BLOB_TYPE_STRUCT.
5305 Patch by Torsten Schoenfeld, fixes #314190
5307 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5309 * src/compiler.c, src/generate.c, src/gidlnode.c,
5310 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5311 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5312 warnings about return values, signedness mismatches, unused
5313 variables, and unhandles enum values in switch statements.
5315 * tests/invoke/Makefile.am: Don't install the invoke test program.
5316 Add -I ../../src to the cflags used for the test functions files.
5318 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5320 * src/girepository.h: Export g_invoke_error_quark.
5322 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5324 * src/ginvoke.c: Remove the fallback implementation of
5325 g_function_info_invoke since we now formally depend on libffi.
5327 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5329 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5330 Remove these files from cvs, as they are now generated.
5332 * src/gmetadata.c (validate_iface_type_blob): Don't
5333 complain if blob->pointer is not set, since that
5334 happens for enum and flag types. (#308935, Gustavo
5337 * Commit an autoconf-conversion patch by
5338 Gustavo Carneiro (#308708)
5340 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5342 * src/compiler.c (main): Use it here to validate
5343 the generated metadata.
5345 * src/gmetadata.[hc]: Add code to validate a
5348 * metadata-format.txt: Updates
5350 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5352 * tests/*: Add struct offsets to field and vfunc
5355 * src/generate.c (write_vfunc_info): Write offset
5356 information for vfuncs.
5358 * src/gidlnode.c (g_idl_node_build_metadata): Write
5359 the struct offsets into the metadata.
5361 * src/gidlparser.c: Parse the offset attributes of
5362 field and vfunc elements.
5364 * src/gidlnode.h: Add offset members to field and
5367 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5371 * gidl.dtd: Updates.
5373 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5374 file, creates, compiles and runs a C file, and folds the
5375 resulting struct offsets back into the .gidl file.
5377 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5379 * src/gidlparser.c (start_field): Make fields in objects
5382 * src/gidlmodule.c: Include string.h
5387 * metadata-format.txt: Cleanup basic types.
5388 * src/*: Adapt to the changes.
5389 * tests/*: Adapt to the changes.
5390 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5392 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5393 size for enum blobs.
5394 (g_idl_node_get_full_size): Report the correct size for
5397 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5398 error checking for blob sizes.
5400 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5402 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5403 interface types for which is_pointer is FALSE, e.g. enums.
5405 * src/gidlnode.c (g_idl_node_get_full_size)
5406 * src/gidlparser.c (parse_type_internal):
5407 * src/generate.c (write_type_info): Support unspecialized
5408 lists, hashtables and errors. Also emit a '*' after these.
5412 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5416 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5418 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5420 * src/*.c: Change the directory to be addressed by
5421 1-based indexes, and use an index of zero to mean
5424 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5426 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5428 * tests/union.test: Add a union test.
5430 * src/generate.c: Handle unions.
5432 * src/girepository.h:
5433 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5435 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5437 * src/gidlparser.c (start_union): Parse <union> elements.
5439 * src/gidlnode.h: Add a GIdlNodeUnion.
5441 * gidl.dtd: Add a <union> element.
5443 * src/gmetadata.c (g_metadata_check_sanity): Check
5446 * src/gmetadata.h: Add union_blob_size to Header,
5449 * metadata-format.txt: Add a UnionBlob.
5451 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5453 * tests/*: Update testcases.
5455 * src/generate.c (write_callable_info): Don't forget to
5456 write transfer and null-ok attributes for return types
5459 * src/girepository.h:
5460 * src/ginfo.c (g_callable_info_may_return_null):
5461 New function to find out if a function may return NULL.
5463 * src/compiler.c (format_output): Make the generated
5466 * README: Point to a recent libffi snapshot.
5468 * tests/invoke/*: Some invoke tests.
5470 * src/Makefile: Add ginvoke.c and the necessary
5473 * src/girepository.h (g_function_info_invoke): Add
5476 * src/ginvoke.c (g_function_info_invoke): Initial
5477 implementation of invoke functionality based on libffi.
5479 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5480 strings and types hash tables in the right order when
5482 (find_entry_node): Free the name parts.
5484 2005-05-12 Johan Dahlin <johan@gnome.org>
5486 * src/generate.c: Generate consistent end tags.
5490 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5494 * src/gidlparser.c (start_function): Actually add
5495 methods to objects. (Steven Walter)
5497 * src/girepository.h:
5498 * src/ginfo.c: Rename Transfer and Direction to
5499 GITransfer and GIDirection. (Torsten Schoenfeld)
5501 * tests/*: Make tests work with the changes in name
5504 * src/gidlnode.c (find_entry_node): Parse qualified
5505 names and generate xref nodes for them if needed. Don't
5506 require all modules to be loaded any more.
5508 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5511 * src/ginfo.c (g_object_info_get_parent): Return NULL
5512 if blob->parent is 0. Still need to make sure index
5515 * src/generate.c: Generate qualified names when
5516 referring to non-local types. Emit transfer attribute
5519 * src/compiler.c (format_output): Put the function
5520 attributes where gcc accepts them.
5522 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5524 * src/compiler.c (main): Add a --verbose cmdline option
5525 and only log messages if it is specified.
5528 * src/gidlnode.c (init_stats, dump_stats): Collect some
5529 statistics on string and type sharing.
5531 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5532 g_message() instead of fprintf().
5534 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5535 (g_idl_node_get_size): Implement for structs.
5536 (g_idl_node_get_full_size): Handle parent being NULL.
5537 (serialize_type): Handle lookup failures more gracefully.
5539 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5541 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5542 size calculation for 2-parameter types and for objects.
5544 * src/compiler.c: Add a cmdline option for debug output
5545 and install a log handler to implement it.
5546 * src/gidlnode.c: Add some debug spew.
5550 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5551 forget to count the module name when calculating the
5552 required size for the metadata.
5555 * src/gidlparser.c: Fix compiler warnings.
5557 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5559 * src/compiler.c (main): Free the option context.
5561 * gidl.dtd: Clean up handling of names. All elements
5562 have a "name", only the elements corresponding to
5563 actual callable functions (function, method, constructor),
5564 have an additional "symbol" attribute holding the
5565 dlsym()-able function name.
5567 * src/generate.c: Adapt to generate xml matching the
5571 * src/gidlnode.c: Adapt to parse the new dtd.
5573 * tests/*.test: Adjust to the new dtd.
5575 * metadata-format.txt:
5576 * src/gmetadata.h: Remove the short_name field
5578 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5579 * src/girepository.h:
5580 * src/ginfo.c (g_value_info_get_short_name): Removed
5582 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5584 * gidl.dtd: Allow constructors for boxed types,
5585 patch by Jonathan Blandford.
5588 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5590 * --- Initial import ---