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