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