1 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
3 Bug 560241 - Out-arguments should not be marked as being pointers
6 * girepository/girparser.c: Improved logic for out arguments.
8 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
10 Bug 559601 - Pointers in structs/unions unduly treated as arrays
12 * giscanner/transformer.py: Differentiate type creation logic
13 between parameters and struct components.
15 2008-11-15 Colin Walters <walters@verbum.org>
17 * giscanner/dumper.py: Check return code from pkg-config
20 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
22 * tests/everything/everything.c (test_array_int_in),
23 (test_array_gtype_in):
24 * tests/everything/everything.h:
25 Rename the int/gtype array tests. Make the return value
26 useful, an aggregation of the array input values.
28 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
30 * tests/everything/Makefile.am:
31 * tests/everything/everything.c:
32 * tests/everything/everything.h:
33 * tests/everything/gitesttypes.c:
34 * tests/everything/gitesttypes.h:
35 Rename gitesttypes.[ch] to everything.[ch]
37 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
39 Bug 560708 – Don't treat arrays that have a length specified as
40 zero-terminated by default
42 * giscanner/transformer.py: Default to non zero terminated for
44 * tests/*: Update, add test for zero vs not.
46 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
48 Bug 557788 - Return types for constructors in generated typelib bogus
50 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
51 obviously broken in the face of duplicate names in different
53 * tests/scanner/*expected.gir: Fix up.
55 2008-11-13 Owen Taylor <otaylor@redhat.com>
57 * girepository/girffi.c: Fix "Unexpected time for time_t"
60 2008-11-13 Colin Walters <walters@verbum.org>
62 Bug 558436 - avoid having scanner load app code
64 * giscanner/cgobject.py: Delete; we no longer load shared
66 * giscanner/dumper.py: Support for linking a library to
67 a stub binary for introspection.
68 * giscanner/glibtransformer.py: Rewrite to use gdump XML
69 from invocation of child binary.
70 * giscanner/transformer.py: Fix up to use fully qualified
71 name in parse tree. Make parse_ctype public so we can use
72 it inside glibtransformer.
73 * tests/scanner/barapp.c: New test, using --program arg
75 * tests/*: Update to use common.mk for invoking scanner.
76 * tools/g-ir-scanner: Add options --program, --program-arg,
78 * docs/g-ir-scanner.1: Update.
80 2008-11-13 Colin Walters <walters@verbum.org>
82 * configure.ac: Depend on Gio, we use it in gdump.c.
83 * girepository/gdump.c: Code to dump GType data to XML.
84 * girepository/girepository.c: Add option group for dumping.
85 * girepository/girepository.h: Define API for the above.
87 2008-11-13 Colin Walters <walters@verbum.org>
89 * common.mk: Add a file to include with Makefile fragments
90 useful for scanner invocation.
92 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
94 * tests/everything/gitesttypes.c (test_filename_return): Return
95 strings in filename encoding.
97 2008-11-13 Owen Taylor <otaylor@redhat.com>
99 Bug 560253 – Add structure and boxed types to Everything test module
101 * tests/everything/gitesttypes.[ch]: Add examples of:
103 Plain old data structs
104 Plain old data structs with nested fields
106 Plain old data boxed with nested fields
107 More complicated boxed types with internal state
109 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
111 * tests/everything/gitesttypes.c (test_gtype_in):
112 * tests/everything/gitesttypes.h:
113 Add a test of GType arrays, a la gtk_list_store_set_columns.
115 2008-11-12 Owen Taylor <otaylor@redhat.com>
117 Bug 560419 – Cache includes when parsing
119 Keep track of all modules parsed within a GIrParser, and when a
120 module is referenced a second time, use the existing parsed copy
121 instead of reparsing.
123 2008-11-12 Owen Taylor <otaylor@redhat.com>
125 Fix management of ParseContext.includes_modules (#560419)
127 * girepository/girparser.c: Fix some trivial bugs in managing the
128 list of include modules. (Add to module's list twice, not
129 initialized to NULL, not freed.)
131 2008-11-12 Owen Taylor <otaylor@redhat.com>
133 Keep aliases and disguised_structures local to each module (#560419)
135 * girepository/girmodule.[ch]: When parsing, keep keep a separate
136 hash tables of aliases and 'disguised' flags for each module, and
137 store that on the module.
139 After parsing an include merge the aliases/disguised flags to the
142 * girepository/girparser.c: Remove 'prefix_aliases' flag and
143 always prefix aliases/disguised structure types when parsing; this
144 simplifies the code considerably.
146 2008-11-12 Owen Taylor <otaylor@redhat.com>
148 Fix mismatches between .gir name and 'name' attribute (#560419)
150 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
151 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
152 where the 'name' element of <namespace/> didn't match the filename of the
153 gir, an assumption that the compiler has always expected and now enforces.
155 2008-11-12 Owen Taylor <otaylor@redhat.com>
157 Only allow one <namespace/> element per <repository/> (#560419)
159 * girepository/girparser.c: The logic in girparser.c didn't work
160 very well if there were multiple <namespace/> nodes within a
161 single <repository/> (context->namespace was always the overall
162 filename and not the the name specified in the <namespace/>
163 element for one thing; this would cause aliases to be mis-prefixed
164 in include modules.) Also check that the "name" in the
165 <namespace/> node matches the filename.
167 2008-11-12 Owen Taylor <otaylor@redhat.com>
169 Add a GirParser object to hold the state of a compilation
171 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
172 GirParser object to hold state that is global across a
173 compilation. Currently just holds the include path, but will
174 eventually also keep a cached list of parsed modules.
176 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
178 * girepository/girepository.c (find_namespace_latest): Fix
181 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
183 * configure.ac: use 'introspection' component for bugs
185 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
187 * tests/everything/gitesttypes.c (test_filename_return):
188 * tests/everything/gitesttypes.h:
189 Add a filename return test.
191 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
193 * tests/offsets/Makefile.am (gitestoffsets.c): fix
194 gen-gitestoffsets invocation with builddir != srcdir
196 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
198 * girepository/girepository.c:
199 Change the element type from utf8 to filename
200 * girepository/girnode.c (g_ir_node_build_typelib):
201 Special case filename equally to utf8 here.
203 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
206 Remove unused variables, add a dependency of girepository.ch, so when
207 they change we rebuild the gir automatically.
209 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
211 * girepository/girepository.c (g_irepository_get_search_path):
212 * girepository/girepository.h:
213 Add a g_irepository_get_search_path, so we can access the search
216 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
218 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
220 * girepository/girparser.c: avoid freeing an uninitialized pointer
222 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
225 * giscanner/glibtransformer.py:
226 * tools/g-ir-scanner:
227 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
228 so we can just pass in --library=foo/bar/baz.la and the scanner
229 does the right thing.
230 Don't warn for _get_type() functions if they don't take any
233 2008-11-11 Owen Taylor <otaylor@redhat.com>
235 Bug 560404 – Prefix types when resolving aliases in included modules
237 * girepository/girparser.c: When resolving aliases in an included
238 module, prefix types before looking them up.
240 2008-11-11 Owen Taylor <otaylor@redhat.com>
242 Compute field offsets and overall size for object structures
244 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
245 field of type object in structure"
247 Do basic computation of field offsets for objects and interfaces;
248 this doesn't attempt to address all of the "mess" for virtual
249 functions described in Bug 560281.
251 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
253 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
255 Based on patch by Johan Bilien.
257 * giscanner/transformer.py (_create_member, _create_parameter):
258 Resolve types here as well.
259 (_resolve_type_name_1): Try resolving using 'ctype' first since
260 it's least ambiguous. Fixes struct member type resolution with
261 similarly named types, e.g. Gdk.PangoRendererClass and
263 * tests/scanner/foo*: Add test.
265 2008-11-11 Owen Taylor <otaylor@redhat.com>
267 * girepository/girparser.c: Search provided include dirs before
268 the default directories.
270 2008-11-11 Owen Taylor <otaylor@redhat.com>
272 * girepository/giroffsets.c: Include fully-qualified names in
275 2008-11-11 Owen Taylor <otaylor@redhat.com>
277 * girepository/giroffsets.c: Fail gracefully with an informative
278 error message when recursion is encountered when computing a
281 2008-11-11 Owen Taylor <otaylor@redhat.com>
283 * girepository/girparser.c: Remove an unused variable.
285 2008-11-10 Owen Taylor <otaylor@redhat.com>
287 Add tests for field offset computations
289 * tests/offsets/offsets.h: Header file with structure definitions to test
291 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
292 field offsets for the structures in offsets.h two ways: using
293 the information from a generated typelib, and as computed by the
296 We diff these two versions to test that everything is OK.
298 2008-11-10 Owen Taylor <otaylor@redhat.com>
300 Remove field offsets from g-ir-generate output and test inputs
302 Field offsets are a) architecture dependent so they shouldn't be part
303 of the architecture-independent gir format which is installed in
304 datadir. b) Are architecture-dependent so they shouldn't be in test
307 * girepository/girparser.c: Don't parse offset for fields
308 * tools/generate.c: Don't parse offset for fields
309 * tests/*.gir test/scanner/*.tgir: Remove offsets
311 (Virtual function and discriminator offsets are not removed, as they
312 aren't fully hooked up to the field-offset computation machinery yet.)
314 2008-11-10 Owen Taylor <otaylor@redhat.com>
316 Bug 560252 - Compute field offsets before writing typelib
318 * girepository/girnode.h: Store the total size and alignment for
319 GIrNodeStruct/Boxed/Union.
321 * girepository/giroffset.c: New file implementing computation of
322 structure field offsets.
324 * girepository/girnode.c: Compute structure field offsets before
325 writing types into the typelib.
327 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
328 means "unknown". Also fix description of the discriminator_offset
331 2008-11-10 Owen Taylor <otaylor@redhat.com>
333 Bug 560250 - Fully parse included modules
335 For some things, like computing structure offsets to put into the typelib
336 we need more than just the aliases from included modules. Do a completel
337 parse of included modules and store in module->included_modules.
339 Also add g_ir_find_node() to find node information from within the
340 active set of modules and their includes.
342 2008-11-10 Owen Taylor <otaylor@redhat.com>
344 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
346 Extract a function to convert GITypeTag to ffi_type from the internals
347 of ginvoke.c. This will be useful in figure out structure alignment.
349 Also fix handling of gsize and time_t to be portable. (Add a check
350 to configure.ac to figure out the width of time_t.)
352 2008-11-10 Owen Taylor <otaylor@redhat.com>
354 Bug 560248 – "disguised structures"
356 Certain types like GIConv and GdkAtom are pointers internally but don't
357 look like pointers when referenced. They have the form.
359 typedef struct _X *X;
361 Parse these as structures/records but mark them in the gir with a 'disguised'
362 attribute so that we know that they need special handling.
364 In the typelib treat them like any other structure.
366 2008-11-09 Jürg Billeter <j@bitron.ch>
369 * giscanner/girwriter.py:
371 Write throws attribute for virtual functions, fixes bug 559703
373 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
375 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
376 up some confusion about the second argument to find_module, it's
377 actually the packages __path__ attribute which we can safely ignore
379 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
381 2008-11-07 Owen Taylor <otaylor@redhat.com>
383 Bug 559737 – Deal with continuations in macros
385 * giscanner/giscannerlexer.l: Treat continuation lines the same
386 as regular newlines. This makes the scanner not complain about
387 #define foo(x) \ <stuff> inside a C file. There's no attempt
388 however to handle parsing macro definitions split across lines.
390 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
392 * giscanner/cachestore.py:
393 Handle broken cache entries, write only filesystems and
394 running out of diskspace.
396 2008-11-07 Owen Taylor <otaylor@redhat.com>
398 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
399 Set current_filename before lexing the file so error messages
400 are reported in the right file.
402 2008-11-06 Colin Walters <walters@verbum.org>
404 * tests/everything/*: Add some tests for strv.
406 2008-11-05 Colin Walters <walters@verbum.org>
408 * girepository/ginvoke.c (g_function_info_invoke): Don't use
409 nested scope local variable for error which may go away after
410 conditional is complete.
412 2008-11-05 Colin Walters <walters@verbum.org>
414 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
415 manipulate hackily; just use GString. This avoids an
416 uninitialized memory read pointed out by Havoc.
418 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
420 * giscanner/__init__.py:
422 * giscanner/cachestore.py:
423 * giscanner/cgobject.py:
424 * giscanner/girparser.py:
425 * giscanner/girwriter.py:
426 * giscanner/giscannermodule.c:
427 * giscanner/glibast.py:
428 * giscanner/glibtransformer.py:
429 * giscanner/libtoolimporter.py:
430 * giscanner/minixpath.py:
431 * giscanner/odict.py:
432 * giscanner/sourcescanner.c:
433 * giscanner/sourcescanner.h:
434 * giscanner/sourcescanner.py:
435 * giscanner/transformer.py:
436 * giscanner/utils.py:
437 * giscanner/xmlwriter.py:
439 Relicense the giscanner library under LGPLv2+.
440 This has been approved by all contributors.
442 2008-11-01 Owen Taylor <otaylor@redhat.com>
444 Bug 558848 giparser.py: shared library should be optional
446 When parsing a .gir, allow the shared-library attribute
447 of <namespace/> to be missing: this corresponds to the handling
448 in libgirepository and elsewhere.
450 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
452 Bug 557898 – Fails to build on OSX 10.4
454 * configure.ac: Check for $shrext_cmds that should be implicitly
455 available if you're using libtool >= 2.0. If undefined, call
456 libtool --config explicitly to get its value.
457 * girepository/gtypelib.c: Remove special case for (non-)Darwin
460 2008-10-31 Colin Walters <walters@verbum.org>
462 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
464 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
466 * configure.ac: Post release version bump
469 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
473 * docs/release-checklist.txt:
476 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
478 * Makefile.am: add an upload-release target
479 * docs/release-checklist.txt:
480 Release process documentation
482 2008-10-31 Colin Walters <walters@verbum.org>
484 Bug 558109 – _g_typelib_init fails to find shared libraries
486 * transformer/glibtransformer.py: Use ctypes' find_library
487 on passed libraries and write that for the shared-library
488 entry. We want to avoid depending on -devel packages.
490 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
492 * docs/g-ir-scanner.1:
493 Document the renaming options.
495 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
497 * giscanner/Makefile.am:
498 * tests/invoke/Makefile.am:
499 * tests/repository/Makefile.am: List in-tree libraries first in
500 LDADD / LIBADD. If installed library is listed first, the
501 resulting binary will prefer installed version to one in .libs,
502 possibly making 'make check' behave strangely.
504 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
506 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
507 gir-repository from choking with gdk/quartz
509 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
511 * giscanner/giscannermodule.c (calc_attrs_length),
512 (pygi_collect_attributes):
513 * giscanner/xmlwriter.py:
514 Write a C version of the xml namespace formatter.
515 Saves 15% of the time it takes to create a gtk gir.
517 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
519 * giscanner/xmlwriter.py: Abstract attribute formatting
520 to a function external to the XMLWriter class.
522 * giscanner/scannerlexer.l:
523 Parse and discard __typeof and __attribute.
525 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
527 * giscanner/girparser.py:
528 Remove arguments from the constructor, move them to
529 separate accessors. Add a new parse_tree method
530 which takes an element tree instance.
531 * tools/g-ir-scanner:
532 Update callsite for this
534 * giscanner/Makefile.am:
535 * giscanner/cachestore.py:
536 * giscanner/transformer.py:
537 Cache the include parsing. Saves ~25% time when
538 creating vte (which includes everything up to gtk+).
540 2008-10-30 Colin Walters <walters@verbum.org>
542 * giscanner/transformer.py: Don't reparse includes
543 we've already processed.
545 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
547 * giscanner/girparser.py:
548 * giscanner/transformer.py:
549 Avoid parsing parameters, types etc when parsing
550 includes. Should speed up include parsing a bit.
552 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
554 * giscanner/girparser.py:
555 Avoid big if/else and use a dispatch table like
558 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
560 * giscanner/transformer.py:
561 Clean up include parsing and registration.
563 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
565 * giscanner/transformer.py:
568 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
570 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
573 construct PYTHONPATH just once
575 * tests/everything/Makefile.am:
576 * tests/scanner/Makefile.am:
577 add $(top_srcdir) to PYTHONPATH to
578 handle builddir != srcdir
580 * giscanner/libtoolimporter.py:
581 * giscanner/sourcescanner.py:
582 Make the libtoolimporter work when distchecking too.
584 Mostly based on patch by Tommi Komulainen
586 2008-10-29 Owen Taylor <otaylor@redhat.com>
588 * giscanner/glibtransformer.py: If a filename of an existing
589 file is passed to --library, hunt for it directly, rather than
590 searching for a corresponding library.
592 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
594 * giscanner/libtoolimporter.py:
595 * giscanner/sourcescanner.py:
596 Clean up the libtool importer a bit. Add a context so we
597 can use it through a with statement.
598 Don't just look in the current directory, look in the whole
601 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
603 Bug 558065 – gitesttypes should be installed
607 * tests/types/Makefile.am -> tests/everything/Makefile.am
608 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
609 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
610 move tests/types to tests/everything
612 * tests/everything/Makefile.am: build normal shared library
613 libgirepository-everything.so.1.0.0 and corresponding typelib
614 Everything-1.0.typelib
616 * tests/everything/Makefile.am: explicitly link libtool
617 versioning with typelib versioning with variables
619 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
621 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
623 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
625 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
628 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
630 Bug 558068 – when invoking a method, offset the in arguments by one,
633 * tests/invoke/invoke.c, tests/invoke/testfns.c,
634 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
635 * girepository/ginvoke.c: do not offset the index of given out
636 arguments by one for methods, "this" is provided as in argument only.
638 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
640 * gir/gio-2.0.c: add annotation for g_file_delete
642 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
644 Bug 558062 – provide and use paths in the .pc file
646 * gobject-introspection-1.0.pc.in: provide typelibdir variable
647 for where .typelibs should be installed (callers shouldn't need
648 to construct paths from bits and pieces)
650 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
652 Bug 557791 – g_irepository_require() could return a GTypelib *
654 * girepository/girepository.c: Return GTypelib; this is useful
655 for low level manipulation.
657 2008-10-25 Colin Walters <walters@verbum.org>
659 Bug 557788 – Return types for constructors in generated typelib bogus
661 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
662 rely on end pass resolution.
664 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
666 Bug 557786 - support fixed size arrays
668 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
669 * giscanner/scannerparser.y: Retain fixed array size.
670 * giscanner/ast.py: Add to note.
671 * giscanner/girwriter.py: Write to gir.
672 * girepository/girnode.c: Write it to typelib.
673 * tools/generate.c: Generate.
674 * tests/*: Add tests.
676 2008-10-25 Colin Walters <walters@verbum.org>
678 Bug 557076 - move typelibs to $libdir
680 * configure.ac: Steal some configury bits from dbus to expand
682 * gir/Makefile.am: Move to libdir.
683 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
684 instead just look at one hardcoded path in libdir.
685 * acinclude.m4: Bits from dbus.
687 2008-10-24 Johan Dahlin <johan@gnome.org>
689 * girepository/girnode.c (g_ir_node_check_unhandled_members):
690 Be quiet, do not warn about unhandled members.
692 2008-10-24 Johan Dahlin <johan@gnome.org>
694 * girepository/gtypelib.c:
695 Only use SHLIB_SUFFIX on darwin, otherwise use
696 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
698 2008-10-24 Lucas Rocha <lucasr@gnome.org>
700 Bug 557623 - Constructors shouldn't be flagged as methods.
702 * girepository/ginfo.c (g_function_info_get_flags): ditto.
704 2008-10-24 Johan Dahlin <johan@gnome.org>
706 * giscanner/scannerparser.y:
707 Check against division by zero for the modula operator.
708 This fixes header parsing of OSX system headers included
711 2008-10-24 Johan Dahlin <johan@gnome.org>
715 Add a CONTRIBUTORS file and dist it.
717 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
719 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
721 * girepository/girparser.c (parse_param_transfer):
722 * giscanner/transformer.py (_create_parameter, _create_return):
723 * giscanner/girwriter.py (_write_return, _write_parameter):
724 * tools/generate.c (write_callable_info): always write and
725 require "transfer-ownership" for return-values and parameters
728 * tests/invoke/testfns-1.0.gir:
730 * tests/scanner/DrawableAdditions.xml:
731 * tests/scanner/GtkFrob-1.0-expected.tgir:
732 * tests/scanner/annotation-1.0-expected.tgir:
733 * tests/scanner/drawable-1.0-expected.tgir:
734 * tests/scanner/drawable-injected-1.0-expected.gir:
735 * tests/scanner/drawable-injected-1.0-expected.tgir:
736 * tests/scanner/foo-1.0-expected.tgir: Updated
738 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
740 * giscanner/cgobject.py: build fundamental types same way as glib
742 * giscanner/glibtransformer.py (_type_from_gtype): record GType
743 when constructing the Type from it
745 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
746 the parameter is a GObject from its GType, if available.
748 * giscanner/glibtransformer.py (_adjust_transfer):
749 * tests/scanner/foo-1.0-expected.gir:
750 * tests/scanner/foo-1.0-expected.tgir: deduce
751 transfer-ownership from GTypes
753 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
755 * giscanner/transformer.py (_create_parameter):
756 * tests/scanner/foo-1.0-expected.gir: make varargs
757 transfer-ownership="none"
759 2008-10-23 Colin Walters <walters@verbum.org>
761 Bug 556739 - transfer ownership
763 * giscanner/ast.py: Refactor Parameter/Return to share
764 common attributes. Add transfer_inferred attribute
765 which says whether or not we made a guess.
766 * giscanner/transformer.py: Add much more extensive
767 heuristics around parameter and return transfer.
768 * giscanner/glibtransformer.py: Adjust to inspect
772 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
774 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
776 * tests/scanner/Makefile.am:
777 * tests/scanner/annotation-1.0-expected.tgir:
778 * tests/scanner/drawable-1.0-expected.tgir:
779 * tests/scanner/drawable-injected-1.0-expected.tgir:
780 * tests/scanner/foo-1.0-expected.tgir:
781 * tests/scanner/GtkFrob-1.0-expected.tgir:
782 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
783 annotations survive the roundtrip via typelib
785 The expectations are as currently produced by g-ir-generate,
786 comparison with the .gir files shows there are differences.
788 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
790 Bug 557468 – Support for GI_TYPELIB_PATH
792 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
793 provided paths to the global search path.
795 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
797 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
799 * tests/scanner/drawable-1.0-expected.tgir:
800 * tests/scanner/drawable-injected-1.0-expected.tgir:
801 * tests/scanner/foo-1.0-expected.tgir:
802 * tools/generate.c (write_object_info): write 'abstract'
803 attribute for classes
805 2008-10-22 Lucas Rocha <lucasr@gnome.org>
807 * girepository/girmodule.c, girepository/gtypelib.c,
808 girepository/girparser.[ch]: fix some build warnings.
810 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
812 Bug 557405 – Use 'allow-none' consistently
814 * docs/typelib-format.txt:
815 * girepository/ginfo.c (g_arg_info_may_be_null):
816 * girepository/girnode.c (g_ir_node_build_typelib):
817 * girepository/girnode.h (struct _GIrNodeParam):
818 * girepository/girparser.c (start_parameter):
819 * girepository/girwriter.c (function_generate):
820 * girepository/gtypelib.h (ArgBlob):
822 * tests/function.gir:
823 * tools/generate.c (write_callable_info): Use 'allow-none'
824 consistently throughout
826 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
828 Bug 557092 – Callback annotations not used
830 * giscanner/transformer.py (_create_callback): use annotations
832 * tests/scanner/annotation.h
833 * tests/scanner/annotation-1.0-expected.gir: add tests
835 2008-10-21 Colin Walters <walters@verbum.org>
837 * giscanner/scannerlexer.l: Don't require trailing whitespace after
838 uncommented parameters.
841 2008-10-21 Colin Walters <walters@verbum.org>
843 * girepository/girepository.c: Ensure that when doing an unversioned
844 require, we prefer items earlier in the search path to later ones.
846 2008-10-21 Owen Taylor <otaylor@redhat.com>
848 * giscanner/transformer.py: For string parameters allow transfer annotation
849 to override the standard automatic guessing based on 'const'.
851 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
853 Bug 557241 – "throws" flag for functions
855 * tests/scanner/drawable-1.0-expected.gir,
856 tests/scanner/drawable-injected-1.0-expected.gir,
857 tests/scanner/drawable.[ch]: add simple test for throwing
858 function (has GError ** as last argument)
860 * giscanner/ast.py: add a 'throws' flag to Function
861 * giscanner/glibtransformer.py: if a function's last paramerter is
862 a GError, set the 'throws' flag and remove that parameter
863 * giscanner/girwriter.py: write out the 'throws' attribute
864 * giscanner/girparser.py: support parsing the 'throws' attribute
866 * tests/repository/gitestthrows.c: add a simple test to check the
867 throws flag in a typelib and invoke the function
869 * girepository/ginfo.c, girepository/girnode.[ch],
870 girepository/girnode.h, girepository/girparser.c,
871 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
873 * girepository/ginvoke.c: if a function throws, add a GError as last
874 arguments, and propagate the error to the invoker.
876 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
878 * giscanner/transformer.py (_create_parameters): Warn if we see
879 annotations for unknown parameters. If .h and .c files name
880 parameters differently, the annotations may be lost.
882 2008-10-21 Johan Dahlin <johan@gnome.org>
884 Bug 556358 - don't use libtool internals
886 * giscanner/Makefile.am:
887 * giscanner/libtoolimporter.py:
888 * giscanner/sourcescanner.py:
889 * giscanner/utils.py:
890 Add a python meta importer and remove a libtool symlink hack.
892 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
894 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
895 and --add-include-path appropriately when invoking the scanner.
896 * tests/types/Makefile.am (%typelib): Likewise.
898 2008-10-20 Colin Walters <walters@verbum.org>
900 Bug 556777 - validate properties
902 * giscanner/transformer.py: Add option to throw on unknown types.
903 * giscanner/glibtransformer.py: Use it on properties.
904 * tests/*: Add a test.
906 2008-10-20 Colin Walters <walters@verbum.org>
908 * giscanner/glibast.py: Also register g variants of
909 default_array_types. This is not beautiful, but
910 good alternatives aren't easy to come by.
911 This fixes gchar ** parsing.
913 2008-10-20 Colin Walters <walters@verbum.org>
915 * docs/typelib-format.txt, girepository/gtypelib.h:
916 Take a bit from ObjectInfo to represent abstract flag.
917 * giscanner/cgobject.py: Expose g_type_get_flags.
918 * girepository/girepository.h: Add accessor.
919 * girepository/ginfo.c: Implement it.
920 * giscanner/ast.py: Add is_abstract flag to generic
922 * giscanner/glibast.py: Use it.
923 * giscanner/girwriter.py: Write it.
924 * girepository/girparser.c: Parse it.
927 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
929 * giscanner/girparser.py (_parse_function): don't lose
930 'transfer-ownership' attributes when injecting, check for the
933 2008-10-19 Johan Dahlin <johan@gnome.org>
935 * giscanner/scannerlexer.l: Parse and ignore __asm.
937 2008-10-19 Colin Walters <walters@verbum.org>
939 * giscanner/girparser.py: Parse array length= to ensure
940 it doesn't get lost from --inject.
942 2008-10-17 Colin Walters <walters@verbum.org>
944 Bug 556795 - char ** regression
946 * giscanner/transformer.py: Fix parsing of ctypes, add some
947 comments about what's going on.
948 * tests/*: Add a test for char **.
950 2008-10-17 Colin Walters <walters@verbum.org>
952 Bug 556783 - change namespace handling to be more consistent
954 * giscanner/transformer.py: Eliminate usage of
955 strip_namespace_object. We now treat --namespace as the default
956 --strip-prefix; however, if --strip-prefix is specified it
957 overrides --namespace. This applies to everything except function
958 names, where we do also strip the namespace.
959 * giscanner/glibtransformer.py: Remove usage of
960 strip_namespace_object.
962 * tests/*: Add skeletal GtkFrob-1.0 test which has different
963 --namespace and --strip-prefix.
965 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
967 Bug 556732 – generate gir files consistently
969 * girepository/girparser.c (start_parameter):
971 * tests/invoke/testfns-1.0.gir:
972 * tools/generate.c (write_callable_info): write
973 'transfer-ownership' attribute consistently with both
974 return-value and parameter elements
976 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
978 Bug 556732 – generate gir files consistently
980 * tools/generate.c (write_callable_info): write 'direction'
981 attribute only if other than 'in' to be consistent with
984 * tests/object.gir: remove direction="in" which is the default
986 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
988 Bug 556732 – generate gir files consistently
990 * giscanner/ast.py (Field): add readable and writable properties
991 * giscanner/girparser.py (_parse_field): copy 'readable' and
992 'writable' attributes
993 * giscanner/transformer.py (_create_member): create fields as
995 * giscanner/glibtransformer.py (_introspect_object,
996 _pair_class_struct): make object instance and class fields
998 * giscanner/girwriter.py (_write_field):
999 * tools/generate.c (write_field_info): write field 'readable'
1000 and 'writable' attributes only if non-default (read-only)
1001 * girepository/girparser.c (start_field): in the absence of
1002 attributes assume fields are read-only
1004 * tests/struct.gir: remove redundant readable="1" from fields
1005 * tests/scanner/foo-1.0-expected.gir:
1006 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1007 all record and union fields
1009 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1011 Bug 556732 – generate gir files consistently
1013 * giscanner/girwriter.py (_write_property): write properties
1014 'construct' attribute if set
1015 * tools/generate.c (write_property_info): write properties
1016 'readable' and 'writable' attributes only if non-default
1017 * tests/object.gir: add writable="0"
1018 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1020 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1022 * gir/glib-2.0.c: added annotations
1024 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1026 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1029 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1031 Bug 556610 – giscanner/girparser.py drops parameter options
1033 * tests/scanner/drawable-injected-1.0-expected.gir,
1034 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1035 * giscanner/ast.py: allow Parameter to take options in the constructor
1036 * giscanner/girparser.py: parse parameter options (transfer,
1037 direction, allow-none)
1039 2008-10-16 Colin Walters <walters@verbum.org>
1041 Bug 556185 - segfault on g_callable_info_get_return_type
1043 Initial patch from John Ehresman.
1045 * tests/repository/*: Add a test using
1046 g_callable_info_get_return_type. Instead of casting a
1047 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1048 to call g_type_info_get_interface.
1050 2008-10-16 Colin Walters <walters@verbum.org>
1052 Bug 556579 - union and struct name misresolved
1054 * giscanner/transformer.py: The calls to _resolve_type_name
1055 for struct/union names was a legacy holdover from when type
1056 resolution had multiple phases. Now it's actively harmful
1057 since we might pull in an identical name from another
1061 2008-10-16 Colin Walters <walters@verbum.org>
1063 Bug 556432 - transfer annotations and defaults
1065 * giscanner/transformer.py: Canonicalize type
1066 after removing *, not before. This ensures that
1067 guchar* is transformed to 'uint8'.
1068 Add some comments here.
1069 * giscanner/glibtransformer.py: Add _adjust_transfer
1070 phase for tweaking GObject transfers.
1073 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1075 * configure.ac: enable bunch of gcc warning CFLAGS
1077 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1079 Bug 556543 – reduce compiler warnings
1081 * girepository/ginfo.c:
1082 * girepository/girepository.c (register_internal,
1083 count_interfaces, find_interface, find_namespace_version,
1084 parse_version, g_irepository_require):
1085 * girepository/girmodule.c (g_ir_module_build_typelib):
1086 * girepository/girnode.c (init_stats, dump_stats,
1087 _g_irnode_init_stats, _g_irnode_dump_stats,
1088 g_ir_node_can_have_member):
1089 * girepository/girparser.c (firstpass_end_element_handler,
1090 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1091 start_alias, start_type, end_type_top, parse_include, cleanup,
1093 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1094 * giscanner/giscannermodule.c (directive_get_options,
1095 type_get_child_list):
1096 * giscanner/scannerlexer.l (parse_gtkdoc):
1097 * giscanner/scannerparser.y (ctype_free):
1098 * giscanner/sourcescanner.c:
1099 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1100 * tests/types/gitesttypes.c:
1101 * tools/compiler.c (main):
1102 * tools/generate.c (write_repository): Remove unused variables
1103 and code, add missing includes, declarations and case
1106 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1108 Bug 556541 – access union members through UnionBlob rather than
1111 * girepository/ginfo.c (g_union_info_find_method): access union
1112 members through UnionBlob rather than StructBlob
1114 2008-10-15 Colin Walters <walters@verbum.org>
1116 Bug 556331 - clean up includes handling
1118 * tools/g-ir-scanner: Rework command line arguments; now we take
1119 --add-include-path and --include separately.
1120 * giscanner/girwriter.py: Separate name= and version= in include
1122 * giscanner/ast.py: Add Include type.
1123 * giscanner/transformer.py: Cleanups to register_include now that
1124 we don't need to handle mixed filenames and relative arguments.
1125 * girepository/girparser.c: Parse name and version separately;
1126 this fixes a bug as a side effect where we weren't resolving
1127 through aliases for basic types.
1128 * girepository/girepository.c: Fix format string args.
1129 * gir/Makefile.am: Update.
1132 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1134 Bug 556434 – unhandled interface/object/... member types
1136 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1137 g_ir_node_build_typelib): Check all
1138 interface/object/boxed/struct/union members are processed and
1139 abort if they are not. (Mostly callbacks in structs, but also
1140 fields in interfaces.)
1142 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1144 * a/girepository/girnode.c (g_ir_node_build_members,
1145 g_ir_node_build_typelib): refactor common code for processing
1146 members to a function
1148 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1150 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1151 transformation is lossless (it's not)
1153 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1155 * tests/Makefile.am: fix tests to compare xml to xml instead of
1156 typelib to xml, and stop on error
1158 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1160 * tools/generate.c (write_type_name, write_type_info,
1161 write_type_info, write_object_info, write_object_info,
1162 write_interface_info, write_error_domain_info): reduce code
1165 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1167 Bug 556174 – parse types for lists etc.
1169 * girepository/girparser.c (end_type_recurse):
1171 * tools/generate.c (write_type_info, write_field_info,
1172 write_callable_info, write_callable_info, write_constant_info,
1173 write_property_info): use nested <type>s for lists and hashes
1175 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1178 * tests/object.gir: remove trailing whitespace from inside
1179 elements to match g-ir-generate output
1181 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1183 * tools/generate.c (xml_printf): quote printf arguments so that
1184 we don't generate invalid XML by writing unescaped double quotes
1185 and such in attributes
1187 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1189 * tools/generate.c (write_field_info, write_callable_info,
1190 write_function_info, write_callback_info, write_struct_info,
1191 write_constant_value, write_signal_info, write_vfunc_info,
1192 write_object_info, write_interface_info, write_union_info,
1193 write_repository): remove unused indent parameters, xmlwriter
1194 keeps track of necessary indentation
1196 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1198 * tools/generate.c (xml_element_new, xml_element_free,
1199 xml_start_element, xml_end_element, xml_end_element_unchecked,
1200 xml_open, xml_close): Keep track of generated XML tree and
1201 handle indentation and closing tags properly.
1202 (write_field_info, write_callable_info, write_function_info,
1203 write_callback_info, write_struct_info, write_value_info,
1204 write_constant_info, write_enum_info, write_signal_info,
1205 write_vfunc_info, write_property_info, write_object_info,
1206 write_interface_info, write_error_domain_info, write_union_info,
1207 write_repository): Use xml_start_element and xml_end_element to
1210 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1212 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1213 (write_type_name, write_type_info, write_field_info,
1214 write_callable_info, write_function_info, write_callback_info,
1215 write_struct_info, write_value_info, write_constant_value,
1216 write_constant_info, write_enum_info, write_signal_info,
1217 write_vfunc_info, write_property_info, write_object_info,
1218 write_interface_info, write_error_domain_info, write_union_info,
1219 write_repository): wrap all FILE access to go through simple xmlwriter
1221 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1223 Bug 556400 – Fails to build on OS X 10.4
1225 * configure.ac: check for functions backtrace and backtrace_symbols
1226 * girepository/girparser.c (backtrace_stderr): Comment out
1227 implementation if the functions are not available.
1228 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1229 directory for better portability
1231 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1233 Bug 556433 – assume direction = out for int * parameters
1235 * giscanner/ast.py: define a list of types for which, if passed as
1236 reference, we assume a default direction of 'out'
1237 * giscanner/transformer.py: if a type has type pointer to one of the
1238 previously defined types, and no direction is set, assume out.
1239 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1241 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1243 * tests/scanner/annotation.c: fixed a few copy-paste errors
1245 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1247 Bug 556323 – transfer-ownership is wrong for functions returning const
1250 * giscanner/transformer.py: check for a const string as return value,
1251 not just const char*. Suggested by Colin Walters
1252 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1254 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1256 * girepository/ginfo.c, girepository/girepository.h: add
1257 g_union_info_find_method
1259 2008-10-14 Colin Walters <walters@verbum.org>
1261 * tests/repository/Makefile.am: Reenable repo test.
1262 * tests/repository/gitestrepo.c: Prepend search
1263 path for $(top_builddir)/gir dir so that we don't
1264 require installation for "make check" to pass.
1266 2008-10-13 Jürg Billeter <j@bitron.ch>
1268 * giscanner/glibtransformer.py:
1269 * tests/scanner/annotation-1.0-expected.gir:
1270 * tests/scanner/drawable-1.0-expected.gir:
1271 * tests/scanner/foo-1.0-expected.gir:
1272 * tests/scanner/utility-1.0-expected.gir:
1274 Support fields in GObject structs
1276 2008-10-13 Jürg Billeter <j@bitron.ch>
1278 * giscanner/ast.py: add signed integer and off_t to type_names
1280 2008-10-12 Jürg Billeter <j@bitron.ch>
1282 * giscanner/girparser.py: Parse bits attribute of fields
1284 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1286 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1287 * tests/repository/gitestrepo.c (main): instantiate
1288 'GCancellable' to ensure the GType is registered before using
1291 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1293 * giscanner/girparser.py: actually add the parsed constant nodes
1295 2008-10-12 Colin Walters <walters@verbum.org>
1297 * girepository/girepository.c: Don't cast DirEntry to Blob,
1298 actually look it up by offset.
1300 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1302 * giscanner/girparser.py: parse constant nodes in gir files
1304 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1306 * giscanner/transformer.py: prefix for constants have an underscore,
1307 so remove them as if they were functions, not objects.
1309 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1311 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1314 2008-10-12 Colin Walters <walters@verbum.org>
1316 Initial patch from Jani Monoses.
1318 * girepository/gtypelib.c: Fix inverted test for success
1321 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1323 * tools/generate.c (write_callable_info): use "transfer-ownership"
1324 attribute for return values
1326 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1328 * tools/generate.c (write_callable_info): move "transfer" and
1329 "null-ok" attributes from <function> to <return-value> element
1331 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1333 * girepository/girparser.c (start_return_value): handle
1334 "transfer-ownership" attribute
1336 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1338 * girepository/girparser.c (parse_param_transfer):
1339 * tools/generate.c (write_callable_info): use "container" for
1340 container/shallow ownership transfer (not "shallow")
1342 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1344 * girepository/girparser.c (parse_param_transfer,
1345 start_parameter): Refactor handling of transfer=none/shallow/full
1346 to separate function
1348 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1350 Bug 556048 – Crash in g_irepository_find_by_gtype
1352 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1353 * girepository/girepository.c (find_interface): Fix
1354 find_by_gtype case to get the type name from right offset
1356 2008-10-12 Jürg Billeter <j@bitron.ch>
1358 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1361 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1363 * girepository/gtypelib.h (RegisteredTypeBlob): make
1364 'unregistered' one bit wide as everywhere else
1366 2008-10-12 Jürg Billeter <j@bitron.ch>
1368 * giscanner/glibtransformer.py:
1369 * tests/scanner/annotation-1.0-expected.gir:
1370 * tests/scanner/drawable-1.0-expected.gir:
1371 * tests/scanner/drawable.h:
1372 * tests/scanner/foo-1.0-expected.gir:
1373 * tests/scanner/utility-1.0-expected.gir:
1375 Readd class records as workaround to not break Gtk typelib
1377 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1379 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1381 2008-10-12 Jürg Billeter <j@bitron.ch>
1383 * giscanner/glibtransformer.py: Don't generate <record> elements
1385 * tests/scanner/*: Update test cases
1387 2008-10-11 Colin Walters <walters@verbum.org>
1389 Bug 552858: versioning
1391 This is a big patch. You should probably remove your installation
1394 * docs/typelib-format.txt: Add nsversion entry which holds
1395 version of namespace.
1396 * girepository/girepository.h: Add 'version' parameter to
1397 g_irepository_require. This may be NULL. Normally
1398 bindings should pass an explicit version though.
1399 * girepository/girepository.c: Lots of infrastructure to
1400 support versioning. Add some more documentation. Disallow
1401 some usage of NULL namespaces.
1402 * girepository/girmodule.c: Add version parameter.
1403 * girepository/gtypelib.c: Update header size.
1404 * giscanner/ast.py: Add version to Namespace.
1405 * giscanner/girparser.py: Parse version attribute from
1406 XML, pass to Namespace.
1407 * giscanner/girwriter.py: Write out version parameter.
1408 * giscanner/transformer.py: Clean up include registration.
1409 * tests/*: Add version attribute.
1410 * tests/invoke/invoke.c: Don't try looking up test before
1411 it's loaded in repository.
1412 * tools/generate.c: Output version parameter.
1413 * gir/Makefile.am: Add 2.0 version to .gir files.
1415 2008-10-11 Colin Walters <walters@verbum.org>
1417 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1418 if we have mismatched parens.
1420 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1422 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1423 on 'members' variable.
1425 2008-10-11 Colin Walters <walters@verbum.org>
1427 Bug 555947 - update annotations syntax
1429 * giscanner/ast.py: Default to None for transfer. Remove
1430 default transfers for container types; we require this to
1432 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1433 'full' to match repository.
1434 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1435 * giscanner/transformer.py: Update for new annotations syntax.
1438 2008-10-11 Johan Bilien <jobi@litl.com>
1440 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1442 2008-10-11 Johan Bilien <jobi@litl.com>
1444 Bug 552347: Parse #defines constants
1446 * girepository/gtypelib.c: update the list of value_size
1447 with recently defined type tags
1448 * giscanner/scannerparser.y: brought back parsing of #defined, as
1449 present in older version
1450 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1451 * giscanner/girwriter.py: write out constant tags in the gir
1452 * giscanner/sourcescanner.py: add accessor for const_string
1453 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1456 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1458 Bug 555946: Install a test module exercising all types, transfer
1463 * tests/types/*: Add and install a test module that has functions
1464 accepting and returning most of the basic types to enable bindings
1465 implementors to more easily test their type conversion routines.
1467 2008-10-11 Jürg Billeter <j@bitron.ch>
1469 Bug 552374: Const strings should be identified in the gir.
1471 * giscanner/transformer.py: support string memory management
1472 * tests/scanner/foo.h: use char * and const char *
1473 * tests/scanner/foo-expected.gir: test that
1475 2008-10-11 Johan Dahlin <johan@gnome.org>
1477 * giscanner/girparser.py:
1478 Also parse enums which are not glib types.
1480 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1482 Bug 552370: add one more test for unsigned as a type, not as
1485 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1486 * test/scanner/foo.h: add function which uses unsigned as a type.
1487 * test/scanner/foo-expected.gir: test that.
1489 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1491 Bug 555712: Struct and union issues
1493 * giscanner/scannerparser.y (struct_declarator): Use information
1494 provided about the bit width of a field.
1495 * giscanner/transformer.py (Transformer._create_member): Pass the
1496 symbol's const_int member to the created field (it represents the
1498 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1499 field attribute, if present.
1500 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1501 width in bits of the field (only relevant for bitfields).
1504 * giscanner/transformer.py (Transformer._create_typedef_struct)
1505 (Transformer._create_typedef_union): Add calls to _create_struct()
1506 and _create_union(), respectively. This causes the scanner to
1507 generate output for fields of struct and union typedefs.
1510 2008-10-11 Jürg Billeter <j@bitron.ch>
1512 Bug 552370: unsigned not scanned properly
1514 * giscanner/scannerparser.y: combine basic types such as unsigned
1515 int and long long when scanning
1516 * tests/scanner/foo-expected.gir:
1517 * tests/scanner/foo.c: (foo_test_unsigned):
1518 * tests/scanner/foo.h: test that
1520 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1522 Bug 554854: The --typelib-xml and --inject options should reuse
1523 giscanner parser/writer.
1525 * giscanner/ast.py: add constructor list to Struct and Union.
1526 Add new param in Return's contructor to define transfer.
1527 * giscanner/girparser.py: several additions to the parser in order
1528 to have parsing all nodes of the gir xml files.
1529 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1530 and writer in --inject and --typelib-xml options.
1531 * giscanner/xmlwriter.py: ignore empty attributes instead of
1532 raising an error as this basically exposes a bug in GIRParser.
1533 This should be reverted as soon as the parser is fixed.
1535 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1537 Bug 552376: scanner generates wrong names for enum members when
1538 there's no defined gtype.
1540 * giscanner/utils.py (strip_common_prefix): Always strip common
1541 prefix exactly up to the last "_", and not beyond.
1542 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1543 here is that the first character after the last '_' should should be
1544 the same as the character in the same position on the type name.
1545 * tests/scanner/foo-expected.gir: test that
1547 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1549 Bug 555293: append library_paths to LPATH env variable to work
1550 around a bug in find_library when using ldconfig.
1552 * tools/g-ir-scanner (main): ditto.
1554 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1556 * girepository/girepository.c (register_internal): fix regression on
1557 invoke test case by making sure we load the global module in the
1558 typelib when dealing with inline typelibs.
1559 * girepository/gtypelib.c: a couple of coding style fixes.
1561 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1563 Bug 555294: Add support for multiple shared libraries per typelib.
1565 * girepository/ginvoke.c (g_function_info_invoke),
1566 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1567 g_typelib_symbol instead of g_module_symbol.
1568 * girepository/girepository.h: remove g_typelib_set_module and add
1570 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1571 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1572 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1573 modules instead of just one. The symbol lookup is now abstracted
1574 behind g_typelib_symbol which tries to find the passed symbol name in
1576 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1577 and write shared_library attribute as a comma-separated list of libs.
1579 2008-10-06 Colin Walters <walters@verbum.org>
1581 * giscanner/transformer.py: Parse length= annotation as
1582 a parameter name, not a raw int.
1585 2008-10-03 Colin Walters <walters@verbum.org>
1587 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1589 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1591 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1595 2008-10-03 Colin Walters <walters@verbum.org>
1597 Bug 554576: scan problem with ev_selection_render_selection()
1599 * giscanner/transformer.py: Only do type resolution once we've
1600 scanned all types. What could happen before is that we'd strip
1601 the namespace from local type "EvSelection" => Selection, and
1602 then later pull a "Selection" from some other namespace because
1603 we hadn't yet seen the local EvSelection. This could come
1604 down to hash table ordering and other things so not easy
1605 to write a test for.
1607 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1609 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1610 GLibEnumMember constructor as it should be the enum member nick.
1612 2008-10-02 Colin Walters <walters@verbum.org>
1614 Bug 552961: remove this parameter for methods
1616 * giscanner/glibtransformer.py: Delete this parameter; it is
1618 * girepository/ginvoke.c: Insert this parameter for methods.
1619 * girepository/gtypelib.c: Remove no longer needed verification of
1620 method this parameter.
1623 2008-09-30 Dan Winship <danw@gnome.org>
1625 Bug 554490: g-ir-scanner gets confused by '\\'
1627 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1628 backslashes so it will correctly parse '\\' and "\\"
1630 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1633 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1635 2008-10-02 Colin Walters <walters@verbum.org>
1637 bug 552393: Note variadic functions
1639 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1640 to use parameter_list directly.
1641 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1642 * giscanner/ast.py: Add Varargs type.
1643 * giscanner/transformer.py: Check for ellipsis symbol, transform
1645 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1646 Parse varargs functions, but filter them out before we start
1647 compiling the typelib.
1649 2008-10-02 Colin Walters <walters@verbum.org>
1651 Bug 554632: type tag for GType
1653 * girepository/girepository.h, girepository/girepository.c:
1654 Add type tag for GType - it's a special type we don't want
1655 to resolve to just "long".
1656 * docs/typelib-format.txt: Update.
1657 * girepository/girparser.c: Parse it.
1658 * giscanner/glibtransformer.py: Ensure we don't put GType in
1660 * tools/generate.c: Remove hardcoded type list.
1663 2008-09-30 Dan Winship <danw@gnome.org>
1665 Bug 554521: scanner generates wrong names for enum members with
1666 full type name prefix
1668 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1669 right amount when the entire "first" string is a prefix of
1672 * tests/scanner/foo.h (FooEnumFullname):
1673 * tests/scanner/foo-expected.gir: test that
1675 2008-09-29 Colin Walters <walters@verbum.org>
1677 Bug 552380: Array parameters should be marked in the gir
1679 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1680 uint8[]. Add Array, List, and Map subclasses of Type;
1681 these types can be generic. Return transfer defaults
1682 to true if return value is string or container type.
1683 Delete Sequence type.
1684 * giscanner/scannerlexer.l: Syntax change for annotations;
1685 use <> since it's more readable.
1686 * giscanner/girwriter.py: Write out these changes.
1687 * giscanner/girparser.py: Parse them.
1688 * giscanner/transformer.py: Have a defined set of
1689 both list and map types. When creating a type,
1690 check if the ctype we've parsed is one of them,
1691 if so create a container type subclass as appropriate.
1692 * girepository/girparser.c: Parse in generic types.
1695 2008-09-27 Colin Walters <walters@verbum.org>
1697 * tools/g-ir-scanner: Add --inject option.
1699 2008-09-25 Colin Walters <walters@verbum.org>
1701 Remove non-repository types from GIR
1703 * giscanner/ast.py: The canonical name is 'utf8', not
1705 * giscanner/glibast.py: A few more glib type mappings.
1706 * girepository/girparser.c: We only parse repository types.
1707 * tests/*.gir: Update.
1709 2008-09-23 Colin Walters <walters@verbum.org>
1711 Bug 552566: Add time_t type
1713 We need a type for time_t since it's special in C, and just
1714 mapping it to long precluded bindings from handling it
1717 2008-09-19 Colin Walters <walters@verbum.org>
1719 Bug 552390: Handle capitialization like "DBus" more robustly
1721 The to_underscores function was designed for use against prefixed
1722 names; we need a separate function which will convert names like
1723 DBusFoo into dbus_foo, not d_bus_foo.
1725 2008-09-19 Colin Walters <walters@verbum.org>
1727 Add check to make sure we're not hitting out unresolved types
1729 Validate the "this" argument for methods
1731 Remove heuristic matching of methods to classes based on prefix
1733 It was a broken hack that dated from when we handled underscoring
1734 and capitalization conventions less well.
1736 2008-09-18 Colin Walters <walters@verbum.org>
1738 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1740 On Darwin, the suffix for installed shared libraries (.dylib) is
1741 different from loadable modules (.so). We use a bit of magic shell
1742 script from Behdad Esfahbod to figure out the right suffix.
1744 2008-09-15 Johan Dahlin <johan@gnome.org>
1746 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1747 a wrapper for type_qualifier as well.
1749 2008-09-15 Colin Walters <walters@verbum.org>
1751 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1753 * giscanner/ast.py: Add deprecation attributes.
1754 * giscanner/girwriter.py: Write out deprecation data.
1755 * girepository/girparser.c: Relax parsing; deprecated
1756 attribute now includes freeform string.
1757 * giscanner/scannerlexer.l: Parse Deprecated.
1758 * giscanner/transformer.py: Look for deprecated attribute
1760 * tests/scanner/*: Add a Deprecated test.
1762 2008-09-14 Tor Lillqvist <tml@novell.com>
1764 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1766 2008-09-14 Colin Walters <walters@verbum.org>
1768 * giscanner/glibtransformer.py: Ignore functions with
1771 2008-09-12 Colin Walters <walters@verbum.org>
1773 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1775 2008-09-12 Colin Walters <walters@verbum.org>
1777 * giscanner/ast.py: Bind pid_t to INT for vte.
1779 2008-09-12 Colin Walters <walters@verbum.org>
1781 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1782 * giscanner/glibast.py: Avoid overwriting ctype.
1783 * giscsanner/transformer.py: Try resolving types using the GType names.
1785 2008-09-12 Colin Walters <walters@verbum.org>
1787 * giscanner/minixpath.py: Code to run an "XPath"
1788 assertion against an XML tree, taken from
1789 gir-repository/gir/tests.py.
1790 * giscanner/Makefile.am: Ship it.
1791 * tools/g-ir-scanner: Add --xpath-assertions option.
1792 * gir/GLib-assertions.txt: Add a few assertions.
1793 * gir/Makefile.am: Run them.
1795 2008-09-11 Colin Walters <walters@verbum.org>
1797 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1799 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1800 prefix if it ends with _. Tweak callback stripping to determine
1801 based on presence of _ whether we need to use strip_namespace_func
1802 or strip_namespace_object.
1804 2008-09-09 Owen Taylor <otaylor@redhat.com>
1806 * docs/typelib-format.txt: Wether => Whether
1808 2008-09-08 Colin Walters <walters@verbum.org>
1810 * girepository/girparser.c: Default to "readable" for properties.
1811 * giscanner/ast.py: Add readable, writable etc.
1812 * giscanner/girwriter.py: Writ them.
1813 * giscanner/glibtransformer.py: Inspect them.
1816 2008-09-07 Colin Walters <walters@verbum.org>
1818 * giscanner/cgobject.py: Add comment.
1820 2008-09-07 Colin Walters <walters@verbum.org>
1822 * giscanner/cgobject.py: Also call g_thread_init.
1824 2008-09-07 Colin Walters <walters@verbum.org>
1826 * giscanner/transformer.py: Fix regression by not
1827 stripping prefix before stripping namespace for unions
1830 2008-09-06 Colin Walters <walters@verbum.org>
1832 * giscanner/transformer.py: If a namespace contains
1833 multiple caps, try stripping both gnomekeyring_ and
1836 2008-09-07 Johan Dahlin <johan@gnome.org>
1838 Bug 551162 – giscanner does not recognize asm and __asm__
1839 * giscanner/scannerlexer.l:
1840 Patch by Jani Monoses.
1842 2008-09-06 Colin Walters <walters@verbum.org>
1844 * girepository/girnode.c: Allow gtype_name
1845 and gtype_init in struct and union.
1846 * girepository/girparser.c: Parse glib:
1847 boxed bits for both structure and union.
1848 * girepository/gtypelib.c: Don't barf
1849 if structure is boxed.
1850 * giscanner/girparser.py: Parse new XML
1852 * giscanner/girwriter.py: Write out new
1854 * giscanner/glibast.py: Define new classes
1855 which are both Boxed and Struct/Union, as
1856 well as an "Other" for everything else.
1857 * giscanner/glibtransformer.py: Handle
1858 boxed types specially; we try to merge
1859 them with a struct/union if one exists,
1860 otherwise fall back to generic boxed.
1862 * tools/generate.c: Write out new format.
1864 2008-09-06 Johan Dahlin <johan@gnome.org>
1866 * giscanner/grealpath.h: Include stdlib.h
1868 * docs/g-ir-generate.1: Remove leading %
1870 2008-09-01 Colin Walters <walters@verbum.org>
1872 * girepository/girparser.c: Look at c:type to determine
1873 whether or not an item is a pointer.
1875 2008-09-01 Johan Dahlin <johan@gnome.org>
1877 * tests/scanner/Makefile.am:
1878 Set PYTHONPATH so the scanner can run
1879 even if you didn't install anything.
1881 2008-09-01 Johan Dahlin <johan@gnome.org>
1884 Post-release version bump
1887 2008-09-01 Johan Dahlin <johan@gnome.org>
1891 2008-08-31 Colin Walters <walters@verbum.org>
1893 * giscanner/glibtransformer.py: Quiet info
1896 2008-08-31 Johan Dahlin <johan@gnome.org>
1899 Bump version to 0.5.0
1901 2008-08-31 Colin Walters <walters@verbum.org>
1903 * giscanner/glibtransformer.py: Follow aliases to ensure
1904 we don't get a constructor returning a basic type.
1905 * giscanner/transformer.py: Add function to follow aliases.
1908 2008-08-31 Johan Dahlin <johan@gnome.org>
1910 * giscanner/scannerlexer.l:
1911 * giscanner/scannerparser.y:
1912 * giscanner/sourcescanner.h:
1913 * giscanner/sourcescanner.py:
1914 Parse GCC extensions in the parser instead of just undeffing them
1915 in the pre-processor.
1917 2008-08-31 Johan Dahlin <johan@gnome.org>
1919 * giscanner/glibtransformer.py:
1920 Clean up a huge if. Do not add methods or constructors
1922 * giscanner/utils.py:
1923 second might be longer than first, check that.
1925 2008-08-31 Johan Dahlin <johan@gnome.org>
1930 2008-08-31 Colin Walters <walters@verbum.org>
1932 * girepository/girparser.c: Don't lose if we
1935 2008-08-31 Colin Walters <walters@verbum.org>
1937 * giscanner/glibtransformer.py: Look for libtool
1938 library in current directory
1939 * tests/scanner - Update.
1941 2008-08-30 Colin Walters <walters@verbum.org>
1943 * docs/typelib-format.txt: Add a guint32
1945 * gir/Makefile.am: Dep on Makefile
1946 * girepository/ginfo.c:
1947 * girepository/girepository.c: Clean up
1948 default typelib handling; remove global
1949 default_typelib variable. Ensure we handle
1950 NULL repository in more places.
1951 Support dependency resolution.
1952 Support lazy loading.
1953 * girepository/girepository.h: Remove
1954 g_irepository_unregister; we don't support
1955 unloading typelibs since really they're
1956 process-global. Update for lazy loading
1958 * girepository/girmodule.c: Use g_new0.
1959 Add dependencies to GirModule.
1960 * girepository/girparser.c: Parse dependencies.
1961 * girepository/gtypelib.c: Add 4 bytes for
1963 * tests/Makefile.am: Kill off gobject.gir,
1964 it conflicts with the real one.
1965 * tests/object.gir: Dep on GObject.
1966 * tools/generate.c: Take --includedir
1967 argument to say which directories to search
1968 for typelibs. Print out dependencies.
1970 2008-08-30 Colin Walters <walters@verbum.org>
1972 * giscanner/glibtransformer.py: Reduce warning noise.
1974 2008-08-29 Colin Walters <walters@verbum.org>
1976 * girepository/ginfo.c: Add some assertions regarding
1977 refcounts, just to be sure.
1978 * giscanner/glibtransformer.py: Blacklist a few more
1981 2008-08-29 Colin Walters <walters@verbum.org>
1983 * giscanner/glibtransformer.py: Blacklist a few
1984 functions that use GError oddly
1986 2008-08-29 Colin Walters <walters@verbum.org>
1988 * girepository/gtypelib.c: Don't crash if no
1991 2008-08-29 Colin Walters <walters@verbum.org>
1993 * girepository/girparser.c: Handle chains of aliases
1994 across modules by ensuring we fully qualify aliases
1997 2008-08-29 Colin Walters <walters@verbum.org>
1999 * girepository/girparser.c: Don't search aliases
2002 2008-08-29 Colin Walters <walters@verbum.org>
2004 * girepository/girparser.c: Rewrite type parsing
2005 to handle both GLib parsing case as well as correctly
2006 handling GLib.List and friends. Don't try to treat
2007 e.g. ListStore as a List.
2009 2008-08-29 Colin Walters <walters@verbum.org>
2011 * girepository/gtypelib.c: Add more context
2014 2008-08-29 Colin Walters <walters@verbum.org>
2016 * giscanner/glibtransformer.py: Add some informative
2017 logging messages in corner cases. Be sure we use
2018 the most recent node set instead of a cache
2019 when generating result set.
2020 * tests/: Remove duplicated bits in expected girs
2021 * girepository/girparser.c: Accept both List (for
2022 compiling GLib) and GLib.List (what the scanner
2025 * tools/generate.c: Generate canonical form.
2027 2008-08-29 Johan Dahlin <johan@gnome.org>
2029 * giscanner/config.py.in:
2030 Use datarootdir instead of datadir to avoid
2031 an autoconf warning.
2033 2008-08-29 Johan Dahlin <johan@gnome.org>
2037 * examples/gdk-pixbuf.gidl:
2039 Update and remove old cruft.
2041 2008-08-29 Johan Dahlin <johan@gnome.org>
2044 * docs/g-ir-compiler.1:
2045 * docs/g-ir-generate.1:
2046 * docs/g-ir-scanner.1:
2047 Add man pages for the generator and compiler.
2049 2008-08-29 Johan Dahlin <johan@gnome.org>
2051 * docs/g-ir-scanner.1: Document
2053 * giscanner/Makefile.am:
2054 * giscanner/gidlparser.py:
2055 * giscanner/gidlwriter.py:
2056 * tools/g-ir-scanner:
2057 Remove gidl support.
2059 2008-08-28 Colin Walters <walters@verbum.org>
2061 * tests/scanner/Makefile.am: Pass the right
2062 --includedir args. Add a Makefile dep.
2063 * tools/compiler.c: Pass includedirs down.
2064 * girepository/girparser.c: Actually put
2065 includedirs in context, pass down. Fix
2068 2008-08-28 Colin Walters <walters@verbum.org>
2070 * gir/Makefile.am: Use --includedir
2071 * girepository/girparser.c: Recursively parse
2072 includes to pull in aliases and expand them.
2073 We need this to avoid putting unknown names in
2075 * tools/compiler.c: Add --includedir option.
2076 * giscanner/ast.py: Map size/ssize to types
2079 2008-08-28 Tor Lillqvist <tml@novell.com>
2081 Make check now runs successfully on Windows.
2083 * tools/compiler.c (write_out_typelib): Use binary mode for output
2086 * girepository/girnode.c: Don't print NULL strings.
2088 * tests/invoke/Makefile.am
2089 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2090 convince libtool to build shared libraries.
2092 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2093 g_assert() instead of printing out expected errors.
2095 2008-08-28 Tor Lillqvist <tml@novell.com>
2097 * girepository/gtypelib.h: Change type of bitfield fields from
2098 guint to the most suitable smaller type. This makes the struct
2099 sizes match the ones on Linux that the sanity check expects when
2100 using gcc -mms-bitfields on Windows.
2102 2008-08-28 Johan Dahlin <johan@gnome.org>
2107 * giscanner/Makefile.am:
2108 * tests/Makefile.am:
2109 * tests/scanner/Makefile.am:
2110 Make distcheck pass.
2112 2008-08-27 Johan Dahlin <johan@gnome.org>
2114 * giscanner/Makefile.am:
2115 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2117 2008-08-27 Tor Lillqvist <tml@novell.com>
2119 Make g-ir-scanner work on Windows. Still problems with the typelib
2120 code. Changes okayed by jdahlin.
2122 * configure.ac: Check for Windows, set Automake conditional
2123 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2124 avoid shell quoting issues
2126 * girepository/Makefile.am: Use -no-undefined so that libtool
2127 agrees to build a shared library on Windows.
2129 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2130 Windows. Empty implementation on Windows so far.
2132 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2133 informative error message for the assertion failures. Tell also
2134 what the expected size of the struct is. Check all sizes first and
2135 fail afterwards if at least one size was different from expected.
2137 * tools/Makefile.am: Reorder libraries into proper logical
2140 * tools/generate.c: Don't include <dlfcn.h>, not used.
2142 * giscanner/Makefile.am: On Windows, link with the Python library,
2143 and install the module DLL as _giscanner.pyd. Remove the
2144 unnecessary import library and libtool library that libtool has
2147 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2148 and just skip it. Recognize also two "l" suffixes for long long
2149 constants. Recognize also __inline__.
2151 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2152 GetFullPathName(). As such, GetFullPathName() does more than the
2153 UNIX realpath(). It also changes relative paths into absolute
2154 paths. But for our purposes that shouldn't matter.
2156 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2157 Windows the file descriptor passed to us is from Python. Python
2158 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2159 uses msvcrt.dll. On Windows, file descriptors are specific to
2160 which C library is used. So we must find out what underlying OS
2161 handle corresponds to the file descriptor Python passes us, and
2162 then make that into a file descriptor valid for the C library this
2165 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2166 __attribute__ as the lexer now handles it. The definition as empty
2167 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2168 __attribute__. Close the temp file before unlinking it.
2170 * giscanner/cgobject.py: Use correct library name for the gobject
2173 * gir/Makefile.am: Must pass the full basename of the DLLs on
2174 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2175 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2176 reality they won't change, until there is a GLib 3, and then also
2177 the Unix code here needs changing.
2179 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2182 2008-08-26 Colin Walters <walters@verbum.org>
2184 * girepository/girepository.c: Search
2185 $DATADIR/girepository instead of
2186 $DATADIR/gitypelibs; this naming makes
2187 it clearer that e.g. jgir can install
2189 * gir/Makefile.am: Install there.
2191 2008-08-26 Colin Walters <walters@verbum.org>
2193 * girepository/gtypelib.c (_g_typelib_init): Also
2194 use G_MODULE_SUFFIX instead of hardcoding .so.
2196 2008-08-26 Colin Walters <walters@verbum.org>
2198 * girepository/gtypelib.c (_g_typelib_init): Free
2199 string in the right place.
2201 2008-08-26 Colin Walters <walters@verbum.org>
2203 * girepository/gtypelib.c (_g_typelib_init): Handle
2204 both .la and .so names; this works better in the
2205 uninstalled library case.
2207 2008-08-26 Johan Dahlin <johan@gnome.org>
2210 * giscanner/Makefile.am:
2211 * giscanner/cgobject.py:
2212 * giscanner/config.py.in:
2213 * giscanner/sourcescanner.py:
2214 Avoid undeffing __GNUC__, instead define
2215 __attribute__ & friends. Remove glibconfig.h hack.
2216 This makes gobject-introspection work better on
2217 MacOS X, Thanks to Richard Hult for kind help.
2219 2008-08-25 Colin Walters <walters@verbum.org>
2221 * giscanner/glibtransformer.py: Always print
2224 2008-08-25 Colin Walters <walters@verbum.org>
2226 * giscanner/glibtransformer.py: Skip over
2227 interfaces we don't know.
2229 2008-08-25 Colin Walters <walters@verbum.org>
2231 * girepository/girparser.c: Parse new implements
2232 syntax, drop gapi one.
2233 * tests/object.gir: Update.
2234 * tools/generate.c: Generate new syntax.
2236 2008-08-25 Colin Walters <walters@verbum.org>
2238 * giscanner/ast.py: Add interfaces property
2240 * giscanner/girwriter.py: Write out implemented
2242 * giscanner/glibtransformer.py: Introspect
2243 implemented interfaces.
2244 * tests/scanner/*: Make FooObject implement
2247 2008-08-25 Colin Walters <walters@verbum.org>
2249 * giscanner/glibtransformer.py: More correctly pair
2250 methods; if we have a symbol that starts with
2251 e.g. hippo_canvas look for a matching HippoCanvas
2252 class before accepting e.g. HippoCanvasImage.
2254 2008-08-24 Colin Walters <walters@verbum.org>
2256 * tools/g-ir-scanner: Filter out unknown options from
2259 2008-08-24 Colin Walters <walters@verbum.org>
2261 * giscanner/glibtransformer.py: Fail with better
2262 error if we can't find library.
2264 2008-08-24 Colin Walters <walters@verbum.org>
2266 * tools/g-ir-scanner: Use subprocess instead of
2267 commands, works on Windows and avoids the evil
2270 2008-08-24 Colin Walters <walters@verbum.org>
2272 * giscanner/glibtransformer.py: Skip over
2273 g_object_get_type from GLib trunk.
2275 2008-08-24 Colin Walters <walters@verbum.org>
2277 * girepository/girepository.c (g_irepository_require):
2278 Don't open shared library here; we already do it
2281 2008-08-24 Colin Walters <walters@verbum.org>
2283 * girepository/gtypelib.c: Add context stack so
2284 when we get an error we can print out nicely
2287 2008-08-24 Johan Dahlin <johan@gnome.org>
2289 * girepository/girparser.c (start_glib_boxed), (start_function),
2290 (start_field), (start_alias):
2291 Refactor a couple of parsing functions to be simpler to follow.
2294 2008-08-24 Johan Dahlin <johan@gnome.org>
2296 * girepository/girparser.c (start_function):
2297 Remove left-over code, checking type of function.
2299 2008-08-23 Colin Walters <walters@verbum.org>
2301 * giscanner/config.py: Define DATADIR.
2302 * giscanner/transformer.py: Look in DATADIR.
2304 2008-08-23 Colin Walters <walters@verbum.org>
2306 * girepository/gtypelib.c: Check constructor
2308 * girepository/girnode.c: Small tweaks.
2309 * girepository/ginfo.c: Calculate signature offsets
2311 * girepository/girparser.c: Remove duplicate
2313 * giscanner/glibtransformer.py: Avoid marking
2314 functions which return a basic type as
2317 2008-08-23 Colin Walters <walters@verbum.org>
2319 * girepository/girparser.c: Ignore <include>.
2320 * giscanner/girparser.py: Parse them.
2321 * giscanner/girwriter.py: Generate them.
2322 * giscanner/transformer.py: Process <include>
2323 recursively. Don't require full path for
2324 includes, look in {$XDG_DATA_DIRS}/gir.
2325 * tools/g-ir-scanner: Pass through includes.
2326 * Makefile.am: Remove extra --include
2328 * *-expected.gir: Add expected includes.
2330 2008-08-23 Johan Dahlin <johan@gnome.org>
2332 * tests/scanner/Makefile.am:
2333 * tests/scanner/annotation-expected.gir:
2334 * tests/scanner/drawable-expected.gir:
2335 Avoid duplication in the Makefile, regenerate with new
2336 namespaces (same as the filename)
2338 2008-08-22 Colin Walters <walters@verbum.org>
2340 * girepository/girnode.c: Don't hardcode integers,
2343 2008-08-22 Johan Dahlin <johan@gnome.org>
2345 * giscanner/sourcescanner.py:
2346 Check for ../gobject-introspection-1.0.pc.in to determine
2347 if we run installed or uninstalled.
2349 2008-08-22 Johan Dahlin <johan@gnome.org>
2352 * giscanner/sourcescanner.py:
2353 Send in undefs/defines via writing it directly to stdin
2354 of cpp instead of via arguments.
2356 2008-08-22 Colin Walters <walters@verbum.org>
2358 * tools/generate.c, tools/compiler.c: Default
2360 * all Makefile.am: Update.
2362 2008-08-22 Colin Walters <walters@verbum.org>
2364 * girepository/girparser.c: Pass through
2365 recursive types. Avoid overwriting errors.
2366 * giscanner/xmlwriter.py: Always write the
2368 * tests/*.gir: Adjust.
2369 * tests/scanner/Makefile.am: Build typelibs,
2370 and generate XML from those. Once we
2371 have a good diff mechanism...
2372 * tests/scanner/*-expected.gir: Add XML
2374 * tools/g-ir-scanner: Accept --typelib-xml
2376 * tools/generate.c: Better defaults for transfer.
2378 2008-08-22 Johan Dahlin <johan@gnome.org>
2382 * giscanner/Makefile.am:
2383 * giscanner/config.py.in:
2384 * giscanner/sourcescanner.py:
2385 Use the generated glibconfig.h for all scanner invokations.
2386 Rename it to glibconfig-scanner.h and install it.
2387 Add a config.py which so far contains the include dir.
2389 2008-08-22 Johan Dahlin <johan@gnome.org>
2392 Replace glibconfig.h with our own, do some replacement
2393 for CPP/C features we do not support
2395 2008-08-22 Colin Walters <walters@verbum.org>
2397 * tools/generate.c (write_callable_info): Fix unref
2400 2008-08-22 Colin Walters <walters@verbum.org>
2402 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2403 * tests/Makefile.am: Support $(DEBUG)
2404 * tools/generate.c: Do immediate close tags if no
2407 2008-08-21 Colin Walters <walters@verbum.org>
2409 * tests/scanner/drawable-expected.gir,
2410 * tests/scanner/drawable.c,
2411 * tests/scanner/drawable.h:
2414 2008-08-21 Colin Walters <walters@verbum.org>
2416 * giscanner/glibtransformer.py: Compute prefix
2417 by searching through the symbol for bits
2418 rather than going directly from ctype; this fixes
2421 2008-08-21 Colin Walters <walters@verbum.org>
2423 * giscanner/glibtransformer.py: Also try squashing
2424 underscores from namespace, fixes webkit_web_view_new.
2426 2008-08-21 Colin Walters <walters@verbum.org>
2428 * giscanner/glibtransformer.py: More ctor work,
2429 avoid having gtk_window_group_new end up under
2432 2008-08-21 Colin Walters <walters@verbum.org>
2434 * giscanner/glibtransformer.py: Much simpler approach
2435 of mapping uscored names to classes.
2436 * giscanner/utils.py: Remove unnecessary function.
2438 2008-08-21 Johan Dahlin <johan@gnome.org>
2440 * girepository/girepository.c (g_irepository_require):
2441 Plug memory leak and avoid using freed memory.
2442 Resolve the whole module path, here as well.
2444 2008-08-21 Colin Walters <walters@verbum.org>
2446 * giscanner/glibtransformer.py: Look up all permutations
2447 of class names when scanning methods/ctors based on
2448 the prefix instead of using the return value. This
2449 associates gtk_window_new with the right class.
2451 2008-08-21 Colin Walters <walters@verbum.org>
2453 * girepository/girmodule.c (g_ir_module_build_typelib):
2454 Revert change to increment header_size; we do that in
2457 2008-08-21 Colin Walters <walters@verbum.org>
2459 * girepository/girnode.c (write_string): Tweak to
2460 use UINT instead of INT. Not likely to matter.
2461 * girepository/girmodule.c (g_ir_module_build_typelib):
2462 Add to header_offset as well for header strings
2463 to match what write_string does.
2464 * girepository/gtypelib.c: Replace is_name with
2465 validate_name, which more strongly validates and
2466 handles errors in a better way. Update all callers.
2467 * giscanner/glibtransformer.py: Handle constructors
2470 2008-08-21 Johan Dahlin <johan@gnome.org>
2472 * gir/Makefile.am (typelibs_DATA): Build and
2473 install the Gio.typelib too
2475 * girepository/gtypelib.c (_g_typelib_init):
2476 Use g_module_build_path to resolve the shlib name
2478 2008-08-21 Colin Walters <walters@verbum.org>
2480 * gir/Makefile.am: CLEANFILES typelibs too.
2482 2008-08-21 Johan Dahlin <johan@gnome.org>
2484 * giscanner/glibtransformer.py:
2485 Do not send .la files through find_library.
2487 2008-08-21 Colin Walters <walters@verbum.org>
2489 * girepository/girparser.c (g_irepository_require):
2490 Fix one small leak in error case.
2492 2008-08-21 Johan Dahlin <johan@gnome.org>
2495 Parse glibconfig.h as well and install the compiled
2498 2008-08-21 Johan Dahlin <johan@gnome.org>
2501 * giscanner/glibtransformer.py:
2502 * tools/g-ir-scanner:
2503 Do not hard-core library names in the Makefile, reuse
2504 ctypes find_library instead.
2506 2008-08-21 Johan Dahlin <johan@gnome.org>
2508 * girepository/girparser.c (resolve_aliases):
2509 Remove compilation warnings
2511 2008-08-21 Johan Dahlin <johan@gnome.org>
2513 * girepository/girepository.c (g_irepository_require):
2514 Rewrap and fix double free bug by leaking a bit.
2516 2008-08-20 Colin Walters <walters@verbum.org>
2518 * girepository/girepository.c: Add new function
2519 g_irepository_get_typelib_path which tells
2520 us from where we loaded a namespace.
2522 2008-08-20 Colin Walters <walters@verbum.org>
2524 * tests/scanner/*-expected.gir: Adjust for
2525 added shared-library.
2526 * giscanner/giwriter.py: Make pylint happy.
2528 2008-08-20 Colin Walters <walters@verbum.org>
2530 * girepository/girmodule.c (g_ir_module_build_typelib):
2531 Calculate size correctly, avoid use-after-free.
2533 2008-08-20 Colin Walters <walters@verbum.org>
2535 * girepository/girepository.c: Remove
2536 g_irepository_register_file in favor of
2537 g_irepository_require. There are two
2538 possible deployment scenarios for typelibs:
2539 First, separate in $DATADIR/gitypelibs/. Second,
2540 they may be embedded in shlibs. However since
2541 the first is now the normal case, the API is
2542 optimized around it.
2544 Refactor internals to look up typelibs for
2545 namespaces just-in-time, but we expect
2546 consumers to call g_irepository_require.
2548 Also, add some docs. No one has died from that
2550 * gir/Makefile.am: Need --library for glib.
2551 * giscanner/girwriter.py: Write out shared-library.
2552 * tools/g-ir-writer: Take the first --library
2553 argument as the target of shared-library. In
2554 the future we should make this nicer with pkg-config
2557 2008-08-20 Colin Walters <walters@verbum.org>
2559 * girepository/girparser.py: And parse them.
2561 2008-08-20 Johan Dahlin <johan@gnome.org>
2563 * giscanner/glibast.py: Add gshort/gushort types
2565 2008-08-20 Colin Walters <walters@verbum.org>
2567 * gir/Makefile.am: Rename .gir files using GI namespace.
2568 * girepository/girepository.c: Use XDG_DATA_DIRS for
2569 looking up typelibs. Also typelibs are now suffixed
2571 * tests/invoke/Makefile.am: Only use metadata.
2572 * girepository/Makefile.am: Remove unnecessary include.
2573 * tests/scanner/Makefile.am: Update using GI namespaces
2574 for scanner includes.
2576 2008-08-20 Colin Walters <walters@verbum.org>
2578 * girepository/transformer.py: Suppress aliases whose
2580 * girepository/ast.py: Define some more aliases.
2582 2008-08-20 Colin Walters <walters@verbum.org>
2584 * girepository/girparser.c: Avoid alias infloops.
2586 2008-08-20 Colin Walters <walters@verbum.org>
2588 * tests/scanner/foo-expected.gir: Fix expected list type.
2590 2008-08-20 Johan Dahlin <johan@gnome.org>
2592 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2593 Add a workaround for #548689.
2594 We can now compile gtk!
2596 2008-08-20 Colin Walters <walters@verbum.org>
2598 * giscanner/glibtransformer.py: Try to look up
2599 aliases using the c:type too.
2601 2008-08-20 Colin Walters <walters@verbum.org>
2603 * girepository/girparser.c: Parse union fields.
2605 2008-08-20 Johan Dahlin <johan@gnome.org>
2607 * giscanner/ast.py: Make time_t an alias for long
2609 * gir/gio-2.0-good.gir:
2610 * gir/glib-2.0-good.gir:
2611 * gir/gobject-2.0-good.gir:
2613 * giscanner/glibtransformer.py:
2614 Do not delete Class structures, we need them in gdk/gtk.
2615 * tests/scanner/drawable-expected.gir:
2616 * tests/scanner/foo-expected.gir:
2617 * tests/scanner/utility-expected.gir:
2620 2008-08-20 Johan Dahlin <johan@gnome.org>
2622 * tests/scanner/Makefile.am:
2623 * tests/scanner/annotation-expected.gir:
2624 * tests/scanner/annotation.c (annotation_object_class_init),
2625 (annotation_object_init), (annotation_object_method),
2626 (annotation_object_in), (annotation_object_out),
2627 (annotation_object_inout), (annotation_object_inout2),
2628 (annotation_object_inout3), (annotation_object_calleeowns),
2629 (annotation_object_calleesowns), (annotation_object_get_strings),
2630 (annotation_object_with_voidp), (annotation_object_get_objects),
2631 (annotation_object_create_object), (annotation_object_allow_none):
2632 * tests/scanner/annotation.h:
2633 * tests/scanner/foo-expected.gir:
2634 * tests/scanner/foo.c:
2635 * tests/scanner/foo.h:
2636 Split out annotation tests out of foo
2638 2008-08-20 Johan Dahlin <johan@gnome.org>
2640 * tests/scanner/Foo-expected.gir:
2641 * tests/scanner/Makefile.am:
2642 * tests/scanner/foo-expected.gir:
2643 * tests/scanner/foo-object.h:
2644 * tests/scanner/foo.c:
2645 Foo->foo, foo-object.h -> foo.h
2647 2008-08-20 Johan Dahlin <johan@gnome.org>
2649 * tests/scanner/Foo-expected.gir:
2650 * tests/scanner/Makefile.am:
2651 * tests/scanner/drawable-expected.gir:
2652 * tests/scanner/drawable.c (test_drawable_class_init),
2653 (test_drawable_init):
2654 * tests/scanner/drawable.h:
2655 * tests/scanner/foo-object.h:
2656 * tests/scanner/foo.c (foo_boxed_method):
2657 Move the drawable parts out of Foo to its own test.
2659 2008-08-20 Johan Dahlin <johan@gnome.org>
2661 * tests/scanner/Foo-expected.gir:
2662 * tests/scanner/foo-object.h:
2663 * tests/scanner/foo.c (foo_drawable_class_init),
2664 (foo_drawable_init):
2665 Add a based on GdkDrawable which generates
2668 2008-08-19 Colin Walters <walters@verbum.org>
2670 * giscanner/transformer.py: Don't try
2671 to strip prefix before namespace.
2673 2008-08-19 Johan Dahlin <johan@gnome.org>
2675 * giscanner/transformer.py:
2676 * tests/scanner/Foo-expected.gir:
2677 * tests/scanner/foo-object.h:
2678 Add support for typedef void foo type of
2681 2008-08-19 Johan Dahlin <johan@gnome.org>
2684 * giscanner/girwriter.py:
2685 * giscanner/glibtransformer.py:
2686 * giscanner/transformer.py:
2687 * tests/scanner/Foo-expected.gir:
2688 Add basic support for union, base the code much
2689 on Struct. Add a testcase.
2691 2008-08-19 Johan Dahlin <johan@gnome.org>
2693 * tests/scanner/Foo-expected.gir:
2694 * tests/scanner/foo-object.h:
2695 Add a union testcase which the compiler currently
2698 2008-08-19 Johan Dahlin <johan@gnome.org>
2700 * gobject-introspection-1.0.pc.in:
2701 Add a g_ir_compiler variable
2703 2008-08-19 Colin Walters <walters@verbum.org>
2705 * giscanner/ast.py: Rework types to be more closely
2707 * giscanner/girparser.py: Parse more bits.
2708 * giscanner/girwriter.py: Write sequences in a new
2709 way that specifies container type.
2710 * giscanner/glibast.py: Adjust for ast.py changes,
2711 add 'ctype' property to GLibObject and GLibInterface
2712 so we can look things up by it later.
2713 * gicanner/transformer.py: Names is new class holding
2714 the various namespaces we manage. Do not confuse
2715 with Namespace which is toplevel XML node effectively.
2716 Rework all type resolution to go through
2717 _resolve_type_name_1.
2718 * giscanner/glibtransformer.py: Raise UnknownTypeError
2719 instead of ValueError for cleanliness. Add Unresolved
2720 class to mark types whose parent we haven't seen yet.
2721 Use new Names object from transformer.py.
2722 Correctly look up parent=.
2723 Fix type validation to handle sequences.
2724 * tests/scanner/Foo-expected.gir: Update for sequence
2725 work, int instead of int32.
2726 * tools/g-ir-scanner: Add --noclosure option
2727 * gir/Makefile.am: Use --noclosure by default for
2730 2008-08-18 Johan Dahlin <johan@gnome.org>
2732 * gir/gio-2.0-good.gir:
2733 * gir/glib-2.0-good.gir:
2734 * gir/gobject-2.0-good.gir:
2737 2008-08-18 Johan Dahlin <johan@gnome.org>
2740 * giscanner/girparser.py:
2741 * giscanner/girwriter.py:
2742 * giscanner/glibast.py:
2743 * giscanner/glibtransformer.py:
2744 * giscanner/transformer.py:
2745 * tests/scanner/Foo-expected.gir:
2746 * tests/scanner/foo-object.h:
2747 * tests/scanner/utility-expected.gir:
2748 * tests/scanner/utility.h:
2749 Redo type resolving and validation.
2750 Add a couple of new tests.
2751 Patch mostly written by Colin.
2753 2008-08-18 Johan Dahlin <johan@gnome.org>
2756 * giscanner/girparser.py:
2758 * giscanner/transformer.py:
2759 Improve enum parsing for enums without a GType.
2760 Make flags/enum references to other girs work
2761 * giscanner/utils.py:
2763 * tests/scanner/Makefile.am:
2764 * tests/scanner/foo-object.h:
2765 * tests/scanner/utility-expected.gir:
2766 * tests/scanner/utility.h:
2767 Add a new test for external enum references
2769 2008-08-18 Johan Dahlin <johan@gnome.org>
2771 * docs/global-module-registry.txt: Update
2773 * tests/array.gir: Update with new type proposal
2775 * girepository/girepository.c (g_type_tag_to_string):
2776 * girepository/girepository.h:
2777 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2779 * girepository/girnode.h:
2780 Make enum serializing functions public. Clean up some whitespace.
2782 2008-08-17 Johan Dahlin <johan@gnome.org>
2784 * docs/global-module-registry.txt:
2785 Add a document for an on disk module registry format
2787 2008-08-17 Johan Dahlin <johan@gnome.org>
2790 * gir/gio-2.0-good.gir:
2793 2008-08-17 Johan Dahlin <johan@gnome.org>
2796 * gir/glib-2.0-good.gir:
2797 * gir/gobject-2.0-good.gir:
2798 * giscanner/cgobject.py:
2799 * giscanner/glibtransformer.py:
2800 Regenerate GObject & GType.
2801 Avoid warnings when generating gobject-2.0.gir.
2802 Introspect a little more, and skip *_get_type functions.
2804 2008-08-17 Colin Walters <walters@verbum.org>
2806 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2807 Rename to -good, always generate during build.
2808 * gir/Makefile.am: Ensure .gir files dep on
2809 all scanner sources.
2810 * Makefile.am: Switch build order to ensure
2811 the scanner is ready before we do gir/.
2812 * tools/g-ir-scanner: Look for .git too.
2814 2008-08-17 Johan Dahlin <johan@gnome.org>
2816 * girepository/gtypelib.c (validate_enum_blob):
2817 * giscanner/glibtransformer.py:
2818 * giscanner/transformer.py:
2819 Remove resolve_possible_typedefs, it was unused.
2820 Allow multiple enum values of the sample value in an enum,
2821 since it's actually pretty common.
2822 Register enums so they can be resolved too.
2824 2008-08-16 Johan Dahlin <johan@gnome.org>
2826 * giscanner/girparser.py:
2827 Parse enumeration/bitfield.
2829 2008-08-16 Johan Dahlin <johan@gnome.org>
2831 * giscanner/girparser.py:
2834 2008-08-16 Johan Dahlin <johan@gnome.org>
2836 * giscanner/glibtransformer.py:
2837 Resolve type names for alias targets
2838 * giscanner/transformer.py:
2839 Skip FILE* parameters fow now
2841 2008-08-16 Johan Dahlin <johan@gnome.org>
2844 * gir/gobject-2.0.gir:
2847 * tests/scanner/Makefile.am:
2850 2008-08-15 Colin Walters <walters@verbum.org>
2852 * giscanner/glibtransformer.py: Explicitly construct
2853 new list, since we're deleting as we iterate.
2854 Don't delete all structures which end in Class; just
2855 ones which have a paired GObject.
2856 Fix printing of type warning.
2857 * giscanner/transformer.py: Make strip_namespace_object
2858 be the identity function if it doesn't match the
2861 2008-08-15 Colin Walters <walters@verbum.org>
2863 * giscanner/cgobject.py: Define yet more argument
2864 prototypes; fix prototype for g_type_fundamental.
2866 2008-08-14 Johan Dahlin <johan@gnome.org>
2868 * tests/Makefile.am:
2869 * tests/constant.gir:
2870 * tests/gobject.gir:
2872 * tools/generate.c (write_struct_info):
2873 Fix generator for constant/gobject/struct
2875 2008-08-14 Johan Dahlin <johan@gnome.org>
2877 * tests/Makefile.am:
2879 * tools/generate.c (write_enum_info):
2880 Fix generation of enum/bitfields
2882 2008-08-14 Johan Dahlin <johan@gnome.org>
2884 * girepository/girparser.c (start_field), (start_constant),
2885 (start_type), (end_element_handler):
2886 Clear up constant parsing
2891 * tools/generate.c (write_callable_info), (write_function_info),
2892 (write_callback_info), (write_constant_info), (write_signal_info),
2893 (write_vfunc_info), (write_property_info), (write_object_info),
2894 (write_interface_info):
2895 Constants/Signals are handled now.
2897 2008-08-14 Johan Dahlin <johan@gnome.org>
2899 * girepository/girparser.c (start_type):
2900 Don't require c:type.
2901 * tests/Makefile.am:
2904 Update, remove parts we don't support yet
2905 * tests/roundtrips.sh:
2907 * tools/generate.c (write_type_info), (write_field_info),
2908 (write_callable_info), (write_struct_info):
2909 Make it emit proper gir.
2911 2008-08-14 Johan Dahlin <johan@gnome.org>
2913 * giscanner/transformer.py:
2914 New internal function for adding a new node.
2916 2008-08-14 Johan Dahlin <johan@gnome.org>
2919 Define an internal _H_ variable so we skip parsing both
2920 i18n headers, only one is needed.
2922 Add the glib-2.0.gir too.
2923 * giscanner/glibast.py:
2924 Add gconstpointer as an alias for ANY
2925 * giscanner/transformer.py:
2926 Do not lower case enumeration names per se.
2927 Skip functions which has parameters called 'va_list'
2929 2008-08-14 Colin Walters <walters@verbum.org>
2931 * giscanner/transformer.py: Comment data structures.
2932 Also squash pointers in resolve_type_name to correspond
2933 with what we do for params.
2934 * giscanner/glibtransformer.py: Print warnings in more
2935 situations. Rework checks for method/constructor to
2936 look up in our GType database instead of just checking
2937 for *. Avoid generating <record> for GObject which
2938 duplicate the <class>.
2939 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2942 2008-08-14 Johan Dahlin <johan@gnome.org>
2944 * giscanner/girwriter.py:
2945 * giscanner/glibast.py:
2946 * giscanner/glibtransformer.py:
2947 * giscanner/transformer.py:
2949 * tests/Makefile.am:
2950 Add pyflakes.py and run it in make check.
2951 Update the source code to fix the errors reported by
2954 2008-08-14 Johan Dahlin <johan@gnome.org>
2957 * giscanner/girparser.py:
2958 * giscanner/glibast.py:
2959 * giscanner/glibtransformer.py:
2960 Refactor the parser a bit.
2961 Add parent type to interfaces and update callsites.
2963 2008-08-14 Johan Dahlin <johan@gnome.org>
2965 * giscanner/glibtransformer.py:
2966 * giscanner/utils.py:
2967 Refactor a bit, avoid isinstance and add a method
2968 for each type we parse.
2970 2008-08-14 Johan Dahlin <johan@gnome.org>
2973 * giscanner/girparser.py:
2974 * giscanner/glibtransformer.py:
2975 * tests/Makefile.am:
2976 Run pep8.py in make check, fix old errors.
2978 2008-08-13 Colin Walters <walters@verbum.org>
2980 * giscanner/girparser.py: Parse records.
2982 2008-08-13 Colin Walters <walters@verbum.org>
2984 * gir/Makefile.am: Install again.
2985 * gir/gobject-2.0.gir: Add some more bits.
2987 2008-08-13 Colin Walters <walters@verbum.org>
2989 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2990 * giscanner/girparser.py: Handle aliases.
2991 * giscanner/transformer.py: Record aliases. Make resolver
2992 functions public; we now call into these explicitly from
2993 glibtransformer. Handle resolving aliases.
2994 * giscanner/glibtransformer.py: Separate our internal namespace
2995 from included ones. Call up into transformer's resolver functions.
2997 2008-08-13 Johan Dahlin <johan@gnome.org>
2999 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3000 * girepository/girparser.c (start_class):
3001 * giscanner/glibtransformer.py:
3002 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3004 2008-08-13 Johan Dahlin <johan@gnome.org>
3006 * giscanner/cgobject.py:
3007 Register GInitiallyUnowned
3008 * giscanner/girwriter.py:
3009 * giscanner/glibtransformer.py:
3010 Special case GObject/GInitially owned as they are a bit special to use.
3012 2008-08-13 Colin Walters <walters@verbum.org>
3014 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3015 Object is in GObject namespace.
3017 2008-08-13 Colin Walters <walters@verbum.org>
3019 * giscanner/girparser.py: Fix processing of functions
3022 2008-08-13 Colin Walters <walters@verbum.org>
3024 * giscanner/girparser.py: Parse more than just <class.
3025 * giscanner/glibtransformer.py: Put aliases in a separate
3026 data structure since their name is not canonicall.
3027 * giscanner/transformer.py: Handle resolving type names
3030 2008-08-13 Johan Dahlin <johan@gnome.org>
3032 * tools/g-ir-scanner:
3033 Allow multiple libraries
3034 * giscanner/glibtransformer.py:
3035 Rename load_library to add_library, traverse over all libraries
3036 when trying to resolve a function
3038 2008-08-12 Colin Walters <walters@verbum.org>
3040 * giscanner/transformer.py: Record typedefs as <alias> elements.
3041 Also attempt to look up types in external namespaces.
3042 * giscanner/girwriter.py: Write them.
3043 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3044 checks. Resolve interface methods and properties.
3045 * tests/scanner/foo-object.h: Add a method with typedef.
3046 * tests/scanner/Foo-expected.gir: Update.
3047 * girepository/girnode.c: Debug tweaks.
3048 * girepository/girparser.c: Make a first pass through the XML where we
3049 record all the aliases. This lets us resolve them as we go through the
3051 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3052 from gir-repository.
3054 2008-08-12 Colin Walters <walters@verbum.org>
3056 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3057 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3059 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3061 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3063 2008-08-12 Colin Walters <walters@verbum.org>
3065 * giscanner/glibtransformer.py: Also transform object properties.
3067 2008-08-12 Colin Walters <walters@verbum.org>
3069 * giscanner/glibtransformer.py: Also transform callbacks
3070 and structure field types.
3071 * tests/scanner/Fooe-expected.gir: Update to expect correct
3072 names for callbacks and structs.
3074 2008-08-12 Colin Walters <walters@verbum.org>
3076 * girepository/girparser.c: Handle 'any'.
3077 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3078 Add test for void *.
3080 2008-08-12 Colin Walters <walters@verbum.org>
3082 * giscanner/glibtransformer.py: We need to do type
3083 resolution in a second pass after we've seen all the
3084 enums, records, etc.
3086 2008-08-12 Colin Walters <walters@verbum.org>
3088 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3089 Add enum return value.
3090 * giscanner/glibtransformer.py: Transform function return types
3093 2008-08-12 Colin Walters <walters@verbum.org>
3095 * tests/scanner/Makefile.am: Dep .gir files on scanner
3096 sources too. Also remove @ so we see scanner invocations.
3098 2008-08-12 Colin Walters <walters@verbum.org>
3100 * girepository/girparser.c, girepository/gtypelib.c,
3101 girepository/gtypelib.h, girepository/girnode.c:
3102 Remove usage of (GAPI-oriented) TypeTag in favor of
3103 GITypeTag from girepository.h.
3105 2008-08-10 Colin Walters <walters@verbum.org>
3107 * tests/roundtrips.sh: Use the correct tests.
3109 2008-08-10 Colin Walters <walters@verbum.org>
3111 * giscanner/cgobject.py: Declare/wrap a few more functions.
3112 Fix parameter types for g_object_new and g_type_fundamental.
3114 2008-08-10 Colin Walters <walters@verbum.org>
3116 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3117 us to declare types for both return value and parameters. The
3118 ctypes default of 'int' is bad because it hides 32/64 bit
3119 problems. Convert all existing functions to use it.
3121 2008-08-09 Johan Dahlin <johan@gnome.org>
3123 * giscanner/__init__.py:
3125 * giscanner/cgobject.py:
3126 * giscanner/gidlparser.py:
3127 * giscanner/gidlwriter.py:
3128 * giscanner/girparser.py:
3129 * giscanner/girwriter.py:
3130 * giscanner/glibast.py:
3131 * giscanner/glibtransformer.py:
3132 * giscanner/odict.py:
3133 * giscanner/sourcescanner.py:
3134 * giscanner/transformer.py:
3135 * giscanner/utils.py:
3136 * giscanner/xmlwriter.py:
3137 * tools/g-ir-scanner:
3141 2008-08-09 Johan Dahlin <johan@gnome.org>
3144 * relaxng/c-types.xml:
3145 * relaxng/g-types.xml:
3146 * relaxng/relaxng.rng:
3148 Remove outdated relaxng schemas.
3150 2008-08-09 Johan Dahlin <johan@gnome.org>
3153 Rename metadata to typelib in variable names,
3156 2008-08-09 Johan Dahlin <johan@gnome.org>
3160 Remove old C scanner, which got rewritten in python.
3162 2008-08-09 Johan Dahlin <johan@gnome.org>
3164 * girepository/Makefile.am:
3165 * tools/Makefile.am:
3166 * tools/girmodule.c:
3167 * tools/girmodule.h:
3170 * tools/girparser.c:
3171 * tools/girparser.h:
3172 * tools/girwriter.c:
3173 * tools/girwriter.h:
3174 Move shared *.[ch] files to girepository from tools
3176 2008-08-09 Johan Dahlin <johan@gnome.org>
3178 * tests/Makefile.am:
3181 * tests/constant.test:
3183 * tests/errors.test:
3184 * tests/function.test:
3185 * tests/gobject.test:
3186 * tests/interface.test:
3187 * tests/object.test:
3188 * tests/struct.test:
3193 Rename *.test to *.gir
3195 2008-08-09 Johan Dahlin <johan@gnome.org>
3198 * tests/Makefile.am:
3199 * tests/parser/Foo-expected.gir:
3200 * tests/parser/Makefile.am:
3201 * tests/parser/foo-object.h:
3202 * tests/parser/foo.c:
3203 * tests/parser/utility-expected.gir:
3204 * tests/parser/utility.c:
3205 * tests/parser/utility.h:
3206 * tests/scanner/Makefile.am:
3207 Rename tests/parser to test/scanner
3209 2008-08-08 Colin Walters <walters@verbum.org>
3211 * tests/roundtrips.sh: Use local .gir files again.
3213 2008-08-08 Colin Walters <walters@verbum.org>
3215 * tests/invoke/Makefile.am: .gir file depends on libtool
3218 2008-08-08 Colin Walters <walters@verbum.org>
3220 * tools/girnode.c: Pass through parent node so we can
3221 print the node whose child is NULL, if that occurs.
3223 2008-08-08 Johan Dahlin <johan@gnome.org>
3225 * tests/Makefile.am:
3226 Disable roundtrip tests which are not yet working
3227 * tests/invoke/testfns.gir:
3230 2008-08-08 Johan Dahlin <johan@gnome.org>
3232 * giscanner/girwriter.py:
3234 * giscanner/glibast.py:
3235 * giscanner/glibtransformer.py:
3236 Swap order of members, to keep it consistent with
3239 2008-08-08 Johan Dahlin <johan@gnome.org>
3241 * girepository/gtypelib.c (validate_header):
3242 * girepository/gtypelib.h:
3244 * giscanner/girwriter.py:
3245 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3246 (gi_source_symbol_unref):
3249 * tests/constant.test:
3251 * tests/errors.test:
3252 * tests/function.test:
3253 * tests/gobject.test:
3254 * tests/interface.test:
3255 * tests/invoke/Makefile.am:
3256 * tests/invoke/testfns.xml:
3257 * tests/object.test:
3258 * tests/parser/Makefile.am:
3259 * tests/roundtrips.sh:
3260 * tests/struct.test:
3265 * tools/Makefile.am:
3266 * tools/compiler.c (main):
3267 * tools/generate.c (write_callable_info), (write_function_info),
3269 * tools/gidlmodule.c:
3270 * tools/gidlmodule.h:
3273 * tools/gidlparser.c:
3274 * tools/gidlparser.h:
3275 * tools/gidlwriter.c:
3276 * tools/gidlwriter.h:
3277 * tools/scanner.c (create_node_from_gtype),
3278 (create_node_from_ctype), (g_igenerator_process_properties),
3279 (g_igenerator_process_signals), (g_igenerator_create_object),
3280 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3281 (g_igenerator_create_enum), (g_igenerator_create_flags),
3282 (g_igenerator_process_function_symbol),
3283 (g_igenerator_process_unregistered_struct_typedef),
3284 (g_igenerator_process_struct_typedef),
3285 (g_igenerator_process_union_typedef),
3286 (g_igenerator_process_enum_typedef),
3287 (g_igenerator_process_function_typedef),
3288 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3289 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3290 Merge in the gir-compiler branch.
3291 Thanks to Philip and Colin for their help.
3293 2008-07-26 Colin Walters <walters@verbum.org>
3295 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3296 and g-idl-generate to go along with how we're changing this
3297 module to be installed.
3298 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3300 2008-07-24 Colin Walters <walters@verbum.org>
3302 * girepository/girepository.c (g_irepository_register): Add
3303 environment variable G_IREPOSITORY_VERBOSE so we can print
3304 out what we're doing.
3305 * girepository/girepository.c (g_irepository_register_file):
3306 Add GError error message to g_debug call.
3308 2008-07-08 Jürg Billeter <j@bitron.ch>
3310 * giscanner/glibast.py:
3314 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3316 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3319 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3322 * giscanner/girwriter.py:
3323 * giscanner/transformer.py:
3324 * tests/parser/Foo-expected.gir:
3325 * tests/parser/foo-object.h:
3326 * tests/parser/foo.c (foo_object_allow_none):
3327 Add support for gtk-doc annotations for allow-none.
3330 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3333 * giscanner/girwriter.py:
3334 * giscanner/glibast.py:
3335 * giscanner/glibtransformer.py:
3336 * giscanner/transformer.py:
3337 * tests/parser/Foo-expected.gir:
3338 Start using abstract type instead of the raw C types.
3339 Register a bunch of glib types we care about.
3341 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3346 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3348 * girepository/girepository.c:
3349 * girepository/gtypelib.c:
3350 * girepository/ginfo.c:
3351 * girepository/ginvoke.c:
3352 * girepository/girepository.h:
3353 * girepository/gtypelib.h:
3354 * girepository/gmetadata.c:
3355 * girepository/Makefile.am:
3356 * girepository/gmetadata.h:
3358 * tools/gidlmodule.c:
3361 * tools/gidlmodule.h:
3362 * tools/gidlparser.c:
3364 Renamed GMetadata to GTypelib
3366 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3368 * giscanner/xmlwriter.py:
3369 Improve line wrapping when > 79 charaters
3371 2008-06-05 Jürg Billeter <j@bitron.ch>
3374 * giscanner/girwriter.py:
3375 * giscanner/transformer.py:
3376 Use <type> element for field types
3377 * tests/parser/Foo-expected.gir:
3380 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3382 * giscanner/glibtransformer.py:
3383 Fix a bug which prevented GdkEvent from being generated
3385 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3387 * giscanner/Makefile.am:
3389 * giscanner/girwriter.py:
3390 * giscanner/glibast.py:
3391 * giscanner/glibtransformer.py:
3392 * giscanner/transformer.py:
3393 * giscanner/utils.py:
3394 * tests/parser/Foo-expected.gir:
3395 Improve enum member parsing and introspection
3397 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3399 * giscanner/scannerparser.y:
3400 * giscanner/sourcescanner.h:
3401 * giscanner/sourcescanner.py:
3402 Add a new source type enum for member.
3403 Use __repr__ for improved debugging
3404 * giscanner/girparser.py:
3406 * giscanner/transformer.py:
3407 Improve parsing of struct members.
3408 * tests/parser/foo-object.h:
3411 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3413 * giscanner/xmlwriter.py:
3414 Improve error reporting when trying to quote None.
3415 * giscanner/girparser.py:
3416 Do not print warnings when including more complete .gir files
3417 * giscanner/girwriter.py:
3418 Do not require a name for parameters, add a todo for singletons
3419 * giscanner/glibtransformer.py:
3420 Refactor the way structs are done, add a couple of hacks to allow
3422 * giscanner/transformer.py:
3423 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3424 * gobject-introspection-1.0.pc.in:
3425 Export girdir, so we can access gobject-2.0.gir from outside
3427 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3429 * tools/g-ir-scanner:
3430 * tests/parser/Makefile.am:
3431 Update sys.path before running the parser so we don't have
3432 to setup PYTHONPATH ourselves.
3436 * girepository/Makefile.am:
3437 * giscanner/transformer.py:
3438 * gobject-introspection-1.0.pc.in:
3439 * gobject-introspection.pc.in:
3440 * tools/Makefile.am:
3442 Rename pkg-config name to gobject-introspection-1.0,
3443 Do not installed anything which is not using the gir format.
3444 Disable compililation the old C scanner, but still keep the source
3445 until all the remaning functionallity has been ported.
3447 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3449 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3450 a crash when symbol->indent is NULL.
3452 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3453 a function to convert a CTYPE symbol to a string
3455 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3458 * giscanner/girwriter.py:
3459 * giscanner/giscannermodule.c
3460 (pygi_source_scanner_append_filename),
3461 (pygi_source_scanner_parse_file):
3462 * giscanner/glibtransformer.py:
3463 * giscanner/sourcescanner.py:
3464 Revert back to using temporary files to send in headers.
3465 Allow Functions to be passed in as callbacks, add a couple
3466 of try/excepts missing features.
3467 We can now scan pango
3469 2008-05-08 Johan Dahlin <johan@gnome.org>
3471 * giscanner/glibtransformer.py:
3472 * giscanner/transformer.py:
3473 Move namespace stripping glibtransformer->transformer
3475 2008-05-08 Johan Dahlin <johan@gnome.org>
3478 * giscanner/girwriter.py:
3479 * giscanner/glibtransformer.py:
3480 * giscanner/transformer.py:
3481 * tools/g-ir-scanner:
3482 Introduce a namespace ast node
3484 2008-05-05 Johan Dahlin <johan@gnome.org>
3486 * giscanner/__init__.py:
3487 * giscanner/sourcescanner.py:
3488 * giscanner/transformer.py:
3489 Move sourcescanner symbols to the sourcescanner module, instead
3490 of in the global __init__ namespace.
3492 2008-05-03 Johan Dahlin <johan@gnome.org>
3494 * giscanner/glibtransformer.py:
3495 * tools/g-ir-scanner:
3496 Handle missing parameters better, allow - and + in .la dlname
3499 2008-05-03 Johan Dahlin <johan@gnome.org>
3501 * giscanner/__init__.py:
3503 * giscanner/girwriter.py:
3504 * giscanner/glibtransformer.py:
3505 * giscanner/transformer.py:
3506 Parse struct fields properly, improve debugging.
3508 2008-04-29 Johan Dahlin <johan@gnome.org>
3511 * giscanner/girwriter.py:
3512 * giscanner/transformer.py:
3513 * tests/parser/Foo-expected.gir:
3515 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3517 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3520 * docs/g-ir-scanner.1:
3521 * metadata-annotations-proposal.txt:
3522 * metadata-format.txt:
3523 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3525 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3527 * giscanner/girwriter.py:
3528 * giscanner/glibtransformer.py:
3529 * giscanner/transformer.py:
3530 * giscanner/xmlwriter.py:
3531 * tests/parser/Foo-expected.gir:
3532 * tests/parser/foo-object.h:
3533 Write record/structs to gir file too. Add a couple of tests,
3534 fix an off by one error in xmlwriter.py.
3536 2008-04-28 Johan Dahlin <johan@gnome.org>
3538 * giscanner/xmlwriter.py: Calculate the line length properly,
3539 include the provided extra indentation in the calculation, really.
3541 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3544 * giscanner/glibast.py:
3545 * giscanner/glibtransformer.py:
3546 * giscanner/transformer.py:
3547 * tools/g-ir-scanner:
3548 Add a --strip-prefix and sort out confusion between names and symbols
3549 for functions and struct + derivaties.
3550 Refactor bootstrap of g-ir-scanner, so we can set options on
3551 Transformer() before parsing everything.
3553 2008-04-28 Johan Dahlin <johan@gnome.org>
3555 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3556 when scanning girepository.h
3558 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3559 a __GI_SCANNER__ when we run.
3561 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3564 * giscanner/girwriter.py:
3565 * giscanner/glibast.py:
3566 * giscanner/glibtransformer.py:
3567 * tests/parser/Foo-expected.gir:
3568 * tests/parser/utility-expected.gir:
3569 Rename most c:identifier to c:type. Add new ones to
3570 class/interface/enum/boxed.
3572 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3575 * giscanner/girwriter.py:
3576 * giscanner/glibtransformer.py:
3577 * tests/parser/Foo-expected.gidl:
3578 * tests/parser/Makefile.am:
3579 Move c:identifier from return-value to subchild type,
3580 as per Jürgs suggestion
3582 2008-04-28 Johan Dahlin <johan@gnome.org>
3584 * giscanner/girwriter.py:
3585 * tests/parser/Foo-expected.gir:
3586 Write property.type as a child node.
3588 2008-04-27 Johan Dahlin <johan@gnome.org>
3593 * gidl/gobject-2.0.gidl:
3595 * gir/gobject-2.0.gir:
3596 * tests/parser/Makefile.am:
3597 Replace the GObject gidl with a GObject gir.
3599 2008-04-27 Johan Dahlin <johan@gnome.org>
3601 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3604 * giscanner/xmlwriter.py:
3605 * tests/parser/Foo-expected.gir:
3606 Include indentation in line length calculation
3608 2008-04-27 Johan Dahlin <johan@gnome.org>
3610 * giscanner/girparser.py:
3611 Prettify NS parsing using elementtree.
3613 2008-04-27 Johan Dahlin <johan@gnome.org>
3616 * giscanner/Makefile.am:
3617 * giscanner/girparser.py:
3618 * giscanner/glibtransformer.py:
3619 * tests/parser/Foo-expected.gidl:
3620 * tests/parser/Foo-expected.gir:
3621 * tests/parser/Makefile.am:
3622 * tests/parser/utility-expected.gidl:
3623 * tests/parser/utility-expected.gir:
3624 * tools/g-ir-scanner:
3625 Switch over to GIR as the default format. Add a simple GIDL
3627 Update tests and fix simplify makefiles by depending
3628 on GNU make extensions.
3630 2008-04-27 Johan Dahlin <johan@gnome.org>
3632 * giscanner/xmlwriter.py:
3633 Wrap attributes for lines which are wider than 79 characters
3635 * giscanner/scannerlexer.l:
3636 Allow parenthesis in annotations
3639 * giscanner/gidlwriter.py:
3640 * giscanner/girwriter.py:
3641 * giscanner/glibtransformer.py:
3642 * giscanner/transformer.py:
3643 Add initial sequence support, including annotation.
3644 Refactor type handling a bit.
3646 2008-04-27 Johan Dahlin <johan@gnome.org>
3648 * tests/parser/Foo-expected.gidl:
3649 * tests/parser/foo-object.h:
3650 * tests/parser/foo.c (foo_object_class_init),
3651 (foo_object_get_strings), (foo_object_get_objects):
3652 Add two new functions to check sequence return values.
3653 Also fixes a compilation warning.
3655 2008-04-27 Johan Dahlin <johan@gnome.org>
3657 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3658 a compilation warning.
3660 * tools/Makefile.am (g_ir_scanner_SOURCES):
3661 g-ir-scanner has no sources.
3663 2008-04-25 Johan Dahlin <johan@gnome.org>
3665 * giscanner/Makefile.am:
3667 * giscanner/gidlparser.py:
3668 * giscanner/gidlwriter.py:
3669 * giscanner/girwriter.py:
3670 * giscanner/glibast.py:
3671 * giscanner/glibtransformer.py:
3672 * giscanner/transformer.py:
3673 Split out nodes to ast.py and glibast.py
3675 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3677 * giscanner/Makefile.am:
3678 * giscanner/gidlparser.py:
3679 * giscanner/gidlwriter.py:
3680 * giscanner/girwriter.py:
3681 * giscanner/glibtransformer.py:
3682 * giscanner/gobjecttreebuilder.py:
3683 * giscanner/transformer.py:
3684 * giscanner/treebuilder.py:
3685 * tools/g-ir-scanner:
3686 Rename treebuilder to transformer and
3687 gobjectreebuilder to glibtransformer.
3689 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3691 * giscanner/Makefile.am:
3692 * giscanner/__init__.py:
3693 * giscanner/cgobject.py:
3694 * giscanner/gidlparser.py:
3695 * giscanner/gidlwriter.py:
3696 * giscanner/girwriter.py:
3697 * giscanner/gobjecttreebuilder.py:
3698 * giscanner/odict.py:
3699 * giscanner/sourcescanner.py:
3700 * giscanner/treebuilder.py:
3701 * giscanner/xmlwriter.py:
3702 * tools/Makefile.am:
3703 * tools/g-ir-scanner:
3704 Add LGPLv2 license header and install all python files
3706 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3709 * giscanner/gidlwriter.py:
3710 * giscanner/giscannermodule.c (pygi_source_directive_new),
3711 (directive_get_options), (pygi_source_symbol_new),
3712 (symbol_get_base_type), (pygi_source_type_new),
3713 (type_get_base_type), (type_get_child_list),
3714 (pygi_source_scanner_get_symbols),
3715 (pygi_source_scanner_get_directives):
3716 * giscanner/gobjecttreebuilder.py:
3717 * giscanner/sourcescanner.py:
3718 * giscanner/treebuilder.py:
3719 * tests/parser/foo-object.h:
3720 Add support for virtual methods.
3721 Pair struct FooClass with struct Foo.
3722 Clean up the SourceScanner bindings a bit.
3723 Add a testcase for virtual methods.
3725 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3727 * giscanner/cgobject.py:
3728 * giscanner/gidlwriter.py:
3729 * giscanner/gobjecttreebuilder.py:
3730 Add support for signals
3732 * tests/parser/foo.c (foo_object_class_init):
3733 * Foo-expected.gidl:
3734 Add a signal and update the expected output.
3736 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3738 * giscanner/gidlwriter.py:
3739 * giscanner/girwriter.py:
3740 * giscanner/giscannermodule.c (directive_get_name),
3741 (directive_get_value), (directive_get_options),
3742 (symbol_get_directives), (symbol_set_directives),
3743 (pygi_source_scanner_parse_file),
3744 (pygi_source_scanner_lex_filename),
3745 (pygi_source_scanner_get_directives), (init_giscanner):
3746 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3747 * giscanner/sourcescanner.h:
3748 * giscanner/sourcescanner.py:
3749 * giscanner/treebuilder.py:
3750 * tools/g-ir-scanner:
3751 Add support for source/header annotations.
3753 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3755 * giscanner/gidlwriter.py:
3756 * giscanner/girwriter.py:
3757 * giscanner/gobjecttreebuilder.py:
3758 * giscanner/treebuilder.py:
3759 Add support for Callbacks
3761 2008-04-22 Havoc Pennington <hp@pobox.com>
3763 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3764 not in metadata->module, look for it in the global module, in case
3765 some other object or the app itself provides the symbol.
3767 2008-04-22 Havoc Pennington <hp@pobox.com>
3769 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3770 dlopening a library that is already in the main app, by checking
3771 whether one of the lib's symbols is already loaded.
3773 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3775 * tests/parser/Foo-expected.gidl:
3776 * tests/parser/foo-object.h:
3779 2008-04-22 Havoc Pennington <hp@pobox.com>
3781 * girepository/ginfo.c (g_interface_info_find_method):
3782 Use interface_blob_size not object_blob_size to compute offset.
3784 2008-04-22 Havoc Pennington <hp@pobox.com>
3786 * girepository/gmetadata.c (_g_metadata_init): remove
3787 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3788 (Glade and Clutter for example) rely on being loaded globally.
3790 2008-04-22 Havoc Pennington <hp@pobox.com>
3792 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3793 function to get the GType given a RegisteredTypeInfo
3795 2008-04-22 Johan Dahlin <johan@gnome.org>
3797 * COPYING: Add a LGPL license, to prevent automake to
3798 put in a copy of GPL here. Pointed out by Havoc.
3800 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3801 (g_type_info_is_pointer), (g_type_info_get_tag),
3802 (g_type_info_get_param_type), (g_type_info_get_interface),
3803 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3804 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3805 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3806 (g_object_info_get_interface), (g_object_info_get_field),
3807 (g_interface_info_get_prerequisite),
3808 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3809 * girepository/ginvoke.c (get_ffi_type):
3810 * girepository/girepository.h:
3811 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3812 (g_metadata_check_sanity), (validate_header),
3813 (validate_array_type_blob), (validate_iface_type_blob),
3814 (validate_param_type_blob), (validate_error_type_blob),
3815 (validate_type_blob), (validate_constant_blob),
3816 (validate_struct_blob), (validate_enum_blob):
3817 * girepository/gmetadata.h:
3818 * tests/Makefile.am:
3819 * tests/invoke/Makefile.am:
3820 * tests/invoke/invoke.c (main):
3821 * tests/roundtrips.sh:
3822 * tools/Makefile.am:
3823 * tools/compiler.c (format_output), (write_out_metadata), (main):
3824 * tools/generate.c (write_type_name), (write_type_info),
3825 (write_constant_value), (write_enum_info), (load_metadata), (main):
3826 * tools/gidlcompilercontext.c:
3827 * tools/gidlcompilercontext.h:
3828 * tools/gidlcompilerentrynode.c:
3829 * tools/gidlcompilerentrynode.h:
3830 * tools/gidlcompilertypenode.c:
3831 * tools/gidlcompilertypenode.h:
3832 * tools/gidlmodule.c (g_idl_module_build_metadata):
3833 * tools/gidlmodule.h:
3834 * tools/gidlnode.c (init_stats), (dump_stats),
3835 (g_idl_node_get_size), (g_idl_node_get_full_size),
3836 (g_idl_node_cmp), (g_idl_node_can_have_member),
3837 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3838 (parse_int_value), (parse_uint_value), (parse_float_value),
3839 (parse_boolean_value), (find_entry_node), (find_entry),
3840 (serialize_type), (g_idl_node_build_metadata), (write_string):
3842 * tools/gidlparser.c (parse_type_internal):
3843 * tools/quote-file.sh:
3844 Revert revisions 157,149-148,136-129 and 120.
3845 Move back to using g-idl-generate to generate the metadata and
3846 avoids dependency on a c compiler.
3848 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3850 * giscanner/girwriter.py:
3851 * tools/g-ir-scanner:
3852 Add an initial GIR writer and a --format option to g-ir-scanner
3854 2008-04-21 Johan Dahlin <johan@gnome.org>
3856 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3857 gobject-2.0 and raise ImportError if not found.
3859 * giscanner/gidlparser.py:
3860 * giscanner/gidlwriter.py:
3861 * giscanner/gobjecttreebuilder.py:
3862 * tools/g-ir-scanner:
3863 Add a --include argument to include types from other idls.
3864 Add a minimalistic GIDL parser (just objects for now)
3865 Implement resolving of external type references and use it to
3866 resolve parent types, argument types and return types.
3868 2008-04-21 Johan Dahlin <johan@gnome.org>
3870 * giscanner/gidlwriter.py:
3871 * giscanner/gobjecttreebuilder.py:
3872 * giscanner/treebuilder.py:
3873 Add support for properties.
3874 Refactor Class/Interface support a bit, to share more code and
3875 always initialize their method attribute to an empty list.
3877 2008-04-21 Johan Dahlin <johan@gnome.org>
3879 * giscanner/cgobject.py:
3880 Add a workaround for a glib bug interface introspection bug
3881 (object_interface_list_properties, object_class_list_properties):
3882 Cast the return value to GParamSpec.
3884 * tests/parser/Foo-expected.gidl: Update
3885 * tests/parser/foo.c: Add a string property
3887 * giscanner/gobjecttreebuilder.py:
3888 After stripping namespaces, remove the original
3889 item to avoid duplication (GtkButton struct and Button object)
3891 2008-04-21 Johan Dahlin <johan@gnome.org>
3893 * giscanner/gobjecttreebuilder.py:
3894 * giscanner/treebuilder.py:
3895 Strip namespaces before objects, so we'll export
3896 GtkButton as Button in the gtk namespace
3898 2008-04-21 Johan Dahlin <johan@gnome.org>
3900 * giscanner/gidlwriter.py:
3901 * giscanner/gobjecttreebuilder.py:
3902 * giscanner/treebuilder.py:
3903 Add constructors for object/boxed types.
3905 2008-04-21 Johan Dahlin <johan@gnome.org>
3907 * giscanner/gidlwriter.py:
3908 * giscanner/gobjecttreebuilder.py:
3909 Add support for boxed types
3911 2008-04-21 Johan Dahlin <johan@gnome.org>
3913 * giscanner/giscannermodule.c: Mark structures as const,
3914 wrap SourceType.const_string.
3916 * tests/parser/foo-object.h: Add a couple of constants.
3918 * giscanner/gidlwriter.py:
3919 * giscanner/gobjecttreebuilder.py:
3920 * giscanner/treebuilder.py:
3921 Add basic support for interfaces
3923 * tools/g-ir-scanner:
3924 Add -o/--output for writing to a file
3926 2008-04-21 Havoc Pennington <hp@redhat.com>
3928 * TODO: add some C API wishlist items I could think of quickly
3930 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3932 * giscanner/gidlwriter.py:
3933 * giscanner/xmlwriter.py:
3934 Add a simple api for writing tags which can be used
3935 with the new 'with statement' in python 2.5
3937 2008-04-21 Johan Dahlin <johan@gnome.org>
3939 * giscanner/gobjecttreebuilder.py:
3940 Strip namespace and object prefix from method names.
3942 2008-04-21 Johan Dahlin <johan@gnome.org>
3944 * tools/g-ir-scanner (main): Add --pkg option to pass in
3945 pkg-config modules to get cflags from.
3947 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3948 Avoid duplication, reuse function writer for methods.
3950 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3952 * giscanner/gidlwriter.py:
3953 * giscanner/gobjecttreebuilder.py:
3954 * giscanner/treebuilder.py:
3955 * tools/g-ir-scanner:
3956 Resolve libtool .la files.
3957 Strip name spaces for methods.
3958 Add function symbols
3960 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3962 * giscanner/cgobject.py:
3963 * giscanner/gidlwriter.py:
3964 * giscanner/gobjecttreebuilder.py:
3965 * giscanner/treebuilder.py:
3966 Add support for classes and methods
3968 2008-04-20 Johan Dahlin <johan@gnome.org>
3970 * giscanner/gidlwriter.py:
3971 * giscanner/gobjecttreebuilder.py:
3972 * giscanner/odict.py:
3973 Avoid conflicts, keep the output ordered similar to
3974 the order of the input.
3975 Add a simple ordered dictionary implemenation
3977 2008-04-19 Johan Dahlin <johan@gnome.org>
3979 * giscanner/cgobject.py:
3980 * giscanner/gidlwriter.py:
3981 * giscanner/gobjecttreebuilder.py:
3982 * tools/g-ir-scanner:
3983 Start introspecting get-type functions.
3984 Implement support for GLib/GFlags GTypes.
3985 Add a ctype based GObject binding.
3987 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3989 * giscanner/gidlwriter.py:
3990 * giscanner/xmlwriter.py:
3991 * tools/g-ir-scanner:
3992 Add a simplistic gidl writer, which can't do too much.
3994 2008-04-18 Johan Dahlin <johan@gnome.org>
3996 * giscanner/sourcescanner.py:
3997 * giscanner/treebuilder.py:
3998 * tools/g-ir-scanner:
3999 split tree building and source scanning interface to separate files.
4001 2008-04-18 Johan Dahlin <johan@gnome.org>
4003 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4005 - Add support for struct/parameter/return, start parsing of ctypes
4007 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4010 2008-03-31 Johan Dahlin <johan@gnome.org>
4012 * tools/g-ir-scanner:
4013 Start to build abstract syntax node of scanned sources.
4014 Add support for cpp options.
4016 2008-03-27 Johan Dahlin <johan@gnome.org>
4018 * giscanner/giscannermodule.c:
4019 * giscanner/scannerlexer.l:
4020 * giscanner/sourcescanner.c:
4021 * tools/g-ir-scanner:
4023 Add simple pre-processor using subprocess and a PIPE.
4024 Change the parse_file apis to accept a file descriptor.
4026 2008-03-25 Johan Dahlin <johan@gnome.org>
4028 * giscanner/__init__.py:
4029 * tools/g-ir-scanner:
4030 Fix a typo and add an example python test program.
4032 2008-03-25 Johan Dahlin <johan@gnome.org>
4034 * giscanner/__init__.py:
4035 * giscanner/giscannermodule.c:
4036 * giscanner/sourcescanner.c:
4037 * giscanner/sourcescanner.h:
4038 Add constants and wrap a few more SymbolType fields
4040 2008-03-25 Johan Dahlin <johan@gnome.org>
4044 * giscanner/__init__.py:
4045 * giscanner/giscannermodule.c:
4046 * giscanner/Makefile.am:
4048 Add initial python bindings for the scanner and
4049 depend on python 2.5.
4051 2008-03-25 Johan Dahlin <johan@gnome.org>
4055 * giscanner/Makefile.am:
4056 * giscanner/sourcescanner.c:
4057 * giscanner/sourcescanner.h:
4058 * tools/Makefile.am:
4059 * tools/grealpath.h:
4060 * tools/sourcescanner.c:
4061 * tools/sourcescanner.h:
4063 Move the scanner to a separate library.
4065 2008-03-23 Johan Dahlin <johan@gnome.org>
4067 * tools/Makefile.am:
4070 * tools/scannerlexer.l:
4071 * tools/scannerparser.y:
4072 * tools/sourcescanner.c:
4073 * tools/sourcescanner.h:
4074 Split out the source scanner from the generator.
4075 Rename the symbols used in the scanner to use the gi_ prefix.
4076 This should make it possible to use the raw C parser from
4079 2008-03-23 Johan Dahlin <johan@gnome.org>
4081 * tests/parser/Makefile.am (utility.gidl):
4082 * tests/parser/utility-expected.gidl:
4083 Pass in the gobject.gidl since we're defining a GObject.
4085 2008-03-12 Johan Dahlin <johan@gnome.org>
4087 * relaxng/relaxng.rng:
4088 Add a releaxng in relaxng we can use to validate the relaxngs
4091 2008-03-12 Jürg Billeter <j@bitron.ch>
4093 * tools/scanner.c: (g_igenerator_new):
4094 * tools/scannerparser.y:
4095 Fix compiler warnings.
4097 2008-03-12 Jürg Billeter <j@bitron.ch>
4101 * tools/scannerparser.y:
4102 Start fixing memory management in g-idl-scanner.
4104 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4106 * tools/gidlcompilercontext.c: (write_compiled):
4107 Fix critical warning when no shlib passed to g-idl-compiler.
4109 2008-03-12 Johan Dahlin <johan@gnome.org>
4111 * tests/parser/utility-expected.gidl:
4112 * tests/parser/utility.h:
4113 Add a get_type-function, so the scanner actually
4114 parses it as an object.
4116 2008-03-12 Johan Dahlin <johan@gnome.org>
4118 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4121 * tests/parser/Foo-expected.gidl:
4122 * tests/parser/Makefile.am:
4123 * tests/parser/foo-object.h:
4124 * tests/parser/foo.c:
4125 * tests/parser/utility-expected.gidl:
4126 * tests/parser/utility.c:
4127 * tests/parser/utility.h:
4129 Add a new gidl test. 'utility.gidl', which is used to be able
4130 to test external type references. Add a reference to UtilityObject*
4133 2008-03-11 Johan Dahlin <johan@gnome.org>
4137 Remove most global variables
4139 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4141 * tools/scannerlexer.l:
4143 * tests/parser/Foo-expected.gidl:
4144 * tests/parser/foo.c:
4145 * tests/parser/Makefile.am:
4146 * tests/parser/foo-object.h:
4148 Added a few extra tests. Which resulted in finding a few
4149 bugs. Which resulted in me fixing those bugs
4151 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4153 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4154 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4155 Add some comments for strings into generated output for
4158 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4160 * tools/gidlcompilercontext.c: (write_compiled):
4161 Write out the shlibs variable before writing out the strings
4162 length. Fixes compiler warning when using '-l' flag with
4165 2008-03-11 Johan Dahlin <johan@gnome.org>
4167 * tests/parser/Foo-expected.gidl:
4168 * tests/parser/foo-object.h:
4171 * tools/scannerlexer.l:
4172 Add support for parsing return arguments. Add support for
4173 caller-owns return types.
4174 Patch by Philip Van Hoof.
4176 * tools/scannerparser.y:
4177 Remove parsing of the @deprecated syntax used in headers.
4178 We will support gtk-doc deprecation in the future instead.
4180 2008-03-11 Johan Dahlin <johan@gnome.org>
4182 * tools/compiler.c (main): Coding style fixes
4184 2008-03-10 Johan Dahlin <johan@gnome.org>
4187 Add GCOV_LIBS to GILIBS
4189 2008-03-10 Johan Dahlin <johan@gnome.org>
4191 * tests/parser/Foo-expected.gidl:
4192 * tests/parser/foo.c:
4193 Rename null-ok to direction=out
4195 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4197 reviewed and extensively tested by Johan
4199 * tests/parser/Foo-expected.gidl:
4200 * tests/parser/foo-object.h:
4201 * tests/parser/foo.c:
4204 * tools/gidlwriter.c:
4207 * tools/scannerlexer.l:
4208 * tools/scannerparser.y:
4210 Add support for scanning for gtk-doc comments inside
4211 C source files. Add tests
4213 2008-03-10 Johan Dahlin <johan@gnome.org>
4215 * tests/parser/Makefile.am:
4216 * tests/parser/foo.c:
4219 * tools/scannerparser.y:
4220 Add an api to lex filenames.
4221 Lex all source .c files passed in on the command line.
4222 Scan sources in a test and a couple of private structures
4223 which should not be included in the generated gidl
4225 2008-03-10 Johan Dahlin <johan@gnome.org>
4227 * tests/invoke/Makefile.am: Make the generated metadata
4228 depend on the g-idl-compiler
4230 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4232 * tools/gidlmodule.c
4233 * tools/gidlmodule.h
4236 Remove the old g-idl-compiler code.
4239 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4241 * tools/quote-file.sh
4244 Move to using the 'C' struct compiler code.
4246 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4248 * girepository/ginfo.c
4250 Change the way that external references with no namespace
4251 are dealt with. External references with no namespace
4252 are placed into the XML as-if they are a local reference.
4253 This is temporary, but helps with roundtrip tests.
4255 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4257 * girepository/ginfo.c
4258 Add the ability to get the value of a constant of
4259 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4260 is provided as a string.
4262 This would deal properly with:
4263 typedef char* random;
4264 const random = "A string";
4266 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4268 * girepository/ginfo.c
4269 * girepository/girepository.h
4271 Add a function to check if an enum is registered or not.
4272 Previously anything testing this relied on the g-type
4273 string offset having a value of 0.
4275 * girepository/gmetadata.c
4276 * girepository/gmetadata.h
4278 Remove unneccesary or erroneous checks. There were two
4279 metadata validation checks which made sure that the blob
4280 sizes were the same as some magic numbers compiled into the code.
4281 This is wrong as it breaks any forwards compatibility that may
4284 Checks were also present that made sure that unregistered type
4285 blobs had a value of 0 in the g-type offset field. This is
4286 unneccessary. If a type blob is unregistered then any value
4287 in its g-type field is simply invalid.
4289 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4291 * girepository/ginfo.c
4292 * girepository/gmetadata.c
4293 * girepository/gmetadata.h
4295 Change the metadata format to have a standard header
4296 for all the type blobs. Merge the SimpleTypeBlob
4297 and InterfaceTypeBlob into a union. A union of these
4298 two blobs existed previously but was not explicit
4299 in the metadata format.
4301 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4303 * tools/gidlcompilercontext.c
4304 * tools/gidlcompilercontext.h
4305 * tools/gidlcompilerentrynode.c
4306 * tools/gidlcompilerentrynode.h
4307 * tools/gidlcompilertypenode.c
4308 * tools/gidlcompilertypenode.h
4310 Add code to compile a tree of GIdlNodes to
4311 a 'C' struct representing the metadata.
4312 This is to aid cross-compiling. Previously
4313 the g-idl-compiler created a binary blob with
4314 data written in the byte order and alignment
4315 of the tool rather than the intended target.
4317 Cleaned up and improved by Johan and Robert :-)
4319 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4321 * girepository/ginvoke.c
4322 * girepository/girepository.h
4323 * girepository/gmetadata.c
4324 * girepository/gmetadata.h
4326 * tools/gidlparser.c
4327 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4328 to avoid confusion with the interface blob.
4331 * tools/gidlparser.c
4332 Remove magic numbers and replace with type-tag
4333 enumeration symbols.
4335 * girepository/gmetadata.c
4336 Add validate declaration.
4338 2008-03-10 Jürg Billeter <j@bitron.ch>
4340 * tools/gidlparser.c: (parse_type_internal):
4341 * tools/scannerlexer.l:
4342 * tools/scannerparser.y:
4343 Support C99 _Bool type in scanner.
4345 2008-03-10 Jürg Billeter <j@bitron.ch>
4347 * tests/parser/Foo-expected.gidl:
4348 * tests/parser/foo-object.h:
4349 * tests/parser/foo.c: (foo_enum_method):
4350 * tools/scanner.c: (g_igenerator_process_function_symbol):
4351 Don't skip functions that are defined in the namespace of a type
4352 that doesn't support methods, as for example enums.
4354 2008-03-10 Johan Dahlin <johan@gnome.org>
4356 * gidl.dtd: Remove, we're using relaxng for now
4358 * tests/parser/Foo-expected.gidl:
4359 * tests/parser/foo-object.h:
4360 * tests/parser/foo.c:
4361 Rename the enum/flags get_type functions to include the whole type.
4363 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4365 * tools/gidlwriter.c (enum_generate): added "type-name",
4366 "get-type" and "deprecated" missing arguments.
4367 * tests/parser/Foo-expected.gidl:
4368 * tests/parser/foo-object.h: test enum type, and no type.
4370 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4373 Consistent checks, add missing 'test'
4375 2008-03-05 Havoc Pennington <hp@redhat.com>
4377 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4378 does on Fedora 8. Make libffi a hard requirement, since it was in
4379 practice anyway (was not really conditional in the code or
4380 makefile, only in configure).
4382 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4384 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4385 reviewed by: Johan Dahlin <johan@gnome.org>
4387 * tests/Makefile.am:
4388 * tests/roundtrips.sh:
4389 Modify the roundtrips test so that they do not use the
4390 --raw option of the gidl compiler but instead compile a
4391 shared library to use with g_module.
4393 * tests/invoke/Makefile.am:
4394 * tests/invoke/invoke.c:
4395 Modify the invoke tests to build a shared library rather
4396 than use the --raw option.
4398 * tests/invoke/invoke-namespace-find.sh: Removed:
4399 Noone knows why this was here, so removed.
4401 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4403 * tools/scanner.c: (g_igenerator_process_function_symbol):
4404 Move g_idl_node_can_have_member test later, as it broke spotting
4405 get_type's for nodes that can't have members.
4407 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4410 * tools/gidlnode.c: (g_idl_node_can_have_member):
4411 Add g_idl_node_can_have_member.
4413 * tools/scanner.c: (g_igenerator_process_function_symbol):
4414 Use g_idl_node_can_have_member to test if we should add a function
4415 as a member of the type node.
4417 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4419 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4421 * tests/parser/Makefile.am:
4422 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4424 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4426 * tools/scanner.c: (main):
4427 Ignore -pthread when passed to g-idl-scanner.
4429 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4431 * tools/grealpath.h: Added:
4432 * tools/scanner.c: (main):
4433 * tools/scannerlexer.l:
4434 * tools/Makefile.am:
4435 Always use absolute paths with symbolic links resolved when
4436 comparing filenames.
4438 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4440 * gobject-introspection.pc.in:
4441 Provide variables for g-idl-parser, scanner and compiler in the
4444 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4447 * girepository/Makefile.am:
4448 * tools/Makefile.am:
4449 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4451 2008-02-10 Johan Dahlin <johan@gnome.org>
4453 * tests/parser/Foo-expected.gidl:
4454 * tests/parser/foo-object.h:
4455 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4456 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4459 2008-02-10 Johan Dahlin <johan@gnome.org>
4461 * tests/parser/Foo-expected.gidl:
4462 * tests/parser/foo-object.h:
4463 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4464 Add enum and flags test.
4466 2008-02-10 Johan Dahlin <johan@gnome.org>
4470 * girepository/Makefile.am:
4471 Make 'make distcheck' work again.
4473 2008-02-10 Johan Dahlin <johan@gnome.org>
4475 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4478 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4479 check, eg exclude it from BUILT_SOURCES.
4481 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4486 * girepository/Makefile.am:
4487 * m4/Makefile.am: Added:
4488 * m4/as-compiler-flag.m4: Added:
4489 * m4/gcov.m4: Added:
4490 * tools/Makefile.am:
4491 Add ability to generate a coverage report.
4492 Adds configure option --enable-gcov and make rule 'check-coverage'.
4494 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4498 * gidl/Makefile.am: Added:
4499 * girepository/Makefile.am: Added:
4500 * src/Makefile.am: Renamed to tools/Makefile.am:
4501 * src/compiler.c: Renamed to tools/compiler.c:
4502 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4503 * src/generate.c: Renamed to tools/generate.c:
4504 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4505 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4506 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4507 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4508 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4509 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4510 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4511 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4512 * src/ginfo.c: Renamed to girepository/ginfo.c:
4513 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4514 * src/girepository.c: Renamed to girepository/girepository.c:
4515 * src/girepository.h: Renamed to girepository/girepository.h:
4516 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4517 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4518 * src/scanner.c: Renamed to tools/scanner.c:
4519 * src/scanner.h: Renamed to tools/scanner.h:
4520 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4521 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4522 * tests/invoke/Makefile.am:
4523 Split src/ into girepository/ and tools/
4527 * girepository/Makefile.am:
4528 * tests/Makefile.am:
4529 * tests/invoke/Makefile.am:
4530 * tests/parser/Makefile.am:
4531 * tests/roundtrips.sh:
4532 * tools/Makefile.am:
4533 Make distcheck work.
4535 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4537 * tests/invoke/invoke.c: (main):
4538 * tests/invoke/testfns.c: (test6), (test7):
4539 * tests/invoke/testfns.xml:
4540 Add tests for invokation with a GList argument.
4541 Also tests caller-owns return values.
4543 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4546 Add some documentation for GICallableInfo
4548 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4551 Correct syntax errors in the DTD file.
4553 * relaxng/c-types.xml:
4554 * relaxng/g-types.xml:
4556 Add a RelaxNG specification for the GObject Introspection XML data.
4557 The Specification has validated all of the test files.
4559 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4561 * tests/roundtrips.sh:
4562 * tests/struct.test:
4563 Add roundtrip tests for structs.
4565 2008-01-11 Johan Dahlin <johan@gnome.org>
4567 * src/scanner.c (g_igenerator_process_function_symbol):
4568 Refactor out g_idle_node_add_member.
4569 (create_node_from_gtype, create_node_from_ctype):
4570 Use case instead of if...else
4571 (get_type_from_type_id):
4572 Rename to create_node_from_gtype
4573 (get_type_from_ctype):
4574 Rename to create_node_from_ctype
4576 Rename ginode -> node, gitype -> type, gifunc -> func.
4578 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4579 Two new functions, refactor out of scanner.c
4581 * src/scanner.c: (g_igenerator_process_function_symbol):
4582 * src/scannerlexer.l:
4583 Do not save the content of the deprecated variable, only
4586 2008-01-11 Johan Dahlin <johan@gnome.org>
4588 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4590 2008-01-11 Jürg Billeter <j@bitron.ch>
4592 * src/scannerlexer.l:
4593 Fix GTK-Doc parsing.
4595 2008-01-11 Jürg Billeter <j@bitron.ch>
4597 * src/scannerlexer.l:
4598 Fix GTK-Doc parsing.
4600 2008-01-11 Jürg Billeter <j@bitron.ch>
4602 * src/scanner.c: (lookup_symbol):
4603 Return unresolved name if we find unknown symbol.
4605 2008-01-11 Jürg Billeter <j@bitron.ch>
4607 * src/scanner.c: (g_igenerator_generate):
4608 Initialize GObject to fix scanning interface properties.
4610 * tests/parser/Foo-expected.gidl:
4611 * tests/parser/foo-object.h:
4612 * tests/parser/foo.c: (foo_interface_get_type):
4613 Test interfaces with GObject prerequisite.
4615 * tests/parser/Makefile.am:
4616 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4618 2007-12-27 Johan Dahlin <johan@gnome.org>
4620 * src/scannerlexer.l:
4621 Parse gtk-doc comments.
4623 * src/gidlwriter.c: (function_generate):
4624 Reorganize, avoid duplication and add support for
4625 writing deprecated functions.
4627 * src/scannerparser.y:
4629 Add new structure CDirective and functions to create/free them.
4631 * src/scanner.c: (g_igenerator_process_function_symbol),
4632 (g_igenerator_process_unregistered_struct_typedef),
4633 (g_igenerator_process_struct_typedef),
4634 (g_igenerator_process_union_typedef),
4635 (g_igenerator_process_enum_typedef),
4636 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4637 (g_igenerator_start_preprocessor):
4638 Parse @deprecated directive for functions.
4639 Remove some more C99isms.
4640 Send in -C to cpp to avoid stripping comments.
4642 * tests/parser/foo-object.h:
4643 * tests/parser/Foo-expected.gidl:
4644 Add deprecated directive
4646 2007-12-27 Johan Dahlin <johan@gnome.org>
4648 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4649 escape ' and " so it looks more like C.
4652 Unlink temporary file used.
4654 2007-12-27 Johan Dahlin <johan@gnome.org>
4656 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4657 (g_igenerator_start_preprocessor), (main):
4659 * src/scannerparser.y:
4660 Plug a couple of simple memory leaks.
4662 2007-12-27 Johan Dahlin <johan@gnome.org>
4664 * src/scanner.c: (g_igenerator_parse_macros),
4665 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4668 * src/scannerparser.y:
4669 * tests/parser/Makefile.am:
4671 Improve error reporting, return when the preprocessor fails.
4672 Add a verbose parameter, to aid debugging.
4673 Revert to using a temporary file to communicate between the
4674 preprocessor and the parser, because we need to wait for
4675 the exit code from the pre-processor before starting to parse.
4677 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4679 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4680 cparser.y to scannerparser.y
4682 2007-12-11 Johan Dahlin <johan@gnome.org>
4686 * src/scanner.c: (g_igenerator_new):
4688 Get rid of the global the_generator variable.
4690 2007-12-10 Johan Dahlin <johan@gnome.org>
4692 * src/scanner.c (main): Add an output option,
4693 add checks for required parameters
4696 set BUILD_SOURCES and CLEANFILES properly
4698 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4699 (g_writer_write_indent), (g_writer_write_unindent),
4700 (field_generate), (value_generate), (constant_generate),
4701 (property_generate), (function_generate), (vfunc_generate),
4702 (signal_generate), (interface_generate), (struct_generate),
4703 (union_generate), (boxed_generate), (enum_generate),
4704 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4706 * src/scanner.c: (g_igenerator_generate):
4708 * src/scannerwriter.c:
4710 Refactor scannerwriter to only be tied to a GIdlModule and move
4711 it (again!) to gidlwriter.c. Change the writer function to take
4714 2007-12-10 Johan Dahlin <johan@gnome.org>
4717 * src/scanner.c: (g_igenerator_generate):
4719 * src/scannerwriter.c: (g_igenerator_write_inline),
4720 (g_igenerator_write), (g_igenerator_write_indent),
4721 (g_igenerator_write_unindent), (field_generate), (value_generate),
4722 (constant_generate), (property_generate), (function_generate),
4723 (vfunc_generate), (signal_generate), (interface_generate),
4724 (struct_generate), (union_generate), (boxed_generate),
4725 (enum_generate), (node_generate), (module_generate),
4726 (g_scanner_write_file):
4728 Move the scanner gidl writing to a separate source file.
4730 2007-12-10 Johan Dahlin <johan@gnome.org>
4735 Move over all CType construction functions.
4737 * tests/parser/Makefile.am:
4738 Be verbose when printing parsing tests results.
4740 2007-12-10 Johan Dahlin <johan@gnome.org>
4742 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4743 preprocessor handling to here. Start cpp insteado of cc -E,
4744 always include -U__GNUC__, since it's specific to the preprocessor
4747 * tests/parser/Makefile.am (check-local): Silent diff and skip
4748 -U__GNUC__ which is always defined now
4750 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4752 reviewed by: <delete if not using a buddy>
4754 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4755 * tests/parser/Makefile.am:
4757 2007-12-09 Johan Dahlin <johan@gnome.org>
4760 Use GOption for command line options.
4761 (g_igenerator_new, main): Simplify constructor and they way
4762 parameters are passed into it.
4768 * src/gen-introspect.c:
4769 * src/gen-introspect.h:
4771 Rename gen-introspect.[ch] to scanner.[ch]
4773 2007-12-09 Johan Dahlin <johan@gnome.org>
4777 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4778 don't make the repository library and the other utilites link against
4781 * src/gen-introspect.c: (g_igenerator_create_object),
4782 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4783 (g_igenerator_create_enum), (g_igenerator_create_flags),
4784 (g_igenerator_process_module_symbol),
4785 (g_igenerator_process_module), (g_igenerator_generate), (main):
4786 * src/gen-introspect.h:
4787 Refactor g_igenerator_process_types into smaller pieces.
4789 * tests/parser/Makefile.am:
4790 Depend on the gen-introspect binary
4792 2007-12-09 Johan Dahlin <johan@gnome.org>
4794 * src/gen-introspect.c (g_igenerator_process_types):
4795 Break into smaller pieces, one for each generated node type.
4797 2007-12-08 Johan Dahlin <johan@gnome.org>
4799 * src/gen-introspect.c: (g_igenerator_process_types),
4800 (g_igenerator_add_module):
4801 * tests/parser/Foo-expected.gidl:
4802 * tests/parser/foo-object.h:
4803 * tests/parser/foo.c: (foo_subobject_class_init),
4804 (foo_subobject_init):
4806 Add a subobject test and make sure to register defined classes
4807 in the lookup symbol hash table.
4809 2007-12-08 Johan Dahlin <johan@gnome.org>
4813 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4814 (g_igenerator_process_types), (g_igenerator_add_module),
4815 (g_igenerator_add_include_idl), (main):
4816 * src/gen-introspect.h:
4817 * tests/parser/Makefile.am:
4818 * tests/parser/Foo-expected.gidl:
4820 Change the gen-introspect to generate namespaced module names,
4821 such as GLib.Object instead of GObject.
4822 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4823 add a --include-idl parameter to gen-introspect,
4824 and update the parser test.
4826 2007-12-08 Johan Dahlin <johan@gnome.org>
4828 * src/gen-introspect.c:
4829 Move main to the end of the file and attempt to make it valid
4832 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4833 we're not quite ready to generate metadata yet.
4838 Add a simple gen-introspect parser test
4840 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4842 reviewed by: Johan Dahlin <johan@gnome.org>
4845 * gobject-introspection.pc.in:
4847 * src/compiler.c: (format_output), (write_out_metadata), (main):
4848 * src/gen-introspect.c: (main):
4849 * src/gen-introspect.h:
4850 * src/generate.c: (write_callable_info), (write_repository),
4851 (load_metadata), (main):
4852 * src/gidlmodule.c: (g_idl_module_new),
4853 (g_idl_module_build_metadata):
4855 * src/gidlparser.c: (start_element_handler):
4856 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4857 (g_base_info_get_name), (g_base_info_get_namespace),
4858 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4859 (g_base_info_get_metadata), (g_function_info_get_symbol),
4860 (g_function_info_get_flags), (g_function_info_get_property),
4861 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4862 (g_callable_info_may_return_null),
4863 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4864 (g_callable_info_get_arg), (g_arg_info_get_direction),
4865 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4866 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4867 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4868 (g_type_info_get_tag), (g_type_info_get_param_type),
4869 (g_type_info_get_interface), (g_type_info_get_array_length),
4870 (g_type_info_is_zero_terminated),
4871 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4872 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4873 (g_value_info_get_value), (g_field_info_get_flags),
4874 (g_field_info_get_size), (g_field_info_get_offset),
4875 (g_registered_type_info_get_type_name),
4876 (g_registered_type_info_get_type_init),
4877 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4878 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4879 (find_method), (g_struct_info_find_method),
4880 (g_enum_info_get_n_values), (g_enum_info_get_value),
4881 (g_object_info_get_parent), (g_object_info_get_type_name),
4882 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4883 (g_object_info_get_interface), (g_object_info_get_n_fields),
4884 (g_object_info_get_field), (g_object_info_get_n_properties),
4885 (g_object_info_get_property), (g_object_info_get_n_methods),
4886 (g_object_info_get_method), (g_object_info_find_method),
4887 (g_object_info_get_n_signals), (g_object_info_get_signal),
4888 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4889 (g_object_info_get_n_constants), (g_object_info_get_constant),
4890 (g_interface_info_get_n_prerequisites),
4891 (g_interface_info_get_prerequisite),
4892 (g_interface_info_get_n_properties),
4893 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4894 (g_interface_info_get_method), (g_interface_info_find_method),
4895 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4896 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4897 (g_interface_info_get_n_constants),
4898 (g_interface_info_get_constant), (g_property_info_get_flags),
4899 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4900 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4901 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4902 (g_constant_info_get_value), (g_union_info_get_n_fields),
4903 (g_union_info_get_field), (g_union_info_get_n_methods),
4904 (g_union_info_get_method), (g_union_info_is_discriminated),
4905 (g_union_info_get_discriminator_offset),
4906 (g_union_info_get_discriminator):
4907 * src/ginvoke.c: (g_function_info_invoke):
4908 * src/girepository.c: (g_irepository_register),
4909 (g_irepository_unregister), (g_irepository_get_default),
4910 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4911 (g_irepository_get_info), (g_irepository_find_by_name),
4912 (g_irepository_get_shared_library),
4913 (g_irepository_build_search_path), (g_irepository_register_file),
4914 (g_irepository_error_quark):
4915 * src/girepository.h:
4916 * src/gmetadata.c: (g_metadata_get_dir_entry),
4917 (g_metadata_check_sanity), (validate_header),
4918 (validate_array_type_blob), (validate_iface_type_blob),
4919 (validate_param_type_blob), (validate_error_type_blob),
4920 (validate_type_blob), (validate_arg_blob),
4921 (validate_signature_blob), (validate_function_blob),
4922 (validate_callback_blob), (validate_constant_blob),
4923 (validate_value_blob), (validate_field_blob),
4924 (validate_property_blob), (validate_signal_blob),
4925 (validate_vfunc_blob), (validate_struct_blob),
4926 (validate_enum_blob), (validate_object_blob),
4927 (validate_interface_blob), (validate_errordomain_blob),
4928 (validate_union_blob), (validate_blob), (validate_directory),
4929 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4930 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4931 (g_metadata_new_from_mapped_file), (g_metadata_free),
4932 (g_metadata_set_module), (g_metadata_get_namespace):
4934 * tests/Makefile.am:
4935 * tests/invoke/Makefile.am:
4936 * tests/invoke/invoke-namespace-find.sh:
4937 * tests/invoke/invoke.c: (main):
4939 Add a namespace/shared library mapping. fixes #313268.
4941 2007-12-03 Johan Dahlin <johan@gnome.org>
4943 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4946 2007-11-30 Jürg Billeter <j@bitron.ch>
4952 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4953 (g_igenerator_write_inline), (g_igenerator_write),
4954 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4955 (field_generate), (value_generate), (constant_generate),
4956 (property_generate), (function_generate), (vfunc_generate),
4957 (signal_generate), (interface_generate), (struct_generate),
4958 (union_generate), (boxed_generate), (enum_generate),
4959 (node_generate), (module_generate), (get_type_from_type_id),
4960 (str_replace), (g_igenerator_process_properties),
4961 (g_igenerator_process_signals), (g_igenerator_process_types),
4962 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4963 (g_igenerator_process_unregistered_struct_typedef),
4964 (g_igenerator_process_struct_typedef),
4965 (g_igenerator_process_union_typedef),
4966 (g_igenerator_process_enum_typedef),
4967 (g_igenerator_process_function_typedef),
4968 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4969 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4970 (g_igenerator_generate), (main), (csymbol_new),
4971 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4972 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4973 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4974 (eat_hspace), (eat_line), (read_identifier),
4975 (g_igenerator_parse_macros):
4976 * src/gen-introspect.h:
4978 Import gen-introspect to generate introspection information by
4981 2007-11-30 Jürg Billeter <j@bitron.ch>
4983 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4985 2007-11-30 Jürg Billeter <j@bitron.ch>
4987 * src/gidlparser.c: (end_element_handler): Don't leave requires
4990 2007-11-29 Johan Dahlin <johan@gnome.org>
4992 * src/gidlparser.c (parse_type_internal): Add char,
4993 gchar and guchar to the builtin types.
4995 2007-11-26 Johan Dahlin <johan@gnome.org>
4997 * src/ginfo.c: (g_object_info_get_type_name),
4998 (g_object_info_get_type_init):
4999 * src/girepository.c: (g_irepository_is_registered):
5000 * src/girepository.h:
5002 Add g_object_info_get_type_name, g_object_info_get_type_init and
5003 g_irepository_is_registered.
5005 2006-08-14 Jürg Billeter <j@bitron.ch>
5007 * src/gidlparser.c: (end_element_handler): Don't leave
5008 namespace and implements states too early.
5011 2007-11-26 Johan Dahlin <johan@gnome.org>
5013 * src/gmetadata.c (validate_struct_blob):
5014 pass blob_type to validate_function_blob instead of
5015 hard-coding BLOB_TYPE_STRUCT.
5017 Patch by Torsten Schoenfeld, fixes #314190
5019 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5021 * src/compiler.c, src/generate.c, src/gidlnode.c,
5022 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5023 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5024 warnings about return values, signedness mismatches, unused
5025 variables, and unhandles enum values in switch statements.
5027 * tests/invoke/Makefile.am: Don't install the invoke test program.
5028 Add -I ../../src to the cflags used for the test functions files.
5030 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5032 * src/girepository.h: Export g_invoke_error_quark.
5034 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5036 * src/ginvoke.c: Remove the fallback implementation of
5037 g_function_info_invoke since we now formally depend on libffi.
5039 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5041 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5042 Remove these files from cvs, as they are now generated.
5044 * src/gmetadata.c (validate_iface_type_blob): Don't
5045 complain if blob->pointer is not set, since that
5046 happens for enum and flag types. (#308935, Gustavo
5049 * Commit an autoconf-conversion patch by
5050 Gustavo Carneiro (#308708)
5052 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5054 * src/compiler.c (main): Use it here to validate
5055 the generated metadata.
5057 * src/gmetadata.[hc]: Add code to validate a
5060 * metadata-format.txt: Updates
5062 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5064 * tests/*: Add struct offsets to field and vfunc
5067 * src/generate.c (write_vfunc_info): Write offset
5068 information for vfuncs.
5070 * src/gidlnode.c (g_idl_node_build_metadata): Write
5071 the struct offsets into the metadata.
5073 * src/gidlparser.c: Parse the offset attributes of
5074 field and vfunc elements.
5076 * src/gidlnode.h: Add offset members to field and
5079 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5083 * gidl.dtd: Updates.
5085 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5086 file, creates, compiles and runs a C file, and folds the
5087 resulting struct offsets back into the .gidl file.
5089 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5091 * src/gidlparser.c (start_field): Make fields in objects
5094 * src/gidlmodule.c: Include string.h
5099 * metadata-format.txt: Cleanup basic types.
5100 * src/*: Adapt to the changes.
5101 * tests/*: Adapt to the changes.
5102 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5104 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5105 size for enum blobs.
5106 (g_idl_node_get_full_size): Report the correct size for
5109 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5110 error checking for blob sizes.
5112 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5114 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5115 interface types for which is_pointer is FALSE, e.g. enums.
5117 * src/gidlnode.c (g_idl_node_get_full_size)
5118 * src/gidlparser.c (parse_type_internal):
5119 * src/generate.c (write_type_info): Support unspecialized
5120 lists, hashtables and errors. Also emit a '*' after these.
5124 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5128 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5130 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5132 * src/*.c: Change the directory to be addressed by
5133 1-based indexes, and use an index of zero to mean
5136 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5138 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5140 * tests/union.test: Add a union test.
5142 * src/generate.c: Handle unions.
5144 * src/girepository.h:
5145 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5147 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5149 * src/gidlparser.c (start_union): Parse <union> elements.
5151 * src/gidlnode.h: Add a GIdlNodeUnion.
5153 * gidl.dtd: Add a <union> element.
5155 * src/gmetadata.c (g_metadata_check_sanity): Check
5158 * src/gmetadata.h: Add union_blob_size to Header,
5161 * metadata-format.txt: Add a UnionBlob.
5163 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5165 * tests/*: Update testcases.
5167 * src/generate.c (write_callable_info): Don't forget to
5168 write transfer and null-ok attributes for return types
5171 * src/girepository.h:
5172 * src/ginfo.c (g_callable_info_may_return_null):
5173 New function to find out if a function may return NULL.
5175 * src/compiler.c (format_output): Make the generated
5178 * README: Point to a recent libffi snapshot.
5180 * tests/invoke/*: Some invoke tests.
5182 * src/Makefile: Add ginvoke.c and the necessary
5185 * src/girepository.h (g_function_info_invoke): Add
5188 * src/ginvoke.c (g_function_info_invoke): Initial
5189 implementation of invoke functionality based on libffi.
5191 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5192 strings and types hash tables in the right order when
5194 (find_entry_node): Free the name parts.
5196 2005-05-12 Johan Dahlin <johan@gnome.org>
5198 * src/generate.c: Generate consistent end tags.
5202 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5206 * src/gidlparser.c (start_function): Actually add
5207 methods to objects. (Steven Walter)
5209 * src/girepository.h:
5210 * src/ginfo.c: Rename Transfer and Direction to
5211 GITransfer and GIDirection. (Torsten Schoenfeld)
5213 * tests/*: Make tests work with the changes in name
5216 * src/gidlnode.c (find_entry_node): Parse qualified
5217 names and generate xref nodes for them if needed. Don't
5218 require all modules to be loaded any more.
5220 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5223 * src/ginfo.c (g_object_info_get_parent): Return NULL
5224 if blob->parent is 0. Still need to make sure index
5227 * src/generate.c: Generate qualified names when
5228 referring to non-local types. Emit transfer attribute
5231 * src/compiler.c (format_output): Put the function
5232 attributes where gcc accepts them.
5234 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5236 * src/compiler.c (main): Add a --verbose cmdline option
5237 and only log messages if it is specified.
5240 * src/gidlnode.c (init_stats, dump_stats): Collect some
5241 statistics on string and type sharing.
5243 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5244 g_message() instead of fprintf().
5246 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5247 (g_idl_node_get_size): Implement for structs.
5248 (g_idl_node_get_full_size): Handle parent being NULL.
5249 (serialize_type): Handle lookup failures more gracefully.
5251 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5253 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5254 size calculation for 2-parameter types and for objects.
5256 * src/compiler.c: Add a cmdline option for debug output
5257 and install a log handler to implement it.
5258 * src/gidlnode.c: Add some debug spew.
5262 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5263 forget to count the module name when calculating the
5264 required size for the metadata.
5267 * src/gidlparser.c: Fix compiler warnings.
5269 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5271 * src/compiler.c (main): Free the option context.
5273 * gidl.dtd: Clean up handling of names. All elements
5274 have a "name", only the elements corresponding to
5275 actual callable functions (function, method, constructor),
5276 have an additional "symbol" attribute holding the
5277 dlsym()-able function name.
5279 * src/generate.c: Adapt to generate xml matching the
5283 * src/gidlnode.c: Adapt to parse the new dtd.
5285 * tests/*.test: Adjust to the new dtd.
5287 * metadata-format.txt:
5288 * src/gmetadata.h: Remove the short_name field
5290 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5291 * src/girepository.h:
5292 * src/ginfo.c (g_value_info_get_short_name): Removed
5294 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5296 * gidl.dtd: Allow constructors for boxed types,
5297 patch by Jonathan Blandford.
5300 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5302 * --- Initial import ---