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