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