1 2008-08-24 Johan Dahlin <johan@gnome.org>
3 * girepository/girparser.c (start_glib_boxed), (start_function),
4 (start_field), (start_alias):
5 Refactor a couple of parsing functions to be simpler to follow.
8 2008-08-24 Johan Dahlin <johan@gnome.org>
10 * girepository/girparser.c (start_function):
11 Remove left-over code, checking type of function.
13 2008-08-23 Colin Walters <walters@verbum.org>
15 * giscanner/config.py: Define DATADIR.
16 * giscanner/transformer.py: Look in DATADIR.
18 2008-08-23 Colin Walters <walters@verbum.org>
20 * girepository/gtypelib.c: Check constructor
22 * girepository/girnode.c: Small tweaks.
23 * girepository/ginfo.c: Calculate signature offsets
25 * girepository/girparser.c: Remove duplicate
27 * giscanner/glibtransformer.py: Avoid marking
28 functions which return a basic type as
31 2008-08-23 Colin Walters <walters@verbum.org>
33 * girepository/girparser.c: Ignore <include>.
34 * giscanner/girparser.py: Parse them.
35 * giscanner/girwriter.py: Generate them.
36 * giscanner/transformer.py: Process <include>
37 recursively. Don't require full path for
38 includes, look in {$XDG_DATA_DIRS}/gir.
39 * tools/g-ir-scanner: Pass through includes.
40 * Makefile.am: Remove extra --include
42 * *-expected.gir: Add expected includes.
44 2008-08-23 Johan Dahlin <johan@gnome.org>
46 * tests/scanner/Makefile.am:
47 * tests/scanner/annotation-expected.gir:
48 * tests/scanner/drawable-expected.gir:
49 Avoid duplication in the Makefile, regenerate with new
50 namespaces (same as the filename)
52 2008-08-22 Colin Walters <walters@verbum.org>
54 * girepository/girnode.c: Don't hardcode integers,
57 2008-08-22 Johan Dahlin <johan@gnome.org>
59 * giscanner/sourcescanner.py:
60 Check for ../gobject-introspection-1.0.pc.in to determine
61 if we run installed or uninstalled.
63 2008-08-22 Johan Dahlin <johan@gnome.org>
66 * giscanner/sourcescanner.py:
67 Send in undefs/defines via writing it directly to stdin
68 of cpp instead of via arguments.
70 2008-08-22 Colin Walters <walters@verbum.org>
72 * tools/generate.c, tools/compiler.c: Default
74 * all Makefile.am: Update.
76 2008-08-22 Colin Walters <walters@verbum.org>
78 * girepository/girparser.c: Pass through
79 recursive types. Avoid overwriting errors.
80 * giscanner/xmlwriter.py: Always write the
82 * tests/*.gir: Adjust.
83 * tests/scanner/Makefile.am: Build typelibs,
84 and generate XML from those. Once we
85 have a good diff mechanism...
86 * tests/scanner/*-expected.gir: Add XML
88 * tools/g-ir-scanner: Accept --typelib-xml
90 * tools/generate.c: Better defaults for transfer.
92 2008-08-22 Johan Dahlin <johan@gnome.org>
96 * giscanner/Makefile.am:
97 * giscanner/config.py.in:
98 * giscanner/sourcescanner.py:
99 Use the generated glibconfig.h for all scanner invokations.
100 Rename it to glibconfig-scanner.h and install it.
101 Add a config.py which so far contains the include dir.
103 2008-08-22 Johan Dahlin <johan@gnome.org>
106 Replace glibconfig.h with our own, do some replacement
107 for CPP/C features we do not support
109 2008-08-22 Colin Walters <walters@verbum.org>
111 * tools/generate.c (write_callable_info): Fix unref
114 2008-08-22 Colin Walters <walters@verbum.org>
116 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
117 * tests/Makefile.am: Support $(DEBUG)
118 * tools/generate.c: Do immediate close tags if no
121 2008-08-21 Colin Walters <walters@verbum.org>
123 * tests/scanner/drawable-expected.gir,
124 * tests/scanner/drawable.c,
125 * tests/scanner/drawable.h:
128 2008-08-21 Colin Walters <walters@verbum.org>
130 * giscanner/glibtransformer.py: Compute prefix
131 by searching through the symbol for bits
132 rather than going directly from ctype; this fixes
135 2008-08-21 Colin Walters <walters@verbum.org>
137 * giscanner/glibtransformer.py: Also try squashing
138 underscores from namespace, fixes webkit_web_view_new.
140 2008-08-21 Colin Walters <walters@verbum.org>
142 * giscanner/glibtransformer.py: More ctor work,
143 avoid having gtk_window_group_new end up under
146 2008-08-21 Colin Walters <walters@verbum.org>
148 * giscanner/glibtransformer.py: Much simpler approach
149 of mapping uscored names to classes.
150 * giscanner/utils.py: Remove unnecessary function.
152 2008-08-21 Johan Dahlin <johan@gnome.org>
154 * girepository/girepository.c (g_irepository_require):
155 Plug memory leak and avoid using freed memory.
156 Resolve the whole module path, here as well.
158 2008-08-21 Colin Walters <walters@verbum.org>
160 * giscanner/glibtransformer.py: Look up all permutations
161 of class names when scanning methods/ctors based on
162 the prefix instead of using the return value. This
163 associates gtk_window_new with the right class.
165 2008-08-21 Colin Walters <walters@verbum.org>
167 * girepository/girmodule.c (g_ir_module_build_typelib):
168 Revert change to increment header_size; we do that in
171 2008-08-21 Colin Walters <walters@verbum.org>
173 * girepository/girnode.c (write_string): Tweak to
174 use UINT instead of INT. Not likely to matter.
175 * girepository/girmodule.c (g_ir_module_build_typelib):
176 Add to header_offset as well for header strings
177 to match what write_string does.
178 * girepository/gtypelib.c: Replace is_name with
179 validate_name, which more strongly validates and
180 handles errors in a better way. Update all callers.
181 * giscanner/glibtransformer.py: Handle constructors
184 2008-08-21 Johan Dahlin <johan@gnome.org>
186 * gir/Makefile.am (typelibs_DATA): Build and
187 install the Gio.typelib too
189 * girepository/gtypelib.c (_g_typelib_init):
190 Use g_module_build_path to resolve the shlib name
192 2008-08-21 Colin Walters <walters@verbum.org>
194 * gir/Makefile.am: CLEANFILES typelibs too.
196 2008-08-21 Johan Dahlin <johan@gnome.org>
198 * giscanner/glibtransformer.py:
199 Do not send .la files through find_library.
201 2008-08-21 Colin Walters <walters@verbum.org>
203 * girepository/girparser.c (g_irepository_require):
204 Fix one small leak in error case.
206 2008-08-21 Johan Dahlin <johan@gnome.org>
209 Parse glibconfig.h as well and install the compiled
212 2008-08-21 Johan Dahlin <johan@gnome.org>
215 * giscanner/glibtransformer.py:
216 * tools/g-ir-scanner:
217 Do not hard-core library names in the Makefile, reuse
218 ctypes find_library instead.
220 2008-08-21 Johan Dahlin <johan@gnome.org>
222 * girepository/girparser.c (resolve_aliases):
223 Remove compilation warnings
225 2008-08-21 Johan Dahlin <johan@gnome.org>
227 * girepository/girepository.c (g_irepository_require):
228 Rewrap and fix double free bug by leaking a bit.
230 2008-08-20 Colin Walters <walters@verbum.org>
232 * girepository/girepository.c: Add new function
233 g_irepository_get_typelib_path which tells
234 us from where we loaded a namespace.
236 2008-08-20 Colin Walters <walters@verbum.org>
238 * tests/scanner/*-expected.gir: Adjust for
239 added shared-library.
240 * giscanner/giwriter.py: Make pylint happy.
242 2008-08-20 Colin Walters <walters@verbum.org>
244 * girepository/girmodule.c (g_ir_module_build_typelib):
245 Calculate size correctly, avoid use-after-free.
247 2008-08-20 Colin Walters <walters@verbum.org>
249 * girepository/girepository.c: Remove
250 g_irepository_register_file in favor of
251 g_irepository_require. There are two
252 possible deployment scenarios for typelibs:
253 First, separate in $DATADIR/gitypelibs/. Second,
254 they may be embedded in shlibs. However since
255 the first is now the normal case, the API is
258 Refactor internals to look up typelibs for
259 namespaces just-in-time, but we expect
260 consumers to call g_irepository_require.
262 Also, add some docs. No one has died from that
264 * gir/Makefile.am: Need --library for glib.
265 * giscanner/girwriter.py: Write out shared-library.
266 * tools/g-ir-writer: Take the first --library
267 argument as the target of shared-library. In
268 the future we should make this nicer with pkg-config
271 2008-08-20 Colin Walters <walters@verbum.org>
273 * girepository/girparser.py: And parse them.
275 2008-08-20 Johan Dahlin <johan@gnome.org>
277 * giscanner/glibast.py: Add gshort/gushort types
279 2008-08-20 Colin Walters <walters@verbum.org>
281 * gir/Makefile.am: Rename .gir files using GI namespace.
282 * girepository/girepository.c: Use XDG_DATA_DIRS for
283 looking up typelibs. Also typelibs are now suffixed
285 * tests/invoke/Makefile.am: Only use metadata.
286 * girepository/Makefile.am: Remove unnecessary include.
287 * tests/scanner/Makefile.am: Update using GI namespaces
288 for scanner includes.
290 2008-08-20 Colin Walters <walters@verbum.org>
292 * girepository/transformer.py: Suppress aliases whose
294 * girepository/ast.py: Define some more aliases.
296 2008-08-20 Colin Walters <walters@verbum.org>
298 * girepository/girparser.c: Avoid alias infloops.
300 2008-08-20 Colin Walters <walters@verbum.org>
302 * tests/scanner/foo-expected.gir: Fix expected list type.
304 2008-08-20 Johan Dahlin <johan@gnome.org>
306 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
307 Add a workaround for #548689.
308 We can now compile gtk!
310 2008-08-20 Colin Walters <walters@verbum.org>
312 * giscanner/glibtransformer.py: Try to look up
313 aliases using the c:type too.
315 2008-08-20 Colin Walters <walters@verbum.org>
317 * girepository/girparser.c: Parse union fields.
319 2008-08-20 Johan Dahlin <johan@gnome.org>
321 * giscanner/ast.py: Make time_t an alias for long
323 * gir/gio-2.0-good.gir:
324 * gir/glib-2.0-good.gir:
325 * gir/gobject-2.0-good.gir:
327 * giscanner/glibtransformer.py:
328 Do not delete Class structures, we need them in gdk/gtk.
329 * tests/scanner/drawable-expected.gir:
330 * tests/scanner/foo-expected.gir:
331 * tests/scanner/utility-expected.gir:
334 2008-08-20 Johan Dahlin <johan@gnome.org>
336 * tests/scanner/Makefile.am:
337 * tests/scanner/annotation-expected.gir:
338 * tests/scanner/annotation.c (annotation_object_class_init),
339 (annotation_object_init), (annotation_object_method),
340 (annotation_object_in), (annotation_object_out),
341 (annotation_object_inout), (annotation_object_inout2),
342 (annotation_object_inout3), (annotation_object_calleeowns),
343 (annotation_object_calleesowns), (annotation_object_get_strings),
344 (annotation_object_with_voidp), (annotation_object_get_objects),
345 (annotation_object_create_object), (annotation_object_allow_none):
346 * tests/scanner/annotation.h:
347 * tests/scanner/foo-expected.gir:
348 * tests/scanner/foo.c:
349 * tests/scanner/foo.h:
350 Split out annotation tests out of foo
352 2008-08-20 Johan Dahlin <johan@gnome.org>
354 * tests/scanner/Foo-expected.gir:
355 * tests/scanner/Makefile.am:
356 * tests/scanner/foo-expected.gir:
357 * tests/scanner/foo-object.h:
358 * tests/scanner/foo.c:
359 Foo->foo, foo-object.h -> foo.h
361 2008-08-20 Johan Dahlin <johan@gnome.org>
363 * tests/scanner/Foo-expected.gir:
364 * tests/scanner/Makefile.am:
365 * tests/scanner/drawable-expected.gir:
366 * tests/scanner/drawable.c (test_drawable_class_init),
367 (test_drawable_init):
368 * tests/scanner/drawable.h:
369 * tests/scanner/foo-object.h:
370 * tests/scanner/foo.c (foo_boxed_method):
371 Move the drawable parts out of Foo to its own test.
373 2008-08-20 Johan Dahlin <johan@gnome.org>
375 * tests/scanner/Foo-expected.gir:
376 * tests/scanner/foo-object.h:
377 * tests/scanner/foo.c (foo_drawable_class_init),
379 Add a based on GdkDrawable which generates
382 2008-08-19 Colin Walters <walters@verbum.org>
384 * giscanner/transformer.py: Don't try
385 to strip prefix before namespace.
387 2008-08-19 Johan Dahlin <johan@gnome.org>
389 * giscanner/transformer.py:
390 * tests/scanner/Foo-expected.gir:
391 * tests/scanner/foo-object.h:
392 Add support for typedef void foo type of
395 2008-08-19 Johan Dahlin <johan@gnome.org>
398 * giscanner/girwriter.py:
399 * giscanner/glibtransformer.py:
400 * giscanner/transformer.py:
401 * tests/scanner/Foo-expected.gir:
402 Add basic support for union, base the code much
403 on Struct. Add a testcase.
405 2008-08-19 Johan Dahlin <johan@gnome.org>
407 * tests/scanner/Foo-expected.gir:
408 * tests/scanner/foo-object.h:
409 Add a union testcase which the compiler currently
412 2008-08-19 Johan Dahlin <johan@gnome.org>
414 * gobject-introspection-1.0.pc.in:
415 Add a g_ir_compiler variable
417 2008-08-19 Colin Walters <walters@verbum.org>
419 * giscanner/ast.py: Rework types to be more closely
421 * giscanner/girparser.py: Parse more bits.
422 * giscanner/girwriter.py: Write sequences in a new
423 way that specifies container type.
424 * giscanner/glibast.py: Adjust for ast.py changes,
425 add 'ctype' property to GLibObject and GLibInterface
426 so we can look things up by it later.
427 * gicanner/transformer.py: Names is new class holding
428 the various namespaces we manage. Do not confuse
429 with Namespace which is toplevel XML node effectively.
430 Rework all type resolution to go through
431 _resolve_type_name_1.
432 * giscanner/glibtransformer.py: Raise UnknownTypeError
433 instead of ValueError for cleanliness. Add Unresolved
434 class to mark types whose parent we haven't seen yet.
435 Use new Names object from transformer.py.
436 Correctly look up parent=.
437 Fix type validation to handle sequences.
438 * tests/scanner/Foo-expected.gir: Update for sequence
439 work, int instead of int32.
440 * tools/g-ir-scanner: Add --noclosure option
441 * gir/Makefile.am: Use --noclosure by default for
444 2008-08-18 Johan Dahlin <johan@gnome.org>
446 * gir/gio-2.0-good.gir:
447 * gir/glib-2.0-good.gir:
448 * gir/gobject-2.0-good.gir:
451 2008-08-18 Johan Dahlin <johan@gnome.org>
454 * giscanner/girparser.py:
455 * giscanner/girwriter.py:
456 * giscanner/glibast.py:
457 * giscanner/glibtransformer.py:
458 * giscanner/transformer.py:
459 * tests/scanner/Foo-expected.gir:
460 * tests/scanner/foo-object.h:
461 * tests/scanner/utility-expected.gir:
462 * tests/scanner/utility.h:
463 Redo type resolving and validation.
464 Add a couple of new tests.
465 Patch mostly written by Colin.
467 2008-08-18 Johan Dahlin <johan@gnome.org>
470 * giscanner/girparser.py:
472 * giscanner/transformer.py:
473 Improve enum parsing for enums without a GType.
474 Make flags/enum references to other girs work
475 * giscanner/utils.py:
477 * tests/scanner/Makefile.am:
478 * tests/scanner/foo-object.h:
479 * tests/scanner/utility-expected.gir:
480 * tests/scanner/utility.h:
481 Add a new test for external enum references
483 2008-08-18 Johan Dahlin <johan@gnome.org>
485 * docs/global-module-registry.txt: Update
487 * tests/array.gir: Update with new type proposal
489 * girepository/girepository.c (g_type_tag_to_string):
490 * girepository/girepository.h:
491 * girepository/girnode.c (g_ir_node_get_full_size_internal),
493 * girepository/girnode.h:
494 Make enum serializing functions public. Clean up some whitespace.
496 2008-08-17 Johan Dahlin <johan@gnome.org>
498 * docs/global-module-registry.txt:
499 Add a document for an on disk module registry format
501 2008-08-17 Johan Dahlin <johan@gnome.org>
504 * gir/gio-2.0-good.gir:
507 2008-08-17 Johan Dahlin <johan@gnome.org>
510 * gir/glib-2.0-good.gir:
511 * gir/gobject-2.0-good.gir:
512 * giscanner/cgobject.py:
513 * giscanner/glibtransformer.py:
514 Regenerate GObject & GType.
515 Avoid warnings when generating gobject-2.0.gir.
516 Introspect a little more, and skip *_get_type functions.
518 2008-08-17 Colin Walters <walters@verbum.org>
520 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
521 Rename to -good, always generate during build.
522 * gir/Makefile.am: Ensure .gir files dep on
524 * Makefile.am: Switch build order to ensure
525 the scanner is ready before we do gir/.
526 * tools/g-ir-scanner: Look for .git too.
528 2008-08-17 Johan Dahlin <johan@gnome.org>
530 * girepository/gtypelib.c (validate_enum_blob):
531 * giscanner/glibtransformer.py:
532 * giscanner/transformer.py:
533 Remove resolve_possible_typedefs, it was unused.
534 Allow multiple enum values of the sample value in an enum,
535 since it's actually pretty common.
536 Register enums so they can be resolved too.
538 2008-08-16 Johan Dahlin <johan@gnome.org>
540 * giscanner/girparser.py:
541 Parse enumeration/bitfield.
543 2008-08-16 Johan Dahlin <johan@gnome.org>
545 * giscanner/girparser.py:
548 2008-08-16 Johan Dahlin <johan@gnome.org>
550 * giscanner/glibtransformer.py:
551 Resolve type names for alias targets
552 * giscanner/transformer.py:
553 Skip FILE* parameters fow now
555 2008-08-16 Johan Dahlin <johan@gnome.org>
558 * gir/gobject-2.0.gir:
561 * tests/scanner/Makefile.am:
564 2008-08-15 Colin Walters <walters@verbum.org>
566 * giscanner/glibtransformer.py: Explicitly construct
567 new list, since we're deleting as we iterate.
568 Don't delete all structures which end in Class; just
569 ones which have a paired GObject.
570 Fix printing of type warning.
571 * giscanner/transformer.py: Make strip_namespace_object
572 be the identity function if it doesn't match the
575 2008-08-15 Colin Walters <walters@verbum.org>
577 * giscanner/cgobject.py: Define yet more argument
578 prototypes; fix prototype for g_type_fundamental.
580 2008-08-14 Johan Dahlin <johan@gnome.org>
583 * tests/constant.gir:
586 * tools/generate.c (write_struct_info):
587 Fix generator for constant/gobject/struct
589 2008-08-14 Johan Dahlin <johan@gnome.org>
593 * tools/generate.c (write_enum_info):
594 Fix generation of enum/bitfields
596 2008-08-14 Johan Dahlin <johan@gnome.org>
598 * girepository/girparser.c (start_field), (start_constant),
599 (start_type), (end_element_handler):
600 Clear up constant parsing
605 * tools/generate.c (write_callable_info), (write_function_info),
606 (write_callback_info), (write_constant_info), (write_signal_info),
607 (write_vfunc_info), (write_property_info), (write_object_info),
608 (write_interface_info):
609 Constants/Signals are handled now.
611 2008-08-14 Johan Dahlin <johan@gnome.org>
613 * girepository/girparser.c (start_type):
614 Don't require c:type.
618 Update, remove parts we don't support yet
619 * tests/roundtrips.sh:
621 * tools/generate.c (write_type_info), (write_field_info),
622 (write_callable_info), (write_struct_info):
623 Make it emit proper gir.
625 2008-08-14 Johan Dahlin <johan@gnome.org>
627 * giscanner/transformer.py:
628 New internal function for adding a new node.
630 2008-08-14 Johan Dahlin <johan@gnome.org>
633 Define an internal _H_ variable so we skip parsing both
634 i18n headers, only one is needed.
636 Add the glib-2.0.gir too.
637 * giscanner/glibast.py:
638 Add gconstpointer as an alias for ANY
639 * giscanner/transformer.py:
640 Do not lower case enumeration names per se.
641 Skip functions which has parameters called 'va_list'
643 2008-08-14 Colin Walters <walters@verbum.org>
645 * giscanner/transformer.py: Comment data structures.
646 Also squash pointers in resolve_type_name to correspond
647 with what we do for params.
648 * giscanner/glibtransformer.py: Print warnings in more
649 situations. Rework checks for method/constructor to
650 look up in our GType database instead of just checking
651 for *. Avoid generating <record> for GObject which
652 duplicate the <class>.
653 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
656 2008-08-14 Johan Dahlin <johan@gnome.org>
658 * giscanner/girwriter.py:
659 * giscanner/glibast.py:
660 * giscanner/glibtransformer.py:
661 * giscanner/transformer.py:
664 Add pyflakes.py and run it in make check.
665 Update the source code to fix the errors reported by
668 2008-08-14 Johan Dahlin <johan@gnome.org>
671 * giscanner/girparser.py:
672 * giscanner/glibast.py:
673 * giscanner/glibtransformer.py:
674 Refactor the parser a bit.
675 Add parent type to interfaces and update callsites.
677 2008-08-14 Johan Dahlin <johan@gnome.org>
679 * giscanner/glibtransformer.py:
680 * giscanner/utils.py:
681 Refactor a bit, avoid isinstance and add a method
682 for each type we parse.
684 2008-08-14 Johan Dahlin <johan@gnome.org>
687 * giscanner/girparser.py:
688 * giscanner/glibtransformer.py:
690 Run pep8.py in make check, fix old errors.
692 2008-08-13 Colin Walters <walters@verbum.org>
694 * giscanner/girparser.py: Parse records.
696 2008-08-13 Colin Walters <walters@verbum.org>
698 * gir/Makefile.am: Install again.
699 * gir/gobject-2.0.gir: Add some more bits.
701 2008-08-13 Colin Walters <walters@verbum.org>
703 * gir/gobject-2.0.gir: Use correct namespace, add GType.
704 * giscanner/girparser.py: Handle aliases.
705 * giscanner/transformer.py: Record aliases. Make resolver
706 functions public; we now call into these explicitly from
707 glibtransformer. Handle resolving aliases.
708 * giscanner/glibtransformer.py: Separate our internal namespace
709 from included ones. Call up into transformer's resolver functions.
711 2008-08-13 Johan Dahlin <johan@gnome.org>
713 * girepository/girnode.c (g_ir_node_get_full_size_internal):
714 * girepository/girparser.c (start_class):
715 * giscanner/glibtransformer.py:
716 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
718 2008-08-13 Johan Dahlin <johan@gnome.org>
720 * giscanner/cgobject.py:
721 Register GInitiallyUnowned
722 * giscanner/girwriter.py:
723 * giscanner/glibtransformer.py:
724 Special case GObject/GInitially owned as they are a bit special to use.
726 2008-08-13 Colin Walters <walters@verbum.org>
728 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
729 Object is in GObject namespace.
731 2008-08-13 Colin Walters <walters@verbum.org>
733 * giscanner/girparser.py: Fix processing of functions
736 2008-08-13 Colin Walters <walters@verbum.org>
738 * giscanner/girparser.py: Parse more than just <class.
739 * giscanner/glibtransformer.py: Put aliases in a separate
740 data structure since their name is not canonicall.
741 * giscanner/transformer.py: Handle resolving type names
744 2008-08-13 Johan Dahlin <johan@gnome.org>
746 * tools/g-ir-scanner:
747 Allow multiple libraries
748 * giscanner/glibtransformer.py:
749 Rename load_library to add_library, traverse over all libraries
750 when trying to resolve a function
752 2008-08-12 Colin Walters <walters@verbum.org>
754 * giscanner/transformer.py: Record typedefs as <alias> elements.
755 Also attempt to look up types in external namespaces.
756 * giscanner/girwriter.py: Write them.
757 * giscanner/glibtransformer.py: Rework resolver using real instanceof
758 checks. Resolve interface methods and properties.
759 * tests/scanner/foo-object.h: Add a method with typedef.
760 * tests/scanner/Foo-expected.gir: Update.
761 * girepository/girnode.c: Debug tweaks.
762 * girepository/girparser.c: Make a first pass through the XML where we
763 record all the aliases. This lets us resolve them as we go through the
765 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
768 2008-08-12 Colin Walters <walters@verbum.org>
770 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
771 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
773 * giscanner/transformer.py: Record typedefs and expose public API for resolving
775 * tests/scanner/Foo-expected.gir: Fix expected callback types.
777 2008-08-12 Colin Walters <walters@verbum.org>
779 * giscanner/glibtransformer.py: Also transform object properties.
781 2008-08-12 Colin Walters <walters@verbum.org>
783 * giscanner/glibtransformer.py: Also transform callbacks
784 and structure field types.
785 * tests/scanner/Fooe-expected.gir: Update to expect correct
786 names for callbacks and structs.
788 2008-08-12 Colin Walters <walters@verbum.org>
790 * girepository/girparser.c: Handle 'any'.
791 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
794 2008-08-12 Colin Walters <walters@verbum.org>
796 * giscanner/glibtransformer.py: We need to do type
797 resolution in a second pass after we've seen all the
800 2008-08-12 Colin Walters <walters@verbum.org>
802 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
803 Add enum return value.
804 * giscanner/glibtransformer.py: Transform function return types
807 2008-08-12 Colin Walters <walters@verbum.org>
809 * tests/scanner/Makefile.am: Dep .gir files on scanner
810 sources too. Also remove @ so we see scanner invocations.
812 2008-08-12 Colin Walters <walters@verbum.org>
814 * girepository/girparser.c, girepository/gtypelib.c,
815 girepository/gtypelib.h, girepository/girnode.c:
816 Remove usage of (GAPI-oriented) TypeTag in favor of
817 GITypeTag from girepository.h.
819 2008-08-10 Colin Walters <walters@verbum.org>
821 * tests/roundtrips.sh: Use the correct tests.
823 2008-08-10 Colin Walters <walters@verbum.org>
825 * giscanner/cgobject.py: Declare/wrap a few more functions.
826 Fix parameter types for g_object_new and g_type_fundamental.
828 2008-08-10 Colin Walters <walters@verbum.org>
830 * giscanner/cgobject.py: Add new decorator @gwrap which forces
831 us to declare types for both return value and parameters. The
832 ctypes default of 'int' is bad because it hides 32/64 bit
833 problems. Convert all existing functions to use it.
835 2008-08-09 Johan Dahlin <johan@gnome.org>
837 * giscanner/__init__.py:
839 * giscanner/cgobject.py:
840 * giscanner/gidlparser.py:
841 * giscanner/gidlwriter.py:
842 * giscanner/girparser.py:
843 * giscanner/girwriter.py:
844 * giscanner/glibast.py:
845 * giscanner/glibtransformer.py:
846 * giscanner/odict.py:
847 * giscanner/sourcescanner.py:
848 * giscanner/transformer.py:
849 * giscanner/utils.py:
850 * giscanner/xmlwriter.py:
851 * tools/g-ir-scanner:
855 2008-08-09 Johan Dahlin <johan@gnome.org>
858 * relaxng/c-types.xml:
859 * relaxng/g-types.xml:
860 * relaxng/relaxng.rng:
862 Remove outdated relaxng schemas.
864 2008-08-09 Johan Dahlin <johan@gnome.org>
867 Rename metadata to typelib in variable names,
870 2008-08-09 Johan Dahlin <johan@gnome.org>
874 Remove old C scanner, which got rewritten in python.
876 2008-08-09 Johan Dahlin <johan@gnome.org>
878 * girepository/Makefile.am:
888 Move shared *.[ch] files to girepository from tools
890 2008-08-09 Johan Dahlin <johan@gnome.org>
895 * tests/constant.test:
898 * tests/function.test:
899 * tests/gobject.test:
900 * tests/interface.test:
907 Rename *.test to *.gir
909 2008-08-09 Johan Dahlin <johan@gnome.org>
913 * tests/parser/Foo-expected.gir:
914 * tests/parser/Makefile.am:
915 * tests/parser/foo-object.h:
916 * tests/parser/foo.c:
917 * tests/parser/utility-expected.gir:
918 * tests/parser/utility.c:
919 * tests/parser/utility.h:
920 * tests/scanner/Makefile.am:
921 Rename tests/parser to test/scanner
923 2008-08-08 Colin Walters <walters@verbum.org>
925 * tests/roundtrips.sh: Use local .gir files again.
927 2008-08-08 Colin Walters <walters@verbum.org>
929 * tests/invoke/Makefile.am: .gir file depends on libtool
932 2008-08-08 Colin Walters <walters@verbum.org>
934 * tools/girnode.c: Pass through parent node so we can
935 print the node whose child is NULL, if that occurs.
937 2008-08-08 Johan Dahlin <johan@gnome.org>
940 Disable roundtrip tests which are not yet working
941 * tests/invoke/testfns.gir:
944 2008-08-08 Johan Dahlin <johan@gnome.org>
946 * giscanner/girwriter.py:
948 * giscanner/glibast.py:
949 * giscanner/glibtransformer.py:
950 Swap order of members, to keep it consistent with
953 2008-08-08 Johan Dahlin <johan@gnome.org>
955 * girepository/gtypelib.c (validate_header):
956 * girepository/gtypelib.h:
958 * giscanner/girwriter.py:
959 * giscanner/sourcescanner.c (gi_source_symbol_ref),
960 (gi_source_symbol_unref):
963 * tests/constant.test:
966 * tests/function.test:
967 * tests/gobject.test:
968 * tests/interface.test:
969 * tests/invoke/Makefile.am:
970 * tests/invoke/testfns.xml:
972 * tests/parser/Makefile.am:
973 * tests/roundtrips.sh:
980 * tools/compiler.c (main):
981 * tools/generate.c (write_callable_info), (write_function_info),
983 * tools/gidlmodule.c:
984 * tools/gidlmodule.h:
987 * tools/gidlparser.c:
988 * tools/gidlparser.h:
989 * tools/gidlwriter.c:
990 * tools/gidlwriter.h:
991 * tools/scanner.c (create_node_from_gtype),
992 (create_node_from_ctype), (g_igenerator_process_properties),
993 (g_igenerator_process_signals), (g_igenerator_create_object),
994 (g_igenerator_create_interface), (g_igenerator_create_boxed),
995 (g_igenerator_create_enum), (g_igenerator_create_flags),
996 (g_igenerator_process_function_symbol),
997 (g_igenerator_process_unregistered_struct_typedef),
998 (g_igenerator_process_struct_typedef),
999 (g_igenerator_process_union_typedef),
1000 (g_igenerator_process_enum_typedef),
1001 (g_igenerator_process_function_typedef),
1002 (g_igenerator_process_constant), (g_igenerator_process_symbols),
1003 (g_igenerator_add_module), (g_igenerator_add_include_idl):
1004 Merge in the gir-compiler branch.
1005 Thanks to Philip and Colin for their help.
1007 2008-07-26 Colin Walters <walters@verbum.org>
1009 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
1010 and g-idl-generate to go along with how we're changing this
1011 module to be installed.
1012 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
1014 2008-07-24 Colin Walters <walters@verbum.org>
1016 * girepository/girepository.c (g_irepository_register): Add
1017 environment variable G_IREPOSITORY_VERBOSE so we can print
1018 out what we're doing.
1019 * girepository/girepository.c (g_irepository_register_file):
1020 Add GError error message to g_debug call.
1022 2008-07-08 Jürg Billeter <j@bitron.ch>
1024 * giscanner/glibast.py:
1028 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
1030 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
1033 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
1036 * giscanner/girwriter.py:
1037 * giscanner/transformer.py:
1038 * tests/parser/Foo-expected.gir:
1039 * tests/parser/foo-object.h:
1040 * tests/parser/foo.c (foo_object_allow_none):
1041 Add support for gtk-doc annotations for allow-none.
1044 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
1047 * giscanner/girwriter.py:
1048 * giscanner/glibast.py:
1049 * giscanner/glibtransformer.py:
1050 * giscanner/transformer.py:
1051 * tests/parser/Foo-expected.gir:
1052 Start using abstract type instead of the raw C types.
1053 Register a bunch of glib types we care about.
1055 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
1060 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
1062 * girepository/girepository.c:
1063 * girepository/gtypelib.c:
1064 * girepository/ginfo.c:
1065 * girepository/ginvoke.c:
1066 * girepository/girepository.h:
1067 * girepository/gtypelib.h:
1068 * girepository/gmetadata.c:
1069 * girepository/Makefile.am:
1070 * girepository/gmetadata.h:
1072 * tools/gidlmodule.c:
1075 * tools/gidlmodule.h:
1076 * tools/gidlparser.c:
1078 Renamed GMetadata to GTypelib
1080 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
1082 * giscanner/xmlwriter.py:
1083 Improve line wrapping when > 79 charaters
1085 2008-06-05 Jürg Billeter <j@bitron.ch>
1088 * giscanner/girwriter.py:
1089 * giscanner/transformer.py:
1090 Use <type> element for field types
1091 * tests/parser/Foo-expected.gir:
1094 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
1096 * giscanner/glibtransformer.py:
1097 Fix a bug which prevented GdkEvent from being generated
1099 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
1101 * giscanner/Makefile.am:
1103 * giscanner/girwriter.py:
1104 * giscanner/glibast.py:
1105 * giscanner/glibtransformer.py:
1106 * giscanner/transformer.py:
1107 * giscanner/utils.py:
1108 * tests/parser/Foo-expected.gir:
1109 Improve enum member parsing and introspection
1111 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1113 * giscanner/scannerparser.y:
1114 * giscanner/sourcescanner.h:
1115 * giscanner/sourcescanner.py:
1116 Add a new source type enum for member.
1117 Use __repr__ for improved debugging
1118 * giscanner/girparser.py:
1120 * giscanner/transformer.py:
1121 Improve parsing of struct members.
1122 * tests/parser/foo-object.h:
1125 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1127 * giscanner/xmlwriter.py:
1128 Improve error reporting when trying to quote None.
1129 * giscanner/girparser.py:
1130 Do not print warnings when including more complete .gir files
1131 * giscanner/girwriter.py:
1132 Do not require a name for parameters, add a todo for singletons
1133 * giscanner/glibtransformer.py:
1134 Refactor the way structs are done, add a couple of hacks to allow
1136 * giscanner/transformer.py:
1137 Add enough hacks so cairo, atk and pango.gir can be parsed properly
1138 * gobject-introspection-1.0.pc.in:
1139 Export girdir, so we can access gobject-2.0.gir from outside
1141 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1143 * tools/g-ir-scanner:
1144 * tests/parser/Makefile.am:
1145 Update sys.path before running the parser so we don't have
1146 to setup PYTHONPATH ourselves.
1150 * girepository/Makefile.am:
1151 * giscanner/transformer.py:
1152 * gobject-introspection-1.0.pc.in:
1153 * gobject-introspection.pc.in:
1154 * tools/Makefile.am:
1156 Rename pkg-config name to gobject-introspection-1.0,
1157 Do not installed anything which is not using the gir format.
1158 Disable compililation the old C scanner, but still keep the source
1159 until all the remaning functionallity has been ported.
1161 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1163 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
1164 a crash when symbol->indent is NULL.
1166 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
1167 a function to convert a CTYPE symbol to a string
1169 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
1172 * giscanner/girwriter.py:
1173 * giscanner/giscannermodule.c
1174 (pygi_source_scanner_append_filename),
1175 (pygi_source_scanner_parse_file):
1176 * giscanner/glibtransformer.py:
1177 * giscanner/sourcescanner.py:
1178 Revert back to using temporary files to send in headers.
1179 Allow Functions to be passed in as callbacks, add a couple
1180 of try/excepts missing features.
1181 We can now scan pango
1183 2008-05-08 Johan Dahlin <johan@gnome.org>
1185 * giscanner/glibtransformer.py:
1186 * giscanner/transformer.py:
1187 Move namespace stripping glibtransformer->transformer
1189 2008-05-08 Johan Dahlin <johan@gnome.org>
1192 * giscanner/girwriter.py:
1193 * giscanner/glibtransformer.py:
1194 * giscanner/transformer.py:
1195 * tools/g-ir-scanner:
1196 Introduce a namespace ast node
1198 2008-05-05 Johan Dahlin <johan@gnome.org>
1200 * giscanner/__init__.py:
1201 * giscanner/sourcescanner.py:
1202 * giscanner/transformer.py:
1203 Move sourcescanner symbols to the sourcescanner module, instead
1204 of in the global __init__ namespace.
1206 2008-05-03 Johan Dahlin <johan@gnome.org>
1208 * giscanner/glibtransformer.py:
1209 * tools/g-ir-scanner:
1210 Handle missing parameters better, allow - and + in .la dlname
1213 2008-05-03 Johan Dahlin <johan@gnome.org>
1215 * giscanner/__init__.py:
1217 * giscanner/girwriter.py:
1218 * giscanner/glibtransformer.py:
1219 * giscanner/transformer.py:
1220 Parse struct fields properly, improve debugging.
1222 2008-04-29 Johan Dahlin <johan@gnome.org>
1225 * giscanner/girwriter.py:
1226 * giscanner/transformer.py:
1227 * tests/parser/Foo-expected.gir:
1229 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
1231 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1234 * docs/g-ir-scanner.1:
1235 * metadata-annotations-proposal.txt:
1236 * metadata-format.txt:
1237 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
1239 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1241 * giscanner/girwriter.py:
1242 * giscanner/glibtransformer.py:
1243 * giscanner/transformer.py:
1244 * giscanner/xmlwriter.py:
1245 * tests/parser/Foo-expected.gir:
1246 * tests/parser/foo-object.h:
1247 Write record/structs to gir file too. Add a couple of tests,
1248 fix an off by one error in xmlwriter.py.
1250 2008-04-28 Johan Dahlin <johan@gnome.org>
1252 * giscanner/xmlwriter.py: Calculate the line length properly,
1253 include the provided extra indentation in the calculation, really.
1255 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1258 * giscanner/glibast.py:
1259 * giscanner/glibtransformer.py:
1260 * giscanner/transformer.py:
1261 * tools/g-ir-scanner:
1262 Add a --strip-prefix and sort out confusion between names and symbols
1263 for functions and struct + derivaties.
1264 Refactor bootstrap of g-ir-scanner, so we can set options on
1265 Transformer() before parsing everything.
1267 2008-04-28 Johan Dahlin <johan@gnome.org>
1269 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
1270 when scanning girepository.h
1272 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
1273 a __GI_SCANNER__ when we run.
1275 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1278 * giscanner/girwriter.py:
1279 * giscanner/glibast.py:
1280 * giscanner/glibtransformer.py:
1281 * tests/parser/Foo-expected.gir:
1282 * tests/parser/utility-expected.gir:
1283 Rename most c:identifier to c:type. Add new ones to
1284 class/interface/enum/boxed.
1286 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1289 * giscanner/girwriter.py:
1290 * giscanner/glibtransformer.py:
1291 * tests/parser/Foo-expected.gidl:
1292 * tests/parser/Makefile.am:
1293 Move c:identifier from return-value to subchild type,
1294 as per Jürgs suggestion
1296 2008-04-28 Johan Dahlin <johan@gnome.org>
1298 * giscanner/girwriter.py:
1299 * tests/parser/Foo-expected.gir:
1300 Write property.type as a child node.
1302 2008-04-27 Johan Dahlin <johan@gnome.org>
1307 * gidl/gobject-2.0.gidl:
1309 * gir/gobject-2.0.gir:
1310 * tests/parser/Makefile.am:
1311 Replace the GObject gidl with a GObject gir.
1313 2008-04-27 Johan Dahlin <johan@gnome.org>
1315 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
1318 * giscanner/xmlwriter.py:
1319 * tests/parser/Foo-expected.gir:
1320 Include indentation in line length calculation
1322 2008-04-27 Johan Dahlin <johan@gnome.org>
1324 * giscanner/girparser.py:
1325 Prettify NS parsing using elementtree.
1327 2008-04-27 Johan Dahlin <johan@gnome.org>
1330 * giscanner/Makefile.am:
1331 * giscanner/girparser.py:
1332 * giscanner/glibtransformer.py:
1333 * tests/parser/Foo-expected.gidl:
1334 * tests/parser/Foo-expected.gir:
1335 * tests/parser/Makefile.am:
1336 * tests/parser/utility-expected.gidl:
1337 * tests/parser/utility-expected.gir:
1338 * tools/g-ir-scanner:
1339 Switch over to GIR as the default format. Add a simple GIDL
1341 Update tests and fix simplify makefiles by depending
1342 on GNU make extensions.
1344 2008-04-27 Johan Dahlin <johan@gnome.org>
1346 * giscanner/xmlwriter.py:
1347 Wrap attributes for lines which are wider than 79 characters
1349 * giscanner/scannerlexer.l:
1350 Allow parenthesis in annotations
1353 * giscanner/gidlwriter.py:
1354 * giscanner/girwriter.py:
1355 * giscanner/glibtransformer.py:
1356 * giscanner/transformer.py:
1357 Add initial sequence support, including annotation.
1358 Refactor type handling a bit.
1360 2008-04-27 Johan Dahlin <johan@gnome.org>
1362 * tests/parser/Foo-expected.gidl:
1363 * tests/parser/foo-object.h:
1364 * tests/parser/foo.c (foo_object_class_init),
1365 (foo_object_get_strings), (foo_object_get_objects):
1366 Add two new functions to check sequence return values.
1367 Also fixes a compilation warning.
1369 2008-04-27 Johan Dahlin <johan@gnome.org>
1371 * giscanner/giscannermodule.c (]): Cast the getter, avoids
1372 a compilation warning.
1374 * tools/Makefile.am (g_ir_scanner_SOURCES):
1375 g-ir-scanner has no sources.
1377 2008-04-25 Johan Dahlin <johan@gnome.org>
1379 * giscanner/Makefile.am:
1381 * giscanner/gidlparser.py:
1382 * giscanner/gidlwriter.py:
1383 * giscanner/girwriter.py:
1384 * giscanner/glibast.py:
1385 * giscanner/glibtransformer.py:
1386 * giscanner/transformer.py:
1387 Split out nodes to ast.py and glibast.py
1389 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1391 * giscanner/Makefile.am:
1392 * giscanner/gidlparser.py:
1393 * giscanner/gidlwriter.py:
1394 * giscanner/girwriter.py:
1395 * giscanner/glibtransformer.py:
1396 * giscanner/gobjecttreebuilder.py:
1397 * giscanner/transformer.py:
1398 * giscanner/treebuilder.py:
1399 * tools/g-ir-scanner:
1400 Rename treebuilder to transformer and
1401 gobjectreebuilder to glibtransformer.
1403 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1405 * giscanner/Makefile.am:
1406 * giscanner/__init__.py:
1407 * giscanner/cgobject.py:
1408 * giscanner/gidlparser.py:
1409 * giscanner/gidlwriter.py:
1410 * giscanner/girwriter.py:
1411 * giscanner/gobjecttreebuilder.py:
1412 * giscanner/odict.py:
1413 * giscanner/sourcescanner.py:
1414 * giscanner/treebuilder.py:
1415 * giscanner/xmlwriter.py:
1416 * tools/Makefile.am:
1417 * tools/g-ir-scanner:
1418 Add LGPLv2 license header and install all python files
1420 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1423 * giscanner/gidlwriter.py:
1424 * giscanner/giscannermodule.c (pygi_source_directive_new),
1425 (directive_get_options), (pygi_source_symbol_new),
1426 (symbol_get_base_type), (pygi_source_type_new),
1427 (type_get_base_type), (type_get_child_list),
1428 (pygi_source_scanner_get_symbols),
1429 (pygi_source_scanner_get_directives):
1430 * giscanner/gobjecttreebuilder.py:
1431 * giscanner/sourcescanner.py:
1432 * giscanner/treebuilder.py:
1433 * tests/parser/foo-object.h:
1434 Add support for virtual methods.
1435 Pair struct FooClass with struct Foo.
1436 Clean up the SourceScanner bindings a bit.
1437 Add a testcase for virtual methods.
1439 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1441 * giscanner/cgobject.py:
1442 * giscanner/gidlwriter.py:
1443 * giscanner/gobjecttreebuilder.py:
1444 Add support for signals
1446 * tests/parser/foo.c (foo_object_class_init):
1447 * Foo-expected.gidl:
1448 Add a signal and update the expected output.
1450 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
1452 * giscanner/gidlwriter.py:
1453 * giscanner/girwriter.py:
1454 * giscanner/giscannermodule.c (directive_get_name),
1455 (directive_get_value), (directive_get_options),
1456 (symbol_get_directives), (symbol_set_directives),
1457 (pygi_source_scanner_parse_file),
1458 (pygi_source_scanner_lex_filename),
1459 (pygi_source_scanner_get_directives), (init_giscanner):
1460 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
1461 * giscanner/sourcescanner.h:
1462 * giscanner/sourcescanner.py:
1463 * giscanner/treebuilder.py:
1464 * tools/g-ir-scanner:
1465 Add support for source/header annotations.
1467 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1469 * giscanner/gidlwriter.py:
1470 * giscanner/girwriter.py:
1471 * giscanner/gobjecttreebuilder.py:
1472 * giscanner/treebuilder.py:
1473 Add support for Callbacks
1475 2008-04-22 Havoc Pennington <hp@pobox.com>
1477 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
1478 not in metadata->module, look for it in the global module, in case
1479 some other object or the app itself provides the symbol.
1481 2008-04-22 Havoc Pennington <hp@pobox.com>
1483 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
1484 dlopening a library that is already in the main app, by checking
1485 whether one of the lib's symbols is already loaded.
1487 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1489 * tests/parser/Foo-expected.gidl:
1490 * tests/parser/foo-object.h:
1493 2008-04-22 Havoc Pennington <hp@pobox.com>
1495 * girepository/ginfo.c (g_interface_info_find_method):
1496 Use interface_blob_size not object_blob_size to compute offset.
1498 2008-04-22 Havoc Pennington <hp@pobox.com>
1500 * girepository/gmetadata.c (_g_metadata_init): remove
1501 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
1502 (Glade and Clutter for example) rely on being loaded globally.
1504 2008-04-22 Havoc Pennington <hp@pobox.com>
1506 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
1507 function to get the GType given a RegisteredTypeInfo
1509 2008-04-22 Johan Dahlin <johan@gnome.org>
1511 * COPYING: Add a LGPL license, to prevent automake to
1512 put in a copy of GPL here. Pointed out by Havoc.
1514 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
1515 (g_type_info_is_pointer), (g_type_info_get_tag),
1516 (g_type_info_get_param_type), (g_type_info_get_interface),
1517 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
1518 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
1519 (g_error_domain_info_get_codes), (g_enum_info_get_value),
1520 (g_object_info_get_interface), (g_object_info_get_field),
1521 (g_interface_info_get_prerequisite),
1522 (g_signal_info_get_class_closure), (g_constant_info_get_value):
1523 * girepository/ginvoke.c (get_ffi_type):
1524 * girepository/girepository.h:
1525 * girepository/gmetadata.c (g_metadata_get_dir_entry),
1526 (g_metadata_check_sanity), (validate_header),
1527 (validate_array_type_blob), (validate_iface_type_blob),
1528 (validate_param_type_blob), (validate_error_type_blob),
1529 (validate_type_blob), (validate_constant_blob),
1530 (validate_struct_blob), (validate_enum_blob):
1531 * girepository/gmetadata.h:
1532 * tests/Makefile.am:
1533 * tests/invoke/Makefile.am:
1534 * tests/invoke/invoke.c (main):
1535 * tests/roundtrips.sh:
1536 * tools/Makefile.am:
1537 * tools/compiler.c (format_output), (write_out_metadata), (main):
1538 * tools/generate.c (write_type_name), (write_type_info),
1539 (write_constant_value), (write_enum_info), (load_metadata), (main):
1540 * tools/gidlcompilercontext.c:
1541 * tools/gidlcompilercontext.h:
1542 * tools/gidlcompilerentrynode.c:
1543 * tools/gidlcompilerentrynode.h:
1544 * tools/gidlcompilertypenode.c:
1545 * tools/gidlcompilertypenode.h:
1546 * tools/gidlmodule.c (g_idl_module_build_metadata):
1547 * tools/gidlmodule.h:
1548 * tools/gidlnode.c (init_stats), (dump_stats),
1549 (g_idl_node_get_size), (g_idl_node_get_full_size),
1550 (g_idl_node_cmp), (g_idl_node_can_have_member),
1551 (g_idl_node_add_member), (g_idl_node_param_direction_string),
1552 (parse_int_value), (parse_uint_value), (parse_float_value),
1553 (parse_boolean_value), (find_entry_node), (find_entry),
1554 (serialize_type), (g_idl_node_build_metadata), (write_string):
1556 * tools/gidlparser.c (parse_type_internal):
1557 * tools/quote-file.sh:
1558 Revert revisions 157,149-148,136-129 and 120.
1559 Move back to using g-idl-generate to generate the metadata and
1560 avoids dependency on a c compiler.
1562 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1564 * giscanner/girwriter.py:
1565 * tools/g-ir-scanner:
1566 Add an initial GIR writer and a --format option to g-ir-scanner
1568 2008-04-21 Johan Dahlin <johan@gnome.org>
1570 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
1571 gobject-2.0 and raise ImportError if not found.
1573 * giscanner/gidlparser.py:
1574 * giscanner/gidlwriter.py:
1575 * giscanner/gobjecttreebuilder.py:
1576 * tools/g-ir-scanner:
1577 Add a --include argument to include types from other idls.
1578 Add a minimalistic GIDL parser (just objects for now)
1579 Implement resolving of external type references and use it to
1580 resolve parent types, argument types and return types.
1582 2008-04-21 Johan Dahlin <johan@gnome.org>
1584 * giscanner/gidlwriter.py:
1585 * giscanner/gobjecttreebuilder.py:
1586 * giscanner/treebuilder.py:
1587 Add support for properties.
1588 Refactor Class/Interface support a bit, to share more code and
1589 always initialize their method attribute to an empty list.
1591 2008-04-21 Johan Dahlin <johan@gnome.org>
1593 * giscanner/cgobject.py:
1594 Add a workaround for a glib bug interface introspection bug
1595 (object_interface_list_properties, object_class_list_properties):
1596 Cast the return value to GParamSpec.
1598 * tests/parser/Foo-expected.gidl: Update
1599 * tests/parser/foo.c: Add a string property
1601 * giscanner/gobjecttreebuilder.py:
1602 After stripping namespaces, remove the original
1603 item to avoid duplication (GtkButton struct and Button object)
1605 2008-04-21 Johan Dahlin <johan@gnome.org>
1607 * giscanner/gobjecttreebuilder.py:
1608 * giscanner/treebuilder.py:
1609 Strip namespaces before objects, so we'll export
1610 GtkButton as Button in the gtk namespace
1612 2008-04-21 Johan Dahlin <johan@gnome.org>
1614 * giscanner/gidlwriter.py:
1615 * giscanner/gobjecttreebuilder.py:
1616 * giscanner/treebuilder.py:
1617 Add constructors for object/boxed types.
1619 2008-04-21 Johan Dahlin <johan@gnome.org>
1621 * giscanner/gidlwriter.py:
1622 * giscanner/gobjecttreebuilder.py:
1623 Add support for boxed types
1625 2008-04-21 Johan Dahlin <johan@gnome.org>
1627 * giscanner/giscannermodule.c: Mark structures as const,
1628 wrap SourceType.const_string.
1630 * tests/parser/foo-object.h: Add a couple of constants.
1632 * giscanner/gidlwriter.py:
1633 * giscanner/gobjecttreebuilder.py:
1634 * giscanner/treebuilder.py:
1635 Add basic support for interfaces
1637 * tools/g-ir-scanner:
1638 Add -o/--output for writing to a file
1640 2008-04-21 Havoc Pennington <hp@redhat.com>
1642 * TODO: add some C API wishlist items I could think of quickly
1644 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1646 * giscanner/gidlwriter.py:
1647 * giscanner/xmlwriter.py:
1648 Add a simple api for writing tags which can be used
1649 with the new 'with statement' in python 2.5
1651 2008-04-21 Johan Dahlin <johan@gnome.org>
1653 * giscanner/gobjecttreebuilder.py:
1654 Strip namespace and object prefix from method names.
1656 2008-04-21 Johan Dahlin <johan@gnome.org>
1658 * tools/g-ir-scanner (main): Add --pkg option to pass in
1659 pkg-config modules to get cflags from.
1661 * giscanner/gidlwriter.py (GIDLWriter._write_method):
1662 Avoid duplication, reuse function writer for methods.
1664 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1666 * giscanner/gidlwriter.py:
1667 * giscanner/gobjecttreebuilder.py:
1668 * giscanner/treebuilder.py:
1669 * tools/g-ir-scanner:
1670 Resolve libtool .la files.
1671 Strip name spaces for methods.
1672 Add function symbols
1674 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
1676 * giscanner/cgobject.py:
1677 * giscanner/gidlwriter.py:
1678 * giscanner/gobjecttreebuilder.py:
1679 * giscanner/treebuilder.py:
1680 Add support for classes and methods
1682 2008-04-20 Johan Dahlin <johan@gnome.org>
1684 * giscanner/gidlwriter.py:
1685 * giscanner/gobjecttreebuilder.py:
1686 * giscanner/odict.py:
1687 Avoid conflicts, keep the output ordered similar to
1688 the order of the input.
1689 Add a simple ordered dictionary implemenation
1691 2008-04-19 Johan Dahlin <johan@gnome.org>
1693 * giscanner/cgobject.py:
1694 * giscanner/gidlwriter.py:
1695 * giscanner/gobjecttreebuilder.py:
1696 * tools/g-ir-scanner:
1697 Start introspecting get-type functions.
1698 Implement support for GLib/GFlags GTypes.
1699 Add a ctype based GObject binding.
1701 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
1703 * giscanner/gidlwriter.py:
1704 * giscanner/xmlwriter.py:
1705 * tools/g-ir-scanner:
1706 Add a simplistic gidl writer, which can't do too much.
1708 2008-04-18 Johan Dahlin <johan@gnome.org>
1710 * giscanner/sourcescanner.py:
1711 * giscanner/treebuilder.py:
1712 * tools/g-ir-scanner:
1713 split tree building and source scanning interface to separate files.
1715 2008-04-18 Johan Dahlin <johan@gnome.org>
1717 * tools/g-ir-scanner (Parameter.__init__): Start constructing
1719 - Add support for struct/parameter/return, start parsing of ctypes
1721 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
1724 2008-03-31 Johan Dahlin <johan@gnome.org>
1726 * tools/g-ir-scanner:
1727 Start to build abstract syntax node of scanned sources.
1728 Add support for cpp options.
1730 2008-03-27 Johan Dahlin <johan@gnome.org>
1732 * giscanner/giscannermodule.c:
1733 * giscanner/scannerlexer.l:
1734 * giscanner/sourcescanner.c:
1735 * tools/g-ir-scanner:
1737 Add simple pre-processor using subprocess and a PIPE.
1738 Change the parse_file apis to accept a file descriptor.
1740 2008-03-25 Johan Dahlin <johan@gnome.org>
1742 * giscanner/__init__.py:
1743 * tools/g-ir-scanner:
1744 Fix a typo and add an example python test program.
1746 2008-03-25 Johan Dahlin <johan@gnome.org>
1748 * giscanner/__init__.py:
1749 * giscanner/giscannermodule.c:
1750 * giscanner/sourcescanner.c:
1751 * giscanner/sourcescanner.h:
1752 Add constants and wrap a few more SymbolType fields
1754 2008-03-25 Johan Dahlin <johan@gnome.org>
1758 * giscanner/__init__.py:
1759 * giscanner/giscannermodule.c:
1760 * giscanner/Makefile.am:
1762 Add initial python bindings for the scanner and
1763 depend on python 2.5.
1765 2008-03-25 Johan Dahlin <johan@gnome.org>
1769 * giscanner/Makefile.am:
1770 * giscanner/sourcescanner.c:
1771 * giscanner/sourcescanner.h:
1772 * tools/Makefile.am:
1773 * tools/grealpath.h:
1774 * tools/sourcescanner.c:
1775 * tools/sourcescanner.h:
1777 Move the scanner to a separate library.
1779 2008-03-23 Johan Dahlin <johan@gnome.org>
1781 * tools/Makefile.am:
1784 * tools/scannerlexer.l:
1785 * tools/scannerparser.y:
1786 * tools/sourcescanner.c:
1787 * tools/sourcescanner.h:
1788 Split out the source scanner from the generator.
1789 Rename the symbols used in the scanner to use the gi_ prefix.
1790 This should make it possible to use the raw C parser from
1793 2008-03-23 Johan Dahlin <johan@gnome.org>
1795 * tests/parser/Makefile.am (utility.gidl):
1796 * tests/parser/utility-expected.gidl:
1797 Pass in the gobject.gidl since we're defining a GObject.
1799 2008-03-12 Johan Dahlin <johan@gnome.org>
1801 * relaxng/relaxng.rng:
1802 Add a releaxng in relaxng we can use to validate the relaxngs
1805 2008-03-12 Jürg Billeter <j@bitron.ch>
1807 * tools/scanner.c: (g_igenerator_new):
1808 * tools/scannerparser.y:
1809 Fix compiler warnings.
1811 2008-03-12 Jürg Billeter <j@bitron.ch>
1815 * tools/scannerparser.y:
1816 Start fixing memory management in g-idl-scanner.
1818 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
1820 * tools/gidlcompilercontext.c: (write_compiled):
1821 Fix critical warning when no shlib passed to g-idl-compiler.
1823 2008-03-12 Johan Dahlin <johan@gnome.org>
1825 * tests/parser/utility-expected.gidl:
1826 * tests/parser/utility.h:
1827 Add a get_type-function, so the scanner actually
1828 parses it as an object.
1830 2008-03-12 Johan Dahlin <johan@gnome.org>
1832 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
1835 * tests/parser/Foo-expected.gidl:
1836 * tests/parser/Makefile.am:
1837 * tests/parser/foo-object.h:
1838 * tests/parser/foo.c:
1839 * tests/parser/utility-expected.gidl:
1840 * tests/parser/utility.c:
1841 * tests/parser/utility.h:
1843 Add a new gidl test. 'utility.gidl', which is used to be able
1844 to test external type references. Add a reference to UtilityObject*
1847 2008-03-11 Johan Dahlin <johan@gnome.org>
1851 Remove most global variables
1853 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
1855 * tools/scannerlexer.l:
1857 * tests/parser/Foo-expected.gidl:
1858 * tests/parser/foo.c:
1859 * tests/parser/Makefile.am:
1860 * tests/parser/foo-object.h:
1862 Added a few extra tests. Which resulted in finding a few
1863 bugs. Which resulted in me fixing those bugs
1865 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1867 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
1868 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
1869 Add some comments for strings into generated output for
1872 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1874 * tools/gidlcompilercontext.c: (write_compiled):
1875 Write out the shlibs variable before writing out the strings
1876 length. Fixes compiler warning when using '-l' flag with
1879 2008-03-11 Johan Dahlin <johan@gnome.org>
1881 * tests/parser/Foo-expected.gidl:
1882 * tests/parser/foo-object.h:
1885 * tools/scannerlexer.l:
1886 Add support for parsing return arguments. Add support for
1887 caller-owns return types.
1888 Patch by Philip Van Hoof.
1890 * tools/scannerparser.y:
1891 Remove parsing of the @deprecated syntax used in headers.
1892 We will support gtk-doc deprecation in the future instead.
1894 2008-03-11 Johan Dahlin <johan@gnome.org>
1896 * tools/compiler.c (main): Coding style fixes
1898 2008-03-10 Johan Dahlin <johan@gnome.org>
1901 Add GCOV_LIBS to GILIBS
1903 2008-03-10 Johan Dahlin <johan@gnome.org>
1905 * tests/parser/Foo-expected.gidl:
1906 * tests/parser/foo.c:
1907 Rename null-ok to direction=out
1909 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
1911 reviewed and extensively tested by Johan
1913 * tests/parser/Foo-expected.gidl:
1914 * tests/parser/foo-object.h:
1915 * tests/parser/foo.c:
1918 * tools/gidlwriter.c:
1921 * tools/scannerlexer.l:
1922 * tools/scannerparser.y:
1924 Add support for scanning for gtk-doc comments inside
1925 C source files. Add tests
1927 2008-03-10 Johan Dahlin <johan@gnome.org>
1929 * tests/parser/Makefile.am:
1930 * tests/parser/foo.c:
1933 * tools/scannerparser.y:
1934 Add an api to lex filenames.
1935 Lex all source .c files passed in on the command line.
1936 Scan sources in a test and a couple of private structures
1937 which should not be included in the generated gidl
1939 2008-03-10 Johan Dahlin <johan@gnome.org>
1941 * tests/invoke/Makefile.am: Make the generated metadata
1942 depend on the g-idl-compiler
1944 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1946 * tools/gidlmodule.c
1947 * tools/gidlmodule.h
1950 Remove the old g-idl-compiler code.
1953 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
1955 * tools/quote-file.sh
1958 Move to using the 'C' struct compiler code.
1960 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1962 * girepository/ginfo.c
1964 Change the way that external references with no namespace
1965 are dealt with. External references with no namespace
1966 are placed into the XML as-if they are a local reference.
1967 This is temporary, but helps with roundtrip tests.
1969 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1971 * girepository/ginfo.c
1972 Add the ability to get the value of a constant of
1973 type TYPE_TAG_SYMBOL. In the case of a symbol the value
1974 is provided as a string.
1976 This would deal properly with:
1977 typedef char* random;
1978 const random = "A string";
1980 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1982 * girepository/ginfo.c
1983 * girepository/girepository.h
1985 Add a function to check if an enum is registered or not.
1986 Previously anything testing this relied on the g-type
1987 string offset having a value of 0.
1989 * girepository/gmetadata.c
1990 * girepository/gmetadata.h
1992 Remove unneccesary or erroneous checks. There were two
1993 metadata validation checks which made sure that the blob
1994 sizes were the same as some magic numbers compiled into the code.
1995 This is wrong as it breaks any forwards compatibility that may
1998 Checks were also present that made sure that unregistered type
1999 blobs had a value of 0 in the g-type offset field. This is
2000 unneccessary. If a type blob is unregistered then any value
2001 in its g-type field is simply invalid.
2003 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2005 * girepository/ginfo.c
2006 * girepository/gmetadata.c
2007 * girepository/gmetadata.h
2009 Change the metadata format to have a standard header
2010 for all the type blobs. Merge the SimpleTypeBlob
2011 and InterfaceTypeBlob into a union. A union of these
2012 two blobs existed previously but was not explicit
2013 in the metadata format.
2015 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2017 * tools/gidlcompilercontext.c
2018 * tools/gidlcompilercontext.h
2019 * tools/gidlcompilerentrynode.c
2020 * tools/gidlcompilerentrynode.h
2021 * tools/gidlcompilertypenode.c
2022 * tools/gidlcompilertypenode.h
2024 Add code to compile a tree of GIdlNodes to
2025 a 'C' struct representing the metadata.
2026 This is to aid cross-compiling. Previously
2027 the g-idl-compiler created a binary blob with
2028 data written in the byte order and alignment
2029 of the tool rather than the intended target.
2031 Cleaned up and improved by Johan and Robert :-)
2033 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2035 * girepository/ginvoke.c
2036 * girepository/girepository.h
2037 * girepository/gmetadata.c
2038 * girepository/gmetadata.h
2040 * tools/gidlparser.c
2041 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
2042 to avoid confusion with the interface blob.
2045 * tools/gidlparser.c
2046 Remove magic numbers and replace with type-tag
2047 enumeration symbols.
2049 * girepository/gmetadata.c
2050 Add validate declaration.
2052 2008-03-10 Jürg Billeter <j@bitron.ch>
2054 * tools/gidlparser.c: (parse_type_internal):
2055 * tools/scannerlexer.l:
2056 * tools/scannerparser.y:
2057 Support C99 _Bool type in scanner.
2059 2008-03-10 Jürg Billeter <j@bitron.ch>
2061 * tests/parser/Foo-expected.gidl:
2062 * tests/parser/foo-object.h:
2063 * tests/parser/foo.c: (foo_enum_method):
2064 * tools/scanner.c: (g_igenerator_process_function_symbol):
2065 Don't skip functions that are defined in the namespace of a type
2066 that doesn't support methods, as for example enums.
2068 2008-03-10 Johan Dahlin <johan@gnome.org>
2070 * gidl.dtd: Remove, we're using relaxng for now
2072 * tests/parser/Foo-expected.gidl:
2073 * tests/parser/foo-object.h:
2074 * tests/parser/foo.c:
2075 Rename the enum/flags get_type functions to include the whole type.
2077 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
2079 * tools/gidlwriter.c (enum_generate): added "type-name",
2080 "get-type" and "deprecated" missing arguments.
2081 * tests/parser/Foo-expected.gidl:
2082 * tests/parser/foo-object.h: test enum type, and no type.
2084 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
2087 Consistent checks, add missing 'test'
2089 2008-03-05 Havoc Pennington <hp@redhat.com>
2091 * configure.ac: Take advantage of a libffi.pc if one exists, as it
2092 does on Fedora 8. Make libffi a hard requirement, since it was in
2093 practice anyway (was not really conditional in the code or
2094 makefile, only in configure).
2096 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2098 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
2099 reviewed by: Johan Dahlin <johan@gnome.org>
2101 * tests/Makefile.am:
2102 * tests/roundtrips.sh:
2103 Modify the roundtrips test so that they do not use the
2104 --raw option of the gidl compiler but instead compile a
2105 shared library to use with g_module.
2107 * tests/invoke/Makefile.am:
2108 * tests/invoke/invoke.c:
2109 Modify the invoke tests to build a shared library rather
2110 than use the --raw option.
2112 * tests/invoke/invoke-namespace-find.sh: Removed:
2113 Noone knows why this was here, so removed.
2115 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
2117 * tools/scanner.c: (g_igenerator_process_function_symbol):
2118 Move g_idl_node_can_have_member test later, as it broke spotting
2119 get_type's for nodes that can't have members.
2121 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2124 * tools/gidlnode.c: (g_idl_node_can_have_member):
2125 Add g_idl_node_can_have_member.
2127 * tools/scanner.c: (g_igenerator_process_function_symbol):
2128 Use g_idl_node_can_have_member to test if we should add a function
2129 as a member of the type node.
2131 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2133 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
2135 * tests/parser/Makefile.am:
2136 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
2138 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2140 * tools/scanner.c: (main):
2141 Ignore -pthread when passed to g-idl-scanner.
2143 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2145 * tools/grealpath.h: Added:
2146 * tools/scanner.c: (main):
2147 * tools/scannerlexer.l:
2148 * tools/Makefile.am:
2149 Always use absolute paths with symbolic links resolved when
2150 comparing filenames.
2152 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2154 * gobject-introspection.pc.in:
2155 Provide variables for g-idl-parser, scanner and compiler in the
2158 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
2161 * girepository/Makefile.am:
2162 * tools/Makefile.am:
2163 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
2165 2008-02-10 Johan Dahlin <johan@gnome.org>
2167 * tests/parser/Foo-expected.gidl:
2168 * tests/parser/foo-object.h:
2169 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
2170 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
2173 2008-02-10 Johan Dahlin <johan@gnome.org>
2175 * tests/parser/Foo-expected.gidl:
2176 * tests/parser/foo-object.h:
2177 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
2178 Add enum and flags test.
2180 2008-02-10 Johan Dahlin <johan@gnome.org>
2184 * girepository/Makefile.am:
2185 Make 'make distcheck' work again.
2187 2008-02-10 Johan Dahlin <johan@gnome.org>
2189 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
2192 * tests/parser/Makefile.am: Only create Foo.gidl when running make
2193 check, eg exclude it from BUILT_SOURCES.
2195 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2200 * girepository/Makefile.am:
2201 * m4/Makefile.am: Added:
2202 * m4/as-compiler-flag.m4: Added:
2203 * m4/gcov.m4: Added:
2204 * tools/Makefile.am:
2205 Add ability to generate a coverage report.
2206 Adds configure option --enable-gcov and make rule 'check-coverage'.
2208 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2212 * gidl/Makefile.am: Added:
2213 * girepository/Makefile.am: Added:
2214 * src/Makefile.am: Renamed to tools/Makefile.am:
2215 * src/compiler.c: Renamed to tools/compiler.c:
2216 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
2217 * src/generate.c: Renamed to tools/generate.c:
2218 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
2219 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
2220 * src/gidlnode.c: Renamed to tools/gidlnode.c:
2221 * src/gidlnode.h: Renamed to tools/gidlnode.h:
2222 * src/gidlparser.c: Renamed to tools/gidlparser.c:
2223 * src/gidlparser.h: Renamed to tools/gidlparser.h:
2224 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
2225 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
2226 * src/ginfo.c: Renamed to girepository/ginfo.c:
2227 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
2228 * src/girepository.c: Renamed to girepository/girepository.c:
2229 * src/girepository.h: Renamed to girepository/girepository.h:
2230 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
2231 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
2232 * src/scanner.c: Renamed to tools/scanner.c:
2233 * src/scanner.h: Renamed to tools/scanner.h:
2234 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
2235 * src/scannerparser.y: Renamed to tools/scannerparser.y:
2236 * tests/invoke/Makefile.am:
2237 Split src/ into girepository/ and tools/
2241 * girepository/Makefile.am:
2242 * tests/Makefile.am:
2243 * tests/invoke/Makefile.am:
2244 * tests/parser/Makefile.am:
2245 * tests/roundtrips.sh:
2246 * tools/Makefile.am:
2247 Make distcheck work.
2249 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
2251 * tests/invoke/invoke.c: (main):
2252 * tests/invoke/testfns.c: (test6), (test7):
2253 * tests/invoke/testfns.xml:
2254 Add tests for invokation with a GList argument.
2255 Also tests caller-owns return values.
2257 2008-02-04 Rob Taylor <robtaylor@floopily.org>
2260 Add some documentation for GICallableInfo
2262 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
2265 Correct syntax errors in the DTD file.
2267 * relaxng/c-types.xml:
2268 * relaxng/g-types.xml:
2270 Add a RelaxNG specification for the GObject Introspection XML data.
2271 The Specification has validated all of the test files.
2273 2008-01-25 Rob Taylor <robtaylor@floopily.org>
2275 * tests/roundtrips.sh:
2276 * tests/struct.test:
2277 Add roundtrip tests for structs.
2279 2008-01-11 Johan Dahlin <johan@gnome.org>
2281 * src/scanner.c (g_igenerator_process_function_symbol):
2282 Refactor out g_idle_node_add_member.
2283 (create_node_from_gtype, create_node_from_ctype):
2284 Use case instead of if...else
2285 (get_type_from_type_id):
2286 Rename to create_node_from_gtype
2287 (get_type_from_ctype):
2288 Rename to create_node_from_ctype
2290 Rename ginode -> node, gitype -> type, gifunc -> func.
2292 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
2293 Two new functions, refactor out of scanner.c
2295 * src/scanner.c: (g_igenerator_process_function_symbol):
2296 * src/scannerlexer.l:
2297 Do not save the content of the deprecated variable, only
2300 2008-01-11 Johan Dahlin <johan@gnome.org>
2302 * tests/parser/foo-object.h: Add a couple of comment parser tests.
2304 2008-01-11 Jürg Billeter <j@bitron.ch>
2306 * src/scannerlexer.l:
2307 Fix GTK-Doc parsing.
2309 2008-01-11 Jürg Billeter <j@bitron.ch>
2311 * src/scannerlexer.l:
2312 Fix GTK-Doc parsing.
2314 2008-01-11 Jürg Billeter <j@bitron.ch>
2316 * src/scanner.c: (lookup_symbol):
2317 Return unresolved name if we find unknown symbol.
2319 2008-01-11 Jürg Billeter <j@bitron.ch>
2321 * src/scanner.c: (g_igenerator_generate):
2322 Initialize GObject to fix scanning interface properties.
2324 * tests/parser/Foo-expected.gidl:
2325 * tests/parser/foo-object.h:
2326 * tests/parser/foo.c: (foo_interface_get_type):
2327 Test interfaces with GObject prerequisite.
2329 * tests/parser/Makefile.am:
2330 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
2332 2007-12-27 Johan Dahlin <johan@gnome.org>
2334 * src/scannerlexer.l:
2335 Parse gtk-doc comments.
2337 * src/gidlwriter.c: (function_generate):
2338 Reorganize, avoid duplication and add support for
2339 writing deprecated functions.
2341 * src/scannerparser.y:
2343 Add new structure CDirective and functions to create/free them.
2345 * src/scanner.c: (g_igenerator_process_function_symbol),
2346 (g_igenerator_process_unregistered_struct_typedef),
2347 (g_igenerator_process_struct_typedef),
2348 (g_igenerator_process_union_typedef),
2349 (g_igenerator_process_enum_typedef),
2350 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
2351 (g_igenerator_start_preprocessor):
2352 Parse @deprecated directive for functions.
2353 Remove some more C99isms.
2354 Send in -C to cpp to avoid stripping comments.
2356 * tests/parser/foo-object.h:
2357 * tests/parser/Foo-expected.gidl:
2358 Add deprecated directive
2360 2007-12-27 Johan Dahlin <johan@gnome.org>
2362 * src/scannerlexer.l (intsuffix): Add emacs mode line and
2363 escape ' and " so it looks more like C.
2366 Unlink temporary file used.
2368 2007-12-27 Johan Dahlin <johan@gnome.org>
2370 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
2371 (g_igenerator_start_preprocessor), (main):
2373 * src/scannerparser.y:
2374 Plug a couple of simple memory leaks.
2376 2007-12-27 Johan Dahlin <johan@gnome.org>
2378 * src/scanner.c: (g_igenerator_parse_macros),
2379 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
2382 * src/scannerparser.y:
2383 * tests/parser/Makefile.am:
2385 Improve error reporting, return when the preprocessor fails.
2386 Add a verbose parameter, to aid debugging.
2387 Revert to using a temporary file to communicate between the
2388 preprocessor and the parser, because we need to wait for
2389 the exit code from the pre-processor before starting to parse.
2391 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
2393 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
2394 cparser.y to scannerparser.y
2396 2007-12-11 Johan Dahlin <johan@gnome.org>
2400 * src/scanner.c: (g_igenerator_new):
2402 Get rid of the global the_generator variable.
2404 2007-12-10 Johan Dahlin <johan@gnome.org>
2406 * src/scanner.c (main): Add an output option,
2407 add checks for required parameters
2410 set BUILD_SOURCES and CLEANFILES properly
2412 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
2413 (g_writer_write_indent), (g_writer_write_unindent),
2414 (field_generate), (value_generate), (constant_generate),
2415 (property_generate), (function_generate), (vfunc_generate),
2416 (signal_generate), (interface_generate), (struct_generate),
2417 (union_generate), (boxed_generate), (enum_generate),
2418 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
2420 * src/scanner.c: (g_igenerator_generate):
2422 * src/scannerwriter.c:
2424 Refactor scannerwriter to only be tied to a GIdlModule and move
2425 it (again!) to gidlwriter.c. Change the writer function to take
2428 2007-12-10 Johan Dahlin <johan@gnome.org>
2431 * src/scanner.c: (g_igenerator_generate):
2433 * src/scannerwriter.c: (g_igenerator_write_inline),
2434 (g_igenerator_write), (g_igenerator_write_indent),
2435 (g_igenerator_write_unindent), (field_generate), (value_generate),
2436 (constant_generate), (property_generate), (function_generate),
2437 (vfunc_generate), (signal_generate), (interface_generate),
2438 (struct_generate), (union_generate), (boxed_generate),
2439 (enum_generate), (node_generate), (module_generate),
2440 (g_scanner_write_file):
2442 Move the scanner gidl writing to a separate source file.
2444 2007-12-10 Johan Dahlin <johan@gnome.org>
2449 Move over all CType construction functions.
2451 * tests/parser/Makefile.am:
2452 Be verbose when printing parsing tests results.
2454 2007-12-10 Johan Dahlin <johan@gnome.org>
2456 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
2457 preprocessor handling to here. Start cpp insteado of cc -E,
2458 always include -U__GNUC__, since it's specific to the preprocessor
2461 * tests/parser/Makefile.am (check-local): Silent diff and skip
2462 -U__GNUC__ which is always defined now
2464 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
2466 reviewed by: <delete if not using a buddy>
2468 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
2469 * tests/parser/Makefile.am:
2471 2007-12-09 Johan Dahlin <johan@gnome.org>
2474 Use GOption for command line options.
2475 (g_igenerator_new, main): Simplify constructor and they way
2476 parameters are passed into it.
2482 * src/gen-introspect.c:
2483 * src/gen-introspect.h:
2485 Rename gen-introspect.[ch] to scanner.[ch]
2487 2007-12-09 Johan Dahlin <johan@gnome.org>
2491 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
2492 don't make the repository library and the other utilites link against
2495 * src/gen-introspect.c: (g_igenerator_create_object),
2496 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2497 (g_igenerator_create_enum), (g_igenerator_create_flags),
2498 (g_igenerator_process_module_symbol),
2499 (g_igenerator_process_module), (g_igenerator_generate), (main):
2500 * src/gen-introspect.h:
2501 Refactor g_igenerator_process_types into smaller pieces.
2503 * tests/parser/Makefile.am:
2504 Depend on the gen-introspect binary
2506 2007-12-09 Johan Dahlin <johan@gnome.org>
2508 * src/gen-introspect.c (g_igenerator_process_types):
2509 Break into smaller pieces, one for each generated node type.
2511 2007-12-08 Johan Dahlin <johan@gnome.org>
2513 * src/gen-introspect.c: (g_igenerator_process_types),
2514 (g_igenerator_add_module):
2515 * tests/parser/Foo-expected.gidl:
2516 * tests/parser/foo-object.h:
2517 * tests/parser/foo.c: (foo_subobject_class_init),
2518 (foo_subobject_init):
2520 Add a subobject test and make sure to register defined classes
2521 in the lookup symbol hash table.
2523 2007-12-08 Johan Dahlin <johan@gnome.org>
2527 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
2528 (g_igenerator_process_types), (g_igenerator_add_module),
2529 (g_igenerator_add_include_idl), (main):
2530 * src/gen-introspect.h:
2531 * tests/parser/Makefile.am:
2532 * tests/parser/Foo-expected.gidl:
2534 Change the gen-introspect to generate namespaced module names,
2535 such as GLib.Object instead of GObject.
2536 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
2537 add a --include-idl parameter to gen-introspect,
2538 and update the parser test.
2540 2007-12-08 Johan Dahlin <johan@gnome.org>
2542 * src/gen-introspect.c:
2543 Move main to the end of the file and attempt to make it valid
2546 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
2547 we're not quite ready to generate metadata yet.
2552 Add a simple gen-introspect parser test
2554 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
2556 reviewed by: Johan Dahlin <johan@gnome.org>
2559 * gobject-introspection.pc.in:
2561 * src/compiler.c: (format_output), (write_out_metadata), (main):
2562 * src/gen-introspect.c: (main):
2563 * src/gen-introspect.h:
2564 * src/generate.c: (write_callable_info), (write_repository),
2565 (load_metadata), (main):
2566 * src/gidlmodule.c: (g_idl_module_new),
2567 (g_idl_module_build_metadata):
2569 * src/gidlparser.c: (start_element_handler):
2570 * src/ginfo.c: (g_info_new), (g_info_from_entry),
2571 (g_base_info_get_name), (g_base_info_get_namespace),
2572 (g_base_info_is_deprecated), (g_base_info_get_annotation),
2573 (g_base_info_get_metadata), (g_function_info_get_symbol),
2574 (g_function_info_get_flags), (g_function_info_get_property),
2575 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
2576 (g_callable_info_may_return_null),
2577 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
2578 (g_callable_info_get_arg), (g_arg_info_get_direction),
2579 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
2580 (g_arg_info_is_optional), (g_arg_info_may_be_null),
2581 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
2582 (g_type_info_get_tag), (g_type_info_get_param_type),
2583 (g_type_info_get_interface), (g_type_info_get_array_length),
2584 (g_type_info_is_zero_terminated),
2585 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
2586 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
2587 (g_value_info_get_value), (g_field_info_get_flags),
2588 (g_field_info_get_size), (g_field_info_get_offset),
2589 (g_registered_type_info_get_type_name),
2590 (g_registered_type_info_get_type_init),
2591 (g_struct_info_get_n_fields), (g_struct_info_get_field),
2592 (g_struct_info_get_n_methods), (g_struct_info_get_method),
2593 (find_method), (g_struct_info_find_method),
2594 (g_enum_info_get_n_values), (g_enum_info_get_value),
2595 (g_object_info_get_parent), (g_object_info_get_type_name),
2596 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
2597 (g_object_info_get_interface), (g_object_info_get_n_fields),
2598 (g_object_info_get_field), (g_object_info_get_n_properties),
2599 (g_object_info_get_property), (g_object_info_get_n_methods),
2600 (g_object_info_get_method), (g_object_info_find_method),
2601 (g_object_info_get_n_signals), (g_object_info_get_signal),
2602 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
2603 (g_object_info_get_n_constants), (g_object_info_get_constant),
2604 (g_interface_info_get_n_prerequisites),
2605 (g_interface_info_get_prerequisite),
2606 (g_interface_info_get_n_properties),
2607 (g_interface_info_get_property), (g_interface_info_get_n_methods),
2608 (g_interface_info_get_method), (g_interface_info_find_method),
2609 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
2610 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
2611 (g_interface_info_get_n_constants),
2612 (g_interface_info_get_constant), (g_property_info_get_flags),
2613 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
2614 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
2615 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
2616 (g_constant_info_get_value), (g_union_info_get_n_fields),
2617 (g_union_info_get_field), (g_union_info_get_n_methods),
2618 (g_union_info_get_method), (g_union_info_is_discriminated),
2619 (g_union_info_get_discriminator_offset),
2620 (g_union_info_get_discriminator):
2621 * src/ginvoke.c: (g_function_info_invoke):
2622 * src/girepository.c: (g_irepository_register),
2623 (g_irepository_unregister), (g_irepository_get_default),
2624 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
2625 (g_irepository_get_info), (g_irepository_find_by_name),
2626 (g_irepository_get_shared_library),
2627 (g_irepository_build_search_path), (g_irepository_register_file),
2628 (g_irepository_error_quark):
2629 * src/girepository.h:
2630 * src/gmetadata.c: (g_metadata_get_dir_entry),
2631 (g_metadata_check_sanity), (validate_header),
2632 (validate_array_type_blob), (validate_iface_type_blob),
2633 (validate_param_type_blob), (validate_error_type_blob),
2634 (validate_type_blob), (validate_arg_blob),
2635 (validate_signature_blob), (validate_function_blob),
2636 (validate_callback_blob), (validate_constant_blob),
2637 (validate_value_blob), (validate_field_blob),
2638 (validate_property_blob), (validate_signal_blob),
2639 (validate_vfunc_blob), (validate_struct_blob),
2640 (validate_enum_blob), (validate_object_blob),
2641 (validate_interface_blob), (validate_errordomain_blob),
2642 (validate_union_blob), (validate_blob), (validate_directory),
2643 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
2644 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
2645 (g_metadata_new_from_mapped_file), (g_metadata_free),
2646 (g_metadata_set_module), (g_metadata_get_namespace):
2648 * tests/Makefile.am:
2649 * tests/invoke/Makefile.am:
2650 * tests/invoke/invoke-namespace-find.sh:
2651 * tests/invoke/invoke.c: (main):
2653 Add a namespace/shared library mapping. fixes #313268.
2655 2007-12-03 Johan Dahlin <johan@gnome.org>
2657 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
2660 2007-11-30 Jürg Billeter <j@bitron.ch>
2666 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
2667 (g_igenerator_write_inline), (g_igenerator_write),
2668 (g_igenerator_write_indent), (g_igenerator_write_unindent),
2669 (field_generate), (value_generate), (constant_generate),
2670 (property_generate), (function_generate), (vfunc_generate),
2671 (signal_generate), (interface_generate), (struct_generate),
2672 (union_generate), (boxed_generate), (enum_generate),
2673 (node_generate), (module_generate), (get_type_from_type_id),
2674 (str_replace), (g_igenerator_process_properties),
2675 (g_igenerator_process_signals), (g_igenerator_process_types),
2676 (get_type_from_ctype), (g_igenerator_process_function_symbol),
2677 (g_igenerator_process_unregistered_struct_typedef),
2678 (g_igenerator_process_struct_typedef),
2679 (g_igenerator_process_union_typedef),
2680 (g_igenerator_process_enum_typedef),
2681 (g_igenerator_process_function_typedef),
2682 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2683 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
2684 (g_igenerator_generate), (main), (csymbol_new),
2685 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
2686 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
2687 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
2688 (eat_hspace), (eat_line), (read_identifier),
2689 (g_igenerator_parse_macros):
2690 * src/gen-introspect.h:
2692 Import gen-introspect to generate introspection information by
2695 2007-11-30 Jürg Billeter <j@bitron.ch>
2697 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
2699 2007-11-30 Jürg Billeter <j@bitron.ch>
2701 * src/gidlparser.c: (end_element_handler): Don't leave requires
2704 2007-11-29 Johan Dahlin <johan@gnome.org>
2706 * src/gidlparser.c (parse_type_internal): Add char,
2707 gchar and guchar to the builtin types.
2709 2007-11-26 Johan Dahlin <johan@gnome.org>
2711 * src/ginfo.c: (g_object_info_get_type_name),
2712 (g_object_info_get_type_init):
2713 * src/girepository.c: (g_irepository_is_registered):
2714 * src/girepository.h:
2716 Add g_object_info_get_type_name, g_object_info_get_type_init and
2717 g_irepository_is_registered.
2719 2006-08-14 Jürg Billeter <j@bitron.ch>
2721 * src/gidlparser.c: (end_element_handler): Don't leave
2722 namespace and implements states too early.
2725 2007-11-26 Johan Dahlin <johan@gnome.org>
2727 * src/gmetadata.c (validate_struct_blob):
2728 pass blob_type to validate_function_blob instead of
2729 hard-coding BLOB_TYPE_STRUCT.
2731 Patch by Torsten Schoenfeld, fixes #314190
2733 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
2735 * src/compiler.c, src/generate.c, src/gidlnode.c,
2736 src/gidlparser.c, src/ginfo.c, src/girepository.c,
2737 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
2738 warnings about return values, signedness mismatches, unused
2739 variables, and unhandles enum values in switch statements.
2741 * tests/invoke/Makefile.am: Don't install the invoke test program.
2742 Add -I ../../src to the cflags used for the test functions files.
2744 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2746 * src/girepository.h: Export g_invoke_error_quark.
2748 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2750 * src/ginvoke.c: Remove the fallback implementation of
2751 g_function_info_invoke since we now formally depend on libffi.
2753 2005-07-25 Matthias Clasen <mclasen@redhat.com>
2755 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
2756 Remove these files from cvs, as they are now generated.
2758 * src/gmetadata.c (validate_iface_type_blob): Don't
2759 complain if blob->pointer is not set, since that
2760 happens for enum and flag types. (#308935, Gustavo
2763 * Commit an autoconf-conversion patch by
2764 Gustavo Carneiro (#308708)
2766 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2768 * src/compiler.c (main): Use it here to validate
2769 the generated metadata.
2771 * src/gmetadata.[hc]: Add code to validate a
2774 * metadata-format.txt: Updates
2776 2005-05-22 Matthias Clasen <mclasen@redhat.com>
2778 * tests/*: Add struct offsets to field and vfunc
2781 * src/generate.c (write_vfunc_info): Write offset
2782 information for vfuncs.
2784 * src/gidlnode.c (g_idl_node_build_metadata): Write
2785 the struct offsets into the metadata.
2787 * src/gidlparser.c: Parse the offset attributes of
2788 field and vfunc elements.
2790 * src/gidlnode.h: Add offset members to field and
2793 2005-05-21 Matthias Clasen <mclasen@redhat.com>
2797 * gidl.dtd: Updates.
2799 * src/g-idl-offsets.pl: A perl script which reads a .gidl
2800 file, creates, compiles and runs a C file, and folds the
2801 resulting struct offsets back into the .gidl file.
2803 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2805 * src/gidlparser.c (start_field): Make fields in objects
2808 * src/gidlmodule.c: Include string.h
2813 * metadata-format.txt: Cleanup basic types.
2814 * src/*: Adapt to the changes.
2815 * tests/*: Adapt to the changes.
2816 * examples/gdk-pixbuf.gidl: Adapt to the changes.
2818 * src/gidlnode.c (g_idl_node_get_size): Report the correct
2819 size for enum blobs.
2820 (g_idl_node_get_full_size): Report the correct size for
2823 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
2824 error checking for blob sizes.
2826 2005-05-19 Matthias Clasen <mclasen@redhat.com>
2828 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
2829 interface types for which is_pointer is FALSE, e.g. enums.
2831 * src/gidlnode.c (g_idl_node_get_full_size)
2832 * src/gidlparser.c (parse_type_internal):
2833 * src/generate.c (write_type_info): Support unspecialized
2834 lists, hashtables and errors. Also emit a '*' after these.
2838 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2842 * metadata-format.txt: Cleanups by Maciej Katafiasz.
2844 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2846 * src/*.c: Change the directory to be addressed by
2847 1-based indexes, and use an index of zero to mean
2850 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2852 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
2854 * tests/union.test: Add a union test.
2856 * src/generate.c: Handle unions.
2858 * src/girepository.h:
2859 * src/ginfo.c: Add GIUnionInfo and functions to access it.
2861 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
2863 * src/gidlparser.c (start_union): Parse <union> elements.
2865 * src/gidlnode.h: Add a GIdlNodeUnion.
2867 * gidl.dtd: Add a <union> element.
2869 * src/gmetadata.c (g_metadata_check_sanity): Check
2872 * src/gmetadata.h: Add union_blob_size to Header,
2875 * metadata-format.txt: Add a UnionBlob.
2877 2005-05-13 Matthias Clasen <mclasen@redhat.com>
2879 * tests/*: Update testcases.
2881 * src/generate.c (write_callable_info): Don't forget to
2882 write transfer and null-ok attributes for return types
2885 * src/girepository.h:
2886 * src/ginfo.c (g_callable_info_may_return_null):
2887 New function to find out if a function may return NULL.
2889 * src/compiler.c (format_output): Make the generated
2892 * README: Point to a recent libffi snapshot.
2894 * tests/invoke/*: Some invoke tests.
2896 * src/Makefile: Add ginvoke.c and the necessary
2899 * src/girepository.h (g_function_info_invoke): Add
2902 * src/ginvoke.c (g_function_info_invoke): Initial
2903 implementation of invoke functionality based on libffi.
2905 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
2906 strings and types hash tables in the right order when
2908 (find_entry_node): Free the name parts.
2910 2005-05-12 Johan Dahlin <johan@gnome.org>
2912 * src/generate.c: Generate consistent end tags.
2916 2005-05-12 Matthias Clasen <mclasen@redhat.com>
2920 * src/gidlparser.c (start_function): Actually add
2921 methods to objects. (Steven Walter)
2923 * src/girepository.h:
2924 * src/ginfo.c: Rename Transfer and Direction to
2925 GITransfer and GIDirection. (Torsten Schoenfeld)
2927 * tests/*: Make tests work with the changes in name
2930 * src/gidlnode.c (find_entry_node): Parse qualified
2931 names and generate xref nodes for them if needed. Don't
2932 require all modules to be loaded any more.
2934 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
2937 * src/ginfo.c (g_object_info_get_parent): Return NULL
2938 if blob->parent is 0. Still need to make sure index
2941 * src/generate.c: Generate qualified names when
2942 referring to non-local types. Emit transfer attribute
2945 * src/compiler.c (format_output): Put the function
2946 attributes where gcc accepts them.
2948 2005-05-11 Matthias Clasen <mclasen@redhat.com>
2950 * src/compiler.c (main): Add a --verbose cmdline option
2951 and only log messages if it is specified.
2954 * src/gidlnode.c (init_stats, dump_stats): Collect some
2955 statistics on string and type sharing.
2957 * src/gidlmodule.c (g_idl_module_build_metadata): Use
2958 g_message() instead of fprintf().
2960 * src/gidlnode.c (g_idl_node_free): Make this more robust.
2961 (g_idl_node_get_size): Implement for structs.
2962 (g_idl_node_get_full_size): Handle parent being NULL.
2963 (serialize_type): Handle lookup failures more gracefully.
2965 2005-05-10 Matthias Clasen <mclasen@redhat.com>
2967 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
2968 size calculation for 2-parameter types and for objects.
2970 * src/compiler.c: Add a cmdline option for debug output
2971 and install a log handler to implement it.
2972 * src/gidlnode.c: Add some debug spew.
2976 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
2977 forget to count the module name when calculating the
2978 required size for the metadata.
2981 * src/gidlparser.c: Fix compiler warnings.
2983 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2985 * src/compiler.c (main): Free the option context.
2987 * gidl.dtd: Clean up handling of names. All elements
2988 have a "name", only the elements corresponding to
2989 actual callable functions (function, method, constructor),
2990 have an additional "symbol" attribute holding the
2991 dlsym()-able function name.
2993 * src/generate.c: Adapt to generate xml matching the
2997 * src/gidlnode.c: Adapt to parse the new dtd.
2999 * tests/*.test: Adjust to the new dtd.
3001 * metadata-format.txt:
3002 * src/gmetadata.h: Remove the short_name field
3004 * src/gmetadata.c: Shrink size of ValueBlob to 12.
3005 * src/girepository.h:
3006 * src/ginfo.c (g_value_info_get_short_name): Removed
3008 2005-05-09 Matthias Clasen <mclasen@redhat.com>
3010 * gidl.dtd: Allow constructors for boxed types,
3011 patch by Jonathan Blandford.
3014 2005-05-09 Matthias Clasen <mclasen@redhat.com>
3016 * --- Initial import ---