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