1 2008-08-21 Colin Walters <walters@verbum.org>
3 * tests/scanner/drawable-expected.gir,
4 * tests/scanner/drawable.c,
5 * tests/scanner/drawable.h:
8 2008-08-21 Colin Walters <walters@verbum.org>
10 * giscanner/glibtransformer.py: Compute prefix
11 by searching through the symbol for bits
12 rather than going directly from ctype; this fixes
15 2008-08-21 Colin Walters <walters@verbum.org>
17 * giscanner/glibtransformer.py: Also try squashing
18 underscores from namespace, fixes webkit_web_view_new.
20 2008-08-21 Colin Walters <walters@verbum.org>
22 * giscanner/glibtransformer.py: More ctor work,
23 avoid having gtk_window_group_new end up under
26 2008-08-21 Colin Walters <walters@verbum.org>
28 * giscanner/glibtransformer.py: Much simpler approach
29 of mapping uscored names to classes.
30 * giscanner/utils.py: Remove unnecessary function.
32 2008-08-21 Johan Dahlin <johan@gnome.org>
34 * girepository/girepository.c (g_irepository_require):
35 Plug memory leak and avoid using freed memory.
36 Resolve the whole module path, here as well.
38 2008-08-21 Colin Walters <walters@verbum.org>
40 * giscanner/glibtransformer.py: Look up all permutations
41 of class names when scanning methods/ctors based on
42 the prefix instead of using the return value. This
43 associates gtk_window_new with the right class.
45 2008-08-21 Colin Walters <walters@verbum.org>
47 * girepository/girmodule.c (g_ir_module_build_typelib):
48 Revert change to increment header_size; we do that in
51 2008-08-21 Colin Walters <walters@verbum.org>
53 * girepository/girnode.c (write_string): Tweak to
54 use UINT instead of INT. Not likely to matter.
55 * girepository/girmodule.c (g_ir_module_build_typelib):
56 Add to header_offset as well for header strings
57 to match what write_string does.
58 * girepository/gtypelib.c: Replace is_name with
59 validate_name, which more strongly validates and
60 handles errors in a better way. Update all callers.
61 * giscanner/glibtransformer.py: Handle constructors
64 2008-08-21 Johan Dahlin <johan@gnome.org>
66 * gir/Makefile.am (typelibs_DATA): Build and
67 install the Gio.typelib too
69 * girepository/gtypelib.c (_g_typelib_init):
70 Use g_module_build_path to resolve the shlib name
72 2008-08-21 Colin Walters <walters@verbum.org>
74 * gir/Makefile.am: CLEANFILES typelibs too.
76 2008-08-21 Johan Dahlin <johan@gnome.org>
78 * giscanner/glibtransformer.py:
79 Do not send .la files through find_library.
81 2008-08-21 Colin Walters <walters@verbum.org>
83 * girepository/girparser.c (g_irepository_require):
84 Fix one small leak in error case.
86 2008-08-21 Johan Dahlin <johan@gnome.org>
89 Parse glibconfig.h as well and install the compiled
92 2008-08-21 Johan Dahlin <johan@gnome.org>
95 * giscanner/glibtransformer.py:
97 Do not hard-core library names in the Makefile, reuse
98 ctypes find_library instead.
100 2008-08-21 Johan Dahlin <johan@gnome.org>
102 * girepository/girparser.c (resolve_aliases):
103 Remove compilation warnings
105 2008-08-21 Johan Dahlin <johan@gnome.org>
107 * girepository/girepository.c (g_irepository_require):
108 Rewrap and fix double free bug by leaking a bit.
110 2008-08-20 Colin Walters <walters@verbum.org>
112 * girepository/girepository.c: Add new function
113 g_irepository_get_typelib_path which tells
114 us from where we loaded a namespace.
116 2008-08-20 Colin Walters <walters@verbum.org>
118 * tests/scanner/*-expected.gir: Adjust for
119 added shared-library.
120 * giscanner/giwriter.py: Make pylint happy.
122 2008-08-20 Colin Walters <walters@verbum.org>
124 * girepository/girmodule.c (g_ir_module_build_typelib):
125 Calculate size correctly, avoid use-after-free.
127 2008-08-20 Colin Walters <walters@verbum.org>
129 * girepository/girepository.c: Remove
130 g_irepository_register_file in favor of
131 g_irepository_require. There are two
132 possible deployment scenarios for typelibs:
133 First, separate in $DATADIR/gitypelibs/. Second,
134 they may be embedded in shlibs. However since
135 the first is now the normal case, the API is
138 Refactor internals to look up typelibs for
139 namespaces just-in-time, but we expect
140 consumers to call g_irepository_require.
142 Also, add some docs. No one has died from that
144 * gir/Makefile.am: Need --library for glib.
145 * giscanner/girwriter.py: Write out shared-library.
146 * tools/g-ir-writer: Take the first --library
147 argument as the target of shared-library. In
148 the future we should make this nicer with pkg-config
151 2008-08-20 Colin Walters <walters@verbum.org>
153 * girepository/girparser.py: And parse them.
155 2008-08-20 Johan Dahlin <johan@gnome.org>
157 * giscanner/glibast.py: Add gshort/gushort types
159 2008-08-20 Colin Walters <walters@verbum.org>
161 * gir/Makefile.am: Rename .gir files using GI namespace.
162 * girepository/girepository.c: Use XDG_DATA_DIRS for
163 looking up typelibs. Also typelibs are now suffixed
165 * tests/invoke/Makefile.am: Only use metadata.
166 * girepository/Makefile.am: Remove unnecessary include.
167 * tests/scanner/Makefile.am: Update using GI namespaces
168 for scanner includes.
170 2008-08-20 Colin Walters <walters@verbum.org>
172 * girepository/transformer.py: Suppress aliases whose
174 * girepository/ast.py: Define some more aliases.
176 2008-08-20 Colin Walters <walters@verbum.org>
178 * girepository/girparser.c: Avoid alias infloops.
180 2008-08-20 Colin Walters <walters@verbum.org>
182 * tests/scanner/foo-expected.gir: Fix expected list type.
184 2008-08-20 Johan Dahlin <johan@gnome.org>
186 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
187 Add a workaround for #548689.
188 We can now compile gtk!
190 2008-08-20 Colin Walters <walters@verbum.org>
192 * giscanner/glibtransformer.py: Try to look up
193 aliases using the c:type too.
195 2008-08-20 Colin Walters <walters@verbum.org>
197 * girepository/girparser.c: Parse union fields.
199 2008-08-20 Johan Dahlin <johan@gnome.org>
201 * giscanner/ast.py: Make time_t an alias for long
203 * gir/gio-2.0-good.gir:
204 * gir/glib-2.0-good.gir:
205 * gir/gobject-2.0-good.gir:
207 * giscanner/glibtransformer.py:
208 Do not delete Class structures, we need them in gdk/gtk.
209 * tests/scanner/drawable-expected.gir:
210 * tests/scanner/foo-expected.gir:
211 * tests/scanner/utility-expected.gir:
214 2008-08-20 Johan Dahlin <johan@gnome.org>
216 * tests/scanner/Makefile.am:
217 * tests/scanner/annotation-expected.gir:
218 * tests/scanner/annotation.c (annotation_object_class_init),
219 (annotation_object_init), (annotation_object_method),
220 (annotation_object_in), (annotation_object_out),
221 (annotation_object_inout), (annotation_object_inout2),
222 (annotation_object_inout3), (annotation_object_calleeowns),
223 (annotation_object_calleesowns), (annotation_object_get_strings),
224 (annotation_object_with_voidp), (annotation_object_get_objects),
225 (annotation_object_create_object), (annotation_object_allow_none):
226 * tests/scanner/annotation.h:
227 * tests/scanner/foo-expected.gir:
228 * tests/scanner/foo.c:
229 * tests/scanner/foo.h:
230 Split out annotation tests out of foo
232 2008-08-20 Johan Dahlin <johan@gnome.org>
234 * tests/scanner/Foo-expected.gir:
235 * tests/scanner/Makefile.am:
236 * tests/scanner/foo-expected.gir:
237 * tests/scanner/foo-object.h:
238 * tests/scanner/foo.c:
239 Foo->foo, foo-object.h -> foo.h
241 2008-08-20 Johan Dahlin <johan@gnome.org>
243 * tests/scanner/Foo-expected.gir:
244 * tests/scanner/Makefile.am:
245 * tests/scanner/drawable-expected.gir:
246 * tests/scanner/drawable.c (test_drawable_class_init),
247 (test_drawable_init):
248 * tests/scanner/drawable.h:
249 * tests/scanner/foo-object.h:
250 * tests/scanner/foo.c (foo_boxed_method):
251 Move the drawable parts out of Foo to its own test.
253 2008-08-20 Johan Dahlin <johan@gnome.org>
255 * tests/scanner/Foo-expected.gir:
256 * tests/scanner/foo-object.h:
257 * tests/scanner/foo.c (foo_drawable_class_init),
259 Add a based on GdkDrawable which generates
262 2008-08-19 Colin Walters <walters@verbum.org>
264 * giscanner/transformer.py: Don't try
265 to strip prefix before namespace.
267 2008-08-19 Johan Dahlin <johan@gnome.org>
269 * giscanner/transformer.py:
270 * tests/scanner/Foo-expected.gir:
271 * tests/scanner/foo-object.h:
272 Add support for typedef void foo type of
275 2008-08-19 Johan Dahlin <johan@gnome.org>
278 * giscanner/girwriter.py:
279 * giscanner/glibtransformer.py:
280 * giscanner/transformer.py:
281 * tests/scanner/Foo-expected.gir:
282 Add basic support for union, base the code much
283 on Struct. Add a testcase.
285 2008-08-19 Johan Dahlin <johan@gnome.org>
287 * tests/scanner/Foo-expected.gir:
288 * tests/scanner/foo-object.h:
289 Add a union testcase which the compiler currently
292 2008-08-19 Johan Dahlin <johan@gnome.org>
294 * gobject-introspection-1.0.pc.in:
295 Add a g_ir_compiler variable
297 2008-08-19 Colin Walters <walters@verbum.org>
299 * giscanner/ast.py: Rework types to be more closely
301 * giscanner/girparser.py: Parse more bits.
302 * giscanner/girwriter.py: Write sequences in a new
303 way that specifies container type.
304 * giscanner/glibast.py: Adjust for ast.py changes,
305 add 'ctype' property to GLibObject and GLibInterface
306 so we can look things up by it later.
307 * gicanner/transformer.py: Names is new class holding
308 the various namespaces we manage. Do not confuse
309 with Namespace which is toplevel XML node effectively.
310 Rework all type resolution to go through
311 _resolve_type_name_1.
312 * giscanner/glibtransformer.py: Raise UnknownTypeError
313 instead of ValueError for cleanliness. Add Unresolved
314 class to mark types whose parent we haven't seen yet.
315 Use new Names object from transformer.py.
316 Correctly look up parent=.
317 Fix type validation to handle sequences.
318 * tests/scanner/Foo-expected.gir: Update for sequence
319 work, int instead of int32.
320 * tools/g-ir-scanner: Add --noclosure option
321 * gir/Makefile.am: Use --noclosure by default for
324 2008-08-18 Johan Dahlin <johan@gnome.org>
326 * gir/gio-2.0-good.gir:
327 * gir/glib-2.0-good.gir:
328 * gir/gobject-2.0-good.gir:
331 2008-08-18 Johan Dahlin <johan@gnome.org>
334 * giscanner/girparser.py:
335 * giscanner/girwriter.py:
336 * giscanner/glibast.py:
337 * giscanner/glibtransformer.py:
338 * giscanner/transformer.py:
339 * tests/scanner/Foo-expected.gir:
340 * tests/scanner/foo-object.h:
341 * tests/scanner/utility-expected.gir:
342 * tests/scanner/utility.h:
343 Redo type resolving and validation.
344 Add a couple of new tests.
345 Patch mostly written by Colin.
347 2008-08-18 Johan Dahlin <johan@gnome.org>
350 * giscanner/girparser.py:
352 * giscanner/transformer.py:
353 Improve enum parsing for enums without a GType.
354 Make flags/enum references to other girs work
355 * giscanner/utils.py:
357 * tests/scanner/Makefile.am:
358 * tests/scanner/foo-object.h:
359 * tests/scanner/utility-expected.gir:
360 * tests/scanner/utility.h:
361 Add a new test for external enum references
363 2008-08-18 Johan Dahlin <johan@gnome.org>
365 * docs/global-module-registry.txt: Update
367 * tests/array.gir: Update with new type proposal
369 * girepository/girepository.c (g_type_tag_to_string):
370 * girepository/girepository.h:
371 * girepository/girnode.c (g_ir_node_get_full_size_internal),
373 * girepository/girnode.h:
374 Make enum serializing functions public. Clean up some whitespace.
376 2008-08-17 Johan Dahlin <johan@gnome.org>
378 * docs/global-module-registry.txt:
379 Add a document for an on disk module registry format
381 2008-08-17 Johan Dahlin <johan@gnome.org>
384 * gir/gio-2.0-good.gir:
387 2008-08-17 Johan Dahlin <johan@gnome.org>
390 * gir/glib-2.0-good.gir:
391 * gir/gobject-2.0-good.gir:
392 * giscanner/cgobject.py:
393 * giscanner/glibtransformer.py:
394 Regenerate GObject & GType.
395 Avoid warnings when generating gobject-2.0.gir.
396 Introspect a little more, and skip *_get_type functions.
398 2008-08-17 Colin Walters <walters@verbum.org>
400 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
401 Rename to -good, always generate during build.
402 * gir/Makefile.am: Ensure .gir files dep on
404 * Makefile.am: Switch build order to ensure
405 the scanner is ready before we do gir/.
406 * tools/g-ir-scanner: Look for .git too.
408 2008-08-17 Johan Dahlin <johan@gnome.org>
410 * girepository/gtypelib.c (validate_enum_blob):
411 * giscanner/glibtransformer.py:
412 * giscanner/transformer.py:
413 Remove resolve_possible_typedefs, it was unused.
414 Allow multiple enum values of the sample value in an enum,
415 since it's actually pretty common.
416 Register enums so they can be resolved too.
418 2008-08-16 Johan Dahlin <johan@gnome.org>
420 * giscanner/girparser.py:
421 Parse enumeration/bitfield.
423 2008-08-16 Johan Dahlin <johan@gnome.org>
425 * giscanner/girparser.py:
428 2008-08-16 Johan Dahlin <johan@gnome.org>
430 * giscanner/glibtransformer.py:
431 Resolve type names for alias targets
432 * giscanner/transformer.py:
433 Skip FILE* parameters fow now
435 2008-08-16 Johan Dahlin <johan@gnome.org>
438 * gir/gobject-2.0.gir:
441 * tests/scanner/Makefile.am:
444 2008-08-15 Colin Walters <walters@verbum.org>
446 * giscanner/glibtransformer.py: Explicitly construct
447 new list, since we're deleting as we iterate.
448 Don't delete all structures which end in Class; just
449 ones which have a paired GObject.
450 Fix printing of type warning.
451 * giscanner/transformer.py: Make strip_namespace_object
452 be the identity function if it doesn't match the
455 2008-08-15 Colin Walters <walters@verbum.org>
457 * giscanner/cgobject.py: Define yet more argument
458 prototypes; fix prototype for g_type_fundamental.
460 2008-08-14 Johan Dahlin <johan@gnome.org>
463 * tests/constant.gir:
466 * tools/generate.c (write_struct_info):
467 Fix generator for constant/gobject/struct
469 2008-08-14 Johan Dahlin <johan@gnome.org>
473 * tools/generate.c (write_enum_info):
474 Fix generation of enum/bitfields
476 2008-08-14 Johan Dahlin <johan@gnome.org>
478 * girepository/girparser.c (start_field), (start_constant),
479 (start_type), (end_element_handler):
480 Clear up constant parsing
485 * tools/generate.c (write_callable_info), (write_function_info),
486 (write_callback_info), (write_constant_info), (write_signal_info),
487 (write_vfunc_info), (write_property_info), (write_object_info),
488 (write_interface_info):
489 Constants/Signals are handled now.
491 2008-08-14 Johan Dahlin <johan@gnome.org>
493 * girepository/girparser.c (start_type):
494 Don't require c:type.
498 Update, remove parts we don't support yet
499 * tests/roundtrips.sh:
501 * tools/generate.c (write_type_info), (write_field_info),
502 (write_callable_info), (write_struct_info):
503 Make it emit proper gir.
505 2008-08-14 Johan Dahlin <johan@gnome.org>
507 * giscanner/transformer.py:
508 New internal function for adding a new node.
510 2008-08-14 Johan Dahlin <johan@gnome.org>
513 Define an internal _H_ variable so we skip parsing both
514 i18n headers, only one is needed.
516 Add the glib-2.0.gir too.
517 * giscanner/glibast.py:
518 Add gconstpointer as an alias for ANY
519 * giscanner/transformer.py:
520 Do not lower case enumeration names per se.
521 Skip functions which has parameters called 'va_list'
523 2008-08-14 Colin Walters <walters@verbum.org>
525 * giscanner/transformer.py: Comment data structures.
526 Also squash pointers in resolve_type_name to correspond
527 with what we do for params.
528 * giscanner/glibtransformer.py: Print warnings in more
529 situations. Rework checks for method/constructor to
530 look up in our GType database instead of just checking
531 for *. Avoid generating <record> for GObject which
532 duplicate the <class>.
533 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
536 2008-08-14 Johan Dahlin <johan@gnome.org>
538 * giscanner/girwriter.py:
539 * giscanner/glibast.py:
540 * giscanner/glibtransformer.py:
541 * giscanner/transformer.py:
544 Add pyflakes.py and run it in make check.
545 Update the source code to fix the errors reported by
548 2008-08-14 Johan Dahlin <johan@gnome.org>
551 * giscanner/girparser.py:
552 * giscanner/glibast.py:
553 * giscanner/glibtransformer.py:
554 Refactor the parser a bit.
555 Add parent type to interfaces and update callsites.
557 2008-08-14 Johan Dahlin <johan@gnome.org>
559 * giscanner/glibtransformer.py:
560 * giscanner/utils.py:
561 Refactor a bit, avoid isinstance and add a method
562 for each type we parse.
564 2008-08-14 Johan Dahlin <johan@gnome.org>
567 * giscanner/girparser.py:
568 * giscanner/glibtransformer.py:
570 Run pep8.py in make check, fix old errors.
572 2008-08-13 Colin Walters <walters@verbum.org>
574 * giscanner/girparser.py: Parse records.
576 2008-08-13 Colin Walters <walters@verbum.org>
578 * gir/Makefile.am: Install again.
579 * gir/gobject-2.0.gir: Add some more bits.
581 2008-08-13 Colin Walters <walters@verbum.org>
583 * gir/gobject-2.0.gir: Use correct namespace, add GType.
584 * giscanner/girparser.py: Handle aliases.
585 * giscanner/transformer.py: Record aliases. Make resolver
586 functions public; we now call into these explicitly from
587 glibtransformer. Handle resolving aliases.
588 * giscanner/glibtransformer.py: Separate our internal namespace
589 from included ones. Call up into transformer's resolver functions.
591 2008-08-13 Johan Dahlin <johan@gnome.org>
593 * girepository/girnode.c (g_ir_node_get_full_size_internal):
594 * girepository/girparser.c (start_class):
595 * giscanner/glibtransformer.py:
596 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
598 2008-08-13 Johan Dahlin <johan@gnome.org>
600 * giscanner/cgobject.py:
601 Register GInitiallyUnowned
602 * giscanner/girwriter.py:
603 * giscanner/glibtransformer.py:
604 Special case GObject/GInitially owned as they are a bit special to use.
606 2008-08-13 Colin Walters <walters@verbum.org>
608 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
609 Object is in GObject namespace.
611 2008-08-13 Colin Walters <walters@verbum.org>
613 * giscanner/girparser.py: Fix processing of functions
616 2008-08-13 Colin Walters <walters@verbum.org>
618 * giscanner/girparser.py: Parse more than just <class.
619 * giscanner/glibtransformer.py: Put aliases in a separate
620 data structure since their name is not canonicall.
621 * giscanner/transformer.py: Handle resolving type names
624 2008-08-13 Johan Dahlin <johan@gnome.org>
626 * tools/g-ir-scanner:
627 Allow multiple libraries
628 * giscanner/glibtransformer.py:
629 Rename load_library to add_library, traverse over all libraries
630 when trying to resolve a function
632 2008-08-12 Colin Walters <walters@verbum.org>
634 * giscanner/transformer.py: Record typedefs as <alias> elements.
635 Also attempt to look up types in external namespaces.
636 * giscanner/girwriter.py: Write them.
637 * giscanner/glibtransformer.py: Rework resolver using real instanceof
638 checks. Resolve interface methods and properties.
639 * tests/scanner/foo-object.h: Add a method with typedef.
640 * tests/scanner/Foo-expected.gir: Update.
641 * girepository/girnode.c: Debug tweaks.
642 * girepository/girparser.c: Make a first pass through the XML where we
643 record all the aliases. This lets us resolve them as we go through the
645 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
648 2008-08-12 Colin Walters <walters@verbum.org>
650 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
651 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
653 * giscanner/transformer.py: Record typedefs and expose public API for resolving
655 * tests/scanner/Foo-expected.gir: Fix expected callback types.
657 2008-08-12 Colin Walters <walters@verbum.org>
659 * giscanner/glibtransformer.py: Also transform object properties.
661 2008-08-12 Colin Walters <walters@verbum.org>
663 * giscanner/glibtransformer.py: Also transform callbacks
664 and structure field types.
665 * tests/scanner/Fooe-expected.gir: Update to expect correct
666 names for callbacks and structs.
668 2008-08-12 Colin Walters <walters@verbum.org>
670 * girepository/girparser.c: Handle 'any'.
671 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
674 2008-08-12 Colin Walters <walters@verbum.org>
676 * giscanner/glibtransformer.py: We need to do type
677 resolution in a second pass after we've seen all the
680 2008-08-12 Colin Walters <walters@verbum.org>
682 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
683 Add enum return value.
684 * giscanner/glibtransformer.py: Transform function return types
687 2008-08-12 Colin Walters <walters@verbum.org>
689 * tests/scanner/Makefile.am: Dep .gir files on scanner
690 sources too. Also remove @ so we see scanner invocations.
692 2008-08-12 Colin Walters <walters@verbum.org>
694 * girepository/girparser.c, girepository/gtypelib.c,
695 girepository/gtypelib.h, girepository/girnode.c:
696 Remove usage of (GAPI-oriented) TypeTag in favor of
697 GITypeTag from girepository.h.
699 2008-08-10 Colin Walters <walters@verbum.org>
701 * tests/roundtrips.sh: Use the correct tests.
703 2008-08-10 Colin Walters <walters@verbum.org>
705 * giscanner/cgobject.py: Declare/wrap a few more functions.
706 Fix parameter types for g_object_new and g_type_fundamental.
708 2008-08-10 Colin Walters <walters@verbum.org>
710 * giscanner/cgobject.py: Add new decorator @gwrap which forces
711 us to declare types for both return value and parameters. The
712 ctypes default of 'int' is bad because it hides 32/64 bit
713 problems. Convert all existing functions to use it.
715 2008-08-09 Johan Dahlin <johan@gnome.org>
717 * giscanner/__init__.py:
719 * giscanner/cgobject.py:
720 * giscanner/gidlparser.py:
721 * giscanner/gidlwriter.py:
722 * giscanner/girparser.py:
723 * giscanner/girwriter.py:
724 * giscanner/glibast.py:
725 * giscanner/glibtransformer.py:
726 * giscanner/odict.py:
727 * giscanner/sourcescanner.py:
728 * giscanner/transformer.py:
729 * giscanner/utils.py:
730 * giscanner/xmlwriter.py:
731 * tools/g-ir-scanner:
735 2008-08-09 Johan Dahlin <johan@gnome.org>
738 * relaxng/c-types.xml:
739 * relaxng/g-types.xml:
740 * relaxng/relaxng.rng:
742 Remove outdated relaxng schemas.
744 2008-08-09 Johan Dahlin <johan@gnome.org>
747 Rename metadata to typelib in variable names,
750 2008-08-09 Johan Dahlin <johan@gnome.org>
754 Remove old C scanner, which got rewritten in python.
756 2008-08-09 Johan Dahlin <johan@gnome.org>
758 * girepository/Makefile.am:
768 Move shared *.[ch] files to girepository from tools
770 2008-08-09 Johan Dahlin <johan@gnome.org>
775 * tests/constant.test:
778 * tests/function.test:
779 * tests/gobject.test:
780 * tests/interface.test:
787 Rename *.test to *.gir
789 2008-08-09 Johan Dahlin <johan@gnome.org>
793 * tests/parser/Foo-expected.gir:
794 * tests/parser/Makefile.am:
795 * tests/parser/foo-object.h:
796 * tests/parser/foo.c:
797 * tests/parser/utility-expected.gir:
798 * tests/parser/utility.c:
799 * tests/parser/utility.h:
800 * tests/scanner/Makefile.am:
801 Rename tests/parser to test/scanner
803 2008-08-08 Colin Walters <walters@verbum.org>
805 * tests/roundtrips.sh: Use local .gir files again.
807 2008-08-08 Colin Walters <walters@verbum.org>
809 * tests/invoke/Makefile.am: .gir file depends on libtool
812 2008-08-08 Colin Walters <walters@verbum.org>
814 * tools/girnode.c: Pass through parent node so we can
815 print the node whose child is NULL, if that occurs.
817 2008-08-08 Johan Dahlin <johan@gnome.org>
820 Disable roundtrip tests which are not yet working
821 * tests/invoke/testfns.gir:
824 2008-08-08 Johan Dahlin <johan@gnome.org>
826 * giscanner/girwriter.py:
828 * giscanner/glibast.py:
829 * giscanner/glibtransformer.py:
830 Swap order of members, to keep it consistent with
833 2008-08-08 Johan Dahlin <johan@gnome.org>
835 * girepository/gtypelib.c (validate_header):
836 * girepository/gtypelib.h:
838 * giscanner/girwriter.py:
839 * giscanner/sourcescanner.c (gi_source_symbol_ref),
840 (gi_source_symbol_unref):
843 * tests/constant.test:
846 * tests/function.test:
847 * tests/gobject.test:
848 * tests/interface.test:
849 * tests/invoke/Makefile.am:
850 * tests/invoke/testfns.xml:
852 * tests/parser/Makefile.am:
853 * tests/roundtrips.sh:
860 * tools/compiler.c (main):
861 * tools/generate.c (write_callable_info), (write_function_info),
863 * tools/gidlmodule.c:
864 * tools/gidlmodule.h:
867 * tools/gidlparser.c:
868 * tools/gidlparser.h:
869 * tools/gidlwriter.c:
870 * tools/gidlwriter.h:
871 * tools/scanner.c (create_node_from_gtype),
872 (create_node_from_ctype), (g_igenerator_process_properties),
873 (g_igenerator_process_signals), (g_igenerator_create_object),
874 (g_igenerator_create_interface), (g_igenerator_create_boxed),
875 (g_igenerator_create_enum), (g_igenerator_create_flags),
876 (g_igenerator_process_function_symbol),
877 (g_igenerator_process_unregistered_struct_typedef),
878 (g_igenerator_process_struct_typedef),
879 (g_igenerator_process_union_typedef),
880 (g_igenerator_process_enum_typedef),
881 (g_igenerator_process_function_typedef),
882 (g_igenerator_process_constant), (g_igenerator_process_symbols),
883 (g_igenerator_add_module), (g_igenerator_add_include_idl):
884 Merge in the gir-compiler branch.
885 Thanks to Philip and Colin for their help.
887 2008-07-26 Colin Walters <walters@verbum.org>
889 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
890 and g-idl-generate to go along with how we're changing this
891 module to be installed.
892 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
894 2008-07-24 Colin Walters <walters@verbum.org>
896 * girepository/girepository.c (g_irepository_register): Add
897 environment variable G_IREPOSITORY_VERBOSE so we can print
898 out what we're doing.
899 * girepository/girepository.c (g_irepository_register_file):
900 Add GError error message to g_debug call.
902 2008-07-08 Jürg Billeter <j@bitron.ch>
904 * giscanner/glibast.py:
908 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
910 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
913 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
916 * giscanner/girwriter.py:
917 * giscanner/transformer.py:
918 * tests/parser/Foo-expected.gir:
919 * tests/parser/foo-object.h:
920 * tests/parser/foo.c (foo_object_allow_none):
921 Add support for gtk-doc annotations for allow-none.
924 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
927 * giscanner/girwriter.py:
928 * giscanner/glibast.py:
929 * giscanner/glibtransformer.py:
930 * giscanner/transformer.py:
931 * tests/parser/Foo-expected.gir:
932 Start using abstract type instead of the raw C types.
933 Register a bunch of glib types we care about.
935 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
940 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
942 * girepository/girepository.c:
943 * girepository/gtypelib.c:
944 * girepository/ginfo.c:
945 * girepository/ginvoke.c:
946 * girepository/girepository.h:
947 * girepository/gtypelib.h:
948 * girepository/gmetadata.c:
949 * girepository/Makefile.am:
950 * girepository/gmetadata.h:
952 * tools/gidlmodule.c:
955 * tools/gidlmodule.h:
956 * tools/gidlparser.c:
958 Renamed GMetadata to GTypelib
960 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
962 * giscanner/xmlwriter.py:
963 Improve line wrapping when > 79 charaters
965 2008-06-05 Jürg Billeter <j@bitron.ch>
968 * giscanner/girwriter.py:
969 * giscanner/transformer.py:
970 Use <type> element for field types
971 * tests/parser/Foo-expected.gir:
974 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
976 * giscanner/glibtransformer.py:
977 Fix a bug which prevented GdkEvent from being generated
979 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
981 * giscanner/Makefile.am:
983 * giscanner/girwriter.py:
984 * giscanner/glibast.py:
985 * giscanner/glibtransformer.py:
986 * giscanner/transformer.py:
987 * giscanner/utils.py:
988 * tests/parser/Foo-expected.gir:
989 Improve enum member parsing and introspection
991 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
993 * giscanner/scannerparser.y:
994 * giscanner/sourcescanner.h:
995 * giscanner/sourcescanner.py:
996 Add a new source type enum for member.
997 Use __repr__ for improved debugging
998 * giscanner/girparser.py:
1000 * giscanner/transformer.py:
1001 Improve parsing of struct members.
1002 * tests/parser/foo-object.h:
1005 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1007 * giscanner/xmlwriter.py:
1008 Improve error reporting when trying to quote None.
1009 * giscanner/girparser.py:
1010 Do not print warnings when including more complete .gir files
1011 * giscanner/girwriter.py:
1012 Do not require a name for parameters, add a todo for singletons
1013 * giscanner/glibtransformer.py:
1014 Refactor the way structs are done, add a couple of hacks to allow
1016 * giscanner/transformer.py:
1017 Add enough hacks so cairo, atk and pango.gir can be parsed properly
1018 * gobject-introspection-1.0.pc.in:
1019 Export girdir, so we can access gobject-2.0.gir from outside
1021 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1023 * tools/g-ir-scanner:
1024 * tests/parser/Makefile.am:
1025 Update sys.path before running the parser so we don't have
1026 to setup PYTHONPATH ourselves.
1030 * girepository/Makefile.am:
1031 * giscanner/transformer.py:
1032 * gobject-introspection-1.0.pc.in:
1033 * gobject-introspection.pc.in:
1034 * tools/Makefile.am:
1036 Rename pkg-config name to gobject-introspection-1.0,
1037 Do not installed anything which is not using the gir format.
1038 Disable compililation the old C scanner, but still keep the source
1039 until all the remaning functionallity has been ported.
1041 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
1043 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
1044 a crash when symbol->indent is NULL.
1046 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
1047 a function to convert a CTYPE symbol to a string
1049 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
1052 * giscanner/girwriter.py:
1053 * giscanner/giscannermodule.c
1054 (pygi_source_scanner_append_filename),
1055 (pygi_source_scanner_parse_file):
1056 * giscanner/glibtransformer.py:
1057 * giscanner/sourcescanner.py:
1058 Revert back to using temporary files to send in headers.
1059 Allow Functions to be passed in as callbacks, add a couple
1060 of try/excepts missing features.
1061 We can now scan pango
1063 2008-05-08 Johan Dahlin <johan@gnome.org>
1065 * giscanner/glibtransformer.py:
1066 * giscanner/transformer.py:
1067 Move namespace stripping glibtransformer->transformer
1069 2008-05-08 Johan Dahlin <johan@gnome.org>
1072 * giscanner/girwriter.py:
1073 * giscanner/glibtransformer.py:
1074 * giscanner/transformer.py:
1075 * tools/g-ir-scanner:
1076 Introduce a namespace ast node
1078 2008-05-05 Johan Dahlin <johan@gnome.org>
1080 * giscanner/__init__.py:
1081 * giscanner/sourcescanner.py:
1082 * giscanner/transformer.py:
1083 Move sourcescanner symbols to the sourcescanner module, instead
1084 of in the global __init__ namespace.
1086 2008-05-03 Johan Dahlin <johan@gnome.org>
1088 * giscanner/glibtransformer.py:
1089 * tools/g-ir-scanner:
1090 Handle missing parameters better, allow - and + in .la dlname
1093 2008-05-03 Johan Dahlin <johan@gnome.org>
1095 * giscanner/__init__.py:
1097 * giscanner/girwriter.py:
1098 * giscanner/glibtransformer.py:
1099 * giscanner/transformer.py:
1100 Parse struct fields properly, improve debugging.
1102 2008-04-29 Johan Dahlin <johan@gnome.org>
1105 * giscanner/girwriter.py:
1106 * giscanner/transformer.py:
1107 * tests/parser/Foo-expected.gir:
1109 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
1111 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1114 * docs/g-ir-scanner.1:
1115 * metadata-annotations-proposal.txt:
1116 * metadata-format.txt:
1117 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
1119 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
1121 * giscanner/girwriter.py:
1122 * giscanner/glibtransformer.py:
1123 * giscanner/transformer.py:
1124 * giscanner/xmlwriter.py:
1125 * tests/parser/Foo-expected.gir:
1126 * tests/parser/foo-object.h:
1127 Write record/structs to gir file too. Add a couple of tests,
1128 fix an off by one error in xmlwriter.py.
1130 2008-04-28 Johan Dahlin <johan@gnome.org>
1132 * giscanner/xmlwriter.py: Calculate the line length properly,
1133 include the provided extra indentation in the calculation, really.
1135 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1138 * giscanner/glibast.py:
1139 * giscanner/glibtransformer.py:
1140 * giscanner/transformer.py:
1141 * tools/g-ir-scanner:
1142 Add a --strip-prefix and sort out confusion between names and symbols
1143 for functions and struct + derivaties.
1144 Refactor bootstrap of g-ir-scanner, so we can set options on
1145 Transformer() before parsing everything.
1147 2008-04-28 Johan Dahlin <johan@gnome.org>
1149 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
1150 when scanning girepository.h
1152 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
1153 a __GI_SCANNER__ when we run.
1155 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1158 * giscanner/girwriter.py:
1159 * giscanner/glibast.py:
1160 * giscanner/glibtransformer.py:
1161 * tests/parser/Foo-expected.gir:
1162 * tests/parser/utility-expected.gir:
1163 Rename most c:identifier to c:type. Add new ones to
1164 class/interface/enum/boxed.
1166 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
1169 * giscanner/girwriter.py:
1170 * giscanner/glibtransformer.py:
1171 * tests/parser/Foo-expected.gidl:
1172 * tests/parser/Makefile.am:
1173 Move c:identifier from return-value to subchild type,
1174 as per Jürgs suggestion
1176 2008-04-28 Johan Dahlin <johan@gnome.org>
1178 * giscanner/girwriter.py:
1179 * tests/parser/Foo-expected.gir:
1180 Write property.type as a child node.
1182 2008-04-27 Johan Dahlin <johan@gnome.org>
1187 * gidl/gobject-2.0.gidl:
1189 * gir/gobject-2.0.gir:
1190 * tests/parser/Makefile.am:
1191 Replace the GObject gidl with a GObject gir.
1193 2008-04-27 Johan Dahlin <johan@gnome.org>
1195 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
1198 * giscanner/xmlwriter.py:
1199 * tests/parser/Foo-expected.gir:
1200 Include indentation in line length calculation
1202 2008-04-27 Johan Dahlin <johan@gnome.org>
1204 * giscanner/girparser.py:
1205 Prettify NS parsing using elementtree.
1207 2008-04-27 Johan Dahlin <johan@gnome.org>
1210 * giscanner/Makefile.am:
1211 * giscanner/girparser.py:
1212 * giscanner/glibtransformer.py:
1213 * tests/parser/Foo-expected.gidl:
1214 * tests/parser/Foo-expected.gir:
1215 * tests/parser/Makefile.am:
1216 * tests/parser/utility-expected.gidl:
1217 * tests/parser/utility-expected.gir:
1218 * tools/g-ir-scanner:
1219 Switch over to GIR as the default format. Add a simple GIDL
1221 Update tests and fix simplify makefiles by depending
1222 on GNU make extensions.
1224 2008-04-27 Johan Dahlin <johan@gnome.org>
1226 * giscanner/xmlwriter.py:
1227 Wrap attributes for lines which are wider than 79 characters
1229 * giscanner/scannerlexer.l:
1230 Allow parenthesis in annotations
1233 * giscanner/gidlwriter.py:
1234 * giscanner/girwriter.py:
1235 * giscanner/glibtransformer.py:
1236 * giscanner/transformer.py:
1237 Add initial sequence support, including annotation.
1238 Refactor type handling a bit.
1240 2008-04-27 Johan Dahlin <johan@gnome.org>
1242 * tests/parser/Foo-expected.gidl:
1243 * tests/parser/foo-object.h:
1244 * tests/parser/foo.c (foo_object_class_init),
1245 (foo_object_get_strings), (foo_object_get_objects):
1246 Add two new functions to check sequence return values.
1247 Also fixes a compilation warning.
1249 2008-04-27 Johan Dahlin <johan@gnome.org>
1251 * giscanner/giscannermodule.c (]): Cast the getter, avoids
1252 a compilation warning.
1254 * tools/Makefile.am (g_ir_scanner_SOURCES):
1255 g-ir-scanner has no sources.
1257 2008-04-25 Johan Dahlin <johan@gnome.org>
1259 * giscanner/Makefile.am:
1261 * giscanner/gidlparser.py:
1262 * giscanner/gidlwriter.py:
1263 * giscanner/girwriter.py:
1264 * giscanner/glibast.py:
1265 * giscanner/glibtransformer.py:
1266 * giscanner/transformer.py:
1267 Split out nodes to ast.py and glibast.py
1269 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1271 * giscanner/Makefile.am:
1272 * giscanner/gidlparser.py:
1273 * giscanner/gidlwriter.py:
1274 * giscanner/girwriter.py:
1275 * giscanner/glibtransformer.py:
1276 * giscanner/gobjecttreebuilder.py:
1277 * giscanner/transformer.py:
1278 * giscanner/treebuilder.py:
1279 * tools/g-ir-scanner:
1280 Rename treebuilder to transformer and
1281 gobjectreebuilder to glibtransformer.
1283 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1285 * giscanner/Makefile.am:
1286 * giscanner/__init__.py:
1287 * giscanner/cgobject.py:
1288 * giscanner/gidlparser.py:
1289 * giscanner/gidlwriter.py:
1290 * giscanner/girwriter.py:
1291 * giscanner/gobjecttreebuilder.py:
1292 * giscanner/odict.py:
1293 * giscanner/sourcescanner.py:
1294 * giscanner/treebuilder.py:
1295 * giscanner/xmlwriter.py:
1296 * tools/Makefile.am:
1297 * tools/g-ir-scanner:
1298 Add LGPLv2 license header and install all python files
1300 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1303 * giscanner/gidlwriter.py:
1304 * giscanner/giscannermodule.c (pygi_source_directive_new),
1305 (directive_get_options), (pygi_source_symbol_new),
1306 (symbol_get_base_type), (pygi_source_type_new),
1307 (type_get_base_type), (type_get_child_list),
1308 (pygi_source_scanner_get_symbols),
1309 (pygi_source_scanner_get_directives):
1310 * giscanner/gobjecttreebuilder.py:
1311 * giscanner/sourcescanner.py:
1312 * giscanner/treebuilder.py:
1313 * tests/parser/foo-object.h:
1314 Add support for virtual methods.
1315 Pair struct FooClass with struct Foo.
1316 Clean up the SourceScanner bindings a bit.
1317 Add a testcase for virtual methods.
1319 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
1321 * giscanner/cgobject.py:
1322 * giscanner/gidlwriter.py:
1323 * giscanner/gobjecttreebuilder.py:
1324 Add support for signals
1326 * tests/parser/foo.c (foo_object_class_init):
1327 * Foo-expected.gidl:
1328 Add a signal and update the expected output.
1330 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
1332 * giscanner/gidlwriter.py:
1333 * giscanner/girwriter.py:
1334 * giscanner/giscannermodule.c (directive_get_name),
1335 (directive_get_value), (directive_get_options),
1336 (symbol_get_directives), (symbol_set_directives),
1337 (pygi_source_scanner_parse_file),
1338 (pygi_source_scanner_lex_filename),
1339 (pygi_source_scanner_get_directives), (init_giscanner):
1340 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
1341 * giscanner/sourcescanner.h:
1342 * giscanner/sourcescanner.py:
1343 * giscanner/treebuilder.py:
1344 * tools/g-ir-scanner:
1345 Add support for source/header annotations.
1347 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1349 * giscanner/gidlwriter.py:
1350 * giscanner/girwriter.py:
1351 * giscanner/gobjecttreebuilder.py:
1352 * giscanner/treebuilder.py:
1353 Add support for Callbacks
1355 2008-04-22 Havoc Pennington <hp@pobox.com>
1357 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
1358 not in metadata->module, look for it in the global module, in case
1359 some other object or the app itself provides the symbol.
1361 2008-04-22 Havoc Pennington <hp@pobox.com>
1363 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
1364 dlopening a library that is already in the main app, by checking
1365 whether one of the lib's symbols is already loaded.
1367 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1369 * tests/parser/Foo-expected.gidl:
1370 * tests/parser/foo-object.h:
1373 2008-04-22 Havoc Pennington <hp@pobox.com>
1375 * girepository/ginfo.c (g_interface_info_find_method):
1376 Use interface_blob_size not object_blob_size to compute offset.
1378 2008-04-22 Havoc Pennington <hp@pobox.com>
1380 * girepository/gmetadata.c (_g_metadata_init): remove
1381 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
1382 (Glade and Clutter for example) rely on being loaded globally.
1384 2008-04-22 Havoc Pennington <hp@pobox.com>
1386 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
1387 function to get the GType given a RegisteredTypeInfo
1389 2008-04-22 Johan Dahlin <johan@gnome.org>
1391 * COPYING: Add a LGPL license, to prevent automake to
1392 put in a copy of GPL here. Pointed out by Havoc.
1394 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
1395 (g_type_info_is_pointer), (g_type_info_get_tag),
1396 (g_type_info_get_param_type), (g_type_info_get_interface),
1397 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
1398 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
1399 (g_error_domain_info_get_codes), (g_enum_info_get_value),
1400 (g_object_info_get_interface), (g_object_info_get_field),
1401 (g_interface_info_get_prerequisite),
1402 (g_signal_info_get_class_closure), (g_constant_info_get_value):
1403 * girepository/ginvoke.c (get_ffi_type):
1404 * girepository/girepository.h:
1405 * girepository/gmetadata.c (g_metadata_get_dir_entry),
1406 (g_metadata_check_sanity), (validate_header),
1407 (validate_array_type_blob), (validate_iface_type_blob),
1408 (validate_param_type_blob), (validate_error_type_blob),
1409 (validate_type_blob), (validate_constant_blob),
1410 (validate_struct_blob), (validate_enum_blob):
1411 * girepository/gmetadata.h:
1412 * tests/Makefile.am:
1413 * tests/invoke/Makefile.am:
1414 * tests/invoke/invoke.c (main):
1415 * tests/roundtrips.sh:
1416 * tools/Makefile.am:
1417 * tools/compiler.c (format_output), (write_out_metadata), (main):
1418 * tools/generate.c (write_type_name), (write_type_info),
1419 (write_constant_value), (write_enum_info), (load_metadata), (main):
1420 * tools/gidlcompilercontext.c:
1421 * tools/gidlcompilercontext.h:
1422 * tools/gidlcompilerentrynode.c:
1423 * tools/gidlcompilerentrynode.h:
1424 * tools/gidlcompilertypenode.c:
1425 * tools/gidlcompilertypenode.h:
1426 * tools/gidlmodule.c (g_idl_module_build_metadata):
1427 * tools/gidlmodule.h:
1428 * tools/gidlnode.c (init_stats), (dump_stats),
1429 (g_idl_node_get_size), (g_idl_node_get_full_size),
1430 (g_idl_node_cmp), (g_idl_node_can_have_member),
1431 (g_idl_node_add_member), (g_idl_node_param_direction_string),
1432 (parse_int_value), (parse_uint_value), (parse_float_value),
1433 (parse_boolean_value), (find_entry_node), (find_entry),
1434 (serialize_type), (g_idl_node_build_metadata), (write_string):
1436 * tools/gidlparser.c (parse_type_internal):
1437 * tools/quote-file.sh:
1438 Revert revisions 157,149-148,136-129 and 120.
1439 Move back to using g-idl-generate to generate the metadata and
1440 avoids dependency on a c compiler.
1442 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
1444 * giscanner/girwriter.py:
1445 * tools/g-ir-scanner:
1446 Add an initial GIR writer and a --format option to g-ir-scanner
1448 2008-04-21 Johan Dahlin <johan@gnome.org>
1450 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
1451 gobject-2.0 and raise ImportError if not found.
1453 * giscanner/gidlparser.py:
1454 * giscanner/gidlwriter.py:
1455 * giscanner/gobjecttreebuilder.py:
1456 * tools/g-ir-scanner:
1457 Add a --include argument to include types from other idls.
1458 Add a minimalistic GIDL parser (just objects for now)
1459 Implement resolving of external type references and use it to
1460 resolve parent types, argument types and return types.
1462 2008-04-21 Johan Dahlin <johan@gnome.org>
1464 * giscanner/gidlwriter.py:
1465 * giscanner/gobjecttreebuilder.py:
1466 * giscanner/treebuilder.py:
1467 Add support for properties.
1468 Refactor Class/Interface support a bit, to share more code and
1469 always initialize their method attribute to an empty list.
1471 2008-04-21 Johan Dahlin <johan@gnome.org>
1473 * giscanner/cgobject.py:
1474 Add a workaround for a glib bug interface introspection bug
1475 (object_interface_list_properties, object_class_list_properties):
1476 Cast the return value to GParamSpec.
1478 * tests/parser/Foo-expected.gidl: Update
1479 * tests/parser/foo.c: Add a string property
1481 * giscanner/gobjecttreebuilder.py:
1482 After stripping namespaces, remove the original
1483 item to avoid duplication (GtkButton struct and Button object)
1485 2008-04-21 Johan Dahlin <johan@gnome.org>
1487 * giscanner/gobjecttreebuilder.py:
1488 * giscanner/treebuilder.py:
1489 Strip namespaces before objects, so we'll export
1490 GtkButton as Button in the gtk namespace
1492 2008-04-21 Johan Dahlin <johan@gnome.org>
1494 * giscanner/gidlwriter.py:
1495 * giscanner/gobjecttreebuilder.py:
1496 * giscanner/treebuilder.py:
1497 Add constructors for object/boxed types.
1499 2008-04-21 Johan Dahlin <johan@gnome.org>
1501 * giscanner/gidlwriter.py:
1502 * giscanner/gobjecttreebuilder.py:
1503 Add support for boxed types
1505 2008-04-21 Johan Dahlin <johan@gnome.org>
1507 * giscanner/giscannermodule.c: Mark structures as const,
1508 wrap SourceType.const_string.
1510 * tests/parser/foo-object.h: Add a couple of constants.
1512 * giscanner/gidlwriter.py:
1513 * giscanner/gobjecttreebuilder.py:
1514 * giscanner/treebuilder.py:
1515 Add basic support for interfaces
1517 * tools/g-ir-scanner:
1518 Add -o/--output for writing to a file
1520 2008-04-21 Havoc Pennington <hp@redhat.com>
1522 * TODO: add some C API wishlist items I could think of quickly
1524 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1526 * giscanner/gidlwriter.py:
1527 * giscanner/xmlwriter.py:
1528 Add a simple api for writing tags which can be used
1529 with the new 'with statement' in python 2.5
1531 2008-04-21 Johan Dahlin <johan@gnome.org>
1533 * giscanner/gobjecttreebuilder.py:
1534 Strip namespace and object prefix from method names.
1536 2008-04-21 Johan Dahlin <johan@gnome.org>
1538 * tools/g-ir-scanner (main): Add --pkg option to pass in
1539 pkg-config modules to get cflags from.
1541 * giscanner/gidlwriter.py (GIDLWriter._write_method):
1542 Avoid duplication, reuse function writer for methods.
1544 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
1546 * giscanner/gidlwriter.py:
1547 * giscanner/gobjecttreebuilder.py:
1548 * giscanner/treebuilder.py:
1549 * tools/g-ir-scanner:
1550 Resolve libtool .la files.
1551 Strip name spaces for methods.
1552 Add function symbols
1554 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
1556 * giscanner/cgobject.py:
1557 * giscanner/gidlwriter.py:
1558 * giscanner/gobjecttreebuilder.py:
1559 * giscanner/treebuilder.py:
1560 Add support for classes and methods
1562 2008-04-20 Johan Dahlin <johan@gnome.org>
1564 * giscanner/gidlwriter.py:
1565 * giscanner/gobjecttreebuilder.py:
1566 * giscanner/odict.py:
1567 Avoid conflicts, keep the output ordered similar to
1568 the order of the input.
1569 Add a simple ordered dictionary implemenation
1571 2008-04-19 Johan Dahlin <johan@gnome.org>
1573 * giscanner/cgobject.py:
1574 * giscanner/gidlwriter.py:
1575 * giscanner/gobjecttreebuilder.py:
1576 * tools/g-ir-scanner:
1577 Start introspecting get-type functions.
1578 Implement support for GLib/GFlags GTypes.
1579 Add a ctype based GObject binding.
1581 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
1583 * giscanner/gidlwriter.py:
1584 * giscanner/xmlwriter.py:
1585 * tools/g-ir-scanner:
1586 Add a simplistic gidl writer, which can't do too much.
1588 2008-04-18 Johan Dahlin <johan@gnome.org>
1590 * giscanner/sourcescanner.py:
1591 * giscanner/treebuilder.py:
1592 * tools/g-ir-scanner:
1593 split tree building and source scanning interface to separate files.
1595 2008-04-18 Johan Dahlin <johan@gnome.org>
1597 * tools/g-ir-scanner (Parameter.__init__): Start constructing
1599 - Add support for struct/parameter/return, start parsing of ctypes
1601 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
1604 2008-03-31 Johan Dahlin <johan@gnome.org>
1606 * tools/g-ir-scanner:
1607 Start to build abstract syntax node of scanned sources.
1608 Add support for cpp options.
1610 2008-03-27 Johan Dahlin <johan@gnome.org>
1612 * giscanner/giscannermodule.c:
1613 * giscanner/scannerlexer.l:
1614 * giscanner/sourcescanner.c:
1615 * tools/g-ir-scanner:
1617 Add simple pre-processor using subprocess and a PIPE.
1618 Change the parse_file apis to accept a file descriptor.
1620 2008-03-25 Johan Dahlin <johan@gnome.org>
1622 * giscanner/__init__.py:
1623 * tools/g-ir-scanner:
1624 Fix a typo and add an example python test program.
1626 2008-03-25 Johan Dahlin <johan@gnome.org>
1628 * giscanner/__init__.py:
1629 * giscanner/giscannermodule.c:
1630 * giscanner/sourcescanner.c:
1631 * giscanner/sourcescanner.h:
1632 Add constants and wrap a few more SymbolType fields
1634 2008-03-25 Johan Dahlin <johan@gnome.org>
1638 * giscanner/__init__.py:
1639 * giscanner/giscannermodule.c:
1640 * giscanner/Makefile.am:
1642 Add initial python bindings for the scanner and
1643 depend on python 2.5.
1645 2008-03-25 Johan Dahlin <johan@gnome.org>
1649 * giscanner/Makefile.am:
1650 * giscanner/sourcescanner.c:
1651 * giscanner/sourcescanner.h:
1652 * tools/Makefile.am:
1653 * tools/grealpath.h:
1654 * tools/sourcescanner.c:
1655 * tools/sourcescanner.h:
1657 Move the scanner to a separate library.
1659 2008-03-23 Johan Dahlin <johan@gnome.org>
1661 * tools/Makefile.am:
1664 * tools/scannerlexer.l:
1665 * tools/scannerparser.y:
1666 * tools/sourcescanner.c:
1667 * tools/sourcescanner.h:
1668 Split out the source scanner from the generator.
1669 Rename the symbols used in the scanner to use the gi_ prefix.
1670 This should make it possible to use the raw C parser from
1673 2008-03-23 Johan Dahlin <johan@gnome.org>
1675 * tests/parser/Makefile.am (utility.gidl):
1676 * tests/parser/utility-expected.gidl:
1677 Pass in the gobject.gidl since we're defining a GObject.
1679 2008-03-12 Johan Dahlin <johan@gnome.org>
1681 * relaxng/relaxng.rng:
1682 Add a releaxng in relaxng we can use to validate the relaxngs
1685 2008-03-12 Jürg Billeter <j@bitron.ch>
1687 * tools/scanner.c: (g_igenerator_new):
1688 * tools/scannerparser.y:
1689 Fix compiler warnings.
1691 2008-03-12 Jürg Billeter <j@bitron.ch>
1695 * tools/scannerparser.y:
1696 Start fixing memory management in g-idl-scanner.
1698 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
1700 * tools/gidlcompilercontext.c: (write_compiled):
1701 Fix critical warning when no shlib passed to g-idl-compiler.
1703 2008-03-12 Johan Dahlin <johan@gnome.org>
1705 * tests/parser/utility-expected.gidl:
1706 * tests/parser/utility.h:
1707 Add a get_type-function, so the scanner actually
1708 parses it as an object.
1710 2008-03-12 Johan Dahlin <johan@gnome.org>
1712 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
1715 * tests/parser/Foo-expected.gidl:
1716 * tests/parser/Makefile.am:
1717 * tests/parser/foo-object.h:
1718 * tests/parser/foo.c:
1719 * tests/parser/utility-expected.gidl:
1720 * tests/parser/utility.c:
1721 * tests/parser/utility.h:
1723 Add a new gidl test. 'utility.gidl', which is used to be able
1724 to test external type references. Add a reference to UtilityObject*
1727 2008-03-11 Johan Dahlin <johan@gnome.org>
1731 Remove most global variables
1733 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
1735 * tools/scannerlexer.l:
1737 * tests/parser/Foo-expected.gidl:
1738 * tests/parser/foo.c:
1739 * tests/parser/Makefile.am:
1740 * tests/parser/foo-object.h:
1742 Added a few extra tests. Which resulted in finding a few
1743 bugs. Which resulted in me fixing those bugs
1745 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1747 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
1748 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
1749 Add some comments for strings into generated output for
1752 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
1754 * tools/gidlcompilercontext.c: (write_compiled):
1755 Write out the shlibs variable before writing out the strings
1756 length. Fixes compiler warning when using '-l' flag with
1759 2008-03-11 Johan Dahlin <johan@gnome.org>
1761 * tests/parser/Foo-expected.gidl:
1762 * tests/parser/foo-object.h:
1765 * tools/scannerlexer.l:
1766 Add support for parsing return arguments. Add support for
1767 caller-owns return types.
1768 Patch by Philip Van Hoof.
1770 * tools/scannerparser.y:
1771 Remove parsing of the @deprecated syntax used in headers.
1772 We will support gtk-doc deprecation in the future instead.
1774 2008-03-11 Johan Dahlin <johan@gnome.org>
1776 * tools/compiler.c (main): Coding style fixes
1778 2008-03-10 Johan Dahlin <johan@gnome.org>
1781 Add GCOV_LIBS to GILIBS
1783 2008-03-10 Johan Dahlin <johan@gnome.org>
1785 * tests/parser/Foo-expected.gidl:
1786 * tests/parser/foo.c:
1787 Rename null-ok to direction=out
1789 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
1791 reviewed and extensively tested by Johan
1793 * tests/parser/Foo-expected.gidl:
1794 * tests/parser/foo-object.h:
1795 * tests/parser/foo.c:
1798 * tools/gidlwriter.c:
1801 * tools/scannerlexer.l:
1802 * tools/scannerparser.y:
1804 Add support for scanning for gtk-doc comments inside
1805 C source files. Add tests
1807 2008-03-10 Johan Dahlin <johan@gnome.org>
1809 * tests/parser/Makefile.am:
1810 * tests/parser/foo.c:
1813 * tools/scannerparser.y:
1814 Add an api to lex filenames.
1815 Lex all source .c files passed in on the command line.
1816 Scan sources in a test and a couple of private structures
1817 which should not be included in the generated gidl
1819 2008-03-10 Johan Dahlin <johan@gnome.org>
1821 * tests/invoke/Makefile.am: Make the generated metadata
1822 depend on the g-idl-compiler
1824 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1826 * tools/gidlmodule.c
1827 * tools/gidlmodule.h
1830 Remove the old g-idl-compiler code.
1833 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
1835 * tools/quote-file.sh
1838 Move to using the 'C' struct compiler code.
1840 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1842 * girepository/ginfo.c
1844 Change the way that external references with no namespace
1845 are dealt with. External references with no namespace
1846 are placed into the XML as-if they are a local reference.
1847 This is temporary, but helps with roundtrip tests.
1849 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1851 * girepository/ginfo.c
1852 Add the ability to get the value of a constant of
1853 type TYPE_TAG_SYMBOL. In the case of a symbol the value
1854 is provided as a string.
1856 This would deal properly with:
1857 typedef char* random;
1858 const random = "A string";
1860 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1862 * girepository/ginfo.c
1863 * girepository/girepository.h
1865 Add a function to check if an enum is registered or not.
1866 Previously anything testing this relied on the g-type
1867 string offset having a value of 0.
1869 * girepository/gmetadata.c
1870 * girepository/gmetadata.h
1872 Remove unneccesary or erroneous checks. There were two
1873 metadata validation checks which made sure that the blob
1874 sizes were the same as some magic numbers compiled into the code.
1875 This is wrong as it breaks any forwards compatibility that may
1878 Checks were also present that made sure that unregistered type
1879 blobs had a value of 0 in the g-type offset field. This is
1880 unneccessary. If a type blob is unregistered then any value
1881 in its g-type field is simply invalid.
1883 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1885 * girepository/ginfo.c
1886 * girepository/gmetadata.c
1887 * girepository/gmetadata.h
1889 Change the metadata format to have a standard header
1890 for all the type blobs. Merge the SimpleTypeBlob
1891 and InterfaceTypeBlob into a union. A union of these
1892 two blobs existed previously but was not explicit
1893 in the metadata format.
1895 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1897 * tools/gidlcompilercontext.c
1898 * tools/gidlcompilercontext.h
1899 * tools/gidlcompilerentrynode.c
1900 * tools/gidlcompilerentrynode.h
1901 * tools/gidlcompilertypenode.c
1902 * tools/gidlcompilertypenode.h
1904 Add code to compile a tree of GIdlNodes to
1905 a 'C' struct representing the metadata.
1906 This is to aid cross-compiling. Previously
1907 the g-idl-compiler created a binary blob with
1908 data written in the byte order and alignment
1909 of the tool rather than the intended target.
1911 Cleaned up and improved by Johan and Robert :-)
1913 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1915 * girepository/ginvoke.c
1916 * girepository/girepository.h
1917 * girepository/gmetadata.c
1918 * girepository/gmetadata.h
1920 * tools/gidlparser.c
1921 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
1922 to avoid confusion with the interface blob.
1925 * tools/gidlparser.c
1926 Remove magic numbers and replace with type-tag
1927 enumeration symbols.
1929 * girepository/gmetadata.c
1930 Add validate declaration.
1932 2008-03-10 Jürg Billeter <j@bitron.ch>
1934 * tools/gidlparser.c: (parse_type_internal):
1935 * tools/scannerlexer.l:
1936 * tools/scannerparser.y:
1937 Support C99 _Bool type in scanner.
1939 2008-03-10 Jürg Billeter <j@bitron.ch>
1941 * tests/parser/Foo-expected.gidl:
1942 * tests/parser/foo-object.h:
1943 * tests/parser/foo.c: (foo_enum_method):
1944 * tools/scanner.c: (g_igenerator_process_function_symbol):
1945 Don't skip functions that are defined in the namespace of a type
1946 that doesn't support methods, as for example enums.
1948 2008-03-10 Johan Dahlin <johan@gnome.org>
1950 * gidl.dtd: Remove, we're using relaxng for now
1952 * tests/parser/Foo-expected.gidl:
1953 * tests/parser/foo-object.h:
1954 * tests/parser/foo.c:
1955 Rename the enum/flags get_type functions to include the whole type.
1957 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
1959 * tools/gidlwriter.c (enum_generate): added "type-name",
1960 "get-type" and "deprecated" missing arguments.
1961 * tests/parser/Foo-expected.gidl:
1962 * tests/parser/foo-object.h: test enum type, and no type.
1964 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
1967 Consistent checks, add missing 'test'
1969 2008-03-05 Havoc Pennington <hp@redhat.com>
1971 * configure.ac: Take advantage of a libffi.pc if one exists, as it
1972 does on Fedora 8. Make libffi a hard requirement, since it was in
1973 practice anyway (was not really conditional in the code or
1974 makefile, only in configure).
1976 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
1978 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
1979 reviewed by: Johan Dahlin <johan@gnome.org>
1981 * tests/Makefile.am:
1982 * tests/roundtrips.sh:
1983 Modify the roundtrips test so that they do not use the
1984 --raw option of the gidl compiler but instead compile a
1985 shared library to use with g_module.
1987 * tests/invoke/Makefile.am:
1988 * tests/invoke/invoke.c:
1989 Modify the invoke tests to build a shared library rather
1990 than use the --raw option.
1992 * tests/invoke/invoke-namespace-find.sh: Removed:
1993 Noone knows why this was here, so removed.
1995 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
1997 * tools/scanner.c: (g_igenerator_process_function_symbol):
1998 Move g_idl_node_can_have_member test later, as it broke spotting
1999 get_type's for nodes that can't have members.
2001 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2004 * tools/gidlnode.c: (g_idl_node_can_have_member):
2005 Add g_idl_node_can_have_member.
2007 * tools/scanner.c: (g_igenerator_process_function_symbol):
2008 Use g_idl_node_can_have_member to test if we should add a function
2009 as a member of the type node.
2011 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2013 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
2015 * tests/parser/Makefile.am:
2016 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
2018 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2020 * tools/scanner.c: (main):
2021 Ignore -pthread when passed to g-idl-scanner.
2023 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2025 * tools/grealpath.h: Added:
2026 * tools/scanner.c: (main):
2027 * tools/scannerlexer.l:
2028 * tools/Makefile.am:
2029 Always use absolute paths with symbolic links resolved when
2030 comparing filenames.
2032 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
2034 * gobject-introspection.pc.in:
2035 Provide variables for g-idl-parser, scanner and compiler in the
2038 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
2041 * girepository/Makefile.am:
2042 * tools/Makefile.am:
2043 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
2045 2008-02-10 Johan Dahlin <johan@gnome.org>
2047 * tests/parser/Foo-expected.gidl:
2048 * tests/parser/foo-object.h:
2049 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
2050 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
2053 2008-02-10 Johan Dahlin <johan@gnome.org>
2055 * tests/parser/Foo-expected.gidl:
2056 * tests/parser/foo-object.h:
2057 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
2058 Add enum and flags test.
2060 2008-02-10 Johan Dahlin <johan@gnome.org>
2064 * girepository/Makefile.am:
2065 Make 'make distcheck' work again.
2067 2008-02-10 Johan Dahlin <johan@gnome.org>
2069 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
2072 * tests/parser/Makefile.am: Only create Foo.gidl when running make
2073 check, eg exclude it from BUILT_SOURCES.
2075 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2080 * girepository/Makefile.am:
2081 * m4/Makefile.am: Added:
2082 * m4/as-compiler-flag.m4: Added:
2083 * m4/gcov.m4: Added:
2084 * tools/Makefile.am:
2085 Add ability to generate a coverage report.
2086 Adds configure option --enable-gcov and make rule 'check-coverage'.
2088 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
2092 * gidl/Makefile.am: Added:
2093 * girepository/Makefile.am: Added:
2094 * src/Makefile.am: Renamed to tools/Makefile.am:
2095 * src/compiler.c: Renamed to tools/compiler.c:
2096 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
2097 * src/generate.c: Renamed to tools/generate.c:
2098 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
2099 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
2100 * src/gidlnode.c: Renamed to tools/gidlnode.c:
2101 * src/gidlnode.h: Renamed to tools/gidlnode.h:
2102 * src/gidlparser.c: Renamed to tools/gidlparser.c:
2103 * src/gidlparser.h: Renamed to tools/gidlparser.h:
2104 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
2105 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
2106 * src/ginfo.c: Renamed to girepository/ginfo.c:
2107 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
2108 * src/girepository.c: Renamed to girepository/girepository.c:
2109 * src/girepository.h: Renamed to girepository/girepository.h:
2110 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
2111 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
2112 * src/scanner.c: Renamed to tools/scanner.c:
2113 * src/scanner.h: Renamed to tools/scanner.h:
2114 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
2115 * src/scannerparser.y: Renamed to tools/scannerparser.y:
2116 * tests/invoke/Makefile.am:
2117 Split src/ into girepository/ and tools/
2121 * girepository/Makefile.am:
2122 * tests/Makefile.am:
2123 * tests/invoke/Makefile.am:
2124 * tests/parser/Makefile.am:
2125 * tests/roundtrips.sh:
2126 * tools/Makefile.am:
2127 Make distcheck work.
2129 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
2131 * tests/invoke/invoke.c: (main):
2132 * tests/invoke/testfns.c: (test6), (test7):
2133 * tests/invoke/testfns.xml:
2134 Add tests for invokation with a GList argument.
2135 Also tests caller-owns return values.
2137 2008-02-04 Rob Taylor <robtaylor@floopily.org>
2140 Add some documentation for GICallableInfo
2142 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
2145 Correct syntax errors in the DTD file.
2147 * relaxng/c-types.xml:
2148 * relaxng/g-types.xml:
2150 Add a RelaxNG specification for the GObject Introspection XML data.
2151 The Specification has validated all of the test files.
2153 2008-01-25 Rob Taylor <robtaylor@floopily.org>
2155 * tests/roundtrips.sh:
2156 * tests/struct.test:
2157 Add roundtrip tests for structs.
2159 2008-01-11 Johan Dahlin <johan@gnome.org>
2161 * src/scanner.c (g_igenerator_process_function_symbol):
2162 Refactor out g_idle_node_add_member.
2163 (create_node_from_gtype, create_node_from_ctype):
2164 Use case instead of if...else
2165 (get_type_from_type_id):
2166 Rename to create_node_from_gtype
2167 (get_type_from_ctype):
2168 Rename to create_node_from_ctype
2170 Rename ginode -> node, gitype -> type, gifunc -> func.
2172 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
2173 Two new functions, refactor out of scanner.c
2175 * src/scanner.c: (g_igenerator_process_function_symbol):
2176 * src/scannerlexer.l:
2177 Do not save the content of the deprecated variable, only
2180 2008-01-11 Johan Dahlin <johan@gnome.org>
2182 * tests/parser/foo-object.h: Add a couple of comment parser tests.
2184 2008-01-11 Jürg Billeter <j@bitron.ch>
2186 * src/scannerlexer.l:
2187 Fix GTK-Doc parsing.
2189 2008-01-11 Jürg Billeter <j@bitron.ch>
2191 * src/scannerlexer.l:
2192 Fix GTK-Doc parsing.
2194 2008-01-11 Jürg Billeter <j@bitron.ch>
2196 * src/scanner.c: (lookup_symbol):
2197 Return unresolved name if we find unknown symbol.
2199 2008-01-11 Jürg Billeter <j@bitron.ch>
2201 * src/scanner.c: (g_igenerator_generate):
2202 Initialize GObject to fix scanning interface properties.
2204 * tests/parser/Foo-expected.gidl:
2205 * tests/parser/foo-object.h:
2206 * tests/parser/foo.c: (foo_interface_get_type):
2207 Test interfaces with GObject prerequisite.
2209 * tests/parser/Makefile.am:
2210 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
2212 2007-12-27 Johan Dahlin <johan@gnome.org>
2214 * src/scannerlexer.l:
2215 Parse gtk-doc comments.
2217 * src/gidlwriter.c: (function_generate):
2218 Reorganize, avoid duplication and add support for
2219 writing deprecated functions.
2221 * src/scannerparser.y:
2223 Add new structure CDirective and functions to create/free them.
2225 * src/scanner.c: (g_igenerator_process_function_symbol),
2226 (g_igenerator_process_unregistered_struct_typedef),
2227 (g_igenerator_process_struct_typedef),
2228 (g_igenerator_process_union_typedef),
2229 (g_igenerator_process_enum_typedef),
2230 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
2231 (g_igenerator_start_preprocessor):
2232 Parse @deprecated directive for functions.
2233 Remove some more C99isms.
2234 Send in -C to cpp to avoid stripping comments.
2236 * tests/parser/foo-object.h:
2237 * tests/parser/Foo-expected.gidl:
2238 Add deprecated directive
2240 2007-12-27 Johan Dahlin <johan@gnome.org>
2242 * src/scannerlexer.l (intsuffix): Add emacs mode line and
2243 escape ' and " so it looks more like C.
2246 Unlink temporary file used.
2248 2007-12-27 Johan Dahlin <johan@gnome.org>
2250 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
2251 (g_igenerator_start_preprocessor), (main):
2253 * src/scannerparser.y:
2254 Plug a couple of simple memory leaks.
2256 2007-12-27 Johan Dahlin <johan@gnome.org>
2258 * src/scanner.c: (g_igenerator_parse_macros),
2259 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
2262 * src/scannerparser.y:
2263 * tests/parser/Makefile.am:
2265 Improve error reporting, return when the preprocessor fails.
2266 Add a verbose parameter, to aid debugging.
2267 Revert to using a temporary file to communicate between the
2268 preprocessor and the parser, because we need to wait for
2269 the exit code from the pre-processor before starting to parse.
2271 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
2273 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
2274 cparser.y to scannerparser.y
2276 2007-12-11 Johan Dahlin <johan@gnome.org>
2280 * src/scanner.c: (g_igenerator_new):
2282 Get rid of the global the_generator variable.
2284 2007-12-10 Johan Dahlin <johan@gnome.org>
2286 * src/scanner.c (main): Add an output option,
2287 add checks for required parameters
2290 set BUILD_SOURCES and CLEANFILES properly
2292 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
2293 (g_writer_write_indent), (g_writer_write_unindent),
2294 (field_generate), (value_generate), (constant_generate),
2295 (property_generate), (function_generate), (vfunc_generate),
2296 (signal_generate), (interface_generate), (struct_generate),
2297 (union_generate), (boxed_generate), (enum_generate),
2298 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
2300 * src/scanner.c: (g_igenerator_generate):
2302 * src/scannerwriter.c:
2304 Refactor scannerwriter to only be tied to a GIdlModule and move
2305 it (again!) to gidlwriter.c. Change the writer function to take
2308 2007-12-10 Johan Dahlin <johan@gnome.org>
2311 * src/scanner.c: (g_igenerator_generate):
2313 * src/scannerwriter.c: (g_igenerator_write_inline),
2314 (g_igenerator_write), (g_igenerator_write_indent),
2315 (g_igenerator_write_unindent), (field_generate), (value_generate),
2316 (constant_generate), (property_generate), (function_generate),
2317 (vfunc_generate), (signal_generate), (interface_generate),
2318 (struct_generate), (union_generate), (boxed_generate),
2319 (enum_generate), (node_generate), (module_generate),
2320 (g_scanner_write_file):
2322 Move the scanner gidl writing to a separate source file.
2324 2007-12-10 Johan Dahlin <johan@gnome.org>
2329 Move over all CType construction functions.
2331 * tests/parser/Makefile.am:
2332 Be verbose when printing parsing tests results.
2334 2007-12-10 Johan Dahlin <johan@gnome.org>
2336 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
2337 preprocessor handling to here. Start cpp insteado of cc -E,
2338 always include -U__GNUC__, since it's specific to the preprocessor
2341 * tests/parser/Makefile.am (check-local): Silent diff and skip
2342 -U__GNUC__ which is always defined now
2344 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
2346 reviewed by: <delete if not using a buddy>
2348 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
2349 * tests/parser/Makefile.am:
2351 2007-12-09 Johan Dahlin <johan@gnome.org>
2354 Use GOption for command line options.
2355 (g_igenerator_new, main): Simplify constructor and they way
2356 parameters are passed into it.
2362 * src/gen-introspect.c:
2363 * src/gen-introspect.h:
2365 Rename gen-introspect.[ch] to scanner.[ch]
2367 2007-12-09 Johan Dahlin <johan@gnome.org>
2371 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
2372 don't make the repository library and the other utilites link against
2375 * src/gen-introspect.c: (g_igenerator_create_object),
2376 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2377 (g_igenerator_create_enum), (g_igenerator_create_flags),
2378 (g_igenerator_process_module_symbol),
2379 (g_igenerator_process_module), (g_igenerator_generate), (main):
2380 * src/gen-introspect.h:
2381 Refactor g_igenerator_process_types into smaller pieces.
2383 * tests/parser/Makefile.am:
2384 Depend on the gen-introspect binary
2386 2007-12-09 Johan Dahlin <johan@gnome.org>
2388 * src/gen-introspect.c (g_igenerator_process_types):
2389 Break into smaller pieces, one for each generated node type.
2391 2007-12-08 Johan Dahlin <johan@gnome.org>
2393 * src/gen-introspect.c: (g_igenerator_process_types),
2394 (g_igenerator_add_module):
2395 * tests/parser/Foo-expected.gidl:
2396 * tests/parser/foo-object.h:
2397 * tests/parser/foo.c: (foo_subobject_class_init),
2398 (foo_subobject_init):
2400 Add a subobject test and make sure to register defined classes
2401 in the lookup symbol hash table.
2403 2007-12-08 Johan Dahlin <johan@gnome.org>
2407 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
2408 (g_igenerator_process_types), (g_igenerator_add_module),
2409 (g_igenerator_add_include_idl), (main):
2410 * src/gen-introspect.h:
2411 * tests/parser/Makefile.am:
2412 * tests/parser/Foo-expected.gidl:
2414 Change the gen-introspect to generate namespaced module names,
2415 such as GLib.Object instead of GObject.
2416 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
2417 add a --include-idl parameter to gen-introspect,
2418 and update the parser test.
2420 2007-12-08 Johan Dahlin <johan@gnome.org>
2422 * src/gen-introspect.c:
2423 Move main to the end of the file and attempt to make it valid
2426 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
2427 we're not quite ready to generate metadata yet.
2432 Add a simple gen-introspect parser test
2434 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
2436 reviewed by: Johan Dahlin <johan@gnome.org>
2439 * gobject-introspection.pc.in:
2441 * src/compiler.c: (format_output), (write_out_metadata), (main):
2442 * src/gen-introspect.c: (main):
2443 * src/gen-introspect.h:
2444 * src/generate.c: (write_callable_info), (write_repository),
2445 (load_metadata), (main):
2446 * src/gidlmodule.c: (g_idl_module_new),
2447 (g_idl_module_build_metadata):
2449 * src/gidlparser.c: (start_element_handler):
2450 * src/ginfo.c: (g_info_new), (g_info_from_entry),
2451 (g_base_info_get_name), (g_base_info_get_namespace),
2452 (g_base_info_is_deprecated), (g_base_info_get_annotation),
2453 (g_base_info_get_metadata), (g_function_info_get_symbol),
2454 (g_function_info_get_flags), (g_function_info_get_property),
2455 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
2456 (g_callable_info_may_return_null),
2457 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
2458 (g_callable_info_get_arg), (g_arg_info_get_direction),
2459 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
2460 (g_arg_info_is_optional), (g_arg_info_may_be_null),
2461 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
2462 (g_type_info_get_tag), (g_type_info_get_param_type),
2463 (g_type_info_get_interface), (g_type_info_get_array_length),
2464 (g_type_info_is_zero_terminated),
2465 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
2466 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
2467 (g_value_info_get_value), (g_field_info_get_flags),
2468 (g_field_info_get_size), (g_field_info_get_offset),
2469 (g_registered_type_info_get_type_name),
2470 (g_registered_type_info_get_type_init),
2471 (g_struct_info_get_n_fields), (g_struct_info_get_field),
2472 (g_struct_info_get_n_methods), (g_struct_info_get_method),
2473 (find_method), (g_struct_info_find_method),
2474 (g_enum_info_get_n_values), (g_enum_info_get_value),
2475 (g_object_info_get_parent), (g_object_info_get_type_name),
2476 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
2477 (g_object_info_get_interface), (g_object_info_get_n_fields),
2478 (g_object_info_get_field), (g_object_info_get_n_properties),
2479 (g_object_info_get_property), (g_object_info_get_n_methods),
2480 (g_object_info_get_method), (g_object_info_find_method),
2481 (g_object_info_get_n_signals), (g_object_info_get_signal),
2482 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
2483 (g_object_info_get_n_constants), (g_object_info_get_constant),
2484 (g_interface_info_get_n_prerequisites),
2485 (g_interface_info_get_prerequisite),
2486 (g_interface_info_get_n_properties),
2487 (g_interface_info_get_property), (g_interface_info_get_n_methods),
2488 (g_interface_info_get_method), (g_interface_info_find_method),
2489 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
2490 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
2491 (g_interface_info_get_n_constants),
2492 (g_interface_info_get_constant), (g_property_info_get_flags),
2493 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
2494 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
2495 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
2496 (g_constant_info_get_value), (g_union_info_get_n_fields),
2497 (g_union_info_get_field), (g_union_info_get_n_methods),
2498 (g_union_info_get_method), (g_union_info_is_discriminated),
2499 (g_union_info_get_discriminator_offset),
2500 (g_union_info_get_discriminator):
2501 * src/ginvoke.c: (g_function_info_invoke):
2502 * src/girepository.c: (g_irepository_register),
2503 (g_irepository_unregister), (g_irepository_get_default),
2504 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
2505 (g_irepository_get_info), (g_irepository_find_by_name),
2506 (g_irepository_get_shared_library),
2507 (g_irepository_build_search_path), (g_irepository_register_file),
2508 (g_irepository_error_quark):
2509 * src/girepository.h:
2510 * src/gmetadata.c: (g_metadata_get_dir_entry),
2511 (g_metadata_check_sanity), (validate_header),
2512 (validate_array_type_blob), (validate_iface_type_blob),
2513 (validate_param_type_blob), (validate_error_type_blob),
2514 (validate_type_blob), (validate_arg_blob),
2515 (validate_signature_blob), (validate_function_blob),
2516 (validate_callback_blob), (validate_constant_blob),
2517 (validate_value_blob), (validate_field_blob),
2518 (validate_property_blob), (validate_signal_blob),
2519 (validate_vfunc_blob), (validate_struct_blob),
2520 (validate_enum_blob), (validate_object_blob),
2521 (validate_interface_blob), (validate_errordomain_blob),
2522 (validate_union_blob), (validate_blob), (validate_directory),
2523 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
2524 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
2525 (g_metadata_new_from_mapped_file), (g_metadata_free),
2526 (g_metadata_set_module), (g_metadata_get_namespace):
2528 * tests/Makefile.am:
2529 * tests/invoke/Makefile.am:
2530 * tests/invoke/invoke-namespace-find.sh:
2531 * tests/invoke/invoke.c: (main):
2533 Add a namespace/shared library mapping. fixes #313268.
2535 2007-12-03 Johan Dahlin <johan@gnome.org>
2537 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
2540 2007-11-30 Jürg Billeter <j@bitron.ch>
2546 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
2547 (g_igenerator_write_inline), (g_igenerator_write),
2548 (g_igenerator_write_indent), (g_igenerator_write_unindent),
2549 (field_generate), (value_generate), (constant_generate),
2550 (property_generate), (function_generate), (vfunc_generate),
2551 (signal_generate), (interface_generate), (struct_generate),
2552 (union_generate), (boxed_generate), (enum_generate),
2553 (node_generate), (module_generate), (get_type_from_type_id),
2554 (str_replace), (g_igenerator_process_properties),
2555 (g_igenerator_process_signals), (g_igenerator_process_types),
2556 (get_type_from_ctype), (g_igenerator_process_function_symbol),
2557 (g_igenerator_process_unregistered_struct_typedef),
2558 (g_igenerator_process_struct_typedef),
2559 (g_igenerator_process_union_typedef),
2560 (g_igenerator_process_enum_typedef),
2561 (g_igenerator_process_function_typedef),
2562 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2563 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
2564 (g_igenerator_generate), (main), (csymbol_new),
2565 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
2566 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
2567 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
2568 (eat_hspace), (eat_line), (read_identifier),
2569 (g_igenerator_parse_macros):
2570 * src/gen-introspect.h:
2572 Import gen-introspect to generate introspection information by
2575 2007-11-30 Jürg Billeter <j@bitron.ch>
2577 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
2579 2007-11-30 Jürg Billeter <j@bitron.ch>
2581 * src/gidlparser.c: (end_element_handler): Don't leave requires
2584 2007-11-29 Johan Dahlin <johan@gnome.org>
2586 * src/gidlparser.c (parse_type_internal): Add char,
2587 gchar and guchar to the builtin types.
2589 2007-11-26 Johan Dahlin <johan@gnome.org>
2591 * src/ginfo.c: (g_object_info_get_type_name),
2592 (g_object_info_get_type_init):
2593 * src/girepository.c: (g_irepository_is_registered):
2594 * src/girepository.h:
2596 Add g_object_info_get_type_name, g_object_info_get_type_init and
2597 g_irepository_is_registered.
2599 2006-08-14 Jürg Billeter <j@bitron.ch>
2601 * src/gidlparser.c: (end_element_handler): Don't leave
2602 namespace and implements states too early.
2605 2007-11-26 Johan Dahlin <johan@gnome.org>
2607 * src/gmetadata.c (validate_struct_blob):
2608 pass blob_type to validate_function_blob instead of
2609 hard-coding BLOB_TYPE_STRUCT.
2611 Patch by Torsten Schoenfeld, fixes #314190
2613 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
2615 * src/compiler.c, src/generate.c, src/gidlnode.c,
2616 src/gidlparser.c, src/ginfo.c, src/girepository.c,
2617 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
2618 warnings about return values, signedness mismatches, unused
2619 variables, and unhandles enum values in switch statements.
2621 * tests/invoke/Makefile.am: Don't install the invoke test program.
2622 Add -I ../../src to the cflags used for the test functions files.
2624 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2626 * src/girepository.h: Export g_invoke_error_quark.
2628 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
2630 * src/ginvoke.c: Remove the fallback implementation of
2631 g_function_info_invoke since we now formally depend on libffi.
2633 2005-07-25 Matthias Clasen <mclasen@redhat.com>
2635 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
2636 Remove these files from cvs, as they are now generated.
2638 * src/gmetadata.c (validate_iface_type_blob): Don't
2639 complain if blob->pointer is not set, since that
2640 happens for enum and flag types. (#308935, Gustavo
2643 * Commit an autoconf-conversion patch by
2644 Gustavo Carneiro (#308708)
2646 2005-05-24 Matthias Clasen <mclasen@redhat.com>
2648 * src/compiler.c (main): Use it here to validate
2649 the generated metadata.
2651 * src/gmetadata.[hc]: Add code to validate a
2654 * metadata-format.txt: Updates
2656 2005-05-22 Matthias Clasen <mclasen@redhat.com>
2658 * tests/*: Add struct offsets to field and vfunc
2661 * src/generate.c (write_vfunc_info): Write offset
2662 information for vfuncs.
2664 * src/gidlnode.c (g_idl_node_build_metadata): Write
2665 the struct offsets into the metadata.
2667 * src/gidlparser.c: Parse the offset attributes of
2668 field and vfunc elements.
2670 * src/gidlnode.h: Add offset members to field and
2673 2005-05-21 Matthias Clasen <mclasen@redhat.com>
2677 * gidl.dtd: Updates.
2679 * src/g-idl-offsets.pl: A perl script which reads a .gidl
2680 file, creates, compiles and runs a C file, and folds the
2681 resulting struct offsets back into the .gidl file.
2683 2005-05-20 Matthias Clasen <mclasen@redhat.com>
2685 * src/gidlparser.c (start_field): Make fields in objects
2688 * src/gidlmodule.c: Include string.h
2693 * metadata-format.txt: Cleanup basic types.
2694 * src/*: Adapt to the changes.
2695 * tests/*: Adapt to the changes.
2696 * examples/gdk-pixbuf.gidl: Adapt to the changes.
2698 * src/gidlnode.c (g_idl_node_get_size): Report the correct
2699 size for enum blobs.
2700 (g_idl_node_get_full_size): Report the correct size for
2703 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
2704 error checking for blob sizes.
2706 2005-05-19 Matthias Clasen <mclasen@redhat.com>
2708 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
2709 interface types for which is_pointer is FALSE, e.g. enums.
2711 * src/gidlnode.c (g_idl_node_get_full_size)
2712 * src/gidlparser.c (parse_type_internal):
2713 * src/generate.c (write_type_info): Support unspecialized
2714 lists, hashtables and errors. Also emit a '*' after these.
2718 2005-05-17 Matthias Clasen <mclasen@redhat.com>
2722 * metadata-format.txt: Cleanups by Maciej Katafiasz.
2724 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2726 * src/*.c: Change the directory to be addressed by
2727 1-based indexes, and use an index of zero to mean
2730 2005-05-15 Matthias Clasen <mclasen@redhat.com>
2732 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
2734 * tests/union.test: Add a union test.
2736 * src/generate.c: Handle unions.
2738 * src/girepository.h:
2739 * src/ginfo.c: Add GIUnionInfo and functions to access it.
2741 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
2743 * src/gidlparser.c (start_union): Parse <union> elements.
2745 * src/gidlnode.h: Add a GIdlNodeUnion.
2747 * gidl.dtd: Add a <union> element.
2749 * src/gmetadata.c (g_metadata_check_sanity): Check
2752 * src/gmetadata.h: Add union_blob_size to Header,
2755 * metadata-format.txt: Add a UnionBlob.
2757 2005-05-13 Matthias Clasen <mclasen@redhat.com>
2759 * tests/*: Update testcases.
2761 * src/generate.c (write_callable_info): Don't forget to
2762 write transfer and null-ok attributes for return types
2765 * src/girepository.h:
2766 * src/ginfo.c (g_callable_info_may_return_null):
2767 New function to find out if a function may return NULL.
2769 * src/compiler.c (format_output): Make the generated
2772 * README: Point to a recent libffi snapshot.
2774 * tests/invoke/*: Some invoke tests.
2776 * src/Makefile: Add ginvoke.c and the necessary
2779 * src/girepository.h (g_function_info_invoke): Add
2782 * src/ginvoke.c (g_function_info_invoke): Initial
2783 implementation of invoke functionality based on libffi.
2785 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
2786 strings and types hash tables in the right order when
2788 (find_entry_node): Free the name parts.
2790 2005-05-12 Johan Dahlin <johan@gnome.org>
2792 * src/generate.c: Generate consistent end tags.
2796 2005-05-12 Matthias Clasen <mclasen@redhat.com>
2800 * src/gidlparser.c (start_function): Actually add
2801 methods to objects. (Steven Walter)
2803 * src/girepository.h:
2804 * src/ginfo.c: Rename Transfer and Direction to
2805 GITransfer and GIDirection. (Torsten Schoenfeld)
2807 * tests/*: Make tests work with the changes in name
2810 * src/gidlnode.c (find_entry_node): Parse qualified
2811 names and generate xref nodes for them if needed. Don't
2812 require all modules to be loaded any more.
2814 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
2817 * src/ginfo.c (g_object_info_get_parent): Return NULL
2818 if blob->parent is 0. Still need to make sure index
2821 * src/generate.c: Generate qualified names when
2822 referring to non-local types. Emit transfer attribute
2825 * src/compiler.c (format_output): Put the function
2826 attributes where gcc accepts them.
2828 2005-05-11 Matthias Clasen <mclasen@redhat.com>
2830 * src/compiler.c (main): Add a --verbose cmdline option
2831 and only log messages if it is specified.
2834 * src/gidlnode.c (init_stats, dump_stats): Collect some
2835 statistics on string and type sharing.
2837 * src/gidlmodule.c (g_idl_module_build_metadata): Use
2838 g_message() instead of fprintf().
2840 * src/gidlnode.c (g_idl_node_free): Make this more robust.
2841 (g_idl_node_get_size): Implement for structs.
2842 (g_idl_node_get_full_size): Handle parent being NULL.
2843 (serialize_type): Handle lookup failures more gracefully.
2845 2005-05-10 Matthias Clasen <mclasen@redhat.com>
2847 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
2848 size calculation for 2-parameter types and for objects.
2850 * src/compiler.c: Add a cmdline option for debug output
2851 and install a log handler to implement it.
2852 * src/gidlnode.c: Add some debug spew.
2856 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
2857 forget to count the module name when calculating the
2858 required size for the metadata.
2861 * src/gidlparser.c: Fix compiler warnings.
2863 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2865 * src/compiler.c (main): Free the option context.
2867 * gidl.dtd: Clean up handling of names. All elements
2868 have a "name", only the elements corresponding to
2869 actual callable functions (function, method, constructor),
2870 have an additional "symbol" attribute holding the
2871 dlsym()-able function name.
2873 * src/generate.c: Adapt to generate xml matching the
2877 * src/gidlnode.c: Adapt to parse the new dtd.
2879 * tests/*.test: Adjust to the new dtd.
2881 * metadata-format.txt:
2882 * src/gmetadata.h: Remove the short_name field
2884 * src/gmetadata.c: Shrink size of ValueBlob to 12.
2885 * src/girepository.h:
2886 * src/ginfo.c (g_value_info_get_short_name): Removed
2888 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2890 * gidl.dtd: Allow constructors for boxed types,
2891 patch by Jonathan Blandford.
2894 2005-05-09 Matthias Clasen <mclasen@redhat.com>
2896 * --- Initial import ---