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