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