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