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