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