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