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