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