1 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
3 * giscanner/ast.py: Define socklen_t as an alias for int32.
5 * giscanner/glibtransformer.py:
7 Execute the dumper program through libtool if it's installed,
8 so we avoid loading the installed version.
10 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
12 * girepository/gdump.c (dump_type): Remove a warning,
13 be less verbose on error on fundamental types.
15 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
17 * giscanner/dumper.py: Add license headers,
18 refactor into a class, avoid some duplication and do some
19 extra pedantic checks.
21 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
23 Make it compilable with -Werror on my system by adding
24 a couple of prototypes and including headers.
26 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
28 Bug 562022 – gobject-introspection needs python headers
30 * configure.ac: fail without python headers present.
33 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
35 Bug 561617 – Return value array annotations
37 * giscanner/transformer.py:
38 * tests/scanner/annotation.c (annotation_return_array):
39 * tests/scanner/annotation.h:
40 Add support for (array) for return value annotations as well.
42 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
44 * tests/everything/everything.[ch]: add a test function which calls a
47 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
49 * giscanner/cachestore.py:
50 Catch ValueError exceptions.
52 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
54 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
56 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
58 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
59 instead of hard-coding struct sizes.
61 2008-11-18 Owen Taylor <otaylor@redhat.com>
63 Bug 561296 - Add "storage type" to the typelib data for enums
65 In order to set and get enum and flag fields in structures, we need
66 to know the integral type that the enumeration is stored as. We are already
67 computing that at compile time in order to compute struct offsets, so the
68 easiest thing to do is to save that in the typelib.
70 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
71 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
72 and compute and save it at compile time.
74 * girepository/girepository.h girepository/ginfo.c:
75 Add g_enum_info_get_storage_type().
77 * girepository/gfield.c: Implement reading and writing enum and flags fields
78 based on the storage type.
80 2008-11-18 Owen Taylor <otaylor@redhat.com>
82 Add enums to the Everything test module
84 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
85 test module and register them as GTypes.
87 https://bugzilla.gnome.org/show_bug.cgi?id=561296
89 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
91 * giscanner/cachestore.py:
92 Catch BadPickleGet exceptions as well.
94 2008-11-17 Owen Taylor <otaylor@redhat.com>
96 * tests/everything/everything.c: Fix doc comment annotations
97 for test_struct_b_clone() to refer to the right function.
99 2008-11-17 Dan Winship <danw@gnome.org>
101 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
102 spelling of GHashTable. #561135
104 * tests/scanner/annotation.c (annotation_object_get_hash):
105 * tests/scanner/annotation-1.0-expected.gir:
106 * tests/scanner/annotation-1.0-expected.tgir: add a test of
107 GHashTable annotations
109 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
111 * giscanner/ast.py: Change string array match type to be in terms
112 of canonicalized type.
113 * giscanner/transformer.py: Add canonicalize_ctype which gives us
114 a version of a c:type without aliases, so we can deep canonicalize
115 char** to utf8*. Update parse_ctype to use it.
116 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
118 2008-11-16 Colin Walters <walters@verbum.org>
120 * girepository/girepository.c: Ensure we always call init_globals,
121 even if passed a non-default repository.
123 2008-11-16 Colin Walters <walters@verbum.org>
125 Bug 559706 - Interface prerequisites
127 * common.mk: Dep on libgirepository.la for scanner libs so that
128 we rebuild things even if just gdump.c changes.
129 * girepository/gdump.c: Dump prerequisites.
130 * giscanner/ast.py: Add prerequisite list.
131 * giscanner/girparser.py: Parse them from gdump.
132 * giscanner/girwriter.py: Write them.
133 * giscanner/glibtransformer.py: Resolve them.
136 2008-11-16 Owen Taylor <otaylor@redhat.com>
138 Bug 561087 - Respect is_pointer in serialize_type()
140 Add a '*' to the serialization for the cases where we set is_pointer
141 in the type blob we write out depending on node->is_pointer. Don't
142 add the '*' in the cases where is_pointer is set or not set in a
145 http://bugzilla.gnome.org/show_bug.cgi?id=561087
147 2008-11-16 Owen Taylor <otaylor@redhat.com>
149 Bug 560825 – Add size and alignment to typelib
151 Include the size and alignment of structures and unions in the typelib,
152 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
154 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
155 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
156 to StructBlob and UnionBlob.
158 * girepository/ginfo.c girepository/girepository.h:
159 Add g_[struct|union]_get[size|alignment]().
161 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
163 2008-11-16 Owen Taylor <otaylor@redhat.com>
165 Bug 552371 – implement struct field get/set
167 * girepository/gfield.c girepository/girepository.h: Add
168 convenience functions g_field_info_set_field() and
169 g_field_info_get_field() to set and get fields based on the
170 offsets in GIFieldInfo.
172 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
174 Bug 560241 - Out-arguments should not be marked as being pointers
177 * girepository/girparser.c: Improved logic for out arguments.
179 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
181 Bug 559601 - Pointers in structs/unions unduly treated as arrays
183 * giscanner/transformer.py: Differentiate type creation logic
184 between parameters and struct components.
186 2008-11-15 Colin Walters <walters@verbum.org>
188 * giscanner/dumper.py: Check return code from pkg-config
191 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
193 * tests/everything/everything.c (test_array_int_in),
194 (test_array_gtype_in):
195 * tests/everything/everything.h:
196 Rename the int/gtype array tests. Make the return value
197 useful, an aggregation of the array input values.
199 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
201 * tests/everything/Makefile.am:
202 * tests/everything/everything.c:
203 * tests/everything/everything.h:
204 * tests/everything/gitesttypes.c:
205 * tests/everything/gitesttypes.h:
206 Rename gitesttypes.[ch] to everything.[ch]
208 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
210 Bug 560708 – Don't treat arrays that have a length specified as
211 zero-terminated by default
213 * giscanner/transformer.py: Default to non zero terminated for
215 * tests/*: Update, add test for zero vs not.
217 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
219 Bug 557788 - Return types for constructors in generated typelib bogus
221 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
222 obviously broken in the face of duplicate names in different
224 * tests/scanner/*expected.gir: Fix up.
226 2008-11-13 Owen Taylor <otaylor@redhat.com>
228 * girepository/girffi.c: Fix "Unexpected time for time_t"
231 2008-11-13 Colin Walters <walters@verbum.org>
233 Bug 558436 - avoid having scanner load app code
235 * giscanner/cgobject.py: Delete; we no longer load shared
237 * giscanner/dumper.py: Support for linking a library to
238 a stub binary for introspection.
239 * giscanner/glibtransformer.py: Rewrite to use gdump XML
240 from invocation of child binary.
241 * giscanner/transformer.py: Fix up to use fully qualified
242 name in parse tree. Make parse_ctype public so we can use
243 it inside glibtransformer.
244 * tests/scanner/barapp.c: New test, using --program arg
246 * tests/*: Update to use common.mk for invoking scanner.
247 * tools/g-ir-scanner: Add options --program, --program-arg,
249 * docs/g-ir-scanner.1: Update.
251 2008-11-13 Colin Walters <walters@verbum.org>
253 * configure.ac: Depend on Gio, we use it in gdump.c.
254 * girepository/gdump.c: Code to dump GType data to XML.
255 * girepository/girepository.c: Add option group for dumping.
256 * girepository/girepository.h: Define API for the above.
258 2008-11-13 Colin Walters <walters@verbum.org>
260 * common.mk: Add a file to include with Makefile fragments
261 useful for scanner invocation.
263 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
265 * tests/everything/gitesttypes.c (test_filename_return): Return
266 strings in filename encoding.
268 2008-11-13 Owen Taylor <otaylor@redhat.com>
270 Bug 560253 – Add structure and boxed types to Everything test module
272 * tests/everything/gitesttypes.[ch]: Add examples of:
274 Plain old data structs
275 Plain old data structs with nested fields
277 Plain old data boxed with nested fields
278 More complicated boxed types with internal state
280 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
282 * tests/everything/gitesttypes.c (test_gtype_in):
283 * tests/everything/gitesttypes.h:
284 Add a test of GType arrays, a la gtk_list_store_set_columns.
286 2008-11-12 Owen Taylor <otaylor@redhat.com>
288 Bug 560419 – Cache includes when parsing
290 Keep track of all modules parsed within a GIrParser, and when a
291 module is referenced a second time, use the existing parsed copy
292 instead of reparsing.
294 2008-11-12 Owen Taylor <otaylor@redhat.com>
296 Fix management of ParseContext.includes_modules (#560419)
298 * girepository/girparser.c: Fix some trivial bugs in managing the
299 list of include modules. (Add to module's list twice, not
300 initialized to NULL, not freed.)
302 2008-11-12 Owen Taylor <otaylor@redhat.com>
304 Keep aliases and disguised_structures local to each module (#560419)
306 * girepository/girmodule.[ch]: When parsing, keep keep a separate
307 hash tables of aliases and 'disguised' flags for each module, and
308 store that on the module.
310 After parsing an include merge the aliases/disguised flags to the
313 * girepository/girparser.c: Remove 'prefix_aliases' flag and
314 always prefix aliases/disguised structure types when parsing; this
315 simplifies the code considerably.
317 2008-11-12 Owen Taylor <otaylor@redhat.com>
319 Fix mismatches between .gir name and 'name' attribute (#560419)
321 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
322 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
323 where the 'name' element of <namespace/> didn't match the filename of the
324 gir, an assumption that the compiler has always expected and now enforces.
326 2008-11-12 Owen Taylor <otaylor@redhat.com>
328 Only allow one <namespace/> element per <repository/> (#560419)
330 * girepository/girparser.c: The logic in girparser.c didn't work
331 very well if there were multiple <namespace/> nodes within a
332 single <repository/> (context->namespace was always the overall
333 filename and not the the name specified in the <namespace/>
334 element for one thing; this would cause aliases to be mis-prefixed
335 in include modules.) Also check that the "name" in the
336 <namespace/> node matches the filename.
338 2008-11-12 Owen Taylor <otaylor@redhat.com>
340 Add a GirParser object to hold the state of a compilation
342 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
343 GirParser object to hold state that is global across a
344 compilation. Currently just holds the include path, but will
345 eventually also keep a cached list of parsed modules.
347 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
349 * girepository/girepository.c (find_namespace_latest): Fix
352 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
354 * configure.ac: use 'introspection' component for bugs
356 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
358 * tests/everything/gitesttypes.c (test_filename_return):
359 * tests/everything/gitesttypes.h:
360 Add a filename return test.
362 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
364 * tests/offsets/Makefile.am (gitestoffsets.c): fix
365 gen-gitestoffsets invocation with builddir != srcdir
367 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
369 * girepository/girepository.c:
370 Change the element type from utf8 to filename
371 * girepository/girnode.c (g_ir_node_build_typelib):
372 Special case filename equally to utf8 here.
374 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
377 Remove unused variables, add a dependency of girepository.ch, so when
378 they change we rebuild the gir automatically.
380 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
382 * girepository/girepository.c (g_irepository_get_search_path):
383 * girepository/girepository.h:
384 Add a g_irepository_get_search_path, so we can access the search
387 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
389 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
391 * girepository/girparser.c: avoid freeing an uninitialized pointer
393 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
396 * giscanner/glibtransformer.py:
397 * tools/g-ir-scanner:
398 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
399 so we can just pass in --library=foo/bar/baz.la and the scanner
400 does the right thing.
401 Don't warn for _get_type() functions if they don't take any
404 2008-11-11 Owen Taylor <otaylor@redhat.com>
406 Bug 560404 – Prefix types when resolving aliases in included modules
408 * girepository/girparser.c: When resolving aliases in an included
409 module, prefix types before looking them up.
411 2008-11-11 Owen Taylor <otaylor@redhat.com>
413 Compute field offsets and overall size for object structures
415 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
416 field of type object in structure"
418 Do basic computation of field offsets for objects and interfaces;
419 this doesn't attempt to address all of the "mess" for virtual
420 functions described in Bug 560281.
422 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
424 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
426 Based on patch by Johan Bilien.
428 * giscanner/transformer.py (_create_member, _create_parameter):
429 Resolve types here as well.
430 (_resolve_type_name_1): Try resolving using 'ctype' first since
431 it's least ambiguous. Fixes struct member type resolution with
432 similarly named types, e.g. Gdk.PangoRendererClass and
434 * tests/scanner/foo*: Add test.
436 2008-11-11 Owen Taylor <otaylor@redhat.com>
438 * girepository/girparser.c: Search provided include dirs before
439 the default directories.
441 2008-11-11 Owen Taylor <otaylor@redhat.com>
443 * girepository/giroffsets.c: Include fully-qualified names in
446 2008-11-11 Owen Taylor <otaylor@redhat.com>
448 * girepository/giroffsets.c: Fail gracefully with an informative
449 error message when recursion is encountered when computing a
452 2008-11-11 Owen Taylor <otaylor@redhat.com>
454 * girepository/girparser.c: Remove an unused variable.
456 2008-11-10 Owen Taylor <otaylor@redhat.com>
458 Add tests for field offset computations
460 * tests/offsets/offsets.h: Header file with structure definitions to test
462 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
463 field offsets for the structures in offsets.h two ways: using
464 the information from a generated typelib, and as computed by the
467 We diff these two versions to test that everything is OK.
469 2008-11-10 Owen Taylor <otaylor@redhat.com>
471 Remove field offsets from g-ir-generate output and test inputs
473 Field offsets are a) architecture dependent so they shouldn't be part
474 of the architecture-independent gir format which is installed in
475 datadir. b) Are architecture-dependent so they shouldn't be in test
478 * girepository/girparser.c: Don't parse offset for fields
479 * tools/generate.c: Don't parse offset for fields
480 * tests/*.gir test/scanner/*.tgir: Remove offsets
482 (Virtual function and discriminator offsets are not removed, as they
483 aren't fully hooked up to the field-offset computation machinery yet.)
485 2008-11-10 Owen Taylor <otaylor@redhat.com>
487 Bug 560252 - Compute field offsets before writing typelib
489 * girepository/girnode.h: Store the total size and alignment for
490 GIrNodeStruct/Boxed/Union.
492 * girepository/giroffset.c: New file implementing computation of
493 structure field offsets.
495 * girepository/girnode.c: Compute structure field offsets before
496 writing types into the typelib.
498 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
499 means "unknown". Also fix description of the discriminator_offset
502 2008-11-10 Owen Taylor <otaylor@redhat.com>
504 Bug 560250 - Fully parse included modules
506 For some things, like computing structure offsets to put into the typelib
507 we need more than just the aliases from included modules. Do a completel
508 parse of included modules and store in module->included_modules.
510 Also add g_ir_find_node() to find node information from within the
511 active set of modules and their includes.
513 2008-11-10 Owen Taylor <otaylor@redhat.com>
515 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
517 Extract a function to convert GITypeTag to ffi_type from the internals
518 of ginvoke.c. This will be useful in figure out structure alignment.
520 Also fix handling of gsize and time_t to be portable. (Add a check
521 to configure.ac to figure out the width of time_t.)
523 2008-11-10 Owen Taylor <otaylor@redhat.com>
525 Bug 560248 – "disguised structures"
527 Certain types like GIConv and GdkAtom are pointers internally but don't
528 look like pointers when referenced. They have the form.
530 typedef struct _X *X;
532 Parse these as structures/records but mark them in the gir with a 'disguised'
533 attribute so that we know that they need special handling.
535 In the typelib treat them like any other structure.
537 2008-11-09 Jürg Billeter <j@bitron.ch>
540 * giscanner/girwriter.py:
542 Write throws attribute for virtual functions, fixes bug 559703
544 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
546 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
547 up some confusion about the second argument to find_module, it's
548 actually the packages __path__ attribute which we can safely ignore
550 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
552 2008-11-07 Owen Taylor <otaylor@redhat.com>
554 Bug 559737 – Deal with continuations in macros
556 * giscanner/giscannerlexer.l: Treat continuation lines the same
557 as regular newlines. This makes the scanner not complain about
558 #define foo(x) \ <stuff> inside a C file. There's no attempt
559 however to handle parsing macro definitions split across lines.
561 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
563 * giscanner/cachestore.py:
564 Handle broken cache entries, write only filesystems and
565 running out of diskspace.
567 2008-11-07 Owen Taylor <otaylor@redhat.com>
569 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
570 Set current_filename before lexing the file so error messages
571 are reported in the right file.
573 2008-11-06 Colin Walters <walters@verbum.org>
575 * tests/everything/*: Add some tests for strv.
577 2008-11-05 Colin Walters <walters@verbum.org>
579 * girepository/ginvoke.c (g_function_info_invoke): Don't use
580 nested scope local variable for error which may go away after
581 conditional is complete.
583 2008-11-05 Colin Walters <walters@verbum.org>
585 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
586 manipulate hackily; just use GString. This avoids an
587 uninitialized memory read pointed out by Havoc.
589 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
591 * giscanner/__init__.py:
593 * giscanner/cachestore.py:
594 * giscanner/cgobject.py:
595 * giscanner/girparser.py:
596 * giscanner/girwriter.py:
597 * giscanner/giscannermodule.c:
598 * giscanner/glibast.py:
599 * giscanner/glibtransformer.py:
600 * giscanner/libtoolimporter.py:
601 * giscanner/minixpath.py:
602 * giscanner/odict.py:
603 * giscanner/sourcescanner.c:
604 * giscanner/sourcescanner.h:
605 * giscanner/sourcescanner.py:
606 * giscanner/transformer.py:
607 * giscanner/utils.py:
608 * giscanner/xmlwriter.py:
610 Relicense the giscanner library under LGPLv2+.
611 This has been approved by all contributors.
613 2008-11-01 Owen Taylor <otaylor@redhat.com>
615 Bug 558848 giparser.py: shared library should be optional
617 When parsing a .gir, allow the shared-library attribute
618 of <namespace/> to be missing: this corresponds to the handling
619 in libgirepository and elsewhere.
621 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
623 Bug 557898 – Fails to build on OSX 10.4
625 * configure.ac: Check for $shrext_cmds that should be implicitly
626 available if you're using libtool >= 2.0. If undefined, call
627 libtool --config explicitly to get its value.
628 * girepository/gtypelib.c: Remove special case for (non-)Darwin
631 2008-10-31 Colin Walters <walters@verbum.org>
633 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
635 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
637 * configure.ac: Post release version bump
640 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
644 * docs/release-checklist.txt:
647 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
649 * Makefile.am: add an upload-release target
650 * docs/release-checklist.txt:
651 Release process documentation
653 2008-10-31 Colin Walters <walters@verbum.org>
655 Bug 558109 – _g_typelib_init fails to find shared libraries
657 * transformer/glibtransformer.py: Use ctypes' find_library
658 on passed libraries and write that for the shared-library
659 entry. We want to avoid depending on -devel packages.
661 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
663 * docs/g-ir-scanner.1:
664 Document the renaming options.
666 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
668 * giscanner/Makefile.am:
669 * tests/invoke/Makefile.am:
670 * tests/repository/Makefile.am: List in-tree libraries first in
671 LDADD / LIBADD. If installed library is listed first, the
672 resulting binary will prefer installed version to one in .libs,
673 possibly making 'make check' behave strangely.
675 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
677 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
678 gir-repository from choking with gdk/quartz
680 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
682 * giscanner/giscannermodule.c (calc_attrs_length),
683 (pygi_collect_attributes):
684 * giscanner/xmlwriter.py:
685 Write a C version of the xml namespace formatter.
686 Saves 15% of the time it takes to create a gtk gir.
688 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
690 * giscanner/xmlwriter.py: Abstract attribute formatting
691 to a function external to the XMLWriter class.
693 * giscanner/scannerlexer.l:
694 Parse and discard __typeof and __attribute.
696 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
698 * giscanner/girparser.py:
699 Remove arguments from the constructor, move them to
700 separate accessors. Add a new parse_tree method
701 which takes an element tree instance.
702 * tools/g-ir-scanner:
703 Update callsite for this
705 * giscanner/Makefile.am:
706 * giscanner/cachestore.py:
707 * giscanner/transformer.py:
708 Cache the include parsing. Saves ~25% time when
709 creating vte (which includes everything up to gtk+).
711 2008-10-30 Colin Walters <walters@verbum.org>
713 * giscanner/transformer.py: Don't reparse includes
714 we've already processed.
716 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
718 * giscanner/girparser.py:
719 * giscanner/transformer.py:
720 Avoid parsing parameters, types etc when parsing
721 includes. Should speed up include parsing a bit.
723 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
725 * giscanner/girparser.py:
726 Avoid big if/else and use a dispatch table like
729 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
731 * giscanner/transformer.py:
732 Clean up include parsing and registration.
734 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
736 * giscanner/transformer.py:
739 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
741 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
744 construct PYTHONPATH just once
746 * tests/everything/Makefile.am:
747 * tests/scanner/Makefile.am:
748 add $(top_srcdir) to PYTHONPATH to
749 handle builddir != srcdir
751 * giscanner/libtoolimporter.py:
752 * giscanner/sourcescanner.py:
753 Make the libtoolimporter work when distchecking too.
755 Mostly based on patch by Tommi Komulainen
757 2008-10-29 Owen Taylor <otaylor@redhat.com>
759 * giscanner/glibtransformer.py: If a filename of an existing
760 file is passed to --library, hunt for it directly, rather than
761 searching for a corresponding library.
763 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
765 * giscanner/libtoolimporter.py:
766 * giscanner/sourcescanner.py:
767 Clean up the libtool importer a bit. Add a context so we
768 can use it through a with statement.
769 Don't just look in the current directory, look in the whole
772 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
774 Bug 558065 – gitesttypes should be installed
778 * tests/types/Makefile.am -> tests/everything/Makefile.am
779 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
780 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
781 move tests/types to tests/everything
783 * tests/everything/Makefile.am: build normal shared library
784 libgirepository-everything.so.1.0.0 and corresponding typelib
785 Everything-1.0.typelib
787 * tests/everything/Makefile.am: explicitly link libtool
788 versioning with typelib versioning with variables
790 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
792 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
794 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
796 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
799 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
801 Bug 558068 – when invoking a method, offset the in arguments by one,
804 * tests/invoke/invoke.c, tests/invoke/testfns.c,
805 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
806 * girepository/ginvoke.c: do not offset the index of given out
807 arguments by one for methods, "this" is provided as in argument only.
809 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
811 * gir/gio-2.0.c: add annotation for g_file_delete
813 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
815 Bug 558062 – provide and use paths in the .pc file
817 * gobject-introspection-1.0.pc.in: provide typelibdir variable
818 for where .typelibs should be installed (callers shouldn't need
819 to construct paths from bits and pieces)
821 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
823 Bug 557791 – g_irepository_require() could return a GTypelib *
825 * girepository/girepository.c: Return GTypelib; this is useful
826 for low level manipulation.
828 2008-10-25 Colin Walters <walters@verbum.org>
830 Bug 557788 – Return types for constructors in generated typelib bogus
832 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
833 rely on end pass resolution.
835 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
837 Bug 557786 - support fixed size arrays
839 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
840 * giscanner/scannerparser.y: Retain fixed array size.
841 * giscanner/ast.py: Add to note.
842 * giscanner/girwriter.py: Write to gir.
843 * girepository/girnode.c: Write it to typelib.
844 * tools/generate.c: Generate.
845 * tests/*: Add tests.
847 2008-10-25 Colin Walters <walters@verbum.org>
849 Bug 557076 - move typelibs to $libdir
851 * configure.ac: Steal some configury bits from dbus to expand
853 * gir/Makefile.am: Move to libdir.
854 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
855 instead just look at one hardcoded path in libdir.
856 * acinclude.m4: Bits from dbus.
858 2008-10-24 Johan Dahlin <johan@gnome.org>
860 * girepository/girnode.c (g_ir_node_check_unhandled_members):
861 Be quiet, do not warn about unhandled members.
863 2008-10-24 Johan Dahlin <johan@gnome.org>
865 * girepository/gtypelib.c:
866 Only use SHLIB_SUFFIX on darwin, otherwise use
867 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
869 2008-10-24 Lucas Rocha <lucasr@gnome.org>
871 Bug 557623 - Constructors shouldn't be flagged as methods.
873 * girepository/ginfo.c (g_function_info_get_flags): ditto.
875 2008-10-24 Johan Dahlin <johan@gnome.org>
877 * giscanner/scannerparser.y:
878 Check against division by zero for the modula operator.
879 This fixes header parsing of OSX system headers included
882 2008-10-24 Johan Dahlin <johan@gnome.org>
886 Add a CONTRIBUTORS file and dist it.
888 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
890 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
892 * girepository/girparser.c (parse_param_transfer):
893 * giscanner/transformer.py (_create_parameter, _create_return):
894 * giscanner/girwriter.py (_write_return, _write_parameter):
895 * tools/generate.c (write_callable_info): always write and
896 require "transfer-ownership" for return-values and parameters
899 * tests/invoke/testfns-1.0.gir:
901 * tests/scanner/DrawableAdditions.xml:
902 * tests/scanner/GtkFrob-1.0-expected.tgir:
903 * tests/scanner/annotation-1.0-expected.tgir:
904 * tests/scanner/drawable-1.0-expected.tgir:
905 * tests/scanner/drawable-injected-1.0-expected.gir:
906 * tests/scanner/drawable-injected-1.0-expected.tgir:
907 * tests/scanner/foo-1.0-expected.tgir: Updated
909 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
911 * giscanner/cgobject.py: build fundamental types same way as glib
913 * giscanner/glibtransformer.py (_type_from_gtype): record GType
914 when constructing the Type from it
916 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
917 the parameter is a GObject from its GType, if available.
919 * giscanner/glibtransformer.py (_adjust_transfer):
920 * tests/scanner/foo-1.0-expected.gir:
921 * tests/scanner/foo-1.0-expected.tgir: deduce
922 transfer-ownership from GTypes
924 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
926 * giscanner/transformer.py (_create_parameter):
927 * tests/scanner/foo-1.0-expected.gir: make varargs
928 transfer-ownership="none"
930 2008-10-23 Colin Walters <walters@verbum.org>
932 Bug 556739 - transfer ownership
934 * giscanner/ast.py: Refactor Parameter/Return to share
935 common attributes. Add transfer_inferred attribute
936 which says whether or not we made a guess.
937 * giscanner/transformer.py: Add much more extensive
938 heuristics around parameter and return transfer.
939 * giscanner/glibtransformer.py: Adjust to inspect
943 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
945 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
947 * tests/scanner/Makefile.am:
948 * tests/scanner/annotation-1.0-expected.tgir:
949 * tests/scanner/drawable-1.0-expected.tgir:
950 * tests/scanner/drawable-injected-1.0-expected.tgir:
951 * tests/scanner/foo-1.0-expected.tgir:
952 * tests/scanner/GtkFrob-1.0-expected.tgir:
953 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
954 annotations survive the roundtrip via typelib
956 The expectations are as currently produced by g-ir-generate,
957 comparison with the .gir files shows there are differences.
959 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
961 Bug 557468 – Support for GI_TYPELIB_PATH
963 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
964 provided paths to the global search path.
966 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
968 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
970 * tests/scanner/drawable-1.0-expected.tgir:
971 * tests/scanner/drawable-injected-1.0-expected.tgir:
972 * tests/scanner/foo-1.0-expected.tgir:
973 * tools/generate.c (write_object_info): write 'abstract'
974 attribute for classes
976 2008-10-22 Lucas Rocha <lucasr@gnome.org>
978 * girepository/girmodule.c, girepository/gtypelib.c,
979 girepository/girparser.[ch]: fix some build warnings.
981 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
983 Bug 557405 – Use 'allow-none' consistently
985 * docs/typelib-format.txt:
986 * girepository/ginfo.c (g_arg_info_may_be_null):
987 * girepository/girnode.c (g_ir_node_build_typelib):
988 * girepository/girnode.h (struct _GIrNodeParam):
989 * girepository/girparser.c (start_parameter):
990 * girepository/girwriter.c (function_generate):
991 * girepository/gtypelib.h (ArgBlob):
993 * tests/function.gir:
994 * tools/generate.c (write_callable_info): Use 'allow-none'
995 consistently throughout
997 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
999 Bug 557092 – Callback annotations not used
1001 * giscanner/transformer.py (_create_callback): use annotations
1003 * tests/scanner/annotation.h
1004 * tests/scanner/annotation-1.0-expected.gir: add tests
1006 2008-10-21 Colin Walters <walters@verbum.org>
1008 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1009 uncommented parameters.
1012 2008-10-21 Colin Walters <walters@verbum.org>
1014 * girepository/girepository.c: Ensure that when doing an unversioned
1015 require, we prefer items earlier in the search path to later ones.
1017 2008-10-21 Owen Taylor <otaylor@redhat.com>
1019 * giscanner/transformer.py: For string parameters allow transfer annotation
1020 to override the standard automatic guessing based on 'const'.
1022 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1024 Bug 557241 – "throws" flag for functions
1026 * tests/scanner/drawable-1.0-expected.gir,
1027 tests/scanner/drawable-injected-1.0-expected.gir,
1028 tests/scanner/drawable.[ch]: add simple test for throwing
1029 function (has GError ** as last argument)
1031 * giscanner/ast.py: add a 'throws' flag to Function
1032 * giscanner/glibtransformer.py: if a function's last paramerter is
1033 a GError, set the 'throws' flag and remove that parameter
1034 * giscanner/girwriter.py: write out the 'throws' attribute
1035 * giscanner/girparser.py: support parsing the 'throws' attribute
1037 * tests/repository/gitestthrows.c: add a simple test to check the
1038 throws flag in a typelib and invoke the function
1040 * girepository/ginfo.c, girepository/girnode.[ch],
1041 girepository/girnode.h, girepository/girparser.c,
1042 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1044 * girepository/ginvoke.c: if a function throws, add a GError as last
1045 arguments, and propagate the error to the invoker.
1047 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1049 * giscanner/transformer.py (_create_parameters): Warn if we see
1050 annotations for unknown parameters. If .h and .c files name
1051 parameters differently, the annotations may be lost.
1053 2008-10-21 Johan Dahlin <johan@gnome.org>
1055 Bug 556358 - don't use libtool internals
1057 * giscanner/Makefile.am:
1058 * giscanner/libtoolimporter.py:
1059 * giscanner/sourcescanner.py:
1060 * giscanner/utils.py:
1061 Add a python meta importer and remove a libtool symlink hack.
1063 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1065 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1066 and --add-include-path appropriately when invoking the scanner.
1067 * tests/types/Makefile.am (%typelib): Likewise.
1069 2008-10-20 Colin Walters <walters@verbum.org>
1071 Bug 556777 - validate properties
1073 * giscanner/transformer.py: Add option to throw on unknown types.
1074 * giscanner/glibtransformer.py: Use it on properties.
1075 * tests/*: Add a test.
1077 2008-10-20 Colin Walters <walters@verbum.org>
1079 * giscanner/glibast.py: Also register g variants of
1080 default_array_types. This is not beautiful, but
1081 good alternatives aren't easy to come by.
1082 This fixes gchar ** parsing.
1084 2008-10-20 Colin Walters <walters@verbum.org>
1086 * docs/typelib-format.txt, girepository/gtypelib.h:
1087 Take a bit from ObjectInfo to represent abstract flag.
1088 * giscanner/cgobject.py: Expose g_type_get_flags.
1089 * girepository/girepository.h: Add accessor.
1090 * girepository/ginfo.c: Implement it.
1091 * giscanner/ast.py: Add is_abstract flag to generic
1093 * giscanner/glibast.py: Use it.
1094 * giscanner/girwriter.py: Write it.
1095 * girepository/girparser.c: Parse it.
1098 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1100 * giscanner/girparser.py (_parse_function): don't lose
1101 'transfer-ownership' attributes when injecting, check for the
1104 2008-10-19 Johan Dahlin <johan@gnome.org>
1106 * giscanner/scannerlexer.l: Parse and ignore __asm.
1108 2008-10-19 Colin Walters <walters@verbum.org>
1110 * giscanner/girparser.py: Parse array length= to ensure
1111 it doesn't get lost from --inject.
1113 2008-10-17 Colin Walters <walters@verbum.org>
1115 Bug 556795 - char ** regression
1117 * giscanner/transformer.py: Fix parsing of ctypes, add some
1118 comments about what's going on.
1119 * tests/*: Add a test for char **.
1121 2008-10-17 Colin Walters <walters@verbum.org>
1123 Bug 556783 - change namespace handling to be more consistent
1125 * giscanner/transformer.py: Eliminate usage of
1126 strip_namespace_object. We now treat --namespace as the default
1127 --strip-prefix; however, if --strip-prefix is specified it
1128 overrides --namespace. This applies to everything except function
1129 names, where we do also strip the namespace.
1130 * giscanner/glibtransformer.py: Remove usage of
1131 strip_namespace_object.
1133 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1134 --namespace and --strip-prefix.
1136 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1138 Bug 556732 – generate gir files consistently
1140 * girepository/girparser.c (start_parameter):
1142 * tests/invoke/testfns-1.0.gir:
1143 * tools/generate.c (write_callable_info): write
1144 'transfer-ownership' attribute consistently with both
1145 return-value and parameter elements
1147 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1149 Bug 556732 – generate gir files consistently
1151 * tools/generate.c (write_callable_info): write 'direction'
1152 attribute only if other than 'in' to be consistent with
1155 * tests/object.gir: remove direction="in" which is the default
1157 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1159 Bug 556732 – generate gir files consistently
1161 * giscanner/ast.py (Field): add readable and writable properties
1162 * giscanner/girparser.py (_parse_field): copy 'readable' and
1163 'writable' attributes
1164 * giscanner/transformer.py (_create_member): create fields as
1166 * giscanner/glibtransformer.py (_introspect_object,
1167 _pair_class_struct): make object instance and class fields
1169 * giscanner/girwriter.py (_write_field):
1170 * tools/generate.c (write_field_info): write field 'readable'
1171 and 'writable' attributes only if non-default (read-only)
1172 * girepository/girparser.c (start_field): in the absence of
1173 attributes assume fields are read-only
1175 * tests/struct.gir: remove redundant readable="1" from fields
1176 * tests/scanner/foo-1.0-expected.gir:
1177 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1178 all record and union fields
1180 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1182 Bug 556732 – generate gir files consistently
1184 * giscanner/girwriter.py (_write_property): write properties
1185 'construct' attribute if set
1186 * tools/generate.c (write_property_info): write properties
1187 'readable' and 'writable' attributes only if non-default
1188 * tests/object.gir: add writable="0"
1189 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1191 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1193 * gir/glib-2.0.c: added annotations
1195 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1197 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1200 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1202 Bug 556610 – giscanner/girparser.py drops parameter options
1204 * tests/scanner/drawable-injected-1.0-expected.gir,
1205 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1206 * giscanner/ast.py: allow Parameter to take options in the constructor
1207 * giscanner/girparser.py: parse parameter options (transfer,
1208 direction, allow-none)
1210 2008-10-16 Colin Walters <walters@verbum.org>
1212 Bug 556185 - segfault on g_callable_info_get_return_type
1214 Initial patch from John Ehresman.
1216 * tests/repository/*: Add a test using
1217 g_callable_info_get_return_type. Instead of casting a
1218 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1219 to call g_type_info_get_interface.
1221 2008-10-16 Colin Walters <walters@verbum.org>
1223 Bug 556579 - union and struct name misresolved
1225 * giscanner/transformer.py: The calls to _resolve_type_name
1226 for struct/union names was a legacy holdover from when type
1227 resolution had multiple phases. Now it's actively harmful
1228 since we might pull in an identical name from another
1232 2008-10-16 Colin Walters <walters@verbum.org>
1234 Bug 556432 - transfer annotations and defaults
1236 * giscanner/transformer.py: Canonicalize type
1237 after removing *, not before. This ensures that
1238 guchar* is transformed to 'uint8'.
1239 Add some comments here.
1240 * giscanner/glibtransformer.py: Add _adjust_transfer
1241 phase for tweaking GObject transfers.
1244 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1246 * configure.ac: enable bunch of gcc warning CFLAGS
1248 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1250 Bug 556543 – reduce compiler warnings
1252 * girepository/ginfo.c:
1253 * girepository/girepository.c (register_internal,
1254 count_interfaces, find_interface, find_namespace_version,
1255 parse_version, g_irepository_require):
1256 * girepository/girmodule.c (g_ir_module_build_typelib):
1257 * girepository/girnode.c (init_stats, dump_stats,
1258 _g_irnode_init_stats, _g_irnode_dump_stats,
1259 g_ir_node_can_have_member):
1260 * girepository/girparser.c (firstpass_end_element_handler,
1261 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1262 start_alias, start_type, end_type_top, parse_include, cleanup,
1264 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1265 * giscanner/giscannermodule.c (directive_get_options,
1266 type_get_child_list):
1267 * giscanner/scannerlexer.l (parse_gtkdoc):
1268 * giscanner/scannerparser.y (ctype_free):
1269 * giscanner/sourcescanner.c:
1270 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1271 * tests/types/gitesttypes.c:
1272 * tools/compiler.c (main):
1273 * tools/generate.c (write_repository): Remove unused variables
1274 and code, add missing includes, declarations and case
1277 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1279 Bug 556541 – access union members through UnionBlob rather than
1282 * girepository/ginfo.c (g_union_info_find_method): access union
1283 members through UnionBlob rather than StructBlob
1285 2008-10-15 Colin Walters <walters@verbum.org>
1287 Bug 556331 - clean up includes handling
1289 * tools/g-ir-scanner: Rework command line arguments; now we take
1290 --add-include-path and --include separately.
1291 * giscanner/girwriter.py: Separate name= and version= in include
1293 * giscanner/ast.py: Add Include type.
1294 * giscanner/transformer.py: Cleanups to register_include now that
1295 we don't need to handle mixed filenames and relative arguments.
1296 * girepository/girparser.c: Parse name and version separately;
1297 this fixes a bug as a side effect where we weren't resolving
1298 through aliases for basic types.
1299 * girepository/girepository.c: Fix format string args.
1300 * gir/Makefile.am: Update.
1303 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1305 Bug 556434 – unhandled interface/object/... member types
1307 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1308 g_ir_node_build_typelib): Check all
1309 interface/object/boxed/struct/union members are processed and
1310 abort if they are not. (Mostly callbacks in structs, but also
1311 fields in interfaces.)
1313 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1315 * a/girepository/girnode.c (g_ir_node_build_members,
1316 g_ir_node_build_typelib): refactor common code for processing
1317 members to a function
1319 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1321 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1322 transformation is lossless (it's not)
1324 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1326 * tests/Makefile.am: fix tests to compare xml to xml instead of
1327 typelib to xml, and stop on error
1329 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1331 * tools/generate.c (write_type_name, write_type_info,
1332 write_type_info, write_object_info, write_object_info,
1333 write_interface_info, write_error_domain_info): reduce code
1336 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1338 Bug 556174 – parse types for lists etc.
1340 * girepository/girparser.c (end_type_recurse):
1342 * tools/generate.c (write_type_info, write_field_info,
1343 write_callable_info, write_callable_info, write_constant_info,
1344 write_property_info): use nested <type>s for lists and hashes
1346 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1349 * tests/object.gir: remove trailing whitespace from inside
1350 elements to match g-ir-generate output
1352 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1354 * tools/generate.c (xml_printf): quote printf arguments so that
1355 we don't generate invalid XML by writing unescaped double quotes
1356 and such in attributes
1358 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1360 * tools/generate.c (write_field_info, write_callable_info,
1361 write_function_info, write_callback_info, write_struct_info,
1362 write_constant_value, write_signal_info, write_vfunc_info,
1363 write_object_info, write_interface_info, write_union_info,
1364 write_repository): remove unused indent parameters, xmlwriter
1365 keeps track of necessary indentation
1367 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1369 * tools/generate.c (xml_element_new, xml_element_free,
1370 xml_start_element, xml_end_element, xml_end_element_unchecked,
1371 xml_open, xml_close): Keep track of generated XML tree and
1372 handle indentation and closing tags properly.
1373 (write_field_info, write_callable_info, write_function_info,
1374 write_callback_info, write_struct_info, write_value_info,
1375 write_constant_info, write_enum_info, write_signal_info,
1376 write_vfunc_info, write_property_info, write_object_info,
1377 write_interface_info, write_error_domain_info, write_union_info,
1378 write_repository): Use xml_start_element and xml_end_element to
1381 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1383 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1384 (write_type_name, write_type_info, write_field_info,
1385 write_callable_info, write_function_info, write_callback_info,
1386 write_struct_info, write_value_info, write_constant_value,
1387 write_constant_info, write_enum_info, write_signal_info,
1388 write_vfunc_info, write_property_info, write_object_info,
1389 write_interface_info, write_error_domain_info, write_union_info,
1390 write_repository): wrap all FILE access to go through simple xmlwriter
1392 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1394 Bug 556400 – Fails to build on OS X 10.4
1396 * configure.ac: check for functions backtrace and backtrace_symbols
1397 * girepository/girparser.c (backtrace_stderr): Comment out
1398 implementation if the functions are not available.
1399 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1400 directory for better portability
1402 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1404 Bug 556433 – assume direction = out for int * parameters
1406 * giscanner/ast.py: define a list of types for which, if passed as
1407 reference, we assume a default direction of 'out'
1408 * giscanner/transformer.py: if a type has type pointer to one of the
1409 previously defined types, and no direction is set, assume out.
1410 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1412 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1414 * tests/scanner/annotation.c: fixed a few copy-paste errors
1416 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1418 Bug 556323 – transfer-ownership is wrong for functions returning const
1421 * giscanner/transformer.py: check for a const string as return value,
1422 not just const char*. Suggested by Colin Walters
1423 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1425 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1427 * girepository/ginfo.c, girepository/girepository.h: add
1428 g_union_info_find_method
1430 2008-10-14 Colin Walters <walters@verbum.org>
1432 * tests/repository/Makefile.am: Reenable repo test.
1433 * tests/repository/gitestrepo.c: Prepend search
1434 path for $(top_builddir)/gir dir so that we don't
1435 require installation for "make check" to pass.
1437 2008-10-13 Jürg Billeter <j@bitron.ch>
1439 * giscanner/glibtransformer.py:
1440 * tests/scanner/annotation-1.0-expected.gir:
1441 * tests/scanner/drawable-1.0-expected.gir:
1442 * tests/scanner/foo-1.0-expected.gir:
1443 * tests/scanner/utility-1.0-expected.gir:
1445 Support fields in GObject structs
1447 2008-10-13 Jürg Billeter <j@bitron.ch>
1449 * giscanner/ast.py: add signed integer and off_t to type_names
1451 2008-10-12 Jürg Billeter <j@bitron.ch>
1453 * giscanner/girparser.py: Parse bits attribute of fields
1455 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1457 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1458 * tests/repository/gitestrepo.c (main): instantiate
1459 'GCancellable' to ensure the GType is registered before using
1462 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1464 * giscanner/girparser.py: actually add the parsed constant nodes
1466 2008-10-12 Colin Walters <walters@verbum.org>
1468 * girepository/girepository.c: Don't cast DirEntry to Blob,
1469 actually look it up by offset.
1471 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1473 * giscanner/girparser.py: parse constant nodes in gir files
1475 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1477 * giscanner/transformer.py: prefix for constants have an underscore,
1478 so remove them as if they were functions, not objects.
1480 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1482 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1485 2008-10-12 Colin Walters <walters@verbum.org>
1487 Initial patch from Jani Monoses.
1489 * girepository/gtypelib.c: Fix inverted test for success
1492 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1494 * tools/generate.c (write_callable_info): use "transfer-ownership"
1495 attribute for return values
1497 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1499 * tools/generate.c (write_callable_info): move "transfer" and
1500 "null-ok" attributes from <function> to <return-value> element
1502 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1504 * girepository/girparser.c (start_return_value): handle
1505 "transfer-ownership" attribute
1507 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1509 * girepository/girparser.c (parse_param_transfer):
1510 * tools/generate.c (write_callable_info): use "container" for
1511 container/shallow ownership transfer (not "shallow")
1513 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1515 * girepository/girparser.c (parse_param_transfer,
1516 start_parameter): Refactor handling of transfer=none/shallow/full
1517 to separate function
1519 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1521 Bug 556048 – Crash in g_irepository_find_by_gtype
1523 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1524 * girepository/girepository.c (find_interface): Fix
1525 find_by_gtype case to get the type name from right offset
1527 2008-10-12 Jürg Billeter <j@bitron.ch>
1529 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1532 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1534 * girepository/gtypelib.h (RegisteredTypeBlob): make
1535 'unregistered' one bit wide as everywhere else
1537 2008-10-12 Jürg Billeter <j@bitron.ch>
1539 * giscanner/glibtransformer.py:
1540 * tests/scanner/annotation-1.0-expected.gir:
1541 * tests/scanner/drawable-1.0-expected.gir:
1542 * tests/scanner/drawable.h:
1543 * tests/scanner/foo-1.0-expected.gir:
1544 * tests/scanner/utility-1.0-expected.gir:
1546 Readd class records as workaround to not break Gtk typelib
1548 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1550 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1552 2008-10-12 Jürg Billeter <j@bitron.ch>
1554 * giscanner/glibtransformer.py: Don't generate <record> elements
1556 * tests/scanner/*: Update test cases
1558 2008-10-11 Colin Walters <walters@verbum.org>
1560 Bug 552858: versioning
1562 This is a big patch. You should probably remove your installation
1565 * docs/typelib-format.txt: Add nsversion entry which holds
1566 version of namespace.
1567 * girepository/girepository.h: Add 'version' parameter to
1568 g_irepository_require. This may be NULL. Normally
1569 bindings should pass an explicit version though.
1570 * girepository/girepository.c: Lots of infrastructure to
1571 support versioning. Add some more documentation. Disallow
1572 some usage of NULL namespaces.
1573 * girepository/girmodule.c: Add version parameter.
1574 * girepository/gtypelib.c: Update header size.
1575 * giscanner/ast.py: Add version to Namespace.
1576 * giscanner/girparser.py: Parse version attribute from
1577 XML, pass to Namespace.
1578 * giscanner/girwriter.py: Write out version parameter.
1579 * giscanner/transformer.py: Clean up include registration.
1580 * tests/*: Add version attribute.
1581 * tests/invoke/invoke.c: Don't try looking up test before
1582 it's loaded in repository.
1583 * tools/generate.c: Output version parameter.
1584 * gir/Makefile.am: Add 2.0 version to .gir files.
1586 2008-10-11 Colin Walters <walters@verbum.org>
1588 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1589 if we have mismatched parens.
1591 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1593 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1594 on 'members' variable.
1596 2008-10-11 Colin Walters <walters@verbum.org>
1598 Bug 555947 - update annotations syntax
1600 * giscanner/ast.py: Default to None for transfer. Remove
1601 default transfers for container types; we require this to
1603 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1604 'full' to match repository.
1605 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1606 * giscanner/transformer.py: Update for new annotations syntax.
1609 2008-10-11 Johan Bilien <jobi@litl.com>
1611 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1613 2008-10-11 Johan Bilien <jobi@litl.com>
1615 Bug 552347: Parse #defines constants
1617 * girepository/gtypelib.c: update the list of value_size
1618 with recently defined type tags
1619 * giscanner/scannerparser.y: brought back parsing of #defined, as
1620 present in older version
1621 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1622 * giscanner/girwriter.py: write out constant tags in the gir
1623 * giscanner/sourcescanner.py: add accessor for const_string
1624 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1627 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1629 Bug 555946: Install a test module exercising all types, transfer
1634 * tests/types/*: Add and install a test module that has functions
1635 accepting and returning most of the basic types to enable bindings
1636 implementors to more easily test their type conversion routines.
1638 2008-10-11 Jürg Billeter <j@bitron.ch>
1640 Bug 552374: Const strings should be identified in the gir.
1642 * giscanner/transformer.py: support string memory management
1643 * tests/scanner/foo.h: use char * and const char *
1644 * tests/scanner/foo-expected.gir: test that
1646 2008-10-11 Johan Dahlin <johan@gnome.org>
1648 * giscanner/girparser.py:
1649 Also parse enums which are not glib types.
1651 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1653 Bug 552370: add one more test for unsigned as a type, not as
1656 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1657 * test/scanner/foo.h: add function which uses unsigned as a type.
1658 * test/scanner/foo-expected.gir: test that.
1660 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1662 Bug 555712: Struct and union issues
1664 * giscanner/scannerparser.y (struct_declarator): Use information
1665 provided about the bit width of a field.
1666 * giscanner/transformer.py (Transformer._create_member): Pass the
1667 symbol's const_int member to the created field (it represents the
1669 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1670 field attribute, if present.
1671 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1672 width in bits of the field (only relevant for bitfields).
1675 * giscanner/transformer.py (Transformer._create_typedef_struct)
1676 (Transformer._create_typedef_union): Add calls to _create_struct()
1677 and _create_union(), respectively. This causes the scanner to
1678 generate output for fields of struct and union typedefs.
1681 2008-10-11 Jürg Billeter <j@bitron.ch>
1683 Bug 552370: unsigned not scanned properly
1685 * giscanner/scannerparser.y: combine basic types such as unsigned
1686 int and long long when scanning
1687 * tests/scanner/foo-expected.gir:
1688 * tests/scanner/foo.c: (foo_test_unsigned):
1689 * tests/scanner/foo.h: test that
1691 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1693 Bug 554854: The --typelib-xml and --inject options should reuse
1694 giscanner parser/writer.
1696 * giscanner/ast.py: add constructor list to Struct and Union.
1697 Add new param in Return's contructor to define transfer.
1698 * giscanner/girparser.py: several additions to the parser in order
1699 to have parsing all nodes of the gir xml files.
1700 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1701 and writer in --inject and --typelib-xml options.
1702 * giscanner/xmlwriter.py: ignore empty attributes instead of
1703 raising an error as this basically exposes a bug in GIRParser.
1704 This should be reverted as soon as the parser is fixed.
1706 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1708 Bug 552376: scanner generates wrong names for enum members when
1709 there's no defined gtype.
1711 * giscanner/utils.py (strip_common_prefix): Always strip common
1712 prefix exactly up to the last "_", and not beyond.
1713 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1714 here is that the first character after the last '_' should should be
1715 the same as the character in the same position on the type name.
1716 * tests/scanner/foo-expected.gir: test that
1718 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1720 Bug 555293: append library_paths to LPATH env variable to work
1721 around a bug in find_library when using ldconfig.
1723 * tools/g-ir-scanner (main): ditto.
1725 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1727 * girepository/girepository.c (register_internal): fix regression on
1728 invoke test case by making sure we load the global module in the
1729 typelib when dealing with inline typelibs.
1730 * girepository/gtypelib.c: a couple of coding style fixes.
1732 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1734 Bug 555294: Add support for multiple shared libraries per typelib.
1736 * girepository/ginvoke.c (g_function_info_invoke),
1737 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1738 g_typelib_symbol instead of g_module_symbol.
1739 * girepository/girepository.h: remove g_typelib_set_module and add
1741 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1742 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1743 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1744 modules instead of just one. The symbol lookup is now abstracted
1745 behind g_typelib_symbol which tries to find the passed symbol name in
1747 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1748 and write shared_library attribute as a comma-separated list of libs.
1750 2008-10-06 Colin Walters <walters@verbum.org>
1752 * giscanner/transformer.py: Parse length= annotation as
1753 a parameter name, not a raw int.
1756 2008-10-03 Colin Walters <walters@verbum.org>
1758 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1760 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1762 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1766 2008-10-03 Colin Walters <walters@verbum.org>
1768 Bug 554576: scan problem with ev_selection_render_selection()
1770 * giscanner/transformer.py: Only do type resolution once we've
1771 scanned all types. What could happen before is that we'd strip
1772 the namespace from local type "EvSelection" => Selection, and
1773 then later pull a "Selection" from some other namespace because
1774 we hadn't yet seen the local EvSelection. This could come
1775 down to hash table ordering and other things so not easy
1776 to write a test for.
1778 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1780 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1781 GLibEnumMember constructor as it should be the enum member nick.
1783 2008-10-02 Colin Walters <walters@verbum.org>
1785 Bug 552961: remove this parameter for methods
1787 * giscanner/glibtransformer.py: Delete this parameter; it is
1789 * girepository/ginvoke.c: Insert this parameter for methods.
1790 * girepository/gtypelib.c: Remove no longer needed verification of
1791 method this parameter.
1794 2008-09-30 Dan Winship <danw@gnome.org>
1796 Bug 554490: g-ir-scanner gets confused by '\\'
1798 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1799 backslashes so it will correctly parse '\\' and "\\"
1801 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1804 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1806 2008-10-02 Colin Walters <walters@verbum.org>
1808 bug 552393: Note variadic functions
1810 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1811 to use parameter_list directly.
1812 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1813 * giscanner/ast.py: Add Varargs type.
1814 * giscanner/transformer.py: Check for ellipsis symbol, transform
1816 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1817 Parse varargs functions, but filter them out before we start
1818 compiling the typelib.
1820 2008-10-02 Colin Walters <walters@verbum.org>
1822 Bug 554632: type tag for GType
1824 * girepository/girepository.h, girepository/girepository.c:
1825 Add type tag for GType - it's a special type we don't want
1826 to resolve to just "long".
1827 * docs/typelib-format.txt: Update.
1828 * girepository/girparser.c: Parse it.
1829 * giscanner/glibtransformer.py: Ensure we don't put GType in
1831 * tools/generate.c: Remove hardcoded type list.
1834 2008-09-30 Dan Winship <danw@gnome.org>
1836 Bug 554521: scanner generates wrong names for enum members with
1837 full type name prefix
1839 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1840 right amount when the entire "first" string is a prefix of
1843 * tests/scanner/foo.h (FooEnumFullname):
1844 * tests/scanner/foo-expected.gir: test that
1846 2008-09-29 Colin Walters <walters@verbum.org>
1848 Bug 552380: Array parameters should be marked in the gir
1850 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1851 uint8[]. Add Array, List, and Map subclasses of Type;
1852 these types can be generic. Return transfer defaults
1853 to true if return value is string or container type.
1854 Delete Sequence type.
1855 * giscanner/scannerlexer.l: Syntax change for annotations;
1856 use <> since it's more readable.
1857 * giscanner/girwriter.py: Write out these changes.
1858 * giscanner/girparser.py: Parse them.
1859 * giscanner/transformer.py: Have a defined set of
1860 both list and map types. When creating a type,
1861 check if the ctype we've parsed is one of them,
1862 if so create a container type subclass as appropriate.
1863 * girepository/girparser.c: Parse in generic types.
1866 2008-09-27 Colin Walters <walters@verbum.org>
1868 * tools/g-ir-scanner: Add --inject option.
1870 2008-09-25 Colin Walters <walters@verbum.org>
1872 Remove non-repository types from GIR
1874 * giscanner/ast.py: The canonical name is 'utf8', not
1876 * giscanner/glibast.py: A few more glib type mappings.
1877 * girepository/girparser.c: We only parse repository types.
1878 * tests/*.gir: Update.
1880 2008-09-23 Colin Walters <walters@verbum.org>
1882 Bug 552566: Add time_t type
1884 We need a type for time_t since it's special in C, and just
1885 mapping it to long precluded bindings from handling it
1888 2008-09-19 Colin Walters <walters@verbum.org>
1890 Bug 552390: Handle capitialization like "DBus" more robustly
1892 The to_underscores function was designed for use against prefixed
1893 names; we need a separate function which will convert names like
1894 DBusFoo into dbus_foo, not d_bus_foo.
1896 2008-09-19 Colin Walters <walters@verbum.org>
1898 Add check to make sure we're not hitting out unresolved types
1900 Validate the "this" argument for methods
1902 Remove heuristic matching of methods to classes based on prefix
1904 It was a broken hack that dated from when we handled underscoring
1905 and capitalization conventions less well.
1907 2008-09-18 Colin Walters <walters@verbum.org>
1909 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1911 On Darwin, the suffix for installed shared libraries (.dylib) is
1912 different from loadable modules (.so). We use a bit of magic shell
1913 script from Behdad Esfahbod to figure out the right suffix.
1915 2008-09-15 Johan Dahlin <johan@gnome.org>
1917 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1918 a wrapper for type_qualifier as well.
1920 2008-09-15 Colin Walters <walters@verbum.org>
1922 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1924 * giscanner/ast.py: Add deprecation attributes.
1925 * giscanner/girwriter.py: Write out deprecation data.
1926 * girepository/girparser.c: Relax parsing; deprecated
1927 attribute now includes freeform string.
1928 * giscanner/scannerlexer.l: Parse Deprecated.
1929 * giscanner/transformer.py: Look for deprecated attribute
1931 * tests/scanner/*: Add a Deprecated test.
1933 2008-09-14 Tor Lillqvist <tml@novell.com>
1935 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1937 2008-09-14 Colin Walters <walters@verbum.org>
1939 * giscanner/glibtransformer.py: Ignore functions with
1942 2008-09-12 Colin Walters <walters@verbum.org>
1944 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1946 2008-09-12 Colin Walters <walters@verbum.org>
1948 * giscanner/ast.py: Bind pid_t to INT for vte.
1950 2008-09-12 Colin Walters <walters@verbum.org>
1952 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1953 * giscanner/glibast.py: Avoid overwriting ctype.
1954 * giscsanner/transformer.py: Try resolving types using the GType names.
1956 2008-09-12 Colin Walters <walters@verbum.org>
1958 * giscanner/minixpath.py: Code to run an "XPath"
1959 assertion against an XML tree, taken from
1960 gir-repository/gir/tests.py.
1961 * giscanner/Makefile.am: Ship it.
1962 * tools/g-ir-scanner: Add --xpath-assertions option.
1963 * gir/GLib-assertions.txt: Add a few assertions.
1964 * gir/Makefile.am: Run them.
1966 2008-09-11 Colin Walters <walters@verbum.org>
1968 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1970 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1971 prefix if it ends with _. Tweak callback stripping to determine
1972 based on presence of _ whether we need to use strip_namespace_func
1973 or strip_namespace_object.
1975 2008-09-09 Owen Taylor <otaylor@redhat.com>
1977 * docs/typelib-format.txt: Wether => Whether
1979 2008-09-08 Colin Walters <walters@verbum.org>
1981 * girepository/girparser.c: Default to "readable" for properties.
1982 * giscanner/ast.py: Add readable, writable etc.
1983 * giscanner/girwriter.py: Writ them.
1984 * giscanner/glibtransformer.py: Inspect them.
1987 2008-09-07 Colin Walters <walters@verbum.org>
1989 * giscanner/cgobject.py: Add comment.
1991 2008-09-07 Colin Walters <walters@verbum.org>
1993 * giscanner/cgobject.py: Also call g_thread_init.
1995 2008-09-07 Colin Walters <walters@verbum.org>
1997 * giscanner/transformer.py: Fix regression by not
1998 stripping prefix before stripping namespace for unions
2001 2008-09-06 Colin Walters <walters@verbum.org>
2003 * giscanner/transformer.py: If a namespace contains
2004 multiple caps, try stripping both gnomekeyring_ and
2007 2008-09-07 Johan Dahlin <johan@gnome.org>
2009 Bug 551162 – giscanner does not recognize asm and __asm__
2010 * giscanner/scannerlexer.l:
2011 Patch by Jani Monoses.
2013 2008-09-06 Colin Walters <walters@verbum.org>
2015 * girepository/girnode.c: Allow gtype_name
2016 and gtype_init in struct and union.
2017 * girepository/girparser.c: Parse glib:
2018 boxed bits for both structure and union.
2019 * girepository/gtypelib.c: Don't barf
2020 if structure is boxed.
2021 * giscanner/girparser.py: Parse new XML
2023 * giscanner/girwriter.py: Write out new
2025 * giscanner/glibast.py: Define new classes
2026 which are both Boxed and Struct/Union, as
2027 well as an "Other" for everything else.
2028 * giscanner/glibtransformer.py: Handle
2029 boxed types specially; we try to merge
2030 them with a struct/union if one exists,
2031 otherwise fall back to generic boxed.
2033 * tools/generate.c: Write out new format.
2035 2008-09-06 Johan Dahlin <johan@gnome.org>
2037 * giscanner/grealpath.h: Include stdlib.h
2039 * docs/g-ir-generate.1: Remove leading %
2041 2008-09-01 Colin Walters <walters@verbum.org>
2043 * girepository/girparser.c: Look at c:type to determine
2044 whether or not an item is a pointer.
2046 2008-09-01 Johan Dahlin <johan@gnome.org>
2048 * tests/scanner/Makefile.am:
2049 Set PYTHONPATH so the scanner can run
2050 even if you didn't install anything.
2052 2008-09-01 Johan Dahlin <johan@gnome.org>
2055 Post-release version bump
2058 2008-09-01 Johan Dahlin <johan@gnome.org>
2062 2008-08-31 Colin Walters <walters@verbum.org>
2064 * giscanner/glibtransformer.py: Quiet info
2067 2008-08-31 Johan Dahlin <johan@gnome.org>
2070 Bump version to 0.5.0
2072 2008-08-31 Colin Walters <walters@verbum.org>
2074 * giscanner/glibtransformer.py: Follow aliases to ensure
2075 we don't get a constructor returning a basic type.
2076 * giscanner/transformer.py: Add function to follow aliases.
2079 2008-08-31 Johan Dahlin <johan@gnome.org>
2081 * giscanner/scannerlexer.l:
2082 * giscanner/scannerparser.y:
2083 * giscanner/sourcescanner.h:
2084 * giscanner/sourcescanner.py:
2085 Parse GCC extensions in the parser instead of just undeffing them
2086 in the pre-processor.
2088 2008-08-31 Johan Dahlin <johan@gnome.org>
2090 * giscanner/glibtransformer.py:
2091 Clean up a huge if. Do not add methods or constructors
2093 * giscanner/utils.py:
2094 second might be longer than first, check that.
2096 2008-08-31 Johan Dahlin <johan@gnome.org>
2101 2008-08-31 Colin Walters <walters@verbum.org>
2103 * girepository/girparser.c: Don't lose if we
2106 2008-08-31 Colin Walters <walters@verbum.org>
2108 * giscanner/glibtransformer.py: Look for libtool
2109 library in current directory
2110 * tests/scanner - Update.
2112 2008-08-30 Colin Walters <walters@verbum.org>
2114 * docs/typelib-format.txt: Add a guint32
2116 * gir/Makefile.am: Dep on Makefile
2117 * girepository/ginfo.c:
2118 * girepository/girepository.c: Clean up
2119 default typelib handling; remove global
2120 default_typelib variable. Ensure we handle
2121 NULL repository in more places.
2122 Support dependency resolution.
2123 Support lazy loading.
2124 * girepository/girepository.h: Remove
2125 g_irepository_unregister; we don't support
2126 unloading typelibs since really they're
2127 process-global. Update for lazy loading
2129 * girepository/girmodule.c: Use g_new0.
2130 Add dependencies to GirModule.
2131 * girepository/girparser.c: Parse dependencies.
2132 * girepository/gtypelib.c: Add 4 bytes for
2134 * tests/Makefile.am: Kill off gobject.gir,
2135 it conflicts with the real one.
2136 * tests/object.gir: Dep on GObject.
2137 * tools/generate.c: Take --includedir
2138 argument to say which directories to search
2139 for typelibs. Print out dependencies.
2141 2008-08-30 Colin Walters <walters@verbum.org>
2143 * giscanner/glibtransformer.py: Reduce warning noise.
2145 2008-08-29 Colin Walters <walters@verbum.org>
2147 * girepository/ginfo.c: Add some assertions regarding
2148 refcounts, just to be sure.
2149 * giscanner/glibtransformer.py: Blacklist a few more
2152 2008-08-29 Colin Walters <walters@verbum.org>
2154 * giscanner/glibtransformer.py: Blacklist a few
2155 functions that use GError oddly
2157 2008-08-29 Colin Walters <walters@verbum.org>
2159 * girepository/gtypelib.c: Don't crash if no
2162 2008-08-29 Colin Walters <walters@verbum.org>
2164 * girepository/girparser.c: Handle chains of aliases
2165 across modules by ensuring we fully qualify aliases
2168 2008-08-29 Colin Walters <walters@verbum.org>
2170 * girepository/girparser.c: Don't search aliases
2173 2008-08-29 Colin Walters <walters@verbum.org>
2175 * girepository/girparser.c: Rewrite type parsing
2176 to handle both GLib parsing case as well as correctly
2177 handling GLib.List and friends. Don't try to treat
2178 e.g. ListStore as a List.
2180 2008-08-29 Colin Walters <walters@verbum.org>
2182 * girepository/gtypelib.c: Add more context
2185 2008-08-29 Colin Walters <walters@verbum.org>
2187 * giscanner/glibtransformer.py: Add some informative
2188 logging messages in corner cases. Be sure we use
2189 the most recent node set instead of a cache
2190 when generating result set.
2191 * tests/: Remove duplicated bits in expected girs
2192 * girepository/girparser.c: Accept both List (for
2193 compiling GLib) and GLib.List (what the scanner
2196 * tools/generate.c: Generate canonical form.
2198 2008-08-29 Johan Dahlin <johan@gnome.org>
2200 * giscanner/config.py.in:
2201 Use datarootdir instead of datadir to avoid
2202 an autoconf warning.
2204 2008-08-29 Johan Dahlin <johan@gnome.org>
2208 * examples/gdk-pixbuf.gidl:
2210 Update and remove old cruft.
2212 2008-08-29 Johan Dahlin <johan@gnome.org>
2215 * docs/g-ir-compiler.1:
2216 * docs/g-ir-generate.1:
2217 * docs/g-ir-scanner.1:
2218 Add man pages for the generator and compiler.
2220 2008-08-29 Johan Dahlin <johan@gnome.org>
2222 * docs/g-ir-scanner.1: Document
2224 * giscanner/Makefile.am:
2225 * giscanner/gidlparser.py:
2226 * giscanner/gidlwriter.py:
2227 * tools/g-ir-scanner:
2228 Remove gidl support.
2230 2008-08-28 Colin Walters <walters@verbum.org>
2232 * tests/scanner/Makefile.am: Pass the right
2233 --includedir args. Add a Makefile dep.
2234 * tools/compiler.c: Pass includedirs down.
2235 * girepository/girparser.c: Actually put
2236 includedirs in context, pass down. Fix
2239 2008-08-28 Colin Walters <walters@verbum.org>
2241 * gir/Makefile.am: Use --includedir
2242 * girepository/girparser.c: Recursively parse
2243 includes to pull in aliases and expand them.
2244 We need this to avoid putting unknown names in
2246 * tools/compiler.c: Add --includedir option.
2247 * giscanner/ast.py: Map size/ssize to types
2250 2008-08-28 Tor Lillqvist <tml@novell.com>
2252 Make check now runs successfully on Windows.
2254 * tools/compiler.c (write_out_typelib): Use binary mode for output
2257 * girepository/girnode.c: Don't print NULL strings.
2259 * tests/invoke/Makefile.am
2260 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2261 convince libtool to build shared libraries.
2263 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2264 g_assert() instead of printing out expected errors.
2266 2008-08-28 Tor Lillqvist <tml@novell.com>
2268 * girepository/gtypelib.h: Change type of bitfield fields from
2269 guint to the most suitable smaller type. This makes the struct
2270 sizes match the ones on Linux that the sanity check expects when
2271 using gcc -mms-bitfields on Windows.
2273 2008-08-28 Johan Dahlin <johan@gnome.org>
2278 * giscanner/Makefile.am:
2279 * tests/Makefile.am:
2280 * tests/scanner/Makefile.am:
2281 Make distcheck pass.
2283 2008-08-27 Johan Dahlin <johan@gnome.org>
2285 * giscanner/Makefile.am:
2286 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2288 2008-08-27 Tor Lillqvist <tml@novell.com>
2290 Make g-ir-scanner work on Windows. Still problems with the typelib
2291 code. Changes okayed by jdahlin.
2293 * configure.ac: Check for Windows, set Automake conditional
2294 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2295 avoid shell quoting issues
2297 * girepository/Makefile.am: Use -no-undefined so that libtool
2298 agrees to build a shared library on Windows.
2300 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2301 Windows. Empty implementation on Windows so far.
2303 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2304 informative error message for the assertion failures. Tell also
2305 what the expected size of the struct is. Check all sizes first and
2306 fail afterwards if at least one size was different from expected.
2308 * tools/Makefile.am: Reorder libraries into proper logical
2311 * tools/generate.c: Don't include <dlfcn.h>, not used.
2313 * giscanner/Makefile.am: On Windows, link with the Python library,
2314 and install the module DLL as _giscanner.pyd. Remove the
2315 unnecessary import library and libtool library that libtool has
2318 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2319 and just skip it. Recognize also two "l" suffixes for long long
2320 constants. Recognize also __inline__.
2322 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2323 GetFullPathName(). As such, GetFullPathName() does more than the
2324 UNIX realpath(). It also changes relative paths into absolute
2325 paths. But for our purposes that shouldn't matter.
2327 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2328 Windows the file descriptor passed to us is from Python. Python
2329 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2330 uses msvcrt.dll. On Windows, file descriptors are specific to
2331 which C library is used. So we must find out what underlying OS
2332 handle corresponds to the file descriptor Python passes us, and
2333 then make that into a file descriptor valid for the C library this
2336 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2337 __attribute__ as the lexer now handles it. The definition as empty
2338 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2339 __attribute__. Close the temp file before unlinking it.
2341 * giscanner/cgobject.py: Use correct library name for the gobject
2344 * gir/Makefile.am: Must pass the full basename of the DLLs on
2345 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2346 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2347 reality they won't change, until there is a GLib 3, and then also
2348 the Unix code here needs changing.
2350 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2353 2008-08-26 Colin Walters <walters@verbum.org>
2355 * girepository/girepository.c: Search
2356 $DATADIR/girepository instead of
2357 $DATADIR/gitypelibs; this naming makes
2358 it clearer that e.g. jgir can install
2360 * gir/Makefile.am: Install there.
2362 2008-08-26 Colin Walters <walters@verbum.org>
2364 * girepository/gtypelib.c (_g_typelib_init): Also
2365 use G_MODULE_SUFFIX instead of hardcoding .so.
2367 2008-08-26 Colin Walters <walters@verbum.org>
2369 * girepository/gtypelib.c (_g_typelib_init): Free
2370 string in the right place.
2372 2008-08-26 Colin Walters <walters@verbum.org>
2374 * girepository/gtypelib.c (_g_typelib_init): Handle
2375 both .la and .so names; this works better in the
2376 uninstalled library case.
2378 2008-08-26 Johan Dahlin <johan@gnome.org>
2381 * giscanner/Makefile.am:
2382 * giscanner/cgobject.py:
2383 * giscanner/config.py.in:
2384 * giscanner/sourcescanner.py:
2385 Avoid undeffing __GNUC__, instead define
2386 __attribute__ & friends. Remove glibconfig.h hack.
2387 This makes gobject-introspection work better on
2388 MacOS X, Thanks to Richard Hult for kind help.
2390 2008-08-25 Colin Walters <walters@verbum.org>
2392 * giscanner/glibtransformer.py: Always print
2395 2008-08-25 Colin Walters <walters@verbum.org>
2397 * giscanner/glibtransformer.py: Skip over
2398 interfaces we don't know.
2400 2008-08-25 Colin Walters <walters@verbum.org>
2402 * girepository/girparser.c: Parse new implements
2403 syntax, drop gapi one.
2404 * tests/object.gir: Update.
2405 * tools/generate.c: Generate new syntax.
2407 2008-08-25 Colin Walters <walters@verbum.org>
2409 * giscanner/ast.py: Add interfaces property
2411 * giscanner/girwriter.py: Write out implemented
2413 * giscanner/glibtransformer.py: Introspect
2414 implemented interfaces.
2415 * tests/scanner/*: Make FooObject implement
2418 2008-08-25 Colin Walters <walters@verbum.org>
2420 * giscanner/glibtransformer.py: More correctly pair
2421 methods; if we have a symbol that starts with
2422 e.g. hippo_canvas look for a matching HippoCanvas
2423 class before accepting e.g. HippoCanvasImage.
2425 2008-08-24 Colin Walters <walters@verbum.org>
2427 * tools/g-ir-scanner: Filter out unknown options from
2430 2008-08-24 Colin Walters <walters@verbum.org>
2432 * giscanner/glibtransformer.py: Fail with better
2433 error if we can't find library.
2435 2008-08-24 Colin Walters <walters@verbum.org>
2437 * tools/g-ir-scanner: Use subprocess instead of
2438 commands, works on Windows and avoids the evil
2441 2008-08-24 Colin Walters <walters@verbum.org>
2443 * giscanner/glibtransformer.py: Skip over
2444 g_object_get_type from GLib trunk.
2446 2008-08-24 Colin Walters <walters@verbum.org>
2448 * girepository/girepository.c (g_irepository_require):
2449 Don't open shared library here; we already do it
2452 2008-08-24 Colin Walters <walters@verbum.org>
2454 * girepository/gtypelib.c: Add context stack so
2455 when we get an error we can print out nicely
2458 2008-08-24 Johan Dahlin <johan@gnome.org>
2460 * girepository/girparser.c (start_glib_boxed), (start_function),
2461 (start_field), (start_alias):
2462 Refactor a couple of parsing functions to be simpler to follow.
2465 2008-08-24 Johan Dahlin <johan@gnome.org>
2467 * girepository/girparser.c (start_function):
2468 Remove left-over code, checking type of function.
2470 2008-08-23 Colin Walters <walters@verbum.org>
2472 * giscanner/config.py: Define DATADIR.
2473 * giscanner/transformer.py: Look in DATADIR.
2475 2008-08-23 Colin Walters <walters@verbum.org>
2477 * girepository/gtypelib.c: Check constructor
2479 * girepository/girnode.c: Small tweaks.
2480 * girepository/ginfo.c: Calculate signature offsets
2482 * girepository/girparser.c: Remove duplicate
2484 * giscanner/glibtransformer.py: Avoid marking
2485 functions which return a basic type as
2488 2008-08-23 Colin Walters <walters@verbum.org>
2490 * girepository/girparser.c: Ignore <include>.
2491 * giscanner/girparser.py: Parse them.
2492 * giscanner/girwriter.py: Generate them.
2493 * giscanner/transformer.py: Process <include>
2494 recursively. Don't require full path for
2495 includes, look in {$XDG_DATA_DIRS}/gir.
2496 * tools/g-ir-scanner: Pass through includes.
2497 * Makefile.am: Remove extra --include
2499 * *-expected.gir: Add expected includes.
2501 2008-08-23 Johan Dahlin <johan@gnome.org>
2503 * tests/scanner/Makefile.am:
2504 * tests/scanner/annotation-expected.gir:
2505 * tests/scanner/drawable-expected.gir:
2506 Avoid duplication in the Makefile, regenerate with new
2507 namespaces (same as the filename)
2509 2008-08-22 Colin Walters <walters@verbum.org>
2511 * girepository/girnode.c: Don't hardcode integers,
2514 2008-08-22 Johan Dahlin <johan@gnome.org>
2516 * giscanner/sourcescanner.py:
2517 Check for ../gobject-introspection-1.0.pc.in to determine
2518 if we run installed or uninstalled.
2520 2008-08-22 Johan Dahlin <johan@gnome.org>
2523 * giscanner/sourcescanner.py:
2524 Send in undefs/defines via writing it directly to stdin
2525 of cpp instead of via arguments.
2527 2008-08-22 Colin Walters <walters@verbum.org>
2529 * tools/generate.c, tools/compiler.c: Default
2531 * all Makefile.am: Update.
2533 2008-08-22 Colin Walters <walters@verbum.org>
2535 * girepository/girparser.c: Pass through
2536 recursive types. Avoid overwriting errors.
2537 * giscanner/xmlwriter.py: Always write the
2539 * tests/*.gir: Adjust.
2540 * tests/scanner/Makefile.am: Build typelibs,
2541 and generate XML from those. Once we
2542 have a good diff mechanism...
2543 * tests/scanner/*-expected.gir: Add XML
2545 * tools/g-ir-scanner: Accept --typelib-xml
2547 * tools/generate.c: Better defaults for transfer.
2549 2008-08-22 Johan Dahlin <johan@gnome.org>
2553 * giscanner/Makefile.am:
2554 * giscanner/config.py.in:
2555 * giscanner/sourcescanner.py:
2556 Use the generated glibconfig.h for all scanner invokations.
2557 Rename it to glibconfig-scanner.h and install it.
2558 Add a config.py which so far contains the include dir.
2560 2008-08-22 Johan Dahlin <johan@gnome.org>
2563 Replace glibconfig.h with our own, do some replacement
2564 for CPP/C features we do not support
2566 2008-08-22 Colin Walters <walters@verbum.org>
2568 * tools/generate.c (write_callable_info): Fix unref
2571 2008-08-22 Colin Walters <walters@verbum.org>
2573 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2574 * tests/Makefile.am: Support $(DEBUG)
2575 * tools/generate.c: Do immediate close tags if no
2578 2008-08-21 Colin Walters <walters@verbum.org>
2580 * tests/scanner/drawable-expected.gir,
2581 * tests/scanner/drawable.c,
2582 * tests/scanner/drawable.h:
2585 2008-08-21 Colin Walters <walters@verbum.org>
2587 * giscanner/glibtransformer.py: Compute prefix
2588 by searching through the symbol for bits
2589 rather than going directly from ctype; this fixes
2592 2008-08-21 Colin Walters <walters@verbum.org>
2594 * giscanner/glibtransformer.py: Also try squashing
2595 underscores from namespace, fixes webkit_web_view_new.
2597 2008-08-21 Colin Walters <walters@verbum.org>
2599 * giscanner/glibtransformer.py: More ctor work,
2600 avoid having gtk_window_group_new end up under
2603 2008-08-21 Colin Walters <walters@verbum.org>
2605 * giscanner/glibtransformer.py: Much simpler approach
2606 of mapping uscored names to classes.
2607 * giscanner/utils.py: Remove unnecessary function.
2609 2008-08-21 Johan Dahlin <johan@gnome.org>
2611 * girepository/girepository.c (g_irepository_require):
2612 Plug memory leak and avoid using freed memory.
2613 Resolve the whole module path, here as well.
2615 2008-08-21 Colin Walters <walters@verbum.org>
2617 * giscanner/glibtransformer.py: Look up all permutations
2618 of class names when scanning methods/ctors based on
2619 the prefix instead of using the return value. This
2620 associates gtk_window_new with the right class.
2622 2008-08-21 Colin Walters <walters@verbum.org>
2624 * girepository/girmodule.c (g_ir_module_build_typelib):
2625 Revert change to increment header_size; we do that in
2628 2008-08-21 Colin Walters <walters@verbum.org>
2630 * girepository/girnode.c (write_string): Tweak to
2631 use UINT instead of INT. Not likely to matter.
2632 * girepository/girmodule.c (g_ir_module_build_typelib):
2633 Add to header_offset as well for header strings
2634 to match what write_string does.
2635 * girepository/gtypelib.c: Replace is_name with
2636 validate_name, which more strongly validates and
2637 handles errors in a better way. Update all callers.
2638 * giscanner/glibtransformer.py: Handle constructors
2641 2008-08-21 Johan Dahlin <johan@gnome.org>
2643 * gir/Makefile.am (typelibs_DATA): Build and
2644 install the Gio.typelib too
2646 * girepository/gtypelib.c (_g_typelib_init):
2647 Use g_module_build_path to resolve the shlib name
2649 2008-08-21 Colin Walters <walters@verbum.org>
2651 * gir/Makefile.am: CLEANFILES typelibs too.
2653 2008-08-21 Johan Dahlin <johan@gnome.org>
2655 * giscanner/glibtransformer.py:
2656 Do not send .la files through find_library.
2658 2008-08-21 Colin Walters <walters@verbum.org>
2660 * girepository/girparser.c (g_irepository_require):
2661 Fix one small leak in error case.
2663 2008-08-21 Johan Dahlin <johan@gnome.org>
2666 Parse glibconfig.h as well and install the compiled
2669 2008-08-21 Johan Dahlin <johan@gnome.org>
2672 * giscanner/glibtransformer.py:
2673 * tools/g-ir-scanner:
2674 Do not hard-core library names in the Makefile, reuse
2675 ctypes find_library instead.
2677 2008-08-21 Johan Dahlin <johan@gnome.org>
2679 * girepository/girparser.c (resolve_aliases):
2680 Remove compilation warnings
2682 2008-08-21 Johan Dahlin <johan@gnome.org>
2684 * girepository/girepository.c (g_irepository_require):
2685 Rewrap and fix double free bug by leaking a bit.
2687 2008-08-20 Colin Walters <walters@verbum.org>
2689 * girepository/girepository.c: Add new function
2690 g_irepository_get_typelib_path which tells
2691 us from where we loaded a namespace.
2693 2008-08-20 Colin Walters <walters@verbum.org>
2695 * tests/scanner/*-expected.gir: Adjust for
2696 added shared-library.
2697 * giscanner/giwriter.py: Make pylint happy.
2699 2008-08-20 Colin Walters <walters@verbum.org>
2701 * girepository/girmodule.c (g_ir_module_build_typelib):
2702 Calculate size correctly, avoid use-after-free.
2704 2008-08-20 Colin Walters <walters@verbum.org>
2706 * girepository/girepository.c: Remove
2707 g_irepository_register_file in favor of
2708 g_irepository_require. There are two
2709 possible deployment scenarios for typelibs:
2710 First, separate in $DATADIR/gitypelibs/. Second,
2711 they may be embedded in shlibs. However since
2712 the first is now the normal case, the API is
2713 optimized around it.
2715 Refactor internals to look up typelibs for
2716 namespaces just-in-time, but we expect
2717 consumers to call g_irepository_require.
2719 Also, add some docs. No one has died from that
2721 * gir/Makefile.am: Need --library for glib.
2722 * giscanner/girwriter.py: Write out shared-library.
2723 * tools/g-ir-writer: Take the first --library
2724 argument as the target of shared-library. In
2725 the future we should make this nicer with pkg-config
2728 2008-08-20 Colin Walters <walters@verbum.org>
2730 * girepository/girparser.py: And parse them.
2732 2008-08-20 Johan Dahlin <johan@gnome.org>
2734 * giscanner/glibast.py: Add gshort/gushort types
2736 2008-08-20 Colin Walters <walters@verbum.org>
2738 * gir/Makefile.am: Rename .gir files using GI namespace.
2739 * girepository/girepository.c: Use XDG_DATA_DIRS for
2740 looking up typelibs. Also typelibs are now suffixed
2742 * tests/invoke/Makefile.am: Only use metadata.
2743 * girepository/Makefile.am: Remove unnecessary include.
2744 * tests/scanner/Makefile.am: Update using GI namespaces
2745 for scanner includes.
2747 2008-08-20 Colin Walters <walters@verbum.org>
2749 * girepository/transformer.py: Suppress aliases whose
2751 * girepository/ast.py: Define some more aliases.
2753 2008-08-20 Colin Walters <walters@verbum.org>
2755 * girepository/girparser.c: Avoid alias infloops.
2757 2008-08-20 Colin Walters <walters@verbum.org>
2759 * tests/scanner/foo-expected.gir: Fix expected list type.
2761 2008-08-20 Johan Dahlin <johan@gnome.org>
2763 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2764 Add a workaround for #548689.
2765 We can now compile gtk!
2767 2008-08-20 Colin Walters <walters@verbum.org>
2769 * giscanner/glibtransformer.py: Try to look up
2770 aliases using the c:type too.
2772 2008-08-20 Colin Walters <walters@verbum.org>
2774 * girepository/girparser.c: Parse union fields.
2776 2008-08-20 Johan Dahlin <johan@gnome.org>
2778 * giscanner/ast.py: Make time_t an alias for long
2780 * gir/gio-2.0-good.gir:
2781 * gir/glib-2.0-good.gir:
2782 * gir/gobject-2.0-good.gir:
2784 * giscanner/glibtransformer.py:
2785 Do not delete Class structures, we need them in gdk/gtk.
2786 * tests/scanner/drawable-expected.gir:
2787 * tests/scanner/foo-expected.gir:
2788 * tests/scanner/utility-expected.gir:
2791 2008-08-20 Johan Dahlin <johan@gnome.org>
2793 * tests/scanner/Makefile.am:
2794 * tests/scanner/annotation-expected.gir:
2795 * tests/scanner/annotation.c (annotation_object_class_init),
2796 (annotation_object_init), (annotation_object_method),
2797 (annotation_object_in), (annotation_object_out),
2798 (annotation_object_inout), (annotation_object_inout2),
2799 (annotation_object_inout3), (annotation_object_calleeowns),
2800 (annotation_object_calleesowns), (annotation_object_get_strings),
2801 (annotation_object_with_voidp), (annotation_object_get_objects),
2802 (annotation_object_create_object), (annotation_object_allow_none):
2803 * tests/scanner/annotation.h:
2804 * tests/scanner/foo-expected.gir:
2805 * tests/scanner/foo.c:
2806 * tests/scanner/foo.h:
2807 Split out annotation tests out of foo
2809 2008-08-20 Johan Dahlin <johan@gnome.org>
2811 * tests/scanner/Foo-expected.gir:
2812 * tests/scanner/Makefile.am:
2813 * tests/scanner/foo-expected.gir:
2814 * tests/scanner/foo-object.h:
2815 * tests/scanner/foo.c:
2816 Foo->foo, foo-object.h -> foo.h
2818 2008-08-20 Johan Dahlin <johan@gnome.org>
2820 * tests/scanner/Foo-expected.gir:
2821 * tests/scanner/Makefile.am:
2822 * tests/scanner/drawable-expected.gir:
2823 * tests/scanner/drawable.c (test_drawable_class_init),
2824 (test_drawable_init):
2825 * tests/scanner/drawable.h:
2826 * tests/scanner/foo-object.h:
2827 * tests/scanner/foo.c (foo_boxed_method):
2828 Move the drawable parts out of Foo to its own test.
2830 2008-08-20 Johan Dahlin <johan@gnome.org>
2832 * tests/scanner/Foo-expected.gir:
2833 * tests/scanner/foo-object.h:
2834 * tests/scanner/foo.c (foo_drawable_class_init),
2835 (foo_drawable_init):
2836 Add a based on GdkDrawable which generates
2839 2008-08-19 Colin Walters <walters@verbum.org>
2841 * giscanner/transformer.py: Don't try
2842 to strip prefix before namespace.
2844 2008-08-19 Johan Dahlin <johan@gnome.org>
2846 * giscanner/transformer.py:
2847 * tests/scanner/Foo-expected.gir:
2848 * tests/scanner/foo-object.h:
2849 Add support for typedef void foo type of
2852 2008-08-19 Johan Dahlin <johan@gnome.org>
2855 * giscanner/girwriter.py:
2856 * giscanner/glibtransformer.py:
2857 * giscanner/transformer.py:
2858 * tests/scanner/Foo-expected.gir:
2859 Add basic support for union, base the code much
2860 on Struct. Add a testcase.
2862 2008-08-19 Johan Dahlin <johan@gnome.org>
2864 * tests/scanner/Foo-expected.gir:
2865 * tests/scanner/foo-object.h:
2866 Add a union testcase which the compiler currently
2869 2008-08-19 Johan Dahlin <johan@gnome.org>
2871 * gobject-introspection-1.0.pc.in:
2872 Add a g_ir_compiler variable
2874 2008-08-19 Colin Walters <walters@verbum.org>
2876 * giscanner/ast.py: Rework types to be more closely
2878 * giscanner/girparser.py: Parse more bits.
2879 * giscanner/girwriter.py: Write sequences in a new
2880 way that specifies container type.
2881 * giscanner/glibast.py: Adjust for ast.py changes,
2882 add 'ctype' property to GLibObject and GLibInterface
2883 so we can look things up by it later.
2884 * gicanner/transformer.py: Names is new class holding
2885 the various namespaces we manage. Do not confuse
2886 with Namespace which is toplevel XML node effectively.
2887 Rework all type resolution to go through
2888 _resolve_type_name_1.
2889 * giscanner/glibtransformer.py: Raise UnknownTypeError
2890 instead of ValueError for cleanliness. Add Unresolved
2891 class to mark types whose parent we haven't seen yet.
2892 Use new Names object from transformer.py.
2893 Correctly look up parent=.
2894 Fix type validation to handle sequences.
2895 * tests/scanner/Foo-expected.gir: Update for sequence
2896 work, int instead of int32.
2897 * tools/g-ir-scanner: Add --noclosure option
2898 * gir/Makefile.am: Use --noclosure by default for
2901 2008-08-18 Johan Dahlin <johan@gnome.org>
2903 * gir/gio-2.0-good.gir:
2904 * gir/glib-2.0-good.gir:
2905 * gir/gobject-2.0-good.gir:
2908 2008-08-18 Johan Dahlin <johan@gnome.org>
2911 * giscanner/girparser.py:
2912 * giscanner/girwriter.py:
2913 * giscanner/glibast.py:
2914 * giscanner/glibtransformer.py:
2915 * giscanner/transformer.py:
2916 * tests/scanner/Foo-expected.gir:
2917 * tests/scanner/foo-object.h:
2918 * tests/scanner/utility-expected.gir:
2919 * tests/scanner/utility.h:
2920 Redo type resolving and validation.
2921 Add a couple of new tests.
2922 Patch mostly written by Colin.
2924 2008-08-18 Johan Dahlin <johan@gnome.org>
2927 * giscanner/girparser.py:
2929 * giscanner/transformer.py:
2930 Improve enum parsing for enums without a GType.
2931 Make flags/enum references to other girs work
2932 * giscanner/utils.py:
2934 * tests/scanner/Makefile.am:
2935 * tests/scanner/foo-object.h:
2936 * tests/scanner/utility-expected.gir:
2937 * tests/scanner/utility.h:
2938 Add a new test for external enum references
2940 2008-08-18 Johan Dahlin <johan@gnome.org>
2942 * docs/global-module-registry.txt: Update
2944 * tests/array.gir: Update with new type proposal
2946 * girepository/girepository.c (g_type_tag_to_string):
2947 * girepository/girepository.h:
2948 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2950 * girepository/girnode.h:
2951 Make enum serializing functions public. Clean up some whitespace.
2953 2008-08-17 Johan Dahlin <johan@gnome.org>
2955 * docs/global-module-registry.txt:
2956 Add a document for an on disk module registry format
2958 2008-08-17 Johan Dahlin <johan@gnome.org>
2961 * gir/gio-2.0-good.gir:
2964 2008-08-17 Johan Dahlin <johan@gnome.org>
2967 * gir/glib-2.0-good.gir:
2968 * gir/gobject-2.0-good.gir:
2969 * giscanner/cgobject.py:
2970 * giscanner/glibtransformer.py:
2971 Regenerate GObject & GType.
2972 Avoid warnings when generating gobject-2.0.gir.
2973 Introspect a little more, and skip *_get_type functions.
2975 2008-08-17 Colin Walters <walters@verbum.org>
2977 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2978 Rename to -good, always generate during build.
2979 * gir/Makefile.am: Ensure .gir files dep on
2980 all scanner sources.
2981 * Makefile.am: Switch build order to ensure
2982 the scanner is ready before we do gir/.
2983 * tools/g-ir-scanner: Look for .git too.
2985 2008-08-17 Johan Dahlin <johan@gnome.org>
2987 * girepository/gtypelib.c (validate_enum_blob):
2988 * giscanner/glibtransformer.py:
2989 * giscanner/transformer.py:
2990 Remove resolve_possible_typedefs, it was unused.
2991 Allow multiple enum values of the sample value in an enum,
2992 since it's actually pretty common.
2993 Register enums so they can be resolved too.
2995 2008-08-16 Johan Dahlin <johan@gnome.org>
2997 * giscanner/girparser.py:
2998 Parse enumeration/bitfield.
3000 2008-08-16 Johan Dahlin <johan@gnome.org>
3002 * giscanner/girparser.py:
3005 2008-08-16 Johan Dahlin <johan@gnome.org>
3007 * giscanner/glibtransformer.py:
3008 Resolve type names for alias targets
3009 * giscanner/transformer.py:
3010 Skip FILE* parameters fow now
3012 2008-08-16 Johan Dahlin <johan@gnome.org>
3015 * gir/gobject-2.0.gir:
3018 * tests/scanner/Makefile.am:
3021 2008-08-15 Colin Walters <walters@verbum.org>
3023 * giscanner/glibtransformer.py: Explicitly construct
3024 new list, since we're deleting as we iterate.
3025 Don't delete all structures which end in Class; just
3026 ones which have a paired GObject.
3027 Fix printing of type warning.
3028 * giscanner/transformer.py: Make strip_namespace_object
3029 be the identity function if it doesn't match the
3032 2008-08-15 Colin Walters <walters@verbum.org>
3034 * giscanner/cgobject.py: Define yet more argument
3035 prototypes; fix prototype for g_type_fundamental.
3037 2008-08-14 Johan Dahlin <johan@gnome.org>
3039 * tests/Makefile.am:
3040 * tests/constant.gir:
3041 * tests/gobject.gir:
3043 * tools/generate.c (write_struct_info):
3044 Fix generator for constant/gobject/struct
3046 2008-08-14 Johan Dahlin <johan@gnome.org>
3048 * tests/Makefile.am:
3050 * tools/generate.c (write_enum_info):
3051 Fix generation of enum/bitfields
3053 2008-08-14 Johan Dahlin <johan@gnome.org>
3055 * girepository/girparser.c (start_field), (start_constant),
3056 (start_type), (end_element_handler):
3057 Clear up constant parsing
3062 * tools/generate.c (write_callable_info), (write_function_info),
3063 (write_callback_info), (write_constant_info), (write_signal_info),
3064 (write_vfunc_info), (write_property_info), (write_object_info),
3065 (write_interface_info):
3066 Constants/Signals are handled now.
3068 2008-08-14 Johan Dahlin <johan@gnome.org>
3070 * girepository/girparser.c (start_type):
3071 Don't require c:type.
3072 * tests/Makefile.am:
3075 Update, remove parts we don't support yet
3076 * tests/roundtrips.sh:
3078 * tools/generate.c (write_type_info), (write_field_info),
3079 (write_callable_info), (write_struct_info):
3080 Make it emit proper gir.
3082 2008-08-14 Johan Dahlin <johan@gnome.org>
3084 * giscanner/transformer.py:
3085 New internal function for adding a new node.
3087 2008-08-14 Johan Dahlin <johan@gnome.org>
3090 Define an internal _H_ variable so we skip parsing both
3091 i18n headers, only one is needed.
3093 Add the glib-2.0.gir too.
3094 * giscanner/glibast.py:
3095 Add gconstpointer as an alias for ANY
3096 * giscanner/transformer.py:
3097 Do not lower case enumeration names per se.
3098 Skip functions which has parameters called 'va_list'
3100 2008-08-14 Colin Walters <walters@verbum.org>
3102 * giscanner/transformer.py: Comment data structures.
3103 Also squash pointers in resolve_type_name to correspond
3104 with what we do for params.
3105 * giscanner/glibtransformer.py: Print warnings in more
3106 situations. Rework checks for method/constructor to
3107 look up in our GType database instead of just checking
3108 for *. Avoid generating <record> for GObject which
3109 duplicate the <class>.
3110 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3113 2008-08-14 Johan Dahlin <johan@gnome.org>
3115 * giscanner/girwriter.py:
3116 * giscanner/glibast.py:
3117 * giscanner/glibtransformer.py:
3118 * giscanner/transformer.py:
3120 * tests/Makefile.am:
3121 Add pyflakes.py and run it in make check.
3122 Update the source code to fix the errors reported by
3125 2008-08-14 Johan Dahlin <johan@gnome.org>
3128 * giscanner/girparser.py:
3129 * giscanner/glibast.py:
3130 * giscanner/glibtransformer.py:
3131 Refactor the parser a bit.
3132 Add parent type to interfaces and update callsites.
3134 2008-08-14 Johan Dahlin <johan@gnome.org>
3136 * giscanner/glibtransformer.py:
3137 * giscanner/utils.py:
3138 Refactor a bit, avoid isinstance and add a method
3139 for each type we parse.
3141 2008-08-14 Johan Dahlin <johan@gnome.org>
3144 * giscanner/girparser.py:
3145 * giscanner/glibtransformer.py:
3146 * tests/Makefile.am:
3147 Run pep8.py in make check, fix old errors.
3149 2008-08-13 Colin Walters <walters@verbum.org>
3151 * giscanner/girparser.py: Parse records.
3153 2008-08-13 Colin Walters <walters@verbum.org>
3155 * gir/Makefile.am: Install again.
3156 * gir/gobject-2.0.gir: Add some more bits.
3158 2008-08-13 Colin Walters <walters@verbum.org>
3160 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3161 * giscanner/girparser.py: Handle aliases.
3162 * giscanner/transformer.py: Record aliases. Make resolver
3163 functions public; we now call into these explicitly from
3164 glibtransformer. Handle resolving aliases.
3165 * giscanner/glibtransformer.py: Separate our internal namespace
3166 from included ones. Call up into transformer's resolver functions.
3168 2008-08-13 Johan Dahlin <johan@gnome.org>
3170 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3171 * girepository/girparser.c (start_class):
3172 * giscanner/glibtransformer.py:
3173 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3175 2008-08-13 Johan Dahlin <johan@gnome.org>
3177 * giscanner/cgobject.py:
3178 Register GInitiallyUnowned
3179 * giscanner/girwriter.py:
3180 * giscanner/glibtransformer.py:
3181 Special case GObject/GInitially owned as they are a bit special to use.
3183 2008-08-13 Colin Walters <walters@verbum.org>
3185 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3186 Object is in GObject namespace.
3188 2008-08-13 Colin Walters <walters@verbum.org>
3190 * giscanner/girparser.py: Fix processing of functions
3193 2008-08-13 Colin Walters <walters@verbum.org>
3195 * giscanner/girparser.py: Parse more than just <class.
3196 * giscanner/glibtransformer.py: Put aliases in a separate
3197 data structure since their name is not canonicall.
3198 * giscanner/transformer.py: Handle resolving type names
3201 2008-08-13 Johan Dahlin <johan@gnome.org>
3203 * tools/g-ir-scanner:
3204 Allow multiple libraries
3205 * giscanner/glibtransformer.py:
3206 Rename load_library to add_library, traverse over all libraries
3207 when trying to resolve a function
3209 2008-08-12 Colin Walters <walters@verbum.org>
3211 * giscanner/transformer.py: Record typedefs as <alias> elements.
3212 Also attempt to look up types in external namespaces.
3213 * giscanner/girwriter.py: Write them.
3214 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3215 checks. Resolve interface methods and properties.
3216 * tests/scanner/foo-object.h: Add a method with typedef.
3217 * tests/scanner/Foo-expected.gir: Update.
3218 * girepository/girnode.c: Debug tweaks.
3219 * girepository/girparser.c: Make a first pass through the XML where we
3220 record all the aliases. This lets us resolve them as we go through the
3222 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3223 from gir-repository.
3225 2008-08-12 Colin Walters <walters@verbum.org>
3227 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3228 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3230 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3232 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3234 2008-08-12 Colin Walters <walters@verbum.org>
3236 * giscanner/glibtransformer.py: Also transform object properties.
3238 2008-08-12 Colin Walters <walters@verbum.org>
3240 * giscanner/glibtransformer.py: Also transform callbacks
3241 and structure field types.
3242 * tests/scanner/Fooe-expected.gir: Update to expect correct
3243 names for callbacks and structs.
3245 2008-08-12 Colin Walters <walters@verbum.org>
3247 * girepository/girparser.c: Handle 'any'.
3248 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3249 Add test for void *.
3251 2008-08-12 Colin Walters <walters@verbum.org>
3253 * giscanner/glibtransformer.py: We need to do type
3254 resolution in a second pass after we've seen all the
3255 enums, records, etc.
3257 2008-08-12 Colin Walters <walters@verbum.org>
3259 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3260 Add enum return value.
3261 * giscanner/glibtransformer.py: Transform function return types
3264 2008-08-12 Colin Walters <walters@verbum.org>
3266 * tests/scanner/Makefile.am: Dep .gir files on scanner
3267 sources too. Also remove @ so we see scanner invocations.
3269 2008-08-12 Colin Walters <walters@verbum.org>
3271 * girepository/girparser.c, girepository/gtypelib.c,
3272 girepository/gtypelib.h, girepository/girnode.c:
3273 Remove usage of (GAPI-oriented) TypeTag in favor of
3274 GITypeTag from girepository.h.
3276 2008-08-10 Colin Walters <walters@verbum.org>
3278 * tests/roundtrips.sh: Use the correct tests.
3280 2008-08-10 Colin Walters <walters@verbum.org>
3282 * giscanner/cgobject.py: Declare/wrap a few more functions.
3283 Fix parameter types for g_object_new and g_type_fundamental.
3285 2008-08-10 Colin Walters <walters@verbum.org>
3287 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3288 us to declare types for both return value and parameters. The
3289 ctypes default of 'int' is bad because it hides 32/64 bit
3290 problems. Convert all existing functions to use it.
3292 2008-08-09 Johan Dahlin <johan@gnome.org>
3294 * giscanner/__init__.py:
3296 * giscanner/cgobject.py:
3297 * giscanner/gidlparser.py:
3298 * giscanner/gidlwriter.py:
3299 * giscanner/girparser.py:
3300 * giscanner/girwriter.py:
3301 * giscanner/glibast.py:
3302 * giscanner/glibtransformer.py:
3303 * giscanner/odict.py:
3304 * giscanner/sourcescanner.py:
3305 * giscanner/transformer.py:
3306 * giscanner/utils.py:
3307 * giscanner/xmlwriter.py:
3308 * tools/g-ir-scanner:
3312 2008-08-09 Johan Dahlin <johan@gnome.org>
3315 * relaxng/c-types.xml:
3316 * relaxng/g-types.xml:
3317 * relaxng/relaxng.rng:
3319 Remove outdated relaxng schemas.
3321 2008-08-09 Johan Dahlin <johan@gnome.org>
3324 Rename metadata to typelib in variable names,
3327 2008-08-09 Johan Dahlin <johan@gnome.org>
3331 Remove old C scanner, which got rewritten in python.
3333 2008-08-09 Johan Dahlin <johan@gnome.org>
3335 * girepository/Makefile.am:
3336 * tools/Makefile.am:
3337 * tools/girmodule.c:
3338 * tools/girmodule.h:
3341 * tools/girparser.c:
3342 * tools/girparser.h:
3343 * tools/girwriter.c:
3344 * tools/girwriter.h:
3345 Move shared *.[ch] files to girepository from tools
3347 2008-08-09 Johan Dahlin <johan@gnome.org>
3349 * tests/Makefile.am:
3352 * tests/constant.test:
3354 * tests/errors.test:
3355 * tests/function.test:
3356 * tests/gobject.test:
3357 * tests/interface.test:
3358 * tests/object.test:
3359 * tests/struct.test:
3364 Rename *.test to *.gir
3366 2008-08-09 Johan Dahlin <johan@gnome.org>
3369 * tests/Makefile.am:
3370 * tests/parser/Foo-expected.gir:
3371 * tests/parser/Makefile.am:
3372 * tests/parser/foo-object.h:
3373 * tests/parser/foo.c:
3374 * tests/parser/utility-expected.gir:
3375 * tests/parser/utility.c:
3376 * tests/parser/utility.h:
3377 * tests/scanner/Makefile.am:
3378 Rename tests/parser to test/scanner
3380 2008-08-08 Colin Walters <walters@verbum.org>
3382 * tests/roundtrips.sh: Use local .gir files again.
3384 2008-08-08 Colin Walters <walters@verbum.org>
3386 * tests/invoke/Makefile.am: .gir file depends on libtool
3389 2008-08-08 Colin Walters <walters@verbum.org>
3391 * tools/girnode.c: Pass through parent node so we can
3392 print the node whose child is NULL, if that occurs.
3394 2008-08-08 Johan Dahlin <johan@gnome.org>
3396 * tests/Makefile.am:
3397 Disable roundtrip tests which are not yet working
3398 * tests/invoke/testfns.gir:
3401 2008-08-08 Johan Dahlin <johan@gnome.org>
3403 * giscanner/girwriter.py:
3405 * giscanner/glibast.py:
3406 * giscanner/glibtransformer.py:
3407 Swap order of members, to keep it consistent with
3410 2008-08-08 Johan Dahlin <johan@gnome.org>
3412 * girepository/gtypelib.c (validate_header):
3413 * girepository/gtypelib.h:
3415 * giscanner/girwriter.py:
3416 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3417 (gi_source_symbol_unref):
3420 * tests/constant.test:
3422 * tests/errors.test:
3423 * tests/function.test:
3424 * tests/gobject.test:
3425 * tests/interface.test:
3426 * tests/invoke/Makefile.am:
3427 * tests/invoke/testfns.xml:
3428 * tests/object.test:
3429 * tests/parser/Makefile.am:
3430 * tests/roundtrips.sh:
3431 * tests/struct.test:
3436 * tools/Makefile.am:
3437 * tools/compiler.c (main):
3438 * tools/generate.c (write_callable_info), (write_function_info),
3440 * tools/gidlmodule.c:
3441 * tools/gidlmodule.h:
3444 * tools/gidlparser.c:
3445 * tools/gidlparser.h:
3446 * tools/gidlwriter.c:
3447 * tools/gidlwriter.h:
3448 * tools/scanner.c (create_node_from_gtype),
3449 (create_node_from_ctype), (g_igenerator_process_properties),
3450 (g_igenerator_process_signals), (g_igenerator_create_object),
3451 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3452 (g_igenerator_create_enum), (g_igenerator_create_flags),
3453 (g_igenerator_process_function_symbol),
3454 (g_igenerator_process_unregistered_struct_typedef),
3455 (g_igenerator_process_struct_typedef),
3456 (g_igenerator_process_union_typedef),
3457 (g_igenerator_process_enum_typedef),
3458 (g_igenerator_process_function_typedef),
3459 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3460 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3461 Merge in the gir-compiler branch.
3462 Thanks to Philip and Colin for their help.
3464 2008-07-26 Colin Walters <walters@verbum.org>
3466 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3467 and g-idl-generate to go along with how we're changing this
3468 module to be installed.
3469 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3471 2008-07-24 Colin Walters <walters@verbum.org>
3473 * girepository/girepository.c (g_irepository_register): Add
3474 environment variable G_IREPOSITORY_VERBOSE so we can print
3475 out what we're doing.
3476 * girepository/girepository.c (g_irepository_register_file):
3477 Add GError error message to g_debug call.
3479 2008-07-08 Jürg Billeter <j@bitron.ch>
3481 * giscanner/glibast.py:
3485 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3487 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3490 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3493 * giscanner/girwriter.py:
3494 * giscanner/transformer.py:
3495 * tests/parser/Foo-expected.gir:
3496 * tests/parser/foo-object.h:
3497 * tests/parser/foo.c (foo_object_allow_none):
3498 Add support for gtk-doc annotations for allow-none.
3501 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3504 * giscanner/girwriter.py:
3505 * giscanner/glibast.py:
3506 * giscanner/glibtransformer.py:
3507 * giscanner/transformer.py:
3508 * tests/parser/Foo-expected.gir:
3509 Start using abstract type instead of the raw C types.
3510 Register a bunch of glib types we care about.
3512 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3517 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3519 * girepository/girepository.c:
3520 * girepository/gtypelib.c:
3521 * girepository/ginfo.c:
3522 * girepository/ginvoke.c:
3523 * girepository/girepository.h:
3524 * girepository/gtypelib.h:
3525 * girepository/gmetadata.c:
3526 * girepository/Makefile.am:
3527 * girepository/gmetadata.h:
3529 * tools/gidlmodule.c:
3532 * tools/gidlmodule.h:
3533 * tools/gidlparser.c:
3535 Renamed GMetadata to GTypelib
3537 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3539 * giscanner/xmlwriter.py:
3540 Improve line wrapping when > 79 charaters
3542 2008-06-05 Jürg Billeter <j@bitron.ch>
3545 * giscanner/girwriter.py:
3546 * giscanner/transformer.py:
3547 Use <type> element for field types
3548 * tests/parser/Foo-expected.gir:
3551 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3553 * giscanner/glibtransformer.py:
3554 Fix a bug which prevented GdkEvent from being generated
3556 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3558 * giscanner/Makefile.am:
3560 * giscanner/girwriter.py:
3561 * giscanner/glibast.py:
3562 * giscanner/glibtransformer.py:
3563 * giscanner/transformer.py:
3564 * giscanner/utils.py:
3565 * tests/parser/Foo-expected.gir:
3566 Improve enum member parsing and introspection
3568 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3570 * giscanner/scannerparser.y:
3571 * giscanner/sourcescanner.h:
3572 * giscanner/sourcescanner.py:
3573 Add a new source type enum for member.
3574 Use __repr__ for improved debugging
3575 * giscanner/girparser.py:
3577 * giscanner/transformer.py:
3578 Improve parsing of struct members.
3579 * tests/parser/foo-object.h:
3582 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3584 * giscanner/xmlwriter.py:
3585 Improve error reporting when trying to quote None.
3586 * giscanner/girparser.py:
3587 Do not print warnings when including more complete .gir files
3588 * giscanner/girwriter.py:
3589 Do not require a name for parameters, add a todo for singletons
3590 * giscanner/glibtransformer.py:
3591 Refactor the way structs are done, add a couple of hacks to allow
3593 * giscanner/transformer.py:
3594 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3595 * gobject-introspection-1.0.pc.in:
3596 Export girdir, so we can access gobject-2.0.gir from outside
3598 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3600 * tools/g-ir-scanner:
3601 * tests/parser/Makefile.am:
3602 Update sys.path before running the parser so we don't have
3603 to setup PYTHONPATH ourselves.
3607 * girepository/Makefile.am:
3608 * giscanner/transformer.py:
3609 * gobject-introspection-1.0.pc.in:
3610 * gobject-introspection.pc.in:
3611 * tools/Makefile.am:
3613 Rename pkg-config name to gobject-introspection-1.0,
3614 Do not installed anything which is not using the gir format.
3615 Disable compililation the old C scanner, but still keep the source
3616 until all the remaning functionallity has been ported.
3618 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3620 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3621 a crash when symbol->indent is NULL.
3623 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3624 a function to convert a CTYPE symbol to a string
3626 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3629 * giscanner/girwriter.py:
3630 * giscanner/giscannermodule.c
3631 (pygi_source_scanner_append_filename),
3632 (pygi_source_scanner_parse_file):
3633 * giscanner/glibtransformer.py:
3634 * giscanner/sourcescanner.py:
3635 Revert back to using temporary files to send in headers.
3636 Allow Functions to be passed in as callbacks, add a couple
3637 of try/excepts missing features.
3638 We can now scan pango
3640 2008-05-08 Johan Dahlin <johan@gnome.org>
3642 * giscanner/glibtransformer.py:
3643 * giscanner/transformer.py:
3644 Move namespace stripping glibtransformer->transformer
3646 2008-05-08 Johan Dahlin <johan@gnome.org>
3649 * giscanner/girwriter.py:
3650 * giscanner/glibtransformer.py:
3651 * giscanner/transformer.py:
3652 * tools/g-ir-scanner:
3653 Introduce a namespace ast node
3655 2008-05-05 Johan Dahlin <johan@gnome.org>
3657 * giscanner/__init__.py:
3658 * giscanner/sourcescanner.py:
3659 * giscanner/transformer.py:
3660 Move sourcescanner symbols to the sourcescanner module, instead
3661 of in the global __init__ namespace.
3663 2008-05-03 Johan Dahlin <johan@gnome.org>
3665 * giscanner/glibtransformer.py:
3666 * tools/g-ir-scanner:
3667 Handle missing parameters better, allow - and + in .la dlname
3670 2008-05-03 Johan Dahlin <johan@gnome.org>
3672 * giscanner/__init__.py:
3674 * giscanner/girwriter.py:
3675 * giscanner/glibtransformer.py:
3676 * giscanner/transformer.py:
3677 Parse struct fields properly, improve debugging.
3679 2008-04-29 Johan Dahlin <johan@gnome.org>
3682 * giscanner/girwriter.py:
3683 * giscanner/transformer.py:
3684 * tests/parser/Foo-expected.gir:
3686 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3688 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3691 * docs/g-ir-scanner.1:
3692 * metadata-annotations-proposal.txt:
3693 * metadata-format.txt:
3694 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3696 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3698 * giscanner/girwriter.py:
3699 * giscanner/glibtransformer.py:
3700 * giscanner/transformer.py:
3701 * giscanner/xmlwriter.py:
3702 * tests/parser/Foo-expected.gir:
3703 * tests/parser/foo-object.h:
3704 Write record/structs to gir file too. Add a couple of tests,
3705 fix an off by one error in xmlwriter.py.
3707 2008-04-28 Johan Dahlin <johan@gnome.org>
3709 * giscanner/xmlwriter.py: Calculate the line length properly,
3710 include the provided extra indentation in the calculation, really.
3712 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3715 * giscanner/glibast.py:
3716 * giscanner/glibtransformer.py:
3717 * giscanner/transformer.py:
3718 * tools/g-ir-scanner:
3719 Add a --strip-prefix and sort out confusion between names and symbols
3720 for functions and struct + derivaties.
3721 Refactor bootstrap of g-ir-scanner, so we can set options on
3722 Transformer() before parsing everything.
3724 2008-04-28 Johan Dahlin <johan@gnome.org>
3726 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3727 when scanning girepository.h
3729 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3730 a __GI_SCANNER__ when we run.
3732 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3735 * giscanner/girwriter.py:
3736 * giscanner/glibast.py:
3737 * giscanner/glibtransformer.py:
3738 * tests/parser/Foo-expected.gir:
3739 * tests/parser/utility-expected.gir:
3740 Rename most c:identifier to c:type. Add new ones to
3741 class/interface/enum/boxed.
3743 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3746 * giscanner/girwriter.py:
3747 * giscanner/glibtransformer.py:
3748 * tests/parser/Foo-expected.gidl:
3749 * tests/parser/Makefile.am:
3750 Move c:identifier from return-value to subchild type,
3751 as per Jürgs suggestion
3753 2008-04-28 Johan Dahlin <johan@gnome.org>
3755 * giscanner/girwriter.py:
3756 * tests/parser/Foo-expected.gir:
3757 Write property.type as a child node.
3759 2008-04-27 Johan Dahlin <johan@gnome.org>
3764 * gidl/gobject-2.0.gidl:
3766 * gir/gobject-2.0.gir:
3767 * tests/parser/Makefile.am:
3768 Replace the GObject gidl with a GObject gir.
3770 2008-04-27 Johan Dahlin <johan@gnome.org>
3772 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3775 * giscanner/xmlwriter.py:
3776 * tests/parser/Foo-expected.gir:
3777 Include indentation in line length calculation
3779 2008-04-27 Johan Dahlin <johan@gnome.org>
3781 * giscanner/girparser.py:
3782 Prettify NS parsing using elementtree.
3784 2008-04-27 Johan Dahlin <johan@gnome.org>
3787 * giscanner/Makefile.am:
3788 * giscanner/girparser.py:
3789 * giscanner/glibtransformer.py:
3790 * tests/parser/Foo-expected.gidl:
3791 * tests/parser/Foo-expected.gir:
3792 * tests/parser/Makefile.am:
3793 * tests/parser/utility-expected.gidl:
3794 * tests/parser/utility-expected.gir:
3795 * tools/g-ir-scanner:
3796 Switch over to GIR as the default format. Add a simple GIDL
3798 Update tests and fix simplify makefiles by depending
3799 on GNU make extensions.
3801 2008-04-27 Johan Dahlin <johan@gnome.org>
3803 * giscanner/xmlwriter.py:
3804 Wrap attributes for lines which are wider than 79 characters
3806 * giscanner/scannerlexer.l:
3807 Allow parenthesis in annotations
3810 * giscanner/gidlwriter.py:
3811 * giscanner/girwriter.py:
3812 * giscanner/glibtransformer.py:
3813 * giscanner/transformer.py:
3814 Add initial sequence support, including annotation.
3815 Refactor type handling a bit.
3817 2008-04-27 Johan Dahlin <johan@gnome.org>
3819 * tests/parser/Foo-expected.gidl:
3820 * tests/parser/foo-object.h:
3821 * tests/parser/foo.c (foo_object_class_init),
3822 (foo_object_get_strings), (foo_object_get_objects):
3823 Add two new functions to check sequence return values.
3824 Also fixes a compilation warning.
3826 2008-04-27 Johan Dahlin <johan@gnome.org>
3828 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3829 a compilation warning.
3831 * tools/Makefile.am (g_ir_scanner_SOURCES):
3832 g-ir-scanner has no sources.
3834 2008-04-25 Johan Dahlin <johan@gnome.org>
3836 * giscanner/Makefile.am:
3838 * giscanner/gidlparser.py:
3839 * giscanner/gidlwriter.py:
3840 * giscanner/girwriter.py:
3841 * giscanner/glibast.py:
3842 * giscanner/glibtransformer.py:
3843 * giscanner/transformer.py:
3844 Split out nodes to ast.py and glibast.py
3846 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3848 * giscanner/Makefile.am:
3849 * giscanner/gidlparser.py:
3850 * giscanner/gidlwriter.py:
3851 * giscanner/girwriter.py:
3852 * giscanner/glibtransformer.py:
3853 * giscanner/gobjecttreebuilder.py:
3854 * giscanner/transformer.py:
3855 * giscanner/treebuilder.py:
3856 * tools/g-ir-scanner:
3857 Rename treebuilder to transformer and
3858 gobjectreebuilder to glibtransformer.
3860 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3862 * giscanner/Makefile.am:
3863 * giscanner/__init__.py:
3864 * giscanner/cgobject.py:
3865 * giscanner/gidlparser.py:
3866 * giscanner/gidlwriter.py:
3867 * giscanner/girwriter.py:
3868 * giscanner/gobjecttreebuilder.py:
3869 * giscanner/odict.py:
3870 * giscanner/sourcescanner.py:
3871 * giscanner/treebuilder.py:
3872 * giscanner/xmlwriter.py:
3873 * tools/Makefile.am:
3874 * tools/g-ir-scanner:
3875 Add LGPLv2 license header and install all python files
3877 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3880 * giscanner/gidlwriter.py:
3881 * giscanner/giscannermodule.c (pygi_source_directive_new),
3882 (directive_get_options), (pygi_source_symbol_new),
3883 (symbol_get_base_type), (pygi_source_type_new),
3884 (type_get_base_type), (type_get_child_list),
3885 (pygi_source_scanner_get_symbols),
3886 (pygi_source_scanner_get_directives):
3887 * giscanner/gobjecttreebuilder.py:
3888 * giscanner/sourcescanner.py:
3889 * giscanner/treebuilder.py:
3890 * tests/parser/foo-object.h:
3891 Add support for virtual methods.
3892 Pair struct FooClass with struct Foo.
3893 Clean up the SourceScanner bindings a bit.
3894 Add a testcase for virtual methods.
3896 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3898 * giscanner/cgobject.py:
3899 * giscanner/gidlwriter.py:
3900 * giscanner/gobjecttreebuilder.py:
3901 Add support for signals
3903 * tests/parser/foo.c (foo_object_class_init):
3904 * Foo-expected.gidl:
3905 Add a signal and update the expected output.
3907 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3909 * giscanner/gidlwriter.py:
3910 * giscanner/girwriter.py:
3911 * giscanner/giscannermodule.c (directive_get_name),
3912 (directive_get_value), (directive_get_options),
3913 (symbol_get_directives), (symbol_set_directives),
3914 (pygi_source_scanner_parse_file),
3915 (pygi_source_scanner_lex_filename),
3916 (pygi_source_scanner_get_directives), (init_giscanner):
3917 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3918 * giscanner/sourcescanner.h:
3919 * giscanner/sourcescanner.py:
3920 * giscanner/treebuilder.py:
3921 * tools/g-ir-scanner:
3922 Add support for source/header annotations.
3924 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3926 * giscanner/gidlwriter.py:
3927 * giscanner/girwriter.py:
3928 * giscanner/gobjecttreebuilder.py:
3929 * giscanner/treebuilder.py:
3930 Add support for Callbacks
3932 2008-04-22 Havoc Pennington <hp@pobox.com>
3934 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3935 not in metadata->module, look for it in the global module, in case
3936 some other object or the app itself provides the symbol.
3938 2008-04-22 Havoc Pennington <hp@pobox.com>
3940 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3941 dlopening a library that is already in the main app, by checking
3942 whether one of the lib's symbols is already loaded.
3944 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3946 * tests/parser/Foo-expected.gidl:
3947 * tests/parser/foo-object.h:
3950 2008-04-22 Havoc Pennington <hp@pobox.com>
3952 * girepository/ginfo.c (g_interface_info_find_method):
3953 Use interface_blob_size not object_blob_size to compute offset.
3955 2008-04-22 Havoc Pennington <hp@pobox.com>
3957 * girepository/gmetadata.c (_g_metadata_init): remove
3958 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3959 (Glade and Clutter for example) rely on being loaded globally.
3961 2008-04-22 Havoc Pennington <hp@pobox.com>
3963 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3964 function to get the GType given a RegisteredTypeInfo
3966 2008-04-22 Johan Dahlin <johan@gnome.org>
3968 * COPYING: Add a LGPL license, to prevent automake to
3969 put in a copy of GPL here. Pointed out by Havoc.
3971 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3972 (g_type_info_is_pointer), (g_type_info_get_tag),
3973 (g_type_info_get_param_type), (g_type_info_get_interface),
3974 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3975 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3976 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3977 (g_object_info_get_interface), (g_object_info_get_field),
3978 (g_interface_info_get_prerequisite),
3979 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3980 * girepository/ginvoke.c (get_ffi_type):
3981 * girepository/girepository.h:
3982 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3983 (g_metadata_check_sanity), (validate_header),
3984 (validate_array_type_blob), (validate_iface_type_blob),
3985 (validate_param_type_blob), (validate_error_type_blob),
3986 (validate_type_blob), (validate_constant_blob),
3987 (validate_struct_blob), (validate_enum_blob):
3988 * girepository/gmetadata.h:
3989 * tests/Makefile.am:
3990 * tests/invoke/Makefile.am:
3991 * tests/invoke/invoke.c (main):
3992 * tests/roundtrips.sh:
3993 * tools/Makefile.am:
3994 * tools/compiler.c (format_output), (write_out_metadata), (main):
3995 * tools/generate.c (write_type_name), (write_type_info),
3996 (write_constant_value), (write_enum_info), (load_metadata), (main):
3997 * tools/gidlcompilercontext.c:
3998 * tools/gidlcompilercontext.h:
3999 * tools/gidlcompilerentrynode.c:
4000 * tools/gidlcompilerentrynode.h:
4001 * tools/gidlcompilertypenode.c:
4002 * tools/gidlcompilertypenode.h:
4003 * tools/gidlmodule.c (g_idl_module_build_metadata):
4004 * tools/gidlmodule.h:
4005 * tools/gidlnode.c (init_stats), (dump_stats),
4006 (g_idl_node_get_size), (g_idl_node_get_full_size),
4007 (g_idl_node_cmp), (g_idl_node_can_have_member),
4008 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4009 (parse_int_value), (parse_uint_value), (parse_float_value),
4010 (parse_boolean_value), (find_entry_node), (find_entry),
4011 (serialize_type), (g_idl_node_build_metadata), (write_string):
4013 * tools/gidlparser.c (parse_type_internal):
4014 * tools/quote-file.sh:
4015 Revert revisions 157,149-148,136-129 and 120.
4016 Move back to using g-idl-generate to generate the metadata and
4017 avoids dependency on a c compiler.
4019 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4021 * giscanner/girwriter.py:
4022 * tools/g-ir-scanner:
4023 Add an initial GIR writer and a --format option to g-ir-scanner
4025 2008-04-21 Johan Dahlin <johan@gnome.org>
4027 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4028 gobject-2.0 and raise ImportError if not found.
4030 * giscanner/gidlparser.py:
4031 * giscanner/gidlwriter.py:
4032 * giscanner/gobjecttreebuilder.py:
4033 * tools/g-ir-scanner:
4034 Add a --include argument to include types from other idls.
4035 Add a minimalistic GIDL parser (just objects for now)
4036 Implement resolving of external type references and use it to
4037 resolve parent types, argument types and return types.
4039 2008-04-21 Johan Dahlin <johan@gnome.org>
4041 * giscanner/gidlwriter.py:
4042 * giscanner/gobjecttreebuilder.py:
4043 * giscanner/treebuilder.py:
4044 Add support for properties.
4045 Refactor Class/Interface support a bit, to share more code and
4046 always initialize their method attribute to an empty list.
4048 2008-04-21 Johan Dahlin <johan@gnome.org>
4050 * giscanner/cgobject.py:
4051 Add a workaround for a glib bug interface introspection bug
4052 (object_interface_list_properties, object_class_list_properties):
4053 Cast the return value to GParamSpec.
4055 * tests/parser/Foo-expected.gidl: Update
4056 * tests/parser/foo.c: Add a string property
4058 * giscanner/gobjecttreebuilder.py:
4059 After stripping namespaces, remove the original
4060 item to avoid duplication (GtkButton struct and Button object)
4062 2008-04-21 Johan Dahlin <johan@gnome.org>
4064 * giscanner/gobjecttreebuilder.py:
4065 * giscanner/treebuilder.py:
4066 Strip namespaces before objects, so we'll export
4067 GtkButton as Button in the gtk namespace
4069 2008-04-21 Johan Dahlin <johan@gnome.org>
4071 * giscanner/gidlwriter.py:
4072 * giscanner/gobjecttreebuilder.py:
4073 * giscanner/treebuilder.py:
4074 Add constructors for object/boxed types.
4076 2008-04-21 Johan Dahlin <johan@gnome.org>
4078 * giscanner/gidlwriter.py:
4079 * giscanner/gobjecttreebuilder.py:
4080 Add support for boxed types
4082 2008-04-21 Johan Dahlin <johan@gnome.org>
4084 * giscanner/giscannermodule.c: Mark structures as const,
4085 wrap SourceType.const_string.
4087 * tests/parser/foo-object.h: Add a couple of constants.
4089 * giscanner/gidlwriter.py:
4090 * giscanner/gobjecttreebuilder.py:
4091 * giscanner/treebuilder.py:
4092 Add basic support for interfaces
4094 * tools/g-ir-scanner:
4095 Add -o/--output for writing to a file
4097 2008-04-21 Havoc Pennington <hp@redhat.com>
4099 * TODO: add some C API wishlist items I could think of quickly
4101 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4103 * giscanner/gidlwriter.py:
4104 * giscanner/xmlwriter.py:
4105 Add a simple api for writing tags which can be used
4106 with the new 'with statement' in python 2.5
4108 2008-04-21 Johan Dahlin <johan@gnome.org>
4110 * giscanner/gobjecttreebuilder.py:
4111 Strip namespace and object prefix from method names.
4113 2008-04-21 Johan Dahlin <johan@gnome.org>
4115 * tools/g-ir-scanner (main): Add --pkg option to pass in
4116 pkg-config modules to get cflags from.
4118 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4119 Avoid duplication, reuse function writer for methods.
4121 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4123 * giscanner/gidlwriter.py:
4124 * giscanner/gobjecttreebuilder.py:
4125 * giscanner/treebuilder.py:
4126 * tools/g-ir-scanner:
4127 Resolve libtool .la files.
4128 Strip name spaces for methods.
4129 Add function symbols
4131 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4133 * giscanner/cgobject.py:
4134 * giscanner/gidlwriter.py:
4135 * giscanner/gobjecttreebuilder.py:
4136 * giscanner/treebuilder.py:
4137 Add support for classes and methods
4139 2008-04-20 Johan Dahlin <johan@gnome.org>
4141 * giscanner/gidlwriter.py:
4142 * giscanner/gobjecttreebuilder.py:
4143 * giscanner/odict.py:
4144 Avoid conflicts, keep the output ordered similar to
4145 the order of the input.
4146 Add a simple ordered dictionary implemenation
4148 2008-04-19 Johan Dahlin <johan@gnome.org>
4150 * giscanner/cgobject.py:
4151 * giscanner/gidlwriter.py:
4152 * giscanner/gobjecttreebuilder.py:
4153 * tools/g-ir-scanner:
4154 Start introspecting get-type functions.
4155 Implement support for GLib/GFlags GTypes.
4156 Add a ctype based GObject binding.
4158 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4160 * giscanner/gidlwriter.py:
4161 * giscanner/xmlwriter.py:
4162 * tools/g-ir-scanner:
4163 Add a simplistic gidl writer, which can't do too much.
4165 2008-04-18 Johan Dahlin <johan@gnome.org>
4167 * giscanner/sourcescanner.py:
4168 * giscanner/treebuilder.py:
4169 * tools/g-ir-scanner:
4170 split tree building and source scanning interface to separate files.
4172 2008-04-18 Johan Dahlin <johan@gnome.org>
4174 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4176 - Add support for struct/parameter/return, start parsing of ctypes
4178 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4181 2008-03-31 Johan Dahlin <johan@gnome.org>
4183 * tools/g-ir-scanner:
4184 Start to build abstract syntax node of scanned sources.
4185 Add support for cpp options.
4187 2008-03-27 Johan Dahlin <johan@gnome.org>
4189 * giscanner/giscannermodule.c:
4190 * giscanner/scannerlexer.l:
4191 * giscanner/sourcescanner.c:
4192 * tools/g-ir-scanner:
4194 Add simple pre-processor using subprocess and a PIPE.
4195 Change the parse_file apis to accept a file descriptor.
4197 2008-03-25 Johan Dahlin <johan@gnome.org>
4199 * giscanner/__init__.py:
4200 * tools/g-ir-scanner:
4201 Fix a typo and add an example python test program.
4203 2008-03-25 Johan Dahlin <johan@gnome.org>
4205 * giscanner/__init__.py:
4206 * giscanner/giscannermodule.c:
4207 * giscanner/sourcescanner.c:
4208 * giscanner/sourcescanner.h:
4209 Add constants and wrap a few more SymbolType fields
4211 2008-03-25 Johan Dahlin <johan@gnome.org>
4215 * giscanner/__init__.py:
4216 * giscanner/giscannermodule.c:
4217 * giscanner/Makefile.am:
4219 Add initial python bindings for the scanner and
4220 depend on python 2.5.
4222 2008-03-25 Johan Dahlin <johan@gnome.org>
4226 * giscanner/Makefile.am:
4227 * giscanner/sourcescanner.c:
4228 * giscanner/sourcescanner.h:
4229 * tools/Makefile.am:
4230 * tools/grealpath.h:
4231 * tools/sourcescanner.c:
4232 * tools/sourcescanner.h:
4234 Move the scanner to a separate library.
4236 2008-03-23 Johan Dahlin <johan@gnome.org>
4238 * tools/Makefile.am:
4241 * tools/scannerlexer.l:
4242 * tools/scannerparser.y:
4243 * tools/sourcescanner.c:
4244 * tools/sourcescanner.h:
4245 Split out the source scanner from the generator.
4246 Rename the symbols used in the scanner to use the gi_ prefix.
4247 This should make it possible to use the raw C parser from
4250 2008-03-23 Johan Dahlin <johan@gnome.org>
4252 * tests/parser/Makefile.am (utility.gidl):
4253 * tests/parser/utility-expected.gidl:
4254 Pass in the gobject.gidl since we're defining a GObject.
4256 2008-03-12 Johan Dahlin <johan@gnome.org>
4258 * relaxng/relaxng.rng:
4259 Add a releaxng in relaxng we can use to validate the relaxngs
4262 2008-03-12 Jürg Billeter <j@bitron.ch>
4264 * tools/scanner.c: (g_igenerator_new):
4265 * tools/scannerparser.y:
4266 Fix compiler warnings.
4268 2008-03-12 Jürg Billeter <j@bitron.ch>
4272 * tools/scannerparser.y:
4273 Start fixing memory management in g-idl-scanner.
4275 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4277 * tools/gidlcompilercontext.c: (write_compiled):
4278 Fix critical warning when no shlib passed to g-idl-compiler.
4280 2008-03-12 Johan Dahlin <johan@gnome.org>
4282 * tests/parser/utility-expected.gidl:
4283 * tests/parser/utility.h:
4284 Add a get_type-function, so the scanner actually
4285 parses it as an object.
4287 2008-03-12 Johan Dahlin <johan@gnome.org>
4289 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4292 * tests/parser/Foo-expected.gidl:
4293 * tests/parser/Makefile.am:
4294 * tests/parser/foo-object.h:
4295 * tests/parser/foo.c:
4296 * tests/parser/utility-expected.gidl:
4297 * tests/parser/utility.c:
4298 * tests/parser/utility.h:
4300 Add a new gidl test. 'utility.gidl', which is used to be able
4301 to test external type references. Add a reference to UtilityObject*
4304 2008-03-11 Johan Dahlin <johan@gnome.org>
4308 Remove most global variables
4310 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4312 * tools/scannerlexer.l:
4314 * tests/parser/Foo-expected.gidl:
4315 * tests/parser/foo.c:
4316 * tests/parser/Makefile.am:
4317 * tests/parser/foo-object.h:
4319 Added a few extra tests. Which resulted in finding a few
4320 bugs. Which resulted in me fixing those bugs
4322 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4324 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4325 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4326 Add some comments for strings into generated output for
4329 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4331 * tools/gidlcompilercontext.c: (write_compiled):
4332 Write out the shlibs variable before writing out the strings
4333 length. Fixes compiler warning when using '-l' flag with
4336 2008-03-11 Johan Dahlin <johan@gnome.org>
4338 * tests/parser/Foo-expected.gidl:
4339 * tests/parser/foo-object.h:
4342 * tools/scannerlexer.l:
4343 Add support for parsing return arguments. Add support for
4344 caller-owns return types.
4345 Patch by Philip Van Hoof.
4347 * tools/scannerparser.y:
4348 Remove parsing of the @deprecated syntax used in headers.
4349 We will support gtk-doc deprecation in the future instead.
4351 2008-03-11 Johan Dahlin <johan@gnome.org>
4353 * tools/compiler.c (main): Coding style fixes
4355 2008-03-10 Johan Dahlin <johan@gnome.org>
4358 Add GCOV_LIBS to GILIBS
4360 2008-03-10 Johan Dahlin <johan@gnome.org>
4362 * tests/parser/Foo-expected.gidl:
4363 * tests/parser/foo.c:
4364 Rename null-ok to direction=out
4366 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4368 reviewed and extensively tested by Johan
4370 * tests/parser/Foo-expected.gidl:
4371 * tests/parser/foo-object.h:
4372 * tests/parser/foo.c:
4375 * tools/gidlwriter.c:
4378 * tools/scannerlexer.l:
4379 * tools/scannerparser.y:
4381 Add support for scanning for gtk-doc comments inside
4382 C source files. Add tests
4384 2008-03-10 Johan Dahlin <johan@gnome.org>
4386 * tests/parser/Makefile.am:
4387 * tests/parser/foo.c:
4390 * tools/scannerparser.y:
4391 Add an api to lex filenames.
4392 Lex all source .c files passed in on the command line.
4393 Scan sources in a test and a couple of private structures
4394 which should not be included in the generated gidl
4396 2008-03-10 Johan Dahlin <johan@gnome.org>
4398 * tests/invoke/Makefile.am: Make the generated metadata
4399 depend on the g-idl-compiler
4401 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4403 * tools/gidlmodule.c
4404 * tools/gidlmodule.h
4407 Remove the old g-idl-compiler code.
4410 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4412 * tools/quote-file.sh
4415 Move to using the 'C' struct compiler code.
4417 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4419 * girepository/ginfo.c
4421 Change the way that external references with no namespace
4422 are dealt with. External references with no namespace
4423 are placed into the XML as-if they are a local reference.
4424 This is temporary, but helps with roundtrip tests.
4426 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4428 * girepository/ginfo.c
4429 Add the ability to get the value of a constant of
4430 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4431 is provided as a string.
4433 This would deal properly with:
4434 typedef char* random;
4435 const random = "A string";
4437 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4439 * girepository/ginfo.c
4440 * girepository/girepository.h
4442 Add a function to check if an enum is registered or not.
4443 Previously anything testing this relied on the g-type
4444 string offset having a value of 0.
4446 * girepository/gmetadata.c
4447 * girepository/gmetadata.h
4449 Remove unneccesary or erroneous checks. There were two
4450 metadata validation checks which made sure that the blob
4451 sizes were the same as some magic numbers compiled into the code.
4452 This is wrong as it breaks any forwards compatibility that may
4455 Checks were also present that made sure that unregistered type
4456 blobs had a value of 0 in the g-type offset field. This is
4457 unneccessary. If a type blob is unregistered then any value
4458 in its g-type field is simply invalid.
4460 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4462 * girepository/ginfo.c
4463 * girepository/gmetadata.c
4464 * girepository/gmetadata.h
4466 Change the metadata format to have a standard header
4467 for all the type blobs. Merge the SimpleTypeBlob
4468 and InterfaceTypeBlob into a union. A union of these
4469 two blobs existed previously but was not explicit
4470 in the metadata format.
4472 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4474 * tools/gidlcompilercontext.c
4475 * tools/gidlcompilercontext.h
4476 * tools/gidlcompilerentrynode.c
4477 * tools/gidlcompilerentrynode.h
4478 * tools/gidlcompilertypenode.c
4479 * tools/gidlcompilertypenode.h
4481 Add code to compile a tree of GIdlNodes to
4482 a 'C' struct representing the metadata.
4483 This is to aid cross-compiling. Previously
4484 the g-idl-compiler created a binary blob with
4485 data written in the byte order and alignment
4486 of the tool rather than the intended target.
4488 Cleaned up and improved by Johan and Robert :-)
4490 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4492 * girepository/ginvoke.c
4493 * girepository/girepository.h
4494 * girepository/gmetadata.c
4495 * girepository/gmetadata.h
4497 * tools/gidlparser.c
4498 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4499 to avoid confusion with the interface blob.
4502 * tools/gidlparser.c
4503 Remove magic numbers and replace with type-tag
4504 enumeration symbols.
4506 * girepository/gmetadata.c
4507 Add validate declaration.
4509 2008-03-10 Jürg Billeter <j@bitron.ch>
4511 * tools/gidlparser.c: (parse_type_internal):
4512 * tools/scannerlexer.l:
4513 * tools/scannerparser.y:
4514 Support C99 _Bool type in scanner.
4516 2008-03-10 Jürg Billeter <j@bitron.ch>
4518 * tests/parser/Foo-expected.gidl:
4519 * tests/parser/foo-object.h:
4520 * tests/parser/foo.c: (foo_enum_method):
4521 * tools/scanner.c: (g_igenerator_process_function_symbol):
4522 Don't skip functions that are defined in the namespace of a type
4523 that doesn't support methods, as for example enums.
4525 2008-03-10 Johan Dahlin <johan@gnome.org>
4527 * gidl.dtd: Remove, we're using relaxng for now
4529 * tests/parser/Foo-expected.gidl:
4530 * tests/parser/foo-object.h:
4531 * tests/parser/foo.c:
4532 Rename the enum/flags get_type functions to include the whole type.
4534 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4536 * tools/gidlwriter.c (enum_generate): added "type-name",
4537 "get-type" and "deprecated" missing arguments.
4538 * tests/parser/Foo-expected.gidl:
4539 * tests/parser/foo-object.h: test enum type, and no type.
4541 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4544 Consistent checks, add missing 'test'
4546 2008-03-05 Havoc Pennington <hp@redhat.com>
4548 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4549 does on Fedora 8. Make libffi a hard requirement, since it was in
4550 practice anyway (was not really conditional in the code or
4551 makefile, only in configure).
4553 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4555 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4556 reviewed by: Johan Dahlin <johan@gnome.org>
4558 * tests/Makefile.am:
4559 * tests/roundtrips.sh:
4560 Modify the roundtrips test so that they do not use the
4561 --raw option of the gidl compiler but instead compile a
4562 shared library to use with g_module.
4564 * tests/invoke/Makefile.am:
4565 * tests/invoke/invoke.c:
4566 Modify the invoke tests to build a shared library rather
4567 than use the --raw option.
4569 * tests/invoke/invoke-namespace-find.sh: Removed:
4570 Noone knows why this was here, so removed.
4572 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4574 * tools/scanner.c: (g_igenerator_process_function_symbol):
4575 Move g_idl_node_can_have_member test later, as it broke spotting
4576 get_type's for nodes that can't have members.
4578 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4581 * tools/gidlnode.c: (g_idl_node_can_have_member):
4582 Add g_idl_node_can_have_member.
4584 * tools/scanner.c: (g_igenerator_process_function_symbol):
4585 Use g_idl_node_can_have_member to test if we should add a function
4586 as a member of the type node.
4588 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4590 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4592 * tests/parser/Makefile.am:
4593 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4595 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4597 * tools/scanner.c: (main):
4598 Ignore -pthread when passed to g-idl-scanner.
4600 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4602 * tools/grealpath.h: Added:
4603 * tools/scanner.c: (main):
4604 * tools/scannerlexer.l:
4605 * tools/Makefile.am:
4606 Always use absolute paths with symbolic links resolved when
4607 comparing filenames.
4609 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4611 * gobject-introspection.pc.in:
4612 Provide variables for g-idl-parser, scanner and compiler in the
4615 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4618 * girepository/Makefile.am:
4619 * tools/Makefile.am:
4620 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4622 2008-02-10 Johan Dahlin <johan@gnome.org>
4624 * tests/parser/Foo-expected.gidl:
4625 * tests/parser/foo-object.h:
4626 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4627 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4630 2008-02-10 Johan Dahlin <johan@gnome.org>
4632 * tests/parser/Foo-expected.gidl:
4633 * tests/parser/foo-object.h:
4634 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4635 Add enum and flags test.
4637 2008-02-10 Johan Dahlin <johan@gnome.org>
4641 * girepository/Makefile.am:
4642 Make 'make distcheck' work again.
4644 2008-02-10 Johan Dahlin <johan@gnome.org>
4646 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4649 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4650 check, eg exclude it from BUILT_SOURCES.
4652 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4657 * girepository/Makefile.am:
4658 * m4/Makefile.am: Added:
4659 * m4/as-compiler-flag.m4: Added:
4660 * m4/gcov.m4: Added:
4661 * tools/Makefile.am:
4662 Add ability to generate a coverage report.
4663 Adds configure option --enable-gcov and make rule 'check-coverage'.
4665 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4669 * gidl/Makefile.am: Added:
4670 * girepository/Makefile.am: Added:
4671 * src/Makefile.am: Renamed to tools/Makefile.am:
4672 * src/compiler.c: Renamed to tools/compiler.c:
4673 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4674 * src/generate.c: Renamed to tools/generate.c:
4675 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4676 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4677 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4678 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4679 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4680 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4681 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4682 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4683 * src/ginfo.c: Renamed to girepository/ginfo.c:
4684 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4685 * src/girepository.c: Renamed to girepository/girepository.c:
4686 * src/girepository.h: Renamed to girepository/girepository.h:
4687 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4688 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4689 * src/scanner.c: Renamed to tools/scanner.c:
4690 * src/scanner.h: Renamed to tools/scanner.h:
4691 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4692 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4693 * tests/invoke/Makefile.am:
4694 Split src/ into girepository/ and tools/
4698 * girepository/Makefile.am:
4699 * tests/Makefile.am:
4700 * tests/invoke/Makefile.am:
4701 * tests/parser/Makefile.am:
4702 * tests/roundtrips.sh:
4703 * tools/Makefile.am:
4704 Make distcheck work.
4706 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4708 * tests/invoke/invoke.c: (main):
4709 * tests/invoke/testfns.c: (test6), (test7):
4710 * tests/invoke/testfns.xml:
4711 Add tests for invokation with a GList argument.
4712 Also tests caller-owns return values.
4714 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4717 Add some documentation for GICallableInfo
4719 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4722 Correct syntax errors in the DTD file.
4724 * relaxng/c-types.xml:
4725 * relaxng/g-types.xml:
4727 Add a RelaxNG specification for the GObject Introspection XML data.
4728 The Specification has validated all of the test files.
4730 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4732 * tests/roundtrips.sh:
4733 * tests/struct.test:
4734 Add roundtrip tests for structs.
4736 2008-01-11 Johan Dahlin <johan@gnome.org>
4738 * src/scanner.c (g_igenerator_process_function_symbol):
4739 Refactor out g_idle_node_add_member.
4740 (create_node_from_gtype, create_node_from_ctype):
4741 Use case instead of if...else
4742 (get_type_from_type_id):
4743 Rename to create_node_from_gtype
4744 (get_type_from_ctype):
4745 Rename to create_node_from_ctype
4747 Rename ginode -> node, gitype -> type, gifunc -> func.
4749 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4750 Two new functions, refactor out of scanner.c
4752 * src/scanner.c: (g_igenerator_process_function_symbol):
4753 * src/scannerlexer.l:
4754 Do not save the content of the deprecated variable, only
4757 2008-01-11 Johan Dahlin <johan@gnome.org>
4759 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4761 2008-01-11 Jürg Billeter <j@bitron.ch>
4763 * src/scannerlexer.l:
4764 Fix GTK-Doc parsing.
4766 2008-01-11 Jürg Billeter <j@bitron.ch>
4768 * src/scannerlexer.l:
4769 Fix GTK-Doc parsing.
4771 2008-01-11 Jürg Billeter <j@bitron.ch>
4773 * src/scanner.c: (lookup_symbol):
4774 Return unresolved name if we find unknown symbol.
4776 2008-01-11 Jürg Billeter <j@bitron.ch>
4778 * src/scanner.c: (g_igenerator_generate):
4779 Initialize GObject to fix scanning interface properties.
4781 * tests/parser/Foo-expected.gidl:
4782 * tests/parser/foo-object.h:
4783 * tests/parser/foo.c: (foo_interface_get_type):
4784 Test interfaces with GObject prerequisite.
4786 * tests/parser/Makefile.am:
4787 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4789 2007-12-27 Johan Dahlin <johan@gnome.org>
4791 * src/scannerlexer.l:
4792 Parse gtk-doc comments.
4794 * src/gidlwriter.c: (function_generate):
4795 Reorganize, avoid duplication and add support for
4796 writing deprecated functions.
4798 * src/scannerparser.y:
4800 Add new structure CDirective and functions to create/free them.
4802 * src/scanner.c: (g_igenerator_process_function_symbol),
4803 (g_igenerator_process_unregistered_struct_typedef),
4804 (g_igenerator_process_struct_typedef),
4805 (g_igenerator_process_union_typedef),
4806 (g_igenerator_process_enum_typedef),
4807 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4808 (g_igenerator_start_preprocessor):
4809 Parse @deprecated directive for functions.
4810 Remove some more C99isms.
4811 Send in -C to cpp to avoid stripping comments.
4813 * tests/parser/foo-object.h:
4814 * tests/parser/Foo-expected.gidl:
4815 Add deprecated directive
4817 2007-12-27 Johan Dahlin <johan@gnome.org>
4819 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4820 escape ' and " so it looks more like C.
4823 Unlink temporary file used.
4825 2007-12-27 Johan Dahlin <johan@gnome.org>
4827 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4828 (g_igenerator_start_preprocessor), (main):
4830 * src/scannerparser.y:
4831 Plug a couple of simple memory leaks.
4833 2007-12-27 Johan Dahlin <johan@gnome.org>
4835 * src/scanner.c: (g_igenerator_parse_macros),
4836 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4839 * src/scannerparser.y:
4840 * tests/parser/Makefile.am:
4842 Improve error reporting, return when the preprocessor fails.
4843 Add a verbose parameter, to aid debugging.
4844 Revert to using a temporary file to communicate between the
4845 preprocessor and the parser, because we need to wait for
4846 the exit code from the pre-processor before starting to parse.
4848 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4850 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4851 cparser.y to scannerparser.y
4853 2007-12-11 Johan Dahlin <johan@gnome.org>
4857 * src/scanner.c: (g_igenerator_new):
4859 Get rid of the global the_generator variable.
4861 2007-12-10 Johan Dahlin <johan@gnome.org>
4863 * src/scanner.c (main): Add an output option,
4864 add checks for required parameters
4867 set BUILD_SOURCES and CLEANFILES properly
4869 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4870 (g_writer_write_indent), (g_writer_write_unindent),
4871 (field_generate), (value_generate), (constant_generate),
4872 (property_generate), (function_generate), (vfunc_generate),
4873 (signal_generate), (interface_generate), (struct_generate),
4874 (union_generate), (boxed_generate), (enum_generate),
4875 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4877 * src/scanner.c: (g_igenerator_generate):
4879 * src/scannerwriter.c:
4881 Refactor scannerwriter to only be tied to a GIdlModule and move
4882 it (again!) to gidlwriter.c. Change the writer function to take
4885 2007-12-10 Johan Dahlin <johan@gnome.org>
4888 * src/scanner.c: (g_igenerator_generate):
4890 * src/scannerwriter.c: (g_igenerator_write_inline),
4891 (g_igenerator_write), (g_igenerator_write_indent),
4892 (g_igenerator_write_unindent), (field_generate), (value_generate),
4893 (constant_generate), (property_generate), (function_generate),
4894 (vfunc_generate), (signal_generate), (interface_generate),
4895 (struct_generate), (union_generate), (boxed_generate),
4896 (enum_generate), (node_generate), (module_generate),
4897 (g_scanner_write_file):
4899 Move the scanner gidl writing to a separate source file.
4901 2007-12-10 Johan Dahlin <johan@gnome.org>
4906 Move over all CType construction functions.
4908 * tests/parser/Makefile.am:
4909 Be verbose when printing parsing tests results.
4911 2007-12-10 Johan Dahlin <johan@gnome.org>
4913 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4914 preprocessor handling to here. Start cpp insteado of cc -E,
4915 always include -U__GNUC__, since it's specific to the preprocessor
4918 * tests/parser/Makefile.am (check-local): Silent diff and skip
4919 -U__GNUC__ which is always defined now
4921 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4923 reviewed by: <delete if not using a buddy>
4925 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4926 * tests/parser/Makefile.am:
4928 2007-12-09 Johan Dahlin <johan@gnome.org>
4931 Use GOption for command line options.
4932 (g_igenerator_new, main): Simplify constructor and they way
4933 parameters are passed into it.
4939 * src/gen-introspect.c:
4940 * src/gen-introspect.h:
4942 Rename gen-introspect.[ch] to scanner.[ch]
4944 2007-12-09 Johan Dahlin <johan@gnome.org>
4948 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4949 don't make the repository library and the other utilites link against
4952 * src/gen-introspect.c: (g_igenerator_create_object),
4953 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4954 (g_igenerator_create_enum), (g_igenerator_create_flags),
4955 (g_igenerator_process_module_symbol),
4956 (g_igenerator_process_module), (g_igenerator_generate), (main):
4957 * src/gen-introspect.h:
4958 Refactor g_igenerator_process_types into smaller pieces.
4960 * tests/parser/Makefile.am:
4961 Depend on the gen-introspect binary
4963 2007-12-09 Johan Dahlin <johan@gnome.org>
4965 * src/gen-introspect.c (g_igenerator_process_types):
4966 Break into smaller pieces, one for each generated node type.
4968 2007-12-08 Johan Dahlin <johan@gnome.org>
4970 * src/gen-introspect.c: (g_igenerator_process_types),
4971 (g_igenerator_add_module):
4972 * tests/parser/Foo-expected.gidl:
4973 * tests/parser/foo-object.h:
4974 * tests/parser/foo.c: (foo_subobject_class_init),
4975 (foo_subobject_init):
4977 Add a subobject test and make sure to register defined classes
4978 in the lookup symbol hash table.
4980 2007-12-08 Johan Dahlin <johan@gnome.org>
4984 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4985 (g_igenerator_process_types), (g_igenerator_add_module),
4986 (g_igenerator_add_include_idl), (main):
4987 * src/gen-introspect.h:
4988 * tests/parser/Makefile.am:
4989 * tests/parser/Foo-expected.gidl:
4991 Change the gen-introspect to generate namespaced module names,
4992 such as GLib.Object instead of GObject.
4993 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4994 add a --include-idl parameter to gen-introspect,
4995 and update the parser test.
4997 2007-12-08 Johan Dahlin <johan@gnome.org>
4999 * src/gen-introspect.c:
5000 Move main to the end of the file and attempt to make it valid
5003 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5004 we're not quite ready to generate metadata yet.
5009 Add a simple gen-introspect parser test
5011 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5013 reviewed by: Johan Dahlin <johan@gnome.org>
5016 * gobject-introspection.pc.in:
5018 * src/compiler.c: (format_output), (write_out_metadata), (main):
5019 * src/gen-introspect.c: (main):
5020 * src/gen-introspect.h:
5021 * src/generate.c: (write_callable_info), (write_repository),
5022 (load_metadata), (main):
5023 * src/gidlmodule.c: (g_idl_module_new),
5024 (g_idl_module_build_metadata):
5026 * src/gidlparser.c: (start_element_handler):
5027 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5028 (g_base_info_get_name), (g_base_info_get_namespace),
5029 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5030 (g_base_info_get_metadata), (g_function_info_get_symbol),
5031 (g_function_info_get_flags), (g_function_info_get_property),
5032 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5033 (g_callable_info_may_return_null),
5034 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5035 (g_callable_info_get_arg), (g_arg_info_get_direction),
5036 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5037 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5038 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5039 (g_type_info_get_tag), (g_type_info_get_param_type),
5040 (g_type_info_get_interface), (g_type_info_get_array_length),
5041 (g_type_info_is_zero_terminated),
5042 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5043 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5044 (g_value_info_get_value), (g_field_info_get_flags),
5045 (g_field_info_get_size), (g_field_info_get_offset),
5046 (g_registered_type_info_get_type_name),
5047 (g_registered_type_info_get_type_init),
5048 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5049 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5050 (find_method), (g_struct_info_find_method),
5051 (g_enum_info_get_n_values), (g_enum_info_get_value),
5052 (g_object_info_get_parent), (g_object_info_get_type_name),
5053 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5054 (g_object_info_get_interface), (g_object_info_get_n_fields),
5055 (g_object_info_get_field), (g_object_info_get_n_properties),
5056 (g_object_info_get_property), (g_object_info_get_n_methods),
5057 (g_object_info_get_method), (g_object_info_find_method),
5058 (g_object_info_get_n_signals), (g_object_info_get_signal),
5059 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5060 (g_object_info_get_n_constants), (g_object_info_get_constant),
5061 (g_interface_info_get_n_prerequisites),
5062 (g_interface_info_get_prerequisite),
5063 (g_interface_info_get_n_properties),
5064 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5065 (g_interface_info_get_method), (g_interface_info_find_method),
5066 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5067 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5068 (g_interface_info_get_n_constants),
5069 (g_interface_info_get_constant), (g_property_info_get_flags),
5070 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5071 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5072 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5073 (g_constant_info_get_value), (g_union_info_get_n_fields),
5074 (g_union_info_get_field), (g_union_info_get_n_methods),
5075 (g_union_info_get_method), (g_union_info_is_discriminated),
5076 (g_union_info_get_discriminator_offset),
5077 (g_union_info_get_discriminator):
5078 * src/ginvoke.c: (g_function_info_invoke):
5079 * src/girepository.c: (g_irepository_register),
5080 (g_irepository_unregister), (g_irepository_get_default),
5081 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5082 (g_irepository_get_info), (g_irepository_find_by_name),
5083 (g_irepository_get_shared_library),
5084 (g_irepository_build_search_path), (g_irepository_register_file),
5085 (g_irepository_error_quark):
5086 * src/girepository.h:
5087 * src/gmetadata.c: (g_metadata_get_dir_entry),
5088 (g_metadata_check_sanity), (validate_header),
5089 (validate_array_type_blob), (validate_iface_type_blob),
5090 (validate_param_type_blob), (validate_error_type_blob),
5091 (validate_type_blob), (validate_arg_blob),
5092 (validate_signature_blob), (validate_function_blob),
5093 (validate_callback_blob), (validate_constant_blob),
5094 (validate_value_blob), (validate_field_blob),
5095 (validate_property_blob), (validate_signal_blob),
5096 (validate_vfunc_blob), (validate_struct_blob),
5097 (validate_enum_blob), (validate_object_blob),
5098 (validate_interface_blob), (validate_errordomain_blob),
5099 (validate_union_blob), (validate_blob), (validate_directory),
5100 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5101 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5102 (g_metadata_new_from_mapped_file), (g_metadata_free),
5103 (g_metadata_set_module), (g_metadata_get_namespace):
5105 * tests/Makefile.am:
5106 * tests/invoke/Makefile.am:
5107 * tests/invoke/invoke-namespace-find.sh:
5108 * tests/invoke/invoke.c: (main):
5110 Add a namespace/shared library mapping. fixes #313268.
5112 2007-12-03 Johan Dahlin <johan@gnome.org>
5114 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5117 2007-11-30 Jürg Billeter <j@bitron.ch>
5123 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5124 (g_igenerator_write_inline), (g_igenerator_write),
5125 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5126 (field_generate), (value_generate), (constant_generate),
5127 (property_generate), (function_generate), (vfunc_generate),
5128 (signal_generate), (interface_generate), (struct_generate),
5129 (union_generate), (boxed_generate), (enum_generate),
5130 (node_generate), (module_generate), (get_type_from_type_id),
5131 (str_replace), (g_igenerator_process_properties),
5132 (g_igenerator_process_signals), (g_igenerator_process_types),
5133 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5134 (g_igenerator_process_unregistered_struct_typedef),
5135 (g_igenerator_process_struct_typedef),
5136 (g_igenerator_process_union_typedef),
5137 (g_igenerator_process_enum_typedef),
5138 (g_igenerator_process_function_typedef),
5139 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5140 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5141 (g_igenerator_generate), (main), (csymbol_new),
5142 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5143 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5144 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5145 (eat_hspace), (eat_line), (read_identifier),
5146 (g_igenerator_parse_macros):
5147 * src/gen-introspect.h:
5149 Import gen-introspect to generate introspection information by
5152 2007-11-30 Jürg Billeter <j@bitron.ch>
5154 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5156 2007-11-30 Jürg Billeter <j@bitron.ch>
5158 * src/gidlparser.c: (end_element_handler): Don't leave requires
5161 2007-11-29 Johan Dahlin <johan@gnome.org>
5163 * src/gidlparser.c (parse_type_internal): Add char,
5164 gchar and guchar to the builtin types.
5166 2007-11-26 Johan Dahlin <johan@gnome.org>
5168 * src/ginfo.c: (g_object_info_get_type_name),
5169 (g_object_info_get_type_init):
5170 * src/girepository.c: (g_irepository_is_registered):
5171 * src/girepository.h:
5173 Add g_object_info_get_type_name, g_object_info_get_type_init and
5174 g_irepository_is_registered.
5176 2006-08-14 Jürg Billeter <j@bitron.ch>
5178 * src/gidlparser.c: (end_element_handler): Don't leave
5179 namespace and implements states too early.
5182 2007-11-26 Johan Dahlin <johan@gnome.org>
5184 * src/gmetadata.c (validate_struct_blob):
5185 pass blob_type to validate_function_blob instead of
5186 hard-coding BLOB_TYPE_STRUCT.
5188 Patch by Torsten Schoenfeld, fixes #314190
5190 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5192 * src/compiler.c, src/generate.c, src/gidlnode.c,
5193 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5194 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5195 warnings about return values, signedness mismatches, unused
5196 variables, and unhandles enum values in switch statements.
5198 * tests/invoke/Makefile.am: Don't install the invoke test program.
5199 Add -I ../../src to the cflags used for the test functions files.
5201 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5203 * src/girepository.h: Export g_invoke_error_quark.
5205 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5207 * src/ginvoke.c: Remove the fallback implementation of
5208 g_function_info_invoke since we now formally depend on libffi.
5210 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5212 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5213 Remove these files from cvs, as they are now generated.
5215 * src/gmetadata.c (validate_iface_type_blob): Don't
5216 complain if blob->pointer is not set, since that
5217 happens for enum and flag types. (#308935, Gustavo
5220 * Commit an autoconf-conversion patch by
5221 Gustavo Carneiro (#308708)
5223 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5225 * src/compiler.c (main): Use it here to validate
5226 the generated metadata.
5228 * src/gmetadata.[hc]: Add code to validate a
5231 * metadata-format.txt: Updates
5233 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5235 * tests/*: Add struct offsets to field and vfunc
5238 * src/generate.c (write_vfunc_info): Write offset
5239 information for vfuncs.
5241 * src/gidlnode.c (g_idl_node_build_metadata): Write
5242 the struct offsets into the metadata.
5244 * src/gidlparser.c: Parse the offset attributes of
5245 field and vfunc elements.
5247 * src/gidlnode.h: Add offset members to field and
5250 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5254 * gidl.dtd: Updates.
5256 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5257 file, creates, compiles and runs a C file, and folds the
5258 resulting struct offsets back into the .gidl file.
5260 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5262 * src/gidlparser.c (start_field): Make fields in objects
5265 * src/gidlmodule.c: Include string.h
5270 * metadata-format.txt: Cleanup basic types.
5271 * src/*: Adapt to the changes.
5272 * tests/*: Adapt to the changes.
5273 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5275 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5276 size for enum blobs.
5277 (g_idl_node_get_full_size): Report the correct size for
5280 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5281 error checking for blob sizes.
5283 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5285 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5286 interface types for which is_pointer is FALSE, e.g. enums.
5288 * src/gidlnode.c (g_idl_node_get_full_size)
5289 * src/gidlparser.c (parse_type_internal):
5290 * src/generate.c (write_type_info): Support unspecialized
5291 lists, hashtables and errors. Also emit a '*' after these.
5295 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5299 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5301 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5303 * src/*.c: Change the directory to be addressed by
5304 1-based indexes, and use an index of zero to mean
5307 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5309 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5311 * tests/union.test: Add a union test.
5313 * src/generate.c: Handle unions.
5315 * src/girepository.h:
5316 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5318 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5320 * src/gidlparser.c (start_union): Parse <union> elements.
5322 * src/gidlnode.h: Add a GIdlNodeUnion.
5324 * gidl.dtd: Add a <union> element.
5326 * src/gmetadata.c (g_metadata_check_sanity): Check
5329 * src/gmetadata.h: Add union_blob_size to Header,
5332 * metadata-format.txt: Add a UnionBlob.
5334 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5336 * tests/*: Update testcases.
5338 * src/generate.c (write_callable_info): Don't forget to
5339 write transfer and null-ok attributes for return types
5342 * src/girepository.h:
5343 * src/ginfo.c (g_callable_info_may_return_null):
5344 New function to find out if a function may return NULL.
5346 * src/compiler.c (format_output): Make the generated
5349 * README: Point to a recent libffi snapshot.
5351 * tests/invoke/*: Some invoke tests.
5353 * src/Makefile: Add ginvoke.c and the necessary
5356 * src/girepository.h (g_function_info_invoke): Add
5359 * src/ginvoke.c (g_function_info_invoke): Initial
5360 implementation of invoke functionality based on libffi.
5362 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5363 strings and types hash tables in the right order when
5365 (find_entry_node): Free the name parts.
5367 2005-05-12 Johan Dahlin <johan@gnome.org>
5369 * src/generate.c: Generate consistent end tags.
5373 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5377 * src/gidlparser.c (start_function): Actually add
5378 methods to objects. (Steven Walter)
5380 * src/girepository.h:
5381 * src/ginfo.c: Rename Transfer and Direction to
5382 GITransfer and GIDirection. (Torsten Schoenfeld)
5384 * tests/*: Make tests work with the changes in name
5387 * src/gidlnode.c (find_entry_node): Parse qualified
5388 names and generate xref nodes for them if needed. Don't
5389 require all modules to be loaded any more.
5391 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5394 * src/ginfo.c (g_object_info_get_parent): Return NULL
5395 if blob->parent is 0. Still need to make sure index
5398 * src/generate.c: Generate qualified names when
5399 referring to non-local types. Emit transfer attribute
5402 * src/compiler.c (format_output): Put the function
5403 attributes where gcc accepts them.
5405 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5407 * src/compiler.c (main): Add a --verbose cmdline option
5408 and only log messages if it is specified.
5411 * src/gidlnode.c (init_stats, dump_stats): Collect some
5412 statistics on string and type sharing.
5414 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5415 g_message() instead of fprintf().
5417 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5418 (g_idl_node_get_size): Implement for structs.
5419 (g_idl_node_get_full_size): Handle parent being NULL.
5420 (serialize_type): Handle lookup failures more gracefully.
5422 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5424 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5425 size calculation for 2-parameter types and for objects.
5427 * src/compiler.c: Add a cmdline option for debug output
5428 and install a log handler to implement it.
5429 * src/gidlnode.c: Add some debug spew.
5433 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5434 forget to count the module name when calculating the
5435 required size for the metadata.
5438 * src/gidlparser.c: Fix compiler warnings.
5440 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5442 * src/compiler.c (main): Free the option context.
5444 * gidl.dtd: Clean up handling of names. All elements
5445 have a "name", only the elements corresponding to
5446 actual callable functions (function, method, constructor),
5447 have an additional "symbol" attribute holding the
5448 dlsym()-able function name.
5450 * src/generate.c: Adapt to generate xml matching the
5454 * src/gidlnode.c: Adapt to parse the new dtd.
5456 * tests/*.test: Adjust to the new dtd.
5458 * metadata-format.txt:
5459 * src/gmetadata.h: Remove the short_name field
5461 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5462 * src/girepository.h:
5463 * src/ginfo.c (g_value_info_get_short_name): Removed
5465 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5467 * gidl.dtd: Allow constructors for boxed types,
5468 patch by Jonathan Blandford.
5471 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5473 * --- Initial import ---