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