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