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