Default to --raw. Update.
[platform/upstream/gobject-introspection.git] / ChangeLog
1 2008-08-22  Colin Walters  <walters@verbum.org>
2
3         * tools/generate.c, tools/compiler.c: Default
4         to --raw.
5         * all Makefile.am: Update.
6
7 2008-08-22  Colin Walters  <walters@verbum.org>
8
9         * girepository/girparser.c: Pass through
10         recursive types.  Avoid overwriting errors.
11         * giscanner/xmlwriter.py: Always write the
12         XML header.
13         * tests/*.gir: Adjust.
14         * tests/scanner/Makefile.am: Build typelibs,
15         and generate XML from those.  Once we
16         have a good diff mechanism...
17         * tests/scanner/*-expected.gir: Add XML
18         header.
19         * tools/g-ir-scanner: Accept --typelib-xml
20         option.
21         * tools/generate.c: Better defaults for transfer.
22
23 2008-08-22  Johan Dahlin  <johan@gnome.org>
24
25         * configure.ac:
26         * gir/Makefile.am:
27         * giscanner/Makefile.am:
28         * giscanner/config.py.in:
29         * giscanner/sourcescanner.py:
30         Use the generated glibconfig.h for all scanner invokations.
31         Rename it to glibconfig-scanner.h and install it.
32         Add a config.py which so far contains the include dir.
33
34 2008-08-22  Johan Dahlin  <johan@gnome.org>
35
36         * gir/Makefile.am:
37         Replace glibconfig.h with our own, do some replacement
38         for CPP/C features we do not support
39
40 2008-08-22  Colin Walters  <walters@verbum.org>
41
42         * tools/generate.c (write_callable_info): Fix unref
43         sequence.
44
45 2008-08-22  Colin Walters  <walters@verbum.org>
46
47         * gobject-introspection-1.0.pc.in: Add g-ir-generate.
48         * tests/Makefile.am: Support $(DEBUG)
49         * tools/generate.c: Do immediate close tags if no
50         sub-elements.
51
52 2008-08-21  Colin Walters  <walters@verbum.org>
53
54         * tests/scanner/drawable-expected.gir,
55         * tests/scanner/drawable.c,
56         * tests/scanner/drawable.h:
57         Add a method.
58
59 2008-08-21  Colin Walters  <walters@verbum.org>
60
61         * giscanner/glibtransformer.py: Compute prefix
62         by searching through the symbol for bits
63         rather than going directly from ctype; this fixes
64         webkit_ namespace.
65
66 2008-08-21  Colin Walters  <walters@verbum.org>
67
68         * giscanner/glibtransformer.py: Also try squashing
69         underscores from namespace, fixes webkit_web_view_new.
70
71 2008-08-21  Colin Walters  <walters@verbum.org>
72
73         * giscanner/glibtransformer.py: More ctor work,
74         avoid having gtk_window_group_new end up under
75         GtkWindow.
76
77 2008-08-21  Colin Walters  <walters@verbum.org>
78
79         * giscanner/glibtransformer.py: Much simpler approach
80         of mapping uscored names to classes.
81         * giscanner/utils.py: Remove unnecessary function.
82
83 2008-08-21  Johan Dahlin  <johan@gnome.org>
84
85         * girepository/girepository.c (g_irepository_require):
86         Plug memory leak and avoid using freed memory.
87         Resolve the whole module path, here as well.
88
89 2008-08-21  Colin Walters  <walters@verbum.org>
90
91         * giscanner/glibtransformer.py: Look up all permutations
92         of class names when scanning methods/ctors based on
93         the prefix instead of using the return value.  This
94         associates gtk_window_new with the right class.
95
96 2008-08-21  Colin Walters  <walters@verbum.org>
97
98         * girepository/girmodule.c (g_ir_module_build_typelib): 
99         Revert change to increment header_size; we do that in
100         write_string.
101
102 2008-08-21  Colin Walters  <walters@verbum.org>
103
104         * girepository/girnode.c (write_string): Tweak to
105         use UINT instead of INT.  Not likely to matter.
106         * girepository/girmodule.c (g_ir_module_build_typelib):
107         Add to header_offset as well for header strings
108         to match what write_string does.
109         * girepository/gtypelib.c: Replace is_name with
110         validate_name, which more strongly validates and
111         handles errors in a better way.  Update all callers.
112         * giscanner/glibtransformer.py: Handle constructors
113         better.
114
115 2008-08-21  Johan Dahlin  <johan@gnome.org>
116
117         * gir/Makefile.am (typelibs_DATA): Build and 
118         install the Gio.typelib too
119
120         * girepository/gtypelib.c (_g_typelib_init):
121         Use g_module_build_path to resolve the shlib name
122
123 2008-08-21  Colin Walters  <walters@verbum.org>
124
125         * gir/Makefile.am: CLEANFILES typelibs too.
126
127 2008-08-21  Johan Dahlin  <johan@gnome.org>
128
129         * giscanner/glibtransformer.py:
130         Do not send .la files through find_library.
131
132 2008-08-21  Colin Walters  <walters@verbum.org>
133
134         * girepository/girparser.c (g_irepository_require):
135         Fix one small leak in error case.
136
137 2008-08-21  Johan Dahlin  <johan@gnome.org>
138
139         * gir/Makefile.am:
140         Parse glibconfig.h as well and install the compiled
141         typelib
142
143 2008-08-21  Johan Dahlin  <johan@gnome.org>
144
145         * gir/Makefile.am:
146         * giscanner/glibtransformer.py:
147         * tools/g-ir-scanner:
148         Do not hard-core library names in the Makefile, reuse
149         ctypes find_library instead.
150
151 2008-08-21  Johan Dahlin  <johan@gnome.org>
152
153         * girepository/girparser.c (resolve_aliases):
154         Remove compilation warnings
155
156 2008-08-21  Johan Dahlin  <johan@gnome.org>
157
158         * girepository/girepository.c (g_irepository_require):
159         Rewrap and fix double free bug by leaking a bit.
160
161 2008-08-20  Colin Walters  <walters@verbum.org>
162
163         * girepository/girepository.c: Add new function
164         g_irepository_get_typelib_path which tells
165         us from where we loaded a namespace.
166
167 2008-08-20  Colin Walters  <walters@verbum.org>
168
169         * tests/scanner/*-expected.gir: Adjust for
170         added shared-library.
171         * giscanner/giwriter.py: Make pylint happy.
172
173 2008-08-20  Colin Walters  <walters@verbum.org>
174
175         * girepository/girmodule.c (g_ir_module_build_typelib):
176         Calculate size correctly, avoid use-after-free.
177
178 2008-08-20  Colin Walters  <walters@verbum.org>
179
180         * girepository/girepository.c: Remove
181         g_irepository_register_file in favor of
182         g_irepository_require.  There are two
183         possible deployment scenarios for typelibs:
184         First, separate in $DATADIR/gitypelibs/.  Second,
185         they may be embedded in shlibs.  However since
186         the first is now the normal case, the API is
187         optimized around it.
188
189         Refactor internals to look up typelibs for
190         namespaces just-in-time, but we expect
191         consumers to call g_irepository_require.
192
193         Also, add some docs.  No one has died from that
194         before.
195         * gir/Makefile.am: Need --library for glib.
196         * giscanner/girwriter.py: Write out shared-library.
197         * tools/g-ir-writer: Take the first --library
198         argument as the target of shared-library.  In
199         the future we should make this nicer with pkg-config
200         probably.
201
202 2008-08-20  Colin Walters  <walters@verbum.org>
203
204         * girepository/girparser.py: And parse them.
205
206 2008-08-20  Johan Dahlin  <johan@gnome.org>
207
208         * giscanner/glibast.py: Add gshort/gushort types
209
210 2008-08-20  Colin Walters  <walters@verbum.org>
211
212         * gir/Makefile.am: Rename .gir files using GI namespace.
213         * girepository/girepository.c: Use XDG_DATA_DIRS for
214         looking up typelibs.  Also typelibs are now suffixed
215         with .typelib.
216         * tests/invoke/Makefile.am: Only use metadata.
217         * girepository/Makefile.am: Remove unnecessary include.
218         * tests/scanner/Makefile.am: Update using GI namespaces
219         for scanner includes.
220
221 2008-08-20  Colin Walters  <walters@verbum.org>
222
223         * girepository/transformer.py: Suppress aliases whose
224         name is a builtin.
225         * girepository/ast.py: Define some more aliases.
226
227 2008-08-20  Colin Walters  <walters@verbum.org>
228
229         * girepository/girparser.c: Avoid alias infloops.
230
231 2008-08-20  Colin Walters  <walters@verbum.org>
232
233         * tests/scanner/foo-expected.gir: Fix expected list type.
234
235 2008-08-20  Johan Dahlin  <johan@gnome.org>
236
237         * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name): 
238         Add a workaround for #548689.
239         We can now compile gtk!
240
241 2008-08-20  Colin Walters  <walters@verbum.org>
242
243         * giscanner/glibtransformer.py: Try to look up
244         aliases using the c:type too.
245
246 2008-08-20  Colin Walters  <walters@verbum.org>
247
248         * girepository/girparser.c: Parse union fields.
249
250 2008-08-20  Johan Dahlin  <johan@gnome.org>
251
252         * giscanner/ast.py: Make time_t an alias for long
253
254         * gir/gio-2.0-good.gir:
255         * gir/glib-2.0-good.gir:
256         * gir/gobject-2.0-good.gir:
257         Regnerate
258         * giscanner/glibtransformer.py:
259         Do not delete Class structures, we need them in gdk/gtk.
260         * tests/scanner/drawable-expected.gir:
261         * tests/scanner/foo-expected.gir:
262         * tests/scanner/utility-expected.gir:
263         Update tests.
264
265 2008-08-20  Johan Dahlin  <johan@gnome.org>
266
267         * tests/scanner/Makefile.am:
268         * tests/scanner/annotation-expected.gir:
269         * tests/scanner/annotation.c (annotation_object_class_init),
270         (annotation_object_init), (annotation_object_method),
271         (annotation_object_in), (annotation_object_out),
272         (annotation_object_inout), (annotation_object_inout2),
273         (annotation_object_inout3), (annotation_object_calleeowns),
274         (annotation_object_calleesowns), (annotation_object_get_strings),
275         (annotation_object_with_voidp), (annotation_object_get_objects),
276         (annotation_object_create_object), (annotation_object_allow_none):
277         * tests/scanner/annotation.h:
278         * tests/scanner/foo-expected.gir:
279         * tests/scanner/foo.c:
280         * tests/scanner/foo.h:
281         Split out annotation tests out of foo
282
283 2008-08-20  Johan Dahlin  <johan@gnome.org>
284
285         * tests/scanner/Foo-expected.gir:
286         * tests/scanner/Makefile.am:
287         * tests/scanner/foo-expected.gir:
288         * tests/scanner/foo-object.h:
289         * tests/scanner/foo.c:
290         Foo->foo, foo-object.h -> foo.h
291
292 2008-08-20  Johan Dahlin  <johan@gnome.org>
293
294         * tests/scanner/Foo-expected.gir:
295         * tests/scanner/Makefile.am:
296         * tests/scanner/drawable-expected.gir:
297         * tests/scanner/drawable.c (test_drawable_class_init),
298         (test_drawable_init):
299         * tests/scanner/drawable.h:
300         * tests/scanner/foo-object.h:
301         * tests/scanner/foo.c (foo_boxed_method):
302         Move the drawable parts out of Foo to its own test.
303
304 2008-08-20  Johan Dahlin  <johan@gnome.org>
305
306         * tests/scanner/Foo-expected.gir:
307         * tests/scanner/foo-object.h:
308         * tests/scanner/foo.c (foo_drawable_class_init),
309         (foo_drawable_init):
310         Add a based on GdkDrawable which generates
311         a broken gir.
312
313 2008-08-19  Colin Walters  <walters@verbum.org>
314
315         * giscanner/transformer.py: Don't try
316         to strip prefix before namespace.
317
318 2008-08-19  Johan Dahlin  <johan@gnome.org>
319
320         * giscanner/transformer.py:
321         * tests/scanner/Foo-expected.gir:
322         * tests/scanner/foo-object.h:
323         Add support for typedef void foo type of
324         aliases.
325
326 2008-08-19  Johan Dahlin  <johan@gnome.org>
327
328         * giscanner/ast.py:
329         * giscanner/girwriter.py:
330         * giscanner/glibtransformer.py:
331         * giscanner/transformer.py:
332         * tests/scanner/Foo-expected.gir:
333         Add basic support for union, base the code much
334         on Struct. Add a testcase.
335
336 2008-08-19  Johan Dahlin  <johan@gnome.org>
337
338         * tests/scanner/Foo-expected.gir:
339         * tests/scanner/foo-object.h:
340         Add a union testcase which the compiler currently
341         barfs at.
342
343 2008-08-19  Johan Dahlin  <johan@gnome.org>
344
345         * gobject-introspection-1.0.pc.in:
346         Add a g_ir_compiler variable
347
348 2008-08-19  Colin Walters  <walters@verbum.org>
349
350         * giscanner/ast.py: Rework types to be more closely
351         based on GITypeTag.
352         * giscanner/girparser.py: Parse more bits.
353         * giscanner/girwriter.py: Write sequences in a new
354         way that specifies container type.
355         * giscanner/glibast.py: Adjust for ast.py changes,
356         add 'ctype' property to GLibObject and GLibInterface
357         so we can look things up by it later.
358         * gicanner/transformer.py: Names is new class holding
359         the various namespaces we manage.  Do not confuse
360         with Namespace which is toplevel XML node effectively.
361         Rework all type resolution to go through
362         _resolve_type_name_1.
363         * giscanner/glibtransformer.py: Raise UnknownTypeError
364         instead of ValueError for cleanliness.  Add Unresolved
365         class to mark types whose parent we haven't seen yet.
366         Use new Names object from transformer.py.
367         Correctly look up parent=.
368         Fix type validation to handle sequences.
369         * tests/scanner/Foo-expected.gir: Update for sequence
370         work, int instead of int32.
371         * tools/g-ir-scanner: Add --noclosure option
372         * gir/Makefile.am: Use --noclosure by default for
373         GLib/GObject.
374
375 2008-08-18  Johan Dahlin  <johan@gnome.org>
376
377         * gir/gio-2.0-good.gir:
378         * gir/glib-2.0-good.gir:
379         * gir/gobject-2.0-good.gir:
380         Regenerate.
381
382 2008-08-18  Johan Dahlin  <johan@gnome.org>
383
384         * giscanner/ast.py:
385         * giscanner/girparser.py:
386         * giscanner/girwriter.py:
387         * giscanner/glibast.py:
388         * giscanner/glibtransformer.py:
389         * giscanner/transformer.py:
390         * tests/scanner/Foo-expected.gir:
391         * tests/scanner/foo-object.h:
392         * tests/scanner/utility-expected.gir:
393         * tests/scanner/utility.h:
394         Redo type resolving and validation.
395         Add a couple of new tests.
396         Patch mostly written by Colin.
397
398 2008-08-18  Johan Dahlin  <johan@gnome.org>
399
400         * gir/Makefile.am:
401         * giscanner/girparser.py:
402         Set ctype of enums
403         * giscanner/transformer.py:
404         Improve enum parsing for enums without a GType.
405         Make flags/enum references to other girs work
406         * giscanner/utils.py:
407         Simplify this a bit
408         * tests/scanner/Makefile.am:
409         * tests/scanner/foo-object.h:
410         * tests/scanner/utility-expected.gir:
411         * tests/scanner/utility.h:
412         Add a new test for external enum references
413
414 2008-08-18  Johan Dahlin  <johan@gnome.org>
415
416         * docs/global-module-registry.txt: Update
417
418         * tests/array.gir: Update with new type proposal
419
420         * girepository/girepository.c (g_type_tag_to_string):
421         * girepository/girepository.h:
422         * girepository/girnode.c (g_ir_node_get_full_size_internal),
423         (find_entry_node):
424         * girepository/girnode.h:
425         Make enum serializing functions public. Clean up some whitespace.
426
427 2008-08-17  Johan Dahlin  <johan@gnome.org>
428
429         * docs/global-module-registry.txt:
430         Add a document for an on disk module registry format
431
432 2008-08-17  Johan Dahlin  <johan@gnome.org>
433
434         * gir/Makefile.am:
435         * gir/gio-2.0-good.gir:
436         Add a gio gir.
437
438 2008-08-17  Johan Dahlin  <johan@gnome.org>
439
440         * gir/Makefile.am:
441         * gir/glib-2.0-good.gir:
442         * gir/gobject-2.0-good.gir:
443         * giscanner/cgobject.py:
444         * giscanner/glibtransformer.py:
445         Regenerate GObject & GType.
446         Avoid warnings when generating gobject-2.0.gir.
447         Introspect a little more, and skip *_get_type functions.
448
449 2008-08-17  Colin Walters  <walters@verbum.org>
450
451         * gir/glib-2.0.gir, gir/gobject-2.0.gir:
452         Rename to -good, always generate during build.
453         * gir/Makefile.am: Ensure .gir files dep on
454         all scanner sources.
455         * Makefile.am: Switch build order to ensure
456         the scanner is ready before we do gir/.
457         * tools/g-ir-scanner: Look for .git too.
458
459 2008-08-17  Johan Dahlin  <johan@gnome.org>
460
461         * girepository/gtypelib.c (validate_enum_blob):
462         * giscanner/glibtransformer.py:
463         * giscanner/transformer.py:
464         Remove resolve_possible_typedefs, it was unused.
465         Allow multiple enum values of the sample value in an enum,
466         since it's actually pretty common.
467         Register enums so they can be resolved too.
468
469 2008-08-16  Johan Dahlin  <johan@gnome.org>
470
471         * giscanner/girparser.py:
472         Parse enumeration/bitfield.
473
474 2008-08-16  Johan Dahlin  <johan@gnome.org>
475
476         * giscanner/girparser.py:
477         Parse boxed types.
478
479 2008-08-16  Johan Dahlin  <johan@gnome.org>
480
481         * giscanner/glibtransformer.py:
482         Resolve type names for alias targets
483         * giscanner/transformer.py:
484         Skip FILE* parameters fow now
485
486 2008-08-16  Johan Dahlin  <johan@gnome.org>
487
488         * gir/glib-2.0.gir:
489         * gir/gobject-2.0.gir:
490         Regenerate
491
492         * tests/scanner/Makefile.am:
493         parser -> scanner
494
495 2008-08-15  Colin Walters  <walters@verbum.org>
496
497         * giscanner/glibtransformer.py: Explicitly construct
498         new list, since we're deleting as we iterate.
499         Don't delete all structures which end in Class; just
500         ones which have a paired GObject.
501         Fix printing of type warning.
502         * giscanner/transformer.py: Make strip_namespace_object
503         be the identity function if it doesn't match the 
504         namespace.
505
506 2008-08-15  Colin Walters  <walters@verbum.org>
507
508         * giscanner/cgobject.py: Define yet more argument
509         prototypes; fix prototype for g_type_fundamental.
510
511 2008-08-14  Johan Dahlin  <johan@gnome.org>
512
513         * tests/Makefile.am:
514         * tests/constant.gir:
515         * tests/gobject.gir:
516         * tests/struct.gir:
517         * tools/generate.c (write_struct_info):
518         Fix generator for constant/gobject/struct
519
520 2008-08-14  Johan Dahlin  <johan@gnome.org>
521
522         * tests/Makefile.am:
523         * tests/enum.gir:
524         * tools/generate.c (write_enum_info):
525         Fix generation of enum/bitfields
526
527 2008-08-14  Johan Dahlin  <johan@gnome.org>
528
529         * girepository/girparser.c (start_field), (start_constant),
530         (start_type), (end_element_handler):
531         Clear up constant parsing
532
533         * tests/object.gir:
534         Update
535
536         * tools/generate.c (write_callable_info), (write_function_info),
537         (write_callback_info), (write_constant_info), (write_signal_info),
538         (write_vfunc_info), (write_property_info), (write_object_info),
539         (write_interface_info):
540         Constants/Signals are handled now.
541
542 2008-08-14  Johan Dahlin  <johan@gnome.org>
543
544         * girepository/girparser.c (start_type):
545         Don't require c:type.
546         * tests/Makefile.am:
547         Test boxed.gir
548         * tests/boxed.gir:
549         Update, remove parts we don't support yet
550         * tests/roundtrips.sh:
551         Remove
552         * tools/generate.c (write_type_info), (write_field_info),
553         (write_callable_info), (write_struct_info):
554         Make it emit proper gir.
555
556 2008-08-14  Johan Dahlin  <johan@gnome.org>
557
558         * giscanner/transformer.py:
559         New internal function for adding a new node.
560
561 2008-08-14  Johan Dahlin  <johan@gnome.org>
562
563         * gir/Makefile.am:
564         Define an internal _H_ variable so we skip parsing both
565         i18n headers, only one is needed.
566         * gir/glib-2.0.gir:
567         Add the glib-2.0.gir too.
568         * giscanner/glibast.py:
569         Add gconstpointer as an alias for ANY
570         * giscanner/transformer.py:
571         Do not lower case enumeration names per se.
572         Skip functions which has parameters called 'va_list'
573
574 2008-08-14  Colin Walters  <walters@verbum.org>
575
576         * giscanner/transformer.py: Comment data structures.
577         Also squash pointers in resolve_type_name to correspond
578         with what we do for params.
579         * giscanner/glibtransformer.py: Print warnings in more
580         situations.  Rework checks for method/constructor to
581         look up in our GType database instead of just checking
582         for *.   Avoid generating <record> for GObject which
583         duplicate the <class>.
584         * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
585         in here.
586
587 2008-08-14  Johan Dahlin  <johan@gnome.org>
588
589         * giscanner/girwriter.py:
590         * giscanner/glibast.py:
591         * giscanner/glibtransformer.py:
592         * giscanner/transformer.py:
593         * misc/pyflakes.py:
594         * tests/Makefile.am:
595         Add pyflakes.py and run it in make check.
596         Update the source code to fix the errors reported by
597         pyflakes.
598
599 2008-08-14  Johan Dahlin  <johan@gnome.org>
600
601         * giscanner/ast.py:
602         * giscanner/girparser.py:
603         * giscanner/glibast.py:
604         * giscanner/glibtransformer.py:
605         Refactor the parser a bit.
606         Add parent type to interfaces and update callsites.
607
608 2008-08-14  Johan Dahlin  <johan@gnome.org>
609
610         * giscanner/glibtransformer.py:
611         * giscanner/utils.py:
612         Refactor a bit, avoid isinstance and add a method
613         for each type we parse.
614
615 2008-08-14  Johan Dahlin  <johan@gnome.org>
616
617         * giscanner/ast.py:
618         * giscanner/girparser.py:
619         * giscanner/glibtransformer.py:
620         * tests/Makefile.am:
621         Run pep8.py in make check, fix old errors.
622
623 2008-08-13  Colin Walters  <walters@verbum.org>
624
625         * giscanner/girparser.py: Parse records.
626
627 2008-08-13  Colin Walters  <walters@verbum.org>
628
629         * gir/Makefile.am: Install again.
630         * gir/gobject-2.0.gir: Add some more bits.
631
632 2008-08-13  Colin Walters  <walters@verbum.org>
633
634         * gir/gobject-2.0.gir: Use correct namespace, add GType.
635         * giscanner/girparser.py: Handle aliases.
636         * giscanner/transformer.py: Record aliases.  Make resolver
637         functions public; we now call into these explicitly from
638         glibtransformer.  Handle resolving aliases.
639         * giscanner/glibtransformer.py: Separate our internal namespace
640         from included ones.  Call up into transformer's resolver functions.
641
642 2008-08-13  Johan Dahlin  <johan@gnome.org>
643
644         * girepository/girnode.c (g_ir_node_get_full_size_internal):
645         * girepository/girparser.c (start_class):
646         * giscanner/glibtransformer.py:
647         Allow get_type to be None, set a get_type for GInitiallyUnowned too.
648
649 2008-08-13  Johan Dahlin  <johan@gnome.org>
650
651         * giscanner/cgobject.py:
652         Register GInitiallyUnowned
653         * giscanner/girwriter.py:
654         * giscanner/glibtransformer.py:
655         Special case GObject/GInitially owned as they are a bit special to use.
656
657 2008-08-13  Colin Walters  <walters@verbum.org>
658
659         * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
660         Object is in GObject namespace.
661
662 2008-08-13  Colin Walters  <walters@verbum.org>
663
664         * giscanner/girparser.py: Fix processing of functions
665         from last commit.
666
667 2008-08-13  Colin Walters  <walters@verbum.org>
668
669         * giscanner/girparser.py: Parse more than just <class.
670         * giscanner/glibtransformer.py: Put aliases in a separate
671         data structure since their name is not canonicall.
672         * giscanner/transformer.py: Handle resolving type names
673         from includes.
674
675 2008-08-13  Johan Dahlin  <johan@gnome.org>
676
677         * tools/g-ir-scanner:
678         Allow multiple libraries
679         * giscanner/glibtransformer.py:
680         Rename load_library to add_library, traverse over all libraries
681         when trying to resolve a function
682
683 2008-08-12  Colin Walters  <walters@verbum.org>
684
685         * giscanner/transformer.py: Record typedefs as <alias> elements.
686           Also attempt to look up types in external namespaces.
687         * giscanner/girwriter.py: Write them.
688         * giscanner/glibtransformer.py: Rework resolver using real instanceof
689         checks.  Resolve interface methods and properties.
690         * tests/scanner/foo-object.h: Add a method with typedef.
691         * tests/scanner/Foo-expected.gir: Update.
692         * girepository/girnode.c: Debug tweaks.
693         * girepository/girparser.c: Make a first pass through the XML where we
694         record all the aliases.  This lets us resolve them as we go through the
695         second pass.
696         * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
697         from gir-repository.
698
699 2008-08-12  Colin Walters  <walters@verbum.org>
700
701         * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
702         Correctly do subclasseing in 2nd pass resolution.  Handle callbacks in structure
703         fields.
704         * giscanner/transformer.py: Record typedefs and expose public API for resolving
705         them.
706         * tests/scanner/Foo-expected.gir: Fix expected callback types.
707
708 2008-08-12  Colin Walters  <walters@verbum.org>
709
710         * giscanner/glibtransformer.py: Also transform object properties.
711
712 2008-08-12  Colin Walters  <walters@verbum.org>
713
714         * giscanner/glibtransformer.py: Also transform callbacks
715         and structure field types.
716         * tests/scanner/Fooe-expected.gir: Update to expect correct
717         names for callbacks and structs.
718
719 2008-08-12  Colin Walters  <walters@verbum.org>
720
721         * girepository/girparser.c: Handle 'any'.
722         * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
723         Add test for void *.
724
725 2008-08-12  Colin Walters  <walters@verbum.org>
726
727         * giscanner/glibtransformer.py: We need to do type
728         resolution in a second pass after we've seen all the
729         enums, records, etc.
730
731 2008-08-12  Colin Walters  <walters@verbum.org>
732
733         * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
734         Add enum return value.
735         * giscanner/glibtransformer.py: Transform function return types
736         too.
737
738 2008-08-12  Colin Walters  <walters@verbum.org>
739
740         * tests/scanner/Makefile.am: Dep .gir files on scanner
741         sources too.  Also remove @ so we see scanner invocations.
742
743 2008-08-12  Colin Walters  <walters@verbum.org>
744
745         * girepository/girparser.c, girepository/gtypelib.c,
746         girepository/gtypelib.h, girepository/girnode.c:
747         Remove usage of (GAPI-oriented) TypeTag in favor of
748         GITypeTag from girepository.h.
749
750 2008-08-10  Colin Walters  <walters@verbum.org>
751
752         * tests/roundtrips.sh: Use the correct tests.
753
754 2008-08-10  Colin Walters  <walters@verbum.org>
755
756         * giscanner/cgobject.py: Declare/wrap a few more functions.
757         Fix parameter types for g_object_new and g_type_fundamental.
758
759 2008-08-10  Colin Walters  <walters@verbum.org>
760
761         * giscanner/cgobject.py: Add new decorator @gwrap which forces
762         us to declare types for both return value and parameters.  The
763         ctypes default of 'int' is bad because it hides 32/64 bit
764         problems.  Convert all existing functions to use it.
765
766 2008-08-09  Johan Dahlin  <johan@gnome.org>
767
768         * giscanner/__init__.py:
769         * giscanner/ast.py:
770         * giscanner/cgobject.py:
771         * giscanner/gidlparser.py:
772         * giscanner/gidlwriter.py:
773         * giscanner/girparser.py:
774         * giscanner/girwriter.py:
775         * giscanner/glibast.py:
776         * giscanner/glibtransformer.py:
777         * giscanner/odict.py:
778         * giscanner/sourcescanner.py:
779         * giscanner/transformer.py:
780         * giscanner/utils.py:
781         * giscanner/xmlwriter.py:
782         * tools/g-ir-scanner:
783
784         PEP8ify
785
786 2008-08-09  Johan Dahlin  <johan@gnome.org>
787
788         * relaxng/api.xml:
789         * relaxng/c-types.xml:
790         * relaxng/g-types.xml:
791         * relaxng/relaxng.rng:
792         * relaxng/util.xml:
793         Remove outdated relaxng schemas.
794
795 2008-08-09  Johan Dahlin  <johan@gnome.org>
796
797         * *.[ch]:
798         Rename metadata to typelib in variable names,
799         comments and apis.
800
801 2008-08-09  Johan Dahlin  <johan@gnome.org>
802
803         * tools/scanner.c:
804         * tools/scanner.h:
805         Remove old C scanner, which got rewritten in python.
806
807 2008-08-09  Johan Dahlin  <johan@gnome.org>
808
809         * girepository/Makefile.am:
810         * tools/Makefile.am:
811         * tools/girmodule.c:
812         * tools/girmodule.h:
813         * tools/girnode.c:
814         * tools/girnode.h:
815         * tools/girparser.c:
816         * tools/girparser.h:
817         * tools/girwriter.c:
818         * tools/girwriter.h:
819         Move shared *.[ch] files to girepository from tools
820
821 2008-08-09  Johan Dahlin  <johan@gnome.org>
822
823         * tests/Makefile.am:
824         * tests/array.test:
825         * tests/boxed.test:
826         * tests/constant.test:
827         * tests/enum.test:
828         * tests/errors.test:
829         * tests/function.test:
830         * tests/gobject.test:
831         * tests/interface.test:
832         * tests/object.test:
833         * tests/struct.test:
834         * tests/types.test:
835         * tests/union.test:
836         * tests/xref1.test:
837         * tests/xref2.test:
838         Rename *.test to *.gir
839
840 2008-08-09  Johan Dahlin  <johan@gnome.org>
841
842         * configure.ac:
843         * tests/Makefile.am:
844         * tests/parser/Foo-expected.gir:
845         * tests/parser/Makefile.am:
846         * tests/parser/foo-object.h:
847         * tests/parser/foo.c:
848         * tests/parser/utility-expected.gir:
849         * tests/parser/utility.c:
850         * tests/parser/utility.h:
851         * tests/scanner/Makefile.am:
852         Rename tests/parser to test/scanner
853
854 2008-08-08  Colin Walters  <walters@verbum.org>
855
856         * tests/roundtrips.sh: Use local .gir files again.
857
858 2008-08-08  Colin Walters  <walters@verbum.org>
859
860         * tests/invoke/Makefile.am: .gir file depends on libtool
861         library.
862
863 2008-08-08  Colin Walters  <walters@verbum.org>
864
865         * tools/girnode.c: Pass through parent node so we can
866         print the node whose child is NULL, if that occurs.
867
868 2008-08-08  Johan Dahlin  <johan@gnome.org>
869
870         * tests/Makefile.am:
871         Disable roundtrip tests which are not yet working
872         * tests/invoke/testfns.gir:
873         Rewrite as gir.
874
875 2008-08-08  Johan Dahlin  <johan@gnome.org>
876
877         * giscanner/girwriter.py:
878         type -> ntype
879         * giscanner/glibast.py:
880         * giscanner/glibtransformer.py:
881         Swap order of members, to keep it consistent with
882         base enum class
883
884 2008-08-08  Johan Dahlin  <johan@gnome.org>
885
886         * girepository/gtypelib.c (validate_header):
887         * girepository/gtypelib.h:
888         * giscanner/ast.py:
889         * giscanner/girwriter.py:
890         * giscanner/sourcescanner.c (gi_source_symbol_ref),
891         (gi_source_symbol_unref):
892         * tests/array.test:
893         * tests/boxed.test:
894         * tests/constant.test:
895         * tests/enum.test:
896         * tests/errors.test:
897         * tests/function.test:
898         * tests/gobject.test:
899         * tests/interface.test:
900         * tests/invoke/Makefile.am:
901         * tests/invoke/testfns.xml:
902         * tests/object.test:
903         * tests/parser/Makefile.am:
904         * tests/roundtrips.sh:
905         * tests/struct.test:
906         * tests/types.test:
907         * tests/union.test:
908         * tests/xref1.test:
909         * tests/xref2.test:
910         * tools/Makefile.am:
911         * tools/compiler.c (main):
912         * tools/generate.c (write_callable_info), (write_function_info),
913         (write_repository):
914         * tools/gidlmodule.c:
915         * tools/gidlmodule.h:
916         * tools/gidlnode.c:
917         * tools/gidlnode.h:
918         * tools/gidlparser.c:
919         * tools/gidlparser.h:
920         * tools/gidlwriter.c:
921         * tools/gidlwriter.h:
922         * tools/scanner.c (create_node_from_gtype),
923         (create_node_from_ctype), (g_igenerator_process_properties),
924         (g_igenerator_process_signals), (g_igenerator_create_object),
925         (g_igenerator_create_interface), (g_igenerator_create_boxed),
926         (g_igenerator_create_enum), (g_igenerator_create_flags),
927         (g_igenerator_process_function_symbol),
928         (g_igenerator_process_unregistered_struct_typedef),
929         (g_igenerator_process_struct_typedef),
930         (g_igenerator_process_union_typedef),
931         (g_igenerator_process_enum_typedef),
932         (g_igenerator_process_function_typedef),
933         (g_igenerator_process_constant), (g_igenerator_process_symbols),
934         (g_igenerator_add_module), (g_igenerator_add_include_idl):
935         Merge in the gir-compiler branch.
936         Thanks to Philip and Colin for their help.
937
938 2008-07-26  Colin Walters  <walters@verbum.org>
939
940         * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
941         and g-idl-generate to go along with how we're changing this
942         module to be installed.
943         * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
944
945 2008-07-24  Colin Walters  <walters@verbum.org>
946
947         * girepository/girepository.c (g_irepository_register): Add
948         environment variable G_IREPOSITORY_VERBOSE so we can print
949         out what we're doing.
950         * girepository/girepository.c (g_irepository_register_file): 
951         Add GError error message to g_debug call.
952
953 2008-07-08  Jürg Billeter  <j@bitron.ch>
954
955         * giscanner/glibast.py:
956
957         Fix typo
958
959 2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
960
961         * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
962         more tags
963
964 2008-06-20  Johan Dahlin  <jdahlin@async.com.br>
965
966         * giscanner/ast.py:
967         * giscanner/girwriter.py:
968         * giscanner/transformer.py:
969         * tests/parser/Foo-expected.gir:
970         * tests/parser/foo-object.h:
971         * tests/parser/foo.c (foo_object_allow_none):
972         Add support for gtk-doc annotations for allow-none.
973         Add test case.
974
975 2008-06-19  Johan Dahlin  <jdahlin@async.com.br>
976
977         * giscanner/ast.py:
978         * giscanner/girwriter.py:
979         * giscanner/glibast.py:
980         * giscanner/glibtransformer.py:
981         * giscanner/transformer.py:
982         * tests/parser/Foo-expected.gir:
983         Start using abstract type instead of the raw C types.
984         Register a bunch of glib types we care about.
985
986 2008-06-19  Rob Taylor  <rob.taylor@codethink.co.uk>
987
988         * AUTHORS:
989         Update authors
990
991 2008-06-08  Philip Van Hoof  <pvanhoof@gnome.org>
992
993         * girepository/girepository.c:
994         * girepository/gtypelib.c:
995         * girepository/ginfo.c:
996         * girepository/ginvoke.c:
997         * girepository/girepository.h:
998         * girepository/gtypelib.h:
999         * girepository/gmetadata.c:
1000         * girepository/Makefile.am:
1001         * girepository/gmetadata.h:
1002         * tools/compiler.c:
1003         * tools/gidlmodule.c:
1004         * tools/gidlnode.c
1005         * tools/generate.c:
1006         * tools/gidlmodule.h:
1007         * tools/gidlparser.c:
1008
1009         Renamed GMetadata to GTypelib
1010
1011 2008-06-07  Johan Dahlin  <jdahlin@async.com.br>
1012
1013         * giscanner/xmlwriter.py:
1014         Improve line wrapping when > 79 charaters
1015
1016 2008-06-05  Jürg Billeter  <j@bitron.ch>
1017
1018         * giscanner/ast.py:
1019         * giscanner/girwriter.py:
1020         * giscanner/transformer.py:
1021         Use <type> element for field types
1022         * tests/parser/Foo-expected.gir:
1023         Update testcase
1024
1025 2008-06-04  Johan Dahlin  <jdahlin@async.com.br>
1026
1027         * giscanner/glibtransformer.py:
1028         Fix a bug which prevented GdkEvent from being generated
1029
1030 2008-06-03  Johan Dahlin  <jdahlin@async.com.br>
1031
1032         * giscanner/Makefile.am:
1033         * giscanner/ast.py:
1034         * giscanner/girwriter.py:
1035         * giscanner/glibast.py:
1036         * giscanner/glibtransformer.py:
1037         * giscanner/transformer.py:
1038         * giscanner/utils.py:
1039         * tests/parser/Foo-expected.gir:
1040         Improve enum member parsing and introspection
1041
1042 2008-05-31  Johan Dahlin  <jdahlin@async.com.br>
1043
1044         * giscanner/scannerparser.y:
1045         * giscanner/sourcescanner.h:
1046         * giscanner/sourcescanner.py:
1047         Add a new source type enum for member.
1048         Use __repr__ for improved debugging
1049         * giscanner/girparser.py:
1050         Ignore some more
1051         * giscanner/transformer.py:
1052         Improve parsing of struct members.
1053         * tests/parser/foo-object.h:
1054         Add a new testcase
1055
1056 2008-05-31  Johan Dahlin  <jdahlin@async.com.br>
1057
1058         * giscanner/xmlwriter.py:
1059         Improve error reporting when trying to quote None.
1060         * giscanner/girparser.py:
1061         Do not print warnings when including more complete .gir files
1062         * giscanner/girwriter.py:
1063         Do not require a name for parameters, add a todo for singletons
1064         * giscanner/glibtransformer.py:
1065         Refactor the way structs are done, add a couple of hacks to allow
1066         us to get further.
1067         * giscanner/transformer.py:
1068         Add enough hacks so cairo, atk and pango.gir can be parsed properly
1069         * gobject-introspection-1.0.pc.in:
1070         Export girdir, so we can access gobject-2.0.gir from outside
1071
1072 2008-05-31  Johan Dahlin  <jdahlin@async.com.br>
1073
1074         * tools/g-ir-scanner:
1075         * tests/parser/Makefile.am:
1076         Update sys.path before running the parser so we don't have
1077         to setup PYTHONPATH ourselves.
1078
1079         * Makefile.am:
1080         * configure.ac:
1081         * girepository/Makefile.am:
1082         * giscanner/transformer.py:
1083         * gobject-introspection-1.0.pc.in:
1084         * gobject-introspection.pc.in:
1085         * tools/Makefile.am:
1086
1087         Rename pkg-config name to gobject-introspection-1.0,
1088         Do not installed anything which is not using the gir format.
1089         Disable compililation the old C scanner, but still keep the source
1090         until all the remaning functionallity has been ported.
1091
1092 2008-05-31  Johan Dahlin  <jdahlin@async.com.br>
1093
1094         * giscanner/giscannermodule.c (symbol_get_ident): Prevent
1095         a crash when symbol->indent is NULL.
1096
1097         * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
1098         a function to convert a CTYPE symbol to a string
1099
1100 2008-05-24  Johan Dahlin  <jdahlin@async.com.br>
1101
1102         * giscanner/ast.py:
1103         * giscanner/girwriter.py:
1104         * giscanner/giscannermodule.c
1105         (pygi_source_scanner_append_filename),
1106         (pygi_source_scanner_parse_file):
1107         * giscanner/glibtransformer.py:
1108         * giscanner/sourcescanner.py:
1109         Revert back to using temporary files to send in headers.
1110         Allow Functions to be passed in as callbacks, add a couple
1111         of try/excepts missing features.
1112         We can now scan pango
1113
1114 2008-05-08  Johan Dahlin  <johan@gnome.org>
1115
1116         * giscanner/glibtransformer.py:
1117         * giscanner/transformer.py:
1118         Move namespace stripping glibtransformer->transformer
1119
1120 2008-05-08  Johan Dahlin  <johan@gnome.org>
1121
1122         * giscanner/ast.py:
1123         * giscanner/girwriter.py:
1124         * giscanner/glibtransformer.py:
1125         * giscanner/transformer.py:
1126         * tools/g-ir-scanner:
1127         Introduce a namespace ast node
1128
1129 2008-05-05  Johan Dahlin  <johan@gnome.org>
1130
1131         * giscanner/__init__.py:
1132         * giscanner/sourcescanner.py:
1133         * giscanner/transformer.py:
1134         Move sourcescanner symbols to the sourcescanner module, instead
1135         of in the global __init__ namespace.
1136
1137 2008-05-03  Johan Dahlin  <johan@gnome.org>
1138
1139         * giscanner/glibtransformer.py:
1140         * tools/g-ir-scanner:
1141         Handle missing parameters better, allow - and + in .la dlname
1142         filenames.
1143
1144 2008-05-03  Johan Dahlin  <johan@gnome.org>
1145
1146         * giscanner/__init__.py:
1147         * giscanner/ast.py:
1148         * giscanner/girwriter.py:
1149         * giscanner/glibtransformer.py:
1150         * giscanner/transformer.py:
1151         Parse struct fields properly, improve debugging.
1152
1153 2008-04-29  Johan Dahlin  <johan@gnome.org>
1154
1155         * giscanner/ast.py:
1156         * giscanner/girwriter.py:
1157         * giscanner/transformer.py:
1158         * tests/parser/Foo-expected.gir:
1159         * TODO:
1160         Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
1161
1162 2008-04-29  Johan Dahlin  <jdahlin@async.com.br>
1163
1164         * Makefile.am:
1165         * docs/g-ir-scanner.1:
1166         * metadata-annotations-proposal.txt:
1167         * metadata-format.txt:
1168         Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
1169
1170 2008-04-29  Johan Dahlin  <jdahlin@async.com.br>
1171
1172         * giscanner/girwriter.py:
1173         * giscanner/glibtransformer.py:
1174         * giscanner/transformer.py:
1175         * giscanner/xmlwriter.py:
1176         * tests/parser/Foo-expected.gir:
1177         * tests/parser/foo-object.h:
1178         Write record/structs to gir file too. Add a couple of tests,
1179         fix an off by one error in xmlwriter.py.
1180
1181 2008-04-28  Johan Dahlin  <johan@gnome.org>
1182
1183         * giscanner/xmlwriter.py: Calculate the line length properly,
1184         include the provided extra indentation in the calculation, really.
1185
1186 2008-04-28  Johan Dahlin  <jdahlin@async.com.br>
1187
1188         * giscanner/ast.py:
1189         * giscanner/glibast.py:
1190         * giscanner/glibtransformer.py:
1191         * giscanner/transformer.py:
1192         * tools/g-ir-scanner:
1193         Add a --strip-prefix and sort out confusion between names and symbols
1194         for functions and struct + derivaties.
1195         Refactor bootstrap of g-ir-scanner, so we can set options on
1196         Transformer() before parsing everything.
1197
1198 2008-04-28  Johan Dahlin  <johan@gnome.org>
1199
1200         * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
1201         when scanning girepository.h
1202
1203         * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
1204         a __GI_SCANNER__ when we run.
1205
1206 2008-04-28  Johan Dahlin  <jdahlin@async.com.br>
1207
1208         * giscanner/ast.py:
1209         * giscanner/girwriter.py:
1210         * giscanner/glibast.py:
1211         * giscanner/glibtransformer.py:
1212         * tests/parser/Foo-expected.gir:
1213         * tests/parser/utility-expected.gir:
1214         Rename most c:identifier to c:type. Add new ones to
1215         class/interface/enum/boxed.
1216
1217 2008-04-28  Johan Dahlin  <jdahlin@async.com.br>
1218
1219         * giscanner/ast.py:
1220         * giscanner/girwriter.py:
1221         * giscanner/glibtransformer.py:
1222         * tests/parser/Foo-expected.gidl:
1223         * tests/parser/Makefile.am:
1224         Move c:identifier from return-value to subchild type,
1225         as per Jürgs suggestion
1226
1227 2008-04-28  Johan Dahlin  <johan@gnome.org>
1228
1229         * giscanner/girwriter.py:
1230         * tests/parser/Foo-expected.gir:
1231         Write property.type as a child node.
1232
1233 2008-04-27  Johan Dahlin  <johan@gnome.org>
1234
1235         * Makefile.am:
1236         * configure.ac:
1237         * gidl/Makefile.am:
1238         * gidl/gobject-2.0.gidl:
1239         * gir/Makefile.am:
1240         * gir/gobject-2.0.gir:
1241         * tests/parser/Makefile.am:
1242         Replace the GObject gidl with a GObject gir.
1243
1244 2008-04-27  Johan Dahlin  <johan@gnome.org>
1245
1246         * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
1247         not a program.
1248
1249         * giscanner/xmlwriter.py:
1250         * tests/parser/Foo-expected.gir:
1251         Include indentation in line length calculation
1252
1253 2008-04-27  Johan Dahlin  <johan@gnome.org>
1254
1255         * giscanner/girparser.py:
1256         Prettify NS parsing using elementtree.
1257
1258 2008-04-27  Johan Dahlin  <johan@gnome.org>
1259
1260         * configure.ac:
1261         * giscanner/Makefile.am:
1262         * giscanner/girparser.py:
1263         * giscanner/glibtransformer.py:
1264         * tests/parser/Foo-expected.gidl:
1265         * tests/parser/Foo-expected.gir:
1266         * tests/parser/Makefile.am:
1267         * tests/parser/utility-expected.gidl:
1268         * tests/parser/utility-expected.gir:
1269         * tools/g-ir-scanner:
1270         Switch over to GIR as the default format. Add a simple GIDL
1271         parser.
1272         Update tests and fix simplify makefiles by depending
1273         on GNU make extensions.
1274
1275 2008-04-27  Johan Dahlin  <johan@gnome.org>
1276
1277         * giscanner/xmlwriter.py:
1278         Wrap attributes for lines which are wider than 79 characters
1279
1280         * giscanner/scannerlexer.l:
1281         Allow parenthesis in annotations
1282
1283         * giscanner/ast.py:
1284         * giscanner/gidlwriter.py:
1285         * giscanner/girwriter.py:
1286         * giscanner/glibtransformer.py:
1287         * giscanner/transformer.py:
1288         Add initial sequence support, including annotation.
1289         Refactor type handling a bit.
1290
1291 2008-04-27  Johan Dahlin  <johan@gnome.org>
1292
1293         * tests/parser/Foo-expected.gidl:
1294         * tests/parser/foo-object.h:
1295         * tests/parser/foo.c (foo_object_class_init),
1296         (foo_object_get_strings), (foo_object_get_objects):
1297         Add two new functions to check sequence return values.
1298         Also fixes a compilation warning.
1299
1300 2008-04-27  Johan Dahlin  <johan@gnome.org>
1301
1302         * giscanner/giscannermodule.c (]): Cast the getter, avoids
1303         a compilation warning.
1304
1305         * tools/Makefile.am (g_ir_scanner_SOURCES):
1306         g-ir-scanner has no sources.
1307
1308 2008-04-25  Johan Dahlin  <johan@gnome.org>
1309
1310         * giscanner/Makefile.am:
1311         * giscanner/ast.py:
1312         * giscanner/gidlparser.py:
1313         * giscanner/gidlwriter.py:
1314         * giscanner/girwriter.py:
1315         * giscanner/glibast.py:
1316         * giscanner/glibtransformer.py:
1317         * giscanner/transformer.py:
1318         Split out nodes to ast.py and glibast.py
1319
1320 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
1321
1322         * giscanner/Makefile.am:
1323         * giscanner/gidlparser.py:
1324         * giscanner/gidlwriter.py:
1325         * giscanner/girwriter.py:
1326         * giscanner/glibtransformer.py:
1327         * giscanner/gobjecttreebuilder.py:
1328         * giscanner/transformer.py:
1329         * giscanner/treebuilder.py:
1330         * tools/g-ir-scanner:
1331         Rename treebuilder to transformer and
1332         gobjectreebuilder to glibtransformer.
1333
1334 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
1335
1336         * giscanner/Makefile.am:
1337         * giscanner/__init__.py:
1338         * giscanner/cgobject.py:
1339         * giscanner/gidlparser.py:
1340         * giscanner/gidlwriter.py:
1341         * giscanner/girwriter.py:
1342         * giscanner/gobjecttreebuilder.py:
1343         * giscanner/odict.py:
1344         * giscanner/sourcescanner.py:
1345         * giscanner/treebuilder.py:
1346         * giscanner/xmlwriter.py:
1347         * tools/Makefile.am:
1348         * tools/g-ir-scanner:
1349         Add LGPLv2 license header and install all python files
1350
1351 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
1352
1353         * TODO:
1354         * giscanner/gidlwriter.py:
1355         * giscanner/giscannermodule.c (pygi_source_directive_new),
1356         (directive_get_options), (pygi_source_symbol_new),
1357         (symbol_get_base_type), (pygi_source_type_new),
1358         (type_get_base_type), (type_get_child_list),
1359         (pygi_source_scanner_get_symbols),
1360         (pygi_source_scanner_get_directives):
1361         * giscanner/gobjecttreebuilder.py:
1362         * giscanner/sourcescanner.py:
1363         * giscanner/treebuilder.py:
1364         * tests/parser/foo-object.h:
1365         Add support for virtual methods.
1366         Pair struct FooClass with struct Foo.
1367         Clean up the SourceScanner bindings a bit.
1368         Add a testcase for virtual methods.
1369
1370 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
1371
1372         * giscanner/cgobject.py:
1373         * giscanner/gidlwriter.py:
1374         * giscanner/gobjecttreebuilder.py:
1375         Add support for signals
1376
1377         * tests/parser/foo.c (foo_object_class_init):
1378         * Foo-expected.gidl:
1379         Add a signal and update the expected output.
1380
1381 2008-04-24  Johan Dahlin  <jdahlin@async.com.br>
1382
1383         * giscanner/gidlwriter.py:
1384         * giscanner/girwriter.py:
1385         * giscanner/giscannermodule.c (directive_get_name),
1386         (directive_get_value), (directive_get_options),
1387         (symbol_get_directives), (symbol_set_directives),
1388         (pygi_source_scanner_parse_file),
1389         (pygi_source_scanner_lex_filename),
1390         (pygi_source_scanner_get_directives), (init_giscanner):
1391         * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
1392         * giscanner/sourcescanner.h:
1393         * giscanner/sourcescanner.py:
1394         * giscanner/treebuilder.py:
1395         * tools/g-ir-scanner:
1396         Add support for source/header annotations.
1397
1398 2008-04-22  Johan Dahlin  <jdahlin@async.com.br>
1399
1400         * giscanner/gidlwriter.py:
1401         * giscanner/girwriter.py:
1402         * giscanner/gobjecttreebuilder.py:
1403         * giscanner/treebuilder.py:
1404         Add support for Callbacks
1405
1406 2008-04-22  Havoc Pennington  <hp@pobox.com>
1407
1408         * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
1409         not in metadata->module, look for it in the global module, in case
1410         some other object or the app itself provides the symbol.
1411
1412 2008-04-22  Havoc Pennington  <hp@pobox.com>
1413
1414         * girepository/gmetadata.c (_g_metadata_init): hack to avoid
1415         dlopening a library that is already in the main app, by checking
1416         whether one of the lib's symbols is already loaded.
1417
1418 2008-04-22  Johan Dahlin  <jdahlin@async.com.br>
1419
1420         * tests/parser/Foo-expected.gidl:
1421         * tests/parser/foo-object.h:
1422         Add a callback test
1423
1424 2008-04-22  Havoc Pennington  <hp@pobox.com>
1425
1426         * girepository/ginfo.c (g_interface_info_find_method):
1427         Use interface_blob_size not object_blob_size to compute offset.
1428
1429 2008-04-22  Havoc Pennington  <hp@pobox.com>
1430
1431         * girepository/gmetadata.c (_g_metadata_init): remove
1432         G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
1433         (Glade and Clutter for example) rely on being loaded globally.
1434
1435 2008-04-22  Havoc Pennington  <hp@pobox.com>
1436
1437         * girepository/ginfo.c (g_registered_type_info_get_g_type): new
1438         function to get the GType given a RegisteredTypeInfo
1439
1440 2008-04-22  Johan Dahlin  <johan@gnome.org>
1441
1442         * COPYING: Add a LGPL license, to prevent automake to
1443         put in a copy of GPL here. Pointed out by Havoc.
1444
1445         * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
1446         (g_type_info_is_pointer), (g_type_info_get_tag),
1447         (g_type_info_get_param_type), (g_type_info_get_interface),
1448         (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
1449         (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
1450         (g_error_domain_info_get_codes), (g_enum_info_get_value),
1451         (g_object_info_get_interface), (g_object_info_get_field),
1452         (g_interface_info_get_prerequisite),
1453         (g_signal_info_get_class_closure), (g_constant_info_get_value):
1454         * girepository/ginvoke.c (get_ffi_type):
1455         * girepository/girepository.h:
1456         * girepository/gmetadata.c (g_metadata_get_dir_entry),
1457         (g_metadata_check_sanity), (validate_header),
1458         (validate_array_type_blob), (validate_iface_type_blob),
1459         (validate_param_type_blob), (validate_error_type_blob),
1460         (validate_type_blob), (validate_constant_blob),
1461         (validate_struct_blob), (validate_enum_blob):
1462         * girepository/gmetadata.h:
1463         * tests/Makefile.am:
1464         * tests/invoke/Makefile.am:
1465         * tests/invoke/invoke.c (main):
1466         * tests/roundtrips.sh:
1467         * tools/Makefile.am:
1468         * tools/compiler.c (format_output), (write_out_metadata), (main):
1469         * tools/generate.c (write_type_name), (write_type_info),
1470         (write_constant_value), (write_enum_info), (load_metadata), (main):
1471         * tools/gidlcompilercontext.c:
1472         * tools/gidlcompilercontext.h:
1473         * tools/gidlcompilerentrynode.c:
1474         * tools/gidlcompilerentrynode.h:
1475         * tools/gidlcompilertypenode.c:
1476         * tools/gidlcompilertypenode.h:
1477         * tools/gidlmodule.c (g_idl_module_build_metadata):
1478         * tools/gidlmodule.h:
1479         * tools/gidlnode.c (init_stats), (dump_stats),
1480         (g_idl_node_get_size), (g_idl_node_get_full_size),
1481         (g_idl_node_cmp), (g_idl_node_can_have_member),
1482         (g_idl_node_add_member), (g_idl_node_param_direction_string),
1483         (parse_int_value), (parse_uint_value), (parse_float_value),
1484         (parse_boolean_value), (find_entry_node), (find_entry),
1485         (serialize_type), (g_idl_node_build_metadata), (write_string):
1486         * tools/gidlnode.h:
1487         * tools/gidlparser.c (parse_type_internal):
1488         * tools/quote-file.sh:
1489         Revert revisions 157,149-148,136-129 and 120.
1490         Move back to using g-idl-generate to generate the metadata and
1491         avoids dependency on a c compiler.
1492
1493 2008-04-22  Johan Dahlin  <jdahlin@async.com.br>
1494
1495         * giscanner/girwriter.py:
1496         * tools/g-ir-scanner:
1497         Add an initial GIR writer and a --format option to g-ir-scanner
1498
1499 2008-04-21  Johan Dahlin  <johan@gnome.org>
1500
1501         * giscanner/cgobject.py: Use ctypes.util.find_library to locate
1502         gobject-2.0 and raise ImportError if not found.
1503
1504         * giscanner/gidlparser.py:
1505         * giscanner/gidlwriter.py:
1506         * giscanner/gobjecttreebuilder.py:
1507         * tools/g-ir-scanner:
1508         Add a --include argument to include types from other idls.
1509         Add a minimalistic GIDL parser (just objects for now)
1510         Implement resolving of external type references and use it to
1511         resolve parent types, argument types and return types.
1512
1513 2008-04-21  Johan Dahlin  <johan@gnome.org>
1514
1515         * giscanner/gidlwriter.py:
1516         * giscanner/gobjecttreebuilder.py:
1517         * giscanner/treebuilder.py:
1518         Add support for properties.
1519         Refactor Class/Interface support a bit, to share more code and
1520         always initialize their method attribute to an empty list.
1521
1522 2008-04-21  Johan Dahlin  <johan@gnome.org>
1523
1524         * giscanner/cgobject.py:
1525         Add a workaround for a glib bug interface introspection bug
1526         (object_interface_list_properties, object_class_list_properties):
1527         Cast the return value to GParamSpec.
1528
1529         * tests/parser/Foo-expected.gidl: Update
1530         * tests/parser/foo.c: Add a string property
1531
1532         * giscanner/gobjecttreebuilder.py:
1533         After stripping namespaces, remove the original
1534         item to avoid duplication (GtkButton struct and Button object)
1535
1536 2008-04-21  Johan Dahlin  <johan@gnome.org>
1537
1538         * giscanner/gobjecttreebuilder.py:
1539         * giscanner/treebuilder.py:
1540         Strip namespaces before objects, so we'll export
1541         GtkButton as Button in the gtk namespace
1542
1543 2008-04-21  Johan Dahlin  <johan@gnome.org>
1544
1545         * giscanner/gidlwriter.py:
1546         * giscanner/gobjecttreebuilder.py:
1547         * giscanner/treebuilder.py:
1548         Add constructors for object/boxed types.
1549
1550 2008-04-21  Johan Dahlin  <johan@gnome.org>
1551
1552         * giscanner/gidlwriter.py:
1553         * giscanner/gobjecttreebuilder.py:
1554         Add support for boxed types
1555
1556 2008-04-21  Johan Dahlin  <johan@gnome.org>
1557
1558         * giscanner/giscannermodule.c: Mark structures as const,
1559         wrap SourceType.const_string.
1560
1561         * tests/parser/foo-object.h: Add a couple of constants.
1562
1563         * giscanner/gidlwriter.py:
1564         * giscanner/gobjecttreebuilder.py:
1565         * giscanner/treebuilder.py:
1566         Add basic support for interfaces
1567
1568         * tools/g-ir-scanner:
1569         Add -o/--output for writing to a file
1570
1571 2008-04-21  Havoc Pennington  <hp@redhat.com>
1572
1573         * TODO: add some C API wishlist items I could think of quickly
1574
1575 2008-04-21  Johan Dahlin  <jdahlin@async.com.br>
1576
1577         * giscanner/gidlwriter.py:
1578         * giscanner/xmlwriter.py:
1579         Add a simple api for writing tags which can be used 
1580         with the new 'with statement' in python 2.5
1581
1582 2008-04-21  Johan Dahlin  <johan@gnome.org>
1583
1584         * giscanner/gobjecttreebuilder.py:
1585         Strip namespace and object prefix from method names.
1586
1587 2008-04-21  Johan Dahlin  <johan@gnome.org>
1588
1589         * tools/g-ir-scanner (main): Add --pkg option to pass in
1590         pkg-config modules to get cflags from.
1591
1592         * giscanner/gidlwriter.py (GIDLWriter._write_method): 
1593         Avoid duplication, reuse function writer for methods.
1594
1595 2008-04-21  Johan Dahlin  <jdahlin@async.com.br>
1596
1597         * giscanner/gidlwriter.py:
1598         * giscanner/gobjecttreebuilder.py:
1599         * giscanner/treebuilder.py:
1600         * tools/g-ir-scanner:
1601         Resolve libtool .la files.
1602         Strip name spaces for methods.
1603         Add function symbols
1604
1605 2008-04-20  Johan Dahlin  <jdahlin@async.com.br>
1606
1607         * giscanner/cgobject.py:
1608         * giscanner/gidlwriter.py:
1609         * giscanner/gobjecttreebuilder.py:
1610         * giscanner/treebuilder.py:
1611         Add support for classes and methods
1612
1613 2008-04-20  Johan Dahlin  <johan@gnome.org>
1614
1615         * giscanner/gidlwriter.py:
1616         * giscanner/gobjecttreebuilder.py:
1617         * giscanner/odict.py:
1618         Avoid conflicts, keep the output ordered similar to
1619         the order of the input.
1620         Add a simple ordered dictionary implemenation
1621
1622 2008-04-19  Johan Dahlin  <johan@gnome.org>
1623
1624         * giscanner/cgobject.py:
1625         * giscanner/gidlwriter.py:
1626         * giscanner/gobjecttreebuilder.py:
1627         * tools/g-ir-scanner:
1628         Start introspecting get-type functions.
1629         Implement support for GLib/GFlags GTypes.
1630         Add a ctype based GObject binding.
1631
1632 2008-04-18  Johan Dahlin  <jdahlin@async.com.br>
1633
1634         * giscanner/gidlwriter.py:
1635         * giscanner/xmlwriter.py:
1636         * tools/g-ir-scanner:
1637         Add a simplistic gidl writer, which can't do too much.
1638
1639 2008-04-18  Johan Dahlin  <johan@gnome.org>
1640
1641         * giscanner/sourcescanner.py:
1642         * giscanner/treebuilder.py:
1643         * tools/g-ir-scanner:
1644         split tree building and source scanning interface to separate files.
1645
1646 2008-04-18  Johan Dahlin  <johan@gnome.org>
1647
1648         * tools/g-ir-scanner (Parameter.__init__): Start constructing
1649         a real node tree.
1650         - Add support for struct/parameter/return, start parsing of ctypes
1651
1652         * giscanner/giscannermodule.c: wrap GISourceType.child_list and
1653         fix the style
1654
1655 2008-03-31  Johan Dahlin  <johan@gnome.org>
1656
1657         * tools/g-ir-scanner:
1658         Start to build abstract syntax node of scanned sources.
1659         Add support for cpp options.
1660
1661 2008-03-27  Johan Dahlin  <johan@gnome.org>
1662
1663         * giscanner/giscannermodule.c:
1664         * giscanner/scannerlexer.l:
1665         * giscanner/sourcescanner.c:
1666         * tools/g-ir-scanner:
1667
1668         Add simple pre-processor using subprocess and a PIPE.
1669         Change the parse_file apis to accept a file descriptor.
1670
1671 2008-03-25  Johan Dahlin  <johan@gnome.org>
1672
1673         * giscanner/__init__.py:
1674         * tools/g-ir-scanner:
1675         Fix a typo and add an example python test program.
1676
1677 2008-03-25  Johan Dahlin  <johan@gnome.org>
1678         
1679         * giscanner/__init__.py:
1680         * giscanner/giscannermodule.c:
1681         * giscanner/sourcescanner.c:
1682         * giscanner/sourcescanner.h:
1683         Add constants and wrap a few more SymbolType fields
1684
1685 2008-03-25  Johan Dahlin  <johan@gnome.org>
1686         
1687         * configure.ac:
1688         * giscanner:
1689         * giscanner/__init__.py:
1690         * giscanner/giscannermodule.c:
1691         * giscanner/Makefile.am:
1692
1693         Add initial python bindings for the scanner and 
1694         depend on python 2.5.
1695
1696 2008-03-25  Johan Dahlin  <johan@gnome.org>
1697
1698         * Makefile.am:
1699         * configure.ac:
1700         * giscanner/Makefile.am:
1701         * giscanner/sourcescanner.c:
1702         * giscanner/sourcescanner.h:
1703         * tools/Makefile.am:
1704         * tools/grealpath.h:
1705         * tools/sourcescanner.c:
1706         * tools/sourcescanner.h:
1707
1708         Move the scanner to a separate library.
1709         
1710 2008-03-23  Johan Dahlin  <johan@gnome.org>
1711
1712         * tools/Makefile.am:
1713         * tools/scanner.c:
1714         * tools/scanner.h:
1715         * tools/scannerlexer.l:
1716         * tools/scannerparser.y:
1717         * tools/sourcescanner.c:
1718         * tools/sourcescanner.h:
1719         Split out the source scanner from the generator.
1720         Rename the symbols used in the scanner to use the gi_ prefix.
1721         This should make it possible to use the raw C parser from
1722         other programs.
1723
1724 2008-03-23  Johan Dahlin  <johan@gnome.org>
1725
1726         * tests/parser/Makefile.am (utility.gidl): 
1727         * tests/parser/utility-expected.gidl: 
1728         Pass in the gobject.gidl since we're defining a GObject.
1729
1730 2008-03-12  Johan Dahlin  <johan@gnome.org>
1731
1732         * relaxng/relaxng.rng:
1733         Add a releaxng in relaxng we can use to validate the relaxngs
1734         schemas
1735
1736 2008-03-12  Jürg Billeter  <j@bitron.ch>
1737
1738         * tools/scanner.c: (g_igenerator_new):
1739         * tools/scannerparser.y:
1740         Fix compiler warnings.
1741
1742 2008-03-12  Jürg Billeter  <j@bitron.ch>
1743
1744         * tools/scanner.c:
1745         * tools/scanner.h:
1746         * tools/scannerparser.y:
1747         Start fixing memory management in g-idl-scanner.
1748
1749 2008-03-12  Rob Taylor  <rob.taylor@codethink.co.uk>
1750
1751         * tools/gidlcompilercontext.c: (write_compiled):
1752         Fix critical warning when no shlib passed to g-idl-compiler.
1753
1754 2008-03-12  Johan Dahlin  <johan@gnome.org>
1755
1756         * tests/parser/utility-expected.gidl:
1757         * tests/parser/utility.h:
1758         Add a get_type-function, so the scanner actually
1759         parses it as an object.
1760         
1761 2008-03-12  Johan Dahlin  <johan@gnome.org>
1762
1763         * tools/gidlwriter.c (function_generate): Add missing trailing quote.
1764         Bad Philip!
1765
1766         * tests/parser/Foo-expected.gidl:
1767         * tests/parser/Makefile.am:
1768         * tests/parser/foo-object.h:
1769         * tests/parser/foo.c:
1770         * tests/parser/utility-expected.gidl:
1771         * tests/parser/utility.c:
1772         * tests/parser/utility.h:
1773
1774         Add a new gidl test. 'utility.gidl', which is used to be able
1775         to test external type references. Add a reference to UtilityObject*
1776         in the idl file.
1777
1778 2008-03-11  Johan Dahlin  <johan@gnome.org>
1779
1780         * tools/compiler.c:
1781         * tools/generate.c:
1782         Remove most global variables
1783
1784 2008-03-11  Philip Van Hoof  <me@pvanhoof.be>
1785  
1786         * tools/scannerlexer.l:
1787         * tools/scanner.c:
1788         * tests/parser/Foo-expected.gidl:
1789         * tests/parser/foo.c:
1790         * tests/parser/Makefile.am:
1791         * tests/parser/foo-object.h:
1792  
1793         Added a few extra tests. Which resulted in finding a few
1794         bugs. Which resulted in me fixing those bugs
1795
1796 2008-03-11  Rob Taylor  <rob.taylor@codethink.co.uk>
1797
1798         * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
1799         (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
1800         Add some comments for strings into generated output for
1801         easier debugging.
1802
1803 2008-03-11  Rob Taylor  <rob.taylor@codethink.co.uk>
1804
1805         * tools/gidlcompilercontext.c: (write_compiled):
1806         Write out the shlibs variable before writing out the strings
1807         length. Fixes compiler warning when using '-l' flag with
1808         g-idl-compiler
1809
1810 2008-03-11  Johan Dahlin  <johan@gnome.org>
1811
1812         * tests/parser/Foo-expected.gidl:
1813         * tests/parser/foo-object.h:
1814         * tools/scanner.c:
1815         * tools/scanner.h:
1816         * tools/scannerlexer.l:
1817         Add support for parsing return arguments. Add support for
1818         caller-owns return types.
1819         Patch by Philip Van Hoof.
1820         
1821         * tools/scannerparser.y:
1822         Remove parsing of the @deprecated syntax used in headers.
1823         We will support gtk-doc deprecation in the future instead.
1824
1825 2008-03-11  Johan Dahlin  <johan@gnome.org>
1826
1827         * tools/compiler.c (main): Coding style fixes
1828
1829 2008-03-10  Johan Dahlin  <johan@gnome.org>
1830
1831         * configure.ac:
1832         Add GCOV_LIBS to GILIBS
1833
1834 2008-03-10  Johan Dahlin  <johan@gnome.org>
1835
1836         * tests/parser/Foo-expected.gidl:
1837         * tests/parser/foo.c:
1838         Rename null-ok to direction=out
1839
1840 2008-03-10  Philip Van Hoof  <me@pvanhoof.be>
1841
1842         reviewed and extensively tested by Johan
1843
1844         * tests/parser/Foo-expected.gidl:
1845         * tests/parser/foo-object.h:
1846         * tests/parser/foo.c:
1847         * tools/gidlnode.c:
1848         * tools/gidlnode.h:
1849         * tools/gidlwriter.c:
1850         * tools/scanner.c:
1851         * tools/scanner.h:
1852         * tools/scannerlexer.l:
1853         * tools/scannerparser.y:
1854
1855         Add support for scanning for gtk-doc comments inside
1856         C source files. Add tests
1857
1858 2008-03-10  Johan Dahlin  <johan@gnome.org>
1859
1860         * tests/parser/Makefile.am:
1861         * tests/parser/foo.c:
1862         * tools/scanner.c:
1863         * tools/scanner.h:
1864         * tools/scannerparser.y:
1865         Add an api to lex filenames.
1866         Lex all source .c files passed in on the command line.
1867         Scan sources in a test and a couple of private structures
1868         which should not be included in the generated gidl
1869
1870 2008-03-10  Johan Dahlin  <johan@gnome.org>
1871
1872         * tests/invoke/Makefile.am: Make the generated metadata 
1873         depend on the g-idl-compiler
1874
1875 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
1876
1877         * tools/gidlmodule.c
1878         * tools/gidlmodule.h
1879         * tools/gidlnode.c
1880         * tools/gidlnode.h
1881         Remove the old g-idl-compiler code.
1882
1883
1884 2008-02-22  Mark Doffman  <mark.doffman@codethink.co.uk>
1885
1886         * tools/quote-file.sh
1887         * tools/compiler.c
1888         * tools/generate.c
1889         Move to using the 'C' struct compiler code.
1890
1891 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
1892
1893         * girepository/ginfo.c
1894         * tools/generate.c
1895         Change the way that external references with no namespace
1896         are dealt with. External references with no namespace
1897         are placed into the XML as-if they are a local reference.
1898         This is temporary, but helps with roundtrip tests.
1899
1900 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
1901
1902         * girepository/ginfo.c
1903         Add the ability to get the value of a constant of
1904         type TYPE_TAG_SYMBOL. In the case of a symbol the value
1905         is provided as a string.
1906
1907         This would deal properly with:
1908         typedef char* random;
1909         const random = "A string";
1910
1911 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
1912
1913         * girepository/ginfo.c
1914         * girepository/girepository.h
1915         * tools/generate.c
1916         Add a function to check if an enum is registered or not.
1917         Previously anything testing this relied on the g-type
1918         string offset having a value of 0.
1919
1920         * girepository/gmetadata.c
1921         * girepository/gmetadata.h
1922         * tools/generate.c
1923         Remove unneccesary or erroneous checks. There were two
1924         metadata validation checks which made sure that the blob
1925         sizes were the same as some magic numbers compiled into the code.
1926         This is wrong as it breaks any forwards compatibility that may
1927         be possible.
1928
1929         Checks were also present that made sure that unregistered type
1930         blobs had a value of 0 in the g-type offset field. This is
1931         unneccessary. If a type blob is unregistered then any value
1932         in its g-type field is simply invalid.
1933
1934 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
1935
1936         * girepository/ginfo.c
1937         * girepository/gmetadata.c
1938         * girepository/gmetadata.h
1939
1940           Change the metadata format to have a standard header
1941           for all the type blobs. Merge the SimpleTypeBlob
1942           and InterfaceTypeBlob into a union. A union of these
1943           two blobs existed previously but was not explicit
1944           in the metadata format.
1945
1946 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
1947
1948         * tools/gidlcompilercontext.c
1949         * tools/gidlcompilercontext.h
1950         * tools/gidlcompilerentrynode.c
1951         * tools/gidlcompilerentrynode.h
1952         * tools/gidlcompilertypenode.c
1953         * tools/gidlcompilertypenode.h
1954
1955         Add code to compile a tree of GIdlNodes to
1956         a 'C' struct representing the metadata.
1957         This is to aid cross-compiling. Previously
1958         the g-idl-compiler created a binary blob with
1959         data written in the byte order and alignment
1960         of the tool rather than the intended target.
1961
1962         Cleaned up and improved by Johan and Robert :-)
1963
1964 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
1965
1966         * girepository/ginvoke.c
1967         * girepository/girepository.h
1968         * girepository/gmetadata.c
1969         * girepository/gmetadata.h
1970         * tools/generate.c
1971         * tools/gidlparser.c
1972         Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
1973         to avoid confusion with the interface blob.
1974
1975         * tools/generate.c
1976         * tools/gidlparser.c
1977         Remove magic numbers and replace with type-tag
1978         enumeration symbols.
1979
1980         * girepository/gmetadata.c
1981         Add validate declaration.
1982
1983 2008-03-10  Jürg Billeter  <j@bitron.ch>
1984
1985         * tools/gidlparser.c: (parse_type_internal):
1986         * tools/scannerlexer.l:
1987         * tools/scannerparser.y:
1988         Support C99 _Bool type in scanner.
1989
1990 2008-03-10  Jürg Billeter  <j@bitron.ch>
1991
1992         * tests/parser/Foo-expected.gidl:
1993         * tests/parser/foo-object.h:
1994         * tests/parser/foo.c: (foo_enum_method):
1995         * tools/scanner.c: (g_igenerator_process_function_symbol):
1996         Don't skip functions that are defined in the namespace of a type
1997         that doesn't support methods, as for example enums.
1998
1999 2008-03-10  Johan Dahlin  <johan@gnome.org>
2000
2001         * gidl.dtd: Remove, we're using relaxng for now
2002
2003         * tests/parser/Foo-expected.gidl:
2004         * tests/parser/foo-object.h:
2005         * tests/parser/foo.c:
2006         Rename the enum/flags get_type functions to include the whole type.
2007
2008 2008-03-08  Marc-Andre Lureau  <marcandre.lureau@gmail.com>
2009
2010         * tools/gidlwriter.c (enum_generate): added "type-name",
2011         "get-type" and "deprecated" missing arguments.
2012         * tests/parser/Foo-expected.gidl:
2013         * tests/parser/foo-object.h: test enum type, and no type.
2014
2015 2008-03-06  Johan Dahlin  <jdahlin@async.com.br>
2016
2017         * configure.ac:
2018         Consistent checks, add missing 'test'
2019
2020 2008-03-05  Havoc Pennington  <hp@redhat.com>
2021
2022         * configure.ac: Take advantage of a libffi.pc if one exists, as it
2023         does on Fedora 8. Make libffi a hard requirement, since it was in
2024         practice anyway (was not really conditional in the code or
2025         makefile, only in configure).
2026
2027 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
2028
2029         reviewed by: Rob Taylor  <rob.taylor@codethink.co.uk>
2030         reviewed by: Johan Dahlin  <johan@gnome.org>
2031
2032         * tests/Makefile.am:
2033         * tests/roundtrips.sh:
2034         Modify the roundtrips test so that they do not use the
2035         --raw option of the gidl compiler but instead compile a
2036         shared library to use with g_module.
2037
2038         * tests/invoke/Makefile.am:
2039         * tests/invoke/invoke.c:
2040         Modify the invoke tests to build a shared library rather
2041         than use the --raw option.
2042
2043         * tests/invoke/invoke-namespace-find.sh: Removed:
2044         Noone knows why this was here, so removed.
2045
2046 2008-02-19  Rob Taylor  <rob.taylor@codethink.co.uk>
2047
2048         * tools/scanner.c: (g_igenerator_process_function_symbol):
2049         Move g_idl_node_can_have_member test later, as it broke spotting
2050         get_type's for nodes that can't have members.
2051
2052 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
2053
2054         * tools/gidlnode.h:
2055         * tools/gidlnode.c: (g_idl_node_can_have_member):
2056         Add g_idl_node_can_have_member.
2057
2058         * tools/scanner.c: (g_igenerator_process_function_symbol):
2059         Use g_idl_node_can_have_member to test if we should add a function
2060         as a member of the type node.
2061
2062 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
2063
2064         * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
2065         * gidl/Makefile.am:
2066         * tests/parser/Makefile.am:
2067         Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
2068
2069 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
2070
2071         * tools/scanner.c: (main):
2072         Ignore -pthread when passed to g-idl-scanner.
2073
2074 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
2075
2076         * tools/grealpath.h: Added:
2077         * tools/scanner.c: (main):
2078         * tools/scannerlexer.l:
2079         * tools/Makefile.am:
2080         Always use absolute paths with symbolic links resolved when
2081         comparing filenames.
2082
2083 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
2084
2085         * gobject-introspection.pc.in:
2086         Provide variables for g-idl-parser, scanner and compiler in the
2087         pkgconfig file.
2088
2089 2008-02-13  Rob Taylor  <rob.taylor@codethink.co.uk>
2090
2091         * gcov.mak:
2092         * girepository/Makefile.am:
2093         * tools/Makefile.am:
2094         Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
2095
2096 2008-02-10  Johan Dahlin  <johan@gnome.org>
2097
2098         * tests/parser/Foo-expected.gidl:
2099         * tests/parser/foo-object.h:
2100         * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
2101         (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
2102         Add boxed test.
2103
2104 2008-02-10  Johan Dahlin  <johan@gnome.org>
2105
2106         * tests/parser/Foo-expected.gidl:
2107         * tests/parser/foo-object.h:
2108         * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
2109         Add enum and flags test.
2110
2111 2008-02-10  Johan Dahlin  <johan@gnome.org>
2112
2113         * Makefile.am:
2114         * configure.ac:
2115         * girepository/Makefile.am:
2116         Make 'make distcheck' work again.
2117
2118 2008-02-10  Johan Dahlin  <johan@gnome.org>
2119
2120         * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
2121         not as-compiler.m4.
2122
2123         * tests/parser/Makefile.am: Only create Foo.gidl when running make
2124         check, eg exclude it from BUILT_SOURCES.
2125
2126 2008-02-08  Rob Taylor  <rob.taylor@codethink.co.uk>
2127
2128         * Makefile.am:
2129         * configure.ac:
2130         * gcov.mak: Added:
2131         * girepository/Makefile.am:
2132         * m4/Makefile.am: Added:
2133         * m4/as-compiler-flag.m4: Added:
2134         * m4/gcov.m4: Added:
2135         * tools/Makefile.am:
2136         Add ability to generate a coverage report.
2137         Adds configure option --enable-gcov and make rule 'check-coverage'.
2138
2139 2008-02-08  Rob Taylor  <rob.taylor@codethink.co.uk>
2140
2141         * Makefile.am:
2142         * configure.ac:
2143         * gidl/Makefile.am: Added:
2144         * girepository/Makefile.am: Added:
2145         * src/Makefile.am: Renamed to tools/Makefile.am:
2146         * src/compiler.c: Renamed to tools/compiler.c:
2147         * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
2148         * src/generate.c: Renamed to tools/generate.c:
2149         * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
2150         * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
2151         * src/gidlnode.c: Renamed to tools/gidlnode.c:
2152         * src/gidlnode.h: Renamed to tools/gidlnode.h:
2153         * src/gidlparser.c: Renamed to tools/gidlparser.c:
2154         * src/gidlparser.h: Renamed to tools/gidlparser.h:
2155         * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
2156         * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
2157         * src/ginfo.c: Renamed to girepository/ginfo.c:
2158         * src/ginvoke.c: Renamed to girepository/ginvoke.c:
2159         * src/girepository.c: Renamed to girepository/girepository.c:
2160         * src/girepository.h: Renamed to girepository/girepository.h:
2161         * src/gmetadata.c: Renamed to girepository/gmetadata.c:
2162         * src/gmetadata.h: Renamed to girepository/gmetadata.h:
2163         * src/scanner.c: Renamed to tools/scanner.c:
2164         * src/scanner.h: Renamed to tools/scanner.h:
2165         * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
2166         * src/scannerparser.y: Renamed to tools/scannerparser.y:
2167         * tests/invoke/Makefile.am:
2168         Split src/ into girepository/ and tools/
2169
2170         * Makefile.am:
2171         * configure.ac:
2172         * girepository/Makefile.am:
2173         * tests/Makefile.am:
2174         * tests/invoke/Makefile.am:
2175         * tests/parser/Makefile.am:
2176         * tests/roundtrips.sh:
2177         * tools/Makefile.am:
2178         Make distcheck work.
2179
2180 2008-02-04  Rob Taylor  <rob.taylor@codethink.co.uk>
2181
2182         * tests/invoke/invoke.c: (main):
2183         * tests/invoke/testfns.c: (test6), (test7):
2184         * tests/invoke/testfns.xml:
2185         Add tests for invokation with a GList argument.
2186         Also tests caller-owns return values.
2187
2188 2008-02-04  Rob Taylor  <robtaylor@floopily.org>
2189
2190         * src/ginfo.c:
2191         Add some documentation for GICallableInfo
2192
2193 2008-02-01  Mark Doffman  <mark.doffman@codethink.co.uk>
2194
2195         * gidl.dtd:
2196         Correct syntax errors in the DTD file.
2197         * relaxng/api.xml:
2198         * relaxng/c-types.xml:
2199         * relaxng/g-types.xml:
2200         * relaxng/util.xml:
2201         Add a RelaxNG specification for the GObject Introspection XML data.
2202         The Specification has validated all of the test files.
2203
2204 2008-01-25  Rob Taylor  <robtaylor@floopily.org>
2205
2206         * tests/roundtrips.sh:
2207         * tests/struct.test:
2208         Add roundtrip tests for structs.
2209
2210 2008-01-11  Johan Dahlin  <johan@gnome.org>
2211
2212         * src/scanner.c (g_igenerator_process_function_symbol):
2213         Refactor out g_idle_node_add_member.
2214         (create_node_from_gtype, create_node_from_ctype):
2215         Use case instead of if...else
2216         (get_type_from_type_id):
2217         Rename to create_node_from_gtype
2218         (get_type_from_ctype):
2219         Rename to create_node_from_ctype
2220
2221         Rename ginode -> node, gitype -> type, gifunc -> func.
2222
2223         * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
2224         Two new functions, refactor out of scanner.c
2225
2226         * src/scanner.c: (g_igenerator_process_function_symbol):
2227         * src/scannerlexer.l:
2228         Do not save the content of the deprecated variable, only
2229         if it's set or not.
2230
2231 2008-01-11  Johan Dahlin  <johan@gnome.org>
2232
2233         * tests/parser/foo-object.h: Add a couple of comment parser tests.
2234
2235 2008-01-11  Jürg Billeter  <j@bitron.ch>
2236
2237         * src/scannerlexer.l:
2238         Fix GTK-Doc parsing.
2239
2240 2008-01-11  Jürg Billeter  <j@bitron.ch>
2241
2242         * src/scannerlexer.l:
2243         Fix GTK-Doc parsing.
2244
2245 2008-01-11  Jürg Billeter  <j@bitron.ch>
2246
2247         * src/scanner.c: (lookup_symbol):
2248         Return unresolved name if we find unknown symbol.
2249
2250 2008-01-11  Jürg Billeter  <j@bitron.ch>
2251
2252         * src/scanner.c: (g_igenerator_generate):
2253         Initialize GObject to fix scanning interface properties.
2254
2255         * tests/parser/Foo-expected.gidl:
2256         * tests/parser/foo-object.h:
2257         * tests/parser/foo.c: (foo_interface_get_type):
2258         Test interfaces with GObject prerequisite.
2259
2260         * tests/parser/Makefile.am:
2261         Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
2262
2263 2007-12-27  Johan Dahlin  <johan@gnome.org>
2264
2265         * src/scannerlexer.l:
2266         Parse gtk-doc comments.
2267
2268         * src/gidlwriter.c: (function_generate):
2269         Reorganize, avoid duplication and add support for
2270         writing deprecated functions.
2271
2272         * src/scannerparser.y:
2273         * src/scanner.h:
2274         Add new structure CDirective and functions to create/free them.
2275
2276         * src/scanner.c: (g_igenerator_process_function_symbol),
2277         (g_igenerator_process_unregistered_struct_typedef),
2278         (g_igenerator_process_struct_typedef),
2279         (g_igenerator_process_union_typedef),
2280         (g_igenerator_process_enum_typedef),
2281         (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
2282         (g_igenerator_start_preprocessor):
2283         Parse @deprecated directive for functions.
2284         Remove some more C99isms.
2285         Send in -C to cpp to avoid stripping comments.
2286
2287         * tests/parser/foo-object.h:
2288         * tests/parser/Foo-expected.gidl:
2289         Add deprecated directive
2290
2291 2007-12-27  Johan Dahlin  <johan@gnome.org>
2292
2293         * src/scannerlexer.l (intsuffix): Add emacs mode line and
2294         escape ' and " so it looks more like C.
2295
2296         * src/scanner.c:
2297         Unlink temporary file used.
2298
2299 2007-12-27  Johan Dahlin  <johan@gnome.org>
2300
2301         * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
2302         (g_igenerator_start_preprocessor), (main):
2303         * src/scanner.h:
2304         * src/scannerparser.y:
2305         Plug a couple of simple memory leaks.
2306
2307 2007-12-27  Johan Dahlin  <johan@gnome.org>
2308
2309         * src/scanner.c: (g_igenerator_parse_macros),
2310         (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
2311         (main):
2312         * src/scanner.h:
2313         * src/scannerparser.y:
2314         * tests/parser/Makefile.am:
2315
2316         Improve error reporting, return when the preprocessor fails.
2317         Add a verbose parameter, to aid debugging.
2318         Revert to using a temporary file to communicate between the
2319         preprocessor and the parser, because we need to wait for
2320         the exit code from the pre-processor before starting to parse.
2321
2322 2007-12-16  Johan Dahlin  <jdahlin@async.com.br>
2323
2324         * src/Makefile.am: Rename clexer.l to scannerlexer.l and
2325         cparser.y to scannerparser.y
2326
2327 2007-12-11  Johan Dahlin  <johan@gnome.org>
2328
2329         * src/clexer.l:
2330         * src/cparser.y:
2331         * src/scanner.c: (g_igenerator_new):
2332         * src/scanner.h:
2333         Get rid of the global the_generator variable.
2334
2335 2007-12-10  Johan Dahlin  <johan@gnome.org>
2336
2337         * src/scanner.c (main): Add an output option,
2338         add checks for required parameters
2339
2340         * src/Makefile.am:
2341         set BUILD_SOURCES and CLEANFILES properly
2342
2343         * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
2344         (g_writer_write_indent), (g_writer_write_unindent),
2345         (field_generate), (value_generate), (constant_generate),
2346         (property_generate), (function_generate), (vfunc_generate),
2347         (signal_generate), (interface_generate), (struct_generate),
2348         (union_generate), (boxed_generate), (enum_generate),
2349         (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
2350         * src/gidlwriter.h:
2351         * src/scanner.c: (g_igenerator_generate):
2352         * src/scanner.h:
2353         * src/scannerwriter.c:
2354
2355         Refactor scannerwriter to only be tied to a GIdlModule and move
2356         it (again!) to gidlwriter.c. Change the writer function to take
2357         a filename.
2358
2359 2007-12-10  Johan Dahlin  <johan@gnome.org>
2360
2361         * src/Makefile.am:
2362         * src/scanner.c: (g_igenerator_generate):
2363         * src/scanner.h:
2364         * src/scannerwriter.c: (g_igenerator_write_inline),
2365         (g_igenerator_write), (g_igenerator_write_indent),
2366         (g_igenerator_write_unindent), (field_generate), (value_generate),
2367         (constant_generate), (property_generate), (function_generate),
2368         (vfunc_generate), (signal_generate), (interface_generate),
2369         (struct_generate), (union_generate), (boxed_generate),
2370         (enum_generate), (node_generate), (module_generate),
2371         (g_scanner_write_file):
2372
2373         Move the scanner gidl writing to a separate source file.
2374
2375 2007-12-10  Johan Dahlin  <johan@gnome.org>
2376
2377         * src/cparser.y:
2378         * src/scanner.c:
2379         * src/scanner.h:
2380         Move over all CType construction functions.
2381
2382         * tests/parser/Makefile.am:
2383         Be verbose when printing parsing tests results.
2384
2385 2007-12-10  Johan Dahlin  <johan@gnome.org>
2386
2387         * src/scanner.c (g_igenerator_start_preprocessor): Refactor
2388         preprocessor handling to here. Start cpp insteado of cc -E,
2389         always include -U__GNUC__, since it's specific to the preprocessor
2390         we use.
2391
2392         * tests/parser/Makefile.am (check-local): Silent diff and skip
2393         -U__GNUC__ which is always defined now
2394
2395 2007-12-10  Johan Dahlin,,,  <jdahlin@plasttroll>
2396
2397         reviewed by: <delete if not using a buddy>
2398
2399         * src/scanner.c: (g_igenerator_start_preprocessor), (main):
2400         * tests/parser/Makefile.am:
2401
2402 2007-12-09  Johan Dahlin  <johan@gnome.org>
2403
2404         * src/scanner.c:
2405         Use GOption for command line options.
2406         (g_igenerator_new, main): Simplify constructor and they way
2407         parameters are passed into it.
2408
2409         * src/cparser.y:
2410         * src/Makefile.am:
2411         * src/clexer.l:
2412         * src/cparser.y:
2413         * src/gen-introspect.c:
2414         * src/gen-introspect.h:
2415         * src/scanner.c:
2416         Rename gen-introspect.[ch] to scanner.[ch]
2417
2418 2007-12-09  Johan Dahlin  <johan@gnome.org>
2419
2420         * TODO: Update
2421
2422         * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
2423         don't make the repository library and the other utilites link against
2424         gthread-2.0
2425
2426         * src/gen-introspect.c: (g_igenerator_create_object),
2427         (g_igenerator_create_interface), (g_igenerator_create_boxed),
2428         (g_igenerator_create_enum), (g_igenerator_create_flags),
2429         (g_igenerator_process_module_symbol),
2430         (g_igenerator_process_module), (g_igenerator_generate), (main):
2431         * src/gen-introspect.h:
2432         Refactor g_igenerator_process_types into smaller pieces.
2433
2434         * tests/parser/Makefile.am:
2435         Depend on the gen-introspect binary
2436
2437 2007-12-09  Johan Dahlin  <johan@gnome.org>
2438
2439         * src/gen-introspect.c (g_igenerator_process_types):
2440         Break into smaller pieces, one for each generated node type.
2441
2442 2007-12-08  Johan Dahlin  <johan@gnome.org>
2443
2444         * src/gen-introspect.c: (g_igenerator_process_types),
2445         (g_igenerator_add_module):
2446         * tests/parser/Foo-expected.gidl:
2447         * tests/parser/foo-object.h:
2448         * tests/parser/foo.c: (foo_subobject_class_init),
2449         (foo_subobject_init):
2450
2451         Add a subobject test and make sure to register defined classes
2452         in the lookup symbol hash table.
2453
2454 2007-12-08  Johan Dahlin  <johan@gnome.org>
2455
2456         * gidl/GLib.gidl:
2457         * src/Makefile.am:
2458         * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
2459         (g_igenerator_process_types), (g_igenerator_add_module),
2460         (g_igenerator_add_include_idl), (main):
2461         * src/gen-introspect.h:
2462         * tests/parser/Makefile.am:
2463         * tests/parser/Foo-expected.gidl:
2464
2465         Change the gen-introspect to generate namespaced module names,
2466         such as GLib.Object instead of GObject.
2467         Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
2468         add a --include-idl parameter to gen-introspect,
2469         and update the parser test.
2470
2471 2007-12-08  Johan Dahlin  <johan@gnome.org>
2472
2473         * src/gen-introspect.c:
2474         Move main to the end of the file and attempt to make it valid
2475         ansi c.
2476
2477         * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
2478         we're not quite ready to generate metadata yet.
2479
2480         * tests/parser/:
2481         * configure.ac:
2482
2483         Add a simple gen-introspect parser test
2484
2485 2007-12-06  Gustavo J. A. M. Carneiro  <gjc@gnome.org>
2486
2487         reviewed by: Johan Dahlin  <johan@gnome.org>
2488
2489         * configure.ac:
2490         * gobject-introspection.pc.in:
2491         * src/Makefile.am:
2492         * src/compiler.c: (format_output), (write_out_metadata), (main):
2493         * src/gen-introspect.c: (main):
2494         * src/gen-introspect.h:
2495         * src/generate.c: (write_callable_info), (write_repository),
2496         (load_metadata), (main):
2497         * src/gidlmodule.c: (g_idl_module_new),
2498         (g_idl_module_build_metadata):
2499         * src/gidlmodule.h:
2500         * src/gidlparser.c: (start_element_handler):
2501         * src/ginfo.c: (g_info_new), (g_info_from_entry),
2502         (g_base_info_get_name), (g_base_info_get_namespace),
2503         (g_base_info_is_deprecated), (g_base_info_get_annotation),
2504         (g_base_info_get_metadata), (g_function_info_get_symbol),
2505         (g_function_info_get_flags), (g_function_info_get_property),
2506         (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
2507         (g_callable_info_may_return_null),
2508         (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
2509         (g_callable_info_get_arg), (g_arg_info_get_direction),
2510         (g_arg_info_is_return_value), (g_arg_info_is_dipper),
2511         (g_arg_info_is_optional), (g_arg_info_may_be_null),
2512         (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
2513         (g_type_info_get_tag), (g_type_info_get_param_type),
2514         (g_type_info_get_interface), (g_type_info_get_array_length),
2515         (g_type_info_is_zero_terminated),
2516         (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
2517         (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
2518         (g_value_info_get_value), (g_field_info_get_flags),
2519         (g_field_info_get_size), (g_field_info_get_offset),
2520         (g_registered_type_info_get_type_name),
2521         (g_registered_type_info_get_type_init),
2522         (g_struct_info_get_n_fields), (g_struct_info_get_field),
2523         (g_struct_info_get_n_methods), (g_struct_info_get_method),
2524         (find_method), (g_struct_info_find_method),
2525         (g_enum_info_get_n_values), (g_enum_info_get_value),
2526         (g_object_info_get_parent), (g_object_info_get_type_name),
2527         (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
2528         (g_object_info_get_interface), (g_object_info_get_n_fields),
2529         (g_object_info_get_field), (g_object_info_get_n_properties),
2530         (g_object_info_get_property), (g_object_info_get_n_methods),
2531         (g_object_info_get_method), (g_object_info_find_method),
2532         (g_object_info_get_n_signals), (g_object_info_get_signal),
2533         (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
2534         (g_object_info_get_n_constants), (g_object_info_get_constant),
2535         (g_interface_info_get_n_prerequisites),
2536         (g_interface_info_get_prerequisite),
2537         (g_interface_info_get_n_properties),
2538         (g_interface_info_get_property), (g_interface_info_get_n_methods),
2539         (g_interface_info_get_method), (g_interface_info_find_method),
2540         (g_interface_info_get_n_signals), (g_interface_info_get_signal),
2541         (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
2542         (g_interface_info_get_n_constants),
2543         (g_interface_info_get_constant), (g_property_info_get_flags),
2544         (g_signal_info_get_flags), (g_signal_info_get_class_closure),
2545         (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
2546         (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
2547         (g_constant_info_get_value), (g_union_info_get_n_fields),
2548         (g_union_info_get_field), (g_union_info_get_n_methods),
2549         (g_union_info_get_method), (g_union_info_is_discriminated),
2550         (g_union_info_get_discriminator_offset),
2551         (g_union_info_get_discriminator):
2552         * src/ginvoke.c: (g_function_info_invoke):
2553         * src/girepository.c: (g_irepository_register),
2554         (g_irepository_unregister), (g_irepository_get_default),
2555         (count_interfaces), (g_irepository_get_n_infos), (find_interface),
2556         (g_irepository_get_info), (g_irepository_find_by_name),
2557         (g_irepository_get_shared_library),
2558         (g_irepository_build_search_path), (g_irepository_register_file),
2559         (g_irepository_error_quark):
2560         * src/girepository.h:
2561         * src/gmetadata.c: (g_metadata_get_dir_entry),
2562         (g_metadata_check_sanity), (validate_header),
2563         (validate_array_type_blob), (validate_iface_type_blob),
2564         (validate_param_type_blob), (validate_error_type_blob),
2565         (validate_type_blob), (validate_arg_blob),
2566         (validate_signature_blob), (validate_function_blob),
2567         (validate_callback_blob), (validate_constant_blob),
2568         (validate_value_blob), (validate_field_blob),
2569         (validate_property_blob), (validate_signal_blob),
2570         (validate_vfunc_blob), (validate_struct_blob),
2571         (validate_enum_blob), (validate_object_blob),
2572         (validate_interface_blob), (validate_errordomain_blob),
2573         (validate_union_blob), (validate_blob), (validate_directory),
2574         (validate_annotations), (g_metadata_validate), (_g_metadata_init),
2575         (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
2576         (g_metadata_new_from_mapped_file), (g_metadata_free),
2577         (g_metadata_set_module), (g_metadata_get_namespace):
2578         * src/gmetadata.h:
2579         * tests/Makefile.am:
2580         * tests/invoke/Makefile.am:
2581         * tests/invoke/invoke-namespace-find.sh:
2582         * tests/invoke/invoke.c: (main):
2583
2584         Add a namespace/shared library mapping. fixes #313268.
2585
2586 2007-12-03  Johan Dahlin  <johan@gnome.org>
2587
2588         * src/gidlparser.c (parse_type_internal): Disable char/gchar and
2589         guchar for now.
2590
2591 2007-11-30  Jürg Billeter  <j@bitron.ch>
2592
2593         * configure.ac:
2594         * src/Makefile.am:
2595         * src/clexer.l:
2596         * src/cparser.y:
2597         * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
2598         (g_igenerator_write_inline), (g_igenerator_write),
2599         (g_igenerator_write_indent), (g_igenerator_write_unindent),
2600         (field_generate), (value_generate), (constant_generate),
2601         (property_generate), (function_generate), (vfunc_generate),
2602         (signal_generate), (interface_generate), (struct_generate),
2603         (union_generate), (boxed_generate), (enum_generate),
2604         (node_generate), (module_generate), (get_type_from_type_id),
2605         (str_replace), (g_igenerator_process_properties),
2606         (g_igenerator_process_signals), (g_igenerator_process_types),
2607         (get_type_from_ctype), (g_igenerator_process_function_symbol),
2608         (g_igenerator_process_unregistered_struct_typedef),
2609         (g_igenerator_process_struct_typedef),
2610         (g_igenerator_process_union_typedef),
2611         (g_igenerator_process_enum_typedef),
2612         (g_igenerator_process_function_typedef),
2613         (g_igenerator_process_constant), (g_igenerator_process_symbols),
2614         (g_igenerator_add_symbol), (g_igenerator_is_typedef),
2615         (g_igenerator_generate), (main), (csymbol_new),
2616         (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
2617         (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
2618         (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
2619         (eat_hspace), (eat_line), (read_identifier),
2620         (g_igenerator_parse_macros):
2621         * src/gen-introspect.h:
2622
2623         Import gen-introspect to generate introspection information by
2624         parsing C headers.
2625
2626 2007-11-30  Jürg Billeter  <j@bitron.ch>
2627
2628         * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
2629
2630 2007-11-30  Jürg Billeter  <j@bitron.ch>
2631
2632         * src/gidlparser.c: (end_element_handler): Don't leave requires
2633         state too early.
2634
2635 2007-11-29  Johan Dahlin  <johan@gnome.org>
2636
2637         * src/gidlparser.c (parse_type_internal): Add char,
2638         gchar and guchar to the builtin types.
2639
2640 2007-11-26  Johan Dahlin  <johan@gnome.org>
2641
2642         * src/ginfo.c: (g_object_info_get_type_name),
2643         (g_object_info_get_type_init):
2644         * src/girepository.c: (g_irepository_is_registered):
2645         * src/girepository.h:
2646
2647         Add g_object_info_get_type_name, g_object_info_get_type_init and
2648         g_irepository_is_registered.
2649
2650 2006-08-14  Jürg Billeter  <j@bitron.ch>
2651
2652       * src/gidlparser.c: (end_element_handler): Don't leave
2653         namespace and implements states too early.
2654         Fixes #351264
2655
2656 2007-11-26  Johan Dahlin  <johan@gnome.org>
2657
2658         * src/gmetadata.c (validate_struct_blob):
2659         pass blob_type to validate_function_blob instead of
2660         hard-coding BLOB_TYPE_STRUCT.
2661
2662         Patch by Torsten Schoenfeld, fixes #314190
2663
2664 2006-10-03  Torsten Schoenfeld  <tsch@cvs.gnome.org>
2665
2666         * src/compiler.c, src/generate.c, src/gidlnode.c,
2667         src/gidlparser.c, src/ginfo.c, src/girepository.c,
2668         tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
2669         warnings about return values, signedness mismatches, unused
2670         variables, and unhandles enum values in switch statements.
2671
2672         * tests/invoke/Makefile.am: Don't install the invoke test program.
2673         Add -I ../../src to the cflags used for the test functions files.
2674
2675 2005-08-31  Torsten Schoenfeld  <tsch@cvs.gnome.org>
2676
2677         * src/girepository.h: Export g_invoke_error_quark.
2678
2679 2005-08-31  Torsten Schoenfeld  <tsch@cvs.gnome.org>
2680
2681         * src/ginvoke.c: Remove the fallback implementation of
2682         g_function_info_invoke since we now formally depend on libffi.
2683
2684 2005-07-25  Matthias Clasen  <mclasen@redhat.com>
2685
2686         * src/Makefile, tests/Makefile, tests/invoke/Makefile:
2687         Remove these files from cvs, as they are now generated.
2688
2689         * src/gmetadata.c (validate_iface_type_blob): Don't
2690         complain if blob->pointer is not set, since that
2691         happens for enum and flag types.  (#308935, Gustavo
2692         Carneiro)
2693
2694         * Commit an autoconf-conversion patch by
2695         Gustavo Carneiro (#308708)
2696
2697 2005-05-24  Matthias Clasen  <mclasen@redhat.com>
2698
2699         * src/compiler.c (main): Use it here to validate
2700         the generated metadata.
2701
2702         * src/gmetadata.[hc]: Add code to validate a
2703         metadata blob.
2704
2705         * metadata-format.txt: Updates
2706
2707 2005-05-22  Matthias Clasen  <mclasen@redhat.com>
2708
2709         * tests/*: Add struct offsets to field and vfunc
2710         elements.
2711
2712         * src/generate.c (write_vfunc_info): Write offset
2713         information for vfuncs.
2714
2715         * src/gidlnode.c (g_idl_node_build_metadata): Write
2716         the struct offsets into the metadata.
2717
2718         * src/gidlparser.c: Parse the offset attributes of
2719         field and vfunc elements.
2720
2721         * src/gidlnode.h: Add offset members to field and
2722         vfunc nodes.
2723
2724 2005-05-21  Matthias Clasen  <mclasen@redhat.com>
2725
2726         * TODO: Updates.
2727
2728         * gidl.dtd: Updates.
2729
2730         * src/g-idl-offsets.pl: A perl script which reads a .gidl
2731         file, creates, compiles and runs a C file, and folds the
2732         resulting struct offsets back into the .gidl file.
2733
2734 2005-05-20  Matthias Clasen  <mclasen@redhat.com>
2735
2736         * src/gidlparser.c (start_field): Make fields in objects
2737         work.
2738
2739         * src/gidlmodule.c: Include string.h
2740
2741         * TODO: Updates.
2742         :
2743
2744         * metadata-format.txt: Cleanup basic types.
2745         * src/*: Adapt to the changes.
2746         * tests/*: Adapt to the changes.
2747         * examples/gdk-pixbuf.gidl: Adapt to the changes.
2748
2749         * src/gidlnode.c (g_idl_node_get_size): Report the correct
2750         size for enum blobs.
2751         (g_idl_node_get_full_size): Report the correct size for
2752         function blobs.
2753
2754         * src/gidlmodule.c (g_idl_module_build_metadata): Add some
2755         error checking for blob sizes.
2756
2757 2005-05-19  Matthias Clasen  <mclasen@redhat.com>
2758
2759         * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
2760         interface types for which is_pointer is FALSE, e.g. enums.
2761
2762         * src/gidlnode.c (g_idl_node_get_full_size)
2763         * src/gidlparser.c (parse_type_internal):
2764         * src/generate.c (write_type_info): Support unspecialized
2765         lists, hashtables and errors. Also emit a '*' after these.
2766
2767         * TODO: Updates
2768
2769 2005-05-17  Matthias Clasen  <mclasen@redhat.com>
2770
2771         * TODO: Updates
2772
2773         * metadata-format.txt: Cleanups by Maciej Katafiasz.
2774
2775 2005-05-15  Matthias Clasen  <mclasen@redhat.com>
2776
2777         * src/*.c: Change the directory to be addressed by
2778         1-based indexes, and use an index of zero to mean
2779         'no object'.
2780
2781 2005-05-15  Matthias Clasen  <mclasen@redhat.com>
2782
2783         * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
2784
2785         * tests/union.test: Add a union test.
2786
2787         * src/generate.c: Handle unions.
2788
2789         * src/girepository.h:
2790         * src/ginfo.c: Add GIUnionInfo and functions to access it.
2791
2792         * src/gidlnode.c: Handle GIdlNodeUnion nodes.
2793
2794         * src/gidlparser.c (start_union): Parse <union> elements.
2795
2796         * src/gidlnode.h: Add a GIdlNodeUnion.
2797
2798         * gidl.dtd: Add a <union> element.
2799
2800         * src/gmetadata.c (g_metadata_check_sanity): Check
2801         union_blob_size.
2802
2803         * src/gmetadata.h: Add union_blob_size to Header,
2804         add a UnionBlob.
2805
2806         * metadata-format.txt: Add a UnionBlob.
2807
2808 2005-05-13  Matthias Clasen  <mclasen@redhat.com>
2809
2810         * tests/*: Update testcases.
2811
2812         * src/generate.c (write_callable_info): Don't forget to
2813         write transfer and null-ok attributes for return types
2814         and parameters.
2815
2816         * src/girepository.h:
2817         * src/ginfo.c (g_callable_info_may_return_null):
2818         New function to find out if a function may return NULL.
2819
2820         * src/compiler.c (format_output): Make the generated
2821         C code compile.
2822
2823         * README: Point to a recent libffi snapshot.
2824
2825         * tests/invoke/*: Some invoke tests.
2826
2827         * src/Makefile: Add ginvoke.c and the necessary
2828         libffi information.
2829
2830         * src/girepository.h (g_function_info_invoke): Add
2831         a GError argument.
2832
2833         * src/ginvoke.c (g_function_info_invoke): Initial
2834         implementation of invoke functionality based on libffi.
2835
2836         * src/gidlnode.c (g_idl_node_build_metadata): Pass the
2837         strings and types hash tables in the right order when
2838         recursing.
2839         (find_entry_node): Free the name parts.
2840
2841 2005-05-12  Johan Dahlin  <johan@gnome.org>
2842
2843         * src/generate.c: Generate consistent end tags.
2844
2845         * tests/*: Update
2846
2847 2005-05-12  Matthias Clasen  <mclasen@redhat.com>
2848
2849         * TODO: Updates
2850
2851         * src/gidlparser.c (start_function): Actually add
2852         methods to objects.  (Steven Walter)
2853
2854         * src/girepository.h:
2855         * src/ginfo.c: Rename Transfer and Direction to
2856         GITransfer and GIDirection. (Torsten Schoenfeld)
2857
2858         * tests/*: Make tests work with the changes in name
2859         handling.
2860
2861         * src/gidlnode.c (find_entry_node): Parse qualified
2862         names and generate xref nodes for them if needed. Don't
2863         require all modules to be loaded any more.
2864
2865         * src/gidlmodule.c (g_idl_module_build_metadata): Choke
2866         on '.' in names.
2867
2868         * src/ginfo.c (g_object_info_get_parent): Return NULL
2869         if blob->parent is 0. Still need to make sure index
2870         0 is not used.
2871
2872         * src/generate.c: Generate qualified names when
2873         referring to non-local types. Emit transfer attribute
2874         for return types.
2875
2876         * src/compiler.c (format_output): Put the function
2877         attributes where gcc accepts them.
2878
2879 2005-05-11  Matthias Clasen  <mclasen@redhat.com>
2880
2881         * src/compiler.c (main): Add a --verbose cmdline option
2882         and only log messages if it is specified.
2883
2884         * src/gidlnode.h:
2885         * src/gidlnode.c (init_stats, dump_stats): Collect some
2886         statistics on string and type sharing.
2887
2888         * src/gidlmodule.c (g_idl_module_build_metadata): Use
2889         g_message() instead of fprintf().
2890
2891         * src/gidlnode.c (g_idl_node_free): Make this more robust.
2892         (g_idl_node_get_size): Implement for structs.
2893         (g_idl_node_get_full_size): Handle parent being NULL.
2894         (serialize_type): Handle lookup failures more gracefully.
2895
2896 2005-05-10  Matthias Clasen  <mclasen@redhat.com>
2897
2898         * src/gidlnode.c (g_idl_node_get_full_size): Correct the
2899         size calculation for 2-parameter types and for objects.
2900
2901         * src/compiler.c: Add a cmdline option for debug output
2902         and install a log handler to implement it.
2903         * src/gidlnode.c: Add some debug spew.
2904
2905         * TODO: Updates
2906
2907         * src/gidlmodule.c (g_idl_module_build_metadata): Don't
2908         forget to count the module name when calculating the
2909         required size for the metadata.
2910
2911         * src/gidlnode.c:
2912         * src/gidlparser.c: Fix compiler warnings.
2913
2914 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
2915
2916         * src/compiler.c (main): Free the option context.
2917
2918         * gidl.dtd: Clean up handling of names. All elements
2919         have a "name", only the elements corresponding to
2920         actual callable functions (function, method, constructor),
2921         have an additional "symbol" attribute holding the
2922         dlsym()-able function name.
2923
2924         * src/generate.c: Adapt to generate xml matching the
2925         new dtd.
2926
2927         * src/gidlparser.c:
2928         * src/gidlnode.c: Adapt to parse the new dtd.
2929
2930         * tests/*.test: Adjust to the new dtd.
2931
2932         * metadata-format.txt:
2933         * src/gmetadata.h: Remove the short_name field
2934         from the ValueBlob.
2935         * src/gmetadata.c: Shrink size of ValueBlob to 12.
2936         * src/girepository.h:
2937         * src/ginfo.c (g_value_info_get_short_name): Removed
2938
2939 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
2940
2941         * gidl.dtd: Allow constructors for boxed types,
2942         patch by Jonathan Blandford.
2943
2944
2945 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
2946
2947         * --- Initial import ---