1 2008-08-21 Colin Walters <walters@verbum.org>
3 * girepository/girnode.c (write_string): Tweak to
4 use UINT instead of INT. Not likely to matter.
5 * girepository/girmodule.c (g_ir_module_build_typelib):
6 Add to header_offset as well for header strings
7 to match what write_string does.
8 * girepository/gtypelib.c: Replace is_name with
9 validate_name, which more strongly validates and
10 handles errors in a better way. Update all callers.
11 * giscanner/glibtransformer.py: Handle constructors
14 2008-08-21 Johan Dahlin <johan@gnome.org>
16 * gir/Makefile.am (typelibs_DATA): Build and
17 install the Gio.typelib too
19 * girepository/gtypelib.c (_g_typelib_init):
20 Use g_module_build_path to resolve the shlib name
22 2008-08-21 Colin Walters <walters@verbum.org>
24 * gir/Makefile.am: CLEANFILES typelibs too.
26 2008-08-21 Johan Dahlin <johan@gnome.org>
28 * giscanner/glibtransformer.py:
29 Do not send .la files through find_library.
31 2008-08-21 Colin Walters <walters@verbum.org>
33 * girepository/girparser.c (g_irepository_require):
34 Fix one small leak in error case.
36 2008-08-21 Johan Dahlin <johan@gnome.org>
39 Parse glibconfig.h as well and install the compiled
42 2008-08-21 Johan Dahlin <johan@gnome.org>
45 * giscanner/glibtransformer.py:
47 Do not hard-core library names in the Makefile, reuse
48 ctypes find_library instead.
50 2008-08-21 Johan Dahlin <johan@gnome.org>
52 * girepository/girparser.c (resolve_aliases):
53 Remove compilation warnings
55 2008-08-21 Johan Dahlin <johan@gnome.org>
57 * girepository/girepository.c (g_irepository_require):
58 Rewrap and fix double free bug by leaking a bit.
60 2008-08-20 Colin Walters <walters@verbum.org>
62 * girepository/girepository.c: Add new function
63 g_irepository_get_typelib_path which tells
64 us from where we loaded a namespace.
66 2008-08-20 Colin Walters <walters@verbum.org>
68 * tests/scanner/*-expected.gir: Adjust for
70 * giscanner/giwriter.py: Make pylint happy.
72 2008-08-20 Colin Walters <walters@verbum.org>
74 * girepository/girmodule.c (g_ir_module_build_typelib):
75 Calculate size correctly, avoid use-after-free.
77 2008-08-20 Colin Walters <walters@verbum.org>
79 * girepository/girepository.c: Remove
80 g_irepository_register_file in favor of
81 g_irepository_require. There are two
82 possible deployment scenarios for typelibs:
83 First, separate in $DATADIR/gitypelibs/. Second,
84 they may be embedded in shlibs. However since
85 the first is now the normal case, the API is
88 Refactor internals to look up typelibs for
89 namespaces just-in-time, but we expect
90 consumers to call g_irepository_require.
92 Also, add some docs. No one has died from that
94 * gir/Makefile.am: Need --library for glib.
95 * giscanner/girwriter.py: Write out shared-library.
96 * tools/g-ir-writer: Take the first --library
97 argument as the target of shared-library. In
98 the future we should make this nicer with pkg-config
101 2008-08-20 Colin Walters <walters@verbum.org>
103 * girepository/girparser.py: And parse them.
105 2008-08-20 Johan Dahlin <johan@gnome.org>
107 * giscanner/glibast.py: Add gshort/gushort types
109 2008-08-20 Colin Walters <walters@verbum.org>
111 * gir/Makefile.am: Rename .gir files using GI namespace.
112 * girepository/girepository.c: Use XDG_DATA_DIRS for
113 looking up typelibs. Also typelibs are now suffixed
115 * tests/invoke/Makefile.am: Only use metadata.
116 * girepository/Makefile.am: Remove unnecessary include.
117 * tests/scanner/Makefile.am: Update using GI namespaces
118 for scanner includes.
120 2008-08-20 Colin Walters <walters@verbum.org>
122 * girepository/transformer.py: Suppress aliases whose
124 * girepository/ast.py: Define some more aliases.
126 2008-08-20 Colin Walters <walters@verbum.org>
128 * girepository/girparser.c: Avoid alias infloops.
130 2008-08-20 Colin Walters <walters@verbum.org>
132 * tests/scanner/foo-expected.gir: Fix expected list type.
134 2008-08-20 Johan Dahlin <johan@gnome.org>
136 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
137 Add a workaround for #548689.
138 We can now compile gtk!
140 2008-08-20 Colin Walters <walters@verbum.org>
142 * giscanner/glibtransformer.py: Try to look up
143 aliases using the c:type too.
145 2008-08-20 Colin Walters <walters@verbum.org>
147 * girepository/girparser.c: Parse union fields.
149 2008-08-20 Johan Dahlin <johan@gnome.org>
151 * giscanner/ast.py: Make time_t an alias for long
153 * gir/gio-2.0-good.gir:
154 * gir/glib-2.0-good.gir:
155 * gir/gobject-2.0-good.gir:
157 * giscanner/glibtransformer.py:
158 Do not delete Class structures, we need them in gdk/gtk.
159 * tests/scanner/drawable-expected.gir:
160 * tests/scanner/foo-expected.gir:
161 * tests/scanner/utility-expected.gir:
164 2008-08-20 Johan Dahlin <johan@gnome.org>
166 * tests/scanner/Makefile.am:
167 * tests/scanner/annotation-expected.gir:
168 * tests/scanner/annotation.c (annotation_object_class_init),
169 (annotation_object_init), (annotation_object_method),
170 (annotation_object_in), (annotation_object_out),
171 (annotation_object_inout), (annotation_object_inout2),
172 (annotation_object_inout3), (annotation_object_calleeowns),
173 (annotation_object_calleesowns), (annotation_object_get_strings),
174 (annotation_object_with_voidp), (annotation_object_get_objects),
175 (annotation_object_create_object), (annotation_object_allow_none):
176 * tests/scanner/annotation.h:
177 * tests/scanner/foo-expected.gir:
178 * tests/scanner/foo.c:
179 * tests/scanner/foo.h:
180 Split out annotation tests out of foo
182 2008-08-20 Johan Dahlin <johan@gnome.org>
184 * tests/scanner/Foo-expected.gir:
185 * tests/scanner/Makefile.am:
186 * tests/scanner/foo-expected.gir:
187 * tests/scanner/foo-object.h:
188 * tests/scanner/foo.c:
189 Foo->foo, foo-object.h -> foo.h
191 2008-08-20 Johan Dahlin <johan@gnome.org>
193 * tests/scanner/Foo-expected.gir:
194 * tests/scanner/Makefile.am:
195 * tests/scanner/drawable-expected.gir:
196 * tests/scanner/drawable.c (test_drawable_class_init),
197 (test_drawable_init):
198 * tests/scanner/drawable.h:
199 * tests/scanner/foo-object.h:
200 * tests/scanner/foo.c (foo_boxed_method):
201 Move the drawable parts out of Foo to its own test.
203 2008-08-20 Johan Dahlin <johan@gnome.org>
205 * tests/scanner/Foo-expected.gir:
206 * tests/scanner/foo-object.h:
207 * tests/scanner/foo.c (foo_drawable_class_init),
209 Add a based on GdkDrawable which generates
212 2008-08-19 Colin Walters <walters@verbum.org>
214 * giscanner/transformer.py: Don't try
215 to strip prefix before namespace.
217 2008-08-19 Johan Dahlin <johan@gnome.org>
219 * giscanner/transformer.py:
220 * tests/scanner/Foo-expected.gir:
221 * tests/scanner/foo-object.h:
222 Add support for typedef void foo type of
225 2008-08-19 Johan Dahlin <johan@gnome.org>
228 * giscanner/girwriter.py:
229 * giscanner/glibtransformer.py:
230 * giscanner/transformer.py:
231 * tests/scanner/Foo-expected.gir:
232 Add basic support for union, base the code much
233 on Struct. Add a testcase.
235 2008-08-19 Johan Dahlin <johan@gnome.org>
237 * tests/scanner/Foo-expected.gir:
238 * tests/scanner/foo-object.h:
239 Add a union testcase which the compiler currently
242 2008-08-19 Johan Dahlin <johan@gnome.org>
244 * gobject-introspection-1.0.pc.in:
245 Add a g_ir_compiler variable
247 2008-08-19 Colin Walters <walters@verbum.org>
249 * giscanner/ast.py: Rework types to be more closely
251 * giscanner/girparser.py: Parse more bits.
252 * giscanner/girwriter.py: Write sequences in a new
253 way that specifies container type.
254 * giscanner/glibast.py: Adjust for ast.py changes,
255 add 'ctype' property to GLibObject and GLibInterface
256 so we can look things up by it later.
257 * gicanner/transformer.py: Names is new class holding
258 the various namespaces we manage. Do not confuse
259 with Namespace which is toplevel XML node effectively.
260 Rework all type resolution to go through
261 _resolve_type_name_1.
262 * giscanner/glibtransformer.py: Raise UnknownTypeError
263 instead of ValueError for cleanliness. Add Unresolved
264 class to mark types whose parent we haven't seen yet.
265 Use new Names object from transformer.py.
266 Correctly look up parent=.
267 Fix type validation to handle sequences.
268 * tests/scanner/Foo-expected.gir: Update for sequence
269 work, int instead of int32.
270 * tools/g-ir-scanner: Add --noclosure option
271 * gir/Makefile.am: Use --noclosure by default for
274 2008-08-18 Johan Dahlin <johan@gnome.org>
276 * gir/gio-2.0-good.gir:
277 * gir/glib-2.0-good.gir:
278 * gir/gobject-2.0-good.gir:
281 2008-08-18 Johan Dahlin <johan@gnome.org>
284 * giscanner/girparser.py:
285 * giscanner/girwriter.py:
286 * giscanner/glibast.py:
287 * giscanner/glibtransformer.py:
288 * giscanner/transformer.py:
289 * tests/scanner/Foo-expected.gir:
290 * tests/scanner/foo-object.h:
291 * tests/scanner/utility-expected.gir:
292 * tests/scanner/utility.h:
293 Redo type resolving and validation.
294 Add a couple of new tests.
295 Patch mostly written by Colin.
297 2008-08-18 Johan Dahlin <johan@gnome.org>
300 * giscanner/girparser.py:
302 * giscanner/transformer.py:
303 Improve enum parsing for enums without a GType.
304 Make flags/enum references to other girs work
305 * giscanner/utils.py:
307 * tests/scanner/Makefile.am:
308 * tests/scanner/foo-object.h:
309 * tests/scanner/utility-expected.gir:
310 * tests/scanner/utility.h:
311 Add a new test for external enum references
313 2008-08-18 Johan Dahlin <johan@gnome.org>
315 * docs/global-module-registry.txt: Update
317 * tests/array.gir: Update with new type proposal
319 * girepository/girepository.c (g_type_tag_to_string):
320 * girepository/girepository.h:
321 * girepository/girnode.c (g_ir_node_get_full_size_internal),
323 * girepository/girnode.h:
324 Make enum serializing functions public. Clean up some whitespace.
326 2008-08-17 Johan Dahlin <johan@gnome.org>
328 * docs/global-module-registry.txt:
329 Add a document for an on disk module registry format
331 2008-08-17 Johan Dahlin <johan@gnome.org>
334 * gir/gio-2.0-good.gir:
337 2008-08-17 Johan Dahlin <johan@gnome.org>
340 * gir/glib-2.0-good.gir:
341 * gir/gobject-2.0-good.gir:
342 * giscanner/cgobject.py:
343 * giscanner/glibtransformer.py:
344 Regenerate GObject & GType.
345 Avoid warnings when generating gobject-2.0.gir.
346 Introspect a little more, and skip *_get_type functions.
348 2008-08-17 Colin Walters <walters@verbum.org>
350 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
351 Rename to -good, always generate during build.
352 * gir/Makefile.am: Ensure .gir files dep on
354 * Makefile.am: Switch build order to ensure
355 the scanner is ready before we do gir/.
356 * tools/g-ir-scanner: Look for .git too.
358 2008-08-17 Johan Dahlin <johan@gnome.org>
360 * girepository/gtypelib.c (validate_enum_blob):
361 * giscanner/glibtransformer.py:
362 * giscanner/transformer.py:
363 Remove resolve_possible_typedefs, it was unused.
364 Allow multiple enum values of the sample value in an enum,
365 since it's actually pretty common.
366 Register enums so they can be resolved too.
368 2008-08-16 Johan Dahlin <johan@gnome.org>
370 * giscanner/girparser.py:
371 Parse enumeration/bitfield.
373 2008-08-16 Johan Dahlin <johan@gnome.org>
375 * giscanner/girparser.py:
378 2008-08-16 Johan Dahlin <johan@gnome.org>
380 * giscanner/glibtransformer.py:
381 Resolve type names for alias targets
382 * giscanner/transformer.py:
383 Skip FILE* parameters fow now
385 2008-08-16 Johan Dahlin <johan@gnome.org>
388 * gir/gobject-2.0.gir:
391 * tests/scanner/Makefile.am:
394 2008-08-15 Colin Walters <walters@verbum.org>
396 * giscanner/glibtransformer.py: Explicitly construct
397 new list, since we're deleting as we iterate.
398 Don't delete all structures which end in Class; just
399 ones which have a paired GObject.
400 Fix printing of type warning.
401 * giscanner/transformer.py: Make strip_namespace_object
402 be the identity function if it doesn't match the
405 2008-08-15 Colin Walters <walters@verbum.org>
407 * giscanner/cgobject.py: Define yet more argument
408 prototypes; fix prototype for g_type_fundamental.
410 2008-08-14 Johan Dahlin <johan@gnome.org>
413 * tests/constant.gir:
416 * tools/generate.c (write_struct_info):
417 Fix generator for constant/gobject/struct
419 2008-08-14 Johan Dahlin <johan@gnome.org>
423 * tools/generate.c (write_enum_info):
424 Fix generation of enum/bitfields
426 2008-08-14 Johan Dahlin <johan@gnome.org>
428 * girepository/girparser.c (start_field), (start_constant),
429 (start_type), (end_element_handler):
430 Clear up constant parsing
435 * tools/generate.c (write_callable_info), (write_function_info),
436 (write_callback_info), (write_constant_info), (write_signal_info),
437 (write_vfunc_info), (write_property_info), (write_object_info),
438 (write_interface_info):
439 Constants/Signals are handled now.
441 2008-08-14 Johan Dahlin <johan@gnome.org>
443 * girepository/girparser.c (start_type):
444 Don't require c:type.
448 Update, remove parts we don't support yet
449 * tests/roundtrips.sh:
451 * tools/generate.c (write_type_info), (write_field_info),
452 (write_callable_info), (write_struct_info):
453 Make it emit proper gir.
455 2008-08-14 Johan Dahlin <johan@gnome.org>
457 * giscanner/transformer.py:
458 New internal function for adding a new node.
460 2008-08-14 Johan Dahlin <johan@gnome.org>
463 Define an internal _H_ variable so we skip parsing both
464 i18n headers, only one is needed.
466 Add the glib-2.0.gir too.
467 * giscanner/glibast.py:
468 Add gconstpointer as an alias for ANY
469 * giscanner/transformer.py:
470 Do not lower case enumeration names per se.
471 Skip functions which has parameters called 'va_list'
473 2008-08-14 Colin Walters <walters@verbum.org>
475 * giscanner/transformer.py: Comment data structures.
476 Also squash pointers in resolve_type_name to correspond
477 with what we do for params.
478 * giscanner/glibtransformer.py: Print warnings in more
479 situations. Rework checks for method/constructor to
480 look up in our GType database instead of just checking
481 for *. Avoid generating <record> for GObject which
482 duplicate the <class>.
483 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
486 2008-08-14 Johan Dahlin <johan@gnome.org>
488 * giscanner/girwriter.py:
489 * giscanner/glibast.py:
490 * giscanner/glibtransformer.py:
491 * giscanner/transformer.py:
494 Add pyflakes.py and run it in make check.
495 Update the source code to fix the errors reported by
498 2008-08-14 Johan Dahlin <johan@gnome.org>
501 * giscanner/girparser.py:
502 * giscanner/glibast.py:
503 * giscanner/glibtransformer.py:
504 Refactor the parser a bit.
505 Add parent type to interfaces and update callsites.
507 2008-08-14 Johan Dahlin <johan@gnome.org>
509 * giscanner/glibtransformer.py:
510 * giscanner/utils.py:
511 Refactor a bit, avoid isinstance and add a method
512 for each type we parse.
514 2008-08-14 Johan Dahlin <johan@gnome.org>
517 * giscanner/girparser.py:
518 * giscanner/glibtransformer.py:
520 Run pep8.py in make check, fix old errors.
522 2008-08-13 Colin Walters <walters@verbum.org>
524 * giscanner/girparser.py: Parse records.
526 2008-08-13 Colin Walters <walters@verbum.org>
528 * gir/Makefile.am: Install again.
529 * gir/gobject-2.0.gir: Add some more bits.
531 2008-08-13 Colin Walters <walters@verbum.org>
533 * gir/gobject-2.0.gir: Use correct namespace, add GType.
534 * giscanner/girparser.py: Handle aliases.
535 * giscanner/transformer.py: Record aliases. Make resolver
536 functions public; we now call into these explicitly from
537 glibtransformer. Handle resolving aliases.
538 * giscanner/glibtransformer.py: Separate our internal namespace
539 from included ones. Call up into transformer's resolver functions.
541 2008-08-13 Johan Dahlin <johan@gnome.org>
543 * girepository/girnode.c (g_ir_node_get_full_size_internal):
544 * girepository/girparser.c (start_class):
545 * giscanner/glibtransformer.py:
546 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
548 2008-08-13 Johan Dahlin <johan@gnome.org>
550 * giscanner/cgobject.py:
551 Register GInitiallyUnowned
552 * giscanner/girwriter.py:
553 * giscanner/glibtransformer.py:
554 Special case GObject/GInitially owned as they are a bit special to use.
556 2008-08-13 Colin Walters <walters@verbum.org>
558 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
559 Object is in GObject namespace.
561 2008-08-13 Colin Walters <walters@verbum.org>
563 * giscanner/girparser.py: Fix processing of functions
566 2008-08-13 Colin Walters <walters@verbum.org>
568 * giscanner/girparser.py: Parse more than just <class.
569 * giscanner/glibtransformer.py: Put aliases in a separate
570 data structure since their name is not canonicall.
571 * giscanner/transformer.py: Handle resolving type names
574 2008-08-13 Johan Dahlin <johan@gnome.org>
576 * tools/g-ir-scanner:
577 Allow multiple libraries
578 * giscanner/glibtransformer.py:
579 Rename load_library to add_library, traverse over all libraries
580 when trying to resolve a function
582 2008-08-12 Colin Walters <walters@verbum.org>
584 * giscanner/transformer.py: Record typedefs as <alias> elements.
585 Also attempt to look up types in external namespaces.
586 * giscanner/girwriter.py: Write them.
587 * giscanner/glibtransformer.py: Rework resolver using real instanceof
588 checks. Resolve interface methods and properties.
589 * tests/scanner/foo-object.h: Add a method with typedef.
590 * tests/scanner/Foo-expected.gir: Update.
591 * girepository/girnode.c: Debug tweaks.
592 * girepository/girparser.c: Make a first pass through the XML where we
593 record all the aliases. This lets us resolve them as we go through the
595 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
598 2008-08-12 Colin Walters <walters@verbum.org>
600 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
601 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
603 * giscanner/transformer.py: Record typedefs and expose public API for resolving
605 * tests/scanner/Foo-expected.gir: Fix expected callback types.
607 2008-08-12 Colin Walters <walters@verbum.org>
609 * giscanner/glibtransformer.py: Also transform object properties.
611 2008-08-12 Colin Walters <walters@verbum.org>
613 * giscanner/glibtransformer.py: Also transform callbacks
614 and structure field types.
615 * tests/scanner/Fooe-expected.gir: Update to expect correct
616 names for callbacks and structs.
618 2008-08-12 Colin Walters <walters@verbum.org>
620 * girepository/girparser.c: Handle 'any'.
621 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
624 2008-08-12 Colin Walters <walters@verbum.org>
626 * giscanner/glibtransformer.py: We need to do type
627 resolution in a second pass after we've seen all the
630 2008-08-12 Colin Walters <walters@verbum.org>
632 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
633 Add enum return value.
634 * giscanner/glibtransformer.py: Transform function return types
637 2008-08-12 Colin Walters <walters@verbum.org>
639 * tests/scanner/Makefile.am: Dep .gir files on scanner
640 sources too. Also remove @ so we see scanner invocations.
642 2008-08-12 Colin Walters <walters@verbum.org>
644 * girepository/girparser.c, girepository/gtypelib.c,
645 girepository/gtypelib.h, girepository/girnode.c:
646 Remove usage of (GAPI-oriented) TypeTag in favor of
647 GITypeTag from girepository.h.
649 2008-08-10 Colin Walters <walters@verbum.org>
651 * tests/roundtrips.sh: Use the correct tests.
653 2008-08-10 Colin Walters <walters@verbum.org>
655 * giscanner/cgobject.py: Declare/wrap a few more functions.
656 Fix parameter types for g_object_new and g_type_fundamental.
658 2008-08-10 Colin Walters <walters@verbum.org>
660 * giscanner/cgobject.py: Add new decorator @gwrap which forces
661 us to declare types for both return value and parameters. The
662 ctypes default of 'int' is bad because it hides 32/64 bit
663 problems. Convert all existing functions to use it.
665 2008-08-09 Johan Dahlin <johan@gnome.org>
667 * giscanner/__init__.py:
669 * giscanner/cgobject.py:
670 * giscanner/gidlparser.py:
671 * giscanner/gidlwriter.py:
672 * giscanner/girparser.py:
673 * giscanner/girwriter.py:
674 * giscanner/glibast.py:
675 * giscanner/glibtransformer.py:
676 * giscanner/odict.py:
677 * giscanner/sourcescanner.py:
678 * giscanner/transformer.py:
679 * giscanner/utils.py:
680 * giscanner/xmlwriter.py:
681 * tools/g-ir-scanner:
685 2008-08-09 Johan Dahlin <johan@gnome.org>
688 * relaxng/c-types.xml:
689 * relaxng/g-types.xml:
690 * relaxng/relaxng.rng:
692 Remove outdated relaxng schemas.
694 2008-08-09 Johan Dahlin <johan@gnome.org>
697 Rename metadata to typelib in variable names,
700 2008-08-09 Johan Dahlin <johan@gnome.org>
704 Remove old C scanner, which got rewritten in python.
706 2008-08-09 Johan Dahlin <johan@gnome.org>
708 * girepository/Makefile.am:
718 Move shared *.[ch] files to girepository from tools
720 2008-08-09 Johan Dahlin <johan@gnome.org>
725 * tests/constant.test:
728 * tests/function.test:
729 * tests/gobject.test:
730 * tests/interface.test:
737 Rename *.test to *.gir
739 2008-08-09 Johan Dahlin <johan@gnome.org>
743 * tests/parser/Foo-expected.gir:
744 * tests/parser/Makefile.am:
745 * tests/parser/foo-object.h:
746 * tests/parser/foo.c:
747 * tests/parser/utility-expected.gir:
748 * tests/parser/utility.c:
749 * tests/parser/utility.h:
750 * tests/scanner/Makefile.am:
751 Rename tests/parser to test/scanner
753 2008-08-08 Colin Walters <walters@verbum.org>
755 * tests/roundtrips.sh: Use local .gir files again.
757 2008-08-08 Colin Walters <walters@verbum.org>
759 * tests/invoke/Makefile.am: .gir file depends on libtool
762 2008-08-08 Colin Walters <walters@verbum.org>
764 * tools/girnode.c: Pass through parent node so we can
765 print the node whose child is NULL, if that occurs.
767 2008-08-08 Johan Dahlin <johan@gnome.org>
770 Disable roundtrip tests which are not yet working
771 * tests/invoke/testfns.gir:
774 2008-08-08 Johan Dahlin <johan@gnome.org>
776 * giscanner/girwriter.py:
778 * giscanner/glibast.py:
779 * giscanner/glibtransformer.py:
780 Swap order of members, to keep it consistent with
783 2008-08-08 Johan Dahlin <johan@gnome.org>
785 * girepository/gtypelib.c (validate_header):
786 * girepository/gtypelib.h:
788 * giscanner/girwriter.py:
789 * giscanner/sourcescanner.c (gi_source_symbol_ref),
790 (gi_source_symbol_unref):
793 * tests/constant.test:
796 * tests/function.test:
797 * tests/gobject.test:
798 * tests/interface.test:
799 * tests/invoke/Makefile.am:
800 * tests/invoke/testfns.xml:
802 * tests/parser/Makefile.am:
803 * tests/roundtrips.sh:
810 * tools/compiler.c (main):
811 * tools/generate.c (write_callable_info), (write_function_info),
813 * tools/gidlmodule.c:
814 * tools/gidlmodule.h:
817 * tools/gidlparser.c:
818 * tools/gidlparser.h:
819 * tools/gidlwriter.c:
820 * tools/gidlwriter.h:
821 * tools/scanner.c (create_node_from_gtype),
822 (create_node_from_ctype), (g_igenerator_process_properties),
823 (g_igenerator_process_signals), (g_igenerator_create_object),
824 (g_igenerator_create_interface), (g_igenerator_create_boxed),
825 (g_igenerator_create_enum), (g_igenerator_create_flags),
826 (g_igenerator_process_function_symbol),
827 (g_igenerator_process_unregistered_struct_typedef),
828 (g_igenerator_process_struct_typedef),
829 (g_igenerator_process_union_typedef),
830 (g_igenerator_process_enum_typedef),
831 (g_igenerator_process_function_typedef),
832 (g_igenerator_process_constant), (g_igenerator_process_symbols),
833 (g_igenerator_add_module), (g_igenerator_add_include_idl):
834 Merge in the gir-compiler branch.
835 Thanks to Philip and Colin for their help.
837 2008-07-26 Colin Walters <walters@verbum.org>
839 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
840 and g-idl-generate to go along with how we're changing this
841 module to be installed.
842 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
844 2008-07-24 Colin Walters <walters@verbum.org>
846 * girepository/girepository.c (g_irepository_register): Add
847 environment variable G_IREPOSITORY_VERBOSE so we can print
848 out what we're doing.
849 * girepository/girepository.c (g_irepository_register_file):
850 Add GError error message to g_debug call.
852 2008-07-08 Jürg Billeter <j@bitron.ch>
854 * giscanner/glibast.py:
858 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
860 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
863 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
866 * giscanner/girwriter.py:
867 * giscanner/transformer.py:
868 * tests/parser/Foo-expected.gir:
869 * tests/parser/foo-object.h:
870 * tests/parser/foo.c (foo_object_allow_none):
871 Add support for gtk-doc annotations for allow-none.
874 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
877 * giscanner/girwriter.py:
878 * giscanner/glibast.py:
879 * giscanner/glibtransformer.py:
880 * giscanner/transformer.py:
881 * tests/parser/Foo-expected.gir:
882 Start using abstract type instead of the raw C types.
883 Register a bunch of glib types we care about.
885 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
890 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
892 * girepository/girepository.c:
893 * girepository/gtypelib.c:
894 * girepository/ginfo.c:
895 * girepository/ginvoke.c:
896 * girepository/girepository.h:
897 * girepository/gtypelib.h:
898 * girepository/gmetadata.c:
899 * girepository/Makefile.am:
900 * girepository/gmetadata.h:
902 * tools/gidlmodule.c:
905 * tools/gidlmodule.h:
906 * tools/gidlparser.c:
908 Renamed GMetadata to GTypelib
910 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
912 * giscanner/xmlwriter.py:
913 Improve line wrapping when > 79 charaters
915 2008-06-05 Jürg Billeter <j@bitron.ch>
918 * giscanner/girwriter.py:
919 * giscanner/transformer.py:
920 Use <type> element for field types
921 * tests/parser/Foo-expected.gir:
924 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
926 * giscanner/glibtransformer.py:
927 Fix a bug which prevented GdkEvent from being generated
929 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
931 * giscanner/Makefile.am:
933 * giscanner/girwriter.py:
934 * giscanner/glibast.py:
935 * giscanner/glibtransformer.py:
936 * giscanner/transformer.py:
937 * giscanner/utils.py:
938 * tests/parser/Foo-expected.gir:
939 Improve enum member parsing and introspection
941 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
943 * giscanner/scannerparser.y:
944 * giscanner/sourcescanner.h:
945 * giscanner/sourcescanner.py:
946 Add a new source type enum for member.
947 Use __repr__ for improved debugging
948 * giscanner/girparser.py:
950 * giscanner/transformer.py:
951 Improve parsing of struct members.
952 * tests/parser/foo-object.h:
955 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
957 * giscanner/xmlwriter.py:
958 Improve error reporting when trying to quote None.
959 * giscanner/girparser.py:
960 Do not print warnings when including more complete .gir files
961 * giscanner/girwriter.py:
962 Do not require a name for parameters, add a todo for singletons
963 * giscanner/glibtransformer.py:
964 Refactor the way structs are done, add a couple of hacks to allow
966 * giscanner/transformer.py:
967 Add enough hacks so cairo, atk and pango.gir can be parsed properly
968 * gobject-introspection-1.0.pc.in:
969 Export girdir, so we can access gobject-2.0.gir from outside
971 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
973 * tools/g-ir-scanner:
974 * tests/parser/Makefile.am:
975 Update sys.path before running the parser so we don't have
976 to setup PYTHONPATH ourselves.
980 * girepository/Makefile.am:
981 * giscanner/transformer.py:
982 * gobject-introspection-1.0.pc.in:
983 * gobject-introspection.pc.in:
986 Rename pkg-config name to gobject-introspection-1.0,
987 Do not installed anything which is not using the gir format.
988 Disable compililation the old C scanner, but still keep the source
989 until all the remaning functionallity has been ported.
991 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
993 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
994 a crash when symbol->indent is NULL.
996 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
997 a function to convert a CTYPE symbol to a string
999 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
1002 * giscanner/girwriter.py:
1003 * giscanner/giscannermodule.c
1004 (pygi_source_scanner_append_filename),
1005 (pygi_source_scanner_parse_file):
1006 * giscanner/glibtransformer.py:
1007 * giscanner/sourcescanner.py:
1008 Revert back to using temporary files to send in headers.
1009 Allow Functions to be passed in as callbacks, add a couple
1010 of try/excepts missing features.
1011 We can now scan pango
1013 2008-05-08 Johan Dahlin <johan@gnome.org>
1015 * giscanner/glibtransformer.py:
1016 * giscanner/transformer.py:
1017 Move namespace stripping glibtransformer->transformer
1019 2008-05-08 Johan Dahlin <johan@gnome.org>
1022 * giscanner/girwriter.py:
1023 * giscanner/glibtransformer.py:
1024 * giscanner/transformer.py:
1025 * tools/g-ir-scanner:
1026 Introduce a namespace ast node
1028 2008-05-05 Johan Dahlin <johan@gnome.org>
1030 * giscanner/__init__.py:
1031 * giscanner/sourcescanner.py:
1032 * giscanner/transformer.py:
1033 Move sourcescanner symbols to the sourcescanner module, instead
1034 of in the global __init__ namespace.
1036 2008-05-03 Johan Dahlin <johan@gnome.org>
1038 * giscanner/glibtransformer.py:
1039 * tools/g-ir-scanner:
1040 Handle missing parameters better, allow - and + in .la dlname
1043 2008-05-03 Johan Dahlin <johan@gnome.org>
1045 * giscanner/__init__.py:
1047 * giscanner/girwriter.py:
1048 * giscanner/glibtransformer.py:
1049 * giscanner/transformer.py:
1050 Parse struct fields properly, improve debugging.
1052 2008-04-29 Johan Dahlin <johan@gnome.org>
1055 * giscanner/girwriter.py:
1056 * giscanner/transformer.py:
1057 * tests/parser/Foo-expected.gir:
1059 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
1061 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1064 * docs/g-ir-scanner.1:
1065 * metadata-annotations-proposal.txt:
1066 * metadata-format.txt:
1067 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
1069 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1071 * giscanner/girwriter.py:
1072 * giscanner/glibtransformer.py:
1073 * giscanner/transformer.py:
1074 * giscanner/xmlwriter.py:
1075 * tests/parser/Foo-expected.gir:
1076 * tests/parser/foo-object.h:
1077 Write record/structs to gir file too. Add a couple of tests,
1078 fix an off by one error in xmlwriter.py.
1080 2008-04-28 Johan Dahlin <johan@gnome.org>
1082 * giscanner/xmlwriter.py: Calculate the line length properly,
1083 include the provided extra indentation in the calculation, really.
1085 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1088 * giscanner/glibast.py:
1089 * giscanner/glibtransformer.py:
1090 * giscanner/transformer.py:
1091 * tools/g-ir-scanner:
1092 Add a --strip-prefix and sort out confusion between names and symbols
1093 for functions and struct + derivaties.
1094 Refactor bootstrap of g-ir-scanner, so we can set options on
1095 Transformer() before parsing everything.
1097 2008-04-28 Johan Dahlin <johan@gnome.org>
1099 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
1100 when scanning girepository.h
1102 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
1103 a __GI_SCANNER__ when we run.
1105 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1108 * giscanner/girwriter.py:
1109 * giscanner/glibast.py:
1110 * giscanner/glibtransformer.py:
1111 * tests/parser/Foo-expected.gir:
1112 * tests/parser/utility-expected.gir:
1113 Rename most c:identifier to c:type. Add new ones to
1114 class/interface/enum/boxed.
1116 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1119 * giscanner/girwriter.py:
1120 * giscanner/glibtransformer.py:
1121 * tests/parser/Foo-expected.gidl:
1122 * tests/parser/Makefile.am:
1123 Move c:identifier from return-value to subchild type,
1124 as per Jürgs suggestion
1126 2008-04-28 Johan Dahlin <johan@gnome.org>
1128 * giscanner/girwriter.py:
1129 * tests/parser/Foo-expected.gir:
1130 Write property.type as a child node.
1132 2008-04-27 Johan Dahlin <johan@gnome.org>
1137 * gidl/gobject-2.0.gidl:
1139 * gir/gobject-2.0.gir:
1140 * tests/parser/Makefile.am:
1141 Replace the GObject gidl with a GObject gir.
1143 2008-04-27 Johan Dahlin <johan@gnome.org>
1145 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
1148 * giscanner/xmlwriter.py:
1149 * tests/parser/Foo-expected.gir:
1150 Include indentation in line length calculation
1152 2008-04-27 Johan Dahlin <johan@gnome.org>
1154 * giscanner/girparser.py:
1155 Prettify NS parsing using elementtree.
1157 2008-04-27 Johan Dahlin <johan@gnome.org>
1160 * giscanner/Makefile.am:
1161 * giscanner/girparser.py:
1162 * giscanner/glibtransformer.py:
1163 * tests/parser/Foo-expected.gidl:
1164 * tests/parser/Foo-expected.gir:
1165 * tests/parser/Makefile.am:
1166 * tests/parser/utility-expected.gidl:
1167 * tests/parser/utility-expected.gir:
1168 * tools/g-ir-scanner:
1169 Switch over to GIR as the default format. Add a simple GIDL
1171 Update tests and fix simplify makefiles by depending
1172 on GNU make extensions.
1174 2008-04-27 Johan Dahlin <johan@gnome.org>
1176 * giscanner/xmlwriter.py:
1177 Wrap attributes for lines which are wider than 79 characters
1179 * giscanner/scannerlexer.l:
1180 Allow parenthesis in annotations
1183 * giscanner/gidlwriter.py:
1184 * giscanner/girwriter.py:
1185 * giscanner/glibtransformer.py:
1186 * giscanner/transformer.py:
1187 Add initial sequence support, including annotation.
1188 Refactor type handling a bit.
1190 2008-04-27 Johan Dahlin <johan@gnome.org>
1192 * tests/parser/Foo-expected.gidl:
1193 * tests/parser/foo-object.h:
1194 * tests/parser/foo.c (foo_object_class_init),
1195 (foo_object_get_strings), (foo_object_get_objects):
1196 Add two new functions to check sequence return values.
1197 Also fixes a compilation warning.
1199 2008-04-27 Johan Dahlin <johan@gnome.org>
1201 * giscanner/giscannermodule.c (]): Cast the getter, avoids
1202 a compilation warning.
1204 * tools/Makefile.am (g_ir_scanner_SOURCES):
1205 g-ir-scanner has no sources.
1207 2008-04-25 Johan Dahlin <johan@gnome.org>
1209 * giscanner/Makefile.am:
1211 * giscanner/gidlparser.py:
1212 * giscanner/gidlwriter.py:
1213 * giscanner/girwriter.py:
1214 * giscanner/glibast.py:
1215 * giscanner/glibtransformer.py:
1216 * giscanner/transformer.py:
1217 Split out nodes to ast.py and glibast.py
1219 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1221 * giscanner/Makefile.am:
1222 * giscanner/gidlparser.py:
1223 * giscanner/gidlwriter.py:
1224 * giscanner/girwriter.py:
1225 * giscanner/glibtransformer.py:
1226 * giscanner/gobjecttreebuilder.py:
1227 * giscanner/transformer.py:
1228 * giscanner/treebuilder.py:
1229 * tools/g-ir-scanner:
1230 Rename treebuilder to transformer and
1231 gobjectreebuilder to glibtransformer.
1233 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1235 * giscanner/Makefile.am:
1236 * giscanner/__init__.py:
1237 * giscanner/cgobject.py:
1238 * giscanner/gidlparser.py:
1239 * giscanner/gidlwriter.py:
1240 * giscanner/girwriter.py:
1241 * giscanner/gobjecttreebuilder.py:
1242 * giscanner/odict.py:
1243 * giscanner/sourcescanner.py:
1244 * giscanner/treebuilder.py:
1245 * giscanner/xmlwriter.py:
1246 * tools/Makefile.am:
1247 * tools/g-ir-scanner:
1248 Add LGPLv2 license header and install all python files
1250 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1253 * giscanner/gidlwriter.py:
1254 * giscanner/giscannermodule.c (pygi_source_directive_new),
1255 (directive_get_options), (pygi_source_symbol_new),
1256 (symbol_get_base_type), (pygi_source_type_new),
1257 (type_get_base_type), (type_get_child_list),
1258 (pygi_source_scanner_get_symbols),
1259 (pygi_source_scanner_get_directives):
1260 * giscanner/gobjecttreebuilder.py:
1261 * giscanner/sourcescanner.py:
1262 * giscanner/treebuilder.py:
1263 * tests/parser/foo-object.h:
1264 Add support for virtual methods.
1265 Pair struct FooClass with struct Foo.
1266 Clean up the SourceScanner bindings a bit.
1267 Add a testcase for virtual methods.
1269 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1271 * giscanner/cgobject.py:
1272 * giscanner/gidlwriter.py:
1273 * giscanner/gobjecttreebuilder.py:
1274 Add support for signals
1276 * tests/parser/foo.c (foo_object_class_init):
1277 * Foo-expected.gidl:
1278 Add a signal and update the expected output.
1280 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
1282 * giscanner/gidlwriter.py:
1283 * giscanner/girwriter.py:
1284 * giscanner/giscannermodule.c (directive_get_name),
1285 (directive_get_value), (directive_get_options),
1286 (symbol_get_directives), (symbol_set_directives),
1287 (pygi_source_scanner_parse_file),
1288 (pygi_source_scanner_lex_filename),
1289 (pygi_source_scanner_get_directives), (init_giscanner):
1290 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
1291 * giscanner/sourcescanner.h:
1292 * giscanner/sourcescanner.py:
1293 * giscanner/treebuilder.py:
1294 * tools/g-ir-scanner:
1295 Add support for source/header annotations.
1297 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1299 * giscanner/gidlwriter.py:
1300 * giscanner/girwriter.py:
1301 * giscanner/gobjecttreebuilder.py:
1302 * giscanner/treebuilder.py:
1303 Add support for Callbacks
1305 2008-04-22 Havoc Pennington <hp@pobox.com>
1307 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
1308 not in metadata->module, look for it in the global module, in case
1309 some other object or the app itself provides the symbol.
1311 2008-04-22 Havoc Pennington <hp@pobox.com>
1313 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
1314 dlopening a library that is already in the main app, by checking
1315 whether one of the lib's symbols is already loaded.
1317 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1319 * tests/parser/Foo-expected.gidl:
1320 * tests/parser/foo-object.h:
1323 2008-04-22 Havoc Pennington <hp@pobox.com>
1325 * girepository/ginfo.c (g_interface_info_find_method):
1326 Use interface_blob_size not object_blob_size to compute offset.
1328 2008-04-22 Havoc Pennington <hp@pobox.com>
1330 * girepository/gmetadata.c (_g_metadata_init): remove
1331 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
1332 (Glade and Clutter for example) rely on being loaded globally.
1334 2008-04-22 Havoc Pennington <hp@pobox.com>
1336 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
1337 function to get the GType given a RegisteredTypeInfo
1339 2008-04-22 Johan Dahlin <johan@gnome.org>
1341 * COPYING: Add a LGPL license, to prevent automake to
1342 put in a copy of GPL here. Pointed out by Havoc.
1344 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
1345 (g_type_info_is_pointer), (g_type_info_get_tag),
1346 (g_type_info_get_param_type), (g_type_info_get_interface),
1347 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
1348 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
1349 (g_error_domain_info_get_codes), (g_enum_info_get_value),
1350 (g_object_info_get_interface), (g_object_info_get_field),
1351 (g_interface_info_get_prerequisite),
1352 (g_signal_info_get_class_closure), (g_constant_info_get_value):
1353 * girepository/ginvoke.c (get_ffi_type):
1354 * girepository/girepository.h:
1355 * girepository/gmetadata.c (g_metadata_get_dir_entry),
1356 (g_metadata_check_sanity), (validate_header),
1357 (validate_array_type_blob), (validate_iface_type_blob),
1358 (validate_param_type_blob), (validate_error_type_blob),
1359 (validate_type_blob), (validate_constant_blob),
1360 (validate_struct_blob), (validate_enum_blob):
1361 * girepository/gmetadata.h:
1362 * tests/Makefile.am:
1363 * tests/invoke/Makefile.am:
1364 * tests/invoke/invoke.c (main):
1365 * tests/roundtrips.sh:
1366 * tools/Makefile.am:
1367 * tools/compiler.c (format_output), (write_out_metadata), (main):
1368 * tools/generate.c (write_type_name), (write_type_info),
1369 (write_constant_value), (write_enum_info), (load_metadata), (main):
1370 * tools/gidlcompilercontext.c:
1371 * tools/gidlcompilercontext.h:
1372 * tools/gidlcompilerentrynode.c:
1373 * tools/gidlcompilerentrynode.h:
1374 * tools/gidlcompilertypenode.c:
1375 * tools/gidlcompilertypenode.h:
1376 * tools/gidlmodule.c (g_idl_module_build_metadata):
1377 * tools/gidlmodule.h:
1378 * tools/gidlnode.c (init_stats), (dump_stats),
1379 (g_idl_node_get_size), (g_idl_node_get_full_size),
1380 (g_idl_node_cmp), (g_idl_node_can_have_member),
1381 (g_idl_node_add_member), (g_idl_node_param_direction_string),
1382 (parse_int_value), (parse_uint_value), (parse_float_value),
1383 (parse_boolean_value), (find_entry_node), (find_entry),
1384 (serialize_type), (g_idl_node_build_metadata), (write_string):
1386 * tools/gidlparser.c (parse_type_internal):
1387 * tools/quote-file.sh:
1388 Revert revisions 157,149-148,136-129 and 120.
1389 Move back to using g-idl-generate to generate the metadata and
1390 avoids dependency on a c compiler.
1392 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1394 * giscanner/girwriter.py:
1395 * tools/g-ir-scanner:
1396 Add an initial GIR writer and a --format option to g-ir-scanner
1398 2008-04-21 Johan Dahlin <johan@gnome.org>
1400 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
1401 gobject-2.0 and raise ImportError if not found.
1403 * giscanner/gidlparser.py:
1404 * giscanner/gidlwriter.py:
1405 * giscanner/gobjecttreebuilder.py:
1406 * tools/g-ir-scanner:
1407 Add a --include argument to include types from other idls.
1408 Add a minimalistic GIDL parser (just objects for now)
1409 Implement resolving of external type references and use it to
1410 resolve parent types, argument types and return types.
1412 2008-04-21 Johan Dahlin <johan@gnome.org>
1414 * giscanner/gidlwriter.py:
1415 * giscanner/gobjecttreebuilder.py:
1416 * giscanner/treebuilder.py:
1417 Add support for properties.
1418 Refactor Class/Interface support a bit, to share more code and
1419 always initialize their method attribute to an empty list.
1421 2008-04-21 Johan Dahlin <johan@gnome.org>
1423 * giscanner/cgobject.py:
1424 Add a workaround for a glib bug interface introspection bug
1425 (object_interface_list_properties, object_class_list_properties):
1426 Cast the return value to GParamSpec.
1428 * tests/parser/Foo-expected.gidl: Update
1429 * tests/parser/foo.c: Add a string property
1431 * giscanner/gobjecttreebuilder.py:
1432 After stripping namespaces, remove the original
1433 item to avoid duplication (GtkButton struct and Button object)
1435 2008-04-21 Johan Dahlin <johan@gnome.org>
1437 * giscanner/gobjecttreebuilder.py:
1438 * giscanner/treebuilder.py:
1439 Strip namespaces before objects, so we'll export
1440 GtkButton as Button in the gtk namespace
1442 2008-04-21 Johan Dahlin <johan@gnome.org>
1444 * giscanner/gidlwriter.py:
1445 * giscanner/gobjecttreebuilder.py:
1446 * giscanner/treebuilder.py:
1447 Add constructors for object/boxed types.
1449 2008-04-21 Johan Dahlin <johan@gnome.org>
1451 * giscanner/gidlwriter.py:
1452 * giscanner/gobjecttreebuilder.py:
1453 Add support for boxed types
1455 2008-04-21 Johan Dahlin <johan@gnome.org>
1457 * giscanner/giscannermodule.c: Mark structures as const,
1458 wrap SourceType.const_string.
1460 * tests/parser/foo-object.h: Add a couple of constants.
1462 * giscanner/gidlwriter.py:
1463 * giscanner/gobjecttreebuilder.py:
1464 * giscanner/treebuilder.py:
1465 Add basic support for interfaces
1467 * tools/g-ir-scanner:
1468 Add -o/--output for writing to a file
1470 2008-04-21 Havoc Pennington <hp@redhat.com>
1472 * TODO: add some C API wishlist items I could think of quickly
1474 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1476 * giscanner/gidlwriter.py:
1477 * giscanner/xmlwriter.py:
1478 Add a simple api for writing tags which can be used
1479 with the new 'with statement' in python 2.5
1481 2008-04-21 Johan Dahlin <johan@gnome.org>
1483 * giscanner/gobjecttreebuilder.py:
1484 Strip namespace and object prefix from method names.
1486 2008-04-21 Johan Dahlin <johan@gnome.org>
1488 * tools/g-ir-scanner (main): Add --pkg option to pass in
1489 pkg-config modules to get cflags from.
1491 * giscanner/gidlwriter.py (GIDLWriter._write_method):
1492 Avoid duplication, reuse function writer for methods.
1494 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1496 * giscanner/gidlwriter.py:
1497 * giscanner/gobjecttreebuilder.py:
1498 * giscanner/treebuilder.py:
1499 * tools/g-ir-scanner:
1500 Resolve libtool .la files.
1501 Strip name spaces for methods.
1502 Add function symbols
1504 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
1506 * giscanner/cgobject.py:
1507 * giscanner/gidlwriter.py:
1508 * giscanner/gobjecttreebuilder.py:
1509 * giscanner/treebuilder.py:
1510 Add support for classes and methods
1512 2008-04-20 Johan Dahlin <johan@gnome.org>
1514 * giscanner/gidlwriter.py:
1515 * giscanner/gobjecttreebuilder.py:
1516 * giscanner/odict.py:
1517 Avoid conflicts, keep the output ordered similar to
1518 the order of the input.
1519 Add a simple ordered dictionary implemenation
1521 2008-04-19 Johan Dahlin <johan@gnome.org>
1523 * giscanner/cgobject.py:
1524 * giscanner/gidlwriter.py:
1525 * giscanner/gobjecttreebuilder.py:
1526 * tools/g-ir-scanner:
1527 Start introspecting get-type functions.
1528 Implement support for GLib/GFlags GTypes.
1529 Add a ctype based GObject binding.
1531 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
1533 * giscanner/gidlwriter.py:
1534 * giscanner/xmlwriter.py:
1535 * tools/g-ir-scanner:
1536 Add a simplistic gidl writer, which can't do too much.
1538 2008-04-18 Johan Dahlin <johan@gnome.org>
1540 * giscanner/sourcescanner.py:
1541 * giscanner/treebuilder.py:
1542 * tools/g-ir-scanner:
1543 split tree building and source scanning interface to separate files.
1545 2008-04-18 Johan Dahlin <johan@gnome.org>
1547 * tools/g-ir-scanner (Parameter.__init__): Start constructing
1549 - Add support for struct/parameter/return, start parsing of ctypes
1551 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
1554 2008-03-31 Johan Dahlin <johan@gnome.org>
1556 * tools/g-ir-scanner:
1557 Start to build abstract syntax node of scanned sources.
1558 Add support for cpp options.
1560 2008-03-27 Johan Dahlin <johan@gnome.org>
1562 * giscanner/giscannermodule.c:
1563 * giscanner/scannerlexer.l:
1564 * giscanner/sourcescanner.c:
1565 * tools/g-ir-scanner:
1567 Add simple pre-processor using subprocess and a PIPE.
1568 Change the parse_file apis to accept a file descriptor.
1570 2008-03-25 Johan Dahlin <johan@gnome.org>
1572 * giscanner/__init__.py:
1573 * tools/g-ir-scanner:
1574 Fix a typo and add an example python test program.
1576 2008-03-25 Johan Dahlin <johan@gnome.org>
1578 * giscanner/__init__.py:
1579 * giscanner/giscannermodule.c:
1580 * giscanner/sourcescanner.c:
1581 * giscanner/sourcescanner.h:
1582 Add constants and wrap a few more SymbolType fields
1584 2008-03-25 Johan Dahlin <johan@gnome.org>
1588 * giscanner/__init__.py:
1589 * giscanner/giscannermodule.c:
1590 * giscanner/Makefile.am:
1592 Add initial python bindings for the scanner and
1593 depend on python 2.5.
1595 2008-03-25 Johan Dahlin <johan@gnome.org>
1599 * giscanner/Makefile.am:
1600 * giscanner/sourcescanner.c:
1601 * giscanner/sourcescanner.h:
1602 * tools/Makefile.am:
1603 * tools/grealpath.h:
1604 * tools/sourcescanner.c:
1605 * tools/sourcescanner.h:
1607 Move the scanner to a separate library.
1609 2008-03-23 Johan Dahlin <johan@gnome.org>
1611 * tools/Makefile.am:
1614 * tools/scannerlexer.l:
1615 * tools/scannerparser.y:
1616 * tools/sourcescanner.c:
1617 * tools/sourcescanner.h:
1618 Split out the source scanner from the generator.
1619 Rename the symbols used in the scanner to use the gi_ prefix.
1620 This should make it possible to use the raw C parser from
1623 2008-03-23 Johan Dahlin <johan@gnome.org>
1625 * tests/parser/Makefile.am (utility.gidl):
1626 * tests/parser/utility-expected.gidl:
1627 Pass in the gobject.gidl since we're defining a GObject.
1629 2008-03-12 Johan Dahlin <johan@gnome.org>
1631 * relaxng/relaxng.rng:
1632 Add a releaxng in relaxng we can use to validate the relaxngs
1635 2008-03-12 Jürg Billeter <j@bitron.ch>
1637 * tools/scanner.c: (g_igenerator_new):
1638 * tools/scannerparser.y:
1639 Fix compiler warnings.
1641 2008-03-12 Jürg Billeter <j@bitron.ch>
1645 * tools/scannerparser.y:
1646 Start fixing memory management in g-idl-scanner.
1648 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
1650 * tools/gidlcompilercontext.c: (write_compiled):
1651 Fix critical warning when no shlib passed to g-idl-compiler.
1653 2008-03-12 Johan Dahlin <johan@gnome.org>
1655 * tests/parser/utility-expected.gidl:
1656 * tests/parser/utility.h:
1657 Add a get_type-function, so the scanner actually
1658 parses it as an object.
1660 2008-03-12 Johan Dahlin <johan@gnome.org>
1662 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
1665 * tests/parser/Foo-expected.gidl:
1666 * tests/parser/Makefile.am:
1667 * tests/parser/foo-object.h:
1668 * tests/parser/foo.c:
1669 * tests/parser/utility-expected.gidl:
1670 * tests/parser/utility.c:
1671 * tests/parser/utility.h:
1673 Add a new gidl test. 'utility.gidl', which is used to be able
1674 to test external type references. Add a reference to UtilityObject*
1677 2008-03-11 Johan Dahlin <johan@gnome.org>
1681 Remove most global variables
1683 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
1685 * tools/scannerlexer.l:
1687 * tests/parser/Foo-expected.gidl:
1688 * tests/parser/foo.c:
1689 * tests/parser/Makefile.am:
1690 * tests/parser/foo-object.h:
1692 Added a few extra tests. Which resulted in finding a few
1693 bugs. Which resulted in me fixing those bugs
1695 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1697 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
1698 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
1699 Add some comments for strings into generated output for
1702 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1704 * tools/gidlcompilercontext.c: (write_compiled):
1705 Write out the shlibs variable before writing out the strings
1706 length. Fixes compiler warning when using '-l' flag with
1709 2008-03-11 Johan Dahlin <johan@gnome.org>
1711 * tests/parser/Foo-expected.gidl:
1712 * tests/parser/foo-object.h:
1715 * tools/scannerlexer.l:
1716 Add support for parsing return arguments. Add support for
1717 caller-owns return types.
1718 Patch by Philip Van Hoof.
1720 * tools/scannerparser.y:
1721 Remove parsing of the @deprecated syntax used in headers.
1722 We will support gtk-doc deprecation in the future instead.
1724 2008-03-11 Johan Dahlin <johan@gnome.org>
1726 * tools/compiler.c (main): Coding style fixes
1728 2008-03-10 Johan Dahlin <johan@gnome.org>
1731 Add GCOV_LIBS to GILIBS
1733 2008-03-10 Johan Dahlin <johan@gnome.org>
1735 * tests/parser/Foo-expected.gidl:
1736 * tests/parser/foo.c:
1737 Rename null-ok to direction=out
1739 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
1741 reviewed and extensively tested by Johan
1743 * tests/parser/Foo-expected.gidl:
1744 * tests/parser/foo-object.h:
1745 * tests/parser/foo.c:
1748 * tools/gidlwriter.c:
1751 * tools/scannerlexer.l:
1752 * tools/scannerparser.y:
1754 Add support for scanning for gtk-doc comments inside
1755 C source files. Add tests
1757 2008-03-10 Johan Dahlin <johan@gnome.org>
1759 * tests/parser/Makefile.am:
1760 * tests/parser/foo.c:
1763 * tools/scannerparser.y:
1764 Add an api to lex filenames.
1765 Lex all source .c files passed in on the command line.
1766 Scan sources in a test and a couple of private structures
1767 which should not be included in the generated gidl
1769 2008-03-10 Johan Dahlin <johan@gnome.org>
1771 * tests/invoke/Makefile.am: Make the generated metadata
1772 depend on the g-idl-compiler
1774 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1776 * tools/gidlmodule.c
1777 * tools/gidlmodule.h
1780 Remove the old g-idl-compiler code.
1783 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
1785 * tools/quote-file.sh
1788 Move to using the 'C' struct compiler code.
1790 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1792 * girepository/ginfo.c
1794 Change the way that external references with no namespace
1795 are dealt with. External references with no namespace
1796 are placed into the XML as-if they are a local reference.
1797 This is temporary, but helps with roundtrip tests.
1799 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1801 * girepository/ginfo.c
1802 Add the ability to get the value of a constant of
1803 type TYPE_TAG_SYMBOL. In the case of a symbol the value
1804 is provided as a string.
1806 This would deal properly with:
1807 typedef char* random;
1808 const random = "A string";
1810 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1812 * girepository/ginfo.c
1813 * girepository/girepository.h
1815 Add a function to check if an enum is registered or not.
1816 Previously anything testing this relied on the g-type
1817 string offset having a value of 0.
1819 * girepository/gmetadata.c
1820 * girepository/gmetadata.h
1822 Remove unneccesary or erroneous checks. There were two
1823 metadata validation checks which made sure that the blob
1824 sizes were the same as some magic numbers compiled into the code.
1825 This is wrong as it breaks any forwards compatibility that may
1828 Checks were also present that made sure that unregistered type
1829 blobs had a value of 0 in the g-type offset field. This is
1830 unneccessary. If a type blob is unregistered then any value
1831 in its g-type field is simply invalid.
1833 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1835 * girepository/ginfo.c
1836 * girepository/gmetadata.c
1837 * girepository/gmetadata.h
1839 Change the metadata format to have a standard header
1840 for all the type blobs. Merge the SimpleTypeBlob
1841 and InterfaceTypeBlob into a union. A union of these
1842 two blobs existed previously but was not explicit
1843 in the metadata format.
1845 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1847 * tools/gidlcompilercontext.c
1848 * tools/gidlcompilercontext.h
1849 * tools/gidlcompilerentrynode.c
1850 * tools/gidlcompilerentrynode.h
1851 * tools/gidlcompilertypenode.c
1852 * tools/gidlcompilertypenode.h
1854 Add code to compile a tree of GIdlNodes to
1855 a 'C' struct representing the metadata.
1856 This is to aid cross-compiling. Previously
1857 the g-idl-compiler created a binary blob with
1858 data written in the byte order and alignment
1859 of the tool rather than the intended target.
1861 Cleaned up and improved by Johan and Robert :-)
1863 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1865 * girepository/ginvoke.c
1866 * girepository/girepository.h
1867 * girepository/gmetadata.c
1868 * girepository/gmetadata.h
1870 * tools/gidlparser.c
1871 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
1872 to avoid confusion with the interface blob.
1875 * tools/gidlparser.c
1876 Remove magic numbers and replace with type-tag
1877 enumeration symbols.
1879 * girepository/gmetadata.c
1880 Add validate declaration.
1882 2008-03-10 Jürg Billeter <j@bitron.ch>
1884 * tools/gidlparser.c: (parse_type_internal):
1885 * tools/scannerlexer.l:
1886 * tools/scannerparser.y:
1887 Support C99 _Bool type in scanner.
1889 2008-03-10 Jürg Billeter <j@bitron.ch>
1891 * tests/parser/Foo-expected.gidl:
1892 * tests/parser/foo-object.h:
1893 * tests/parser/foo.c: (foo_enum_method):
1894 * tools/scanner.c: (g_igenerator_process_function_symbol):
1895 Don't skip functions that are defined in the namespace of a type
1896 that doesn't support methods, as for example enums.
1898 2008-03-10 Johan Dahlin <johan@gnome.org>
1900 * gidl.dtd: Remove, we're using relaxng for now
1902 * tests/parser/Foo-expected.gidl:
1903 * tests/parser/foo-object.h:
1904 * tests/parser/foo.c:
1905 Rename the enum/flags get_type functions to include the whole type.
1907 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
1909 * tools/gidlwriter.c (enum_generate): added "type-name",
1910 "get-type" and "deprecated" missing arguments.
1911 * tests/parser/Foo-expected.gidl:
1912 * tests/parser/foo-object.h: test enum type, and no type.
1914 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
1917 Consistent checks, add missing 'test'
1919 2008-03-05 Havoc Pennington <hp@redhat.com>
1921 * configure.ac: Take advantage of a libffi.pc if one exists, as it
1922 does on Fedora 8. Make libffi a hard requirement, since it was in
1923 practice anyway (was not really conditional in the code or
1924 makefile, only in configure).
1926 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1928 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
1929 reviewed by: Johan Dahlin <johan@gnome.org>
1931 * tests/Makefile.am:
1932 * tests/roundtrips.sh:
1933 Modify the roundtrips test so that they do not use the
1934 --raw option of the gidl compiler but instead compile a
1935 shared library to use with g_module.
1937 * tests/invoke/Makefile.am:
1938 * tests/invoke/invoke.c:
1939 Modify the invoke tests to build a shared library rather
1940 than use the --raw option.
1942 * tests/invoke/invoke-namespace-find.sh: Removed:
1943 Noone knows why this was here, so removed.
1945 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
1947 * tools/scanner.c: (g_igenerator_process_function_symbol):
1948 Move g_idl_node_can_have_member test later, as it broke spotting
1949 get_type's for nodes that can't have members.
1951 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
1954 * tools/gidlnode.c: (g_idl_node_can_have_member):
1955 Add g_idl_node_can_have_member.
1957 * tools/scanner.c: (g_igenerator_process_function_symbol):
1958 Use g_idl_node_can_have_member to test if we should add a function
1959 as a member of the type node.
1961 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
1963 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
1965 * tests/parser/Makefile.am:
1966 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
1968 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
1970 * tools/scanner.c: (main):
1971 Ignore -pthread when passed to g-idl-scanner.
1973 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
1975 * tools/grealpath.h: Added:
1976 * tools/scanner.c: (main):
1977 * tools/scannerlexer.l:
1978 * tools/Makefile.am:
1979 Always use absolute paths with symbolic links resolved when
1980 comparing filenames.
1982 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
1984 * gobject-introspection.pc.in:
1985 Provide variables for g-idl-parser, scanner and compiler in the
1988 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
1991 * girepository/Makefile.am:
1992 * tools/Makefile.am:
1993 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
1995 2008-02-10 Johan Dahlin <johan@gnome.org>
1997 * tests/parser/Foo-expected.gidl:
1998 * tests/parser/foo-object.h:
1999 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
2000 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
2003 2008-02-10 Johan Dahlin <johan@gnome.org>
2005 * tests/parser/Foo-expected.gidl:
2006 * tests/parser/foo-object.h:
2007 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
2008 Add enum and flags test.
2010 2008-02-10 Johan Dahlin <johan@gnome.org>
2014 * girepository/Makefile.am:
2015 Make 'make distcheck' work again.
2017 2008-02-10 Johan Dahlin <johan@gnome.org>
2019 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
2022 * tests/parser/Makefile.am: Only create Foo.gidl when running make
2023 check, eg exclude it from BUILT_SOURCES.
2025 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2030 * girepository/Makefile.am:
2031 * m4/Makefile.am: Added:
2032 * m4/as-compiler-flag.m4: Added:
2033 * m4/gcov.m4: Added:
2034 * tools/Makefile.am:
2035 Add ability to generate a coverage report.
2036 Adds configure option --enable-gcov and make rule 'check-coverage'.
2038 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2042 * gidl/Makefile.am: Added:
2043 * girepository/Makefile.am: Added:
2044 * src/Makefile.am: Renamed to tools/Makefile.am:
2045 * src/compiler.c: Renamed to tools/compiler.c:
2046 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
2047 * src/generate.c: Renamed to tools/generate.c:
2048 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
2049 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
2050 * src/gidlnode.c: Renamed to tools/gidlnode.c:
2051 * src/gidlnode.h: Renamed to tools/gidlnode.h:
2052 * src/gidlparser.c: Renamed to tools/gidlparser.c:
2053 * src/gidlparser.h: Renamed to tools/gidlparser.h:
2054 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
2055 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
2056 * src/ginfo.c: Renamed to girepository/ginfo.c:
2057 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
2058 * src/girepository.c: Renamed to girepository/girepository.c:
2059 * src/girepository.h: Renamed to girepository/girepository.h:
2060 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
2061 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
2062 * src/scanner.c: Renamed to tools/scanner.c:
2063 * src/scanner.h: Renamed to tools/scanner.h:
2064 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
2065 * src/scannerparser.y: Renamed to tools/scannerparser.y:
2066 * tests/invoke/Makefile.am:
2067 Split src/ into girepository/ and tools/
2071 * girepository/Makefile.am:
2072 * tests/Makefile.am:
2073 * tests/invoke/Makefile.am:
2074 * tests/parser/Makefile.am:
2075 * tests/roundtrips.sh:
2076 * tools/Makefile.am:
2077 Make distcheck work.
2079 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
2081 * tests/invoke/invoke.c: (main):
2082 * tests/invoke/testfns.c: (test6), (test7):
2083 * tests/invoke/testfns.xml:
2084 Add tests for invokation with a GList argument.
2085 Also tests caller-owns return values.
2087 2008-02-04 Rob Taylor <robtaylor@floopily.org>
2090 Add some documentation for GICallableInfo
2092 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
2095 Correct syntax errors in the DTD file.
2097 * relaxng/c-types.xml:
2098 * relaxng/g-types.xml:
2100 Add a RelaxNG specification for the GObject Introspection XML data.
2101 The Specification has validated all of the test files.
2103 2008-01-25 Rob Taylor <robtaylor@floopily.org>
2105 * tests/roundtrips.sh:
2106 * tests/struct.test:
2107 Add roundtrip tests for structs.
2109 2008-01-11 Johan Dahlin <johan@gnome.org>
2111 * src/scanner.c (g_igenerator_process_function_symbol):
2112 Refactor out g_idle_node_add_member.
2113 (create_node_from_gtype, create_node_from_ctype):
2114 Use case instead of if...else
2115 (get_type_from_type_id):
2116 Rename to create_node_from_gtype
2117 (get_type_from_ctype):
2118 Rename to create_node_from_ctype
2120 Rename ginode -> node, gitype -> type, gifunc -> func.
2122 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
2123 Two new functions, refactor out of scanner.c
2125 * src/scanner.c: (g_igenerator_process_function_symbol):
2126 * src/scannerlexer.l:
2127 Do not save the content of the deprecated variable, only
2130 2008-01-11 Johan Dahlin <johan@gnome.org>
2132 * tests/parser/foo-object.h: Add a couple of comment parser tests.
2134 2008-01-11 Jürg Billeter <j@bitron.ch>
2136 * src/scannerlexer.l:
2137 Fix GTK-Doc parsing.
2139 2008-01-11 Jürg Billeter <j@bitron.ch>
2141 * src/scannerlexer.l:
2142 Fix GTK-Doc parsing.
2144 2008-01-11 Jürg Billeter <j@bitron.ch>
2146 * src/scanner.c: (lookup_symbol):
2147 Return unresolved name if we find unknown symbol.
2149 2008-01-11 Jürg Billeter <j@bitron.ch>
2151 * src/scanner.c: (g_igenerator_generate):
2152 Initialize GObject to fix scanning interface properties.
2154 * tests/parser/Foo-expected.gidl:
2155 * tests/parser/foo-object.h:
2156 * tests/parser/foo.c: (foo_interface_get_type):
2157 Test interfaces with GObject prerequisite.
2159 * tests/parser/Makefile.am:
2160 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
2162 2007-12-27 Johan Dahlin <johan@gnome.org>
2164 * src/scannerlexer.l:
2165 Parse gtk-doc comments.
2167 * src/gidlwriter.c: (function_generate):
2168 Reorganize, avoid duplication and add support for
2169 writing deprecated functions.
2171 * src/scannerparser.y:
2173 Add new structure CDirective and functions to create/free them.
2175 * src/scanner.c: (g_igenerator_process_function_symbol),
2176 (g_igenerator_process_unregistered_struct_typedef),
2177 (g_igenerator_process_struct_typedef),
2178 (g_igenerator_process_union_typedef),
2179 (g_igenerator_process_enum_typedef),
2180 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
2181 (g_igenerator_start_preprocessor):
2182 Parse @deprecated directive for functions.
2183 Remove some more C99isms.
2184 Send in -C to cpp to avoid stripping comments.
2186 * tests/parser/foo-object.h:
2187 * tests/parser/Foo-expected.gidl:
2188 Add deprecated directive
2190 2007-12-27 Johan Dahlin <johan@gnome.org>
2192 * src/scannerlexer.l (intsuffix): Add emacs mode line and
2193 escape ' and " so it looks more like C.
2196 Unlink temporary file used.
2198 2007-12-27 Johan Dahlin <johan@gnome.org>
2200 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
2201 (g_igenerator_start_preprocessor), (main):
2203 * src/scannerparser.y:
2204 Plug a couple of simple memory leaks.
2206 2007-12-27 Johan Dahlin <johan@gnome.org>
2208 * src/scanner.c: (g_igenerator_parse_macros),
2209 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
2212 * src/scannerparser.y:
2213 * tests/parser/Makefile.am:
2215 Improve error reporting, return when the preprocessor fails.
2216 Add a verbose parameter, to aid debugging.
2217 Revert to using a temporary file to communicate between the
2218 preprocessor and the parser, because we need to wait for
2219 the exit code from the pre-processor before starting to parse.
2221 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
2223 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
2224 cparser.y to scannerparser.y
2226 2007-12-11 Johan Dahlin <johan@gnome.org>
2230 * src/scanner.c: (g_igenerator_new):
2232 Get rid of the global the_generator variable.
2234 2007-12-10 Johan Dahlin <johan@gnome.org>
2236 * src/scanner.c (main): Add an output option,
2237 add checks for required parameters
2240 set BUILD_SOURCES and CLEANFILES properly
2242 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
2243 (g_writer_write_indent), (g_writer_write_unindent),
2244 (field_generate), (value_generate), (constant_generate),
2245 (property_generate), (function_generate), (vfunc_generate),
2246 (signal_generate), (interface_generate), (struct_generate),
2247 (union_generate), (boxed_generate), (enum_generate),
2248 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
2250 * src/scanner.c: (g_igenerator_generate):
2252 * src/scannerwriter.c:
2254 Refactor scannerwriter to only be tied to a GIdlModule and move
2255 it (again!) to gidlwriter.c. Change the writer function to take
2258 2007-12-10 Johan Dahlin <johan@gnome.org>
2261 * src/scanner.c: (g_igenerator_generate):
2263 * src/scannerwriter.c: (g_igenerator_write_inline),
2264 (g_igenerator_write), (g_igenerator_write_indent),
2265 (g_igenerator_write_unindent), (field_generate), (value_generate),
2266 (constant_generate), (property_generate), (function_generate),
2267 (vfunc_generate), (signal_generate), (interface_generate),
2268 (struct_generate), (union_generate), (boxed_generate),
2269 (enum_generate), (node_generate), (module_generate),
2270 (g_scanner_write_file):
2272 Move the scanner gidl writing to a separate source file.
2274 2007-12-10 Johan Dahlin <johan@gnome.org>
2279 Move over all CType construction functions.
2281 * tests/parser/Makefile.am:
2282 Be verbose when printing parsing tests results.
2284 2007-12-10 Johan Dahlin <johan@gnome.org>
2286 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
2287 preprocessor handling to here. Start cpp insteado of cc -E,
2288 always include -U__GNUC__, since it's specific to the preprocessor
2291 * tests/parser/Makefile.am (check-local): Silent diff and skip
2292 -U__GNUC__ which is always defined now
2294 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
2296 reviewed by: <delete if not using a buddy>
2298 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
2299 * tests/parser/Makefile.am:
2301 2007-12-09 Johan Dahlin <johan@gnome.org>
2304 Use GOption for command line options.
2305 (g_igenerator_new, main): Simplify constructor and they way
2306 parameters are passed into it.
2312 * src/gen-introspect.c:
2313 * src/gen-introspect.h:
2315 Rename gen-introspect.[ch] to scanner.[ch]
2317 2007-12-09 Johan Dahlin <johan@gnome.org>
2321 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
2322 don't make the repository library and the other utilites link against
2325 * src/gen-introspect.c: (g_igenerator_create_object),
2326 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2327 (g_igenerator_create_enum), (g_igenerator_create_flags),
2328 (g_igenerator_process_module_symbol),
2329 (g_igenerator_process_module), (g_igenerator_generate), (main):
2330 * src/gen-introspect.h:
2331 Refactor g_igenerator_process_types into smaller pieces.
2333 * tests/parser/Makefile.am:
2334 Depend on the gen-introspect binary
2336 2007-12-09 Johan Dahlin <johan@gnome.org>
2338 * src/gen-introspect.c (g_igenerator_process_types):
2339 Break into smaller pieces, one for each generated node type.
2341 2007-12-08 Johan Dahlin <johan@gnome.org>
2343 * src/gen-introspect.c: (g_igenerator_process_types),
2344 (g_igenerator_add_module):
2345 * tests/parser/Foo-expected.gidl:
2346 * tests/parser/foo-object.h:
2347 * tests/parser/foo.c: (foo_subobject_class_init),
2348 (foo_subobject_init):
2350 Add a subobject test and make sure to register defined classes
2351 in the lookup symbol hash table.
2353 2007-12-08 Johan Dahlin <johan@gnome.org>
2357 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
2358 (g_igenerator_process_types), (g_igenerator_add_module),
2359 (g_igenerator_add_include_idl), (main):
2360 * src/gen-introspect.h:
2361 * tests/parser/Makefile.am:
2362 * tests/parser/Foo-expected.gidl:
2364 Change the gen-introspect to generate namespaced module names,
2365 such as GLib.Object instead of GObject.
2366 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
2367 add a --include-idl parameter to gen-introspect,
2368 and update the parser test.
2370 2007-12-08 Johan Dahlin <johan@gnome.org>
2372 * src/gen-introspect.c:
2373 Move main to the end of the file and attempt to make it valid
2376 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
2377 we're not quite ready to generate metadata yet.
2382 Add a simple gen-introspect parser test
2384 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
2386 reviewed by: Johan Dahlin <johan@gnome.org>
2389 * gobject-introspection.pc.in:
2391 * src/compiler.c: (format_output), (write_out_metadata), (main):
2392 * src/gen-introspect.c: (main):
2393 * src/gen-introspect.h:
2394 * src/generate.c: (write_callable_info), (write_repository),
2395 (load_metadata), (main):
2396 * src/gidlmodule.c: (g_idl_module_new),
2397 (g_idl_module_build_metadata):
2399 * src/gidlparser.c: (start_element_handler):
2400 * src/ginfo.c: (g_info_new), (g_info_from_entry),
2401 (g_base_info_get_name), (g_base_info_get_namespace),
2402 (g_base_info_is_deprecated), (g_base_info_get_annotation),
2403 (g_base_info_get_metadata), (g_function_info_get_symbol),
2404 (g_function_info_get_flags), (g_function_info_get_property),
2405 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
2406 (g_callable_info_may_return_null),
2407 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
2408 (g_callable_info_get_arg), (g_arg_info_get_direction),
2409 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
2410 (g_arg_info_is_optional), (g_arg_info_may_be_null),
2411 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
2412 (g_type_info_get_tag), (g_type_info_get_param_type),
2413 (g_type_info_get_interface), (g_type_info_get_array_length),
2414 (g_type_info_is_zero_terminated),
2415 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
2416 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
2417 (g_value_info_get_value), (g_field_info_get_flags),
2418 (g_field_info_get_size), (g_field_info_get_offset),
2419 (g_registered_type_info_get_type_name),
2420 (g_registered_type_info_get_type_init),
2421 (g_struct_info_get_n_fields), (g_struct_info_get_field),
2422 (g_struct_info_get_n_methods), (g_struct_info_get_method),
2423 (find_method), (g_struct_info_find_method),
2424 (g_enum_info_get_n_values), (g_enum_info_get_value),
2425 (g_object_info_get_parent), (g_object_info_get_type_name),
2426 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
2427 (g_object_info_get_interface), (g_object_info_get_n_fields),
2428 (g_object_info_get_field), (g_object_info_get_n_properties),
2429 (g_object_info_get_property), (g_object_info_get_n_methods),
2430 (g_object_info_get_method), (g_object_info_find_method),
2431 (g_object_info_get_n_signals), (g_object_info_get_signal),
2432 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
2433 (g_object_info_get_n_constants), (g_object_info_get_constant),
2434 (g_interface_info_get_n_prerequisites),
2435 (g_interface_info_get_prerequisite),
2436 (g_interface_info_get_n_properties),
2437 (g_interface_info_get_property), (g_interface_info_get_n_methods),
2438 (g_interface_info_get_method), (g_interface_info_find_method),
2439 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
2440 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
2441 (g_interface_info_get_n_constants),
2442 (g_interface_info_get_constant), (g_property_info_get_flags),
2443 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
2444 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
2445 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
2446 (g_constant_info_get_value), (g_union_info_get_n_fields),
2447 (g_union_info_get_field), (g_union_info_get_n_methods),
2448 (g_union_info_get_method), (g_union_info_is_discriminated),
2449 (g_union_info_get_discriminator_offset),
2450 (g_union_info_get_discriminator):
2451 * src/ginvoke.c: (g_function_info_invoke):
2452 * src/girepository.c: (g_irepository_register),
2453 (g_irepository_unregister), (g_irepository_get_default),
2454 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
2455 (g_irepository_get_info), (g_irepository_find_by_name),
2456 (g_irepository_get_shared_library),
2457 (g_irepository_build_search_path), (g_irepository_register_file),
2458 (g_irepository_error_quark):
2459 * src/girepository.h:
2460 * src/gmetadata.c: (g_metadata_get_dir_entry),
2461 (g_metadata_check_sanity), (validate_header),
2462 (validate_array_type_blob), (validate_iface_type_blob),
2463 (validate_param_type_blob), (validate_error_type_blob),
2464 (validate_type_blob), (validate_arg_blob),
2465 (validate_signature_blob), (validate_function_blob),
2466 (validate_callback_blob), (validate_constant_blob),
2467 (validate_value_blob), (validate_field_blob),
2468 (validate_property_blob), (validate_signal_blob),
2469 (validate_vfunc_blob), (validate_struct_blob),
2470 (validate_enum_blob), (validate_object_blob),
2471 (validate_interface_blob), (validate_errordomain_blob),
2472 (validate_union_blob), (validate_blob), (validate_directory),
2473 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
2474 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
2475 (g_metadata_new_from_mapped_file), (g_metadata_free),
2476 (g_metadata_set_module), (g_metadata_get_namespace):
2478 * tests/Makefile.am:
2479 * tests/invoke/Makefile.am:
2480 * tests/invoke/invoke-namespace-find.sh:
2481 * tests/invoke/invoke.c: (main):
2483 Add a namespace/shared library mapping. fixes #313268.
2485 2007-12-03 Johan Dahlin <johan@gnome.org>
2487 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
2490 2007-11-30 Jürg Billeter <j@bitron.ch>
2496 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
2497 (g_igenerator_write_inline), (g_igenerator_write),
2498 (g_igenerator_write_indent), (g_igenerator_write_unindent),
2499 (field_generate), (value_generate), (constant_generate),
2500 (property_generate), (function_generate), (vfunc_generate),
2501 (signal_generate), (interface_generate), (struct_generate),
2502 (union_generate), (boxed_generate), (enum_generate),
2503 (node_generate), (module_generate), (get_type_from_type_id),
2504 (str_replace), (g_igenerator_process_properties),
2505 (g_igenerator_process_signals), (g_igenerator_process_types),
2506 (get_type_from_ctype), (g_igenerator_process_function_symbol),
2507 (g_igenerator_process_unregistered_struct_typedef),
2508 (g_igenerator_process_struct_typedef),
2509 (g_igenerator_process_union_typedef),
2510 (g_igenerator_process_enum_typedef),
2511 (g_igenerator_process_function_typedef),
2512 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2513 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
2514 (g_igenerator_generate), (main), (csymbol_new),
2515 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
2516 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
2517 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
2518 (eat_hspace), (eat_line), (read_identifier),
2519 (g_igenerator_parse_macros):
2520 * src/gen-introspect.h:
2522 Import gen-introspect to generate introspection information by
2525 2007-11-30 Jürg Billeter <j@bitron.ch>
2527 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
2529 2007-11-30 Jürg Billeter <j@bitron.ch>
2531 * src/gidlparser.c: (end_element_handler): Don't leave requires
2534 2007-11-29 Johan Dahlin <johan@gnome.org>
2536 * src/gidlparser.c (parse_type_internal): Add char,
2537 gchar and guchar to the builtin types.
2539 2007-11-26 Johan Dahlin <johan@gnome.org>
2541 * src/ginfo.c: (g_object_info_get_type_name),
2542 (g_object_info_get_type_init):
2543 * src/girepository.c: (g_irepository_is_registered):
2544 * src/girepository.h:
2546 Add g_object_info_get_type_name, g_object_info_get_type_init and
2547 g_irepository_is_registered.
2549 2006-08-14 Jürg Billeter <j@bitron.ch>
2551 * src/gidlparser.c: (end_element_handler): Don't leave
2552 namespace and implements states too early.
2555 2007-11-26 Johan Dahlin <johan@gnome.org>
2557 * src/gmetadata.c (validate_struct_blob):
2558 pass blob_type to validate_function_blob instead of
2559 hard-coding BLOB_TYPE_STRUCT.
2561 Patch by Torsten Schoenfeld, fixes #314190
2563 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
2565 * src/compiler.c, src/generate.c, src/gidlnode.c,
2566 src/gidlparser.c, src/ginfo.c, src/girepository.c,
2567 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
2568 warnings about return values, signedness mismatches, unused
2569 variables, and unhandles enum values in switch statements.
2571 * tests/invoke/Makefile.am: Don't install the invoke test program.
2572 Add -I ../../src to the cflags used for the test functions files.
2574 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2576 * src/girepository.h: Export g_invoke_error_quark.
2578 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2580 * src/ginvoke.c: Remove the fallback implementation of
2581 g_function_info_invoke since we now formally depend on libffi.
2583 2005-07-25 Matthias Clasen <mclasen@redhat.com>
2585 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
2586 Remove these files from cvs, as they are now generated.
2588 * src/gmetadata.c (validate_iface_type_blob): Don't
2589 complain if blob->pointer is not set, since that
2590 happens for enum and flag types. (#308935, Gustavo
2593 * Commit an autoconf-conversion patch by
2594 Gustavo Carneiro (#308708)
2596 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2598 * src/compiler.c (main): Use it here to validate
2599 the generated metadata.
2601 * src/gmetadata.[hc]: Add code to validate a
2604 * metadata-format.txt: Updates
2606 2005-05-22 Matthias Clasen <mclasen@redhat.com>
2608 * tests/*: Add struct offsets to field and vfunc
2611 * src/generate.c (write_vfunc_info): Write offset
2612 information for vfuncs.
2614 * src/gidlnode.c (g_idl_node_build_metadata): Write
2615 the struct offsets into the metadata.
2617 * src/gidlparser.c: Parse the offset attributes of
2618 field and vfunc elements.
2620 * src/gidlnode.h: Add offset members to field and
2623 2005-05-21 Matthias Clasen <mclasen@redhat.com>
2627 * gidl.dtd: Updates.
2629 * src/g-idl-offsets.pl: A perl script which reads a .gidl
2630 file, creates, compiles and runs a C file, and folds the
2631 resulting struct offsets back into the .gidl file.
2633 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2635 * src/gidlparser.c (start_field): Make fields in objects
2638 * src/gidlmodule.c: Include string.h
2643 * metadata-format.txt: Cleanup basic types.
2644 * src/*: Adapt to the changes.
2645 * tests/*: Adapt to the changes.
2646 * examples/gdk-pixbuf.gidl: Adapt to the changes.
2648 * src/gidlnode.c (g_idl_node_get_size): Report the correct
2649 size for enum blobs.
2650 (g_idl_node_get_full_size): Report the correct size for
2653 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
2654 error checking for blob sizes.
2656 2005-05-19 Matthias Clasen <mclasen@redhat.com>
2658 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
2659 interface types for which is_pointer is FALSE, e.g. enums.
2661 * src/gidlnode.c (g_idl_node_get_full_size)
2662 * src/gidlparser.c (parse_type_internal):
2663 * src/generate.c (write_type_info): Support unspecialized
2664 lists, hashtables and errors. Also emit a '*' after these.
2668 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2672 * metadata-format.txt: Cleanups by Maciej Katafiasz.
2674 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2676 * src/*.c: Change the directory to be addressed by
2677 1-based indexes, and use an index of zero to mean
2680 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2682 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
2684 * tests/union.test: Add a union test.
2686 * src/generate.c: Handle unions.
2688 * src/girepository.h:
2689 * src/ginfo.c: Add GIUnionInfo and functions to access it.
2691 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
2693 * src/gidlparser.c (start_union): Parse <union> elements.
2695 * src/gidlnode.h: Add a GIdlNodeUnion.
2697 * gidl.dtd: Add a <union> element.
2699 * src/gmetadata.c (g_metadata_check_sanity): Check
2702 * src/gmetadata.h: Add union_blob_size to Header,
2705 * metadata-format.txt: Add a UnionBlob.
2707 2005-05-13 Matthias Clasen <mclasen@redhat.com>
2709 * tests/*: Update testcases.
2711 * src/generate.c (write_callable_info): Don't forget to
2712 write transfer and null-ok attributes for return types
2715 * src/girepository.h:
2716 * src/ginfo.c (g_callable_info_may_return_null):
2717 New function to find out if a function may return NULL.
2719 * src/compiler.c (format_output): Make the generated
2722 * README: Point to a recent libffi snapshot.
2724 * tests/invoke/*: Some invoke tests.
2726 * src/Makefile: Add ginvoke.c and the necessary
2729 * src/girepository.h (g_function_info_invoke): Add
2732 * src/ginvoke.c (g_function_info_invoke): Initial
2733 implementation of invoke functionality based on libffi.
2735 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
2736 strings and types hash tables in the right order when
2738 (find_entry_node): Free the name parts.
2740 2005-05-12 Johan Dahlin <johan@gnome.org>
2742 * src/generate.c: Generate consistent end tags.
2746 2005-05-12 Matthias Clasen <mclasen@redhat.com>
2750 * src/gidlparser.c (start_function): Actually add
2751 methods to objects. (Steven Walter)
2753 * src/girepository.h:
2754 * src/ginfo.c: Rename Transfer and Direction to
2755 GITransfer and GIDirection. (Torsten Schoenfeld)
2757 * tests/*: Make tests work with the changes in name
2760 * src/gidlnode.c (find_entry_node): Parse qualified
2761 names and generate xref nodes for them if needed. Don't
2762 require all modules to be loaded any more.
2764 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
2767 * src/ginfo.c (g_object_info_get_parent): Return NULL
2768 if blob->parent is 0. Still need to make sure index
2771 * src/generate.c: Generate qualified names when
2772 referring to non-local types. Emit transfer attribute
2775 * src/compiler.c (format_output): Put the function
2776 attributes where gcc accepts them.
2778 2005-05-11 Matthias Clasen <mclasen@redhat.com>
2780 * src/compiler.c (main): Add a --verbose cmdline option
2781 and only log messages if it is specified.
2784 * src/gidlnode.c (init_stats, dump_stats): Collect some
2785 statistics on string and type sharing.
2787 * src/gidlmodule.c (g_idl_module_build_metadata): Use
2788 g_message() instead of fprintf().
2790 * src/gidlnode.c (g_idl_node_free): Make this more robust.
2791 (g_idl_node_get_size): Implement for structs.
2792 (g_idl_node_get_full_size): Handle parent being NULL.
2793 (serialize_type): Handle lookup failures more gracefully.
2795 2005-05-10 Matthias Clasen <mclasen@redhat.com>
2797 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
2798 size calculation for 2-parameter types and for objects.
2800 * src/compiler.c: Add a cmdline option for debug output
2801 and install a log handler to implement it.
2802 * src/gidlnode.c: Add some debug spew.
2806 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
2807 forget to count the module name when calculating the
2808 required size for the metadata.
2811 * src/gidlparser.c: Fix compiler warnings.
2813 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2815 * src/compiler.c (main): Free the option context.
2817 * gidl.dtd: Clean up handling of names. All elements
2818 have a "name", only the elements corresponding to
2819 actual callable functions (function, method, constructor),
2820 have an additional "symbol" attribute holding the
2821 dlsym()-able function name.
2823 * src/generate.c: Adapt to generate xml matching the
2827 * src/gidlnode.c: Adapt to parse the new dtd.
2829 * tests/*.test: Adjust to the new dtd.
2831 * metadata-format.txt:
2832 * src/gmetadata.h: Remove the short_name field
2834 * src/gmetadata.c: Shrink size of ValueBlob to 12.
2835 * src/girepository.h:
2836 * src/ginfo.c (g_value_info_get_short_name): Removed
2838 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2840 * gidl.dtd: Allow constructors for boxed types,
2841 patch by Jonathan Blandford.
2844 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2846 * --- Initial import ---