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