post_filter_varargs_functions should also filter callbacks. Add tests of
[platform/upstream/gobject-introspection.git] / ChangeLog
1 2009-01-28  Robert Carr   <carrr@rpi.edu>
2         
3         * girepository/girparser.c: post_filter_varargs_functions
4         should also filter callbacks.
5         * tests/scanner/foo.h: Add tests of varargs callbacks.
6
7 2009-01-28  Johan Bilien  <jobi@via.ecp.fr>
8
9         * tests/scanner/annotation-1.0-expected.gir: add missing
10         with_voidp
11
12 2009-01-27  Johan Dahlin  <jdahlin@async.com.br>
13
14         * gir/cairo-1.0.gir:
15         * gir/fontconfig-2.0.gir:
16         * gir/freetype2-2.0.gir:
17         * gir/libxml2-2.0.gir:
18         * gir/xfixes-4.0.gir:
19         * gir/xft-2.0.gir:
20         * gir/xlib-2.0.gir:
21         Remove shared-library tags for these too.
22
23 2009-01-27  Johan Dahlin  <jdahlin@async.com.br>
24
25         * gir/GL-1.0.gir:
26         Remove shared-library which removes the build
27         time dependency on mesa.
28
29 2009-01-27  Dan Winship  <danw@gnome.org>
30
31         Misc warning fixes
32
33         * giscanner/scannerparser.y: Fix the "Ignoring non-UTF-8 constant
34         string" error to print the right value.
35
36         * tests/scanner/annotation.c (backslash_parsing_tester)
37         (backslash_parsing_tester_2): make these non-static to avoid a
38         warning.
39         (annotation_object_string_out)
40         (annotation_string_zero_terminated): fix return values
41
42         * tests/scanner/annotation.h (annotation_object_with_voidp):
43         prototype this
44
45         * tests/scanner/gtkfrob.c:
46         * tests/scanner/gtkfrob.h (gtk_frob_language_manager_get_default):
47         fix prototype. (s/()/(void)/).
48
49         * tools/compiler.c (format_output): fix signed/unsigned warning.
50         Output a prototype for register_typelib() to avoid warnings later.
51
52 2009-01-26  Johan Dahlin  <jdahlin@async.com.br>
53
54         * tests/everything/everything.c (test_callback):
55         * tests/everything/everything.h:
56         Add a couple of callback tests.
57
58 2009-01-26  Johan Dahlin  <jdahlin@async.com.br>
59
60         * girepository/ginfo.c (g_base_info_unref):
61         Only unref the repository if it's actually set.
62
63 2009-01-23  Johan Dahlin  <jdahlin@async.com.br>
64
65         * tests/everything/everything.c (test_enum_param):
66         * tests/everything/everything.h:
67
68         Add an enum param test function
69
70 2009-01-21  Johan Dahlin  <jdahlin@async.com.br>
71
72         * configure.ac:
73         Post-release version bump
74
75 === 0.6.2 ===
76 2009-01-21  Johan Dahlin  <jdahlin@async.com.br>
77
78         * NEWS: Update
79
80 2009-01-21  Johan Dahlin  <jdahlin@async.com.br>
81
82         Bug 562622 – Errordomains missing
83
84         * giscanner/girwriter.py:
85         * giscanner/glibast.py:
86         * giscanner/glibtransformer.py:
87         * tests/scanner/Makefile.am:
88         * tests/scanner/foo-1.0-expected.gir:
89         * tests/scanner/foo-1.0-expected.tgir:
90         * tests/scanner/foo.c (foo_error_get_type), (foo_error_quark):
91         * tests/scanner/foo.h:
92
93 2009-01-20  Johan Dahlin  <jdahlin@async.com.br>
94
95         * giscanner/scannerlexer.l:
96         Increase the buffer size to 1M, so
97         gtkalias.h can be parsed.
98
99 2009-01-20  Johan Dahlin  <jdahlin@async.com.br>
100
101         * giscanner/glibtransformer.py:
102         When trying to map functions to structs, do
103         not require a public structure to exist, should
104         fix Gst gir generation in.
105
106 2009-01-20  Johan Dahlin  <jdahlin@async.com.br>
107
108         Bug 562615 – Struct methods missing
109
110         * giscanner/annotationparser.py:
111         * giscanner/ast.py:
112         * giscanner/girwriter.py:
113         * giscanner/glibast.py:
114         * giscanner/glibtransformer.py:
115         * tests/scanner/foo-1.0-expected.gir:
116         * tests/scanner/foo-1.0-expected.tgir:
117
118 2009-01-16  Dan Winship  <danw@gnome.org>
119
120         * gir/GL-1.0.gir: add back GLvoid, which got lost during the
121         gir-repository -> gobject-introspection migration
122
123 2009-01-15  Johan Dahlin  <jdahlin@async.com.br>
124
125         * gir/freetype2-2.0.gir: add FT_Int32
126         * gir/xft-2.0.gir: add XftFont
127         * girepository/gdump.c (g_irepository_dump):
128         Report errors when an invalid type is encountered
129         * giscanner/glibtransformer.py:
130         Make the error message a bit nicer.
131
132         Part of preparating for gir generating inside pango.
133
134 2009-01-15  Johan Dahlin  <jdahlin@async.com.br>
135
136         * gir/GL-1.0.gir:
137         * gir/Makefile.am:
138         * gir/cairo-1.0.gir:
139         * gir/fontconfig-2.0.gir:
140         * gir/freetype2-2.0.gir:
141         * gir/libxml2-2.0.gir:
142         * gir/xfixes-4.0.gir:
143         * gir/xft-2.0.gir:
144         * gir/xlib-2.0.gir:
145
146         Move over the hand-written girs from gir-repository
147         so upstream libraries depending on these can avoid
148         a gir-repository dependency.
149
150 2009-01-15  Johan Dahlin  <jdahlin@async.com.br>
151
152         Bug 567813 – Everything should be versioned
153
154         * gir/Makefile.am:
155         * girepository/Makefile.am:
156         * girepository/girepository.c (init_globals):
157         * girepository/girparser.c (locate_gir):
158         * giscanner/dumper.py:
159         * giscanner/transformer.py:
160         * gobject-introspection-1.0.pc.in:
161         * tests/everything/Makefile.am:
162         * tests/invoke/Makefile.am:
163         * tests/offsets/Makefile.am:
164         * tests/repository/Makefile.am:
165         * tests/scanner/Makefile.am:
166         * tools/Makefile.am:
167
168 2009-01-13  Johan Dahlin  <jdahlin@async.com.br>
169
170         Bug 555036 – put gtk-doc in GIR
171
172         * giscanner/annotationparser.py:
173         * giscanner/ast.py:
174         * giscanner/girwriter.py:
175         * giscanner/glibast.py:
176         * tests/scanner/annotation-1.0-expected.gir:
177         * tests/scanner/annotation.h:
178         * tests/scanner/foo-1.0-expected.gir:
179
180 2009-01-13  Johan Dahlin  <jdahlin@async.com.br>
181
182         * giscanner/cachestore.py (CacheStore.load): Catch AttributeError
183         which seems to be occasionally raised for Record.
184
185         * giscanner/annotationparser.py:
186         Fix a bug where \n was not present in a comment
187
188 2009-01-12  Johan Dahlin  <jdahlin@async.com.br>
189
190         Bug 562467 – Property annotation
191
192         * giscanner/annotationparser.py:
193         * tests/scanner/annotation-1.0-expected.gir:
194         * tests/scanner/annotation-1.0-expected.tgir:
195         * tests/scanner/annotation.c (annotation_object_set_property),
196         (annotation_object_get_property), (annotation_object_class_init):
197
198         Annotations are parsed for properties.
199
200 2009-01-12  Johan Dahlin  <jdahlin@async.com.br>
201
202         Bug 546739 – Introspection should know precise signal parameter types
203
204         * giscanner/annotationparser.py:
205         * tests/scanner/annotation-1.0-expected.gir:
206         * tests/scanner/annotation-1.0-expected.tgir:
207         * tests/scanner/annotation.c (annotation_object_class_init):
208
209         Annotations are parsed for signals, the (type) annotation is introduced.
210
211 2009-01-12  Johan Dahlin  <jdahlin@async.com.br>
212
213         Bug 563591 – Flags not recognized when there is no introspection data
214
215         * giscanner/ast.py:
216         * giscanner/girwriter.py:
217         * giscanner/giscannermodule.c (type_get_is_bitfield):
218         * giscanner/glibast.py:
219         * giscanner/glibtransformer.py:
220         * giscanner/scannerparser.y:
221         * giscanner/sourcescanner.c (gi_source_type_copy):
222         * giscanner/sourcescanner.h:
223         * giscanner/sourcescanner.py:
224         * giscanner/transformer.py:
225         * tests/scanner/foo-1.0-expected.gir:
226         * tests/scanner/foo-1.0-expected.tgir:
227         * tests/scanner/foo.h:
228
229         Large parts of this patch was done by Jürg Billeter.
230
231 2009-01-12  Havoc Pennington  <hp@pobox.com>
232
233         Bug 563386 – scanner ignores "const" on boxed return values
234
235         * tests/everything/everything.c (test_simple_boxed_a_const_return):
236         * tests/everything/everything.h:
237
238         This adds just the tests specified in the bug above, the fix itself
239         was included in Bug 563794
240
241 2009-01-03  Andreas Rottmann  <a.rottmann@gmx.at>
242
243         Bug 566404 – Annotations for GLib
244
245         * gir/glib-2.0.c: Added allow-none annotations for g_thread_init()
246         and g_main_loop_new().
247
248 2009-01-12  Johan Dahlin  <jdahlin@async.com.br>
249
250         Bug 566419 – Element type of arrays not properly handled in all cases
251
252         * giscanner/annotationparser.py:
253         * tests/scanner/annotation-1.0-expected.gir:
254         * tests/scanner/annotation-1.0-expected.tgir:
255         * tests/scanner/annotation.c (annotation_object_set_data),
256         (annotation_object_set_data2), (annotation_object_set_data3):
257         * tests/scanner/annotation.h:
258
259         Based on patch by Andreas Rottmann
260
261 2009-01-12  Johan Dahlin  <jdahlin@async.com.br>
262
263         Bug 566560 – giscanner.transformer.SkipError
264
265         * giscanner/transformer.py:
266
267         Catch SkipError for all nodes, not just functions.
268         Makes it possible to skip unsupported parameter types in 
269         callbacks.
270
271 2009-01-12  Johan Dahlin  <jdahlin@async.com.br>
272
273         Bug 563794 - Redo annotation parsing & applying
274         
275         Thanks to Colin for helping out considerably in landing this.
276
277         * giscanner/Makefile.am:
278         * giscanner/ast.py:
279         * giscanner/dumper.py:
280         * giscanner/girparser.py:
281         * giscanner/giscannermodule.c (pygi_source_scanner_get_comments),
282         (calc_attrs_length), (pygi_collect_attributes), (init_giscanner):
283         * giscanner/glibtransformer.py:
284         * giscanner/scannerlexer.l:
285         * giscanner/sourcescanner.c (gi_source_symbol_unref),
286         (gi_source_scanner_new), (gi_source_scanner_free),
287         (gi_source_scanner_get_comments):
288         * giscanner/sourcescanner.h:
289         * giscanner/sourcescanner.py:
290         * giscanner/transformer.py:
291         * giscanner/xmlwriter.py:
292         * tests/scanner/annotation-1.0-expected.gir:
293         * tests/scanner/annotation-1.0-expected.tgir:
294         * tests/scanner/annotation.c:
295         * tests/scanner/annotation.h:
296         * tests/scanner/foo-1.0-expected.gir:
297         * tests/scanner/foo-1.0-expected.tgir:
298         * tests/scanner/foo.h:
299         * tools/g-ir-scanner:
300
301         This commit merges the annotation parser rewrite branch.
302         It'll change the annotation parsing to be done completely in python
303         code which will make it easier to do further annotation parsing 
304         easier.
305
306 2009-01-03  Andreas Rottmann  <a.rottmann@gmx.at>
307  
308         Bug 563469 – Arrays not treated correctly in struct offset calculation
309         
310         * tests/scanner/foo.h (FooObject): Added field `some_int'.
311         * tests/scanner/foo-1.0-expected.gir,
312         * tests/scanner/foo-1.0-expected.tgir: Adapted.
313  
314         * giscanner/glibtransformer.py (GLibTransformer._create_gobject):
315         carry over object fields from original (struct) node.
316         (GLibTransformer._pair_class_struct): Don't add fields of the
317         class struct to to the node for the class, they should go under a
318         nested <record> element (see also Bug 551738). This is needed as
319         otherwise offset calculation would not work, as the instance
320         fields are mingled with the class fields without a way to
321         distinguish them.
322   
323 2009-01-03  Johan Dahlin  <jdahlin@async.com.br>
324
325         * misc/pep8.py:
326         Disable blank line check, it works differently under
327         Python 2.5 from 2.6 and was rather annoying from the start.
328
329 2008-01-03  Andreas Rottmann  <a.rottmann@gmx.at>
330
331         Bug 556489 – callback annotations
332         
333         * giscanner/transformer.py 
334
335         * tools/generate.c (write_callable_info): Write out the new scope,
336         closure and destroy attributes.
337
338         * giscanner/transformer.py (Transformer._type_is_callback): New
339         method, checking if a given type is a callback.
340         (Transformer._augment_callback_params): New method; adds
341         information (closure, destroy) to callback parameters.
342         (Transformer._handle_closure, Transformer._handle_destroy): New methods, 
343         auxiliary to _augment_callback_params.
344         (Transformer._create_function): Call _augment_callback_params().
345         (Transformer._create_parameter): Handle scope option.
346
347         (Transformer._create_typedef_callback): New method, creates a
348         callback, and registers it in the typedef namespace
349         (Transformer._create_typedef): Use _create_typedef_callback()
350         instead of the plain _create_callback().
351
352         * giscanner/ast.py (Parameter): Added callback-related fields.
353         * giscanner/girwriter.py: Write out new Parameter fields.
354
355         * girepository/girnode.h (GIrNodeParam): Added fields scope, 
356         closure and destroy.
357         * girepository/gtypelib.h (ArgBlob): Ditto.
358         * girepository/girparser.c (start_parameter): Handle new fields.
359
360         * girepository/girmodule.c (g_ir_module_build_typelib): Adjust
361         arg_blob_size, bump major version due to this change.
362         * girepository/girnode.c (g_ir_node_get_full_size_internal)
363         (g_ir_node_build_typelib)
364         * girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
365         adjustments.
366         (g_ir_node_build_typelib): Fill in new ArgBlob flags from param. 
367
368         * girepository/girepository.h (GIScope): New enumeration, listing
369         the different possible scopes for callbacks.
370
371         * girepository/ginfo.c (g_arg_info_get_scope)
372         (g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
373         callback-related argument indices (callback scope, closure for a
374         callback, destroy notification for a callback).
375
376         * tests/scanner/: Added testcases for new features.
377         
378 2009-01-03  Jürg Billeter  <j@bitron.ch>
379
380         * giscanner/ast.py:
381         * giscanner/dumper.py:
382         * giscanner/girparser.py:
383         * giscanner/glibtransformer.py:
384         * giscanner/sourcescanner.py:
385         * giscanner/transformer.py:
386         * giscanner/xmlwriter.py:
387
388         Fix inconsistencies with PEP8
389
390 2008-12-21  Johan Dahlin  <jdahlin@async.com.br>
391
392         * gir/gio-2.0.c:
393         Annotate transfer, direction and allow none for
394         g_file_load_contents, g_file_load_contents_finish and
395         g_file_load_partial_contents_finish parameters.
396
397 2008-12-12  Owen Taylor  <otaylor@redhat.com>
398
399         Disable array auto-detection for out-annotated parameters (#563934)
400
401         If we have a parameter annotated as (out), then having a ctype of
402         'char **' (or similar) doesn't necessarily indicate an array.
403
404         * giscanner/transformer.py: Skip array-detection logic for
405         (out)-annotated parameters.
406         * tests/scanner/annotation.h tests/scanner/annotation.c
407         tests/scanner/annotation-1.0-expected.gir
408         tests/scanner/annotation-1.0-expected.tgir: Add a test for
409         an (out) string parameter.
410
411 2008-12-12  Johan Dahlin  <jdahlin@async.com.br>
412
413         * giscanner/dumper.py (DumpCompiler._link): Pass in
414         --tag=CC to libtool to avoid making libtool confused
415         when CC is different from gcc on some systems.
416
417 2008-12-10  Johan Bilien  <jobi@via.ecp.fr>
418
419         Bug 563998 – Cache the GIBaseInfo for GTypes
420
421         * girepository/girepository.c (g_irepository_find_by_gtype):
422         add a cache of GType -> GIBaseInfo.
423
424 2008-12-09  Johan Bilien  <jobi@via.ecp.fr>
425
426         Bug 562545 – Add function taking / returning GValue
427
428         * tests/everything/everything.[ch]: add a test of function taking and
429         returning "const GValue *"
430
431 2008-12-09  Johan Dahlin  <johan@async.com.br>
432
433         * giscanner/cachestore.py (CacheStore.store): Use
434         shutil.move instead of os.rename, since it will
435         automatically fall back to copying+remove if the
436         src directory is on a different partition from
437         the dst directory.
438
439 2008-12-08  Tristan Van Berkom  <tristan.van.berkom@gmail.com>
440
441         Bug 563742 – introspection should record the introduced version of
442                      symbols marked with the "Since:" tag
443
444         reviewed by: Johan
445
446         * giscanner/ast.py:
447         * giscanner/girwriter.py:
448         * giscanner/scannerlexer.l:
449         * giscanner/transformer.py:
450         * tests/scanner/annotation-1.0-expected.gir:
451         * tests/scanner/annotation-1.0-expected.tgir:
452         * tests/scanner/annotation.c (annotation_versioned):
453         * tests/scanner/annotation.h:
454
455 2008-12-08  Johan Dahlin  <johan@async.com.br>
456
457         * giscanner/cachestore.py (_get_cachedir): Don't require
458         HOME to be set and if it set, don't require the
459         directory to exist.
460
461 2008-12-08  Johan Dahlin  <johan@async.com.br>
462
463         * giscanner/cachestore.py (CacheStore.store): Dump the cache
464         file to a temporary file and rename it the expected filename
465         only when it's completely written.
466         This should make the cache more roboust when run in parallel,
467         and hopefully avoid triggering bugs in Python.
468
469 2008-12-03  Christophe Fergeau  <teuf@gnome.org>
470
471         Bug 562971 – g-ir-scanner failure on libgpod headers
472
473         * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
474         default 16384. Without it, the lexer was aborting with a cryptic
475         error message on source files containing really long comment
476         blocks.
477
478 2008-12-01  Colin Walters  <walters@verbum.org>
479
480         * girepository/gfield.c: Fix memory leak; unref type info we
481         created, not field info
482
483 2008-11-30  Johan Dahlin  <jdahlin@async.com.br>
484
485         Bug 562289 – Race when removing invalid cache
486
487         * giscanner/cachestore.py:
488         ENOENT is mapped to a OSError, not IOError.
489
490 2008-11-27  Johan Dahlin  <jdahlin@async.com.br>
491
492         * gir/glib-2.0.c: Add return value transfer annotation
493         for g_markup_escape_text.
494
495 2008-11-25  Colin Walters  <walters@verbum.org>
496
497         * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
498         people to pass.
499         * giscanner/dumper.py: Implement it.
500         * gir/Makefile.am, tests/**/Makefile.am: Use it.
501
502 2008-11-25  Colin Walters  <walters@verbum.org>
503
504         * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
505         to just use a Makefile rule and dependencies.  This corresponds with a change
506         made to gir-repository to fix srcdir != builddir issues.
507
508 2008-11-25  Johan Dahlin  <jdahlin@async.com.br>
509
510         * configure.ac:
511         Post release version bump
512
513 === 0.6.1 ===
514 2008-11-25  Johan Dahlin  <jdahlin@async.com.br>
515
516         * NEWS:
517         Release 0.6.1
518
519 2008-11-25  Colin Walters  <walters@verbum.org>
520
521         Bug 559705 – Missing association between static methods and classes
522
523         * docs/typelib-format.txt:
524         * girepository/ginfo.c (g_function_info_get_flags):
525         * girepository/girmodule.c (g_ir_module_build_typelib):
526         * girepository/girnode.c (g_ir_node_get_size),
527         (g_ir_node_build_typelib):
528         * girepository/girparser.c (start_function):
529         * girepository/gtypelib.c (g_typelib_check_sanity),
530         (validate_header), (validate_function_blob):
531         * girepository/gtypelib.h:
532         * giscanner/ast.py:
533         * giscanner/girwriter.py:
534         * giscanner/glibtransformer.py:
535         * tests/scanner/foo-1.0-expected.gir:
536         * tests/scanner/foo-1.0-expected.tgir:
537         * tests/scanner/foo.h:
538
539 2008-11-25  Johan Dahlin  <jdahlin@async.com.br>
540
541         * giscanner/ast.py: Define socklen_t as an alias for int32.
542
543 2008-11-24  Johan Dahlin  <jdahlin@async.com.br>
544
545         * girepository/gdump.c (dump_type): Remove a warning,
546         be less verbose on error on fundamental types.
547
548 2008-11-23  Johan Dahlin  <jdahlin@async.com.br>
549
550         * giscanner/dumper.py: Add license headers,
551         refactor into a class, avoid some duplication and do some
552         extra pedantic checks.
553
554 2008-11-23  Johan Dahlin  <jdahlin@async.com.br>
555
556         Make it compilable with -Werror on my system by adding
557         a couple of prototypes and including headers.
558
559 2008-11-23  Johan Dahlin  <jdahlin@async.com.br>
560
561         Bug 562022 – gobject-introspection needs python headers
562
563         * configure.ac: fail without python headers present.
564         Patch by: Tom Parker
565
566 2008-11-21  Johan Dahlin  <jdahlin@async.com.br>
567
568         Bug 561617 – Return value array annotations
569
570         * giscanner/transformer.py:
571         * tests/scanner/annotation.c (annotation_return_array):
572         * tests/scanner/annotation.h:
573         Add support for (array) for return value annotations as well.
574
575 2008-11-20  Johan Bilien  <jobi@via.ecp.fr>
576
577         * tests/everything/everything.[ch]: add a test function which calls a
578         closure.
579
580 2008-11-19  Johan Dahlin  <jdahlin@async.com.br>
581
582         * giscanner/cachestore.py:
583         Catch ValueError exceptions.
584
585 2008-11-18  Tommi Komulainen  <tommi.komulainen@iki.fi>
586
587         * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
588
589 2008-11-18  Andreas Rottmann  <a.rottmann@gmx.at>
590
591         * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
592         instead of hard-coding struct sizes.
593
594 2008-11-18  Owen Taylor <otaylor@redhat.com>
595
596         Bug 561296 - Add "storage type" to the typelib data for enums
597
598         In order to set and get enum and flag fields in structures, we need
599         to know the integral type that the enumeration is stored as. We are already
600         computing that at compile time in order to compute struct offsets, so the
601         easiest thing to do is to save that in the typelib.
602
603         * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
604         girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
605         and compute and save it at compile time.
606
607         * girepository/girepository.h girepository/ginfo.c:
608         Add g_enum_info_get_storage_type().
609
610         * girepository/gfield.c: Implement reading and writing enum and flags fields
611         based on the storage type.
612
613 2008-11-18  Owen Taylor <otaylor@redhat.com>
614
615         Add enums to the Everything test module
616
617         * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
618         test module and register them as GTypes.
619
620         https://bugzilla.gnome.org/show_bug.cgi?id=561296
621
622 2008-11-18  Johan Dahlin  <jdahlin@async.com.br>
623
624         * giscanner/cachestore.py:
625         Catch BadPickleGet exceptions as well.  
626
627 2008-11-17  Owen Taylor  <otaylor@redhat.com>
628
629         * tests/everything/everything.c: Fix doc comment annotations
630         for test_struct_b_clone() to refer to the right function.
631
632 2008-11-17  Dan Winship  <danw@gnome.org>
633
634         * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
635         spelling of GHashTable. #561135
636
637         * tests/scanner/annotation.c (annotation_object_get_hash):
638         * tests/scanner/annotation-1.0-expected.gir:
639         * tests/scanner/annotation-1.0-expected.tgir: add a test of
640         GHashTable annotations
641
642 2008-11-17  Andreas Rottmann  <a.rottmann@gmx.at>
643
644         * giscanner/ast.py: Change string array match type to be in terms
645         of canonicalized type.
646         * giscanner/transformer.py: Add canonicalize_ctype which gives us
647         a version of a c:type without aliases, so we can deep canonicalize
648         char** to utf8*.  Update parse_ctype to use it.
649         * tests/*: Add gtk_init like int*/char*** arg functions for testing.
650
651 2008-11-16  Colin Walters  <walters@verbum.org>
652
653         * girepository/girepository.c: Ensure we always call init_globals,
654         even if passed a non-default repository.
655
656 2008-11-16  Colin Walters  <walters@verbum.org>
657
658         Bug 559706 - Interface prerequisites
659
660         * common.mk: Dep on libgirepository.la for scanner libs so that
661         we rebuild things even if just gdump.c changes.
662         * girepository/gdump.c: Dump prerequisites.
663         * giscanner/ast.py: Add prerequisite list.
664         * giscanner/girparser.py: Parse them from gdump.
665         * giscanner/girwriter.py: Write them.
666         * giscanner/glibtransformer.py: Resolve them.
667         * tests/*: Test.
668
669 2008-11-16  Owen Taylor  <otaylor@redhat.com>
670
671         Bug 561087 - Respect is_pointer in serialize_type()
672
673         Add a '*' to the serialization for the cases where we set is_pointer
674         in the type blob we write out depending on node->is_pointer. Don't
675         add the '*' in the cases where is_pointer is set or not set in a
676         fixed fashion.
677
678         http://bugzilla.gnome.org/show_bug.cgi?id=561087
679
680 2008-11-16  Owen Taylor  <otaylor@redhat.com>
681
682         Bug 560825 – Add size and alignment to typelib
683
684         Include the size and alignment of structures and unions in the typelib,
685         and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
686
687         * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
688         girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
689         to StructBlob and UnionBlob.
690
691         * girepository/ginfo.c girepository/girepository.h:
692         Add g_[struct|union]_get[size|alignment]().
693
694         * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
695
696 2008-11-16  Owen Taylor  <otaylor@redhat.com>
697
698         Bug 552371 – implement struct field get/set
699
700         * girepository/gfield.c girepository/girepository.h: Add
701         convenience functions g_field_info_set_field() and
702         g_field_info_get_field() to set and get fields based on the
703         offsets in GIFieldInfo.
704
705 2008-11-16  Andreas Rottmann  <a.rottmann@gmx.at>
706
707         Bug 560241 - Out-arguments should not be marked as being pointers
708         in all cases
709
710         * girepository/girparser.c: Improved logic for out arguments.
711
712 2008-11-16  Andreas Rottmann  <a.rottmann@gmx.at>
713
714         Bug 559601 - Pointers in structs/unions unduly treated as arrays
715
716         * giscanner/transformer.py: Differentiate type creation logic
717         between parameters and struct components.
718
719 2008-11-15  Colin Walters  <walters@verbum.org>
720
721         * giscanner/dumper.py: Check return code from pkg-config
722         invocations.
723
724 2008-11-14  Johan Dahlin  <jdahlin@async.com.br>
725
726         * tests/everything/everything.c (test_array_int_in),
727         (test_array_gtype_in):
728         * tests/everything/everything.h:
729         Rename the int/gtype array tests. Make the return value
730         useful, an aggregation of the array input values.
731
732 2008-11-14  Johan Dahlin  <jdahlin@async.com.br>
733
734         * tests/everything/Makefile.am:
735         * tests/everything/everything.c:
736         * tests/everything/everything.h:
737         * tests/everything/gitesttypes.c:
738         * tests/everything/gitesttypes.h:
739         Rename gitesttypes.[ch] to everything.[ch]
740
741 2008-11-13  Andreas Rottmann  <a.rottmann@gmx.at>
742
743         Bug 560708 – Don't treat arrays that have a length specified as
744         zero-terminated by default
745
746         * giscanner/transformer.py: Default to non zero terminated for
747         arrays with length.
748         * tests/*: Update, add test for zero vs not.
749
750 2008-11-13  Andreas Rottmann  <a.rottmann@gmx.at>
751
752         Bug 557788 - Return types for constructors in generated typelib bogus
753
754         * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
755         obviously broken in the face of duplicate names in different
756         namespaces.
757         * tests/scanner/*expected.gir: Fix up.
758
759 2008-11-13  Owen Taylor  <otaylor@redhat.com>
760
761         * girepository/girffi.c: Fix  "Unexpected time for time_t"
762         message.
763
764 2008-11-13  Colin Walters  <walters@verbum.org>
765
766         Bug 558436 - avoid having scanner load app code
767
768         * giscanner/cgobject.py: Delete; we no longer load shared
769         libraries directly.
770         * giscanner/dumper.py: Support for linking a library to
771         a stub binary for introspection.
772         * giscanner/glibtransformer.py: Rewrite to use gdump XML
773         from invocation of child binary.
774         * giscanner/transformer.py: Fix up to use fully qualified
775         name in parse tree.  Make parse_ctype public so we can use
776         it inside glibtransformer.
777         * tests/scanner/barapp.c: New test, using --program arg
778         for g-ir-scanner.
779         * tests/*: Update to use common.mk for invoking scanner.
780         * tools/g-ir-scanner: Add options --program, --program-arg,
781         and --no-libtool.
782         * docs/g-ir-scanner.1: Update.
783
784 2008-11-13  Colin Walters  <walters@verbum.org>
785
786         * configure.ac: Depend on Gio, we use it in gdump.c.
787         * girepository/gdump.c: Code to dump GType data to XML.
788         * girepository/girepository.c: Add option group for dumping.
789         * girepository/girepository.h: Define API for the above.
790
791 2008-11-13  Colin Walters  <walters@verbum.org>
792
793         * common.mk: Add a file to include with Makefile fragments
794         useful for scanner invocation.
795
796 2008-11-13  Tommi Komulainen  <tommi.komulainen@iki.fi>
797
798         * tests/everything/gitesttypes.c (test_filename_return): Return
799         strings in filename encoding.
800
801 2008-11-13  Owen Taylor  <otaylor@redhat.com>
802
803         Bug 560253 – Add structure and boxed types to Everything test module
804
805         * tests/everything/gitesttypes.[ch]: Add examples of:
806
807           Plain old data structs
808           Plain old data structs with nested fields
809           Plain old data boxed
810           Plain old data boxed with nested fields
811           More complicated boxed types with internal state
812
813 2008-11-12  Johan Dahlin  <jdahlin@async.com.br>
814
815         * tests/everything/gitesttypes.c (test_gtype_in):
816         * tests/everything/gitesttypes.h:
817         Add a test of GType arrays, a la gtk_list_store_set_columns.
818
819 2008-11-12  Owen Taylor  <otaylor@redhat.com>
820
821         Bug 560419 – Cache includes when parsing
822
823         Keep track of all modules parsed within a GIrParser, and when a
824         module is referenced a second time, use the existing parsed copy
825         instead of reparsing.
826
827 2008-11-12  Owen Taylor  <otaylor@redhat.com>
828
829         Fix management of ParseContext.includes_modules (#560419)
830
831         * girepository/girparser.c: Fix some trivial bugs in managing the
832         list of include modules. (Add to module's list twice, not
833         initialized to NULL, not freed.)
834
835 2008-11-12  Owen Taylor  <otaylor@redhat.com>
836
837         Keep aliases and disguised_structures local to each module (#560419)
838
839         * girepository/girmodule.[ch]: When parsing, keep keep a separate
840         hash tables of aliases and 'disguised' flags for each module, and
841         store that on the module.
842
843         After parsing an include merge the aliases/disguised flags to the
844         including module.
845
846         * girepository/girparser.c: Remove 'prefix_aliases' flag and
847         always prefix aliases/disguised structure types when parsing; this
848         simplifies the code considerably.
849
850 2008-11-12  Owen Taylor  <otaylor@redhat.com>
851
852         Fix mismatches between .gir name and 'name' attribute (#560419)
853
854         * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
855         tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
856         where the 'name' element of <namespace/> didn't match the filename of the
857         gir, an assumption that the compiler has always expected and now enforces.
858
859 2008-11-12  Owen Taylor  <otaylor@redhat.com>
860
861         Only allow one <namespace/> element per <repository/> (#560419)
862
863         * girepository/girparser.c: The logic in girparser.c didn't work
864         very well if there were multiple <namespace/> nodes within a
865         single <repository/> (context->namespace was always the overall
866         filename and not the the name specified in the <namespace/>
867         element for one thing; this would cause aliases to be mis-prefixed
868         in include modules.) Also check that the "name" in the
869         <namespace/> node matches the filename.
870
871 2008-11-12  Owen Taylor  <otaylor@redhat.com>
872
873         Add a GirParser object to hold the state of a compilation
874
875         * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
876         GirParser object to hold state that is global across a
877         compilation. Currently just holds the include path, but will
878         eventually also keep a cached list of parsed modules.
879
880 2008-11-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
881
882         * girepository/girepository.c (find_namespace_latest): Fix
883         minor memory leak.
884
885 2008-11-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
886
887         * configure.ac: use 'introspection' component for bugs
888
889 2008-11-12  Johan Dahlin  <jdahlin@async.com.br>
890
891         * tests/everything/gitesttypes.c (test_filename_return):
892         * tests/everything/gitesttypes.h:
893         Add a filename return test.
894
895 2008-11-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
896
897         * tests/offsets/Makefile.am (gitestoffsets.c): fix
898         gen-gitestoffsets invocation with builddir != srcdir
899
900 2008-11-12  Johan Dahlin  <jdahlin@async.com.br>
901
902         * girepository/girepository.c:
903         Change the element type from utf8 to filename
904         * girepository/girnode.c (g_ir_node_build_typelib):
905         Special case filename equally to utf8 here.
906
907 2008-11-12  Johan Dahlin  <jdahlin@async.com.br>
908
909         * gir/Makefile.am:
910         Remove unused variables, add a dependency of girepository.ch, so when
911         they change we rebuild the gir automatically.
912
913 2008-11-12  Johan Dahlin  <jdahlin@async.com.br>
914
915         * girepository/girepository.c (g_irepository_get_search_path):
916         * girepository/girepository.h:
917         Add a g_irepository_get_search_path, so we can access the search
918         paths from runtime.
919
920 2008-11-12  Johan Bilien  <jobi@via.ecp.fr>
921
922         Bug 560474 – g-ir-compiler crashes when compiling the glib gir
923
924         * girepository/girparser.c: avoid freeing an uninitialized pointer
925
926 2008-11-12  Johan Dahlin  <jdahlin@async.com.br>
927
928         * gir/Makefile.am:
929         * giscanner/glibtransformer.py:
930         * tools/g-ir-scanner:
931         Add a GIRepository-2.0.gir. Change the libtool lookup slightly
932         so we can just pass in --library=foo/bar/baz.la and the scanner
933         does the right thing.
934         Don't warn for _get_type() functions if they don't take any
935         parameters
936
937 2008-11-11  Owen Taylor  <otaylor@redhat.com>
938
939         Bug 560404 – Prefix types when resolving aliases in included modules
940
941         * girepository/girparser.c: When resolving aliases in an included
942         module, prefix types before looking them up.
943
944 2008-11-11  Owen Taylor  <otaylor@redhat.com>
945
946         Compute field offsets and overall size for object structures
947
948         Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
949         field of type object in structure"
950
951         Do basic computation of field offsets for objects and interfaces;
952         this doesn't attempt to address all of the "mess" for virtual
953         functions described in Bug 560281.
954
955 2008-11-11  Tommi Komulainen  <tommi.komulainen@iki.fi>
956
957         Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
958
959         Based on patch by Johan Bilien.
960
961         * giscanner/transformer.py (_create_member, _create_parameter):
962         Resolve types here as well.
963         (_resolve_type_name_1): Try resolving using 'ctype' first since
964         it's least ambiguous. Fixes struct member type resolution with
965         similarly named types, e.g. Gdk.PangoRendererClass and
966         Pango.RendererClass
967         * tests/scanner/foo*: Add test.
968
969 2008-11-11  Owen Taylor  <otaylor@redhat.com>
970
971         * girepository/girparser.c: Search provided include dirs before
972         the default directories.
973
974 2008-11-11  Owen Taylor  <otaylor@redhat.com>
975
976         * girepository/giroffsets.c: Include fully-qualified names in
977         all error messages.
978
979 2008-11-11  Owen Taylor  <otaylor@redhat.com>
980
981         * girepository/giroffsets.c: Fail gracefully with an informative
982         error message when recursion is encountered when computing a 
983         structure size.
984
985 2008-11-11  Owen Taylor  <otaylor@redhat.com>
986
987         * girepository/girparser.c: Remove an unused variable.
988
989 2008-11-10  Owen Taylor <otaylor@redhat.com>
990
991         Add tests for field offset computations
992
993         * tests/offsets/offsets.h: Header file with structure definitions to test
994
995         * tests/offsets/gen-gitestoffsets: Generate a C program that computes
996         field offsets for the structures in offsets.h two ways: using
997         the information from a generated typelib, and as computed by the
998         compiler.
999
1000         We diff these two versions to test that everything is OK.
1001
1002 2008-11-10  Owen Taylor <otaylor@redhat.com>
1003
1004         Remove field offsets from g-ir-generate output and test inputs
1005
1006         Field offsets are a) architecture dependent so they shouldn't be part
1007         of the architecture-independent gir format which is installed in
1008         datadir. b) Are architecture-dependent so they shouldn't be in test
1009         expected output.
1010
1011         * girepository/girparser.c: Don't parse offset for fields
1012         * tools/generate.c: Don't parse offset for fields
1013         * tests/*.gir test/scanner/*.tgir: Remove offsets
1014
1015         (Virtual function and discriminator offsets are not removed, as they
1016         aren't fully hooked up to the field-offset computation machinery yet.)
1017
1018 2008-11-10  Owen Taylor <otaylor@redhat.com>
1019
1020         Bug 560252 - Compute field offsets before writing typelib
1021
1022         * girepository/girnode.h: Store the total size and alignment for
1023         GIrNodeStruct/Boxed/Union.
1024
1025         * girepository/giroffset.c: New file implementing computation of
1026         structure field offsets.
1027
1028         * girepository/girnode.c: Compute structure field offsets before
1029         writing types into the typelib.
1030
1031         * docs/typelib-format.txt: Document that a field offset of 0xFFFF
1032         means "unknown". Also fix description of the discriminator_offset
1033         field for unions.
1034
1035 2008-11-10  Owen Taylor <otaylor@redhat.com>
1036
1037         Bug 560250 - Fully parse included modules
1038
1039         For some things, like computing structure offsets to put into the typelib
1040         we need more than just the aliases from included modules. Do a completel
1041         parse of included modules and store in module->included_modules.
1042
1043         Also add g_ir_find_node() to find node information from within the
1044         active set of modules and their includes.
1045
1046 2008-11-10  Owen Taylor <otaylor@redhat.com>
1047
1048         Split g_ir_ffi_get_ffi_type() out from ginvoke.c
1049
1050         Extract a function to convert GITypeTag to ffi_type from the internals
1051         of ginvoke.c. This will be useful in figure out structure alignment.
1052
1053         Also fix handling of gsize and time_t to be portable. (Add a check
1054         to configure.ac to figure out the width of time_t.)
1055
1056 2008-11-10  Owen Taylor <otaylor@redhat.com>
1057
1058         Bug 560248 – "disguised structures"
1059
1060         Certain types like GIConv and GdkAtom are pointers internally but don't
1061         look like pointers when referenced. They have the form.
1062
1063           typedef struct _X *X;
1064
1065         Parse these as structures/records but mark them in the gir with a 'disguised'
1066         attribute so that we know that they need special handling.
1067
1068         In the typelib treat them like any other structure.
1069
1070 2008-11-09  Jürg Billeter  <j@bitron.ch>
1071
1072         * giscanner/ast.py:
1073         * giscanner/girwriter.py:
1074
1075         Write throws attribute for virtual functions, fixes bug 559703
1076
1077 2008-11-07  Johan Dahlin  <jdahlin@async.com.br>
1078
1079         * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
1080         up some confusion about the second argument to find_module, it's
1081         actually the packages __path__ attribute which we can safely ignore
1082         for our purposes.
1083         (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
1084
1085 2008-11-07  Owen Taylor  <otaylor@redhat.com>
1086
1087         Bug 559737 – Deal with continuations in macros
1088
1089         * giscanner/giscannerlexer.l: Treat continuation lines the same
1090         as regular newlines. This makes the scanner not complain about
1091         #define foo(x) \ <stuff> inside a C file. There's no attempt
1092         however to handle parsing macro definitions split across lines.
1093
1094 2008-11-07  Johan Dahlin  <jdahlin@async.com.br>
1095
1096         * giscanner/cachestore.py:
1097         Handle broken cache entries, write only filesystems and
1098         running out of diskspace.
1099
1100 2008-11-07  Owen Taylor  <otaylor@redhat.com>
1101
1102         * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
1103         Set current_filename before lexing the file so error messages
1104         are reported in the right file.
1105
1106 2008-11-06  Colin Walters  <walters@verbum.org>
1107
1108         * tests/everything/*: Add some tests for strv.
1109
1110 2008-11-05  Colin Walters  <walters@verbum.org>
1111
1112         * girepository/ginvoke.c (g_function_info_invoke): Don't use
1113         nested scope local variable for error which may go away after
1114         conditional is complete.
1115
1116 2008-11-05  Colin Walters  <walters@verbum.org>
1117
1118         * giscanner/scannerlexer.l: Avoid static 256 char buf which we
1119         manipulate hackily; just use GString.  This avoids an
1120         uninitialized memory read pointed out by Havoc.
1121
1122 2008-11-04  Johan Dahlin  <jdahlin@async.com.br>
1123
1124         * giscanner/__init__.py:
1125         * giscanner/ast.py:
1126         * giscanner/cachestore.py:
1127         * giscanner/cgobject.py:
1128         * giscanner/girparser.py:
1129         * giscanner/girwriter.py:
1130         * giscanner/giscannermodule.c:
1131         * giscanner/glibast.py:
1132         * giscanner/glibtransformer.py:
1133         * giscanner/libtoolimporter.py:
1134         * giscanner/minixpath.py:
1135         * giscanner/odict.py:
1136         * giscanner/sourcescanner.c:
1137         * giscanner/sourcescanner.h:
1138         * giscanner/sourcescanner.py:
1139         * giscanner/transformer.py:
1140         * giscanner/utils.py:
1141         * giscanner/xmlwriter.py:
1142         * COPYING:
1143         Relicense the giscanner library under LGPLv2+.
1144         This has been approved by all contributors.
1145
1146 2008-11-01  Owen Taylor  <otaylor@redhat.com>
1147
1148         Bug 558848 giparser.py: shared library should be optional
1149
1150         When parsing a .gir, allow the shared-library attribute
1151         of <namespace/> to be missing: this corresponds to the handling
1152         in libgirepository and elsewhere.
1153
1154 2008-11-01  Tommi Komulainen  <tommi.komulainen@iki.fi>
1155
1156         Bug 557898 – Fails to build on OSX 10.4
1157
1158         * configure.ac: Check for $shrext_cmds that should be implicitly
1159         available if you're using libtool >= 2.0. If undefined, call
1160         libtool --config explicitly to get its value.
1161         * girepository/gtypelib.c: Remove special case for (non-)Darwin
1162         systems as unneeded.
1163
1164 2008-10-31  Colin Walters  <walters@verbum.org>
1165
1166         * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
1167
1168 2008-10-31  Johan Dahlin  <jdahlin@async.com.br>
1169
1170         * configure.ac: Post release version bump
1171
1172 === 0.6.0 ===
1173 2008-10-31  Johan Dahlin  <jdahlin@async.com.br>
1174
1175         * NEWS:
1176         * configure.ac:
1177         * docs/release-checklist.txt:
1178         0.6.0
1179
1180 2008-10-31  Johan Dahlin  <jdahlin@async.com.br>
1181
1182         * Makefile.am: add an upload-release target
1183         * docs/release-checklist.txt:
1184         Release process documentation
1185
1186 2008-10-31  Colin Walters  <walters@verbum.org>
1187
1188         Bug 558109 – _g_typelib_init fails to find shared libraries
1189
1190         * transformer/glibtransformer.py: Use ctypes' find_library
1191         on passed libraries and write that for the shared-library
1192         entry.  We want to avoid depending on -devel packages.
1193
1194 2008-10-31  Johan Dahlin  <jdahlin@async.com.br>
1195
1196         * docs/g-ir-scanner.1:
1197         Document the renaming options.
1198
1199 2008-10-31  Tommi Komulainen  <tommi.komulainen@iki.fi>
1200
1201         * giscanner/Makefile.am:
1202         * tests/invoke/Makefile.am:
1203         * tests/repository/Makefile.am: List in-tree libraries first in
1204         LDADD / LIBADD. If installed library is listed first, the
1205         resulting binary will prefer installed version to one in .libs,
1206         possibly making 'make check' behave strangely.
1207
1208 2008-10-30  Tommi Komulainen  <tommi.komulainen@iki.fi>
1209
1210         * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
1211         gir-repository from choking with gdk/quartz
1212
1213 2008-10-30  Johan Dahlin  <jdahlin@async.com.br>
1214
1215         * giscanner/giscannermodule.c (calc_attrs_length),
1216         (pygi_collect_attributes):
1217         * giscanner/xmlwriter.py:
1218         Write a C version of the xml namespace formatter.
1219         Saves 15% of the time it takes to create a gtk gir.
1220
1221 2008-10-30  Johan Dahlin  <jdahlin@async.com.br>
1222
1223         * giscanner/xmlwriter.py: Abstract attribute formatting
1224         to a function external to the XMLWriter class.
1225
1226         * giscanner/scannerlexer.l:
1227         Parse and discard __typeof and __attribute.
1228
1229 2008-10-30  Johan Dahlin  <jdahlin@async.com.br>
1230
1231         * giscanner/girparser.py:
1232         Remove arguments from the constructor, move them to
1233         separate accessors. Add a new parse_tree method
1234         which takes an element tree instance.
1235         * tools/g-ir-scanner:
1236         Update callsite for this
1237
1238         * giscanner/Makefile.am:
1239         * giscanner/cachestore.py:
1240         * giscanner/transformer.py:
1241         Cache the include parsing. Saves ~25% time when
1242         creating vte (which includes everything up to gtk+).
1243
1244 2008-10-30  Colin Walters  <walters@verbum.org>
1245
1246         * giscanner/transformer.py: Don't reparse includes
1247         we've already processed.
1248
1249 2008-10-30  Johan Dahlin  <jdahlin@async.com.br>
1250
1251         * giscanner/girparser.py:
1252         * giscanner/transformer.py:
1253         Avoid parsing parameters, types etc when parsing
1254         includes. Should speed up include parsing a bit.
1255
1256 2008-10-30  Johan Dahlin  <jdahlin@async.com.br>
1257
1258         * giscanner/girparser.py:
1259         Avoid big if/else and use a dispatch table like
1260         approach.
1261
1262 2008-10-30  Johan Dahlin  <jdahlin@async.com.br>
1263
1264         * giscanner/transformer.py:
1265         Clean up include parsing and registration.
1266
1267 2008-10-30  Johan Dahlin  <jdahlin@async.com.br>
1268
1269         * giscanner/transformer.py:
1270         Clean up imports
1271
1272 2008-10-30  Johan Dahlin  <jdahlin@async.com.br>
1273
1274         Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
1275
1276         * gir/Makefile.am:
1277         construct PYTHONPATH just once
1278
1279         * tests/everything/Makefile.am:
1280         * tests/scanner/Makefile.am:
1281         add $(top_srcdir) to PYTHONPATH to
1282         handle builddir != srcdir
1283
1284         * giscanner/libtoolimporter.py:
1285         * giscanner/sourcescanner.py:
1286         Make the libtoolimporter work when distchecking too.
1287
1288         Mostly based on patch by Tommi Komulainen
1289
1290 2008-10-29  Owen Taylor  <otaylor@redhat.com>
1291
1292         * giscanner/glibtransformer.py: If a filename of an existing
1293         file is passed to --library, hunt for it directly, rather than
1294         searching for a corresponding library.
1295
1296 2008-10-29  Johan Dahlin  <jdahlin@async.com.br>
1297
1298         * giscanner/libtoolimporter.py:
1299         * giscanner/sourcescanner.py:
1300         Clean up the libtool importer a bit. Add a context so we
1301         can use it through a with statement.
1302         Don't just look in the current directory, look in the whole
1303         sys.path.
1304
1305 2008-10-29  Tommi Komulainen  <tommi.komulainen@iki.fi>
1306
1307         Bug 558065 – gitesttypes should be installed
1308
1309         * configure.ac:
1310         * tests/Makefile.am:
1311         * tests/types/Makefile.am   -> tests/everything/Makefile.am
1312         * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
1313         * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
1314         move tests/types to tests/everything
1315
1316         * tests/everything/Makefile.am: build normal shared library
1317         libgirepository-everything.so.1.0.0 and corresponding typelib
1318         Everything-1.0.typelib
1319
1320         * tests/everything/Makefile.am: explicitly link libtool
1321         versioning with typelib versioning with variables
1322
1323 2008-10-28  Johan Bilien  <jobi@via.ecp.fr>
1324
1325         * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
1326
1327 2008-10-27  Johan Bilien  <jobi@via.ecp.fr>
1328
1329         * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
1330         .defs file
1331
1332 2008-10-27  Johan Bilien  <jobi@via.ecp.fr>
1333
1334         Bug 558068 – when invoking a method, offset the in arguments by one,
1335         not the out
1336
1337         * tests/invoke/invoke.c, tests/invoke/testfns.c,
1338         tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
1339         * girepository/ginvoke.c: do not offset the index of given out
1340         arguments by one for methods, "this" is provided as in argument only.
1341
1342 2008-10-27  Johan Bilien  <jobi@via.ecp.fr>
1343
1344         * gir/gio-2.0.c: add annotation for g_file_delete
1345
1346 2008-10-27  Tommi Komulainen  <tommi.komulainen@iki.fi>
1347
1348         Bug 558062 – provide and use paths in the .pc file
1349
1350         * gobject-introspection-1.0.pc.in: provide typelibdir variable
1351         for where .typelibs should be installed (callers shouldn't need
1352         to construct paths from bits and pieces)
1353
1354 2008-10-25  Andreas Rottmann  <a.rottmann@gmx.at>
1355
1356         Bug 557791 – g_irepository_require() could return a GTypelib *
1357
1358         * girepository/girepository.c: Return GTypelib; this is useful
1359         for low level manipulation.
1360
1361 2008-10-25  Colin Walters  <walters@verbum.org>
1362
1363         Bug 557788 – Return types for constructors in generated typelib bogus
1364
1365         * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
1366         rely on end pass resolution.
1367
1368 2008-10-25  Andreas Rottmann  <a.rottmann@gmx.at>
1369
1370         Bug 557786 - support fixed size arrays
1371
1372         * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
1373         * giscanner/scannerparser.y: Retain fixed array size.
1374         * giscanner/ast.py: Add to note.
1375         * giscanner/girwriter.py: Write to gir.
1376         * girepository/girnode.c: Write it to typelib.
1377         * tools/generate.c: Generate.
1378         * tests/*: Add tests.
1379
1380 2008-10-25  Colin Walters  <walters@verbum.org>
1381
1382         Bug 557076 - move typelibs to $libdir
1383
1384         * configure.ac: Steal some configury bits from dbus to expand
1385         libdir.
1386         * gir/Makefile.am: Move to libdir.
1387         * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
1388         instead just look at one hardcoded path in libdir.
1389         * acinclude.m4: Bits from dbus.
1390
1391 2008-10-24  Johan Dahlin  <johan@gnome.org>
1392
1393         * girepository/girnode.c (g_ir_node_check_unhandled_members):
1394         Be quiet, do not warn about unhandled members.
1395
1396 2008-10-24  Johan Dahlin  <johan@gnome.org>
1397
1398         * girepository/gtypelib.c:
1399         Only use SHLIB_SUFFIX on darwin, otherwise use
1400         G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1401
1402 2008-10-24  Lucas Rocha  <lucasr@gnome.org>
1403
1404         Bug 557623 - Constructors shouldn't be flagged as methods.
1405
1406         * girepository/ginfo.c (g_function_info_get_flags): ditto.
1407
1408 2008-10-24  Johan Dahlin  <johan@gnome.org>
1409
1410         * giscanner/scannerparser.y:
1411         Check against division by zero for the modula operator.
1412         This fixes header parsing of OSX system headers included
1413         by libsoup.
1414
1415 2008-10-24  Johan Dahlin  <johan@gnome.org>
1416
1417         * CONTRIBUTORS:
1418         * Makefile.am:
1419         Add a CONTRIBUTORS file and dist it.
1420
1421 2008-10-23  Tommi Komulainen  <tommi.komulainen@iki.fi>
1422
1423         Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1424
1425         * girepository/girparser.c (parse_param_transfer):
1426         * giscanner/transformer.py (_create_parameter, _create_return):
1427         * giscanner/girwriter.py (_write_return, _write_parameter):
1428         * tools/generate.c (write_callable_info): always write and
1429         require "transfer-ownership" for return-values and parameters
1430
1431         * tests/boxed.gir:
1432         * tests/invoke/testfns-1.0.gir:
1433         * tests/object.gir:
1434         * tests/scanner/DrawableAdditions.xml:
1435         * tests/scanner/GtkFrob-1.0-expected.tgir:
1436         * tests/scanner/annotation-1.0-expected.tgir:
1437         * tests/scanner/drawable-1.0-expected.tgir:
1438         * tests/scanner/drawable-injected-1.0-expected.gir:
1439         * tests/scanner/drawable-injected-1.0-expected.tgir:
1440         * tests/scanner/foo-1.0-expected.tgir: Updated
1441
1442 2008-10-23  Tommi Komulainen  <tommi.komulainen@iki.fi>
1443
1444         * giscanner/cgobject.py: build fundamental types same way as glib
1445
1446         * giscanner/glibtransformer.py (_type_from_gtype): record GType
1447         when constructing the Type from it
1448
1449         * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1450         the parameter is a GObject from its GType, if available.
1451
1452         * giscanner/glibtransformer.py (_adjust_transfer):
1453         * tests/scanner/foo-1.0-expected.gir:
1454         * tests/scanner/foo-1.0-expected.tgir: deduce
1455         transfer-ownership from GTypes
1456
1457 2008-10-23  Tommi Komulainen  <tommi.komulainen@iki.fi>
1458
1459         * giscanner/transformer.py (_create_parameter):
1460         * tests/scanner/foo-1.0-expected.gir: make varargs
1461         transfer-ownership="none"
1462
1463 2008-10-23  Colin Walters  <walters@verbum.org>
1464
1465         Bug 556739 - transfer ownership
1466
1467         * giscanner/ast.py: Refactor Parameter/Return to share
1468         common attributes.  Add transfer_inferred attribute
1469         which says whether or not we made a guess.
1470         * giscanner/transformer.py: Add much more extensive
1471         heuristics around parameter and return transfer.
1472         * giscanner/glibtransformer.py: Adjust to inspect
1473         transfer_inferred.
1474         * tests/*: Adjust.
1475
1476 2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>
1477
1478         Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1479
1480         * tests/scanner/Makefile.am:
1481         * tests/scanner/annotation-1.0-expected.tgir:
1482         * tests/scanner/drawable-1.0-expected.tgir:
1483         * tests/scanner/drawable-injected-1.0-expected.tgir:
1484         * tests/scanner/foo-1.0-expected.tgir:
1485         * tests/scanner/GtkFrob-1.0-expected.tgir:
1486         * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1487         annotations survive the roundtrip via typelib
1488
1489         The expectations are as currently produced by g-ir-generate,
1490         comparison with the .gir files shows there are differences.
1491
1492 2008-10-23  Johan Bilien  <jobi@via.ecp.fr>
1493
1494         Bug 557468 – Support for GI_TYPELIB_PATH
1495
1496         * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1497         provided paths to the global search path.
1498
1499 2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>
1500
1501         Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1502
1503         * tests/scanner/drawable-1.0-expected.tgir:
1504         * tests/scanner/drawable-injected-1.0-expected.tgir:
1505         * tests/scanner/foo-1.0-expected.tgir:
1506         * tools/generate.c (write_object_info): write 'abstract'
1507         attribute for classes
1508
1509 2008-10-22  Lucas Rocha  <lucasr@gnome.org>
1510
1511         * girepository/girmodule.c, girepository/gtypelib.c,
1512         girepository/girparser.[ch]: fix some build warnings.
1513
1514 2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>
1515
1516         Bug 557405 – Use 'allow-none' consistently
1517
1518         * docs/typelib-format.txt:
1519         * girepository/ginfo.c (g_arg_info_may_be_null):
1520         * girepository/girnode.c (g_ir_node_build_typelib):
1521         * girepository/girnode.h (struct _GIrNodeParam):
1522         * girepository/girparser.c (start_parameter):
1523         * girepository/girwriter.c (function_generate):
1524         * girepository/gtypelib.h (ArgBlob):
1525         * tests/errors.gir:
1526         * tests/function.gir:
1527         * tools/generate.c (write_callable_info): Use 'allow-none'
1528         consistently throughout
1529
1530 2008-10-22  Tommi Komulainen  <tommi.komulainen@iki.fi>
1531
1532         Bug 557092 – Callback annotations not used
1533
1534         * giscanner/transformer.py (_create_callback): use annotations
1535         for callbacks
1536         * tests/scanner/annotation.h
1537         * tests/scanner/annotation-1.0-expected.gir: add tests
1538
1539 2008-10-21  Colin Walters  <walters@verbum.org>
1540
1541         * giscanner/scannerlexer.l: Don't require trailing whitespace after
1542         uncommented parameters.
1543         * tests/*: Test it.
1544
1545 2008-10-21  Colin Walters  <walters@verbum.org>
1546
1547         * girepository/girepository.c: Ensure that when doing an unversioned
1548         require, we prefer items earlier in the search path to later ones.
1549
1550 2008-10-21  Owen Taylor  <otaylor@redhat.com>
1551
1552         * giscanner/transformer.py: For string parameters allow transfer annotation
1553         to override the standard automatic guessing based on 'const'.
1554
1555 2008-10-21  Johan Bilien  <jobi@via.ecp.fr>
1556
1557         Bug 557241 – "throws" flag for functions
1558
1559         * tests/scanner/drawable-1.0-expected.gir,
1560         tests/scanner/drawable-injected-1.0-expected.gir,
1561         tests/scanner/drawable.[ch]: add simple test for throwing
1562         function (has GError ** as last argument)
1563
1564         * giscanner/ast.py: add a 'throws' flag to Function
1565         * giscanner/glibtransformer.py: if a function's last paramerter is
1566         a GError, set the 'throws' flag and remove that parameter
1567         * giscanner/girwriter.py: write out the 'throws' attribute
1568         * giscanner/girparser.py: support parsing the 'throws' attribute
1569
1570         * tests/repository/gitestthrows.c: add a simple test to check the
1571         throws flag in a typelib and invoke the function
1572
1573         * girepository/ginfo.c, girepository/girnode.[ch],
1574         girepository/girnode.h, girepository/girparser.c,
1575         girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1576
1577         * girepository/ginvoke.c: if a function throws, add a GError as last
1578         arguments, and propagate the error to the invoker.
1579
1580 2008-10-21  Tommi Komulainen  <tommi.komulainen@iki.fi>
1581
1582         * giscanner/transformer.py (_create_parameters): Warn if we see
1583         annotations for unknown parameters. If .h and .c files name
1584         parameters differently, the annotations may be lost.
1585
1586 2008-10-21  Johan Dahlin  <johan@gnome.org>
1587
1588         Bug 556358 - don't use libtool internals
1589
1590         * giscanner/Makefile.am:
1591         * giscanner/libtoolimporter.py:
1592         * giscanner/sourcescanner.py:
1593         * giscanner/utils.py:
1594         Add a python meta importer and remove a libtool symlink hack.
1595
1596 2008-10-20  Andreas Rottmann  <a.rottmann@gmx.at>
1597
1598         * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1599         and --add-include-path appropriately when invoking the scanner.
1600         * tests/types/Makefile.am (%typelib): Likewise.
1601
1602 2008-10-20  Colin Walters  <walters@verbum.org>
1603
1604         Bug 556777 - validate properties
1605
1606         * giscanner/transformer.py: Add option to throw on unknown types.
1607         * giscanner/glibtransformer.py: Use it on properties.
1608         * tests/*: Add a test.
1609
1610 2008-10-20  Colin Walters  <walters@verbum.org>
1611
1612         * giscanner/glibast.py: Also register g variants of
1613         default_array_types.  This is not beautiful, but
1614         good alternatives aren't easy to come by.
1615         This fixes gchar ** parsing.
1616
1617 2008-10-20  Colin Walters  <walters@verbum.org>
1618
1619         * docs/typelib-format.txt, girepository/gtypelib.h:
1620         Take a bit from ObjectInfo to represent abstract flag.
1621         * giscanner/cgobject.py: Expose g_type_get_flags.
1622         * girepository/girepository.h: Add accessor.
1623         * girepository/ginfo.c: Implement it.
1624         * giscanner/ast.py: Add is_abstract flag to generic
1625         class object.
1626         * giscanner/glibast.py: Use it.
1627         * giscanner/girwriter.py: Write it.
1628         * girepository/girparser.c: Parse it.
1629         * tests/*: Test it.
1630
1631 2008-10-20  Tommi Komulainen  <tommi.komulainen@iki.fi>
1632
1633         * giscanner/girparser.py (_parse_function): don't lose
1634         'transfer-ownership' attributes when injecting, check for the
1635         correct attribute
1636
1637 2008-10-19  Johan Dahlin  <johan@gnome.org>
1638
1639         * giscanner/scannerlexer.l: Parse and ignore __asm.
1640
1641 2008-10-19  Colin Walters  <walters@verbum.org>
1642
1643         * giscanner/girparser.py: Parse array length= to ensure
1644         it doesn't get lost from --inject.
1645
1646 2008-10-17  Colin Walters  <walters@verbum.org>
1647
1648         Bug 556795 - char ** regression
1649
1650         * giscanner/transformer.py: Fix parsing of ctypes, add some
1651         comments about what's going on.
1652         * tests/*: Add a test for char **.
1653
1654 2008-10-17  Colin Walters  <walters@verbum.org>
1655
1656         Bug 556783 - change namespace handling to be more consistent
1657
1658         * giscanner/transformer.py: Eliminate usage of
1659         strip_namespace_object.  We now treat --namespace as the default
1660         --strip-prefix; however, if --strip-prefix is specified it
1661         overrides --namespace.  This applies to everything except function
1662         names, where we do also strip the namespace.
1663         * giscanner/glibtransformer.py: Remove usage of
1664         strip_namespace_object.
1665         * tests/*: Update.
1666         * tests/*: Add skeletal GtkFrob-1.0 test which has different
1667         --namespace and --strip-prefix.
1668
1669 2008-10-17  Tommi Komulainen  <tommi.komulainen@iki.fi>
1670
1671         Bug 556732 – generate gir files consistently
1672
1673         * girepository/girparser.c (start_parameter):
1674         * tests/boxed.gir:
1675         * tests/invoke/testfns-1.0.gir:
1676         * tools/generate.c (write_callable_info): write
1677         'transfer-ownership' attribute consistently with both
1678         return-value and parameter elements
1679
1680 2008-10-17  Tommi Komulainen  <tommi.komulainen@iki.fi>
1681
1682         Bug 556732 – generate gir files consistently
1683
1684         * tools/generate.c (write_callable_info): write 'direction'
1685         attribute only if other than 'in' to be consistent with
1686         girwriter.py
1687         * tests/boxed.gir:
1688         * tests/object.gir: remove direction="in" which is the default
1689
1690 2008-10-17  Tommi Komulainen  <tommi.komulainen@iki.fi>
1691
1692         Bug 556732 – generate gir files consistently
1693
1694         * giscanner/ast.py (Field): add readable and writable properties
1695         * giscanner/girparser.py (_parse_field): copy 'readable' and
1696         'writable' attributes
1697         * giscanner/transformer.py (_create_member): create fields as
1698         read-write
1699         * giscanner/glibtransformer.py (_introspect_object,
1700         _pair_class_struct): make object instance and class fields
1701         read-only
1702         * giscanner/girwriter.py (_write_field):
1703         * tools/generate.c (write_field_info): write field 'readable'
1704         and 'writable' attributes only if non-default (read-only)
1705         * girepository/girparser.c (start_field): in the absence of
1706         attributes assume fields are read-only
1707         * tests/boxed.gir:
1708         * tests/struct.gir: remove redundant readable="1" from fields
1709         * tests/scanner/foo-1.0-expected.gir:
1710         * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1711         all record and union fields
1712
1713 2008-10-17  Tommi Komulainen  <tommi.komulainen@iki.fi>
1714
1715         Bug 556732 – generate gir files consistently
1716
1717         * giscanner/girwriter.py (_write_property): write properties
1718         'construct' attribute if set
1719         * tools/generate.c (write_property_info): write properties
1720         'readable' and 'writable' attributes only if non-default
1721         * tests/object.gir: add writable="0"
1722         * tests/scanner/foo-1.0-expected.gir: add construct="1"
1723
1724 2008-10-17  Johan Bilien  <jobi@via.ecp.fr>
1725
1726         * gir/glib-2.0.c: added annotations
1727
1728 2008-10-16  Johan Bilien  <jobi@via.ecp.fr>
1729
1730         * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1731         arguments
1732
1733 2008-10-16  Johan Bilien  <jobi@via.ecp.fr>
1734
1735         Bug 556610 – giscanner/girparser.py drops parameter options
1736
1737         * tests/scanner/drawable-injected-1.0-expected.gir,
1738         tests/scanner/DrawableAdditions.xml: added simple test for injection.
1739         * giscanner/ast.py: allow Parameter to take options in the constructor
1740         * giscanner/girparser.py: parse parameter options (transfer,
1741         direction, allow-none)
1742
1743 2008-10-16  Colin Walters  <walters@verbum.org>
1744
1745         Bug 556185 - segfault on g_callable_info_get_return_type
1746
1747         Initial patch from John Ehresman.
1748
1749         * tests/repository/*: Add a test using
1750         g_callable_info_get_return_type.  Instead of casting a
1751         GITypeInfo directly to a GIRegisteredTypeInfo, we need
1752         to call g_type_info_get_interface.
1753
1754 2008-10-16  Colin Walters  <walters@verbum.org>
1755
1756         Bug 556579 - union and struct name misresolved
1757
1758         * giscanner/transformer.py: The calls to _resolve_type_name
1759         for struct/union names was a legacy holdover from when type
1760         resolution had multiple phases.  Now it's actively harmful
1761         since we might pull in an identical name from another
1762         namespace.
1763         * tests/*: Update.
1764
1765 2008-10-16  Colin Walters  <walters@verbum.org>
1766
1767         Bug 556432 - transfer annotations and defaults
1768
1769         * giscanner/transformer.py: Canonicalize type
1770         after removing *, not before.  This ensures that
1771         guchar* is transformed to 'uint8'.
1772         Add some comments here.
1773         * giscanner/glibtransformer.py: Add _adjust_transfer
1774         phase for tweaking GObject transfers.
1775         * tests/*: test it.
1776
1777 2008-10-16  Tommi Komulainen  <tommi.komulainen@iki.fi>
1778
1779         * configure.ac: enable bunch of gcc warning CFLAGS
1780
1781 2008-10-16  Tommi Komulainen  <tommi.komulainen@iki.fi>
1782
1783         Bug 556543 – reduce compiler warnings
1784
1785         * girepository/ginfo.c:
1786         * girepository/girepository.c (register_internal,
1787         count_interfaces, find_interface, find_namespace_version,
1788         parse_version, g_irepository_require):
1789         * girepository/girmodule.c (g_ir_module_build_typelib):
1790         * girepository/girnode.c (init_stats, dump_stats,
1791         _g_irnode_init_stats, _g_irnode_dump_stats,
1792         g_ir_node_can_have_member):
1793         * girepository/girparser.c (firstpass_end_element_handler,
1794         locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1795         start_alias, start_type, end_type_top, parse_include, cleanup,
1796         post_filter):
1797         * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1798         * giscanner/giscannermodule.c (directive_get_options,
1799         type_get_child_list):
1800         * giscanner/scannerlexer.l (parse_gtkdoc):
1801         * giscanner/scannerparser.y (ctype_free):
1802         * giscanner/sourcescanner.c:
1803         * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1804         * tests/types/gitesttypes.c:
1805         * tools/compiler.c (main):
1806         * tools/generate.c (write_repository): Remove unused variables
1807         and code, add missing includes, declarations and case
1808         statements.
1809
1810 2008-10-16  Tommi Komulainen  <tommi.komulainen@iki.fi>
1811
1812         Bug 556541 – access union members through UnionBlob rather than
1813         StructBlob
1814
1815         * girepository/ginfo.c (g_union_info_find_method): access union
1816         members through UnionBlob rather than StructBlob
1817
1818 2008-10-15  Colin Walters  <walters@verbum.org>
1819
1820         Bug 556331 - clean up includes handling
1821
1822         * tools/g-ir-scanner: Rework command line arguments; now we take
1823         --add-include-path and --include separately.
1824         * giscanner/girwriter.py: Separate name= and version= in include
1825         directives.
1826         * giscanner/ast.py: Add Include type.
1827         * giscanner/transformer.py: Cleanups to register_include now that
1828         we don't need to handle mixed filenames and relative arguments.
1829         * girepository/girparser.c: Parse name and version separately;
1830         this fixes a bug as a side effect where we weren't resolving
1831         through aliases for basic types.
1832         * girepository/girepository.c: Fix format string args.
1833         * gir/Makefile.am: Update.
1834         * tests/*: Update.
1835
1836 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1837
1838         Bug 556434 – unhandled interface/object/... member types
1839
1840         * girepository/girnode.c (g_ir_node_check_unhandled_members,
1841         g_ir_node_build_typelib): Check all
1842         interface/object/boxed/struct/union members are processed and
1843         abort if they are not. (Mostly callbacks in structs, but also
1844         fields in interfaces.)
1845
1846 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1847
1848         * a/girepository/girnode.c (g_ir_node_build_members,
1849         g_ir_node_build_typelib): refactor common code for processing
1850         members to a function
1851
1852 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1853
1854         * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1855         transformation is lossless (it's not)
1856
1857 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1858
1859         * tests/Makefile.am: fix tests to compare xml to xml instead of
1860         typelib to xml, and stop on error
1861
1862 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1863
1864         * tools/generate.c (write_type_name, write_type_info,
1865         write_type_info, write_object_info, write_object_info,
1866         write_interface_info, write_error_domain_info): reduce code
1867         duplication
1868
1869 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1870
1871         Bug 556174 – parse types for lists etc.
1872
1873         * girepository/girparser.c (end_type_recurse):
1874         * tests/boxed.gir:
1875         * tools/generate.c (write_type_info, write_field_info,
1876         write_callable_info, write_callable_info, write_constant_info,
1877         write_property_info): use nested <type>s for lists and hashes
1878
1879 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1880
1881         * tests/enum.gir:
1882         * tests/object.gir: remove trailing whitespace from inside
1883         elements to match g-ir-generate output
1884
1885 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1886
1887         * tools/generate.c (xml_printf): quote printf arguments so that
1888         we don't generate invalid XML by writing unescaped double quotes
1889         and such in attributes
1890
1891 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1892
1893         * tools/generate.c (write_field_info, write_callable_info,
1894         write_function_info, write_callback_info, write_struct_info,
1895         write_constant_value, write_signal_info, write_vfunc_info,
1896         write_object_info, write_interface_info, write_union_info,
1897         write_repository): remove unused indent parameters, xmlwriter
1898         keeps track of necessary indentation
1899
1900 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1901
1902         * tools/generate.c (xml_element_new, xml_element_free,
1903         xml_start_element, xml_end_element, xml_end_element_unchecked,
1904         xml_open, xml_close): Keep track of generated XML tree and
1905         handle indentation and closing tags properly.
1906         (write_field_info, write_callable_info, write_function_info,
1907         write_callback_info, write_struct_info, write_value_info,
1908         write_constant_info, write_enum_info, write_signal_info,
1909         write_vfunc_info, write_property_info, write_object_info,
1910         write_interface_info, write_error_domain_info, write_union_info,
1911         write_repository): Use xml_start_element and xml_end_element to
1912         open/close tags.
1913
1914 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1915
1916         * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1917         (write_type_name, write_type_info, write_field_info,
1918         write_callable_info, write_function_info, write_callback_info,
1919         write_struct_info, write_value_info, write_constant_value,
1920         write_constant_info, write_enum_info, write_signal_info,
1921         write_vfunc_info, write_property_info, write_object_info,
1922         write_interface_info, write_error_domain_info, write_union_info,
1923         write_repository): wrap all FILE access to go through simple xmlwriter
1924
1925 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
1926
1927         Bug 556400 – Fails to build on OS X 10.4
1928
1929         * configure.ac: check for functions backtrace and backtrace_symbols
1930         * girepository/girparser.c (backtrace_stderr): Comment out
1931         implementation if the functions are not available.
1932         * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1933         directory for better portability
1934
1935 2008-10-15  Johan Bilien  <jobi@via.ecp.fr>
1936
1937         Bug 556433 – assume direction = out for int * parameters
1938
1939         * giscanner/ast.py: define a list of types for which, if passed as
1940         reference, we assume a default direction of 'out'
1941         * giscanner/transformer.py: if a type has type pointer to one of the
1942         previously defined types, and no direction is set, assume out.
1943         * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1944
1945 2008-10-15  Johan Bilien  <jobi@via.ecp.fr>
1946
1947         * tests/scanner/annotation.c: fixed a few copy-paste errors
1948
1949 2008-10-14  Johan Bilien  <jobi@via.ecp.fr>
1950
1951         Bug 556323 – transfer-ownership is wrong for functions returning const
1952         char *
1953
1954         * giscanner/transformer.py: check for a const string as return value,
1955         not just const char*. Suggested by Colin Walters
1956         * tests/scanner/annotation-1.0-expected.gir: updated expected output
1957
1958 2008-10-14  Johan Bilien  <jobi@via.ecp.fr>
1959
1960         * girepository/ginfo.c, girepository/girepository.h: add
1961         g_union_info_find_method
1962
1963 2008-10-14  Colin Walters  <walters@verbum.org>
1964
1965         * tests/repository/Makefile.am: Reenable repo test.
1966         * tests/repository/gitestrepo.c: Prepend search
1967         path for $(top_builddir)/gir dir so that we don't
1968         require installation for "make check" to pass.
1969
1970 2008-10-13  Jürg Billeter  <j@bitron.ch>
1971
1972         * giscanner/glibtransformer.py:
1973         * tests/scanner/annotation-1.0-expected.gir:
1974         * tests/scanner/drawable-1.0-expected.gir:
1975         * tests/scanner/foo-1.0-expected.gir:
1976         * tests/scanner/utility-1.0-expected.gir:
1977
1978         Support fields in GObject structs
1979
1980 2008-10-13  Jürg Billeter  <j@bitron.ch>
1981
1982         * giscanner/ast.py: add signed integer and off_t to type_names
1983
1984 2008-10-12  Jürg Billeter  <j@bitron.ch>
1985
1986         * giscanner/girparser.py: Parse bits attribute of fields
1987
1988 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
1989
1990         * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1991         * tests/repository/gitestrepo.c (main): instantiate
1992         'GCancellable' to ensure the GType is registered before using
1993         g_type_from_name()
1994
1995 2008-10-12  Johan Bilien  <jobi@via.ecp.fr>
1996
1997         * giscanner/girparser.py: actually add the parsed constant nodes
1998
1999 2008-10-12  Colin Walters  <walters@verbum.org>
2000
2001         * girepository/girepository.c: Don't cast DirEntry to Blob,
2002         actually look it up by offset.
2003
2004 2008-10-12  Johan Bilien  <jobi@via.ecp.fr>
2005
2006         * giscanner/girparser.py: parse constant nodes in gir files
2007
2008 2008-10-12  Johan Bilien  <jobi@via.ecp.fr>
2009
2010         * giscanner/transformer.py: prefix for constants have an underscore,
2011         so remove them as if they were functions, not objects.
2012
2013 2008-10-12  Johan Bilien  <jobi@via.ecp.fr>
2014
2015         * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
2016         file
2017
2018 2008-10-12  Colin Walters  <walters@verbum.org>
2019
2020         Initial patch from Jani Monoses.
2021
2022         * girepository/gtypelib.c: Fix inverted test for success
2023         in version parsing.
2024
2025 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
2026
2027         * tools/generate.c (write_callable_info): use "transfer-ownership"
2028         attribute for return values
2029
2030 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
2031
2032         * tools/generate.c (write_callable_info): move "transfer" and
2033         "null-ok" attributes from <function> to <return-value> element
2034
2035 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
2036
2037         * girepository/girparser.c (start_return_value): handle
2038         "transfer-ownership" attribute
2039
2040 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
2041
2042         * girepository/girparser.c (parse_param_transfer):
2043         * tools/generate.c (write_callable_info): use "container" for
2044         container/shallow ownership transfer (not "shallow")
2045
2046 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
2047
2048         * girepository/girparser.c (parse_param_transfer,
2049         start_parameter): Refactor handling of transfer=none/shallow/full
2050         to separate function
2051
2052 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
2053
2054         Bug 556048 – Crash in g_irepository_find_by_gtype
2055
2056         * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
2057         * girepository/girepository.c (find_interface): Fix
2058         find_by_gtype case to get the type name from right offset
2059
2060 2008-10-12  Jürg Billeter  <j@bitron.ch>
2061
2062         * giscanner/girparser.py: Fix parsing transfer-ownership attribute
2063         of <return-value>
2064
2065 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
2066
2067         * girepository/gtypelib.h (RegisteredTypeBlob): make
2068         'unregistered' one bit wide as everywhere else
2069
2070 2008-10-12  Jürg Billeter  <j@bitron.ch>
2071
2072         * giscanner/glibtransformer.py:
2073         * tests/scanner/annotation-1.0-expected.gir:
2074         * tests/scanner/drawable-1.0-expected.gir:
2075         * tests/scanner/drawable.h:
2076         * tests/scanner/foo-1.0-expected.gir:
2077         * tests/scanner/utility-1.0-expected.gir:
2078
2079         Readd class records as workaround to not break Gtk typelib
2080
2081 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
2082
2083         * tests/types/Makefile.am: fix typo in gitesttypes namespace
2084
2085 2008-10-12  Jürg Billeter  <j@bitron.ch>
2086
2087         * giscanner/glibtransformer.py: Don't generate <record> elements
2088         for class structs.
2089         * tests/scanner/*: Update test cases
2090
2091 2008-10-11  Colin Walters  <walters@verbum.org>
2092
2093         Bug 552858: versioning
2094
2095         This is a big patch.  You should probably remove your installation
2096         tree to be cleaner.
2097
2098         * docs/typelib-format.txt: Add nsversion entry which holds
2099         version of namespace.
2100         * girepository/girepository.h: Add 'version' parameter to
2101         g_irepository_require.  This may be NULL.  Normally
2102         bindings should pass an explicit version though.
2103         * girepository/girepository.c: Lots of infrastructure to
2104         support versioning.  Add some more documentation.  Disallow
2105         some usage of NULL namespaces.
2106         * girepository/girmodule.c: Add version parameter.
2107         * girepository/gtypelib.c: Update header size.
2108         * giscanner/ast.py: Add version to Namespace.
2109         * giscanner/girparser.py: Parse version attribute from
2110         XML, pass to Namespace.
2111         * giscanner/girwriter.py: Write out version parameter.
2112         * giscanner/transformer.py: Clean up include registration.
2113         * tests/*: Add version attribute.
2114         * tests/invoke/invoke.c: Don't try looking up test before
2115         it's loaded in repository.
2116         * tools/generate.c: Output version parameter.
2117         * gir/Makefile.am: Add 2.0 version to .gir files.
2118
2119 2008-10-11  Colin Walters  <walters@verbum.org>
2120
2121         * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
2122         if we have mismatched parens.
2123
2124 2008-10-11  Lucas Rocha  <lucasr@gnome.org>
2125
2126         * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
2127         on 'members' variable.
2128
2129 2008-10-11  Colin Walters  <walters@verbum.org>
2130
2131         Bug 555947 - update annotations syntax
2132
2133         * giscanner/ast.py: Default to None for transfer.  Remove
2134         default transfers for container types; we require this to
2135         be specified now.
2136         * giscanner/girwriter.py: Transfer is now 'none', 'container',
2137         'full' to match repository.
2138         * giscanner/scannerlexer.l: Annotations now are parenthesized.
2139         * giscanner/transformer.py: Update for new annotations syntax.
2140         * tests/*: Update.
2141
2142 2008-10-11  Johan Bilien  <jobi@litl.com>
2143
2144         * giscanner/scannerparser.y: ignore non-UTF-8 string constants
2145
2146 2008-10-11  Johan Bilien  <jobi@litl.com>
2147
2148         Bug 552347: Parse #defines constants
2149
2150         * girepository/gtypelib.c: update the list of value_size
2151         with recently defined type tags
2152         * giscanner/scannerparser.y: brought back parsing of #defined, as
2153         present in older version
2154         * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
2155         * giscanner/girwriter.py: write out constant tags in the gir
2156         * giscanner/sourcescanner.py: add accessor for const_string
2157         * giscanner/transformer.py, giscanner/glibtransformer.py: handle
2158         constant
2159
2160 2008-10-11  Tommi Komulainen  <tommi.komulainen@iki.fi>
2161
2162         Bug 555946: Install a test module exercising all types, transfer
2163         rules, etc.
2164
2165         * configure.ac
2166         * tests/Makefile.am
2167         * tests/types/*: Add and install a test module that has functions
2168         accepting and returning most of the basic types to enable bindings
2169         implementors to more easily test their type conversion routines.
2170
2171 2008-10-11  Jürg Billeter  <j@bitron.ch>
2172
2173         Bug 552374: Const strings should be identified in the gir.
2174
2175         * giscanner/transformer.py: support string memory management
2176         * tests/scanner/foo.h: use char * and const char *
2177         * tests/scanner/foo-expected.gir: test that
2178
2179 2008-10-11  Johan Dahlin  <johan@gnome.org>
2180
2181         * giscanner/girparser.py:
2182         Also parse enums which are not glib types.
2183
2184 2008-10-11  Lucas Rocha  <lucasr@gnome.org>
2185
2186         Bug 552370: add one more test for unsigned as a type, not as
2187         a type qualifier.
2188
2189         * giscanner/ast.py: add 'uint' type name for 'unsigned'.
2190         * test/scanner/foo.h: add function which uses unsigned as a type.
2191         * test/scanner/foo-expected.gir: test that.
2192
2193 2008-10-11  Andreas Rottmann  <a.rottmann@gmx.at>
2194
2195         Bug 555712: Struct and union issues
2196
2197         * giscanner/scannerparser.y (struct_declarator): Use information
2198         provided about the bit width of a field.
2199         * giscanner/transformer.py (Transformer._create_member): Pass the
2200         symbol's const_int member to the created field (it represents the
2201         bit width).
2202         * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
2203         field attribute, if present.
2204         * giscanner/ast.py (Field): Add 'bits' member, specifying the
2205         width in bits of the field (only relevant for bitfields).
2206         * tests/*: Updated.
2207
2208         * giscanner/transformer.py (Transformer._create_typedef_struct)
2209         (Transformer._create_typedef_union): Add calls to _create_struct()
2210         and _create_union(), respectively. This causes the scanner to
2211         generate output for fields of struct and union typedefs.
2212         * tests/*: Updated.
2213
2214 2008-10-11  Jürg Billeter  <j@bitron.ch>
2215
2216         Bug 552370: unsigned not scanned properly
2217
2218         * giscanner/scannerparser.y: combine basic types such as unsigned
2219         int and long long when scanning
2220         * tests/scanner/foo-expected.gir:
2221         * tests/scanner/foo.c: (foo_test_unsigned):
2222         * tests/scanner/foo.h: test that
2223
2224 2008-10-11  Lucas Rocha  <lucasr@gnome.org>
2225
2226         Bug 554854: The --typelib-xml and --inject options should reuse
2227         giscanner parser/writer.
2228
2229         * giscanner/ast.py: add constructor list to Struct and Union.
2230         Add new param in Return's contructor to define transfer.
2231         * giscanner/girparser.py: several additions to the parser in order
2232         to have parsing all nodes of the gir xml files.
2233         * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
2234         and writer in --inject and --typelib-xml options.
2235         * giscanner/xmlwriter.py: ignore empty attributes instead of
2236         raising an error as this basically exposes a bug in GIRParser.
2237         This should be reverted as soon as the parser is fixed.
2238
2239 2008-10-11  Lucas Rocha  <lucasr@gnome.org>
2240
2241         Bug 552376: scanner generates wrong names for enum members when
2242         there's no defined gtype.
2243
2244         * giscanner/utils.py (strip_common_prefix): Always strip common
2245         prefix exactly up to the last "_", and not beyond.
2246         * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
2247         here is that the first character after the last '_' should should be
2248         the same as the character in the same position on the type name.
2249         * tests/scanner/foo-expected.gir: test that
2250
2251 2008-10-10  Lucas Rocha  <lucasr@gnome.org>
2252
2253         Bug 555293: append library_paths to LPATH env variable to work
2254         around a bug in find_library when using ldconfig.
2255
2256         * tools/g-ir-scanner (main): ditto.
2257
2258 2008-10-09  Lucas Rocha  <lucasr@gnome.org>
2259
2260         * girepository/girepository.c (register_internal): fix regression on
2261         invoke test case by making sure we load the global module in the
2262         typelib when dealing with inline typelibs.
2263         * girepository/gtypelib.c: a couple of coding style fixes.
2264
2265 2008-10-06  Lucas Rocha  <lucasr@gnome.org>
2266
2267         Bug 555294: Add support for multiple shared libraries per typelib.
2268
2269         * girepository/ginvoke.c (g_function_info_invoke),
2270         girepository/ginfo.c(g_registered_type_info_get_g_type): use
2271         g_typelib_symbol instead of g_module_symbol.
2272         * girepository/girepository.h: remove g_typelib_set_module and add
2273         g_typelib_symbol.
2274         * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
2275         g_typelib_new_from_memory, g_typelib_new_from_const_memory,
2276         g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
2277         modules instead of just one. The symbol lookup is now abstracted
2278         behind g_typelib_symbol which tries to find the passed symbol name in
2279         one of its modules.
2280         * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
2281         and write shared_library attribute as a comma-separated list of libs.
2282
2283 2008-10-06  Colin Walters  <walters@verbum.org>
2284
2285         * giscanner/transformer.py: Parse length= annotation as
2286         a parameter name, not a raw int.
2287         * tests/*: Update.
2288
2289 2008-10-03  Colin Walters  <walters@verbum.org>
2290
2291         Bug 551744: Non-GObject types aren't aggregating ctors and methods
2292
2293         * girepository/gtypelib.c: Allow ctors/methods on struct,union,
2294         and boxed.
2295         * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
2296         registered type.
2297         * tests/*: Extend.
2298
2299 2008-10-03  Colin Walters  <walters@verbum.org>
2300
2301         Bug 554576: scan problem with ev_selection_render_selection()
2302
2303         * giscanner/transformer.py: Only do type resolution once we've
2304         scanned all types.  What could happen before is that we'd strip
2305         the namespace from local type "EvSelection" => Selection, and
2306         then later pull a "Selection" from some other namespace because
2307         we hadn't yet seen the local EvSelection.  This could come
2308         down to hash table ordering and other things so not easy
2309         to write a test for.
2310
2311 2008-10-03  Lucas Rocha  <lucasr@gnome.org>
2312
2313         * giscanner/girwriter.py (_parser_member): fix the last parameter of
2314         GLibEnumMember constructor as it should be the enum member nick.
2315
2316 2008-10-02  Colin Walters  <walters@verbum.org>
2317
2318         Bug 552961: remove this parameter for methods
2319
2320         * giscanner/glibtransformer.py: Delete this parameter; it is
2321         redundant.
2322         * girepository/ginvoke.c: Insert this parameter for methods.
2323         * girepository/gtypelib.c: Remove no longer needed verification of
2324         method this parameter.
2325         * tests/*: Update.
2326
2327 2008-09-30  Dan Winship  <danw@gnome.org>
2328
2329         Bug 554490: g-ir-scanner gets confused by '\\'
2330
2331         * giscanner/scannerlexer.l (chartext, stringtext): fix use of
2332         backslashes so it will correctly parse '\\' and "\\"
2333
2334         * tests/scanner/annotation.c: add a use of '\\' to make sure that
2335         this stays fixed
2336
2337         * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
2338
2339 2008-10-02  Colin Walters  <walters@verbum.org>
2340
2341         bug 552393: Note variadic functions
2342
2343         * giscanner/scannerparser.y: Parse ellipsis.  Refactor grammar
2344         to use parameter_list directly.
2345         * giscanner/sourcescanner.h: Add ellipsis csymbol type.
2346         * giscanner/ast.py: Add Varargs type.
2347         * giscanner/transformer.py: Check for ellipsis symbol, transform
2348         to varargs type.
2349         * girepository/girnode.h: Add varargs flag to in-memory nodes.
2350         Parse varargs functions, but filter them out before we start
2351         compiling the typelib.
2352
2353 2008-10-02  Colin Walters  <walters@verbum.org>
2354
2355         Bug 554632: type tag for GType
2356
2357         * girepository/girepository.h, girepository/girepository.c:
2358         Add type tag for GType - it's a special type we don't want
2359         to resolve to just "long".
2360         * docs/typelib-format.txt: Update.
2361         * girepository/girparser.c: Parse it.
2362         * giscanner/glibtransformer.py: Ensure we don't put GType in
2363         the GObject.gir.
2364         * tools/generate.c: Remove hardcoded type list.
2365         * test/* update.
2366
2367 2008-09-30  Dan Winship  <danw@gnome.org>
2368
2369         Bug 554521: scanner generates wrong names for enum members with
2370         full type name prefix
2371
2372         * giscanner/utils.py (strip_common_prefix): Fix this to strip the
2373         right amount when the entire "first" string is a prefix of
2374         "second"
2375
2376         * tests/scanner/foo.h (FooEnumFullname):
2377         * tests/scanner/foo-expected.gir: test that
2378
2379 2008-09-29  Colin Walters  <walters@verbum.org>
2380
2381         Bug 552380: Array parameters should be marked in the gir
2382
2383         * giscanner/ast.py: Default char** to utf8[], and guchar* to
2384         uint8[].  Add Array, List, and Map subclasses of Type;
2385         these types can be generic.  Return transfer defaults
2386         to true if return value is string or container type.
2387         Delete Sequence type.
2388         * giscanner/scannerlexer.l: Syntax change for annotations;
2389         use <> since it's more readable.
2390         * giscanner/girwriter.py: Write out these changes.
2391         * giscanner/girparser.py: Parse them.
2392         * giscanner/transformer.py: Have a defined set of
2393         both list and map types.  When creating a type,
2394         check if the ctype we've parsed is one of them,
2395         if so create a container type subclass as appropriate.
2396         * girepository/girparser.c: Parse in generic types.
2397         * tests/*: Update.
2398
2399 2008-09-27  Colin Walters  <walters@verbum.org>
2400
2401         * tools/g-ir-scanner: Add --inject option.
2402
2403 2008-09-25  Colin Walters  <walters@verbum.org>
2404
2405         Remove non-repository types from GIR
2406
2407         * giscanner/ast.py: The canonical name is 'utf8', not
2408         'string'.
2409         * giscanner/glibast.py: A few more glib type mappings.
2410         * girepository/girparser.c: We only parse repository types.
2411         * tests/*.gir: Update.
2412
2413 2008-09-23  Colin Walters  <walters@verbum.org>
2414
2415         Bug 552566: Add time_t type
2416
2417         We need a type for time_t since it's special in C, and just
2418         mapping it to long precluded bindings from handling it
2419         in a nice way.
2420
2421 2008-09-19  Colin Walters  <walters@verbum.org>
2422
2423     Bug 552390: Handle capitialization like "DBus" more robustly
2424
2425     The to_underscores function was designed for use against prefixed
2426     names; we need a separate function which will convert names like
2427     DBusFoo into dbus_foo, not d_bus_foo.
2428
2429 2008-09-19  Colin Walters  <walters@verbum.org>
2430
2431     Add check to make sure we're not hitting out unresolved types
2432
2433     Validate the "this" argument for methods
2434
2435     Remove heuristic matching of methods to classes based on prefix
2436
2437     It was a broken hack that dated from when we handled underscoring
2438     and capitalization conventions less well.
2439
2440 2008-09-18  Colin Walters  <walters@verbum.org>
2441
2442     Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2443
2444     On Darwin, the suffix for installed shared libraries (.dylib) is
2445     different from loadable modules (.so).  We use a bit of magic shell
2446     script from Behdad Esfahbod to figure out the right suffix.
2447
2448 2008-09-15  Johan Dahlin  <johan@gnome.org>
2449
2450         * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2451         a wrapper for type_qualifier as well.
2452
2453 2008-09-15  Colin Walters  <walters@verbum.org>
2454
2455         http://bugzilla.gnome.org/show_bug.cgi?id=552065
2456
2457         * giscanner/ast.py: Add deprecation attributes.
2458         * giscanner/girwriter.py: Write out deprecation data.
2459         * girepository/girparser.c: Relax parsing; deprecated
2460         attribute now includes freeform string.
2461         * giscanner/scannerlexer.l: Parse Deprecated.
2462         * giscanner/transformer.py: Look for deprecated attribute
2463         on functions.
2464         * tests/scanner/*: Add a Deprecated test.
2465
2466 2008-09-14  Tor Lillqvist  <tml@novell.com>
2467
2468         * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2469
2470 2008-09-14  Colin Walters  <walters@verbum.org>
2471
2472         * giscanner/glibtransformer.py: Ignore functions with
2473         leading _.
2474
2475 2008-09-12  Colin Walters  <walters@verbum.org>
2476
2477         * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2478
2479 2008-09-12  Colin Walters  <walters@verbum.org>
2480
2481         * giscanner/ast.py: Bind pid_t to INT for vte.
2482
2483 2008-09-12  Colin Walters  <walters@verbum.org>
2484
2485         * giscanner/girparser.py: Parse c:type for boxed records/unions.
2486         * giscanner/glibast.py: Avoid overwriting ctype.
2487         * giscsanner/transformer.py: Try resolving types using the GType names.
2488
2489 2008-09-12  Colin Walters  <walters@verbum.org>
2490
2491         * giscanner/minixpath.py: Code to run an "XPath"
2492         assertion against an XML tree, taken from
2493         gir-repository/gir/tests.py.
2494         * giscanner/Makefile.am: Ship it.
2495         * tools/g-ir-scanner: Add --xpath-assertions option.
2496         * gir/GLib-assertions.txt: Add a few assertions.
2497         * gir/Makefile.am: Run them.
2498
2499 2008-09-11  Colin Walters  <walters@verbum.org>
2500
2501         http://bugzilla.gnome.org/show_bug.cgi?id=551737
2502
2503         * giscanner/transformer.py: Fix strip_namespace_func to only strip
2504         prefix if it ends with _.  Tweak callback stripping to determine
2505         based on presence of _ whether we need to use strip_namespace_func
2506         or strip_namespace_object.
2507
2508 2008-09-09  Owen Taylor  <otaylor@redhat.com>
2509
2510         * docs/typelib-format.txt: Wether => Whether
2511
2512 2008-09-08  Colin Walters  <walters@verbum.org>
2513
2514         * girepository/girparser.c: Default to "readable" for properties.
2515         * giscanner/ast.py: Add readable, writable etc.
2516         * giscanner/girwriter.py: Writ them.
2517         * giscanner/glibtransformer.py: Inspect them.
2518         * tests/*: Update.
2519
2520 2008-09-07  Colin Walters  <walters@verbum.org>
2521
2522         * giscanner/cgobject.py: Add comment.
2523
2524 2008-09-07  Colin Walters  <walters@verbum.org>
2525
2526         * giscanner/cgobject.py: Also call g_thread_init.
2527
2528 2008-09-07  Colin Walters  <walters@verbum.org>
2529
2530         * giscanner/transformer.py: Fix regression by not
2531         stripping prefix before stripping namespace for unions
2532         either.
2533
2534 2008-09-06  Colin Walters  <walters@verbum.org>
2535
2536         * giscanner/transformer.py: If a namespace contains
2537         multiple caps, try stripping both gnomekeyring_ and
2538         gnome_keyring_.
2539
2540 2008-09-07  Johan Dahlin  <johan@gnome.org>
2541
2542         Bug 551162 – giscanner does not recognize asm and __asm__
2543         * giscanner/scannerlexer.l:
2544         Patch by Jani Monoses.
2545
2546 2008-09-06  Colin Walters  <walters@verbum.org>
2547
2548         * girepository/girnode.c: Allow gtype_name
2549         and gtype_init in struct and union.
2550         * girepository/girparser.c: Parse glib:
2551         boxed bits for both structure and union.
2552         * girepository/gtypelib.c: Don't barf
2553         if structure is boxed.
2554         * giscanner/girparser.py: Parse new XML
2555         format.
2556         * giscanner/girwriter.py: Write out new
2557         XML format.
2558         * giscanner/glibast.py: Define new classes
2559         which are both Boxed and Struct/Union, as
2560         well as an "Other" for everything else.
2561         * giscanner/glibtransformer.py: Handle
2562         boxed types specially; we try to merge
2563         them with a struct/union if one exists,
2564         otherwise fall back to generic boxed.
2565         * tests/*: Update.
2566         * tools/generate.c: Write out new format.
2567
2568 2008-09-06  Johan Dahlin  <johan@gnome.org>
2569
2570         * giscanner/grealpath.h: Include stdlib.h
2571
2572         * docs/g-ir-generate.1: Remove leading %
2573
2574 2008-09-01  Colin Walters  <walters@verbum.org>
2575
2576         * girepository/girparser.c: Look at c:type to determine
2577         whether or not an item is a pointer.
2578
2579 2008-09-01  Johan Dahlin  <johan@gnome.org>
2580
2581         * tests/scanner/Makefile.am:
2582         Set PYTHONPATH so the scanner can run
2583         even if you didn't install anything.
2584
2585 2008-09-01  Johan Dahlin  <johan@gnome.org>
2586
2587         * configure.ac:
2588         Post-release version bump
2589
2590 === 0.5.0 ===
2591 2008-09-01  Johan Dahlin  <johan@gnome.org>
2592
2593         * NEWS: Update
2594
2595 2008-08-31  Colin Walters  <walters@verbum.org>
2596
2597         * giscanner/glibtransformer.py: Quiet info
2598         prints for now.
2599
2600 2008-08-31  Johan Dahlin  <johan@gnome.org>
2601
2602         * configure.ac:
2603         Bump version to 0.5.0
2604
2605 2008-08-31  Colin Walters  <walters@verbum.org>
2606
2607         * giscanner/glibtransformer.py: Follow aliases to ensure
2608         we don't get a constructor returning a basic type.
2609         * giscanner/transformer.py: Add function to follow aliases.
2610         * tests/ Update.
2611
2612 2008-08-31  Johan Dahlin  <johan@gnome.org>
2613
2614         * giscanner/scannerlexer.l:
2615         * giscanner/scannerparser.y:
2616         * giscanner/sourcescanner.h:
2617         * giscanner/sourcescanner.py:
2618         Parse GCC extensions in the parser instead of just undeffing them
2619         in the pre-processor.
2620
2621 2008-08-31  Johan Dahlin  <johan@gnome.org>
2622
2623         * giscanner/glibtransformer.py:
2624         Clean up a huge if. Do not add methods or constructors
2625         to enums/flags.
2626         * giscanner/utils.py:
2627         second might be longer than first, check that.
2628
2629 2008-08-31  Johan Dahlin  <johan@gnome.org>
2630
2631         * gir/Makefile.am:
2632         Add a GModule.gir
2633
2634 2008-08-31  Colin Walters  <walters@verbum.org>
2635
2636         * girepository/girparser.c: Don't lose if we
2637         have no includedirs
2638
2639 2008-08-31  Colin Walters  <walters@verbum.org>
2640
2641         * giscanner/glibtransformer.py: Look for libtool
2642         library in current directory
2643         * tests/scanner - Update.
2644
2645 2008-08-30  Colin Walters  <walters@verbum.org>
2646
2647         * docs/typelib-format.txt: Add a guint32
2648         for dependencies.
2649         * gir/Makefile.am: Dep on Makefile
2650         * girepository/ginfo.c:
2651         * girepository/girepository.c: Clean up
2652         default typelib handling; remove global
2653         default_typelib variable.  Ensure we handle
2654         NULL repository in more places.
2655         Support dependency resolution.
2656         Support lazy loading.
2657         * girepository/girepository.h: Remove
2658         g_irepository_unregister; we don't support
2659         unloading typelibs since really they're
2660         process-global.  Update for lazy loading
2661         API.
2662         * girepository/girmodule.c: Use g_new0.
2663         Add dependencies to GirModule.
2664         * girepository/girparser.c: Parse dependencies.
2665         * girepository/gtypelib.c: Add 4 bytes for
2666         dependencies.
2667         * tests/Makefile.am: Kill off gobject.gir,
2668         it conflicts with the real one.
2669         * tests/object.gir: Dep on GObject.
2670         * tools/generate.c: Take --includedir
2671         argument to say which directories to search
2672         for typelibs.  Print out dependencies.
2673
2674 2008-08-30  Colin Walters  <walters@verbum.org>
2675
2676         * giscanner/glibtransformer.py: Reduce warning noise.
2677
2678 2008-08-29  Colin Walters  <walters@verbum.org>
2679
2680         * girepository/ginfo.c: Add some assertions regarding
2681         refcounts, just to be sure.
2682         * giscanner/glibtransformer.py: Blacklist a few more
2683         odd Gio methods.
2684
2685 2008-08-29  Colin Walters  <walters@verbum.org>
2686
2687         * giscanner/glibtransformer.py: Blacklist a few
2688         functions that use GError oddly
2689
2690 2008-08-29  Colin Walters  <walters@verbum.org>
2691
2692         * girepository/gtypelib.c: Don't crash if no
2693         shlib is embedded
2694
2695 2008-08-29  Colin Walters  <walters@verbum.org>
2696
2697         * girepository/girparser.c: Handle chains of aliases
2698         across modules by ensuring we fully qualify aliases
2699         from includes.
2700
2701 2008-08-29  Colin Walters  <walters@verbum.org>
2702
2703         * girepository/girparser.c: Don't search aliases
2704         for basic types.
2705
2706 2008-08-29  Colin Walters  <walters@verbum.org>
2707
2708         * girepository/girparser.c: Rewrite type parsing
2709         to handle both GLib parsing case as well as correctly
2710         handling GLib.List and friends.  Don't try to treat
2711         e.g. ListStore as a List.
2712
2713 2008-08-29  Colin Walters  <walters@verbum.org>
2714
2715         * girepository/gtypelib.c: Add more context
2716         during validate.
2717
2718 2008-08-29  Colin Walters  <walters@verbum.org>
2719
2720         * giscanner/glibtransformer.py: Add some informative
2721         logging messages in corner cases.  Be sure we use
2722         the most recent node set instead of a cache
2723         when generating result set.
2724         * tests/: Remove duplicated bits in expected girs
2725         * girepository/girparser.c: Accept both List (for
2726         compiling GLib) and GLib.List (what the scanner
2727         generates).
2728         * tests/ - Update.
2729         * tools/generate.c: Generate canonical form.
2730
2731 2008-08-29  Johan Dahlin  <johan@gnome.org>
2732
2733         * giscanner/config.py.in:
2734         Use datarootdir instead of datadir to avoid
2735         an autoconf warning.
2736
2737 2008-08-29  Johan Dahlin  <johan@gnome.org>
2738
2739         * README:
2740         * TODO:
2741         * examples/gdk-pixbuf.gidl:
2742         * libffi.pc.in:
2743         Update and remove old cruft.
2744
2745 2008-08-29  Johan Dahlin  <johan@gnome.org>
2746
2747         * Makefile.am:
2748         * docs/g-ir-compiler.1:
2749         * docs/g-ir-generate.1:
2750         * docs/g-ir-scanner.1:
2751         Add man pages for the generator and compiler.
2752
2753 2008-08-29  Johan Dahlin  <johan@gnome.org>
2754
2755         * docs/g-ir-scanner.1: Document
2756
2757         * giscanner/Makefile.am:
2758         * giscanner/gidlparser.py:
2759         * giscanner/gidlwriter.py:
2760         * tools/g-ir-scanner:
2761         Remove gidl support.
2762
2763 2008-08-28  Colin Walters  <walters@verbum.org>
2764
2765         * tests/scanner/Makefile.am: Pass the right
2766         --includedir args.  Add a Makefile dep.
2767         * tools/compiler.c: Pass includedirs down.
2768         * girepository/girparser.c: Actually put
2769         includedirs in context, pass down.  Fix
2770         locate_gir.
2771
2772 2008-08-28  Colin Walters  <walters@verbum.org>
2773
2774         * gir/Makefile.am: Use --includedir
2775         * girepository/girparser.c: Recursively parse
2776         includes to pull in aliases and expand them.
2777         We need this to avoid putting unknown names in
2778         the typelibs.
2779         * tools/compiler.c: Add --includedir option.
2780         * giscanner/ast.py: Map size/ssize to types
2781         too.
2782
2783 2008-08-28  Tor Lillqvist  <tml@novell.com>
2784
2785         Make check now runs successfully on Windows.
2786
2787         * tools/compiler.c (write_out_typelib): Use binary mode for output
2788         file on Windows.
2789
2790         * girepository/girnode.c: Don't print NULL strings.
2791
2792         * tests/invoke/Makefile.am
2793         * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2794         convince libtool to build shared libraries.
2795
2796         * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2797         g_assert() instead of printing out expected errors.
2798
2799 2008-08-28  Tor Lillqvist  <tml@novell.com>
2800
2801         * girepository/gtypelib.h: Change type of bitfield fields from
2802         guint to the most suitable smaller type. This makes the struct
2803         sizes match the ones on Linux that the sanity check expects when
2804         using gcc -mms-bitfields on Windows.
2805
2806 2008-08-28  Johan Dahlin  <johan@gnome.org>
2807
2808         * Makefile.am:
2809         * configure.ac:
2810         * gir/Makefile.am:
2811         * giscanner/Makefile.am:
2812         * tests/Makefile.am:
2813         * tests/scanner/Makefile.am:
2814         Make distcheck pass.
2815
2816 2008-08-27  Johan Dahlin  <johan@gnome.org>
2817
2818         * giscanner/Makefile.am:
2819         Only send in -no-undefined on Win32 as it breaks on MacOS X.
2820
2821 2008-08-27  Tor Lillqvist  <tml@novell.com>
2822
2823         Make g-ir-scanner work on Windows. Still problems with the typelib
2824         code. Changes okayed by jdahlin.
2825
2826         * configure.ac: Check for Windows, set Automake conditional
2827         OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2828         avoid shell quoting issues
2829         
2830         * girepository/Makefile.am: Use -no-undefined so that libtool
2831         agrees to build a shared library on Windows.
2832
2833         * girepository/girparser.c (backtrace_stderr): No backtrace() on
2834         Windows. Empty implementation on Windows so far.
2835
2836         * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2837         informative error message for the assertion failures. Tell also
2838         what the expected size of the struct is. Check all sizes first and
2839         fail afterwards if at least one size was different from expected.
2840
2841         * tools/Makefile.am: Reorder libraries into proper logical
2842         dependency order.
2843
2844         * tools/generate.c: Don't include <dlfcn.h>, not used.
2845
2846         * giscanner/Makefile.am: On Windows, link with the Python library,
2847         and install the module DLL as _giscanner.pyd. Remove the
2848         unnecessary import library and libtool library that libtool has
2849         installed.
2850
2851         * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2852         and just skip it. Recognize also two "l" suffixes for long long
2853         constants. Recognize also __inline__.
2854
2855         * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2856         GetFullPathName(). As such, GetFullPathName() does more than the
2857         UNIX realpath(). It also changes relative paths into absolute
2858         paths. But for our purposes that shouldn't matter.
2859
2860         * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2861         Windows the file descriptor passed to us is from Python. Python
2862         Python2.5 uses the msvcr71.dll C library, while mingw-built code
2863         uses msvcrt.dll. On Windows, file descriptors are specific to
2864         which C library is used. So we must find out what underlying OS
2865         handle corresponds to the file descriptor Python passes us, and
2866         then make that into a file descriptor valid for the C library this
2867         code uses.
2868
2869         * giscanner/sourcescanner.py (_parse): Don't need to bypass
2870         __attribute__ as the lexer now handles it. The definition as empty
2871         was ineffective for mingw anyway, as mingw's _mingw.h undefines
2872         __attribute__. Close the temp file before unlinking it.
2873
2874         * giscanner/cgobject.py: Use correct library name for the gobject
2875         DLL on Windows.
2876
2877         * gir/Makefile.am: Must pass the full basename of the DLLs on
2878         Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2879         that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2880         reality they won't change, until there is a GLib 3, and then also
2881         the Unix code here needs changing.
2882
2883         Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2884         libintl.h is found.
2885
2886 2008-08-26  Colin Walters  <walters@verbum.org>
2887
2888         * girepository/girepository.c: Search
2889         $DATADIR/girepository instead of
2890         $DATADIR/gitypelibs; this naming makes
2891         it clearer that e.g. jgir can install
2892         .jars there.
2893         * gir/Makefile.am: Install there.
2894
2895 2008-08-26  Colin Walters  <walters@verbum.org>
2896
2897         * girepository/gtypelib.c (_g_typelib_init): Also
2898         use G_MODULE_SUFFIX instead of hardcoding .so.
2899
2900 2008-08-26  Colin Walters  <walters@verbum.org>
2901
2902         * girepository/gtypelib.c (_g_typelib_init): Free
2903         string in the right place.
2904
2905 2008-08-26  Colin Walters  <walters@verbum.org>
2906
2907         * girepository/gtypelib.c (_g_typelib_init): Handle
2908         both .la and .so names; this works better in the
2909         uninstalled library case.
2910
2911 2008-08-26  Johan Dahlin  <johan@gnome.org>
2912
2913         * gir/Makefile.am:
2914         * giscanner/Makefile.am:
2915         * giscanner/cgobject.py:
2916         * giscanner/config.py.in:
2917         * giscanner/sourcescanner.py:
2918         Avoid undeffing __GNUC__, instead define
2919         __attribute__ & friends. Remove glibconfig.h hack.
2920         This makes gobject-introspection work better on
2921         MacOS X, Thanks to Richard Hult for kind help.
2922
2923 2008-08-25  Colin Walters  <walters@verbum.org>
2924
2925         * giscanner/glibtransformer.py: Always print
2926         statistics.
2927
2928 2008-08-25  Colin Walters  <walters@verbum.org>
2929
2930         * giscanner/glibtransformer.py: Skip over
2931         interfaces we don't know.
2932
2933 2008-08-25  Colin Walters  <walters@verbum.org>
2934
2935         * girepository/girparser.c: Parse new implements
2936         syntax, drop gapi one.
2937         * tests/object.gir: Update.
2938         * tools/generate.c: Generate new syntax.
2939
2940 2008-08-25  Colin Walters  <walters@verbum.org>
2941
2942         * giscanner/ast.py: Add interfaces property
2943         to class.
2944         * giscanner/girwriter.py: Write out implemented
2945         interfaces.
2946         * giscanner/glibtransformer.py: Introspect
2947         implemented interfaces.
2948         * tests/scanner/*: Make FooObject implement
2949         FooInterface.
2950
2951 2008-08-25  Colin Walters  <walters@verbum.org>
2952
2953         * giscanner/glibtransformer.py: More correctly pair
2954         methods; if we have a symbol that starts with
2955         e.g. hippo_canvas look for a matching HippoCanvas
2956         class before accepting e.g. HippoCanvasImage.
2957
2958 2008-08-24  Colin Walters  <walters@verbum.org>
2959
2960         * tools/g-ir-scanner: Filter out unknown options from
2961         pkg-config files.
2962
2963 2008-08-24  Colin Walters  <walters@verbum.org>
2964
2965         * giscanner/glibtransformer.py: Fail with better
2966         error if we can't find library.
2967
2968 2008-08-24  Colin Walters  <walters@verbum.org>
2969
2970         * tools/g-ir-scanner: Use subprocess instead of
2971         commands, works on Windows and avoids the evil
2972         shell on Unix.
2973
2974 2008-08-24  Colin Walters  <walters@verbum.org>
2975
2976         * giscanner/glibtransformer.py: Skip over
2977         g_object_get_type from GLib trunk.
2978
2979 2008-08-24  Colin Walters  <walters@verbum.org>
2980
2981         * girepository/girepository.c (g_irepository_require): 
2982         Don't open shared library here; we already do it
2983         in gtypelib.c.
2984
2985 2008-08-24  Colin Walters  <walters@verbum.org>
2986
2987         * girepository/gtypelib.c: Add context stack so
2988         when we get an error we can print out nicely
2989         where it is.
2990
2991 2008-08-24  Johan Dahlin  <johan@gnome.org>
2992
2993         * girepository/girparser.c (start_glib_boxed), (start_function),
2994         (start_field), (start_alias):
2995         Refactor a couple of parsing functions to be simpler to follow.
2996         Avoid huge ifs.
2997
2998 2008-08-24  Johan Dahlin  <johan@gnome.org>
2999
3000         * girepository/girparser.c (start_function):
3001         Remove left-over code, checking type of function.
3002
3003 2008-08-23  Colin Walters  <walters@verbum.org>
3004
3005         * giscanner/config.py: Define DATADIR.
3006         * giscanner/transformer.py: Look in DATADIR.
3007
3008 2008-08-23  Colin Walters  <walters@verbum.org>
3009
3010         * girepository/gtypelib.c: Check constructor
3011         returns.
3012         * girepository/girnode.c: Small tweaks.
3013         * girepository/ginfo.c: Calculate signature offsets
3014         more robustly.
3015         * girepository/girparser.c: Remove duplicate
3016         start_boxed.
3017         * giscanner/glibtransformer.py: Avoid marking
3018         functions which return a basic type as
3019         constructors.
3020
3021 2008-08-23  Colin Walters  <walters@verbum.org>
3022
3023         * girepository/girparser.c: Ignore <include>.
3024         * giscanner/girparser.py: Parse them.
3025         * giscanner/girwriter.py: Generate them.
3026         * giscanner/transformer.py: Process <include>
3027         recursively.  Don't require full path for
3028         includes, look in {$XDG_DATA_DIRS}/gir.
3029         * tools/g-ir-scanner: Pass through includes.
3030         * Makefile.am: Remove extra --include
3031         args for scanner.
3032         * *-expected.gir: Add expected includes.
3033
3034 2008-08-23  Johan Dahlin  <johan@gnome.org>
3035
3036         * tests/scanner/Makefile.am:
3037         * tests/scanner/annotation-expected.gir:
3038         * tests/scanner/drawable-expected.gir:
3039         Avoid duplication in the Makefile, regenerate with new
3040         namespaces (same as the filename)
3041
3042 2008-08-22  Colin Walters  <walters@verbum.org>
3043
3044         * girepository/girnode.c: Don't hardcode integers,
3045         use GITypeTag.
3046
3047 2008-08-22  Johan Dahlin  <johan@gnome.org>
3048
3049         * giscanner/sourcescanner.py:
3050         Check for ../gobject-introspection-1.0.pc.in to determine
3051         if we run installed or uninstalled.
3052
3053 2008-08-22  Johan Dahlin  <johan@gnome.org>
3054
3055         * gir/Makefile.am:
3056         * giscanner/sourcescanner.py:
3057         Send in undefs/defines via writing it directly to stdin
3058         of cpp instead of via arguments.
3059
3060 2008-08-22  Colin Walters  <walters@verbum.org>
3061
3062         * tools/generate.c, tools/compiler.c: Default
3063         to --raw.
3064         * all Makefile.am: Update.
3065
3066 2008-08-22  Colin Walters  <walters@verbum.org>
3067
3068         * girepository/girparser.c: Pass through
3069         recursive types.  Avoid overwriting errors.
3070         * giscanner/xmlwriter.py: Always write the
3071         XML header.
3072         * tests/*.gir: Adjust.
3073         * tests/scanner/Makefile.am: Build typelibs,
3074         and generate XML from those.  Once we
3075         have a good diff mechanism...
3076         * tests/scanner/*-expected.gir: Add XML
3077         header.
3078         * tools/g-ir-scanner: Accept --typelib-xml
3079         option.
3080         * tools/generate.c: Better defaults for transfer.
3081
3082 2008-08-22  Johan Dahlin  <johan@gnome.org>
3083
3084         * configure.ac:
3085         * gir/Makefile.am:
3086         * giscanner/Makefile.am:
3087         * giscanner/config.py.in:
3088         * giscanner/sourcescanner.py:
3089         Use the generated glibconfig.h for all scanner invokations.
3090         Rename it to glibconfig-scanner.h and install it.
3091         Add a config.py which so far contains the include dir.
3092
3093 2008-08-22  Johan Dahlin  <johan@gnome.org>
3094
3095         * gir/Makefile.am:
3096         Replace glibconfig.h with our own, do some replacement
3097         for CPP/C features we do not support
3098
3099 2008-08-22  Colin Walters  <walters@verbum.org>
3100
3101         * tools/generate.c (write_callable_info): Fix unref
3102         sequence.
3103
3104 2008-08-22  Colin Walters  <walters@verbum.org>
3105
3106         * gobject-introspection-1.0.pc.in: Add g-ir-generate.
3107         * tests/Makefile.am: Support $(DEBUG)
3108         * tools/generate.c: Do immediate close tags if no
3109         sub-elements.
3110
3111 2008-08-21  Colin Walters  <walters@verbum.org>
3112
3113         * tests/scanner/drawable-expected.gir,
3114         * tests/scanner/drawable.c,
3115         * tests/scanner/drawable.h:
3116         Add a method.
3117
3118 2008-08-21  Colin Walters  <walters@verbum.org>
3119
3120         * giscanner/glibtransformer.py: Compute prefix
3121         by searching through the symbol for bits
3122         rather than going directly from ctype; this fixes
3123         webkit_ namespace.
3124
3125 2008-08-21  Colin Walters  <walters@verbum.org>
3126
3127         * giscanner/glibtransformer.py: Also try squashing
3128         underscores from namespace, fixes webkit_web_view_new.
3129
3130 2008-08-21  Colin Walters  <walters@verbum.org>
3131
3132         * giscanner/glibtransformer.py: More ctor work,
3133         avoid having gtk_window_group_new end up under
3134         GtkWindow.
3135
3136 2008-08-21  Colin Walters  <walters@verbum.org>
3137
3138         * giscanner/glibtransformer.py: Much simpler approach
3139         of mapping uscored names to classes.
3140         * giscanner/utils.py: Remove unnecessary function.
3141
3142 2008-08-21  Johan Dahlin  <johan@gnome.org>
3143
3144         * girepository/girepository.c (g_irepository_require):
3145         Plug memory leak and avoid using freed memory.
3146         Resolve the whole module path, here as well.
3147
3148 2008-08-21  Colin Walters  <walters@verbum.org>
3149
3150         * giscanner/glibtransformer.py: Look up all permutations
3151         of class names when scanning methods/ctors based on
3152         the prefix instead of using the return value.  This
3153         associates gtk_window_new with the right class.
3154
3155 2008-08-21  Colin Walters  <walters@verbum.org>
3156
3157         * girepository/girmodule.c (g_ir_module_build_typelib): 
3158         Revert change to increment header_size; we do that in
3159         write_string.
3160
3161 2008-08-21  Colin Walters  <walters@verbum.org>
3162
3163         * girepository/girnode.c (write_string): Tweak to
3164         use UINT instead of INT.  Not likely to matter.
3165         * girepository/girmodule.c (g_ir_module_build_typelib):
3166         Add to header_offset as well for header strings
3167         to match what write_string does.
3168         * girepository/gtypelib.c: Replace is_name with
3169         validate_name, which more strongly validates and
3170         handles errors in a better way.  Update all callers.
3171         * giscanner/glibtransformer.py: Handle constructors
3172         better.
3173
3174 2008-08-21  Johan Dahlin  <johan@gnome.org>
3175
3176         * gir/Makefile.am (typelibs_DATA): Build and 
3177         install the Gio.typelib too
3178
3179         * girepository/gtypelib.c (_g_typelib_init):
3180         Use g_module_build_path to resolve the shlib name
3181
3182 2008-08-21  Colin Walters  <walters@verbum.org>
3183
3184         * gir/Makefile.am: CLEANFILES typelibs too.
3185
3186 2008-08-21  Johan Dahlin  <johan@gnome.org>
3187
3188         * giscanner/glibtransformer.py:
3189         Do not send .la files through find_library.
3190
3191 2008-08-21  Colin Walters  <walters@verbum.org>
3192
3193         * girepository/girparser.c (g_irepository_require):
3194         Fix one small leak in error case.
3195
3196 2008-08-21  Johan Dahlin  <johan@gnome.org>
3197
3198         * gir/Makefile.am:
3199         Parse glibconfig.h as well and install the compiled
3200         typelib
3201
3202 2008-08-21  Johan Dahlin  <johan@gnome.org>
3203
3204         * gir/Makefile.am:
3205         * giscanner/glibtransformer.py:
3206         * tools/g-ir-scanner:
3207         Do not hard-core library names in the Makefile, reuse
3208         ctypes find_library instead.
3209
3210 2008-08-21  Johan Dahlin  <johan@gnome.org>
3211
3212         * girepository/girparser.c (resolve_aliases):
3213         Remove compilation warnings
3214
3215 2008-08-21  Johan Dahlin  <johan@gnome.org>
3216
3217         * girepository/girepository.c (g_irepository_require):
3218         Rewrap and fix double free bug by leaking a bit.
3219
3220 2008-08-20  Colin Walters  <walters@verbum.org>
3221
3222         * girepository/girepository.c: Add new function
3223         g_irepository_get_typelib_path which tells
3224         us from where we loaded a namespace.
3225
3226 2008-08-20  Colin Walters  <walters@verbum.org>
3227
3228         * tests/scanner/*-expected.gir: Adjust for
3229         added shared-library.
3230         * giscanner/giwriter.py: Make pylint happy.
3231
3232 2008-08-20  Colin Walters  <walters@verbum.org>
3233
3234         * girepository/girmodule.c (g_ir_module_build_typelib):
3235         Calculate size correctly, avoid use-after-free.
3236
3237 2008-08-20  Colin Walters  <walters@verbum.org>
3238
3239         * girepository/girepository.c: Remove
3240         g_irepository_register_file in favor of
3241         g_irepository_require.  There are two
3242         possible deployment scenarios for typelibs:
3243         First, separate in $DATADIR/gitypelibs/.  Second,
3244         they may be embedded in shlibs.  However since
3245         the first is now the normal case, the API is
3246         optimized around it.
3247
3248         Refactor internals to look up typelibs for
3249         namespaces just-in-time, but we expect
3250         consumers to call g_irepository_require.
3251
3252         Also, add some docs.  No one has died from that
3253         before.
3254         * gir/Makefile.am: Need --library for glib.
3255         * giscanner/girwriter.py: Write out shared-library.
3256         * tools/g-ir-writer: Take the first --library
3257         argument as the target of shared-library.  In
3258         the future we should make this nicer with pkg-config
3259         probably.
3260
3261 2008-08-20  Colin Walters  <walters@verbum.org>
3262
3263         * girepository/girparser.py: And parse them.
3264
3265 2008-08-20  Johan Dahlin  <johan@gnome.org>
3266
3267         * giscanner/glibast.py: Add gshort/gushort types
3268
3269 2008-08-20  Colin Walters  <walters@verbum.org>
3270
3271         * gir/Makefile.am: Rename .gir files using GI namespace.
3272         * girepository/girepository.c: Use XDG_DATA_DIRS for
3273         looking up typelibs.  Also typelibs are now suffixed
3274         with .typelib.
3275         * tests/invoke/Makefile.am: Only use metadata.
3276         * girepository/Makefile.am: Remove unnecessary include.
3277         * tests/scanner/Makefile.am: Update using GI namespaces
3278         for scanner includes.
3279
3280 2008-08-20  Colin Walters  <walters@verbum.org>
3281
3282         * girepository/transformer.py: Suppress aliases whose
3283         name is a builtin.
3284         * girepository/ast.py: Define some more aliases.
3285
3286 2008-08-20  Colin Walters  <walters@verbum.org>
3287
3288         * girepository/girparser.c: Avoid alias infloops.
3289
3290 2008-08-20  Colin Walters  <walters@verbum.org>
3291
3292         * tests/scanner/foo-expected.gir: Fix expected list type.
3293
3294 2008-08-20  Johan Dahlin  <johan@gnome.org>
3295
3296         * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name): 
3297         Add a workaround for #548689.
3298         We can now compile gtk!
3299
3300 2008-08-20  Colin Walters  <walters@verbum.org>
3301
3302         * giscanner/glibtransformer.py: Try to look up
3303         aliases using the c:type too.
3304
3305 2008-08-20  Colin Walters  <walters@verbum.org>
3306
3307         * girepository/girparser.c: Parse union fields.
3308
3309 2008-08-20  Johan Dahlin  <johan@gnome.org>
3310
3311         * giscanner/ast.py: Make time_t an alias for long
3312
3313         * gir/gio-2.0-good.gir:
3314         * gir/glib-2.0-good.gir:
3315         * gir/gobject-2.0-good.gir:
3316         Regnerate
3317         * giscanner/glibtransformer.py:
3318         Do not delete Class structures, we need them in gdk/gtk.
3319         * tests/scanner/drawable-expected.gir:
3320         * tests/scanner/foo-expected.gir:
3321         * tests/scanner/utility-expected.gir:
3322         Update tests.
3323
3324 2008-08-20  Johan Dahlin  <johan@gnome.org>
3325
3326         * tests/scanner/Makefile.am:
3327         * tests/scanner/annotation-expected.gir:
3328         * tests/scanner/annotation.c (annotation_object_class_init),
3329         (annotation_object_init), (annotation_object_method),
3330         (annotation_object_in), (annotation_object_out),
3331         (annotation_object_inout), (annotation_object_inout2),
3332         (annotation_object_inout3), (annotation_object_calleeowns),
3333         (annotation_object_calleesowns), (annotation_object_get_strings),
3334         (annotation_object_with_voidp), (annotation_object_get_objects),
3335         (annotation_object_create_object), (annotation_object_allow_none):
3336         * tests/scanner/annotation.h:
3337         * tests/scanner/foo-expected.gir:
3338         * tests/scanner/foo.c:
3339         * tests/scanner/foo.h:
3340         Split out annotation tests out of foo
3341
3342 2008-08-20  Johan Dahlin  <johan@gnome.org>
3343
3344         * tests/scanner/Foo-expected.gir:
3345         * tests/scanner/Makefile.am:
3346         * tests/scanner/foo-expected.gir:
3347         * tests/scanner/foo-object.h:
3348         * tests/scanner/foo.c:
3349         Foo->foo, foo-object.h -> foo.h
3350
3351 2008-08-20  Johan Dahlin  <johan@gnome.org>
3352
3353         * tests/scanner/Foo-expected.gir:
3354         * tests/scanner/Makefile.am:
3355         * tests/scanner/drawable-expected.gir:
3356         * tests/scanner/drawable.c (test_drawable_class_init),
3357         (test_drawable_init):
3358         * tests/scanner/drawable.h:
3359         * tests/scanner/foo-object.h:
3360         * tests/scanner/foo.c (foo_boxed_method):
3361         Move the drawable parts out of Foo to its own test.
3362
3363 2008-08-20  Johan Dahlin  <johan@gnome.org>
3364
3365         * tests/scanner/Foo-expected.gir:
3366         * tests/scanner/foo-object.h:
3367         * tests/scanner/foo.c (foo_drawable_class_init),
3368         (foo_drawable_init):
3369         Add a based on GdkDrawable which generates
3370         a broken gir.
3371
3372 2008-08-19  Colin Walters  <walters@verbum.org>
3373
3374         * giscanner/transformer.py: Don't try
3375         to strip prefix before namespace.
3376
3377 2008-08-19  Johan Dahlin  <johan@gnome.org>
3378
3379         * giscanner/transformer.py:
3380         * tests/scanner/Foo-expected.gir:
3381         * tests/scanner/foo-object.h:
3382         Add support for typedef void foo type of
3383         aliases.
3384
3385 2008-08-19  Johan Dahlin  <johan@gnome.org>
3386
3387         * giscanner/ast.py:
3388         * giscanner/girwriter.py:
3389         * giscanner/glibtransformer.py:
3390         * giscanner/transformer.py:
3391         * tests/scanner/Foo-expected.gir:
3392         Add basic support for union, base the code much
3393         on Struct. Add a testcase.
3394
3395 2008-08-19  Johan Dahlin  <johan@gnome.org>
3396
3397         * tests/scanner/Foo-expected.gir:
3398         * tests/scanner/foo-object.h:
3399         Add a union testcase which the compiler currently
3400         barfs at.
3401
3402 2008-08-19  Johan Dahlin  <johan@gnome.org>
3403
3404         * gobject-introspection-1.0.pc.in:
3405         Add a g_ir_compiler variable
3406
3407 2008-08-19  Colin Walters  <walters@verbum.org>
3408
3409         * giscanner/ast.py: Rework types to be more closely
3410         based on GITypeTag.
3411         * giscanner/girparser.py: Parse more bits.
3412         * giscanner/girwriter.py: Write sequences in a new
3413         way that specifies container type.
3414         * giscanner/glibast.py: Adjust for ast.py changes,
3415         add 'ctype' property to GLibObject and GLibInterface
3416         so we can look things up by it later.
3417         * gicanner/transformer.py: Names is new class holding
3418         the various namespaces we manage.  Do not confuse
3419         with Namespace which is toplevel XML node effectively.
3420         Rework all type resolution to go through
3421         _resolve_type_name_1.
3422         * giscanner/glibtransformer.py: Raise UnknownTypeError
3423         instead of ValueError for cleanliness.  Add Unresolved
3424         class to mark types whose parent we haven't seen yet.
3425         Use new Names object from transformer.py.
3426         Correctly look up parent=.
3427         Fix type validation to handle sequences.
3428         * tests/scanner/Foo-expected.gir: Update for sequence
3429         work, int instead of int32.
3430         * tools/g-ir-scanner: Add --noclosure option
3431         * gir/Makefile.am: Use --noclosure by default for
3432         GLib/GObject.
3433
3434 2008-08-18  Johan Dahlin  <johan@gnome.org>
3435
3436         * gir/gio-2.0-good.gir:
3437         * gir/glib-2.0-good.gir:
3438         * gir/gobject-2.0-good.gir:
3439         Regenerate.
3440
3441 2008-08-18  Johan Dahlin  <johan@gnome.org>
3442
3443         * giscanner/ast.py:
3444         * giscanner/girparser.py:
3445         * giscanner/girwriter.py:
3446         * giscanner/glibast.py:
3447         * giscanner/glibtransformer.py:
3448         * giscanner/transformer.py:
3449         * tests/scanner/Foo-expected.gir:
3450         * tests/scanner/foo-object.h:
3451         * tests/scanner/utility-expected.gir:
3452         * tests/scanner/utility.h:
3453         Redo type resolving and validation.
3454         Add a couple of new tests.
3455         Patch mostly written by Colin.
3456
3457 2008-08-18  Johan Dahlin  <johan@gnome.org>
3458
3459         * gir/Makefile.am:
3460         * giscanner/girparser.py:
3461         Set ctype of enums
3462         * giscanner/transformer.py:
3463         Improve enum parsing for enums without a GType.
3464         Make flags/enum references to other girs work
3465         * giscanner/utils.py:
3466         Simplify this a bit
3467         * tests/scanner/Makefile.am:
3468         * tests/scanner/foo-object.h:
3469         * tests/scanner/utility-expected.gir:
3470         * tests/scanner/utility.h:
3471         Add a new test for external enum references
3472
3473 2008-08-18  Johan Dahlin  <johan@gnome.org>
3474
3475         * docs/global-module-registry.txt: Update
3476
3477         * tests/array.gir: Update with new type proposal
3478
3479         * girepository/girepository.c (g_type_tag_to_string):
3480         * girepository/girepository.h:
3481         * girepository/girnode.c (g_ir_node_get_full_size_internal),
3482         (find_entry_node):
3483         * girepository/girnode.h:
3484         Make enum serializing functions public. Clean up some whitespace.
3485
3486 2008-08-17  Johan Dahlin  <johan@gnome.org>
3487
3488         * docs/global-module-registry.txt:
3489         Add a document for an on disk module registry format
3490
3491 2008-08-17  Johan Dahlin  <johan@gnome.org>
3492
3493         * gir/Makefile.am:
3494         * gir/gio-2.0-good.gir:
3495         Add a gio gir.
3496
3497 2008-08-17  Johan Dahlin  <johan@gnome.org>
3498
3499         * gir/Makefile.am:
3500         * gir/glib-2.0-good.gir:
3501         * gir/gobject-2.0-good.gir:
3502         * giscanner/cgobject.py:
3503         * giscanner/glibtransformer.py:
3504         Regenerate GObject & GType.
3505         Avoid warnings when generating gobject-2.0.gir.
3506         Introspect a little more, and skip *_get_type functions.
3507
3508 2008-08-17  Colin Walters  <walters@verbum.org>
3509
3510         * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3511         Rename to -good, always generate during build.
3512         * gir/Makefile.am: Ensure .gir files dep on
3513         all scanner sources.
3514         * Makefile.am: Switch build order to ensure
3515         the scanner is ready before we do gir/.
3516         * tools/g-ir-scanner: Look for .git too.
3517
3518 2008-08-17  Johan Dahlin  <johan@gnome.org>
3519
3520         * girepository/gtypelib.c (validate_enum_blob):
3521         * giscanner/glibtransformer.py:
3522         * giscanner/transformer.py:
3523         Remove resolve_possible_typedefs, it was unused.
3524         Allow multiple enum values of the sample value in an enum,
3525         since it's actually pretty common.
3526         Register enums so they can be resolved too.
3527
3528 2008-08-16  Johan Dahlin  <johan@gnome.org>
3529
3530         * giscanner/girparser.py:
3531         Parse enumeration/bitfield.
3532
3533 2008-08-16  Johan Dahlin  <johan@gnome.org>
3534
3535         * giscanner/girparser.py:
3536         Parse boxed types.
3537
3538 2008-08-16  Johan Dahlin  <johan@gnome.org>
3539
3540         * giscanner/glibtransformer.py:
3541         Resolve type names for alias targets
3542         * giscanner/transformer.py:
3543         Skip FILE* parameters fow now
3544
3545 2008-08-16  Johan Dahlin  <johan@gnome.org>
3546
3547         * gir/glib-2.0.gir:
3548         * gir/gobject-2.0.gir:
3549         Regenerate
3550
3551         * tests/scanner/Makefile.am:
3552         parser -> scanner
3553
3554 2008-08-15  Colin Walters  <walters@verbum.org>
3555
3556         * giscanner/glibtransformer.py: Explicitly construct
3557         new list, since we're deleting as we iterate.
3558         Don't delete all structures which end in Class; just
3559         ones which have a paired GObject.
3560         Fix printing of type warning.
3561         * giscanner/transformer.py: Make strip_namespace_object
3562         be the identity function if it doesn't match the 
3563         namespace.
3564
3565 2008-08-15  Colin Walters  <walters@verbum.org>
3566
3567         * giscanner/cgobject.py: Define yet more argument
3568         prototypes; fix prototype for g_type_fundamental.
3569
3570 2008-08-14  Johan Dahlin  <johan@gnome.org>
3571
3572         * tests/Makefile.am:
3573         * tests/constant.gir:
3574         * tests/gobject.gir:
3575         * tests/struct.gir:
3576         * tools/generate.c (write_struct_info):
3577         Fix generator for constant/gobject/struct
3578
3579 2008-08-14  Johan Dahlin  <johan@gnome.org>
3580
3581         * tests/Makefile.am:
3582         * tests/enum.gir:
3583         * tools/generate.c (write_enum_info):
3584         Fix generation of enum/bitfields
3585
3586 2008-08-14  Johan Dahlin  <johan@gnome.org>
3587
3588         * girepository/girparser.c (start_field), (start_constant),
3589         (start_type), (end_element_handler):
3590         Clear up constant parsing
3591
3592         * tests/object.gir:
3593         Update
3594
3595         * tools/generate.c (write_callable_info), (write_function_info),
3596         (write_callback_info), (write_constant_info), (write_signal_info),
3597         (write_vfunc_info), (write_property_info), (write_object_info),
3598         (write_interface_info):
3599         Constants/Signals are handled now.
3600
3601 2008-08-14  Johan Dahlin  <johan@gnome.org>
3602
3603         * girepository/girparser.c (start_type):
3604         Don't require c:type.
3605         * tests/Makefile.am:
3606         Test boxed.gir
3607         * tests/boxed.gir:
3608         Update, remove parts we don't support yet
3609         * tests/roundtrips.sh:
3610         Remove
3611         * tools/generate.c (write_type_info), (write_field_info),
3612         (write_callable_info), (write_struct_info):
3613         Make it emit proper gir.
3614
3615 2008-08-14  Johan Dahlin  <johan@gnome.org>
3616
3617         * giscanner/transformer.py:
3618         New internal function for adding a new node.
3619
3620 2008-08-14  Johan Dahlin  <johan@gnome.org>
3621
3622         * gir/Makefile.am:
3623         Define an internal _H_ variable so we skip parsing both
3624         i18n headers, only one is needed.
3625         * gir/glib-2.0.gir:
3626         Add the glib-2.0.gir too.
3627         * giscanner/glibast.py:
3628         Add gconstpointer as an alias for ANY
3629         * giscanner/transformer.py:
3630         Do not lower case enumeration names per se.
3631         Skip functions which has parameters called 'va_list'
3632
3633 2008-08-14  Colin Walters  <walters@verbum.org>
3634
3635         * giscanner/transformer.py: Comment data structures.
3636         Also squash pointers in resolve_type_name to correspond
3637         with what we do for params.
3638         * giscanner/glibtransformer.py: Print warnings in more
3639         situations.  Rework checks for method/constructor to
3640         look up in our GType database instead of just checking
3641         for *.   Avoid generating <record> for GObject which
3642         duplicate the <class>.
3643         * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3644         in here.
3645
3646 2008-08-14  Johan Dahlin  <johan@gnome.org>
3647
3648         * giscanner/girwriter.py:
3649         * giscanner/glibast.py:
3650         * giscanner/glibtransformer.py:
3651         * giscanner/transformer.py:
3652         * misc/pyflakes.py:
3653         * tests/Makefile.am:
3654         Add pyflakes.py and run it in make check.
3655         Update the source code to fix the errors reported by
3656         pyflakes.
3657
3658 2008-08-14  Johan Dahlin  <johan@gnome.org>
3659
3660         * giscanner/ast.py:
3661         * giscanner/girparser.py:
3662         * giscanner/glibast.py:
3663         * giscanner/glibtransformer.py:
3664         Refactor the parser a bit.
3665         Add parent type to interfaces and update callsites.
3666
3667 2008-08-14  Johan Dahlin  <johan@gnome.org>
3668
3669         * giscanner/glibtransformer.py:
3670         * giscanner/utils.py:
3671         Refactor a bit, avoid isinstance and add a method
3672         for each type we parse.
3673
3674 2008-08-14  Johan Dahlin  <johan@gnome.org>
3675
3676         * giscanner/ast.py:
3677         * giscanner/girparser.py:
3678         * giscanner/glibtransformer.py:
3679         * tests/Makefile.am:
3680         Run pep8.py in make check, fix old errors.
3681
3682 2008-08-13  Colin Walters  <walters@verbum.org>
3683
3684         * giscanner/girparser.py: Parse records.
3685
3686 2008-08-13  Colin Walters  <walters@verbum.org>
3687
3688         * gir/Makefile.am: Install again.
3689         * gir/gobject-2.0.gir: Add some more bits.
3690
3691 2008-08-13  Colin Walters  <walters@verbum.org>
3692
3693         * gir/gobject-2.0.gir: Use correct namespace, add GType.
3694         * giscanner/girparser.py: Handle aliases.
3695         * giscanner/transformer.py: Record aliases.  Make resolver
3696         functions public; we now call into these explicitly from
3697         glibtransformer.  Handle resolving aliases.
3698         * giscanner/glibtransformer.py: Separate our internal namespace
3699         from included ones.  Call up into transformer's resolver functions.
3700
3701 2008-08-13  Johan Dahlin  <johan@gnome.org>
3702
3703         * girepository/girnode.c (g_ir_node_get_full_size_internal):
3704         * girepository/girparser.c (start_class):
3705         * giscanner/glibtransformer.py:
3706         Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3707
3708 2008-08-13  Johan Dahlin  <johan@gnome.org>
3709
3710         * giscanner/cgobject.py:
3711         Register GInitiallyUnowned
3712         * giscanner/girwriter.py:
3713         * giscanner/glibtransformer.py:
3714         Special case GObject/GInitially owned as they are a bit special to use.
3715
3716 2008-08-13  Colin Walters  <walters@verbum.org>
3717
3718         * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3719         Object is in GObject namespace.
3720
3721 2008-08-13  Colin Walters  <walters@verbum.org>
3722
3723         * giscanner/girparser.py: Fix processing of functions
3724         from last commit.
3725
3726 2008-08-13  Colin Walters  <walters@verbum.org>
3727
3728         * giscanner/girparser.py: Parse more than just <class.
3729         * giscanner/glibtransformer.py: Put aliases in a separate
3730         data structure since their name is not canonicall.
3731         * giscanner/transformer.py: Handle resolving type names
3732         from includes.
3733
3734 2008-08-13  Johan Dahlin  <johan@gnome.org>
3735
3736         * tools/g-ir-scanner:
3737         Allow multiple libraries
3738         * giscanner/glibtransformer.py:
3739         Rename load_library to add_library, traverse over all libraries
3740         when trying to resolve a function
3741
3742 2008-08-12  Colin Walters  <walters@verbum.org>
3743
3744         * giscanner/transformer.py: Record typedefs as <alias> elements.
3745           Also attempt to look up types in external namespaces.
3746         * giscanner/girwriter.py: Write them.
3747         * giscanner/glibtransformer.py: Rework resolver using real instanceof
3748         checks.  Resolve interface methods and properties.
3749         * tests/scanner/foo-object.h: Add a method with typedef.
3750         * tests/scanner/Foo-expected.gir: Update.
3751         * girepository/girnode.c: Debug tweaks.
3752         * girepository/girparser.c: Make a first pass through the XML where we
3753         record all the aliases.  This lets us resolve them as we go through the
3754         second pass.
3755         * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3756         from gir-repository.
3757
3758 2008-08-12  Colin Walters  <walters@verbum.org>
3759
3760         * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3761         Correctly do subclasseing in 2nd pass resolution.  Handle callbacks in structure
3762         fields.
3763         * giscanner/transformer.py: Record typedefs and expose public API for resolving
3764         them.
3765         * tests/scanner/Foo-expected.gir: Fix expected callback types.
3766
3767 2008-08-12  Colin Walters  <walters@verbum.org>
3768
3769         * giscanner/glibtransformer.py: Also transform object properties.
3770
3771 2008-08-12  Colin Walters  <walters@verbum.org>
3772
3773         * giscanner/glibtransformer.py: Also transform callbacks
3774         and structure field types.
3775         * tests/scanner/Fooe-expected.gir: Update to expect correct
3776         names for callbacks and structs.
3777
3778 2008-08-12  Colin Walters  <walters@verbum.org>
3779
3780         * girepository/girparser.c: Handle 'any'.
3781         * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3782         Add test for void *.
3783
3784 2008-08-12  Colin Walters  <walters@verbum.org>
3785
3786         * giscanner/glibtransformer.py: We need to do type
3787         resolution in a second pass after we've seen all the
3788         enums, records, etc.
3789
3790 2008-08-12  Colin Walters  <walters@verbum.org>
3791
3792         * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3793         Add enum return value.
3794         * giscanner/glibtransformer.py: Transform function return types
3795         too.
3796
3797 2008-08-12  Colin Walters  <walters@verbum.org>
3798
3799         * tests/scanner/Makefile.am: Dep .gir files on scanner
3800         sources too.  Also remove @ so we see scanner invocations.
3801
3802 2008-08-12  Colin Walters  <walters@verbum.org>
3803
3804         * girepository/girparser.c, girepository/gtypelib.c,
3805         girepository/gtypelib.h, girepository/girnode.c:
3806         Remove usage of (GAPI-oriented) TypeTag in favor of
3807         GITypeTag from girepository.h.
3808
3809 2008-08-10  Colin Walters  <walters@verbum.org>
3810
3811         * tests/roundtrips.sh: Use the correct tests.
3812
3813 2008-08-10  Colin Walters  <walters@verbum.org>
3814
3815         * giscanner/cgobject.py: Declare/wrap a few more functions.
3816         Fix parameter types for g_object_new and g_type_fundamental.
3817
3818 2008-08-10  Colin Walters  <walters@verbum.org>
3819
3820         * giscanner/cgobject.py: Add new decorator @gwrap which forces
3821         us to declare types for both return value and parameters.  The
3822         ctypes default of 'int' is bad because it hides 32/64 bit
3823         problems.  Convert all existing functions to use it.
3824
3825 2008-08-09  Johan Dahlin  <johan@gnome.org>
3826
3827         * giscanner/__init__.py:
3828         * giscanner/ast.py:
3829         * giscanner/cgobject.py:
3830         * giscanner/gidlparser.py:
3831         * giscanner/gidlwriter.py:
3832         * giscanner/girparser.py:
3833         * giscanner/girwriter.py:
3834         * giscanner/glibast.py:
3835         * giscanner/glibtransformer.py:
3836         * giscanner/odict.py:
3837         * giscanner/sourcescanner.py:
3838         * giscanner/transformer.py:
3839         * giscanner/utils.py:
3840         * giscanner/xmlwriter.py:
3841         * tools/g-ir-scanner:
3842
3843         PEP8ify
3844
3845 2008-08-09  Johan Dahlin  <johan@gnome.org>
3846
3847         * relaxng/api.xml:
3848         * relaxng/c-types.xml:
3849         * relaxng/g-types.xml:
3850         * relaxng/relaxng.rng:
3851         * relaxng/util.xml:
3852         Remove outdated relaxng schemas.
3853
3854 2008-08-09  Johan Dahlin  <johan@gnome.org>
3855
3856         * *.[ch]:
3857         Rename metadata to typelib in variable names,
3858         comments and apis.
3859
3860 2008-08-09  Johan Dahlin  <johan@gnome.org>
3861
3862         * tools/scanner.c:
3863         * tools/scanner.h:
3864         Remove old C scanner, which got rewritten in python.
3865
3866 2008-08-09  Johan Dahlin  <johan@gnome.org>
3867
3868         * girepository/Makefile.am:
3869         * tools/Makefile.am:
3870         * tools/girmodule.c:
3871         * tools/girmodule.h:
3872         * tools/girnode.c:
3873         * tools/girnode.h:
3874         * tools/girparser.c:
3875         * tools/girparser.h:
3876         * tools/girwriter.c:
3877         * tools/girwriter.h:
3878         Move shared *.[ch] files to girepository from tools
3879
3880 2008-08-09  Johan Dahlin  <johan@gnome.org>
3881
3882         * tests/Makefile.am:
3883         * tests/array.test:
3884         * tests/boxed.test:
3885         * tests/constant.test:
3886         * tests/enum.test:
3887         * tests/errors.test:
3888         * tests/function.test:
3889         * tests/gobject.test:
3890         * tests/interface.test:
3891         * tests/object.test:
3892         * tests/struct.test:
3893         * tests/types.test:
3894         * tests/union.test:
3895         * tests/xref1.test:
3896         * tests/xref2.test:
3897         Rename *.test to *.gir
3898
3899 2008-08-09  Johan Dahlin  <johan@gnome.org>
3900
3901         * configure.ac:
3902         * tests/Makefile.am:
3903         * tests/parser/Foo-expected.gir:
3904         * tests/parser/Makefile.am:
3905         * tests/parser/foo-object.h:
3906         * tests/parser/foo.c:
3907         * tests/parser/utility-expected.gir:
3908         * tests/parser/utility.c:
3909         * tests/parser/utility.h:
3910         * tests/scanner/Makefile.am:
3911         Rename tests/parser to test/scanner
3912
3913 2008-08-08  Colin Walters  <walters@verbum.org>
3914
3915         * tests/roundtrips.sh: Use local .gir files again.
3916
3917 2008-08-08  Colin Walters  <walters@verbum.org>
3918
3919         * tests/invoke/Makefile.am: .gir file depends on libtool
3920         library.
3921
3922 2008-08-08  Colin Walters  <walters@verbum.org>
3923
3924         * tools/girnode.c: Pass through parent node so we can
3925         print the node whose child is NULL, if that occurs.
3926
3927 2008-08-08  Johan Dahlin  <johan@gnome.org>
3928
3929         * tests/Makefile.am:
3930         Disable roundtrip tests which are not yet working
3931         * tests/invoke/testfns.gir:
3932         Rewrite as gir.
3933
3934 2008-08-08  Johan Dahlin  <johan@gnome.org>
3935
3936         * giscanner/girwriter.py:
3937         type -> ntype
3938         * giscanner/glibast.py:
3939         * giscanner/glibtransformer.py:
3940         Swap order of members, to keep it consistent with
3941         base enum class
3942
3943 2008-08-08  Johan Dahlin  <johan@gnome.org>
3944
3945         * girepository/gtypelib.c (validate_header):
3946         * girepository/gtypelib.h:
3947         * giscanner/ast.py:
3948         * giscanner/girwriter.py:
3949         * giscanner/sourcescanner.c (gi_source_symbol_ref),
3950         (gi_source_symbol_unref):
3951         * tests/array.test:
3952         * tests/boxed.test:
3953         * tests/constant.test:
3954         * tests/enum.test:
3955         * tests/errors.test:
3956         * tests/function.test:
3957         * tests/gobject.test:
3958         * tests/interface.test:
3959         * tests/invoke/Makefile.am:
3960         * tests/invoke/testfns.xml:
3961         * tests/object.test:
3962         * tests/parser/Makefile.am:
3963         * tests/roundtrips.sh:
3964         * tests/struct.test:
3965         * tests/types.test:
3966         * tests/union.test:
3967         * tests/xref1.test:
3968         * tests/xref2.test:
3969         * tools/Makefile.am:
3970         * tools/compiler.c (main):
3971         * tools/generate.c (write_callable_info), (write_function_info),
3972         (write_repository):
3973         * tools/gidlmodule.c:
3974         * tools/gidlmodule.h:
3975         * tools/gidlnode.c:
3976         * tools/gidlnode.h:
3977         * tools/gidlparser.c:
3978         * tools/gidlparser.h:
3979         * tools/gidlwriter.c:
3980         * tools/gidlwriter.h:
3981         * tools/scanner.c (create_node_from_gtype),
3982         (create_node_from_ctype), (g_igenerator_process_properties),
3983         (g_igenerator_process_signals), (g_igenerator_create_object),
3984         (g_igenerator_create_interface), (g_igenerator_create_boxed),
3985         (g_igenerator_create_enum), (g_igenerator_create_flags),
3986         (g_igenerator_process_function_symbol),
3987         (g_igenerator_process_unregistered_struct_typedef),
3988         (g_igenerator_process_struct_typedef),
3989         (g_igenerator_process_union_typedef),
3990         (g_igenerator_process_enum_typedef),
3991         (g_igenerator_process_function_typedef),
3992         (g_igenerator_process_constant), (g_igenerator_process_symbols),
3993         (g_igenerator_add_module), (g_igenerator_add_include_idl):
3994         Merge in the gir-compiler branch.
3995         Thanks to Philip and Colin for their help.
3996
3997 2008-07-26  Colin Walters  <walters@verbum.org>
3998
3999         * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
4000         and g-idl-generate to go along with how we're changing this
4001         module to be installed.
4002         * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
4003
4004 2008-07-24  Colin Walters  <walters@verbum.org>
4005
4006         * girepository/girepository.c (g_irepository_register): Add
4007         environment variable G_IREPOSITORY_VERBOSE so we can print
4008         out what we're doing.
4009         * girepository/girepository.c (g_irepository_register_file): 
4010         Add GError error message to g_debug call.
4011
4012 2008-07-08  Jürg Billeter  <j@bitron.ch>
4013
4014         * giscanner/glibast.py:
4015
4016         Fix typo
4017
4018 2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
4019
4020         * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
4021         more tags
4022
4023 2008-06-20  Johan Dahlin  <jdahlin@async.com.br>
4024
4025         * giscanner/ast.py:
4026         * giscanner/girwriter.py:
4027         * giscanner/transformer.py:
4028         * tests/parser/Foo-expected.gir:
4029         * tests/parser/foo-object.h:
4030         * tests/parser/foo.c (foo_object_allow_none):
4031         Add support for gtk-doc annotations for allow-none.
4032         Add test case.
4033
4034 2008-06-19  Johan Dahlin  <jdahlin@async.com.br>
4035
4036         * giscanner/ast.py:
4037         * giscanner/girwriter.py:
4038         * giscanner/glibast.py:
4039         * giscanner/glibtransformer.py:
4040         * giscanner/transformer.py:
4041         * tests/parser/Foo-expected.gir:
4042         Start using abstract type instead of the raw C types.
4043         Register a bunch of glib types we care about.
4044
4045 2008-06-19  Rob Taylor  <rob.taylor@codethink.co.uk>
4046
4047         * AUTHORS:
4048         Update authors
4049
4050 2008-06-08  Philip Van Hoof  <pvanhoof@gnome.org>
4051
4052         * girepository/girepository.c:
4053         * girepository/gtypelib.c:
4054         * girepository/ginfo.c:
4055         * girepository/ginvoke.c:
4056         * girepository/girepository.h:
4057         * girepository/gtypelib.h:
4058         * girepository/gmetadata.c:
4059         * girepository/Makefile.am:
4060         * girepository/gmetadata.h:
4061         * tools/compiler.c:
4062         * tools/gidlmodule.c:
4063         * tools/gidlnode.c
4064         * tools/generate.c:
4065         * tools/gidlmodule.h:
4066         * tools/gidlparser.c:
4067
4068         Renamed GMetadata to GTypelib
4069
4070 2008-06-07  Johan Dahlin  <jdahlin@async.com.br>
4071
4072         * giscanner/xmlwriter.py:
4073         Improve line wrapping when > 79 charaters
4074
4075 2008-06-05  Jürg Billeter  <j@bitron.ch>
4076
4077         * giscanner/ast.py:
4078         * giscanner/girwriter.py:
4079         * giscanner/transformer.py:
4080         Use <type> element for field types
4081         * tests/parser/Foo-expected.gir:
4082         Update testcase
4083
4084 2008-06-04  Johan Dahlin  <jdahlin@async.com.br>
4085
4086         * giscanner/glibtransformer.py:
4087         Fix a bug which prevented GdkEvent from being generated
4088
4089 2008-06-03  Johan Dahlin  <jdahlin@async.com.br>
4090
4091         * giscanner/Makefile.am:
4092         * giscanner/ast.py:
4093         * giscanner/girwriter.py:
4094         * giscanner/glibast.py:
4095         * giscanner/glibtransformer.py:
4096         * giscanner/transformer.py:
4097         * giscanner/utils.py:
4098         * tests/parser/Foo-expected.gir:
4099         Improve enum member parsing and introspection
4100
4101 2008-05-31  Johan Dahlin  <jdahlin@async.com.br>
4102
4103         * giscanner/scannerparser.y:
4104         * giscanner/sourcescanner.h:
4105         * giscanner/sourcescanner.py:
4106         Add a new source type enum for member.
4107         Use __repr__ for improved debugging
4108         * giscanner/girparser.py:
4109         Ignore some more
4110         * giscanner/transformer.py:
4111         Improve parsing of struct members.
4112         * tests/parser/foo-object.h:
4113         Add a new testcase
4114
4115 2008-05-31  Johan Dahlin  <jdahlin@async.com.br>
4116
4117         * giscanner/xmlwriter.py:
4118         Improve error reporting when trying to quote None.
4119         * giscanner/girparser.py:
4120         Do not print warnings when including more complete .gir files
4121         * giscanner/girwriter.py:
4122         Do not require a name for parameters, add a todo for singletons
4123         * giscanner/glibtransformer.py:
4124         Refactor the way structs are done, add a couple of hacks to allow
4125         us to get further.
4126         * giscanner/transformer.py:
4127         Add enough hacks so cairo, atk and pango.gir can be parsed properly
4128         * gobject-introspection-1.0.pc.in:
4129         Export girdir, so we can access gobject-2.0.gir from outside
4130
4131 2008-05-31  Johan Dahlin  <jdahlin@async.com.br>
4132
4133         * tools/g-ir-scanner:
4134         * tests/parser/Makefile.am:
4135         Update sys.path before running the parser so we don't have
4136         to setup PYTHONPATH ourselves.
4137
4138         * Makefile.am:
4139         * configure.ac:
4140         * girepository/Makefile.am:
4141         * giscanner/transformer.py:
4142         * gobject-introspection-1.0.pc.in:
4143         * gobject-introspection.pc.in:
4144         * tools/Makefile.am:
4145
4146         Rename pkg-config name to gobject-introspection-1.0,
4147         Do not installed anything which is not using the gir format.
4148         Disable compililation the old C scanner, but still keep the source
4149         until all the remaning functionallity has been ported.
4150
4151 2008-05-31  Johan Dahlin  <jdahlin@async.com.br>
4152
4153         * giscanner/giscannermodule.c (symbol_get_ident): Prevent
4154         a crash when symbol->indent is NULL.
4155
4156         * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
4157         a function to convert a CTYPE symbol to a string
4158
4159 2008-05-24  Johan Dahlin  <jdahlin@async.com.br>
4160
4161         * giscanner/ast.py:
4162         * giscanner/girwriter.py:
4163         * giscanner/giscannermodule.c
4164         (pygi_source_scanner_append_filename),
4165         (pygi_source_scanner_parse_file):
4166         * giscanner/glibtransformer.py:
4167         * giscanner/sourcescanner.py:
4168         Revert back to using temporary files to send in headers.
4169         Allow Functions to be passed in as callbacks, add a couple
4170         of try/excepts missing features.
4171         We can now scan pango
4172
4173 2008-05-08  Johan Dahlin  <johan@gnome.org>
4174
4175         * giscanner/glibtransformer.py:
4176         * giscanner/transformer.py:
4177         Move namespace stripping glibtransformer->transformer
4178
4179 2008-05-08  Johan Dahlin  <johan@gnome.org>
4180
4181         * giscanner/ast.py:
4182         * giscanner/girwriter.py:
4183         * giscanner/glibtransformer.py:
4184         * giscanner/transformer.py:
4185         * tools/g-ir-scanner:
4186         Introduce a namespace ast node
4187
4188 2008-05-05  Johan Dahlin  <johan@gnome.org>
4189
4190         * giscanner/__init__.py:
4191         * giscanner/sourcescanner.py:
4192         * giscanner/transformer.py:
4193         Move sourcescanner symbols to the sourcescanner module, instead
4194         of in the global __init__ namespace.
4195
4196 2008-05-03  Johan Dahlin  <johan@gnome.org>
4197
4198         * giscanner/glibtransformer.py:
4199         * tools/g-ir-scanner:
4200         Handle missing parameters better, allow - and + in .la dlname
4201         filenames.
4202
4203 2008-05-03  Johan Dahlin  <johan@gnome.org>
4204
4205         * giscanner/__init__.py:
4206         * giscanner/ast.py:
4207         * giscanner/girwriter.py:
4208         * giscanner/glibtransformer.py:
4209         * giscanner/transformer.py:
4210         Parse struct fields properly, improve debugging.
4211
4212 2008-04-29  Johan Dahlin  <johan@gnome.org>
4213
4214         * giscanner/ast.py:
4215         * giscanner/girwriter.py:
4216         * giscanner/transformer.py:
4217         * tests/parser/Foo-expected.gir:
4218         * TODO:
4219         Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
4220
4221 2008-04-29  Johan Dahlin  <jdahlin@async.com.br>
4222
4223         * Makefile.am:
4224         * docs/g-ir-scanner.1:
4225         * metadata-annotations-proposal.txt:
4226         * metadata-format.txt:
4227         Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
4228
4229 2008-04-29  Johan Dahlin  <jdahlin@async.com.br>
4230
4231         * giscanner/girwriter.py:
4232         * giscanner/glibtransformer.py:
4233         * giscanner/transformer.py:
4234         * giscanner/xmlwriter.py:
4235         * tests/parser/Foo-expected.gir:
4236         * tests/parser/foo-object.h:
4237         Write record/structs to gir file too. Add a couple of tests,
4238         fix an off by one error in xmlwriter.py.
4239
4240 2008-04-28  Johan Dahlin  <johan@gnome.org>
4241
4242         * giscanner/xmlwriter.py: Calculate the line length properly,
4243         include the provided extra indentation in the calculation, really.
4244
4245 2008-04-28  Johan Dahlin  <jdahlin@async.com.br>
4246
4247         * giscanner/ast.py:
4248         * giscanner/glibast.py:
4249         * giscanner/glibtransformer.py:
4250         * giscanner/transformer.py:
4251         * tools/g-ir-scanner:
4252         Add a --strip-prefix and sort out confusion between names and symbols
4253         for functions and struct + derivaties.
4254         Refactor bootstrap of g-ir-scanner, so we can set options on
4255         Transformer() before parsing everything.
4256
4257 2008-04-28  Johan Dahlin  <johan@gnome.org>
4258
4259         * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
4260         when scanning girepository.h
4261
4262         * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
4263         a __GI_SCANNER__ when we run.
4264
4265 2008-04-28  Johan Dahlin  <jdahlin@async.com.br>
4266
4267         * giscanner/ast.py:
4268         * giscanner/girwriter.py:
4269         * giscanner/glibast.py:
4270         * giscanner/glibtransformer.py:
4271         * tests/parser/Foo-expected.gir:
4272         * tests/parser/utility-expected.gir:
4273         Rename most c:identifier to c:type. Add new ones to
4274         class/interface/enum/boxed.
4275
4276 2008-04-28  Johan Dahlin  <jdahlin@async.com.br>
4277
4278         * giscanner/ast.py:
4279         * giscanner/girwriter.py:
4280         * giscanner/glibtransformer.py:
4281         * tests/parser/Foo-expected.gidl:
4282         * tests/parser/Makefile.am:
4283         Move c:identifier from return-value to subchild type,
4284         as per Jürgs suggestion
4285
4286 2008-04-28  Johan Dahlin  <johan@gnome.org>
4287
4288         * giscanner/girwriter.py:
4289         * tests/parser/Foo-expected.gir:
4290         Write property.type as a child node.
4291
4292 2008-04-27  Johan Dahlin  <johan@gnome.org>
4293
4294         * Makefile.am:
4295         * configure.ac:
4296         * gidl/Makefile.am:
4297         * gidl/gobject-2.0.gidl:
4298         * gir/Makefile.am:
4299         * gir/gobject-2.0.gir:
4300         * tests/parser/Makefile.am:
4301         Replace the GObject gidl with a GObject gir.
4302
4303 2008-04-27  Johan Dahlin  <johan@gnome.org>
4304
4305         * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
4306         not a program.
4307
4308         * giscanner/xmlwriter.py:
4309         * tests/parser/Foo-expected.gir:
4310         Include indentation in line length calculation
4311
4312 2008-04-27  Johan Dahlin  <johan@gnome.org>
4313
4314         * giscanner/girparser.py:
4315         Prettify NS parsing using elementtree.
4316
4317 2008-04-27  Johan Dahlin  <johan@gnome.org>
4318
4319         * configure.ac:
4320         * giscanner/Makefile.am:
4321         * giscanner/girparser.py:
4322         * giscanner/glibtransformer.py:
4323         * tests/parser/Foo-expected.gidl:
4324         * tests/parser/Foo-expected.gir:
4325         * tests/parser/Makefile.am:
4326         * tests/parser/utility-expected.gidl:
4327         * tests/parser/utility-expected.gir:
4328         * tools/g-ir-scanner:
4329         Switch over to GIR as the default format. Add a simple GIDL
4330         parser.
4331         Update tests and fix simplify makefiles by depending
4332         on GNU make extensions.
4333
4334 2008-04-27  Johan Dahlin  <johan@gnome.org>
4335
4336         * giscanner/xmlwriter.py:
4337         Wrap attributes for lines which are wider than 79 characters
4338
4339         * giscanner/scannerlexer.l:
4340         Allow parenthesis in annotations
4341
4342         * giscanner/ast.py:
4343         * giscanner/gidlwriter.py:
4344         * giscanner/girwriter.py:
4345         * giscanner/glibtransformer.py:
4346         * giscanner/transformer.py:
4347         Add initial sequence support, including annotation.
4348         Refactor type handling a bit.
4349
4350 2008-04-27  Johan Dahlin  <johan@gnome.org>
4351
4352         * tests/parser/Foo-expected.gidl:
4353         * tests/parser/foo-object.h:
4354         * tests/parser/foo.c (foo_object_class_init),
4355         (foo_object_get_strings), (foo_object_get_objects):
4356         Add two new functions to check sequence return values.
4357         Also fixes a compilation warning.
4358
4359 2008-04-27  Johan Dahlin  <johan@gnome.org>
4360
4361         * giscanner/giscannermodule.c (]): Cast the getter, avoids
4362         a compilation warning.
4363
4364         * tools/Makefile.am (g_ir_scanner_SOURCES):
4365         g-ir-scanner has no sources.
4366
4367 2008-04-25  Johan Dahlin  <johan@gnome.org>
4368
4369         * giscanner/Makefile.am:
4370         * giscanner/ast.py:
4371         * giscanner/gidlparser.py:
4372         * giscanner/gidlwriter.py:
4373         * giscanner/girwriter.py:
4374         * giscanner/glibast.py:
4375         * giscanner/glibtransformer.py:
4376         * giscanner/transformer.py:
4377         Split out nodes to ast.py and glibast.py
4378
4379 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
4380
4381         * giscanner/Makefile.am:
4382         * giscanner/gidlparser.py:
4383         * giscanner/gidlwriter.py:
4384         * giscanner/girwriter.py:
4385         * giscanner/glibtransformer.py:
4386         * giscanner/gobjecttreebuilder.py:
4387         * giscanner/transformer.py:
4388         * giscanner/treebuilder.py:
4389         * tools/g-ir-scanner:
4390         Rename treebuilder to transformer and
4391         gobjectreebuilder to glibtransformer.
4392
4393 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
4394
4395         * giscanner/Makefile.am:
4396         * giscanner/__init__.py:
4397         * giscanner/cgobject.py:
4398         * giscanner/gidlparser.py:
4399         * giscanner/gidlwriter.py:
4400         * giscanner/girwriter.py:
4401         * giscanner/gobjecttreebuilder.py:
4402         * giscanner/odict.py:
4403         * giscanner/sourcescanner.py:
4404         * giscanner/treebuilder.py:
4405         * giscanner/xmlwriter.py:
4406         * tools/Makefile.am:
4407         * tools/g-ir-scanner:
4408         Add LGPLv2 license header and install all python files
4409
4410 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
4411
4412         * TODO:
4413         * giscanner/gidlwriter.py:
4414         * giscanner/giscannermodule.c (pygi_source_directive_new),
4415         (directive_get_options), (pygi_source_symbol_new),
4416         (symbol_get_base_type), (pygi_source_type_new),
4417         (type_get_base_type), (type_get_child_list),
4418         (pygi_source_scanner_get_symbols),
4419         (pygi_source_scanner_get_directives):
4420         * giscanner/gobjecttreebuilder.py:
4421         * giscanner/sourcescanner.py:
4422         * giscanner/treebuilder.py:
4423         * tests/parser/foo-object.h:
4424         Add support for virtual methods.
4425         Pair struct FooClass with struct Foo.
4426         Clean up the SourceScanner bindings a bit.
4427         Add a testcase for virtual methods.
4428
4429 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
4430
4431         * giscanner/cgobject.py:
4432         * giscanner/gidlwriter.py:
4433         * giscanner/gobjecttreebuilder.py:
4434         Add support for signals
4435
4436         * tests/parser/foo.c (foo_object_class_init):
4437         * Foo-expected.gidl:
4438         Add a signal and update the expected output.
4439
4440 2008-04-24  Johan Dahlin  <jdahlin@async.com.br>
4441
4442         * giscanner/gidlwriter.py:
4443         * giscanner/girwriter.py:
4444         * giscanner/giscannermodule.c (directive_get_name),
4445         (directive_get_value), (directive_get_options),
4446         (symbol_get_directives), (symbol_set_directives),
4447         (pygi_source_scanner_parse_file),
4448         (pygi_source_scanner_lex_filename),
4449         (pygi_source_scanner_get_directives), (init_giscanner):
4450         * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4451         * giscanner/sourcescanner.h:
4452         * giscanner/sourcescanner.py:
4453         * giscanner/treebuilder.py:
4454         * tools/g-ir-scanner:
4455         Add support for source/header annotations.
4456
4457 2008-04-22  Johan Dahlin  <jdahlin@async.com.br>
4458
4459         * giscanner/gidlwriter.py:
4460         * giscanner/girwriter.py:
4461         * giscanner/gobjecttreebuilder.py:
4462         * giscanner/treebuilder.py:
4463         Add support for Callbacks
4464
4465 2008-04-22  Havoc Pennington  <hp@pobox.com>
4466
4467         * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4468         not in metadata->module, look for it in the global module, in case
4469         some other object or the app itself provides the symbol.
4470
4471 2008-04-22  Havoc Pennington  <hp@pobox.com>
4472
4473         * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4474         dlopening a library that is already in the main app, by checking
4475         whether one of the lib's symbols is already loaded.
4476
4477 2008-04-22  Johan Dahlin  <jdahlin@async.com.br>
4478
4479         * tests/parser/Foo-expected.gidl:
4480         * tests/parser/foo-object.h:
4481         Add a callback test
4482
4483 2008-04-22  Havoc Pennington  <hp@pobox.com>
4484
4485         * girepository/ginfo.c (g_interface_info_find_method):
4486         Use interface_blob_size not object_blob_size to compute offset.
4487
4488 2008-04-22  Havoc Pennington  <hp@pobox.com>
4489
4490         * girepository/gmetadata.c (_g_metadata_init): remove
4491         G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4492         (Glade and Clutter for example) rely on being loaded globally.
4493
4494 2008-04-22  Havoc Pennington  <hp@pobox.com>
4495
4496         * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4497         function to get the GType given a RegisteredTypeInfo
4498
4499 2008-04-22  Johan Dahlin  <johan@gnome.org>
4500
4501         * COPYING: Add a LGPL license, to prevent automake to
4502         put in a copy of GPL here. Pointed out by Havoc.
4503
4504         * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4505         (g_type_info_is_pointer), (g_type_info_get_tag),
4506         (g_type_info_get_param_type), (g_type_info_get_interface),
4507         (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4508         (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4509         (g_error_domain_info_get_codes), (g_enum_info_get_value),
4510         (g_object_info_get_interface), (g_object_info_get_field),
4511         (g_interface_info_get_prerequisite),
4512         (g_signal_info_get_class_closure), (g_constant_info_get_value):
4513         * girepository/ginvoke.c (get_ffi_type):
4514         * girepository/girepository.h:
4515         * girepository/gmetadata.c (g_metadata_get_dir_entry),
4516         (g_metadata_check_sanity), (validate_header),
4517         (validate_array_type_blob), (validate_iface_type_blob),
4518         (validate_param_type_blob), (validate_error_type_blob),
4519         (validate_type_blob), (validate_constant_blob),
4520         (validate_struct_blob), (validate_enum_blob):
4521         * girepository/gmetadata.h:
4522         * tests/Makefile.am:
4523         * tests/invoke/Makefile.am:
4524         * tests/invoke/invoke.c (main):
4525         * tests/roundtrips.sh:
4526         * tools/Makefile.am:
4527         * tools/compiler.c (format_output), (write_out_metadata), (main):
4528         * tools/generate.c (write_type_name), (write_type_info),
4529         (write_constant_value), (write_enum_info), (load_metadata), (main):
4530         * tools/gidlcompilercontext.c:
4531         * tools/gidlcompilercontext.h:
4532         * tools/gidlcompilerentrynode.c:
4533         * tools/gidlcompilerentrynode.h:
4534         * tools/gidlcompilertypenode.c:
4535         * tools/gidlcompilertypenode.h:
4536         * tools/gidlmodule.c (g_idl_module_build_metadata):
4537         * tools/gidlmodule.h:
4538         * tools/gidlnode.c (init_stats), (dump_stats),
4539         (g_idl_node_get_size), (g_idl_node_get_full_size),
4540         (g_idl_node_cmp), (g_idl_node_can_have_member),
4541         (g_idl_node_add_member), (g_idl_node_param_direction_string),
4542         (parse_int_value), (parse_uint_value), (parse_float_value),
4543         (parse_boolean_value), (find_entry_node), (find_entry),
4544         (serialize_type), (g_idl_node_build_metadata), (write_string):
4545         * tools/gidlnode.h:
4546         * tools/gidlparser.c (parse_type_internal):
4547         * tools/quote-file.sh:
4548         Revert revisions 157,149-148,136-129 and 120.
4549         Move back to using g-idl-generate to generate the metadata and
4550         avoids dependency on a c compiler.
4551
4552 2008-04-22  Johan Dahlin  <jdahlin@async.com.br>
4553
4554         * giscanner/girwriter.py:
4555         * tools/g-ir-scanner:
4556         Add an initial GIR writer and a --format option to g-ir-scanner
4557
4558 2008-04-21  Johan Dahlin  <johan@gnome.org>
4559
4560         * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4561         gobject-2.0 and raise ImportError if not found.
4562
4563         * giscanner/gidlparser.py:
4564         * giscanner/gidlwriter.py:
4565         * giscanner/gobjecttreebuilder.py:
4566         * tools/g-ir-scanner:
4567         Add a --include argument to include types from other idls.
4568         Add a minimalistic GIDL parser (just objects for now)
4569         Implement resolving of external type references and use it to
4570         resolve parent types, argument types and return types.
4571
4572 2008-04-21  Johan Dahlin  <johan@gnome.org>
4573
4574         * giscanner/gidlwriter.py:
4575         * giscanner/gobjecttreebuilder.py:
4576         * giscanner/treebuilder.py:
4577         Add support for properties.
4578         Refactor Class/Interface support a bit, to share more code and
4579         always initialize their method attribute to an empty list.
4580
4581 2008-04-21  Johan Dahlin  <johan@gnome.org>
4582
4583         * giscanner/cgobject.py:
4584         Add a workaround for a glib bug interface introspection bug
4585         (object_interface_list_properties, object_class_list_properties):
4586         Cast the return value to GParamSpec.
4587
4588         * tests/parser/Foo-expected.gidl: Update
4589         * tests/parser/foo.c: Add a string property
4590
4591         * giscanner/gobjecttreebuilder.py:
4592         After stripping namespaces, remove the original
4593         item to avoid duplication (GtkButton struct and Button object)
4594
4595 2008-04-21  Johan Dahlin  <johan@gnome.org>
4596
4597         * giscanner/gobjecttreebuilder.py:
4598         * giscanner/treebuilder.py:
4599         Strip namespaces before objects, so we'll export
4600         GtkButton as Button in the gtk namespace
4601
4602 2008-04-21  Johan Dahlin  <johan@gnome.org>
4603
4604         * giscanner/gidlwriter.py:
4605         * giscanner/gobjecttreebuilder.py:
4606         * giscanner/treebuilder.py:
4607         Add constructors for object/boxed types.
4608
4609 2008-04-21  Johan Dahlin  <johan@gnome.org>
4610
4611         * giscanner/gidlwriter.py:
4612         * giscanner/gobjecttreebuilder.py:
4613         Add support for boxed types
4614
4615 2008-04-21  Johan Dahlin  <johan@gnome.org>
4616
4617         * giscanner/giscannermodule.c: Mark structures as const,
4618         wrap SourceType.const_string.
4619
4620         * tests/parser/foo-object.h: Add a couple of constants.
4621
4622         * giscanner/gidlwriter.py:
4623         * giscanner/gobjecttreebuilder.py:
4624         * giscanner/treebuilder.py:
4625         Add basic support for interfaces
4626
4627         * tools/g-ir-scanner:
4628         Add -o/--output for writing to a file
4629
4630 2008-04-21  Havoc Pennington  <hp@redhat.com>
4631
4632         * TODO: add some C API wishlist items I could think of quickly
4633
4634 2008-04-21  Johan Dahlin  <jdahlin@async.com.br>
4635
4636         * giscanner/gidlwriter.py:
4637         * giscanner/xmlwriter.py:
4638         Add a simple api for writing tags which can be used 
4639         with the new 'with statement' in python 2.5
4640
4641 2008-04-21  Johan Dahlin  <johan@gnome.org>
4642
4643         * giscanner/gobjecttreebuilder.py:
4644         Strip namespace and object prefix from method names.
4645
4646 2008-04-21  Johan Dahlin  <johan@gnome.org>
4647
4648         * tools/g-ir-scanner (main): Add --pkg option to pass in
4649         pkg-config modules to get cflags from.
4650
4651         * giscanner/gidlwriter.py (GIDLWriter._write_method): 
4652         Avoid duplication, reuse function writer for methods.
4653
4654 2008-04-21  Johan Dahlin  <jdahlin@async.com.br>
4655
4656         * giscanner/gidlwriter.py:
4657         * giscanner/gobjecttreebuilder.py:
4658         * giscanner/treebuilder.py:
4659         * tools/g-ir-scanner:
4660         Resolve libtool .la files.
4661         Strip name spaces for methods.
4662         Add function symbols
4663
4664 2008-04-20  Johan Dahlin  <jdahlin@async.com.br>
4665
4666         * giscanner/cgobject.py:
4667         * giscanner/gidlwriter.py:
4668         * giscanner/gobjecttreebuilder.py:
4669         * giscanner/treebuilder.py:
4670         Add support for classes and methods
4671
4672 2008-04-20  Johan Dahlin  <johan@gnome.org>
4673
4674         * giscanner/gidlwriter.py:
4675         * giscanner/gobjecttreebuilder.py:
4676         * giscanner/odict.py:
4677         Avoid conflicts, keep the output ordered similar to
4678         the order of the input.
4679         Add a simple ordered dictionary implemenation
4680
4681 2008-04-19  Johan Dahlin  <johan@gnome.org>
4682
4683         * giscanner/cgobject.py:
4684         * giscanner/gidlwriter.py:
4685         * giscanner/gobjecttreebuilder.py:
4686         * tools/g-ir-scanner:
4687         Start introspecting get-type functions.
4688         Implement support for GLib/GFlags GTypes.
4689         Add a ctype based GObject binding.
4690
4691 2008-04-18  Johan Dahlin  <jdahlin@async.com.br>
4692
4693         * giscanner/gidlwriter.py:
4694         * giscanner/xmlwriter.py:
4695         * tools/g-ir-scanner:
4696         Add a simplistic gidl writer, which can't do too much.
4697
4698 2008-04-18  Johan Dahlin  <johan@gnome.org>
4699
4700         * giscanner/sourcescanner.py:
4701         * giscanner/treebuilder.py:
4702         * tools/g-ir-scanner:
4703         split tree building and source scanning interface to separate files.
4704
4705 2008-04-18  Johan Dahlin  <johan@gnome.org>
4706
4707         * tools/g-ir-scanner (Parameter.__init__): Start constructing
4708         a real node tree.
4709         - Add support for struct/parameter/return, start parsing of ctypes
4710
4711         * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4712         fix the style
4713
4714 2008-03-31  Johan Dahlin  <johan@gnome.org>
4715
4716         * tools/g-ir-scanner:
4717         Start to build abstract syntax node of scanned sources.
4718         Add support for cpp options.
4719
4720 2008-03-27  Johan Dahlin  <johan@gnome.org>
4721
4722         * giscanner/giscannermodule.c:
4723         * giscanner/scannerlexer.l:
4724         * giscanner/sourcescanner.c:
4725         * tools/g-ir-scanner:
4726
4727         Add simple pre-processor using subprocess and a PIPE.
4728         Change the parse_file apis to accept a file descriptor.
4729
4730 2008-03-25  Johan Dahlin  <johan@gnome.org>
4731
4732         * giscanner/__init__.py:
4733         * tools/g-ir-scanner:
4734         Fix a typo and add an example python test program.
4735
4736 2008-03-25  Johan Dahlin  <johan@gnome.org>
4737         
4738         * giscanner/__init__.py:
4739         * giscanner/giscannermodule.c:
4740         * giscanner/sourcescanner.c:
4741         * giscanner/sourcescanner.h:
4742         Add constants and wrap a few more SymbolType fields
4743
4744 2008-03-25  Johan Dahlin  <johan@gnome.org>
4745         
4746         * configure.ac:
4747         * giscanner:
4748         * giscanner/__init__.py:
4749         * giscanner/giscannermodule.c:
4750         * giscanner/Makefile.am:
4751
4752         Add initial python bindings for the scanner and 
4753         depend on python 2.5.
4754
4755 2008-03-25  Johan Dahlin  <johan@gnome.org>
4756
4757         * Makefile.am:
4758         * configure.ac:
4759         * giscanner/Makefile.am:
4760         * giscanner/sourcescanner.c:
4761         * giscanner/sourcescanner.h:
4762         * tools/Makefile.am:
4763         * tools/grealpath.h:
4764         * tools/sourcescanner.c:
4765         * tools/sourcescanner.h:
4766
4767         Move the scanner to a separate library.
4768         
4769 2008-03-23  Johan Dahlin  <johan@gnome.org>
4770
4771         * tools/Makefile.am:
4772         * tools/scanner.c:
4773         * tools/scanner.h:
4774         * tools/scannerlexer.l:
4775         * tools/scannerparser.y:
4776         * tools/sourcescanner.c:
4777         * tools/sourcescanner.h:
4778         Split out the source scanner from the generator.
4779         Rename the symbols used in the scanner to use the gi_ prefix.
4780         This should make it possible to use the raw C parser from
4781         other programs.
4782
4783 2008-03-23  Johan Dahlin  <johan@gnome.org>
4784
4785         * tests/parser/Makefile.am (utility.gidl): 
4786         * tests/parser/utility-expected.gidl: 
4787         Pass in the gobject.gidl since we're defining a GObject.
4788
4789 2008-03-12  Johan Dahlin  <johan@gnome.org>
4790
4791         * relaxng/relaxng.rng:
4792         Add a releaxng in relaxng we can use to validate the relaxngs
4793         schemas
4794
4795 2008-03-12  Jürg Billeter  <j@bitron.ch>
4796
4797         * tools/scanner.c: (g_igenerator_new):
4798         * tools/scannerparser.y:
4799         Fix compiler warnings.
4800
4801 2008-03-12  Jürg Billeter  <j@bitron.ch>
4802
4803         * tools/scanner.c:
4804         * tools/scanner.h:
4805         * tools/scannerparser.y:
4806         Start fixing memory management in g-idl-scanner.
4807
4808 2008-03-12  Rob Taylor  <rob.taylor@codethink.co.uk>
4809
4810         * tools/gidlcompilercontext.c: (write_compiled):
4811         Fix critical warning when no shlib passed to g-idl-compiler.
4812
4813 2008-03-12  Johan Dahlin  <johan@gnome.org>
4814
4815         * tests/parser/utility-expected.gidl:
4816         * tests/parser/utility.h:
4817         Add a get_type-function, so the scanner actually
4818         parses it as an object.
4819         
4820 2008-03-12  Johan Dahlin  <johan@gnome.org>
4821
4822         * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4823         Bad Philip!
4824
4825         * tests/parser/Foo-expected.gidl:
4826         * tests/parser/Makefile.am:
4827         * tests/parser/foo-object.h:
4828         * tests/parser/foo.c:
4829         * tests/parser/utility-expected.gidl:
4830         * tests/parser/utility.c:
4831         * tests/parser/utility.h:
4832
4833         Add a new gidl test. 'utility.gidl', which is used to be able
4834         to test external type references. Add a reference to UtilityObject*
4835         in the idl file.
4836
4837 2008-03-11  Johan Dahlin  <johan@gnome.org>
4838
4839         * tools/compiler.c:
4840         * tools/generate.c:
4841         Remove most global variables
4842
4843 2008-03-11  Philip Van Hoof  <me@pvanhoof.be>
4844  
4845         * tools/scannerlexer.l:
4846         * tools/scanner.c:
4847         * tests/parser/Foo-expected.gidl:
4848         * tests/parser/foo.c:
4849         * tests/parser/Makefile.am:
4850         * tests/parser/foo-object.h:
4851  
4852         Added a few extra tests. Which resulted in finding a few
4853         bugs. Which resulted in me fixing those bugs
4854
4855 2008-03-11  Rob Taylor  <rob.taylor@codethink.co.uk>
4856
4857         * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4858         (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4859         Add some comments for strings into generated output for
4860         easier debugging.
4861
4862 2008-03-11  Rob Taylor  <rob.taylor@codethink.co.uk>
4863
4864         * tools/gidlcompilercontext.c: (write_compiled):
4865         Write out the shlibs variable before writing out the strings
4866         length. Fixes compiler warning when using '-l' flag with
4867         g-idl-compiler
4868
4869 2008-03-11  Johan Dahlin  <johan@gnome.org>
4870
4871         * tests/parser/Foo-expected.gidl:
4872         * tests/parser/foo-object.h:
4873         * tools/scanner.c:
4874         * tools/scanner.h:
4875         * tools/scannerlexer.l:
4876         Add support for parsing return arguments. Add support for
4877         caller-owns return types.
4878         Patch by Philip Van Hoof.
4879         
4880         * tools/scannerparser.y:
4881         Remove parsing of the @deprecated syntax used in headers.
4882         We will support gtk-doc deprecation in the future instead.
4883
4884 2008-03-11  Johan Dahlin  <johan@gnome.org>
4885
4886         * tools/compiler.c (main): Coding style fixes
4887
4888 2008-03-10  Johan Dahlin  <johan@gnome.org>
4889
4890         * configure.ac:
4891         Add GCOV_LIBS to GILIBS
4892
4893 2008-03-10  Johan Dahlin  <johan@gnome.org>
4894
4895         * tests/parser/Foo-expected.gidl:
4896         * tests/parser/foo.c:
4897         Rename null-ok to direction=out
4898
4899 2008-03-10  Philip Van Hoof  <me@pvanhoof.be>
4900
4901         reviewed and extensively tested by Johan
4902
4903         * tests/parser/Foo-expected.gidl:
4904         * tests/parser/foo-object.h:
4905         * tests/parser/foo.c:
4906         * tools/gidlnode.c:
4907         * tools/gidlnode.h:
4908         * tools/gidlwriter.c:
4909         * tools/scanner.c:
4910         * tools/scanner.h:
4911         * tools/scannerlexer.l:
4912         * tools/scannerparser.y:
4913
4914         Add support for scanning for gtk-doc comments inside
4915         C source files. Add tests
4916
4917 2008-03-10  Johan Dahlin  <johan@gnome.org>
4918
4919         * tests/parser/Makefile.am:
4920         * tests/parser/foo.c:
4921         * tools/scanner.c:
4922         * tools/scanner.h:
4923         * tools/scannerparser.y:
4924         Add an api to lex filenames.
4925         Lex all source .c files passed in on the command line.
4926         Scan sources in a test and a couple of private structures
4927         which should not be included in the generated gidl
4928
4929 2008-03-10  Johan Dahlin  <johan@gnome.org>
4930
4931         * tests/invoke/Makefile.am: Make the generated metadata 
4932         depend on the g-idl-compiler
4933
4934 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
4935
4936         * tools/gidlmodule.c
4937         * tools/gidlmodule.h
4938         * tools/gidlnode.c
4939         * tools/gidlnode.h
4940         Remove the old g-idl-compiler code.
4941
4942
4943 2008-02-22  Mark Doffman  <mark.doffman@codethink.co.uk>
4944
4945         * tools/quote-file.sh
4946         * tools/compiler.c
4947         * tools/generate.c
4948         Move to using the 'C' struct compiler code.
4949
4950 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
4951
4952         * girepository/ginfo.c
4953         * tools/generate.c
4954         Change the way that external references with no namespace
4955         are dealt with. External references with no namespace
4956         are placed into the XML as-if they are a local reference.
4957         This is temporary, but helps with roundtrip tests.
4958
4959 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
4960
4961         * girepository/ginfo.c
4962         Add the ability to get the value of a constant of
4963         type TYPE_TAG_SYMBOL. In the case of a symbol the value
4964         is provided as a string.
4965
4966         This would deal properly with:
4967         typedef char* random;
4968         const random = "A string";
4969
4970 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
4971
4972         * girepository/ginfo.c
4973         * girepository/girepository.h
4974         * tools/generate.c
4975         Add a function to check if an enum is registered or not.
4976         Previously anything testing this relied on the g-type
4977         string offset having a value of 0.
4978
4979         * girepository/gmetadata.c
4980         * girepository/gmetadata.h
4981         * tools/generate.c
4982         Remove unneccesary or erroneous checks. There were two
4983         metadata validation checks which made sure that the blob
4984         sizes were the same as some magic numbers compiled into the code.
4985         This is wrong as it breaks any forwards compatibility that may
4986         be possible.
4987
4988         Checks were also present that made sure that unregistered type
4989         blobs had a value of 0 in the g-type offset field. This is
4990         unneccessary. If a type blob is unregistered then any value
4991         in its g-type field is simply invalid.
4992
4993 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
4994
4995         * girepository/ginfo.c
4996         * girepository/gmetadata.c
4997         * girepository/gmetadata.h
4998
4999           Change the metadata format to have a standard header
5000           for all the type blobs. Merge the SimpleTypeBlob
5001           and InterfaceTypeBlob into a union. A union of these
5002           two blobs existed previously but was not explicit
5003           in the metadata format.
5004
5005 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
5006
5007         * tools/gidlcompilercontext.c
5008         * tools/gidlcompilercontext.h
5009         * tools/gidlcompilerentrynode.c
5010         * tools/gidlcompilerentrynode.h
5011         * tools/gidlcompilertypenode.c
5012         * tools/gidlcompilertypenode.h
5013
5014         Add code to compile a tree of GIdlNodes to
5015         a 'C' struct representing the metadata.
5016         This is to aid cross-compiling. Previously
5017         the g-idl-compiler created a binary blob with
5018         data written in the byte order and alignment
5019         of the tool rather than the intended target.
5020
5021         Cleaned up and improved by Johan and Robert :-)
5022
5023 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
5024
5025         * girepository/ginvoke.c
5026         * girepository/girepository.h
5027         * girepository/gmetadata.c
5028         * girepository/gmetadata.h
5029         * tools/generate.c
5030         * tools/gidlparser.c
5031         Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
5032         to avoid confusion with the interface blob.
5033
5034         * tools/generate.c
5035         * tools/gidlparser.c
5036         Remove magic numbers and replace with type-tag
5037         enumeration symbols.
5038
5039         * girepository/gmetadata.c
5040         Add validate declaration.
5041
5042 2008-03-10  Jürg Billeter  <j@bitron.ch>
5043
5044         * tools/gidlparser.c: (parse_type_internal):
5045         * tools/scannerlexer.l:
5046         * tools/scannerparser.y:
5047         Support C99 _Bool type in scanner.
5048
5049 2008-03-10  Jürg Billeter  <j@bitron.ch>
5050
5051         * tests/parser/Foo-expected.gidl:
5052         * tests/parser/foo-object.h:
5053         * tests/parser/foo.c: (foo_enum_method):
5054         * tools/scanner.c: (g_igenerator_process_function_symbol):
5055         Don't skip functions that are defined in the namespace of a type
5056         that doesn't support methods, as for example enums.
5057
5058 2008-03-10  Johan Dahlin  <johan@gnome.org>
5059
5060         * gidl.dtd: Remove, we're using relaxng for now
5061
5062         * tests/parser/Foo-expected.gidl:
5063         * tests/parser/foo-object.h:
5064         * tests/parser/foo.c:
5065         Rename the enum/flags get_type functions to include the whole type.
5066
5067 2008-03-08  Marc-Andre Lureau  <marcandre.lureau@gmail.com>
5068
5069         * tools/gidlwriter.c (enum_generate): added "type-name",
5070         "get-type" and "deprecated" missing arguments.
5071         * tests/parser/Foo-expected.gidl:
5072         * tests/parser/foo-object.h: test enum type, and no type.
5073
5074 2008-03-06  Johan Dahlin  <jdahlin@async.com.br>
5075
5076         * configure.ac:
5077         Consistent checks, add missing 'test'
5078
5079 2008-03-05  Havoc Pennington  <hp@redhat.com>
5080
5081         * configure.ac: Take advantage of a libffi.pc if one exists, as it
5082         does on Fedora 8. Make libffi a hard requirement, since it was in
5083         practice anyway (was not really conditional in the code or
5084         makefile, only in configure).
5085
5086 2008-02-21  Mark Doffman  <mark.doffman@codethink.co.uk>
5087
5088         reviewed by: Rob Taylor  <rob.taylor@codethink.co.uk>
5089         reviewed by: Johan Dahlin  <johan@gnome.org>
5090
5091         * tests/Makefile.am:
5092         * tests/roundtrips.sh:
5093         Modify the roundtrips test so that they do not use the
5094         --raw option of the gidl compiler but instead compile a
5095         shared library to use with g_module.
5096
5097         * tests/invoke/Makefile.am:
5098         * tests/invoke/invoke.c:
5099         Modify the invoke tests to build a shared library rather
5100         than use the --raw option.
5101
5102         * tests/invoke/invoke-namespace-find.sh: Removed:
5103         Noone knows why this was here, so removed.
5104
5105 2008-02-19  Rob Taylor  <rob.taylor@codethink.co.uk>
5106
5107         * tools/scanner.c: (g_igenerator_process_function_symbol):
5108         Move g_idl_node_can_have_member test later, as it broke spotting
5109         get_type's for nodes that can't have members.
5110
5111 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
5112
5113         * tools/gidlnode.h:
5114         * tools/gidlnode.c: (g_idl_node_can_have_member):
5115         Add g_idl_node_can_have_member.
5116
5117         * tools/scanner.c: (g_igenerator_process_function_symbol):
5118         Use g_idl_node_can_have_member to test if we should add a function
5119         as a member of the type node.
5120
5121 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
5122
5123         * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
5124         * gidl/Makefile.am:
5125         * tests/parser/Makefile.am:
5126         Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
5127
5128 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
5129
5130         * tools/scanner.c: (main):
5131         Ignore -pthread when passed to g-idl-scanner.
5132
5133 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
5134
5135         * tools/grealpath.h: Added:
5136         * tools/scanner.c: (main):
5137         * tools/scannerlexer.l:
5138         * tools/Makefile.am:
5139         Always use absolute paths with symbolic links resolved when
5140         comparing filenames.
5141
5142 2008-02-18  Rob Taylor  <rob.taylor@codethink.co.uk>
5143
5144         * gobject-introspection.pc.in:
5145         Provide variables for g-idl-parser, scanner and compiler in the
5146         pkgconfig file.
5147
5148 2008-02-13  Rob Taylor  <rob.taylor@codethink.co.uk>
5149
5150         * gcov.mak:
5151         * girepository/Makefile.am:
5152         * tools/Makefile.am:
5153         Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
5154
5155 2008-02-10  Johan Dahlin  <johan@gnome.org>
5156
5157         * tests/parser/Foo-expected.gidl:
5158         * tests/parser/foo-object.h:
5159         * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
5160         (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
5161         Add boxed test.
5162
5163 2008-02-10  Johan Dahlin  <johan@gnome.org>
5164
5165         * tests/parser/Foo-expected.gidl:
5166         * tests/parser/foo-object.h:
5167         * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
5168         Add enum and flags test.
5169
5170 2008-02-10  Johan Dahlin  <johan@gnome.org>
5171
5172         * Makefile.am:
5173         * configure.ac:
5174         * girepository/Makefile.am:
5175         Make 'make distcheck' work again.
5176
5177 2008-02-10  Johan Dahlin  <johan@gnome.org>
5178
5179         * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
5180         not as-compiler.m4.
5181
5182         * tests/parser/Makefile.am: Only create Foo.gidl when running make
5183         check, eg exclude it from BUILT_SOURCES.
5184
5185 2008-02-08  Rob Taylor  <rob.taylor@codethink.co.uk>
5186
5187         * Makefile.am:
5188         * configure.ac:
5189         * gcov.mak: Added:
5190         * girepository/Makefile.am:
5191         * m4/Makefile.am: Added:
5192         * m4/as-compiler-flag.m4: Added:
5193         * m4/gcov.m4: Added:
5194         * tools/Makefile.am:
5195         Add ability to generate a coverage report.
5196         Adds configure option --enable-gcov and make rule 'check-coverage'.
5197
5198 2008-02-08  Rob Taylor  <rob.taylor@codethink.co.uk>
5199
5200         * Makefile.am:
5201         * configure.ac:
5202         * gidl/Makefile.am: Added:
5203         * girepository/Makefile.am: Added:
5204         * src/Makefile.am: Renamed to tools/Makefile.am:
5205         * src/compiler.c: Renamed to tools/compiler.c:
5206         * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
5207         * src/generate.c: Renamed to tools/generate.c:
5208         * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
5209         * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
5210         * src/gidlnode.c: Renamed to tools/gidlnode.c:
5211         * src/gidlnode.h: Renamed to tools/gidlnode.h:
5212         * src/gidlparser.c: Renamed to tools/gidlparser.c:
5213         * src/gidlparser.h: Renamed to tools/gidlparser.h:
5214         * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
5215         * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
5216         * src/ginfo.c: Renamed to girepository/ginfo.c:
5217         * src/ginvoke.c: Renamed to girepository/ginvoke.c:
5218         * src/girepository.c: Renamed to girepository/girepository.c:
5219         * src/girepository.h: Renamed to girepository/girepository.h:
5220         * src/gmetadata.c: Renamed to girepository/gmetadata.c:
5221         * src/gmetadata.h: Renamed to girepository/gmetadata.h:
5222         * src/scanner.c: Renamed to tools/scanner.c:
5223         * src/scanner.h: Renamed to tools/scanner.h:
5224         * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
5225         * src/scannerparser.y: Renamed to tools/scannerparser.y:
5226         * tests/invoke/Makefile.am:
5227         Split src/ into girepository/ and tools/
5228
5229         * Makefile.am:
5230         * configure.ac:
5231         * girepository/Makefile.am:
5232         * tests/Makefile.am:
5233         * tests/invoke/Makefile.am:
5234         * tests/parser/Makefile.am:
5235         * tests/roundtrips.sh:
5236         * tools/Makefile.am:
5237         Make distcheck work.
5238
5239 2008-02-04  Rob Taylor  <rob.taylor@codethink.co.uk>
5240
5241         * tests/invoke/invoke.c: (main):
5242         * tests/invoke/testfns.c: (test6), (test7):
5243         * tests/invoke/testfns.xml:
5244         Add tests for invokation with a GList argument.
5245         Also tests caller-owns return values.
5246
5247 2008-02-04  Rob Taylor  <robtaylor@floopily.org>
5248
5249         * src/ginfo.c:
5250         Add some documentation for GICallableInfo
5251
5252 2008-02-01  Mark Doffman  <mark.doffman@codethink.co.uk>
5253
5254         * gidl.dtd:
5255         Correct syntax errors in the DTD file.
5256         * relaxng/api.xml:
5257         * relaxng/c-types.xml:
5258         * relaxng/g-types.xml:
5259         * relaxng/util.xml:
5260         Add a RelaxNG specification for the GObject Introspection XML data.
5261         The Specification has validated all of the test files.
5262
5263 2008-01-25  Rob Taylor  <robtaylor@floopily.org>
5264
5265         * tests/roundtrips.sh:
5266         * tests/struct.test:
5267         Add roundtrip tests for structs.
5268
5269 2008-01-11  Johan Dahlin  <johan@gnome.org>
5270
5271         * src/scanner.c (g_igenerator_process_function_symbol):
5272         Refactor out g_idle_node_add_member.
5273         (create_node_from_gtype, create_node_from_ctype):
5274         Use case instead of if...else
5275         (get_type_from_type_id):
5276         Rename to create_node_from_gtype
5277         (get_type_from_ctype):
5278         Rename to create_node_from_ctype
5279
5280         Rename ginode -> node, gitype -> type, gifunc -> func.
5281
5282         * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
5283         Two new functions, refactor out of scanner.c
5284
5285         * src/scanner.c: (g_igenerator_process_function_symbol):
5286         * src/scannerlexer.l:
5287         Do not save the content of the deprecated variable, only
5288         if it's set or not.
5289
5290 2008-01-11  Johan Dahlin  <johan@gnome.org>
5291
5292         * tests/parser/foo-object.h: Add a couple of comment parser tests.
5293
5294 2008-01-11  Jürg Billeter  <j@bitron.ch>
5295
5296         * src/scannerlexer.l:
5297         Fix GTK-Doc parsing.
5298
5299 2008-01-11  Jürg Billeter  <j@bitron.ch>
5300
5301         * src/scannerlexer.l:
5302         Fix GTK-Doc parsing.
5303
5304 2008-01-11  Jürg Billeter  <j@bitron.ch>
5305
5306         * src/scanner.c: (lookup_symbol):
5307         Return unresolved name if we find unknown symbol.
5308
5309 2008-01-11  Jürg Billeter  <j@bitron.ch>
5310
5311         * src/scanner.c: (g_igenerator_generate):
5312         Initialize GObject to fix scanning interface properties.
5313
5314         * tests/parser/Foo-expected.gidl:
5315         * tests/parser/foo-object.h:
5316         * tests/parser/foo.c: (foo_interface_get_type):
5317         Test interfaces with GObject prerequisite.
5318
5319         * tests/parser/Makefile.am:
5320         Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
5321
5322 2007-12-27  Johan Dahlin  <johan@gnome.org>
5323
5324         * src/scannerlexer.l:
5325         Parse gtk-doc comments.
5326
5327         * src/gidlwriter.c: (function_generate):
5328         Reorganize, avoid duplication and add support for
5329         writing deprecated functions.
5330
5331         * src/scannerparser.y:
5332         * src/scanner.h:
5333         Add new structure CDirective and functions to create/free them.
5334
5335         * src/scanner.c: (g_igenerator_process_function_symbol),
5336         (g_igenerator_process_unregistered_struct_typedef),
5337         (g_igenerator_process_struct_typedef),
5338         (g_igenerator_process_union_typedef),
5339         (g_igenerator_process_enum_typedef),
5340         (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
5341         (g_igenerator_start_preprocessor):
5342         Parse @deprecated directive for functions.
5343         Remove some more C99isms.
5344         Send in -C to cpp to avoid stripping comments.
5345
5346         * tests/parser/foo-object.h:
5347         * tests/parser/Foo-expected.gidl:
5348         Add deprecated directive
5349
5350 2007-12-27  Johan Dahlin  <johan@gnome.org>
5351
5352         * src/scannerlexer.l (intsuffix): Add emacs mode line and
5353         escape ' and " so it looks more like C.
5354
5355         * src/scanner.c:
5356         Unlink temporary file used.
5357
5358 2007-12-27  Johan Dahlin  <johan@gnome.org>
5359
5360         * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
5361         (g_igenerator_start_preprocessor), (main):
5362         * src/scanner.h:
5363         * src/scannerparser.y:
5364         Plug a couple of simple memory leaks.
5365
5366 2007-12-27  Johan Dahlin  <johan@gnome.org>
5367
5368         * src/scanner.c: (g_igenerator_parse_macros),
5369         (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
5370         (main):
5371         * src/scanner.h:
5372         * src/scannerparser.y:
5373         * tests/parser/Makefile.am:
5374
5375         Improve error reporting, return when the preprocessor fails.
5376         Add a verbose parameter, to aid debugging.
5377         Revert to using a temporary file to communicate between the
5378         preprocessor and the parser, because we need to wait for
5379         the exit code from the pre-processor before starting to parse.
5380
5381 2007-12-16  Johan Dahlin  <jdahlin@async.com.br>
5382
5383         * src/Makefile.am: Rename clexer.l to scannerlexer.l and
5384         cparser.y to scannerparser.y
5385
5386 2007-12-11  Johan Dahlin  <johan@gnome.org>
5387
5388         * src/clexer.l:
5389         * src/cparser.y:
5390         * src/scanner.c: (g_igenerator_new):
5391         * src/scanner.h:
5392         Get rid of the global the_generator variable.
5393
5394 2007-12-10  Johan Dahlin  <johan@gnome.org>
5395
5396         * src/scanner.c (main): Add an output option,
5397         add checks for required parameters
5398
5399         * src/Makefile.am:
5400         set BUILD_SOURCES and CLEANFILES properly
5401
5402         * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5403         (g_writer_write_indent), (g_writer_write_unindent),
5404         (field_generate), (value_generate), (constant_generate),
5405         (property_generate), (function_generate), (vfunc_generate),
5406         (signal_generate), (interface_generate), (struct_generate),
5407         (union_generate), (boxed_generate), (enum_generate),
5408         (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5409         * src/gidlwriter.h:
5410         * src/scanner.c: (g_igenerator_generate):
5411         * src/scanner.h:
5412         * src/scannerwriter.c:
5413
5414         Refactor scannerwriter to only be tied to a GIdlModule and move
5415         it (again!) to gidlwriter.c. Change the writer function to take
5416         a filename.
5417
5418 2007-12-10  Johan Dahlin  <johan@gnome.org>
5419
5420         * src/Makefile.am:
5421         * src/scanner.c: (g_igenerator_generate):
5422         * src/scanner.h:
5423         * src/scannerwriter.c: (g_igenerator_write_inline),
5424         (g_igenerator_write), (g_igenerator_write_indent),
5425         (g_igenerator_write_unindent), (field_generate), (value_generate),
5426         (constant_generate), (property_generate), (function_generate),
5427         (vfunc_generate), (signal_generate), (interface_generate),
5428         (struct_generate), (union_generate), (boxed_generate),
5429         (enum_generate), (node_generate), (module_generate),
5430         (g_scanner_write_file):
5431
5432         Move the scanner gidl writing to a separate source file.
5433
5434 2007-12-10  Johan Dahlin  <johan@gnome.org>
5435
5436         * src/cparser.y:
5437         * src/scanner.c:
5438         * src/scanner.h:
5439         Move over all CType construction functions.
5440
5441         * tests/parser/Makefile.am:
5442         Be verbose when printing parsing tests results.
5443
5444 2007-12-10  Johan Dahlin  <johan@gnome.org>
5445
5446         * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5447         preprocessor handling to here. Start cpp insteado of cc -E,
5448         always include -U__GNUC__, since it's specific to the preprocessor
5449         we use.
5450
5451         * tests/parser/Makefile.am (check-local): Silent diff and skip
5452         -U__GNUC__ which is always defined now
5453
5454 2007-12-10  Johan Dahlin,,,  <jdahlin@plasttroll>
5455
5456         reviewed by: <delete if not using a buddy>
5457
5458         * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5459         * tests/parser/Makefile.am:
5460
5461 2007-12-09  Johan Dahlin  <johan@gnome.org>
5462
5463         * src/scanner.c:
5464         Use GOption for command line options.
5465         (g_igenerator_new, main): Simplify constructor and they way
5466         parameters are passed into it.
5467
5468         * src/cparser.y:
5469         * src/Makefile.am:
5470         * src/clexer.l:
5471         * src/cparser.y:
5472         * src/gen-introspect.c:
5473         * src/gen-introspect.h:
5474         * src/scanner.c:
5475         Rename gen-introspect.[ch] to scanner.[ch]
5476
5477 2007-12-09  Johan Dahlin  <johan@gnome.org>
5478
5479         * TODO: Update
5480
5481         * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5482         don't make the repository library and the other utilites link against
5483         gthread-2.0
5484
5485         * src/gen-introspect.c: (g_igenerator_create_object),
5486         (g_igenerator_create_interface), (g_igenerator_create_boxed),
5487         (g_igenerator_create_enum), (g_igenerator_create_flags),
5488         (g_igenerator_process_module_symbol),
5489         (g_igenerator_process_module), (g_igenerator_generate), (main):
5490         * src/gen-introspect.h:
5491         Refactor g_igenerator_process_types into smaller pieces.
5492
5493         * tests/parser/Makefile.am:
5494         Depend on the gen-introspect binary
5495
5496 2007-12-09  Johan Dahlin  <johan@gnome.org>
5497
5498         * src/gen-introspect.c (g_igenerator_process_types):
5499         Break into smaller pieces, one for each generated node type.
5500
5501 2007-12-08  Johan Dahlin  <johan@gnome.org>
5502
5503         * src/gen-introspect.c: (g_igenerator_process_types),
5504         (g_igenerator_add_module):
5505         * tests/parser/Foo-expected.gidl:
5506         * tests/parser/foo-object.h:
5507         * tests/parser/foo.c: (foo_subobject_class_init),
5508         (foo_subobject_init):
5509
5510         Add a subobject test and make sure to register defined classes
5511         in the lookup symbol hash table.
5512
5513 2007-12-08  Johan Dahlin  <johan@gnome.org>
5514
5515         * gidl/GLib.gidl:
5516         * src/Makefile.am:
5517         * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5518         (g_igenerator_process_types), (g_igenerator_add_module),
5519         (g_igenerator_add_include_idl), (main):
5520         * src/gen-introspect.h:
5521         * tests/parser/Makefile.am:
5522         * tests/parser/Foo-expected.gidl:
5523
5524         Change the gen-introspect to generate namespaced module names,
5525         such as GLib.Object instead of GObject.
5526         Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5527         add a --include-idl parameter to gen-introspect,
5528         and update the parser test.
5529
5530 2007-12-08  Johan Dahlin  <johan@gnome.org>
5531
5532         * src/gen-introspect.c:
5533         Move main to the end of the file and attempt to make it valid
5534         ansi c.
5535
5536         * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5537         we're not quite ready to generate metadata yet.
5538
5539         * tests/parser/:
5540         * configure.ac:
5541
5542         Add a simple gen-introspect parser test
5543
5544 2007-12-06  Gustavo J. A. M. Carneiro  <gjc@gnome.org>
5545
5546         reviewed by: Johan Dahlin  <johan@gnome.org>
5547
5548         * configure.ac:
5549         * gobject-introspection.pc.in:
5550         * src/Makefile.am:
5551         * src/compiler.c: (format_output), (write_out_metadata), (main):
5552         * src/gen-introspect.c: (main):
5553         * src/gen-introspect.h:
5554         * src/generate.c: (write_callable_info), (write_repository),
5555         (load_metadata), (main):
5556         * src/gidlmodule.c: (g_idl_module_new),
5557         (g_idl_module_build_metadata):
5558         * src/gidlmodule.h:
5559         * src/gidlparser.c: (start_element_handler):
5560         * src/ginfo.c: (g_info_new), (g_info_from_entry),
5561         (g_base_info_get_name), (g_base_info_get_namespace),
5562         (g_base_info_is_deprecated), (g_base_info_get_annotation),
5563         (g_base_info_get_metadata), (g_function_info_get_symbol),
5564         (g_function_info_get_flags), (g_function_info_get_property),
5565         (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5566         (g_callable_info_may_return_null),
5567         (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5568         (g_callable_info_get_arg), (g_arg_info_get_direction),
5569         (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5570         (g_arg_info_is_optional), (g_arg_info_may_be_null),
5571         (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5572         (g_type_info_get_tag), (g_type_info_get_param_type),
5573         (g_type_info_get_interface), (g_type_info_get_array_length),
5574         (g_type_info_is_zero_terminated),
5575         (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5576         (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5577         (g_value_info_get_value), (g_field_info_get_flags),
5578         (g_field_info_get_size), (g_field_info_get_offset),
5579         (g_registered_type_info_get_type_name),
5580         (g_registered_type_info_get_type_init),
5581         (g_struct_info_get_n_fields), (g_struct_info_get_field),
5582         (g_struct_info_get_n_methods), (g_struct_info_get_method),
5583         (find_method), (g_struct_info_find_method),
5584         (g_enum_info_get_n_values), (g_enum_info_get_value),
5585         (g_object_info_get_parent), (g_object_info_get_type_name),
5586         (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5587         (g_object_info_get_interface), (g_object_info_get_n_fields),
5588         (g_object_info_get_field), (g_object_info_get_n_properties),
5589         (g_object_info_get_property), (g_object_info_get_n_methods),
5590         (g_object_info_get_method), (g_object_info_find_method),
5591         (g_object_info_get_n_signals), (g_object_info_get_signal),
5592         (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5593         (g_object_info_get_n_constants), (g_object_info_get_constant),
5594         (g_interface_info_get_n_prerequisites),
5595         (g_interface_info_get_prerequisite),
5596         (g_interface_info_get_n_properties),
5597         (g_interface_info_get_property), (g_interface_info_get_n_methods),
5598         (g_interface_info_get_method), (g_interface_info_find_method),
5599         (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5600         (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5601         (g_interface_info_get_n_constants),
5602         (g_interface_info_get_constant), (g_property_info_get_flags),
5603         (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5604         (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5605         (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5606         (g_constant_info_get_value), (g_union_info_get_n_fields),
5607         (g_union_info_get_field), (g_union_info_get_n_methods),
5608         (g_union_info_get_method), (g_union_info_is_discriminated),
5609         (g_union_info_get_discriminator_offset),
5610         (g_union_info_get_discriminator):
5611         * src/ginvoke.c: (g_function_info_invoke):
5612         * src/girepository.c: (g_irepository_register),
5613         (g_irepository_unregister), (g_irepository_get_default),
5614         (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5615         (g_irepository_get_info), (g_irepository_find_by_name),
5616         (g_irepository_get_shared_library),
5617         (g_irepository_build_search_path), (g_irepository_register_file),
5618         (g_irepository_error_quark):
5619         * src/girepository.h:
5620         * src/gmetadata.c: (g_metadata_get_dir_entry),
5621         (g_metadata_check_sanity), (validate_header),
5622         (validate_array_type_blob), (validate_iface_type_blob),
5623         (validate_param_type_blob), (validate_error_type_blob),
5624         (validate_type_blob), (validate_arg_blob),
5625         (validate_signature_blob), (validate_function_blob),
5626         (validate_callback_blob), (validate_constant_blob),
5627         (validate_value_blob), (validate_field_blob),
5628         (validate_property_blob), (validate_signal_blob),
5629         (validate_vfunc_blob), (validate_struct_blob),
5630         (validate_enum_blob), (validate_object_blob),
5631         (validate_interface_blob), (validate_errordomain_blob),
5632         (validate_union_blob), (validate_blob), (validate_directory),
5633         (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5634         (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5635         (g_metadata_new_from_mapped_file), (g_metadata_free),
5636         (g_metadata_set_module), (g_metadata_get_namespace):
5637         * src/gmetadata.h:
5638         * tests/Makefile.am:
5639         * tests/invoke/Makefile.am:
5640         * tests/invoke/invoke-namespace-find.sh:
5641         * tests/invoke/invoke.c: (main):
5642
5643         Add a namespace/shared library mapping. fixes #313268.
5644
5645 2007-12-03  Johan Dahlin  <johan@gnome.org>
5646
5647         * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5648         guchar for now.
5649
5650 2007-11-30  Jürg Billeter  <j@bitron.ch>
5651
5652         * configure.ac:
5653         * src/Makefile.am:
5654         * src/clexer.l:
5655         * src/cparser.y:
5656         * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5657         (g_igenerator_write_inline), (g_igenerator_write),
5658         (g_igenerator_write_indent), (g_igenerator_write_unindent),
5659         (field_generate), (value_generate), (constant_generate),
5660         (property_generate), (function_generate), (vfunc_generate),
5661         (signal_generate), (interface_generate), (struct_generate),
5662         (union_generate), (boxed_generate), (enum_generate),
5663         (node_generate), (module_generate), (get_type_from_type_id),
5664         (str_replace), (g_igenerator_process_properties),
5665         (g_igenerator_process_signals), (g_igenerator_process_types),
5666         (get_type_from_ctype), (g_igenerator_process_function_symbol),
5667         (g_igenerator_process_unregistered_struct_typedef),
5668         (g_igenerator_process_struct_typedef),
5669         (g_igenerator_process_union_typedef),
5670         (g_igenerator_process_enum_typedef),
5671         (g_igenerator_process_function_typedef),
5672         (g_igenerator_process_constant), (g_igenerator_process_symbols),
5673         (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5674         (g_igenerator_generate), (main), (csymbol_new),
5675         (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5676         (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5677         (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5678         (eat_hspace), (eat_line), (read_identifier),
5679         (g_igenerator_parse_macros):
5680         * src/gen-introspect.h:
5681
5682         Import gen-introspect to generate introspection information by
5683         parsing C headers.
5684
5685 2007-11-30  Jürg Billeter  <j@bitron.ch>
5686
5687         * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5688
5689 2007-11-30  Jürg Billeter  <j@bitron.ch>
5690
5691         * src/gidlparser.c: (end_element_handler): Don't leave requires
5692         state too early.
5693
5694 2007-11-29  Johan Dahlin  <johan@gnome.org>
5695
5696         * src/gidlparser.c (parse_type_internal): Add char,
5697         gchar and guchar to the builtin types.
5698
5699 2007-11-26  Johan Dahlin  <johan@gnome.org>
5700
5701         * src/ginfo.c: (g_object_info_get_type_name),
5702         (g_object_info_get_type_init):
5703         * src/girepository.c: (g_irepository_is_registered):
5704         * src/girepository.h:
5705
5706         Add g_object_info_get_type_name, g_object_info_get_type_init and
5707         g_irepository_is_registered.
5708
5709 2006-08-14  Jürg Billeter  <j@bitron.ch>
5710
5711       * src/gidlparser.c: (end_element_handler): Don't leave
5712         namespace and implements states too early.
5713         Fixes #351264
5714
5715 2007-11-26  Johan Dahlin  <johan@gnome.org>
5716
5717         * src/gmetadata.c (validate_struct_blob):
5718         pass blob_type to validate_function_blob instead of
5719         hard-coding BLOB_TYPE_STRUCT.
5720
5721         Patch by Torsten Schoenfeld, fixes #314190
5722
5723 2006-10-03  Torsten Schoenfeld  <tsch@cvs.gnome.org>
5724
5725         * src/compiler.c, src/generate.c, src/gidlnode.c,
5726         src/gidlparser.c, src/ginfo.c, src/girepository.c,
5727         tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5728         warnings about return values, signedness mismatches, unused
5729         variables, and unhandles enum values in switch statements.
5730
5731         * tests/invoke/Makefile.am: Don't install the invoke test program.
5732         Add -I ../../src to the cflags used for the test functions files.
5733
5734 2005-08-31  Torsten Schoenfeld  <tsch@cvs.gnome.org>
5735
5736         * src/girepository.h: Export g_invoke_error_quark.
5737
5738 2005-08-31  Torsten Schoenfeld  <tsch@cvs.gnome.org>
5739
5740         * src/ginvoke.c: Remove the fallback implementation of
5741         g_function_info_invoke since we now formally depend on libffi.
5742
5743 2005-07-25  Matthias Clasen  <mclasen@redhat.com>
5744
5745         * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5746         Remove these files from cvs, as they are now generated.
5747
5748         * src/gmetadata.c (validate_iface_type_blob): Don't
5749         complain if blob->pointer is not set, since that
5750         happens for enum and flag types.  (#308935, Gustavo
5751         Carneiro)
5752
5753         * Commit an autoconf-conversion patch by
5754         Gustavo Carneiro (#308708)
5755
5756 2005-05-24  Matthias Clasen  <mclasen@redhat.com>
5757
5758         * src/compiler.c (main): Use it here to validate
5759         the generated metadata.
5760
5761         * src/gmetadata.[hc]: Add code to validate a
5762         metadata blob.
5763
5764         * metadata-format.txt: Updates
5765
5766 2005-05-22  Matthias Clasen  <mclasen@redhat.com>
5767
5768         * tests/*: Add struct offsets to field and vfunc
5769         elements.
5770
5771         * src/generate.c (write_vfunc_info): Write offset
5772         information for vfuncs.
5773
5774         * src/gidlnode.c (g_idl_node_build_metadata): Write
5775         the struct offsets into the metadata.
5776
5777         * src/gidlparser.c: Parse the offset attributes of
5778         field and vfunc elements.
5779
5780         * src/gidlnode.h: Add offset members to field and
5781         vfunc nodes.
5782
5783 2005-05-21  Matthias Clasen  <mclasen@redhat.com>
5784
5785         * TODO: Updates.
5786
5787         * gidl.dtd: Updates.
5788
5789         * src/g-idl-offsets.pl: A perl script which reads a .gidl
5790         file, creates, compiles and runs a C file, and folds the
5791         resulting struct offsets back into the .gidl file.
5792
5793 2005-05-20  Matthias Clasen  <mclasen@redhat.com>
5794
5795         * src/gidlparser.c (start_field): Make fields in objects
5796         work.
5797
5798         * src/gidlmodule.c: Include string.h
5799
5800         * TODO: Updates.
5801         :
5802
5803         * metadata-format.txt: Cleanup basic types.
5804         * src/*: Adapt to the changes.
5805         * tests/*: Adapt to the changes.
5806         * examples/gdk-pixbuf.gidl: Adapt to the changes.
5807
5808         * src/gidlnode.c (g_idl_node_get_size): Report the correct
5809         size for enum blobs.
5810         (g_idl_node_get_full_size): Report the correct size for
5811         function blobs.
5812
5813         * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5814         error checking for blob sizes.
5815
5816 2005-05-19  Matthias Clasen  <mclasen@redhat.com>
5817
5818         * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5819         interface types for which is_pointer is FALSE, e.g. enums.
5820
5821         * src/gidlnode.c (g_idl_node_get_full_size)
5822         * src/gidlparser.c (parse_type_internal):
5823         * src/generate.c (write_type_info): Support unspecialized
5824         lists, hashtables and errors. Also emit a '*' after these.
5825
5826         * TODO: Updates
5827
5828 2005-05-17  Matthias Clasen  <mclasen@redhat.com>
5829
5830         * TODO: Updates
5831
5832         * metadata-format.txt: Cleanups by Maciej Katafiasz.
5833
5834 2005-05-15  Matthias Clasen  <mclasen@redhat.com>
5835
5836         * src/*.c: Change the directory to be addressed by
5837         1-based indexes, and use an index of zero to mean
5838         'no object'.
5839
5840 2005-05-15  Matthias Clasen  <mclasen@redhat.com>
5841
5842         * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5843
5844         * tests/union.test: Add a union test.
5845
5846         * src/generate.c: Handle unions.
5847
5848         * src/girepository.h:
5849         * src/ginfo.c: Add GIUnionInfo and functions to access it.
5850
5851         * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5852
5853         * src/gidlparser.c (start_union): Parse <union> elements.
5854
5855         * src/gidlnode.h: Add a GIdlNodeUnion.
5856
5857         * gidl.dtd: Add a <union> element.
5858
5859         * src/gmetadata.c (g_metadata_check_sanity): Check
5860         union_blob_size.
5861
5862         * src/gmetadata.h: Add union_blob_size to Header,
5863         add a UnionBlob.
5864
5865         * metadata-format.txt: Add a UnionBlob.
5866
5867 2005-05-13  Matthias Clasen  <mclasen@redhat.com>
5868
5869         * tests/*: Update testcases.
5870
5871         * src/generate.c (write_callable_info): Don't forget to
5872         write transfer and null-ok attributes for return types
5873         and parameters.
5874
5875         * src/girepository.h:
5876         * src/ginfo.c (g_callable_info_may_return_null):
5877         New function to find out if a function may return NULL.
5878
5879         * src/compiler.c (format_output): Make the generated
5880         C code compile.
5881
5882         * README: Point to a recent libffi snapshot.
5883
5884         * tests/invoke/*: Some invoke tests.
5885
5886         * src/Makefile: Add ginvoke.c and the necessary
5887         libffi information.
5888
5889         * src/girepository.h (g_function_info_invoke): Add
5890         a GError argument.
5891
5892         * src/ginvoke.c (g_function_info_invoke): Initial
5893         implementation of invoke functionality based on libffi.
5894
5895         * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5896         strings and types hash tables in the right order when
5897         recursing.
5898         (find_entry_node): Free the name parts.
5899
5900 2005-05-12  Johan Dahlin  <johan@gnome.org>
5901
5902         * src/generate.c: Generate consistent end tags.
5903
5904         * tests/*: Update
5905
5906 2005-05-12  Matthias Clasen  <mclasen@redhat.com>
5907
5908         * TODO: Updates
5909
5910         * src/gidlparser.c (start_function): Actually add
5911         methods to objects.  (Steven Walter)
5912
5913         * src/girepository.h:
5914         * src/ginfo.c: Rename Transfer and Direction to
5915         GITransfer and GIDirection. (Torsten Schoenfeld)
5916
5917         * tests/*: Make tests work with the changes in name
5918         handling.
5919
5920         * src/gidlnode.c (find_entry_node): Parse qualified
5921         names and generate xref nodes for them if needed. Don't
5922         require all modules to be loaded any more.
5923
5924         * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5925         on '.' in names.
5926
5927         * src/ginfo.c (g_object_info_get_parent): Return NULL
5928         if blob->parent is 0. Still need to make sure index
5929         0 is not used.
5930
5931         * src/generate.c: Generate qualified names when
5932         referring to non-local types. Emit transfer attribute
5933         for return types.
5934
5935         * src/compiler.c (format_output): Put the function
5936         attributes where gcc accepts them.
5937
5938 2005-05-11  Matthias Clasen  <mclasen@redhat.com>
5939
5940         * src/compiler.c (main): Add a --verbose cmdline option
5941         and only log messages if it is specified.
5942
5943         * src/gidlnode.h:
5944         * src/gidlnode.c (init_stats, dump_stats): Collect some
5945         statistics on string and type sharing.
5946
5947         * src/gidlmodule.c (g_idl_module_build_metadata): Use
5948         g_message() instead of fprintf().
5949
5950         * src/gidlnode.c (g_idl_node_free): Make this more robust.
5951         (g_idl_node_get_size): Implement for structs.
5952         (g_idl_node_get_full_size): Handle parent being NULL.
5953         (serialize_type): Handle lookup failures more gracefully.
5954
5955 2005-05-10  Matthias Clasen  <mclasen@redhat.com>
5956
5957         * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5958         size calculation for 2-parameter types and for objects.
5959
5960         * src/compiler.c: Add a cmdline option for debug output
5961         and install a log handler to implement it.
5962         * src/gidlnode.c: Add some debug spew.
5963
5964         * TODO: Updates
5965
5966         * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5967         forget to count the module name when calculating the
5968         required size for the metadata.
5969
5970         * src/gidlnode.c:
5971         * src/gidlparser.c: Fix compiler warnings.
5972
5973 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
5974
5975         * src/compiler.c (main): Free the option context.
5976
5977         * gidl.dtd: Clean up handling of names. All elements
5978         have a "name", only the elements corresponding to
5979         actual callable functions (function, method, constructor),
5980         have an additional "symbol" attribute holding the
5981         dlsym()-able function name.
5982
5983         * src/generate.c: Adapt to generate xml matching the
5984         new dtd.
5985
5986         * src/gidlparser.c:
5987         * src/gidlnode.c: Adapt to parse the new dtd.
5988
5989         * tests/*.test: Adjust to the new dtd.
5990
5991         * metadata-format.txt:
5992         * src/gmetadata.h: Remove the short_name field
5993         from the ValueBlob.
5994         * src/gmetadata.c: Shrink size of ValueBlob to 12.
5995         * src/girepository.h:
5996         * src/ginfo.c (g_value_info_get_short_name): Removed
5997
5998 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
5999
6000         * gidl.dtd: Allow constructors for boxed types,
6001         patch by Jonathan Blandford.
6002
6003
6004 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
6005
6006         * --- Initial import ---