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