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