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