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