1 2008-08-22 Colin Walters <walters@verbum.org>
3 * tools/generate.c, tools/compiler.c: Default
5 * all Makefile.am: Update.
7 2008-08-22 Colin Walters <walters@verbum.org>
9 * girepository/girparser.c: Pass through
10 recursive types. Avoid overwriting errors.
11 * giscanner/xmlwriter.py: Always write the
13 * tests/*.gir: Adjust.
14 * tests/scanner/Makefile.am: Build typelibs,
15 and generate XML from those. Once we
16 have a good diff mechanism...
17 * tests/scanner/*-expected.gir: Add XML
19 * tools/g-ir-scanner: Accept --typelib-xml
21 * tools/generate.c: Better defaults for transfer.
23 2008-08-22 Johan Dahlin <johan@gnome.org>
27 * giscanner/Makefile.am:
28 * giscanner/config.py.in:
29 * giscanner/sourcescanner.py:
30 Use the generated glibconfig.h for all scanner invokations.
31 Rename it to glibconfig-scanner.h and install it.
32 Add a config.py which so far contains the include dir.
34 2008-08-22 Johan Dahlin <johan@gnome.org>
37 Replace glibconfig.h with our own, do some replacement
38 for CPP/C features we do not support
40 2008-08-22 Colin Walters <walters@verbum.org>
42 * tools/generate.c (write_callable_info): Fix unref
45 2008-08-22 Colin Walters <walters@verbum.org>
47 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
48 * tests/Makefile.am: Support $(DEBUG)
49 * tools/generate.c: Do immediate close tags if no
52 2008-08-21 Colin Walters <walters@verbum.org>
54 * tests/scanner/drawable-expected.gir,
55 * tests/scanner/drawable.c,
56 * tests/scanner/drawable.h:
59 2008-08-21 Colin Walters <walters@verbum.org>
61 * giscanner/glibtransformer.py: Compute prefix
62 by searching through the symbol for bits
63 rather than going directly from ctype; this fixes
66 2008-08-21 Colin Walters <walters@verbum.org>
68 * giscanner/glibtransformer.py: Also try squashing
69 underscores from namespace, fixes webkit_web_view_new.
71 2008-08-21 Colin Walters <walters@verbum.org>
73 * giscanner/glibtransformer.py: More ctor work,
74 avoid having gtk_window_group_new end up under
77 2008-08-21 Colin Walters <walters@verbum.org>
79 * giscanner/glibtransformer.py: Much simpler approach
80 of mapping uscored names to classes.
81 * giscanner/utils.py: Remove unnecessary function.
83 2008-08-21 Johan Dahlin <johan@gnome.org>
85 * girepository/girepository.c (g_irepository_require):
86 Plug memory leak and avoid using freed memory.
87 Resolve the whole module path, here as well.
89 2008-08-21 Colin Walters <walters@verbum.org>
91 * giscanner/glibtransformer.py: Look up all permutations
92 of class names when scanning methods/ctors based on
93 the prefix instead of using the return value. This
94 associates gtk_window_new with the right class.
96 2008-08-21 Colin Walters <walters@verbum.org>
98 * girepository/girmodule.c (g_ir_module_build_typelib):
99 Revert change to increment header_size; we do that in
102 2008-08-21 Colin Walters <walters@verbum.org>
104 * girepository/girnode.c (write_string): Tweak to
105 use UINT instead of INT. Not likely to matter.
106 * girepository/girmodule.c (g_ir_module_build_typelib):
107 Add to header_offset as well for header strings
108 to match what write_string does.
109 * girepository/gtypelib.c: Replace is_name with
110 validate_name, which more strongly validates and
111 handles errors in a better way. Update all callers.
112 * giscanner/glibtransformer.py: Handle constructors
115 2008-08-21 Johan Dahlin <johan@gnome.org>
117 * gir/Makefile.am (typelibs_DATA): Build and
118 install the Gio.typelib too
120 * girepository/gtypelib.c (_g_typelib_init):
121 Use g_module_build_path to resolve the shlib name
123 2008-08-21 Colin Walters <walters@verbum.org>
125 * gir/Makefile.am: CLEANFILES typelibs too.
127 2008-08-21 Johan Dahlin <johan@gnome.org>
129 * giscanner/glibtransformer.py:
130 Do not send .la files through find_library.
132 2008-08-21 Colin Walters <walters@verbum.org>
134 * girepository/girparser.c (g_irepository_require):
135 Fix one small leak in error case.
137 2008-08-21 Johan Dahlin <johan@gnome.org>
140 Parse glibconfig.h as well and install the compiled
143 2008-08-21 Johan Dahlin <johan@gnome.org>
146 * giscanner/glibtransformer.py:
147 * tools/g-ir-scanner:
148 Do not hard-core library names in the Makefile, reuse
149 ctypes find_library instead.
151 2008-08-21 Johan Dahlin <johan@gnome.org>
153 * girepository/girparser.c (resolve_aliases):
154 Remove compilation warnings
156 2008-08-21 Johan Dahlin <johan@gnome.org>
158 * girepository/girepository.c (g_irepository_require):
159 Rewrap and fix double free bug by leaking a bit.
161 2008-08-20 Colin Walters <walters@verbum.org>
163 * girepository/girepository.c: Add new function
164 g_irepository_get_typelib_path which tells
165 us from where we loaded a namespace.
167 2008-08-20 Colin Walters <walters@verbum.org>
169 * tests/scanner/*-expected.gir: Adjust for
170 added shared-library.
171 * giscanner/giwriter.py: Make pylint happy.
173 2008-08-20 Colin Walters <walters@verbum.org>
175 * girepository/girmodule.c (g_ir_module_build_typelib):
176 Calculate size correctly, avoid use-after-free.
178 2008-08-20 Colin Walters <walters@verbum.org>
180 * girepository/girepository.c: Remove
181 g_irepository_register_file in favor of
182 g_irepository_require. There are two
183 possible deployment scenarios for typelibs:
184 First, separate in $DATADIR/gitypelibs/. Second,
185 they may be embedded in shlibs. However since
186 the first is now the normal case, the API is
189 Refactor internals to look up typelibs for
190 namespaces just-in-time, but we expect
191 consumers to call g_irepository_require.
193 Also, add some docs. No one has died from that
195 * gir/Makefile.am: Need --library for glib.
196 * giscanner/girwriter.py: Write out shared-library.
197 * tools/g-ir-writer: Take the first --library
198 argument as the target of shared-library. In
199 the future we should make this nicer with pkg-config
202 2008-08-20 Colin Walters <walters@verbum.org>
204 * girepository/girparser.py: And parse them.
206 2008-08-20 Johan Dahlin <johan@gnome.org>
208 * giscanner/glibast.py: Add gshort/gushort types
210 2008-08-20 Colin Walters <walters@verbum.org>
212 * gir/Makefile.am: Rename .gir files using GI namespace.
213 * girepository/girepository.c: Use XDG_DATA_DIRS for
214 looking up typelibs. Also typelibs are now suffixed
216 * tests/invoke/Makefile.am: Only use metadata.
217 * girepository/Makefile.am: Remove unnecessary include.
218 * tests/scanner/Makefile.am: Update using GI namespaces
219 for scanner includes.
221 2008-08-20 Colin Walters <walters@verbum.org>
223 * girepository/transformer.py: Suppress aliases whose
225 * girepository/ast.py: Define some more aliases.
227 2008-08-20 Colin Walters <walters@verbum.org>
229 * girepository/girparser.c: Avoid alias infloops.
231 2008-08-20 Colin Walters <walters@verbum.org>
233 * tests/scanner/foo-expected.gir: Fix expected list type.
235 2008-08-20 Johan Dahlin <johan@gnome.org>
237 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
238 Add a workaround for #548689.
239 We can now compile gtk!
241 2008-08-20 Colin Walters <walters@verbum.org>
243 * giscanner/glibtransformer.py: Try to look up
244 aliases using the c:type too.
246 2008-08-20 Colin Walters <walters@verbum.org>
248 * girepository/girparser.c: Parse union fields.
250 2008-08-20 Johan Dahlin <johan@gnome.org>
252 * giscanner/ast.py: Make time_t an alias for long
254 * gir/gio-2.0-good.gir:
255 * gir/glib-2.0-good.gir:
256 * gir/gobject-2.0-good.gir:
258 * giscanner/glibtransformer.py:
259 Do not delete Class structures, we need them in gdk/gtk.
260 * tests/scanner/drawable-expected.gir:
261 * tests/scanner/foo-expected.gir:
262 * tests/scanner/utility-expected.gir:
265 2008-08-20 Johan Dahlin <johan@gnome.org>
267 * tests/scanner/Makefile.am:
268 * tests/scanner/annotation-expected.gir:
269 * tests/scanner/annotation.c (annotation_object_class_init),
270 (annotation_object_init), (annotation_object_method),
271 (annotation_object_in), (annotation_object_out),
272 (annotation_object_inout), (annotation_object_inout2),
273 (annotation_object_inout3), (annotation_object_calleeowns),
274 (annotation_object_calleesowns), (annotation_object_get_strings),
275 (annotation_object_with_voidp), (annotation_object_get_objects),
276 (annotation_object_create_object), (annotation_object_allow_none):
277 * tests/scanner/annotation.h:
278 * tests/scanner/foo-expected.gir:
279 * tests/scanner/foo.c:
280 * tests/scanner/foo.h:
281 Split out annotation tests out of foo
283 2008-08-20 Johan Dahlin <johan@gnome.org>
285 * tests/scanner/Foo-expected.gir:
286 * tests/scanner/Makefile.am:
287 * tests/scanner/foo-expected.gir:
288 * tests/scanner/foo-object.h:
289 * tests/scanner/foo.c:
290 Foo->foo, foo-object.h -> foo.h
292 2008-08-20 Johan Dahlin <johan@gnome.org>
294 * tests/scanner/Foo-expected.gir:
295 * tests/scanner/Makefile.am:
296 * tests/scanner/drawable-expected.gir:
297 * tests/scanner/drawable.c (test_drawable_class_init),
298 (test_drawable_init):
299 * tests/scanner/drawable.h:
300 * tests/scanner/foo-object.h:
301 * tests/scanner/foo.c (foo_boxed_method):
302 Move the drawable parts out of Foo to its own test.
304 2008-08-20 Johan Dahlin <johan@gnome.org>
306 * tests/scanner/Foo-expected.gir:
307 * tests/scanner/foo-object.h:
308 * tests/scanner/foo.c (foo_drawable_class_init),
310 Add a based on GdkDrawable which generates
313 2008-08-19 Colin Walters <walters@verbum.org>
315 * giscanner/transformer.py: Don't try
316 to strip prefix before namespace.
318 2008-08-19 Johan Dahlin <johan@gnome.org>
320 * giscanner/transformer.py:
321 * tests/scanner/Foo-expected.gir:
322 * tests/scanner/foo-object.h:
323 Add support for typedef void foo type of
326 2008-08-19 Johan Dahlin <johan@gnome.org>
329 * giscanner/girwriter.py:
330 * giscanner/glibtransformer.py:
331 * giscanner/transformer.py:
332 * tests/scanner/Foo-expected.gir:
333 Add basic support for union, base the code much
334 on Struct. Add a testcase.
336 2008-08-19 Johan Dahlin <johan@gnome.org>
338 * tests/scanner/Foo-expected.gir:
339 * tests/scanner/foo-object.h:
340 Add a union testcase which the compiler currently
343 2008-08-19 Johan Dahlin <johan@gnome.org>
345 * gobject-introspection-1.0.pc.in:
346 Add a g_ir_compiler variable
348 2008-08-19 Colin Walters <walters@verbum.org>
350 * giscanner/ast.py: Rework types to be more closely
352 * giscanner/girparser.py: Parse more bits.
353 * giscanner/girwriter.py: Write sequences in a new
354 way that specifies container type.
355 * giscanner/glibast.py: Adjust for ast.py changes,
356 add 'ctype' property to GLibObject and GLibInterface
357 so we can look things up by it later.
358 * gicanner/transformer.py: Names is new class holding
359 the various namespaces we manage. Do not confuse
360 with Namespace which is toplevel XML node effectively.
361 Rework all type resolution to go through
362 _resolve_type_name_1.
363 * giscanner/glibtransformer.py: Raise UnknownTypeError
364 instead of ValueError for cleanliness. Add Unresolved
365 class to mark types whose parent we haven't seen yet.
366 Use new Names object from transformer.py.
367 Correctly look up parent=.
368 Fix type validation to handle sequences.
369 * tests/scanner/Foo-expected.gir: Update for sequence
370 work, int instead of int32.
371 * tools/g-ir-scanner: Add --noclosure option
372 * gir/Makefile.am: Use --noclosure by default for
375 2008-08-18 Johan Dahlin <johan@gnome.org>
377 * gir/gio-2.0-good.gir:
378 * gir/glib-2.0-good.gir:
379 * gir/gobject-2.0-good.gir:
382 2008-08-18 Johan Dahlin <johan@gnome.org>
385 * giscanner/girparser.py:
386 * giscanner/girwriter.py:
387 * giscanner/glibast.py:
388 * giscanner/glibtransformer.py:
389 * giscanner/transformer.py:
390 * tests/scanner/Foo-expected.gir:
391 * tests/scanner/foo-object.h:
392 * tests/scanner/utility-expected.gir:
393 * tests/scanner/utility.h:
394 Redo type resolving and validation.
395 Add a couple of new tests.
396 Patch mostly written by Colin.
398 2008-08-18 Johan Dahlin <johan@gnome.org>
401 * giscanner/girparser.py:
403 * giscanner/transformer.py:
404 Improve enum parsing for enums without a GType.
405 Make flags/enum references to other girs work
406 * giscanner/utils.py:
408 * tests/scanner/Makefile.am:
409 * tests/scanner/foo-object.h:
410 * tests/scanner/utility-expected.gir:
411 * tests/scanner/utility.h:
412 Add a new test for external enum references
414 2008-08-18 Johan Dahlin <johan@gnome.org>
416 * docs/global-module-registry.txt: Update
418 * tests/array.gir: Update with new type proposal
420 * girepository/girepository.c (g_type_tag_to_string):
421 * girepository/girepository.h:
422 * girepository/girnode.c (g_ir_node_get_full_size_internal),
424 * girepository/girnode.h:
425 Make enum serializing functions public. Clean up some whitespace.
427 2008-08-17 Johan Dahlin <johan@gnome.org>
429 * docs/global-module-registry.txt:
430 Add a document for an on disk module registry format
432 2008-08-17 Johan Dahlin <johan@gnome.org>
435 * gir/gio-2.0-good.gir:
438 2008-08-17 Johan Dahlin <johan@gnome.org>
441 * gir/glib-2.0-good.gir:
442 * gir/gobject-2.0-good.gir:
443 * giscanner/cgobject.py:
444 * giscanner/glibtransformer.py:
445 Regenerate GObject & GType.
446 Avoid warnings when generating gobject-2.0.gir.
447 Introspect a little more, and skip *_get_type functions.
449 2008-08-17 Colin Walters <walters@verbum.org>
451 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
452 Rename to -good, always generate during build.
453 * gir/Makefile.am: Ensure .gir files dep on
455 * Makefile.am: Switch build order to ensure
456 the scanner is ready before we do gir/.
457 * tools/g-ir-scanner: Look for .git too.
459 2008-08-17 Johan Dahlin <johan@gnome.org>
461 * girepository/gtypelib.c (validate_enum_blob):
462 * giscanner/glibtransformer.py:
463 * giscanner/transformer.py:
464 Remove resolve_possible_typedefs, it was unused.
465 Allow multiple enum values of the sample value in an enum,
466 since it's actually pretty common.
467 Register enums so they can be resolved too.
469 2008-08-16 Johan Dahlin <johan@gnome.org>
471 * giscanner/girparser.py:
472 Parse enumeration/bitfield.
474 2008-08-16 Johan Dahlin <johan@gnome.org>
476 * giscanner/girparser.py:
479 2008-08-16 Johan Dahlin <johan@gnome.org>
481 * giscanner/glibtransformer.py:
482 Resolve type names for alias targets
483 * giscanner/transformer.py:
484 Skip FILE* parameters fow now
486 2008-08-16 Johan Dahlin <johan@gnome.org>
489 * gir/gobject-2.0.gir:
492 * tests/scanner/Makefile.am:
495 2008-08-15 Colin Walters <walters@verbum.org>
497 * giscanner/glibtransformer.py: Explicitly construct
498 new list, since we're deleting as we iterate.
499 Don't delete all structures which end in Class; just
500 ones which have a paired GObject.
501 Fix printing of type warning.
502 * giscanner/transformer.py: Make strip_namespace_object
503 be the identity function if it doesn't match the
506 2008-08-15 Colin Walters <walters@verbum.org>
508 * giscanner/cgobject.py: Define yet more argument
509 prototypes; fix prototype for g_type_fundamental.
511 2008-08-14 Johan Dahlin <johan@gnome.org>
514 * tests/constant.gir:
517 * tools/generate.c (write_struct_info):
518 Fix generator for constant/gobject/struct
520 2008-08-14 Johan Dahlin <johan@gnome.org>
524 * tools/generate.c (write_enum_info):
525 Fix generation of enum/bitfields
527 2008-08-14 Johan Dahlin <johan@gnome.org>
529 * girepository/girparser.c (start_field), (start_constant),
530 (start_type), (end_element_handler):
531 Clear up constant parsing
536 * tools/generate.c (write_callable_info), (write_function_info),
537 (write_callback_info), (write_constant_info), (write_signal_info),
538 (write_vfunc_info), (write_property_info), (write_object_info),
539 (write_interface_info):
540 Constants/Signals are handled now.
542 2008-08-14 Johan Dahlin <johan@gnome.org>
544 * girepository/girparser.c (start_type):
545 Don't require c:type.
549 Update, remove parts we don't support yet
550 * tests/roundtrips.sh:
552 * tools/generate.c (write_type_info), (write_field_info),
553 (write_callable_info), (write_struct_info):
554 Make it emit proper gir.
556 2008-08-14 Johan Dahlin <johan@gnome.org>
558 * giscanner/transformer.py:
559 New internal function for adding a new node.
561 2008-08-14 Johan Dahlin <johan@gnome.org>
564 Define an internal _H_ variable so we skip parsing both
565 i18n headers, only one is needed.
567 Add the glib-2.0.gir too.
568 * giscanner/glibast.py:
569 Add gconstpointer as an alias for ANY
570 * giscanner/transformer.py:
571 Do not lower case enumeration names per se.
572 Skip functions which has parameters called 'va_list'
574 2008-08-14 Colin Walters <walters@verbum.org>
576 * giscanner/transformer.py: Comment data structures.
577 Also squash pointers in resolve_type_name to correspond
578 with what we do for params.
579 * giscanner/glibtransformer.py: Print warnings in more
580 situations. Rework checks for method/constructor to
581 look up in our GType database instead of just checking
582 for *. Avoid generating <record> for GObject which
583 duplicate the <class>.
584 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
587 2008-08-14 Johan Dahlin <johan@gnome.org>
589 * giscanner/girwriter.py:
590 * giscanner/glibast.py:
591 * giscanner/glibtransformer.py:
592 * giscanner/transformer.py:
595 Add pyflakes.py and run it in make check.
596 Update the source code to fix the errors reported by
599 2008-08-14 Johan Dahlin <johan@gnome.org>
602 * giscanner/girparser.py:
603 * giscanner/glibast.py:
604 * giscanner/glibtransformer.py:
605 Refactor the parser a bit.
606 Add parent type to interfaces and update callsites.
608 2008-08-14 Johan Dahlin <johan@gnome.org>
610 * giscanner/glibtransformer.py:
611 * giscanner/utils.py:
612 Refactor a bit, avoid isinstance and add a method
613 for each type we parse.
615 2008-08-14 Johan Dahlin <johan@gnome.org>
618 * giscanner/girparser.py:
619 * giscanner/glibtransformer.py:
621 Run pep8.py in make check, fix old errors.
623 2008-08-13 Colin Walters <walters@verbum.org>
625 * giscanner/girparser.py: Parse records.
627 2008-08-13 Colin Walters <walters@verbum.org>
629 * gir/Makefile.am: Install again.
630 * gir/gobject-2.0.gir: Add some more bits.
632 2008-08-13 Colin Walters <walters@verbum.org>
634 * gir/gobject-2.0.gir: Use correct namespace, add GType.
635 * giscanner/girparser.py: Handle aliases.
636 * giscanner/transformer.py: Record aliases. Make resolver
637 functions public; we now call into these explicitly from
638 glibtransformer. Handle resolving aliases.
639 * giscanner/glibtransformer.py: Separate our internal namespace
640 from included ones. Call up into transformer's resolver functions.
642 2008-08-13 Johan Dahlin <johan@gnome.org>
644 * girepository/girnode.c (g_ir_node_get_full_size_internal):
645 * girepository/girparser.c (start_class):
646 * giscanner/glibtransformer.py:
647 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
649 2008-08-13 Johan Dahlin <johan@gnome.org>
651 * giscanner/cgobject.py:
652 Register GInitiallyUnowned
653 * giscanner/girwriter.py:
654 * giscanner/glibtransformer.py:
655 Special case GObject/GInitially owned as they are a bit special to use.
657 2008-08-13 Colin Walters <walters@verbum.org>
659 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
660 Object is in GObject namespace.
662 2008-08-13 Colin Walters <walters@verbum.org>
664 * giscanner/girparser.py: Fix processing of functions
667 2008-08-13 Colin Walters <walters@verbum.org>
669 * giscanner/girparser.py: Parse more than just <class.
670 * giscanner/glibtransformer.py: Put aliases in a separate
671 data structure since their name is not canonicall.
672 * giscanner/transformer.py: Handle resolving type names
675 2008-08-13 Johan Dahlin <johan@gnome.org>
677 * tools/g-ir-scanner:
678 Allow multiple libraries
679 * giscanner/glibtransformer.py:
680 Rename load_library to add_library, traverse over all libraries
681 when trying to resolve a function
683 2008-08-12 Colin Walters <walters@verbum.org>
685 * giscanner/transformer.py: Record typedefs as <alias> elements.
686 Also attempt to look up types in external namespaces.
687 * giscanner/girwriter.py: Write them.
688 * giscanner/glibtransformer.py: Rework resolver using real instanceof
689 checks. Resolve interface methods and properties.
690 * tests/scanner/foo-object.h: Add a method with typedef.
691 * tests/scanner/Foo-expected.gir: Update.
692 * girepository/girnode.c: Debug tweaks.
693 * girepository/girparser.c: Make a first pass through the XML where we
694 record all the aliases. This lets us resolve them as we go through the
696 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
699 2008-08-12 Colin Walters <walters@verbum.org>
701 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
702 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
704 * giscanner/transformer.py: Record typedefs and expose public API for resolving
706 * tests/scanner/Foo-expected.gir: Fix expected callback types.
708 2008-08-12 Colin Walters <walters@verbum.org>
710 * giscanner/glibtransformer.py: Also transform object properties.
712 2008-08-12 Colin Walters <walters@verbum.org>
714 * giscanner/glibtransformer.py: Also transform callbacks
715 and structure field types.
716 * tests/scanner/Fooe-expected.gir: Update to expect correct
717 names for callbacks and structs.
719 2008-08-12 Colin Walters <walters@verbum.org>
721 * girepository/girparser.c: Handle 'any'.
722 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
725 2008-08-12 Colin Walters <walters@verbum.org>
727 * giscanner/glibtransformer.py: We need to do type
728 resolution in a second pass after we've seen all the
731 2008-08-12 Colin Walters <walters@verbum.org>
733 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
734 Add enum return value.
735 * giscanner/glibtransformer.py: Transform function return types
738 2008-08-12 Colin Walters <walters@verbum.org>
740 * tests/scanner/Makefile.am: Dep .gir files on scanner
741 sources too. Also remove @ so we see scanner invocations.
743 2008-08-12 Colin Walters <walters@verbum.org>
745 * girepository/girparser.c, girepository/gtypelib.c,
746 girepository/gtypelib.h, girepository/girnode.c:
747 Remove usage of (GAPI-oriented) TypeTag in favor of
748 GITypeTag from girepository.h.
750 2008-08-10 Colin Walters <walters@verbum.org>
752 * tests/roundtrips.sh: Use the correct tests.
754 2008-08-10 Colin Walters <walters@verbum.org>
756 * giscanner/cgobject.py: Declare/wrap a few more functions.
757 Fix parameter types for g_object_new and g_type_fundamental.
759 2008-08-10 Colin Walters <walters@verbum.org>
761 * giscanner/cgobject.py: Add new decorator @gwrap which forces
762 us to declare types for both return value and parameters. The
763 ctypes default of 'int' is bad because it hides 32/64 bit
764 problems. Convert all existing functions to use it.
766 2008-08-09 Johan Dahlin <johan@gnome.org>
768 * giscanner/__init__.py:
770 * giscanner/cgobject.py:
771 * giscanner/gidlparser.py:
772 * giscanner/gidlwriter.py:
773 * giscanner/girparser.py:
774 * giscanner/girwriter.py:
775 * giscanner/glibast.py:
776 * giscanner/glibtransformer.py:
777 * giscanner/odict.py:
778 * giscanner/sourcescanner.py:
779 * giscanner/transformer.py:
780 * giscanner/utils.py:
781 * giscanner/xmlwriter.py:
782 * tools/g-ir-scanner:
786 2008-08-09 Johan Dahlin <johan@gnome.org>
789 * relaxng/c-types.xml:
790 * relaxng/g-types.xml:
791 * relaxng/relaxng.rng:
793 Remove outdated relaxng schemas.
795 2008-08-09 Johan Dahlin <johan@gnome.org>
798 Rename metadata to typelib in variable names,
801 2008-08-09 Johan Dahlin <johan@gnome.org>
805 Remove old C scanner, which got rewritten in python.
807 2008-08-09 Johan Dahlin <johan@gnome.org>
809 * girepository/Makefile.am:
819 Move shared *.[ch] files to girepository from tools
821 2008-08-09 Johan Dahlin <johan@gnome.org>
826 * tests/constant.test:
829 * tests/function.test:
830 * tests/gobject.test:
831 * tests/interface.test:
838 Rename *.test to *.gir
840 2008-08-09 Johan Dahlin <johan@gnome.org>
844 * tests/parser/Foo-expected.gir:
845 * tests/parser/Makefile.am:
846 * tests/parser/foo-object.h:
847 * tests/parser/foo.c:
848 * tests/parser/utility-expected.gir:
849 * tests/parser/utility.c:
850 * tests/parser/utility.h:
851 * tests/scanner/Makefile.am:
852 Rename tests/parser to test/scanner
854 2008-08-08 Colin Walters <walters@verbum.org>
856 * tests/roundtrips.sh: Use local .gir files again.
858 2008-08-08 Colin Walters <walters@verbum.org>
860 * tests/invoke/Makefile.am: .gir file depends on libtool
863 2008-08-08 Colin Walters <walters@verbum.org>
865 * tools/girnode.c: Pass through parent node so we can
866 print the node whose child is NULL, if that occurs.
868 2008-08-08 Johan Dahlin <johan@gnome.org>
871 Disable roundtrip tests which are not yet working
872 * tests/invoke/testfns.gir:
875 2008-08-08 Johan Dahlin <johan@gnome.org>
877 * giscanner/girwriter.py:
879 * giscanner/glibast.py:
880 * giscanner/glibtransformer.py:
881 Swap order of members, to keep it consistent with
884 2008-08-08 Johan Dahlin <johan@gnome.org>
886 * girepository/gtypelib.c (validate_header):
887 * girepository/gtypelib.h:
889 * giscanner/girwriter.py:
890 * giscanner/sourcescanner.c (gi_source_symbol_ref),
891 (gi_source_symbol_unref):
894 * tests/constant.test:
897 * tests/function.test:
898 * tests/gobject.test:
899 * tests/interface.test:
900 * tests/invoke/Makefile.am:
901 * tests/invoke/testfns.xml:
903 * tests/parser/Makefile.am:
904 * tests/roundtrips.sh:
911 * tools/compiler.c (main):
912 * tools/generate.c (write_callable_info), (write_function_info),
914 * tools/gidlmodule.c:
915 * tools/gidlmodule.h:
918 * tools/gidlparser.c:
919 * tools/gidlparser.h:
920 * tools/gidlwriter.c:
921 * tools/gidlwriter.h:
922 * tools/scanner.c (create_node_from_gtype),
923 (create_node_from_ctype), (g_igenerator_process_properties),
924 (g_igenerator_process_signals), (g_igenerator_create_object),
925 (g_igenerator_create_interface), (g_igenerator_create_boxed),
926 (g_igenerator_create_enum), (g_igenerator_create_flags),
927 (g_igenerator_process_function_symbol),
928 (g_igenerator_process_unregistered_struct_typedef),
929 (g_igenerator_process_struct_typedef),
930 (g_igenerator_process_union_typedef),
931 (g_igenerator_process_enum_typedef),
932 (g_igenerator_process_function_typedef),
933 (g_igenerator_process_constant), (g_igenerator_process_symbols),
934 (g_igenerator_add_module), (g_igenerator_add_include_idl):
935 Merge in the gir-compiler branch.
936 Thanks to Philip and Colin for their help.
938 2008-07-26 Colin Walters <walters@verbum.org>
940 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
941 and g-idl-generate to go along with how we're changing this
942 module to be installed.
943 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
945 2008-07-24 Colin Walters <walters@verbum.org>
947 * girepository/girepository.c (g_irepository_register): Add
948 environment variable G_IREPOSITORY_VERBOSE so we can print
949 out what we're doing.
950 * girepository/girepository.c (g_irepository_register_file):
951 Add GError error message to g_debug call.
953 2008-07-08 Jürg Billeter <j@bitron.ch>
955 * giscanner/glibast.py:
959 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
961 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
964 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
967 * giscanner/girwriter.py:
968 * giscanner/transformer.py:
969 * tests/parser/Foo-expected.gir:
970 * tests/parser/foo-object.h:
971 * tests/parser/foo.c (foo_object_allow_none):
972 Add support for gtk-doc annotations for allow-none.
975 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
978 * giscanner/girwriter.py:
979 * giscanner/glibast.py:
980 * giscanner/glibtransformer.py:
981 * giscanner/transformer.py:
982 * tests/parser/Foo-expected.gir:
983 Start using abstract type instead of the raw C types.
984 Register a bunch of glib types we care about.
986 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
991 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
993 * girepository/girepository.c:
994 * girepository/gtypelib.c:
995 * girepository/ginfo.c:
996 * girepository/ginvoke.c:
997 * girepository/girepository.h:
998 * girepository/gtypelib.h:
999 * girepository/gmetadata.c:
1000 * girepository/Makefile.am:
1001 * girepository/gmetadata.h:
1003 * tools/gidlmodule.c:
1006 * tools/gidlmodule.h:
1007 * tools/gidlparser.c:
1009 Renamed GMetadata to GTypelib
1011 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
1013 * giscanner/xmlwriter.py:
1014 Improve line wrapping when > 79 charaters
1016 2008-06-05 Jürg Billeter <j@bitron.ch>
1019 * giscanner/girwriter.py:
1020 * giscanner/transformer.py:
1021 Use <type> element for field types
1022 * tests/parser/Foo-expected.gir:
1025 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
1027 * giscanner/glibtransformer.py:
1028 Fix a bug which prevented GdkEvent from being generated
1030 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
1032 * giscanner/Makefile.am:
1034 * giscanner/girwriter.py:
1035 * giscanner/glibast.py:
1036 * giscanner/glibtransformer.py:
1037 * giscanner/transformer.py:
1038 * giscanner/utils.py:
1039 * tests/parser/Foo-expected.gir:
1040 Improve enum member parsing and introspection
1042 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1044 * giscanner/scannerparser.y:
1045 * giscanner/sourcescanner.h:
1046 * giscanner/sourcescanner.py:
1047 Add a new source type enum for member.
1048 Use __repr__ for improved debugging
1049 * giscanner/girparser.py:
1051 * giscanner/transformer.py:
1052 Improve parsing of struct members.
1053 * tests/parser/foo-object.h:
1056 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1058 * giscanner/xmlwriter.py:
1059 Improve error reporting when trying to quote None.
1060 * giscanner/girparser.py:
1061 Do not print warnings when including more complete .gir files
1062 * giscanner/girwriter.py:
1063 Do not require a name for parameters, add a todo for singletons
1064 * giscanner/glibtransformer.py:
1065 Refactor the way structs are done, add a couple of hacks to allow
1067 * giscanner/transformer.py:
1068 Add enough hacks so cairo, atk and pango.gir can be parsed properly
1069 * gobject-introspection-1.0.pc.in:
1070 Export girdir, so we can access gobject-2.0.gir from outside
1072 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1074 * tools/g-ir-scanner:
1075 * tests/parser/Makefile.am:
1076 Update sys.path before running the parser so we don't have
1077 to setup PYTHONPATH ourselves.
1081 * girepository/Makefile.am:
1082 * giscanner/transformer.py:
1083 * gobject-introspection-1.0.pc.in:
1084 * gobject-introspection.pc.in:
1085 * tools/Makefile.am:
1087 Rename pkg-config name to gobject-introspection-1.0,
1088 Do not installed anything which is not using the gir format.
1089 Disable compililation the old C scanner, but still keep the source
1090 until all the remaning functionallity has been ported.
1092 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1094 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
1095 a crash when symbol->indent is NULL.
1097 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
1098 a function to convert a CTYPE symbol to a string
1100 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
1103 * giscanner/girwriter.py:
1104 * giscanner/giscannermodule.c
1105 (pygi_source_scanner_append_filename),
1106 (pygi_source_scanner_parse_file):
1107 * giscanner/glibtransformer.py:
1108 * giscanner/sourcescanner.py:
1109 Revert back to using temporary files to send in headers.
1110 Allow Functions to be passed in as callbacks, add a couple
1111 of try/excepts missing features.
1112 We can now scan pango
1114 2008-05-08 Johan Dahlin <johan@gnome.org>
1116 * giscanner/glibtransformer.py:
1117 * giscanner/transformer.py:
1118 Move namespace stripping glibtransformer->transformer
1120 2008-05-08 Johan Dahlin <johan@gnome.org>
1123 * giscanner/girwriter.py:
1124 * giscanner/glibtransformer.py:
1125 * giscanner/transformer.py:
1126 * tools/g-ir-scanner:
1127 Introduce a namespace ast node
1129 2008-05-05 Johan Dahlin <johan@gnome.org>
1131 * giscanner/__init__.py:
1132 * giscanner/sourcescanner.py:
1133 * giscanner/transformer.py:
1134 Move sourcescanner symbols to the sourcescanner module, instead
1135 of in the global __init__ namespace.
1137 2008-05-03 Johan Dahlin <johan@gnome.org>
1139 * giscanner/glibtransformer.py:
1140 * tools/g-ir-scanner:
1141 Handle missing parameters better, allow - and + in .la dlname
1144 2008-05-03 Johan Dahlin <johan@gnome.org>
1146 * giscanner/__init__.py:
1148 * giscanner/girwriter.py:
1149 * giscanner/glibtransformer.py:
1150 * giscanner/transformer.py:
1151 Parse struct fields properly, improve debugging.
1153 2008-04-29 Johan Dahlin <johan@gnome.org>
1156 * giscanner/girwriter.py:
1157 * giscanner/transformer.py:
1158 * tests/parser/Foo-expected.gir:
1160 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
1162 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1165 * docs/g-ir-scanner.1:
1166 * metadata-annotations-proposal.txt:
1167 * metadata-format.txt:
1168 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
1170 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1172 * giscanner/girwriter.py:
1173 * giscanner/glibtransformer.py:
1174 * giscanner/transformer.py:
1175 * giscanner/xmlwriter.py:
1176 * tests/parser/Foo-expected.gir:
1177 * tests/parser/foo-object.h:
1178 Write record/structs to gir file too. Add a couple of tests,
1179 fix an off by one error in xmlwriter.py.
1181 2008-04-28 Johan Dahlin <johan@gnome.org>
1183 * giscanner/xmlwriter.py: Calculate the line length properly,
1184 include the provided extra indentation in the calculation, really.
1186 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1189 * giscanner/glibast.py:
1190 * giscanner/glibtransformer.py:
1191 * giscanner/transformer.py:
1192 * tools/g-ir-scanner:
1193 Add a --strip-prefix and sort out confusion between names and symbols
1194 for functions and struct + derivaties.
1195 Refactor bootstrap of g-ir-scanner, so we can set options on
1196 Transformer() before parsing everything.
1198 2008-04-28 Johan Dahlin <johan@gnome.org>
1200 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
1201 when scanning girepository.h
1203 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
1204 a __GI_SCANNER__ when we run.
1206 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1209 * giscanner/girwriter.py:
1210 * giscanner/glibast.py:
1211 * giscanner/glibtransformer.py:
1212 * tests/parser/Foo-expected.gir:
1213 * tests/parser/utility-expected.gir:
1214 Rename most c:identifier to c:type. Add new ones to
1215 class/interface/enum/boxed.
1217 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1220 * giscanner/girwriter.py:
1221 * giscanner/glibtransformer.py:
1222 * tests/parser/Foo-expected.gidl:
1223 * tests/parser/Makefile.am:
1224 Move c:identifier from return-value to subchild type,
1225 as per Jürgs suggestion
1227 2008-04-28 Johan Dahlin <johan@gnome.org>
1229 * giscanner/girwriter.py:
1230 * tests/parser/Foo-expected.gir:
1231 Write property.type as a child node.
1233 2008-04-27 Johan Dahlin <johan@gnome.org>
1238 * gidl/gobject-2.0.gidl:
1240 * gir/gobject-2.0.gir:
1241 * tests/parser/Makefile.am:
1242 Replace the GObject gidl with a GObject gir.
1244 2008-04-27 Johan Dahlin <johan@gnome.org>
1246 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
1249 * giscanner/xmlwriter.py:
1250 * tests/parser/Foo-expected.gir:
1251 Include indentation in line length calculation
1253 2008-04-27 Johan Dahlin <johan@gnome.org>
1255 * giscanner/girparser.py:
1256 Prettify NS parsing using elementtree.
1258 2008-04-27 Johan Dahlin <johan@gnome.org>
1261 * giscanner/Makefile.am:
1262 * giscanner/girparser.py:
1263 * giscanner/glibtransformer.py:
1264 * tests/parser/Foo-expected.gidl:
1265 * tests/parser/Foo-expected.gir:
1266 * tests/parser/Makefile.am:
1267 * tests/parser/utility-expected.gidl:
1268 * tests/parser/utility-expected.gir:
1269 * tools/g-ir-scanner:
1270 Switch over to GIR as the default format. Add a simple GIDL
1272 Update tests and fix simplify makefiles by depending
1273 on GNU make extensions.
1275 2008-04-27 Johan Dahlin <johan@gnome.org>
1277 * giscanner/xmlwriter.py:
1278 Wrap attributes for lines which are wider than 79 characters
1280 * giscanner/scannerlexer.l:
1281 Allow parenthesis in annotations
1284 * giscanner/gidlwriter.py:
1285 * giscanner/girwriter.py:
1286 * giscanner/glibtransformer.py:
1287 * giscanner/transformer.py:
1288 Add initial sequence support, including annotation.
1289 Refactor type handling a bit.
1291 2008-04-27 Johan Dahlin <johan@gnome.org>
1293 * tests/parser/Foo-expected.gidl:
1294 * tests/parser/foo-object.h:
1295 * tests/parser/foo.c (foo_object_class_init),
1296 (foo_object_get_strings), (foo_object_get_objects):
1297 Add two new functions to check sequence return values.
1298 Also fixes a compilation warning.
1300 2008-04-27 Johan Dahlin <johan@gnome.org>
1302 * giscanner/giscannermodule.c (]): Cast the getter, avoids
1303 a compilation warning.
1305 * tools/Makefile.am (g_ir_scanner_SOURCES):
1306 g-ir-scanner has no sources.
1308 2008-04-25 Johan Dahlin <johan@gnome.org>
1310 * giscanner/Makefile.am:
1312 * giscanner/gidlparser.py:
1313 * giscanner/gidlwriter.py:
1314 * giscanner/girwriter.py:
1315 * giscanner/glibast.py:
1316 * giscanner/glibtransformer.py:
1317 * giscanner/transformer.py:
1318 Split out nodes to ast.py and glibast.py
1320 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1322 * giscanner/Makefile.am:
1323 * giscanner/gidlparser.py:
1324 * giscanner/gidlwriter.py:
1325 * giscanner/girwriter.py:
1326 * giscanner/glibtransformer.py:
1327 * giscanner/gobjecttreebuilder.py:
1328 * giscanner/transformer.py:
1329 * giscanner/treebuilder.py:
1330 * tools/g-ir-scanner:
1331 Rename treebuilder to transformer and
1332 gobjectreebuilder to glibtransformer.
1334 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1336 * giscanner/Makefile.am:
1337 * giscanner/__init__.py:
1338 * giscanner/cgobject.py:
1339 * giscanner/gidlparser.py:
1340 * giscanner/gidlwriter.py:
1341 * giscanner/girwriter.py:
1342 * giscanner/gobjecttreebuilder.py:
1343 * giscanner/odict.py:
1344 * giscanner/sourcescanner.py:
1345 * giscanner/treebuilder.py:
1346 * giscanner/xmlwriter.py:
1347 * tools/Makefile.am:
1348 * tools/g-ir-scanner:
1349 Add LGPLv2 license header and install all python files
1351 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1354 * giscanner/gidlwriter.py:
1355 * giscanner/giscannermodule.c (pygi_source_directive_new),
1356 (directive_get_options), (pygi_source_symbol_new),
1357 (symbol_get_base_type), (pygi_source_type_new),
1358 (type_get_base_type), (type_get_child_list),
1359 (pygi_source_scanner_get_symbols),
1360 (pygi_source_scanner_get_directives):
1361 * giscanner/gobjecttreebuilder.py:
1362 * giscanner/sourcescanner.py:
1363 * giscanner/treebuilder.py:
1364 * tests/parser/foo-object.h:
1365 Add support for virtual methods.
1366 Pair struct FooClass with struct Foo.
1367 Clean up the SourceScanner bindings a bit.
1368 Add a testcase for virtual methods.
1370 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1372 * giscanner/cgobject.py:
1373 * giscanner/gidlwriter.py:
1374 * giscanner/gobjecttreebuilder.py:
1375 Add support for signals
1377 * tests/parser/foo.c (foo_object_class_init):
1378 * Foo-expected.gidl:
1379 Add a signal and update the expected output.
1381 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
1383 * giscanner/gidlwriter.py:
1384 * giscanner/girwriter.py:
1385 * giscanner/giscannermodule.c (directive_get_name),
1386 (directive_get_value), (directive_get_options),
1387 (symbol_get_directives), (symbol_set_directives),
1388 (pygi_source_scanner_parse_file),
1389 (pygi_source_scanner_lex_filename),
1390 (pygi_source_scanner_get_directives), (init_giscanner):
1391 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
1392 * giscanner/sourcescanner.h:
1393 * giscanner/sourcescanner.py:
1394 * giscanner/treebuilder.py:
1395 * tools/g-ir-scanner:
1396 Add support for source/header annotations.
1398 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1400 * giscanner/gidlwriter.py:
1401 * giscanner/girwriter.py:
1402 * giscanner/gobjecttreebuilder.py:
1403 * giscanner/treebuilder.py:
1404 Add support for Callbacks
1406 2008-04-22 Havoc Pennington <hp@pobox.com>
1408 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
1409 not in metadata->module, look for it in the global module, in case
1410 some other object or the app itself provides the symbol.
1412 2008-04-22 Havoc Pennington <hp@pobox.com>
1414 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
1415 dlopening a library that is already in the main app, by checking
1416 whether one of the lib's symbols is already loaded.
1418 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1420 * tests/parser/Foo-expected.gidl:
1421 * tests/parser/foo-object.h:
1424 2008-04-22 Havoc Pennington <hp@pobox.com>
1426 * girepository/ginfo.c (g_interface_info_find_method):
1427 Use interface_blob_size not object_blob_size to compute offset.
1429 2008-04-22 Havoc Pennington <hp@pobox.com>
1431 * girepository/gmetadata.c (_g_metadata_init): remove
1432 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
1433 (Glade and Clutter for example) rely on being loaded globally.
1435 2008-04-22 Havoc Pennington <hp@pobox.com>
1437 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
1438 function to get the GType given a RegisteredTypeInfo
1440 2008-04-22 Johan Dahlin <johan@gnome.org>
1442 * COPYING: Add a LGPL license, to prevent automake to
1443 put in a copy of GPL here. Pointed out by Havoc.
1445 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
1446 (g_type_info_is_pointer), (g_type_info_get_tag),
1447 (g_type_info_get_param_type), (g_type_info_get_interface),
1448 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
1449 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
1450 (g_error_domain_info_get_codes), (g_enum_info_get_value),
1451 (g_object_info_get_interface), (g_object_info_get_field),
1452 (g_interface_info_get_prerequisite),
1453 (g_signal_info_get_class_closure), (g_constant_info_get_value):
1454 * girepository/ginvoke.c (get_ffi_type):
1455 * girepository/girepository.h:
1456 * girepository/gmetadata.c (g_metadata_get_dir_entry),
1457 (g_metadata_check_sanity), (validate_header),
1458 (validate_array_type_blob), (validate_iface_type_blob),
1459 (validate_param_type_blob), (validate_error_type_blob),
1460 (validate_type_blob), (validate_constant_blob),
1461 (validate_struct_blob), (validate_enum_blob):
1462 * girepository/gmetadata.h:
1463 * tests/Makefile.am:
1464 * tests/invoke/Makefile.am:
1465 * tests/invoke/invoke.c (main):
1466 * tests/roundtrips.sh:
1467 * tools/Makefile.am:
1468 * tools/compiler.c (format_output), (write_out_metadata), (main):
1469 * tools/generate.c (write_type_name), (write_type_info),
1470 (write_constant_value), (write_enum_info), (load_metadata), (main):
1471 * tools/gidlcompilercontext.c:
1472 * tools/gidlcompilercontext.h:
1473 * tools/gidlcompilerentrynode.c:
1474 * tools/gidlcompilerentrynode.h:
1475 * tools/gidlcompilertypenode.c:
1476 * tools/gidlcompilertypenode.h:
1477 * tools/gidlmodule.c (g_idl_module_build_metadata):
1478 * tools/gidlmodule.h:
1479 * tools/gidlnode.c (init_stats), (dump_stats),
1480 (g_idl_node_get_size), (g_idl_node_get_full_size),
1481 (g_idl_node_cmp), (g_idl_node_can_have_member),
1482 (g_idl_node_add_member), (g_idl_node_param_direction_string),
1483 (parse_int_value), (parse_uint_value), (parse_float_value),
1484 (parse_boolean_value), (find_entry_node), (find_entry),
1485 (serialize_type), (g_idl_node_build_metadata), (write_string):
1487 * tools/gidlparser.c (parse_type_internal):
1488 * tools/quote-file.sh:
1489 Revert revisions 157,149-148,136-129 and 120.
1490 Move back to using g-idl-generate to generate the metadata and
1491 avoids dependency on a c compiler.
1493 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1495 * giscanner/girwriter.py:
1496 * tools/g-ir-scanner:
1497 Add an initial GIR writer and a --format option to g-ir-scanner
1499 2008-04-21 Johan Dahlin <johan@gnome.org>
1501 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
1502 gobject-2.0 and raise ImportError if not found.
1504 * giscanner/gidlparser.py:
1505 * giscanner/gidlwriter.py:
1506 * giscanner/gobjecttreebuilder.py:
1507 * tools/g-ir-scanner:
1508 Add a --include argument to include types from other idls.
1509 Add a minimalistic GIDL parser (just objects for now)
1510 Implement resolving of external type references and use it to
1511 resolve parent types, argument types and return types.
1513 2008-04-21 Johan Dahlin <johan@gnome.org>
1515 * giscanner/gidlwriter.py:
1516 * giscanner/gobjecttreebuilder.py:
1517 * giscanner/treebuilder.py:
1518 Add support for properties.
1519 Refactor Class/Interface support a bit, to share more code and
1520 always initialize their method attribute to an empty list.
1522 2008-04-21 Johan Dahlin <johan@gnome.org>
1524 * giscanner/cgobject.py:
1525 Add a workaround for a glib bug interface introspection bug
1526 (object_interface_list_properties, object_class_list_properties):
1527 Cast the return value to GParamSpec.
1529 * tests/parser/Foo-expected.gidl: Update
1530 * tests/parser/foo.c: Add a string property
1532 * giscanner/gobjecttreebuilder.py:
1533 After stripping namespaces, remove the original
1534 item to avoid duplication (GtkButton struct and Button object)
1536 2008-04-21 Johan Dahlin <johan@gnome.org>
1538 * giscanner/gobjecttreebuilder.py:
1539 * giscanner/treebuilder.py:
1540 Strip namespaces before objects, so we'll export
1541 GtkButton as Button in the gtk namespace
1543 2008-04-21 Johan Dahlin <johan@gnome.org>
1545 * giscanner/gidlwriter.py:
1546 * giscanner/gobjecttreebuilder.py:
1547 * giscanner/treebuilder.py:
1548 Add constructors for object/boxed types.
1550 2008-04-21 Johan Dahlin <johan@gnome.org>
1552 * giscanner/gidlwriter.py:
1553 * giscanner/gobjecttreebuilder.py:
1554 Add support for boxed types
1556 2008-04-21 Johan Dahlin <johan@gnome.org>
1558 * giscanner/giscannermodule.c: Mark structures as const,
1559 wrap SourceType.const_string.
1561 * tests/parser/foo-object.h: Add a couple of constants.
1563 * giscanner/gidlwriter.py:
1564 * giscanner/gobjecttreebuilder.py:
1565 * giscanner/treebuilder.py:
1566 Add basic support for interfaces
1568 * tools/g-ir-scanner:
1569 Add -o/--output for writing to a file
1571 2008-04-21 Havoc Pennington <hp@redhat.com>
1573 * TODO: add some C API wishlist items I could think of quickly
1575 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1577 * giscanner/gidlwriter.py:
1578 * giscanner/xmlwriter.py:
1579 Add a simple api for writing tags which can be used
1580 with the new 'with statement' in python 2.5
1582 2008-04-21 Johan Dahlin <johan@gnome.org>
1584 * giscanner/gobjecttreebuilder.py:
1585 Strip namespace and object prefix from method names.
1587 2008-04-21 Johan Dahlin <johan@gnome.org>
1589 * tools/g-ir-scanner (main): Add --pkg option to pass in
1590 pkg-config modules to get cflags from.
1592 * giscanner/gidlwriter.py (GIDLWriter._write_method):
1593 Avoid duplication, reuse function writer for methods.
1595 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1597 * giscanner/gidlwriter.py:
1598 * giscanner/gobjecttreebuilder.py:
1599 * giscanner/treebuilder.py:
1600 * tools/g-ir-scanner:
1601 Resolve libtool .la files.
1602 Strip name spaces for methods.
1603 Add function symbols
1605 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
1607 * giscanner/cgobject.py:
1608 * giscanner/gidlwriter.py:
1609 * giscanner/gobjecttreebuilder.py:
1610 * giscanner/treebuilder.py:
1611 Add support for classes and methods
1613 2008-04-20 Johan Dahlin <johan@gnome.org>
1615 * giscanner/gidlwriter.py:
1616 * giscanner/gobjecttreebuilder.py:
1617 * giscanner/odict.py:
1618 Avoid conflicts, keep the output ordered similar to
1619 the order of the input.
1620 Add a simple ordered dictionary implemenation
1622 2008-04-19 Johan Dahlin <johan@gnome.org>
1624 * giscanner/cgobject.py:
1625 * giscanner/gidlwriter.py:
1626 * giscanner/gobjecttreebuilder.py:
1627 * tools/g-ir-scanner:
1628 Start introspecting get-type functions.
1629 Implement support for GLib/GFlags GTypes.
1630 Add a ctype based GObject binding.
1632 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
1634 * giscanner/gidlwriter.py:
1635 * giscanner/xmlwriter.py:
1636 * tools/g-ir-scanner:
1637 Add a simplistic gidl writer, which can't do too much.
1639 2008-04-18 Johan Dahlin <johan@gnome.org>
1641 * giscanner/sourcescanner.py:
1642 * giscanner/treebuilder.py:
1643 * tools/g-ir-scanner:
1644 split tree building and source scanning interface to separate files.
1646 2008-04-18 Johan Dahlin <johan@gnome.org>
1648 * tools/g-ir-scanner (Parameter.__init__): Start constructing
1650 - Add support for struct/parameter/return, start parsing of ctypes
1652 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
1655 2008-03-31 Johan Dahlin <johan@gnome.org>
1657 * tools/g-ir-scanner:
1658 Start to build abstract syntax node of scanned sources.
1659 Add support for cpp options.
1661 2008-03-27 Johan Dahlin <johan@gnome.org>
1663 * giscanner/giscannermodule.c:
1664 * giscanner/scannerlexer.l:
1665 * giscanner/sourcescanner.c:
1666 * tools/g-ir-scanner:
1668 Add simple pre-processor using subprocess and a PIPE.
1669 Change the parse_file apis to accept a file descriptor.
1671 2008-03-25 Johan Dahlin <johan@gnome.org>
1673 * giscanner/__init__.py:
1674 * tools/g-ir-scanner:
1675 Fix a typo and add an example python test program.
1677 2008-03-25 Johan Dahlin <johan@gnome.org>
1679 * giscanner/__init__.py:
1680 * giscanner/giscannermodule.c:
1681 * giscanner/sourcescanner.c:
1682 * giscanner/sourcescanner.h:
1683 Add constants and wrap a few more SymbolType fields
1685 2008-03-25 Johan Dahlin <johan@gnome.org>
1689 * giscanner/__init__.py:
1690 * giscanner/giscannermodule.c:
1691 * giscanner/Makefile.am:
1693 Add initial python bindings for the scanner and
1694 depend on python 2.5.
1696 2008-03-25 Johan Dahlin <johan@gnome.org>
1700 * giscanner/Makefile.am:
1701 * giscanner/sourcescanner.c:
1702 * giscanner/sourcescanner.h:
1703 * tools/Makefile.am:
1704 * tools/grealpath.h:
1705 * tools/sourcescanner.c:
1706 * tools/sourcescanner.h:
1708 Move the scanner to a separate library.
1710 2008-03-23 Johan Dahlin <johan@gnome.org>
1712 * tools/Makefile.am:
1715 * tools/scannerlexer.l:
1716 * tools/scannerparser.y:
1717 * tools/sourcescanner.c:
1718 * tools/sourcescanner.h:
1719 Split out the source scanner from the generator.
1720 Rename the symbols used in the scanner to use the gi_ prefix.
1721 This should make it possible to use the raw C parser from
1724 2008-03-23 Johan Dahlin <johan@gnome.org>
1726 * tests/parser/Makefile.am (utility.gidl):
1727 * tests/parser/utility-expected.gidl:
1728 Pass in the gobject.gidl since we're defining a GObject.
1730 2008-03-12 Johan Dahlin <johan@gnome.org>
1732 * relaxng/relaxng.rng:
1733 Add a releaxng in relaxng we can use to validate the relaxngs
1736 2008-03-12 Jürg Billeter <j@bitron.ch>
1738 * tools/scanner.c: (g_igenerator_new):
1739 * tools/scannerparser.y:
1740 Fix compiler warnings.
1742 2008-03-12 Jürg Billeter <j@bitron.ch>
1746 * tools/scannerparser.y:
1747 Start fixing memory management in g-idl-scanner.
1749 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
1751 * tools/gidlcompilercontext.c: (write_compiled):
1752 Fix critical warning when no shlib passed to g-idl-compiler.
1754 2008-03-12 Johan Dahlin <johan@gnome.org>
1756 * tests/parser/utility-expected.gidl:
1757 * tests/parser/utility.h:
1758 Add a get_type-function, so the scanner actually
1759 parses it as an object.
1761 2008-03-12 Johan Dahlin <johan@gnome.org>
1763 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
1766 * tests/parser/Foo-expected.gidl:
1767 * tests/parser/Makefile.am:
1768 * tests/parser/foo-object.h:
1769 * tests/parser/foo.c:
1770 * tests/parser/utility-expected.gidl:
1771 * tests/parser/utility.c:
1772 * tests/parser/utility.h:
1774 Add a new gidl test. 'utility.gidl', which is used to be able
1775 to test external type references. Add a reference to UtilityObject*
1778 2008-03-11 Johan Dahlin <johan@gnome.org>
1782 Remove most global variables
1784 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
1786 * tools/scannerlexer.l:
1788 * tests/parser/Foo-expected.gidl:
1789 * tests/parser/foo.c:
1790 * tests/parser/Makefile.am:
1791 * tests/parser/foo-object.h:
1793 Added a few extra tests. Which resulted in finding a few
1794 bugs. Which resulted in me fixing those bugs
1796 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1798 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
1799 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
1800 Add some comments for strings into generated output for
1803 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1805 * tools/gidlcompilercontext.c: (write_compiled):
1806 Write out the shlibs variable before writing out the strings
1807 length. Fixes compiler warning when using '-l' flag with
1810 2008-03-11 Johan Dahlin <johan@gnome.org>
1812 * tests/parser/Foo-expected.gidl:
1813 * tests/parser/foo-object.h:
1816 * tools/scannerlexer.l:
1817 Add support for parsing return arguments. Add support for
1818 caller-owns return types.
1819 Patch by Philip Van Hoof.
1821 * tools/scannerparser.y:
1822 Remove parsing of the @deprecated syntax used in headers.
1823 We will support gtk-doc deprecation in the future instead.
1825 2008-03-11 Johan Dahlin <johan@gnome.org>
1827 * tools/compiler.c (main): Coding style fixes
1829 2008-03-10 Johan Dahlin <johan@gnome.org>
1832 Add GCOV_LIBS to GILIBS
1834 2008-03-10 Johan Dahlin <johan@gnome.org>
1836 * tests/parser/Foo-expected.gidl:
1837 * tests/parser/foo.c:
1838 Rename null-ok to direction=out
1840 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
1842 reviewed and extensively tested by Johan
1844 * tests/parser/Foo-expected.gidl:
1845 * tests/parser/foo-object.h:
1846 * tests/parser/foo.c:
1849 * tools/gidlwriter.c:
1852 * tools/scannerlexer.l:
1853 * tools/scannerparser.y:
1855 Add support for scanning for gtk-doc comments inside
1856 C source files. Add tests
1858 2008-03-10 Johan Dahlin <johan@gnome.org>
1860 * tests/parser/Makefile.am:
1861 * tests/parser/foo.c:
1864 * tools/scannerparser.y:
1865 Add an api to lex filenames.
1866 Lex all source .c files passed in on the command line.
1867 Scan sources in a test and a couple of private structures
1868 which should not be included in the generated gidl
1870 2008-03-10 Johan Dahlin <johan@gnome.org>
1872 * tests/invoke/Makefile.am: Make the generated metadata
1873 depend on the g-idl-compiler
1875 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1877 * tools/gidlmodule.c
1878 * tools/gidlmodule.h
1881 Remove the old g-idl-compiler code.
1884 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
1886 * tools/quote-file.sh
1889 Move to using the 'C' struct compiler code.
1891 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1893 * girepository/ginfo.c
1895 Change the way that external references with no namespace
1896 are dealt with. External references with no namespace
1897 are placed into the XML as-if they are a local reference.
1898 This is temporary, but helps with roundtrip tests.
1900 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1902 * girepository/ginfo.c
1903 Add the ability to get the value of a constant of
1904 type TYPE_TAG_SYMBOL. In the case of a symbol the value
1905 is provided as a string.
1907 This would deal properly with:
1908 typedef char* random;
1909 const random = "A string";
1911 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1913 * girepository/ginfo.c
1914 * girepository/girepository.h
1916 Add a function to check if an enum is registered or not.
1917 Previously anything testing this relied on the g-type
1918 string offset having a value of 0.
1920 * girepository/gmetadata.c
1921 * girepository/gmetadata.h
1923 Remove unneccesary or erroneous checks. There were two
1924 metadata validation checks which made sure that the blob
1925 sizes were the same as some magic numbers compiled into the code.
1926 This is wrong as it breaks any forwards compatibility that may
1929 Checks were also present that made sure that unregistered type
1930 blobs had a value of 0 in the g-type offset field. This is
1931 unneccessary. If a type blob is unregistered then any value
1932 in its g-type field is simply invalid.
1934 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1936 * girepository/ginfo.c
1937 * girepository/gmetadata.c
1938 * girepository/gmetadata.h
1940 Change the metadata format to have a standard header
1941 for all the type blobs. Merge the SimpleTypeBlob
1942 and InterfaceTypeBlob into a union. A union of these
1943 two blobs existed previously but was not explicit
1944 in the metadata format.
1946 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1948 * tools/gidlcompilercontext.c
1949 * tools/gidlcompilercontext.h
1950 * tools/gidlcompilerentrynode.c
1951 * tools/gidlcompilerentrynode.h
1952 * tools/gidlcompilertypenode.c
1953 * tools/gidlcompilertypenode.h
1955 Add code to compile a tree of GIdlNodes to
1956 a 'C' struct representing the metadata.
1957 This is to aid cross-compiling. Previously
1958 the g-idl-compiler created a binary blob with
1959 data written in the byte order and alignment
1960 of the tool rather than the intended target.
1962 Cleaned up and improved by Johan and Robert :-)
1964 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1966 * girepository/ginvoke.c
1967 * girepository/girepository.h
1968 * girepository/gmetadata.c
1969 * girepository/gmetadata.h
1971 * tools/gidlparser.c
1972 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
1973 to avoid confusion with the interface blob.
1976 * tools/gidlparser.c
1977 Remove magic numbers and replace with type-tag
1978 enumeration symbols.
1980 * girepository/gmetadata.c
1981 Add validate declaration.
1983 2008-03-10 Jürg Billeter <j@bitron.ch>
1985 * tools/gidlparser.c: (parse_type_internal):
1986 * tools/scannerlexer.l:
1987 * tools/scannerparser.y:
1988 Support C99 _Bool type in scanner.
1990 2008-03-10 Jürg Billeter <j@bitron.ch>
1992 * tests/parser/Foo-expected.gidl:
1993 * tests/parser/foo-object.h:
1994 * tests/parser/foo.c: (foo_enum_method):
1995 * tools/scanner.c: (g_igenerator_process_function_symbol):
1996 Don't skip functions that are defined in the namespace of a type
1997 that doesn't support methods, as for example enums.
1999 2008-03-10 Johan Dahlin <johan@gnome.org>
2001 * gidl.dtd: Remove, we're using relaxng for now
2003 * tests/parser/Foo-expected.gidl:
2004 * tests/parser/foo-object.h:
2005 * tests/parser/foo.c:
2006 Rename the enum/flags get_type functions to include the whole type.
2008 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
2010 * tools/gidlwriter.c (enum_generate): added "type-name",
2011 "get-type" and "deprecated" missing arguments.
2012 * tests/parser/Foo-expected.gidl:
2013 * tests/parser/foo-object.h: test enum type, and no type.
2015 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
2018 Consistent checks, add missing 'test'
2020 2008-03-05 Havoc Pennington <hp@redhat.com>
2022 * configure.ac: Take advantage of a libffi.pc if one exists, as it
2023 does on Fedora 8. Make libffi a hard requirement, since it was in
2024 practice anyway (was not really conditional in the code or
2025 makefile, only in configure).
2027 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2029 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
2030 reviewed by: Johan Dahlin <johan@gnome.org>
2032 * tests/Makefile.am:
2033 * tests/roundtrips.sh:
2034 Modify the roundtrips test so that they do not use the
2035 --raw option of the gidl compiler but instead compile a
2036 shared library to use with g_module.
2038 * tests/invoke/Makefile.am:
2039 * tests/invoke/invoke.c:
2040 Modify the invoke tests to build a shared library rather
2041 than use the --raw option.
2043 * tests/invoke/invoke-namespace-find.sh: Removed:
2044 Noone knows why this was here, so removed.
2046 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
2048 * tools/scanner.c: (g_igenerator_process_function_symbol):
2049 Move g_idl_node_can_have_member test later, as it broke spotting
2050 get_type's for nodes that can't have members.
2052 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2055 * tools/gidlnode.c: (g_idl_node_can_have_member):
2056 Add g_idl_node_can_have_member.
2058 * tools/scanner.c: (g_igenerator_process_function_symbol):
2059 Use g_idl_node_can_have_member to test if we should add a function
2060 as a member of the type node.
2062 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2064 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
2066 * tests/parser/Makefile.am:
2067 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
2069 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2071 * tools/scanner.c: (main):
2072 Ignore -pthread when passed to g-idl-scanner.
2074 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2076 * tools/grealpath.h: Added:
2077 * tools/scanner.c: (main):
2078 * tools/scannerlexer.l:
2079 * tools/Makefile.am:
2080 Always use absolute paths with symbolic links resolved when
2081 comparing filenames.
2083 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2085 * gobject-introspection.pc.in:
2086 Provide variables for g-idl-parser, scanner and compiler in the
2089 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
2092 * girepository/Makefile.am:
2093 * tools/Makefile.am:
2094 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
2096 2008-02-10 Johan Dahlin <johan@gnome.org>
2098 * tests/parser/Foo-expected.gidl:
2099 * tests/parser/foo-object.h:
2100 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
2101 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
2104 2008-02-10 Johan Dahlin <johan@gnome.org>
2106 * tests/parser/Foo-expected.gidl:
2107 * tests/parser/foo-object.h:
2108 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
2109 Add enum and flags test.
2111 2008-02-10 Johan Dahlin <johan@gnome.org>
2115 * girepository/Makefile.am:
2116 Make 'make distcheck' work again.
2118 2008-02-10 Johan Dahlin <johan@gnome.org>
2120 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
2123 * tests/parser/Makefile.am: Only create Foo.gidl when running make
2124 check, eg exclude it from BUILT_SOURCES.
2126 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2131 * girepository/Makefile.am:
2132 * m4/Makefile.am: Added:
2133 * m4/as-compiler-flag.m4: Added:
2134 * m4/gcov.m4: Added:
2135 * tools/Makefile.am:
2136 Add ability to generate a coverage report.
2137 Adds configure option --enable-gcov and make rule 'check-coverage'.
2139 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2143 * gidl/Makefile.am: Added:
2144 * girepository/Makefile.am: Added:
2145 * src/Makefile.am: Renamed to tools/Makefile.am:
2146 * src/compiler.c: Renamed to tools/compiler.c:
2147 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
2148 * src/generate.c: Renamed to tools/generate.c:
2149 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
2150 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
2151 * src/gidlnode.c: Renamed to tools/gidlnode.c:
2152 * src/gidlnode.h: Renamed to tools/gidlnode.h:
2153 * src/gidlparser.c: Renamed to tools/gidlparser.c:
2154 * src/gidlparser.h: Renamed to tools/gidlparser.h:
2155 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
2156 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
2157 * src/ginfo.c: Renamed to girepository/ginfo.c:
2158 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
2159 * src/girepository.c: Renamed to girepository/girepository.c:
2160 * src/girepository.h: Renamed to girepository/girepository.h:
2161 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
2162 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
2163 * src/scanner.c: Renamed to tools/scanner.c:
2164 * src/scanner.h: Renamed to tools/scanner.h:
2165 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
2166 * src/scannerparser.y: Renamed to tools/scannerparser.y:
2167 * tests/invoke/Makefile.am:
2168 Split src/ into girepository/ and tools/
2172 * girepository/Makefile.am:
2173 * tests/Makefile.am:
2174 * tests/invoke/Makefile.am:
2175 * tests/parser/Makefile.am:
2176 * tests/roundtrips.sh:
2177 * tools/Makefile.am:
2178 Make distcheck work.
2180 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
2182 * tests/invoke/invoke.c: (main):
2183 * tests/invoke/testfns.c: (test6), (test7):
2184 * tests/invoke/testfns.xml:
2185 Add tests for invokation with a GList argument.
2186 Also tests caller-owns return values.
2188 2008-02-04 Rob Taylor <robtaylor@floopily.org>
2191 Add some documentation for GICallableInfo
2193 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
2196 Correct syntax errors in the DTD file.
2198 * relaxng/c-types.xml:
2199 * relaxng/g-types.xml:
2201 Add a RelaxNG specification for the GObject Introspection XML data.
2202 The Specification has validated all of the test files.
2204 2008-01-25 Rob Taylor <robtaylor@floopily.org>
2206 * tests/roundtrips.sh:
2207 * tests/struct.test:
2208 Add roundtrip tests for structs.
2210 2008-01-11 Johan Dahlin <johan@gnome.org>
2212 * src/scanner.c (g_igenerator_process_function_symbol):
2213 Refactor out g_idle_node_add_member.
2214 (create_node_from_gtype, create_node_from_ctype):
2215 Use case instead of if...else
2216 (get_type_from_type_id):
2217 Rename to create_node_from_gtype
2218 (get_type_from_ctype):
2219 Rename to create_node_from_ctype
2221 Rename ginode -> node, gitype -> type, gifunc -> func.
2223 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
2224 Two new functions, refactor out of scanner.c
2226 * src/scanner.c: (g_igenerator_process_function_symbol):
2227 * src/scannerlexer.l:
2228 Do not save the content of the deprecated variable, only
2231 2008-01-11 Johan Dahlin <johan@gnome.org>
2233 * tests/parser/foo-object.h: Add a couple of comment parser tests.
2235 2008-01-11 Jürg Billeter <j@bitron.ch>
2237 * src/scannerlexer.l:
2238 Fix GTK-Doc parsing.
2240 2008-01-11 Jürg Billeter <j@bitron.ch>
2242 * src/scannerlexer.l:
2243 Fix GTK-Doc parsing.
2245 2008-01-11 Jürg Billeter <j@bitron.ch>
2247 * src/scanner.c: (lookup_symbol):
2248 Return unresolved name if we find unknown symbol.
2250 2008-01-11 Jürg Billeter <j@bitron.ch>
2252 * src/scanner.c: (g_igenerator_generate):
2253 Initialize GObject to fix scanning interface properties.
2255 * tests/parser/Foo-expected.gidl:
2256 * tests/parser/foo-object.h:
2257 * tests/parser/foo.c: (foo_interface_get_type):
2258 Test interfaces with GObject prerequisite.
2260 * tests/parser/Makefile.am:
2261 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
2263 2007-12-27 Johan Dahlin <johan@gnome.org>
2265 * src/scannerlexer.l:
2266 Parse gtk-doc comments.
2268 * src/gidlwriter.c: (function_generate):
2269 Reorganize, avoid duplication and add support for
2270 writing deprecated functions.
2272 * src/scannerparser.y:
2274 Add new structure CDirective and functions to create/free them.
2276 * src/scanner.c: (g_igenerator_process_function_symbol),
2277 (g_igenerator_process_unregistered_struct_typedef),
2278 (g_igenerator_process_struct_typedef),
2279 (g_igenerator_process_union_typedef),
2280 (g_igenerator_process_enum_typedef),
2281 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
2282 (g_igenerator_start_preprocessor):
2283 Parse @deprecated directive for functions.
2284 Remove some more C99isms.
2285 Send in -C to cpp to avoid stripping comments.
2287 * tests/parser/foo-object.h:
2288 * tests/parser/Foo-expected.gidl:
2289 Add deprecated directive
2291 2007-12-27 Johan Dahlin <johan@gnome.org>
2293 * src/scannerlexer.l (intsuffix): Add emacs mode line and
2294 escape ' and " so it looks more like C.
2297 Unlink temporary file used.
2299 2007-12-27 Johan Dahlin <johan@gnome.org>
2301 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
2302 (g_igenerator_start_preprocessor), (main):
2304 * src/scannerparser.y:
2305 Plug a couple of simple memory leaks.
2307 2007-12-27 Johan Dahlin <johan@gnome.org>
2309 * src/scanner.c: (g_igenerator_parse_macros),
2310 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
2313 * src/scannerparser.y:
2314 * tests/parser/Makefile.am:
2316 Improve error reporting, return when the preprocessor fails.
2317 Add a verbose parameter, to aid debugging.
2318 Revert to using a temporary file to communicate between the
2319 preprocessor and the parser, because we need to wait for
2320 the exit code from the pre-processor before starting to parse.
2322 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
2324 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
2325 cparser.y to scannerparser.y
2327 2007-12-11 Johan Dahlin <johan@gnome.org>
2331 * src/scanner.c: (g_igenerator_new):
2333 Get rid of the global the_generator variable.
2335 2007-12-10 Johan Dahlin <johan@gnome.org>
2337 * src/scanner.c (main): Add an output option,
2338 add checks for required parameters
2341 set BUILD_SOURCES and CLEANFILES properly
2343 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
2344 (g_writer_write_indent), (g_writer_write_unindent),
2345 (field_generate), (value_generate), (constant_generate),
2346 (property_generate), (function_generate), (vfunc_generate),
2347 (signal_generate), (interface_generate), (struct_generate),
2348 (union_generate), (boxed_generate), (enum_generate),
2349 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
2351 * src/scanner.c: (g_igenerator_generate):
2353 * src/scannerwriter.c:
2355 Refactor scannerwriter to only be tied to a GIdlModule and move
2356 it (again!) to gidlwriter.c. Change the writer function to take
2359 2007-12-10 Johan Dahlin <johan@gnome.org>
2362 * src/scanner.c: (g_igenerator_generate):
2364 * src/scannerwriter.c: (g_igenerator_write_inline),
2365 (g_igenerator_write), (g_igenerator_write_indent),
2366 (g_igenerator_write_unindent), (field_generate), (value_generate),
2367 (constant_generate), (property_generate), (function_generate),
2368 (vfunc_generate), (signal_generate), (interface_generate),
2369 (struct_generate), (union_generate), (boxed_generate),
2370 (enum_generate), (node_generate), (module_generate),
2371 (g_scanner_write_file):
2373 Move the scanner gidl writing to a separate source file.
2375 2007-12-10 Johan Dahlin <johan@gnome.org>
2380 Move over all CType construction functions.
2382 * tests/parser/Makefile.am:
2383 Be verbose when printing parsing tests results.
2385 2007-12-10 Johan Dahlin <johan@gnome.org>
2387 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
2388 preprocessor handling to here. Start cpp insteado of cc -E,
2389 always include -U__GNUC__, since it's specific to the preprocessor
2392 * tests/parser/Makefile.am (check-local): Silent diff and skip
2393 -U__GNUC__ which is always defined now
2395 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
2397 reviewed by: <delete if not using a buddy>
2399 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
2400 * tests/parser/Makefile.am:
2402 2007-12-09 Johan Dahlin <johan@gnome.org>
2405 Use GOption for command line options.
2406 (g_igenerator_new, main): Simplify constructor and they way
2407 parameters are passed into it.
2413 * src/gen-introspect.c:
2414 * src/gen-introspect.h:
2416 Rename gen-introspect.[ch] to scanner.[ch]
2418 2007-12-09 Johan Dahlin <johan@gnome.org>
2422 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
2423 don't make the repository library and the other utilites link against
2426 * src/gen-introspect.c: (g_igenerator_create_object),
2427 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2428 (g_igenerator_create_enum), (g_igenerator_create_flags),
2429 (g_igenerator_process_module_symbol),
2430 (g_igenerator_process_module), (g_igenerator_generate), (main):
2431 * src/gen-introspect.h:
2432 Refactor g_igenerator_process_types into smaller pieces.
2434 * tests/parser/Makefile.am:
2435 Depend on the gen-introspect binary
2437 2007-12-09 Johan Dahlin <johan@gnome.org>
2439 * src/gen-introspect.c (g_igenerator_process_types):
2440 Break into smaller pieces, one for each generated node type.
2442 2007-12-08 Johan Dahlin <johan@gnome.org>
2444 * src/gen-introspect.c: (g_igenerator_process_types),
2445 (g_igenerator_add_module):
2446 * tests/parser/Foo-expected.gidl:
2447 * tests/parser/foo-object.h:
2448 * tests/parser/foo.c: (foo_subobject_class_init),
2449 (foo_subobject_init):
2451 Add a subobject test and make sure to register defined classes
2452 in the lookup symbol hash table.
2454 2007-12-08 Johan Dahlin <johan@gnome.org>
2458 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
2459 (g_igenerator_process_types), (g_igenerator_add_module),
2460 (g_igenerator_add_include_idl), (main):
2461 * src/gen-introspect.h:
2462 * tests/parser/Makefile.am:
2463 * tests/parser/Foo-expected.gidl:
2465 Change the gen-introspect to generate namespaced module names,
2466 such as GLib.Object instead of GObject.
2467 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
2468 add a --include-idl parameter to gen-introspect,
2469 and update the parser test.
2471 2007-12-08 Johan Dahlin <johan@gnome.org>
2473 * src/gen-introspect.c:
2474 Move main to the end of the file and attempt to make it valid
2477 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
2478 we're not quite ready to generate metadata yet.
2483 Add a simple gen-introspect parser test
2485 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
2487 reviewed by: Johan Dahlin <johan@gnome.org>
2490 * gobject-introspection.pc.in:
2492 * src/compiler.c: (format_output), (write_out_metadata), (main):
2493 * src/gen-introspect.c: (main):
2494 * src/gen-introspect.h:
2495 * src/generate.c: (write_callable_info), (write_repository),
2496 (load_metadata), (main):
2497 * src/gidlmodule.c: (g_idl_module_new),
2498 (g_idl_module_build_metadata):
2500 * src/gidlparser.c: (start_element_handler):
2501 * src/ginfo.c: (g_info_new), (g_info_from_entry),
2502 (g_base_info_get_name), (g_base_info_get_namespace),
2503 (g_base_info_is_deprecated), (g_base_info_get_annotation),
2504 (g_base_info_get_metadata), (g_function_info_get_symbol),
2505 (g_function_info_get_flags), (g_function_info_get_property),
2506 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
2507 (g_callable_info_may_return_null),
2508 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
2509 (g_callable_info_get_arg), (g_arg_info_get_direction),
2510 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
2511 (g_arg_info_is_optional), (g_arg_info_may_be_null),
2512 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
2513 (g_type_info_get_tag), (g_type_info_get_param_type),
2514 (g_type_info_get_interface), (g_type_info_get_array_length),
2515 (g_type_info_is_zero_terminated),
2516 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
2517 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
2518 (g_value_info_get_value), (g_field_info_get_flags),
2519 (g_field_info_get_size), (g_field_info_get_offset),
2520 (g_registered_type_info_get_type_name),
2521 (g_registered_type_info_get_type_init),
2522 (g_struct_info_get_n_fields), (g_struct_info_get_field),
2523 (g_struct_info_get_n_methods), (g_struct_info_get_method),
2524 (find_method), (g_struct_info_find_method),
2525 (g_enum_info_get_n_values), (g_enum_info_get_value),
2526 (g_object_info_get_parent), (g_object_info_get_type_name),
2527 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
2528 (g_object_info_get_interface), (g_object_info_get_n_fields),
2529 (g_object_info_get_field), (g_object_info_get_n_properties),
2530 (g_object_info_get_property), (g_object_info_get_n_methods),
2531 (g_object_info_get_method), (g_object_info_find_method),
2532 (g_object_info_get_n_signals), (g_object_info_get_signal),
2533 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
2534 (g_object_info_get_n_constants), (g_object_info_get_constant),
2535 (g_interface_info_get_n_prerequisites),
2536 (g_interface_info_get_prerequisite),
2537 (g_interface_info_get_n_properties),
2538 (g_interface_info_get_property), (g_interface_info_get_n_methods),
2539 (g_interface_info_get_method), (g_interface_info_find_method),
2540 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
2541 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
2542 (g_interface_info_get_n_constants),
2543 (g_interface_info_get_constant), (g_property_info_get_flags),
2544 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
2545 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
2546 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
2547 (g_constant_info_get_value), (g_union_info_get_n_fields),
2548 (g_union_info_get_field), (g_union_info_get_n_methods),
2549 (g_union_info_get_method), (g_union_info_is_discriminated),
2550 (g_union_info_get_discriminator_offset),
2551 (g_union_info_get_discriminator):
2552 * src/ginvoke.c: (g_function_info_invoke):
2553 * src/girepository.c: (g_irepository_register),
2554 (g_irepository_unregister), (g_irepository_get_default),
2555 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
2556 (g_irepository_get_info), (g_irepository_find_by_name),
2557 (g_irepository_get_shared_library),
2558 (g_irepository_build_search_path), (g_irepository_register_file),
2559 (g_irepository_error_quark):
2560 * src/girepository.h:
2561 * src/gmetadata.c: (g_metadata_get_dir_entry),
2562 (g_metadata_check_sanity), (validate_header),
2563 (validate_array_type_blob), (validate_iface_type_blob),
2564 (validate_param_type_blob), (validate_error_type_blob),
2565 (validate_type_blob), (validate_arg_blob),
2566 (validate_signature_blob), (validate_function_blob),
2567 (validate_callback_blob), (validate_constant_blob),
2568 (validate_value_blob), (validate_field_blob),
2569 (validate_property_blob), (validate_signal_blob),
2570 (validate_vfunc_blob), (validate_struct_blob),
2571 (validate_enum_blob), (validate_object_blob),
2572 (validate_interface_blob), (validate_errordomain_blob),
2573 (validate_union_blob), (validate_blob), (validate_directory),
2574 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
2575 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
2576 (g_metadata_new_from_mapped_file), (g_metadata_free),
2577 (g_metadata_set_module), (g_metadata_get_namespace):
2579 * tests/Makefile.am:
2580 * tests/invoke/Makefile.am:
2581 * tests/invoke/invoke-namespace-find.sh:
2582 * tests/invoke/invoke.c: (main):
2584 Add a namespace/shared library mapping. fixes #313268.
2586 2007-12-03 Johan Dahlin <johan@gnome.org>
2588 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
2591 2007-11-30 Jürg Billeter <j@bitron.ch>
2597 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
2598 (g_igenerator_write_inline), (g_igenerator_write),
2599 (g_igenerator_write_indent), (g_igenerator_write_unindent),
2600 (field_generate), (value_generate), (constant_generate),
2601 (property_generate), (function_generate), (vfunc_generate),
2602 (signal_generate), (interface_generate), (struct_generate),
2603 (union_generate), (boxed_generate), (enum_generate),
2604 (node_generate), (module_generate), (get_type_from_type_id),
2605 (str_replace), (g_igenerator_process_properties),
2606 (g_igenerator_process_signals), (g_igenerator_process_types),
2607 (get_type_from_ctype), (g_igenerator_process_function_symbol),
2608 (g_igenerator_process_unregistered_struct_typedef),
2609 (g_igenerator_process_struct_typedef),
2610 (g_igenerator_process_union_typedef),
2611 (g_igenerator_process_enum_typedef),
2612 (g_igenerator_process_function_typedef),
2613 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2614 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
2615 (g_igenerator_generate), (main), (csymbol_new),
2616 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
2617 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
2618 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
2619 (eat_hspace), (eat_line), (read_identifier),
2620 (g_igenerator_parse_macros):
2621 * src/gen-introspect.h:
2623 Import gen-introspect to generate introspection information by
2626 2007-11-30 Jürg Billeter <j@bitron.ch>
2628 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
2630 2007-11-30 Jürg Billeter <j@bitron.ch>
2632 * src/gidlparser.c: (end_element_handler): Don't leave requires
2635 2007-11-29 Johan Dahlin <johan@gnome.org>
2637 * src/gidlparser.c (parse_type_internal): Add char,
2638 gchar and guchar to the builtin types.
2640 2007-11-26 Johan Dahlin <johan@gnome.org>
2642 * src/ginfo.c: (g_object_info_get_type_name),
2643 (g_object_info_get_type_init):
2644 * src/girepository.c: (g_irepository_is_registered):
2645 * src/girepository.h:
2647 Add g_object_info_get_type_name, g_object_info_get_type_init and
2648 g_irepository_is_registered.
2650 2006-08-14 Jürg Billeter <j@bitron.ch>
2652 * src/gidlparser.c: (end_element_handler): Don't leave
2653 namespace and implements states too early.
2656 2007-11-26 Johan Dahlin <johan@gnome.org>
2658 * src/gmetadata.c (validate_struct_blob):
2659 pass blob_type to validate_function_blob instead of
2660 hard-coding BLOB_TYPE_STRUCT.
2662 Patch by Torsten Schoenfeld, fixes #314190
2664 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
2666 * src/compiler.c, src/generate.c, src/gidlnode.c,
2667 src/gidlparser.c, src/ginfo.c, src/girepository.c,
2668 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
2669 warnings about return values, signedness mismatches, unused
2670 variables, and unhandles enum values in switch statements.
2672 * tests/invoke/Makefile.am: Don't install the invoke test program.
2673 Add -I ../../src to the cflags used for the test functions files.
2675 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2677 * src/girepository.h: Export g_invoke_error_quark.
2679 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2681 * src/ginvoke.c: Remove the fallback implementation of
2682 g_function_info_invoke since we now formally depend on libffi.
2684 2005-07-25 Matthias Clasen <mclasen@redhat.com>
2686 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
2687 Remove these files from cvs, as they are now generated.
2689 * src/gmetadata.c (validate_iface_type_blob): Don't
2690 complain if blob->pointer is not set, since that
2691 happens for enum and flag types. (#308935, Gustavo
2694 * Commit an autoconf-conversion patch by
2695 Gustavo Carneiro (#308708)
2697 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2699 * src/compiler.c (main): Use it here to validate
2700 the generated metadata.
2702 * src/gmetadata.[hc]: Add code to validate a
2705 * metadata-format.txt: Updates
2707 2005-05-22 Matthias Clasen <mclasen@redhat.com>
2709 * tests/*: Add struct offsets to field and vfunc
2712 * src/generate.c (write_vfunc_info): Write offset
2713 information for vfuncs.
2715 * src/gidlnode.c (g_idl_node_build_metadata): Write
2716 the struct offsets into the metadata.
2718 * src/gidlparser.c: Parse the offset attributes of
2719 field and vfunc elements.
2721 * src/gidlnode.h: Add offset members to field and
2724 2005-05-21 Matthias Clasen <mclasen@redhat.com>
2728 * gidl.dtd: Updates.
2730 * src/g-idl-offsets.pl: A perl script which reads a .gidl
2731 file, creates, compiles and runs a C file, and folds the
2732 resulting struct offsets back into the .gidl file.
2734 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2736 * src/gidlparser.c (start_field): Make fields in objects
2739 * src/gidlmodule.c: Include string.h
2744 * metadata-format.txt: Cleanup basic types.
2745 * src/*: Adapt to the changes.
2746 * tests/*: Adapt to the changes.
2747 * examples/gdk-pixbuf.gidl: Adapt to the changes.
2749 * src/gidlnode.c (g_idl_node_get_size): Report the correct
2750 size for enum blobs.
2751 (g_idl_node_get_full_size): Report the correct size for
2754 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
2755 error checking for blob sizes.
2757 2005-05-19 Matthias Clasen <mclasen@redhat.com>
2759 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
2760 interface types for which is_pointer is FALSE, e.g. enums.
2762 * src/gidlnode.c (g_idl_node_get_full_size)
2763 * src/gidlparser.c (parse_type_internal):
2764 * src/generate.c (write_type_info): Support unspecialized
2765 lists, hashtables and errors. Also emit a '*' after these.
2769 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2773 * metadata-format.txt: Cleanups by Maciej Katafiasz.
2775 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2777 * src/*.c: Change the directory to be addressed by
2778 1-based indexes, and use an index of zero to mean
2781 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2783 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
2785 * tests/union.test: Add a union test.
2787 * src/generate.c: Handle unions.
2789 * src/girepository.h:
2790 * src/ginfo.c: Add GIUnionInfo and functions to access it.
2792 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
2794 * src/gidlparser.c (start_union): Parse <union> elements.
2796 * src/gidlnode.h: Add a GIdlNodeUnion.
2798 * gidl.dtd: Add a <union> element.
2800 * src/gmetadata.c (g_metadata_check_sanity): Check
2803 * src/gmetadata.h: Add union_blob_size to Header,
2806 * metadata-format.txt: Add a UnionBlob.
2808 2005-05-13 Matthias Clasen <mclasen@redhat.com>
2810 * tests/*: Update testcases.
2812 * src/generate.c (write_callable_info): Don't forget to
2813 write transfer and null-ok attributes for return types
2816 * src/girepository.h:
2817 * src/ginfo.c (g_callable_info_may_return_null):
2818 New function to find out if a function may return NULL.
2820 * src/compiler.c (format_output): Make the generated
2823 * README: Point to a recent libffi snapshot.
2825 * tests/invoke/*: Some invoke tests.
2827 * src/Makefile: Add ginvoke.c and the necessary
2830 * src/girepository.h (g_function_info_invoke): Add
2833 * src/ginvoke.c (g_function_info_invoke): Initial
2834 implementation of invoke functionality based on libffi.
2836 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
2837 strings and types hash tables in the right order when
2839 (find_entry_node): Free the name parts.
2841 2005-05-12 Johan Dahlin <johan@gnome.org>
2843 * src/generate.c: Generate consistent end tags.
2847 2005-05-12 Matthias Clasen <mclasen@redhat.com>
2851 * src/gidlparser.c (start_function): Actually add
2852 methods to objects. (Steven Walter)
2854 * src/girepository.h:
2855 * src/ginfo.c: Rename Transfer and Direction to
2856 GITransfer and GIDirection. (Torsten Schoenfeld)
2858 * tests/*: Make tests work with the changes in name
2861 * src/gidlnode.c (find_entry_node): Parse qualified
2862 names and generate xref nodes for them if needed. Don't
2863 require all modules to be loaded any more.
2865 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
2868 * src/ginfo.c (g_object_info_get_parent): Return NULL
2869 if blob->parent is 0. Still need to make sure index
2872 * src/generate.c: Generate qualified names when
2873 referring to non-local types. Emit transfer attribute
2876 * src/compiler.c (format_output): Put the function
2877 attributes where gcc accepts them.
2879 2005-05-11 Matthias Clasen <mclasen@redhat.com>
2881 * src/compiler.c (main): Add a --verbose cmdline option
2882 and only log messages if it is specified.
2885 * src/gidlnode.c (init_stats, dump_stats): Collect some
2886 statistics on string and type sharing.
2888 * src/gidlmodule.c (g_idl_module_build_metadata): Use
2889 g_message() instead of fprintf().
2891 * src/gidlnode.c (g_idl_node_free): Make this more robust.
2892 (g_idl_node_get_size): Implement for structs.
2893 (g_idl_node_get_full_size): Handle parent being NULL.
2894 (serialize_type): Handle lookup failures more gracefully.
2896 2005-05-10 Matthias Clasen <mclasen@redhat.com>
2898 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
2899 size calculation for 2-parameter types and for objects.
2901 * src/compiler.c: Add a cmdline option for debug output
2902 and install a log handler to implement it.
2903 * src/gidlnode.c: Add some debug spew.
2907 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
2908 forget to count the module name when calculating the
2909 required size for the metadata.
2912 * src/gidlparser.c: Fix compiler warnings.
2914 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2916 * src/compiler.c (main): Free the option context.
2918 * gidl.dtd: Clean up handling of names. All elements
2919 have a "name", only the elements corresponding to
2920 actual callable functions (function, method, constructor),
2921 have an additional "symbol" attribute holding the
2922 dlsym()-able function name.
2924 * src/generate.c: Adapt to generate xml matching the
2928 * src/gidlnode.c: Adapt to parse the new dtd.
2930 * tests/*.test: Adjust to the new dtd.
2932 * metadata-format.txt:
2933 * src/gmetadata.h: Remove the short_name field
2935 * src/gmetadata.c: Shrink size of ValueBlob to 12.
2936 * src/girepository.h:
2937 * src/ginfo.c (g_value_info_get_short_name): Removed
2939 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2941 * gidl.dtd: Allow constructors for boxed types,
2942 patch by Jonathan Blandford.
2945 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2947 * --- Initial import ---