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