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