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