1 2008-08-22 Johan Dahlin <johan@gnome.org>
3 * giscanner/sourcescanner.py:
4 Check for ../gobject-introspection-1.0.pc.in to determine
5 if we run installed or uninstalled.
7 2008-08-22 Johan Dahlin <johan@gnome.org>
10 * giscanner/sourcescanner.py:
11 Send in undefs/defines via writing it directly to stdin
12 of cpp instead of via arguments.
14 2008-08-22 Colin Walters <walters@verbum.org>
16 * tools/generate.c, tools/compiler.c: Default
18 * all Makefile.am: Update.
20 2008-08-22 Colin Walters <walters@verbum.org>
22 * girepository/girparser.c: Pass through
23 recursive types. Avoid overwriting errors.
24 * giscanner/xmlwriter.py: Always write the
26 * tests/*.gir: Adjust.
27 * tests/scanner/Makefile.am: Build typelibs,
28 and generate XML from those. Once we
29 have a good diff mechanism...
30 * tests/scanner/*-expected.gir: Add XML
32 * tools/g-ir-scanner: Accept --typelib-xml
34 * tools/generate.c: Better defaults for transfer.
36 2008-08-22 Johan Dahlin <johan@gnome.org>
40 * giscanner/Makefile.am:
41 * giscanner/config.py.in:
42 * giscanner/sourcescanner.py:
43 Use the generated glibconfig.h for all scanner invokations.
44 Rename it to glibconfig-scanner.h and install it.
45 Add a config.py which so far contains the include dir.
47 2008-08-22 Johan Dahlin <johan@gnome.org>
50 Replace glibconfig.h with our own, do some replacement
51 for CPP/C features we do not support
53 2008-08-22 Colin Walters <walters@verbum.org>
55 * tools/generate.c (write_callable_info): Fix unref
58 2008-08-22 Colin Walters <walters@verbum.org>
60 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
61 * tests/Makefile.am: Support $(DEBUG)
62 * tools/generate.c: Do immediate close tags if no
65 2008-08-21 Colin Walters <walters@verbum.org>
67 * tests/scanner/drawable-expected.gir,
68 * tests/scanner/drawable.c,
69 * tests/scanner/drawable.h:
72 2008-08-21 Colin Walters <walters@verbum.org>
74 * giscanner/glibtransformer.py: Compute prefix
75 by searching through the symbol for bits
76 rather than going directly from ctype; this fixes
79 2008-08-21 Colin Walters <walters@verbum.org>
81 * giscanner/glibtransformer.py: Also try squashing
82 underscores from namespace, fixes webkit_web_view_new.
84 2008-08-21 Colin Walters <walters@verbum.org>
86 * giscanner/glibtransformer.py: More ctor work,
87 avoid having gtk_window_group_new end up under
90 2008-08-21 Colin Walters <walters@verbum.org>
92 * giscanner/glibtransformer.py: Much simpler approach
93 of mapping uscored names to classes.
94 * giscanner/utils.py: Remove unnecessary function.
96 2008-08-21 Johan Dahlin <johan@gnome.org>
98 * girepository/girepository.c (g_irepository_require):
99 Plug memory leak and avoid using freed memory.
100 Resolve the whole module path, here as well.
102 2008-08-21 Colin Walters <walters@verbum.org>
104 * giscanner/glibtransformer.py: Look up all permutations
105 of class names when scanning methods/ctors based on
106 the prefix instead of using the return value. This
107 associates gtk_window_new with the right class.
109 2008-08-21 Colin Walters <walters@verbum.org>
111 * girepository/girmodule.c (g_ir_module_build_typelib):
112 Revert change to increment header_size; we do that in
115 2008-08-21 Colin Walters <walters@verbum.org>
117 * girepository/girnode.c (write_string): Tweak to
118 use UINT instead of INT. Not likely to matter.
119 * girepository/girmodule.c (g_ir_module_build_typelib):
120 Add to header_offset as well for header strings
121 to match what write_string does.
122 * girepository/gtypelib.c: Replace is_name with
123 validate_name, which more strongly validates and
124 handles errors in a better way. Update all callers.
125 * giscanner/glibtransformer.py: Handle constructors
128 2008-08-21 Johan Dahlin <johan@gnome.org>
130 * gir/Makefile.am (typelibs_DATA): Build and
131 install the Gio.typelib too
133 * girepository/gtypelib.c (_g_typelib_init):
134 Use g_module_build_path to resolve the shlib name
136 2008-08-21 Colin Walters <walters@verbum.org>
138 * gir/Makefile.am: CLEANFILES typelibs too.
140 2008-08-21 Johan Dahlin <johan@gnome.org>
142 * giscanner/glibtransformer.py:
143 Do not send .la files through find_library.
145 2008-08-21 Colin Walters <walters@verbum.org>
147 * girepository/girparser.c (g_irepository_require):
148 Fix one small leak in error case.
150 2008-08-21 Johan Dahlin <johan@gnome.org>
153 Parse glibconfig.h as well and install the compiled
156 2008-08-21 Johan Dahlin <johan@gnome.org>
159 * giscanner/glibtransformer.py:
160 * tools/g-ir-scanner:
161 Do not hard-core library names in the Makefile, reuse
162 ctypes find_library instead.
164 2008-08-21 Johan Dahlin <johan@gnome.org>
166 * girepository/girparser.c (resolve_aliases):
167 Remove compilation warnings
169 2008-08-21 Johan Dahlin <johan@gnome.org>
171 * girepository/girepository.c (g_irepository_require):
172 Rewrap and fix double free bug by leaking a bit.
174 2008-08-20 Colin Walters <walters@verbum.org>
176 * girepository/girepository.c: Add new function
177 g_irepository_get_typelib_path which tells
178 us from where we loaded a namespace.
180 2008-08-20 Colin Walters <walters@verbum.org>
182 * tests/scanner/*-expected.gir: Adjust for
183 added shared-library.
184 * giscanner/giwriter.py: Make pylint happy.
186 2008-08-20 Colin Walters <walters@verbum.org>
188 * girepository/girmodule.c (g_ir_module_build_typelib):
189 Calculate size correctly, avoid use-after-free.
191 2008-08-20 Colin Walters <walters@verbum.org>
193 * girepository/girepository.c: Remove
194 g_irepository_register_file in favor of
195 g_irepository_require. There are two
196 possible deployment scenarios for typelibs:
197 First, separate in $DATADIR/gitypelibs/. Second,
198 they may be embedded in shlibs. However since
199 the first is now the normal case, the API is
202 Refactor internals to look up typelibs for
203 namespaces just-in-time, but we expect
204 consumers to call g_irepository_require.
206 Also, add some docs. No one has died from that
208 * gir/Makefile.am: Need --library for glib.
209 * giscanner/girwriter.py: Write out shared-library.
210 * tools/g-ir-writer: Take the first --library
211 argument as the target of shared-library. In
212 the future we should make this nicer with pkg-config
215 2008-08-20 Colin Walters <walters@verbum.org>
217 * girepository/girparser.py: And parse them.
219 2008-08-20 Johan Dahlin <johan@gnome.org>
221 * giscanner/glibast.py: Add gshort/gushort types
223 2008-08-20 Colin Walters <walters@verbum.org>
225 * gir/Makefile.am: Rename .gir files using GI namespace.
226 * girepository/girepository.c: Use XDG_DATA_DIRS for
227 looking up typelibs. Also typelibs are now suffixed
229 * tests/invoke/Makefile.am: Only use metadata.
230 * girepository/Makefile.am: Remove unnecessary include.
231 * tests/scanner/Makefile.am: Update using GI namespaces
232 for scanner includes.
234 2008-08-20 Colin Walters <walters@verbum.org>
236 * girepository/transformer.py: Suppress aliases whose
238 * girepository/ast.py: Define some more aliases.
240 2008-08-20 Colin Walters <walters@verbum.org>
242 * girepository/girparser.c: Avoid alias infloops.
244 2008-08-20 Colin Walters <walters@verbum.org>
246 * tests/scanner/foo-expected.gir: Fix expected list type.
248 2008-08-20 Johan Dahlin <johan@gnome.org>
250 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
251 Add a workaround for #548689.
252 We can now compile gtk!
254 2008-08-20 Colin Walters <walters@verbum.org>
256 * giscanner/glibtransformer.py: Try to look up
257 aliases using the c:type too.
259 2008-08-20 Colin Walters <walters@verbum.org>
261 * girepository/girparser.c: Parse union fields.
263 2008-08-20 Johan Dahlin <johan@gnome.org>
265 * giscanner/ast.py: Make time_t an alias for long
267 * gir/gio-2.0-good.gir:
268 * gir/glib-2.0-good.gir:
269 * gir/gobject-2.0-good.gir:
271 * giscanner/glibtransformer.py:
272 Do not delete Class structures, we need them in gdk/gtk.
273 * tests/scanner/drawable-expected.gir:
274 * tests/scanner/foo-expected.gir:
275 * tests/scanner/utility-expected.gir:
278 2008-08-20 Johan Dahlin <johan@gnome.org>
280 * tests/scanner/Makefile.am:
281 * tests/scanner/annotation-expected.gir:
282 * tests/scanner/annotation.c (annotation_object_class_init),
283 (annotation_object_init), (annotation_object_method),
284 (annotation_object_in), (annotation_object_out),
285 (annotation_object_inout), (annotation_object_inout2),
286 (annotation_object_inout3), (annotation_object_calleeowns),
287 (annotation_object_calleesowns), (annotation_object_get_strings),
288 (annotation_object_with_voidp), (annotation_object_get_objects),
289 (annotation_object_create_object), (annotation_object_allow_none):
290 * tests/scanner/annotation.h:
291 * tests/scanner/foo-expected.gir:
292 * tests/scanner/foo.c:
293 * tests/scanner/foo.h:
294 Split out annotation tests out of foo
296 2008-08-20 Johan Dahlin <johan@gnome.org>
298 * tests/scanner/Foo-expected.gir:
299 * tests/scanner/Makefile.am:
300 * tests/scanner/foo-expected.gir:
301 * tests/scanner/foo-object.h:
302 * tests/scanner/foo.c:
303 Foo->foo, foo-object.h -> foo.h
305 2008-08-20 Johan Dahlin <johan@gnome.org>
307 * tests/scanner/Foo-expected.gir:
308 * tests/scanner/Makefile.am:
309 * tests/scanner/drawable-expected.gir:
310 * tests/scanner/drawable.c (test_drawable_class_init),
311 (test_drawable_init):
312 * tests/scanner/drawable.h:
313 * tests/scanner/foo-object.h:
314 * tests/scanner/foo.c (foo_boxed_method):
315 Move the drawable parts out of Foo to its own test.
317 2008-08-20 Johan Dahlin <johan@gnome.org>
319 * tests/scanner/Foo-expected.gir:
320 * tests/scanner/foo-object.h:
321 * tests/scanner/foo.c (foo_drawable_class_init),
323 Add a based on GdkDrawable which generates
326 2008-08-19 Colin Walters <walters@verbum.org>
328 * giscanner/transformer.py: Don't try
329 to strip prefix before namespace.
331 2008-08-19 Johan Dahlin <johan@gnome.org>
333 * giscanner/transformer.py:
334 * tests/scanner/Foo-expected.gir:
335 * tests/scanner/foo-object.h:
336 Add support for typedef void foo type of
339 2008-08-19 Johan Dahlin <johan@gnome.org>
342 * giscanner/girwriter.py:
343 * giscanner/glibtransformer.py:
344 * giscanner/transformer.py:
345 * tests/scanner/Foo-expected.gir:
346 Add basic support for union, base the code much
347 on Struct. Add a testcase.
349 2008-08-19 Johan Dahlin <johan@gnome.org>
351 * tests/scanner/Foo-expected.gir:
352 * tests/scanner/foo-object.h:
353 Add a union testcase which the compiler currently
356 2008-08-19 Johan Dahlin <johan@gnome.org>
358 * gobject-introspection-1.0.pc.in:
359 Add a g_ir_compiler variable
361 2008-08-19 Colin Walters <walters@verbum.org>
363 * giscanner/ast.py: Rework types to be more closely
365 * giscanner/girparser.py: Parse more bits.
366 * giscanner/girwriter.py: Write sequences in a new
367 way that specifies container type.
368 * giscanner/glibast.py: Adjust for ast.py changes,
369 add 'ctype' property to GLibObject and GLibInterface
370 so we can look things up by it later.
371 * gicanner/transformer.py: Names is new class holding
372 the various namespaces we manage. Do not confuse
373 with Namespace which is toplevel XML node effectively.
374 Rework all type resolution to go through
375 _resolve_type_name_1.
376 * giscanner/glibtransformer.py: Raise UnknownTypeError
377 instead of ValueError for cleanliness. Add Unresolved
378 class to mark types whose parent we haven't seen yet.
379 Use new Names object from transformer.py.
380 Correctly look up parent=.
381 Fix type validation to handle sequences.
382 * tests/scanner/Foo-expected.gir: Update for sequence
383 work, int instead of int32.
384 * tools/g-ir-scanner: Add --noclosure option
385 * gir/Makefile.am: Use --noclosure by default for
388 2008-08-18 Johan Dahlin <johan@gnome.org>
390 * gir/gio-2.0-good.gir:
391 * gir/glib-2.0-good.gir:
392 * gir/gobject-2.0-good.gir:
395 2008-08-18 Johan Dahlin <johan@gnome.org>
398 * giscanner/girparser.py:
399 * giscanner/girwriter.py:
400 * giscanner/glibast.py:
401 * giscanner/glibtransformer.py:
402 * giscanner/transformer.py:
403 * tests/scanner/Foo-expected.gir:
404 * tests/scanner/foo-object.h:
405 * tests/scanner/utility-expected.gir:
406 * tests/scanner/utility.h:
407 Redo type resolving and validation.
408 Add a couple of new tests.
409 Patch mostly written by Colin.
411 2008-08-18 Johan Dahlin <johan@gnome.org>
414 * giscanner/girparser.py:
416 * giscanner/transformer.py:
417 Improve enum parsing for enums without a GType.
418 Make flags/enum references to other girs work
419 * giscanner/utils.py:
421 * tests/scanner/Makefile.am:
422 * tests/scanner/foo-object.h:
423 * tests/scanner/utility-expected.gir:
424 * tests/scanner/utility.h:
425 Add a new test for external enum references
427 2008-08-18 Johan Dahlin <johan@gnome.org>
429 * docs/global-module-registry.txt: Update
431 * tests/array.gir: Update with new type proposal
433 * girepository/girepository.c (g_type_tag_to_string):
434 * girepository/girepository.h:
435 * girepository/girnode.c (g_ir_node_get_full_size_internal),
437 * girepository/girnode.h:
438 Make enum serializing functions public. Clean up some whitespace.
440 2008-08-17 Johan Dahlin <johan@gnome.org>
442 * docs/global-module-registry.txt:
443 Add a document for an on disk module registry format
445 2008-08-17 Johan Dahlin <johan@gnome.org>
448 * gir/gio-2.0-good.gir:
451 2008-08-17 Johan Dahlin <johan@gnome.org>
454 * gir/glib-2.0-good.gir:
455 * gir/gobject-2.0-good.gir:
456 * giscanner/cgobject.py:
457 * giscanner/glibtransformer.py:
458 Regenerate GObject & GType.
459 Avoid warnings when generating gobject-2.0.gir.
460 Introspect a little more, and skip *_get_type functions.
462 2008-08-17 Colin Walters <walters@verbum.org>
464 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
465 Rename to -good, always generate during build.
466 * gir/Makefile.am: Ensure .gir files dep on
468 * Makefile.am: Switch build order to ensure
469 the scanner is ready before we do gir/.
470 * tools/g-ir-scanner: Look for .git too.
472 2008-08-17 Johan Dahlin <johan@gnome.org>
474 * girepository/gtypelib.c (validate_enum_blob):
475 * giscanner/glibtransformer.py:
476 * giscanner/transformer.py:
477 Remove resolve_possible_typedefs, it was unused.
478 Allow multiple enum values of the sample value in an enum,
479 since it's actually pretty common.
480 Register enums so they can be resolved too.
482 2008-08-16 Johan Dahlin <johan@gnome.org>
484 * giscanner/girparser.py:
485 Parse enumeration/bitfield.
487 2008-08-16 Johan Dahlin <johan@gnome.org>
489 * giscanner/girparser.py:
492 2008-08-16 Johan Dahlin <johan@gnome.org>
494 * giscanner/glibtransformer.py:
495 Resolve type names for alias targets
496 * giscanner/transformer.py:
497 Skip FILE* parameters fow now
499 2008-08-16 Johan Dahlin <johan@gnome.org>
502 * gir/gobject-2.0.gir:
505 * tests/scanner/Makefile.am:
508 2008-08-15 Colin Walters <walters@verbum.org>
510 * giscanner/glibtransformer.py: Explicitly construct
511 new list, since we're deleting as we iterate.
512 Don't delete all structures which end in Class; just
513 ones which have a paired GObject.
514 Fix printing of type warning.
515 * giscanner/transformer.py: Make strip_namespace_object
516 be the identity function if it doesn't match the
519 2008-08-15 Colin Walters <walters@verbum.org>
521 * giscanner/cgobject.py: Define yet more argument
522 prototypes; fix prototype for g_type_fundamental.
524 2008-08-14 Johan Dahlin <johan@gnome.org>
527 * tests/constant.gir:
530 * tools/generate.c (write_struct_info):
531 Fix generator for constant/gobject/struct
533 2008-08-14 Johan Dahlin <johan@gnome.org>
537 * tools/generate.c (write_enum_info):
538 Fix generation of enum/bitfields
540 2008-08-14 Johan Dahlin <johan@gnome.org>
542 * girepository/girparser.c (start_field), (start_constant),
543 (start_type), (end_element_handler):
544 Clear up constant parsing
549 * tools/generate.c (write_callable_info), (write_function_info),
550 (write_callback_info), (write_constant_info), (write_signal_info),
551 (write_vfunc_info), (write_property_info), (write_object_info),
552 (write_interface_info):
553 Constants/Signals are handled now.
555 2008-08-14 Johan Dahlin <johan@gnome.org>
557 * girepository/girparser.c (start_type):
558 Don't require c:type.
562 Update, remove parts we don't support yet
563 * tests/roundtrips.sh:
565 * tools/generate.c (write_type_info), (write_field_info),
566 (write_callable_info), (write_struct_info):
567 Make it emit proper gir.
569 2008-08-14 Johan Dahlin <johan@gnome.org>
571 * giscanner/transformer.py:
572 New internal function for adding a new node.
574 2008-08-14 Johan Dahlin <johan@gnome.org>
577 Define an internal _H_ variable so we skip parsing both
578 i18n headers, only one is needed.
580 Add the glib-2.0.gir too.
581 * giscanner/glibast.py:
582 Add gconstpointer as an alias for ANY
583 * giscanner/transformer.py:
584 Do not lower case enumeration names per se.
585 Skip functions which has parameters called 'va_list'
587 2008-08-14 Colin Walters <walters@verbum.org>
589 * giscanner/transformer.py: Comment data structures.
590 Also squash pointers in resolve_type_name to correspond
591 with what we do for params.
592 * giscanner/glibtransformer.py: Print warnings in more
593 situations. Rework checks for method/constructor to
594 look up in our GType database instead of just checking
595 for *. Avoid generating <record> for GObject which
596 duplicate the <class>.
597 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
600 2008-08-14 Johan Dahlin <johan@gnome.org>
602 * giscanner/girwriter.py:
603 * giscanner/glibast.py:
604 * giscanner/glibtransformer.py:
605 * giscanner/transformer.py:
608 Add pyflakes.py and run it in make check.
609 Update the source code to fix the errors reported by
612 2008-08-14 Johan Dahlin <johan@gnome.org>
615 * giscanner/girparser.py:
616 * giscanner/glibast.py:
617 * giscanner/glibtransformer.py:
618 Refactor the parser a bit.
619 Add parent type to interfaces and update callsites.
621 2008-08-14 Johan Dahlin <johan@gnome.org>
623 * giscanner/glibtransformer.py:
624 * giscanner/utils.py:
625 Refactor a bit, avoid isinstance and add a method
626 for each type we parse.
628 2008-08-14 Johan Dahlin <johan@gnome.org>
631 * giscanner/girparser.py:
632 * giscanner/glibtransformer.py:
634 Run pep8.py in make check, fix old errors.
636 2008-08-13 Colin Walters <walters@verbum.org>
638 * giscanner/girparser.py: Parse records.
640 2008-08-13 Colin Walters <walters@verbum.org>
642 * gir/Makefile.am: Install again.
643 * gir/gobject-2.0.gir: Add some more bits.
645 2008-08-13 Colin Walters <walters@verbum.org>
647 * gir/gobject-2.0.gir: Use correct namespace, add GType.
648 * giscanner/girparser.py: Handle aliases.
649 * giscanner/transformer.py: Record aliases. Make resolver
650 functions public; we now call into these explicitly from
651 glibtransformer. Handle resolving aliases.
652 * giscanner/glibtransformer.py: Separate our internal namespace
653 from included ones. Call up into transformer's resolver functions.
655 2008-08-13 Johan Dahlin <johan@gnome.org>
657 * girepository/girnode.c (g_ir_node_get_full_size_internal):
658 * girepository/girparser.c (start_class):
659 * giscanner/glibtransformer.py:
660 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
662 2008-08-13 Johan Dahlin <johan@gnome.org>
664 * giscanner/cgobject.py:
665 Register GInitiallyUnowned
666 * giscanner/girwriter.py:
667 * giscanner/glibtransformer.py:
668 Special case GObject/GInitially owned as they are a bit special to use.
670 2008-08-13 Colin Walters <walters@verbum.org>
672 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
673 Object is in GObject namespace.
675 2008-08-13 Colin Walters <walters@verbum.org>
677 * giscanner/girparser.py: Fix processing of functions
680 2008-08-13 Colin Walters <walters@verbum.org>
682 * giscanner/girparser.py: Parse more than just <class.
683 * giscanner/glibtransformer.py: Put aliases in a separate
684 data structure since their name is not canonicall.
685 * giscanner/transformer.py: Handle resolving type names
688 2008-08-13 Johan Dahlin <johan@gnome.org>
690 * tools/g-ir-scanner:
691 Allow multiple libraries
692 * giscanner/glibtransformer.py:
693 Rename load_library to add_library, traverse over all libraries
694 when trying to resolve a function
696 2008-08-12 Colin Walters <walters@verbum.org>
698 * giscanner/transformer.py: Record typedefs as <alias> elements.
699 Also attempt to look up types in external namespaces.
700 * giscanner/girwriter.py: Write them.
701 * giscanner/glibtransformer.py: Rework resolver using real instanceof
702 checks. Resolve interface methods and properties.
703 * tests/scanner/foo-object.h: Add a method with typedef.
704 * tests/scanner/Foo-expected.gir: Update.
705 * girepository/girnode.c: Debug tweaks.
706 * girepository/girparser.c: Make a first pass through the XML where we
707 record all the aliases. This lets us resolve them as we go through the
709 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
712 2008-08-12 Colin Walters <walters@verbum.org>
714 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
715 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
717 * giscanner/transformer.py: Record typedefs and expose public API for resolving
719 * tests/scanner/Foo-expected.gir: Fix expected callback types.
721 2008-08-12 Colin Walters <walters@verbum.org>
723 * giscanner/glibtransformer.py: Also transform object properties.
725 2008-08-12 Colin Walters <walters@verbum.org>
727 * giscanner/glibtransformer.py: Also transform callbacks
728 and structure field types.
729 * tests/scanner/Fooe-expected.gir: Update to expect correct
730 names for callbacks and structs.
732 2008-08-12 Colin Walters <walters@verbum.org>
734 * girepository/girparser.c: Handle 'any'.
735 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
738 2008-08-12 Colin Walters <walters@verbum.org>
740 * giscanner/glibtransformer.py: We need to do type
741 resolution in a second pass after we've seen all the
744 2008-08-12 Colin Walters <walters@verbum.org>
746 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
747 Add enum return value.
748 * giscanner/glibtransformer.py: Transform function return types
751 2008-08-12 Colin Walters <walters@verbum.org>
753 * tests/scanner/Makefile.am: Dep .gir files on scanner
754 sources too. Also remove @ so we see scanner invocations.
756 2008-08-12 Colin Walters <walters@verbum.org>
758 * girepository/girparser.c, girepository/gtypelib.c,
759 girepository/gtypelib.h, girepository/girnode.c:
760 Remove usage of (GAPI-oriented) TypeTag in favor of
761 GITypeTag from girepository.h.
763 2008-08-10 Colin Walters <walters@verbum.org>
765 * tests/roundtrips.sh: Use the correct tests.
767 2008-08-10 Colin Walters <walters@verbum.org>
769 * giscanner/cgobject.py: Declare/wrap a few more functions.
770 Fix parameter types for g_object_new and g_type_fundamental.
772 2008-08-10 Colin Walters <walters@verbum.org>
774 * giscanner/cgobject.py: Add new decorator @gwrap which forces
775 us to declare types for both return value and parameters. The
776 ctypes default of 'int' is bad because it hides 32/64 bit
777 problems. Convert all existing functions to use it.
779 2008-08-09 Johan Dahlin <johan@gnome.org>
781 * giscanner/__init__.py:
783 * giscanner/cgobject.py:
784 * giscanner/gidlparser.py:
785 * giscanner/gidlwriter.py:
786 * giscanner/girparser.py:
787 * giscanner/girwriter.py:
788 * giscanner/glibast.py:
789 * giscanner/glibtransformer.py:
790 * giscanner/odict.py:
791 * giscanner/sourcescanner.py:
792 * giscanner/transformer.py:
793 * giscanner/utils.py:
794 * giscanner/xmlwriter.py:
795 * tools/g-ir-scanner:
799 2008-08-09 Johan Dahlin <johan@gnome.org>
802 * relaxng/c-types.xml:
803 * relaxng/g-types.xml:
804 * relaxng/relaxng.rng:
806 Remove outdated relaxng schemas.
808 2008-08-09 Johan Dahlin <johan@gnome.org>
811 Rename metadata to typelib in variable names,
814 2008-08-09 Johan Dahlin <johan@gnome.org>
818 Remove old C scanner, which got rewritten in python.
820 2008-08-09 Johan Dahlin <johan@gnome.org>
822 * girepository/Makefile.am:
832 Move shared *.[ch] files to girepository from tools
834 2008-08-09 Johan Dahlin <johan@gnome.org>
839 * tests/constant.test:
842 * tests/function.test:
843 * tests/gobject.test:
844 * tests/interface.test:
851 Rename *.test to *.gir
853 2008-08-09 Johan Dahlin <johan@gnome.org>
857 * tests/parser/Foo-expected.gir:
858 * tests/parser/Makefile.am:
859 * tests/parser/foo-object.h:
860 * tests/parser/foo.c:
861 * tests/parser/utility-expected.gir:
862 * tests/parser/utility.c:
863 * tests/parser/utility.h:
864 * tests/scanner/Makefile.am:
865 Rename tests/parser to test/scanner
867 2008-08-08 Colin Walters <walters@verbum.org>
869 * tests/roundtrips.sh: Use local .gir files again.
871 2008-08-08 Colin Walters <walters@verbum.org>
873 * tests/invoke/Makefile.am: .gir file depends on libtool
876 2008-08-08 Colin Walters <walters@verbum.org>
878 * tools/girnode.c: Pass through parent node so we can
879 print the node whose child is NULL, if that occurs.
881 2008-08-08 Johan Dahlin <johan@gnome.org>
884 Disable roundtrip tests which are not yet working
885 * tests/invoke/testfns.gir:
888 2008-08-08 Johan Dahlin <johan@gnome.org>
890 * giscanner/girwriter.py:
892 * giscanner/glibast.py:
893 * giscanner/glibtransformer.py:
894 Swap order of members, to keep it consistent with
897 2008-08-08 Johan Dahlin <johan@gnome.org>
899 * girepository/gtypelib.c (validate_header):
900 * girepository/gtypelib.h:
902 * giscanner/girwriter.py:
903 * giscanner/sourcescanner.c (gi_source_symbol_ref),
904 (gi_source_symbol_unref):
907 * tests/constant.test:
910 * tests/function.test:
911 * tests/gobject.test:
912 * tests/interface.test:
913 * tests/invoke/Makefile.am:
914 * tests/invoke/testfns.xml:
916 * tests/parser/Makefile.am:
917 * tests/roundtrips.sh:
924 * tools/compiler.c (main):
925 * tools/generate.c (write_callable_info), (write_function_info),
927 * tools/gidlmodule.c:
928 * tools/gidlmodule.h:
931 * tools/gidlparser.c:
932 * tools/gidlparser.h:
933 * tools/gidlwriter.c:
934 * tools/gidlwriter.h:
935 * tools/scanner.c (create_node_from_gtype),
936 (create_node_from_ctype), (g_igenerator_process_properties),
937 (g_igenerator_process_signals), (g_igenerator_create_object),
938 (g_igenerator_create_interface), (g_igenerator_create_boxed),
939 (g_igenerator_create_enum), (g_igenerator_create_flags),
940 (g_igenerator_process_function_symbol),
941 (g_igenerator_process_unregistered_struct_typedef),
942 (g_igenerator_process_struct_typedef),
943 (g_igenerator_process_union_typedef),
944 (g_igenerator_process_enum_typedef),
945 (g_igenerator_process_function_typedef),
946 (g_igenerator_process_constant), (g_igenerator_process_symbols),
947 (g_igenerator_add_module), (g_igenerator_add_include_idl):
948 Merge in the gir-compiler branch.
949 Thanks to Philip and Colin for their help.
951 2008-07-26 Colin Walters <walters@verbum.org>
953 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
954 and g-idl-generate to go along with how we're changing this
955 module to be installed.
956 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
958 2008-07-24 Colin Walters <walters@verbum.org>
960 * girepository/girepository.c (g_irepository_register): Add
961 environment variable G_IREPOSITORY_VERBOSE so we can print
962 out what we're doing.
963 * girepository/girepository.c (g_irepository_register_file):
964 Add GError error message to g_debug call.
966 2008-07-08 Jürg Billeter <j@bitron.ch>
968 * giscanner/glibast.py:
972 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
974 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
977 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
980 * giscanner/girwriter.py:
981 * giscanner/transformer.py:
982 * tests/parser/Foo-expected.gir:
983 * tests/parser/foo-object.h:
984 * tests/parser/foo.c (foo_object_allow_none):
985 Add support for gtk-doc annotations for allow-none.
988 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
991 * giscanner/girwriter.py:
992 * giscanner/glibast.py:
993 * giscanner/glibtransformer.py:
994 * giscanner/transformer.py:
995 * tests/parser/Foo-expected.gir:
996 Start using abstract type instead of the raw C types.
997 Register a bunch of glib types we care about.
999 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
1004 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
1006 * girepository/girepository.c:
1007 * girepository/gtypelib.c:
1008 * girepository/ginfo.c:
1009 * girepository/ginvoke.c:
1010 * girepository/girepository.h:
1011 * girepository/gtypelib.h:
1012 * girepository/gmetadata.c:
1013 * girepository/Makefile.am:
1014 * girepository/gmetadata.h:
1016 * tools/gidlmodule.c:
1019 * tools/gidlmodule.h:
1020 * tools/gidlparser.c:
1022 Renamed GMetadata to GTypelib
1024 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
1026 * giscanner/xmlwriter.py:
1027 Improve line wrapping when > 79 charaters
1029 2008-06-05 Jürg Billeter <j@bitron.ch>
1032 * giscanner/girwriter.py:
1033 * giscanner/transformer.py:
1034 Use <type> element for field types
1035 * tests/parser/Foo-expected.gir:
1038 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
1040 * giscanner/glibtransformer.py:
1041 Fix a bug which prevented GdkEvent from being generated
1043 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
1045 * giscanner/Makefile.am:
1047 * giscanner/girwriter.py:
1048 * giscanner/glibast.py:
1049 * giscanner/glibtransformer.py:
1050 * giscanner/transformer.py:
1051 * giscanner/utils.py:
1052 * tests/parser/Foo-expected.gir:
1053 Improve enum member parsing and introspection
1055 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1057 * giscanner/scannerparser.y:
1058 * giscanner/sourcescanner.h:
1059 * giscanner/sourcescanner.py:
1060 Add a new source type enum for member.
1061 Use __repr__ for improved debugging
1062 * giscanner/girparser.py:
1064 * giscanner/transformer.py:
1065 Improve parsing of struct members.
1066 * tests/parser/foo-object.h:
1069 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1071 * giscanner/xmlwriter.py:
1072 Improve error reporting when trying to quote None.
1073 * giscanner/girparser.py:
1074 Do not print warnings when including more complete .gir files
1075 * giscanner/girwriter.py:
1076 Do not require a name for parameters, add a todo for singletons
1077 * giscanner/glibtransformer.py:
1078 Refactor the way structs are done, add a couple of hacks to allow
1080 * giscanner/transformer.py:
1081 Add enough hacks so cairo, atk and pango.gir can be parsed properly
1082 * gobject-introspection-1.0.pc.in:
1083 Export girdir, so we can access gobject-2.0.gir from outside
1085 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1087 * tools/g-ir-scanner:
1088 * tests/parser/Makefile.am:
1089 Update sys.path before running the parser so we don't have
1090 to setup PYTHONPATH ourselves.
1094 * girepository/Makefile.am:
1095 * giscanner/transformer.py:
1096 * gobject-introspection-1.0.pc.in:
1097 * gobject-introspection.pc.in:
1098 * tools/Makefile.am:
1100 Rename pkg-config name to gobject-introspection-1.0,
1101 Do not installed anything which is not using the gir format.
1102 Disable compililation the old C scanner, but still keep the source
1103 until all the remaning functionallity has been ported.
1105 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1107 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
1108 a crash when symbol->indent is NULL.
1110 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
1111 a function to convert a CTYPE symbol to a string
1113 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
1116 * giscanner/girwriter.py:
1117 * giscanner/giscannermodule.c
1118 (pygi_source_scanner_append_filename),
1119 (pygi_source_scanner_parse_file):
1120 * giscanner/glibtransformer.py:
1121 * giscanner/sourcescanner.py:
1122 Revert back to using temporary files to send in headers.
1123 Allow Functions to be passed in as callbacks, add a couple
1124 of try/excepts missing features.
1125 We can now scan pango
1127 2008-05-08 Johan Dahlin <johan@gnome.org>
1129 * giscanner/glibtransformer.py:
1130 * giscanner/transformer.py:
1131 Move namespace stripping glibtransformer->transformer
1133 2008-05-08 Johan Dahlin <johan@gnome.org>
1136 * giscanner/girwriter.py:
1137 * giscanner/glibtransformer.py:
1138 * giscanner/transformer.py:
1139 * tools/g-ir-scanner:
1140 Introduce a namespace ast node
1142 2008-05-05 Johan Dahlin <johan@gnome.org>
1144 * giscanner/__init__.py:
1145 * giscanner/sourcescanner.py:
1146 * giscanner/transformer.py:
1147 Move sourcescanner symbols to the sourcescanner module, instead
1148 of in the global __init__ namespace.
1150 2008-05-03 Johan Dahlin <johan@gnome.org>
1152 * giscanner/glibtransformer.py:
1153 * tools/g-ir-scanner:
1154 Handle missing parameters better, allow - and + in .la dlname
1157 2008-05-03 Johan Dahlin <johan@gnome.org>
1159 * giscanner/__init__.py:
1161 * giscanner/girwriter.py:
1162 * giscanner/glibtransformer.py:
1163 * giscanner/transformer.py:
1164 Parse struct fields properly, improve debugging.
1166 2008-04-29 Johan Dahlin <johan@gnome.org>
1169 * giscanner/girwriter.py:
1170 * giscanner/transformer.py:
1171 * tests/parser/Foo-expected.gir:
1173 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
1175 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1178 * docs/g-ir-scanner.1:
1179 * metadata-annotations-proposal.txt:
1180 * metadata-format.txt:
1181 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
1183 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1185 * giscanner/girwriter.py:
1186 * giscanner/glibtransformer.py:
1187 * giscanner/transformer.py:
1188 * giscanner/xmlwriter.py:
1189 * tests/parser/Foo-expected.gir:
1190 * tests/parser/foo-object.h:
1191 Write record/structs to gir file too. Add a couple of tests,
1192 fix an off by one error in xmlwriter.py.
1194 2008-04-28 Johan Dahlin <johan@gnome.org>
1196 * giscanner/xmlwriter.py: Calculate the line length properly,
1197 include the provided extra indentation in the calculation, really.
1199 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1202 * giscanner/glibast.py:
1203 * giscanner/glibtransformer.py:
1204 * giscanner/transformer.py:
1205 * tools/g-ir-scanner:
1206 Add a --strip-prefix and sort out confusion between names and symbols
1207 for functions and struct + derivaties.
1208 Refactor bootstrap of g-ir-scanner, so we can set options on
1209 Transformer() before parsing everything.
1211 2008-04-28 Johan Dahlin <johan@gnome.org>
1213 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
1214 when scanning girepository.h
1216 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
1217 a __GI_SCANNER__ when we run.
1219 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1222 * giscanner/girwriter.py:
1223 * giscanner/glibast.py:
1224 * giscanner/glibtransformer.py:
1225 * tests/parser/Foo-expected.gir:
1226 * tests/parser/utility-expected.gir:
1227 Rename most c:identifier to c:type. Add new ones to
1228 class/interface/enum/boxed.
1230 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1233 * giscanner/girwriter.py:
1234 * giscanner/glibtransformer.py:
1235 * tests/parser/Foo-expected.gidl:
1236 * tests/parser/Makefile.am:
1237 Move c:identifier from return-value to subchild type,
1238 as per Jürgs suggestion
1240 2008-04-28 Johan Dahlin <johan@gnome.org>
1242 * giscanner/girwriter.py:
1243 * tests/parser/Foo-expected.gir:
1244 Write property.type as a child node.
1246 2008-04-27 Johan Dahlin <johan@gnome.org>
1251 * gidl/gobject-2.0.gidl:
1253 * gir/gobject-2.0.gir:
1254 * tests/parser/Makefile.am:
1255 Replace the GObject gidl with a GObject gir.
1257 2008-04-27 Johan Dahlin <johan@gnome.org>
1259 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
1262 * giscanner/xmlwriter.py:
1263 * tests/parser/Foo-expected.gir:
1264 Include indentation in line length calculation
1266 2008-04-27 Johan Dahlin <johan@gnome.org>
1268 * giscanner/girparser.py:
1269 Prettify NS parsing using elementtree.
1271 2008-04-27 Johan Dahlin <johan@gnome.org>
1274 * giscanner/Makefile.am:
1275 * giscanner/girparser.py:
1276 * giscanner/glibtransformer.py:
1277 * tests/parser/Foo-expected.gidl:
1278 * tests/parser/Foo-expected.gir:
1279 * tests/parser/Makefile.am:
1280 * tests/parser/utility-expected.gidl:
1281 * tests/parser/utility-expected.gir:
1282 * tools/g-ir-scanner:
1283 Switch over to GIR as the default format. Add a simple GIDL
1285 Update tests and fix simplify makefiles by depending
1286 on GNU make extensions.
1288 2008-04-27 Johan Dahlin <johan@gnome.org>
1290 * giscanner/xmlwriter.py:
1291 Wrap attributes for lines which are wider than 79 characters
1293 * giscanner/scannerlexer.l:
1294 Allow parenthesis in annotations
1297 * giscanner/gidlwriter.py:
1298 * giscanner/girwriter.py:
1299 * giscanner/glibtransformer.py:
1300 * giscanner/transformer.py:
1301 Add initial sequence support, including annotation.
1302 Refactor type handling a bit.
1304 2008-04-27 Johan Dahlin <johan@gnome.org>
1306 * tests/parser/Foo-expected.gidl:
1307 * tests/parser/foo-object.h:
1308 * tests/parser/foo.c (foo_object_class_init),
1309 (foo_object_get_strings), (foo_object_get_objects):
1310 Add two new functions to check sequence return values.
1311 Also fixes a compilation warning.
1313 2008-04-27 Johan Dahlin <johan@gnome.org>
1315 * giscanner/giscannermodule.c (]): Cast the getter, avoids
1316 a compilation warning.
1318 * tools/Makefile.am (g_ir_scanner_SOURCES):
1319 g-ir-scanner has no sources.
1321 2008-04-25 Johan Dahlin <johan@gnome.org>
1323 * giscanner/Makefile.am:
1325 * giscanner/gidlparser.py:
1326 * giscanner/gidlwriter.py:
1327 * giscanner/girwriter.py:
1328 * giscanner/glibast.py:
1329 * giscanner/glibtransformer.py:
1330 * giscanner/transformer.py:
1331 Split out nodes to ast.py and glibast.py
1333 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1335 * giscanner/Makefile.am:
1336 * giscanner/gidlparser.py:
1337 * giscanner/gidlwriter.py:
1338 * giscanner/girwriter.py:
1339 * giscanner/glibtransformer.py:
1340 * giscanner/gobjecttreebuilder.py:
1341 * giscanner/transformer.py:
1342 * giscanner/treebuilder.py:
1343 * tools/g-ir-scanner:
1344 Rename treebuilder to transformer and
1345 gobjectreebuilder to glibtransformer.
1347 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1349 * giscanner/Makefile.am:
1350 * giscanner/__init__.py:
1351 * giscanner/cgobject.py:
1352 * giscanner/gidlparser.py:
1353 * giscanner/gidlwriter.py:
1354 * giscanner/girwriter.py:
1355 * giscanner/gobjecttreebuilder.py:
1356 * giscanner/odict.py:
1357 * giscanner/sourcescanner.py:
1358 * giscanner/treebuilder.py:
1359 * giscanner/xmlwriter.py:
1360 * tools/Makefile.am:
1361 * tools/g-ir-scanner:
1362 Add LGPLv2 license header and install all python files
1364 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1367 * giscanner/gidlwriter.py:
1368 * giscanner/giscannermodule.c (pygi_source_directive_new),
1369 (directive_get_options), (pygi_source_symbol_new),
1370 (symbol_get_base_type), (pygi_source_type_new),
1371 (type_get_base_type), (type_get_child_list),
1372 (pygi_source_scanner_get_symbols),
1373 (pygi_source_scanner_get_directives):
1374 * giscanner/gobjecttreebuilder.py:
1375 * giscanner/sourcescanner.py:
1376 * giscanner/treebuilder.py:
1377 * tests/parser/foo-object.h:
1378 Add support for virtual methods.
1379 Pair struct FooClass with struct Foo.
1380 Clean up the SourceScanner bindings a bit.
1381 Add a testcase for virtual methods.
1383 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1385 * giscanner/cgobject.py:
1386 * giscanner/gidlwriter.py:
1387 * giscanner/gobjecttreebuilder.py:
1388 Add support for signals
1390 * tests/parser/foo.c (foo_object_class_init):
1391 * Foo-expected.gidl:
1392 Add a signal and update the expected output.
1394 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
1396 * giscanner/gidlwriter.py:
1397 * giscanner/girwriter.py:
1398 * giscanner/giscannermodule.c (directive_get_name),
1399 (directive_get_value), (directive_get_options),
1400 (symbol_get_directives), (symbol_set_directives),
1401 (pygi_source_scanner_parse_file),
1402 (pygi_source_scanner_lex_filename),
1403 (pygi_source_scanner_get_directives), (init_giscanner):
1404 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
1405 * giscanner/sourcescanner.h:
1406 * giscanner/sourcescanner.py:
1407 * giscanner/treebuilder.py:
1408 * tools/g-ir-scanner:
1409 Add support for source/header annotations.
1411 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1413 * giscanner/gidlwriter.py:
1414 * giscanner/girwriter.py:
1415 * giscanner/gobjecttreebuilder.py:
1416 * giscanner/treebuilder.py:
1417 Add support for Callbacks
1419 2008-04-22 Havoc Pennington <hp@pobox.com>
1421 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
1422 not in metadata->module, look for it in the global module, in case
1423 some other object or the app itself provides the symbol.
1425 2008-04-22 Havoc Pennington <hp@pobox.com>
1427 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
1428 dlopening a library that is already in the main app, by checking
1429 whether one of the lib's symbols is already loaded.
1431 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1433 * tests/parser/Foo-expected.gidl:
1434 * tests/parser/foo-object.h:
1437 2008-04-22 Havoc Pennington <hp@pobox.com>
1439 * girepository/ginfo.c (g_interface_info_find_method):
1440 Use interface_blob_size not object_blob_size to compute offset.
1442 2008-04-22 Havoc Pennington <hp@pobox.com>
1444 * girepository/gmetadata.c (_g_metadata_init): remove
1445 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
1446 (Glade and Clutter for example) rely on being loaded globally.
1448 2008-04-22 Havoc Pennington <hp@pobox.com>
1450 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
1451 function to get the GType given a RegisteredTypeInfo
1453 2008-04-22 Johan Dahlin <johan@gnome.org>
1455 * COPYING: Add a LGPL license, to prevent automake to
1456 put in a copy of GPL here. Pointed out by Havoc.
1458 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
1459 (g_type_info_is_pointer), (g_type_info_get_tag),
1460 (g_type_info_get_param_type), (g_type_info_get_interface),
1461 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
1462 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
1463 (g_error_domain_info_get_codes), (g_enum_info_get_value),
1464 (g_object_info_get_interface), (g_object_info_get_field),
1465 (g_interface_info_get_prerequisite),
1466 (g_signal_info_get_class_closure), (g_constant_info_get_value):
1467 * girepository/ginvoke.c (get_ffi_type):
1468 * girepository/girepository.h:
1469 * girepository/gmetadata.c (g_metadata_get_dir_entry),
1470 (g_metadata_check_sanity), (validate_header),
1471 (validate_array_type_blob), (validate_iface_type_blob),
1472 (validate_param_type_blob), (validate_error_type_blob),
1473 (validate_type_blob), (validate_constant_blob),
1474 (validate_struct_blob), (validate_enum_blob):
1475 * girepository/gmetadata.h:
1476 * tests/Makefile.am:
1477 * tests/invoke/Makefile.am:
1478 * tests/invoke/invoke.c (main):
1479 * tests/roundtrips.sh:
1480 * tools/Makefile.am:
1481 * tools/compiler.c (format_output), (write_out_metadata), (main):
1482 * tools/generate.c (write_type_name), (write_type_info),
1483 (write_constant_value), (write_enum_info), (load_metadata), (main):
1484 * tools/gidlcompilercontext.c:
1485 * tools/gidlcompilercontext.h:
1486 * tools/gidlcompilerentrynode.c:
1487 * tools/gidlcompilerentrynode.h:
1488 * tools/gidlcompilertypenode.c:
1489 * tools/gidlcompilertypenode.h:
1490 * tools/gidlmodule.c (g_idl_module_build_metadata):
1491 * tools/gidlmodule.h:
1492 * tools/gidlnode.c (init_stats), (dump_stats),
1493 (g_idl_node_get_size), (g_idl_node_get_full_size),
1494 (g_idl_node_cmp), (g_idl_node_can_have_member),
1495 (g_idl_node_add_member), (g_idl_node_param_direction_string),
1496 (parse_int_value), (parse_uint_value), (parse_float_value),
1497 (parse_boolean_value), (find_entry_node), (find_entry),
1498 (serialize_type), (g_idl_node_build_metadata), (write_string):
1500 * tools/gidlparser.c (parse_type_internal):
1501 * tools/quote-file.sh:
1502 Revert revisions 157,149-148,136-129 and 120.
1503 Move back to using g-idl-generate to generate the metadata and
1504 avoids dependency on a c compiler.
1506 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1508 * giscanner/girwriter.py:
1509 * tools/g-ir-scanner:
1510 Add an initial GIR writer and a --format option to g-ir-scanner
1512 2008-04-21 Johan Dahlin <johan@gnome.org>
1514 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
1515 gobject-2.0 and raise ImportError if not found.
1517 * giscanner/gidlparser.py:
1518 * giscanner/gidlwriter.py:
1519 * giscanner/gobjecttreebuilder.py:
1520 * tools/g-ir-scanner:
1521 Add a --include argument to include types from other idls.
1522 Add a minimalistic GIDL parser (just objects for now)
1523 Implement resolving of external type references and use it to
1524 resolve parent types, argument types and return types.
1526 2008-04-21 Johan Dahlin <johan@gnome.org>
1528 * giscanner/gidlwriter.py:
1529 * giscanner/gobjecttreebuilder.py:
1530 * giscanner/treebuilder.py:
1531 Add support for properties.
1532 Refactor Class/Interface support a bit, to share more code and
1533 always initialize their method attribute to an empty list.
1535 2008-04-21 Johan Dahlin <johan@gnome.org>
1537 * giscanner/cgobject.py:
1538 Add a workaround for a glib bug interface introspection bug
1539 (object_interface_list_properties, object_class_list_properties):
1540 Cast the return value to GParamSpec.
1542 * tests/parser/Foo-expected.gidl: Update
1543 * tests/parser/foo.c: Add a string property
1545 * giscanner/gobjecttreebuilder.py:
1546 After stripping namespaces, remove the original
1547 item to avoid duplication (GtkButton struct and Button object)
1549 2008-04-21 Johan Dahlin <johan@gnome.org>
1551 * giscanner/gobjecttreebuilder.py:
1552 * giscanner/treebuilder.py:
1553 Strip namespaces before objects, so we'll export
1554 GtkButton as Button in the gtk namespace
1556 2008-04-21 Johan Dahlin <johan@gnome.org>
1558 * giscanner/gidlwriter.py:
1559 * giscanner/gobjecttreebuilder.py:
1560 * giscanner/treebuilder.py:
1561 Add constructors for object/boxed types.
1563 2008-04-21 Johan Dahlin <johan@gnome.org>
1565 * giscanner/gidlwriter.py:
1566 * giscanner/gobjecttreebuilder.py:
1567 Add support for boxed types
1569 2008-04-21 Johan Dahlin <johan@gnome.org>
1571 * giscanner/giscannermodule.c: Mark structures as const,
1572 wrap SourceType.const_string.
1574 * tests/parser/foo-object.h: Add a couple of constants.
1576 * giscanner/gidlwriter.py:
1577 * giscanner/gobjecttreebuilder.py:
1578 * giscanner/treebuilder.py:
1579 Add basic support for interfaces
1581 * tools/g-ir-scanner:
1582 Add -o/--output for writing to a file
1584 2008-04-21 Havoc Pennington <hp@redhat.com>
1586 * TODO: add some C API wishlist items I could think of quickly
1588 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1590 * giscanner/gidlwriter.py:
1591 * giscanner/xmlwriter.py:
1592 Add a simple api for writing tags which can be used
1593 with the new 'with statement' in python 2.5
1595 2008-04-21 Johan Dahlin <johan@gnome.org>
1597 * giscanner/gobjecttreebuilder.py:
1598 Strip namespace and object prefix from method names.
1600 2008-04-21 Johan Dahlin <johan@gnome.org>
1602 * tools/g-ir-scanner (main): Add --pkg option to pass in
1603 pkg-config modules to get cflags from.
1605 * giscanner/gidlwriter.py (GIDLWriter._write_method):
1606 Avoid duplication, reuse function writer for methods.
1608 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1610 * giscanner/gidlwriter.py:
1611 * giscanner/gobjecttreebuilder.py:
1612 * giscanner/treebuilder.py:
1613 * tools/g-ir-scanner:
1614 Resolve libtool .la files.
1615 Strip name spaces for methods.
1616 Add function symbols
1618 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
1620 * giscanner/cgobject.py:
1621 * giscanner/gidlwriter.py:
1622 * giscanner/gobjecttreebuilder.py:
1623 * giscanner/treebuilder.py:
1624 Add support for classes and methods
1626 2008-04-20 Johan Dahlin <johan@gnome.org>
1628 * giscanner/gidlwriter.py:
1629 * giscanner/gobjecttreebuilder.py:
1630 * giscanner/odict.py:
1631 Avoid conflicts, keep the output ordered similar to
1632 the order of the input.
1633 Add a simple ordered dictionary implemenation
1635 2008-04-19 Johan Dahlin <johan@gnome.org>
1637 * giscanner/cgobject.py:
1638 * giscanner/gidlwriter.py:
1639 * giscanner/gobjecttreebuilder.py:
1640 * tools/g-ir-scanner:
1641 Start introspecting get-type functions.
1642 Implement support for GLib/GFlags GTypes.
1643 Add a ctype based GObject binding.
1645 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
1647 * giscanner/gidlwriter.py:
1648 * giscanner/xmlwriter.py:
1649 * tools/g-ir-scanner:
1650 Add a simplistic gidl writer, which can't do too much.
1652 2008-04-18 Johan Dahlin <johan@gnome.org>
1654 * giscanner/sourcescanner.py:
1655 * giscanner/treebuilder.py:
1656 * tools/g-ir-scanner:
1657 split tree building and source scanning interface to separate files.
1659 2008-04-18 Johan Dahlin <johan@gnome.org>
1661 * tools/g-ir-scanner (Parameter.__init__): Start constructing
1663 - Add support for struct/parameter/return, start parsing of ctypes
1665 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
1668 2008-03-31 Johan Dahlin <johan@gnome.org>
1670 * tools/g-ir-scanner:
1671 Start to build abstract syntax node of scanned sources.
1672 Add support for cpp options.
1674 2008-03-27 Johan Dahlin <johan@gnome.org>
1676 * giscanner/giscannermodule.c:
1677 * giscanner/scannerlexer.l:
1678 * giscanner/sourcescanner.c:
1679 * tools/g-ir-scanner:
1681 Add simple pre-processor using subprocess and a PIPE.
1682 Change the parse_file apis to accept a file descriptor.
1684 2008-03-25 Johan Dahlin <johan@gnome.org>
1686 * giscanner/__init__.py:
1687 * tools/g-ir-scanner:
1688 Fix a typo and add an example python test program.
1690 2008-03-25 Johan Dahlin <johan@gnome.org>
1692 * giscanner/__init__.py:
1693 * giscanner/giscannermodule.c:
1694 * giscanner/sourcescanner.c:
1695 * giscanner/sourcescanner.h:
1696 Add constants and wrap a few more SymbolType fields
1698 2008-03-25 Johan Dahlin <johan@gnome.org>
1702 * giscanner/__init__.py:
1703 * giscanner/giscannermodule.c:
1704 * giscanner/Makefile.am:
1706 Add initial python bindings for the scanner and
1707 depend on python 2.5.
1709 2008-03-25 Johan Dahlin <johan@gnome.org>
1713 * giscanner/Makefile.am:
1714 * giscanner/sourcescanner.c:
1715 * giscanner/sourcescanner.h:
1716 * tools/Makefile.am:
1717 * tools/grealpath.h:
1718 * tools/sourcescanner.c:
1719 * tools/sourcescanner.h:
1721 Move the scanner to a separate library.
1723 2008-03-23 Johan Dahlin <johan@gnome.org>
1725 * tools/Makefile.am:
1728 * tools/scannerlexer.l:
1729 * tools/scannerparser.y:
1730 * tools/sourcescanner.c:
1731 * tools/sourcescanner.h:
1732 Split out the source scanner from the generator.
1733 Rename the symbols used in the scanner to use the gi_ prefix.
1734 This should make it possible to use the raw C parser from
1737 2008-03-23 Johan Dahlin <johan@gnome.org>
1739 * tests/parser/Makefile.am (utility.gidl):
1740 * tests/parser/utility-expected.gidl:
1741 Pass in the gobject.gidl since we're defining a GObject.
1743 2008-03-12 Johan Dahlin <johan@gnome.org>
1745 * relaxng/relaxng.rng:
1746 Add a releaxng in relaxng we can use to validate the relaxngs
1749 2008-03-12 Jürg Billeter <j@bitron.ch>
1751 * tools/scanner.c: (g_igenerator_new):
1752 * tools/scannerparser.y:
1753 Fix compiler warnings.
1755 2008-03-12 Jürg Billeter <j@bitron.ch>
1759 * tools/scannerparser.y:
1760 Start fixing memory management in g-idl-scanner.
1762 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
1764 * tools/gidlcompilercontext.c: (write_compiled):
1765 Fix critical warning when no shlib passed to g-idl-compiler.
1767 2008-03-12 Johan Dahlin <johan@gnome.org>
1769 * tests/parser/utility-expected.gidl:
1770 * tests/parser/utility.h:
1771 Add a get_type-function, so the scanner actually
1772 parses it as an object.
1774 2008-03-12 Johan Dahlin <johan@gnome.org>
1776 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
1779 * tests/parser/Foo-expected.gidl:
1780 * tests/parser/Makefile.am:
1781 * tests/parser/foo-object.h:
1782 * tests/parser/foo.c:
1783 * tests/parser/utility-expected.gidl:
1784 * tests/parser/utility.c:
1785 * tests/parser/utility.h:
1787 Add a new gidl test. 'utility.gidl', which is used to be able
1788 to test external type references. Add a reference to UtilityObject*
1791 2008-03-11 Johan Dahlin <johan@gnome.org>
1795 Remove most global variables
1797 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
1799 * tools/scannerlexer.l:
1801 * tests/parser/Foo-expected.gidl:
1802 * tests/parser/foo.c:
1803 * tests/parser/Makefile.am:
1804 * tests/parser/foo-object.h:
1806 Added a few extra tests. Which resulted in finding a few
1807 bugs. Which resulted in me fixing those bugs
1809 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1811 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
1812 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
1813 Add some comments for strings into generated output for
1816 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1818 * tools/gidlcompilercontext.c: (write_compiled):
1819 Write out the shlibs variable before writing out the strings
1820 length. Fixes compiler warning when using '-l' flag with
1823 2008-03-11 Johan Dahlin <johan@gnome.org>
1825 * tests/parser/Foo-expected.gidl:
1826 * tests/parser/foo-object.h:
1829 * tools/scannerlexer.l:
1830 Add support for parsing return arguments. Add support for
1831 caller-owns return types.
1832 Patch by Philip Van Hoof.
1834 * tools/scannerparser.y:
1835 Remove parsing of the @deprecated syntax used in headers.
1836 We will support gtk-doc deprecation in the future instead.
1838 2008-03-11 Johan Dahlin <johan@gnome.org>
1840 * tools/compiler.c (main): Coding style fixes
1842 2008-03-10 Johan Dahlin <johan@gnome.org>
1845 Add GCOV_LIBS to GILIBS
1847 2008-03-10 Johan Dahlin <johan@gnome.org>
1849 * tests/parser/Foo-expected.gidl:
1850 * tests/parser/foo.c:
1851 Rename null-ok to direction=out
1853 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
1855 reviewed and extensively tested by Johan
1857 * tests/parser/Foo-expected.gidl:
1858 * tests/parser/foo-object.h:
1859 * tests/parser/foo.c:
1862 * tools/gidlwriter.c:
1865 * tools/scannerlexer.l:
1866 * tools/scannerparser.y:
1868 Add support for scanning for gtk-doc comments inside
1869 C source files. Add tests
1871 2008-03-10 Johan Dahlin <johan@gnome.org>
1873 * tests/parser/Makefile.am:
1874 * tests/parser/foo.c:
1877 * tools/scannerparser.y:
1878 Add an api to lex filenames.
1879 Lex all source .c files passed in on the command line.
1880 Scan sources in a test and a couple of private structures
1881 which should not be included in the generated gidl
1883 2008-03-10 Johan Dahlin <johan@gnome.org>
1885 * tests/invoke/Makefile.am: Make the generated metadata
1886 depend on the g-idl-compiler
1888 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1890 * tools/gidlmodule.c
1891 * tools/gidlmodule.h
1894 Remove the old g-idl-compiler code.
1897 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
1899 * tools/quote-file.sh
1902 Move to using the 'C' struct compiler code.
1904 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1906 * girepository/ginfo.c
1908 Change the way that external references with no namespace
1909 are dealt with. External references with no namespace
1910 are placed into the XML as-if they are a local reference.
1911 This is temporary, but helps with roundtrip tests.
1913 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1915 * girepository/ginfo.c
1916 Add the ability to get the value of a constant of
1917 type TYPE_TAG_SYMBOL. In the case of a symbol the value
1918 is provided as a string.
1920 This would deal properly with:
1921 typedef char* random;
1922 const random = "A string";
1924 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1926 * girepository/ginfo.c
1927 * girepository/girepository.h
1929 Add a function to check if an enum is registered or not.
1930 Previously anything testing this relied on the g-type
1931 string offset having a value of 0.
1933 * girepository/gmetadata.c
1934 * girepository/gmetadata.h
1936 Remove unneccesary or erroneous checks. There were two
1937 metadata validation checks which made sure that the blob
1938 sizes were the same as some magic numbers compiled into the code.
1939 This is wrong as it breaks any forwards compatibility that may
1942 Checks were also present that made sure that unregistered type
1943 blobs had a value of 0 in the g-type offset field. This is
1944 unneccessary. If a type blob is unregistered then any value
1945 in its g-type field is simply invalid.
1947 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1949 * girepository/ginfo.c
1950 * girepository/gmetadata.c
1951 * girepository/gmetadata.h
1953 Change the metadata format to have a standard header
1954 for all the type blobs. Merge the SimpleTypeBlob
1955 and InterfaceTypeBlob into a union. A union of these
1956 two blobs existed previously but was not explicit
1957 in the metadata format.
1959 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1961 * tools/gidlcompilercontext.c
1962 * tools/gidlcompilercontext.h
1963 * tools/gidlcompilerentrynode.c
1964 * tools/gidlcompilerentrynode.h
1965 * tools/gidlcompilertypenode.c
1966 * tools/gidlcompilertypenode.h
1968 Add code to compile a tree of GIdlNodes to
1969 a 'C' struct representing the metadata.
1970 This is to aid cross-compiling. Previously
1971 the g-idl-compiler created a binary blob with
1972 data written in the byte order and alignment
1973 of the tool rather than the intended target.
1975 Cleaned up and improved by Johan and Robert :-)
1977 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1979 * girepository/ginvoke.c
1980 * girepository/girepository.h
1981 * girepository/gmetadata.c
1982 * girepository/gmetadata.h
1984 * tools/gidlparser.c
1985 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
1986 to avoid confusion with the interface blob.
1989 * tools/gidlparser.c
1990 Remove magic numbers and replace with type-tag
1991 enumeration symbols.
1993 * girepository/gmetadata.c
1994 Add validate declaration.
1996 2008-03-10 Jürg Billeter <j@bitron.ch>
1998 * tools/gidlparser.c: (parse_type_internal):
1999 * tools/scannerlexer.l:
2000 * tools/scannerparser.y:
2001 Support C99 _Bool type in scanner.
2003 2008-03-10 Jürg Billeter <j@bitron.ch>
2005 * tests/parser/Foo-expected.gidl:
2006 * tests/parser/foo-object.h:
2007 * tests/parser/foo.c: (foo_enum_method):
2008 * tools/scanner.c: (g_igenerator_process_function_symbol):
2009 Don't skip functions that are defined in the namespace of a type
2010 that doesn't support methods, as for example enums.
2012 2008-03-10 Johan Dahlin <johan@gnome.org>
2014 * gidl.dtd: Remove, we're using relaxng for now
2016 * tests/parser/Foo-expected.gidl:
2017 * tests/parser/foo-object.h:
2018 * tests/parser/foo.c:
2019 Rename the enum/flags get_type functions to include the whole type.
2021 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
2023 * tools/gidlwriter.c (enum_generate): added "type-name",
2024 "get-type" and "deprecated" missing arguments.
2025 * tests/parser/Foo-expected.gidl:
2026 * tests/parser/foo-object.h: test enum type, and no type.
2028 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
2031 Consistent checks, add missing 'test'
2033 2008-03-05 Havoc Pennington <hp@redhat.com>
2035 * configure.ac: Take advantage of a libffi.pc if one exists, as it
2036 does on Fedora 8. Make libffi a hard requirement, since it was in
2037 practice anyway (was not really conditional in the code or
2038 makefile, only in configure).
2040 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2042 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
2043 reviewed by: Johan Dahlin <johan@gnome.org>
2045 * tests/Makefile.am:
2046 * tests/roundtrips.sh:
2047 Modify the roundtrips test so that they do not use the
2048 --raw option of the gidl compiler but instead compile a
2049 shared library to use with g_module.
2051 * tests/invoke/Makefile.am:
2052 * tests/invoke/invoke.c:
2053 Modify the invoke tests to build a shared library rather
2054 than use the --raw option.
2056 * tests/invoke/invoke-namespace-find.sh: Removed:
2057 Noone knows why this was here, so removed.
2059 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
2061 * tools/scanner.c: (g_igenerator_process_function_symbol):
2062 Move g_idl_node_can_have_member test later, as it broke spotting
2063 get_type's for nodes that can't have members.
2065 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2068 * tools/gidlnode.c: (g_idl_node_can_have_member):
2069 Add g_idl_node_can_have_member.
2071 * tools/scanner.c: (g_igenerator_process_function_symbol):
2072 Use g_idl_node_can_have_member to test if we should add a function
2073 as a member of the type node.
2075 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2077 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
2079 * tests/parser/Makefile.am:
2080 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
2082 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2084 * tools/scanner.c: (main):
2085 Ignore -pthread when passed to g-idl-scanner.
2087 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2089 * tools/grealpath.h: Added:
2090 * tools/scanner.c: (main):
2091 * tools/scannerlexer.l:
2092 * tools/Makefile.am:
2093 Always use absolute paths with symbolic links resolved when
2094 comparing filenames.
2096 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2098 * gobject-introspection.pc.in:
2099 Provide variables for g-idl-parser, scanner and compiler in the
2102 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
2105 * girepository/Makefile.am:
2106 * tools/Makefile.am:
2107 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
2109 2008-02-10 Johan Dahlin <johan@gnome.org>
2111 * tests/parser/Foo-expected.gidl:
2112 * tests/parser/foo-object.h:
2113 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
2114 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
2117 2008-02-10 Johan Dahlin <johan@gnome.org>
2119 * tests/parser/Foo-expected.gidl:
2120 * tests/parser/foo-object.h:
2121 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
2122 Add enum and flags test.
2124 2008-02-10 Johan Dahlin <johan@gnome.org>
2128 * girepository/Makefile.am:
2129 Make 'make distcheck' work again.
2131 2008-02-10 Johan Dahlin <johan@gnome.org>
2133 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
2136 * tests/parser/Makefile.am: Only create Foo.gidl when running make
2137 check, eg exclude it from BUILT_SOURCES.
2139 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2144 * girepository/Makefile.am:
2145 * m4/Makefile.am: Added:
2146 * m4/as-compiler-flag.m4: Added:
2147 * m4/gcov.m4: Added:
2148 * tools/Makefile.am:
2149 Add ability to generate a coverage report.
2150 Adds configure option --enable-gcov and make rule 'check-coverage'.
2152 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2156 * gidl/Makefile.am: Added:
2157 * girepository/Makefile.am: Added:
2158 * src/Makefile.am: Renamed to tools/Makefile.am:
2159 * src/compiler.c: Renamed to tools/compiler.c:
2160 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
2161 * src/generate.c: Renamed to tools/generate.c:
2162 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
2163 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
2164 * src/gidlnode.c: Renamed to tools/gidlnode.c:
2165 * src/gidlnode.h: Renamed to tools/gidlnode.h:
2166 * src/gidlparser.c: Renamed to tools/gidlparser.c:
2167 * src/gidlparser.h: Renamed to tools/gidlparser.h:
2168 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
2169 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
2170 * src/ginfo.c: Renamed to girepository/ginfo.c:
2171 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
2172 * src/girepository.c: Renamed to girepository/girepository.c:
2173 * src/girepository.h: Renamed to girepository/girepository.h:
2174 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
2175 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
2176 * src/scanner.c: Renamed to tools/scanner.c:
2177 * src/scanner.h: Renamed to tools/scanner.h:
2178 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
2179 * src/scannerparser.y: Renamed to tools/scannerparser.y:
2180 * tests/invoke/Makefile.am:
2181 Split src/ into girepository/ and tools/
2185 * girepository/Makefile.am:
2186 * tests/Makefile.am:
2187 * tests/invoke/Makefile.am:
2188 * tests/parser/Makefile.am:
2189 * tests/roundtrips.sh:
2190 * tools/Makefile.am:
2191 Make distcheck work.
2193 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
2195 * tests/invoke/invoke.c: (main):
2196 * tests/invoke/testfns.c: (test6), (test7):
2197 * tests/invoke/testfns.xml:
2198 Add tests for invokation with a GList argument.
2199 Also tests caller-owns return values.
2201 2008-02-04 Rob Taylor <robtaylor@floopily.org>
2204 Add some documentation for GICallableInfo
2206 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
2209 Correct syntax errors in the DTD file.
2211 * relaxng/c-types.xml:
2212 * relaxng/g-types.xml:
2214 Add a RelaxNG specification for the GObject Introspection XML data.
2215 The Specification has validated all of the test files.
2217 2008-01-25 Rob Taylor <robtaylor@floopily.org>
2219 * tests/roundtrips.sh:
2220 * tests/struct.test:
2221 Add roundtrip tests for structs.
2223 2008-01-11 Johan Dahlin <johan@gnome.org>
2225 * src/scanner.c (g_igenerator_process_function_symbol):
2226 Refactor out g_idle_node_add_member.
2227 (create_node_from_gtype, create_node_from_ctype):
2228 Use case instead of if...else
2229 (get_type_from_type_id):
2230 Rename to create_node_from_gtype
2231 (get_type_from_ctype):
2232 Rename to create_node_from_ctype
2234 Rename ginode -> node, gitype -> type, gifunc -> func.
2236 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
2237 Two new functions, refactor out of scanner.c
2239 * src/scanner.c: (g_igenerator_process_function_symbol):
2240 * src/scannerlexer.l:
2241 Do not save the content of the deprecated variable, only
2244 2008-01-11 Johan Dahlin <johan@gnome.org>
2246 * tests/parser/foo-object.h: Add a couple of comment parser tests.
2248 2008-01-11 Jürg Billeter <j@bitron.ch>
2250 * src/scannerlexer.l:
2251 Fix GTK-Doc parsing.
2253 2008-01-11 Jürg Billeter <j@bitron.ch>
2255 * src/scannerlexer.l:
2256 Fix GTK-Doc parsing.
2258 2008-01-11 Jürg Billeter <j@bitron.ch>
2260 * src/scanner.c: (lookup_symbol):
2261 Return unresolved name if we find unknown symbol.
2263 2008-01-11 Jürg Billeter <j@bitron.ch>
2265 * src/scanner.c: (g_igenerator_generate):
2266 Initialize GObject to fix scanning interface properties.
2268 * tests/parser/Foo-expected.gidl:
2269 * tests/parser/foo-object.h:
2270 * tests/parser/foo.c: (foo_interface_get_type):
2271 Test interfaces with GObject prerequisite.
2273 * tests/parser/Makefile.am:
2274 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
2276 2007-12-27 Johan Dahlin <johan@gnome.org>
2278 * src/scannerlexer.l:
2279 Parse gtk-doc comments.
2281 * src/gidlwriter.c: (function_generate):
2282 Reorganize, avoid duplication and add support for
2283 writing deprecated functions.
2285 * src/scannerparser.y:
2287 Add new structure CDirective and functions to create/free them.
2289 * src/scanner.c: (g_igenerator_process_function_symbol),
2290 (g_igenerator_process_unregistered_struct_typedef),
2291 (g_igenerator_process_struct_typedef),
2292 (g_igenerator_process_union_typedef),
2293 (g_igenerator_process_enum_typedef),
2294 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
2295 (g_igenerator_start_preprocessor):
2296 Parse @deprecated directive for functions.
2297 Remove some more C99isms.
2298 Send in -C to cpp to avoid stripping comments.
2300 * tests/parser/foo-object.h:
2301 * tests/parser/Foo-expected.gidl:
2302 Add deprecated directive
2304 2007-12-27 Johan Dahlin <johan@gnome.org>
2306 * src/scannerlexer.l (intsuffix): Add emacs mode line and
2307 escape ' and " so it looks more like C.
2310 Unlink temporary file used.
2312 2007-12-27 Johan Dahlin <johan@gnome.org>
2314 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
2315 (g_igenerator_start_preprocessor), (main):
2317 * src/scannerparser.y:
2318 Plug a couple of simple memory leaks.
2320 2007-12-27 Johan Dahlin <johan@gnome.org>
2322 * src/scanner.c: (g_igenerator_parse_macros),
2323 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
2326 * src/scannerparser.y:
2327 * tests/parser/Makefile.am:
2329 Improve error reporting, return when the preprocessor fails.
2330 Add a verbose parameter, to aid debugging.
2331 Revert to using a temporary file to communicate between the
2332 preprocessor and the parser, because we need to wait for
2333 the exit code from the pre-processor before starting to parse.
2335 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
2337 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
2338 cparser.y to scannerparser.y
2340 2007-12-11 Johan Dahlin <johan@gnome.org>
2344 * src/scanner.c: (g_igenerator_new):
2346 Get rid of the global the_generator variable.
2348 2007-12-10 Johan Dahlin <johan@gnome.org>
2350 * src/scanner.c (main): Add an output option,
2351 add checks for required parameters
2354 set BUILD_SOURCES and CLEANFILES properly
2356 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
2357 (g_writer_write_indent), (g_writer_write_unindent),
2358 (field_generate), (value_generate), (constant_generate),
2359 (property_generate), (function_generate), (vfunc_generate),
2360 (signal_generate), (interface_generate), (struct_generate),
2361 (union_generate), (boxed_generate), (enum_generate),
2362 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
2364 * src/scanner.c: (g_igenerator_generate):
2366 * src/scannerwriter.c:
2368 Refactor scannerwriter to only be tied to a GIdlModule and move
2369 it (again!) to gidlwriter.c. Change the writer function to take
2372 2007-12-10 Johan Dahlin <johan@gnome.org>
2375 * src/scanner.c: (g_igenerator_generate):
2377 * src/scannerwriter.c: (g_igenerator_write_inline),
2378 (g_igenerator_write), (g_igenerator_write_indent),
2379 (g_igenerator_write_unindent), (field_generate), (value_generate),
2380 (constant_generate), (property_generate), (function_generate),
2381 (vfunc_generate), (signal_generate), (interface_generate),
2382 (struct_generate), (union_generate), (boxed_generate),
2383 (enum_generate), (node_generate), (module_generate),
2384 (g_scanner_write_file):
2386 Move the scanner gidl writing to a separate source file.
2388 2007-12-10 Johan Dahlin <johan@gnome.org>
2393 Move over all CType construction functions.
2395 * tests/parser/Makefile.am:
2396 Be verbose when printing parsing tests results.
2398 2007-12-10 Johan Dahlin <johan@gnome.org>
2400 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
2401 preprocessor handling to here. Start cpp insteado of cc -E,
2402 always include -U__GNUC__, since it's specific to the preprocessor
2405 * tests/parser/Makefile.am (check-local): Silent diff and skip
2406 -U__GNUC__ which is always defined now
2408 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
2410 reviewed by: <delete if not using a buddy>
2412 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
2413 * tests/parser/Makefile.am:
2415 2007-12-09 Johan Dahlin <johan@gnome.org>
2418 Use GOption for command line options.
2419 (g_igenerator_new, main): Simplify constructor and they way
2420 parameters are passed into it.
2426 * src/gen-introspect.c:
2427 * src/gen-introspect.h:
2429 Rename gen-introspect.[ch] to scanner.[ch]
2431 2007-12-09 Johan Dahlin <johan@gnome.org>
2435 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
2436 don't make the repository library and the other utilites link against
2439 * src/gen-introspect.c: (g_igenerator_create_object),
2440 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2441 (g_igenerator_create_enum), (g_igenerator_create_flags),
2442 (g_igenerator_process_module_symbol),
2443 (g_igenerator_process_module), (g_igenerator_generate), (main):
2444 * src/gen-introspect.h:
2445 Refactor g_igenerator_process_types into smaller pieces.
2447 * tests/parser/Makefile.am:
2448 Depend on the gen-introspect binary
2450 2007-12-09 Johan Dahlin <johan@gnome.org>
2452 * src/gen-introspect.c (g_igenerator_process_types):
2453 Break into smaller pieces, one for each generated node type.
2455 2007-12-08 Johan Dahlin <johan@gnome.org>
2457 * src/gen-introspect.c: (g_igenerator_process_types),
2458 (g_igenerator_add_module):
2459 * tests/parser/Foo-expected.gidl:
2460 * tests/parser/foo-object.h:
2461 * tests/parser/foo.c: (foo_subobject_class_init),
2462 (foo_subobject_init):
2464 Add a subobject test and make sure to register defined classes
2465 in the lookup symbol hash table.
2467 2007-12-08 Johan Dahlin <johan@gnome.org>
2471 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
2472 (g_igenerator_process_types), (g_igenerator_add_module),
2473 (g_igenerator_add_include_idl), (main):
2474 * src/gen-introspect.h:
2475 * tests/parser/Makefile.am:
2476 * tests/parser/Foo-expected.gidl:
2478 Change the gen-introspect to generate namespaced module names,
2479 such as GLib.Object instead of GObject.
2480 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
2481 add a --include-idl parameter to gen-introspect,
2482 and update the parser test.
2484 2007-12-08 Johan Dahlin <johan@gnome.org>
2486 * src/gen-introspect.c:
2487 Move main to the end of the file and attempt to make it valid
2490 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
2491 we're not quite ready to generate metadata yet.
2496 Add a simple gen-introspect parser test
2498 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
2500 reviewed by: Johan Dahlin <johan@gnome.org>
2503 * gobject-introspection.pc.in:
2505 * src/compiler.c: (format_output), (write_out_metadata), (main):
2506 * src/gen-introspect.c: (main):
2507 * src/gen-introspect.h:
2508 * src/generate.c: (write_callable_info), (write_repository),
2509 (load_metadata), (main):
2510 * src/gidlmodule.c: (g_idl_module_new),
2511 (g_idl_module_build_metadata):
2513 * src/gidlparser.c: (start_element_handler):
2514 * src/ginfo.c: (g_info_new), (g_info_from_entry),
2515 (g_base_info_get_name), (g_base_info_get_namespace),
2516 (g_base_info_is_deprecated), (g_base_info_get_annotation),
2517 (g_base_info_get_metadata), (g_function_info_get_symbol),
2518 (g_function_info_get_flags), (g_function_info_get_property),
2519 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
2520 (g_callable_info_may_return_null),
2521 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
2522 (g_callable_info_get_arg), (g_arg_info_get_direction),
2523 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
2524 (g_arg_info_is_optional), (g_arg_info_may_be_null),
2525 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
2526 (g_type_info_get_tag), (g_type_info_get_param_type),
2527 (g_type_info_get_interface), (g_type_info_get_array_length),
2528 (g_type_info_is_zero_terminated),
2529 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
2530 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
2531 (g_value_info_get_value), (g_field_info_get_flags),
2532 (g_field_info_get_size), (g_field_info_get_offset),
2533 (g_registered_type_info_get_type_name),
2534 (g_registered_type_info_get_type_init),
2535 (g_struct_info_get_n_fields), (g_struct_info_get_field),
2536 (g_struct_info_get_n_methods), (g_struct_info_get_method),
2537 (find_method), (g_struct_info_find_method),
2538 (g_enum_info_get_n_values), (g_enum_info_get_value),
2539 (g_object_info_get_parent), (g_object_info_get_type_name),
2540 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
2541 (g_object_info_get_interface), (g_object_info_get_n_fields),
2542 (g_object_info_get_field), (g_object_info_get_n_properties),
2543 (g_object_info_get_property), (g_object_info_get_n_methods),
2544 (g_object_info_get_method), (g_object_info_find_method),
2545 (g_object_info_get_n_signals), (g_object_info_get_signal),
2546 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
2547 (g_object_info_get_n_constants), (g_object_info_get_constant),
2548 (g_interface_info_get_n_prerequisites),
2549 (g_interface_info_get_prerequisite),
2550 (g_interface_info_get_n_properties),
2551 (g_interface_info_get_property), (g_interface_info_get_n_methods),
2552 (g_interface_info_get_method), (g_interface_info_find_method),
2553 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
2554 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
2555 (g_interface_info_get_n_constants),
2556 (g_interface_info_get_constant), (g_property_info_get_flags),
2557 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
2558 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
2559 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
2560 (g_constant_info_get_value), (g_union_info_get_n_fields),
2561 (g_union_info_get_field), (g_union_info_get_n_methods),
2562 (g_union_info_get_method), (g_union_info_is_discriminated),
2563 (g_union_info_get_discriminator_offset),
2564 (g_union_info_get_discriminator):
2565 * src/ginvoke.c: (g_function_info_invoke):
2566 * src/girepository.c: (g_irepository_register),
2567 (g_irepository_unregister), (g_irepository_get_default),
2568 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
2569 (g_irepository_get_info), (g_irepository_find_by_name),
2570 (g_irepository_get_shared_library),
2571 (g_irepository_build_search_path), (g_irepository_register_file),
2572 (g_irepository_error_quark):
2573 * src/girepository.h:
2574 * src/gmetadata.c: (g_metadata_get_dir_entry),
2575 (g_metadata_check_sanity), (validate_header),
2576 (validate_array_type_blob), (validate_iface_type_blob),
2577 (validate_param_type_blob), (validate_error_type_blob),
2578 (validate_type_blob), (validate_arg_blob),
2579 (validate_signature_blob), (validate_function_blob),
2580 (validate_callback_blob), (validate_constant_blob),
2581 (validate_value_blob), (validate_field_blob),
2582 (validate_property_blob), (validate_signal_blob),
2583 (validate_vfunc_blob), (validate_struct_blob),
2584 (validate_enum_blob), (validate_object_blob),
2585 (validate_interface_blob), (validate_errordomain_blob),
2586 (validate_union_blob), (validate_blob), (validate_directory),
2587 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
2588 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
2589 (g_metadata_new_from_mapped_file), (g_metadata_free),
2590 (g_metadata_set_module), (g_metadata_get_namespace):
2592 * tests/Makefile.am:
2593 * tests/invoke/Makefile.am:
2594 * tests/invoke/invoke-namespace-find.sh:
2595 * tests/invoke/invoke.c: (main):
2597 Add a namespace/shared library mapping. fixes #313268.
2599 2007-12-03 Johan Dahlin <johan@gnome.org>
2601 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
2604 2007-11-30 Jürg Billeter <j@bitron.ch>
2610 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
2611 (g_igenerator_write_inline), (g_igenerator_write),
2612 (g_igenerator_write_indent), (g_igenerator_write_unindent),
2613 (field_generate), (value_generate), (constant_generate),
2614 (property_generate), (function_generate), (vfunc_generate),
2615 (signal_generate), (interface_generate), (struct_generate),
2616 (union_generate), (boxed_generate), (enum_generate),
2617 (node_generate), (module_generate), (get_type_from_type_id),
2618 (str_replace), (g_igenerator_process_properties),
2619 (g_igenerator_process_signals), (g_igenerator_process_types),
2620 (get_type_from_ctype), (g_igenerator_process_function_symbol),
2621 (g_igenerator_process_unregistered_struct_typedef),
2622 (g_igenerator_process_struct_typedef),
2623 (g_igenerator_process_union_typedef),
2624 (g_igenerator_process_enum_typedef),
2625 (g_igenerator_process_function_typedef),
2626 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2627 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
2628 (g_igenerator_generate), (main), (csymbol_new),
2629 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
2630 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
2631 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
2632 (eat_hspace), (eat_line), (read_identifier),
2633 (g_igenerator_parse_macros):
2634 * src/gen-introspect.h:
2636 Import gen-introspect to generate introspection information by
2639 2007-11-30 Jürg Billeter <j@bitron.ch>
2641 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
2643 2007-11-30 Jürg Billeter <j@bitron.ch>
2645 * src/gidlparser.c: (end_element_handler): Don't leave requires
2648 2007-11-29 Johan Dahlin <johan@gnome.org>
2650 * src/gidlparser.c (parse_type_internal): Add char,
2651 gchar and guchar to the builtin types.
2653 2007-11-26 Johan Dahlin <johan@gnome.org>
2655 * src/ginfo.c: (g_object_info_get_type_name),
2656 (g_object_info_get_type_init):
2657 * src/girepository.c: (g_irepository_is_registered):
2658 * src/girepository.h:
2660 Add g_object_info_get_type_name, g_object_info_get_type_init and
2661 g_irepository_is_registered.
2663 2006-08-14 Jürg Billeter <j@bitron.ch>
2665 * src/gidlparser.c: (end_element_handler): Don't leave
2666 namespace and implements states too early.
2669 2007-11-26 Johan Dahlin <johan@gnome.org>
2671 * src/gmetadata.c (validate_struct_blob):
2672 pass blob_type to validate_function_blob instead of
2673 hard-coding BLOB_TYPE_STRUCT.
2675 Patch by Torsten Schoenfeld, fixes #314190
2677 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
2679 * src/compiler.c, src/generate.c, src/gidlnode.c,
2680 src/gidlparser.c, src/ginfo.c, src/girepository.c,
2681 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
2682 warnings about return values, signedness mismatches, unused
2683 variables, and unhandles enum values in switch statements.
2685 * tests/invoke/Makefile.am: Don't install the invoke test program.
2686 Add -I ../../src to the cflags used for the test functions files.
2688 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2690 * src/girepository.h: Export g_invoke_error_quark.
2692 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2694 * src/ginvoke.c: Remove the fallback implementation of
2695 g_function_info_invoke since we now formally depend on libffi.
2697 2005-07-25 Matthias Clasen <mclasen@redhat.com>
2699 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
2700 Remove these files from cvs, as they are now generated.
2702 * src/gmetadata.c (validate_iface_type_blob): Don't
2703 complain if blob->pointer is not set, since that
2704 happens for enum and flag types. (#308935, Gustavo
2707 * Commit an autoconf-conversion patch by
2708 Gustavo Carneiro (#308708)
2710 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2712 * src/compiler.c (main): Use it here to validate
2713 the generated metadata.
2715 * src/gmetadata.[hc]: Add code to validate a
2718 * metadata-format.txt: Updates
2720 2005-05-22 Matthias Clasen <mclasen@redhat.com>
2722 * tests/*: Add struct offsets to field and vfunc
2725 * src/generate.c (write_vfunc_info): Write offset
2726 information for vfuncs.
2728 * src/gidlnode.c (g_idl_node_build_metadata): Write
2729 the struct offsets into the metadata.
2731 * src/gidlparser.c: Parse the offset attributes of
2732 field and vfunc elements.
2734 * src/gidlnode.h: Add offset members to field and
2737 2005-05-21 Matthias Clasen <mclasen@redhat.com>
2741 * gidl.dtd: Updates.
2743 * src/g-idl-offsets.pl: A perl script which reads a .gidl
2744 file, creates, compiles and runs a C file, and folds the
2745 resulting struct offsets back into the .gidl file.
2747 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2749 * src/gidlparser.c (start_field): Make fields in objects
2752 * src/gidlmodule.c: Include string.h
2757 * metadata-format.txt: Cleanup basic types.
2758 * src/*: Adapt to the changes.
2759 * tests/*: Adapt to the changes.
2760 * examples/gdk-pixbuf.gidl: Adapt to the changes.
2762 * src/gidlnode.c (g_idl_node_get_size): Report the correct
2763 size for enum blobs.
2764 (g_idl_node_get_full_size): Report the correct size for
2767 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
2768 error checking for blob sizes.
2770 2005-05-19 Matthias Clasen <mclasen@redhat.com>
2772 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
2773 interface types for which is_pointer is FALSE, e.g. enums.
2775 * src/gidlnode.c (g_idl_node_get_full_size)
2776 * src/gidlparser.c (parse_type_internal):
2777 * src/generate.c (write_type_info): Support unspecialized
2778 lists, hashtables and errors. Also emit a '*' after these.
2782 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2786 * metadata-format.txt: Cleanups by Maciej Katafiasz.
2788 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2790 * src/*.c: Change the directory to be addressed by
2791 1-based indexes, and use an index of zero to mean
2794 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2796 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
2798 * tests/union.test: Add a union test.
2800 * src/generate.c: Handle unions.
2802 * src/girepository.h:
2803 * src/ginfo.c: Add GIUnionInfo and functions to access it.
2805 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
2807 * src/gidlparser.c (start_union): Parse <union> elements.
2809 * src/gidlnode.h: Add a GIdlNodeUnion.
2811 * gidl.dtd: Add a <union> element.
2813 * src/gmetadata.c (g_metadata_check_sanity): Check
2816 * src/gmetadata.h: Add union_blob_size to Header,
2819 * metadata-format.txt: Add a UnionBlob.
2821 2005-05-13 Matthias Clasen <mclasen@redhat.com>
2823 * tests/*: Update testcases.
2825 * src/generate.c (write_callable_info): Don't forget to
2826 write transfer and null-ok attributes for return types
2829 * src/girepository.h:
2830 * src/ginfo.c (g_callable_info_may_return_null):
2831 New function to find out if a function may return NULL.
2833 * src/compiler.c (format_output): Make the generated
2836 * README: Point to a recent libffi snapshot.
2838 * tests/invoke/*: Some invoke tests.
2840 * src/Makefile: Add ginvoke.c and the necessary
2843 * src/girepository.h (g_function_info_invoke): Add
2846 * src/ginvoke.c (g_function_info_invoke): Initial
2847 implementation of invoke functionality based on libffi.
2849 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
2850 strings and types hash tables in the right order when
2852 (find_entry_node): Free the name parts.
2854 2005-05-12 Johan Dahlin <johan@gnome.org>
2856 * src/generate.c: Generate consistent end tags.
2860 2005-05-12 Matthias Clasen <mclasen@redhat.com>
2864 * src/gidlparser.c (start_function): Actually add
2865 methods to objects. (Steven Walter)
2867 * src/girepository.h:
2868 * src/ginfo.c: Rename Transfer and Direction to
2869 GITransfer and GIDirection. (Torsten Schoenfeld)
2871 * tests/*: Make tests work with the changes in name
2874 * src/gidlnode.c (find_entry_node): Parse qualified
2875 names and generate xref nodes for them if needed. Don't
2876 require all modules to be loaded any more.
2878 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
2881 * src/ginfo.c (g_object_info_get_parent): Return NULL
2882 if blob->parent is 0. Still need to make sure index
2885 * src/generate.c: Generate qualified names when
2886 referring to non-local types. Emit transfer attribute
2889 * src/compiler.c (format_output): Put the function
2890 attributes where gcc accepts them.
2892 2005-05-11 Matthias Clasen <mclasen@redhat.com>
2894 * src/compiler.c (main): Add a --verbose cmdline option
2895 and only log messages if it is specified.
2898 * src/gidlnode.c (init_stats, dump_stats): Collect some
2899 statistics on string and type sharing.
2901 * src/gidlmodule.c (g_idl_module_build_metadata): Use
2902 g_message() instead of fprintf().
2904 * src/gidlnode.c (g_idl_node_free): Make this more robust.
2905 (g_idl_node_get_size): Implement for structs.
2906 (g_idl_node_get_full_size): Handle parent being NULL.
2907 (serialize_type): Handle lookup failures more gracefully.
2909 2005-05-10 Matthias Clasen <mclasen@redhat.com>
2911 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
2912 size calculation for 2-parameter types and for objects.
2914 * src/compiler.c: Add a cmdline option for debug output
2915 and install a log handler to implement it.
2916 * src/gidlnode.c: Add some debug spew.
2920 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
2921 forget to count the module name when calculating the
2922 required size for the metadata.
2925 * src/gidlparser.c: Fix compiler warnings.
2927 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2929 * src/compiler.c (main): Free the option context.
2931 * gidl.dtd: Clean up handling of names. All elements
2932 have a "name", only the elements corresponding to
2933 actual callable functions (function, method, constructor),
2934 have an additional "symbol" attribute holding the
2935 dlsym()-able function name.
2937 * src/generate.c: Adapt to generate xml matching the
2941 * src/gidlnode.c: Adapt to parse the new dtd.
2943 * tests/*.test: Adjust to the new dtd.
2945 * metadata-format.txt:
2946 * src/gmetadata.h: Remove the short_name field
2948 * src/gmetadata.c: Shrink size of ValueBlob to 12.
2949 * src/girepository.h:
2950 * src/ginfo.c (g_value_info_get_short_name): Removed
2952 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2954 * gidl.dtd: Allow constructors for boxed types,
2955 patch by Jonathan Blandford.
2958 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2960 * --- Initial import ---