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