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