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