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