1 2008-11-15 Colin Walters <walters@verbum.org>
3 * giscanner/dumper.py: Check return code from pkg-config
6 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
8 * tests/everything/everything.c (test_array_int_in),
10 * tests/everything/everything.h:
11 Rename the int/gtype array tests. Make the return value
12 useful, an aggregation of the array input values.
14 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
16 * tests/everything/Makefile.am:
17 * tests/everything/everything.c:
18 * tests/everything/everything.h:
19 * tests/everything/gitesttypes.c:
20 * tests/everything/gitesttypes.h:
21 Rename gitesttypes.[ch] to everything.[ch]
23 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
25 Bug 560708 – Don't treat arrays that have a length specified as
26 zero-terminated by default
28 * giscanner/transformer.py: Default to non zero terminated for
30 * tests/*: Update, add test for zero vs not.
32 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
34 Bug 557788 - Return types for constructors in generated typelib bogus
36 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
37 obviously broken in the face of duplicate names in different
39 * tests/scanner/*expected.gir: Fix up.
41 2008-11-13 Owen Taylor <otaylor@redhat.com>
43 * girepository/girffi.c: Fix "Unexpected time for time_t"
46 2008-11-13 Colin Walters <walters@verbum.org>
48 Bug 558436 - avoid having scanner load app code
50 * giscanner/cgobject.py: Delete; we no longer load shared
52 * giscanner/dumper.py: Support for linking a library to
53 a stub binary for introspection.
54 * giscanner/glibtransformer.py: Rewrite to use gdump XML
55 from invocation of child binary.
56 * giscanner/transformer.py: Fix up to use fully qualified
57 name in parse tree. Make parse_ctype public so we can use
58 it inside glibtransformer.
59 * tests/scanner/barapp.c: New test, using --program arg
61 * tests/*: Update to use common.mk for invoking scanner.
62 * tools/g-ir-scanner: Add options --program, --program-arg,
64 * docs/g-ir-scanner.1: Update.
66 2008-11-13 Colin Walters <walters@verbum.org>
68 * configure.ac: Depend on Gio, we use it in gdump.c.
69 * girepository/gdump.c: Code to dump GType data to XML.
70 * girepository/girepository.c: Add option group for dumping.
71 * girepository/girepository.h: Define API for the above.
73 2008-11-13 Colin Walters <walters@verbum.org>
75 * common.mk: Add a file to include with Makefile fragments
76 useful for scanner invocation.
78 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
80 * tests/everything/gitesttypes.c (test_filename_return): Return
81 strings in filename encoding.
83 2008-11-13 Owen Taylor <otaylor@redhat.com>
85 Bug 560253 – Add structure and boxed types to Everything test module
87 * tests/everything/gitesttypes.[ch]: Add examples of:
89 Plain old data structs
90 Plain old data structs with nested fields
92 Plain old data boxed with nested fields
93 More complicated boxed types with internal state
95 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
97 * tests/everything/gitesttypes.c (test_gtype_in):
98 * tests/everything/gitesttypes.h:
99 Add a test of GType arrays, a la gtk_list_store_set_columns.
101 2008-11-12 Owen Taylor <otaylor@redhat.com>
103 Bug 560419 – Cache includes when parsing
105 Keep track of all modules parsed within a GIrParser, and when a
106 module is referenced a second time, use the existing parsed copy
107 instead of reparsing.
109 2008-11-12 Owen Taylor <otaylor@redhat.com>
111 Fix management of ParseContext.includes_modules (#560419)
113 * girepository/girparser.c: Fix some trivial bugs in managing the
114 list of include modules. (Add to module's list twice, not
115 initialized to NULL, not freed.)
117 2008-11-12 Owen Taylor <otaylor@redhat.com>
119 Keep aliases and disguised_structures local to each module (#560419)
121 * girepository/girmodule.[ch]: When parsing, keep keep a separate
122 hash tables of aliases and 'disguised' flags for each module, and
123 store that on the module.
125 After parsing an include merge the aliases/disguised flags to the
128 * girepository/girparser.c: Remove 'prefix_aliases' flag and
129 always prefix aliases/disguised structure types when parsing; this
130 simplifies the code considerably.
132 2008-11-12 Owen Taylor <otaylor@redhat.com>
134 Fix mismatches between .gir name and 'name' attribute (#560419)
136 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
137 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
138 where the 'name' element of <namespace/> didn't match the filename of the
139 gir, an assumption that the compiler has always expected and now enforces.
141 2008-11-12 Owen Taylor <otaylor@redhat.com>
143 Only allow one <namespace/> element per <repository/> (#560419)
145 * girepository/girparser.c: The logic in girparser.c didn't work
146 very well if there were multiple <namespace/> nodes within a
147 single <repository/> (context->namespace was always the overall
148 filename and not the the name specified in the <namespace/>
149 element for one thing; this would cause aliases to be mis-prefixed
150 in include modules.) Also check that the "name" in the
151 <namespace/> node matches the filename.
153 2008-11-12 Owen Taylor <otaylor@redhat.com>
155 Add a GirParser object to hold the state of a compilation
157 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
158 GirParser object to hold state that is global across a
159 compilation. Currently just holds the include path, but will
160 eventually also keep a cached list of parsed modules.
162 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
164 * girepository/girepository.c (find_namespace_latest): Fix
167 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
169 * configure.ac: use 'introspection' component for bugs
171 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
173 * tests/everything/gitesttypes.c (test_filename_return):
174 * tests/everything/gitesttypes.h:
175 Add a filename return test.
177 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
179 * tests/offsets/Makefile.am (gitestoffsets.c): fix
180 gen-gitestoffsets invocation with builddir != srcdir
182 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
184 * girepository/girepository.c:
185 Change the element type from utf8 to filename
186 * girepository/girnode.c (g_ir_node_build_typelib):
187 Special case filename equally to utf8 here.
189 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
192 Remove unused variables, add a dependency of girepository.ch, so when
193 they change we rebuild the gir automatically.
195 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
197 * girepository/girepository.c (g_irepository_get_search_path):
198 * girepository/girepository.h:
199 Add a g_irepository_get_search_path, so we can access the search
202 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
204 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
206 * girepository/girparser.c: avoid freeing an uninitialized pointer
208 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
211 * giscanner/glibtransformer.py:
212 * tools/g-ir-scanner:
213 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
214 so we can just pass in --library=foo/bar/baz.la and the scanner
215 does the right thing.
216 Don't warn for _get_type() functions if they don't take any
219 2008-11-11 Owen Taylor <otaylor@redhat.com>
221 Bug 560404 – Prefix types when resolving aliases in included modules
223 * girepository/girparser.c: When resolving aliases in an included
224 module, prefix types before looking them up.
226 2008-11-11 Owen Taylor <otaylor@redhat.com>
228 Compute field offsets and overall size for object structures
230 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
231 field of type object in structure"
233 Do basic computation of field offsets for objects and interfaces;
234 this doesn't attempt to address all of the "mess" for virtual
235 functions described in Bug 560281.
237 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
239 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
241 Based on patch by Johan Bilien.
243 * giscanner/transformer.py (_create_member, _create_parameter):
244 Resolve types here as well.
245 (_resolve_type_name_1): Try resolving using 'ctype' first since
246 it's least ambiguous. Fixes struct member type resolution with
247 similarly named types, e.g. Gdk.PangoRendererClass and
249 * tests/scanner/foo*: Add test.
251 2008-11-11 Owen Taylor <otaylor@redhat.com>
253 * girepository/girparser.c: Search provided include dirs before
254 the default directories.
256 2008-11-11 Owen Taylor <otaylor@redhat.com>
258 * girepository/giroffsets.c: Include fully-qualified names in
261 2008-11-11 Owen Taylor <otaylor@redhat.com>
263 * girepository/giroffsets.c: Fail gracefully with an informative
264 error message when recursion is encountered when computing a
267 2008-11-11 Owen Taylor <otaylor@redhat.com>
269 * girepository/girparser.c: Remove an unused variable.
271 2008-11-10 Owen Taylor <otaylor@redhat.com>
273 Add tests for field offset computations
275 * tests/offsets/offsets.h: Header file with structure definitions to test
277 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
278 field offsets for the structures in offsets.h two ways: using
279 the information from a generated typelib, and as computed by the
282 We diff these two versions to test that everything is OK.
284 2008-11-10 Owen Taylor <otaylor@redhat.com>
286 Remove field offsets from g-ir-generate output and test inputs
288 Field offsets are a) architecture dependent so they shouldn't be part
289 of the architecture-independent gir format which is installed in
290 datadir. b) Are architecture-dependent so they shouldn't be in test
293 * girepository/girparser.c: Don't parse offset for fields
294 * tools/generate.c: Don't parse offset for fields
295 * tests/*.gir test/scanner/*.tgir: Remove offsets
297 (Virtual function and discriminator offsets are not removed, as they
298 aren't fully hooked up to the field-offset computation machinery yet.)
300 2008-11-10 Owen Taylor <otaylor@redhat.com>
302 Bug 560252 - Compute field offsets before writing typelib
304 * girepository/girnode.h: Store the total size and alignment for
305 GIrNodeStruct/Boxed/Union.
307 * girepository/giroffset.c: New file implementing computation of
308 structure field offsets.
310 * girepository/girnode.c: Compute structure field offsets before
311 writing types into the typelib.
313 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
314 means "unknown". Also fix description of the discriminator_offset
317 2008-11-10 Owen Taylor <otaylor@redhat.com>
319 Bug 560250 - Fully parse included modules
321 For some things, like computing structure offsets to put into the typelib
322 we need more than just the aliases from included modules. Do a completel
323 parse of included modules and store in module->included_modules.
325 Also add g_ir_find_node() to find node information from within the
326 active set of modules and their includes.
328 2008-11-10 Owen Taylor <otaylor@redhat.com>
330 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
332 Extract a function to convert GITypeTag to ffi_type from the internals
333 of ginvoke.c. This will be useful in figure out structure alignment.
335 Also fix handling of gsize and time_t to be portable. (Add a check
336 to configure.ac to figure out the width of time_t.)
338 2008-11-10 Owen Taylor <otaylor@redhat.com>
340 Bug 560248 – "disguised structures"
342 Certain types like GIConv and GdkAtom are pointers internally but don't
343 look like pointers when referenced. They have the form.
345 typedef struct _X *X;
347 Parse these as structures/records but mark them in the gir with a 'disguised'
348 attribute so that we know that they need special handling.
350 In the typelib treat them like any other structure.
352 2008-11-09 Jürg Billeter <j@bitron.ch>
355 * giscanner/girwriter.py:
357 Write throws attribute for virtual functions, fixes bug 559703
359 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
361 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
362 up some confusion about the second argument to find_module, it's
363 actually the packages __path__ attribute which we can safely ignore
365 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
367 2008-11-07 Owen Taylor <otaylor@redhat.com>
369 Bug 559737 – Deal with continuations in macros
371 * giscanner/giscannerlexer.l: Treat continuation lines the same
372 as regular newlines. This makes the scanner not complain about
373 #define foo(x) \ <stuff> inside a C file. There's no attempt
374 however to handle parsing macro definitions split across lines.
376 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
378 * giscanner/cachestore.py:
379 Handle broken cache entries, write only filesystems and
380 running out of diskspace.
382 2008-11-07 Owen Taylor <otaylor@redhat.com>
384 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
385 Set current_filename before lexing the file so error messages
386 are reported in the right file.
388 2008-11-06 Colin Walters <walters@verbum.org>
390 * tests/everything/*: Add some tests for strv.
392 2008-11-05 Colin Walters <walters@verbum.org>
394 * girepository/ginvoke.c (g_function_info_invoke): Don't use
395 nested scope local variable for error which may go away after
396 conditional is complete.
398 2008-11-05 Colin Walters <walters@verbum.org>
400 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
401 manipulate hackily; just use GString. This avoids an
402 uninitialized memory read pointed out by Havoc.
404 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
406 * giscanner/__init__.py:
408 * giscanner/cachestore.py:
409 * giscanner/cgobject.py:
410 * giscanner/girparser.py:
411 * giscanner/girwriter.py:
412 * giscanner/giscannermodule.c:
413 * giscanner/glibast.py:
414 * giscanner/glibtransformer.py:
415 * giscanner/libtoolimporter.py:
416 * giscanner/minixpath.py:
417 * giscanner/odict.py:
418 * giscanner/sourcescanner.c:
419 * giscanner/sourcescanner.h:
420 * giscanner/sourcescanner.py:
421 * giscanner/transformer.py:
422 * giscanner/utils.py:
423 * giscanner/xmlwriter.py:
425 Relicense the giscanner library under LGPLv2+.
426 This has been approved by all contributors.
428 2008-11-01 Owen Taylor <otaylor@redhat.com>
430 Bug 558848 giparser.py: shared library should be optional
432 When parsing a .gir, allow the shared-library attribute
433 of <namespace/> to be missing: this corresponds to the handling
434 in libgirepository and elsewhere.
436 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
438 Bug 557898 – Fails to build on OSX 10.4
440 * configure.ac: Check for $shrext_cmds that should be implicitly
441 available if you're using libtool >= 2.0. If undefined, call
442 libtool --config explicitly to get its value.
443 * girepository/gtypelib.c: Remove special case for (non-)Darwin
446 2008-10-31 Colin Walters <walters@verbum.org>
448 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
450 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
452 * configure.ac: Post release version bump
455 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
459 * docs/release-checklist.txt:
462 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
464 * Makefile.am: add an upload-release target
465 * docs/release-checklist.txt:
466 Release process documentation
468 2008-10-31 Colin Walters <walters@verbum.org>
470 Bug 558109 – _g_typelib_init fails to find shared libraries
472 * transformer/glibtransformer.py: Use ctypes' find_library
473 on passed libraries and write that for the shared-library
474 entry. We want to avoid depending on -devel packages.
476 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
478 * docs/g-ir-scanner.1:
479 Document the renaming options.
481 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
483 * giscanner/Makefile.am:
484 * tests/invoke/Makefile.am:
485 * tests/repository/Makefile.am: List in-tree libraries first in
486 LDADD / LIBADD. If installed library is listed first, the
487 resulting binary will prefer installed version to one in .libs,
488 possibly making 'make check' behave strangely.
490 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
492 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
493 gir-repository from choking with gdk/quartz
495 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
497 * giscanner/giscannermodule.c (calc_attrs_length),
498 (pygi_collect_attributes):
499 * giscanner/xmlwriter.py:
500 Write a C version of the xml namespace formatter.
501 Saves 15% of the time it takes to create a gtk gir.
503 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
505 * giscanner/xmlwriter.py: Abstract attribute formatting
506 to a function external to the XMLWriter class.
508 * giscanner/scannerlexer.l:
509 Parse and discard __typeof and __attribute.
511 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
513 * giscanner/girparser.py:
514 Remove arguments from the constructor, move them to
515 separate accessors. Add a new parse_tree method
516 which takes an element tree instance.
517 * tools/g-ir-scanner:
518 Update callsite for this
520 * giscanner/Makefile.am:
521 * giscanner/cachestore.py:
522 * giscanner/transformer.py:
523 Cache the include parsing. Saves ~25% time when
524 creating vte (which includes everything up to gtk+).
526 2008-10-30 Colin Walters <walters@verbum.org>
528 * giscanner/transformer.py: Don't reparse includes
529 we've already processed.
531 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
533 * giscanner/girparser.py:
534 * giscanner/transformer.py:
535 Avoid parsing parameters, types etc when parsing
536 includes. Should speed up include parsing a bit.
538 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
540 * giscanner/girparser.py:
541 Avoid big if/else and use a dispatch table like
544 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
546 * giscanner/transformer.py:
547 Clean up include parsing and registration.
549 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
551 * giscanner/transformer.py:
554 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
556 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
559 construct PYTHONPATH just once
561 * tests/everything/Makefile.am:
562 * tests/scanner/Makefile.am:
563 add $(top_srcdir) to PYTHONPATH to
564 handle builddir != srcdir
566 * giscanner/libtoolimporter.py:
567 * giscanner/sourcescanner.py:
568 Make the libtoolimporter work when distchecking too.
570 Mostly based on patch by Tommi Komulainen
572 2008-10-29 Owen Taylor <otaylor@redhat.com>
574 * giscanner/glibtransformer.py: If a filename of an existing
575 file is passed to --library, hunt for it directly, rather than
576 searching for a corresponding library.
578 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
580 * giscanner/libtoolimporter.py:
581 * giscanner/sourcescanner.py:
582 Clean up the libtool importer a bit. Add a context so we
583 can use it through a with statement.
584 Don't just look in the current directory, look in the whole
587 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
589 Bug 558065 – gitesttypes should be installed
593 * tests/types/Makefile.am -> tests/everything/Makefile.am
594 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
595 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
596 move tests/types to tests/everything
598 * tests/everything/Makefile.am: build normal shared library
599 libgirepository-everything.so.1.0.0 and corresponding typelib
600 Everything-1.0.typelib
602 * tests/everything/Makefile.am: explicitly link libtool
603 versioning with typelib versioning with variables
605 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
607 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
609 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
611 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
614 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
616 Bug 558068 – when invoking a method, offset the in arguments by one,
619 * tests/invoke/invoke.c, tests/invoke/testfns.c,
620 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
621 * girepository/ginvoke.c: do not offset the index of given out
622 arguments by one for methods, "this" is provided as in argument only.
624 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
626 * gir/gio-2.0.c: add annotation for g_file_delete
628 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
630 Bug 558062 – provide and use paths in the .pc file
632 * gobject-introspection-1.0.pc.in: provide typelibdir variable
633 for where .typelibs should be installed (callers shouldn't need
634 to construct paths from bits and pieces)
636 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
638 Bug 557791 – g_irepository_require() could return a GTypelib *
640 * girepository/girepository.c: Return GTypelib; this is useful
641 for low level manipulation.
643 2008-10-25 Colin Walters <walters@verbum.org>
645 Bug 557788 – Return types for constructors in generated typelib bogus
647 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
648 rely on end pass resolution.
650 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
652 Bug 557786 - support fixed size arrays
654 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
655 * giscanner/scannerparser.y: Retain fixed array size.
656 * giscanner/ast.py: Add to note.
657 * giscanner/girwriter.py: Write to gir.
658 * girepository/girnode.c: Write it to typelib.
659 * tools/generate.c: Generate.
660 * tests/*: Add tests.
662 2008-10-25 Colin Walters <walters@verbum.org>
664 Bug 557076 - move typelibs to $libdir
666 * configure.ac: Steal some configury bits from dbus to expand
668 * gir/Makefile.am: Move to libdir.
669 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
670 instead just look at one hardcoded path in libdir.
671 * acinclude.m4: Bits from dbus.
673 2008-10-24 Johan Dahlin <johan@gnome.org>
675 * girepository/girnode.c (g_ir_node_check_unhandled_members):
676 Be quiet, do not warn about unhandled members.
678 2008-10-24 Johan Dahlin <johan@gnome.org>
680 * girepository/gtypelib.c:
681 Only use SHLIB_SUFFIX on darwin, otherwise use
682 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
684 2008-10-24 Lucas Rocha <lucasr@gnome.org>
686 Bug 557623 - Constructors shouldn't be flagged as methods.
688 * girepository/ginfo.c (g_function_info_get_flags): ditto.
690 2008-10-24 Johan Dahlin <johan@gnome.org>
692 * giscanner/scannerparser.y:
693 Check against division by zero for the modula operator.
694 This fixes header parsing of OSX system headers included
697 2008-10-24 Johan Dahlin <johan@gnome.org>
701 Add a CONTRIBUTORS file and dist it.
703 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
705 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
707 * girepository/girparser.c (parse_param_transfer):
708 * giscanner/transformer.py (_create_parameter, _create_return):
709 * giscanner/girwriter.py (_write_return, _write_parameter):
710 * tools/generate.c (write_callable_info): always write and
711 require "transfer-ownership" for return-values and parameters
714 * tests/invoke/testfns-1.0.gir:
716 * tests/scanner/DrawableAdditions.xml:
717 * tests/scanner/GtkFrob-1.0-expected.tgir:
718 * tests/scanner/annotation-1.0-expected.tgir:
719 * tests/scanner/drawable-1.0-expected.tgir:
720 * tests/scanner/drawable-injected-1.0-expected.gir:
721 * tests/scanner/drawable-injected-1.0-expected.tgir:
722 * tests/scanner/foo-1.0-expected.tgir: Updated
724 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
726 * giscanner/cgobject.py: build fundamental types same way as glib
728 * giscanner/glibtransformer.py (_type_from_gtype): record GType
729 when constructing the Type from it
731 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
732 the parameter is a GObject from its GType, if available.
734 * giscanner/glibtransformer.py (_adjust_transfer):
735 * tests/scanner/foo-1.0-expected.gir:
736 * tests/scanner/foo-1.0-expected.tgir: deduce
737 transfer-ownership from GTypes
739 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
741 * giscanner/transformer.py (_create_parameter):
742 * tests/scanner/foo-1.0-expected.gir: make varargs
743 transfer-ownership="none"
745 2008-10-23 Colin Walters <walters@verbum.org>
747 Bug 556739 - transfer ownership
749 * giscanner/ast.py: Refactor Parameter/Return to share
750 common attributes. Add transfer_inferred attribute
751 which says whether or not we made a guess.
752 * giscanner/transformer.py: Add much more extensive
753 heuristics around parameter and return transfer.
754 * giscanner/glibtransformer.py: Adjust to inspect
758 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
760 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
762 * tests/scanner/Makefile.am:
763 * tests/scanner/annotation-1.0-expected.tgir:
764 * tests/scanner/drawable-1.0-expected.tgir:
765 * tests/scanner/drawable-injected-1.0-expected.tgir:
766 * tests/scanner/foo-1.0-expected.tgir:
767 * tests/scanner/GtkFrob-1.0-expected.tgir:
768 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
769 annotations survive the roundtrip via typelib
771 The expectations are as currently produced by g-ir-generate,
772 comparison with the .gir files shows there are differences.
774 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
776 Bug 557468 – Support for GI_TYPELIB_PATH
778 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
779 provided paths to the global search path.
781 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
783 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
785 * tests/scanner/drawable-1.0-expected.tgir:
786 * tests/scanner/drawable-injected-1.0-expected.tgir:
787 * tests/scanner/foo-1.0-expected.tgir:
788 * tools/generate.c (write_object_info): write 'abstract'
789 attribute for classes
791 2008-10-22 Lucas Rocha <lucasr@gnome.org>
793 * girepository/girmodule.c, girepository/gtypelib.c,
794 girepository/girparser.[ch]: fix some build warnings.
796 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
798 Bug 557405 – Use 'allow-none' consistently
800 * docs/typelib-format.txt:
801 * girepository/ginfo.c (g_arg_info_may_be_null):
802 * girepository/girnode.c (g_ir_node_build_typelib):
803 * girepository/girnode.h (struct _GIrNodeParam):
804 * girepository/girparser.c (start_parameter):
805 * girepository/girwriter.c (function_generate):
806 * girepository/gtypelib.h (ArgBlob):
808 * tests/function.gir:
809 * tools/generate.c (write_callable_info): Use 'allow-none'
810 consistently throughout
812 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
814 Bug 557092 – Callback annotations not used
816 * giscanner/transformer.py (_create_callback): use annotations
818 * tests/scanner/annotation.h
819 * tests/scanner/annotation-1.0-expected.gir: add tests
821 2008-10-21 Colin Walters <walters@verbum.org>
823 * giscanner/scannerlexer.l: Don't require trailing whitespace after
824 uncommented parameters.
827 2008-10-21 Colin Walters <walters@verbum.org>
829 * girepository/girepository.c: Ensure that when doing an unversioned
830 require, we prefer items earlier in the search path to later ones.
832 2008-10-21 Owen Taylor <otaylor@redhat.com>
834 * giscanner/transformer.py: For string parameters allow transfer annotation
835 to override the standard automatic guessing based on 'const'.
837 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
839 Bug 557241 – "throws" flag for functions
841 * tests/scanner/drawable-1.0-expected.gir,
842 tests/scanner/drawable-injected-1.0-expected.gir,
843 tests/scanner/drawable.[ch]: add simple test for throwing
844 function (has GError ** as last argument)
846 * giscanner/ast.py: add a 'throws' flag to Function
847 * giscanner/glibtransformer.py: if a function's last paramerter is
848 a GError, set the 'throws' flag and remove that parameter
849 * giscanner/girwriter.py: write out the 'throws' attribute
850 * giscanner/girparser.py: support parsing the 'throws' attribute
852 * tests/repository/gitestthrows.c: add a simple test to check the
853 throws flag in a typelib and invoke the function
855 * girepository/ginfo.c, girepository/girnode.[ch],
856 girepository/girnode.h, girepository/girparser.c,
857 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
859 * girepository/ginvoke.c: if a function throws, add a GError as last
860 arguments, and propagate the error to the invoker.
862 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
864 * giscanner/transformer.py (_create_parameters): Warn if we see
865 annotations for unknown parameters. If .h and .c files name
866 parameters differently, the annotations may be lost.
868 2008-10-21 Johan Dahlin <johan@gnome.org>
870 Bug 556358 - don't use libtool internals
872 * giscanner/Makefile.am:
873 * giscanner/libtoolimporter.py:
874 * giscanner/sourcescanner.py:
875 * giscanner/utils.py:
876 Add a python meta importer and remove a libtool symlink hack.
878 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
880 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
881 and --add-include-path appropriately when invoking the scanner.
882 * tests/types/Makefile.am (%typelib): Likewise.
884 2008-10-20 Colin Walters <walters@verbum.org>
886 Bug 556777 - validate properties
888 * giscanner/transformer.py: Add option to throw on unknown types.
889 * giscanner/glibtransformer.py: Use it on properties.
890 * tests/*: Add a test.
892 2008-10-20 Colin Walters <walters@verbum.org>
894 * giscanner/glibast.py: Also register g variants of
895 default_array_types. This is not beautiful, but
896 good alternatives aren't easy to come by.
897 This fixes gchar ** parsing.
899 2008-10-20 Colin Walters <walters@verbum.org>
901 * docs/typelib-format.txt, girepository/gtypelib.h:
902 Take a bit from ObjectInfo to represent abstract flag.
903 * giscanner/cgobject.py: Expose g_type_get_flags.
904 * girepository/girepository.h: Add accessor.
905 * girepository/ginfo.c: Implement it.
906 * giscanner/ast.py: Add is_abstract flag to generic
908 * giscanner/glibast.py: Use it.
909 * giscanner/girwriter.py: Write it.
910 * girepository/girparser.c: Parse it.
913 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
915 * giscanner/girparser.py (_parse_function): don't lose
916 'transfer-ownership' attributes when injecting, check for the
919 2008-10-19 Johan Dahlin <johan@gnome.org>
921 * giscanner/scannerlexer.l: Parse and ignore __asm.
923 2008-10-19 Colin Walters <walters@verbum.org>
925 * giscanner/girparser.py: Parse array length= to ensure
926 it doesn't get lost from --inject.
928 2008-10-17 Colin Walters <walters@verbum.org>
930 Bug 556795 - char ** regression
932 * giscanner/transformer.py: Fix parsing of ctypes, add some
933 comments about what's going on.
934 * tests/*: Add a test for char **.
936 2008-10-17 Colin Walters <walters@verbum.org>
938 Bug 556783 - change namespace handling to be more consistent
940 * giscanner/transformer.py: Eliminate usage of
941 strip_namespace_object. We now treat --namespace as the default
942 --strip-prefix; however, if --strip-prefix is specified it
943 overrides --namespace. This applies to everything except function
944 names, where we do also strip the namespace.
945 * giscanner/glibtransformer.py: Remove usage of
946 strip_namespace_object.
948 * tests/*: Add skeletal GtkFrob-1.0 test which has different
949 --namespace and --strip-prefix.
951 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
953 Bug 556732 – generate gir files consistently
955 * girepository/girparser.c (start_parameter):
957 * tests/invoke/testfns-1.0.gir:
958 * tools/generate.c (write_callable_info): write
959 'transfer-ownership' attribute consistently with both
960 return-value and parameter elements
962 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
964 Bug 556732 – generate gir files consistently
966 * tools/generate.c (write_callable_info): write 'direction'
967 attribute only if other than 'in' to be consistent with
970 * tests/object.gir: remove direction="in" which is the default
972 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
974 Bug 556732 – generate gir files consistently
976 * giscanner/ast.py (Field): add readable and writable properties
977 * giscanner/girparser.py (_parse_field): copy 'readable' and
978 'writable' attributes
979 * giscanner/transformer.py (_create_member): create fields as
981 * giscanner/glibtransformer.py (_introspect_object,
982 _pair_class_struct): make object instance and class fields
984 * giscanner/girwriter.py (_write_field):
985 * tools/generate.c (write_field_info): write field 'readable'
986 and 'writable' attributes only if non-default (read-only)
987 * girepository/girparser.c (start_field): in the absence of
988 attributes assume fields are read-only
990 * tests/struct.gir: remove redundant readable="1" from fields
991 * tests/scanner/foo-1.0-expected.gir:
992 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
993 all record and union fields
995 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
997 Bug 556732 – generate gir files consistently
999 * giscanner/girwriter.py (_write_property): write properties
1000 'construct' attribute if set
1001 * tools/generate.c (write_property_info): write properties
1002 'readable' and 'writable' attributes only if non-default
1003 * tests/object.gir: add writable="0"
1004 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1006 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1008 * gir/glib-2.0.c: added annotations
1010 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1012 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1015 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1017 Bug 556610 – giscanner/girparser.py drops parameter options
1019 * tests/scanner/drawable-injected-1.0-expected.gir,
1020 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1021 * giscanner/ast.py: allow Parameter to take options in the constructor
1022 * giscanner/girparser.py: parse parameter options (transfer,
1023 direction, allow-none)
1025 2008-10-16 Colin Walters <walters@verbum.org>
1027 Bug 556185 - segfault on g_callable_info_get_return_type
1029 Initial patch from John Ehresman.
1031 * tests/repository/*: Add a test using
1032 g_callable_info_get_return_type. Instead of casting a
1033 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1034 to call g_type_info_get_interface.
1036 2008-10-16 Colin Walters <walters@verbum.org>
1038 Bug 556579 - union and struct name misresolved
1040 * giscanner/transformer.py: The calls to _resolve_type_name
1041 for struct/union names was a legacy holdover from when type
1042 resolution had multiple phases. Now it's actively harmful
1043 since we might pull in an identical name from another
1047 2008-10-16 Colin Walters <walters@verbum.org>
1049 Bug 556432 - transfer annotations and defaults
1051 * giscanner/transformer.py: Canonicalize type
1052 after removing *, not before. This ensures that
1053 guchar* is transformed to 'uint8'.
1054 Add some comments here.
1055 * giscanner/glibtransformer.py: Add _adjust_transfer
1056 phase for tweaking GObject transfers.
1059 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1061 * configure.ac: enable bunch of gcc warning CFLAGS
1063 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1065 Bug 556543 – reduce compiler warnings
1067 * girepository/ginfo.c:
1068 * girepository/girepository.c (register_internal,
1069 count_interfaces, find_interface, find_namespace_version,
1070 parse_version, g_irepository_require):
1071 * girepository/girmodule.c (g_ir_module_build_typelib):
1072 * girepository/girnode.c (init_stats, dump_stats,
1073 _g_irnode_init_stats, _g_irnode_dump_stats,
1074 g_ir_node_can_have_member):
1075 * girepository/girparser.c (firstpass_end_element_handler,
1076 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1077 start_alias, start_type, end_type_top, parse_include, cleanup,
1079 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1080 * giscanner/giscannermodule.c (directive_get_options,
1081 type_get_child_list):
1082 * giscanner/scannerlexer.l (parse_gtkdoc):
1083 * giscanner/scannerparser.y (ctype_free):
1084 * giscanner/sourcescanner.c:
1085 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1086 * tests/types/gitesttypes.c:
1087 * tools/compiler.c (main):
1088 * tools/generate.c (write_repository): Remove unused variables
1089 and code, add missing includes, declarations and case
1092 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1094 Bug 556541 – access union members through UnionBlob rather than
1097 * girepository/ginfo.c (g_union_info_find_method): access union
1098 members through UnionBlob rather than StructBlob
1100 2008-10-15 Colin Walters <walters@verbum.org>
1102 Bug 556331 - clean up includes handling
1104 * tools/g-ir-scanner: Rework command line arguments; now we take
1105 --add-include-path and --include separately.
1106 * giscanner/girwriter.py: Separate name= and version= in include
1108 * giscanner/ast.py: Add Include type.
1109 * giscanner/transformer.py: Cleanups to register_include now that
1110 we don't need to handle mixed filenames and relative arguments.
1111 * girepository/girparser.c: Parse name and version separately;
1112 this fixes a bug as a side effect where we weren't resolving
1113 through aliases for basic types.
1114 * girepository/girepository.c: Fix format string args.
1115 * gir/Makefile.am: Update.
1118 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1120 Bug 556434 – unhandled interface/object/... member types
1122 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1123 g_ir_node_build_typelib): Check all
1124 interface/object/boxed/struct/union members are processed and
1125 abort if they are not. (Mostly callbacks in structs, but also
1126 fields in interfaces.)
1128 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1130 * a/girepository/girnode.c (g_ir_node_build_members,
1131 g_ir_node_build_typelib): refactor common code for processing
1132 members to a function
1134 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1136 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1137 transformation is lossless (it's not)
1139 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1141 * tests/Makefile.am: fix tests to compare xml to xml instead of
1142 typelib to xml, and stop on error
1144 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1146 * tools/generate.c (write_type_name, write_type_info,
1147 write_type_info, write_object_info, write_object_info,
1148 write_interface_info, write_error_domain_info): reduce code
1151 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1153 Bug 556174 – parse types for lists etc.
1155 * girepository/girparser.c (end_type_recurse):
1157 * tools/generate.c (write_type_info, write_field_info,
1158 write_callable_info, write_callable_info, write_constant_info,
1159 write_property_info): use nested <type>s for lists and hashes
1161 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1164 * tests/object.gir: remove trailing whitespace from inside
1165 elements to match g-ir-generate output
1167 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1169 * tools/generate.c (xml_printf): quote printf arguments so that
1170 we don't generate invalid XML by writing unescaped double quotes
1171 and such in attributes
1173 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1175 * tools/generate.c (write_field_info, write_callable_info,
1176 write_function_info, write_callback_info, write_struct_info,
1177 write_constant_value, write_signal_info, write_vfunc_info,
1178 write_object_info, write_interface_info, write_union_info,
1179 write_repository): remove unused indent parameters, xmlwriter
1180 keeps track of necessary indentation
1182 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1184 * tools/generate.c (xml_element_new, xml_element_free,
1185 xml_start_element, xml_end_element, xml_end_element_unchecked,
1186 xml_open, xml_close): Keep track of generated XML tree and
1187 handle indentation and closing tags properly.
1188 (write_field_info, write_callable_info, write_function_info,
1189 write_callback_info, write_struct_info, write_value_info,
1190 write_constant_info, write_enum_info, write_signal_info,
1191 write_vfunc_info, write_property_info, write_object_info,
1192 write_interface_info, write_error_domain_info, write_union_info,
1193 write_repository): Use xml_start_element and xml_end_element to
1196 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1198 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1199 (write_type_name, write_type_info, write_field_info,
1200 write_callable_info, write_function_info, write_callback_info,
1201 write_struct_info, write_value_info, write_constant_value,
1202 write_constant_info, write_enum_info, write_signal_info,
1203 write_vfunc_info, write_property_info, write_object_info,
1204 write_interface_info, write_error_domain_info, write_union_info,
1205 write_repository): wrap all FILE access to go through simple xmlwriter
1207 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1209 Bug 556400 – Fails to build on OS X 10.4
1211 * configure.ac: check for functions backtrace and backtrace_symbols
1212 * girepository/girparser.c (backtrace_stderr): Comment out
1213 implementation if the functions are not available.
1214 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1215 directory for better portability
1217 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1219 Bug 556433 – assume direction = out for int * parameters
1221 * giscanner/ast.py: define a list of types for which, if passed as
1222 reference, we assume a default direction of 'out'
1223 * giscanner/transformer.py: if a type has type pointer to one of the
1224 previously defined types, and no direction is set, assume out.
1225 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1227 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1229 * tests/scanner/annotation.c: fixed a few copy-paste errors
1231 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1233 Bug 556323 – transfer-ownership is wrong for functions returning const
1236 * giscanner/transformer.py: check for a const string as return value,
1237 not just const char*. Suggested by Colin Walters
1238 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1240 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1242 * girepository/ginfo.c, girepository/girepository.h: add
1243 g_union_info_find_method
1245 2008-10-14 Colin Walters <walters@verbum.org>
1247 * tests/repository/Makefile.am: Reenable repo test.
1248 * tests/repository/gitestrepo.c: Prepend search
1249 path for $(top_builddir)/gir dir so that we don't
1250 require installation for "make check" to pass.
1252 2008-10-13 Jürg Billeter <j@bitron.ch>
1254 * giscanner/glibtransformer.py:
1255 * tests/scanner/annotation-1.0-expected.gir:
1256 * tests/scanner/drawable-1.0-expected.gir:
1257 * tests/scanner/foo-1.0-expected.gir:
1258 * tests/scanner/utility-1.0-expected.gir:
1260 Support fields in GObject structs
1262 2008-10-13 Jürg Billeter <j@bitron.ch>
1264 * giscanner/ast.py: add signed integer and off_t to type_names
1266 2008-10-12 Jürg Billeter <j@bitron.ch>
1268 * giscanner/girparser.py: Parse bits attribute of fields
1270 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1272 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1273 * tests/repository/gitestrepo.c (main): instantiate
1274 'GCancellable' to ensure the GType is registered before using
1277 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1279 * giscanner/girparser.py: actually add the parsed constant nodes
1281 2008-10-12 Colin Walters <walters@verbum.org>
1283 * girepository/girepository.c: Don't cast DirEntry to Blob,
1284 actually look it up by offset.
1286 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1288 * giscanner/girparser.py: parse constant nodes in gir files
1290 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1292 * giscanner/transformer.py: prefix for constants have an underscore,
1293 so remove them as if they were functions, not objects.
1295 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1297 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1300 2008-10-12 Colin Walters <walters@verbum.org>
1302 Initial patch from Jani Monoses.
1304 * girepository/gtypelib.c: Fix inverted test for success
1307 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1309 * tools/generate.c (write_callable_info): use "transfer-ownership"
1310 attribute for return values
1312 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1314 * tools/generate.c (write_callable_info): move "transfer" and
1315 "null-ok" attributes from <function> to <return-value> element
1317 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1319 * girepository/girparser.c (start_return_value): handle
1320 "transfer-ownership" attribute
1322 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1324 * girepository/girparser.c (parse_param_transfer):
1325 * tools/generate.c (write_callable_info): use "container" for
1326 container/shallow ownership transfer (not "shallow")
1328 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1330 * girepository/girparser.c (parse_param_transfer,
1331 start_parameter): Refactor handling of transfer=none/shallow/full
1332 to separate function
1334 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1336 Bug 556048 – Crash in g_irepository_find_by_gtype
1338 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1339 * girepository/girepository.c (find_interface): Fix
1340 find_by_gtype case to get the type name from right offset
1342 2008-10-12 Jürg Billeter <j@bitron.ch>
1344 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1347 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1349 * girepository/gtypelib.h (RegisteredTypeBlob): make
1350 'unregistered' one bit wide as everywhere else
1352 2008-10-12 Jürg Billeter <j@bitron.ch>
1354 * giscanner/glibtransformer.py:
1355 * tests/scanner/annotation-1.0-expected.gir:
1356 * tests/scanner/drawable-1.0-expected.gir:
1357 * tests/scanner/drawable.h:
1358 * tests/scanner/foo-1.0-expected.gir:
1359 * tests/scanner/utility-1.0-expected.gir:
1361 Readd class records as workaround to not break Gtk typelib
1363 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1365 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1367 2008-10-12 Jürg Billeter <j@bitron.ch>
1369 * giscanner/glibtransformer.py: Don't generate <record> elements
1371 * tests/scanner/*: Update test cases
1373 2008-10-11 Colin Walters <walters@verbum.org>
1375 Bug 552858: versioning
1377 This is a big patch. You should probably remove your installation
1380 * docs/typelib-format.txt: Add nsversion entry which holds
1381 version of namespace.
1382 * girepository/girepository.h: Add 'version' parameter to
1383 g_irepository_require. This may be NULL. Normally
1384 bindings should pass an explicit version though.
1385 * girepository/girepository.c: Lots of infrastructure to
1386 support versioning. Add some more documentation. Disallow
1387 some usage of NULL namespaces.
1388 * girepository/girmodule.c: Add version parameter.
1389 * girepository/gtypelib.c: Update header size.
1390 * giscanner/ast.py: Add version to Namespace.
1391 * giscanner/girparser.py: Parse version attribute from
1392 XML, pass to Namespace.
1393 * giscanner/girwriter.py: Write out version parameter.
1394 * giscanner/transformer.py: Clean up include registration.
1395 * tests/*: Add version attribute.
1396 * tests/invoke/invoke.c: Don't try looking up test before
1397 it's loaded in repository.
1398 * tools/generate.c: Output version parameter.
1399 * gir/Makefile.am: Add 2.0 version to .gir files.
1401 2008-10-11 Colin Walters <walters@verbum.org>
1403 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1404 if we have mismatched parens.
1406 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1408 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1409 on 'members' variable.
1411 2008-10-11 Colin Walters <walters@verbum.org>
1413 Bug 555947 - update annotations syntax
1415 * giscanner/ast.py: Default to None for transfer. Remove
1416 default transfers for container types; we require this to
1418 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1419 'full' to match repository.
1420 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1421 * giscanner/transformer.py: Update for new annotations syntax.
1424 2008-10-11 Johan Bilien <jobi@litl.com>
1426 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1428 2008-10-11 Johan Bilien <jobi@litl.com>
1430 Bug 552347: Parse #defines constants
1432 * girepository/gtypelib.c: update the list of value_size
1433 with recently defined type tags
1434 * giscanner/scannerparser.y: brought back parsing of #defined, as
1435 present in older version
1436 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1437 * giscanner/girwriter.py: write out constant tags in the gir
1438 * giscanner/sourcescanner.py: add accessor for const_string
1439 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1442 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1444 Bug 555946: Install a test module exercising all types, transfer
1449 * tests/types/*: Add and install a test module that has functions
1450 accepting and returning most of the basic types to enable bindings
1451 implementors to more easily test their type conversion routines.
1453 2008-10-11 Jürg Billeter <j@bitron.ch>
1455 Bug 552374: Const strings should be identified in the gir.
1457 * giscanner/transformer.py: support string memory management
1458 * tests/scanner/foo.h: use char * and const char *
1459 * tests/scanner/foo-expected.gir: test that
1461 2008-10-11 Johan Dahlin <johan@gnome.org>
1463 * giscanner/girparser.py:
1464 Also parse enums which are not glib types.
1466 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1468 Bug 552370: add one more test for unsigned as a type, not as
1471 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1472 * test/scanner/foo.h: add function which uses unsigned as a type.
1473 * test/scanner/foo-expected.gir: test that.
1475 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1477 Bug 555712: Struct and union issues
1479 * giscanner/scannerparser.y (struct_declarator): Use information
1480 provided about the bit width of a field.
1481 * giscanner/transformer.py (Transformer._create_member): Pass the
1482 symbol's const_int member to the created field (it represents the
1484 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1485 field attribute, if present.
1486 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1487 width in bits of the field (only relevant for bitfields).
1490 * giscanner/transformer.py (Transformer._create_typedef_struct)
1491 (Transformer._create_typedef_union): Add calls to _create_struct()
1492 and _create_union(), respectively. This causes the scanner to
1493 generate output for fields of struct and union typedefs.
1496 2008-10-11 Jürg Billeter <j@bitron.ch>
1498 Bug 552370: unsigned not scanned properly
1500 * giscanner/scannerparser.y: combine basic types such as unsigned
1501 int and long long when scanning
1502 * tests/scanner/foo-expected.gir:
1503 * tests/scanner/foo.c: (foo_test_unsigned):
1504 * tests/scanner/foo.h: test that
1506 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1508 Bug 554854: The --typelib-xml and --inject options should reuse
1509 giscanner parser/writer.
1511 * giscanner/ast.py: add constructor list to Struct and Union.
1512 Add new param in Return's contructor to define transfer.
1513 * giscanner/girparser.py: several additions to the parser in order
1514 to have parsing all nodes of the gir xml files.
1515 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1516 and writer in --inject and --typelib-xml options.
1517 * giscanner/xmlwriter.py: ignore empty attributes instead of
1518 raising an error as this basically exposes a bug in GIRParser.
1519 This should be reverted as soon as the parser is fixed.
1521 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1523 Bug 552376: scanner generates wrong names for enum members when
1524 there's no defined gtype.
1526 * giscanner/utils.py (strip_common_prefix): Always strip common
1527 prefix exactly up to the last "_", and not beyond.
1528 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1529 here is that the first character after the last '_' should should be
1530 the same as the character in the same position on the type name.
1531 * tests/scanner/foo-expected.gir: test that
1533 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1535 Bug 555293: append library_paths to LPATH env variable to work
1536 around a bug in find_library when using ldconfig.
1538 * tools/g-ir-scanner (main): ditto.
1540 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1542 * girepository/girepository.c (register_internal): fix regression on
1543 invoke test case by making sure we load the global module in the
1544 typelib when dealing with inline typelibs.
1545 * girepository/gtypelib.c: a couple of coding style fixes.
1547 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1549 Bug 555294: Add support for multiple shared libraries per typelib.
1551 * girepository/ginvoke.c (g_function_info_invoke),
1552 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1553 g_typelib_symbol instead of g_module_symbol.
1554 * girepository/girepository.h: remove g_typelib_set_module and add
1556 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1557 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1558 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1559 modules instead of just one. The symbol lookup is now abstracted
1560 behind g_typelib_symbol which tries to find the passed symbol name in
1562 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1563 and write shared_library attribute as a comma-separated list of libs.
1565 2008-10-06 Colin Walters <walters@verbum.org>
1567 * giscanner/transformer.py: Parse length= annotation as
1568 a parameter name, not a raw int.
1571 2008-10-03 Colin Walters <walters@verbum.org>
1573 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1575 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1577 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1581 2008-10-03 Colin Walters <walters@verbum.org>
1583 Bug 554576: scan problem with ev_selection_render_selection()
1585 * giscanner/transformer.py: Only do type resolution once we've
1586 scanned all types. What could happen before is that we'd strip
1587 the namespace from local type "EvSelection" => Selection, and
1588 then later pull a "Selection" from some other namespace because
1589 we hadn't yet seen the local EvSelection. This could come
1590 down to hash table ordering and other things so not easy
1591 to write a test for.
1593 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1595 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1596 GLibEnumMember constructor as it should be the enum member nick.
1598 2008-10-02 Colin Walters <walters@verbum.org>
1600 Bug 552961: remove this parameter for methods
1602 * giscanner/glibtransformer.py: Delete this parameter; it is
1604 * girepository/ginvoke.c: Insert this parameter for methods.
1605 * girepository/gtypelib.c: Remove no longer needed verification of
1606 method this parameter.
1609 2008-09-30 Dan Winship <danw@gnome.org>
1611 Bug 554490: g-ir-scanner gets confused by '\\'
1613 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1614 backslashes so it will correctly parse '\\' and "\\"
1616 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1619 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1621 2008-10-02 Colin Walters <walters@verbum.org>
1623 bug 552393: Note variadic functions
1625 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1626 to use parameter_list directly.
1627 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1628 * giscanner/ast.py: Add Varargs type.
1629 * giscanner/transformer.py: Check for ellipsis symbol, transform
1631 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1632 Parse varargs functions, but filter them out before we start
1633 compiling the typelib.
1635 2008-10-02 Colin Walters <walters@verbum.org>
1637 Bug 554632: type tag for GType
1639 * girepository/girepository.h, girepository/girepository.c:
1640 Add type tag for GType - it's a special type we don't want
1641 to resolve to just "long".
1642 * docs/typelib-format.txt: Update.
1643 * girepository/girparser.c: Parse it.
1644 * giscanner/glibtransformer.py: Ensure we don't put GType in
1646 * tools/generate.c: Remove hardcoded type list.
1649 2008-09-30 Dan Winship <danw@gnome.org>
1651 Bug 554521: scanner generates wrong names for enum members with
1652 full type name prefix
1654 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1655 right amount when the entire "first" string is a prefix of
1658 * tests/scanner/foo.h (FooEnumFullname):
1659 * tests/scanner/foo-expected.gir: test that
1661 2008-09-29 Colin Walters <walters@verbum.org>
1663 Bug 552380: Array parameters should be marked in the gir
1665 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1666 uint8[]. Add Array, List, and Map subclasses of Type;
1667 these types can be generic. Return transfer defaults
1668 to true if return value is string or container type.
1669 Delete Sequence type.
1670 * giscanner/scannerlexer.l: Syntax change for annotations;
1671 use <> since it's more readable.
1672 * giscanner/girwriter.py: Write out these changes.
1673 * giscanner/girparser.py: Parse them.
1674 * giscanner/transformer.py: Have a defined set of
1675 both list and map types. When creating a type,
1676 check if the ctype we've parsed is one of them,
1677 if so create a container type subclass as appropriate.
1678 * girepository/girparser.c: Parse in generic types.
1681 2008-09-27 Colin Walters <walters@verbum.org>
1683 * tools/g-ir-scanner: Add --inject option.
1685 2008-09-25 Colin Walters <walters@verbum.org>
1687 Remove non-repository types from GIR
1689 * giscanner/ast.py: The canonical name is 'utf8', not
1691 * giscanner/glibast.py: A few more glib type mappings.
1692 * girepository/girparser.c: We only parse repository types.
1693 * tests/*.gir: Update.
1695 2008-09-23 Colin Walters <walters@verbum.org>
1697 Bug 552566: Add time_t type
1699 We need a type for time_t since it's special in C, and just
1700 mapping it to long precluded bindings from handling it
1703 2008-09-19 Colin Walters <walters@verbum.org>
1705 Bug 552390: Handle capitialization like "DBus" more robustly
1707 The to_underscores function was designed for use against prefixed
1708 names; we need a separate function which will convert names like
1709 DBusFoo into dbus_foo, not d_bus_foo.
1711 2008-09-19 Colin Walters <walters@verbum.org>
1713 Add check to make sure we're not hitting out unresolved types
1715 Validate the "this" argument for methods
1717 Remove heuristic matching of methods to classes based on prefix
1719 It was a broken hack that dated from when we handled underscoring
1720 and capitalization conventions less well.
1722 2008-09-18 Colin Walters <walters@verbum.org>
1724 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1726 On Darwin, the suffix for installed shared libraries (.dylib) is
1727 different from loadable modules (.so). We use a bit of magic shell
1728 script from Behdad Esfahbod to figure out the right suffix.
1730 2008-09-15 Johan Dahlin <johan@gnome.org>
1732 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1733 a wrapper for type_qualifier as well.
1735 2008-09-15 Colin Walters <walters@verbum.org>
1737 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1739 * giscanner/ast.py: Add deprecation attributes.
1740 * giscanner/girwriter.py: Write out deprecation data.
1741 * girepository/girparser.c: Relax parsing; deprecated
1742 attribute now includes freeform string.
1743 * giscanner/scannerlexer.l: Parse Deprecated.
1744 * giscanner/transformer.py: Look for deprecated attribute
1746 * tests/scanner/*: Add a Deprecated test.
1748 2008-09-14 Tor Lillqvist <tml@novell.com>
1750 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1752 2008-09-14 Colin Walters <walters@verbum.org>
1754 * giscanner/glibtransformer.py: Ignore functions with
1757 2008-09-12 Colin Walters <walters@verbum.org>
1759 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1761 2008-09-12 Colin Walters <walters@verbum.org>
1763 * giscanner/ast.py: Bind pid_t to INT for vte.
1765 2008-09-12 Colin Walters <walters@verbum.org>
1767 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1768 * giscanner/glibast.py: Avoid overwriting ctype.
1769 * giscsanner/transformer.py: Try resolving types using the GType names.
1771 2008-09-12 Colin Walters <walters@verbum.org>
1773 * giscanner/minixpath.py: Code to run an "XPath"
1774 assertion against an XML tree, taken from
1775 gir-repository/gir/tests.py.
1776 * giscanner/Makefile.am: Ship it.
1777 * tools/g-ir-scanner: Add --xpath-assertions option.
1778 * gir/GLib-assertions.txt: Add a few assertions.
1779 * gir/Makefile.am: Run them.
1781 2008-09-11 Colin Walters <walters@verbum.org>
1783 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1785 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1786 prefix if it ends with _. Tweak callback stripping to determine
1787 based on presence of _ whether we need to use strip_namespace_func
1788 or strip_namespace_object.
1790 2008-09-09 Owen Taylor <otaylor@redhat.com>
1792 * docs/typelib-format.txt: Wether => Whether
1794 2008-09-08 Colin Walters <walters@verbum.org>
1796 * girepository/girparser.c: Default to "readable" for properties.
1797 * giscanner/ast.py: Add readable, writable etc.
1798 * giscanner/girwriter.py: Writ them.
1799 * giscanner/glibtransformer.py: Inspect them.
1802 2008-09-07 Colin Walters <walters@verbum.org>
1804 * giscanner/cgobject.py: Add comment.
1806 2008-09-07 Colin Walters <walters@verbum.org>
1808 * giscanner/cgobject.py: Also call g_thread_init.
1810 2008-09-07 Colin Walters <walters@verbum.org>
1812 * giscanner/transformer.py: Fix regression by not
1813 stripping prefix before stripping namespace for unions
1816 2008-09-06 Colin Walters <walters@verbum.org>
1818 * giscanner/transformer.py: If a namespace contains
1819 multiple caps, try stripping both gnomekeyring_ and
1822 2008-09-07 Johan Dahlin <johan@gnome.org>
1824 Bug 551162 – giscanner does not recognize asm and __asm__
1825 * giscanner/scannerlexer.l:
1826 Patch by Jani Monoses.
1828 2008-09-06 Colin Walters <walters@verbum.org>
1830 * girepository/girnode.c: Allow gtype_name
1831 and gtype_init in struct and union.
1832 * girepository/girparser.c: Parse glib:
1833 boxed bits for both structure and union.
1834 * girepository/gtypelib.c: Don't barf
1835 if structure is boxed.
1836 * giscanner/girparser.py: Parse new XML
1838 * giscanner/girwriter.py: Write out new
1840 * giscanner/glibast.py: Define new classes
1841 which are both Boxed and Struct/Union, as
1842 well as an "Other" for everything else.
1843 * giscanner/glibtransformer.py: Handle
1844 boxed types specially; we try to merge
1845 them with a struct/union if one exists,
1846 otherwise fall back to generic boxed.
1848 * tools/generate.c: Write out new format.
1850 2008-09-06 Johan Dahlin <johan@gnome.org>
1852 * giscanner/grealpath.h: Include stdlib.h
1854 * docs/g-ir-generate.1: Remove leading %
1856 2008-09-01 Colin Walters <walters@verbum.org>
1858 * girepository/girparser.c: Look at c:type to determine
1859 whether or not an item is a pointer.
1861 2008-09-01 Johan Dahlin <johan@gnome.org>
1863 * tests/scanner/Makefile.am:
1864 Set PYTHONPATH so the scanner can run
1865 even if you didn't install anything.
1867 2008-09-01 Johan Dahlin <johan@gnome.org>
1870 Post-release version bump
1873 2008-09-01 Johan Dahlin <johan@gnome.org>
1877 2008-08-31 Colin Walters <walters@verbum.org>
1879 * giscanner/glibtransformer.py: Quiet info
1882 2008-08-31 Johan Dahlin <johan@gnome.org>
1885 Bump version to 0.5.0
1887 2008-08-31 Colin Walters <walters@verbum.org>
1889 * giscanner/glibtransformer.py: Follow aliases to ensure
1890 we don't get a constructor returning a basic type.
1891 * giscanner/transformer.py: Add function to follow aliases.
1894 2008-08-31 Johan Dahlin <johan@gnome.org>
1896 * giscanner/scannerlexer.l:
1897 * giscanner/scannerparser.y:
1898 * giscanner/sourcescanner.h:
1899 * giscanner/sourcescanner.py:
1900 Parse GCC extensions in the parser instead of just undeffing them
1901 in the pre-processor.
1903 2008-08-31 Johan Dahlin <johan@gnome.org>
1905 * giscanner/glibtransformer.py:
1906 Clean up a huge if. Do not add methods or constructors
1908 * giscanner/utils.py:
1909 second might be longer than first, check that.
1911 2008-08-31 Johan Dahlin <johan@gnome.org>
1916 2008-08-31 Colin Walters <walters@verbum.org>
1918 * girepository/girparser.c: Don't lose if we
1921 2008-08-31 Colin Walters <walters@verbum.org>
1923 * giscanner/glibtransformer.py: Look for libtool
1924 library in current directory
1925 * tests/scanner - Update.
1927 2008-08-30 Colin Walters <walters@verbum.org>
1929 * docs/typelib-format.txt: Add a guint32
1931 * gir/Makefile.am: Dep on Makefile
1932 * girepository/ginfo.c:
1933 * girepository/girepository.c: Clean up
1934 default typelib handling; remove global
1935 default_typelib variable. Ensure we handle
1936 NULL repository in more places.
1937 Support dependency resolution.
1938 Support lazy loading.
1939 * girepository/girepository.h: Remove
1940 g_irepository_unregister; we don't support
1941 unloading typelibs since really they're
1942 process-global. Update for lazy loading
1944 * girepository/girmodule.c: Use g_new0.
1945 Add dependencies to GirModule.
1946 * girepository/girparser.c: Parse dependencies.
1947 * girepository/gtypelib.c: Add 4 bytes for
1949 * tests/Makefile.am: Kill off gobject.gir,
1950 it conflicts with the real one.
1951 * tests/object.gir: Dep on GObject.
1952 * tools/generate.c: Take --includedir
1953 argument to say which directories to search
1954 for typelibs. Print out dependencies.
1956 2008-08-30 Colin Walters <walters@verbum.org>
1958 * giscanner/glibtransformer.py: Reduce warning noise.
1960 2008-08-29 Colin Walters <walters@verbum.org>
1962 * girepository/ginfo.c: Add some assertions regarding
1963 refcounts, just to be sure.
1964 * giscanner/glibtransformer.py: Blacklist a few more
1967 2008-08-29 Colin Walters <walters@verbum.org>
1969 * giscanner/glibtransformer.py: Blacklist a few
1970 functions that use GError oddly
1972 2008-08-29 Colin Walters <walters@verbum.org>
1974 * girepository/gtypelib.c: Don't crash if no
1977 2008-08-29 Colin Walters <walters@verbum.org>
1979 * girepository/girparser.c: Handle chains of aliases
1980 across modules by ensuring we fully qualify aliases
1983 2008-08-29 Colin Walters <walters@verbum.org>
1985 * girepository/girparser.c: Don't search aliases
1988 2008-08-29 Colin Walters <walters@verbum.org>
1990 * girepository/girparser.c: Rewrite type parsing
1991 to handle both GLib parsing case as well as correctly
1992 handling GLib.List and friends. Don't try to treat
1993 e.g. ListStore as a List.
1995 2008-08-29 Colin Walters <walters@verbum.org>
1997 * girepository/gtypelib.c: Add more context
2000 2008-08-29 Colin Walters <walters@verbum.org>
2002 * giscanner/glibtransformer.py: Add some informative
2003 logging messages in corner cases. Be sure we use
2004 the most recent node set instead of a cache
2005 when generating result set.
2006 * tests/: Remove duplicated bits in expected girs
2007 * girepository/girparser.c: Accept both List (for
2008 compiling GLib) and GLib.List (what the scanner
2011 * tools/generate.c: Generate canonical form.
2013 2008-08-29 Johan Dahlin <johan@gnome.org>
2015 * giscanner/config.py.in:
2016 Use datarootdir instead of datadir to avoid
2017 an autoconf warning.
2019 2008-08-29 Johan Dahlin <johan@gnome.org>
2023 * examples/gdk-pixbuf.gidl:
2025 Update and remove old cruft.
2027 2008-08-29 Johan Dahlin <johan@gnome.org>
2030 * docs/g-ir-compiler.1:
2031 * docs/g-ir-generate.1:
2032 * docs/g-ir-scanner.1:
2033 Add man pages for the generator and compiler.
2035 2008-08-29 Johan Dahlin <johan@gnome.org>
2037 * docs/g-ir-scanner.1: Document
2039 * giscanner/Makefile.am:
2040 * giscanner/gidlparser.py:
2041 * giscanner/gidlwriter.py:
2042 * tools/g-ir-scanner:
2043 Remove gidl support.
2045 2008-08-28 Colin Walters <walters@verbum.org>
2047 * tests/scanner/Makefile.am: Pass the right
2048 --includedir args. Add a Makefile dep.
2049 * tools/compiler.c: Pass includedirs down.
2050 * girepository/girparser.c: Actually put
2051 includedirs in context, pass down. Fix
2054 2008-08-28 Colin Walters <walters@verbum.org>
2056 * gir/Makefile.am: Use --includedir
2057 * girepository/girparser.c: Recursively parse
2058 includes to pull in aliases and expand them.
2059 We need this to avoid putting unknown names in
2061 * tools/compiler.c: Add --includedir option.
2062 * giscanner/ast.py: Map size/ssize to types
2065 2008-08-28 Tor Lillqvist <tml@novell.com>
2067 Make check now runs successfully on Windows.
2069 * tools/compiler.c (write_out_typelib): Use binary mode for output
2072 * girepository/girnode.c: Don't print NULL strings.
2074 * tests/invoke/Makefile.am
2075 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2076 convince libtool to build shared libraries.
2078 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2079 g_assert() instead of printing out expected errors.
2081 2008-08-28 Tor Lillqvist <tml@novell.com>
2083 * girepository/gtypelib.h: Change type of bitfield fields from
2084 guint to the most suitable smaller type. This makes the struct
2085 sizes match the ones on Linux that the sanity check expects when
2086 using gcc -mms-bitfields on Windows.
2088 2008-08-28 Johan Dahlin <johan@gnome.org>
2093 * giscanner/Makefile.am:
2094 * tests/Makefile.am:
2095 * tests/scanner/Makefile.am:
2096 Make distcheck pass.
2098 2008-08-27 Johan Dahlin <johan@gnome.org>
2100 * giscanner/Makefile.am:
2101 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2103 2008-08-27 Tor Lillqvist <tml@novell.com>
2105 Make g-ir-scanner work on Windows. Still problems with the typelib
2106 code. Changes okayed by jdahlin.
2108 * configure.ac: Check for Windows, set Automake conditional
2109 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2110 avoid shell quoting issues
2112 * girepository/Makefile.am: Use -no-undefined so that libtool
2113 agrees to build a shared library on Windows.
2115 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2116 Windows. Empty implementation on Windows so far.
2118 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2119 informative error message for the assertion failures. Tell also
2120 what the expected size of the struct is. Check all sizes first and
2121 fail afterwards if at least one size was different from expected.
2123 * tools/Makefile.am: Reorder libraries into proper logical
2126 * tools/generate.c: Don't include <dlfcn.h>, not used.
2128 * giscanner/Makefile.am: On Windows, link with the Python library,
2129 and install the module DLL as _giscanner.pyd. Remove the
2130 unnecessary import library and libtool library that libtool has
2133 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2134 and just skip it. Recognize also two "l" suffixes for long long
2135 constants. Recognize also __inline__.
2137 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2138 GetFullPathName(). As such, GetFullPathName() does more than the
2139 UNIX realpath(). It also changes relative paths into absolute
2140 paths. But for our purposes that shouldn't matter.
2142 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2143 Windows the file descriptor passed to us is from Python. Python
2144 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2145 uses msvcrt.dll. On Windows, file descriptors are specific to
2146 which C library is used. So we must find out what underlying OS
2147 handle corresponds to the file descriptor Python passes us, and
2148 then make that into a file descriptor valid for the C library this
2151 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2152 __attribute__ as the lexer now handles it. The definition as empty
2153 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2154 __attribute__. Close the temp file before unlinking it.
2156 * giscanner/cgobject.py: Use correct library name for the gobject
2159 * gir/Makefile.am: Must pass the full basename of the DLLs on
2160 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2161 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2162 reality they won't change, until there is a GLib 3, and then also
2163 the Unix code here needs changing.
2165 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2168 2008-08-26 Colin Walters <walters@verbum.org>
2170 * girepository/girepository.c: Search
2171 $DATADIR/girepository instead of
2172 $DATADIR/gitypelibs; this naming makes
2173 it clearer that e.g. jgir can install
2175 * gir/Makefile.am: Install there.
2177 2008-08-26 Colin Walters <walters@verbum.org>
2179 * girepository/gtypelib.c (_g_typelib_init): Also
2180 use G_MODULE_SUFFIX instead of hardcoding .so.
2182 2008-08-26 Colin Walters <walters@verbum.org>
2184 * girepository/gtypelib.c (_g_typelib_init): Free
2185 string in the right place.
2187 2008-08-26 Colin Walters <walters@verbum.org>
2189 * girepository/gtypelib.c (_g_typelib_init): Handle
2190 both .la and .so names; this works better in the
2191 uninstalled library case.
2193 2008-08-26 Johan Dahlin <johan@gnome.org>
2196 * giscanner/Makefile.am:
2197 * giscanner/cgobject.py:
2198 * giscanner/config.py.in:
2199 * giscanner/sourcescanner.py:
2200 Avoid undeffing __GNUC__, instead define
2201 __attribute__ & friends. Remove glibconfig.h hack.
2202 This makes gobject-introspection work better on
2203 MacOS X, Thanks to Richard Hult for kind help.
2205 2008-08-25 Colin Walters <walters@verbum.org>
2207 * giscanner/glibtransformer.py: Always print
2210 2008-08-25 Colin Walters <walters@verbum.org>
2212 * giscanner/glibtransformer.py: Skip over
2213 interfaces we don't know.
2215 2008-08-25 Colin Walters <walters@verbum.org>
2217 * girepository/girparser.c: Parse new implements
2218 syntax, drop gapi one.
2219 * tests/object.gir: Update.
2220 * tools/generate.c: Generate new syntax.
2222 2008-08-25 Colin Walters <walters@verbum.org>
2224 * giscanner/ast.py: Add interfaces property
2226 * giscanner/girwriter.py: Write out implemented
2228 * giscanner/glibtransformer.py: Introspect
2229 implemented interfaces.
2230 * tests/scanner/*: Make FooObject implement
2233 2008-08-25 Colin Walters <walters@verbum.org>
2235 * giscanner/glibtransformer.py: More correctly pair
2236 methods; if we have a symbol that starts with
2237 e.g. hippo_canvas look for a matching HippoCanvas
2238 class before accepting e.g. HippoCanvasImage.
2240 2008-08-24 Colin Walters <walters@verbum.org>
2242 * tools/g-ir-scanner: Filter out unknown options from
2245 2008-08-24 Colin Walters <walters@verbum.org>
2247 * giscanner/glibtransformer.py: Fail with better
2248 error if we can't find library.
2250 2008-08-24 Colin Walters <walters@verbum.org>
2252 * tools/g-ir-scanner: Use subprocess instead of
2253 commands, works on Windows and avoids the evil
2256 2008-08-24 Colin Walters <walters@verbum.org>
2258 * giscanner/glibtransformer.py: Skip over
2259 g_object_get_type from GLib trunk.
2261 2008-08-24 Colin Walters <walters@verbum.org>
2263 * girepository/girepository.c (g_irepository_require):
2264 Don't open shared library here; we already do it
2267 2008-08-24 Colin Walters <walters@verbum.org>
2269 * girepository/gtypelib.c: Add context stack so
2270 when we get an error we can print out nicely
2273 2008-08-24 Johan Dahlin <johan@gnome.org>
2275 * girepository/girparser.c (start_glib_boxed), (start_function),
2276 (start_field), (start_alias):
2277 Refactor a couple of parsing functions to be simpler to follow.
2280 2008-08-24 Johan Dahlin <johan@gnome.org>
2282 * girepository/girparser.c (start_function):
2283 Remove left-over code, checking type of function.
2285 2008-08-23 Colin Walters <walters@verbum.org>
2287 * giscanner/config.py: Define DATADIR.
2288 * giscanner/transformer.py: Look in DATADIR.
2290 2008-08-23 Colin Walters <walters@verbum.org>
2292 * girepository/gtypelib.c: Check constructor
2294 * girepository/girnode.c: Small tweaks.
2295 * girepository/ginfo.c: Calculate signature offsets
2297 * girepository/girparser.c: Remove duplicate
2299 * giscanner/glibtransformer.py: Avoid marking
2300 functions which return a basic type as
2303 2008-08-23 Colin Walters <walters@verbum.org>
2305 * girepository/girparser.c: Ignore <include>.
2306 * giscanner/girparser.py: Parse them.
2307 * giscanner/girwriter.py: Generate them.
2308 * giscanner/transformer.py: Process <include>
2309 recursively. Don't require full path for
2310 includes, look in {$XDG_DATA_DIRS}/gir.
2311 * tools/g-ir-scanner: Pass through includes.
2312 * Makefile.am: Remove extra --include
2314 * *-expected.gir: Add expected includes.
2316 2008-08-23 Johan Dahlin <johan@gnome.org>
2318 * tests/scanner/Makefile.am:
2319 * tests/scanner/annotation-expected.gir:
2320 * tests/scanner/drawable-expected.gir:
2321 Avoid duplication in the Makefile, regenerate with new
2322 namespaces (same as the filename)
2324 2008-08-22 Colin Walters <walters@verbum.org>
2326 * girepository/girnode.c: Don't hardcode integers,
2329 2008-08-22 Johan Dahlin <johan@gnome.org>
2331 * giscanner/sourcescanner.py:
2332 Check for ../gobject-introspection-1.0.pc.in to determine
2333 if we run installed or uninstalled.
2335 2008-08-22 Johan Dahlin <johan@gnome.org>
2338 * giscanner/sourcescanner.py:
2339 Send in undefs/defines via writing it directly to stdin
2340 of cpp instead of via arguments.
2342 2008-08-22 Colin Walters <walters@verbum.org>
2344 * tools/generate.c, tools/compiler.c: Default
2346 * all Makefile.am: Update.
2348 2008-08-22 Colin Walters <walters@verbum.org>
2350 * girepository/girparser.c: Pass through
2351 recursive types. Avoid overwriting errors.
2352 * giscanner/xmlwriter.py: Always write the
2354 * tests/*.gir: Adjust.
2355 * tests/scanner/Makefile.am: Build typelibs,
2356 and generate XML from those. Once we
2357 have a good diff mechanism...
2358 * tests/scanner/*-expected.gir: Add XML
2360 * tools/g-ir-scanner: Accept --typelib-xml
2362 * tools/generate.c: Better defaults for transfer.
2364 2008-08-22 Johan Dahlin <johan@gnome.org>
2368 * giscanner/Makefile.am:
2369 * giscanner/config.py.in:
2370 * giscanner/sourcescanner.py:
2371 Use the generated glibconfig.h for all scanner invokations.
2372 Rename it to glibconfig-scanner.h and install it.
2373 Add a config.py which so far contains the include dir.
2375 2008-08-22 Johan Dahlin <johan@gnome.org>
2378 Replace glibconfig.h with our own, do some replacement
2379 for CPP/C features we do not support
2381 2008-08-22 Colin Walters <walters@verbum.org>
2383 * tools/generate.c (write_callable_info): Fix unref
2386 2008-08-22 Colin Walters <walters@verbum.org>
2388 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2389 * tests/Makefile.am: Support $(DEBUG)
2390 * tools/generate.c: Do immediate close tags if no
2393 2008-08-21 Colin Walters <walters@verbum.org>
2395 * tests/scanner/drawable-expected.gir,
2396 * tests/scanner/drawable.c,
2397 * tests/scanner/drawable.h:
2400 2008-08-21 Colin Walters <walters@verbum.org>
2402 * giscanner/glibtransformer.py: Compute prefix
2403 by searching through the symbol for bits
2404 rather than going directly from ctype; this fixes
2407 2008-08-21 Colin Walters <walters@verbum.org>
2409 * giscanner/glibtransformer.py: Also try squashing
2410 underscores from namespace, fixes webkit_web_view_new.
2412 2008-08-21 Colin Walters <walters@verbum.org>
2414 * giscanner/glibtransformer.py: More ctor work,
2415 avoid having gtk_window_group_new end up under
2418 2008-08-21 Colin Walters <walters@verbum.org>
2420 * giscanner/glibtransformer.py: Much simpler approach
2421 of mapping uscored names to classes.
2422 * giscanner/utils.py: Remove unnecessary function.
2424 2008-08-21 Johan Dahlin <johan@gnome.org>
2426 * girepository/girepository.c (g_irepository_require):
2427 Plug memory leak and avoid using freed memory.
2428 Resolve the whole module path, here as well.
2430 2008-08-21 Colin Walters <walters@verbum.org>
2432 * giscanner/glibtransformer.py: Look up all permutations
2433 of class names when scanning methods/ctors based on
2434 the prefix instead of using the return value. This
2435 associates gtk_window_new with the right class.
2437 2008-08-21 Colin Walters <walters@verbum.org>
2439 * girepository/girmodule.c (g_ir_module_build_typelib):
2440 Revert change to increment header_size; we do that in
2443 2008-08-21 Colin Walters <walters@verbum.org>
2445 * girepository/girnode.c (write_string): Tweak to
2446 use UINT instead of INT. Not likely to matter.
2447 * girepository/girmodule.c (g_ir_module_build_typelib):
2448 Add to header_offset as well for header strings
2449 to match what write_string does.
2450 * girepository/gtypelib.c: Replace is_name with
2451 validate_name, which more strongly validates and
2452 handles errors in a better way. Update all callers.
2453 * giscanner/glibtransformer.py: Handle constructors
2456 2008-08-21 Johan Dahlin <johan@gnome.org>
2458 * gir/Makefile.am (typelibs_DATA): Build and
2459 install the Gio.typelib too
2461 * girepository/gtypelib.c (_g_typelib_init):
2462 Use g_module_build_path to resolve the shlib name
2464 2008-08-21 Colin Walters <walters@verbum.org>
2466 * gir/Makefile.am: CLEANFILES typelibs too.
2468 2008-08-21 Johan Dahlin <johan@gnome.org>
2470 * giscanner/glibtransformer.py:
2471 Do not send .la files through find_library.
2473 2008-08-21 Colin Walters <walters@verbum.org>
2475 * girepository/girparser.c (g_irepository_require):
2476 Fix one small leak in error case.
2478 2008-08-21 Johan Dahlin <johan@gnome.org>
2481 Parse glibconfig.h as well and install the compiled
2484 2008-08-21 Johan Dahlin <johan@gnome.org>
2487 * giscanner/glibtransformer.py:
2488 * tools/g-ir-scanner:
2489 Do not hard-core library names in the Makefile, reuse
2490 ctypes find_library instead.
2492 2008-08-21 Johan Dahlin <johan@gnome.org>
2494 * girepository/girparser.c (resolve_aliases):
2495 Remove compilation warnings
2497 2008-08-21 Johan Dahlin <johan@gnome.org>
2499 * girepository/girepository.c (g_irepository_require):
2500 Rewrap and fix double free bug by leaking a bit.
2502 2008-08-20 Colin Walters <walters@verbum.org>
2504 * girepository/girepository.c: Add new function
2505 g_irepository_get_typelib_path which tells
2506 us from where we loaded a namespace.
2508 2008-08-20 Colin Walters <walters@verbum.org>
2510 * tests/scanner/*-expected.gir: Adjust for
2511 added shared-library.
2512 * giscanner/giwriter.py: Make pylint happy.
2514 2008-08-20 Colin Walters <walters@verbum.org>
2516 * girepository/girmodule.c (g_ir_module_build_typelib):
2517 Calculate size correctly, avoid use-after-free.
2519 2008-08-20 Colin Walters <walters@verbum.org>
2521 * girepository/girepository.c: Remove
2522 g_irepository_register_file in favor of
2523 g_irepository_require. There are two
2524 possible deployment scenarios for typelibs:
2525 First, separate in $DATADIR/gitypelibs/. Second,
2526 they may be embedded in shlibs. However since
2527 the first is now the normal case, the API is
2528 optimized around it.
2530 Refactor internals to look up typelibs for
2531 namespaces just-in-time, but we expect
2532 consumers to call g_irepository_require.
2534 Also, add some docs. No one has died from that
2536 * gir/Makefile.am: Need --library for glib.
2537 * giscanner/girwriter.py: Write out shared-library.
2538 * tools/g-ir-writer: Take the first --library
2539 argument as the target of shared-library. In
2540 the future we should make this nicer with pkg-config
2543 2008-08-20 Colin Walters <walters@verbum.org>
2545 * girepository/girparser.py: And parse them.
2547 2008-08-20 Johan Dahlin <johan@gnome.org>
2549 * giscanner/glibast.py: Add gshort/gushort types
2551 2008-08-20 Colin Walters <walters@verbum.org>
2553 * gir/Makefile.am: Rename .gir files using GI namespace.
2554 * girepository/girepository.c: Use XDG_DATA_DIRS for
2555 looking up typelibs. Also typelibs are now suffixed
2557 * tests/invoke/Makefile.am: Only use metadata.
2558 * girepository/Makefile.am: Remove unnecessary include.
2559 * tests/scanner/Makefile.am: Update using GI namespaces
2560 for scanner includes.
2562 2008-08-20 Colin Walters <walters@verbum.org>
2564 * girepository/transformer.py: Suppress aliases whose
2566 * girepository/ast.py: Define some more aliases.
2568 2008-08-20 Colin Walters <walters@verbum.org>
2570 * girepository/girparser.c: Avoid alias infloops.
2572 2008-08-20 Colin Walters <walters@verbum.org>
2574 * tests/scanner/foo-expected.gir: Fix expected list type.
2576 2008-08-20 Johan Dahlin <johan@gnome.org>
2578 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2579 Add a workaround for #548689.
2580 We can now compile gtk!
2582 2008-08-20 Colin Walters <walters@verbum.org>
2584 * giscanner/glibtransformer.py: Try to look up
2585 aliases using the c:type too.
2587 2008-08-20 Colin Walters <walters@verbum.org>
2589 * girepository/girparser.c: Parse union fields.
2591 2008-08-20 Johan Dahlin <johan@gnome.org>
2593 * giscanner/ast.py: Make time_t an alias for long
2595 * gir/gio-2.0-good.gir:
2596 * gir/glib-2.0-good.gir:
2597 * gir/gobject-2.0-good.gir:
2599 * giscanner/glibtransformer.py:
2600 Do not delete Class structures, we need them in gdk/gtk.
2601 * tests/scanner/drawable-expected.gir:
2602 * tests/scanner/foo-expected.gir:
2603 * tests/scanner/utility-expected.gir:
2606 2008-08-20 Johan Dahlin <johan@gnome.org>
2608 * tests/scanner/Makefile.am:
2609 * tests/scanner/annotation-expected.gir:
2610 * tests/scanner/annotation.c (annotation_object_class_init),
2611 (annotation_object_init), (annotation_object_method),
2612 (annotation_object_in), (annotation_object_out),
2613 (annotation_object_inout), (annotation_object_inout2),
2614 (annotation_object_inout3), (annotation_object_calleeowns),
2615 (annotation_object_calleesowns), (annotation_object_get_strings),
2616 (annotation_object_with_voidp), (annotation_object_get_objects),
2617 (annotation_object_create_object), (annotation_object_allow_none):
2618 * tests/scanner/annotation.h:
2619 * tests/scanner/foo-expected.gir:
2620 * tests/scanner/foo.c:
2621 * tests/scanner/foo.h:
2622 Split out annotation tests out of foo
2624 2008-08-20 Johan Dahlin <johan@gnome.org>
2626 * tests/scanner/Foo-expected.gir:
2627 * tests/scanner/Makefile.am:
2628 * tests/scanner/foo-expected.gir:
2629 * tests/scanner/foo-object.h:
2630 * tests/scanner/foo.c:
2631 Foo->foo, foo-object.h -> foo.h
2633 2008-08-20 Johan Dahlin <johan@gnome.org>
2635 * tests/scanner/Foo-expected.gir:
2636 * tests/scanner/Makefile.am:
2637 * tests/scanner/drawable-expected.gir:
2638 * tests/scanner/drawable.c (test_drawable_class_init),
2639 (test_drawable_init):
2640 * tests/scanner/drawable.h:
2641 * tests/scanner/foo-object.h:
2642 * tests/scanner/foo.c (foo_boxed_method):
2643 Move the drawable parts out of Foo to its own test.
2645 2008-08-20 Johan Dahlin <johan@gnome.org>
2647 * tests/scanner/Foo-expected.gir:
2648 * tests/scanner/foo-object.h:
2649 * tests/scanner/foo.c (foo_drawable_class_init),
2650 (foo_drawable_init):
2651 Add a based on GdkDrawable which generates
2654 2008-08-19 Colin Walters <walters@verbum.org>
2656 * giscanner/transformer.py: Don't try
2657 to strip prefix before namespace.
2659 2008-08-19 Johan Dahlin <johan@gnome.org>
2661 * giscanner/transformer.py:
2662 * tests/scanner/Foo-expected.gir:
2663 * tests/scanner/foo-object.h:
2664 Add support for typedef void foo type of
2667 2008-08-19 Johan Dahlin <johan@gnome.org>
2670 * giscanner/girwriter.py:
2671 * giscanner/glibtransformer.py:
2672 * giscanner/transformer.py:
2673 * tests/scanner/Foo-expected.gir:
2674 Add basic support for union, base the code much
2675 on Struct. Add a testcase.
2677 2008-08-19 Johan Dahlin <johan@gnome.org>
2679 * tests/scanner/Foo-expected.gir:
2680 * tests/scanner/foo-object.h:
2681 Add a union testcase which the compiler currently
2684 2008-08-19 Johan Dahlin <johan@gnome.org>
2686 * gobject-introspection-1.0.pc.in:
2687 Add a g_ir_compiler variable
2689 2008-08-19 Colin Walters <walters@verbum.org>
2691 * giscanner/ast.py: Rework types to be more closely
2693 * giscanner/girparser.py: Parse more bits.
2694 * giscanner/girwriter.py: Write sequences in a new
2695 way that specifies container type.
2696 * giscanner/glibast.py: Adjust for ast.py changes,
2697 add 'ctype' property to GLibObject and GLibInterface
2698 so we can look things up by it later.
2699 * gicanner/transformer.py: Names is new class holding
2700 the various namespaces we manage. Do not confuse
2701 with Namespace which is toplevel XML node effectively.
2702 Rework all type resolution to go through
2703 _resolve_type_name_1.
2704 * giscanner/glibtransformer.py: Raise UnknownTypeError
2705 instead of ValueError for cleanliness. Add Unresolved
2706 class to mark types whose parent we haven't seen yet.
2707 Use new Names object from transformer.py.
2708 Correctly look up parent=.
2709 Fix type validation to handle sequences.
2710 * tests/scanner/Foo-expected.gir: Update for sequence
2711 work, int instead of int32.
2712 * tools/g-ir-scanner: Add --noclosure option
2713 * gir/Makefile.am: Use --noclosure by default for
2716 2008-08-18 Johan Dahlin <johan@gnome.org>
2718 * gir/gio-2.0-good.gir:
2719 * gir/glib-2.0-good.gir:
2720 * gir/gobject-2.0-good.gir:
2723 2008-08-18 Johan Dahlin <johan@gnome.org>
2726 * giscanner/girparser.py:
2727 * giscanner/girwriter.py:
2728 * giscanner/glibast.py:
2729 * giscanner/glibtransformer.py:
2730 * giscanner/transformer.py:
2731 * tests/scanner/Foo-expected.gir:
2732 * tests/scanner/foo-object.h:
2733 * tests/scanner/utility-expected.gir:
2734 * tests/scanner/utility.h:
2735 Redo type resolving and validation.
2736 Add a couple of new tests.
2737 Patch mostly written by Colin.
2739 2008-08-18 Johan Dahlin <johan@gnome.org>
2742 * giscanner/girparser.py:
2744 * giscanner/transformer.py:
2745 Improve enum parsing for enums without a GType.
2746 Make flags/enum references to other girs work
2747 * giscanner/utils.py:
2749 * tests/scanner/Makefile.am:
2750 * tests/scanner/foo-object.h:
2751 * tests/scanner/utility-expected.gir:
2752 * tests/scanner/utility.h:
2753 Add a new test for external enum references
2755 2008-08-18 Johan Dahlin <johan@gnome.org>
2757 * docs/global-module-registry.txt: Update
2759 * tests/array.gir: Update with new type proposal
2761 * girepository/girepository.c (g_type_tag_to_string):
2762 * girepository/girepository.h:
2763 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2765 * girepository/girnode.h:
2766 Make enum serializing functions public. Clean up some whitespace.
2768 2008-08-17 Johan Dahlin <johan@gnome.org>
2770 * docs/global-module-registry.txt:
2771 Add a document for an on disk module registry format
2773 2008-08-17 Johan Dahlin <johan@gnome.org>
2776 * gir/gio-2.0-good.gir:
2779 2008-08-17 Johan Dahlin <johan@gnome.org>
2782 * gir/glib-2.0-good.gir:
2783 * gir/gobject-2.0-good.gir:
2784 * giscanner/cgobject.py:
2785 * giscanner/glibtransformer.py:
2786 Regenerate GObject & GType.
2787 Avoid warnings when generating gobject-2.0.gir.
2788 Introspect a little more, and skip *_get_type functions.
2790 2008-08-17 Colin Walters <walters@verbum.org>
2792 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2793 Rename to -good, always generate during build.
2794 * gir/Makefile.am: Ensure .gir files dep on
2795 all scanner sources.
2796 * Makefile.am: Switch build order to ensure
2797 the scanner is ready before we do gir/.
2798 * tools/g-ir-scanner: Look for .git too.
2800 2008-08-17 Johan Dahlin <johan@gnome.org>
2802 * girepository/gtypelib.c (validate_enum_blob):
2803 * giscanner/glibtransformer.py:
2804 * giscanner/transformer.py:
2805 Remove resolve_possible_typedefs, it was unused.
2806 Allow multiple enum values of the sample value in an enum,
2807 since it's actually pretty common.
2808 Register enums so they can be resolved too.
2810 2008-08-16 Johan Dahlin <johan@gnome.org>
2812 * giscanner/girparser.py:
2813 Parse enumeration/bitfield.
2815 2008-08-16 Johan Dahlin <johan@gnome.org>
2817 * giscanner/girparser.py:
2820 2008-08-16 Johan Dahlin <johan@gnome.org>
2822 * giscanner/glibtransformer.py:
2823 Resolve type names for alias targets
2824 * giscanner/transformer.py:
2825 Skip FILE* parameters fow now
2827 2008-08-16 Johan Dahlin <johan@gnome.org>
2830 * gir/gobject-2.0.gir:
2833 * tests/scanner/Makefile.am:
2836 2008-08-15 Colin Walters <walters@verbum.org>
2838 * giscanner/glibtransformer.py: Explicitly construct
2839 new list, since we're deleting as we iterate.
2840 Don't delete all structures which end in Class; just
2841 ones which have a paired GObject.
2842 Fix printing of type warning.
2843 * giscanner/transformer.py: Make strip_namespace_object
2844 be the identity function if it doesn't match the
2847 2008-08-15 Colin Walters <walters@verbum.org>
2849 * giscanner/cgobject.py: Define yet more argument
2850 prototypes; fix prototype for g_type_fundamental.
2852 2008-08-14 Johan Dahlin <johan@gnome.org>
2854 * tests/Makefile.am:
2855 * tests/constant.gir:
2856 * tests/gobject.gir:
2858 * tools/generate.c (write_struct_info):
2859 Fix generator for constant/gobject/struct
2861 2008-08-14 Johan Dahlin <johan@gnome.org>
2863 * tests/Makefile.am:
2865 * tools/generate.c (write_enum_info):
2866 Fix generation of enum/bitfields
2868 2008-08-14 Johan Dahlin <johan@gnome.org>
2870 * girepository/girparser.c (start_field), (start_constant),
2871 (start_type), (end_element_handler):
2872 Clear up constant parsing
2877 * tools/generate.c (write_callable_info), (write_function_info),
2878 (write_callback_info), (write_constant_info), (write_signal_info),
2879 (write_vfunc_info), (write_property_info), (write_object_info),
2880 (write_interface_info):
2881 Constants/Signals are handled now.
2883 2008-08-14 Johan Dahlin <johan@gnome.org>
2885 * girepository/girparser.c (start_type):
2886 Don't require c:type.
2887 * tests/Makefile.am:
2890 Update, remove parts we don't support yet
2891 * tests/roundtrips.sh:
2893 * tools/generate.c (write_type_info), (write_field_info),
2894 (write_callable_info), (write_struct_info):
2895 Make it emit proper gir.
2897 2008-08-14 Johan Dahlin <johan@gnome.org>
2899 * giscanner/transformer.py:
2900 New internal function for adding a new node.
2902 2008-08-14 Johan Dahlin <johan@gnome.org>
2905 Define an internal _H_ variable so we skip parsing both
2906 i18n headers, only one is needed.
2908 Add the glib-2.0.gir too.
2909 * giscanner/glibast.py:
2910 Add gconstpointer as an alias for ANY
2911 * giscanner/transformer.py:
2912 Do not lower case enumeration names per se.
2913 Skip functions which has parameters called 'va_list'
2915 2008-08-14 Colin Walters <walters@verbum.org>
2917 * giscanner/transformer.py: Comment data structures.
2918 Also squash pointers in resolve_type_name to correspond
2919 with what we do for params.
2920 * giscanner/glibtransformer.py: Print warnings in more
2921 situations. Rework checks for method/constructor to
2922 look up in our GType database instead of just checking
2923 for *. Avoid generating <record> for GObject which
2924 duplicate the <class>.
2925 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2928 2008-08-14 Johan Dahlin <johan@gnome.org>
2930 * giscanner/girwriter.py:
2931 * giscanner/glibast.py:
2932 * giscanner/glibtransformer.py:
2933 * giscanner/transformer.py:
2935 * tests/Makefile.am:
2936 Add pyflakes.py and run it in make check.
2937 Update the source code to fix the errors reported by
2940 2008-08-14 Johan Dahlin <johan@gnome.org>
2943 * giscanner/girparser.py:
2944 * giscanner/glibast.py:
2945 * giscanner/glibtransformer.py:
2946 Refactor the parser a bit.
2947 Add parent type to interfaces and update callsites.
2949 2008-08-14 Johan Dahlin <johan@gnome.org>
2951 * giscanner/glibtransformer.py:
2952 * giscanner/utils.py:
2953 Refactor a bit, avoid isinstance and add a method
2954 for each type we parse.
2956 2008-08-14 Johan Dahlin <johan@gnome.org>
2959 * giscanner/girparser.py:
2960 * giscanner/glibtransformer.py:
2961 * tests/Makefile.am:
2962 Run pep8.py in make check, fix old errors.
2964 2008-08-13 Colin Walters <walters@verbum.org>
2966 * giscanner/girparser.py: Parse records.
2968 2008-08-13 Colin Walters <walters@verbum.org>
2970 * gir/Makefile.am: Install again.
2971 * gir/gobject-2.0.gir: Add some more bits.
2973 2008-08-13 Colin Walters <walters@verbum.org>
2975 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2976 * giscanner/girparser.py: Handle aliases.
2977 * giscanner/transformer.py: Record aliases. Make resolver
2978 functions public; we now call into these explicitly from
2979 glibtransformer. Handle resolving aliases.
2980 * giscanner/glibtransformer.py: Separate our internal namespace
2981 from included ones. Call up into transformer's resolver functions.
2983 2008-08-13 Johan Dahlin <johan@gnome.org>
2985 * girepository/girnode.c (g_ir_node_get_full_size_internal):
2986 * girepository/girparser.c (start_class):
2987 * giscanner/glibtransformer.py:
2988 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
2990 2008-08-13 Johan Dahlin <johan@gnome.org>
2992 * giscanner/cgobject.py:
2993 Register GInitiallyUnowned
2994 * giscanner/girwriter.py:
2995 * giscanner/glibtransformer.py:
2996 Special case GObject/GInitially owned as they are a bit special to use.
2998 2008-08-13 Colin Walters <walters@verbum.org>
3000 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3001 Object is in GObject namespace.
3003 2008-08-13 Colin Walters <walters@verbum.org>
3005 * giscanner/girparser.py: Fix processing of functions
3008 2008-08-13 Colin Walters <walters@verbum.org>
3010 * giscanner/girparser.py: Parse more than just <class.
3011 * giscanner/glibtransformer.py: Put aliases in a separate
3012 data structure since their name is not canonicall.
3013 * giscanner/transformer.py: Handle resolving type names
3016 2008-08-13 Johan Dahlin <johan@gnome.org>
3018 * tools/g-ir-scanner:
3019 Allow multiple libraries
3020 * giscanner/glibtransformer.py:
3021 Rename load_library to add_library, traverse over all libraries
3022 when trying to resolve a function
3024 2008-08-12 Colin Walters <walters@verbum.org>
3026 * giscanner/transformer.py: Record typedefs as <alias> elements.
3027 Also attempt to look up types in external namespaces.
3028 * giscanner/girwriter.py: Write them.
3029 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3030 checks. Resolve interface methods and properties.
3031 * tests/scanner/foo-object.h: Add a method with typedef.
3032 * tests/scanner/Foo-expected.gir: Update.
3033 * girepository/girnode.c: Debug tweaks.
3034 * girepository/girparser.c: Make a first pass through the XML where we
3035 record all the aliases. This lets us resolve them as we go through the
3037 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3038 from gir-repository.
3040 2008-08-12 Colin Walters <walters@verbum.org>
3042 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3043 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3045 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3047 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3049 2008-08-12 Colin Walters <walters@verbum.org>
3051 * giscanner/glibtransformer.py: Also transform object properties.
3053 2008-08-12 Colin Walters <walters@verbum.org>
3055 * giscanner/glibtransformer.py: Also transform callbacks
3056 and structure field types.
3057 * tests/scanner/Fooe-expected.gir: Update to expect correct
3058 names for callbacks and structs.
3060 2008-08-12 Colin Walters <walters@verbum.org>
3062 * girepository/girparser.c: Handle 'any'.
3063 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3064 Add test for void *.
3066 2008-08-12 Colin Walters <walters@verbum.org>
3068 * giscanner/glibtransformer.py: We need to do type
3069 resolution in a second pass after we've seen all the
3070 enums, records, etc.
3072 2008-08-12 Colin Walters <walters@verbum.org>
3074 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3075 Add enum return value.
3076 * giscanner/glibtransformer.py: Transform function return types
3079 2008-08-12 Colin Walters <walters@verbum.org>
3081 * tests/scanner/Makefile.am: Dep .gir files on scanner
3082 sources too. Also remove @ so we see scanner invocations.
3084 2008-08-12 Colin Walters <walters@verbum.org>
3086 * girepository/girparser.c, girepository/gtypelib.c,
3087 girepository/gtypelib.h, girepository/girnode.c:
3088 Remove usage of (GAPI-oriented) TypeTag in favor of
3089 GITypeTag from girepository.h.
3091 2008-08-10 Colin Walters <walters@verbum.org>
3093 * tests/roundtrips.sh: Use the correct tests.
3095 2008-08-10 Colin Walters <walters@verbum.org>
3097 * giscanner/cgobject.py: Declare/wrap a few more functions.
3098 Fix parameter types for g_object_new and g_type_fundamental.
3100 2008-08-10 Colin Walters <walters@verbum.org>
3102 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3103 us to declare types for both return value and parameters. The
3104 ctypes default of 'int' is bad because it hides 32/64 bit
3105 problems. Convert all existing functions to use it.
3107 2008-08-09 Johan Dahlin <johan@gnome.org>
3109 * giscanner/__init__.py:
3111 * giscanner/cgobject.py:
3112 * giscanner/gidlparser.py:
3113 * giscanner/gidlwriter.py:
3114 * giscanner/girparser.py:
3115 * giscanner/girwriter.py:
3116 * giscanner/glibast.py:
3117 * giscanner/glibtransformer.py:
3118 * giscanner/odict.py:
3119 * giscanner/sourcescanner.py:
3120 * giscanner/transformer.py:
3121 * giscanner/utils.py:
3122 * giscanner/xmlwriter.py:
3123 * tools/g-ir-scanner:
3127 2008-08-09 Johan Dahlin <johan@gnome.org>
3130 * relaxng/c-types.xml:
3131 * relaxng/g-types.xml:
3132 * relaxng/relaxng.rng:
3134 Remove outdated relaxng schemas.
3136 2008-08-09 Johan Dahlin <johan@gnome.org>
3139 Rename metadata to typelib in variable names,
3142 2008-08-09 Johan Dahlin <johan@gnome.org>
3146 Remove old C scanner, which got rewritten in python.
3148 2008-08-09 Johan Dahlin <johan@gnome.org>
3150 * girepository/Makefile.am:
3151 * tools/Makefile.am:
3152 * tools/girmodule.c:
3153 * tools/girmodule.h:
3156 * tools/girparser.c:
3157 * tools/girparser.h:
3158 * tools/girwriter.c:
3159 * tools/girwriter.h:
3160 Move shared *.[ch] files to girepository from tools
3162 2008-08-09 Johan Dahlin <johan@gnome.org>
3164 * tests/Makefile.am:
3167 * tests/constant.test:
3169 * tests/errors.test:
3170 * tests/function.test:
3171 * tests/gobject.test:
3172 * tests/interface.test:
3173 * tests/object.test:
3174 * tests/struct.test:
3179 Rename *.test to *.gir
3181 2008-08-09 Johan Dahlin <johan@gnome.org>
3184 * tests/Makefile.am:
3185 * tests/parser/Foo-expected.gir:
3186 * tests/parser/Makefile.am:
3187 * tests/parser/foo-object.h:
3188 * tests/parser/foo.c:
3189 * tests/parser/utility-expected.gir:
3190 * tests/parser/utility.c:
3191 * tests/parser/utility.h:
3192 * tests/scanner/Makefile.am:
3193 Rename tests/parser to test/scanner
3195 2008-08-08 Colin Walters <walters@verbum.org>
3197 * tests/roundtrips.sh: Use local .gir files again.
3199 2008-08-08 Colin Walters <walters@verbum.org>
3201 * tests/invoke/Makefile.am: .gir file depends on libtool
3204 2008-08-08 Colin Walters <walters@verbum.org>
3206 * tools/girnode.c: Pass through parent node so we can
3207 print the node whose child is NULL, if that occurs.
3209 2008-08-08 Johan Dahlin <johan@gnome.org>
3211 * tests/Makefile.am:
3212 Disable roundtrip tests which are not yet working
3213 * tests/invoke/testfns.gir:
3216 2008-08-08 Johan Dahlin <johan@gnome.org>
3218 * giscanner/girwriter.py:
3220 * giscanner/glibast.py:
3221 * giscanner/glibtransformer.py:
3222 Swap order of members, to keep it consistent with
3225 2008-08-08 Johan Dahlin <johan@gnome.org>
3227 * girepository/gtypelib.c (validate_header):
3228 * girepository/gtypelib.h:
3230 * giscanner/girwriter.py:
3231 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3232 (gi_source_symbol_unref):
3235 * tests/constant.test:
3237 * tests/errors.test:
3238 * tests/function.test:
3239 * tests/gobject.test:
3240 * tests/interface.test:
3241 * tests/invoke/Makefile.am:
3242 * tests/invoke/testfns.xml:
3243 * tests/object.test:
3244 * tests/parser/Makefile.am:
3245 * tests/roundtrips.sh:
3246 * tests/struct.test:
3251 * tools/Makefile.am:
3252 * tools/compiler.c (main):
3253 * tools/generate.c (write_callable_info), (write_function_info),
3255 * tools/gidlmodule.c:
3256 * tools/gidlmodule.h:
3259 * tools/gidlparser.c:
3260 * tools/gidlparser.h:
3261 * tools/gidlwriter.c:
3262 * tools/gidlwriter.h:
3263 * tools/scanner.c (create_node_from_gtype),
3264 (create_node_from_ctype), (g_igenerator_process_properties),
3265 (g_igenerator_process_signals), (g_igenerator_create_object),
3266 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3267 (g_igenerator_create_enum), (g_igenerator_create_flags),
3268 (g_igenerator_process_function_symbol),
3269 (g_igenerator_process_unregistered_struct_typedef),
3270 (g_igenerator_process_struct_typedef),
3271 (g_igenerator_process_union_typedef),
3272 (g_igenerator_process_enum_typedef),
3273 (g_igenerator_process_function_typedef),
3274 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3275 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3276 Merge in the gir-compiler branch.
3277 Thanks to Philip and Colin for their help.
3279 2008-07-26 Colin Walters <walters@verbum.org>
3281 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3282 and g-idl-generate to go along with how we're changing this
3283 module to be installed.
3284 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3286 2008-07-24 Colin Walters <walters@verbum.org>
3288 * girepository/girepository.c (g_irepository_register): Add
3289 environment variable G_IREPOSITORY_VERBOSE so we can print
3290 out what we're doing.
3291 * girepository/girepository.c (g_irepository_register_file):
3292 Add GError error message to g_debug call.
3294 2008-07-08 Jürg Billeter <j@bitron.ch>
3296 * giscanner/glibast.py:
3300 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3302 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3305 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3308 * giscanner/girwriter.py:
3309 * giscanner/transformer.py:
3310 * tests/parser/Foo-expected.gir:
3311 * tests/parser/foo-object.h:
3312 * tests/parser/foo.c (foo_object_allow_none):
3313 Add support for gtk-doc annotations for allow-none.
3316 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3319 * giscanner/girwriter.py:
3320 * giscanner/glibast.py:
3321 * giscanner/glibtransformer.py:
3322 * giscanner/transformer.py:
3323 * tests/parser/Foo-expected.gir:
3324 Start using abstract type instead of the raw C types.
3325 Register a bunch of glib types we care about.
3327 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3332 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3334 * girepository/girepository.c:
3335 * girepository/gtypelib.c:
3336 * girepository/ginfo.c:
3337 * girepository/ginvoke.c:
3338 * girepository/girepository.h:
3339 * girepository/gtypelib.h:
3340 * girepository/gmetadata.c:
3341 * girepository/Makefile.am:
3342 * girepository/gmetadata.h:
3344 * tools/gidlmodule.c:
3347 * tools/gidlmodule.h:
3348 * tools/gidlparser.c:
3350 Renamed GMetadata to GTypelib
3352 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3354 * giscanner/xmlwriter.py:
3355 Improve line wrapping when > 79 charaters
3357 2008-06-05 Jürg Billeter <j@bitron.ch>
3360 * giscanner/girwriter.py:
3361 * giscanner/transformer.py:
3362 Use <type> element for field types
3363 * tests/parser/Foo-expected.gir:
3366 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3368 * giscanner/glibtransformer.py:
3369 Fix a bug which prevented GdkEvent from being generated
3371 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3373 * giscanner/Makefile.am:
3375 * giscanner/girwriter.py:
3376 * giscanner/glibast.py:
3377 * giscanner/glibtransformer.py:
3378 * giscanner/transformer.py:
3379 * giscanner/utils.py:
3380 * tests/parser/Foo-expected.gir:
3381 Improve enum member parsing and introspection
3383 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3385 * giscanner/scannerparser.y:
3386 * giscanner/sourcescanner.h:
3387 * giscanner/sourcescanner.py:
3388 Add a new source type enum for member.
3389 Use __repr__ for improved debugging
3390 * giscanner/girparser.py:
3392 * giscanner/transformer.py:
3393 Improve parsing of struct members.
3394 * tests/parser/foo-object.h:
3397 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3399 * giscanner/xmlwriter.py:
3400 Improve error reporting when trying to quote None.
3401 * giscanner/girparser.py:
3402 Do not print warnings when including more complete .gir files
3403 * giscanner/girwriter.py:
3404 Do not require a name for parameters, add a todo for singletons
3405 * giscanner/glibtransformer.py:
3406 Refactor the way structs are done, add a couple of hacks to allow
3408 * giscanner/transformer.py:
3409 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3410 * gobject-introspection-1.0.pc.in:
3411 Export girdir, so we can access gobject-2.0.gir from outside
3413 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3415 * tools/g-ir-scanner:
3416 * tests/parser/Makefile.am:
3417 Update sys.path before running the parser so we don't have
3418 to setup PYTHONPATH ourselves.
3422 * girepository/Makefile.am:
3423 * giscanner/transformer.py:
3424 * gobject-introspection-1.0.pc.in:
3425 * gobject-introspection.pc.in:
3426 * tools/Makefile.am:
3428 Rename pkg-config name to gobject-introspection-1.0,
3429 Do not installed anything which is not using the gir format.
3430 Disable compililation the old C scanner, but still keep the source
3431 until all the remaning functionallity has been ported.
3433 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3435 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3436 a crash when symbol->indent is NULL.
3438 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3439 a function to convert a CTYPE symbol to a string
3441 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3444 * giscanner/girwriter.py:
3445 * giscanner/giscannermodule.c
3446 (pygi_source_scanner_append_filename),
3447 (pygi_source_scanner_parse_file):
3448 * giscanner/glibtransformer.py:
3449 * giscanner/sourcescanner.py:
3450 Revert back to using temporary files to send in headers.
3451 Allow Functions to be passed in as callbacks, add a couple
3452 of try/excepts missing features.
3453 We can now scan pango
3455 2008-05-08 Johan Dahlin <johan@gnome.org>
3457 * giscanner/glibtransformer.py:
3458 * giscanner/transformer.py:
3459 Move namespace stripping glibtransformer->transformer
3461 2008-05-08 Johan Dahlin <johan@gnome.org>
3464 * giscanner/girwriter.py:
3465 * giscanner/glibtransformer.py:
3466 * giscanner/transformer.py:
3467 * tools/g-ir-scanner:
3468 Introduce a namespace ast node
3470 2008-05-05 Johan Dahlin <johan@gnome.org>
3472 * giscanner/__init__.py:
3473 * giscanner/sourcescanner.py:
3474 * giscanner/transformer.py:
3475 Move sourcescanner symbols to the sourcescanner module, instead
3476 of in the global __init__ namespace.
3478 2008-05-03 Johan Dahlin <johan@gnome.org>
3480 * giscanner/glibtransformer.py:
3481 * tools/g-ir-scanner:
3482 Handle missing parameters better, allow - and + in .la dlname
3485 2008-05-03 Johan Dahlin <johan@gnome.org>
3487 * giscanner/__init__.py:
3489 * giscanner/girwriter.py:
3490 * giscanner/glibtransformer.py:
3491 * giscanner/transformer.py:
3492 Parse struct fields properly, improve debugging.
3494 2008-04-29 Johan Dahlin <johan@gnome.org>
3497 * giscanner/girwriter.py:
3498 * giscanner/transformer.py:
3499 * tests/parser/Foo-expected.gir:
3501 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3503 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3506 * docs/g-ir-scanner.1:
3507 * metadata-annotations-proposal.txt:
3508 * metadata-format.txt:
3509 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3511 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3513 * giscanner/girwriter.py:
3514 * giscanner/glibtransformer.py:
3515 * giscanner/transformer.py:
3516 * giscanner/xmlwriter.py:
3517 * tests/parser/Foo-expected.gir:
3518 * tests/parser/foo-object.h:
3519 Write record/structs to gir file too. Add a couple of tests,
3520 fix an off by one error in xmlwriter.py.
3522 2008-04-28 Johan Dahlin <johan@gnome.org>
3524 * giscanner/xmlwriter.py: Calculate the line length properly,
3525 include the provided extra indentation in the calculation, really.
3527 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3530 * giscanner/glibast.py:
3531 * giscanner/glibtransformer.py:
3532 * giscanner/transformer.py:
3533 * tools/g-ir-scanner:
3534 Add a --strip-prefix and sort out confusion between names and symbols
3535 for functions and struct + derivaties.
3536 Refactor bootstrap of g-ir-scanner, so we can set options on
3537 Transformer() before parsing everything.
3539 2008-04-28 Johan Dahlin <johan@gnome.org>
3541 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3542 when scanning girepository.h
3544 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3545 a __GI_SCANNER__ when we run.
3547 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3550 * giscanner/girwriter.py:
3551 * giscanner/glibast.py:
3552 * giscanner/glibtransformer.py:
3553 * tests/parser/Foo-expected.gir:
3554 * tests/parser/utility-expected.gir:
3555 Rename most c:identifier to c:type. Add new ones to
3556 class/interface/enum/boxed.
3558 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3561 * giscanner/girwriter.py:
3562 * giscanner/glibtransformer.py:
3563 * tests/parser/Foo-expected.gidl:
3564 * tests/parser/Makefile.am:
3565 Move c:identifier from return-value to subchild type,
3566 as per Jürgs suggestion
3568 2008-04-28 Johan Dahlin <johan@gnome.org>
3570 * giscanner/girwriter.py:
3571 * tests/parser/Foo-expected.gir:
3572 Write property.type as a child node.
3574 2008-04-27 Johan Dahlin <johan@gnome.org>
3579 * gidl/gobject-2.0.gidl:
3581 * gir/gobject-2.0.gir:
3582 * tests/parser/Makefile.am:
3583 Replace the GObject gidl with a GObject gir.
3585 2008-04-27 Johan Dahlin <johan@gnome.org>
3587 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3590 * giscanner/xmlwriter.py:
3591 * tests/parser/Foo-expected.gir:
3592 Include indentation in line length calculation
3594 2008-04-27 Johan Dahlin <johan@gnome.org>
3596 * giscanner/girparser.py:
3597 Prettify NS parsing using elementtree.
3599 2008-04-27 Johan Dahlin <johan@gnome.org>
3602 * giscanner/Makefile.am:
3603 * giscanner/girparser.py:
3604 * giscanner/glibtransformer.py:
3605 * tests/parser/Foo-expected.gidl:
3606 * tests/parser/Foo-expected.gir:
3607 * tests/parser/Makefile.am:
3608 * tests/parser/utility-expected.gidl:
3609 * tests/parser/utility-expected.gir:
3610 * tools/g-ir-scanner:
3611 Switch over to GIR as the default format. Add a simple GIDL
3613 Update tests and fix simplify makefiles by depending
3614 on GNU make extensions.
3616 2008-04-27 Johan Dahlin <johan@gnome.org>
3618 * giscanner/xmlwriter.py:
3619 Wrap attributes for lines which are wider than 79 characters
3621 * giscanner/scannerlexer.l:
3622 Allow parenthesis in annotations
3625 * giscanner/gidlwriter.py:
3626 * giscanner/girwriter.py:
3627 * giscanner/glibtransformer.py:
3628 * giscanner/transformer.py:
3629 Add initial sequence support, including annotation.
3630 Refactor type handling a bit.
3632 2008-04-27 Johan Dahlin <johan@gnome.org>
3634 * tests/parser/Foo-expected.gidl:
3635 * tests/parser/foo-object.h:
3636 * tests/parser/foo.c (foo_object_class_init),
3637 (foo_object_get_strings), (foo_object_get_objects):
3638 Add two new functions to check sequence return values.
3639 Also fixes a compilation warning.
3641 2008-04-27 Johan Dahlin <johan@gnome.org>
3643 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3644 a compilation warning.
3646 * tools/Makefile.am (g_ir_scanner_SOURCES):
3647 g-ir-scanner has no sources.
3649 2008-04-25 Johan Dahlin <johan@gnome.org>
3651 * giscanner/Makefile.am:
3653 * giscanner/gidlparser.py:
3654 * giscanner/gidlwriter.py:
3655 * giscanner/girwriter.py:
3656 * giscanner/glibast.py:
3657 * giscanner/glibtransformer.py:
3658 * giscanner/transformer.py:
3659 Split out nodes to ast.py and glibast.py
3661 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3663 * giscanner/Makefile.am:
3664 * giscanner/gidlparser.py:
3665 * giscanner/gidlwriter.py:
3666 * giscanner/girwriter.py:
3667 * giscanner/glibtransformer.py:
3668 * giscanner/gobjecttreebuilder.py:
3669 * giscanner/transformer.py:
3670 * giscanner/treebuilder.py:
3671 * tools/g-ir-scanner:
3672 Rename treebuilder to transformer and
3673 gobjectreebuilder to glibtransformer.
3675 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3677 * giscanner/Makefile.am:
3678 * giscanner/__init__.py:
3679 * giscanner/cgobject.py:
3680 * giscanner/gidlparser.py:
3681 * giscanner/gidlwriter.py:
3682 * giscanner/girwriter.py:
3683 * giscanner/gobjecttreebuilder.py:
3684 * giscanner/odict.py:
3685 * giscanner/sourcescanner.py:
3686 * giscanner/treebuilder.py:
3687 * giscanner/xmlwriter.py:
3688 * tools/Makefile.am:
3689 * tools/g-ir-scanner:
3690 Add LGPLv2 license header and install all python files
3692 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3695 * giscanner/gidlwriter.py:
3696 * giscanner/giscannermodule.c (pygi_source_directive_new),
3697 (directive_get_options), (pygi_source_symbol_new),
3698 (symbol_get_base_type), (pygi_source_type_new),
3699 (type_get_base_type), (type_get_child_list),
3700 (pygi_source_scanner_get_symbols),
3701 (pygi_source_scanner_get_directives):
3702 * giscanner/gobjecttreebuilder.py:
3703 * giscanner/sourcescanner.py:
3704 * giscanner/treebuilder.py:
3705 * tests/parser/foo-object.h:
3706 Add support for virtual methods.
3707 Pair struct FooClass with struct Foo.
3708 Clean up the SourceScanner bindings a bit.
3709 Add a testcase for virtual methods.
3711 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3713 * giscanner/cgobject.py:
3714 * giscanner/gidlwriter.py:
3715 * giscanner/gobjecttreebuilder.py:
3716 Add support for signals
3718 * tests/parser/foo.c (foo_object_class_init):
3719 * Foo-expected.gidl:
3720 Add a signal and update the expected output.
3722 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3724 * giscanner/gidlwriter.py:
3725 * giscanner/girwriter.py:
3726 * giscanner/giscannermodule.c (directive_get_name),
3727 (directive_get_value), (directive_get_options),
3728 (symbol_get_directives), (symbol_set_directives),
3729 (pygi_source_scanner_parse_file),
3730 (pygi_source_scanner_lex_filename),
3731 (pygi_source_scanner_get_directives), (init_giscanner):
3732 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3733 * giscanner/sourcescanner.h:
3734 * giscanner/sourcescanner.py:
3735 * giscanner/treebuilder.py:
3736 * tools/g-ir-scanner:
3737 Add support for source/header annotations.
3739 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3741 * giscanner/gidlwriter.py:
3742 * giscanner/girwriter.py:
3743 * giscanner/gobjecttreebuilder.py:
3744 * giscanner/treebuilder.py:
3745 Add support for Callbacks
3747 2008-04-22 Havoc Pennington <hp@pobox.com>
3749 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3750 not in metadata->module, look for it in the global module, in case
3751 some other object or the app itself provides the symbol.
3753 2008-04-22 Havoc Pennington <hp@pobox.com>
3755 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3756 dlopening a library that is already in the main app, by checking
3757 whether one of the lib's symbols is already loaded.
3759 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3761 * tests/parser/Foo-expected.gidl:
3762 * tests/parser/foo-object.h:
3765 2008-04-22 Havoc Pennington <hp@pobox.com>
3767 * girepository/ginfo.c (g_interface_info_find_method):
3768 Use interface_blob_size not object_blob_size to compute offset.
3770 2008-04-22 Havoc Pennington <hp@pobox.com>
3772 * girepository/gmetadata.c (_g_metadata_init): remove
3773 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3774 (Glade and Clutter for example) rely on being loaded globally.
3776 2008-04-22 Havoc Pennington <hp@pobox.com>
3778 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3779 function to get the GType given a RegisteredTypeInfo
3781 2008-04-22 Johan Dahlin <johan@gnome.org>
3783 * COPYING: Add a LGPL license, to prevent automake to
3784 put in a copy of GPL here. Pointed out by Havoc.
3786 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3787 (g_type_info_is_pointer), (g_type_info_get_tag),
3788 (g_type_info_get_param_type), (g_type_info_get_interface),
3789 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3790 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3791 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3792 (g_object_info_get_interface), (g_object_info_get_field),
3793 (g_interface_info_get_prerequisite),
3794 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3795 * girepository/ginvoke.c (get_ffi_type):
3796 * girepository/girepository.h:
3797 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3798 (g_metadata_check_sanity), (validate_header),
3799 (validate_array_type_blob), (validate_iface_type_blob),
3800 (validate_param_type_blob), (validate_error_type_blob),
3801 (validate_type_blob), (validate_constant_blob),
3802 (validate_struct_blob), (validate_enum_blob):
3803 * girepository/gmetadata.h:
3804 * tests/Makefile.am:
3805 * tests/invoke/Makefile.am:
3806 * tests/invoke/invoke.c (main):
3807 * tests/roundtrips.sh:
3808 * tools/Makefile.am:
3809 * tools/compiler.c (format_output), (write_out_metadata), (main):
3810 * tools/generate.c (write_type_name), (write_type_info),
3811 (write_constant_value), (write_enum_info), (load_metadata), (main):
3812 * tools/gidlcompilercontext.c:
3813 * tools/gidlcompilercontext.h:
3814 * tools/gidlcompilerentrynode.c:
3815 * tools/gidlcompilerentrynode.h:
3816 * tools/gidlcompilertypenode.c:
3817 * tools/gidlcompilertypenode.h:
3818 * tools/gidlmodule.c (g_idl_module_build_metadata):
3819 * tools/gidlmodule.h:
3820 * tools/gidlnode.c (init_stats), (dump_stats),
3821 (g_idl_node_get_size), (g_idl_node_get_full_size),
3822 (g_idl_node_cmp), (g_idl_node_can_have_member),
3823 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3824 (parse_int_value), (parse_uint_value), (parse_float_value),
3825 (parse_boolean_value), (find_entry_node), (find_entry),
3826 (serialize_type), (g_idl_node_build_metadata), (write_string):
3828 * tools/gidlparser.c (parse_type_internal):
3829 * tools/quote-file.sh:
3830 Revert revisions 157,149-148,136-129 and 120.
3831 Move back to using g-idl-generate to generate the metadata and
3832 avoids dependency on a c compiler.
3834 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3836 * giscanner/girwriter.py:
3837 * tools/g-ir-scanner:
3838 Add an initial GIR writer and a --format option to g-ir-scanner
3840 2008-04-21 Johan Dahlin <johan@gnome.org>
3842 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3843 gobject-2.0 and raise ImportError if not found.
3845 * giscanner/gidlparser.py:
3846 * giscanner/gidlwriter.py:
3847 * giscanner/gobjecttreebuilder.py:
3848 * tools/g-ir-scanner:
3849 Add a --include argument to include types from other idls.
3850 Add a minimalistic GIDL parser (just objects for now)
3851 Implement resolving of external type references and use it to
3852 resolve parent types, argument types and return types.
3854 2008-04-21 Johan Dahlin <johan@gnome.org>
3856 * giscanner/gidlwriter.py:
3857 * giscanner/gobjecttreebuilder.py:
3858 * giscanner/treebuilder.py:
3859 Add support for properties.
3860 Refactor Class/Interface support a bit, to share more code and
3861 always initialize their method attribute to an empty list.
3863 2008-04-21 Johan Dahlin <johan@gnome.org>
3865 * giscanner/cgobject.py:
3866 Add a workaround for a glib bug interface introspection bug
3867 (object_interface_list_properties, object_class_list_properties):
3868 Cast the return value to GParamSpec.
3870 * tests/parser/Foo-expected.gidl: Update
3871 * tests/parser/foo.c: Add a string property
3873 * giscanner/gobjecttreebuilder.py:
3874 After stripping namespaces, remove the original
3875 item to avoid duplication (GtkButton struct and Button object)
3877 2008-04-21 Johan Dahlin <johan@gnome.org>
3879 * giscanner/gobjecttreebuilder.py:
3880 * giscanner/treebuilder.py:
3881 Strip namespaces before objects, so we'll export
3882 GtkButton as Button in the gtk namespace
3884 2008-04-21 Johan Dahlin <johan@gnome.org>
3886 * giscanner/gidlwriter.py:
3887 * giscanner/gobjecttreebuilder.py:
3888 * giscanner/treebuilder.py:
3889 Add constructors for object/boxed types.
3891 2008-04-21 Johan Dahlin <johan@gnome.org>
3893 * giscanner/gidlwriter.py:
3894 * giscanner/gobjecttreebuilder.py:
3895 Add support for boxed types
3897 2008-04-21 Johan Dahlin <johan@gnome.org>
3899 * giscanner/giscannermodule.c: Mark structures as const,
3900 wrap SourceType.const_string.
3902 * tests/parser/foo-object.h: Add a couple of constants.
3904 * giscanner/gidlwriter.py:
3905 * giscanner/gobjecttreebuilder.py:
3906 * giscanner/treebuilder.py:
3907 Add basic support for interfaces
3909 * tools/g-ir-scanner:
3910 Add -o/--output for writing to a file
3912 2008-04-21 Havoc Pennington <hp@redhat.com>
3914 * TODO: add some C API wishlist items I could think of quickly
3916 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3918 * giscanner/gidlwriter.py:
3919 * giscanner/xmlwriter.py:
3920 Add a simple api for writing tags which can be used
3921 with the new 'with statement' in python 2.5
3923 2008-04-21 Johan Dahlin <johan@gnome.org>
3925 * giscanner/gobjecttreebuilder.py:
3926 Strip namespace and object prefix from method names.
3928 2008-04-21 Johan Dahlin <johan@gnome.org>
3930 * tools/g-ir-scanner (main): Add --pkg option to pass in
3931 pkg-config modules to get cflags from.
3933 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3934 Avoid duplication, reuse function writer for methods.
3936 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3938 * giscanner/gidlwriter.py:
3939 * giscanner/gobjecttreebuilder.py:
3940 * giscanner/treebuilder.py:
3941 * tools/g-ir-scanner:
3942 Resolve libtool .la files.
3943 Strip name spaces for methods.
3944 Add function symbols
3946 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3948 * giscanner/cgobject.py:
3949 * giscanner/gidlwriter.py:
3950 * giscanner/gobjecttreebuilder.py:
3951 * giscanner/treebuilder.py:
3952 Add support for classes and methods
3954 2008-04-20 Johan Dahlin <johan@gnome.org>
3956 * giscanner/gidlwriter.py:
3957 * giscanner/gobjecttreebuilder.py:
3958 * giscanner/odict.py:
3959 Avoid conflicts, keep the output ordered similar to
3960 the order of the input.
3961 Add a simple ordered dictionary implemenation
3963 2008-04-19 Johan Dahlin <johan@gnome.org>
3965 * giscanner/cgobject.py:
3966 * giscanner/gidlwriter.py:
3967 * giscanner/gobjecttreebuilder.py:
3968 * tools/g-ir-scanner:
3969 Start introspecting get-type functions.
3970 Implement support for GLib/GFlags GTypes.
3971 Add a ctype based GObject binding.
3973 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3975 * giscanner/gidlwriter.py:
3976 * giscanner/xmlwriter.py:
3977 * tools/g-ir-scanner:
3978 Add a simplistic gidl writer, which can't do too much.
3980 2008-04-18 Johan Dahlin <johan@gnome.org>
3982 * giscanner/sourcescanner.py:
3983 * giscanner/treebuilder.py:
3984 * tools/g-ir-scanner:
3985 split tree building and source scanning interface to separate files.
3987 2008-04-18 Johan Dahlin <johan@gnome.org>
3989 * tools/g-ir-scanner (Parameter.__init__): Start constructing
3991 - Add support for struct/parameter/return, start parsing of ctypes
3993 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
3996 2008-03-31 Johan Dahlin <johan@gnome.org>
3998 * tools/g-ir-scanner:
3999 Start to build abstract syntax node of scanned sources.
4000 Add support for cpp options.
4002 2008-03-27 Johan Dahlin <johan@gnome.org>
4004 * giscanner/giscannermodule.c:
4005 * giscanner/scannerlexer.l:
4006 * giscanner/sourcescanner.c:
4007 * tools/g-ir-scanner:
4009 Add simple pre-processor using subprocess and a PIPE.
4010 Change the parse_file apis to accept a file descriptor.
4012 2008-03-25 Johan Dahlin <johan@gnome.org>
4014 * giscanner/__init__.py:
4015 * tools/g-ir-scanner:
4016 Fix a typo and add an example python test program.
4018 2008-03-25 Johan Dahlin <johan@gnome.org>
4020 * giscanner/__init__.py:
4021 * giscanner/giscannermodule.c:
4022 * giscanner/sourcescanner.c:
4023 * giscanner/sourcescanner.h:
4024 Add constants and wrap a few more SymbolType fields
4026 2008-03-25 Johan Dahlin <johan@gnome.org>
4030 * giscanner/__init__.py:
4031 * giscanner/giscannermodule.c:
4032 * giscanner/Makefile.am:
4034 Add initial python bindings for the scanner and
4035 depend on python 2.5.
4037 2008-03-25 Johan Dahlin <johan@gnome.org>
4041 * giscanner/Makefile.am:
4042 * giscanner/sourcescanner.c:
4043 * giscanner/sourcescanner.h:
4044 * tools/Makefile.am:
4045 * tools/grealpath.h:
4046 * tools/sourcescanner.c:
4047 * tools/sourcescanner.h:
4049 Move the scanner to a separate library.
4051 2008-03-23 Johan Dahlin <johan@gnome.org>
4053 * tools/Makefile.am:
4056 * tools/scannerlexer.l:
4057 * tools/scannerparser.y:
4058 * tools/sourcescanner.c:
4059 * tools/sourcescanner.h:
4060 Split out the source scanner from the generator.
4061 Rename the symbols used in the scanner to use the gi_ prefix.
4062 This should make it possible to use the raw C parser from
4065 2008-03-23 Johan Dahlin <johan@gnome.org>
4067 * tests/parser/Makefile.am (utility.gidl):
4068 * tests/parser/utility-expected.gidl:
4069 Pass in the gobject.gidl since we're defining a GObject.
4071 2008-03-12 Johan Dahlin <johan@gnome.org>
4073 * relaxng/relaxng.rng:
4074 Add a releaxng in relaxng we can use to validate the relaxngs
4077 2008-03-12 Jürg Billeter <j@bitron.ch>
4079 * tools/scanner.c: (g_igenerator_new):
4080 * tools/scannerparser.y:
4081 Fix compiler warnings.
4083 2008-03-12 Jürg Billeter <j@bitron.ch>
4087 * tools/scannerparser.y:
4088 Start fixing memory management in g-idl-scanner.
4090 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4092 * tools/gidlcompilercontext.c: (write_compiled):
4093 Fix critical warning when no shlib passed to g-idl-compiler.
4095 2008-03-12 Johan Dahlin <johan@gnome.org>
4097 * tests/parser/utility-expected.gidl:
4098 * tests/parser/utility.h:
4099 Add a get_type-function, so the scanner actually
4100 parses it as an object.
4102 2008-03-12 Johan Dahlin <johan@gnome.org>
4104 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4107 * tests/parser/Foo-expected.gidl:
4108 * tests/parser/Makefile.am:
4109 * tests/parser/foo-object.h:
4110 * tests/parser/foo.c:
4111 * tests/parser/utility-expected.gidl:
4112 * tests/parser/utility.c:
4113 * tests/parser/utility.h:
4115 Add a new gidl test. 'utility.gidl', which is used to be able
4116 to test external type references. Add a reference to UtilityObject*
4119 2008-03-11 Johan Dahlin <johan@gnome.org>
4123 Remove most global variables
4125 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4127 * tools/scannerlexer.l:
4129 * tests/parser/Foo-expected.gidl:
4130 * tests/parser/foo.c:
4131 * tests/parser/Makefile.am:
4132 * tests/parser/foo-object.h:
4134 Added a few extra tests. Which resulted in finding a few
4135 bugs. Which resulted in me fixing those bugs
4137 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4139 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4140 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4141 Add some comments for strings into generated output for
4144 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4146 * tools/gidlcompilercontext.c: (write_compiled):
4147 Write out the shlibs variable before writing out the strings
4148 length. Fixes compiler warning when using '-l' flag with
4151 2008-03-11 Johan Dahlin <johan@gnome.org>
4153 * tests/parser/Foo-expected.gidl:
4154 * tests/parser/foo-object.h:
4157 * tools/scannerlexer.l:
4158 Add support for parsing return arguments. Add support for
4159 caller-owns return types.
4160 Patch by Philip Van Hoof.
4162 * tools/scannerparser.y:
4163 Remove parsing of the @deprecated syntax used in headers.
4164 We will support gtk-doc deprecation in the future instead.
4166 2008-03-11 Johan Dahlin <johan@gnome.org>
4168 * tools/compiler.c (main): Coding style fixes
4170 2008-03-10 Johan Dahlin <johan@gnome.org>
4173 Add GCOV_LIBS to GILIBS
4175 2008-03-10 Johan Dahlin <johan@gnome.org>
4177 * tests/parser/Foo-expected.gidl:
4178 * tests/parser/foo.c:
4179 Rename null-ok to direction=out
4181 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4183 reviewed and extensively tested by Johan
4185 * tests/parser/Foo-expected.gidl:
4186 * tests/parser/foo-object.h:
4187 * tests/parser/foo.c:
4190 * tools/gidlwriter.c:
4193 * tools/scannerlexer.l:
4194 * tools/scannerparser.y:
4196 Add support for scanning for gtk-doc comments inside
4197 C source files. Add tests
4199 2008-03-10 Johan Dahlin <johan@gnome.org>
4201 * tests/parser/Makefile.am:
4202 * tests/parser/foo.c:
4205 * tools/scannerparser.y:
4206 Add an api to lex filenames.
4207 Lex all source .c files passed in on the command line.
4208 Scan sources in a test and a couple of private structures
4209 which should not be included in the generated gidl
4211 2008-03-10 Johan Dahlin <johan@gnome.org>
4213 * tests/invoke/Makefile.am: Make the generated metadata
4214 depend on the g-idl-compiler
4216 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4218 * tools/gidlmodule.c
4219 * tools/gidlmodule.h
4222 Remove the old g-idl-compiler code.
4225 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4227 * tools/quote-file.sh
4230 Move to using the 'C' struct compiler code.
4232 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4234 * girepository/ginfo.c
4236 Change the way that external references with no namespace
4237 are dealt with. External references with no namespace
4238 are placed into the XML as-if they are a local reference.
4239 This is temporary, but helps with roundtrip tests.
4241 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4243 * girepository/ginfo.c
4244 Add the ability to get the value of a constant of
4245 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4246 is provided as a string.
4248 This would deal properly with:
4249 typedef char* random;
4250 const random = "A string";
4252 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4254 * girepository/ginfo.c
4255 * girepository/girepository.h
4257 Add a function to check if an enum is registered or not.
4258 Previously anything testing this relied on the g-type
4259 string offset having a value of 0.
4261 * girepository/gmetadata.c
4262 * girepository/gmetadata.h
4264 Remove unneccesary or erroneous checks. There were two
4265 metadata validation checks which made sure that the blob
4266 sizes were the same as some magic numbers compiled into the code.
4267 This is wrong as it breaks any forwards compatibility that may
4270 Checks were also present that made sure that unregistered type
4271 blobs had a value of 0 in the g-type offset field. This is
4272 unneccessary. If a type blob is unregistered then any value
4273 in its g-type field is simply invalid.
4275 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4277 * girepository/ginfo.c
4278 * girepository/gmetadata.c
4279 * girepository/gmetadata.h
4281 Change the metadata format to have a standard header
4282 for all the type blobs. Merge the SimpleTypeBlob
4283 and InterfaceTypeBlob into a union. A union of these
4284 two blobs existed previously but was not explicit
4285 in the metadata format.
4287 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4289 * tools/gidlcompilercontext.c
4290 * tools/gidlcompilercontext.h
4291 * tools/gidlcompilerentrynode.c
4292 * tools/gidlcompilerentrynode.h
4293 * tools/gidlcompilertypenode.c
4294 * tools/gidlcompilertypenode.h
4296 Add code to compile a tree of GIdlNodes to
4297 a 'C' struct representing the metadata.
4298 This is to aid cross-compiling. Previously
4299 the g-idl-compiler created a binary blob with
4300 data written in the byte order and alignment
4301 of the tool rather than the intended target.
4303 Cleaned up and improved by Johan and Robert :-)
4305 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4307 * girepository/ginvoke.c
4308 * girepository/girepository.h
4309 * girepository/gmetadata.c
4310 * girepository/gmetadata.h
4312 * tools/gidlparser.c
4313 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4314 to avoid confusion with the interface blob.
4317 * tools/gidlparser.c
4318 Remove magic numbers and replace with type-tag
4319 enumeration symbols.
4321 * girepository/gmetadata.c
4322 Add validate declaration.
4324 2008-03-10 Jürg Billeter <j@bitron.ch>
4326 * tools/gidlparser.c: (parse_type_internal):
4327 * tools/scannerlexer.l:
4328 * tools/scannerparser.y:
4329 Support C99 _Bool type in scanner.
4331 2008-03-10 Jürg Billeter <j@bitron.ch>
4333 * tests/parser/Foo-expected.gidl:
4334 * tests/parser/foo-object.h:
4335 * tests/parser/foo.c: (foo_enum_method):
4336 * tools/scanner.c: (g_igenerator_process_function_symbol):
4337 Don't skip functions that are defined in the namespace of a type
4338 that doesn't support methods, as for example enums.
4340 2008-03-10 Johan Dahlin <johan@gnome.org>
4342 * gidl.dtd: Remove, we're using relaxng for now
4344 * tests/parser/Foo-expected.gidl:
4345 * tests/parser/foo-object.h:
4346 * tests/parser/foo.c:
4347 Rename the enum/flags get_type functions to include the whole type.
4349 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4351 * tools/gidlwriter.c (enum_generate): added "type-name",
4352 "get-type" and "deprecated" missing arguments.
4353 * tests/parser/Foo-expected.gidl:
4354 * tests/parser/foo-object.h: test enum type, and no type.
4356 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4359 Consistent checks, add missing 'test'
4361 2008-03-05 Havoc Pennington <hp@redhat.com>
4363 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4364 does on Fedora 8. Make libffi a hard requirement, since it was in
4365 practice anyway (was not really conditional in the code or
4366 makefile, only in configure).
4368 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4370 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4371 reviewed by: Johan Dahlin <johan@gnome.org>
4373 * tests/Makefile.am:
4374 * tests/roundtrips.sh:
4375 Modify the roundtrips test so that they do not use the
4376 --raw option of the gidl compiler but instead compile a
4377 shared library to use with g_module.
4379 * tests/invoke/Makefile.am:
4380 * tests/invoke/invoke.c:
4381 Modify the invoke tests to build a shared library rather
4382 than use the --raw option.
4384 * tests/invoke/invoke-namespace-find.sh: Removed:
4385 Noone knows why this was here, so removed.
4387 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4389 * tools/scanner.c: (g_igenerator_process_function_symbol):
4390 Move g_idl_node_can_have_member test later, as it broke spotting
4391 get_type's for nodes that can't have members.
4393 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4396 * tools/gidlnode.c: (g_idl_node_can_have_member):
4397 Add g_idl_node_can_have_member.
4399 * tools/scanner.c: (g_igenerator_process_function_symbol):
4400 Use g_idl_node_can_have_member to test if we should add a function
4401 as a member of the type node.
4403 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4405 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4407 * tests/parser/Makefile.am:
4408 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4410 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4412 * tools/scanner.c: (main):
4413 Ignore -pthread when passed to g-idl-scanner.
4415 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4417 * tools/grealpath.h: Added:
4418 * tools/scanner.c: (main):
4419 * tools/scannerlexer.l:
4420 * tools/Makefile.am:
4421 Always use absolute paths with symbolic links resolved when
4422 comparing filenames.
4424 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4426 * gobject-introspection.pc.in:
4427 Provide variables for g-idl-parser, scanner and compiler in the
4430 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4433 * girepository/Makefile.am:
4434 * tools/Makefile.am:
4435 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4437 2008-02-10 Johan Dahlin <johan@gnome.org>
4439 * tests/parser/Foo-expected.gidl:
4440 * tests/parser/foo-object.h:
4441 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4442 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4445 2008-02-10 Johan Dahlin <johan@gnome.org>
4447 * tests/parser/Foo-expected.gidl:
4448 * tests/parser/foo-object.h:
4449 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4450 Add enum and flags test.
4452 2008-02-10 Johan Dahlin <johan@gnome.org>
4456 * girepository/Makefile.am:
4457 Make 'make distcheck' work again.
4459 2008-02-10 Johan Dahlin <johan@gnome.org>
4461 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4464 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4465 check, eg exclude it from BUILT_SOURCES.
4467 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4472 * girepository/Makefile.am:
4473 * m4/Makefile.am: Added:
4474 * m4/as-compiler-flag.m4: Added:
4475 * m4/gcov.m4: Added:
4476 * tools/Makefile.am:
4477 Add ability to generate a coverage report.
4478 Adds configure option --enable-gcov and make rule 'check-coverage'.
4480 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4484 * gidl/Makefile.am: Added:
4485 * girepository/Makefile.am: Added:
4486 * src/Makefile.am: Renamed to tools/Makefile.am:
4487 * src/compiler.c: Renamed to tools/compiler.c:
4488 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4489 * src/generate.c: Renamed to tools/generate.c:
4490 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4491 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4492 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4493 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4494 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4495 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4496 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4497 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4498 * src/ginfo.c: Renamed to girepository/ginfo.c:
4499 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4500 * src/girepository.c: Renamed to girepository/girepository.c:
4501 * src/girepository.h: Renamed to girepository/girepository.h:
4502 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4503 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4504 * src/scanner.c: Renamed to tools/scanner.c:
4505 * src/scanner.h: Renamed to tools/scanner.h:
4506 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4507 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4508 * tests/invoke/Makefile.am:
4509 Split src/ into girepository/ and tools/
4513 * girepository/Makefile.am:
4514 * tests/Makefile.am:
4515 * tests/invoke/Makefile.am:
4516 * tests/parser/Makefile.am:
4517 * tests/roundtrips.sh:
4518 * tools/Makefile.am:
4519 Make distcheck work.
4521 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4523 * tests/invoke/invoke.c: (main):
4524 * tests/invoke/testfns.c: (test6), (test7):
4525 * tests/invoke/testfns.xml:
4526 Add tests for invokation with a GList argument.
4527 Also tests caller-owns return values.
4529 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4532 Add some documentation for GICallableInfo
4534 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4537 Correct syntax errors in the DTD file.
4539 * relaxng/c-types.xml:
4540 * relaxng/g-types.xml:
4542 Add a RelaxNG specification for the GObject Introspection XML data.
4543 The Specification has validated all of the test files.
4545 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4547 * tests/roundtrips.sh:
4548 * tests/struct.test:
4549 Add roundtrip tests for structs.
4551 2008-01-11 Johan Dahlin <johan@gnome.org>
4553 * src/scanner.c (g_igenerator_process_function_symbol):
4554 Refactor out g_idle_node_add_member.
4555 (create_node_from_gtype, create_node_from_ctype):
4556 Use case instead of if...else
4557 (get_type_from_type_id):
4558 Rename to create_node_from_gtype
4559 (get_type_from_ctype):
4560 Rename to create_node_from_ctype
4562 Rename ginode -> node, gitype -> type, gifunc -> func.
4564 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4565 Two new functions, refactor out of scanner.c
4567 * src/scanner.c: (g_igenerator_process_function_symbol):
4568 * src/scannerlexer.l:
4569 Do not save the content of the deprecated variable, only
4572 2008-01-11 Johan Dahlin <johan@gnome.org>
4574 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4576 2008-01-11 Jürg Billeter <j@bitron.ch>
4578 * src/scannerlexer.l:
4579 Fix GTK-Doc parsing.
4581 2008-01-11 Jürg Billeter <j@bitron.ch>
4583 * src/scannerlexer.l:
4584 Fix GTK-Doc parsing.
4586 2008-01-11 Jürg Billeter <j@bitron.ch>
4588 * src/scanner.c: (lookup_symbol):
4589 Return unresolved name if we find unknown symbol.
4591 2008-01-11 Jürg Billeter <j@bitron.ch>
4593 * src/scanner.c: (g_igenerator_generate):
4594 Initialize GObject to fix scanning interface properties.
4596 * tests/parser/Foo-expected.gidl:
4597 * tests/parser/foo-object.h:
4598 * tests/parser/foo.c: (foo_interface_get_type):
4599 Test interfaces with GObject prerequisite.
4601 * tests/parser/Makefile.am:
4602 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4604 2007-12-27 Johan Dahlin <johan@gnome.org>
4606 * src/scannerlexer.l:
4607 Parse gtk-doc comments.
4609 * src/gidlwriter.c: (function_generate):
4610 Reorganize, avoid duplication and add support for
4611 writing deprecated functions.
4613 * src/scannerparser.y:
4615 Add new structure CDirective and functions to create/free them.
4617 * src/scanner.c: (g_igenerator_process_function_symbol),
4618 (g_igenerator_process_unregistered_struct_typedef),
4619 (g_igenerator_process_struct_typedef),
4620 (g_igenerator_process_union_typedef),
4621 (g_igenerator_process_enum_typedef),
4622 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4623 (g_igenerator_start_preprocessor):
4624 Parse @deprecated directive for functions.
4625 Remove some more C99isms.
4626 Send in -C to cpp to avoid stripping comments.
4628 * tests/parser/foo-object.h:
4629 * tests/parser/Foo-expected.gidl:
4630 Add deprecated directive
4632 2007-12-27 Johan Dahlin <johan@gnome.org>
4634 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4635 escape ' and " so it looks more like C.
4638 Unlink temporary file used.
4640 2007-12-27 Johan Dahlin <johan@gnome.org>
4642 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4643 (g_igenerator_start_preprocessor), (main):
4645 * src/scannerparser.y:
4646 Plug a couple of simple memory leaks.
4648 2007-12-27 Johan Dahlin <johan@gnome.org>
4650 * src/scanner.c: (g_igenerator_parse_macros),
4651 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4654 * src/scannerparser.y:
4655 * tests/parser/Makefile.am:
4657 Improve error reporting, return when the preprocessor fails.
4658 Add a verbose parameter, to aid debugging.
4659 Revert to using a temporary file to communicate between the
4660 preprocessor and the parser, because we need to wait for
4661 the exit code from the pre-processor before starting to parse.
4663 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4665 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4666 cparser.y to scannerparser.y
4668 2007-12-11 Johan Dahlin <johan@gnome.org>
4672 * src/scanner.c: (g_igenerator_new):
4674 Get rid of the global the_generator variable.
4676 2007-12-10 Johan Dahlin <johan@gnome.org>
4678 * src/scanner.c (main): Add an output option,
4679 add checks for required parameters
4682 set BUILD_SOURCES and CLEANFILES properly
4684 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4685 (g_writer_write_indent), (g_writer_write_unindent),
4686 (field_generate), (value_generate), (constant_generate),
4687 (property_generate), (function_generate), (vfunc_generate),
4688 (signal_generate), (interface_generate), (struct_generate),
4689 (union_generate), (boxed_generate), (enum_generate),
4690 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4692 * src/scanner.c: (g_igenerator_generate):
4694 * src/scannerwriter.c:
4696 Refactor scannerwriter to only be tied to a GIdlModule and move
4697 it (again!) to gidlwriter.c. Change the writer function to take
4700 2007-12-10 Johan Dahlin <johan@gnome.org>
4703 * src/scanner.c: (g_igenerator_generate):
4705 * src/scannerwriter.c: (g_igenerator_write_inline),
4706 (g_igenerator_write), (g_igenerator_write_indent),
4707 (g_igenerator_write_unindent), (field_generate), (value_generate),
4708 (constant_generate), (property_generate), (function_generate),
4709 (vfunc_generate), (signal_generate), (interface_generate),
4710 (struct_generate), (union_generate), (boxed_generate),
4711 (enum_generate), (node_generate), (module_generate),
4712 (g_scanner_write_file):
4714 Move the scanner gidl writing to a separate source file.
4716 2007-12-10 Johan Dahlin <johan@gnome.org>
4721 Move over all CType construction functions.
4723 * tests/parser/Makefile.am:
4724 Be verbose when printing parsing tests results.
4726 2007-12-10 Johan Dahlin <johan@gnome.org>
4728 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4729 preprocessor handling to here. Start cpp insteado of cc -E,
4730 always include -U__GNUC__, since it's specific to the preprocessor
4733 * tests/parser/Makefile.am (check-local): Silent diff and skip
4734 -U__GNUC__ which is always defined now
4736 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4738 reviewed by: <delete if not using a buddy>
4740 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4741 * tests/parser/Makefile.am:
4743 2007-12-09 Johan Dahlin <johan@gnome.org>
4746 Use GOption for command line options.
4747 (g_igenerator_new, main): Simplify constructor and they way
4748 parameters are passed into it.
4754 * src/gen-introspect.c:
4755 * src/gen-introspect.h:
4757 Rename gen-introspect.[ch] to scanner.[ch]
4759 2007-12-09 Johan Dahlin <johan@gnome.org>
4763 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4764 don't make the repository library and the other utilites link against
4767 * src/gen-introspect.c: (g_igenerator_create_object),
4768 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4769 (g_igenerator_create_enum), (g_igenerator_create_flags),
4770 (g_igenerator_process_module_symbol),
4771 (g_igenerator_process_module), (g_igenerator_generate), (main):
4772 * src/gen-introspect.h:
4773 Refactor g_igenerator_process_types into smaller pieces.
4775 * tests/parser/Makefile.am:
4776 Depend on the gen-introspect binary
4778 2007-12-09 Johan Dahlin <johan@gnome.org>
4780 * src/gen-introspect.c (g_igenerator_process_types):
4781 Break into smaller pieces, one for each generated node type.
4783 2007-12-08 Johan Dahlin <johan@gnome.org>
4785 * src/gen-introspect.c: (g_igenerator_process_types),
4786 (g_igenerator_add_module):
4787 * tests/parser/Foo-expected.gidl:
4788 * tests/parser/foo-object.h:
4789 * tests/parser/foo.c: (foo_subobject_class_init),
4790 (foo_subobject_init):
4792 Add a subobject test and make sure to register defined classes
4793 in the lookup symbol hash table.
4795 2007-12-08 Johan Dahlin <johan@gnome.org>
4799 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4800 (g_igenerator_process_types), (g_igenerator_add_module),
4801 (g_igenerator_add_include_idl), (main):
4802 * src/gen-introspect.h:
4803 * tests/parser/Makefile.am:
4804 * tests/parser/Foo-expected.gidl:
4806 Change the gen-introspect to generate namespaced module names,
4807 such as GLib.Object instead of GObject.
4808 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4809 add a --include-idl parameter to gen-introspect,
4810 and update the parser test.
4812 2007-12-08 Johan Dahlin <johan@gnome.org>
4814 * src/gen-introspect.c:
4815 Move main to the end of the file and attempt to make it valid
4818 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4819 we're not quite ready to generate metadata yet.
4824 Add a simple gen-introspect parser test
4826 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4828 reviewed by: Johan Dahlin <johan@gnome.org>
4831 * gobject-introspection.pc.in:
4833 * src/compiler.c: (format_output), (write_out_metadata), (main):
4834 * src/gen-introspect.c: (main):
4835 * src/gen-introspect.h:
4836 * src/generate.c: (write_callable_info), (write_repository),
4837 (load_metadata), (main):
4838 * src/gidlmodule.c: (g_idl_module_new),
4839 (g_idl_module_build_metadata):
4841 * src/gidlparser.c: (start_element_handler):
4842 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4843 (g_base_info_get_name), (g_base_info_get_namespace),
4844 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4845 (g_base_info_get_metadata), (g_function_info_get_symbol),
4846 (g_function_info_get_flags), (g_function_info_get_property),
4847 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4848 (g_callable_info_may_return_null),
4849 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4850 (g_callable_info_get_arg), (g_arg_info_get_direction),
4851 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4852 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4853 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4854 (g_type_info_get_tag), (g_type_info_get_param_type),
4855 (g_type_info_get_interface), (g_type_info_get_array_length),
4856 (g_type_info_is_zero_terminated),
4857 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4858 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4859 (g_value_info_get_value), (g_field_info_get_flags),
4860 (g_field_info_get_size), (g_field_info_get_offset),
4861 (g_registered_type_info_get_type_name),
4862 (g_registered_type_info_get_type_init),
4863 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4864 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4865 (find_method), (g_struct_info_find_method),
4866 (g_enum_info_get_n_values), (g_enum_info_get_value),
4867 (g_object_info_get_parent), (g_object_info_get_type_name),
4868 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4869 (g_object_info_get_interface), (g_object_info_get_n_fields),
4870 (g_object_info_get_field), (g_object_info_get_n_properties),
4871 (g_object_info_get_property), (g_object_info_get_n_methods),
4872 (g_object_info_get_method), (g_object_info_find_method),
4873 (g_object_info_get_n_signals), (g_object_info_get_signal),
4874 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4875 (g_object_info_get_n_constants), (g_object_info_get_constant),
4876 (g_interface_info_get_n_prerequisites),
4877 (g_interface_info_get_prerequisite),
4878 (g_interface_info_get_n_properties),
4879 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4880 (g_interface_info_get_method), (g_interface_info_find_method),
4881 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4882 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4883 (g_interface_info_get_n_constants),
4884 (g_interface_info_get_constant), (g_property_info_get_flags),
4885 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4886 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4887 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4888 (g_constant_info_get_value), (g_union_info_get_n_fields),
4889 (g_union_info_get_field), (g_union_info_get_n_methods),
4890 (g_union_info_get_method), (g_union_info_is_discriminated),
4891 (g_union_info_get_discriminator_offset),
4892 (g_union_info_get_discriminator):
4893 * src/ginvoke.c: (g_function_info_invoke):
4894 * src/girepository.c: (g_irepository_register),
4895 (g_irepository_unregister), (g_irepository_get_default),
4896 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4897 (g_irepository_get_info), (g_irepository_find_by_name),
4898 (g_irepository_get_shared_library),
4899 (g_irepository_build_search_path), (g_irepository_register_file),
4900 (g_irepository_error_quark):
4901 * src/girepository.h:
4902 * src/gmetadata.c: (g_metadata_get_dir_entry),
4903 (g_metadata_check_sanity), (validate_header),
4904 (validate_array_type_blob), (validate_iface_type_blob),
4905 (validate_param_type_blob), (validate_error_type_blob),
4906 (validate_type_blob), (validate_arg_blob),
4907 (validate_signature_blob), (validate_function_blob),
4908 (validate_callback_blob), (validate_constant_blob),
4909 (validate_value_blob), (validate_field_blob),
4910 (validate_property_blob), (validate_signal_blob),
4911 (validate_vfunc_blob), (validate_struct_blob),
4912 (validate_enum_blob), (validate_object_blob),
4913 (validate_interface_blob), (validate_errordomain_blob),
4914 (validate_union_blob), (validate_blob), (validate_directory),
4915 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4916 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4917 (g_metadata_new_from_mapped_file), (g_metadata_free),
4918 (g_metadata_set_module), (g_metadata_get_namespace):
4920 * tests/Makefile.am:
4921 * tests/invoke/Makefile.am:
4922 * tests/invoke/invoke-namespace-find.sh:
4923 * tests/invoke/invoke.c: (main):
4925 Add a namespace/shared library mapping. fixes #313268.
4927 2007-12-03 Johan Dahlin <johan@gnome.org>
4929 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4932 2007-11-30 Jürg Billeter <j@bitron.ch>
4938 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4939 (g_igenerator_write_inline), (g_igenerator_write),
4940 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4941 (field_generate), (value_generate), (constant_generate),
4942 (property_generate), (function_generate), (vfunc_generate),
4943 (signal_generate), (interface_generate), (struct_generate),
4944 (union_generate), (boxed_generate), (enum_generate),
4945 (node_generate), (module_generate), (get_type_from_type_id),
4946 (str_replace), (g_igenerator_process_properties),
4947 (g_igenerator_process_signals), (g_igenerator_process_types),
4948 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4949 (g_igenerator_process_unregistered_struct_typedef),
4950 (g_igenerator_process_struct_typedef),
4951 (g_igenerator_process_union_typedef),
4952 (g_igenerator_process_enum_typedef),
4953 (g_igenerator_process_function_typedef),
4954 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4955 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4956 (g_igenerator_generate), (main), (csymbol_new),
4957 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4958 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4959 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4960 (eat_hspace), (eat_line), (read_identifier),
4961 (g_igenerator_parse_macros):
4962 * src/gen-introspect.h:
4964 Import gen-introspect to generate introspection information by
4967 2007-11-30 Jürg Billeter <j@bitron.ch>
4969 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4971 2007-11-30 Jürg Billeter <j@bitron.ch>
4973 * src/gidlparser.c: (end_element_handler): Don't leave requires
4976 2007-11-29 Johan Dahlin <johan@gnome.org>
4978 * src/gidlparser.c (parse_type_internal): Add char,
4979 gchar and guchar to the builtin types.
4981 2007-11-26 Johan Dahlin <johan@gnome.org>
4983 * src/ginfo.c: (g_object_info_get_type_name),
4984 (g_object_info_get_type_init):
4985 * src/girepository.c: (g_irepository_is_registered):
4986 * src/girepository.h:
4988 Add g_object_info_get_type_name, g_object_info_get_type_init and
4989 g_irepository_is_registered.
4991 2006-08-14 Jürg Billeter <j@bitron.ch>
4993 * src/gidlparser.c: (end_element_handler): Don't leave
4994 namespace and implements states too early.
4997 2007-11-26 Johan Dahlin <johan@gnome.org>
4999 * src/gmetadata.c (validate_struct_blob):
5000 pass blob_type to validate_function_blob instead of
5001 hard-coding BLOB_TYPE_STRUCT.
5003 Patch by Torsten Schoenfeld, fixes #314190
5005 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5007 * src/compiler.c, src/generate.c, src/gidlnode.c,
5008 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5009 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5010 warnings about return values, signedness mismatches, unused
5011 variables, and unhandles enum values in switch statements.
5013 * tests/invoke/Makefile.am: Don't install the invoke test program.
5014 Add -I ../../src to the cflags used for the test functions files.
5016 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5018 * src/girepository.h: Export g_invoke_error_quark.
5020 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5022 * src/ginvoke.c: Remove the fallback implementation of
5023 g_function_info_invoke since we now formally depend on libffi.
5025 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5027 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5028 Remove these files from cvs, as they are now generated.
5030 * src/gmetadata.c (validate_iface_type_blob): Don't
5031 complain if blob->pointer is not set, since that
5032 happens for enum and flag types. (#308935, Gustavo
5035 * Commit an autoconf-conversion patch by
5036 Gustavo Carneiro (#308708)
5038 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5040 * src/compiler.c (main): Use it here to validate
5041 the generated metadata.
5043 * src/gmetadata.[hc]: Add code to validate a
5046 * metadata-format.txt: Updates
5048 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5050 * tests/*: Add struct offsets to field and vfunc
5053 * src/generate.c (write_vfunc_info): Write offset
5054 information for vfuncs.
5056 * src/gidlnode.c (g_idl_node_build_metadata): Write
5057 the struct offsets into the metadata.
5059 * src/gidlparser.c: Parse the offset attributes of
5060 field and vfunc elements.
5062 * src/gidlnode.h: Add offset members to field and
5065 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5069 * gidl.dtd: Updates.
5071 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5072 file, creates, compiles and runs a C file, and folds the
5073 resulting struct offsets back into the .gidl file.
5075 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5077 * src/gidlparser.c (start_field): Make fields in objects
5080 * src/gidlmodule.c: Include string.h
5085 * metadata-format.txt: Cleanup basic types.
5086 * src/*: Adapt to the changes.
5087 * tests/*: Adapt to the changes.
5088 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5090 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5091 size for enum blobs.
5092 (g_idl_node_get_full_size): Report the correct size for
5095 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5096 error checking for blob sizes.
5098 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5100 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5101 interface types for which is_pointer is FALSE, e.g. enums.
5103 * src/gidlnode.c (g_idl_node_get_full_size)
5104 * src/gidlparser.c (parse_type_internal):
5105 * src/generate.c (write_type_info): Support unspecialized
5106 lists, hashtables and errors. Also emit a '*' after these.
5110 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5114 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5116 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5118 * src/*.c: Change the directory to be addressed by
5119 1-based indexes, and use an index of zero to mean
5122 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5124 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5126 * tests/union.test: Add a union test.
5128 * src/generate.c: Handle unions.
5130 * src/girepository.h:
5131 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5133 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5135 * src/gidlparser.c (start_union): Parse <union> elements.
5137 * src/gidlnode.h: Add a GIdlNodeUnion.
5139 * gidl.dtd: Add a <union> element.
5141 * src/gmetadata.c (g_metadata_check_sanity): Check
5144 * src/gmetadata.h: Add union_blob_size to Header,
5147 * metadata-format.txt: Add a UnionBlob.
5149 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5151 * tests/*: Update testcases.
5153 * src/generate.c (write_callable_info): Don't forget to
5154 write transfer and null-ok attributes for return types
5157 * src/girepository.h:
5158 * src/ginfo.c (g_callable_info_may_return_null):
5159 New function to find out if a function may return NULL.
5161 * src/compiler.c (format_output): Make the generated
5164 * README: Point to a recent libffi snapshot.
5166 * tests/invoke/*: Some invoke tests.
5168 * src/Makefile: Add ginvoke.c and the necessary
5171 * src/girepository.h (g_function_info_invoke): Add
5174 * src/ginvoke.c (g_function_info_invoke): Initial
5175 implementation of invoke functionality based on libffi.
5177 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5178 strings and types hash tables in the right order when
5180 (find_entry_node): Free the name parts.
5182 2005-05-12 Johan Dahlin <johan@gnome.org>
5184 * src/generate.c: Generate consistent end tags.
5188 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5192 * src/gidlparser.c (start_function): Actually add
5193 methods to objects. (Steven Walter)
5195 * src/girepository.h:
5196 * src/ginfo.c: Rename Transfer and Direction to
5197 GITransfer and GIDirection. (Torsten Schoenfeld)
5199 * tests/*: Make tests work with the changes in name
5202 * src/gidlnode.c (find_entry_node): Parse qualified
5203 names and generate xref nodes for them if needed. Don't
5204 require all modules to be loaded any more.
5206 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5209 * src/ginfo.c (g_object_info_get_parent): Return NULL
5210 if blob->parent is 0. Still need to make sure index
5213 * src/generate.c: Generate qualified names when
5214 referring to non-local types. Emit transfer attribute
5217 * src/compiler.c (format_output): Put the function
5218 attributes where gcc accepts them.
5220 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5222 * src/compiler.c (main): Add a --verbose cmdline option
5223 and only log messages if it is specified.
5226 * src/gidlnode.c (init_stats, dump_stats): Collect some
5227 statistics on string and type sharing.
5229 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5230 g_message() instead of fprintf().
5232 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5233 (g_idl_node_get_size): Implement for structs.
5234 (g_idl_node_get_full_size): Handle parent being NULL.
5235 (serialize_type): Handle lookup failures more gracefully.
5237 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5239 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5240 size calculation for 2-parameter types and for objects.
5242 * src/compiler.c: Add a cmdline option for debug output
5243 and install a log handler to implement it.
5244 * src/gidlnode.c: Add some debug spew.
5248 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5249 forget to count the module name when calculating the
5250 required size for the metadata.
5253 * src/gidlparser.c: Fix compiler warnings.
5255 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5257 * src/compiler.c (main): Free the option context.
5259 * gidl.dtd: Clean up handling of names. All elements
5260 have a "name", only the elements corresponding to
5261 actual callable functions (function, method, constructor),
5262 have an additional "symbol" attribute holding the
5263 dlsym()-able function name.
5265 * src/generate.c: Adapt to generate xml matching the
5269 * src/gidlnode.c: Adapt to parse the new dtd.
5271 * tests/*.test: Adjust to the new dtd.
5273 * metadata-format.txt:
5274 * src/gmetadata.h: Remove the short_name field
5276 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5277 * src/girepository.h:
5278 * src/ginfo.c (g_value_info_get_short_name): Removed
5280 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5282 * gidl.dtd: Allow constructors for boxed types,
5283 patch by Jonathan Blandford.
5286 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5288 * --- Initial import ---