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