1 2008-01-03 Andreas Rottmann <a.rottmann@gmx.at>
3 Bug 556489 – callback annotations
5 * giscanner/transformer.py
7 * tools/generate.c (write_callable_info): Write out the new scope,
8 closure and destroy attributes.
10 * giscanner/transformer.py (Transformer._type_is_callback): New
11 method, checking if a given type is a callback.
12 (Transformer._augment_callback_params): New method; adds
13 information (closure, destroy) to callback parameters.
14 (Transformer._handle_closure, Transformer._handle_destroy): New methods,
15 auxiliary to _augment_callback_params.
16 (Transformer._create_function): Call _augment_callback_params().
17 (Transformer._create_parameter): Handle scope option.
19 (Transformer._create_typedef_callback): New method, creates a
20 callback, and registers it in the typedef namespace
21 (Transformer._create_typedef): Use _create_typedef_callback()
22 instead of the plain _create_callback().
24 * giscanner/ast.py (Parameter): Added callback-related fields.
25 * giscanner/girwriter.py: Write out new Parameter fields.
27 * girepository/girnode.h (GIrNodeParam): Added fields scope,
29 * girepository/gtypelib.h (ArgBlob): Ditto.
30 * girepository/girparser.c (start_parameter): Handle new fields.
32 * girepository/girmodule.c (g_ir_module_build_typelib): Adjust
33 arg_blob_size, bump major version due to this change.
34 * girepository/girnode.c (g_ir_node_get_full_size_internal)
35 (g_ir_node_build_typelib)
36 * girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
38 (g_ir_node_build_typelib): Fill in new ArgBlob flags from param.
40 * girepository/girepository.h (GIScope): New enumeration, listing
41 the different possible scopes for callbacks.
43 * girepository/ginfo.c (g_arg_info_get_scope)
44 (g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
45 callback-related argument indices (callback scope, closure for a
46 callback, destroy notification for a callback).
48 * tests/scanner/: Added testcases for new features.
50 2009-01-03 Jürg Billeter <j@bitron.ch>
53 * giscanner/dumper.py:
54 * giscanner/girparser.py:
55 * giscanner/glibtransformer.py:
56 * giscanner/sourcescanner.py:
57 * giscanner/transformer.py:
58 * giscanner/xmlwriter.py:
60 Fix inconsistencies with PEP8
62 2008-12-21 Johan Dahlin <jdahlin@async.com.br>
65 Annotate transfer, direction and allow none for
66 g_file_load_contents, g_file_load_contents_finish and
67 g_file_load_partial_contents_finish parameters.
69 2008-12-12 Owen Taylor <otaylor@redhat.com>
71 Disable array auto-detection for out-annotated parameters (#563934)
73 If we have a parameter annotated as (out), then having a ctype of
74 'char **' (or similar) doesn't necessarily indicate an array.
76 * giscanner/transformer.py: Skip array-detection logic for
77 (out)-annotated parameters.
78 * tests/scanner/annotation.h tests/scanner/annotation.c
79 tests/scanner/annotation-1.0-expected.gir
80 tests/scanner/annotation-1.0-expected.tgir: Add a test for
81 an (out) string parameter.
83 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
85 * giscanner/dumper.py (DumpCompiler._link): Pass in
86 --tag=CC to libtool to avoid making libtool confused
87 when CC is different from gcc on some systems.
89 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
91 Bug 563998 – Cache the GIBaseInfo for GTypes
93 * girepository/girepository.c (g_irepository_find_by_gtype):
94 add a cache of GType -> GIBaseInfo.
96 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
98 Bug 562545 – Add function taking / returning GValue
100 * tests/everything/everything.[ch]: add a test of function taking and
101 returning "const GValue *"
103 2008-12-09 Johan Dahlin <johan@async.com.br>
105 * giscanner/cachestore.py (CacheStore.store): Use
106 shutil.move instead of os.rename, since it will
107 automatically fall back to copying+remove if the
108 src directory is on a different partition from
111 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
113 Bug 563742 – introspection should record the introduced version of
114 symbols marked with the "Since:" tag
119 * giscanner/girwriter.py:
120 * giscanner/scannerlexer.l:
121 * giscanner/transformer.py:
122 * tests/scanner/annotation-1.0-expected.gir:
123 * tests/scanner/annotation-1.0-expected.tgir:
124 * tests/scanner/annotation.c (annotation_versioned):
125 * tests/scanner/annotation.h:
127 2008-12-08 Johan Dahlin <johan@async.com.br>
129 * giscanner/cachestore.py (_get_cachedir): Don't require
130 HOME to be set and if it set, don't require the
133 2008-12-08 Johan Dahlin <johan@async.com.br>
135 * giscanner/cachestore.py (CacheStore.store): Dump the cache
136 file to a temporary file and rename it the expected filename
137 only when it's completely written.
138 This should make the cache more roboust when run in parallel,
139 and hopefully avoid triggering bugs in Python.
141 2008-12-03 Christophe Fergeau <teuf@gnome.org>
143 Bug 562971 – g-ir-scanner failure on libgpod headers
145 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
146 default 16384. Without it, the lexer was aborting with a cryptic
147 error message on source files containing really long comment
150 2008-12-01 Colin Walters <walters@verbum.org>
152 * girepository/gfield.c: Fix memory leak; unref type info we
153 created, not field info
155 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
157 Bug 562289 – Race when removing invalid cache
159 * giscanner/cachestore.py:
160 ENOENT is mapped to a OSError, not IOError.
162 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
164 * gir/glib-2.0.c: Add return value transfer annotation
165 for g_markup_escape_text.
167 2008-11-25 Colin Walters <walters@verbum.org>
169 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
171 * giscanner/dumper.py: Implement it.
172 * gir/Makefile.am, tests/**/Makefile.am: Use it.
174 2008-11-25 Colin Walters <walters@verbum.org>
176 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
177 to just use a Makefile rule and dependencies. This corresponds with a change
178 made to gir-repository to fix srcdir != builddir issues.
180 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
183 Post release version bump
186 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
191 2008-11-25 Colin Walters <walters@verbum.org>
193 Bug 559705 – Missing association between static methods and classes
195 * docs/typelib-format.txt:
196 * girepository/ginfo.c (g_function_info_get_flags):
197 * girepository/girmodule.c (g_ir_module_build_typelib):
198 * girepository/girnode.c (g_ir_node_get_size),
199 (g_ir_node_build_typelib):
200 * girepository/girparser.c (start_function):
201 * girepository/gtypelib.c (g_typelib_check_sanity),
202 (validate_header), (validate_function_blob):
203 * girepository/gtypelib.h:
205 * giscanner/girwriter.py:
206 * giscanner/glibtransformer.py:
207 * tests/scanner/foo-1.0-expected.gir:
208 * tests/scanner/foo-1.0-expected.tgir:
209 * tests/scanner/foo.h:
211 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
213 * giscanner/ast.py: Define socklen_t as an alias for int32.
215 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
217 * girepository/gdump.c (dump_type): Remove a warning,
218 be less verbose on error on fundamental types.
220 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
222 * giscanner/dumper.py: Add license headers,
223 refactor into a class, avoid some duplication and do some
224 extra pedantic checks.
226 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
228 Make it compilable with -Werror on my system by adding
229 a couple of prototypes and including headers.
231 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
233 Bug 562022 – gobject-introspection needs python headers
235 * configure.ac: fail without python headers present.
238 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
240 Bug 561617 – Return value array annotations
242 * giscanner/transformer.py:
243 * tests/scanner/annotation.c (annotation_return_array):
244 * tests/scanner/annotation.h:
245 Add support for (array) for return value annotations as well.
247 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
249 * tests/everything/everything.[ch]: add a test function which calls a
252 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
254 * giscanner/cachestore.py:
255 Catch ValueError exceptions.
257 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
259 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
261 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
263 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
264 instead of hard-coding struct sizes.
266 2008-11-18 Owen Taylor <otaylor@redhat.com>
268 Bug 561296 - Add "storage type" to the typelib data for enums
270 In order to set and get enum and flag fields in structures, we need
271 to know the integral type that the enumeration is stored as. We are already
272 computing that at compile time in order to compute struct offsets, so the
273 easiest thing to do is to save that in the typelib.
275 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
276 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
277 and compute and save it at compile time.
279 * girepository/girepository.h girepository/ginfo.c:
280 Add g_enum_info_get_storage_type().
282 * girepository/gfield.c: Implement reading and writing enum and flags fields
283 based on the storage type.
285 2008-11-18 Owen Taylor <otaylor@redhat.com>
287 Add enums to the Everything test module
289 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
290 test module and register them as GTypes.
292 https://bugzilla.gnome.org/show_bug.cgi?id=561296
294 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
296 * giscanner/cachestore.py:
297 Catch BadPickleGet exceptions as well.
299 2008-11-17 Owen Taylor <otaylor@redhat.com>
301 * tests/everything/everything.c: Fix doc comment annotations
302 for test_struct_b_clone() to refer to the right function.
304 2008-11-17 Dan Winship <danw@gnome.org>
306 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
307 spelling of GHashTable. #561135
309 * tests/scanner/annotation.c (annotation_object_get_hash):
310 * tests/scanner/annotation-1.0-expected.gir:
311 * tests/scanner/annotation-1.0-expected.tgir: add a test of
312 GHashTable annotations
314 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
316 * giscanner/ast.py: Change string array match type to be in terms
317 of canonicalized type.
318 * giscanner/transformer.py: Add canonicalize_ctype which gives us
319 a version of a c:type without aliases, so we can deep canonicalize
320 char** to utf8*. Update parse_ctype to use it.
321 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
323 2008-11-16 Colin Walters <walters@verbum.org>
325 * girepository/girepository.c: Ensure we always call init_globals,
326 even if passed a non-default repository.
328 2008-11-16 Colin Walters <walters@verbum.org>
330 Bug 559706 - Interface prerequisites
332 * common.mk: Dep on libgirepository.la for scanner libs so that
333 we rebuild things even if just gdump.c changes.
334 * girepository/gdump.c: Dump prerequisites.
335 * giscanner/ast.py: Add prerequisite list.
336 * giscanner/girparser.py: Parse them from gdump.
337 * giscanner/girwriter.py: Write them.
338 * giscanner/glibtransformer.py: Resolve them.
341 2008-11-16 Owen Taylor <otaylor@redhat.com>
343 Bug 561087 - Respect is_pointer in serialize_type()
345 Add a '*' to the serialization for the cases where we set is_pointer
346 in the type blob we write out depending on node->is_pointer. Don't
347 add the '*' in the cases where is_pointer is set or not set in a
350 http://bugzilla.gnome.org/show_bug.cgi?id=561087
352 2008-11-16 Owen Taylor <otaylor@redhat.com>
354 Bug 560825 – Add size and alignment to typelib
356 Include the size and alignment of structures and unions in the typelib,
357 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
359 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
360 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
361 to StructBlob and UnionBlob.
363 * girepository/ginfo.c girepository/girepository.h:
364 Add g_[struct|union]_get[size|alignment]().
366 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
368 2008-11-16 Owen Taylor <otaylor@redhat.com>
370 Bug 552371 – implement struct field get/set
372 * girepository/gfield.c girepository/girepository.h: Add
373 convenience functions g_field_info_set_field() and
374 g_field_info_get_field() to set and get fields based on the
375 offsets in GIFieldInfo.
377 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
379 Bug 560241 - Out-arguments should not be marked as being pointers
382 * girepository/girparser.c: Improved logic for out arguments.
384 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
386 Bug 559601 - Pointers in structs/unions unduly treated as arrays
388 * giscanner/transformer.py: Differentiate type creation logic
389 between parameters and struct components.
391 2008-11-15 Colin Walters <walters@verbum.org>
393 * giscanner/dumper.py: Check return code from pkg-config
396 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
398 * tests/everything/everything.c (test_array_int_in),
399 (test_array_gtype_in):
400 * tests/everything/everything.h:
401 Rename the int/gtype array tests. Make the return value
402 useful, an aggregation of the array input values.
404 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
406 * tests/everything/Makefile.am:
407 * tests/everything/everything.c:
408 * tests/everything/everything.h:
409 * tests/everything/gitesttypes.c:
410 * tests/everything/gitesttypes.h:
411 Rename gitesttypes.[ch] to everything.[ch]
413 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
415 Bug 560708 – Don't treat arrays that have a length specified as
416 zero-terminated by default
418 * giscanner/transformer.py: Default to non zero terminated for
420 * tests/*: Update, add test for zero vs not.
422 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
424 Bug 557788 - Return types for constructors in generated typelib bogus
426 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
427 obviously broken in the face of duplicate names in different
429 * tests/scanner/*expected.gir: Fix up.
431 2008-11-13 Owen Taylor <otaylor@redhat.com>
433 * girepository/girffi.c: Fix "Unexpected time for time_t"
436 2008-11-13 Colin Walters <walters@verbum.org>
438 Bug 558436 - avoid having scanner load app code
440 * giscanner/cgobject.py: Delete; we no longer load shared
442 * giscanner/dumper.py: Support for linking a library to
443 a stub binary for introspection.
444 * giscanner/glibtransformer.py: Rewrite to use gdump XML
445 from invocation of child binary.
446 * giscanner/transformer.py: Fix up to use fully qualified
447 name in parse tree. Make parse_ctype public so we can use
448 it inside glibtransformer.
449 * tests/scanner/barapp.c: New test, using --program arg
451 * tests/*: Update to use common.mk for invoking scanner.
452 * tools/g-ir-scanner: Add options --program, --program-arg,
454 * docs/g-ir-scanner.1: Update.
456 2008-11-13 Colin Walters <walters@verbum.org>
458 * configure.ac: Depend on Gio, we use it in gdump.c.
459 * girepository/gdump.c: Code to dump GType data to XML.
460 * girepository/girepository.c: Add option group for dumping.
461 * girepository/girepository.h: Define API for the above.
463 2008-11-13 Colin Walters <walters@verbum.org>
465 * common.mk: Add a file to include with Makefile fragments
466 useful for scanner invocation.
468 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
470 * tests/everything/gitesttypes.c (test_filename_return): Return
471 strings in filename encoding.
473 2008-11-13 Owen Taylor <otaylor@redhat.com>
475 Bug 560253 – Add structure and boxed types to Everything test module
477 * tests/everything/gitesttypes.[ch]: Add examples of:
479 Plain old data structs
480 Plain old data structs with nested fields
482 Plain old data boxed with nested fields
483 More complicated boxed types with internal state
485 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
487 * tests/everything/gitesttypes.c (test_gtype_in):
488 * tests/everything/gitesttypes.h:
489 Add a test of GType arrays, a la gtk_list_store_set_columns.
491 2008-11-12 Owen Taylor <otaylor@redhat.com>
493 Bug 560419 – Cache includes when parsing
495 Keep track of all modules parsed within a GIrParser, and when a
496 module is referenced a second time, use the existing parsed copy
497 instead of reparsing.
499 2008-11-12 Owen Taylor <otaylor@redhat.com>
501 Fix management of ParseContext.includes_modules (#560419)
503 * girepository/girparser.c: Fix some trivial bugs in managing the
504 list of include modules. (Add to module's list twice, not
505 initialized to NULL, not freed.)
507 2008-11-12 Owen Taylor <otaylor@redhat.com>
509 Keep aliases and disguised_structures local to each module (#560419)
511 * girepository/girmodule.[ch]: When parsing, keep keep a separate
512 hash tables of aliases and 'disguised' flags for each module, and
513 store that on the module.
515 After parsing an include merge the aliases/disguised flags to the
518 * girepository/girparser.c: Remove 'prefix_aliases' flag and
519 always prefix aliases/disguised structure types when parsing; this
520 simplifies the code considerably.
522 2008-11-12 Owen Taylor <otaylor@redhat.com>
524 Fix mismatches between .gir name and 'name' attribute (#560419)
526 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
527 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
528 where the 'name' element of <namespace/> didn't match the filename of the
529 gir, an assumption that the compiler has always expected and now enforces.
531 2008-11-12 Owen Taylor <otaylor@redhat.com>
533 Only allow one <namespace/> element per <repository/> (#560419)
535 * girepository/girparser.c: The logic in girparser.c didn't work
536 very well if there were multiple <namespace/> nodes within a
537 single <repository/> (context->namespace was always the overall
538 filename and not the the name specified in the <namespace/>
539 element for one thing; this would cause aliases to be mis-prefixed
540 in include modules.) Also check that the "name" in the
541 <namespace/> node matches the filename.
543 2008-11-12 Owen Taylor <otaylor@redhat.com>
545 Add a GirParser object to hold the state of a compilation
547 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
548 GirParser object to hold state that is global across a
549 compilation. Currently just holds the include path, but will
550 eventually also keep a cached list of parsed modules.
552 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
554 * girepository/girepository.c (find_namespace_latest): Fix
557 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
559 * configure.ac: use 'introspection' component for bugs
561 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
563 * tests/everything/gitesttypes.c (test_filename_return):
564 * tests/everything/gitesttypes.h:
565 Add a filename return test.
567 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
569 * tests/offsets/Makefile.am (gitestoffsets.c): fix
570 gen-gitestoffsets invocation with builddir != srcdir
572 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
574 * girepository/girepository.c:
575 Change the element type from utf8 to filename
576 * girepository/girnode.c (g_ir_node_build_typelib):
577 Special case filename equally to utf8 here.
579 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
582 Remove unused variables, add a dependency of girepository.ch, so when
583 they change we rebuild the gir automatically.
585 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
587 * girepository/girepository.c (g_irepository_get_search_path):
588 * girepository/girepository.h:
589 Add a g_irepository_get_search_path, so we can access the search
592 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
594 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
596 * girepository/girparser.c: avoid freeing an uninitialized pointer
598 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
601 * giscanner/glibtransformer.py:
602 * tools/g-ir-scanner:
603 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
604 so we can just pass in --library=foo/bar/baz.la and the scanner
605 does the right thing.
606 Don't warn for _get_type() functions if they don't take any
609 2008-11-11 Owen Taylor <otaylor@redhat.com>
611 Bug 560404 – Prefix types when resolving aliases in included modules
613 * girepository/girparser.c: When resolving aliases in an included
614 module, prefix types before looking them up.
616 2008-11-11 Owen Taylor <otaylor@redhat.com>
618 Compute field offsets and overall size for object structures
620 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
621 field of type object in structure"
623 Do basic computation of field offsets for objects and interfaces;
624 this doesn't attempt to address all of the "mess" for virtual
625 functions described in Bug 560281.
627 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
629 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
631 Based on patch by Johan Bilien.
633 * giscanner/transformer.py (_create_member, _create_parameter):
634 Resolve types here as well.
635 (_resolve_type_name_1): Try resolving using 'ctype' first since
636 it's least ambiguous. Fixes struct member type resolution with
637 similarly named types, e.g. Gdk.PangoRendererClass and
639 * tests/scanner/foo*: Add test.
641 2008-11-11 Owen Taylor <otaylor@redhat.com>
643 * girepository/girparser.c: Search provided include dirs before
644 the default directories.
646 2008-11-11 Owen Taylor <otaylor@redhat.com>
648 * girepository/giroffsets.c: Include fully-qualified names in
651 2008-11-11 Owen Taylor <otaylor@redhat.com>
653 * girepository/giroffsets.c: Fail gracefully with an informative
654 error message when recursion is encountered when computing a
657 2008-11-11 Owen Taylor <otaylor@redhat.com>
659 * girepository/girparser.c: Remove an unused variable.
661 2008-11-10 Owen Taylor <otaylor@redhat.com>
663 Add tests for field offset computations
665 * tests/offsets/offsets.h: Header file with structure definitions to test
667 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
668 field offsets for the structures in offsets.h two ways: using
669 the information from a generated typelib, and as computed by the
672 We diff these two versions to test that everything is OK.
674 2008-11-10 Owen Taylor <otaylor@redhat.com>
676 Remove field offsets from g-ir-generate output and test inputs
678 Field offsets are a) architecture dependent so they shouldn't be part
679 of the architecture-independent gir format which is installed in
680 datadir. b) Are architecture-dependent so they shouldn't be in test
683 * girepository/girparser.c: Don't parse offset for fields
684 * tools/generate.c: Don't parse offset for fields
685 * tests/*.gir test/scanner/*.tgir: Remove offsets
687 (Virtual function and discriminator offsets are not removed, as they
688 aren't fully hooked up to the field-offset computation machinery yet.)
690 2008-11-10 Owen Taylor <otaylor@redhat.com>
692 Bug 560252 - Compute field offsets before writing typelib
694 * girepository/girnode.h: Store the total size and alignment for
695 GIrNodeStruct/Boxed/Union.
697 * girepository/giroffset.c: New file implementing computation of
698 structure field offsets.
700 * girepository/girnode.c: Compute structure field offsets before
701 writing types into the typelib.
703 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
704 means "unknown". Also fix description of the discriminator_offset
707 2008-11-10 Owen Taylor <otaylor@redhat.com>
709 Bug 560250 - Fully parse included modules
711 For some things, like computing structure offsets to put into the typelib
712 we need more than just the aliases from included modules. Do a completel
713 parse of included modules and store in module->included_modules.
715 Also add g_ir_find_node() to find node information from within the
716 active set of modules and their includes.
718 2008-11-10 Owen Taylor <otaylor@redhat.com>
720 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
722 Extract a function to convert GITypeTag to ffi_type from the internals
723 of ginvoke.c. This will be useful in figure out structure alignment.
725 Also fix handling of gsize and time_t to be portable. (Add a check
726 to configure.ac to figure out the width of time_t.)
728 2008-11-10 Owen Taylor <otaylor@redhat.com>
730 Bug 560248 – "disguised structures"
732 Certain types like GIConv and GdkAtom are pointers internally but don't
733 look like pointers when referenced. They have the form.
735 typedef struct _X *X;
737 Parse these as structures/records but mark them in the gir with a 'disguised'
738 attribute so that we know that they need special handling.
740 In the typelib treat them like any other structure.
742 2008-11-09 Jürg Billeter <j@bitron.ch>
745 * giscanner/girwriter.py:
747 Write throws attribute for virtual functions, fixes bug 559703
749 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
751 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
752 up some confusion about the second argument to find_module, it's
753 actually the packages __path__ attribute which we can safely ignore
755 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
757 2008-11-07 Owen Taylor <otaylor@redhat.com>
759 Bug 559737 – Deal with continuations in macros
761 * giscanner/giscannerlexer.l: Treat continuation lines the same
762 as regular newlines. This makes the scanner not complain about
763 #define foo(x) \ <stuff> inside a C file. There's no attempt
764 however to handle parsing macro definitions split across lines.
766 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
768 * giscanner/cachestore.py:
769 Handle broken cache entries, write only filesystems and
770 running out of diskspace.
772 2008-11-07 Owen Taylor <otaylor@redhat.com>
774 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
775 Set current_filename before lexing the file so error messages
776 are reported in the right file.
778 2008-11-06 Colin Walters <walters@verbum.org>
780 * tests/everything/*: Add some tests for strv.
782 2008-11-05 Colin Walters <walters@verbum.org>
784 * girepository/ginvoke.c (g_function_info_invoke): Don't use
785 nested scope local variable for error which may go away after
786 conditional is complete.
788 2008-11-05 Colin Walters <walters@verbum.org>
790 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
791 manipulate hackily; just use GString. This avoids an
792 uninitialized memory read pointed out by Havoc.
794 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
796 * giscanner/__init__.py:
798 * giscanner/cachestore.py:
799 * giscanner/cgobject.py:
800 * giscanner/girparser.py:
801 * giscanner/girwriter.py:
802 * giscanner/giscannermodule.c:
803 * giscanner/glibast.py:
804 * giscanner/glibtransformer.py:
805 * giscanner/libtoolimporter.py:
806 * giscanner/minixpath.py:
807 * giscanner/odict.py:
808 * giscanner/sourcescanner.c:
809 * giscanner/sourcescanner.h:
810 * giscanner/sourcescanner.py:
811 * giscanner/transformer.py:
812 * giscanner/utils.py:
813 * giscanner/xmlwriter.py:
815 Relicense the giscanner library under LGPLv2+.
816 This has been approved by all contributors.
818 2008-11-01 Owen Taylor <otaylor@redhat.com>
820 Bug 558848 giparser.py: shared library should be optional
822 When parsing a .gir, allow the shared-library attribute
823 of <namespace/> to be missing: this corresponds to the handling
824 in libgirepository and elsewhere.
826 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
828 Bug 557898 – Fails to build on OSX 10.4
830 * configure.ac: Check for $shrext_cmds that should be implicitly
831 available if you're using libtool >= 2.0. If undefined, call
832 libtool --config explicitly to get its value.
833 * girepository/gtypelib.c: Remove special case for (non-)Darwin
836 2008-10-31 Colin Walters <walters@verbum.org>
838 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
840 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
842 * configure.ac: Post release version bump
845 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
849 * docs/release-checklist.txt:
852 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
854 * Makefile.am: add an upload-release target
855 * docs/release-checklist.txt:
856 Release process documentation
858 2008-10-31 Colin Walters <walters@verbum.org>
860 Bug 558109 – _g_typelib_init fails to find shared libraries
862 * transformer/glibtransformer.py: Use ctypes' find_library
863 on passed libraries and write that for the shared-library
864 entry. We want to avoid depending on -devel packages.
866 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
868 * docs/g-ir-scanner.1:
869 Document the renaming options.
871 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
873 * giscanner/Makefile.am:
874 * tests/invoke/Makefile.am:
875 * tests/repository/Makefile.am: List in-tree libraries first in
876 LDADD / LIBADD. If installed library is listed first, the
877 resulting binary will prefer installed version to one in .libs,
878 possibly making 'make check' behave strangely.
880 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
882 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
883 gir-repository from choking with gdk/quartz
885 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
887 * giscanner/giscannermodule.c (calc_attrs_length),
888 (pygi_collect_attributes):
889 * giscanner/xmlwriter.py:
890 Write a C version of the xml namespace formatter.
891 Saves 15% of the time it takes to create a gtk gir.
893 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
895 * giscanner/xmlwriter.py: Abstract attribute formatting
896 to a function external to the XMLWriter class.
898 * giscanner/scannerlexer.l:
899 Parse and discard __typeof and __attribute.
901 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
903 * giscanner/girparser.py:
904 Remove arguments from the constructor, move them to
905 separate accessors. Add a new parse_tree method
906 which takes an element tree instance.
907 * tools/g-ir-scanner:
908 Update callsite for this
910 * giscanner/Makefile.am:
911 * giscanner/cachestore.py:
912 * giscanner/transformer.py:
913 Cache the include parsing. Saves ~25% time when
914 creating vte (which includes everything up to gtk+).
916 2008-10-30 Colin Walters <walters@verbum.org>
918 * giscanner/transformer.py: Don't reparse includes
919 we've already processed.
921 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
923 * giscanner/girparser.py:
924 * giscanner/transformer.py:
925 Avoid parsing parameters, types etc when parsing
926 includes. Should speed up include parsing a bit.
928 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
930 * giscanner/girparser.py:
931 Avoid big if/else and use a dispatch table like
934 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
936 * giscanner/transformer.py:
937 Clean up include parsing and registration.
939 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
941 * giscanner/transformer.py:
944 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
946 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
949 construct PYTHONPATH just once
951 * tests/everything/Makefile.am:
952 * tests/scanner/Makefile.am:
953 add $(top_srcdir) to PYTHONPATH to
954 handle builddir != srcdir
956 * giscanner/libtoolimporter.py:
957 * giscanner/sourcescanner.py:
958 Make the libtoolimporter work when distchecking too.
960 Mostly based on patch by Tommi Komulainen
962 2008-10-29 Owen Taylor <otaylor@redhat.com>
964 * giscanner/glibtransformer.py: If a filename of an existing
965 file is passed to --library, hunt for it directly, rather than
966 searching for a corresponding library.
968 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
970 * giscanner/libtoolimporter.py:
971 * giscanner/sourcescanner.py:
972 Clean up the libtool importer a bit. Add a context so we
973 can use it through a with statement.
974 Don't just look in the current directory, look in the whole
977 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
979 Bug 558065 – gitesttypes should be installed
983 * tests/types/Makefile.am -> tests/everything/Makefile.am
984 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
985 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
986 move tests/types to tests/everything
988 * tests/everything/Makefile.am: build normal shared library
989 libgirepository-everything.so.1.0.0 and corresponding typelib
990 Everything-1.0.typelib
992 * tests/everything/Makefile.am: explicitly link libtool
993 versioning with typelib versioning with variables
995 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
997 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
999 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1001 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
1004 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1006 Bug 558068 – when invoking a method, offset the in arguments by one,
1009 * tests/invoke/invoke.c, tests/invoke/testfns.c,
1010 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
1011 * girepository/ginvoke.c: do not offset the index of given out
1012 arguments by one for methods, "this" is provided as in argument only.
1014 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
1016 * gir/gio-2.0.c: add annotation for g_file_delete
1018 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
1020 Bug 558062 – provide and use paths in the .pc file
1022 * gobject-introspection-1.0.pc.in: provide typelibdir variable
1023 for where .typelibs should be installed (callers shouldn't need
1024 to construct paths from bits and pieces)
1026 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1028 Bug 557791 – g_irepository_require() could return a GTypelib *
1030 * girepository/girepository.c: Return GTypelib; this is useful
1031 for low level manipulation.
1033 2008-10-25 Colin Walters <walters@verbum.org>
1035 Bug 557788 – Return types for constructors in generated typelib bogus
1037 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
1038 rely on end pass resolution.
1040 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
1042 Bug 557786 - support fixed size arrays
1044 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
1045 * giscanner/scannerparser.y: Retain fixed array size.
1046 * giscanner/ast.py: Add to note.
1047 * giscanner/girwriter.py: Write to gir.
1048 * girepository/girnode.c: Write it to typelib.
1049 * tools/generate.c: Generate.
1050 * tests/*: Add tests.
1052 2008-10-25 Colin Walters <walters@verbum.org>
1054 Bug 557076 - move typelibs to $libdir
1056 * configure.ac: Steal some configury bits from dbus to expand
1058 * gir/Makefile.am: Move to libdir.
1059 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
1060 instead just look at one hardcoded path in libdir.
1061 * acinclude.m4: Bits from dbus.
1063 2008-10-24 Johan Dahlin <johan@gnome.org>
1065 * girepository/girnode.c (g_ir_node_check_unhandled_members):
1066 Be quiet, do not warn about unhandled members.
1068 2008-10-24 Johan Dahlin <johan@gnome.org>
1070 * girepository/gtypelib.c:
1071 Only use SHLIB_SUFFIX on darwin, otherwise use
1072 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1074 2008-10-24 Lucas Rocha <lucasr@gnome.org>
1076 Bug 557623 - Constructors shouldn't be flagged as methods.
1078 * girepository/ginfo.c (g_function_info_get_flags): ditto.
1080 2008-10-24 Johan Dahlin <johan@gnome.org>
1082 * giscanner/scannerparser.y:
1083 Check against division by zero for the modula operator.
1084 This fixes header parsing of OSX system headers included
1087 2008-10-24 Johan Dahlin <johan@gnome.org>
1091 Add a CONTRIBUTORS file and dist it.
1093 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1095 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1097 * girepository/girparser.c (parse_param_transfer):
1098 * giscanner/transformer.py (_create_parameter, _create_return):
1099 * giscanner/girwriter.py (_write_return, _write_parameter):
1100 * tools/generate.c (write_callable_info): always write and
1101 require "transfer-ownership" for return-values and parameters
1104 * tests/invoke/testfns-1.0.gir:
1106 * tests/scanner/DrawableAdditions.xml:
1107 * tests/scanner/GtkFrob-1.0-expected.tgir:
1108 * tests/scanner/annotation-1.0-expected.tgir:
1109 * tests/scanner/drawable-1.0-expected.tgir:
1110 * tests/scanner/drawable-injected-1.0-expected.gir:
1111 * tests/scanner/drawable-injected-1.0-expected.tgir:
1112 * tests/scanner/foo-1.0-expected.tgir: Updated
1114 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1116 * giscanner/cgobject.py: build fundamental types same way as glib
1118 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1119 when constructing the Type from it
1121 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1122 the parameter is a GObject from its GType, if available.
1124 * giscanner/glibtransformer.py (_adjust_transfer):
1125 * tests/scanner/foo-1.0-expected.gir:
1126 * tests/scanner/foo-1.0-expected.tgir: deduce
1127 transfer-ownership from GTypes
1129 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1131 * giscanner/transformer.py (_create_parameter):
1132 * tests/scanner/foo-1.0-expected.gir: make varargs
1133 transfer-ownership="none"
1135 2008-10-23 Colin Walters <walters@verbum.org>
1137 Bug 556739 - transfer ownership
1139 * giscanner/ast.py: Refactor Parameter/Return to share
1140 common attributes. Add transfer_inferred attribute
1141 which says whether or not we made a guess.
1142 * giscanner/transformer.py: Add much more extensive
1143 heuristics around parameter and return transfer.
1144 * giscanner/glibtransformer.py: Adjust to inspect
1148 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1150 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1152 * tests/scanner/Makefile.am:
1153 * tests/scanner/annotation-1.0-expected.tgir:
1154 * tests/scanner/drawable-1.0-expected.tgir:
1155 * tests/scanner/drawable-injected-1.0-expected.tgir:
1156 * tests/scanner/foo-1.0-expected.tgir:
1157 * tests/scanner/GtkFrob-1.0-expected.tgir:
1158 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1159 annotations survive the roundtrip via typelib
1161 The expectations are as currently produced by g-ir-generate,
1162 comparison with the .gir files shows there are differences.
1164 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1166 Bug 557468 – Support for GI_TYPELIB_PATH
1168 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1169 provided paths to the global search path.
1171 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1173 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1175 * tests/scanner/drawable-1.0-expected.tgir:
1176 * tests/scanner/drawable-injected-1.0-expected.tgir:
1177 * tests/scanner/foo-1.0-expected.tgir:
1178 * tools/generate.c (write_object_info): write 'abstract'
1179 attribute for classes
1181 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1183 * girepository/girmodule.c, girepository/gtypelib.c,
1184 girepository/girparser.[ch]: fix some build warnings.
1186 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1188 Bug 557405 – Use 'allow-none' consistently
1190 * docs/typelib-format.txt:
1191 * girepository/ginfo.c (g_arg_info_may_be_null):
1192 * girepository/girnode.c (g_ir_node_build_typelib):
1193 * girepository/girnode.h (struct _GIrNodeParam):
1194 * girepository/girparser.c (start_parameter):
1195 * girepository/girwriter.c (function_generate):
1196 * girepository/gtypelib.h (ArgBlob):
1198 * tests/function.gir:
1199 * tools/generate.c (write_callable_info): Use 'allow-none'
1200 consistently throughout
1202 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1204 Bug 557092 – Callback annotations not used
1206 * giscanner/transformer.py (_create_callback): use annotations
1208 * tests/scanner/annotation.h
1209 * tests/scanner/annotation-1.0-expected.gir: add tests
1211 2008-10-21 Colin Walters <walters@verbum.org>
1213 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1214 uncommented parameters.
1217 2008-10-21 Colin Walters <walters@verbum.org>
1219 * girepository/girepository.c: Ensure that when doing an unversioned
1220 require, we prefer items earlier in the search path to later ones.
1222 2008-10-21 Owen Taylor <otaylor@redhat.com>
1224 * giscanner/transformer.py: For string parameters allow transfer annotation
1225 to override the standard automatic guessing based on 'const'.
1227 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1229 Bug 557241 – "throws" flag for functions
1231 * tests/scanner/drawable-1.0-expected.gir,
1232 tests/scanner/drawable-injected-1.0-expected.gir,
1233 tests/scanner/drawable.[ch]: add simple test for throwing
1234 function (has GError ** as last argument)
1236 * giscanner/ast.py: add a 'throws' flag to Function
1237 * giscanner/glibtransformer.py: if a function's last paramerter is
1238 a GError, set the 'throws' flag and remove that parameter
1239 * giscanner/girwriter.py: write out the 'throws' attribute
1240 * giscanner/girparser.py: support parsing the 'throws' attribute
1242 * tests/repository/gitestthrows.c: add a simple test to check the
1243 throws flag in a typelib and invoke the function
1245 * girepository/ginfo.c, girepository/girnode.[ch],
1246 girepository/girnode.h, girepository/girparser.c,
1247 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1249 * girepository/ginvoke.c: if a function throws, add a GError as last
1250 arguments, and propagate the error to the invoker.
1252 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1254 * giscanner/transformer.py (_create_parameters): Warn if we see
1255 annotations for unknown parameters. If .h and .c files name
1256 parameters differently, the annotations may be lost.
1258 2008-10-21 Johan Dahlin <johan@gnome.org>
1260 Bug 556358 - don't use libtool internals
1262 * giscanner/Makefile.am:
1263 * giscanner/libtoolimporter.py:
1264 * giscanner/sourcescanner.py:
1265 * giscanner/utils.py:
1266 Add a python meta importer and remove a libtool symlink hack.
1268 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1270 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1271 and --add-include-path appropriately when invoking the scanner.
1272 * tests/types/Makefile.am (%typelib): Likewise.
1274 2008-10-20 Colin Walters <walters@verbum.org>
1276 Bug 556777 - validate properties
1278 * giscanner/transformer.py: Add option to throw on unknown types.
1279 * giscanner/glibtransformer.py: Use it on properties.
1280 * tests/*: Add a test.
1282 2008-10-20 Colin Walters <walters@verbum.org>
1284 * giscanner/glibast.py: Also register g variants of
1285 default_array_types. This is not beautiful, but
1286 good alternatives aren't easy to come by.
1287 This fixes gchar ** parsing.
1289 2008-10-20 Colin Walters <walters@verbum.org>
1291 * docs/typelib-format.txt, girepository/gtypelib.h:
1292 Take a bit from ObjectInfo to represent abstract flag.
1293 * giscanner/cgobject.py: Expose g_type_get_flags.
1294 * girepository/girepository.h: Add accessor.
1295 * girepository/ginfo.c: Implement it.
1296 * giscanner/ast.py: Add is_abstract flag to generic
1298 * giscanner/glibast.py: Use it.
1299 * giscanner/girwriter.py: Write it.
1300 * girepository/girparser.c: Parse it.
1303 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1305 * giscanner/girparser.py (_parse_function): don't lose
1306 'transfer-ownership' attributes when injecting, check for the
1309 2008-10-19 Johan Dahlin <johan@gnome.org>
1311 * giscanner/scannerlexer.l: Parse and ignore __asm.
1313 2008-10-19 Colin Walters <walters@verbum.org>
1315 * giscanner/girparser.py: Parse array length= to ensure
1316 it doesn't get lost from --inject.
1318 2008-10-17 Colin Walters <walters@verbum.org>
1320 Bug 556795 - char ** regression
1322 * giscanner/transformer.py: Fix parsing of ctypes, add some
1323 comments about what's going on.
1324 * tests/*: Add a test for char **.
1326 2008-10-17 Colin Walters <walters@verbum.org>
1328 Bug 556783 - change namespace handling to be more consistent
1330 * giscanner/transformer.py: Eliminate usage of
1331 strip_namespace_object. We now treat --namespace as the default
1332 --strip-prefix; however, if --strip-prefix is specified it
1333 overrides --namespace. This applies to everything except function
1334 names, where we do also strip the namespace.
1335 * giscanner/glibtransformer.py: Remove usage of
1336 strip_namespace_object.
1338 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1339 --namespace and --strip-prefix.
1341 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1343 Bug 556732 – generate gir files consistently
1345 * girepository/girparser.c (start_parameter):
1347 * tests/invoke/testfns-1.0.gir:
1348 * tools/generate.c (write_callable_info): write
1349 'transfer-ownership' attribute consistently with both
1350 return-value and parameter elements
1352 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1354 Bug 556732 – generate gir files consistently
1356 * tools/generate.c (write_callable_info): write 'direction'
1357 attribute only if other than 'in' to be consistent with
1360 * tests/object.gir: remove direction="in" which is the default
1362 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1364 Bug 556732 – generate gir files consistently
1366 * giscanner/ast.py (Field): add readable and writable properties
1367 * giscanner/girparser.py (_parse_field): copy 'readable' and
1368 'writable' attributes
1369 * giscanner/transformer.py (_create_member): create fields as
1371 * giscanner/glibtransformer.py (_introspect_object,
1372 _pair_class_struct): make object instance and class fields
1374 * giscanner/girwriter.py (_write_field):
1375 * tools/generate.c (write_field_info): write field 'readable'
1376 and 'writable' attributes only if non-default (read-only)
1377 * girepository/girparser.c (start_field): in the absence of
1378 attributes assume fields are read-only
1380 * tests/struct.gir: remove redundant readable="1" from fields
1381 * tests/scanner/foo-1.0-expected.gir:
1382 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1383 all record and union fields
1385 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1387 Bug 556732 – generate gir files consistently
1389 * giscanner/girwriter.py (_write_property): write properties
1390 'construct' attribute if set
1391 * tools/generate.c (write_property_info): write properties
1392 'readable' and 'writable' attributes only if non-default
1393 * tests/object.gir: add writable="0"
1394 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1396 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1398 * gir/glib-2.0.c: added annotations
1400 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1402 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1405 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1407 Bug 556610 – giscanner/girparser.py drops parameter options
1409 * tests/scanner/drawable-injected-1.0-expected.gir,
1410 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1411 * giscanner/ast.py: allow Parameter to take options in the constructor
1412 * giscanner/girparser.py: parse parameter options (transfer,
1413 direction, allow-none)
1415 2008-10-16 Colin Walters <walters@verbum.org>
1417 Bug 556185 - segfault on g_callable_info_get_return_type
1419 Initial patch from John Ehresman.
1421 * tests/repository/*: Add a test using
1422 g_callable_info_get_return_type. Instead of casting a
1423 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1424 to call g_type_info_get_interface.
1426 2008-10-16 Colin Walters <walters@verbum.org>
1428 Bug 556579 - union and struct name misresolved
1430 * giscanner/transformer.py: The calls to _resolve_type_name
1431 for struct/union names was a legacy holdover from when type
1432 resolution had multiple phases. Now it's actively harmful
1433 since we might pull in an identical name from another
1437 2008-10-16 Colin Walters <walters@verbum.org>
1439 Bug 556432 - transfer annotations and defaults
1441 * giscanner/transformer.py: Canonicalize type
1442 after removing *, not before. This ensures that
1443 guchar* is transformed to 'uint8'.
1444 Add some comments here.
1445 * giscanner/glibtransformer.py: Add _adjust_transfer
1446 phase for tweaking GObject transfers.
1449 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1451 * configure.ac: enable bunch of gcc warning CFLAGS
1453 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1455 Bug 556543 – reduce compiler warnings
1457 * girepository/ginfo.c:
1458 * girepository/girepository.c (register_internal,
1459 count_interfaces, find_interface, find_namespace_version,
1460 parse_version, g_irepository_require):
1461 * girepository/girmodule.c (g_ir_module_build_typelib):
1462 * girepository/girnode.c (init_stats, dump_stats,
1463 _g_irnode_init_stats, _g_irnode_dump_stats,
1464 g_ir_node_can_have_member):
1465 * girepository/girparser.c (firstpass_end_element_handler,
1466 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1467 start_alias, start_type, end_type_top, parse_include, cleanup,
1469 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1470 * giscanner/giscannermodule.c (directive_get_options,
1471 type_get_child_list):
1472 * giscanner/scannerlexer.l (parse_gtkdoc):
1473 * giscanner/scannerparser.y (ctype_free):
1474 * giscanner/sourcescanner.c:
1475 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1476 * tests/types/gitesttypes.c:
1477 * tools/compiler.c (main):
1478 * tools/generate.c (write_repository): Remove unused variables
1479 and code, add missing includes, declarations and case
1482 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1484 Bug 556541 – access union members through UnionBlob rather than
1487 * girepository/ginfo.c (g_union_info_find_method): access union
1488 members through UnionBlob rather than StructBlob
1490 2008-10-15 Colin Walters <walters@verbum.org>
1492 Bug 556331 - clean up includes handling
1494 * tools/g-ir-scanner: Rework command line arguments; now we take
1495 --add-include-path and --include separately.
1496 * giscanner/girwriter.py: Separate name= and version= in include
1498 * giscanner/ast.py: Add Include type.
1499 * giscanner/transformer.py: Cleanups to register_include now that
1500 we don't need to handle mixed filenames and relative arguments.
1501 * girepository/girparser.c: Parse name and version separately;
1502 this fixes a bug as a side effect where we weren't resolving
1503 through aliases for basic types.
1504 * girepository/girepository.c: Fix format string args.
1505 * gir/Makefile.am: Update.
1508 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1510 Bug 556434 – unhandled interface/object/... member types
1512 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1513 g_ir_node_build_typelib): Check all
1514 interface/object/boxed/struct/union members are processed and
1515 abort if they are not. (Mostly callbacks in structs, but also
1516 fields in interfaces.)
1518 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1520 * a/girepository/girnode.c (g_ir_node_build_members,
1521 g_ir_node_build_typelib): refactor common code for processing
1522 members to a function
1524 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1526 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1527 transformation is lossless (it's not)
1529 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1531 * tests/Makefile.am: fix tests to compare xml to xml instead of
1532 typelib to xml, and stop on error
1534 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1536 * tools/generate.c (write_type_name, write_type_info,
1537 write_type_info, write_object_info, write_object_info,
1538 write_interface_info, write_error_domain_info): reduce code
1541 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1543 Bug 556174 – parse types for lists etc.
1545 * girepository/girparser.c (end_type_recurse):
1547 * tools/generate.c (write_type_info, write_field_info,
1548 write_callable_info, write_callable_info, write_constant_info,
1549 write_property_info): use nested <type>s for lists and hashes
1551 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1554 * tests/object.gir: remove trailing whitespace from inside
1555 elements to match g-ir-generate output
1557 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1559 * tools/generate.c (xml_printf): quote printf arguments so that
1560 we don't generate invalid XML by writing unescaped double quotes
1561 and such in attributes
1563 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1565 * tools/generate.c (write_field_info, write_callable_info,
1566 write_function_info, write_callback_info, write_struct_info,
1567 write_constant_value, write_signal_info, write_vfunc_info,
1568 write_object_info, write_interface_info, write_union_info,
1569 write_repository): remove unused indent parameters, xmlwriter
1570 keeps track of necessary indentation
1572 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1574 * tools/generate.c (xml_element_new, xml_element_free,
1575 xml_start_element, xml_end_element, xml_end_element_unchecked,
1576 xml_open, xml_close): Keep track of generated XML tree and
1577 handle indentation and closing tags properly.
1578 (write_field_info, write_callable_info, write_function_info,
1579 write_callback_info, write_struct_info, write_value_info,
1580 write_constant_info, write_enum_info, write_signal_info,
1581 write_vfunc_info, write_property_info, write_object_info,
1582 write_interface_info, write_error_domain_info, write_union_info,
1583 write_repository): Use xml_start_element and xml_end_element to
1586 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1588 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1589 (write_type_name, write_type_info, write_field_info,
1590 write_callable_info, write_function_info, write_callback_info,
1591 write_struct_info, write_value_info, write_constant_value,
1592 write_constant_info, write_enum_info, write_signal_info,
1593 write_vfunc_info, write_property_info, write_object_info,
1594 write_interface_info, write_error_domain_info, write_union_info,
1595 write_repository): wrap all FILE access to go through simple xmlwriter
1597 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1599 Bug 556400 – Fails to build on OS X 10.4
1601 * configure.ac: check for functions backtrace and backtrace_symbols
1602 * girepository/girparser.c (backtrace_stderr): Comment out
1603 implementation if the functions are not available.
1604 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1605 directory for better portability
1607 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1609 Bug 556433 – assume direction = out for int * parameters
1611 * giscanner/ast.py: define a list of types for which, if passed as
1612 reference, we assume a default direction of 'out'
1613 * giscanner/transformer.py: if a type has type pointer to one of the
1614 previously defined types, and no direction is set, assume out.
1615 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1617 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1619 * tests/scanner/annotation.c: fixed a few copy-paste errors
1621 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1623 Bug 556323 – transfer-ownership is wrong for functions returning const
1626 * giscanner/transformer.py: check for a const string as return value,
1627 not just const char*. Suggested by Colin Walters
1628 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1630 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1632 * girepository/ginfo.c, girepository/girepository.h: add
1633 g_union_info_find_method
1635 2008-10-14 Colin Walters <walters@verbum.org>
1637 * tests/repository/Makefile.am: Reenable repo test.
1638 * tests/repository/gitestrepo.c: Prepend search
1639 path for $(top_builddir)/gir dir so that we don't
1640 require installation for "make check" to pass.
1642 2008-10-13 Jürg Billeter <j@bitron.ch>
1644 * giscanner/glibtransformer.py:
1645 * tests/scanner/annotation-1.0-expected.gir:
1646 * tests/scanner/drawable-1.0-expected.gir:
1647 * tests/scanner/foo-1.0-expected.gir:
1648 * tests/scanner/utility-1.0-expected.gir:
1650 Support fields in GObject structs
1652 2008-10-13 Jürg Billeter <j@bitron.ch>
1654 * giscanner/ast.py: add signed integer and off_t to type_names
1656 2008-10-12 Jürg Billeter <j@bitron.ch>
1658 * giscanner/girparser.py: Parse bits attribute of fields
1660 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1662 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1663 * tests/repository/gitestrepo.c (main): instantiate
1664 'GCancellable' to ensure the GType is registered before using
1667 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1669 * giscanner/girparser.py: actually add the parsed constant nodes
1671 2008-10-12 Colin Walters <walters@verbum.org>
1673 * girepository/girepository.c: Don't cast DirEntry to Blob,
1674 actually look it up by offset.
1676 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1678 * giscanner/girparser.py: parse constant nodes in gir files
1680 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1682 * giscanner/transformer.py: prefix for constants have an underscore,
1683 so remove them as if they were functions, not objects.
1685 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1687 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1690 2008-10-12 Colin Walters <walters@verbum.org>
1692 Initial patch from Jani Monoses.
1694 * girepository/gtypelib.c: Fix inverted test for success
1697 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1699 * tools/generate.c (write_callable_info): use "transfer-ownership"
1700 attribute for return values
1702 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1704 * tools/generate.c (write_callable_info): move "transfer" and
1705 "null-ok" attributes from <function> to <return-value> element
1707 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1709 * girepository/girparser.c (start_return_value): handle
1710 "transfer-ownership" attribute
1712 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1714 * girepository/girparser.c (parse_param_transfer):
1715 * tools/generate.c (write_callable_info): use "container" for
1716 container/shallow ownership transfer (not "shallow")
1718 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1720 * girepository/girparser.c (parse_param_transfer,
1721 start_parameter): Refactor handling of transfer=none/shallow/full
1722 to separate function
1724 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1726 Bug 556048 – Crash in g_irepository_find_by_gtype
1728 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1729 * girepository/girepository.c (find_interface): Fix
1730 find_by_gtype case to get the type name from right offset
1732 2008-10-12 Jürg Billeter <j@bitron.ch>
1734 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1737 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1739 * girepository/gtypelib.h (RegisteredTypeBlob): make
1740 'unregistered' one bit wide as everywhere else
1742 2008-10-12 Jürg Billeter <j@bitron.ch>
1744 * giscanner/glibtransformer.py:
1745 * tests/scanner/annotation-1.0-expected.gir:
1746 * tests/scanner/drawable-1.0-expected.gir:
1747 * tests/scanner/drawable.h:
1748 * tests/scanner/foo-1.0-expected.gir:
1749 * tests/scanner/utility-1.0-expected.gir:
1751 Readd class records as workaround to not break Gtk typelib
1753 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1755 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1757 2008-10-12 Jürg Billeter <j@bitron.ch>
1759 * giscanner/glibtransformer.py: Don't generate <record> elements
1761 * tests/scanner/*: Update test cases
1763 2008-10-11 Colin Walters <walters@verbum.org>
1765 Bug 552858: versioning
1767 This is a big patch. You should probably remove your installation
1770 * docs/typelib-format.txt: Add nsversion entry which holds
1771 version of namespace.
1772 * girepository/girepository.h: Add 'version' parameter to
1773 g_irepository_require. This may be NULL. Normally
1774 bindings should pass an explicit version though.
1775 * girepository/girepository.c: Lots of infrastructure to
1776 support versioning. Add some more documentation. Disallow
1777 some usage of NULL namespaces.
1778 * girepository/girmodule.c: Add version parameter.
1779 * girepository/gtypelib.c: Update header size.
1780 * giscanner/ast.py: Add version to Namespace.
1781 * giscanner/girparser.py: Parse version attribute from
1782 XML, pass to Namespace.
1783 * giscanner/girwriter.py: Write out version parameter.
1784 * giscanner/transformer.py: Clean up include registration.
1785 * tests/*: Add version attribute.
1786 * tests/invoke/invoke.c: Don't try looking up test before
1787 it's loaded in repository.
1788 * tools/generate.c: Output version parameter.
1789 * gir/Makefile.am: Add 2.0 version to .gir files.
1791 2008-10-11 Colin Walters <walters@verbum.org>
1793 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1794 if we have mismatched parens.
1796 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1798 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1799 on 'members' variable.
1801 2008-10-11 Colin Walters <walters@verbum.org>
1803 Bug 555947 - update annotations syntax
1805 * giscanner/ast.py: Default to None for transfer. Remove
1806 default transfers for container types; we require this to
1808 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1809 'full' to match repository.
1810 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1811 * giscanner/transformer.py: Update for new annotations syntax.
1814 2008-10-11 Johan Bilien <jobi@litl.com>
1816 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1818 2008-10-11 Johan Bilien <jobi@litl.com>
1820 Bug 552347: Parse #defines constants
1822 * girepository/gtypelib.c: update the list of value_size
1823 with recently defined type tags
1824 * giscanner/scannerparser.y: brought back parsing of #defined, as
1825 present in older version
1826 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1827 * giscanner/girwriter.py: write out constant tags in the gir
1828 * giscanner/sourcescanner.py: add accessor for const_string
1829 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1832 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1834 Bug 555946: Install a test module exercising all types, transfer
1839 * tests/types/*: Add and install a test module that has functions
1840 accepting and returning most of the basic types to enable bindings
1841 implementors to more easily test their type conversion routines.
1843 2008-10-11 Jürg Billeter <j@bitron.ch>
1845 Bug 552374: Const strings should be identified in the gir.
1847 * giscanner/transformer.py: support string memory management
1848 * tests/scanner/foo.h: use char * and const char *
1849 * tests/scanner/foo-expected.gir: test that
1851 2008-10-11 Johan Dahlin <johan@gnome.org>
1853 * giscanner/girparser.py:
1854 Also parse enums which are not glib types.
1856 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1858 Bug 552370: add one more test for unsigned as a type, not as
1861 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1862 * test/scanner/foo.h: add function which uses unsigned as a type.
1863 * test/scanner/foo-expected.gir: test that.
1865 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1867 Bug 555712: Struct and union issues
1869 * giscanner/scannerparser.y (struct_declarator): Use information
1870 provided about the bit width of a field.
1871 * giscanner/transformer.py (Transformer._create_member): Pass the
1872 symbol's const_int member to the created field (it represents the
1874 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1875 field attribute, if present.
1876 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1877 width in bits of the field (only relevant for bitfields).
1880 * giscanner/transformer.py (Transformer._create_typedef_struct)
1881 (Transformer._create_typedef_union): Add calls to _create_struct()
1882 and _create_union(), respectively. This causes the scanner to
1883 generate output for fields of struct and union typedefs.
1886 2008-10-11 Jürg Billeter <j@bitron.ch>
1888 Bug 552370: unsigned not scanned properly
1890 * giscanner/scannerparser.y: combine basic types such as unsigned
1891 int and long long when scanning
1892 * tests/scanner/foo-expected.gir:
1893 * tests/scanner/foo.c: (foo_test_unsigned):
1894 * tests/scanner/foo.h: test that
1896 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1898 Bug 554854: The --typelib-xml and --inject options should reuse
1899 giscanner parser/writer.
1901 * giscanner/ast.py: add constructor list to Struct and Union.
1902 Add new param in Return's contructor to define transfer.
1903 * giscanner/girparser.py: several additions to the parser in order
1904 to have parsing all nodes of the gir xml files.
1905 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1906 and writer in --inject and --typelib-xml options.
1907 * giscanner/xmlwriter.py: ignore empty attributes instead of
1908 raising an error as this basically exposes a bug in GIRParser.
1909 This should be reverted as soon as the parser is fixed.
1911 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1913 Bug 552376: scanner generates wrong names for enum members when
1914 there's no defined gtype.
1916 * giscanner/utils.py (strip_common_prefix): Always strip common
1917 prefix exactly up to the last "_", and not beyond.
1918 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1919 here is that the first character after the last '_' should should be
1920 the same as the character in the same position on the type name.
1921 * tests/scanner/foo-expected.gir: test that
1923 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1925 Bug 555293: append library_paths to LPATH env variable to work
1926 around a bug in find_library when using ldconfig.
1928 * tools/g-ir-scanner (main): ditto.
1930 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1932 * girepository/girepository.c (register_internal): fix regression on
1933 invoke test case by making sure we load the global module in the
1934 typelib when dealing with inline typelibs.
1935 * girepository/gtypelib.c: a couple of coding style fixes.
1937 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1939 Bug 555294: Add support for multiple shared libraries per typelib.
1941 * girepository/ginvoke.c (g_function_info_invoke),
1942 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1943 g_typelib_symbol instead of g_module_symbol.
1944 * girepository/girepository.h: remove g_typelib_set_module and add
1946 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1947 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1948 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1949 modules instead of just one. The symbol lookup is now abstracted
1950 behind g_typelib_symbol which tries to find the passed symbol name in
1952 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1953 and write shared_library attribute as a comma-separated list of libs.
1955 2008-10-06 Colin Walters <walters@verbum.org>
1957 * giscanner/transformer.py: Parse length= annotation as
1958 a parameter name, not a raw int.
1961 2008-10-03 Colin Walters <walters@verbum.org>
1963 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1965 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1967 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1971 2008-10-03 Colin Walters <walters@verbum.org>
1973 Bug 554576: scan problem with ev_selection_render_selection()
1975 * giscanner/transformer.py: Only do type resolution once we've
1976 scanned all types. What could happen before is that we'd strip
1977 the namespace from local type "EvSelection" => Selection, and
1978 then later pull a "Selection" from some other namespace because
1979 we hadn't yet seen the local EvSelection. This could come
1980 down to hash table ordering and other things so not easy
1981 to write a test for.
1983 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1985 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1986 GLibEnumMember constructor as it should be the enum member nick.
1988 2008-10-02 Colin Walters <walters@verbum.org>
1990 Bug 552961: remove this parameter for methods
1992 * giscanner/glibtransformer.py: Delete this parameter; it is
1994 * girepository/ginvoke.c: Insert this parameter for methods.
1995 * girepository/gtypelib.c: Remove no longer needed verification of
1996 method this parameter.
1999 2008-09-30 Dan Winship <danw@gnome.org>
2001 Bug 554490: g-ir-scanner gets confused by '\\'
2003 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
2004 backslashes so it will correctly parse '\\' and "\\"
2006 * tests/scanner/annotation.c: add a use of '\\' to make sure that
2009 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
2011 2008-10-02 Colin Walters <walters@verbum.org>
2013 bug 552393: Note variadic functions
2015 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
2016 to use parameter_list directly.
2017 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
2018 * giscanner/ast.py: Add Varargs type.
2019 * giscanner/transformer.py: Check for ellipsis symbol, transform
2021 * girepository/girnode.h: Add varargs flag to in-memory nodes.
2022 Parse varargs functions, but filter them out before we start
2023 compiling the typelib.
2025 2008-10-02 Colin Walters <walters@verbum.org>
2027 Bug 554632: type tag for GType
2029 * girepository/girepository.h, girepository/girepository.c:
2030 Add type tag for GType - it's a special type we don't want
2031 to resolve to just "long".
2032 * docs/typelib-format.txt: Update.
2033 * girepository/girparser.c: Parse it.
2034 * giscanner/glibtransformer.py: Ensure we don't put GType in
2036 * tools/generate.c: Remove hardcoded type list.
2039 2008-09-30 Dan Winship <danw@gnome.org>
2041 Bug 554521: scanner generates wrong names for enum members with
2042 full type name prefix
2044 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
2045 right amount when the entire "first" string is a prefix of
2048 * tests/scanner/foo.h (FooEnumFullname):
2049 * tests/scanner/foo-expected.gir: test that
2051 2008-09-29 Colin Walters <walters@verbum.org>
2053 Bug 552380: Array parameters should be marked in the gir
2055 * giscanner/ast.py: Default char** to utf8[], and guchar* to
2056 uint8[]. Add Array, List, and Map subclasses of Type;
2057 these types can be generic. Return transfer defaults
2058 to true if return value is string or container type.
2059 Delete Sequence type.
2060 * giscanner/scannerlexer.l: Syntax change for annotations;
2061 use <> since it's more readable.
2062 * giscanner/girwriter.py: Write out these changes.
2063 * giscanner/girparser.py: Parse them.
2064 * giscanner/transformer.py: Have a defined set of
2065 both list and map types. When creating a type,
2066 check if the ctype we've parsed is one of them,
2067 if so create a container type subclass as appropriate.
2068 * girepository/girparser.c: Parse in generic types.
2071 2008-09-27 Colin Walters <walters@verbum.org>
2073 * tools/g-ir-scanner: Add --inject option.
2075 2008-09-25 Colin Walters <walters@verbum.org>
2077 Remove non-repository types from GIR
2079 * giscanner/ast.py: The canonical name is 'utf8', not
2081 * giscanner/glibast.py: A few more glib type mappings.
2082 * girepository/girparser.c: We only parse repository types.
2083 * tests/*.gir: Update.
2085 2008-09-23 Colin Walters <walters@verbum.org>
2087 Bug 552566: Add time_t type
2089 We need a type for time_t since it's special in C, and just
2090 mapping it to long precluded bindings from handling it
2093 2008-09-19 Colin Walters <walters@verbum.org>
2095 Bug 552390: Handle capitialization like "DBus" more robustly
2097 The to_underscores function was designed for use against prefixed
2098 names; we need a separate function which will convert names like
2099 DBusFoo into dbus_foo, not d_bus_foo.
2101 2008-09-19 Colin Walters <walters@verbum.org>
2103 Add check to make sure we're not hitting out unresolved types
2105 Validate the "this" argument for methods
2107 Remove heuristic matching of methods to classes based on prefix
2109 It was a broken hack that dated from when we handled underscoring
2110 and capitalization conventions less well.
2112 2008-09-18 Colin Walters <walters@verbum.org>
2114 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2116 On Darwin, the suffix for installed shared libraries (.dylib) is
2117 different from loadable modules (.so). We use a bit of magic shell
2118 script from Behdad Esfahbod to figure out the right suffix.
2120 2008-09-15 Johan Dahlin <johan@gnome.org>
2122 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2123 a wrapper for type_qualifier as well.
2125 2008-09-15 Colin Walters <walters@verbum.org>
2127 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2129 * giscanner/ast.py: Add deprecation attributes.
2130 * giscanner/girwriter.py: Write out deprecation data.
2131 * girepository/girparser.c: Relax parsing; deprecated
2132 attribute now includes freeform string.
2133 * giscanner/scannerlexer.l: Parse Deprecated.
2134 * giscanner/transformer.py: Look for deprecated attribute
2136 * tests/scanner/*: Add a Deprecated test.
2138 2008-09-14 Tor Lillqvist <tml@novell.com>
2140 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2142 2008-09-14 Colin Walters <walters@verbum.org>
2144 * giscanner/glibtransformer.py: Ignore functions with
2147 2008-09-12 Colin Walters <walters@verbum.org>
2149 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2151 2008-09-12 Colin Walters <walters@verbum.org>
2153 * giscanner/ast.py: Bind pid_t to INT for vte.
2155 2008-09-12 Colin Walters <walters@verbum.org>
2157 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2158 * giscanner/glibast.py: Avoid overwriting ctype.
2159 * giscsanner/transformer.py: Try resolving types using the GType names.
2161 2008-09-12 Colin Walters <walters@verbum.org>
2163 * giscanner/minixpath.py: Code to run an "XPath"
2164 assertion against an XML tree, taken from
2165 gir-repository/gir/tests.py.
2166 * giscanner/Makefile.am: Ship it.
2167 * tools/g-ir-scanner: Add --xpath-assertions option.
2168 * gir/GLib-assertions.txt: Add a few assertions.
2169 * gir/Makefile.am: Run them.
2171 2008-09-11 Colin Walters <walters@verbum.org>
2173 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2175 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2176 prefix if it ends with _. Tweak callback stripping to determine
2177 based on presence of _ whether we need to use strip_namespace_func
2178 or strip_namespace_object.
2180 2008-09-09 Owen Taylor <otaylor@redhat.com>
2182 * docs/typelib-format.txt: Wether => Whether
2184 2008-09-08 Colin Walters <walters@verbum.org>
2186 * girepository/girparser.c: Default to "readable" for properties.
2187 * giscanner/ast.py: Add readable, writable etc.
2188 * giscanner/girwriter.py: Writ them.
2189 * giscanner/glibtransformer.py: Inspect them.
2192 2008-09-07 Colin Walters <walters@verbum.org>
2194 * giscanner/cgobject.py: Add comment.
2196 2008-09-07 Colin Walters <walters@verbum.org>
2198 * giscanner/cgobject.py: Also call g_thread_init.
2200 2008-09-07 Colin Walters <walters@verbum.org>
2202 * giscanner/transformer.py: Fix regression by not
2203 stripping prefix before stripping namespace for unions
2206 2008-09-06 Colin Walters <walters@verbum.org>
2208 * giscanner/transformer.py: If a namespace contains
2209 multiple caps, try stripping both gnomekeyring_ and
2212 2008-09-07 Johan Dahlin <johan@gnome.org>
2214 Bug 551162 – giscanner does not recognize asm and __asm__
2215 * giscanner/scannerlexer.l:
2216 Patch by Jani Monoses.
2218 2008-09-06 Colin Walters <walters@verbum.org>
2220 * girepository/girnode.c: Allow gtype_name
2221 and gtype_init in struct and union.
2222 * girepository/girparser.c: Parse glib:
2223 boxed bits for both structure and union.
2224 * girepository/gtypelib.c: Don't barf
2225 if structure is boxed.
2226 * giscanner/girparser.py: Parse new XML
2228 * giscanner/girwriter.py: Write out new
2230 * giscanner/glibast.py: Define new classes
2231 which are both Boxed and Struct/Union, as
2232 well as an "Other" for everything else.
2233 * giscanner/glibtransformer.py: Handle
2234 boxed types specially; we try to merge
2235 them with a struct/union if one exists,
2236 otherwise fall back to generic boxed.
2238 * tools/generate.c: Write out new format.
2240 2008-09-06 Johan Dahlin <johan@gnome.org>
2242 * giscanner/grealpath.h: Include stdlib.h
2244 * docs/g-ir-generate.1: Remove leading %
2246 2008-09-01 Colin Walters <walters@verbum.org>
2248 * girepository/girparser.c: Look at c:type to determine
2249 whether or not an item is a pointer.
2251 2008-09-01 Johan Dahlin <johan@gnome.org>
2253 * tests/scanner/Makefile.am:
2254 Set PYTHONPATH so the scanner can run
2255 even if you didn't install anything.
2257 2008-09-01 Johan Dahlin <johan@gnome.org>
2260 Post-release version bump
2263 2008-09-01 Johan Dahlin <johan@gnome.org>
2267 2008-08-31 Colin Walters <walters@verbum.org>
2269 * giscanner/glibtransformer.py: Quiet info
2272 2008-08-31 Johan Dahlin <johan@gnome.org>
2275 Bump version to 0.5.0
2277 2008-08-31 Colin Walters <walters@verbum.org>
2279 * giscanner/glibtransformer.py: Follow aliases to ensure
2280 we don't get a constructor returning a basic type.
2281 * giscanner/transformer.py: Add function to follow aliases.
2284 2008-08-31 Johan Dahlin <johan@gnome.org>
2286 * giscanner/scannerlexer.l:
2287 * giscanner/scannerparser.y:
2288 * giscanner/sourcescanner.h:
2289 * giscanner/sourcescanner.py:
2290 Parse GCC extensions in the parser instead of just undeffing them
2291 in the pre-processor.
2293 2008-08-31 Johan Dahlin <johan@gnome.org>
2295 * giscanner/glibtransformer.py:
2296 Clean up a huge if. Do not add methods or constructors
2298 * giscanner/utils.py:
2299 second might be longer than first, check that.
2301 2008-08-31 Johan Dahlin <johan@gnome.org>
2306 2008-08-31 Colin Walters <walters@verbum.org>
2308 * girepository/girparser.c: Don't lose if we
2311 2008-08-31 Colin Walters <walters@verbum.org>
2313 * giscanner/glibtransformer.py: Look for libtool
2314 library in current directory
2315 * tests/scanner - Update.
2317 2008-08-30 Colin Walters <walters@verbum.org>
2319 * docs/typelib-format.txt: Add a guint32
2321 * gir/Makefile.am: Dep on Makefile
2322 * girepository/ginfo.c:
2323 * girepository/girepository.c: Clean up
2324 default typelib handling; remove global
2325 default_typelib variable. Ensure we handle
2326 NULL repository in more places.
2327 Support dependency resolution.
2328 Support lazy loading.
2329 * girepository/girepository.h: Remove
2330 g_irepository_unregister; we don't support
2331 unloading typelibs since really they're
2332 process-global. Update for lazy loading
2334 * girepository/girmodule.c: Use g_new0.
2335 Add dependencies to GirModule.
2336 * girepository/girparser.c: Parse dependencies.
2337 * girepository/gtypelib.c: Add 4 bytes for
2339 * tests/Makefile.am: Kill off gobject.gir,
2340 it conflicts with the real one.
2341 * tests/object.gir: Dep on GObject.
2342 * tools/generate.c: Take --includedir
2343 argument to say which directories to search
2344 for typelibs. Print out dependencies.
2346 2008-08-30 Colin Walters <walters@verbum.org>
2348 * giscanner/glibtransformer.py: Reduce warning noise.
2350 2008-08-29 Colin Walters <walters@verbum.org>
2352 * girepository/ginfo.c: Add some assertions regarding
2353 refcounts, just to be sure.
2354 * giscanner/glibtransformer.py: Blacklist a few more
2357 2008-08-29 Colin Walters <walters@verbum.org>
2359 * giscanner/glibtransformer.py: Blacklist a few
2360 functions that use GError oddly
2362 2008-08-29 Colin Walters <walters@verbum.org>
2364 * girepository/gtypelib.c: Don't crash if no
2367 2008-08-29 Colin Walters <walters@verbum.org>
2369 * girepository/girparser.c: Handle chains of aliases
2370 across modules by ensuring we fully qualify aliases
2373 2008-08-29 Colin Walters <walters@verbum.org>
2375 * girepository/girparser.c: Don't search aliases
2378 2008-08-29 Colin Walters <walters@verbum.org>
2380 * girepository/girparser.c: Rewrite type parsing
2381 to handle both GLib parsing case as well as correctly
2382 handling GLib.List and friends. Don't try to treat
2383 e.g. ListStore as a List.
2385 2008-08-29 Colin Walters <walters@verbum.org>
2387 * girepository/gtypelib.c: Add more context
2390 2008-08-29 Colin Walters <walters@verbum.org>
2392 * giscanner/glibtransformer.py: Add some informative
2393 logging messages in corner cases. Be sure we use
2394 the most recent node set instead of a cache
2395 when generating result set.
2396 * tests/: Remove duplicated bits in expected girs
2397 * girepository/girparser.c: Accept both List (for
2398 compiling GLib) and GLib.List (what the scanner
2401 * tools/generate.c: Generate canonical form.
2403 2008-08-29 Johan Dahlin <johan@gnome.org>
2405 * giscanner/config.py.in:
2406 Use datarootdir instead of datadir to avoid
2407 an autoconf warning.
2409 2008-08-29 Johan Dahlin <johan@gnome.org>
2413 * examples/gdk-pixbuf.gidl:
2415 Update and remove old cruft.
2417 2008-08-29 Johan Dahlin <johan@gnome.org>
2420 * docs/g-ir-compiler.1:
2421 * docs/g-ir-generate.1:
2422 * docs/g-ir-scanner.1:
2423 Add man pages for the generator and compiler.
2425 2008-08-29 Johan Dahlin <johan@gnome.org>
2427 * docs/g-ir-scanner.1: Document
2429 * giscanner/Makefile.am:
2430 * giscanner/gidlparser.py:
2431 * giscanner/gidlwriter.py:
2432 * tools/g-ir-scanner:
2433 Remove gidl support.
2435 2008-08-28 Colin Walters <walters@verbum.org>
2437 * tests/scanner/Makefile.am: Pass the right
2438 --includedir args. Add a Makefile dep.
2439 * tools/compiler.c: Pass includedirs down.
2440 * girepository/girparser.c: Actually put
2441 includedirs in context, pass down. Fix
2444 2008-08-28 Colin Walters <walters@verbum.org>
2446 * gir/Makefile.am: Use --includedir
2447 * girepository/girparser.c: Recursively parse
2448 includes to pull in aliases and expand them.
2449 We need this to avoid putting unknown names in
2451 * tools/compiler.c: Add --includedir option.
2452 * giscanner/ast.py: Map size/ssize to types
2455 2008-08-28 Tor Lillqvist <tml@novell.com>
2457 Make check now runs successfully on Windows.
2459 * tools/compiler.c (write_out_typelib): Use binary mode for output
2462 * girepository/girnode.c: Don't print NULL strings.
2464 * tests/invoke/Makefile.am
2465 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2466 convince libtool to build shared libraries.
2468 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2469 g_assert() instead of printing out expected errors.
2471 2008-08-28 Tor Lillqvist <tml@novell.com>
2473 * girepository/gtypelib.h: Change type of bitfield fields from
2474 guint to the most suitable smaller type. This makes the struct
2475 sizes match the ones on Linux that the sanity check expects when
2476 using gcc -mms-bitfields on Windows.
2478 2008-08-28 Johan Dahlin <johan@gnome.org>
2483 * giscanner/Makefile.am:
2484 * tests/Makefile.am:
2485 * tests/scanner/Makefile.am:
2486 Make distcheck pass.
2488 2008-08-27 Johan Dahlin <johan@gnome.org>
2490 * giscanner/Makefile.am:
2491 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2493 2008-08-27 Tor Lillqvist <tml@novell.com>
2495 Make g-ir-scanner work on Windows. Still problems with the typelib
2496 code. Changes okayed by jdahlin.
2498 * configure.ac: Check for Windows, set Automake conditional
2499 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2500 avoid shell quoting issues
2502 * girepository/Makefile.am: Use -no-undefined so that libtool
2503 agrees to build a shared library on Windows.
2505 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2506 Windows. Empty implementation on Windows so far.
2508 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2509 informative error message for the assertion failures. Tell also
2510 what the expected size of the struct is. Check all sizes first and
2511 fail afterwards if at least one size was different from expected.
2513 * tools/Makefile.am: Reorder libraries into proper logical
2516 * tools/generate.c: Don't include <dlfcn.h>, not used.
2518 * giscanner/Makefile.am: On Windows, link with the Python library,
2519 and install the module DLL as _giscanner.pyd. Remove the
2520 unnecessary import library and libtool library that libtool has
2523 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2524 and just skip it. Recognize also two "l" suffixes for long long
2525 constants. Recognize also __inline__.
2527 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2528 GetFullPathName(). As such, GetFullPathName() does more than the
2529 UNIX realpath(). It also changes relative paths into absolute
2530 paths. But for our purposes that shouldn't matter.
2532 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2533 Windows the file descriptor passed to us is from Python. Python
2534 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2535 uses msvcrt.dll. On Windows, file descriptors are specific to
2536 which C library is used. So we must find out what underlying OS
2537 handle corresponds to the file descriptor Python passes us, and
2538 then make that into a file descriptor valid for the C library this
2541 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2542 __attribute__ as the lexer now handles it. The definition as empty
2543 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2544 __attribute__. Close the temp file before unlinking it.
2546 * giscanner/cgobject.py: Use correct library name for the gobject
2549 * gir/Makefile.am: Must pass the full basename of the DLLs on
2550 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2551 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2552 reality they won't change, until there is a GLib 3, and then also
2553 the Unix code here needs changing.
2555 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2558 2008-08-26 Colin Walters <walters@verbum.org>
2560 * girepository/girepository.c: Search
2561 $DATADIR/girepository instead of
2562 $DATADIR/gitypelibs; this naming makes
2563 it clearer that e.g. jgir can install
2565 * gir/Makefile.am: Install there.
2567 2008-08-26 Colin Walters <walters@verbum.org>
2569 * girepository/gtypelib.c (_g_typelib_init): Also
2570 use G_MODULE_SUFFIX instead of hardcoding .so.
2572 2008-08-26 Colin Walters <walters@verbum.org>
2574 * girepository/gtypelib.c (_g_typelib_init): Free
2575 string in the right place.
2577 2008-08-26 Colin Walters <walters@verbum.org>
2579 * girepository/gtypelib.c (_g_typelib_init): Handle
2580 both .la and .so names; this works better in the
2581 uninstalled library case.
2583 2008-08-26 Johan Dahlin <johan@gnome.org>
2586 * giscanner/Makefile.am:
2587 * giscanner/cgobject.py:
2588 * giscanner/config.py.in:
2589 * giscanner/sourcescanner.py:
2590 Avoid undeffing __GNUC__, instead define
2591 __attribute__ & friends. Remove glibconfig.h hack.
2592 This makes gobject-introspection work better on
2593 MacOS X, Thanks to Richard Hult for kind help.
2595 2008-08-25 Colin Walters <walters@verbum.org>
2597 * giscanner/glibtransformer.py: Always print
2600 2008-08-25 Colin Walters <walters@verbum.org>
2602 * giscanner/glibtransformer.py: Skip over
2603 interfaces we don't know.
2605 2008-08-25 Colin Walters <walters@verbum.org>
2607 * girepository/girparser.c: Parse new implements
2608 syntax, drop gapi one.
2609 * tests/object.gir: Update.
2610 * tools/generate.c: Generate new syntax.
2612 2008-08-25 Colin Walters <walters@verbum.org>
2614 * giscanner/ast.py: Add interfaces property
2616 * giscanner/girwriter.py: Write out implemented
2618 * giscanner/glibtransformer.py: Introspect
2619 implemented interfaces.
2620 * tests/scanner/*: Make FooObject implement
2623 2008-08-25 Colin Walters <walters@verbum.org>
2625 * giscanner/glibtransformer.py: More correctly pair
2626 methods; if we have a symbol that starts with
2627 e.g. hippo_canvas look for a matching HippoCanvas
2628 class before accepting e.g. HippoCanvasImage.
2630 2008-08-24 Colin Walters <walters@verbum.org>
2632 * tools/g-ir-scanner: Filter out unknown options from
2635 2008-08-24 Colin Walters <walters@verbum.org>
2637 * giscanner/glibtransformer.py: Fail with better
2638 error if we can't find library.
2640 2008-08-24 Colin Walters <walters@verbum.org>
2642 * tools/g-ir-scanner: Use subprocess instead of
2643 commands, works on Windows and avoids the evil
2646 2008-08-24 Colin Walters <walters@verbum.org>
2648 * giscanner/glibtransformer.py: Skip over
2649 g_object_get_type from GLib trunk.
2651 2008-08-24 Colin Walters <walters@verbum.org>
2653 * girepository/girepository.c (g_irepository_require):
2654 Don't open shared library here; we already do it
2657 2008-08-24 Colin Walters <walters@verbum.org>
2659 * girepository/gtypelib.c: Add context stack so
2660 when we get an error we can print out nicely
2663 2008-08-24 Johan Dahlin <johan@gnome.org>
2665 * girepository/girparser.c (start_glib_boxed), (start_function),
2666 (start_field), (start_alias):
2667 Refactor a couple of parsing functions to be simpler to follow.
2670 2008-08-24 Johan Dahlin <johan@gnome.org>
2672 * girepository/girparser.c (start_function):
2673 Remove left-over code, checking type of function.
2675 2008-08-23 Colin Walters <walters@verbum.org>
2677 * giscanner/config.py: Define DATADIR.
2678 * giscanner/transformer.py: Look in DATADIR.
2680 2008-08-23 Colin Walters <walters@verbum.org>
2682 * girepository/gtypelib.c: Check constructor
2684 * girepository/girnode.c: Small tweaks.
2685 * girepository/ginfo.c: Calculate signature offsets
2687 * girepository/girparser.c: Remove duplicate
2689 * giscanner/glibtransformer.py: Avoid marking
2690 functions which return a basic type as
2693 2008-08-23 Colin Walters <walters@verbum.org>
2695 * girepository/girparser.c: Ignore <include>.
2696 * giscanner/girparser.py: Parse them.
2697 * giscanner/girwriter.py: Generate them.
2698 * giscanner/transformer.py: Process <include>
2699 recursively. Don't require full path for
2700 includes, look in {$XDG_DATA_DIRS}/gir.
2701 * tools/g-ir-scanner: Pass through includes.
2702 * Makefile.am: Remove extra --include
2704 * *-expected.gir: Add expected includes.
2706 2008-08-23 Johan Dahlin <johan@gnome.org>
2708 * tests/scanner/Makefile.am:
2709 * tests/scanner/annotation-expected.gir:
2710 * tests/scanner/drawable-expected.gir:
2711 Avoid duplication in the Makefile, regenerate with new
2712 namespaces (same as the filename)
2714 2008-08-22 Colin Walters <walters@verbum.org>
2716 * girepository/girnode.c: Don't hardcode integers,
2719 2008-08-22 Johan Dahlin <johan@gnome.org>
2721 * giscanner/sourcescanner.py:
2722 Check for ../gobject-introspection-1.0.pc.in to determine
2723 if we run installed or uninstalled.
2725 2008-08-22 Johan Dahlin <johan@gnome.org>
2728 * giscanner/sourcescanner.py:
2729 Send in undefs/defines via writing it directly to stdin
2730 of cpp instead of via arguments.
2732 2008-08-22 Colin Walters <walters@verbum.org>
2734 * tools/generate.c, tools/compiler.c: Default
2736 * all Makefile.am: Update.
2738 2008-08-22 Colin Walters <walters@verbum.org>
2740 * girepository/girparser.c: Pass through
2741 recursive types. Avoid overwriting errors.
2742 * giscanner/xmlwriter.py: Always write the
2744 * tests/*.gir: Adjust.
2745 * tests/scanner/Makefile.am: Build typelibs,
2746 and generate XML from those. Once we
2747 have a good diff mechanism...
2748 * tests/scanner/*-expected.gir: Add XML
2750 * tools/g-ir-scanner: Accept --typelib-xml
2752 * tools/generate.c: Better defaults for transfer.
2754 2008-08-22 Johan Dahlin <johan@gnome.org>
2758 * giscanner/Makefile.am:
2759 * giscanner/config.py.in:
2760 * giscanner/sourcescanner.py:
2761 Use the generated glibconfig.h for all scanner invokations.
2762 Rename it to glibconfig-scanner.h and install it.
2763 Add a config.py which so far contains the include dir.
2765 2008-08-22 Johan Dahlin <johan@gnome.org>
2768 Replace glibconfig.h with our own, do some replacement
2769 for CPP/C features we do not support
2771 2008-08-22 Colin Walters <walters@verbum.org>
2773 * tools/generate.c (write_callable_info): Fix unref
2776 2008-08-22 Colin Walters <walters@verbum.org>
2778 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2779 * tests/Makefile.am: Support $(DEBUG)
2780 * tools/generate.c: Do immediate close tags if no
2783 2008-08-21 Colin Walters <walters@verbum.org>
2785 * tests/scanner/drawable-expected.gir,
2786 * tests/scanner/drawable.c,
2787 * tests/scanner/drawable.h:
2790 2008-08-21 Colin Walters <walters@verbum.org>
2792 * giscanner/glibtransformer.py: Compute prefix
2793 by searching through the symbol for bits
2794 rather than going directly from ctype; this fixes
2797 2008-08-21 Colin Walters <walters@verbum.org>
2799 * giscanner/glibtransformer.py: Also try squashing
2800 underscores from namespace, fixes webkit_web_view_new.
2802 2008-08-21 Colin Walters <walters@verbum.org>
2804 * giscanner/glibtransformer.py: More ctor work,
2805 avoid having gtk_window_group_new end up under
2808 2008-08-21 Colin Walters <walters@verbum.org>
2810 * giscanner/glibtransformer.py: Much simpler approach
2811 of mapping uscored names to classes.
2812 * giscanner/utils.py: Remove unnecessary function.
2814 2008-08-21 Johan Dahlin <johan@gnome.org>
2816 * girepository/girepository.c (g_irepository_require):
2817 Plug memory leak and avoid using freed memory.
2818 Resolve the whole module path, here as well.
2820 2008-08-21 Colin Walters <walters@verbum.org>
2822 * giscanner/glibtransformer.py: Look up all permutations
2823 of class names when scanning methods/ctors based on
2824 the prefix instead of using the return value. This
2825 associates gtk_window_new with the right class.
2827 2008-08-21 Colin Walters <walters@verbum.org>
2829 * girepository/girmodule.c (g_ir_module_build_typelib):
2830 Revert change to increment header_size; we do that in
2833 2008-08-21 Colin Walters <walters@verbum.org>
2835 * girepository/girnode.c (write_string): Tweak to
2836 use UINT instead of INT. Not likely to matter.
2837 * girepository/girmodule.c (g_ir_module_build_typelib):
2838 Add to header_offset as well for header strings
2839 to match what write_string does.
2840 * girepository/gtypelib.c: Replace is_name with
2841 validate_name, which more strongly validates and
2842 handles errors in a better way. Update all callers.
2843 * giscanner/glibtransformer.py: Handle constructors
2846 2008-08-21 Johan Dahlin <johan@gnome.org>
2848 * gir/Makefile.am (typelibs_DATA): Build and
2849 install the Gio.typelib too
2851 * girepository/gtypelib.c (_g_typelib_init):
2852 Use g_module_build_path to resolve the shlib name
2854 2008-08-21 Colin Walters <walters@verbum.org>
2856 * gir/Makefile.am: CLEANFILES typelibs too.
2858 2008-08-21 Johan Dahlin <johan@gnome.org>
2860 * giscanner/glibtransformer.py:
2861 Do not send .la files through find_library.
2863 2008-08-21 Colin Walters <walters@verbum.org>
2865 * girepository/girparser.c (g_irepository_require):
2866 Fix one small leak in error case.
2868 2008-08-21 Johan Dahlin <johan@gnome.org>
2871 Parse glibconfig.h as well and install the compiled
2874 2008-08-21 Johan Dahlin <johan@gnome.org>
2877 * giscanner/glibtransformer.py:
2878 * tools/g-ir-scanner:
2879 Do not hard-core library names in the Makefile, reuse
2880 ctypes find_library instead.
2882 2008-08-21 Johan Dahlin <johan@gnome.org>
2884 * girepository/girparser.c (resolve_aliases):
2885 Remove compilation warnings
2887 2008-08-21 Johan Dahlin <johan@gnome.org>
2889 * girepository/girepository.c (g_irepository_require):
2890 Rewrap and fix double free bug by leaking a bit.
2892 2008-08-20 Colin Walters <walters@verbum.org>
2894 * girepository/girepository.c: Add new function
2895 g_irepository_get_typelib_path which tells
2896 us from where we loaded a namespace.
2898 2008-08-20 Colin Walters <walters@verbum.org>
2900 * tests/scanner/*-expected.gir: Adjust for
2901 added shared-library.
2902 * giscanner/giwriter.py: Make pylint happy.
2904 2008-08-20 Colin Walters <walters@verbum.org>
2906 * girepository/girmodule.c (g_ir_module_build_typelib):
2907 Calculate size correctly, avoid use-after-free.
2909 2008-08-20 Colin Walters <walters@verbum.org>
2911 * girepository/girepository.c: Remove
2912 g_irepository_register_file in favor of
2913 g_irepository_require. There are two
2914 possible deployment scenarios for typelibs:
2915 First, separate in $DATADIR/gitypelibs/. Second,
2916 they may be embedded in shlibs. However since
2917 the first is now the normal case, the API is
2918 optimized around it.
2920 Refactor internals to look up typelibs for
2921 namespaces just-in-time, but we expect
2922 consumers to call g_irepository_require.
2924 Also, add some docs. No one has died from that
2926 * gir/Makefile.am: Need --library for glib.
2927 * giscanner/girwriter.py: Write out shared-library.
2928 * tools/g-ir-writer: Take the first --library
2929 argument as the target of shared-library. In
2930 the future we should make this nicer with pkg-config
2933 2008-08-20 Colin Walters <walters@verbum.org>
2935 * girepository/girparser.py: And parse them.
2937 2008-08-20 Johan Dahlin <johan@gnome.org>
2939 * giscanner/glibast.py: Add gshort/gushort types
2941 2008-08-20 Colin Walters <walters@verbum.org>
2943 * gir/Makefile.am: Rename .gir files using GI namespace.
2944 * girepository/girepository.c: Use XDG_DATA_DIRS for
2945 looking up typelibs. Also typelibs are now suffixed
2947 * tests/invoke/Makefile.am: Only use metadata.
2948 * girepository/Makefile.am: Remove unnecessary include.
2949 * tests/scanner/Makefile.am: Update using GI namespaces
2950 for scanner includes.
2952 2008-08-20 Colin Walters <walters@verbum.org>
2954 * girepository/transformer.py: Suppress aliases whose
2956 * girepository/ast.py: Define some more aliases.
2958 2008-08-20 Colin Walters <walters@verbum.org>
2960 * girepository/girparser.c: Avoid alias infloops.
2962 2008-08-20 Colin Walters <walters@verbum.org>
2964 * tests/scanner/foo-expected.gir: Fix expected list type.
2966 2008-08-20 Johan Dahlin <johan@gnome.org>
2968 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2969 Add a workaround for #548689.
2970 We can now compile gtk!
2972 2008-08-20 Colin Walters <walters@verbum.org>
2974 * giscanner/glibtransformer.py: Try to look up
2975 aliases using the c:type too.
2977 2008-08-20 Colin Walters <walters@verbum.org>
2979 * girepository/girparser.c: Parse union fields.
2981 2008-08-20 Johan Dahlin <johan@gnome.org>
2983 * giscanner/ast.py: Make time_t an alias for long
2985 * gir/gio-2.0-good.gir:
2986 * gir/glib-2.0-good.gir:
2987 * gir/gobject-2.0-good.gir:
2989 * giscanner/glibtransformer.py:
2990 Do not delete Class structures, we need them in gdk/gtk.
2991 * tests/scanner/drawable-expected.gir:
2992 * tests/scanner/foo-expected.gir:
2993 * tests/scanner/utility-expected.gir:
2996 2008-08-20 Johan Dahlin <johan@gnome.org>
2998 * tests/scanner/Makefile.am:
2999 * tests/scanner/annotation-expected.gir:
3000 * tests/scanner/annotation.c (annotation_object_class_init),
3001 (annotation_object_init), (annotation_object_method),
3002 (annotation_object_in), (annotation_object_out),
3003 (annotation_object_inout), (annotation_object_inout2),
3004 (annotation_object_inout3), (annotation_object_calleeowns),
3005 (annotation_object_calleesowns), (annotation_object_get_strings),
3006 (annotation_object_with_voidp), (annotation_object_get_objects),
3007 (annotation_object_create_object), (annotation_object_allow_none):
3008 * tests/scanner/annotation.h:
3009 * tests/scanner/foo-expected.gir:
3010 * tests/scanner/foo.c:
3011 * tests/scanner/foo.h:
3012 Split out annotation tests out of foo
3014 2008-08-20 Johan Dahlin <johan@gnome.org>
3016 * tests/scanner/Foo-expected.gir:
3017 * tests/scanner/Makefile.am:
3018 * tests/scanner/foo-expected.gir:
3019 * tests/scanner/foo-object.h:
3020 * tests/scanner/foo.c:
3021 Foo->foo, foo-object.h -> foo.h
3023 2008-08-20 Johan Dahlin <johan@gnome.org>
3025 * tests/scanner/Foo-expected.gir:
3026 * tests/scanner/Makefile.am:
3027 * tests/scanner/drawable-expected.gir:
3028 * tests/scanner/drawable.c (test_drawable_class_init),
3029 (test_drawable_init):
3030 * tests/scanner/drawable.h:
3031 * tests/scanner/foo-object.h:
3032 * tests/scanner/foo.c (foo_boxed_method):
3033 Move the drawable parts out of Foo to its own test.
3035 2008-08-20 Johan Dahlin <johan@gnome.org>
3037 * tests/scanner/Foo-expected.gir:
3038 * tests/scanner/foo-object.h:
3039 * tests/scanner/foo.c (foo_drawable_class_init),
3040 (foo_drawable_init):
3041 Add a based on GdkDrawable which generates
3044 2008-08-19 Colin Walters <walters@verbum.org>
3046 * giscanner/transformer.py: Don't try
3047 to strip prefix before namespace.
3049 2008-08-19 Johan Dahlin <johan@gnome.org>
3051 * giscanner/transformer.py:
3052 * tests/scanner/Foo-expected.gir:
3053 * tests/scanner/foo-object.h:
3054 Add support for typedef void foo type of
3057 2008-08-19 Johan Dahlin <johan@gnome.org>
3060 * giscanner/girwriter.py:
3061 * giscanner/glibtransformer.py:
3062 * giscanner/transformer.py:
3063 * tests/scanner/Foo-expected.gir:
3064 Add basic support for union, base the code much
3065 on Struct. Add a testcase.
3067 2008-08-19 Johan Dahlin <johan@gnome.org>
3069 * tests/scanner/Foo-expected.gir:
3070 * tests/scanner/foo-object.h:
3071 Add a union testcase which the compiler currently
3074 2008-08-19 Johan Dahlin <johan@gnome.org>
3076 * gobject-introspection-1.0.pc.in:
3077 Add a g_ir_compiler variable
3079 2008-08-19 Colin Walters <walters@verbum.org>
3081 * giscanner/ast.py: Rework types to be more closely
3083 * giscanner/girparser.py: Parse more bits.
3084 * giscanner/girwriter.py: Write sequences in a new
3085 way that specifies container type.
3086 * giscanner/glibast.py: Adjust for ast.py changes,
3087 add 'ctype' property to GLibObject and GLibInterface
3088 so we can look things up by it later.
3089 * gicanner/transformer.py: Names is new class holding
3090 the various namespaces we manage. Do not confuse
3091 with Namespace which is toplevel XML node effectively.
3092 Rework all type resolution to go through
3093 _resolve_type_name_1.
3094 * giscanner/glibtransformer.py: Raise UnknownTypeError
3095 instead of ValueError for cleanliness. Add Unresolved
3096 class to mark types whose parent we haven't seen yet.
3097 Use new Names object from transformer.py.
3098 Correctly look up parent=.
3099 Fix type validation to handle sequences.
3100 * tests/scanner/Foo-expected.gir: Update for sequence
3101 work, int instead of int32.
3102 * tools/g-ir-scanner: Add --noclosure option
3103 * gir/Makefile.am: Use --noclosure by default for
3106 2008-08-18 Johan Dahlin <johan@gnome.org>
3108 * gir/gio-2.0-good.gir:
3109 * gir/glib-2.0-good.gir:
3110 * gir/gobject-2.0-good.gir:
3113 2008-08-18 Johan Dahlin <johan@gnome.org>
3116 * giscanner/girparser.py:
3117 * giscanner/girwriter.py:
3118 * giscanner/glibast.py:
3119 * giscanner/glibtransformer.py:
3120 * giscanner/transformer.py:
3121 * tests/scanner/Foo-expected.gir:
3122 * tests/scanner/foo-object.h:
3123 * tests/scanner/utility-expected.gir:
3124 * tests/scanner/utility.h:
3125 Redo type resolving and validation.
3126 Add a couple of new tests.
3127 Patch mostly written by Colin.
3129 2008-08-18 Johan Dahlin <johan@gnome.org>
3132 * giscanner/girparser.py:
3134 * giscanner/transformer.py:
3135 Improve enum parsing for enums without a GType.
3136 Make flags/enum references to other girs work
3137 * giscanner/utils.py:
3139 * tests/scanner/Makefile.am:
3140 * tests/scanner/foo-object.h:
3141 * tests/scanner/utility-expected.gir:
3142 * tests/scanner/utility.h:
3143 Add a new test for external enum references
3145 2008-08-18 Johan Dahlin <johan@gnome.org>
3147 * docs/global-module-registry.txt: Update
3149 * tests/array.gir: Update with new type proposal
3151 * girepository/girepository.c (g_type_tag_to_string):
3152 * girepository/girepository.h:
3153 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3155 * girepository/girnode.h:
3156 Make enum serializing functions public. Clean up some whitespace.
3158 2008-08-17 Johan Dahlin <johan@gnome.org>
3160 * docs/global-module-registry.txt:
3161 Add a document for an on disk module registry format
3163 2008-08-17 Johan Dahlin <johan@gnome.org>
3166 * gir/gio-2.0-good.gir:
3169 2008-08-17 Johan Dahlin <johan@gnome.org>
3172 * gir/glib-2.0-good.gir:
3173 * gir/gobject-2.0-good.gir:
3174 * giscanner/cgobject.py:
3175 * giscanner/glibtransformer.py:
3176 Regenerate GObject & GType.
3177 Avoid warnings when generating gobject-2.0.gir.
3178 Introspect a little more, and skip *_get_type functions.
3180 2008-08-17 Colin Walters <walters@verbum.org>
3182 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3183 Rename to -good, always generate during build.
3184 * gir/Makefile.am: Ensure .gir files dep on
3185 all scanner sources.
3186 * Makefile.am: Switch build order to ensure
3187 the scanner is ready before we do gir/.
3188 * tools/g-ir-scanner: Look for .git too.
3190 2008-08-17 Johan Dahlin <johan@gnome.org>
3192 * girepository/gtypelib.c (validate_enum_blob):
3193 * giscanner/glibtransformer.py:
3194 * giscanner/transformer.py:
3195 Remove resolve_possible_typedefs, it was unused.
3196 Allow multiple enum values of the sample value in an enum,
3197 since it's actually pretty common.
3198 Register enums so they can be resolved too.
3200 2008-08-16 Johan Dahlin <johan@gnome.org>
3202 * giscanner/girparser.py:
3203 Parse enumeration/bitfield.
3205 2008-08-16 Johan Dahlin <johan@gnome.org>
3207 * giscanner/girparser.py:
3210 2008-08-16 Johan Dahlin <johan@gnome.org>
3212 * giscanner/glibtransformer.py:
3213 Resolve type names for alias targets
3214 * giscanner/transformer.py:
3215 Skip FILE* parameters fow now
3217 2008-08-16 Johan Dahlin <johan@gnome.org>
3220 * gir/gobject-2.0.gir:
3223 * tests/scanner/Makefile.am:
3226 2008-08-15 Colin Walters <walters@verbum.org>
3228 * giscanner/glibtransformer.py: Explicitly construct
3229 new list, since we're deleting as we iterate.
3230 Don't delete all structures which end in Class; just
3231 ones which have a paired GObject.
3232 Fix printing of type warning.
3233 * giscanner/transformer.py: Make strip_namespace_object
3234 be the identity function if it doesn't match the
3237 2008-08-15 Colin Walters <walters@verbum.org>
3239 * giscanner/cgobject.py: Define yet more argument
3240 prototypes; fix prototype for g_type_fundamental.
3242 2008-08-14 Johan Dahlin <johan@gnome.org>
3244 * tests/Makefile.am:
3245 * tests/constant.gir:
3246 * tests/gobject.gir:
3248 * tools/generate.c (write_struct_info):
3249 Fix generator for constant/gobject/struct
3251 2008-08-14 Johan Dahlin <johan@gnome.org>
3253 * tests/Makefile.am:
3255 * tools/generate.c (write_enum_info):
3256 Fix generation of enum/bitfields
3258 2008-08-14 Johan Dahlin <johan@gnome.org>
3260 * girepository/girparser.c (start_field), (start_constant),
3261 (start_type), (end_element_handler):
3262 Clear up constant parsing
3267 * tools/generate.c (write_callable_info), (write_function_info),
3268 (write_callback_info), (write_constant_info), (write_signal_info),
3269 (write_vfunc_info), (write_property_info), (write_object_info),
3270 (write_interface_info):
3271 Constants/Signals are handled now.
3273 2008-08-14 Johan Dahlin <johan@gnome.org>
3275 * girepository/girparser.c (start_type):
3276 Don't require c:type.
3277 * tests/Makefile.am:
3280 Update, remove parts we don't support yet
3281 * tests/roundtrips.sh:
3283 * tools/generate.c (write_type_info), (write_field_info),
3284 (write_callable_info), (write_struct_info):
3285 Make it emit proper gir.
3287 2008-08-14 Johan Dahlin <johan@gnome.org>
3289 * giscanner/transformer.py:
3290 New internal function for adding a new node.
3292 2008-08-14 Johan Dahlin <johan@gnome.org>
3295 Define an internal _H_ variable so we skip parsing both
3296 i18n headers, only one is needed.
3298 Add the glib-2.0.gir too.
3299 * giscanner/glibast.py:
3300 Add gconstpointer as an alias for ANY
3301 * giscanner/transformer.py:
3302 Do not lower case enumeration names per se.
3303 Skip functions which has parameters called 'va_list'
3305 2008-08-14 Colin Walters <walters@verbum.org>
3307 * giscanner/transformer.py: Comment data structures.
3308 Also squash pointers in resolve_type_name to correspond
3309 with what we do for params.
3310 * giscanner/glibtransformer.py: Print warnings in more
3311 situations. Rework checks for method/constructor to
3312 look up in our GType database instead of just checking
3313 for *. Avoid generating <record> for GObject which
3314 duplicate the <class>.
3315 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3318 2008-08-14 Johan Dahlin <johan@gnome.org>
3320 * giscanner/girwriter.py:
3321 * giscanner/glibast.py:
3322 * giscanner/glibtransformer.py:
3323 * giscanner/transformer.py:
3325 * tests/Makefile.am:
3326 Add pyflakes.py and run it in make check.
3327 Update the source code to fix the errors reported by
3330 2008-08-14 Johan Dahlin <johan@gnome.org>
3333 * giscanner/girparser.py:
3334 * giscanner/glibast.py:
3335 * giscanner/glibtransformer.py:
3336 Refactor the parser a bit.
3337 Add parent type to interfaces and update callsites.
3339 2008-08-14 Johan Dahlin <johan@gnome.org>
3341 * giscanner/glibtransformer.py:
3342 * giscanner/utils.py:
3343 Refactor a bit, avoid isinstance and add a method
3344 for each type we parse.
3346 2008-08-14 Johan Dahlin <johan@gnome.org>
3349 * giscanner/girparser.py:
3350 * giscanner/glibtransformer.py:
3351 * tests/Makefile.am:
3352 Run pep8.py in make check, fix old errors.
3354 2008-08-13 Colin Walters <walters@verbum.org>
3356 * giscanner/girparser.py: Parse records.
3358 2008-08-13 Colin Walters <walters@verbum.org>
3360 * gir/Makefile.am: Install again.
3361 * gir/gobject-2.0.gir: Add some more bits.
3363 2008-08-13 Colin Walters <walters@verbum.org>
3365 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3366 * giscanner/girparser.py: Handle aliases.
3367 * giscanner/transformer.py: Record aliases. Make resolver
3368 functions public; we now call into these explicitly from
3369 glibtransformer. Handle resolving aliases.
3370 * giscanner/glibtransformer.py: Separate our internal namespace
3371 from included ones. Call up into transformer's resolver functions.
3373 2008-08-13 Johan Dahlin <johan@gnome.org>
3375 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3376 * girepository/girparser.c (start_class):
3377 * giscanner/glibtransformer.py:
3378 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3380 2008-08-13 Johan Dahlin <johan@gnome.org>
3382 * giscanner/cgobject.py:
3383 Register GInitiallyUnowned
3384 * giscanner/girwriter.py:
3385 * giscanner/glibtransformer.py:
3386 Special case GObject/GInitially owned as they are a bit special to use.
3388 2008-08-13 Colin Walters <walters@verbum.org>
3390 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3391 Object is in GObject namespace.
3393 2008-08-13 Colin Walters <walters@verbum.org>
3395 * giscanner/girparser.py: Fix processing of functions
3398 2008-08-13 Colin Walters <walters@verbum.org>
3400 * giscanner/girparser.py: Parse more than just <class.
3401 * giscanner/glibtransformer.py: Put aliases in a separate
3402 data structure since their name is not canonicall.
3403 * giscanner/transformer.py: Handle resolving type names
3406 2008-08-13 Johan Dahlin <johan@gnome.org>
3408 * tools/g-ir-scanner:
3409 Allow multiple libraries
3410 * giscanner/glibtransformer.py:
3411 Rename load_library to add_library, traverse over all libraries
3412 when trying to resolve a function
3414 2008-08-12 Colin Walters <walters@verbum.org>
3416 * giscanner/transformer.py: Record typedefs as <alias> elements.
3417 Also attempt to look up types in external namespaces.
3418 * giscanner/girwriter.py: Write them.
3419 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3420 checks. Resolve interface methods and properties.
3421 * tests/scanner/foo-object.h: Add a method with typedef.
3422 * tests/scanner/Foo-expected.gir: Update.
3423 * girepository/girnode.c: Debug tweaks.
3424 * girepository/girparser.c: Make a first pass through the XML where we
3425 record all the aliases. This lets us resolve them as we go through the
3427 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3428 from gir-repository.
3430 2008-08-12 Colin Walters <walters@verbum.org>
3432 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3433 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3435 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3437 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3439 2008-08-12 Colin Walters <walters@verbum.org>
3441 * giscanner/glibtransformer.py: Also transform object properties.
3443 2008-08-12 Colin Walters <walters@verbum.org>
3445 * giscanner/glibtransformer.py: Also transform callbacks
3446 and structure field types.
3447 * tests/scanner/Fooe-expected.gir: Update to expect correct
3448 names for callbacks and structs.
3450 2008-08-12 Colin Walters <walters@verbum.org>
3452 * girepository/girparser.c: Handle 'any'.
3453 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3454 Add test for void *.
3456 2008-08-12 Colin Walters <walters@verbum.org>
3458 * giscanner/glibtransformer.py: We need to do type
3459 resolution in a second pass after we've seen all the
3460 enums, records, etc.
3462 2008-08-12 Colin Walters <walters@verbum.org>
3464 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3465 Add enum return value.
3466 * giscanner/glibtransformer.py: Transform function return types
3469 2008-08-12 Colin Walters <walters@verbum.org>
3471 * tests/scanner/Makefile.am: Dep .gir files on scanner
3472 sources too. Also remove @ so we see scanner invocations.
3474 2008-08-12 Colin Walters <walters@verbum.org>
3476 * girepository/girparser.c, girepository/gtypelib.c,
3477 girepository/gtypelib.h, girepository/girnode.c:
3478 Remove usage of (GAPI-oriented) TypeTag in favor of
3479 GITypeTag from girepository.h.
3481 2008-08-10 Colin Walters <walters@verbum.org>
3483 * tests/roundtrips.sh: Use the correct tests.
3485 2008-08-10 Colin Walters <walters@verbum.org>
3487 * giscanner/cgobject.py: Declare/wrap a few more functions.
3488 Fix parameter types for g_object_new and g_type_fundamental.
3490 2008-08-10 Colin Walters <walters@verbum.org>
3492 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3493 us to declare types for both return value and parameters. The
3494 ctypes default of 'int' is bad because it hides 32/64 bit
3495 problems. Convert all existing functions to use it.
3497 2008-08-09 Johan Dahlin <johan@gnome.org>
3499 * giscanner/__init__.py:
3501 * giscanner/cgobject.py:
3502 * giscanner/gidlparser.py:
3503 * giscanner/gidlwriter.py:
3504 * giscanner/girparser.py:
3505 * giscanner/girwriter.py:
3506 * giscanner/glibast.py:
3507 * giscanner/glibtransformer.py:
3508 * giscanner/odict.py:
3509 * giscanner/sourcescanner.py:
3510 * giscanner/transformer.py:
3511 * giscanner/utils.py:
3512 * giscanner/xmlwriter.py:
3513 * tools/g-ir-scanner:
3517 2008-08-09 Johan Dahlin <johan@gnome.org>
3520 * relaxng/c-types.xml:
3521 * relaxng/g-types.xml:
3522 * relaxng/relaxng.rng:
3524 Remove outdated relaxng schemas.
3526 2008-08-09 Johan Dahlin <johan@gnome.org>
3529 Rename metadata to typelib in variable names,
3532 2008-08-09 Johan Dahlin <johan@gnome.org>
3536 Remove old C scanner, which got rewritten in python.
3538 2008-08-09 Johan Dahlin <johan@gnome.org>
3540 * girepository/Makefile.am:
3541 * tools/Makefile.am:
3542 * tools/girmodule.c:
3543 * tools/girmodule.h:
3546 * tools/girparser.c:
3547 * tools/girparser.h:
3548 * tools/girwriter.c:
3549 * tools/girwriter.h:
3550 Move shared *.[ch] files to girepository from tools
3552 2008-08-09 Johan Dahlin <johan@gnome.org>
3554 * tests/Makefile.am:
3557 * tests/constant.test:
3559 * tests/errors.test:
3560 * tests/function.test:
3561 * tests/gobject.test:
3562 * tests/interface.test:
3563 * tests/object.test:
3564 * tests/struct.test:
3569 Rename *.test to *.gir
3571 2008-08-09 Johan Dahlin <johan@gnome.org>
3574 * tests/Makefile.am:
3575 * tests/parser/Foo-expected.gir:
3576 * tests/parser/Makefile.am:
3577 * tests/parser/foo-object.h:
3578 * tests/parser/foo.c:
3579 * tests/parser/utility-expected.gir:
3580 * tests/parser/utility.c:
3581 * tests/parser/utility.h:
3582 * tests/scanner/Makefile.am:
3583 Rename tests/parser to test/scanner
3585 2008-08-08 Colin Walters <walters@verbum.org>
3587 * tests/roundtrips.sh: Use local .gir files again.
3589 2008-08-08 Colin Walters <walters@verbum.org>
3591 * tests/invoke/Makefile.am: .gir file depends on libtool
3594 2008-08-08 Colin Walters <walters@verbum.org>
3596 * tools/girnode.c: Pass through parent node so we can
3597 print the node whose child is NULL, if that occurs.
3599 2008-08-08 Johan Dahlin <johan@gnome.org>
3601 * tests/Makefile.am:
3602 Disable roundtrip tests which are not yet working
3603 * tests/invoke/testfns.gir:
3606 2008-08-08 Johan Dahlin <johan@gnome.org>
3608 * giscanner/girwriter.py:
3610 * giscanner/glibast.py:
3611 * giscanner/glibtransformer.py:
3612 Swap order of members, to keep it consistent with
3615 2008-08-08 Johan Dahlin <johan@gnome.org>
3617 * girepository/gtypelib.c (validate_header):
3618 * girepository/gtypelib.h:
3620 * giscanner/girwriter.py:
3621 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3622 (gi_source_symbol_unref):
3625 * tests/constant.test:
3627 * tests/errors.test:
3628 * tests/function.test:
3629 * tests/gobject.test:
3630 * tests/interface.test:
3631 * tests/invoke/Makefile.am:
3632 * tests/invoke/testfns.xml:
3633 * tests/object.test:
3634 * tests/parser/Makefile.am:
3635 * tests/roundtrips.sh:
3636 * tests/struct.test:
3641 * tools/Makefile.am:
3642 * tools/compiler.c (main):
3643 * tools/generate.c (write_callable_info), (write_function_info),
3645 * tools/gidlmodule.c:
3646 * tools/gidlmodule.h:
3649 * tools/gidlparser.c:
3650 * tools/gidlparser.h:
3651 * tools/gidlwriter.c:
3652 * tools/gidlwriter.h:
3653 * tools/scanner.c (create_node_from_gtype),
3654 (create_node_from_ctype), (g_igenerator_process_properties),
3655 (g_igenerator_process_signals), (g_igenerator_create_object),
3656 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3657 (g_igenerator_create_enum), (g_igenerator_create_flags),
3658 (g_igenerator_process_function_symbol),
3659 (g_igenerator_process_unregistered_struct_typedef),
3660 (g_igenerator_process_struct_typedef),
3661 (g_igenerator_process_union_typedef),
3662 (g_igenerator_process_enum_typedef),
3663 (g_igenerator_process_function_typedef),
3664 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3665 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3666 Merge in the gir-compiler branch.
3667 Thanks to Philip and Colin for their help.
3669 2008-07-26 Colin Walters <walters@verbum.org>
3671 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3672 and g-idl-generate to go along with how we're changing this
3673 module to be installed.
3674 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3676 2008-07-24 Colin Walters <walters@verbum.org>
3678 * girepository/girepository.c (g_irepository_register): Add
3679 environment variable G_IREPOSITORY_VERBOSE so we can print
3680 out what we're doing.
3681 * girepository/girepository.c (g_irepository_register_file):
3682 Add GError error message to g_debug call.
3684 2008-07-08 Jürg Billeter <j@bitron.ch>
3686 * giscanner/glibast.py:
3690 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3692 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3695 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3698 * giscanner/girwriter.py:
3699 * giscanner/transformer.py:
3700 * tests/parser/Foo-expected.gir:
3701 * tests/parser/foo-object.h:
3702 * tests/parser/foo.c (foo_object_allow_none):
3703 Add support for gtk-doc annotations for allow-none.
3706 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3709 * giscanner/girwriter.py:
3710 * giscanner/glibast.py:
3711 * giscanner/glibtransformer.py:
3712 * giscanner/transformer.py:
3713 * tests/parser/Foo-expected.gir:
3714 Start using abstract type instead of the raw C types.
3715 Register a bunch of glib types we care about.
3717 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3722 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3724 * girepository/girepository.c:
3725 * girepository/gtypelib.c:
3726 * girepository/ginfo.c:
3727 * girepository/ginvoke.c:
3728 * girepository/girepository.h:
3729 * girepository/gtypelib.h:
3730 * girepository/gmetadata.c:
3731 * girepository/Makefile.am:
3732 * girepository/gmetadata.h:
3734 * tools/gidlmodule.c:
3737 * tools/gidlmodule.h:
3738 * tools/gidlparser.c:
3740 Renamed GMetadata to GTypelib
3742 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3744 * giscanner/xmlwriter.py:
3745 Improve line wrapping when > 79 charaters
3747 2008-06-05 Jürg Billeter <j@bitron.ch>
3750 * giscanner/girwriter.py:
3751 * giscanner/transformer.py:
3752 Use <type> element for field types
3753 * tests/parser/Foo-expected.gir:
3756 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3758 * giscanner/glibtransformer.py:
3759 Fix a bug which prevented GdkEvent from being generated
3761 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3763 * giscanner/Makefile.am:
3765 * giscanner/girwriter.py:
3766 * giscanner/glibast.py:
3767 * giscanner/glibtransformer.py:
3768 * giscanner/transformer.py:
3769 * giscanner/utils.py:
3770 * tests/parser/Foo-expected.gir:
3771 Improve enum member parsing and introspection
3773 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3775 * giscanner/scannerparser.y:
3776 * giscanner/sourcescanner.h:
3777 * giscanner/sourcescanner.py:
3778 Add a new source type enum for member.
3779 Use __repr__ for improved debugging
3780 * giscanner/girparser.py:
3782 * giscanner/transformer.py:
3783 Improve parsing of struct members.
3784 * tests/parser/foo-object.h:
3787 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3789 * giscanner/xmlwriter.py:
3790 Improve error reporting when trying to quote None.
3791 * giscanner/girparser.py:
3792 Do not print warnings when including more complete .gir files
3793 * giscanner/girwriter.py:
3794 Do not require a name for parameters, add a todo for singletons
3795 * giscanner/glibtransformer.py:
3796 Refactor the way structs are done, add a couple of hacks to allow
3798 * giscanner/transformer.py:
3799 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3800 * gobject-introspection-1.0.pc.in:
3801 Export girdir, so we can access gobject-2.0.gir from outside
3803 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3805 * tools/g-ir-scanner:
3806 * tests/parser/Makefile.am:
3807 Update sys.path before running the parser so we don't have
3808 to setup PYTHONPATH ourselves.
3812 * girepository/Makefile.am:
3813 * giscanner/transformer.py:
3814 * gobject-introspection-1.0.pc.in:
3815 * gobject-introspection.pc.in:
3816 * tools/Makefile.am:
3818 Rename pkg-config name to gobject-introspection-1.0,
3819 Do not installed anything which is not using the gir format.
3820 Disable compililation the old C scanner, but still keep the source
3821 until all the remaning functionallity has been ported.
3823 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3825 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3826 a crash when symbol->indent is NULL.
3828 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3829 a function to convert a CTYPE symbol to a string
3831 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3834 * giscanner/girwriter.py:
3835 * giscanner/giscannermodule.c
3836 (pygi_source_scanner_append_filename),
3837 (pygi_source_scanner_parse_file):
3838 * giscanner/glibtransformer.py:
3839 * giscanner/sourcescanner.py:
3840 Revert back to using temporary files to send in headers.
3841 Allow Functions to be passed in as callbacks, add a couple
3842 of try/excepts missing features.
3843 We can now scan pango
3845 2008-05-08 Johan Dahlin <johan@gnome.org>
3847 * giscanner/glibtransformer.py:
3848 * giscanner/transformer.py:
3849 Move namespace stripping glibtransformer->transformer
3851 2008-05-08 Johan Dahlin <johan@gnome.org>
3854 * giscanner/girwriter.py:
3855 * giscanner/glibtransformer.py:
3856 * giscanner/transformer.py:
3857 * tools/g-ir-scanner:
3858 Introduce a namespace ast node
3860 2008-05-05 Johan Dahlin <johan@gnome.org>
3862 * giscanner/__init__.py:
3863 * giscanner/sourcescanner.py:
3864 * giscanner/transformer.py:
3865 Move sourcescanner symbols to the sourcescanner module, instead
3866 of in the global __init__ namespace.
3868 2008-05-03 Johan Dahlin <johan@gnome.org>
3870 * giscanner/glibtransformer.py:
3871 * tools/g-ir-scanner:
3872 Handle missing parameters better, allow - and + in .la dlname
3875 2008-05-03 Johan Dahlin <johan@gnome.org>
3877 * giscanner/__init__.py:
3879 * giscanner/girwriter.py:
3880 * giscanner/glibtransformer.py:
3881 * giscanner/transformer.py:
3882 Parse struct fields properly, improve debugging.
3884 2008-04-29 Johan Dahlin <johan@gnome.org>
3887 * giscanner/girwriter.py:
3888 * giscanner/transformer.py:
3889 * tests/parser/Foo-expected.gir:
3891 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3893 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3896 * docs/g-ir-scanner.1:
3897 * metadata-annotations-proposal.txt:
3898 * metadata-format.txt:
3899 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3901 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3903 * giscanner/girwriter.py:
3904 * giscanner/glibtransformer.py:
3905 * giscanner/transformer.py:
3906 * giscanner/xmlwriter.py:
3907 * tests/parser/Foo-expected.gir:
3908 * tests/parser/foo-object.h:
3909 Write record/structs to gir file too. Add a couple of tests,
3910 fix an off by one error in xmlwriter.py.
3912 2008-04-28 Johan Dahlin <johan@gnome.org>
3914 * giscanner/xmlwriter.py: Calculate the line length properly,
3915 include the provided extra indentation in the calculation, really.
3917 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3920 * giscanner/glibast.py:
3921 * giscanner/glibtransformer.py:
3922 * giscanner/transformer.py:
3923 * tools/g-ir-scanner:
3924 Add a --strip-prefix and sort out confusion between names and symbols
3925 for functions and struct + derivaties.
3926 Refactor bootstrap of g-ir-scanner, so we can set options on
3927 Transformer() before parsing everything.
3929 2008-04-28 Johan Dahlin <johan@gnome.org>
3931 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3932 when scanning girepository.h
3934 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3935 a __GI_SCANNER__ when we run.
3937 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3940 * giscanner/girwriter.py:
3941 * giscanner/glibast.py:
3942 * giscanner/glibtransformer.py:
3943 * tests/parser/Foo-expected.gir:
3944 * tests/parser/utility-expected.gir:
3945 Rename most c:identifier to c:type. Add new ones to
3946 class/interface/enum/boxed.
3948 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3951 * giscanner/girwriter.py:
3952 * giscanner/glibtransformer.py:
3953 * tests/parser/Foo-expected.gidl:
3954 * tests/parser/Makefile.am:
3955 Move c:identifier from return-value to subchild type,
3956 as per Jürgs suggestion
3958 2008-04-28 Johan Dahlin <johan@gnome.org>
3960 * giscanner/girwriter.py:
3961 * tests/parser/Foo-expected.gir:
3962 Write property.type as a child node.
3964 2008-04-27 Johan Dahlin <johan@gnome.org>
3969 * gidl/gobject-2.0.gidl:
3971 * gir/gobject-2.0.gir:
3972 * tests/parser/Makefile.am:
3973 Replace the GObject gidl with a GObject gir.
3975 2008-04-27 Johan Dahlin <johan@gnome.org>
3977 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3980 * giscanner/xmlwriter.py:
3981 * tests/parser/Foo-expected.gir:
3982 Include indentation in line length calculation
3984 2008-04-27 Johan Dahlin <johan@gnome.org>
3986 * giscanner/girparser.py:
3987 Prettify NS parsing using elementtree.
3989 2008-04-27 Johan Dahlin <johan@gnome.org>
3992 * giscanner/Makefile.am:
3993 * giscanner/girparser.py:
3994 * giscanner/glibtransformer.py:
3995 * tests/parser/Foo-expected.gidl:
3996 * tests/parser/Foo-expected.gir:
3997 * tests/parser/Makefile.am:
3998 * tests/parser/utility-expected.gidl:
3999 * tests/parser/utility-expected.gir:
4000 * tools/g-ir-scanner:
4001 Switch over to GIR as the default format. Add a simple GIDL
4003 Update tests and fix simplify makefiles by depending
4004 on GNU make extensions.
4006 2008-04-27 Johan Dahlin <johan@gnome.org>
4008 * giscanner/xmlwriter.py:
4009 Wrap attributes for lines which are wider than 79 characters
4011 * giscanner/scannerlexer.l:
4012 Allow parenthesis in annotations
4015 * giscanner/gidlwriter.py:
4016 * giscanner/girwriter.py:
4017 * giscanner/glibtransformer.py:
4018 * giscanner/transformer.py:
4019 Add initial sequence support, including annotation.
4020 Refactor type handling a bit.
4022 2008-04-27 Johan Dahlin <johan@gnome.org>
4024 * tests/parser/Foo-expected.gidl:
4025 * tests/parser/foo-object.h:
4026 * tests/parser/foo.c (foo_object_class_init),
4027 (foo_object_get_strings), (foo_object_get_objects):
4028 Add two new functions to check sequence return values.
4029 Also fixes a compilation warning.
4031 2008-04-27 Johan Dahlin <johan@gnome.org>
4033 * giscanner/giscannermodule.c (]): Cast the getter, avoids
4034 a compilation warning.
4036 * tools/Makefile.am (g_ir_scanner_SOURCES):
4037 g-ir-scanner has no sources.
4039 2008-04-25 Johan Dahlin <johan@gnome.org>
4041 * giscanner/Makefile.am:
4043 * giscanner/gidlparser.py:
4044 * giscanner/gidlwriter.py:
4045 * giscanner/girwriter.py:
4046 * giscanner/glibast.py:
4047 * giscanner/glibtransformer.py:
4048 * giscanner/transformer.py:
4049 Split out nodes to ast.py and glibast.py
4051 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4053 * giscanner/Makefile.am:
4054 * giscanner/gidlparser.py:
4055 * giscanner/gidlwriter.py:
4056 * giscanner/girwriter.py:
4057 * giscanner/glibtransformer.py:
4058 * giscanner/gobjecttreebuilder.py:
4059 * giscanner/transformer.py:
4060 * giscanner/treebuilder.py:
4061 * tools/g-ir-scanner:
4062 Rename treebuilder to transformer and
4063 gobjectreebuilder to glibtransformer.
4065 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4067 * giscanner/Makefile.am:
4068 * giscanner/__init__.py:
4069 * giscanner/cgobject.py:
4070 * giscanner/gidlparser.py:
4071 * giscanner/gidlwriter.py:
4072 * giscanner/girwriter.py:
4073 * giscanner/gobjecttreebuilder.py:
4074 * giscanner/odict.py:
4075 * giscanner/sourcescanner.py:
4076 * giscanner/treebuilder.py:
4077 * giscanner/xmlwriter.py:
4078 * tools/Makefile.am:
4079 * tools/g-ir-scanner:
4080 Add LGPLv2 license header and install all python files
4082 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4085 * giscanner/gidlwriter.py:
4086 * giscanner/giscannermodule.c (pygi_source_directive_new),
4087 (directive_get_options), (pygi_source_symbol_new),
4088 (symbol_get_base_type), (pygi_source_type_new),
4089 (type_get_base_type), (type_get_child_list),
4090 (pygi_source_scanner_get_symbols),
4091 (pygi_source_scanner_get_directives):
4092 * giscanner/gobjecttreebuilder.py:
4093 * giscanner/sourcescanner.py:
4094 * giscanner/treebuilder.py:
4095 * tests/parser/foo-object.h:
4096 Add support for virtual methods.
4097 Pair struct FooClass with struct Foo.
4098 Clean up the SourceScanner bindings a bit.
4099 Add a testcase for virtual methods.
4101 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4103 * giscanner/cgobject.py:
4104 * giscanner/gidlwriter.py:
4105 * giscanner/gobjecttreebuilder.py:
4106 Add support for signals
4108 * tests/parser/foo.c (foo_object_class_init):
4109 * Foo-expected.gidl:
4110 Add a signal and update the expected output.
4112 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4114 * giscanner/gidlwriter.py:
4115 * giscanner/girwriter.py:
4116 * giscanner/giscannermodule.c (directive_get_name),
4117 (directive_get_value), (directive_get_options),
4118 (symbol_get_directives), (symbol_set_directives),
4119 (pygi_source_scanner_parse_file),
4120 (pygi_source_scanner_lex_filename),
4121 (pygi_source_scanner_get_directives), (init_giscanner):
4122 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4123 * giscanner/sourcescanner.h:
4124 * giscanner/sourcescanner.py:
4125 * giscanner/treebuilder.py:
4126 * tools/g-ir-scanner:
4127 Add support for source/header annotations.
4129 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4131 * giscanner/gidlwriter.py:
4132 * giscanner/girwriter.py:
4133 * giscanner/gobjecttreebuilder.py:
4134 * giscanner/treebuilder.py:
4135 Add support for Callbacks
4137 2008-04-22 Havoc Pennington <hp@pobox.com>
4139 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4140 not in metadata->module, look for it in the global module, in case
4141 some other object or the app itself provides the symbol.
4143 2008-04-22 Havoc Pennington <hp@pobox.com>
4145 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4146 dlopening a library that is already in the main app, by checking
4147 whether one of the lib's symbols is already loaded.
4149 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4151 * tests/parser/Foo-expected.gidl:
4152 * tests/parser/foo-object.h:
4155 2008-04-22 Havoc Pennington <hp@pobox.com>
4157 * girepository/ginfo.c (g_interface_info_find_method):
4158 Use interface_blob_size not object_blob_size to compute offset.
4160 2008-04-22 Havoc Pennington <hp@pobox.com>
4162 * girepository/gmetadata.c (_g_metadata_init): remove
4163 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4164 (Glade and Clutter for example) rely on being loaded globally.
4166 2008-04-22 Havoc Pennington <hp@pobox.com>
4168 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4169 function to get the GType given a RegisteredTypeInfo
4171 2008-04-22 Johan Dahlin <johan@gnome.org>
4173 * COPYING: Add a LGPL license, to prevent automake to
4174 put in a copy of GPL here. Pointed out by Havoc.
4176 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4177 (g_type_info_is_pointer), (g_type_info_get_tag),
4178 (g_type_info_get_param_type), (g_type_info_get_interface),
4179 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4180 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4181 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4182 (g_object_info_get_interface), (g_object_info_get_field),
4183 (g_interface_info_get_prerequisite),
4184 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4185 * girepository/ginvoke.c (get_ffi_type):
4186 * girepository/girepository.h:
4187 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4188 (g_metadata_check_sanity), (validate_header),
4189 (validate_array_type_blob), (validate_iface_type_blob),
4190 (validate_param_type_blob), (validate_error_type_blob),
4191 (validate_type_blob), (validate_constant_blob),
4192 (validate_struct_blob), (validate_enum_blob):
4193 * girepository/gmetadata.h:
4194 * tests/Makefile.am:
4195 * tests/invoke/Makefile.am:
4196 * tests/invoke/invoke.c (main):
4197 * tests/roundtrips.sh:
4198 * tools/Makefile.am:
4199 * tools/compiler.c (format_output), (write_out_metadata), (main):
4200 * tools/generate.c (write_type_name), (write_type_info),
4201 (write_constant_value), (write_enum_info), (load_metadata), (main):
4202 * tools/gidlcompilercontext.c:
4203 * tools/gidlcompilercontext.h:
4204 * tools/gidlcompilerentrynode.c:
4205 * tools/gidlcompilerentrynode.h:
4206 * tools/gidlcompilertypenode.c:
4207 * tools/gidlcompilertypenode.h:
4208 * tools/gidlmodule.c (g_idl_module_build_metadata):
4209 * tools/gidlmodule.h:
4210 * tools/gidlnode.c (init_stats), (dump_stats),
4211 (g_idl_node_get_size), (g_idl_node_get_full_size),
4212 (g_idl_node_cmp), (g_idl_node_can_have_member),
4213 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4214 (parse_int_value), (parse_uint_value), (parse_float_value),
4215 (parse_boolean_value), (find_entry_node), (find_entry),
4216 (serialize_type), (g_idl_node_build_metadata), (write_string):
4218 * tools/gidlparser.c (parse_type_internal):
4219 * tools/quote-file.sh:
4220 Revert revisions 157,149-148,136-129 and 120.
4221 Move back to using g-idl-generate to generate the metadata and
4222 avoids dependency on a c compiler.
4224 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4226 * giscanner/girwriter.py:
4227 * tools/g-ir-scanner:
4228 Add an initial GIR writer and a --format option to g-ir-scanner
4230 2008-04-21 Johan Dahlin <johan@gnome.org>
4232 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4233 gobject-2.0 and raise ImportError if not found.
4235 * giscanner/gidlparser.py:
4236 * giscanner/gidlwriter.py:
4237 * giscanner/gobjecttreebuilder.py:
4238 * tools/g-ir-scanner:
4239 Add a --include argument to include types from other idls.
4240 Add a minimalistic GIDL parser (just objects for now)
4241 Implement resolving of external type references and use it to
4242 resolve parent types, argument types and return types.
4244 2008-04-21 Johan Dahlin <johan@gnome.org>
4246 * giscanner/gidlwriter.py:
4247 * giscanner/gobjecttreebuilder.py:
4248 * giscanner/treebuilder.py:
4249 Add support for properties.
4250 Refactor Class/Interface support a bit, to share more code and
4251 always initialize their method attribute to an empty list.
4253 2008-04-21 Johan Dahlin <johan@gnome.org>
4255 * giscanner/cgobject.py:
4256 Add a workaround for a glib bug interface introspection bug
4257 (object_interface_list_properties, object_class_list_properties):
4258 Cast the return value to GParamSpec.
4260 * tests/parser/Foo-expected.gidl: Update
4261 * tests/parser/foo.c: Add a string property
4263 * giscanner/gobjecttreebuilder.py:
4264 After stripping namespaces, remove the original
4265 item to avoid duplication (GtkButton struct and Button object)
4267 2008-04-21 Johan Dahlin <johan@gnome.org>
4269 * giscanner/gobjecttreebuilder.py:
4270 * giscanner/treebuilder.py:
4271 Strip namespaces before objects, so we'll export
4272 GtkButton as Button in the gtk namespace
4274 2008-04-21 Johan Dahlin <johan@gnome.org>
4276 * giscanner/gidlwriter.py:
4277 * giscanner/gobjecttreebuilder.py:
4278 * giscanner/treebuilder.py:
4279 Add constructors for object/boxed types.
4281 2008-04-21 Johan Dahlin <johan@gnome.org>
4283 * giscanner/gidlwriter.py:
4284 * giscanner/gobjecttreebuilder.py:
4285 Add support for boxed types
4287 2008-04-21 Johan Dahlin <johan@gnome.org>
4289 * giscanner/giscannermodule.c: Mark structures as const,
4290 wrap SourceType.const_string.
4292 * tests/parser/foo-object.h: Add a couple of constants.
4294 * giscanner/gidlwriter.py:
4295 * giscanner/gobjecttreebuilder.py:
4296 * giscanner/treebuilder.py:
4297 Add basic support for interfaces
4299 * tools/g-ir-scanner:
4300 Add -o/--output for writing to a file
4302 2008-04-21 Havoc Pennington <hp@redhat.com>
4304 * TODO: add some C API wishlist items I could think of quickly
4306 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4308 * giscanner/gidlwriter.py:
4309 * giscanner/xmlwriter.py:
4310 Add a simple api for writing tags which can be used
4311 with the new 'with statement' in python 2.5
4313 2008-04-21 Johan Dahlin <johan@gnome.org>
4315 * giscanner/gobjecttreebuilder.py:
4316 Strip namespace and object prefix from method names.
4318 2008-04-21 Johan Dahlin <johan@gnome.org>
4320 * tools/g-ir-scanner (main): Add --pkg option to pass in
4321 pkg-config modules to get cflags from.
4323 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4324 Avoid duplication, reuse function writer for methods.
4326 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4328 * giscanner/gidlwriter.py:
4329 * giscanner/gobjecttreebuilder.py:
4330 * giscanner/treebuilder.py:
4331 * tools/g-ir-scanner:
4332 Resolve libtool .la files.
4333 Strip name spaces for methods.
4334 Add function symbols
4336 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4338 * giscanner/cgobject.py:
4339 * giscanner/gidlwriter.py:
4340 * giscanner/gobjecttreebuilder.py:
4341 * giscanner/treebuilder.py:
4342 Add support for classes and methods
4344 2008-04-20 Johan Dahlin <johan@gnome.org>
4346 * giscanner/gidlwriter.py:
4347 * giscanner/gobjecttreebuilder.py:
4348 * giscanner/odict.py:
4349 Avoid conflicts, keep the output ordered similar to
4350 the order of the input.
4351 Add a simple ordered dictionary implemenation
4353 2008-04-19 Johan Dahlin <johan@gnome.org>
4355 * giscanner/cgobject.py:
4356 * giscanner/gidlwriter.py:
4357 * giscanner/gobjecttreebuilder.py:
4358 * tools/g-ir-scanner:
4359 Start introspecting get-type functions.
4360 Implement support for GLib/GFlags GTypes.
4361 Add a ctype based GObject binding.
4363 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4365 * giscanner/gidlwriter.py:
4366 * giscanner/xmlwriter.py:
4367 * tools/g-ir-scanner:
4368 Add a simplistic gidl writer, which can't do too much.
4370 2008-04-18 Johan Dahlin <johan@gnome.org>
4372 * giscanner/sourcescanner.py:
4373 * giscanner/treebuilder.py:
4374 * tools/g-ir-scanner:
4375 split tree building and source scanning interface to separate files.
4377 2008-04-18 Johan Dahlin <johan@gnome.org>
4379 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4381 - Add support for struct/parameter/return, start parsing of ctypes
4383 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4386 2008-03-31 Johan Dahlin <johan@gnome.org>
4388 * tools/g-ir-scanner:
4389 Start to build abstract syntax node of scanned sources.
4390 Add support for cpp options.
4392 2008-03-27 Johan Dahlin <johan@gnome.org>
4394 * giscanner/giscannermodule.c:
4395 * giscanner/scannerlexer.l:
4396 * giscanner/sourcescanner.c:
4397 * tools/g-ir-scanner:
4399 Add simple pre-processor using subprocess and a PIPE.
4400 Change the parse_file apis to accept a file descriptor.
4402 2008-03-25 Johan Dahlin <johan@gnome.org>
4404 * giscanner/__init__.py:
4405 * tools/g-ir-scanner:
4406 Fix a typo and add an example python test program.
4408 2008-03-25 Johan Dahlin <johan@gnome.org>
4410 * giscanner/__init__.py:
4411 * giscanner/giscannermodule.c:
4412 * giscanner/sourcescanner.c:
4413 * giscanner/sourcescanner.h:
4414 Add constants and wrap a few more SymbolType fields
4416 2008-03-25 Johan Dahlin <johan@gnome.org>
4420 * giscanner/__init__.py:
4421 * giscanner/giscannermodule.c:
4422 * giscanner/Makefile.am:
4424 Add initial python bindings for the scanner and
4425 depend on python 2.5.
4427 2008-03-25 Johan Dahlin <johan@gnome.org>
4431 * giscanner/Makefile.am:
4432 * giscanner/sourcescanner.c:
4433 * giscanner/sourcescanner.h:
4434 * tools/Makefile.am:
4435 * tools/grealpath.h:
4436 * tools/sourcescanner.c:
4437 * tools/sourcescanner.h:
4439 Move the scanner to a separate library.
4441 2008-03-23 Johan Dahlin <johan@gnome.org>
4443 * tools/Makefile.am:
4446 * tools/scannerlexer.l:
4447 * tools/scannerparser.y:
4448 * tools/sourcescanner.c:
4449 * tools/sourcescanner.h:
4450 Split out the source scanner from the generator.
4451 Rename the symbols used in the scanner to use the gi_ prefix.
4452 This should make it possible to use the raw C parser from
4455 2008-03-23 Johan Dahlin <johan@gnome.org>
4457 * tests/parser/Makefile.am (utility.gidl):
4458 * tests/parser/utility-expected.gidl:
4459 Pass in the gobject.gidl since we're defining a GObject.
4461 2008-03-12 Johan Dahlin <johan@gnome.org>
4463 * relaxng/relaxng.rng:
4464 Add a releaxng in relaxng we can use to validate the relaxngs
4467 2008-03-12 Jürg Billeter <j@bitron.ch>
4469 * tools/scanner.c: (g_igenerator_new):
4470 * tools/scannerparser.y:
4471 Fix compiler warnings.
4473 2008-03-12 Jürg Billeter <j@bitron.ch>
4477 * tools/scannerparser.y:
4478 Start fixing memory management in g-idl-scanner.
4480 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4482 * tools/gidlcompilercontext.c: (write_compiled):
4483 Fix critical warning when no shlib passed to g-idl-compiler.
4485 2008-03-12 Johan Dahlin <johan@gnome.org>
4487 * tests/parser/utility-expected.gidl:
4488 * tests/parser/utility.h:
4489 Add a get_type-function, so the scanner actually
4490 parses it as an object.
4492 2008-03-12 Johan Dahlin <johan@gnome.org>
4494 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4497 * tests/parser/Foo-expected.gidl:
4498 * tests/parser/Makefile.am:
4499 * tests/parser/foo-object.h:
4500 * tests/parser/foo.c:
4501 * tests/parser/utility-expected.gidl:
4502 * tests/parser/utility.c:
4503 * tests/parser/utility.h:
4505 Add a new gidl test. 'utility.gidl', which is used to be able
4506 to test external type references. Add a reference to UtilityObject*
4509 2008-03-11 Johan Dahlin <johan@gnome.org>
4513 Remove most global variables
4515 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4517 * tools/scannerlexer.l:
4519 * tests/parser/Foo-expected.gidl:
4520 * tests/parser/foo.c:
4521 * tests/parser/Makefile.am:
4522 * tests/parser/foo-object.h:
4524 Added a few extra tests. Which resulted in finding a few
4525 bugs. Which resulted in me fixing those bugs
4527 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4529 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4530 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4531 Add some comments for strings into generated output for
4534 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4536 * tools/gidlcompilercontext.c: (write_compiled):
4537 Write out the shlibs variable before writing out the strings
4538 length. Fixes compiler warning when using '-l' flag with
4541 2008-03-11 Johan Dahlin <johan@gnome.org>
4543 * tests/parser/Foo-expected.gidl:
4544 * tests/parser/foo-object.h:
4547 * tools/scannerlexer.l:
4548 Add support for parsing return arguments. Add support for
4549 caller-owns return types.
4550 Patch by Philip Van Hoof.
4552 * tools/scannerparser.y:
4553 Remove parsing of the @deprecated syntax used in headers.
4554 We will support gtk-doc deprecation in the future instead.
4556 2008-03-11 Johan Dahlin <johan@gnome.org>
4558 * tools/compiler.c (main): Coding style fixes
4560 2008-03-10 Johan Dahlin <johan@gnome.org>
4563 Add GCOV_LIBS to GILIBS
4565 2008-03-10 Johan Dahlin <johan@gnome.org>
4567 * tests/parser/Foo-expected.gidl:
4568 * tests/parser/foo.c:
4569 Rename null-ok to direction=out
4571 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4573 reviewed and extensively tested by Johan
4575 * tests/parser/Foo-expected.gidl:
4576 * tests/parser/foo-object.h:
4577 * tests/parser/foo.c:
4580 * tools/gidlwriter.c:
4583 * tools/scannerlexer.l:
4584 * tools/scannerparser.y:
4586 Add support for scanning for gtk-doc comments inside
4587 C source files. Add tests
4589 2008-03-10 Johan Dahlin <johan@gnome.org>
4591 * tests/parser/Makefile.am:
4592 * tests/parser/foo.c:
4595 * tools/scannerparser.y:
4596 Add an api to lex filenames.
4597 Lex all source .c files passed in on the command line.
4598 Scan sources in a test and a couple of private structures
4599 which should not be included in the generated gidl
4601 2008-03-10 Johan Dahlin <johan@gnome.org>
4603 * tests/invoke/Makefile.am: Make the generated metadata
4604 depend on the g-idl-compiler
4606 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4608 * tools/gidlmodule.c
4609 * tools/gidlmodule.h
4612 Remove the old g-idl-compiler code.
4615 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4617 * tools/quote-file.sh
4620 Move to using the 'C' struct compiler code.
4622 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4624 * girepository/ginfo.c
4626 Change the way that external references with no namespace
4627 are dealt with. External references with no namespace
4628 are placed into the XML as-if they are a local reference.
4629 This is temporary, but helps with roundtrip tests.
4631 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4633 * girepository/ginfo.c
4634 Add the ability to get the value of a constant of
4635 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4636 is provided as a string.
4638 This would deal properly with:
4639 typedef char* random;
4640 const random = "A string";
4642 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4644 * girepository/ginfo.c
4645 * girepository/girepository.h
4647 Add a function to check if an enum is registered or not.
4648 Previously anything testing this relied on the g-type
4649 string offset having a value of 0.
4651 * girepository/gmetadata.c
4652 * girepository/gmetadata.h
4654 Remove unneccesary or erroneous checks. There were two
4655 metadata validation checks which made sure that the blob
4656 sizes were the same as some magic numbers compiled into the code.
4657 This is wrong as it breaks any forwards compatibility that may
4660 Checks were also present that made sure that unregistered type
4661 blobs had a value of 0 in the g-type offset field. This is
4662 unneccessary. If a type blob is unregistered then any value
4663 in its g-type field is simply invalid.
4665 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4667 * girepository/ginfo.c
4668 * girepository/gmetadata.c
4669 * girepository/gmetadata.h
4671 Change the metadata format to have a standard header
4672 for all the type blobs. Merge the SimpleTypeBlob
4673 and InterfaceTypeBlob into a union. A union of these
4674 two blobs existed previously but was not explicit
4675 in the metadata format.
4677 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4679 * tools/gidlcompilercontext.c
4680 * tools/gidlcompilercontext.h
4681 * tools/gidlcompilerentrynode.c
4682 * tools/gidlcompilerentrynode.h
4683 * tools/gidlcompilertypenode.c
4684 * tools/gidlcompilertypenode.h
4686 Add code to compile a tree of GIdlNodes to
4687 a 'C' struct representing the metadata.
4688 This is to aid cross-compiling. Previously
4689 the g-idl-compiler created a binary blob with
4690 data written in the byte order and alignment
4691 of the tool rather than the intended target.
4693 Cleaned up and improved by Johan and Robert :-)
4695 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4697 * girepository/ginvoke.c
4698 * girepository/girepository.h
4699 * girepository/gmetadata.c
4700 * girepository/gmetadata.h
4702 * tools/gidlparser.c
4703 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4704 to avoid confusion with the interface blob.
4707 * tools/gidlparser.c
4708 Remove magic numbers and replace with type-tag
4709 enumeration symbols.
4711 * girepository/gmetadata.c
4712 Add validate declaration.
4714 2008-03-10 Jürg Billeter <j@bitron.ch>
4716 * tools/gidlparser.c: (parse_type_internal):
4717 * tools/scannerlexer.l:
4718 * tools/scannerparser.y:
4719 Support C99 _Bool type in scanner.
4721 2008-03-10 Jürg Billeter <j@bitron.ch>
4723 * tests/parser/Foo-expected.gidl:
4724 * tests/parser/foo-object.h:
4725 * tests/parser/foo.c: (foo_enum_method):
4726 * tools/scanner.c: (g_igenerator_process_function_symbol):
4727 Don't skip functions that are defined in the namespace of a type
4728 that doesn't support methods, as for example enums.
4730 2008-03-10 Johan Dahlin <johan@gnome.org>
4732 * gidl.dtd: Remove, we're using relaxng for now
4734 * tests/parser/Foo-expected.gidl:
4735 * tests/parser/foo-object.h:
4736 * tests/parser/foo.c:
4737 Rename the enum/flags get_type functions to include the whole type.
4739 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4741 * tools/gidlwriter.c (enum_generate): added "type-name",
4742 "get-type" and "deprecated" missing arguments.
4743 * tests/parser/Foo-expected.gidl:
4744 * tests/parser/foo-object.h: test enum type, and no type.
4746 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4749 Consistent checks, add missing 'test'
4751 2008-03-05 Havoc Pennington <hp@redhat.com>
4753 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4754 does on Fedora 8. Make libffi a hard requirement, since it was in
4755 practice anyway (was not really conditional in the code or
4756 makefile, only in configure).
4758 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4760 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4761 reviewed by: Johan Dahlin <johan@gnome.org>
4763 * tests/Makefile.am:
4764 * tests/roundtrips.sh:
4765 Modify the roundtrips test so that they do not use the
4766 --raw option of the gidl compiler but instead compile a
4767 shared library to use with g_module.
4769 * tests/invoke/Makefile.am:
4770 * tests/invoke/invoke.c:
4771 Modify the invoke tests to build a shared library rather
4772 than use the --raw option.
4774 * tests/invoke/invoke-namespace-find.sh: Removed:
4775 Noone knows why this was here, so removed.
4777 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4779 * tools/scanner.c: (g_igenerator_process_function_symbol):
4780 Move g_idl_node_can_have_member test later, as it broke spotting
4781 get_type's for nodes that can't have members.
4783 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4786 * tools/gidlnode.c: (g_idl_node_can_have_member):
4787 Add g_idl_node_can_have_member.
4789 * tools/scanner.c: (g_igenerator_process_function_symbol):
4790 Use g_idl_node_can_have_member to test if we should add a function
4791 as a member of the type node.
4793 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4795 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4797 * tests/parser/Makefile.am:
4798 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4800 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4802 * tools/scanner.c: (main):
4803 Ignore -pthread when passed to g-idl-scanner.
4805 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4807 * tools/grealpath.h: Added:
4808 * tools/scanner.c: (main):
4809 * tools/scannerlexer.l:
4810 * tools/Makefile.am:
4811 Always use absolute paths with symbolic links resolved when
4812 comparing filenames.
4814 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4816 * gobject-introspection.pc.in:
4817 Provide variables for g-idl-parser, scanner and compiler in the
4820 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4823 * girepository/Makefile.am:
4824 * tools/Makefile.am:
4825 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4827 2008-02-10 Johan Dahlin <johan@gnome.org>
4829 * tests/parser/Foo-expected.gidl:
4830 * tests/parser/foo-object.h:
4831 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4832 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4835 2008-02-10 Johan Dahlin <johan@gnome.org>
4837 * tests/parser/Foo-expected.gidl:
4838 * tests/parser/foo-object.h:
4839 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4840 Add enum and flags test.
4842 2008-02-10 Johan Dahlin <johan@gnome.org>
4846 * girepository/Makefile.am:
4847 Make 'make distcheck' work again.
4849 2008-02-10 Johan Dahlin <johan@gnome.org>
4851 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4854 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4855 check, eg exclude it from BUILT_SOURCES.
4857 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4862 * girepository/Makefile.am:
4863 * m4/Makefile.am: Added:
4864 * m4/as-compiler-flag.m4: Added:
4865 * m4/gcov.m4: Added:
4866 * tools/Makefile.am:
4867 Add ability to generate a coverage report.
4868 Adds configure option --enable-gcov and make rule 'check-coverage'.
4870 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4874 * gidl/Makefile.am: Added:
4875 * girepository/Makefile.am: Added:
4876 * src/Makefile.am: Renamed to tools/Makefile.am:
4877 * src/compiler.c: Renamed to tools/compiler.c:
4878 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4879 * src/generate.c: Renamed to tools/generate.c:
4880 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4881 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4882 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4883 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4884 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4885 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4886 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4887 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4888 * src/ginfo.c: Renamed to girepository/ginfo.c:
4889 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4890 * src/girepository.c: Renamed to girepository/girepository.c:
4891 * src/girepository.h: Renamed to girepository/girepository.h:
4892 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4893 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4894 * src/scanner.c: Renamed to tools/scanner.c:
4895 * src/scanner.h: Renamed to tools/scanner.h:
4896 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4897 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4898 * tests/invoke/Makefile.am:
4899 Split src/ into girepository/ and tools/
4903 * girepository/Makefile.am:
4904 * tests/Makefile.am:
4905 * tests/invoke/Makefile.am:
4906 * tests/parser/Makefile.am:
4907 * tests/roundtrips.sh:
4908 * tools/Makefile.am:
4909 Make distcheck work.
4911 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4913 * tests/invoke/invoke.c: (main):
4914 * tests/invoke/testfns.c: (test6), (test7):
4915 * tests/invoke/testfns.xml:
4916 Add tests for invokation with a GList argument.
4917 Also tests caller-owns return values.
4919 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4922 Add some documentation for GICallableInfo
4924 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4927 Correct syntax errors in the DTD file.
4929 * relaxng/c-types.xml:
4930 * relaxng/g-types.xml:
4932 Add a RelaxNG specification for the GObject Introspection XML data.
4933 The Specification has validated all of the test files.
4935 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4937 * tests/roundtrips.sh:
4938 * tests/struct.test:
4939 Add roundtrip tests for structs.
4941 2008-01-11 Johan Dahlin <johan@gnome.org>
4943 * src/scanner.c (g_igenerator_process_function_symbol):
4944 Refactor out g_idle_node_add_member.
4945 (create_node_from_gtype, create_node_from_ctype):
4946 Use case instead of if...else
4947 (get_type_from_type_id):
4948 Rename to create_node_from_gtype
4949 (get_type_from_ctype):
4950 Rename to create_node_from_ctype
4952 Rename ginode -> node, gitype -> type, gifunc -> func.
4954 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4955 Two new functions, refactor out of scanner.c
4957 * src/scanner.c: (g_igenerator_process_function_symbol):
4958 * src/scannerlexer.l:
4959 Do not save the content of the deprecated variable, only
4962 2008-01-11 Johan Dahlin <johan@gnome.org>
4964 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4966 2008-01-11 Jürg Billeter <j@bitron.ch>
4968 * src/scannerlexer.l:
4969 Fix GTK-Doc parsing.
4971 2008-01-11 Jürg Billeter <j@bitron.ch>
4973 * src/scannerlexer.l:
4974 Fix GTK-Doc parsing.
4976 2008-01-11 Jürg Billeter <j@bitron.ch>
4978 * src/scanner.c: (lookup_symbol):
4979 Return unresolved name if we find unknown symbol.
4981 2008-01-11 Jürg Billeter <j@bitron.ch>
4983 * src/scanner.c: (g_igenerator_generate):
4984 Initialize GObject to fix scanning interface properties.
4986 * tests/parser/Foo-expected.gidl:
4987 * tests/parser/foo-object.h:
4988 * tests/parser/foo.c: (foo_interface_get_type):
4989 Test interfaces with GObject prerequisite.
4991 * tests/parser/Makefile.am:
4992 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4994 2007-12-27 Johan Dahlin <johan@gnome.org>
4996 * src/scannerlexer.l:
4997 Parse gtk-doc comments.
4999 * src/gidlwriter.c: (function_generate):
5000 Reorganize, avoid duplication and add support for
5001 writing deprecated functions.
5003 * src/scannerparser.y:
5005 Add new structure CDirective and functions to create/free them.
5007 * src/scanner.c: (g_igenerator_process_function_symbol),
5008 (g_igenerator_process_unregistered_struct_typedef),
5009 (g_igenerator_process_struct_typedef),
5010 (g_igenerator_process_union_typedef),
5011 (g_igenerator_process_enum_typedef),
5012 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
5013 (g_igenerator_start_preprocessor):
5014 Parse @deprecated directive for functions.
5015 Remove some more C99isms.
5016 Send in -C to cpp to avoid stripping comments.
5018 * tests/parser/foo-object.h:
5019 * tests/parser/Foo-expected.gidl:
5020 Add deprecated directive
5022 2007-12-27 Johan Dahlin <johan@gnome.org>
5024 * src/scannerlexer.l (intsuffix): Add emacs mode line and
5025 escape ' and " so it looks more like C.
5028 Unlink temporary file used.
5030 2007-12-27 Johan Dahlin <johan@gnome.org>
5032 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
5033 (g_igenerator_start_preprocessor), (main):
5035 * src/scannerparser.y:
5036 Plug a couple of simple memory leaks.
5038 2007-12-27 Johan Dahlin <johan@gnome.org>
5040 * src/scanner.c: (g_igenerator_parse_macros),
5041 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
5044 * src/scannerparser.y:
5045 * tests/parser/Makefile.am:
5047 Improve error reporting, return when the preprocessor fails.
5048 Add a verbose parameter, to aid debugging.
5049 Revert to using a temporary file to communicate between the
5050 preprocessor and the parser, because we need to wait for
5051 the exit code from the pre-processor before starting to parse.
5053 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
5055 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
5056 cparser.y to scannerparser.y
5058 2007-12-11 Johan Dahlin <johan@gnome.org>
5062 * src/scanner.c: (g_igenerator_new):
5064 Get rid of the global the_generator variable.
5066 2007-12-10 Johan Dahlin <johan@gnome.org>
5068 * src/scanner.c (main): Add an output option,
5069 add checks for required parameters
5072 set BUILD_SOURCES and CLEANFILES properly
5074 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5075 (g_writer_write_indent), (g_writer_write_unindent),
5076 (field_generate), (value_generate), (constant_generate),
5077 (property_generate), (function_generate), (vfunc_generate),
5078 (signal_generate), (interface_generate), (struct_generate),
5079 (union_generate), (boxed_generate), (enum_generate),
5080 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5082 * src/scanner.c: (g_igenerator_generate):
5084 * src/scannerwriter.c:
5086 Refactor scannerwriter to only be tied to a GIdlModule and move
5087 it (again!) to gidlwriter.c. Change the writer function to take
5090 2007-12-10 Johan Dahlin <johan@gnome.org>
5093 * src/scanner.c: (g_igenerator_generate):
5095 * src/scannerwriter.c: (g_igenerator_write_inline),
5096 (g_igenerator_write), (g_igenerator_write_indent),
5097 (g_igenerator_write_unindent), (field_generate), (value_generate),
5098 (constant_generate), (property_generate), (function_generate),
5099 (vfunc_generate), (signal_generate), (interface_generate),
5100 (struct_generate), (union_generate), (boxed_generate),
5101 (enum_generate), (node_generate), (module_generate),
5102 (g_scanner_write_file):
5104 Move the scanner gidl writing to a separate source file.
5106 2007-12-10 Johan Dahlin <johan@gnome.org>
5111 Move over all CType construction functions.
5113 * tests/parser/Makefile.am:
5114 Be verbose when printing parsing tests results.
5116 2007-12-10 Johan Dahlin <johan@gnome.org>
5118 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5119 preprocessor handling to here. Start cpp insteado of cc -E,
5120 always include -U__GNUC__, since it's specific to the preprocessor
5123 * tests/parser/Makefile.am (check-local): Silent diff and skip
5124 -U__GNUC__ which is always defined now
5126 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5128 reviewed by: <delete if not using a buddy>
5130 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5131 * tests/parser/Makefile.am:
5133 2007-12-09 Johan Dahlin <johan@gnome.org>
5136 Use GOption for command line options.
5137 (g_igenerator_new, main): Simplify constructor and they way
5138 parameters are passed into it.
5144 * src/gen-introspect.c:
5145 * src/gen-introspect.h:
5147 Rename gen-introspect.[ch] to scanner.[ch]
5149 2007-12-09 Johan Dahlin <johan@gnome.org>
5153 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5154 don't make the repository library and the other utilites link against
5157 * src/gen-introspect.c: (g_igenerator_create_object),
5158 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5159 (g_igenerator_create_enum), (g_igenerator_create_flags),
5160 (g_igenerator_process_module_symbol),
5161 (g_igenerator_process_module), (g_igenerator_generate), (main):
5162 * src/gen-introspect.h:
5163 Refactor g_igenerator_process_types into smaller pieces.
5165 * tests/parser/Makefile.am:
5166 Depend on the gen-introspect binary
5168 2007-12-09 Johan Dahlin <johan@gnome.org>
5170 * src/gen-introspect.c (g_igenerator_process_types):
5171 Break into smaller pieces, one for each generated node type.
5173 2007-12-08 Johan Dahlin <johan@gnome.org>
5175 * src/gen-introspect.c: (g_igenerator_process_types),
5176 (g_igenerator_add_module):
5177 * tests/parser/Foo-expected.gidl:
5178 * tests/parser/foo-object.h:
5179 * tests/parser/foo.c: (foo_subobject_class_init),
5180 (foo_subobject_init):
5182 Add a subobject test and make sure to register defined classes
5183 in the lookup symbol hash table.
5185 2007-12-08 Johan Dahlin <johan@gnome.org>
5189 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5190 (g_igenerator_process_types), (g_igenerator_add_module),
5191 (g_igenerator_add_include_idl), (main):
5192 * src/gen-introspect.h:
5193 * tests/parser/Makefile.am:
5194 * tests/parser/Foo-expected.gidl:
5196 Change the gen-introspect to generate namespaced module names,
5197 such as GLib.Object instead of GObject.
5198 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5199 add a --include-idl parameter to gen-introspect,
5200 and update the parser test.
5202 2007-12-08 Johan Dahlin <johan@gnome.org>
5204 * src/gen-introspect.c:
5205 Move main to the end of the file and attempt to make it valid
5208 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5209 we're not quite ready to generate metadata yet.
5214 Add a simple gen-introspect parser test
5216 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5218 reviewed by: Johan Dahlin <johan@gnome.org>
5221 * gobject-introspection.pc.in:
5223 * src/compiler.c: (format_output), (write_out_metadata), (main):
5224 * src/gen-introspect.c: (main):
5225 * src/gen-introspect.h:
5226 * src/generate.c: (write_callable_info), (write_repository),
5227 (load_metadata), (main):
5228 * src/gidlmodule.c: (g_idl_module_new),
5229 (g_idl_module_build_metadata):
5231 * src/gidlparser.c: (start_element_handler):
5232 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5233 (g_base_info_get_name), (g_base_info_get_namespace),
5234 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5235 (g_base_info_get_metadata), (g_function_info_get_symbol),
5236 (g_function_info_get_flags), (g_function_info_get_property),
5237 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5238 (g_callable_info_may_return_null),
5239 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5240 (g_callable_info_get_arg), (g_arg_info_get_direction),
5241 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5242 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5243 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5244 (g_type_info_get_tag), (g_type_info_get_param_type),
5245 (g_type_info_get_interface), (g_type_info_get_array_length),
5246 (g_type_info_is_zero_terminated),
5247 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5248 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5249 (g_value_info_get_value), (g_field_info_get_flags),
5250 (g_field_info_get_size), (g_field_info_get_offset),
5251 (g_registered_type_info_get_type_name),
5252 (g_registered_type_info_get_type_init),
5253 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5254 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5255 (find_method), (g_struct_info_find_method),
5256 (g_enum_info_get_n_values), (g_enum_info_get_value),
5257 (g_object_info_get_parent), (g_object_info_get_type_name),
5258 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5259 (g_object_info_get_interface), (g_object_info_get_n_fields),
5260 (g_object_info_get_field), (g_object_info_get_n_properties),
5261 (g_object_info_get_property), (g_object_info_get_n_methods),
5262 (g_object_info_get_method), (g_object_info_find_method),
5263 (g_object_info_get_n_signals), (g_object_info_get_signal),
5264 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5265 (g_object_info_get_n_constants), (g_object_info_get_constant),
5266 (g_interface_info_get_n_prerequisites),
5267 (g_interface_info_get_prerequisite),
5268 (g_interface_info_get_n_properties),
5269 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5270 (g_interface_info_get_method), (g_interface_info_find_method),
5271 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5272 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5273 (g_interface_info_get_n_constants),
5274 (g_interface_info_get_constant), (g_property_info_get_flags),
5275 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5276 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5277 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5278 (g_constant_info_get_value), (g_union_info_get_n_fields),
5279 (g_union_info_get_field), (g_union_info_get_n_methods),
5280 (g_union_info_get_method), (g_union_info_is_discriminated),
5281 (g_union_info_get_discriminator_offset),
5282 (g_union_info_get_discriminator):
5283 * src/ginvoke.c: (g_function_info_invoke):
5284 * src/girepository.c: (g_irepository_register),
5285 (g_irepository_unregister), (g_irepository_get_default),
5286 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5287 (g_irepository_get_info), (g_irepository_find_by_name),
5288 (g_irepository_get_shared_library),
5289 (g_irepository_build_search_path), (g_irepository_register_file),
5290 (g_irepository_error_quark):
5291 * src/girepository.h:
5292 * src/gmetadata.c: (g_metadata_get_dir_entry),
5293 (g_metadata_check_sanity), (validate_header),
5294 (validate_array_type_blob), (validate_iface_type_blob),
5295 (validate_param_type_blob), (validate_error_type_blob),
5296 (validate_type_blob), (validate_arg_blob),
5297 (validate_signature_blob), (validate_function_blob),
5298 (validate_callback_blob), (validate_constant_blob),
5299 (validate_value_blob), (validate_field_blob),
5300 (validate_property_blob), (validate_signal_blob),
5301 (validate_vfunc_blob), (validate_struct_blob),
5302 (validate_enum_blob), (validate_object_blob),
5303 (validate_interface_blob), (validate_errordomain_blob),
5304 (validate_union_blob), (validate_blob), (validate_directory),
5305 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5306 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5307 (g_metadata_new_from_mapped_file), (g_metadata_free),
5308 (g_metadata_set_module), (g_metadata_get_namespace):
5310 * tests/Makefile.am:
5311 * tests/invoke/Makefile.am:
5312 * tests/invoke/invoke-namespace-find.sh:
5313 * tests/invoke/invoke.c: (main):
5315 Add a namespace/shared library mapping. fixes #313268.
5317 2007-12-03 Johan Dahlin <johan@gnome.org>
5319 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5322 2007-11-30 Jürg Billeter <j@bitron.ch>
5328 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5329 (g_igenerator_write_inline), (g_igenerator_write),
5330 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5331 (field_generate), (value_generate), (constant_generate),
5332 (property_generate), (function_generate), (vfunc_generate),
5333 (signal_generate), (interface_generate), (struct_generate),
5334 (union_generate), (boxed_generate), (enum_generate),
5335 (node_generate), (module_generate), (get_type_from_type_id),
5336 (str_replace), (g_igenerator_process_properties),
5337 (g_igenerator_process_signals), (g_igenerator_process_types),
5338 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5339 (g_igenerator_process_unregistered_struct_typedef),
5340 (g_igenerator_process_struct_typedef),
5341 (g_igenerator_process_union_typedef),
5342 (g_igenerator_process_enum_typedef),
5343 (g_igenerator_process_function_typedef),
5344 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5345 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5346 (g_igenerator_generate), (main), (csymbol_new),
5347 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5348 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5349 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5350 (eat_hspace), (eat_line), (read_identifier),
5351 (g_igenerator_parse_macros):
5352 * src/gen-introspect.h:
5354 Import gen-introspect to generate introspection information by
5357 2007-11-30 Jürg Billeter <j@bitron.ch>
5359 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5361 2007-11-30 Jürg Billeter <j@bitron.ch>
5363 * src/gidlparser.c: (end_element_handler): Don't leave requires
5366 2007-11-29 Johan Dahlin <johan@gnome.org>
5368 * src/gidlparser.c (parse_type_internal): Add char,
5369 gchar and guchar to the builtin types.
5371 2007-11-26 Johan Dahlin <johan@gnome.org>
5373 * src/ginfo.c: (g_object_info_get_type_name),
5374 (g_object_info_get_type_init):
5375 * src/girepository.c: (g_irepository_is_registered):
5376 * src/girepository.h:
5378 Add g_object_info_get_type_name, g_object_info_get_type_init and
5379 g_irepository_is_registered.
5381 2006-08-14 Jürg Billeter <j@bitron.ch>
5383 * src/gidlparser.c: (end_element_handler): Don't leave
5384 namespace and implements states too early.
5387 2007-11-26 Johan Dahlin <johan@gnome.org>
5389 * src/gmetadata.c (validate_struct_blob):
5390 pass blob_type to validate_function_blob instead of
5391 hard-coding BLOB_TYPE_STRUCT.
5393 Patch by Torsten Schoenfeld, fixes #314190
5395 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5397 * src/compiler.c, src/generate.c, src/gidlnode.c,
5398 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5399 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5400 warnings about return values, signedness mismatches, unused
5401 variables, and unhandles enum values in switch statements.
5403 * tests/invoke/Makefile.am: Don't install the invoke test program.
5404 Add -I ../../src to the cflags used for the test functions files.
5406 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5408 * src/girepository.h: Export g_invoke_error_quark.
5410 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5412 * src/ginvoke.c: Remove the fallback implementation of
5413 g_function_info_invoke since we now formally depend on libffi.
5415 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5417 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5418 Remove these files from cvs, as they are now generated.
5420 * src/gmetadata.c (validate_iface_type_blob): Don't
5421 complain if blob->pointer is not set, since that
5422 happens for enum and flag types. (#308935, Gustavo
5425 * Commit an autoconf-conversion patch by
5426 Gustavo Carneiro (#308708)
5428 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5430 * src/compiler.c (main): Use it here to validate
5431 the generated metadata.
5433 * src/gmetadata.[hc]: Add code to validate a
5436 * metadata-format.txt: Updates
5438 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5440 * tests/*: Add struct offsets to field and vfunc
5443 * src/generate.c (write_vfunc_info): Write offset
5444 information for vfuncs.
5446 * src/gidlnode.c (g_idl_node_build_metadata): Write
5447 the struct offsets into the metadata.
5449 * src/gidlparser.c: Parse the offset attributes of
5450 field and vfunc elements.
5452 * src/gidlnode.h: Add offset members to field and
5455 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5459 * gidl.dtd: Updates.
5461 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5462 file, creates, compiles and runs a C file, and folds the
5463 resulting struct offsets back into the .gidl file.
5465 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5467 * src/gidlparser.c (start_field): Make fields in objects
5470 * src/gidlmodule.c: Include string.h
5475 * metadata-format.txt: Cleanup basic types.
5476 * src/*: Adapt to the changes.
5477 * tests/*: Adapt to the changes.
5478 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5480 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5481 size for enum blobs.
5482 (g_idl_node_get_full_size): Report the correct size for
5485 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5486 error checking for blob sizes.
5488 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5490 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5491 interface types for which is_pointer is FALSE, e.g. enums.
5493 * src/gidlnode.c (g_idl_node_get_full_size)
5494 * src/gidlparser.c (parse_type_internal):
5495 * src/generate.c (write_type_info): Support unspecialized
5496 lists, hashtables and errors. Also emit a '*' after these.
5500 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5504 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5506 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5508 * src/*.c: Change the directory to be addressed by
5509 1-based indexes, and use an index of zero to mean
5512 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5514 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5516 * tests/union.test: Add a union test.
5518 * src/generate.c: Handle unions.
5520 * src/girepository.h:
5521 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5523 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5525 * src/gidlparser.c (start_union): Parse <union> elements.
5527 * src/gidlnode.h: Add a GIdlNodeUnion.
5529 * gidl.dtd: Add a <union> element.
5531 * src/gmetadata.c (g_metadata_check_sanity): Check
5534 * src/gmetadata.h: Add union_blob_size to Header,
5537 * metadata-format.txt: Add a UnionBlob.
5539 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5541 * tests/*: Update testcases.
5543 * src/generate.c (write_callable_info): Don't forget to
5544 write transfer and null-ok attributes for return types
5547 * src/girepository.h:
5548 * src/ginfo.c (g_callable_info_may_return_null):
5549 New function to find out if a function may return NULL.
5551 * src/compiler.c (format_output): Make the generated
5554 * README: Point to a recent libffi snapshot.
5556 * tests/invoke/*: Some invoke tests.
5558 * src/Makefile: Add ginvoke.c and the necessary
5561 * src/girepository.h (g_function_info_invoke): Add
5564 * src/ginvoke.c (g_function_info_invoke): Initial
5565 implementation of invoke functionality based on libffi.
5567 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5568 strings and types hash tables in the right order when
5570 (find_entry_node): Free the name parts.
5572 2005-05-12 Johan Dahlin <johan@gnome.org>
5574 * src/generate.c: Generate consistent end tags.
5578 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5582 * src/gidlparser.c (start_function): Actually add
5583 methods to objects. (Steven Walter)
5585 * src/girepository.h:
5586 * src/ginfo.c: Rename Transfer and Direction to
5587 GITransfer and GIDirection. (Torsten Schoenfeld)
5589 * tests/*: Make tests work with the changes in name
5592 * src/gidlnode.c (find_entry_node): Parse qualified
5593 names and generate xref nodes for them if needed. Don't
5594 require all modules to be loaded any more.
5596 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5599 * src/ginfo.c (g_object_info_get_parent): Return NULL
5600 if blob->parent is 0. Still need to make sure index
5603 * src/generate.c: Generate qualified names when
5604 referring to non-local types. Emit transfer attribute
5607 * src/compiler.c (format_output): Put the function
5608 attributes where gcc accepts them.
5610 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5612 * src/compiler.c (main): Add a --verbose cmdline option
5613 and only log messages if it is specified.
5616 * src/gidlnode.c (init_stats, dump_stats): Collect some
5617 statistics on string and type sharing.
5619 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5620 g_message() instead of fprintf().
5622 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5623 (g_idl_node_get_size): Implement for structs.
5624 (g_idl_node_get_full_size): Handle parent being NULL.
5625 (serialize_type): Handle lookup failures more gracefully.
5627 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5629 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5630 size calculation for 2-parameter types and for objects.
5632 * src/compiler.c: Add a cmdline option for debug output
5633 and install a log handler to implement it.
5634 * src/gidlnode.c: Add some debug spew.
5638 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5639 forget to count the module name when calculating the
5640 required size for the metadata.
5643 * src/gidlparser.c: Fix compiler warnings.
5645 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5647 * src/compiler.c (main): Free the option context.
5649 * gidl.dtd: Clean up handling of names. All elements
5650 have a "name", only the elements corresponding to
5651 actual callable functions (function, method, constructor),
5652 have an additional "symbol" attribute holding the
5653 dlsym()-able function name.
5655 * src/generate.c: Adapt to generate xml matching the
5659 * src/gidlnode.c: Adapt to parse the new dtd.
5661 * tests/*.test: Adjust to the new dtd.
5663 * metadata-format.txt:
5664 * src/gmetadata.h: Remove the short_name field
5666 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5667 * src/girepository.h:
5668 * src/ginfo.c (g_value_info_get_short_name): Removed
5670 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5672 * gidl.dtd: Allow constructors for boxed types,
5673 patch by Jonathan Blandford.
5676 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5678 * --- Initial import ---