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