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