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