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