1 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
3 Bug 557788 - Return types for constructors in generated typelib bogus
5 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
6 obviously broken in the face of duplicate names in different
8 * tests/scanner/*expected.gir: Fix up.
10 2008-11-13 Owen Taylor <otaylor@redhat.com>
12 * girepository/girffi.c: Fix "Unexpected time for time_t"
15 2008-11-13 Colin Walters <walters@verbum.org>
17 Bug 558436 - avoid having scanner load app code
19 * giscanner/cgobject.py: Delete; we no longer load shared
21 * giscanner/dumper.py: Support for linking a library to
22 a stub binary for introspection.
23 * giscanner/glibtransformer.py: Rewrite to use gdump XML
24 from invocation of child binary.
25 * giscanner/transformer.py: Fix up to use fully qualified
26 name in parse tree. Make parse_ctype public so we can use
27 it inside glibtransformer.
28 * tests/scanner/barapp.c: New test, using --program arg
30 * tests/*: Update to use common.mk for invoking scanner.
31 * tools/g-ir-scanner: Add options --program, --program-arg,
33 * docs/g-ir-scanner.1: Update.
35 2008-11-13 Colin Walters <walters@verbum.org>
37 * configure.ac: Depend on Gio, we use it in gdump.c.
38 * girepository/gdump.c: Code to dump GType data to XML.
39 * girepository/girepository.c: Add option group for dumping.
40 * girepository/girepository.h: Define API for the above.
42 2008-11-13 Colin Walters <walters@verbum.org>
44 * common.mk: Add a file to include with Makefile fragments
45 useful for scanner invocation.
47 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
49 * tests/everything/gitesttypes.c (test_filename_return): Return
50 strings in filename encoding.
52 2008-11-13 Owen Taylor <otaylor@redhat.com>
54 Bug 560253 – Add structure and boxed types to Everything test module
56 * tests/everything/gitesttypes.[ch]: Add examples of:
58 Plain old data structs
59 Plain old data structs with nested fields
61 Plain old data boxed with nested fields
62 More complicated boxed types with internal state
64 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
66 * tests/everything/gitesttypes.c (test_gtype_in):
67 * tests/everything/gitesttypes.h:
68 Add a test of GType arrays, a la gtk_list_store_set_columns.
70 2008-11-12 Owen Taylor <otaylor@redhat.com>
72 Bug 560419 – Cache includes when parsing
74 Keep track of all modules parsed within a GIrParser, and when a
75 module is referenced a second time, use the existing parsed copy
78 2008-11-12 Owen Taylor <otaylor@redhat.com>
80 Fix management of ParseContext.includes_modules (#560419)
82 * girepository/girparser.c: Fix some trivial bugs in managing the
83 list of include modules. (Add to module's list twice, not
84 initialized to NULL, not freed.)
86 2008-11-12 Owen Taylor <otaylor@redhat.com>
88 Keep aliases and disguised_structures local to each module (#560419)
90 * girepository/girmodule.[ch]: When parsing, keep keep a separate
91 hash tables of aliases and 'disguised' flags for each module, and
92 store that on the module.
94 After parsing an include merge the aliases/disguised flags to the
97 * girepository/girparser.c: Remove 'prefix_aliases' flag and
98 always prefix aliases/disguised structure types when parsing; this
99 simplifies the code considerably.
101 2008-11-12 Owen Taylor <otaylor@redhat.com>
103 Fix mismatches between .gir name and 'name' attribute (#560419)
105 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
106 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
107 where the 'name' element of <namespace/> didn't match the filename of the
108 gir, an assumption that the compiler has always expected and now enforces.
110 2008-11-12 Owen Taylor <otaylor@redhat.com>
112 Only allow one <namespace/> element per <repository/> (#560419)
114 * girepository/girparser.c: The logic in girparser.c didn't work
115 very well if there were multiple <namespace/> nodes within a
116 single <repository/> (context->namespace was always the overall
117 filename and not the the name specified in the <namespace/>
118 element for one thing; this would cause aliases to be mis-prefixed
119 in include modules.) Also check that the "name" in the
120 <namespace/> node matches the filename.
122 2008-11-12 Owen Taylor <otaylor@redhat.com>
124 Add a GirParser object to hold the state of a compilation
126 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
127 GirParser object to hold state that is global across a
128 compilation. Currently just holds the include path, but will
129 eventually also keep a cached list of parsed modules.
131 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
133 * girepository/girepository.c (find_namespace_latest): Fix
136 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
138 * configure.ac: use 'introspection' component for bugs
140 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
142 * tests/everything/gitesttypes.c (test_filename_return):
143 * tests/everything/gitesttypes.h:
144 Add a filename return test.
146 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
148 * tests/offsets/Makefile.am (gitestoffsets.c): fix
149 gen-gitestoffsets invocation with builddir != srcdir
151 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
153 * girepository/girepository.c:
154 Change the element type from utf8 to filename
155 * girepository/girnode.c (g_ir_node_build_typelib):
156 Special case filename equally to utf8 here.
158 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
161 Remove unused variables, add a dependency of girepository.ch, so when
162 they change we rebuild the gir automatically.
164 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
166 * girepository/girepository.c (g_irepository_get_search_path):
167 * girepository/girepository.h:
168 Add a g_irepository_get_search_path, so we can access the search
171 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
173 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
175 * girepository/girparser.c: avoid freeing an uninitialized pointer
177 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
180 * giscanner/glibtransformer.py:
181 * tools/g-ir-scanner:
182 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
183 so we can just pass in --library=foo/bar/baz.la and the scanner
184 does the right thing.
185 Don't warn for _get_type() functions if they don't take any
188 2008-11-11 Owen Taylor <otaylor@redhat.com>
190 Bug 560404 – Prefix types when resolving aliases in included modules
192 * girepository/girparser.c: When resolving aliases in an included
193 module, prefix types before looking them up.
195 2008-11-11 Owen Taylor <otaylor@redhat.com>
197 Compute field offsets and overall size for object structures
199 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
200 field of type object in structure"
202 Do basic computation of field offsets for objects and interfaces;
203 this doesn't attempt to address all of the "mess" for virtual
204 functions described in Bug 560281.
206 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
208 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
210 Based on patch by Johan Bilien.
212 * giscanner/transformer.py (_create_member, _create_parameter):
213 Resolve types here as well.
214 (_resolve_type_name_1): Try resolving using 'ctype' first since
215 it's least ambiguous. Fixes struct member type resolution with
216 similarly named types, e.g. Gdk.PangoRendererClass and
218 * tests/scanner/foo*: Add test.
220 2008-11-11 Owen Taylor <otaylor@redhat.com>
222 * girepository/girparser.c: Search provided include dirs before
223 the default directories.
225 2008-11-11 Owen Taylor <otaylor@redhat.com>
227 * girepository/giroffsets.c: Include fully-qualified names in
230 2008-11-11 Owen Taylor <otaylor@redhat.com>
232 * girepository/giroffsets.c: Fail gracefully with an informative
233 error message when recursion is encountered when computing a
236 2008-11-11 Owen Taylor <otaylor@redhat.com>
238 * girepository/girparser.c: Remove an unused variable.
240 2008-11-10 Owen Taylor <otaylor@redhat.com>
242 Add tests for field offset computations
244 * tests/offsets/offsets.h: Header file with structure definitions to test
246 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
247 field offsets for the structures in offsets.h two ways: using
248 the information from a generated typelib, and as computed by the
251 We diff these two versions to test that everything is OK.
253 2008-11-10 Owen Taylor <otaylor@redhat.com>
255 Remove field offsets from g-ir-generate output and test inputs
257 Field offsets are a) architecture dependent so they shouldn't be part
258 of the architecture-independent gir format which is installed in
259 datadir. b) Are architecture-dependent so they shouldn't be in test
262 * girepository/girparser.c: Don't parse offset for fields
263 * tools/generate.c: Don't parse offset for fields
264 * tests/*.gir test/scanner/*.tgir: Remove offsets
266 (Virtual function and discriminator offsets are not removed, as they
267 aren't fully hooked up to the field-offset computation machinery yet.)
269 2008-11-10 Owen Taylor <otaylor@redhat.com>
271 Bug 560252 - Compute field offsets before writing typelib
273 * girepository/girnode.h: Store the total size and alignment for
274 GIrNodeStruct/Boxed/Union.
276 * girepository/giroffset.c: New file implementing computation of
277 structure field offsets.
279 * girepository/girnode.c: Compute structure field offsets before
280 writing types into the typelib.
282 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
283 means "unknown". Also fix description of the discriminator_offset
286 2008-11-10 Owen Taylor <otaylor@redhat.com>
288 Bug 560250 - Fully parse included modules
290 For some things, like computing structure offsets to put into the typelib
291 we need more than just the aliases from included modules. Do a completel
292 parse of included modules and store in module->included_modules.
294 Also add g_ir_find_node() to find node information from within the
295 active set of modules and their includes.
297 2008-11-10 Owen Taylor <otaylor@redhat.com>
299 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
301 Extract a function to convert GITypeTag to ffi_type from the internals
302 of ginvoke.c. This will be useful in figure out structure alignment.
304 Also fix handling of gsize and time_t to be portable. (Add a check
305 to configure.ac to figure out the width of time_t.)
307 2008-11-10 Owen Taylor <otaylor@redhat.com>
309 Bug 560248 – "disguised structures"
311 Certain types like GIConv and GdkAtom are pointers internally but don't
312 look like pointers when referenced. They have the form.
314 typedef struct _X *X;
316 Parse these as structures/records but mark them in the gir with a 'disguised'
317 attribute so that we know that they need special handling.
319 In the typelib treat them like any other structure.
321 2008-11-09 Jürg Billeter <j@bitron.ch>
324 * giscanner/girwriter.py:
326 Write throws attribute for virtual functions, fixes bug 559703
328 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
330 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
331 up some confusion about the second argument to find_module, it's
332 actually the packages __path__ attribute which we can safely ignore
334 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
336 2008-11-07 Owen Taylor <otaylor@redhat.com>
338 Bug 559737 – Deal with continuations in macros
340 * giscanner/giscannerlexer.l: Treat continuation lines the same
341 as regular newlines. This makes the scanner not complain about
342 #define foo(x) \ <stuff> inside a C file. There's no attempt
343 however to handle parsing macro definitions split across lines.
345 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
347 * giscanner/cachestore.py:
348 Handle broken cache entries, write only filesystems and
349 running out of diskspace.
351 2008-11-07 Owen Taylor <otaylor@redhat.com>
353 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
354 Set current_filename before lexing the file so error messages
355 are reported in the right file.
357 2008-11-06 Colin Walters <walters@verbum.org>
359 * tests/everything/*: Add some tests for strv.
361 2008-11-05 Colin Walters <walters@verbum.org>
363 * girepository/ginvoke.c (g_function_info_invoke): Don't use
364 nested scope local variable for error which may go away after
365 conditional is complete.
367 2008-11-05 Colin Walters <walters@verbum.org>
369 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
370 manipulate hackily; just use GString. This avoids an
371 uninitialized memory read pointed out by Havoc.
373 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
375 * giscanner/__init__.py:
377 * giscanner/cachestore.py:
378 * giscanner/cgobject.py:
379 * giscanner/girparser.py:
380 * giscanner/girwriter.py:
381 * giscanner/giscannermodule.c:
382 * giscanner/glibast.py:
383 * giscanner/glibtransformer.py:
384 * giscanner/libtoolimporter.py:
385 * giscanner/minixpath.py:
386 * giscanner/odict.py:
387 * giscanner/sourcescanner.c:
388 * giscanner/sourcescanner.h:
389 * giscanner/sourcescanner.py:
390 * giscanner/transformer.py:
391 * giscanner/utils.py:
392 * giscanner/xmlwriter.py:
394 Relicense the giscanner library under LGPLv2+.
395 This has been approved by all contributors.
397 2008-11-01 Owen Taylor <otaylor@redhat.com>
399 Bug 558848 giparser.py: shared library should be optional
401 When parsing a .gir, allow the shared-library attribute
402 of <namespace/> to be missing: this corresponds to the handling
403 in libgirepository and elsewhere.
405 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
407 Bug 557898 – Fails to build on OSX 10.4
409 * configure.ac: Check for $shrext_cmds that should be implicitly
410 available if you're using libtool >= 2.0. If undefined, call
411 libtool --config explicitly to get its value.
412 * girepository/gtypelib.c: Remove special case for (non-)Darwin
415 2008-10-31 Colin Walters <walters@verbum.org>
417 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
419 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
421 * configure.ac: Post release version bump
424 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
428 * docs/release-checklist.txt:
431 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
433 * Makefile.am: add an upload-release target
434 * docs/release-checklist.txt:
435 Release process documentation
437 2008-10-31 Colin Walters <walters@verbum.org>
439 Bug 558109 – _g_typelib_init fails to find shared libraries
441 * transformer/glibtransformer.py: Use ctypes' find_library
442 on passed libraries and write that for the shared-library
443 entry. We want to avoid depending on -devel packages.
445 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
447 * docs/g-ir-scanner.1:
448 Document the renaming options.
450 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
452 * giscanner/Makefile.am:
453 * tests/invoke/Makefile.am:
454 * tests/repository/Makefile.am: List in-tree libraries first in
455 LDADD / LIBADD. If installed library is listed first, the
456 resulting binary will prefer installed version to one in .libs,
457 possibly making 'make check' behave strangely.
459 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
461 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
462 gir-repository from choking with gdk/quartz
464 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
466 * giscanner/giscannermodule.c (calc_attrs_length),
467 (pygi_collect_attributes):
468 * giscanner/xmlwriter.py:
469 Write a C version of the xml namespace formatter.
470 Saves 15% of the time it takes to create a gtk gir.
472 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
474 * giscanner/xmlwriter.py: Abstract attribute formatting
475 to a function external to the XMLWriter class.
477 * giscanner/scannerlexer.l:
478 Parse and discard __typeof and __attribute.
480 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
482 * giscanner/girparser.py:
483 Remove arguments from the constructor, move them to
484 separate accessors. Add a new parse_tree method
485 which takes an element tree instance.
486 * tools/g-ir-scanner:
487 Update callsite for this
489 * giscanner/Makefile.am:
490 * giscanner/cachestore.py:
491 * giscanner/transformer.py:
492 Cache the include parsing. Saves ~25% time when
493 creating vte (which includes everything up to gtk+).
495 2008-10-30 Colin Walters <walters@verbum.org>
497 * giscanner/transformer.py: Don't reparse includes
498 we've already processed.
500 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
502 * giscanner/girparser.py:
503 * giscanner/transformer.py:
504 Avoid parsing parameters, types etc when parsing
505 includes. Should speed up include parsing a bit.
507 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
509 * giscanner/girparser.py:
510 Avoid big if/else and use a dispatch table like
513 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
515 * giscanner/transformer.py:
516 Clean up include parsing and registration.
518 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
520 * giscanner/transformer.py:
523 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
525 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
528 construct PYTHONPATH just once
530 * tests/everything/Makefile.am:
531 * tests/scanner/Makefile.am:
532 add $(top_srcdir) to PYTHONPATH to
533 handle builddir != srcdir
535 * giscanner/libtoolimporter.py:
536 * giscanner/sourcescanner.py:
537 Make the libtoolimporter work when distchecking too.
539 Mostly based on patch by Tommi Komulainen
541 2008-10-29 Owen Taylor <otaylor@redhat.com>
543 * giscanner/glibtransformer.py: If a filename of an existing
544 file is passed to --library, hunt for it directly, rather than
545 searching for a corresponding library.
547 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
549 * giscanner/libtoolimporter.py:
550 * giscanner/sourcescanner.py:
551 Clean up the libtool importer a bit. Add a context so we
552 can use it through a with statement.
553 Don't just look in the current directory, look in the whole
556 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
558 Bug 558065 – gitesttypes should be installed
562 * tests/types/Makefile.am -> tests/everything/Makefile.am
563 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
564 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
565 move tests/types to tests/everything
567 * tests/everything/Makefile.am: build normal shared library
568 libgirepository-everything.so.1.0.0 and corresponding typelib
569 Everything-1.0.typelib
571 * tests/everything/Makefile.am: explicitly link libtool
572 versioning with typelib versioning with variables
574 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
576 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
578 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
580 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
583 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
585 Bug 558068 – when invoking a method, offset the in arguments by one,
588 * tests/invoke/invoke.c, tests/invoke/testfns.c,
589 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
590 * girepository/ginvoke.c: do not offset the index of given out
591 arguments by one for methods, "this" is provided as in argument only.
593 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
595 * gir/gio-2.0.c: add annotation for g_file_delete
597 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
599 Bug 558062 – provide and use paths in the .pc file
601 * gobject-introspection-1.0.pc.in: provide typelibdir variable
602 for where .typelibs should be installed (callers shouldn't need
603 to construct paths from bits and pieces)
605 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
607 Bug 557791 – g_irepository_require() could return a GTypelib *
609 * girepository/girepository.c: Return GTypelib; this is useful
610 for low level manipulation.
612 2008-10-25 Colin Walters <walters@verbum.org>
614 Bug 557788 – Return types for constructors in generated typelib bogus
616 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
617 rely on end pass resolution.
619 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
621 Bug 557786 - support fixed size arrays
623 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
624 * giscanner/scannerparser.y: Retain fixed array size.
625 * giscanner/ast.py: Add to note.
626 * giscanner/girwriter.py: Write to gir.
627 * girepository/girnode.c: Write it to typelib.
628 * tools/generate.c: Generate.
629 * tests/*: Add tests.
631 2008-10-25 Colin Walters <walters@verbum.org>
633 Bug 557076 - move typelibs to $libdir
635 * configure.ac: Steal some configury bits from dbus to expand
637 * gir/Makefile.am: Move to libdir.
638 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
639 instead just look at one hardcoded path in libdir.
640 * acinclude.m4: Bits from dbus.
642 2008-10-24 Johan Dahlin <johan@gnome.org>
644 * girepository/girnode.c (g_ir_node_check_unhandled_members):
645 Be quiet, do not warn about unhandled members.
647 2008-10-24 Johan Dahlin <johan@gnome.org>
649 * girepository/gtypelib.c:
650 Only use SHLIB_SUFFIX on darwin, otherwise use
651 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
653 2008-10-24 Lucas Rocha <lucasr@gnome.org>
655 Bug 557623 - Constructors shouldn't be flagged as methods.
657 * girepository/ginfo.c (g_function_info_get_flags): ditto.
659 2008-10-24 Johan Dahlin <johan@gnome.org>
661 * giscanner/scannerparser.y:
662 Check against division by zero for the modula operator.
663 This fixes header parsing of OSX system headers included
666 2008-10-24 Johan Dahlin <johan@gnome.org>
670 Add a CONTRIBUTORS file and dist it.
672 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
674 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
676 * girepository/girparser.c (parse_param_transfer):
677 * giscanner/transformer.py (_create_parameter, _create_return):
678 * giscanner/girwriter.py (_write_return, _write_parameter):
679 * tools/generate.c (write_callable_info): always write and
680 require "transfer-ownership" for return-values and parameters
683 * tests/invoke/testfns-1.0.gir:
685 * tests/scanner/DrawableAdditions.xml:
686 * tests/scanner/GtkFrob-1.0-expected.tgir:
687 * tests/scanner/annotation-1.0-expected.tgir:
688 * tests/scanner/drawable-1.0-expected.tgir:
689 * tests/scanner/drawable-injected-1.0-expected.gir:
690 * tests/scanner/drawable-injected-1.0-expected.tgir:
691 * tests/scanner/foo-1.0-expected.tgir: Updated
693 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
695 * giscanner/cgobject.py: build fundamental types same way as glib
697 * giscanner/glibtransformer.py (_type_from_gtype): record GType
698 when constructing the Type from it
700 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
701 the parameter is a GObject from its GType, if available.
703 * giscanner/glibtransformer.py (_adjust_transfer):
704 * tests/scanner/foo-1.0-expected.gir:
705 * tests/scanner/foo-1.0-expected.tgir: deduce
706 transfer-ownership from GTypes
708 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
710 * giscanner/transformer.py (_create_parameter):
711 * tests/scanner/foo-1.0-expected.gir: make varargs
712 transfer-ownership="none"
714 2008-10-23 Colin Walters <walters@verbum.org>
716 Bug 556739 - transfer ownership
718 * giscanner/ast.py: Refactor Parameter/Return to share
719 common attributes. Add transfer_inferred attribute
720 which says whether or not we made a guess.
721 * giscanner/transformer.py: Add much more extensive
722 heuristics around parameter and return transfer.
723 * giscanner/glibtransformer.py: Adjust to inspect
727 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
729 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
731 * tests/scanner/Makefile.am:
732 * tests/scanner/annotation-1.0-expected.tgir:
733 * tests/scanner/drawable-1.0-expected.tgir:
734 * tests/scanner/drawable-injected-1.0-expected.tgir:
735 * tests/scanner/foo-1.0-expected.tgir:
736 * tests/scanner/GtkFrob-1.0-expected.tgir:
737 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
738 annotations survive the roundtrip via typelib
740 The expectations are as currently produced by g-ir-generate,
741 comparison with the .gir files shows there are differences.
743 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
745 Bug 557468 – Support for GI_TYPELIB_PATH
747 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
748 provided paths to the global search path.
750 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
752 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
754 * tests/scanner/drawable-1.0-expected.tgir:
755 * tests/scanner/drawable-injected-1.0-expected.tgir:
756 * tests/scanner/foo-1.0-expected.tgir:
757 * tools/generate.c (write_object_info): write 'abstract'
758 attribute for classes
760 2008-10-22 Lucas Rocha <lucasr@gnome.org>
762 * girepository/girmodule.c, girepository/gtypelib.c,
763 girepository/girparser.[ch]: fix some build warnings.
765 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
767 Bug 557405 – Use 'allow-none' consistently
769 * docs/typelib-format.txt:
770 * girepository/ginfo.c (g_arg_info_may_be_null):
771 * girepository/girnode.c (g_ir_node_build_typelib):
772 * girepository/girnode.h (struct _GIrNodeParam):
773 * girepository/girparser.c (start_parameter):
774 * girepository/girwriter.c (function_generate):
775 * girepository/gtypelib.h (ArgBlob):
777 * tests/function.gir:
778 * tools/generate.c (write_callable_info): Use 'allow-none'
779 consistently throughout
781 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
783 Bug 557092 – Callback annotations not used
785 * giscanner/transformer.py (_create_callback): use annotations
787 * tests/scanner/annotation.h
788 * tests/scanner/annotation-1.0-expected.gir: add tests
790 2008-10-21 Colin Walters <walters@verbum.org>
792 * giscanner/scannerlexer.l: Don't require trailing whitespace after
793 uncommented parameters.
796 2008-10-21 Colin Walters <walters@verbum.org>
798 * girepository/girepository.c: Ensure that when doing an unversioned
799 require, we prefer items earlier in the search path to later ones.
801 2008-10-21 Owen Taylor <otaylor@redhat.com>
803 * giscanner/transformer.py: For string parameters allow transfer annotation
804 to override the standard automatic guessing based on 'const'.
806 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
808 Bug 557241 – "throws" flag for functions
810 * tests/scanner/drawable-1.0-expected.gir,
811 tests/scanner/drawable-injected-1.0-expected.gir,
812 tests/scanner/drawable.[ch]: add simple test for throwing
813 function (has GError ** as last argument)
815 * giscanner/ast.py: add a 'throws' flag to Function
816 * giscanner/glibtransformer.py: if a function's last paramerter is
817 a GError, set the 'throws' flag and remove that parameter
818 * giscanner/girwriter.py: write out the 'throws' attribute
819 * giscanner/girparser.py: support parsing the 'throws' attribute
821 * tests/repository/gitestthrows.c: add a simple test to check the
822 throws flag in a typelib and invoke the function
824 * girepository/ginfo.c, girepository/girnode.[ch],
825 girepository/girnode.h, girepository/girparser.c,
826 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
828 * girepository/ginvoke.c: if a function throws, add a GError as last
829 arguments, and propagate the error to the invoker.
831 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
833 * giscanner/transformer.py (_create_parameters): Warn if we see
834 annotations for unknown parameters. If .h and .c files name
835 parameters differently, the annotations may be lost.
837 2008-10-21 Johan Dahlin <johan@gnome.org>
839 Bug 556358 - don't use libtool internals
841 * giscanner/Makefile.am:
842 * giscanner/libtoolimporter.py:
843 * giscanner/sourcescanner.py:
844 * giscanner/utils.py:
845 Add a python meta importer and remove a libtool symlink hack.
847 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
849 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
850 and --add-include-path appropriately when invoking the scanner.
851 * tests/types/Makefile.am (%typelib): Likewise.
853 2008-10-20 Colin Walters <walters@verbum.org>
855 Bug 556777 - validate properties
857 * giscanner/transformer.py: Add option to throw on unknown types.
858 * giscanner/glibtransformer.py: Use it on properties.
859 * tests/*: Add a test.
861 2008-10-20 Colin Walters <walters@verbum.org>
863 * giscanner/glibast.py: Also register g variants of
864 default_array_types. This is not beautiful, but
865 good alternatives aren't easy to come by.
866 This fixes gchar ** parsing.
868 2008-10-20 Colin Walters <walters@verbum.org>
870 * docs/typelib-format.txt, girepository/gtypelib.h:
871 Take a bit from ObjectInfo to represent abstract flag.
872 * giscanner/cgobject.py: Expose g_type_get_flags.
873 * girepository/girepository.h: Add accessor.
874 * girepository/ginfo.c: Implement it.
875 * giscanner/ast.py: Add is_abstract flag to generic
877 * giscanner/glibast.py: Use it.
878 * giscanner/girwriter.py: Write it.
879 * girepository/girparser.c: Parse it.
882 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
884 * giscanner/girparser.py (_parse_function): don't lose
885 'transfer-ownership' attributes when injecting, check for the
888 2008-10-19 Johan Dahlin <johan@gnome.org>
890 * giscanner/scannerlexer.l: Parse and ignore __asm.
892 2008-10-19 Colin Walters <walters@verbum.org>
894 * giscanner/girparser.py: Parse array length= to ensure
895 it doesn't get lost from --inject.
897 2008-10-17 Colin Walters <walters@verbum.org>
899 Bug 556795 - char ** regression
901 * giscanner/transformer.py: Fix parsing of ctypes, add some
902 comments about what's going on.
903 * tests/*: Add a test for char **.
905 2008-10-17 Colin Walters <walters@verbum.org>
907 Bug 556783 - change namespace handling to be more consistent
909 * giscanner/transformer.py: Eliminate usage of
910 strip_namespace_object. We now treat --namespace as the default
911 --strip-prefix; however, if --strip-prefix is specified it
912 overrides --namespace. This applies to everything except function
913 names, where we do also strip the namespace.
914 * giscanner/glibtransformer.py: Remove usage of
915 strip_namespace_object.
917 * tests/*: Add skeletal GtkFrob-1.0 test which has different
918 --namespace and --strip-prefix.
920 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
922 Bug 556732 – generate gir files consistently
924 * girepository/girparser.c (start_parameter):
926 * tests/invoke/testfns-1.0.gir:
927 * tools/generate.c (write_callable_info): write
928 'transfer-ownership' attribute consistently with both
929 return-value and parameter elements
931 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
933 Bug 556732 – generate gir files consistently
935 * tools/generate.c (write_callable_info): write 'direction'
936 attribute only if other than 'in' to be consistent with
939 * tests/object.gir: remove direction="in" which is the default
941 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
943 Bug 556732 – generate gir files consistently
945 * giscanner/ast.py (Field): add readable and writable properties
946 * giscanner/girparser.py (_parse_field): copy 'readable' and
947 'writable' attributes
948 * giscanner/transformer.py (_create_member): create fields as
950 * giscanner/glibtransformer.py (_introspect_object,
951 _pair_class_struct): make object instance and class fields
953 * giscanner/girwriter.py (_write_field):
954 * tools/generate.c (write_field_info): write field 'readable'
955 and 'writable' attributes only if non-default (read-only)
956 * girepository/girparser.c (start_field): in the absence of
957 attributes assume fields are read-only
959 * tests/struct.gir: remove redundant readable="1" from fields
960 * tests/scanner/foo-1.0-expected.gir:
961 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
962 all record and union fields
964 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
966 Bug 556732 – generate gir files consistently
968 * giscanner/girwriter.py (_write_property): write properties
969 'construct' attribute if set
970 * tools/generate.c (write_property_info): write properties
971 'readable' and 'writable' attributes only if non-default
972 * tests/object.gir: add writable="0"
973 * tests/scanner/foo-1.0-expected.gir: add construct="1"
975 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
977 * gir/glib-2.0.c: added annotations
979 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
981 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
984 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
986 Bug 556610 – giscanner/girparser.py drops parameter options
988 * tests/scanner/drawable-injected-1.0-expected.gir,
989 tests/scanner/DrawableAdditions.xml: added simple test for injection.
990 * giscanner/ast.py: allow Parameter to take options in the constructor
991 * giscanner/girparser.py: parse parameter options (transfer,
992 direction, allow-none)
994 2008-10-16 Colin Walters <walters@verbum.org>
996 Bug 556185 - segfault on g_callable_info_get_return_type
998 Initial patch from John Ehresman.
1000 * tests/repository/*: Add a test using
1001 g_callable_info_get_return_type. Instead of casting a
1002 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1003 to call g_type_info_get_interface.
1005 2008-10-16 Colin Walters <walters@verbum.org>
1007 Bug 556579 - union and struct name misresolved
1009 * giscanner/transformer.py: The calls to _resolve_type_name
1010 for struct/union names was a legacy holdover from when type
1011 resolution had multiple phases. Now it's actively harmful
1012 since we might pull in an identical name from another
1016 2008-10-16 Colin Walters <walters@verbum.org>
1018 Bug 556432 - transfer annotations and defaults
1020 * giscanner/transformer.py: Canonicalize type
1021 after removing *, not before. This ensures that
1022 guchar* is transformed to 'uint8'.
1023 Add some comments here.
1024 * giscanner/glibtransformer.py: Add _adjust_transfer
1025 phase for tweaking GObject transfers.
1028 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1030 * configure.ac: enable bunch of gcc warning CFLAGS
1032 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1034 Bug 556543 – reduce compiler warnings
1036 * girepository/ginfo.c:
1037 * girepository/girepository.c (register_internal,
1038 count_interfaces, find_interface, find_namespace_version,
1039 parse_version, g_irepository_require):
1040 * girepository/girmodule.c (g_ir_module_build_typelib):
1041 * girepository/girnode.c (init_stats, dump_stats,
1042 _g_irnode_init_stats, _g_irnode_dump_stats,
1043 g_ir_node_can_have_member):
1044 * girepository/girparser.c (firstpass_end_element_handler,
1045 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1046 start_alias, start_type, end_type_top, parse_include, cleanup,
1048 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1049 * giscanner/giscannermodule.c (directive_get_options,
1050 type_get_child_list):
1051 * giscanner/scannerlexer.l (parse_gtkdoc):
1052 * giscanner/scannerparser.y (ctype_free):
1053 * giscanner/sourcescanner.c:
1054 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1055 * tests/types/gitesttypes.c:
1056 * tools/compiler.c (main):
1057 * tools/generate.c (write_repository): Remove unused variables
1058 and code, add missing includes, declarations and case
1061 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1063 Bug 556541 – access union members through UnionBlob rather than
1066 * girepository/ginfo.c (g_union_info_find_method): access union
1067 members through UnionBlob rather than StructBlob
1069 2008-10-15 Colin Walters <walters@verbum.org>
1071 Bug 556331 - clean up includes handling
1073 * tools/g-ir-scanner: Rework command line arguments; now we take
1074 --add-include-path and --include separately.
1075 * giscanner/girwriter.py: Separate name= and version= in include
1077 * giscanner/ast.py: Add Include type.
1078 * giscanner/transformer.py: Cleanups to register_include now that
1079 we don't need to handle mixed filenames and relative arguments.
1080 * girepository/girparser.c: Parse name and version separately;
1081 this fixes a bug as a side effect where we weren't resolving
1082 through aliases for basic types.
1083 * girepository/girepository.c: Fix format string args.
1084 * gir/Makefile.am: Update.
1087 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1089 Bug 556434 – unhandled interface/object/... member types
1091 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1092 g_ir_node_build_typelib): Check all
1093 interface/object/boxed/struct/union members are processed and
1094 abort if they are not. (Mostly callbacks in structs, but also
1095 fields in interfaces.)
1097 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1099 * a/girepository/girnode.c (g_ir_node_build_members,
1100 g_ir_node_build_typelib): refactor common code for processing
1101 members to a function
1103 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1105 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1106 transformation is lossless (it's not)
1108 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1110 * tests/Makefile.am: fix tests to compare xml to xml instead of
1111 typelib to xml, and stop on error
1113 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1115 * tools/generate.c (write_type_name, write_type_info,
1116 write_type_info, write_object_info, write_object_info,
1117 write_interface_info, write_error_domain_info): reduce code
1120 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1122 Bug 556174 – parse types for lists etc.
1124 * girepository/girparser.c (end_type_recurse):
1126 * tools/generate.c (write_type_info, write_field_info,
1127 write_callable_info, write_callable_info, write_constant_info,
1128 write_property_info): use nested <type>s for lists and hashes
1130 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1133 * tests/object.gir: remove trailing whitespace from inside
1134 elements to match g-ir-generate output
1136 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1138 * tools/generate.c (xml_printf): quote printf arguments so that
1139 we don't generate invalid XML by writing unescaped double quotes
1140 and such in attributes
1142 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1144 * tools/generate.c (write_field_info, write_callable_info,
1145 write_function_info, write_callback_info, write_struct_info,
1146 write_constant_value, write_signal_info, write_vfunc_info,
1147 write_object_info, write_interface_info, write_union_info,
1148 write_repository): remove unused indent parameters, xmlwriter
1149 keeps track of necessary indentation
1151 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1153 * tools/generate.c (xml_element_new, xml_element_free,
1154 xml_start_element, xml_end_element, xml_end_element_unchecked,
1155 xml_open, xml_close): Keep track of generated XML tree and
1156 handle indentation and closing tags properly.
1157 (write_field_info, write_callable_info, write_function_info,
1158 write_callback_info, write_struct_info, write_value_info,
1159 write_constant_info, write_enum_info, write_signal_info,
1160 write_vfunc_info, write_property_info, write_object_info,
1161 write_interface_info, write_error_domain_info, write_union_info,
1162 write_repository): Use xml_start_element and xml_end_element to
1165 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1167 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1168 (write_type_name, write_type_info, write_field_info,
1169 write_callable_info, write_function_info, write_callback_info,
1170 write_struct_info, write_value_info, write_constant_value,
1171 write_constant_info, write_enum_info, write_signal_info,
1172 write_vfunc_info, write_property_info, write_object_info,
1173 write_interface_info, write_error_domain_info, write_union_info,
1174 write_repository): wrap all FILE access to go through simple xmlwriter
1176 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1178 Bug 556400 – Fails to build on OS X 10.4
1180 * configure.ac: check for functions backtrace and backtrace_symbols
1181 * girepository/girparser.c (backtrace_stderr): Comment out
1182 implementation if the functions are not available.
1183 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1184 directory for better portability
1186 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1188 Bug 556433 – assume direction = out for int * parameters
1190 * giscanner/ast.py: define a list of types for which, if passed as
1191 reference, we assume a default direction of 'out'
1192 * giscanner/transformer.py: if a type has type pointer to one of the
1193 previously defined types, and no direction is set, assume out.
1194 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1196 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1198 * tests/scanner/annotation.c: fixed a few copy-paste errors
1200 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1202 Bug 556323 – transfer-ownership is wrong for functions returning const
1205 * giscanner/transformer.py: check for a const string as return value,
1206 not just const char*. Suggested by Colin Walters
1207 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1209 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1211 * girepository/ginfo.c, girepository/girepository.h: add
1212 g_union_info_find_method
1214 2008-10-14 Colin Walters <walters@verbum.org>
1216 * tests/repository/Makefile.am: Reenable repo test.
1217 * tests/repository/gitestrepo.c: Prepend search
1218 path for $(top_builddir)/gir dir so that we don't
1219 require installation for "make check" to pass.
1221 2008-10-13 Jürg Billeter <j@bitron.ch>
1223 * giscanner/glibtransformer.py:
1224 * tests/scanner/annotation-1.0-expected.gir:
1225 * tests/scanner/drawable-1.0-expected.gir:
1226 * tests/scanner/foo-1.0-expected.gir:
1227 * tests/scanner/utility-1.0-expected.gir:
1229 Support fields in GObject structs
1231 2008-10-13 Jürg Billeter <j@bitron.ch>
1233 * giscanner/ast.py: add signed integer and off_t to type_names
1235 2008-10-12 Jürg Billeter <j@bitron.ch>
1237 * giscanner/girparser.py: Parse bits attribute of fields
1239 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1241 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1242 * tests/repository/gitestrepo.c (main): instantiate
1243 'GCancellable' to ensure the GType is registered before using
1246 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1248 * giscanner/girparser.py: actually add the parsed constant nodes
1250 2008-10-12 Colin Walters <walters@verbum.org>
1252 * girepository/girepository.c: Don't cast DirEntry to Blob,
1253 actually look it up by offset.
1255 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1257 * giscanner/girparser.py: parse constant nodes in gir files
1259 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1261 * giscanner/transformer.py: prefix for constants have an underscore,
1262 so remove them as if they were functions, not objects.
1264 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1266 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1269 2008-10-12 Colin Walters <walters@verbum.org>
1271 Initial patch from Jani Monoses.
1273 * girepository/gtypelib.c: Fix inverted test for success
1276 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1278 * tools/generate.c (write_callable_info): use "transfer-ownership"
1279 attribute for return values
1281 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1283 * tools/generate.c (write_callable_info): move "transfer" and
1284 "null-ok" attributes from <function> to <return-value> element
1286 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1288 * girepository/girparser.c (start_return_value): handle
1289 "transfer-ownership" attribute
1291 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1293 * girepository/girparser.c (parse_param_transfer):
1294 * tools/generate.c (write_callable_info): use "container" for
1295 container/shallow ownership transfer (not "shallow")
1297 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1299 * girepository/girparser.c (parse_param_transfer,
1300 start_parameter): Refactor handling of transfer=none/shallow/full
1301 to separate function
1303 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1305 Bug 556048 – Crash in g_irepository_find_by_gtype
1307 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1308 * girepository/girepository.c (find_interface): Fix
1309 find_by_gtype case to get the type name from right offset
1311 2008-10-12 Jürg Billeter <j@bitron.ch>
1313 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1316 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1318 * girepository/gtypelib.h (RegisteredTypeBlob): make
1319 'unregistered' one bit wide as everywhere else
1321 2008-10-12 Jürg Billeter <j@bitron.ch>
1323 * giscanner/glibtransformer.py:
1324 * tests/scanner/annotation-1.0-expected.gir:
1325 * tests/scanner/drawable-1.0-expected.gir:
1326 * tests/scanner/drawable.h:
1327 * tests/scanner/foo-1.0-expected.gir:
1328 * tests/scanner/utility-1.0-expected.gir:
1330 Readd class records as workaround to not break Gtk typelib
1332 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1334 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1336 2008-10-12 Jürg Billeter <j@bitron.ch>
1338 * giscanner/glibtransformer.py: Don't generate <record> elements
1340 * tests/scanner/*: Update test cases
1342 2008-10-11 Colin Walters <walters@verbum.org>
1344 Bug 552858: versioning
1346 This is a big patch. You should probably remove your installation
1349 * docs/typelib-format.txt: Add nsversion entry which holds
1350 version of namespace.
1351 * girepository/girepository.h: Add 'version' parameter to
1352 g_irepository_require. This may be NULL. Normally
1353 bindings should pass an explicit version though.
1354 * girepository/girepository.c: Lots of infrastructure to
1355 support versioning. Add some more documentation. Disallow
1356 some usage of NULL namespaces.
1357 * girepository/girmodule.c: Add version parameter.
1358 * girepository/gtypelib.c: Update header size.
1359 * giscanner/ast.py: Add version to Namespace.
1360 * giscanner/girparser.py: Parse version attribute from
1361 XML, pass to Namespace.
1362 * giscanner/girwriter.py: Write out version parameter.
1363 * giscanner/transformer.py: Clean up include registration.
1364 * tests/*: Add version attribute.
1365 * tests/invoke/invoke.c: Don't try looking up test before
1366 it's loaded in repository.
1367 * tools/generate.c: Output version parameter.
1368 * gir/Makefile.am: Add 2.0 version to .gir files.
1370 2008-10-11 Colin Walters <walters@verbum.org>
1372 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1373 if we have mismatched parens.
1375 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1377 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1378 on 'members' variable.
1380 2008-10-11 Colin Walters <walters@verbum.org>
1382 Bug 555947 - update annotations syntax
1384 * giscanner/ast.py: Default to None for transfer. Remove
1385 default transfers for container types; we require this to
1387 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1388 'full' to match repository.
1389 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1390 * giscanner/transformer.py: Update for new annotations syntax.
1393 2008-10-11 Johan Bilien <jobi@litl.com>
1395 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1397 2008-10-11 Johan Bilien <jobi@litl.com>
1399 Bug 552347: Parse #defines constants
1401 * girepository/gtypelib.c: update the list of value_size
1402 with recently defined type tags
1403 * giscanner/scannerparser.y: brought back parsing of #defined, as
1404 present in older version
1405 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1406 * giscanner/girwriter.py: write out constant tags in the gir
1407 * giscanner/sourcescanner.py: add accessor for const_string
1408 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1411 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1413 Bug 555946: Install a test module exercising all types, transfer
1418 * tests/types/*: Add and install a test module that has functions
1419 accepting and returning most of the basic types to enable bindings
1420 implementors to more easily test their type conversion routines.
1422 2008-10-11 Jürg Billeter <j@bitron.ch>
1424 Bug 552374: Const strings should be identified in the gir.
1426 * giscanner/transformer.py: support string memory management
1427 * tests/scanner/foo.h: use char * and const char *
1428 * tests/scanner/foo-expected.gir: test that
1430 2008-10-11 Johan Dahlin <johan@gnome.org>
1432 * giscanner/girparser.py:
1433 Also parse enums which are not glib types.
1435 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1437 Bug 552370: add one more test for unsigned as a type, not as
1440 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1441 * test/scanner/foo.h: add function which uses unsigned as a type.
1442 * test/scanner/foo-expected.gir: test that.
1444 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1446 Bug 555712: Struct and union issues
1448 * giscanner/scannerparser.y (struct_declarator): Use information
1449 provided about the bit width of a field.
1450 * giscanner/transformer.py (Transformer._create_member): Pass the
1451 symbol's const_int member to the created field (it represents the
1453 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1454 field attribute, if present.
1455 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1456 width in bits of the field (only relevant for bitfields).
1459 * giscanner/transformer.py (Transformer._create_typedef_struct)
1460 (Transformer._create_typedef_union): Add calls to _create_struct()
1461 and _create_union(), respectively. This causes the scanner to
1462 generate output for fields of struct and union typedefs.
1465 2008-10-11 Jürg Billeter <j@bitron.ch>
1467 Bug 552370: unsigned not scanned properly
1469 * giscanner/scannerparser.y: combine basic types such as unsigned
1470 int and long long when scanning
1471 * tests/scanner/foo-expected.gir:
1472 * tests/scanner/foo.c: (foo_test_unsigned):
1473 * tests/scanner/foo.h: test that
1475 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1477 Bug 554854: The --typelib-xml and --inject options should reuse
1478 giscanner parser/writer.
1480 * giscanner/ast.py: add constructor list to Struct and Union.
1481 Add new param in Return's contructor to define transfer.
1482 * giscanner/girparser.py: several additions to the parser in order
1483 to have parsing all nodes of the gir xml files.
1484 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1485 and writer in --inject and --typelib-xml options.
1486 * giscanner/xmlwriter.py: ignore empty attributes instead of
1487 raising an error as this basically exposes a bug in GIRParser.
1488 This should be reverted as soon as the parser is fixed.
1490 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1492 Bug 552376: scanner generates wrong names for enum members when
1493 there's no defined gtype.
1495 * giscanner/utils.py (strip_common_prefix): Always strip common
1496 prefix exactly up to the last "_", and not beyond.
1497 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1498 here is that the first character after the last '_' should should be
1499 the same as the character in the same position on the type name.
1500 * tests/scanner/foo-expected.gir: test that
1502 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1504 Bug 555293: append library_paths to LPATH env variable to work
1505 around a bug in find_library when using ldconfig.
1507 * tools/g-ir-scanner (main): ditto.
1509 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1511 * girepository/girepository.c (register_internal): fix regression on
1512 invoke test case by making sure we load the global module in the
1513 typelib when dealing with inline typelibs.
1514 * girepository/gtypelib.c: a couple of coding style fixes.
1516 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1518 Bug 555294: Add support for multiple shared libraries per typelib.
1520 * girepository/ginvoke.c (g_function_info_invoke),
1521 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1522 g_typelib_symbol instead of g_module_symbol.
1523 * girepository/girepository.h: remove g_typelib_set_module and add
1525 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1526 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1527 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1528 modules instead of just one. The symbol lookup is now abstracted
1529 behind g_typelib_symbol which tries to find the passed symbol name in
1531 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1532 and write shared_library attribute as a comma-separated list of libs.
1534 2008-10-06 Colin Walters <walters@verbum.org>
1536 * giscanner/transformer.py: Parse length= annotation as
1537 a parameter name, not a raw int.
1540 2008-10-03 Colin Walters <walters@verbum.org>
1542 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1544 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1546 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1550 2008-10-03 Colin Walters <walters@verbum.org>
1552 Bug 554576: scan problem with ev_selection_render_selection()
1554 * giscanner/transformer.py: Only do type resolution once we've
1555 scanned all types. What could happen before is that we'd strip
1556 the namespace from local type "EvSelection" => Selection, and
1557 then later pull a "Selection" from some other namespace because
1558 we hadn't yet seen the local EvSelection. This could come
1559 down to hash table ordering and other things so not easy
1560 to write a test for.
1562 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1564 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1565 GLibEnumMember constructor as it should be the enum member nick.
1567 2008-10-02 Colin Walters <walters@verbum.org>
1569 Bug 552961: remove this parameter for methods
1571 * giscanner/glibtransformer.py: Delete this parameter; it is
1573 * girepository/ginvoke.c: Insert this parameter for methods.
1574 * girepository/gtypelib.c: Remove no longer needed verification of
1575 method this parameter.
1578 2008-09-30 Dan Winship <danw@gnome.org>
1580 Bug 554490: g-ir-scanner gets confused by '\\'
1582 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1583 backslashes so it will correctly parse '\\' and "\\"
1585 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1588 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1590 2008-10-02 Colin Walters <walters@verbum.org>
1592 bug 552393: Note variadic functions
1594 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1595 to use parameter_list directly.
1596 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1597 * giscanner/ast.py: Add Varargs type.
1598 * giscanner/transformer.py: Check for ellipsis symbol, transform
1600 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1601 Parse varargs functions, but filter them out before we start
1602 compiling the typelib.
1604 2008-10-02 Colin Walters <walters@verbum.org>
1606 Bug 554632: type tag for GType
1608 * girepository/girepository.h, girepository/girepository.c:
1609 Add type tag for GType - it's a special type we don't want
1610 to resolve to just "long".
1611 * docs/typelib-format.txt: Update.
1612 * girepository/girparser.c: Parse it.
1613 * giscanner/glibtransformer.py: Ensure we don't put GType in
1615 * tools/generate.c: Remove hardcoded type list.
1618 2008-09-30 Dan Winship <danw@gnome.org>
1620 Bug 554521: scanner generates wrong names for enum members with
1621 full type name prefix
1623 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1624 right amount when the entire "first" string is a prefix of
1627 * tests/scanner/foo.h (FooEnumFullname):
1628 * tests/scanner/foo-expected.gir: test that
1630 2008-09-29 Colin Walters <walters@verbum.org>
1632 Bug 552380: Array parameters should be marked in the gir
1634 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1635 uint8[]. Add Array, List, and Map subclasses of Type;
1636 these types can be generic. Return transfer defaults
1637 to true if return value is string or container type.
1638 Delete Sequence type.
1639 * giscanner/scannerlexer.l: Syntax change for annotations;
1640 use <> since it's more readable.
1641 * giscanner/girwriter.py: Write out these changes.
1642 * giscanner/girparser.py: Parse them.
1643 * giscanner/transformer.py: Have a defined set of
1644 both list and map types. When creating a type,
1645 check if the ctype we've parsed is one of them,
1646 if so create a container type subclass as appropriate.
1647 * girepository/girparser.c: Parse in generic types.
1650 2008-09-27 Colin Walters <walters@verbum.org>
1652 * tools/g-ir-scanner: Add --inject option.
1654 2008-09-25 Colin Walters <walters@verbum.org>
1656 Remove non-repository types from GIR
1658 * giscanner/ast.py: The canonical name is 'utf8', not
1660 * giscanner/glibast.py: A few more glib type mappings.
1661 * girepository/girparser.c: We only parse repository types.
1662 * tests/*.gir: Update.
1664 2008-09-23 Colin Walters <walters@verbum.org>
1666 Bug 552566: Add time_t type
1668 We need a type for time_t since it's special in C, and just
1669 mapping it to long precluded bindings from handling it
1672 2008-09-19 Colin Walters <walters@verbum.org>
1674 Bug 552390: Handle capitialization like "DBus" more robustly
1676 The to_underscores function was designed for use against prefixed
1677 names; we need a separate function which will convert names like
1678 DBusFoo into dbus_foo, not d_bus_foo.
1680 2008-09-19 Colin Walters <walters@verbum.org>
1682 Add check to make sure we're not hitting out unresolved types
1684 Validate the "this" argument for methods
1686 Remove heuristic matching of methods to classes based on prefix
1688 It was a broken hack that dated from when we handled underscoring
1689 and capitalization conventions less well.
1691 2008-09-18 Colin Walters <walters@verbum.org>
1693 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1695 On Darwin, the suffix for installed shared libraries (.dylib) is
1696 different from loadable modules (.so). We use a bit of magic shell
1697 script from Behdad Esfahbod to figure out the right suffix.
1699 2008-09-15 Johan Dahlin <johan@gnome.org>
1701 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1702 a wrapper for type_qualifier as well.
1704 2008-09-15 Colin Walters <walters@verbum.org>
1706 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1708 * giscanner/ast.py: Add deprecation attributes.
1709 * giscanner/girwriter.py: Write out deprecation data.
1710 * girepository/girparser.c: Relax parsing; deprecated
1711 attribute now includes freeform string.
1712 * giscanner/scannerlexer.l: Parse Deprecated.
1713 * giscanner/transformer.py: Look for deprecated attribute
1715 * tests/scanner/*: Add a Deprecated test.
1717 2008-09-14 Tor Lillqvist <tml@novell.com>
1719 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1721 2008-09-14 Colin Walters <walters@verbum.org>
1723 * giscanner/glibtransformer.py: Ignore functions with
1726 2008-09-12 Colin Walters <walters@verbum.org>
1728 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1730 2008-09-12 Colin Walters <walters@verbum.org>
1732 * giscanner/ast.py: Bind pid_t to INT for vte.
1734 2008-09-12 Colin Walters <walters@verbum.org>
1736 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1737 * giscanner/glibast.py: Avoid overwriting ctype.
1738 * giscsanner/transformer.py: Try resolving types using the GType names.
1740 2008-09-12 Colin Walters <walters@verbum.org>
1742 * giscanner/minixpath.py: Code to run an "XPath"
1743 assertion against an XML tree, taken from
1744 gir-repository/gir/tests.py.
1745 * giscanner/Makefile.am: Ship it.
1746 * tools/g-ir-scanner: Add --xpath-assertions option.
1747 * gir/GLib-assertions.txt: Add a few assertions.
1748 * gir/Makefile.am: Run them.
1750 2008-09-11 Colin Walters <walters@verbum.org>
1752 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1754 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1755 prefix if it ends with _. Tweak callback stripping to determine
1756 based on presence of _ whether we need to use strip_namespace_func
1757 or strip_namespace_object.
1759 2008-09-09 Owen Taylor <otaylor@redhat.com>
1761 * docs/typelib-format.txt: Wether => Whether
1763 2008-09-08 Colin Walters <walters@verbum.org>
1765 * girepository/girparser.c: Default to "readable" for properties.
1766 * giscanner/ast.py: Add readable, writable etc.
1767 * giscanner/girwriter.py: Writ them.
1768 * giscanner/glibtransformer.py: Inspect them.
1771 2008-09-07 Colin Walters <walters@verbum.org>
1773 * giscanner/cgobject.py: Add comment.
1775 2008-09-07 Colin Walters <walters@verbum.org>
1777 * giscanner/cgobject.py: Also call g_thread_init.
1779 2008-09-07 Colin Walters <walters@verbum.org>
1781 * giscanner/transformer.py: Fix regression by not
1782 stripping prefix before stripping namespace for unions
1785 2008-09-06 Colin Walters <walters@verbum.org>
1787 * giscanner/transformer.py: If a namespace contains
1788 multiple caps, try stripping both gnomekeyring_ and
1791 2008-09-07 Johan Dahlin <johan@gnome.org>
1793 Bug 551162 – giscanner does not recognize asm and __asm__
1794 * giscanner/scannerlexer.l:
1795 Patch by Jani Monoses.
1797 2008-09-06 Colin Walters <walters@verbum.org>
1799 * girepository/girnode.c: Allow gtype_name
1800 and gtype_init in struct and union.
1801 * girepository/girparser.c: Parse glib:
1802 boxed bits for both structure and union.
1803 * girepository/gtypelib.c: Don't barf
1804 if structure is boxed.
1805 * giscanner/girparser.py: Parse new XML
1807 * giscanner/girwriter.py: Write out new
1809 * giscanner/glibast.py: Define new classes
1810 which are both Boxed and Struct/Union, as
1811 well as an "Other" for everything else.
1812 * giscanner/glibtransformer.py: Handle
1813 boxed types specially; we try to merge
1814 them with a struct/union if one exists,
1815 otherwise fall back to generic boxed.
1817 * tools/generate.c: Write out new format.
1819 2008-09-06 Johan Dahlin <johan@gnome.org>
1821 * giscanner/grealpath.h: Include stdlib.h
1823 * docs/g-ir-generate.1: Remove leading %
1825 2008-09-01 Colin Walters <walters@verbum.org>
1827 * girepository/girparser.c: Look at c:type to determine
1828 whether or not an item is a pointer.
1830 2008-09-01 Johan Dahlin <johan@gnome.org>
1832 * tests/scanner/Makefile.am:
1833 Set PYTHONPATH so the scanner can run
1834 even if you didn't install anything.
1836 2008-09-01 Johan Dahlin <johan@gnome.org>
1839 Post-release version bump
1842 2008-09-01 Johan Dahlin <johan@gnome.org>
1846 2008-08-31 Colin Walters <walters@verbum.org>
1848 * giscanner/glibtransformer.py: Quiet info
1851 2008-08-31 Johan Dahlin <johan@gnome.org>
1854 Bump version to 0.5.0
1856 2008-08-31 Colin Walters <walters@verbum.org>
1858 * giscanner/glibtransformer.py: Follow aliases to ensure
1859 we don't get a constructor returning a basic type.
1860 * giscanner/transformer.py: Add function to follow aliases.
1863 2008-08-31 Johan Dahlin <johan@gnome.org>
1865 * giscanner/scannerlexer.l:
1866 * giscanner/scannerparser.y:
1867 * giscanner/sourcescanner.h:
1868 * giscanner/sourcescanner.py:
1869 Parse GCC extensions in the parser instead of just undeffing them
1870 in the pre-processor.
1872 2008-08-31 Johan Dahlin <johan@gnome.org>
1874 * giscanner/glibtransformer.py:
1875 Clean up a huge if. Do not add methods or constructors
1877 * giscanner/utils.py:
1878 second might be longer than first, check that.
1880 2008-08-31 Johan Dahlin <johan@gnome.org>
1885 2008-08-31 Colin Walters <walters@verbum.org>
1887 * girepository/girparser.c: Don't lose if we
1890 2008-08-31 Colin Walters <walters@verbum.org>
1892 * giscanner/glibtransformer.py: Look for libtool
1893 library in current directory
1894 * tests/scanner - Update.
1896 2008-08-30 Colin Walters <walters@verbum.org>
1898 * docs/typelib-format.txt: Add a guint32
1900 * gir/Makefile.am: Dep on Makefile
1901 * girepository/ginfo.c:
1902 * girepository/girepository.c: Clean up
1903 default typelib handling; remove global
1904 default_typelib variable. Ensure we handle
1905 NULL repository in more places.
1906 Support dependency resolution.
1907 Support lazy loading.
1908 * girepository/girepository.h: Remove
1909 g_irepository_unregister; we don't support
1910 unloading typelibs since really they're
1911 process-global. Update for lazy loading
1913 * girepository/girmodule.c: Use g_new0.
1914 Add dependencies to GirModule.
1915 * girepository/girparser.c: Parse dependencies.
1916 * girepository/gtypelib.c: Add 4 bytes for
1918 * tests/Makefile.am: Kill off gobject.gir,
1919 it conflicts with the real one.
1920 * tests/object.gir: Dep on GObject.
1921 * tools/generate.c: Take --includedir
1922 argument to say which directories to search
1923 for typelibs. Print out dependencies.
1925 2008-08-30 Colin Walters <walters@verbum.org>
1927 * giscanner/glibtransformer.py: Reduce warning noise.
1929 2008-08-29 Colin Walters <walters@verbum.org>
1931 * girepository/ginfo.c: Add some assertions regarding
1932 refcounts, just to be sure.
1933 * giscanner/glibtransformer.py: Blacklist a few more
1936 2008-08-29 Colin Walters <walters@verbum.org>
1938 * giscanner/glibtransformer.py: Blacklist a few
1939 functions that use GError oddly
1941 2008-08-29 Colin Walters <walters@verbum.org>
1943 * girepository/gtypelib.c: Don't crash if no
1946 2008-08-29 Colin Walters <walters@verbum.org>
1948 * girepository/girparser.c: Handle chains of aliases
1949 across modules by ensuring we fully qualify aliases
1952 2008-08-29 Colin Walters <walters@verbum.org>
1954 * girepository/girparser.c: Don't search aliases
1957 2008-08-29 Colin Walters <walters@verbum.org>
1959 * girepository/girparser.c: Rewrite type parsing
1960 to handle both GLib parsing case as well as correctly
1961 handling GLib.List and friends. Don't try to treat
1962 e.g. ListStore as a List.
1964 2008-08-29 Colin Walters <walters@verbum.org>
1966 * girepository/gtypelib.c: Add more context
1969 2008-08-29 Colin Walters <walters@verbum.org>
1971 * giscanner/glibtransformer.py: Add some informative
1972 logging messages in corner cases. Be sure we use
1973 the most recent node set instead of a cache
1974 when generating result set.
1975 * tests/: Remove duplicated bits in expected girs
1976 * girepository/girparser.c: Accept both List (for
1977 compiling GLib) and GLib.List (what the scanner
1980 * tools/generate.c: Generate canonical form.
1982 2008-08-29 Johan Dahlin <johan@gnome.org>
1984 * giscanner/config.py.in:
1985 Use datarootdir instead of datadir to avoid
1986 an autoconf warning.
1988 2008-08-29 Johan Dahlin <johan@gnome.org>
1992 * examples/gdk-pixbuf.gidl:
1994 Update and remove old cruft.
1996 2008-08-29 Johan Dahlin <johan@gnome.org>
1999 * docs/g-ir-compiler.1:
2000 * docs/g-ir-generate.1:
2001 * docs/g-ir-scanner.1:
2002 Add man pages for the generator and compiler.
2004 2008-08-29 Johan Dahlin <johan@gnome.org>
2006 * docs/g-ir-scanner.1: Document
2008 * giscanner/Makefile.am:
2009 * giscanner/gidlparser.py:
2010 * giscanner/gidlwriter.py:
2011 * tools/g-ir-scanner:
2012 Remove gidl support.
2014 2008-08-28 Colin Walters <walters@verbum.org>
2016 * tests/scanner/Makefile.am: Pass the right
2017 --includedir args. Add a Makefile dep.
2018 * tools/compiler.c: Pass includedirs down.
2019 * girepository/girparser.c: Actually put
2020 includedirs in context, pass down. Fix
2023 2008-08-28 Colin Walters <walters@verbum.org>
2025 * gir/Makefile.am: Use --includedir
2026 * girepository/girparser.c: Recursively parse
2027 includes to pull in aliases and expand them.
2028 We need this to avoid putting unknown names in
2030 * tools/compiler.c: Add --includedir option.
2031 * giscanner/ast.py: Map size/ssize to types
2034 2008-08-28 Tor Lillqvist <tml@novell.com>
2036 Make check now runs successfully on Windows.
2038 * tools/compiler.c (write_out_typelib): Use binary mode for output
2041 * girepository/girnode.c: Don't print NULL strings.
2043 * tests/invoke/Makefile.am
2044 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2045 convince libtool to build shared libraries.
2047 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2048 g_assert() instead of printing out expected errors.
2050 2008-08-28 Tor Lillqvist <tml@novell.com>
2052 * girepository/gtypelib.h: Change type of bitfield fields from
2053 guint to the most suitable smaller type. This makes the struct
2054 sizes match the ones on Linux that the sanity check expects when
2055 using gcc -mms-bitfields on Windows.
2057 2008-08-28 Johan Dahlin <johan@gnome.org>
2062 * giscanner/Makefile.am:
2063 * tests/Makefile.am:
2064 * tests/scanner/Makefile.am:
2065 Make distcheck pass.
2067 2008-08-27 Johan Dahlin <johan@gnome.org>
2069 * giscanner/Makefile.am:
2070 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2072 2008-08-27 Tor Lillqvist <tml@novell.com>
2074 Make g-ir-scanner work on Windows. Still problems with the typelib
2075 code. Changes okayed by jdahlin.
2077 * configure.ac: Check for Windows, set Automake conditional
2078 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2079 avoid shell quoting issues
2081 * girepository/Makefile.am: Use -no-undefined so that libtool
2082 agrees to build a shared library on Windows.
2084 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2085 Windows. Empty implementation on Windows so far.
2087 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2088 informative error message for the assertion failures. Tell also
2089 what the expected size of the struct is. Check all sizes first and
2090 fail afterwards if at least one size was different from expected.
2092 * tools/Makefile.am: Reorder libraries into proper logical
2095 * tools/generate.c: Don't include <dlfcn.h>, not used.
2097 * giscanner/Makefile.am: On Windows, link with the Python library,
2098 and install the module DLL as _giscanner.pyd. Remove the
2099 unnecessary import library and libtool library that libtool has
2102 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2103 and just skip it. Recognize also two "l" suffixes for long long
2104 constants. Recognize also __inline__.
2106 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2107 GetFullPathName(). As such, GetFullPathName() does more than the
2108 UNIX realpath(). It also changes relative paths into absolute
2109 paths. But for our purposes that shouldn't matter.
2111 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2112 Windows the file descriptor passed to us is from Python. Python
2113 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2114 uses msvcrt.dll. On Windows, file descriptors are specific to
2115 which C library is used. So we must find out what underlying OS
2116 handle corresponds to the file descriptor Python passes us, and
2117 then make that into a file descriptor valid for the C library this
2120 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2121 __attribute__ as the lexer now handles it. The definition as empty
2122 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2123 __attribute__. Close the temp file before unlinking it.
2125 * giscanner/cgobject.py: Use correct library name for the gobject
2128 * gir/Makefile.am: Must pass the full basename of the DLLs on
2129 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2130 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2131 reality they won't change, until there is a GLib 3, and then also
2132 the Unix code here needs changing.
2134 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2137 2008-08-26 Colin Walters <walters@verbum.org>
2139 * girepository/girepository.c: Search
2140 $DATADIR/girepository instead of
2141 $DATADIR/gitypelibs; this naming makes
2142 it clearer that e.g. jgir can install
2144 * gir/Makefile.am: Install there.
2146 2008-08-26 Colin Walters <walters@verbum.org>
2148 * girepository/gtypelib.c (_g_typelib_init): Also
2149 use G_MODULE_SUFFIX instead of hardcoding .so.
2151 2008-08-26 Colin Walters <walters@verbum.org>
2153 * girepository/gtypelib.c (_g_typelib_init): Free
2154 string in the right place.
2156 2008-08-26 Colin Walters <walters@verbum.org>
2158 * girepository/gtypelib.c (_g_typelib_init): Handle
2159 both .la and .so names; this works better in the
2160 uninstalled library case.
2162 2008-08-26 Johan Dahlin <johan@gnome.org>
2165 * giscanner/Makefile.am:
2166 * giscanner/cgobject.py:
2167 * giscanner/config.py.in:
2168 * giscanner/sourcescanner.py:
2169 Avoid undeffing __GNUC__, instead define
2170 __attribute__ & friends. Remove glibconfig.h hack.
2171 This makes gobject-introspection work better on
2172 MacOS X, Thanks to Richard Hult for kind help.
2174 2008-08-25 Colin Walters <walters@verbum.org>
2176 * giscanner/glibtransformer.py: Always print
2179 2008-08-25 Colin Walters <walters@verbum.org>
2181 * giscanner/glibtransformer.py: Skip over
2182 interfaces we don't know.
2184 2008-08-25 Colin Walters <walters@verbum.org>
2186 * girepository/girparser.c: Parse new implements
2187 syntax, drop gapi one.
2188 * tests/object.gir: Update.
2189 * tools/generate.c: Generate new syntax.
2191 2008-08-25 Colin Walters <walters@verbum.org>
2193 * giscanner/ast.py: Add interfaces property
2195 * giscanner/girwriter.py: Write out implemented
2197 * giscanner/glibtransformer.py: Introspect
2198 implemented interfaces.
2199 * tests/scanner/*: Make FooObject implement
2202 2008-08-25 Colin Walters <walters@verbum.org>
2204 * giscanner/glibtransformer.py: More correctly pair
2205 methods; if we have a symbol that starts with
2206 e.g. hippo_canvas look for a matching HippoCanvas
2207 class before accepting e.g. HippoCanvasImage.
2209 2008-08-24 Colin Walters <walters@verbum.org>
2211 * tools/g-ir-scanner: Filter out unknown options from
2214 2008-08-24 Colin Walters <walters@verbum.org>
2216 * giscanner/glibtransformer.py: Fail with better
2217 error if we can't find library.
2219 2008-08-24 Colin Walters <walters@verbum.org>
2221 * tools/g-ir-scanner: Use subprocess instead of
2222 commands, works on Windows and avoids the evil
2225 2008-08-24 Colin Walters <walters@verbum.org>
2227 * giscanner/glibtransformer.py: Skip over
2228 g_object_get_type from GLib trunk.
2230 2008-08-24 Colin Walters <walters@verbum.org>
2232 * girepository/girepository.c (g_irepository_require):
2233 Don't open shared library here; we already do it
2236 2008-08-24 Colin Walters <walters@verbum.org>
2238 * girepository/gtypelib.c: Add context stack so
2239 when we get an error we can print out nicely
2242 2008-08-24 Johan Dahlin <johan@gnome.org>
2244 * girepository/girparser.c (start_glib_boxed), (start_function),
2245 (start_field), (start_alias):
2246 Refactor a couple of parsing functions to be simpler to follow.
2249 2008-08-24 Johan Dahlin <johan@gnome.org>
2251 * girepository/girparser.c (start_function):
2252 Remove left-over code, checking type of function.
2254 2008-08-23 Colin Walters <walters@verbum.org>
2256 * giscanner/config.py: Define DATADIR.
2257 * giscanner/transformer.py: Look in DATADIR.
2259 2008-08-23 Colin Walters <walters@verbum.org>
2261 * girepository/gtypelib.c: Check constructor
2263 * girepository/girnode.c: Small tweaks.
2264 * girepository/ginfo.c: Calculate signature offsets
2266 * girepository/girparser.c: Remove duplicate
2268 * giscanner/glibtransformer.py: Avoid marking
2269 functions which return a basic type as
2272 2008-08-23 Colin Walters <walters@verbum.org>
2274 * girepository/girparser.c: Ignore <include>.
2275 * giscanner/girparser.py: Parse them.
2276 * giscanner/girwriter.py: Generate them.
2277 * giscanner/transformer.py: Process <include>
2278 recursively. Don't require full path for
2279 includes, look in {$XDG_DATA_DIRS}/gir.
2280 * tools/g-ir-scanner: Pass through includes.
2281 * Makefile.am: Remove extra --include
2283 * *-expected.gir: Add expected includes.
2285 2008-08-23 Johan Dahlin <johan@gnome.org>
2287 * tests/scanner/Makefile.am:
2288 * tests/scanner/annotation-expected.gir:
2289 * tests/scanner/drawable-expected.gir:
2290 Avoid duplication in the Makefile, regenerate with new
2291 namespaces (same as the filename)
2293 2008-08-22 Colin Walters <walters@verbum.org>
2295 * girepository/girnode.c: Don't hardcode integers,
2298 2008-08-22 Johan Dahlin <johan@gnome.org>
2300 * giscanner/sourcescanner.py:
2301 Check for ../gobject-introspection-1.0.pc.in to determine
2302 if we run installed or uninstalled.
2304 2008-08-22 Johan Dahlin <johan@gnome.org>
2307 * giscanner/sourcescanner.py:
2308 Send in undefs/defines via writing it directly to stdin
2309 of cpp instead of via arguments.
2311 2008-08-22 Colin Walters <walters@verbum.org>
2313 * tools/generate.c, tools/compiler.c: Default
2315 * all Makefile.am: Update.
2317 2008-08-22 Colin Walters <walters@verbum.org>
2319 * girepository/girparser.c: Pass through
2320 recursive types. Avoid overwriting errors.
2321 * giscanner/xmlwriter.py: Always write the
2323 * tests/*.gir: Adjust.
2324 * tests/scanner/Makefile.am: Build typelibs,
2325 and generate XML from those. Once we
2326 have a good diff mechanism...
2327 * tests/scanner/*-expected.gir: Add XML
2329 * tools/g-ir-scanner: Accept --typelib-xml
2331 * tools/generate.c: Better defaults for transfer.
2333 2008-08-22 Johan Dahlin <johan@gnome.org>
2337 * giscanner/Makefile.am:
2338 * giscanner/config.py.in:
2339 * giscanner/sourcescanner.py:
2340 Use the generated glibconfig.h for all scanner invokations.
2341 Rename it to glibconfig-scanner.h and install it.
2342 Add a config.py which so far contains the include dir.
2344 2008-08-22 Johan Dahlin <johan@gnome.org>
2347 Replace glibconfig.h with our own, do some replacement
2348 for CPP/C features we do not support
2350 2008-08-22 Colin Walters <walters@verbum.org>
2352 * tools/generate.c (write_callable_info): Fix unref
2355 2008-08-22 Colin Walters <walters@verbum.org>
2357 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2358 * tests/Makefile.am: Support $(DEBUG)
2359 * tools/generate.c: Do immediate close tags if no
2362 2008-08-21 Colin Walters <walters@verbum.org>
2364 * tests/scanner/drawable-expected.gir,
2365 * tests/scanner/drawable.c,
2366 * tests/scanner/drawable.h:
2369 2008-08-21 Colin Walters <walters@verbum.org>
2371 * giscanner/glibtransformer.py: Compute prefix
2372 by searching through the symbol for bits
2373 rather than going directly from ctype; this fixes
2376 2008-08-21 Colin Walters <walters@verbum.org>
2378 * giscanner/glibtransformer.py: Also try squashing
2379 underscores from namespace, fixes webkit_web_view_new.
2381 2008-08-21 Colin Walters <walters@verbum.org>
2383 * giscanner/glibtransformer.py: More ctor work,
2384 avoid having gtk_window_group_new end up under
2387 2008-08-21 Colin Walters <walters@verbum.org>
2389 * giscanner/glibtransformer.py: Much simpler approach
2390 of mapping uscored names to classes.
2391 * giscanner/utils.py: Remove unnecessary function.
2393 2008-08-21 Johan Dahlin <johan@gnome.org>
2395 * girepository/girepository.c (g_irepository_require):
2396 Plug memory leak and avoid using freed memory.
2397 Resolve the whole module path, here as well.
2399 2008-08-21 Colin Walters <walters@verbum.org>
2401 * giscanner/glibtransformer.py: Look up all permutations
2402 of class names when scanning methods/ctors based on
2403 the prefix instead of using the return value. This
2404 associates gtk_window_new with the right class.
2406 2008-08-21 Colin Walters <walters@verbum.org>
2408 * girepository/girmodule.c (g_ir_module_build_typelib):
2409 Revert change to increment header_size; we do that in
2412 2008-08-21 Colin Walters <walters@verbum.org>
2414 * girepository/girnode.c (write_string): Tweak to
2415 use UINT instead of INT. Not likely to matter.
2416 * girepository/girmodule.c (g_ir_module_build_typelib):
2417 Add to header_offset as well for header strings
2418 to match what write_string does.
2419 * girepository/gtypelib.c: Replace is_name with
2420 validate_name, which more strongly validates and
2421 handles errors in a better way. Update all callers.
2422 * giscanner/glibtransformer.py: Handle constructors
2425 2008-08-21 Johan Dahlin <johan@gnome.org>
2427 * gir/Makefile.am (typelibs_DATA): Build and
2428 install the Gio.typelib too
2430 * girepository/gtypelib.c (_g_typelib_init):
2431 Use g_module_build_path to resolve the shlib name
2433 2008-08-21 Colin Walters <walters@verbum.org>
2435 * gir/Makefile.am: CLEANFILES typelibs too.
2437 2008-08-21 Johan Dahlin <johan@gnome.org>
2439 * giscanner/glibtransformer.py:
2440 Do not send .la files through find_library.
2442 2008-08-21 Colin Walters <walters@verbum.org>
2444 * girepository/girparser.c (g_irepository_require):
2445 Fix one small leak in error case.
2447 2008-08-21 Johan Dahlin <johan@gnome.org>
2450 Parse glibconfig.h as well and install the compiled
2453 2008-08-21 Johan Dahlin <johan@gnome.org>
2456 * giscanner/glibtransformer.py:
2457 * tools/g-ir-scanner:
2458 Do not hard-core library names in the Makefile, reuse
2459 ctypes find_library instead.
2461 2008-08-21 Johan Dahlin <johan@gnome.org>
2463 * girepository/girparser.c (resolve_aliases):
2464 Remove compilation warnings
2466 2008-08-21 Johan Dahlin <johan@gnome.org>
2468 * girepository/girepository.c (g_irepository_require):
2469 Rewrap and fix double free bug by leaking a bit.
2471 2008-08-20 Colin Walters <walters@verbum.org>
2473 * girepository/girepository.c: Add new function
2474 g_irepository_get_typelib_path which tells
2475 us from where we loaded a namespace.
2477 2008-08-20 Colin Walters <walters@verbum.org>
2479 * tests/scanner/*-expected.gir: Adjust for
2480 added shared-library.
2481 * giscanner/giwriter.py: Make pylint happy.
2483 2008-08-20 Colin Walters <walters@verbum.org>
2485 * girepository/girmodule.c (g_ir_module_build_typelib):
2486 Calculate size correctly, avoid use-after-free.
2488 2008-08-20 Colin Walters <walters@verbum.org>
2490 * girepository/girepository.c: Remove
2491 g_irepository_register_file in favor of
2492 g_irepository_require. There are two
2493 possible deployment scenarios for typelibs:
2494 First, separate in $DATADIR/gitypelibs/. Second,
2495 they may be embedded in shlibs. However since
2496 the first is now the normal case, the API is
2497 optimized around it.
2499 Refactor internals to look up typelibs for
2500 namespaces just-in-time, but we expect
2501 consumers to call g_irepository_require.
2503 Also, add some docs. No one has died from that
2505 * gir/Makefile.am: Need --library for glib.
2506 * giscanner/girwriter.py: Write out shared-library.
2507 * tools/g-ir-writer: Take the first --library
2508 argument as the target of shared-library. In
2509 the future we should make this nicer with pkg-config
2512 2008-08-20 Colin Walters <walters@verbum.org>
2514 * girepository/girparser.py: And parse them.
2516 2008-08-20 Johan Dahlin <johan@gnome.org>
2518 * giscanner/glibast.py: Add gshort/gushort types
2520 2008-08-20 Colin Walters <walters@verbum.org>
2522 * gir/Makefile.am: Rename .gir files using GI namespace.
2523 * girepository/girepository.c: Use XDG_DATA_DIRS for
2524 looking up typelibs. Also typelibs are now suffixed
2526 * tests/invoke/Makefile.am: Only use metadata.
2527 * girepository/Makefile.am: Remove unnecessary include.
2528 * tests/scanner/Makefile.am: Update using GI namespaces
2529 for scanner includes.
2531 2008-08-20 Colin Walters <walters@verbum.org>
2533 * girepository/transformer.py: Suppress aliases whose
2535 * girepository/ast.py: Define some more aliases.
2537 2008-08-20 Colin Walters <walters@verbum.org>
2539 * girepository/girparser.c: Avoid alias infloops.
2541 2008-08-20 Colin Walters <walters@verbum.org>
2543 * tests/scanner/foo-expected.gir: Fix expected list type.
2545 2008-08-20 Johan Dahlin <johan@gnome.org>
2547 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2548 Add a workaround for #548689.
2549 We can now compile gtk!
2551 2008-08-20 Colin Walters <walters@verbum.org>
2553 * giscanner/glibtransformer.py: Try to look up
2554 aliases using the c:type too.
2556 2008-08-20 Colin Walters <walters@verbum.org>
2558 * girepository/girparser.c: Parse union fields.
2560 2008-08-20 Johan Dahlin <johan@gnome.org>
2562 * giscanner/ast.py: Make time_t an alias for long
2564 * gir/gio-2.0-good.gir:
2565 * gir/glib-2.0-good.gir:
2566 * gir/gobject-2.0-good.gir:
2568 * giscanner/glibtransformer.py:
2569 Do not delete Class structures, we need them in gdk/gtk.
2570 * tests/scanner/drawable-expected.gir:
2571 * tests/scanner/foo-expected.gir:
2572 * tests/scanner/utility-expected.gir:
2575 2008-08-20 Johan Dahlin <johan@gnome.org>
2577 * tests/scanner/Makefile.am:
2578 * tests/scanner/annotation-expected.gir:
2579 * tests/scanner/annotation.c (annotation_object_class_init),
2580 (annotation_object_init), (annotation_object_method),
2581 (annotation_object_in), (annotation_object_out),
2582 (annotation_object_inout), (annotation_object_inout2),
2583 (annotation_object_inout3), (annotation_object_calleeowns),
2584 (annotation_object_calleesowns), (annotation_object_get_strings),
2585 (annotation_object_with_voidp), (annotation_object_get_objects),
2586 (annotation_object_create_object), (annotation_object_allow_none):
2587 * tests/scanner/annotation.h:
2588 * tests/scanner/foo-expected.gir:
2589 * tests/scanner/foo.c:
2590 * tests/scanner/foo.h:
2591 Split out annotation tests out of foo
2593 2008-08-20 Johan Dahlin <johan@gnome.org>
2595 * tests/scanner/Foo-expected.gir:
2596 * tests/scanner/Makefile.am:
2597 * tests/scanner/foo-expected.gir:
2598 * tests/scanner/foo-object.h:
2599 * tests/scanner/foo.c:
2600 Foo->foo, foo-object.h -> foo.h
2602 2008-08-20 Johan Dahlin <johan@gnome.org>
2604 * tests/scanner/Foo-expected.gir:
2605 * tests/scanner/Makefile.am:
2606 * tests/scanner/drawable-expected.gir:
2607 * tests/scanner/drawable.c (test_drawable_class_init),
2608 (test_drawable_init):
2609 * tests/scanner/drawable.h:
2610 * tests/scanner/foo-object.h:
2611 * tests/scanner/foo.c (foo_boxed_method):
2612 Move the drawable parts out of Foo to its own test.
2614 2008-08-20 Johan Dahlin <johan@gnome.org>
2616 * tests/scanner/Foo-expected.gir:
2617 * tests/scanner/foo-object.h:
2618 * tests/scanner/foo.c (foo_drawable_class_init),
2619 (foo_drawable_init):
2620 Add a based on GdkDrawable which generates
2623 2008-08-19 Colin Walters <walters@verbum.org>
2625 * giscanner/transformer.py: Don't try
2626 to strip prefix before namespace.
2628 2008-08-19 Johan Dahlin <johan@gnome.org>
2630 * giscanner/transformer.py:
2631 * tests/scanner/Foo-expected.gir:
2632 * tests/scanner/foo-object.h:
2633 Add support for typedef void foo type of
2636 2008-08-19 Johan Dahlin <johan@gnome.org>
2639 * giscanner/girwriter.py:
2640 * giscanner/glibtransformer.py:
2641 * giscanner/transformer.py:
2642 * tests/scanner/Foo-expected.gir:
2643 Add basic support for union, base the code much
2644 on Struct. Add a testcase.
2646 2008-08-19 Johan Dahlin <johan@gnome.org>
2648 * tests/scanner/Foo-expected.gir:
2649 * tests/scanner/foo-object.h:
2650 Add a union testcase which the compiler currently
2653 2008-08-19 Johan Dahlin <johan@gnome.org>
2655 * gobject-introspection-1.0.pc.in:
2656 Add a g_ir_compiler variable
2658 2008-08-19 Colin Walters <walters@verbum.org>
2660 * giscanner/ast.py: Rework types to be more closely
2662 * giscanner/girparser.py: Parse more bits.
2663 * giscanner/girwriter.py: Write sequences in a new
2664 way that specifies container type.
2665 * giscanner/glibast.py: Adjust for ast.py changes,
2666 add 'ctype' property to GLibObject and GLibInterface
2667 so we can look things up by it later.
2668 * gicanner/transformer.py: Names is new class holding
2669 the various namespaces we manage. Do not confuse
2670 with Namespace which is toplevel XML node effectively.
2671 Rework all type resolution to go through
2672 _resolve_type_name_1.
2673 * giscanner/glibtransformer.py: Raise UnknownTypeError
2674 instead of ValueError for cleanliness. Add Unresolved
2675 class to mark types whose parent we haven't seen yet.
2676 Use new Names object from transformer.py.
2677 Correctly look up parent=.
2678 Fix type validation to handle sequences.
2679 * tests/scanner/Foo-expected.gir: Update for sequence
2680 work, int instead of int32.
2681 * tools/g-ir-scanner: Add --noclosure option
2682 * gir/Makefile.am: Use --noclosure by default for
2685 2008-08-18 Johan Dahlin <johan@gnome.org>
2687 * gir/gio-2.0-good.gir:
2688 * gir/glib-2.0-good.gir:
2689 * gir/gobject-2.0-good.gir:
2692 2008-08-18 Johan Dahlin <johan@gnome.org>
2695 * giscanner/girparser.py:
2696 * giscanner/girwriter.py:
2697 * giscanner/glibast.py:
2698 * giscanner/glibtransformer.py:
2699 * giscanner/transformer.py:
2700 * tests/scanner/Foo-expected.gir:
2701 * tests/scanner/foo-object.h:
2702 * tests/scanner/utility-expected.gir:
2703 * tests/scanner/utility.h:
2704 Redo type resolving and validation.
2705 Add a couple of new tests.
2706 Patch mostly written by Colin.
2708 2008-08-18 Johan Dahlin <johan@gnome.org>
2711 * giscanner/girparser.py:
2713 * giscanner/transformer.py:
2714 Improve enum parsing for enums without a GType.
2715 Make flags/enum references to other girs work
2716 * giscanner/utils.py:
2718 * tests/scanner/Makefile.am:
2719 * tests/scanner/foo-object.h:
2720 * tests/scanner/utility-expected.gir:
2721 * tests/scanner/utility.h:
2722 Add a new test for external enum references
2724 2008-08-18 Johan Dahlin <johan@gnome.org>
2726 * docs/global-module-registry.txt: Update
2728 * tests/array.gir: Update with new type proposal
2730 * girepository/girepository.c (g_type_tag_to_string):
2731 * girepository/girepository.h:
2732 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2734 * girepository/girnode.h:
2735 Make enum serializing functions public. Clean up some whitespace.
2737 2008-08-17 Johan Dahlin <johan@gnome.org>
2739 * docs/global-module-registry.txt:
2740 Add a document for an on disk module registry format
2742 2008-08-17 Johan Dahlin <johan@gnome.org>
2745 * gir/gio-2.0-good.gir:
2748 2008-08-17 Johan Dahlin <johan@gnome.org>
2751 * gir/glib-2.0-good.gir:
2752 * gir/gobject-2.0-good.gir:
2753 * giscanner/cgobject.py:
2754 * giscanner/glibtransformer.py:
2755 Regenerate GObject & GType.
2756 Avoid warnings when generating gobject-2.0.gir.
2757 Introspect a little more, and skip *_get_type functions.
2759 2008-08-17 Colin Walters <walters@verbum.org>
2761 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2762 Rename to -good, always generate during build.
2763 * gir/Makefile.am: Ensure .gir files dep on
2764 all scanner sources.
2765 * Makefile.am: Switch build order to ensure
2766 the scanner is ready before we do gir/.
2767 * tools/g-ir-scanner: Look for .git too.
2769 2008-08-17 Johan Dahlin <johan@gnome.org>
2771 * girepository/gtypelib.c (validate_enum_blob):
2772 * giscanner/glibtransformer.py:
2773 * giscanner/transformer.py:
2774 Remove resolve_possible_typedefs, it was unused.
2775 Allow multiple enum values of the sample value in an enum,
2776 since it's actually pretty common.
2777 Register enums so they can be resolved too.
2779 2008-08-16 Johan Dahlin <johan@gnome.org>
2781 * giscanner/girparser.py:
2782 Parse enumeration/bitfield.
2784 2008-08-16 Johan Dahlin <johan@gnome.org>
2786 * giscanner/girparser.py:
2789 2008-08-16 Johan Dahlin <johan@gnome.org>
2791 * giscanner/glibtransformer.py:
2792 Resolve type names for alias targets
2793 * giscanner/transformer.py:
2794 Skip FILE* parameters fow now
2796 2008-08-16 Johan Dahlin <johan@gnome.org>
2799 * gir/gobject-2.0.gir:
2802 * tests/scanner/Makefile.am:
2805 2008-08-15 Colin Walters <walters@verbum.org>
2807 * giscanner/glibtransformer.py: Explicitly construct
2808 new list, since we're deleting as we iterate.
2809 Don't delete all structures which end in Class; just
2810 ones which have a paired GObject.
2811 Fix printing of type warning.
2812 * giscanner/transformer.py: Make strip_namespace_object
2813 be the identity function if it doesn't match the
2816 2008-08-15 Colin Walters <walters@verbum.org>
2818 * giscanner/cgobject.py: Define yet more argument
2819 prototypes; fix prototype for g_type_fundamental.
2821 2008-08-14 Johan Dahlin <johan@gnome.org>
2823 * tests/Makefile.am:
2824 * tests/constant.gir:
2825 * tests/gobject.gir:
2827 * tools/generate.c (write_struct_info):
2828 Fix generator for constant/gobject/struct
2830 2008-08-14 Johan Dahlin <johan@gnome.org>
2832 * tests/Makefile.am:
2834 * tools/generate.c (write_enum_info):
2835 Fix generation of enum/bitfields
2837 2008-08-14 Johan Dahlin <johan@gnome.org>
2839 * girepository/girparser.c (start_field), (start_constant),
2840 (start_type), (end_element_handler):
2841 Clear up constant parsing
2846 * tools/generate.c (write_callable_info), (write_function_info),
2847 (write_callback_info), (write_constant_info), (write_signal_info),
2848 (write_vfunc_info), (write_property_info), (write_object_info),
2849 (write_interface_info):
2850 Constants/Signals are handled now.
2852 2008-08-14 Johan Dahlin <johan@gnome.org>
2854 * girepository/girparser.c (start_type):
2855 Don't require c:type.
2856 * tests/Makefile.am:
2859 Update, remove parts we don't support yet
2860 * tests/roundtrips.sh:
2862 * tools/generate.c (write_type_info), (write_field_info),
2863 (write_callable_info), (write_struct_info):
2864 Make it emit proper gir.
2866 2008-08-14 Johan Dahlin <johan@gnome.org>
2868 * giscanner/transformer.py:
2869 New internal function for adding a new node.
2871 2008-08-14 Johan Dahlin <johan@gnome.org>
2874 Define an internal _H_ variable so we skip parsing both
2875 i18n headers, only one is needed.
2877 Add the glib-2.0.gir too.
2878 * giscanner/glibast.py:
2879 Add gconstpointer as an alias for ANY
2880 * giscanner/transformer.py:
2881 Do not lower case enumeration names per se.
2882 Skip functions which has parameters called 'va_list'
2884 2008-08-14 Colin Walters <walters@verbum.org>
2886 * giscanner/transformer.py: Comment data structures.
2887 Also squash pointers in resolve_type_name to correspond
2888 with what we do for params.
2889 * giscanner/glibtransformer.py: Print warnings in more
2890 situations. Rework checks for method/constructor to
2891 look up in our GType database instead of just checking
2892 for *. Avoid generating <record> for GObject which
2893 duplicate the <class>.
2894 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2897 2008-08-14 Johan Dahlin <johan@gnome.org>
2899 * giscanner/girwriter.py:
2900 * giscanner/glibast.py:
2901 * giscanner/glibtransformer.py:
2902 * giscanner/transformer.py:
2904 * tests/Makefile.am:
2905 Add pyflakes.py and run it in make check.
2906 Update the source code to fix the errors reported by
2909 2008-08-14 Johan Dahlin <johan@gnome.org>
2912 * giscanner/girparser.py:
2913 * giscanner/glibast.py:
2914 * giscanner/glibtransformer.py:
2915 Refactor the parser a bit.
2916 Add parent type to interfaces and update callsites.
2918 2008-08-14 Johan Dahlin <johan@gnome.org>
2920 * giscanner/glibtransformer.py:
2921 * giscanner/utils.py:
2922 Refactor a bit, avoid isinstance and add a method
2923 for each type we parse.
2925 2008-08-14 Johan Dahlin <johan@gnome.org>
2928 * giscanner/girparser.py:
2929 * giscanner/glibtransformer.py:
2930 * tests/Makefile.am:
2931 Run pep8.py in make check, fix old errors.
2933 2008-08-13 Colin Walters <walters@verbum.org>
2935 * giscanner/girparser.py: Parse records.
2937 2008-08-13 Colin Walters <walters@verbum.org>
2939 * gir/Makefile.am: Install again.
2940 * gir/gobject-2.0.gir: Add some more bits.
2942 2008-08-13 Colin Walters <walters@verbum.org>
2944 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2945 * giscanner/girparser.py: Handle aliases.
2946 * giscanner/transformer.py: Record aliases. Make resolver
2947 functions public; we now call into these explicitly from
2948 glibtransformer. Handle resolving aliases.
2949 * giscanner/glibtransformer.py: Separate our internal namespace
2950 from included ones. Call up into transformer's resolver functions.
2952 2008-08-13 Johan Dahlin <johan@gnome.org>
2954 * girepository/girnode.c (g_ir_node_get_full_size_internal):
2955 * girepository/girparser.c (start_class):
2956 * giscanner/glibtransformer.py:
2957 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
2959 2008-08-13 Johan Dahlin <johan@gnome.org>
2961 * giscanner/cgobject.py:
2962 Register GInitiallyUnowned
2963 * giscanner/girwriter.py:
2964 * giscanner/glibtransformer.py:
2965 Special case GObject/GInitially owned as they are a bit special to use.
2967 2008-08-13 Colin Walters <walters@verbum.org>
2969 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
2970 Object is in GObject namespace.
2972 2008-08-13 Colin Walters <walters@verbum.org>
2974 * giscanner/girparser.py: Fix processing of functions
2977 2008-08-13 Colin Walters <walters@verbum.org>
2979 * giscanner/girparser.py: Parse more than just <class.
2980 * giscanner/glibtransformer.py: Put aliases in a separate
2981 data structure since their name is not canonicall.
2982 * giscanner/transformer.py: Handle resolving type names
2985 2008-08-13 Johan Dahlin <johan@gnome.org>
2987 * tools/g-ir-scanner:
2988 Allow multiple libraries
2989 * giscanner/glibtransformer.py:
2990 Rename load_library to add_library, traverse over all libraries
2991 when trying to resolve a function
2993 2008-08-12 Colin Walters <walters@verbum.org>
2995 * giscanner/transformer.py: Record typedefs as <alias> elements.
2996 Also attempt to look up types in external namespaces.
2997 * giscanner/girwriter.py: Write them.
2998 * giscanner/glibtransformer.py: Rework resolver using real instanceof
2999 checks. Resolve interface methods and properties.
3000 * tests/scanner/foo-object.h: Add a method with typedef.
3001 * tests/scanner/Foo-expected.gir: Update.
3002 * girepository/girnode.c: Debug tweaks.
3003 * girepository/girparser.c: Make a first pass through the XML where we
3004 record all the aliases. This lets us resolve them as we go through the
3006 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3007 from gir-repository.
3009 2008-08-12 Colin Walters <walters@verbum.org>
3011 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3012 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3014 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3016 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3018 2008-08-12 Colin Walters <walters@verbum.org>
3020 * giscanner/glibtransformer.py: Also transform object properties.
3022 2008-08-12 Colin Walters <walters@verbum.org>
3024 * giscanner/glibtransformer.py: Also transform callbacks
3025 and structure field types.
3026 * tests/scanner/Fooe-expected.gir: Update to expect correct
3027 names for callbacks and structs.
3029 2008-08-12 Colin Walters <walters@verbum.org>
3031 * girepository/girparser.c: Handle 'any'.
3032 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3033 Add test for void *.
3035 2008-08-12 Colin Walters <walters@verbum.org>
3037 * giscanner/glibtransformer.py: We need to do type
3038 resolution in a second pass after we've seen all the
3039 enums, records, etc.
3041 2008-08-12 Colin Walters <walters@verbum.org>
3043 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3044 Add enum return value.
3045 * giscanner/glibtransformer.py: Transform function return types
3048 2008-08-12 Colin Walters <walters@verbum.org>
3050 * tests/scanner/Makefile.am: Dep .gir files on scanner
3051 sources too. Also remove @ so we see scanner invocations.
3053 2008-08-12 Colin Walters <walters@verbum.org>
3055 * girepository/girparser.c, girepository/gtypelib.c,
3056 girepository/gtypelib.h, girepository/girnode.c:
3057 Remove usage of (GAPI-oriented) TypeTag in favor of
3058 GITypeTag from girepository.h.
3060 2008-08-10 Colin Walters <walters@verbum.org>
3062 * tests/roundtrips.sh: Use the correct tests.
3064 2008-08-10 Colin Walters <walters@verbum.org>
3066 * giscanner/cgobject.py: Declare/wrap a few more functions.
3067 Fix parameter types for g_object_new and g_type_fundamental.
3069 2008-08-10 Colin Walters <walters@verbum.org>
3071 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3072 us to declare types for both return value and parameters. The
3073 ctypes default of 'int' is bad because it hides 32/64 bit
3074 problems. Convert all existing functions to use it.
3076 2008-08-09 Johan Dahlin <johan@gnome.org>
3078 * giscanner/__init__.py:
3080 * giscanner/cgobject.py:
3081 * giscanner/gidlparser.py:
3082 * giscanner/gidlwriter.py:
3083 * giscanner/girparser.py:
3084 * giscanner/girwriter.py:
3085 * giscanner/glibast.py:
3086 * giscanner/glibtransformer.py:
3087 * giscanner/odict.py:
3088 * giscanner/sourcescanner.py:
3089 * giscanner/transformer.py:
3090 * giscanner/utils.py:
3091 * giscanner/xmlwriter.py:
3092 * tools/g-ir-scanner:
3096 2008-08-09 Johan Dahlin <johan@gnome.org>
3099 * relaxng/c-types.xml:
3100 * relaxng/g-types.xml:
3101 * relaxng/relaxng.rng:
3103 Remove outdated relaxng schemas.
3105 2008-08-09 Johan Dahlin <johan@gnome.org>
3108 Rename metadata to typelib in variable names,
3111 2008-08-09 Johan Dahlin <johan@gnome.org>
3115 Remove old C scanner, which got rewritten in python.
3117 2008-08-09 Johan Dahlin <johan@gnome.org>
3119 * girepository/Makefile.am:
3120 * tools/Makefile.am:
3121 * tools/girmodule.c:
3122 * tools/girmodule.h:
3125 * tools/girparser.c:
3126 * tools/girparser.h:
3127 * tools/girwriter.c:
3128 * tools/girwriter.h:
3129 Move shared *.[ch] files to girepository from tools
3131 2008-08-09 Johan Dahlin <johan@gnome.org>
3133 * tests/Makefile.am:
3136 * tests/constant.test:
3138 * tests/errors.test:
3139 * tests/function.test:
3140 * tests/gobject.test:
3141 * tests/interface.test:
3142 * tests/object.test:
3143 * tests/struct.test:
3148 Rename *.test to *.gir
3150 2008-08-09 Johan Dahlin <johan@gnome.org>
3153 * tests/Makefile.am:
3154 * tests/parser/Foo-expected.gir:
3155 * tests/parser/Makefile.am:
3156 * tests/parser/foo-object.h:
3157 * tests/parser/foo.c:
3158 * tests/parser/utility-expected.gir:
3159 * tests/parser/utility.c:
3160 * tests/parser/utility.h:
3161 * tests/scanner/Makefile.am:
3162 Rename tests/parser to test/scanner
3164 2008-08-08 Colin Walters <walters@verbum.org>
3166 * tests/roundtrips.sh: Use local .gir files again.
3168 2008-08-08 Colin Walters <walters@verbum.org>
3170 * tests/invoke/Makefile.am: .gir file depends on libtool
3173 2008-08-08 Colin Walters <walters@verbum.org>
3175 * tools/girnode.c: Pass through parent node so we can
3176 print the node whose child is NULL, if that occurs.
3178 2008-08-08 Johan Dahlin <johan@gnome.org>
3180 * tests/Makefile.am:
3181 Disable roundtrip tests which are not yet working
3182 * tests/invoke/testfns.gir:
3185 2008-08-08 Johan Dahlin <johan@gnome.org>
3187 * giscanner/girwriter.py:
3189 * giscanner/glibast.py:
3190 * giscanner/glibtransformer.py:
3191 Swap order of members, to keep it consistent with
3194 2008-08-08 Johan Dahlin <johan@gnome.org>
3196 * girepository/gtypelib.c (validate_header):
3197 * girepository/gtypelib.h:
3199 * giscanner/girwriter.py:
3200 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3201 (gi_source_symbol_unref):
3204 * tests/constant.test:
3206 * tests/errors.test:
3207 * tests/function.test:
3208 * tests/gobject.test:
3209 * tests/interface.test:
3210 * tests/invoke/Makefile.am:
3211 * tests/invoke/testfns.xml:
3212 * tests/object.test:
3213 * tests/parser/Makefile.am:
3214 * tests/roundtrips.sh:
3215 * tests/struct.test:
3220 * tools/Makefile.am:
3221 * tools/compiler.c (main):
3222 * tools/generate.c (write_callable_info), (write_function_info),
3224 * tools/gidlmodule.c:
3225 * tools/gidlmodule.h:
3228 * tools/gidlparser.c:
3229 * tools/gidlparser.h:
3230 * tools/gidlwriter.c:
3231 * tools/gidlwriter.h:
3232 * tools/scanner.c (create_node_from_gtype),
3233 (create_node_from_ctype), (g_igenerator_process_properties),
3234 (g_igenerator_process_signals), (g_igenerator_create_object),
3235 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3236 (g_igenerator_create_enum), (g_igenerator_create_flags),
3237 (g_igenerator_process_function_symbol),
3238 (g_igenerator_process_unregistered_struct_typedef),
3239 (g_igenerator_process_struct_typedef),
3240 (g_igenerator_process_union_typedef),
3241 (g_igenerator_process_enum_typedef),
3242 (g_igenerator_process_function_typedef),
3243 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3244 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3245 Merge in the gir-compiler branch.
3246 Thanks to Philip and Colin for their help.
3248 2008-07-26 Colin Walters <walters@verbum.org>
3250 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3251 and g-idl-generate to go along with how we're changing this
3252 module to be installed.
3253 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3255 2008-07-24 Colin Walters <walters@verbum.org>
3257 * girepository/girepository.c (g_irepository_register): Add
3258 environment variable G_IREPOSITORY_VERBOSE so we can print
3259 out what we're doing.
3260 * girepository/girepository.c (g_irepository_register_file):
3261 Add GError error message to g_debug call.
3263 2008-07-08 Jürg Billeter <j@bitron.ch>
3265 * giscanner/glibast.py:
3269 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3271 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3274 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3277 * giscanner/girwriter.py:
3278 * giscanner/transformer.py:
3279 * tests/parser/Foo-expected.gir:
3280 * tests/parser/foo-object.h:
3281 * tests/parser/foo.c (foo_object_allow_none):
3282 Add support for gtk-doc annotations for allow-none.
3285 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3288 * giscanner/girwriter.py:
3289 * giscanner/glibast.py:
3290 * giscanner/glibtransformer.py:
3291 * giscanner/transformer.py:
3292 * tests/parser/Foo-expected.gir:
3293 Start using abstract type instead of the raw C types.
3294 Register a bunch of glib types we care about.
3296 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3301 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3303 * girepository/girepository.c:
3304 * girepository/gtypelib.c:
3305 * girepository/ginfo.c:
3306 * girepository/ginvoke.c:
3307 * girepository/girepository.h:
3308 * girepository/gtypelib.h:
3309 * girepository/gmetadata.c:
3310 * girepository/Makefile.am:
3311 * girepository/gmetadata.h:
3313 * tools/gidlmodule.c:
3316 * tools/gidlmodule.h:
3317 * tools/gidlparser.c:
3319 Renamed GMetadata to GTypelib
3321 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3323 * giscanner/xmlwriter.py:
3324 Improve line wrapping when > 79 charaters
3326 2008-06-05 Jürg Billeter <j@bitron.ch>
3329 * giscanner/girwriter.py:
3330 * giscanner/transformer.py:
3331 Use <type> element for field types
3332 * tests/parser/Foo-expected.gir:
3335 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3337 * giscanner/glibtransformer.py:
3338 Fix a bug which prevented GdkEvent from being generated
3340 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3342 * giscanner/Makefile.am:
3344 * giscanner/girwriter.py:
3345 * giscanner/glibast.py:
3346 * giscanner/glibtransformer.py:
3347 * giscanner/transformer.py:
3348 * giscanner/utils.py:
3349 * tests/parser/Foo-expected.gir:
3350 Improve enum member parsing and introspection
3352 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3354 * giscanner/scannerparser.y:
3355 * giscanner/sourcescanner.h:
3356 * giscanner/sourcescanner.py:
3357 Add a new source type enum for member.
3358 Use __repr__ for improved debugging
3359 * giscanner/girparser.py:
3361 * giscanner/transformer.py:
3362 Improve parsing of struct members.
3363 * tests/parser/foo-object.h:
3366 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3368 * giscanner/xmlwriter.py:
3369 Improve error reporting when trying to quote None.
3370 * giscanner/girparser.py:
3371 Do not print warnings when including more complete .gir files
3372 * giscanner/girwriter.py:
3373 Do not require a name for parameters, add a todo for singletons
3374 * giscanner/glibtransformer.py:
3375 Refactor the way structs are done, add a couple of hacks to allow
3377 * giscanner/transformer.py:
3378 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3379 * gobject-introspection-1.0.pc.in:
3380 Export girdir, so we can access gobject-2.0.gir from outside
3382 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3384 * tools/g-ir-scanner:
3385 * tests/parser/Makefile.am:
3386 Update sys.path before running the parser so we don't have
3387 to setup PYTHONPATH ourselves.
3391 * girepository/Makefile.am:
3392 * giscanner/transformer.py:
3393 * gobject-introspection-1.0.pc.in:
3394 * gobject-introspection.pc.in:
3395 * tools/Makefile.am:
3397 Rename pkg-config name to gobject-introspection-1.0,
3398 Do not installed anything which is not using the gir format.
3399 Disable compililation the old C scanner, but still keep the source
3400 until all the remaning functionallity has been ported.
3402 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3404 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3405 a crash when symbol->indent is NULL.
3407 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3408 a function to convert a CTYPE symbol to a string
3410 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3413 * giscanner/girwriter.py:
3414 * giscanner/giscannermodule.c
3415 (pygi_source_scanner_append_filename),
3416 (pygi_source_scanner_parse_file):
3417 * giscanner/glibtransformer.py:
3418 * giscanner/sourcescanner.py:
3419 Revert back to using temporary files to send in headers.
3420 Allow Functions to be passed in as callbacks, add a couple
3421 of try/excepts missing features.
3422 We can now scan pango
3424 2008-05-08 Johan Dahlin <johan@gnome.org>
3426 * giscanner/glibtransformer.py:
3427 * giscanner/transformer.py:
3428 Move namespace stripping glibtransformer->transformer
3430 2008-05-08 Johan Dahlin <johan@gnome.org>
3433 * giscanner/girwriter.py:
3434 * giscanner/glibtransformer.py:
3435 * giscanner/transformer.py:
3436 * tools/g-ir-scanner:
3437 Introduce a namespace ast node
3439 2008-05-05 Johan Dahlin <johan@gnome.org>
3441 * giscanner/__init__.py:
3442 * giscanner/sourcescanner.py:
3443 * giscanner/transformer.py:
3444 Move sourcescanner symbols to the sourcescanner module, instead
3445 of in the global __init__ namespace.
3447 2008-05-03 Johan Dahlin <johan@gnome.org>
3449 * giscanner/glibtransformer.py:
3450 * tools/g-ir-scanner:
3451 Handle missing parameters better, allow - and + in .la dlname
3454 2008-05-03 Johan Dahlin <johan@gnome.org>
3456 * giscanner/__init__.py:
3458 * giscanner/girwriter.py:
3459 * giscanner/glibtransformer.py:
3460 * giscanner/transformer.py:
3461 Parse struct fields properly, improve debugging.
3463 2008-04-29 Johan Dahlin <johan@gnome.org>
3466 * giscanner/girwriter.py:
3467 * giscanner/transformer.py:
3468 * tests/parser/Foo-expected.gir:
3470 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3472 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3475 * docs/g-ir-scanner.1:
3476 * metadata-annotations-proposal.txt:
3477 * metadata-format.txt:
3478 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3480 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3482 * giscanner/girwriter.py:
3483 * giscanner/glibtransformer.py:
3484 * giscanner/transformer.py:
3485 * giscanner/xmlwriter.py:
3486 * tests/parser/Foo-expected.gir:
3487 * tests/parser/foo-object.h:
3488 Write record/structs to gir file too. Add a couple of tests,
3489 fix an off by one error in xmlwriter.py.
3491 2008-04-28 Johan Dahlin <johan@gnome.org>
3493 * giscanner/xmlwriter.py: Calculate the line length properly,
3494 include the provided extra indentation in the calculation, really.
3496 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3499 * giscanner/glibast.py:
3500 * giscanner/glibtransformer.py:
3501 * giscanner/transformer.py:
3502 * tools/g-ir-scanner:
3503 Add a --strip-prefix and sort out confusion between names and symbols
3504 for functions and struct + derivaties.
3505 Refactor bootstrap of g-ir-scanner, so we can set options on
3506 Transformer() before parsing everything.
3508 2008-04-28 Johan Dahlin <johan@gnome.org>
3510 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3511 when scanning girepository.h
3513 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3514 a __GI_SCANNER__ when we run.
3516 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3519 * giscanner/girwriter.py:
3520 * giscanner/glibast.py:
3521 * giscanner/glibtransformer.py:
3522 * tests/parser/Foo-expected.gir:
3523 * tests/parser/utility-expected.gir:
3524 Rename most c:identifier to c:type. Add new ones to
3525 class/interface/enum/boxed.
3527 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3530 * giscanner/girwriter.py:
3531 * giscanner/glibtransformer.py:
3532 * tests/parser/Foo-expected.gidl:
3533 * tests/parser/Makefile.am:
3534 Move c:identifier from return-value to subchild type,
3535 as per Jürgs suggestion
3537 2008-04-28 Johan Dahlin <johan@gnome.org>
3539 * giscanner/girwriter.py:
3540 * tests/parser/Foo-expected.gir:
3541 Write property.type as a child node.
3543 2008-04-27 Johan Dahlin <johan@gnome.org>
3548 * gidl/gobject-2.0.gidl:
3550 * gir/gobject-2.0.gir:
3551 * tests/parser/Makefile.am:
3552 Replace the GObject gidl with a GObject gir.
3554 2008-04-27 Johan Dahlin <johan@gnome.org>
3556 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3559 * giscanner/xmlwriter.py:
3560 * tests/parser/Foo-expected.gir:
3561 Include indentation in line length calculation
3563 2008-04-27 Johan Dahlin <johan@gnome.org>
3565 * giscanner/girparser.py:
3566 Prettify NS parsing using elementtree.
3568 2008-04-27 Johan Dahlin <johan@gnome.org>
3571 * giscanner/Makefile.am:
3572 * giscanner/girparser.py:
3573 * giscanner/glibtransformer.py:
3574 * tests/parser/Foo-expected.gidl:
3575 * tests/parser/Foo-expected.gir:
3576 * tests/parser/Makefile.am:
3577 * tests/parser/utility-expected.gidl:
3578 * tests/parser/utility-expected.gir:
3579 * tools/g-ir-scanner:
3580 Switch over to GIR as the default format. Add a simple GIDL
3582 Update tests and fix simplify makefiles by depending
3583 on GNU make extensions.
3585 2008-04-27 Johan Dahlin <johan@gnome.org>
3587 * giscanner/xmlwriter.py:
3588 Wrap attributes for lines which are wider than 79 characters
3590 * giscanner/scannerlexer.l:
3591 Allow parenthesis in annotations
3594 * giscanner/gidlwriter.py:
3595 * giscanner/girwriter.py:
3596 * giscanner/glibtransformer.py:
3597 * giscanner/transformer.py:
3598 Add initial sequence support, including annotation.
3599 Refactor type handling a bit.
3601 2008-04-27 Johan Dahlin <johan@gnome.org>
3603 * tests/parser/Foo-expected.gidl:
3604 * tests/parser/foo-object.h:
3605 * tests/parser/foo.c (foo_object_class_init),
3606 (foo_object_get_strings), (foo_object_get_objects):
3607 Add two new functions to check sequence return values.
3608 Also fixes a compilation warning.
3610 2008-04-27 Johan Dahlin <johan@gnome.org>
3612 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3613 a compilation warning.
3615 * tools/Makefile.am (g_ir_scanner_SOURCES):
3616 g-ir-scanner has no sources.
3618 2008-04-25 Johan Dahlin <johan@gnome.org>
3620 * giscanner/Makefile.am:
3622 * giscanner/gidlparser.py:
3623 * giscanner/gidlwriter.py:
3624 * giscanner/girwriter.py:
3625 * giscanner/glibast.py:
3626 * giscanner/glibtransformer.py:
3627 * giscanner/transformer.py:
3628 Split out nodes to ast.py and glibast.py
3630 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3632 * giscanner/Makefile.am:
3633 * giscanner/gidlparser.py:
3634 * giscanner/gidlwriter.py:
3635 * giscanner/girwriter.py:
3636 * giscanner/glibtransformer.py:
3637 * giscanner/gobjecttreebuilder.py:
3638 * giscanner/transformer.py:
3639 * giscanner/treebuilder.py:
3640 * tools/g-ir-scanner:
3641 Rename treebuilder to transformer and
3642 gobjectreebuilder to glibtransformer.
3644 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3646 * giscanner/Makefile.am:
3647 * giscanner/__init__.py:
3648 * giscanner/cgobject.py:
3649 * giscanner/gidlparser.py:
3650 * giscanner/gidlwriter.py:
3651 * giscanner/girwriter.py:
3652 * giscanner/gobjecttreebuilder.py:
3653 * giscanner/odict.py:
3654 * giscanner/sourcescanner.py:
3655 * giscanner/treebuilder.py:
3656 * giscanner/xmlwriter.py:
3657 * tools/Makefile.am:
3658 * tools/g-ir-scanner:
3659 Add LGPLv2 license header and install all python files
3661 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3664 * giscanner/gidlwriter.py:
3665 * giscanner/giscannermodule.c (pygi_source_directive_new),
3666 (directive_get_options), (pygi_source_symbol_new),
3667 (symbol_get_base_type), (pygi_source_type_new),
3668 (type_get_base_type), (type_get_child_list),
3669 (pygi_source_scanner_get_symbols),
3670 (pygi_source_scanner_get_directives):
3671 * giscanner/gobjecttreebuilder.py:
3672 * giscanner/sourcescanner.py:
3673 * giscanner/treebuilder.py:
3674 * tests/parser/foo-object.h:
3675 Add support for virtual methods.
3676 Pair struct FooClass with struct Foo.
3677 Clean up the SourceScanner bindings a bit.
3678 Add a testcase for virtual methods.
3680 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3682 * giscanner/cgobject.py:
3683 * giscanner/gidlwriter.py:
3684 * giscanner/gobjecttreebuilder.py:
3685 Add support for signals
3687 * tests/parser/foo.c (foo_object_class_init):
3688 * Foo-expected.gidl:
3689 Add a signal and update the expected output.
3691 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3693 * giscanner/gidlwriter.py:
3694 * giscanner/girwriter.py:
3695 * giscanner/giscannermodule.c (directive_get_name),
3696 (directive_get_value), (directive_get_options),
3697 (symbol_get_directives), (symbol_set_directives),
3698 (pygi_source_scanner_parse_file),
3699 (pygi_source_scanner_lex_filename),
3700 (pygi_source_scanner_get_directives), (init_giscanner):
3701 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3702 * giscanner/sourcescanner.h:
3703 * giscanner/sourcescanner.py:
3704 * giscanner/treebuilder.py:
3705 * tools/g-ir-scanner:
3706 Add support for source/header annotations.
3708 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3710 * giscanner/gidlwriter.py:
3711 * giscanner/girwriter.py:
3712 * giscanner/gobjecttreebuilder.py:
3713 * giscanner/treebuilder.py:
3714 Add support for Callbacks
3716 2008-04-22 Havoc Pennington <hp@pobox.com>
3718 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3719 not in metadata->module, look for it in the global module, in case
3720 some other object or the app itself provides the symbol.
3722 2008-04-22 Havoc Pennington <hp@pobox.com>
3724 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3725 dlopening a library that is already in the main app, by checking
3726 whether one of the lib's symbols is already loaded.
3728 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3730 * tests/parser/Foo-expected.gidl:
3731 * tests/parser/foo-object.h:
3734 2008-04-22 Havoc Pennington <hp@pobox.com>
3736 * girepository/ginfo.c (g_interface_info_find_method):
3737 Use interface_blob_size not object_blob_size to compute offset.
3739 2008-04-22 Havoc Pennington <hp@pobox.com>
3741 * girepository/gmetadata.c (_g_metadata_init): remove
3742 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3743 (Glade and Clutter for example) rely on being loaded globally.
3745 2008-04-22 Havoc Pennington <hp@pobox.com>
3747 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3748 function to get the GType given a RegisteredTypeInfo
3750 2008-04-22 Johan Dahlin <johan@gnome.org>
3752 * COPYING: Add a LGPL license, to prevent automake to
3753 put in a copy of GPL here. Pointed out by Havoc.
3755 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3756 (g_type_info_is_pointer), (g_type_info_get_tag),
3757 (g_type_info_get_param_type), (g_type_info_get_interface),
3758 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3759 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3760 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3761 (g_object_info_get_interface), (g_object_info_get_field),
3762 (g_interface_info_get_prerequisite),
3763 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3764 * girepository/ginvoke.c (get_ffi_type):
3765 * girepository/girepository.h:
3766 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3767 (g_metadata_check_sanity), (validate_header),
3768 (validate_array_type_blob), (validate_iface_type_blob),
3769 (validate_param_type_blob), (validate_error_type_blob),
3770 (validate_type_blob), (validate_constant_blob),
3771 (validate_struct_blob), (validate_enum_blob):
3772 * girepository/gmetadata.h:
3773 * tests/Makefile.am:
3774 * tests/invoke/Makefile.am:
3775 * tests/invoke/invoke.c (main):
3776 * tests/roundtrips.sh:
3777 * tools/Makefile.am:
3778 * tools/compiler.c (format_output), (write_out_metadata), (main):
3779 * tools/generate.c (write_type_name), (write_type_info),
3780 (write_constant_value), (write_enum_info), (load_metadata), (main):
3781 * tools/gidlcompilercontext.c:
3782 * tools/gidlcompilercontext.h:
3783 * tools/gidlcompilerentrynode.c:
3784 * tools/gidlcompilerentrynode.h:
3785 * tools/gidlcompilertypenode.c:
3786 * tools/gidlcompilertypenode.h:
3787 * tools/gidlmodule.c (g_idl_module_build_metadata):
3788 * tools/gidlmodule.h:
3789 * tools/gidlnode.c (init_stats), (dump_stats),
3790 (g_idl_node_get_size), (g_idl_node_get_full_size),
3791 (g_idl_node_cmp), (g_idl_node_can_have_member),
3792 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3793 (parse_int_value), (parse_uint_value), (parse_float_value),
3794 (parse_boolean_value), (find_entry_node), (find_entry),
3795 (serialize_type), (g_idl_node_build_metadata), (write_string):
3797 * tools/gidlparser.c (parse_type_internal):
3798 * tools/quote-file.sh:
3799 Revert revisions 157,149-148,136-129 and 120.
3800 Move back to using g-idl-generate to generate the metadata and
3801 avoids dependency on a c compiler.
3803 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3805 * giscanner/girwriter.py:
3806 * tools/g-ir-scanner:
3807 Add an initial GIR writer and a --format option to g-ir-scanner
3809 2008-04-21 Johan Dahlin <johan@gnome.org>
3811 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3812 gobject-2.0 and raise ImportError if not found.
3814 * giscanner/gidlparser.py:
3815 * giscanner/gidlwriter.py:
3816 * giscanner/gobjecttreebuilder.py:
3817 * tools/g-ir-scanner:
3818 Add a --include argument to include types from other idls.
3819 Add a minimalistic GIDL parser (just objects for now)
3820 Implement resolving of external type references and use it to
3821 resolve parent types, argument types and return types.
3823 2008-04-21 Johan Dahlin <johan@gnome.org>
3825 * giscanner/gidlwriter.py:
3826 * giscanner/gobjecttreebuilder.py:
3827 * giscanner/treebuilder.py:
3828 Add support for properties.
3829 Refactor Class/Interface support a bit, to share more code and
3830 always initialize their method attribute to an empty list.
3832 2008-04-21 Johan Dahlin <johan@gnome.org>
3834 * giscanner/cgobject.py:
3835 Add a workaround for a glib bug interface introspection bug
3836 (object_interface_list_properties, object_class_list_properties):
3837 Cast the return value to GParamSpec.
3839 * tests/parser/Foo-expected.gidl: Update
3840 * tests/parser/foo.c: Add a string property
3842 * giscanner/gobjecttreebuilder.py:
3843 After stripping namespaces, remove the original
3844 item to avoid duplication (GtkButton struct and Button object)
3846 2008-04-21 Johan Dahlin <johan@gnome.org>
3848 * giscanner/gobjecttreebuilder.py:
3849 * giscanner/treebuilder.py:
3850 Strip namespaces before objects, so we'll export
3851 GtkButton as Button in the gtk namespace
3853 2008-04-21 Johan Dahlin <johan@gnome.org>
3855 * giscanner/gidlwriter.py:
3856 * giscanner/gobjecttreebuilder.py:
3857 * giscanner/treebuilder.py:
3858 Add constructors for object/boxed types.
3860 2008-04-21 Johan Dahlin <johan@gnome.org>
3862 * giscanner/gidlwriter.py:
3863 * giscanner/gobjecttreebuilder.py:
3864 Add support for boxed types
3866 2008-04-21 Johan Dahlin <johan@gnome.org>
3868 * giscanner/giscannermodule.c: Mark structures as const,
3869 wrap SourceType.const_string.
3871 * tests/parser/foo-object.h: Add a couple of constants.
3873 * giscanner/gidlwriter.py:
3874 * giscanner/gobjecttreebuilder.py:
3875 * giscanner/treebuilder.py:
3876 Add basic support for interfaces
3878 * tools/g-ir-scanner:
3879 Add -o/--output for writing to a file
3881 2008-04-21 Havoc Pennington <hp@redhat.com>
3883 * TODO: add some C API wishlist items I could think of quickly
3885 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3887 * giscanner/gidlwriter.py:
3888 * giscanner/xmlwriter.py:
3889 Add a simple api for writing tags which can be used
3890 with the new 'with statement' in python 2.5
3892 2008-04-21 Johan Dahlin <johan@gnome.org>
3894 * giscanner/gobjecttreebuilder.py:
3895 Strip namespace and object prefix from method names.
3897 2008-04-21 Johan Dahlin <johan@gnome.org>
3899 * tools/g-ir-scanner (main): Add --pkg option to pass in
3900 pkg-config modules to get cflags from.
3902 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3903 Avoid duplication, reuse function writer for methods.
3905 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3907 * giscanner/gidlwriter.py:
3908 * giscanner/gobjecttreebuilder.py:
3909 * giscanner/treebuilder.py:
3910 * tools/g-ir-scanner:
3911 Resolve libtool .la files.
3912 Strip name spaces for methods.
3913 Add function symbols
3915 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3917 * giscanner/cgobject.py:
3918 * giscanner/gidlwriter.py:
3919 * giscanner/gobjecttreebuilder.py:
3920 * giscanner/treebuilder.py:
3921 Add support for classes and methods
3923 2008-04-20 Johan Dahlin <johan@gnome.org>
3925 * giscanner/gidlwriter.py:
3926 * giscanner/gobjecttreebuilder.py:
3927 * giscanner/odict.py:
3928 Avoid conflicts, keep the output ordered similar to
3929 the order of the input.
3930 Add a simple ordered dictionary implemenation
3932 2008-04-19 Johan Dahlin <johan@gnome.org>
3934 * giscanner/cgobject.py:
3935 * giscanner/gidlwriter.py:
3936 * giscanner/gobjecttreebuilder.py:
3937 * tools/g-ir-scanner:
3938 Start introspecting get-type functions.
3939 Implement support for GLib/GFlags GTypes.
3940 Add a ctype based GObject binding.
3942 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3944 * giscanner/gidlwriter.py:
3945 * giscanner/xmlwriter.py:
3946 * tools/g-ir-scanner:
3947 Add a simplistic gidl writer, which can't do too much.
3949 2008-04-18 Johan Dahlin <johan@gnome.org>
3951 * giscanner/sourcescanner.py:
3952 * giscanner/treebuilder.py:
3953 * tools/g-ir-scanner:
3954 split tree building and source scanning interface to separate files.
3956 2008-04-18 Johan Dahlin <johan@gnome.org>
3958 * tools/g-ir-scanner (Parameter.__init__): Start constructing
3960 - Add support for struct/parameter/return, start parsing of ctypes
3962 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
3965 2008-03-31 Johan Dahlin <johan@gnome.org>
3967 * tools/g-ir-scanner:
3968 Start to build abstract syntax node of scanned sources.
3969 Add support for cpp options.
3971 2008-03-27 Johan Dahlin <johan@gnome.org>
3973 * giscanner/giscannermodule.c:
3974 * giscanner/scannerlexer.l:
3975 * giscanner/sourcescanner.c:
3976 * tools/g-ir-scanner:
3978 Add simple pre-processor using subprocess and a PIPE.
3979 Change the parse_file apis to accept a file descriptor.
3981 2008-03-25 Johan Dahlin <johan@gnome.org>
3983 * giscanner/__init__.py:
3984 * tools/g-ir-scanner:
3985 Fix a typo and add an example python test program.
3987 2008-03-25 Johan Dahlin <johan@gnome.org>
3989 * giscanner/__init__.py:
3990 * giscanner/giscannermodule.c:
3991 * giscanner/sourcescanner.c:
3992 * giscanner/sourcescanner.h:
3993 Add constants and wrap a few more SymbolType fields
3995 2008-03-25 Johan Dahlin <johan@gnome.org>
3999 * giscanner/__init__.py:
4000 * giscanner/giscannermodule.c:
4001 * giscanner/Makefile.am:
4003 Add initial python bindings for the scanner and
4004 depend on python 2.5.
4006 2008-03-25 Johan Dahlin <johan@gnome.org>
4010 * giscanner/Makefile.am:
4011 * giscanner/sourcescanner.c:
4012 * giscanner/sourcescanner.h:
4013 * tools/Makefile.am:
4014 * tools/grealpath.h:
4015 * tools/sourcescanner.c:
4016 * tools/sourcescanner.h:
4018 Move the scanner to a separate library.
4020 2008-03-23 Johan Dahlin <johan@gnome.org>
4022 * tools/Makefile.am:
4025 * tools/scannerlexer.l:
4026 * tools/scannerparser.y:
4027 * tools/sourcescanner.c:
4028 * tools/sourcescanner.h:
4029 Split out the source scanner from the generator.
4030 Rename the symbols used in the scanner to use the gi_ prefix.
4031 This should make it possible to use the raw C parser from
4034 2008-03-23 Johan Dahlin <johan@gnome.org>
4036 * tests/parser/Makefile.am (utility.gidl):
4037 * tests/parser/utility-expected.gidl:
4038 Pass in the gobject.gidl since we're defining a GObject.
4040 2008-03-12 Johan Dahlin <johan@gnome.org>
4042 * relaxng/relaxng.rng:
4043 Add a releaxng in relaxng we can use to validate the relaxngs
4046 2008-03-12 Jürg Billeter <j@bitron.ch>
4048 * tools/scanner.c: (g_igenerator_new):
4049 * tools/scannerparser.y:
4050 Fix compiler warnings.
4052 2008-03-12 Jürg Billeter <j@bitron.ch>
4056 * tools/scannerparser.y:
4057 Start fixing memory management in g-idl-scanner.
4059 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4061 * tools/gidlcompilercontext.c: (write_compiled):
4062 Fix critical warning when no shlib passed to g-idl-compiler.
4064 2008-03-12 Johan Dahlin <johan@gnome.org>
4066 * tests/parser/utility-expected.gidl:
4067 * tests/parser/utility.h:
4068 Add a get_type-function, so the scanner actually
4069 parses it as an object.
4071 2008-03-12 Johan Dahlin <johan@gnome.org>
4073 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4076 * tests/parser/Foo-expected.gidl:
4077 * tests/parser/Makefile.am:
4078 * tests/parser/foo-object.h:
4079 * tests/parser/foo.c:
4080 * tests/parser/utility-expected.gidl:
4081 * tests/parser/utility.c:
4082 * tests/parser/utility.h:
4084 Add a new gidl test. 'utility.gidl', which is used to be able
4085 to test external type references. Add a reference to UtilityObject*
4088 2008-03-11 Johan Dahlin <johan@gnome.org>
4092 Remove most global variables
4094 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4096 * tools/scannerlexer.l:
4098 * tests/parser/Foo-expected.gidl:
4099 * tests/parser/foo.c:
4100 * tests/parser/Makefile.am:
4101 * tests/parser/foo-object.h:
4103 Added a few extra tests. Which resulted in finding a few
4104 bugs. Which resulted in me fixing those bugs
4106 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4108 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4109 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4110 Add some comments for strings into generated output for
4113 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4115 * tools/gidlcompilercontext.c: (write_compiled):
4116 Write out the shlibs variable before writing out the strings
4117 length. Fixes compiler warning when using '-l' flag with
4120 2008-03-11 Johan Dahlin <johan@gnome.org>
4122 * tests/parser/Foo-expected.gidl:
4123 * tests/parser/foo-object.h:
4126 * tools/scannerlexer.l:
4127 Add support for parsing return arguments. Add support for
4128 caller-owns return types.
4129 Patch by Philip Van Hoof.
4131 * tools/scannerparser.y:
4132 Remove parsing of the @deprecated syntax used in headers.
4133 We will support gtk-doc deprecation in the future instead.
4135 2008-03-11 Johan Dahlin <johan@gnome.org>
4137 * tools/compiler.c (main): Coding style fixes
4139 2008-03-10 Johan Dahlin <johan@gnome.org>
4142 Add GCOV_LIBS to GILIBS
4144 2008-03-10 Johan Dahlin <johan@gnome.org>
4146 * tests/parser/Foo-expected.gidl:
4147 * tests/parser/foo.c:
4148 Rename null-ok to direction=out
4150 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4152 reviewed and extensively tested by Johan
4154 * tests/parser/Foo-expected.gidl:
4155 * tests/parser/foo-object.h:
4156 * tests/parser/foo.c:
4159 * tools/gidlwriter.c:
4162 * tools/scannerlexer.l:
4163 * tools/scannerparser.y:
4165 Add support for scanning for gtk-doc comments inside
4166 C source files. Add tests
4168 2008-03-10 Johan Dahlin <johan@gnome.org>
4170 * tests/parser/Makefile.am:
4171 * tests/parser/foo.c:
4174 * tools/scannerparser.y:
4175 Add an api to lex filenames.
4176 Lex all source .c files passed in on the command line.
4177 Scan sources in a test and a couple of private structures
4178 which should not be included in the generated gidl
4180 2008-03-10 Johan Dahlin <johan@gnome.org>
4182 * tests/invoke/Makefile.am: Make the generated metadata
4183 depend on the g-idl-compiler
4185 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4187 * tools/gidlmodule.c
4188 * tools/gidlmodule.h
4191 Remove the old g-idl-compiler code.
4194 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4196 * tools/quote-file.sh
4199 Move to using the 'C' struct compiler code.
4201 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4203 * girepository/ginfo.c
4205 Change the way that external references with no namespace
4206 are dealt with. External references with no namespace
4207 are placed into the XML as-if they are a local reference.
4208 This is temporary, but helps with roundtrip tests.
4210 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4212 * girepository/ginfo.c
4213 Add the ability to get the value of a constant of
4214 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4215 is provided as a string.
4217 This would deal properly with:
4218 typedef char* random;
4219 const random = "A string";
4221 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4223 * girepository/ginfo.c
4224 * girepository/girepository.h
4226 Add a function to check if an enum is registered or not.
4227 Previously anything testing this relied on the g-type
4228 string offset having a value of 0.
4230 * girepository/gmetadata.c
4231 * girepository/gmetadata.h
4233 Remove unneccesary or erroneous checks. There were two
4234 metadata validation checks which made sure that the blob
4235 sizes were the same as some magic numbers compiled into the code.
4236 This is wrong as it breaks any forwards compatibility that may
4239 Checks were also present that made sure that unregistered type
4240 blobs had a value of 0 in the g-type offset field. This is
4241 unneccessary. If a type blob is unregistered then any value
4242 in its g-type field is simply invalid.
4244 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4246 * girepository/ginfo.c
4247 * girepository/gmetadata.c
4248 * girepository/gmetadata.h
4250 Change the metadata format to have a standard header
4251 for all the type blobs. Merge the SimpleTypeBlob
4252 and InterfaceTypeBlob into a union. A union of these
4253 two blobs existed previously but was not explicit
4254 in the metadata format.
4256 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4258 * tools/gidlcompilercontext.c
4259 * tools/gidlcompilercontext.h
4260 * tools/gidlcompilerentrynode.c
4261 * tools/gidlcompilerentrynode.h
4262 * tools/gidlcompilertypenode.c
4263 * tools/gidlcompilertypenode.h
4265 Add code to compile a tree of GIdlNodes to
4266 a 'C' struct representing the metadata.
4267 This is to aid cross-compiling. Previously
4268 the g-idl-compiler created a binary blob with
4269 data written in the byte order and alignment
4270 of the tool rather than the intended target.
4272 Cleaned up and improved by Johan and Robert :-)
4274 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4276 * girepository/ginvoke.c
4277 * girepository/girepository.h
4278 * girepository/gmetadata.c
4279 * girepository/gmetadata.h
4281 * tools/gidlparser.c
4282 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4283 to avoid confusion with the interface blob.
4286 * tools/gidlparser.c
4287 Remove magic numbers and replace with type-tag
4288 enumeration symbols.
4290 * girepository/gmetadata.c
4291 Add validate declaration.
4293 2008-03-10 Jürg Billeter <j@bitron.ch>
4295 * tools/gidlparser.c: (parse_type_internal):
4296 * tools/scannerlexer.l:
4297 * tools/scannerparser.y:
4298 Support C99 _Bool type in scanner.
4300 2008-03-10 Jürg Billeter <j@bitron.ch>
4302 * tests/parser/Foo-expected.gidl:
4303 * tests/parser/foo-object.h:
4304 * tests/parser/foo.c: (foo_enum_method):
4305 * tools/scanner.c: (g_igenerator_process_function_symbol):
4306 Don't skip functions that are defined in the namespace of a type
4307 that doesn't support methods, as for example enums.
4309 2008-03-10 Johan Dahlin <johan@gnome.org>
4311 * gidl.dtd: Remove, we're using relaxng for now
4313 * tests/parser/Foo-expected.gidl:
4314 * tests/parser/foo-object.h:
4315 * tests/parser/foo.c:
4316 Rename the enum/flags get_type functions to include the whole type.
4318 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4320 * tools/gidlwriter.c (enum_generate): added "type-name",
4321 "get-type" and "deprecated" missing arguments.
4322 * tests/parser/Foo-expected.gidl:
4323 * tests/parser/foo-object.h: test enum type, and no type.
4325 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4328 Consistent checks, add missing 'test'
4330 2008-03-05 Havoc Pennington <hp@redhat.com>
4332 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4333 does on Fedora 8. Make libffi a hard requirement, since it was in
4334 practice anyway (was not really conditional in the code or
4335 makefile, only in configure).
4337 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4339 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4340 reviewed by: Johan Dahlin <johan@gnome.org>
4342 * tests/Makefile.am:
4343 * tests/roundtrips.sh:
4344 Modify the roundtrips test so that they do not use the
4345 --raw option of the gidl compiler but instead compile a
4346 shared library to use with g_module.
4348 * tests/invoke/Makefile.am:
4349 * tests/invoke/invoke.c:
4350 Modify the invoke tests to build a shared library rather
4351 than use the --raw option.
4353 * tests/invoke/invoke-namespace-find.sh: Removed:
4354 Noone knows why this was here, so removed.
4356 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4358 * tools/scanner.c: (g_igenerator_process_function_symbol):
4359 Move g_idl_node_can_have_member test later, as it broke spotting
4360 get_type's for nodes that can't have members.
4362 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4365 * tools/gidlnode.c: (g_idl_node_can_have_member):
4366 Add g_idl_node_can_have_member.
4368 * tools/scanner.c: (g_igenerator_process_function_symbol):
4369 Use g_idl_node_can_have_member to test if we should add a function
4370 as a member of the type node.
4372 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4374 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4376 * tests/parser/Makefile.am:
4377 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4379 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4381 * tools/scanner.c: (main):
4382 Ignore -pthread when passed to g-idl-scanner.
4384 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4386 * tools/grealpath.h: Added:
4387 * tools/scanner.c: (main):
4388 * tools/scannerlexer.l:
4389 * tools/Makefile.am:
4390 Always use absolute paths with symbolic links resolved when
4391 comparing filenames.
4393 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4395 * gobject-introspection.pc.in:
4396 Provide variables for g-idl-parser, scanner and compiler in the
4399 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4402 * girepository/Makefile.am:
4403 * tools/Makefile.am:
4404 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4406 2008-02-10 Johan Dahlin <johan@gnome.org>
4408 * tests/parser/Foo-expected.gidl:
4409 * tests/parser/foo-object.h:
4410 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4411 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4414 2008-02-10 Johan Dahlin <johan@gnome.org>
4416 * tests/parser/Foo-expected.gidl:
4417 * tests/parser/foo-object.h:
4418 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4419 Add enum and flags test.
4421 2008-02-10 Johan Dahlin <johan@gnome.org>
4425 * girepository/Makefile.am:
4426 Make 'make distcheck' work again.
4428 2008-02-10 Johan Dahlin <johan@gnome.org>
4430 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4433 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4434 check, eg exclude it from BUILT_SOURCES.
4436 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4441 * girepository/Makefile.am:
4442 * m4/Makefile.am: Added:
4443 * m4/as-compiler-flag.m4: Added:
4444 * m4/gcov.m4: Added:
4445 * tools/Makefile.am:
4446 Add ability to generate a coverage report.
4447 Adds configure option --enable-gcov and make rule 'check-coverage'.
4449 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4453 * gidl/Makefile.am: Added:
4454 * girepository/Makefile.am: Added:
4455 * src/Makefile.am: Renamed to tools/Makefile.am:
4456 * src/compiler.c: Renamed to tools/compiler.c:
4457 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4458 * src/generate.c: Renamed to tools/generate.c:
4459 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4460 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4461 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4462 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4463 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4464 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4465 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4466 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4467 * src/ginfo.c: Renamed to girepository/ginfo.c:
4468 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4469 * src/girepository.c: Renamed to girepository/girepository.c:
4470 * src/girepository.h: Renamed to girepository/girepository.h:
4471 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4472 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4473 * src/scanner.c: Renamed to tools/scanner.c:
4474 * src/scanner.h: Renamed to tools/scanner.h:
4475 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4476 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4477 * tests/invoke/Makefile.am:
4478 Split src/ into girepository/ and tools/
4482 * girepository/Makefile.am:
4483 * tests/Makefile.am:
4484 * tests/invoke/Makefile.am:
4485 * tests/parser/Makefile.am:
4486 * tests/roundtrips.sh:
4487 * tools/Makefile.am:
4488 Make distcheck work.
4490 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4492 * tests/invoke/invoke.c: (main):
4493 * tests/invoke/testfns.c: (test6), (test7):
4494 * tests/invoke/testfns.xml:
4495 Add tests for invokation with a GList argument.
4496 Also tests caller-owns return values.
4498 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4501 Add some documentation for GICallableInfo
4503 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4506 Correct syntax errors in the DTD file.
4508 * relaxng/c-types.xml:
4509 * relaxng/g-types.xml:
4511 Add a RelaxNG specification for the GObject Introspection XML data.
4512 The Specification has validated all of the test files.
4514 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4516 * tests/roundtrips.sh:
4517 * tests/struct.test:
4518 Add roundtrip tests for structs.
4520 2008-01-11 Johan Dahlin <johan@gnome.org>
4522 * src/scanner.c (g_igenerator_process_function_symbol):
4523 Refactor out g_idle_node_add_member.
4524 (create_node_from_gtype, create_node_from_ctype):
4525 Use case instead of if...else
4526 (get_type_from_type_id):
4527 Rename to create_node_from_gtype
4528 (get_type_from_ctype):
4529 Rename to create_node_from_ctype
4531 Rename ginode -> node, gitype -> type, gifunc -> func.
4533 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4534 Two new functions, refactor out of scanner.c
4536 * src/scanner.c: (g_igenerator_process_function_symbol):
4537 * src/scannerlexer.l:
4538 Do not save the content of the deprecated variable, only
4541 2008-01-11 Johan Dahlin <johan@gnome.org>
4543 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4545 2008-01-11 Jürg Billeter <j@bitron.ch>
4547 * src/scannerlexer.l:
4548 Fix GTK-Doc parsing.
4550 2008-01-11 Jürg Billeter <j@bitron.ch>
4552 * src/scannerlexer.l:
4553 Fix GTK-Doc parsing.
4555 2008-01-11 Jürg Billeter <j@bitron.ch>
4557 * src/scanner.c: (lookup_symbol):
4558 Return unresolved name if we find unknown symbol.
4560 2008-01-11 Jürg Billeter <j@bitron.ch>
4562 * src/scanner.c: (g_igenerator_generate):
4563 Initialize GObject to fix scanning interface properties.
4565 * tests/parser/Foo-expected.gidl:
4566 * tests/parser/foo-object.h:
4567 * tests/parser/foo.c: (foo_interface_get_type):
4568 Test interfaces with GObject prerequisite.
4570 * tests/parser/Makefile.am:
4571 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4573 2007-12-27 Johan Dahlin <johan@gnome.org>
4575 * src/scannerlexer.l:
4576 Parse gtk-doc comments.
4578 * src/gidlwriter.c: (function_generate):
4579 Reorganize, avoid duplication and add support for
4580 writing deprecated functions.
4582 * src/scannerparser.y:
4584 Add new structure CDirective and functions to create/free them.
4586 * src/scanner.c: (g_igenerator_process_function_symbol),
4587 (g_igenerator_process_unregistered_struct_typedef),
4588 (g_igenerator_process_struct_typedef),
4589 (g_igenerator_process_union_typedef),
4590 (g_igenerator_process_enum_typedef),
4591 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4592 (g_igenerator_start_preprocessor):
4593 Parse @deprecated directive for functions.
4594 Remove some more C99isms.
4595 Send in -C to cpp to avoid stripping comments.
4597 * tests/parser/foo-object.h:
4598 * tests/parser/Foo-expected.gidl:
4599 Add deprecated directive
4601 2007-12-27 Johan Dahlin <johan@gnome.org>
4603 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4604 escape ' and " so it looks more like C.
4607 Unlink temporary file used.
4609 2007-12-27 Johan Dahlin <johan@gnome.org>
4611 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4612 (g_igenerator_start_preprocessor), (main):
4614 * src/scannerparser.y:
4615 Plug a couple of simple memory leaks.
4617 2007-12-27 Johan Dahlin <johan@gnome.org>
4619 * src/scanner.c: (g_igenerator_parse_macros),
4620 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4623 * src/scannerparser.y:
4624 * tests/parser/Makefile.am:
4626 Improve error reporting, return when the preprocessor fails.
4627 Add a verbose parameter, to aid debugging.
4628 Revert to using a temporary file to communicate between the
4629 preprocessor and the parser, because we need to wait for
4630 the exit code from the pre-processor before starting to parse.
4632 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4634 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4635 cparser.y to scannerparser.y
4637 2007-12-11 Johan Dahlin <johan@gnome.org>
4641 * src/scanner.c: (g_igenerator_new):
4643 Get rid of the global the_generator variable.
4645 2007-12-10 Johan Dahlin <johan@gnome.org>
4647 * src/scanner.c (main): Add an output option,
4648 add checks for required parameters
4651 set BUILD_SOURCES and CLEANFILES properly
4653 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4654 (g_writer_write_indent), (g_writer_write_unindent),
4655 (field_generate), (value_generate), (constant_generate),
4656 (property_generate), (function_generate), (vfunc_generate),
4657 (signal_generate), (interface_generate), (struct_generate),
4658 (union_generate), (boxed_generate), (enum_generate),
4659 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4661 * src/scanner.c: (g_igenerator_generate):
4663 * src/scannerwriter.c:
4665 Refactor scannerwriter to only be tied to a GIdlModule and move
4666 it (again!) to gidlwriter.c. Change the writer function to take
4669 2007-12-10 Johan Dahlin <johan@gnome.org>
4672 * src/scanner.c: (g_igenerator_generate):
4674 * src/scannerwriter.c: (g_igenerator_write_inline),
4675 (g_igenerator_write), (g_igenerator_write_indent),
4676 (g_igenerator_write_unindent), (field_generate), (value_generate),
4677 (constant_generate), (property_generate), (function_generate),
4678 (vfunc_generate), (signal_generate), (interface_generate),
4679 (struct_generate), (union_generate), (boxed_generate),
4680 (enum_generate), (node_generate), (module_generate),
4681 (g_scanner_write_file):
4683 Move the scanner gidl writing to a separate source file.
4685 2007-12-10 Johan Dahlin <johan@gnome.org>
4690 Move over all CType construction functions.
4692 * tests/parser/Makefile.am:
4693 Be verbose when printing parsing tests results.
4695 2007-12-10 Johan Dahlin <johan@gnome.org>
4697 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4698 preprocessor handling to here. Start cpp insteado of cc -E,
4699 always include -U__GNUC__, since it's specific to the preprocessor
4702 * tests/parser/Makefile.am (check-local): Silent diff and skip
4703 -U__GNUC__ which is always defined now
4705 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4707 reviewed by: <delete if not using a buddy>
4709 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4710 * tests/parser/Makefile.am:
4712 2007-12-09 Johan Dahlin <johan@gnome.org>
4715 Use GOption for command line options.
4716 (g_igenerator_new, main): Simplify constructor and they way
4717 parameters are passed into it.
4723 * src/gen-introspect.c:
4724 * src/gen-introspect.h:
4726 Rename gen-introspect.[ch] to scanner.[ch]
4728 2007-12-09 Johan Dahlin <johan@gnome.org>
4732 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4733 don't make the repository library and the other utilites link against
4736 * src/gen-introspect.c: (g_igenerator_create_object),
4737 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4738 (g_igenerator_create_enum), (g_igenerator_create_flags),
4739 (g_igenerator_process_module_symbol),
4740 (g_igenerator_process_module), (g_igenerator_generate), (main):
4741 * src/gen-introspect.h:
4742 Refactor g_igenerator_process_types into smaller pieces.
4744 * tests/parser/Makefile.am:
4745 Depend on the gen-introspect binary
4747 2007-12-09 Johan Dahlin <johan@gnome.org>
4749 * src/gen-introspect.c (g_igenerator_process_types):
4750 Break into smaller pieces, one for each generated node type.
4752 2007-12-08 Johan Dahlin <johan@gnome.org>
4754 * src/gen-introspect.c: (g_igenerator_process_types),
4755 (g_igenerator_add_module):
4756 * tests/parser/Foo-expected.gidl:
4757 * tests/parser/foo-object.h:
4758 * tests/parser/foo.c: (foo_subobject_class_init),
4759 (foo_subobject_init):
4761 Add a subobject test and make sure to register defined classes
4762 in the lookup symbol hash table.
4764 2007-12-08 Johan Dahlin <johan@gnome.org>
4768 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4769 (g_igenerator_process_types), (g_igenerator_add_module),
4770 (g_igenerator_add_include_idl), (main):
4771 * src/gen-introspect.h:
4772 * tests/parser/Makefile.am:
4773 * tests/parser/Foo-expected.gidl:
4775 Change the gen-introspect to generate namespaced module names,
4776 such as GLib.Object instead of GObject.
4777 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4778 add a --include-idl parameter to gen-introspect,
4779 and update the parser test.
4781 2007-12-08 Johan Dahlin <johan@gnome.org>
4783 * src/gen-introspect.c:
4784 Move main to the end of the file and attempt to make it valid
4787 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4788 we're not quite ready to generate metadata yet.
4793 Add a simple gen-introspect parser test
4795 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4797 reviewed by: Johan Dahlin <johan@gnome.org>
4800 * gobject-introspection.pc.in:
4802 * src/compiler.c: (format_output), (write_out_metadata), (main):
4803 * src/gen-introspect.c: (main):
4804 * src/gen-introspect.h:
4805 * src/generate.c: (write_callable_info), (write_repository),
4806 (load_metadata), (main):
4807 * src/gidlmodule.c: (g_idl_module_new),
4808 (g_idl_module_build_metadata):
4810 * src/gidlparser.c: (start_element_handler):
4811 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4812 (g_base_info_get_name), (g_base_info_get_namespace),
4813 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4814 (g_base_info_get_metadata), (g_function_info_get_symbol),
4815 (g_function_info_get_flags), (g_function_info_get_property),
4816 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4817 (g_callable_info_may_return_null),
4818 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4819 (g_callable_info_get_arg), (g_arg_info_get_direction),
4820 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4821 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4822 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4823 (g_type_info_get_tag), (g_type_info_get_param_type),
4824 (g_type_info_get_interface), (g_type_info_get_array_length),
4825 (g_type_info_is_zero_terminated),
4826 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4827 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4828 (g_value_info_get_value), (g_field_info_get_flags),
4829 (g_field_info_get_size), (g_field_info_get_offset),
4830 (g_registered_type_info_get_type_name),
4831 (g_registered_type_info_get_type_init),
4832 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4833 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4834 (find_method), (g_struct_info_find_method),
4835 (g_enum_info_get_n_values), (g_enum_info_get_value),
4836 (g_object_info_get_parent), (g_object_info_get_type_name),
4837 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4838 (g_object_info_get_interface), (g_object_info_get_n_fields),
4839 (g_object_info_get_field), (g_object_info_get_n_properties),
4840 (g_object_info_get_property), (g_object_info_get_n_methods),
4841 (g_object_info_get_method), (g_object_info_find_method),
4842 (g_object_info_get_n_signals), (g_object_info_get_signal),
4843 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4844 (g_object_info_get_n_constants), (g_object_info_get_constant),
4845 (g_interface_info_get_n_prerequisites),
4846 (g_interface_info_get_prerequisite),
4847 (g_interface_info_get_n_properties),
4848 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4849 (g_interface_info_get_method), (g_interface_info_find_method),
4850 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4851 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4852 (g_interface_info_get_n_constants),
4853 (g_interface_info_get_constant), (g_property_info_get_flags),
4854 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4855 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4856 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4857 (g_constant_info_get_value), (g_union_info_get_n_fields),
4858 (g_union_info_get_field), (g_union_info_get_n_methods),
4859 (g_union_info_get_method), (g_union_info_is_discriminated),
4860 (g_union_info_get_discriminator_offset),
4861 (g_union_info_get_discriminator):
4862 * src/ginvoke.c: (g_function_info_invoke):
4863 * src/girepository.c: (g_irepository_register),
4864 (g_irepository_unregister), (g_irepository_get_default),
4865 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4866 (g_irepository_get_info), (g_irepository_find_by_name),
4867 (g_irepository_get_shared_library),
4868 (g_irepository_build_search_path), (g_irepository_register_file),
4869 (g_irepository_error_quark):
4870 * src/girepository.h:
4871 * src/gmetadata.c: (g_metadata_get_dir_entry),
4872 (g_metadata_check_sanity), (validate_header),
4873 (validate_array_type_blob), (validate_iface_type_blob),
4874 (validate_param_type_blob), (validate_error_type_blob),
4875 (validate_type_blob), (validate_arg_blob),
4876 (validate_signature_blob), (validate_function_blob),
4877 (validate_callback_blob), (validate_constant_blob),
4878 (validate_value_blob), (validate_field_blob),
4879 (validate_property_blob), (validate_signal_blob),
4880 (validate_vfunc_blob), (validate_struct_blob),
4881 (validate_enum_blob), (validate_object_blob),
4882 (validate_interface_blob), (validate_errordomain_blob),
4883 (validate_union_blob), (validate_blob), (validate_directory),
4884 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4885 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4886 (g_metadata_new_from_mapped_file), (g_metadata_free),
4887 (g_metadata_set_module), (g_metadata_get_namespace):
4889 * tests/Makefile.am:
4890 * tests/invoke/Makefile.am:
4891 * tests/invoke/invoke-namespace-find.sh:
4892 * tests/invoke/invoke.c: (main):
4894 Add a namespace/shared library mapping. fixes #313268.
4896 2007-12-03 Johan Dahlin <johan@gnome.org>
4898 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4901 2007-11-30 Jürg Billeter <j@bitron.ch>
4907 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4908 (g_igenerator_write_inline), (g_igenerator_write),
4909 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4910 (field_generate), (value_generate), (constant_generate),
4911 (property_generate), (function_generate), (vfunc_generate),
4912 (signal_generate), (interface_generate), (struct_generate),
4913 (union_generate), (boxed_generate), (enum_generate),
4914 (node_generate), (module_generate), (get_type_from_type_id),
4915 (str_replace), (g_igenerator_process_properties),
4916 (g_igenerator_process_signals), (g_igenerator_process_types),
4917 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4918 (g_igenerator_process_unregistered_struct_typedef),
4919 (g_igenerator_process_struct_typedef),
4920 (g_igenerator_process_union_typedef),
4921 (g_igenerator_process_enum_typedef),
4922 (g_igenerator_process_function_typedef),
4923 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4924 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4925 (g_igenerator_generate), (main), (csymbol_new),
4926 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4927 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4928 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4929 (eat_hspace), (eat_line), (read_identifier),
4930 (g_igenerator_parse_macros):
4931 * src/gen-introspect.h:
4933 Import gen-introspect to generate introspection information by
4936 2007-11-30 Jürg Billeter <j@bitron.ch>
4938 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4940 2007-11-30 Jürg Billeter <j@bitron.ch>
4942 * src/gidlparser.c: (end_element_handler): Don't leave requires
4945 2007-11-29 Johan Dahlin <johan@gnome.org>
4947 * src/gidlparser.c (parse_type_internal): Add char,
4948 gchar and guchar to the builtin types.
4950 2007-11-26 Johan Dahlin <johan@gnome.org>
4952 * src/ginfo.c: (g_object_info_get_type_name),
4953 (g_object_info_get_type_init):
4954 * src/girepository.c: (g_irepository_is_registered):
4955 * src/girepository.h:
4957 Add g_object_info_get_type_name, g_object_info_get_type_init and
4958 g_irepository_is_registered.
4960 2006-08-14 Jürg Billeter <j@bitron.ch>
4962 * src/gidlparser.c: (end_element_handler): Don't leave
4963 namespace and implements states too early.
4966 2007-11-26 Johan Dahlin <johan@gnome.org>
4968 * src/gmetadata.c (validate_struct_blob):
4969 pass blob_type to validate_function_blob instead of
4970 hard-coding BLOB_TYPE_STRUCT.
4972 Patch by Torsten Schoenfeld, fixes #314190
4974 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
4976 * src/compiler.c, src/generate.c, src/gidlnode.c,
4977 src/gidlparser.c, src/ginfo.c, src/girepository.c,
4978 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
4979 warnings about return values, signedness mismatches, unused
4980 variables, and unhandles enum values in switch statements.
4982 * tests/invoke/Makefile.am: Don't install the invoke test program.
4983 Add -I ../../src to the cflags used for the test functions files.
4985 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4987 * src/girepository.h: Export g_invoke_error_quark.
4989 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4991 * src/ginvoke.c: Remove the fallback implementation of
4992 g_function_info_invoke since we now formally depend on libffi.
4994 2005-07-25 Matthias Clasen <mclasen@redhat.com>
4996 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
4997 Remove these files from cvs, as they are now generated.
4999 * src/gmetadata.c (validate_iface_type_blob): Don't
5000 complain if blob->pointer is not set, since that
5001 happens for enum and flag types. (#308935, Gustavo
5004 * Commit an autoconf-conversion patch by
5005 Gustavo Carneiro (#308708)
5007 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5009 * src/compiler.c (main): Use it here to validate
5010 the generated metadata.
5012 * src/gmetadata.[hc]: Add code to validate a
5015 * metadata-format.txt: Updates
5017 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5019 * tests/*: Add struct offsets to field and vfunc
5022 * src/generate.c (write_vfunc_info): Write offset
5023 information for vfuncs.
5025 * src/gidlnode.c (g_idl_node_build_metadata): Write
5026 the struct offsets into the metadata.
5028 * src/gidlparser.c: Parse the offset attributes of
5029 field and vfunc elements.
5031 * src/gidlnode.h: Add offset members to field and
5034 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5038 * gidl.dtd: Updates.
5040 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5041 file, creates, compiles and runs a C file, and folds the
5042 resulting struct offsets back into the .gidl file.
5044 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5046 * src/gidlparser.c (start_field): Make fields in objects
5049 * src/gidlmodule.c: Include string.h
5054 * metadata-format.txt: Cleanup basic types.
5055 * src/*: Adapt to the changes.
5056 * tests/*: Adapt to the changes.
5057 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5059 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5060 size for enum blobs.
5061 (g_idl_node_get_full_size): Report the correct size for
5064 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5065 error checking for blob sizes.
5067 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5069 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5070 interface types for which is_pointer is FALSE, e.g. enums.
5072 * src/gidlnode.c (g_idl_node_get_full_size)
5073 * src/gidlparser.c (parse_type_internal):
5074 * src/generate.c (write_type_info): Support unspecialized
5075 lists, hashtables and errors. Also emit a '*' after these.
5079 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5083 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5085 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5087 * src/*.c: Change the directory to be addressed by
5088 1-based indexes, and use an index of zero to mean
5091 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5093 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5095 * tests/union.test: Add a union test.
5097 * src/generate.c: Handle unions.
5099 * src/girepository.h:
5100 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5102 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5104 * src/gidlparser.c (start_union): Parse <union> elements.
5106 * src/gidlnode.h: Add a GIdlNodeUnion.
5108 * gidl.dtd: Add a <union> element.
5110 * src/gmetadata.c (g_metadata_check_sanity): Check
5113 * src/gmetadata.h: Add union_blob_size to Header,
5116 * metadata-format.txt: Add a UnionBlob.
5118 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5120 * tests/*: Update testcases.
5122 * src/generate.c (write_callable_info): Don't forget to
5123 write transfer and null-ok attributes for return types
5126 * src/girepository.h:
5127 * src/ginfo.c (g_callable_info_may_return_null):
5128 New function to find out if a function may return NULL.
5130 * src/compiler.c (format_output): Make the generated
5133 * README: Point to a recent libffi snapshot.
5135 * tests/invoke/*: Some invoke tests.
5137 * src/Makefile: Add ginvoke.c and the necessary
5140 * src/girepository.h (g_function_info_invoke): Add
5143 * src/ginvoke.c (g_function_info_invoke): Initial
5144 implementation of invoke functionality based on libffi.
5146 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5147 strings and types hash tables in the right order when
5149 (find_entry_node): Free the name parts.
5151 2005-05-12 Johan Dahlin <johan@gnome.org>
5153 * src/generate.c: Generate consistent end tags.
5157 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5161 * src/gidlparser.c (start_function): Actually add
5162 methods to objects. (Steven Walter)
5164 * src/girepository.h:
5165 * src/ginfo.c: Rename Transfer and Direction to
5166 GITransfer and GIDirection. (Torsten Schoenfeld)
5168 * tests/*: Make tests work with the changes in name
5171 * src/gidlnode.c (find_entry_node): Parse qualified
5172 names and generate xref nodes for them if needed. Don't
5173 require all modules to be loaded any more.
5175 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5178 * src/ginfo.c (g_object_info_get_parent): Return NULL
5179 if blob->parent is 0. Still need to make sure index
5182 * src/generate.c: Generate qualified names when
5183 referring to non-local types. Emit transfer attribute
5186 * src/compiler.c (format_output): Put the function
5187 attributes where gcc accepts them.
5189 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5191 * src/compiler.c (main): Add a --verbose cmdline option
5192 and only log messages if it is specified.
5195 * src/gidlnode.c (init_stats, dump_stats): Collect some
5196 statistics on string and type sharing.
5198 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5199 g_message() instead of fprintf().
5201 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5202 (g_idl_node_get_size): Implement for structs.
5203 (g_idl_node_get_full_size): Handle parent being NULL.
5204 (serialize_type): Handle lookup failures more gracefully.
5206 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5208 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5209 size calculation for 2-parameter types and for objects.
5211 * src/compiler.c: Add a cmdline option for debug output
5212 and install a log handler to implement it.
5213 * src/gidlnode.c: Add some debug spew.
5217 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5218 forget to count the module name when calculating the
5219 required size for the metadata.
5222 * src/gidlparser.c: Fix compiler warnings.
5224 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5226 * src/compiler.c (main): Free the option context.
5228 * gidl.dtd: Clean up handling of names. All elements
5229 have a "name", only the elements corresponding to
5230 actual callable functions (function, method, constructor),
5231 have an additional "symbol" attribute holding the
5232 dlsym()-able function name.
5234 * src/generate.c: Adapt to generate xml matching the
5238 * src/gidlnode.c: Adapt to parse the new dtd.
5240 * tests/*.test: Adjust to the new dtd.
5242 * metadata-format.txt:
5243 * src/gmetadata.h: Remove the short_name field
5245 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5246 * src/girepository.h:
5247 * src/ginfo.c (g_value_info_get_short_name): Removed
5249 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5251 * gidl.dtd: Allow constructors for boxed types,
5252 patch by Jonathan Blandford.
5255 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5257 * --- Initial import ---