1 2008-08-24 Colin Walters <walters@verbum.org>
3 * girepository/girepository.c (g_irepository_require):
4 Don't open shared library here; we already do it
7 2008-08-24 Colin Walters <walters@verbum.org>
9 * girepository/gtypelib.c: Add context stack so
10 when we get an error we can print out nicely
13 2008-08-24 Johan Dahlin <johan@gnome.org>
15 * girepository/girparser.c (start_glib_boxed), (start_function),
16 (start_field), (start_alias):
17 Refactor a couple of parsing functions to be simpler to follow.
20 2008-08-24 Johan Dahlin <johan@gnome.org>
22 * girepository/girparser.c (start_function):
23 Remove left-over code, checking type of function.
25 2008-08-23 Colin Walters <walters@verbum.org>
27 * giscanner/config.py: Define DATADIR.
28 * giscanner/transformer.py: Look in DATADIR.
30 2008-08-23 Colin Walters <walters@verbum.org>
32 * girepository/gtypelib.c: Check constructor
34 * girepository/girnode.c: Small tweaks.
35 * girepository/ginfo.c: Calculate signature offsets
37 * girepository/girparser.c: Remove duplicate
39 * giscanner/glibtransformer.py: Avoid marking
40 functions which return a basic type as
43 2008-08-23 Colin Walters <walters@verbum.org>
45 * girepository/girparser.c: Ignore <include>.
46 * giscanner/girparser.py: Parse them.
47 * giscanner/girwriter.py: Generate them.
48 * giscanner/transformer.py: Process <include>
49 recursively. Don't require full path for
50 includes, look in {$XDG_DATA_DIRS}/gir.
51 * tools/g-ir-scanner: Pass through includes.
52 * Makefile.am: Remove extra --include
54 * *-expected.gir: Add expected includes.
56 2008-08-23 Johan Dahlin <johan@gnome.org>
58 * tests/scanner/Makefile.am:
59 * tests/scanner/annotation-expected.gir:
60 * tests/scanner/drawable-expected.gir:
61 Avoid duplication in the Makefile, regenerate with new
62 namespaces (same as the filename)
64 2008-08-22 Colin Walters <walters@verbum.org>
66 * girepository/girnode.c: Don't hardcode integers,
69 2008-08-22 Johan Dahlin <johan@gnome.org>
71 * giscanner/sourcescanner.py:
72 Check for ../gobject-introspection-1.0.pc.in to determine
73 if we run installed or uninstalled.
75 2008-08-22 Johan Dahlin <johan@gnome.org>
78 * giscanner/sourcescanner.py:
79 Send in undefs/defines via writing it directly to stdin
80 of cpp instead of via arguments.
82 2008-08-22 Colin Walters <walters@verbum.org>
84 * tools/generate.c, tools/compiler.c: Default
86 * all Makefile.am: Update.
88 2008-08-22 Colin Walters <walters@verbum.org>
90 * girepository/girparser.c: Pass through
91 recursive types. Avoid overwriting errors.
92 * giscanner/xmlwriter.py: Always write the
94 * tests/*.gir: Adjust.
95 * tests/scanner/Makefile.am: Build typelibs,
96 and generate XML from those. Once we
97 have a good diff mechanism...
98 * tests/scanner/*-expected.gir: Add XML
100 * tools/g-ir-scanner: Accept --typelib-xml
102 * tools/generate.c: Better defaults for transfer.
104 2008-08-22 Johan Dahlin <johan@gnome.org>
108 * giscanner/Makefile.am:
109 * giscanner/config.py.in:
110 * giscanner/sourcescanner.py:
111 Use the generated glibconfig.h for all scanner invokations.
112 Rename it to glibconfig-scanner.h and install it.
113 Add a config.py which so far contains the include dir.
115 2008-08-22 Johan Dahlin <johan@gnome.org>
118 Replace glibconfig.h with our own, do some replacement
119 for CPP/C features we do not support
121 2008-08-22 Colin Walters <walters@verbum.org>
123 * tools/generate.c (write_callable_info): Fix unref
126 2008-08-22 Colin Walters <walters@verbum.org>
128 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
129 * tests/Makefile.am: Support $(DEBUG)
130 * tools/generate.c: Do immediate close tags if no
133 2008-08-21 Colin Walters <walters@verbum.org>
135 * tests/scanner/drawable-expected.gir,
136 * tests/scanner/drawable.c,
137 * tests/scanner/drawable.h:
140 2008-08-21 Colin Walters <walters@verbum.org>
142 * giscanner/glibtransformer.py: Compute prefix
143 by searching through the symbol for bits
144 rather than going directly from ctype; this fixes
147 2008-08-21 Colin Walters <walters@verbum.org>
149 * giscanner/glibtransformer.py: Also try squashing
150 underscores from namespace, fixes webkit_web_view_new.
152 2008-08-21 Colin Walters <walters@verbum.org>
154 * giscanner/glibtransformer.py: More ctor work,
155 avoid having gtk_window_group_new end up under
158 2008-08-21 Colin Walters <walters@verbum.org>
160 * giscanner/glibtransformer.py: Much simpler approach
161 of mapping uscored names to classes.
162 * giscanner/utils.py: Remove unnecessary function.
164 2008-08-21 Johan Dahlin <johan@gnome.org>
166 * girepository/girepository.c (g_irepository_require):
167 Plug memory leak and avoid using freed memory.
168 Resolve the whole module path, here as well.
170 2008-08-21 Colin Walters <walters@verbum.org>
172 * giscanner/glibtransformer.py: Look up all permutations
173 of class names when scanning methods/ctors based on
174 the prefix instead of using the return value. This
175 associates gtk_window_new with the right class.
177 2008-08-21 Colin Walters <walters@verbum.org>
179 * girepository/girmodule.c (g_ir_module_build_typelib):
180 Revert change to increment header_size; we do that in
183 2008-08-21 Colin Walters <walters@verbum.org>
185 * girepository/girnode.c (write_string): Tweak to
186 use UINT instead of INT. Not likely to matter.
187 * girepository/girmodule.c (g_ir_module_build_typelib):
188 Add to header_offset as well for header strings
189 to match what write_string does.
190 * girepository/gtypelib.c: Replace is_name with
191 validate_name, which more strongly validates and
192 handles errors in a better way. Update all callers.
193 * giscanner/glibtransformer.py: Handle constructors
196 2008-08-21 Johan Dahlin <johan@gnome.org>
198 * gir/Makefile.am (typelibs_DATA): Build and
199 install the Gio.typelib too
201 * girepository/gtypelib.c (_g_typelib_init):
202 Use g_module_build_path to resolve the shlib name
204 2008-08-21 Colin Walters <walters@verbum.org>
206 * gir/Makefile.am: CLEANFILES typelibs too.
208 2008-08-21 Johan Dahlin <johan@gnome.org>
210 * giscanner/glibtransformer.py:
211 Do not send .la files through find_library.
213 2008-08-21 Colin Walters <walters@verbum.org>
215 * girepository/girparser.c (g_irepository_require):
216 Fix one small leak in error case.
218 2008-08-21 Johan Dahlin <johan@gnome.org>
221 Parse glibconfig.h as well and install the compiled
224 2008-08-21 Johan Dahlin <johan@gnome.org>
227 * giscanner/glibtransformer.py:
228 * tools/g-ir-scanner:
229 Do not hard-core library names in the Makefile, reuse
230 ctypes find_library instead.
232 2008-08-21 Johan Dahlin <johan@gnome.org>
234 * girepository/girparser.c (resolve_aliases):
235 Remove compilation warnings
237 2008-08-21 Johan Dahlin <johan@gnome.org>
239 * girepository/girepository.c (g_irepository_require):
240 Rewrap and fix double free bug by leaking a bit.
242 2008-08-20 Colin Walters <walters@verbum.org>
244 * girepository/girepository.c: Add new function
245 g_irepository_get_typelib_path which tells
246 us from where we loaded a namespace.
248 2008-08-20 Colin Walters <walters@verbum.org>
250 * tests/scanner/*-expected.gir: Adjust for
251 added shared-library.
252 * giscanner/giwriter.py: Make pylint happy.
254 2008-08-20 Colin Walters <walters@verbum.org>
256 * girepository/girmodule.c (g_ir_module_build_typelib):
257 Calculate size correctly, avoid use-after-free.
259 2008-08-20 Colin Walters <walters@verbum.org>
261 * girepository/girepository.c: Remove
262 g_irepository_register_file in favor of
263 g_irepository_require. There are two
264 possible deployment scenarios for typelibs:
265 First, separate in $DATADIR/gitypelibs/. Second,
266 they may be embedded in shlibs. However since
267 the first is now the normal case, the API is
270 Refactor internals to look up typelibs for
271 namespaces just-in-time, but we expect
272 consumers to call g_irepository_require.
274 Also, add some docs. No one has died from that
276 * gir/Makefile.am: Need --library for glib.
277 * giscanner/girwriter.py: Write out shared-library.
278 * tools/g-ir-writer: Take the first --library
279 argument as the target of shared-library. In
280 the future we should make this nicer with pkg-config
283 2008-08-20 Colin Walters <walters@verbum.org>
285 * girepository/girparser.py: And parse them.
287 2008-08-20 Johan Dahlin <johan@gnome.org>
289 * giscanner/glibast.py: Add gshort/gushort types
291 2008-08-20 Colin Walters <walters@verbum.org>
293 * gir/Makefile.am: Rename .gir files using GI namespace.
294 * girepository/girepository.c: Use XDG_DATA_DIRS for
295 looking up typelibs. Also typelibs are now suffixed
297 * tests/invoke/Makefile.am: Only use metadata.
298 * girepository/Makefile.am: Remove unnecessary include.
299 * tests/scanner/Makefile.am: Update using GI namespaces
300 for scanner includes.
302 2008-08-20 Colin Walters <walters@verbum.org>
304 * girepository/transformer.py: Suppress aliases whose
306 * girepository/ast.py: Define some more aliases.
308 2008-08-20 Colin Walters <walters@verbum.org>
310 * girepository/girparser.c: Avoid alias infloops.
312 2008-08-20 Colin Walters <walters@verbum.org>
314 * tests/scanner/foo-expected.gir: Fix expected list type.
316 2008-08-20 Johan Dahlin <johan@gnome.org>
318 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
319 Add a workaround for #548689.
320 We can now compile gtk!
322 2008-08-20 Colin Walters <walters@verbum.org>
324 * giscanner/glibtransformer.py: Try to look up
325 aliases using the c:type too.
327 2008-08-20 Colin Walters <walters@verbum.org>
329 * girepository/girparser.c: Parse union fields.
331 2008-08-20 Johan Dahlin <johan@gnome.org>
333 * giscanner/ast.py: Make time_t an alias for long
335 * gir/gio-2.0-good.gir:
336 * gir/glib-2.0-good.gir:
337 * gir/gobject-2.0-good.gir:
339 * giscanner/glibtransformer.py:
340 Do not delete Class structures, we need them in gdk/gtk.
341 * tests/scanner/drawable-expected.gir:
342 * tests/scanner/foo-expected.gir:
343 * tests/scanner/utility-expected.gir:
346 2008-08-20 Johan Dahlin <johan@gnome.org>
348 * tests/scanner/Makefile.am:
349 * tests/scanner/annotation-expected.gir:
350 * tests/scanner/annotation.c (annotation_object_class_init),
351 (annotation_object_init), (annotation_object_method),
352 (annotation_object_in), (annotation_object_out),
353 (annotation_object_inout), (annotation_object_inout2),
354 (annotation_object_inout3), (annotation_object_calleeowns),
355 (annotation_object_calleesowns), (annotation_object_get_strings),
356 (annotation_object_with_voidp), (annotation_object_get_objects),
357 (annotation_object_create_object), (annotation_object_allow_none):
358 * tests/scanner/annotation.h:
359 * tests/scanner/foo-expected.gir:
360 * tests/scanner/foo.c:
361 * tests/scanner/foo.h:
362 Split out annotation tests out of foo
364 2008-08-20 Johan Dahlin <johan@gnome.org>
366 * tests/scanner/Foo-expected.gir:
367 * tests/scanner/Makefile.am:
368 * tests/scanner/foo-expected.gir:
369 * tests/scanner/foo-object.h:
370 * tests/scanner/foo.c:
371 Foo->foo, foo-object.h -> foo.h
373 2008-08-20 Johan Dahlin <johan@gnome.org>
375 * tests/scanner/Foo-expected.gir:
376 * tests/scanner/Makefile.am:
377 * tests/scanner/drawable-expected.gir:
378 * tests/scanner/drawable.c (test_drawable_class_init),
379 (test_drawable_init):
380 * tests/scanner/drawable.h:
381 * tests/scanner/foo-object.h:
382 * tests/scanner/foo.c (foo_boxed_method):
383 Move the drawable parts out of Foo to its own test.
385 2008-08-20 Johan Dahlin <johan@gnome.org>
387 * tests/scanner/Foo-expected.gir:
388 * tests/scanner/foo-object.h:
389 * tests/scanner/foo.c (foo_drawable_class_init),
391 Add a based on GdkDrawable which generates
394 2008-08-19 Colin Walters <walters@verbum.org>
396 * giscanner/transformer.py: Don't try
397 to strip prefix before namespace.
399 2008-08-19 Johan Dahlin <johan@gnome.org>
401 * giscanner/transformer.py:
402 * tests/scanner/Foo-expected.gir:
403 * tests/scanner/foo-object.h:
404 Add support for typedef void foo type of
407 2008-08-19 Johan Dahlin <johan@gnome.org>
410 * giscanner/girwriter.py:
411 * giscanner/glibtransformer.py:
412 * giscanner/transformer.py:
413 * tests/scanner/Foo-expected.gir:
414 Add basic support for union, base the code much
415 on Struct. Add a testcase.
417 2008-08-19 Johan Dahlin <johan@gnome.org>
419 * tests/scanner/Foo-expected.gir:
420 * tests/scanner/foo-object.h:
421 Add a union testcase which the compiler currently
424 2008-08-19 Johan Dahlin <johan@gnome.org>
426 * gobject-introspection-1.0.pc.in:
427 Add a g_ir_compiler variable
429 2008-08-19 Colin Walters <walters@verbum.org>
431 * giscanner/ast.py: Rework types to be more closely
433 * giscanner/girparser.py: Parse more bits.
434 * giscanner/girwriter.py: Write sequences in a new
435 way that specifies container type.
436 * giscanner/glibast.py: Adjust for ast.py changes,
437 add 'ctype' property to GLibObject and GLibInterface
438 so we can look things up by it later.
439 * gicanner/transformer.py: Names is new class holding
440 the various namespaces we manage. Do not confuse
441 with Namespace which is toplevel XML node effectively.
442 Rework all type resolution to go through
443 _resolve_type_name_1.
444 * giscanner/glibtransformer.py: Raise UnknownTypeError
445 instead of ValueError for cleanliness. Add Unresolved
446 class to mark types whose parent we haven't seen yet.
447 Use new Names object from transformer.py.
448 Correctly look up parent=.
449 Fix type validation to handle sequences.
450 * tests/scanner/Foo-expected.gir: Update for sequence
451 work, int instead of int32.
452 * tools/g-ir-scanner: Add --noclosure option
453 * gir/Makefile.am: Use --noclosure by default for
456 2008-08-18 Johan Dahlin <johan@gnome.org>
458 * gir/gio-2.0-good.gir:
459 * gir/glib-2.0-good.gir:
460 * gir/gobject-2.0-good.gir:
463 2008-08-18 Johan Dahlin <johan@gnome.org>
466 * giscanner/girparser.py:
467 * giscanner/girwriter.py:
468 * giscanner/glibast.py:
469 * giscanner/glibtransformer.py:
470 * giscanner/transformer.py:
471 * tests/scanner/Foo-expected.gir:
472 * tests/scanner/foo-object.h:
473 * tests/scanner/utility-expected.gir:
474 * tests/scanner/utility.h:
475 Redo type resolving and validation.
476 Add a couple of new tests.
477 Patch mostly written by Colin.
479 2008-08-18 Johan Dahlin <johan@gnome.org>
482 * giscanner/girparser.py:
484 * giscanner/transformer.py:
485 Improve enum parsing for enums without a GType.
486 Make flags/enum references to other girs work
487 * giscanner/utils.py:
489 * tests/scanner/Makefile.am:
490 * tests/scanner/foo-object.h:
491 * tests/scanner/utility-expected.gir:
492 * tests/scanner/utility.h:
493 Add a new test for external enum references
495 2008-08-18 Johan Dahlin <johan@gnome.org>
497 * docs/global-module-registry.txt: Update
499 * tests/array.gir: Update with new type proposal
501 * girepository/girepository.c (g_type_tag_to_string):
502 * girepository/girepository.h:
503 * girepository/girnode.c (g_ir_node_get_full_size_internal),
505 * girepository/girnode.h:
506 Make enum serializing functions public. Clean up some whitespace.
508 2008-08-17 Johan Dahlin <johan@gnome.org>
510 * docs/global-module-registry.txt:
511 Add a document for an on disk module registry format
513 2008-08-17 Johan Dahlin <johan@gnome.org>
516 * gir/gio-2.0-good.gir:
519 2008-08-17 Johan Dahlin <johan@gnome.org>
522 * gir/glib-2.0-good.gir:
523 * gir/gobject-2.0-good.gir:
524 * giscanner/cgobject.py:
525 * giscanner/glibtransformer.py:
526 Regenerate GObject & GType.
527 Avoid warnings when generating gobject-2.0.gir.
528 Introspect a little more, and skip *_get_type functions.
530 2008-08-17 Colin Walters <walters@verbum.org>
532 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
533 Rename to -good, always generate during build.
534 * gir/Makefile.am: Ensure .gir files dep on
536 * Makefile.am: Switch build order to ensure
537 the scanner is ready before we do gir/.
538 * tools/g-ir-scanner: Look for .git too.
540 2008-08-17 Johan Dahlin <johan@gnome.org>
542 * girepository/gtypelib.c (validate_enum_blob):
543 * giscanner/glibtransformer.py:
544 * giscanner/transformer.py:
545 Remove resolve_possible_typedefs, it was unused.
546 Allow multiple enum values of the sample value in an enum,
547 since it's actually pretty common.
548 Register enums so they can be resolved too.
550 2008-08-16 Johan Dahlin <johan@gnome.org>
552 * giscanner/girparser.py:
553 Parse enumeration/bitfield.
555 2008-08-16 Johan Dahlin <johan@gnome.org>
557 * giscanner/girparser.py:
560 2008-08-16 Johan Dahlin <johan@gnome.org>
562 * giscanner/glibtransformer.py:
563 Resolve type names for alias targets
564 * giscanner/transformer.py:
565 Skip FILE* parameters fow now
567 2008-08-16 Johan Dahlin <johan@gnome.org>
570 * gir/gobject-2.0.gir:
573 * tests/scanner/Makefile.am:
576 2008-08-15 Colin Walters <walters@verbum.org>
578 * giscanner/glibtransformer.py: Explicitly construct
579 new list, since we're deleting as we iterate.
580 Don't delete all structures which end in Class; just
581 ones which have a paired GObject.
582 Fix printing of type warning.
583 * giscanner/transformer.py: Make strip_namespace_object
584 be the identity function if it doesn't match the
587 2008-08-15 Colin Walters <walters@verbum.org>
589 * giscanner/cgobject.py: Define yet more argument
590 prototypes; fix prototype for g_type_fundamental.
592 2008-08-14 Johan Dahlin <johan@gnome.org>
595 * tests/constant.gir:
598 * tools/generate.c (write_struct_info):
599 Fix generator for constant/gobject/struct
601 2008-08-14 Johan Dahlin <johan@gnome.org>
605 * tools/generate.c (write_enum_info):
606 Fix generation of enum/bitfields
608 2008-08-14 Johan Dahlin <johan@gnome.org>
610 * girepository/girparser.c (start_field), (start_constant),
611 (start_type), (end_element_handler):
612 Clear up constant parsing
617 * tools/generate.c (write_callable_info), (write_function_info),
618 (write_callback_info), (write_constant_info), (write_signal_info),
619 (write_vfunc_info), (write_property_info), (write_object_info),
620 (write_interface_info):
621 Constants/Signals are handled now.
623 2008-08-14 Johan Dahlin <johan@gnome.org>
625 * girepository/girparser.c (start_type):
626 Don't require c:type.
630 Update, remove parts we don't support yet
631 * tests/roundtrips.sh:
633 * tools/generate.c (write_type_info), (write_field_info),
634 (write_callable_info), (write_struct_info):
635 Make it emit proper gir.
637 2008-08-14 Johan Dahlin <johan@gnome.org>
639 * giscanner/transformer.py:
640 New internal function for adding a new node.
642 2008-08-14 Johan Dahlin <johan@gnome.org>
645 Define an internal _H_ variable so we skip parsing both
646 i18n headers, only one is needed.
648 Add the glib-2.0.gir too.
649 * giscanner/glibast.py:
650 Add gconstpointer as an alias for ANY
651 * giscanner/transformer.py:
652 Do not lower case enumeration names per se.
653 Skip functions which has parameters called 'va_list'
655 2008-08-14 Colin Walters <walters@verbum.org>
657 * giscanner/transformer.py: Comment data structures.
658 Also squash pointers in resolve_type_name to correspond
659 with what we do for params.
660 * giscanner/glibtransformer.py: Print warnings in more
661 situations. Rework checks for method/constructor to
662 look up in our GType database instead of just checking
663 for *. Avoid generating <record> for GObject which
664 duplicate the <class>.
665 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
668 2008-08-14 Johan Dahlin <johan@gnome.org>
670 * giscanner/girwriter.py:
671 * giscanner/glibast.py:
672 * giscanner/glibtransformer.py:
673 * giscanner/transformer.py:
676 Add pyflakes.py and run it in make check.
677 Update the source code to fix the errors reported by
680 2008-08-14 Johan Dahlin <johan@gnome.org>
683 * giscanner/girparser.py:
684 * giscanner/glibast.py:
685 * giscanner/glibtransformer.py:
686 Refactor the parser a bit.
687 Add parent type to interfaces and update callsites.
689 2008-08-14 Johan Dahlin <johan@gnome.org>
691 * giscanner/glibtransformer.py:
692 * giscanner/utils.py:
693 Refactor a bit, avoid isinstance and add a method
694 for each type we parse.
696 2008-08-14 Johan Dahlin <johan@gnome.org>
699 * giscanner/girparser.py:
700 * giscanner/glibtransformer.py:
702 Run pep8.py in make check, fix old errors.
704 2008-08-13 Colin Walters <walters@verbum.org>
706 * giscanner/girparser.py: Parse records.
708 2008-08-13 Colin Walters <walters@verbum.org>
710 * gir/Makefile.am: Install again.
711 * gir/gobject-2.0.gir: Add some more bits.
713 2008-08-13 Colin Walters <walters@verbum.org>
715 * gir/gobject-2.0.gir: Use correct namespace, add GType.
716 * giscanner/girparser.py: Handle aliases.
717 * giscanner/transformer.py: Record aliases. Make resolver
718 functions public; we now call into these explicitly from
719 glibtransformer. Handle resolving aliases.
720 * giscanner/glibtransformer.py: Separate our internal namespace
721 from included ones. Call up into transformer's resolver functions.
723 2008-08-13 Johan Dahlin <johan@gnome.org>
725 * girepository/girnode.c (g_ir_node_get_full_size_internal):
726 * girepository/girparser.c (start_class):
727 * giscanner/glibtransformer.py:
728 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
730 2008-08-13 Johan Dahlin <johan@gnome.org>
732 * giscanner/cgobject.py:
733 Register GInitiallyUnowned
734 * giscanner/girwriter.py:
735 * giscanner/glibtransformer.py:
736 Special case GObject/GInitially owned as they are a bit special to use.
738 2008-08-13 Colin Walters <walters@verbum.org>
740 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
741 Object is in GObject namespace.
743 2008-08-13 Colin Walters <walters@verbum.org>
745 * giscanner/girparser.py: Fix processing of functions
748 2008-08-13 Colin Walters <walters@verbum.org>
750 * giscanner/girparser.py: Parse more than just <class.
751 * giscanner/glibtransformer.py: Put aliases in a separate
752 data structure since their name is not canonicall.
753 * giscanner/transformer.py: Handle resolving type names
756 2008-08-13 Johan Dahlin <johan@gnome.org>
758 * tools/g-ir-scanner:
759 Allow multiple libraries
760 * giscanner/glibtransformer.py:
761 Rename load_library to add_library, traverse over all libraries
762 when trying to resolve a function
764 2008-08-12 Colin Walters <walters@verbum.org>
766 * giscanner/transformer.py: Record typedefs as <alias> elements.
767 Also attempt to look up types in external namespaces.
768 * giscanner/girwriter.py: Write them.
769 * giscanner/glibtransformer.py: Rework resolver using real instanceof
770 checks. Resolve interface methods and properties.
771 * tests/scanner/foo-object.h: Add a method with typedef.
772 * tests/scanner/Foo-expected.gir: Update.
773 * girepository/girnode.c: Debug tweaks.
774 * girepository/girparser.c: Make a first pass through the XML where we
775 record all the aliases. This lets us resolve them as we go through the
777 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
780 2008-08-12 Colin Walters <walters@verbum.org>
782 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
783 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
785 * giscanner/transformer.py: Record typedefs and expose public API for resolving
787 * tests/scanner/Foo-expected.gir: Fix expected callback types.
789 2008-08-12 Colin Walters <walters@verbum.org>
791 * giscanner/glibtransformer.py: Also transform object properties.
793 2008-08-12 Colin Walters <walters@verbum.org>
795 * giscanner/glibtransformer.py: Also transform callbacks
796 and structure field types.
797 * tests/scanner/Fooe-expected.gir: Update to expect correct
798 names for callbacks and structs.
800 2008-08-12 Colin Walters <walters@verbum.org>
802 * girepository/girparser.c: Handle 'any'.
803 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
806 2008-08-12 Colin Walters <walters@verbum.org>
808 * giscanner/glibtransformer.py: We need to do type
809 resolution in a second pass after we've seen all the
812 2008-08-12 Colin Walters <walters@verbum.org>
814 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
815 Add enum return value.
816 * giscanner/glibtransformer.py: Transform function return types
819 2008-08-12 Colin Walters <walters@verbum.org>
821 * tests/scanner/Makefile.am: Dep .gir files on scanner
822 sources too. Also remove @ so we see scanner invocations.
824 2008-08-12 Colin Walters <walters@verbum.org>
826 * girepository/girparser.c, girepository/gtypelib.c,
827 girepository/gtypelib.h, girepository/girnode.c:
828 Remove usage of (GAPI-oriented) TypeTag in favor of
829 GITypeTag from girepository.h.
831 2008-08-10 Colin Walters <walters@verbum.org>
833 * tests/roundtrips.sh: Use the correct tests.
835 2008-08-10 Colin Walters <walters@verbum.org>
837 * giscanner/cgobject.py: Declare/wrap a few more functions.
838 Fix parameter types for g_object_new and g_type_fundamental.
840 2008-08-10 Colin Walters <walters@verbum.org>
842 * giscanner/cgobject.py: Add new decorator @gwrap which forces
843 us to declare types for both return value and parameters. The
844 ctypes default of 'int' is bad because it hides 32/64 bit
845 problems. Convert all existing functions to use it.
847 2008-08-09 Johan Dahlin <johan@gnome.org>
849 * giscanner/__init__.py:
851 * giscanner/cgobject.py:
852 * giscanner/gidlparser.py:
853 * giscanner/gidlwriter.py:
854 * giscanner/girparser.py:
855 * giscanner/girwriter.py:
856 * giscanner/glibast.py:
857 * giscanner/glibtransformer.py:
858 * giscanner/odict.py:
859 * giscanner/sourcescanner.py:
860 * giscanner/transformer.py:
861 * giscanner/utils.py:
862 * giscanner/xmlwriter.py:
863 * tools/g-ir-scanner:
867 2008-08-09 Johan Dahlin <johan@gnome.org>
870 * relaxng/c-types.xml:
871 * relaxng/g-types.xml:
872 * relaxng/relaxng.rng:
874 Remove outdated relaxng schemas.
876 2008-08-09 Johan Dahlin <johan@gnome.org>
879 Rename metadata to typelib in variable names,
882 2008-08-09 Johan Dahlin <johan@gnome.org>
886 Remove old C scanner, which got rewritten in python.
888 2008-08-09 Johan Dahlin <johan@gnome.org>
890 * girepository/Makefile.am:
900 Move shared *.[ch] files to girepository from tools
902 2008-08-09 Johan Dahlin <johan@gnome.org>
907 * tests/constant.test:
910 * tests/function.test:
911 * tests/gobject.test:
912 * tests/interface.test:
919 Rename *.test to *.gir
921 2008-08-09 Johan Dahlin <johan@gnome.org>
925 * tests/parser/Foo-expected.gir:
926 * tests/parser/Makefile.am:
927 * tests/parser/foo-object.h:
928 * tests/parser/foo.c:
929 * tests/parser/utility-expected.gir:
930 * tests/parser/utility.c:
931 * tests/parser/utility.h:
932 * tests/scanner/Makefile.am:
933 Rename tests/parser to test/scanner
935 2008-08-08 Colin Walters <walters@verbum.org>
937 * tests/roundtrips.sh: Use local .gir files again.
939 2008-08-08 Colin Walters <walters@verbum.org>
941 * tests/invoke/Makefile.am: .gir file depends on libtool
944 2008-08-08 Colin Walters <walters@verbum.org>
946 * tools/girnode.c: Pass through parent node so we can
947 print the node whose child is NULL, if that occurs.
949 2008-08-08 Johan Dahlin <johan@gnome.org>
952 Disable roundtrip tests which are not yet working
953 * tests/invoke/testfns.gir:
956 2008-08-08 Johan Dahlin <johan@gnome.org>
958 * giscanner/girwriter.py:
960 * giscanner/glibast.py:
961 * giscanner/glibtransformer.py:
962 Swap order of members, to keep it consistent with
965 2008-08-08 Johan Dahlin <johan@gnome.org>
967 * girepository/gtypelib.c (validate_header):
968 * girepository/gtypelib.h:
970 * giscanner/girwriter.py:
971 * giscanner/sourcescanner.c (gi_source_symbol_ref),
972 (gi_source_symbol_unref):
975 * tests/constant.test:
978 * tests/function.test:
979 * tests/gobject.test:
980 * tests/interface.test:
981 * tests/invoke/Makefile.am:
982 * tests/invoke/testfns.xml:
984 * tests/parser/Makefile.am:
985 * tests/roundtrips.sh:
992 * tools/compiler.c (main):
993 * tools/generate.c (write_callable_info), (write_function_info),
995 * tools/gidlmodule.c:
996 * tools/gidlmodule.h:
999 * tools/gidlparser.c:
1000 * tools/gidlparser.h:
1001 * tools/gidlwriter.c:
1002 * tools/gidlwriter.h:
1003 * tools/scanner.c (create_node_from_gtype),
1004 (create_node_from_ctype), (g_igenerator_process_properties),
1005 (g_igenerator_process_signals), (g_igenerator_create_object),
1006 (g_igenerator_create_interface), (g_igenerator_create_boxed),
1007 (g_igenerator_create_enum), (g_igenerator_create_flags),
1008 (g_igenerator_process_function_symbol),
1009 (g_igenerator_process_unregistered_struct_typedef),
1010 (g_igenerator_process_struct_typedef),
1011 (g_igenerator_process_union_typedef),
1012 (g_igenerator_process_enum_typedef),
1013 (g_igenerator_process_function_typedef),
1014 (g_igenerator_process_constant), (g_igenerator_process_symbols),
1015 (g_igenerator_add_module), (g_igenerator_add_include_idl):
1016 Merge in the gir-compiler branch.
1017 Thanks to Philip and Colin for their help.
1019 2008-07-26 Colin Walters <walters@verbum.org>
1021 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
1022 and g-idl-generate to go along with how we're changing this
1023 module to be installed.
1024 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
1026 2008-07-24 Colin Walters <walters@verbum.org>
1028 * girepository/girepository.c (g_irepository_register): Add
1029 environment variable G_IREPOSITORY_VERBOSE so we can print
1030 out what we're doing.
1031 * girepository/girepository.c (g_irepository_register_file):
1032 Add GError error message to g_debug call.
1034 2008-07-08 Jürg Billeter <j@bitron.ch>
1036 * giscanner/glibast.py:
1040 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
1042 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
1045 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
1048 * giscanner/girwriter.py:
1049 * giscanner/transformer.py:
1050 * tests/parser/Foo-expected.gir:
1051 * tests/parser/foo-object.h:
1052 * tests/parser/foo.c (foo_object_allow_none):
1053 Add support for gtk-doc annotations for allow-none.
1056 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
1059 * giscanner/girwriter.py:
1060 * giscanner/glibast.py:
1061 * giscanner/glibtransformer.py:
1062 * giscanner/transformer.py:
1063 * tests/parser/Foo-expected.gir:
1064 Start using abstract type instead of the raw C types.
1065 Register a bunch of glib types we care about.
1067 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
1072 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
1074 * girepository/girepository.c:
1075 * girepository/gtypelib.c:
1076 * girepository/ginfo.c:
1077 * girepository/ginvoke.c:
1078 * girepository/girepository.h:
1079 * girepository/gtypelib.h:
1080 * girepository/gmetadata.c:
1081 * girepository/Makefile.am:
1082 * girepository/gmetadata.h:
1084 * tools/gidlmodule.c:
1087 * tools/gidlmodule.h:
1088 * tools/gidlparser.c:
1090 Renamed GMetadata to GTypelib
1092 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
1094 * giscanner/xmlwriter.py:
1095 Improve line wrapping when > 79 charaters
1097 2008-06-05 Jürg Billeter <j@bitron.ch>
1100 * giscanner/girwriter.py:
1101 * giscanner/transformer.py:
1102 Use <type> element for field types
1103 * tests/parser/Foo-expected.gir:
1106 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
1108 * giscanner/glibtransformer.py:
1109 Fix a bug which prevented GdkEvent from being generated
1111 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
1113 * giscanner/Makefile.am:
1115 * giscanner/girwriter.py:
1116 * giscanner/glibast.py:
1117 * giscanner/glibtransformer.py:
1118 * giscanner/transformer.py:
1119 * giscanner/utils.py:
1120 * tests/parser/Foo-expected.gir:
1121 Improve enum member parsing and introspection
1123 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1125 * giscanner/scannerparser.y:
1126 * giscanner/sourcescanner.h:
1127 * giscanner/sourcescanner.py:
1128 Add a new source type enum for member.
1129 Use __repr__ for improved debugging
1130 * giscanner/girparser.py:
1132 * giscanner/transformer.py:
1133 Improve parsing of struct members.
1134 * tests/parser/foo-object.h:
1137 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1139 * giscanner/xmlwriter.py:
1140 Improve error reporting when trying to quote None.
1141 * giscanner/girparser.py:
1142 Do not print warnings when including more complete .gir files
1143 * giscanner/girwriter.py:
1144 Do not require a name for parameters, add a todo for singletons
1145 * giscanner/glibtransformer.py:
1146 Refactor the way structs are done, add a couple of hacks to allow
1148 * giscanner/transformer.py:
1149 Add enough hacks so cairo, atk and pango.gir can be parsed properly
1150 * gobject-introspection-1.0.pc.in:
1151 Export girdir, so we can access gobject-2.0.gir from outside
1153 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1155 * tools/g-ir-scanner:
1156 * tests/parser/Makefile.am:
1157 Update sys.path before running the parser so we don't have
1158 to setup PYTHONPATH ourselves.
1162 * girepository/Makefile.am:
1163 * giscanner/transformer.py:
1164 * gobject-introspection-1.0.pc.in:
1165 * gobject-introspection.pc.in:
1166 * tools/Makefile.am:
1168 Rename pkg-config name to gobject-introspection-1.0,
1169 Do not installed anything which is not using the gir format.
1170 Disable compililation the old C scanner, but still keep the source
1171 until all the remaning functionallity has been ported.
1173 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1175 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
1176 a crash when symbol->indent is NULL.
1178 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
1179 a function to convert a CTYPE symbol to a string
1181 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
1184 * giscanner/girwriter.py:
1185 * giscanner/giscannermodule.c
1186 (pygi_source_scanner_append_filename),
1187 (pygi_source_scanner_parse_file):
1188 * giscanner/glibtransformer.py:
1189 * giscanner/sourcescanner.py:
1190 Revert back to using temporary files to send in headers.
1191 Allow Functions to be passed in as callbacks, add a couple
1192 of try/excepts missing features.
1193 We can now scan pango
1195 2008-05-08 Johan Dahlin <johan@gnome.org>
1197 * giscanner/glibtransformer.py:
1198 * giscanner/transformer.py:
1199 Move namespace stripping glibtransformer->transformer
1201 2008-05-08 Johan Dahlin <johan@gnome.org>
1204 * giscanner/girwriter.py:
1205 * giscanner/glibtransformer.py:
1206 * giscanner/transformer.py:
1207 * tools/g-ir-scanner:
1208 Introduce a namespace ast node
1210 2008-05-05 Johan Dahlin <johan@gnome.org>
1212 * giscanner/__init__.py:
1213 * giscanner/sourcescanner.py:
1214 * giscanner/transformer.py:
1215 Move sourcescanner symbols to the sourcescanner module, instead
1216 of in the global __init__ namespace.
1218 2008-05-03 Johan Dahlin <johan@gnome.org>
1220 * giscanner/glibtransformer.py:
1221 * tools/g-ir-scanner:
1222 Handle missing parameters better, allow - and + in .la dlname
1225 2008-05-03 Johan Dahlin <johan@gnome.org>
1227 * giscanner/__init__.py:
1229 * giscanner/girwriter.py:
1230 * giscanner/glibtransformer.py:
1231 * giscanner/transformer.py:
1232 Parse struct fields properly, improve debugging.
1234 2008-04-29 Johan Dahlin <johan@gnome.org>
1237 * giscanner/girwriter.py:
1238 * giscanner/transformer.py:
1239 * tests/parser/Foo-expected.gir:
1241 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
1243 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1246 * docs/g-ir-scanner.1:
1247 * metadata-annotations-proposal.txt:
1248 * metadata-format.txt:
1249 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
1251 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1253 * giscanner/girwriter.py:
1254 * giscanner/glibtransformer.py:
1255 * giscanner/transformer.py:
1256 * giscanner/xmlwriter.py:
1257 * tests/parser/Foo-expected.gir:
1258 * tests/parser/foo-object.h:
1259 Write record/structs to gir file too. Add a couple of tests,
1260 fix an off by one error in xmlwriter.py.
1262 2008-04-28 Johan Dahlin <johan@gnome.org>
1264 * giscanner/xmlwriter.py: Calculate the line length properly,
1265 include the provided extra indentation in the calculation, really.
1267 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1270 * giscanner/glibast.py:
1271 * giscanner/glibtransformer.py:
1272 * giscanner/transformer.py:
1273 * tools/g-ir-scanner:
1274 Add a --strip-prefix and sort out confusion between names and symbols
1275 for functions and struct + derivaties.
1276 Refactor bootstrap of g-ir-scanner, so we can set options on
1277 Transformer() before parsing everything.
1279 2008-04-28 Johan Dahlin <johan@gnome.org>
1281 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
1282 when scanning girepository.h
1284 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
1285 a __GI_SCANNER__ when we run.
1287 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1290 * giscanner/girwriter.py:
1291 * giscanner/glibast.py:
1292 * giscanner/glibtransformer.py:
1293 * tests/parser/Foo-expected.gir:
1294 * tests/parser/utility-expected.gir:
1295 Rename most c:identifier to c:type. Add new ones to
1296 class/interface/enum/boxed.
1298 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1301 * giscanner/girwriter.py:
1302 * giscanner/glibtransformer.py:
1303 * tests/parser/Foo-expected.gidl:
1304 * tests/parser/Makefile.am:
1305 Move c:identifier from return-value to subchild type,
1306 as per Jürgs suggestion
1308 2008-04-28 Johan Dahlin <johan@gnome.org>
1310 * giscanner/girwriter.py:
1311 * tests/parser/Foo-expected.gir:
1312 Write property.type as a child node.
1314 2008-04-27 Johan Dahlin <johan@gnome.org>
1319 * gidl/gobject-2.0.gidl:
1321 * gir/gobject-2.0.gir:
1322 * tests/parser/Makefile.am:
1323 Replace the GObject gidl with a GObject gir.
1325 2008-04-27 Johan Dahlin <johan@gnome.org>
1327 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
1330 * giscanner/xmlwriter.py:
1331 * tests/parser/Foo-expected.gir:
1332 Include indentation in line length calculation
1334 2008-04-27 Johan Dahlin <johan@gnome.org>
1336 * giscanner/girparser.py:
1337 Prettify NS parsing using elementtree.
1339 2008-04-27 Johan Dahlin <johan@gnome.org>
1342 * giscanner/Makefile.am:
1343 * giscanner/girparser.py:
1344 * giscanner/glibtransformer.py:
1345 * tests/parser/Foo-expected.gidl:
1346 * tests/parser/Foo-expected.gir:
1347 * tests/parser/Makefile.am:
1348 * tests/parser/utility-expected.gidl:
1349 * tests/parser/utility-expected.gir:
1350 * tools/g-ir-scanner:
1351 Switch over to GIR as the default format. Add a simple GIDL
1353 Update tests and fix simplify makefiles by depending
1354 on GNU make extensions.
1356 2008-04-27 Johan Dahlin <johan@gnome.org>
1358 * giscanner/xmlwriter.py:
1359 Wrap attributes for lines which are wider than 79 characters
1361 * giscanner/scannerlexer.l:
1362 Allow parenthesis in annotations
1365 * giscanner/gidlwriter.py:
1366 * giscanner/girwriter.py:
1367 * giscanner/glibtransformer.py:
1368 * giscanner/transformer.py:
1369 Add initial sequence support, including annotation.
1370 Refactor type handling a bit.
1372 2008-04-27 Johan Dahlin <johan@gnome.org>
1374 * tests/parser/Foo-expected.gidl:
1375 * tests/parser/foo-object.h:
1376 * tests/parser/foo.c (foo_object_class_init),
1377 (foo_object_get_strings), (foo_object_get_objects):
1378 Add two new functions to check sequence return values.
1379 Also fixes a compilation warning.
1381 2008-04-27 Johan Dahlin <johan@gnome.org>
1383 * giscanner/giscannermodule.c (]): Cast the getter, avoids
1384 a compilation warning.
1386 * tools/Makefile.am (g_ir_scanner_SOURCES):
1387 g-ir-scanner has no sources.
1389 2008-04-25 Johan Dahlin <johan@gnome.org>
1391 * giscanner/Makefile.am:
1393 * giscanner/gidlparser.py:
1394 * giscanner/gidlwriter.py:
1395 * giscanner/girwriter.py:
1396 * giscanner/glibast.py:
1397 * giscanner/glibtransformer.py:
1398 * giscanner/transformer.py:
1399 Split out nodes to ast.py and glibast.py
1401 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1403 * giscanner/Makefile.am:
1404 * giscanner/gidlparser.py:
1405 * giscanner/gidlwriter.py:
1406 * giscanner/girwriter.py:
1407 * giscanner/glibtransformer.py:
1408 * giscanner/gobjecttreebuilder.py:
1409 * giscanner/transformer.py:
1410 * giscanner/treebuilder.py:
1411 * tools/g-ir-scanner:
1412 Rename treebuilder to transformer and
1413 gobjectreebuilder to glibtransformer.
1415 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1417 * giscanner/Makefile.am:
1418 * giscanner/__init__.py:
1419 * giscanner/cgobject.py:
1420 * giscanner/gidlparser.py:
1421 * giscanner/gidlwriter.py:
1422 * giscanner/girwriter.py:
1423 * giscanner/gobjecttreebuilder.py:
1424 * giscanner/odict.py:
1425 * giscanner/sourcescanner.py:
1426 * giscanner/treebuilder.py:
1427 * giscanner/xmlwriter.py:
1428 * tools/Makefile.am:
1429 * tools/g-ir-scanner:
1430 Add LGPLv2 license header and install all python files
1432 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1435 * giscanner/gidlwriter.py:
1436 * giscanner/giscannermodule.c (pygi_source_directive_new),
1437 (directive_get_options), (pygi_source_symbol_new),
1438 (symbol_get_base_type), (pygi_source_type_new),
1439 (type_get_base_type), (type_get_child_list),
1440 (pygi_source_scanner_get_symbols),
1441 (pygi_source_scanner_get_directives):
1442 * giscanner/gobjecttreebuilder.py:
1443 * giscanner/sourcescanner.py:
1444 * giscanner/treebuilder.py:
1445 * tests/parser/foo-object.h:
1446 Add support for virtual methods.
1447 Pair struct FooClass with struct Foo.
1448 Clean up the SourceScanner bindings a bit.
1449 Add a testcase for virtual methods.
1451 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1453 * giscanner/cgobject.py:
1454 * giscanner/gidlwriter.py:
1455 * giscanner/gobjecttreebuilder.py:
1456 Add support for signals
1458 * tests/parser/foo.c (foo_object_class_init):
1459 * Foo-expected.gidl:
1460 Add a signal and update the expected output.
1462 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
1464 * giscanner/gidlwriter.py:
1465 * giscanner/girwriter.py:
1466 * giscanner/giscannermodule.c (directive_get_name),
1467 (directive_get_value), (directive_get_options),
1468 (symbol_get_directives), (symbol_set_directives),
1469 (pygi_source_scanner_parse_file),
1470 (pygi_source_scanner_lex_filename),
1471 (pygi_source_scanner_get_directives), (init_giscanner):
1472 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
1473 * giscanner/sourcescanner.h:
1474 * giscanner/sourcescanner.py:
1475 * giscanner/treebuilder.py:
1476 * tools/g-ir-scanner:
1477 Add support for source/header annotations.
1479 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1481 * giscanner/gidlwriter.py:
1482 * giscanner/girwriter.py:
1483 * giscanner/gobjecttreebuilder.py:
1484 * giscanner/treebuilder.py:
1485 Add support for Callbacks
1487 2008-04-22 Havoc Pennington <hp@pobox.com>
1489 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
1490 not in metadata->module, look for it in the global module, in case
1491 some other object or the app itself provides the symbol.
1493 2008-04-22 Havoc Pennington <hp@pobox.com>
1495 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
1496 dlopening a library that is already in the main app, by checking
1497 whether one of the lib's symbols is already loaded.
1499 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1501 * tests/parser/Foo-expected.gidl:
1502 * tests/parser/foo-object.h:
1505 2008-04-22 Havoc Pennington <hp@pobox.com>
1507 * girepository/ginfo.c (g_interface_info_find_method):
1508 Use interface_blob_size not object_blob_size to compute offset.
1510 2008-04-22 Havoc Pennington <hp@pobox.com>
1512 * girepository/gmetadata.c (_g_metadata_init): remove
1513 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
1514 (Glade and Clutter for example) rely on being loaded globally.
1516 2008-04-22 Havoc Pennington <hp@pobox.com>
1518 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
1519 function to get the GType given a RegisteredTypeInfo
1521 2008-04-22 Johan Dahlin <johan@gnome.org>
1523 * COPYING: Add a LGPL license, to prevent automake to
1524 put in a copy of GPL here. Pointed out by Havoc.
1526 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
1527 (g_type_info_is_pointer), (g_type_info_get_tag),
1528 (g_type_info_get_param_type), (g_type_info_get_interface),
1529 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
1530 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
1531 (g_error_domain_info_get_codes), (g_enum_info_get_value),
1532 (g_object_info_get_interface), (g_object_info_get_field),
1533 (g_interface_info_get_prerequisite),
1534 (g_signal_info_get_class_closure), (g_constant_info_get_value):
1535 * girepository/ginvoke.c (get_ffi_type):
1536 * girepository/girepository.h:
1537 * girepository/gmetadata.c (g_metadata_get_dir_entry),
1538 (g_metadata_check_sanity), (validate_header),
1539 (validate_array_type_blob), (validate_iface_type_blob),
1540 (validate_param_type_blob), (validate_error_type_blob),
1541 (validate_type_blob), (validate_constant_blob),
1542 (validate_struct_blob), (validate_enum_blob):
1543 * girepository/gmetadata.h:
1544 * tests/Makefile.am:
1545 * tests/invoke/Makefile.am:
1546 * tests/invoke/invoke.c (main):
1547 * tests/roundtrips.sh:
1548 * tools/Makefile.am:
1549 * tools/compiler.c (format_output), (write_out_metadata), (main):
1550 * tools/generate.c (write_type_name), (write_type_info),
1551 (write_constant_value), (write_enum_info), (load_metadata), (main):
1552 * tools/gidlcompilercontext.c:
1553 * tools/gidlcompilercontext.h:
1554 * tools/gidlcompilerentrynode.c:
1555 * tools/gidlcompilerentrynode.h:
1556 * tools/gidlcompilertypenode.c:
1557 * tools/gidlcompilertypenode.h:
1558 * tools/gidlmodule.c (g_idl_module_build_metadata):
1559 * tools/gidlmodule.h:
1560 * tools/gidlnode.c (init_stats), (dump_stats),
1561 (g_idl_node_get_size), (g_idl_node_get_full_size),
1562 (g_idl_node_cmp), (g_idl_node_can_have_member),
1563 (g_idl_node_add_member), (g_idl_node_param_direction_string),
1564 (parse_int_value), (parse_uint_value), (parse_float_value),
1565 (parse_boolean_value), (find_entry_node), (find_entry),
1566 (serialize_type), (g_idl_node_build_metadata), (write_string):
1568 * tools/gidlparser.c (parse_type_internal):
1569 * tools/quote-file.sh:
1570 Revert revisions 157,149-148,136-129 and 120.
1571 Move back to using g-idl-generate to generate the metadata and
1572 avoids dependency on a c compiler.
1574 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1576 * giscanner/girwriter.py:
1577 * tools/g-ir-scanner:
1578 Add an initial GIR writer and a --format option to g-ir-scanner
1580 2008-04-21 Johan Dahlin <johan@gnome.org>
1582 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
1583 gobject-2.0 and raise ImportError if not found.
1585 * giscanner/gidlparser.py:
1586 * giscanner/gidlwriter.py:
1587 * giscanner/gobjecttreebuilder.py:
1588 * tools/g-ir-scanner:
1589 Add a --include argument to include types from other idls.
1590 Add a minimalistic GIDL parser (just objects for now)
1591 Implement resolving of external type references and use it to
1592 resolve parent types, argument types and return types.
1594 2008-04-21 Johan Dahlin <johan@gnome.org>
1596 * giscanner/gidlwriter.py:
1597 * giscanner/gobjecttreebuilder.py:
1598 * giscanner/treebuilder.py:
1599 Add support for properties.
1600 Refactor Class/Interface support a bit, to share more code and
1601 always initialize their method attribute to an empty list.
1603 2008-04-21 Johan Dahlin <johan@gnome.org>
1605 * giscanner/cgobject.py:
1606 Add a workaround for a glib bug interface introspection bug
1607 (object_interface_list_properties, object_class_list_properties):
1608 Cast the return value to GParamSpec.
1610 * tests/parser/Foo-expected.gidl: Update
1611 * tests/parser/foo.c: Add a string property
1613 * giscanner/gobjecttreebuilder.py:
1614 After stripping namespaces, remove the original
1615 item to avoid duplication (GtkButton struct and Button object)
1617 2008-04-21 Johan Dahlin <johan@gnome.org>
1619 * giscanner/gobjecttreebuilder.py:
1620 * giscanner/treebuilder.py:
1621 Strip namespaces before objects, so we'll export
1622 GtkButton as Button in the gtk namespace
1624 2008-04-21 Johan Dahlin <johan@gnome.org>
1626 * giscanner/gidlwriter.py:
1627 * giscanner/gobjecttreebuilder.py:
1628 * giscanner/treebuilder.py:
1629 Add constructors for object/boxed types.
1631 2008-04-21 Johan Dahlin <johan@gnome.org>
1633 * giscanner/gidlwriter.py:
1634 * giscanner/gobjecttreebuilder.py:
1635 Add support for boxed types
1637 2008-04-21 Johan Dahlin <johan@gnome.org>
1639 * giscanner/giscannermodule.c: Mark structures as const,
1640 wrap SourceType.const_string.
1642 * tests/parser/foo-object.h: Add a couple of constants.
1644 * giscanner/gidlwriter.py:
1645 * giscanner/gobjecttreebuilder.py:
1646 * giscanner/treebuilder.py:
1647 Add basic support for interfaces
1649 * tools/g-ir-scanner:
1650 Add -o/--output for writing to a file
1652 2008-04-21 Havoc Pennington <hp@redhat.com>
1654 * TODO: add some C API wishlist items I could think of quickly
1656 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1658 * giscanner/gidlwriter.py:
1659 * giscanner/xmlwriter.py:
1660 Add a simple api for writing tags which can be used
1661 with the new 'with statement' in python 2.5
1663 2008-04-21 Johan Dahlin <johan@gnome.org>
1665 * giscanner/gobjecttreebuilder.py:
1666 Strip namespace and object prefix from method names.
1668 2008-04-21 Johan Dahlin <johan@gnome.org>
1670 * tools/g-ir-scanner (main): Add --pkg option to pass in
1671 pkg-config modules to get cflags from.
1673 * giscanner/gidlwriter.py (GIDLWriter._write_method):
1674 Avoid duplication, reuse function writer for methods.
1676 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1678 * giscanner/gidlwriter.py:
1679 * giscanner/gobjecttreebuilder.py:
1680 * giscanner/treebuilder.py:
1681 * tools/g-ir-scanner:
1682 Resolve libtool .la files.
1683 Strip name spaces for methods.
1684 Add function symbols
1686 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
1688 * giscanner/cgobject.py:
1689 * giscanner/gidlwriter.py:
1690 * giscanner/gobjecttreebuilder.py:
1691 * giscanner/treebuilder.py:
1692 Add support for classes and methods
1694 2008-04-20 Johan Dahlin <johan@gnome.org>
1696 * giscanner/gidlwriter.py:
1697 * giscanner/gobjecttreebuilder.py:
1698 * giscanner/odict.py:
1699 Avoid conflicts, keep the output ordered similar to
1700 the order of the input.
1701 Add a simple ordered dictionary implemenation
1703 2008-04-19 Johan Dahlin <johan@gnome.org>
1705 * giscanner/cgobject.py:
1706 * giscanner/gidlwriter.py:
1707 * giscanner/gobjecttreebuilder.py:
1708 * tools/g-ir-scanner:
1709 Start introspecting get-type functions.
1710 Implement support for GLib/GFlags GTypes.
1711 Add a ctype based GObject binding.
1713 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
1715 * giscanner/gidlwriter.py:
1716 * giscanner/xmlwriter.py:
1717 * tools/g-ir-scanner:
1718 Add a simplistic gidl writer, which can't do too much.
1720 2008-04-18 Johan Dahlin <johan@gnome.org>
1722 * giscanner/sourcescanner.py:
1723 * giscanner/treebuilder.py:
1724 * tools/g-ir-scanner:
1725 split tree building and source scanning interface to separate files.
1727 2008-04-18 Johan Dahlin <johan@gnome.org>
1729 * tools/g-ir-scanner (Parameter.__init__): Start constructing
1731 - Add support for struct/parameter/return, start parsing of ctypes
1733 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
1736 2008-03-31 Johan Dahlin <johan@gnome.org>
1738 * tools/g-ir-scanner:
1739 Start to build abstract syntax node of scanned sources.
1740 Add support for cpp options.
1742 2008-03-27 Johan Dahlin <johan@gnome.org>
1744 * giscanner/giscannermodule.c:
1745 * giscanner/scannerlexer.l:
1746 * giscanner/sourcescanner.c:
1747 * tools/g-ir-scanner:
1749 Add simple pre-processor using subprocess and a PIPE.
1750 Change the parse_file apis to accept a file descriptor.
1752 2008-03-25 Johan Dahlin <johan@gnome.org>
1754 * giscanner/__init__.py:
1755 * tools/g-ir-scanner:
1756 Fix a typo and add an example python test program.
1758 2008-03-25 Johan Dahlin <johan@gnome.org>
1760 * giscanner/__init__.py:
1761 * giscanner/giscannermodule.c:
1762 * giscanner/sourcescanner.c:
1763 * giscanner/sourcescanner.h:
1764 Add constants and wrap a few more SymbolType fields
1766 2008-03-25 Johan Dahlin <johan@gnome.org>
1770 * giscanner/__init__.py:
1771 * giscanner/giscannermodule.c:
1772 * giscanner/Makefile.am:
1774 Add initial python bindings for the scanner and
1775 depend on python 2.5.
1777 2008-03-25 Johan Dahlin <johan@gnome.org>
1781 * giscanner/Makefile.am:
1782 * giscanner/sourcescanner.c:
1783 * giscanner/sourcescanner.h:
1784 * tools/Makefile.am:
1785 * tools/grealpath.h:
1786 * tools/sourcescanner.c:
1787 * tools/sourcescanner.h:
1789 Move the scanner to a separate library.
1791 2008-03-23 Johan Dahlin <johan@gnome.org>
1793 * tools/Makefile.am:
1796 * tools/scannerlexer.l:
1797 * tools/scannerparser.y:
1798 * tools/sourcescanner.c:
1799 * tools/sourcescanner.h:
1800 Split out the source scanner from the generator.
1801 Rename the symbols used in the scanner to use the gi_ prefix.
1802 This should make it possible to use the raw C parser from
1805 2008-03-23 Johan Dahlin <johan@gnome.org>
1807 * tests/parser/Makefile.am (utility.gidl):
1808 * tests/parser/utility-expected.gidl:
1809 Pass in the gobject.gidl since we're defining a GObject.
1811 2008-03-12 Johan Dahlin <johan@gnome.org>
1813 * relaxng/relaxng.rng:
1814 Add a releaxng in relaxng we can use to validate the relaxngs
1817 2008-03-12 Jürg Billeter <j@bitron.ch>
1819 * tools/scanner.c: (g_igenerator_new):
1820 * tools/scannerparser.y:
1821 Fix compiler warnings.
1823 2008-03-12 Jürg Billeter <j@bitron.ch>
1827 * tools/scannerparser.y:
1828 Start fixing memory management in g-idl-scanner.
1830 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
1832 * tools/gidlcompilercontext.c: (write_compiled):
1833 Fix critical warning when no shlib passed to g-idl-compiler.
1835 2008-03-12 Johan Dahlin <johan@gnome.org>
1837 * tests/parser/utility-expected.gidl:
1838 * tests/parser/utility.h:
1839 Add a get_type-function, so the scanner actually
1840 parses it as an object.
1842 2008-03-12 Johan Dahlin <johan@gnome.org>
1844 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
1847 * tests/parser/Foo-expected.gidl:
1848 * tests/parser/Makefile.am:
1849 * tests/parser/foo-object.h:
1850 * tests/parser/foo.c:
1851 * tests/parser/utility-expected.gidl:
1852 * tests/parser/utility.c:
1853 * tests/parser/utility.h:
1855 Add a new gidl test. 'utility.gidl', which is used to be able
1856 to test external type references. Add a reference to UtilityObject*
1859 2008-03-11 Johan Dahlin <johan@gnome.org>
1863 Remove most global variables
1865 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
1867 * tools/scannerlexer.l:
1869 * tests/parser/Foo-expected.gidl:
1870 * tests/parser/foo.c:
1871 * tests/parser/Makefile.am:
1872 * tests/parser/foo-object.h:
1874 Added a few extra tests. Which resulted in finding a few
1875 bugs. Which resulted in me fixing those bugs
1877 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1879 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
1880 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
1881 Add some comments for strings into generated output for
1884 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1886 * tools/gidlcompilercontext.c: (write_compiled):
1887 Write out the shlibs variable before writing out the strings
1888 length. Fixes compiler warning when using '-l' flag with
1891 2008-03-11 Johan Dahlin <johan@gnome.org>
1893 * tests/parser/Foo-expected.gidl:
1894 * tests/parser/foo-object.h:
1897 * tools/scannerlexer.l:
1898 Add support for parsing return arguments. Add support for
1899 caller-owns return types.
1900 Patch by Philip Van Hoof.
1902 * tools/scannerparser.y:
1903 Remove parsing of the @deprecated syntax used in headers.
1904 We will support gtk-doc deprecation in the future instead.
1906 2008-03-11 Johan Dahlin <johan@gnome.org>
1908 * tools/compiler.c (main): Coding style fixes
1910 2008-03-10 Johan Dahlin <johan@gnome.org>
1913 Add GCOV_LIBS to GILIBS
1915 2008-03-10 Johan Dahlin <johan@gnome.org>
1917 * tests/parser/Foo-expected.gidl:
1918 * tests/parser/foo.c:
1919 Rename null-ok to direction=out
1921 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
1923 reviewed and extensively tested by Johan
1925 * tests/parser/Foo-expected.gidl:
1926 * tests/parser/foo-object.h:
1927 * tests/parser/foo.c:
1930 * tools/gidlwriter.c:
1933 * tools/scannerlexer.l:
1934 * tools/scannerparser.y:
1936 Add support for scanning for gtk-doc comments inside
1937 C source files. Add tests
1939 2008-03-10 Johan Dahlin <johan@gnome.org>
1941 * tests/parser/Makefile.am:
1942 * tests/parser/foo.c:
1945 * tools/scannerparser.y:
1946 Add an api to lex filenames.
1947 Lex all source .c files passed in on the command line.
1948 Scan sources in a test and a couple of private structures
1949 which should not be included in the generated gidl
1951 2008-03-10 Johan Dahlin <johan@gnome.org>
1953 * tests/invoke/Makefile.am: Make the generated metadata
1954 depend on the g-idl-compiler
1956 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1958 * tools/gidlmodule.c
1959 * tools/gidlmodule.h
1962 Remove the old g-idl-compiler code.
1965 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
1967 * tools/quote-file.sh
1970 Move to using the 'C' struct compiler code.
1972 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1974 * girepository/ginfo.c
1976 Change the way that external references with no namespace
1977 are dealt with. External references with no namespace
1978 are placed into the XML as-if they are a local reference.
1979 This is temporary, but helps with roundtrip tests.
1981 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1983 * girepository/ginfo.c
1984 Add the ability to get the value of a constant of
1985 type TYPE_TAG_SYMBOL. In the case of a symbol the value
1986 is provided as a string.
1988 This would deal properly with:
1989 typedef char* random;
1990 const random = "A string";
1992 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1994 * girepository/ginfo.c
1995 * girepository/girepository.h
1997 Add a function to check if an enum is registered or not.
1998 Previously anything testing this relied on the g-type
1999 string offset having a value of 0.
2001 * girepository/gmetadata.c
2002 * girepository/gmetadata.h
2004 Remove unneccesary or erroneous checks. There were two
2005 metadata validation checks which made sure that the blob
2006 sizes were the same as some magic numbers compiled into the code.
2007 This is wrong as it breaks any forwards compatibility that may
2010 Checks were also present that made sure that unregistered type
2011 blobs had a value of 0 in the g-type offset field. This is
2012 unneccessary. If a type blob is unregistered then any value
2013 in its g-type field is simply invalid.
2015 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2017 * girepository/ginfo.c
2018 * girepository/gmetadata.c
2019 * girepository/gmetadata.h
2021 Change the metadata format to have a standard header
2022 for all the type blobs. Merge the SimpleTypeBlob
2023 and InterfaceTypeBlob into a union. A union of these
2024 two blobs existed previously but was not explicit
2025 in the metadata format.
2027 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2029 * tools/gidlcompilercontext.c
2030 * tools/gidlcompilercontext.h
2031 * tools/gidlcompilerentrynode.c
2032 * tools/gidlcompilerentrynode.h
2033 * tools/gidlcompilertypenode.c
2034 * tools/gidlcompilertypenode.h
2036 Add code to compile a tree of GIdlNodes to
2037 a 'C' struct representing the metadata.
2038 This is to aid cross-compiling. Previously
2039 the g-idl-compiler created a binary blob with
2040 data written in the byte order and alignment
2041 of the tool rather than the intended target.
2043 Cleaned up and improved by Johan and Robert :-)
2045 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2047 * girepository/ginvoke.c
2048 * girepository/girepository.h
2049 * girepository/gmetadata.c
2050 * girepository/gmetadata.h
2052 * tools/gidlparser.c
2053 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
2054 to avoid confusion with the interface blob.
2057 * tools/gidlparser.c
2058 Remove magic numbers and replace with type-tag
2059 enumeration symbols.
2061 * girepository/gmetadata.c
2062 Add validate declaration.
2064 2008-03-10 Jürg Billeter <j@bitron.ch>
2066 * tools/gidlparser.c: (parse_type_internal):
2067 * tools/scannerlexer.l:
2068 * tools/scannerparser.y:
2069 Support C99 _Bool type in scanner.
2071 2008-03-10 Jürg Billeter <j@bitron.ch>
2073 * tests/parser/Foo-expected.gidl:
2074 * tests/parser/foo-object.h:
2075 * tests/parser/foo.c: (foo_enum_method):
2076 * tools/scanner.c: (g_igenerator_process_function_symbol):
2077 Don't skip functions that are defined in the namespace of a type
2078 that doesn't support methods, as for example enums.
2080 2008-03-10 Johan Dahlin <johan@gnome.org>
2082 * gidl.dtd: Remove, we're using relaxng for now
2084 * tests/parser/Foo-expected.gidl:
2085 * tests/parser/foo-object.h:
2086 * tests/parser/foo.c:
2087 Rename the enum/flags get_type functions to include the whole type.
2089 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
2091 * tools/gidlwriter.c (enum_generate): added "type-name",
2092 "get-type" and "deprecated" missing arguments.
2093 * tests/parser/Foo-expected.gidl:
2094 * tests/parser/foo-object.h: test enum type, and no type.
2096 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
2099 Consistent checks, add missing 'test'
2101 2008-03-05 Havoc Pennington <hp@redhat.com>
2103 * configure.ac: Take advantage of a libffi.pc if one exists, as it
2104 does on Fedora 8. Make libffi a hard requirement, since it was in
2105 practice anyway (was not really conditional in the code or
2106 makefile, only in configure).
2108 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
2110 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
2111 reviewed by: Johan Dahlin <johan@gnome.org>
2113 * tests/Makefile.am:
2114 * tests/roundtrips.sh:
2115 Modify the roundtrips test so that they do not use the
2116 --raw option of the gidl compiler but instead compile a
2117 shared library to use with g_module.
2119 * tests/invoke/Makefile.am:
2120 * tests/invoke/invoke.c:
2121 Modify the invoke tests to build a shared library rather
2122 than use the --raw option.
2124 * tests/invoke/invoke-namespace-find.sh: Removed:
2125 Noone knows why this was here, so removed.
2127 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
2129 * tools/scanner.c: (g_igenerator_process_function_symbol):
2130 Move g_idl_node_can_have_member test later, as it broke spotting
2131 get_type's for nodes that can't have members.
2133 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2136 * tools/gidlnode.c: (g_idl_node_can_have_member):
2137 Add g_idl_node_can_have_member.
2139 * tools/scanner.c: (g_igenerator_process_function_symbol):
2140 Use g_idl_node_can_have_member to test if we should add a function
2141 as a member of the type node.
2143 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2145 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
2147 * tests/parser/Makefile.am:
2148 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
2150 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2152 * tools/scanner.c: (main):
2153 Ignore -pthread when passed to g-idl-scanner.
2155 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2157 * tools/grealpath.h: Added:
2158 * tools/scanner.c: (main):
2159 * tools/scannerlexer.l:
2160 * tools/Makefile.am:
2161 Always use absolute paths with symbolic links resolved when
2162 comparing filenames.
2164 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2166 * gobject-introspection.pc.in:
2167 Provide variables for g-idl-parser, scanner and compiler in the
2170 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
2173 * girepository/Makefile.am:
2174 * tools/Makefile.am:
2175 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
2177 2008-02-10 Johan Dahlin <johan@gnome.org>
2179 * tests/parser/Foo-expected.gidl:
2180 * tests/parser/foo-object.h:
2181 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
2182 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
2185 2008-02-10 Johan Dahlin <johan@gnome.org>
2187 * tests/parser/Foo-expected.gidl:
2188 * tests/parser/foo-object.h:
2189 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
2190 Add enum and flags test.
2192 2008-02-10 Johan Dahlin <johan@gnome.org>
2196 * girepository/Makefile.am:
2197 Make 'make distcheck' work again.
2199 2008-02-10 Johan Dahlin <johan@gnome.org>
2201 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
2204 * tests/parser/Makefile.am: Only create Foo.gidl when running make
2205 check, eg exclude it from BUILT_SOURCES.
2207 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2212 * girepository/Makefile.am:
2213 * m4/Makefile.am: Added:
2214 * m4/as-compiler-flag.m4: Added:
2215 * m4/gcov.m4: Added:
2216 * tools/Makefile.am:
2217 Add ability to generate a coverage report.
2218 Adds configure option --enable-gcov and make rule 'check-coverage'.
2220 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2224 * gidl/Makefile.am: Added:
2225 * girepository/Makefile.am: Added:
2226 * src/Makefile.am: Renamed to tools/Makefile.am:
2227 * src/compiler.c: Renamed to tools/compiler.c:
2228 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
2229 * src/generate.c: Renamed to tools/generate.c:
2230 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
2231 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
2232 * src/gidlnode.c: Renamed to tools/gidlnode.c:
2233 * src/gidlnode.h: Renamed to tools/gidlnode.h:
2234 * src/gidlparser.c: Renamed to tools/gidlparser.c:
2235 * src/gidlparser.h: Renamed to tools/gidlparser.h:
2236 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
2237 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
2238 * src/ginfo.c: Renamed to girepository/ginfo.c:
2239 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
2240 * src/girepository.c: Renamed to girepository/girepository.c:
2241 * src/girepository.h: Renamed to girepository/girepository.h:
2242 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
2243 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
2244 * src/scanner.c: Renamed to tools/scanner.c:
2245 * src/scanner.h: Renamed to tools/scanner.h:
2246 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
2247 * src/scannerparser.y: Renamed to tools/scannerparser.y:
2248 * tests/invoke/Makefile.am:
2249 Split src/ into girepository/ and tools/
2253 * girepository/Makefile.am:
2254 * tests/Makefile.am:
2255 * tests/invoke/Makefile.am:
2256 * tests/parser/Makefile.am:
2257 * tests/roundtrips.sh:
2258 * tools/Makefile.am:
2259 Make distcheck work.
2261 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
2263 * tests/invoke/invoke.c: (main):
2264 * tests/invoke/testfns.c: (test6), (test7):
2265 * tests/invoke/testfns.xml:
2266 Add tests for invokation with a GList argument.
2267 Also tests caller-owns return values.
2269 2008-02-04 Rob Taylor <robtaylor@floopily.org>
2272 Add some documentation for GICallableInfo
2274 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
2277 Correct syntax errors in the DTD file.
2279 * relaxng/c-types.xml:
2280 * relaxng/g-types.xml:
2282 Add a RelaxNG specification for the GObject Introspection XML data.
2283 The Specification has validated all of the test files.
2285 2008-01-25 Rob Taylor <robtaylor@floopily.org>
2287 * tests/roundtrips.sh:
2288 * tests/struct.test:
2289 Add roundtrip tests for structs.
2291 2008-01-11 Johan Dahlin <johan@gnome.org>
2293 * src/scanner.c (g_igenerator_process_function_symbol):
2294 Refactor out g_idle_node_add_member.
2295 (create_node_from_gtype, create_node_from_ctype):
2296 Use case instead of if...else
2297 (get_type_from_type_id):
2298 Rename to create_node_from_gtype
2299 (get_type_from_ctype):
2300 Rename to create_node_from_ctype
2302 Rename ginode -> node, gitype -> type, gifunc -> func.
2304 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
2305 Two new functions, refactor out of scanner.c
2307 * src/scanner.c: (g_igenerator_process_function_symbol):
2308 * src/scannerlexer.l:
2309 Do not save the content of the deprecated variable, only
2312 2008-01-11 Johan Dahlin <johan@gnome.org>
2314 * tests/parser/foo-object.h: Add a couple of comment parser tests.
2316 2008-01-11 Jürg Billeter <j@bitron.ch>
2318 * src/scannerlexer.l:
2319 Fix GTK-Doc parsing.
2321 2008-01-11 Jürg Billeter <j@bitron.ch>
2323 * src/scannerlexer.l:
2324 Fix GTK-Doc parsing.
2326 2008-01-11 Jürg Billeter <j@bitron.ch>
2328 * src/scanner.c: (lookup_symbol):
2329 Return unresolved name if we find unknown symbol.
2331 2008-01-11 Jürg Billeter <j@bitron.ch>
2333 * src/scanner.c: (g_igenerator_generate):
2334 Initialize GObject to fix scanning interface properties.
2336 * tests/parser/Foo-expected.gidl:
2337 * tests/parser/foo-object.h:
2338 * tests/parser/foo.c: (foo_interface_get_type):
2339 Test interfaces with GObject prerequisite.
2341 * tests/parser/Makefile.am:
2342 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
2344 2007-12-27 Johan Dahlin <johan@gnome.org>
2346 * src/scannerlexer.l:
2347 Parse gtk-doc comments.
2349 * src/gidlwriter.c: (function_generate):
2350 Reorganize, avoid duplication and add support for
2351 writing deprecated functions.
2353 * src/scannerparser.y:
2355 Add new structure CDirective and functions to create/free them.
2357 * src/scanner.c: (g_igenerator_process_function_symbol),
2358 (g_igenerator_process_unregistered_struct_typedef),
2359 (g_igenerator_process_struct_typedef),
2360 (g_igenerator_process_union_typedef),
2361 (g_igenerator_process_enum_typedef),
2362 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
2363 (g_igenerator_start_preprocessor):
2364 Parse @deprecated directive for functions.
2365 Remove some more C99isms.
2366 Send in -C to cpp to avoid stripping comments.
2368 * tests/parser/foo-object.h:
2369 * tests/parser/Foo-expected.gidl:
2370 Add deprecated directive
2372 2007-12-27 Johan Dahlin <johan@gnome.org>
2374 * src/scannerlexer.l (intsuffix): Add emacs mode line and
2375 escape ' and " so it looks more like C.
2378 Unlink temporary file used.
2380 2007-12-27 Johan Dahlin <johan@gnome.org>
2382 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
2383 (g_igenerator_start_preprocessor), (main):
2385 * src/scannerparser.y:
2386 Plug a couple of simple memory leaks.
2388 2007-12-27 Johan Dahlin <johan@gnome.org>
2390 * src/scanner.c: (g_igenerator_parse_macros),
2391 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
2394 * src/scannerparser.y:
2395 * tests/parser/Makefile.am:
2397 Improve error reporting, return when the preprocessor fails.
2398 Add a verbose parameter, to aid debugging.
2399 Revert to using a temporary file to communicate between the
2400 preprocessor and the parser, because we need to wait for
2401 the exit code from the pre-processor before starting to parse.
2403 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
2405 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
2406 cparser.y to scannerparser.y
2408 2007-12-11 Johan Dahlin <johan@gnome.org>
2412 * src/scanner.c: (g_igenerator_new):
2414 Get rid of the global the_generator variable.
2416 2007-12-10 Johan Dahlin <johan@gnome.org>
2418 * src/scanner.c (main): Add an output option,
2419 add checks for required parameters
2422 set BUILD_SOURCES and CLEANFILES properly
2424 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
2425 (g_writer_write_indent), (g_writer_write_unindent),
2426 (field_generate), (value_generate), (constant_generate),
2427 (property_generate), (function_generate), (vfunc_generate),
2428 (signal_generate), (interface_generate), (struct_generate),
2429 (union_generate), (boxed_generate), (enum_generate),
2430 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
2432 * src/scanner.c: (g_igenerator_generate):
2434 * src/scannerwriter.c:
2436 Refactor scannerwriter to only be tied to a GIdlModule and move
2437 it (again!) to gidlwriter.c. Change the writer function to take
2440 2007-12-10 Johan Dahlin <johan@gnome.org>
2443 * src/scanner.c: (g_igenerator_generate):
2445 * src/scannerwriter.c: (g_igenerator_write_inline),
2446 (g_igenerator_write), (g_igenerator_write_indent),
2447 (g_igenerator_write_unindent), (field_generate), (value_generate),
2448 (constant_generate), (property_generate), (function_generate),
2449 (vfunc_generate), (signal_generate), (interface_generate),
2450 (struct_generate), (union_generate), (boxed_generate),
2451 (enum_generate), (node_generate), (module_generate),
2452 (g_scanner_write_file):
2454 Move the scanner gidl writing to a separate source file.
2456 2007-12-10 Johan Dahlin <johan@gnome.org>
2461 Move over all CType construction functions.
2463 * tests/parser/Makefile.am:
2464 Be verbose when printing parsing tests results.
2466 2007-12-10 Johan Dahlin <johan@gnome.org>
2468 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
2469 preprocessor handling to here. Start cpp insteado of cc -E,
2470 always include -U__GNUC__, since it's specific to the preprocessor
2473 * tests/parser/Makefile.am (check-local): Silent diff and skip
2474 -U__GNUC__ which is always defined now
2476 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
2478 reviewed by: <delete if not using a buddy>
2480 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
2481 * tests/parser/Makefile.am:
2483 2007-12-09 Johan Dahlin <johan@gnome.org>
2486 Use GOption for command line options.
2487 (g_igenerator_new, main): Simplify constructor and they way
2488 parameters are passed into it.
2494 * src/gen-introspect.c:
2495 * src/gen-introspect.h:
2497 Rename gen-introspect.[ch] to scanner.[ch]
2499 2007-12-09 Johan Dahlin <johan@gnome.org>
2503 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
2504 don't make the repository library and the other utilites link against
2507 * src/gen-introspect.c: (g_igenerator_create_object),
2508 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2509 (g_igenerator_create_enum), (g_igenerator_create_flags),
2510 (g_igenerator_process_module_symbol),
2511 (g_igenerator_process_module), (g_igenerator_generate), (main):
2512 * src/gen-introspect.h:
2513 Refactor g_igenerator_process_types into smaller pieces.
2515 * tests/parser/Makefile.am:
2516 Depend on the gen-introspect binary
2518 2007-12-09 Johan Dahlin <johan@gnome.org>
2520 * src/gen-introspect.c (g_igenerator_process_types):
2521 Break into smaller pieces, one for each generated node type.
2523 2007-12-08 Johan Dahlin <johan@gnome.org>
2525 * src/gen-introspect.c: (g_igenerator_process_types),
2526 (g_igenerator_add_module):
2527 * tests/parser/Foo-expected.gidl:
2528 * tests/parser/foo-object.h:
2529 * tests/parser/foo.c: (foo_subobject_class_init),
2530 (foo_subobject_init):
2532 Add a subobject test and make sure to register defined classes
2533 in the lookup symbol hash table.
2535 2007-12-08 Johan Dahlin <johan@gnome.org>
2539 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
2540 (g_igenerator_process_types), (g_igenerator_add_module),
2541 (g_igenerator_add_include_idl), (main):
2542 * src/gen-introspect.h:
2543 * tests/parser/Makefile.am:
2544 * tests/parser/Foo-expected.gidl:
2546 Change the gen-introspect to generate namespaced module names,
2547 such as GLib.Object instead of GObject.
2548 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
2549 add a --include-idl parameter to gen-introspect,
2550 and update the parser test.
2552 2007-12-08 Johan Dahlin <johan@gnome.org>
2554 * src/gen-introspect.c:
2555 Move main to the end of the file and attempt to make it valid
2558 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
2559 we're not quite ready to generate metadata yet.
2564 Add a simple gen-introspect parser test
2566 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
2568 reviewed by: Johan Dahlin <johan@gnome.org>
2571 * gobject-introspection.pc.in:
2573 * src/compiler.c: (format_output), (write_out_metadata), (main):
2574 * src/gen-introspect.c: (main):
2575 * src/gen-introspect.h:
2576 * src/generate.c: (write_callable_info), (write_repository),
2577 (load_metadata), (main):
2578 * src/gidlmodule.c: (g_idl_module_new),
2579 (g_idl_module_build_metadata):
2581 * src/gidlparser.c: (start_element_handler):
2582 * src/ginfo.c: (g_info_new), (g_info_from_entry),
2583 (g_base_info_get_name), (g_base_info_get_namespace),
2584 (g_base_info_is_deprecated), (g_base_info_get_annotation),
2585 (g_base_info_get_metadata), (g_function_info_get_symbol),
2586 (g_function_info_get_flags), (g_function_info_get_property),
2587 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
2588 (g_callable_info_may_return_null),
2589 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
2590 (g_callable_info_get_arg), (g_arg_info_get_direction),
2591 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
2592 (g_arg_info_is_optional), (g_arg_info_may_be_null),
2593 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
2594 (g_type_info_get_tag), (g_type_info_get_param_type),
2595 (g_type_info_get_interface), (g_type_info_get_array_length),
2596 (g_type_info_is_zero_terminated),
2597 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
2598 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
2599 (g_value_info_get_value), (g_field_info_get_flags),
2600 (g_field_info_get_size), (g_field_info_get_offset),
2601 (g_registered_type_info_get_type_name),
2602 (g_registered_type_info_get_type_init),
2603 (g_struct_info_get_n_fields), (g_struct_info_get_field),
2604 (g_struct_info_get_n_methods), (g_struct_info_get_method),
2605 (find_method), (g_struct_info_find_method),
2606 (g_enum_info_get_n_values), (g_enum_info_get_value),
2607 (g_object_info_get_parent), (g_object_info_get_type_name),
2608 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
2609 (g_object_info_get_interface), (g_object_info_get_n_fields),
2610 (g_object_info_get_field), (g_object_info_get_n_properties),
2611 (g_object_info_get_property), (g_object_info_get_n_methods),
2612 (g_object_info_get_method), (g_object_info_find_method),
2613 (g_object_info_get_n_signals), (g_object_info_get_signal),
2614 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
2615 (g_object_info_get_n_constants), (g_object_info_get_constant),
2616 (g_interface_info_get_n_prerequisites),
2617 (g_interface_info_get_prerequisite),
2618 (g_interface_info_get_n_properties),
2619 (g_interface_info_get_property), (g_interface_info_get_n_methods),
2620 (g_interface_info_get_method), (g_interface_info_find_method),
2621 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
2622 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
2623 (g_interface_info_get_n_constants),
2624 (g_interface_info_get_constant), (g_property_info_get_flags),
2625 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
2626 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
2627 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
2628 (g_constant_info_get_value), (g_union_info_get_n_fields),
2629 (g_union_info_get_field), (g_union_info_get_n_methods),
2630 (g_union_info_get_method), (g_union_info_is_discriminated),
2631 (g_union_info_get_discriminator_offset),
2632 (g_union_info_get_discriminator):
2633 * src/ginvoke.c: (g_function_info_invoke):
2634 * src/girepository.c: (g_irepository_register),
2635 (g_irepository_unregister), (g_irepository_get_default),
2636 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
2637 (g_irepository_get_info), (g_irepository_find_by_name),
2638 (g_irepository_get_shared_library),
2639 (g_irepository_build_search_path), (g_irepository_register_file),
2640 (g_irepository_error_quark):
2641 * src/girepository.h:
2642 * src/gmetadata.c: (g_metadata_get_dir_entry),
2643 (g_metadata_check_sanity), (validate_header),
2644 (validate_array_type_blob), (validate_iface_type_blob),
2645 (validate_param_type_blob), (validate_error_type_blob),
2646 (validate_type_blob), (validate_arg_blob),
2647 (validate_signature_blob), (validate_function_blob),
2648 (validate_callback_blob), (validate_constant_blob),
2649 (validate_value_blob), (validate_field_blob),
2650 (validate_property_blob), (validate_signal_blob),
2651 (validate_vfunc_blob), (validate_struct_blob),
2652 (validate_enum_blob), (validate_object_blob),
2653 (validate_interface_blob), (validate_errordomain_blob),
2654 (validate_union_blob), (validate_blob), (validate_directory),
2655 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
2656 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
2657 (g_metadata_new_from_mapped_file), (g_metadata_free),
2658 (g_metadata_set_module), (g_metadata_get_namespace):
2660 * tests/Makefile.am:
2661 * tests/invoke/Makefile.am:
2662 * tests/invoke/invoke-namespace-find.sh:
2663 * tests/invoke/invoke.c: (main):
2665 Add a namespace/shared library mapping. fixes #313268.
2667 2007-12-03 Johan Dahlin <johan@gnome.org>
2669 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
2672 2007-11-30 Jürg Billeter <j@bitron.ch>
2678 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
2679 (g_igenerator_write_inline), (g_igenerator_write),
2680 (g_igenerator_write_indent), (g_igenerator_write_unindent),
2681 (field_generate), (value_generate), (constant_generate),
2682 (property_generate), (function_generate), (vfunc_generate),
2683 (signal_generate), (interface_generate), (struct_generate),
2684 (union_generate), (boxed_generate), (enum_generate),
2685 (node_generate), (module_generate), (get_type_from_type_id),
2686 (str_replace), (g_igenerator_process_properties),
2687 (g_igenerator_process_signals), (g_igenerator_process_types),
2688 (get_type_from_ctype), (g_igenerator_process_function_symbol),
2689 (g_igenerator_process_unregistered_struct_typedef),
2690 (g_igenerator_process_struct_typedef),
2691 (g_igenerator_process_union_typedef),
2692 (g_igenerator_process_enum_typedef),
2693 (g_igenerator_process_function_typedef),
2694 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2695 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
2696 (g_igenerator_generate), (main), (csymbol_new),
2697 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
2698 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
2699 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
2700 (eat_hspace), (eat_line), (read_identifier),
2701 (g_igenerator_parse_macros):
2702 * src/gen-introspect.h:
2704 Import gen-introspect to generate introspection information by
2707 2007-11-30 Jürg Billeter <j@bitron.ch>
2709 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
2711 2007-11-30 Jürg Billeter <j@bitron.ch>
2713 * src/gidlparser.c: (end_element_handler): Don't leave requires
2716 2007-11-29 Johan Dahlin <johan@gnome.org>
2718 * src/gidlparser.c (parse_type_internal): Add char,
2719 gchar and guchar to the builtin types.
2721 2007-11-26 Johan Dahlin <johan@gnome.org>
2723 * src/ginfo.c: (g_object_info_get_type_name),
2724 (g_object_info_get_type_init):
2725 * src/girepository.c: (g_irepository_is_registered):
2726 * src/girepository.h:
2728 Add g_object_info_get_type_name, g_object_info_get_type_init and
2729 g_irepository_is_registered.
2731 2006-08-14 Jürg Billeter <j@bitron.ch>
2733 * src/gidlparser.c: (end_element_handler): Don't leave
2734 namespace and implements states too early.
2737 2007-11-26 Johan Dahlin <johan@gnome.org>
2739 * src/gmetadata.c (validate_struct_blob):
2740 pass blob_type to validate_function_blob instead of
2741 hard-coding BLOB_TYPE_STRUCT.
2743 Patch by Torsten Schoenfeld, fixes #314190
2745 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
2747 * src/compiler.c, src/generate.c, src/gidlnode.c,
2748 src/gidlparser.c, src/ginfo.c, src/girepository.c,
2749 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
2750 warnings about return values, signedness mismatches, unused
2751 variables, and unhandles enum values in switch statements.
2753 * tests/invoke/Makefile.am: Don't install the invoke test program.
2754 Add -I ../../src to the cflags used for the test functions files.
2756 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2758 * src/girepository.h: Export g_invoke_error_quark.
2760 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2762 * src/ginvoke.c: Remove the fallback implementation of
2763 g_function_info_invoke since we now formally depend on libffi.
2765 2005-07-25 Matthias Clasen <mclasen@redhat.com>
2767 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
2768 Remove these files from cvs, as they are now generated.
2770 * src/gmetadata.c (validate_iface_type_blob): Don't
2771 complain if blob->pointer is not set, since that
2772 happens for enum and flag types. (#308935, Gustavo
2775 * Commit an autoconf-conversion patch by
2776 Gustavo Carneiro (#308708)
2778 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2780 * src/compiler.c (main): Use it here to validate
2781 the generated metadata.
2783 * src/gmetadata.[hc]: Add code to validate a
2786 * metadata-format.txt: Updates
2788 2005-05-22 Matthias Clasen <mclasen@redhat.com>
2790 * tests/*: Add struct offsets to field and vfunc
2793 * src/generate.c (write_vfunc_info): Write offset
2794 information for vfuncs.
2796 * src/gidlnode.c (g_idl_node_build_metadata): Write
2797 the struct offsets into the metadata.
2799 * src/gidlparser.c: Parse the offset attributes of
2800 field and vfunc elements.
2802 * src/gidlnode.h: Add offset members to field and
2805 2005-05-21 Matthias Clasen <mclasen@redhat.com>
2809 * gidl.dtd: Updates.
2811 * src/g-idl-offsets.pl: A perl script which reads a .gidl
2812 file, creates, compiles and runs a C file, and folds the
2813 resulting struct offsets back into the .gidl file.
2815 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2817 * src/gidlparser.c (start_field): Make fields in objects
2820 * src/gidlmodule.c: Include string.h
2825 * metadata-format.txt: Cleanup basic types.
2826 * src/*: Adapt to the changes.
2827 * tests/*: Adapt to the changes.
2828 * examples/gdk-pixbuf.gidl: Adapt to the changes.
2830 * src/gidlnode.c (g_idl_node_get_size): Report the correct
2831 size for enum blobs.
2832 (g_idl_node_get_full_size): Report the correct size for
2835 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
2836 error checking for blob sizes.
2838 2005-05-19 Matthias Clasen <mclasen@redhat.com>
2840 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
2841 interface types for which is_pointer is FALSE, e.g. enums.
2843 * src/gidlnode.c (g_idl_node_get_full_size)
2844 * src/gidlparser.c (parse_type_internal):
2845 * src/generate.c (write_type_info): Support unspecialized
2846 lists, hashtables and errors. Also emit a '*' after these.
2850 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2854 * metadata-format.txt: Cleanups by Maciej Katafiasz.
2856 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2858 * src/*.c: Change the directory to be addressed by
2859 1-based indexes, and use an index of zero to mean
2862 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2864 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
2866 * tests/union.test: Add a union test.
2868 * src/generate.c: Handle unions.
2870 * src/girepository.h:
2871 * src/ginfo.c: Add GIUnionInfo and functions to access it.
2873 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
2875 * src/gidlparser.c (start_union): Parse <union> elements.
2877 * src/gidlnode.h: Add a GIdlNodeUnion.
2879 * gidl.dtd: Add a <union> element.
2881 * src/gmetadata.c (g_metadata_check_sanity): Check
2884 * src/gmetadata.h: Add union_blob_size to Header,
2887 * metadata-format.txt: Add a UnionBlob.
2889 2005-05-13 Matthias Clasen <mclasen@redhat.com>
2891 * tests/*: Update testcases.
2893 * src/generate.c (write_callable_info): Don't forget to
2894 write transfer and null-ok attributes for return types
2897 * src/girepository.h:
2898 * src/ginfo.c (g_callable_info_may_return_null):
2899 New function to find out if a function may return NULL.
2901 * src/compiler.c (format_output): Make the generated
2904 * README: Point to a recent libffi snapshot.
2906 * tests/invoke/*: Some invoke tests.
2908 * src/Makefile: Add ginvoke.c and the necessary
2911 * src/girepository.h (g_function_info_invoke): Add
2914 * src/ginvoke.c (g_function_info_invoke): Initial
2915 implementation of invoke functionality based on libffi.
2917 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
2918 strings and types hash tables in the right order when
2920 (find_entry_node): Free the name parts.
2922 2005-05-12 Johan Dahlin <johan@gnome.org>
2924 * src/generate.c: Generate consistent end tags.
2928 2005-05-12 Matthias Clasen <mclasen@redhat.com>
2932 * src/gidlparser.c (start_function): Actually add
2933 methods to objects. (Steven Walter)
2935 * src/girepository.h:
2936 * src/ginfo.c: Rename Transfer and Direction to
2937 GITransfer and GIDirection. (Torsten Schoenfeld)
2939 * tests/*: Make tests work with the changes in name
2942 * src/gidlnode.c (find_entry_node): Parse qualified
2943 names and generate xref nodes for them if needed. Don't
2944 require all modules to be loaded any more.
2946 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
2949 * src/ginfo.c (g_object_info_get_parent): Return NULL
2950 if blob->parent is 0. Still need to make sure index
2953 * src/generate.c: Generate qualified names when
2954 referring to non-local types. Emit transfer attribute
2957 * src/compiler.c (format_output): Put the function
2958 attributes where gcc accepts them.
2960 2005-05-11 Matthias Clasen <mclasen@redhat.com>
2962 * src/compiler.c (main): Add a --verbose cmdline option
2963 and only log messages if it is specified.
2966 * src/gidlnode.c (init_stats, dump_stats): Collect some
2967 statistics on string and type sharing.
2969 * src/gidlmodule.c (g_idl_module_build_metadata): Use
2970 g_message() instead of fprintf().
2972 * src/gidlnode.c (g_idl_node_free): Make this more robust.
2973 (g_idl_node_get_size): Implement for structs.
2974 (g_idl_node_get_full_size): Handle parent being NULL.
2975 (serialize_type): Handle lookup failures more gracefully.
2977 2005-05-10 Matthias Clasen <mclasen@redhat.com>
2979 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
2980 size calculation for 2-parameter types and for objects.
2982 * src/compiler.c: Add a cmdline option for debug output
2983 and install a log handler to implement it.
2984 * src/gidlnode.c: Add some debug spew.
2988 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
2989 forget to count the module name when calculating the
2990 required size for the metadata.
2993 * src/gidlparser.c: Fix compiler warnings.
2995 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2997 * src/compiler.c (main): Free the option context.
2999 * gidl.dtd: Clean up handling of names. All elements
3000 have a "name", only the elements corresponding to
3001 actual callable functions (function, method, constructor),
3002 have an additional "symbol" attribute holding the
3003 dlsym()-able function name.
3005 * src/generate.c: Adapt to generate xml matching the
3009 * src/gidlnode.c: Adapt to parse the new dtd.
3011 * tests/*.test: Adjust to the new dtd.
3013 * metadata-format.txt:
3014 * src/gmetadata.h: Remove the short_name field
3016 * src/gmetadata.c: Shrink size of ValueBlob to 12.
3017 * src/girepository.h:
3018 * src/ginfo.c (g_value_info_get_short_name): Removed
3020 2005-05-09 Matthias Clasen <mclasen@redhat.com>
3022 * gidl.dtd: Allow constructors for boxed types,
3023 patch by Jonathan Blandford.
3026 2005-05-09 Matthias Clasen <mclasen@redhat.com>
3028 * --- Initial import ---