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