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