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