1 2008-11-16 Owen Taylor <otaylor@redhat.com>
3 Bug 552371 – implement struct field get/set
5 * girepository/gfield.c girepository/girepository.h: Add
6 convenience functions g_field_info_set_field() and
7 g_field_info_get_field() to set and get fields based on the
8 offsets in GIFieldInfo.
10 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
12 Bug 560241 - Out-arguments should not be marked as being pointers
15 * girepository/girparser.c: Improved logic for out arguments.
17 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
19 Bug 559601 - Pointers in structs/unions unduly treated as arrays
21 * giscanner/transformer.py: Differentiate type creation logic
22 between parameters and struct components.
24 2008-11-15 Colin Walters <walters@verbum.org>
26 * giscanner/dumper.py: Check return code from pkg-config
29 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
31 * tests/everything/everything.c (test_array_int_in),
32 (test_array_gtype_in):
33 * tests/everything/everything.h:
34 Rename the int/gtype array tests. Make the return value
35 useful, an aggregation of the array input values.
37 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
39 * tests/everything/Makefile.am:
40 * tests/everything/everything.c:
41 * tests/everything/everything.h:
42 * tests/everything/gitesttypes.c:
43 * tests/everything/gitesttypes.h:
44 Rename gitesttypes.[ch] to everything.[ch]
46 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
48 Bug 560708 – Don't treat arrays that have a length specified as
49 zero-terminated by default
51 * giscanner/transformer.py: Default to non zero terminated for
53 * tests/*: Update, add test for zero vs not.
55 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
57 Bug 557788 - Return types for constructors in generated typelib bogus
59 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
60 obviously broken in the face of duplicate names in different
62 * tests/scanner/*expected.gir: Fix up.
64 2008-11-13 Owen Taylor <otaylor@redhat.com>
66 * girepository/girffi.c: Fix "Unexpected time for time_t"
69 2008-11-13 Colin Walters <walters@verbum.org>
71 Bug 558436 - avoid having scanner load app code
73 * giscanner/cgobject.py: Delete; we no longer load shared
75 * giscanner/dumper.py: Support for linking a library to
76 a stub binary for introspection.
77 * giscanner/glibtransformer.py: Rewrite to use gdump XML
78 from invocation of child binary.
79 * giscanner/transformer.py: Fix up to use fully qualified
80 name in parse tree. Make parse_ctype public so we can use
81 it inside glibtransformer.
82 * tests/scanner/barapp.c: New test, using --program arg
84 * tests/*: Update to use common.mk for invoking scanner.
85 * tools/g-ir-scanner: Add options --program, --program-arg,
87 * docs/g-ir-scanner.1: Update.
89 2008-11-13 Colin Walters <walters@verbum.org>
91 * configure.ac: Depend on Gio, we use it in gdump.c.
92 * girepository/gdump.c: Code to dump GType data to XML.
93 * girepository/girepository.c: Add option group for dumping.
94 * girepository/girepository.h: Define API for the above.
96 2008-11-13 Colin Walters <walters@verbum.org>
98 * common.mk: Add a file to include with Makefile fragments
99 useful for scanner invocation.
101 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
103 * tests/everything/gitesttypes.c (test_filename_return): Return
104 strings in filename encoding.
106 2008-11-13 Owen Taylor <otaylor@redhat.com>
108 Bug 560253 – Add structure and boxed types to Everything test module
110 * tests/everything/gitesttypes.[ch]: Add examples of:
112 Plain old data structs
113 Plain old data structs with nested fields
115 Plain old data boxed with nested fields
116 More complicated boxed types with internal state
118 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
120 * tests/everything/gitesttypes.c (test_gtype_in):
121 * tests/everything/gitesttypes.h:
122 Add a test of GType arrays, a la gtk_list_store_set_columns.
124 2008-11-12 Owen Taylor <otaylor@redhat.com>
126 Bug 560419 – Cache includes when parsing
128 Keep track of all modules parsed within a GIrParser, and when a
129 module is referenced a second time, use the existing parsed copy
130 instead of reparsing.
132 2008-11-12 Owen Taylor <otaylor@redhat.com>
134 Fix management of ParseContext.includes_modules (#560419)
136 * girepository/girparser.c: Fix some trivial bugs in managing the
137 list of include modules. (Add to module's list twice, not
138 initialized to NULL, not freed.)
140 2008-11-12 Owen Taylor <otaylor@redhat.com>
142 Keep aliases and disguised_structures local to each module (#560419)
144 * girepository/girmodule.[ch]: When parsing, keep keep a separate
145 hash tables of aliases and 'disguised' flags for each module, and
146 store that on the module.
148 After parsing an include merge the aliases/disguised flags to the
151 * girepository/girparser.c: Remove 'prefix_aliases' flag and
152 always prefix aliases/disguised structure types when parsing; this
153 simplifies the code considerably.
155 2008-11-12 Owen Taylor <otaylor@redhat.com>
157 Fix mismatches between .gir name and 'name' attribute (#560419)
159 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
160 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
161 where the 'name' element of <namespace/> didn't match the filename of the
162 gir, an assumption that the compiler has always expected and now enforces.
164 2008-11-12 Owen Taylor <otaylor@redhat.com>
166 Only allow one <namespace/> element per <repository/> (#560419)
168 * girepository/girparser.c: The logic in girparser.c didn't work
169 very well if there were multiple <namespace/> nodes within a
170 single <repository/> (context->namespace was always the overall
171 filename and not the the name specified in the <namespace/>
172 element for one thing; this would cause aliases to be mis-prefixed
173 in include modules.) Also check that the "name" in the
174 <namespace/> node matches the filename.
176 2008-11-12 Owen Taylor <otaylor@redhat.com>
178 Add a GirParser object to hold the state of a compilation
180 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
181 GirParser object to hold state that is global across a
182 compilation. Currently just holds the include path, but will
183 eventually also keep a cached list of parsed modules.
185 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
187 * girepository/girepository.c (find_namespace_latest): Fix
190 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
192 * configure.ac: use 'introspection' component for bugs
194 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
196 * tests/everything/gitesttypes.c (test_filename_return):
197 * tests/everything/gitesttypes.h:
198 Add a filename return test.
200 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
202 * tests/offsets/Makefile.am (gitestoffsets.c): fix
203 gen-gitestoffsets invocation with builddir != srcdir
205 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
207 * girepository/girepository.c:
208 Change the element type from utf8 to filename
209 * girepository/girnode.c (g_ir_node_build_typelib):
210 Special case filename equally to utf8 here.
212 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
215 Remove unused variables, add a dependency of girepository.ch, so when
216 they change we rebuild the gir automatically.
218 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
220 * girepository/girepository.c (g_irepository_get_search_path):
221 * girepository/girepository.h:
222 Add a g_irepository_get_search_path, so we can access the search
225 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
227 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
229 * girepository/girparser.c: avoid freeing an uninitialized pointer
231 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
234 * giscanner/glibtransformer.py:
235 * tools/g-ir-scanner:
236 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
237 so we can just pass in --library=foo/bar/baz.la and the scanner
238 does the right thing.
239 Don't warn for _get_type() functions if they don't take any
242 2008-11-11 Owen Taylor <otaylor@redhat.com>
244 Bug 560404 – Prefix types when resolving aliases in included modules
246 * girepository/girparser.c: When resolving aliases in an included
247 module, prefix types before looking them up.
249 2008-11-11 Owen Taylor <otaylor@redhat.com>
251 Compute field offsets and overall size for object structures
253 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
254 field of type object in structure"
256 Do basic computation of field offsets for objects and interfaces;
257 this doesn't attempt to address all of the "mess" for virtual
258 functions described in Bug 560281.
260 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
262 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
264 Based on patch by Johan Bilien.
266 * giscanner/transformer.py (_create_member, _create_parameter):
267 Resolve types here as well.
268 (_resolve_type_name_1): Try resolving using 'ctype' first since
269 it's least ambiguous. Fixes struct member type resolution with
270 similarly named types, e.g. Gdk.PangoRendererClass and
272 * tests/scanner/foo*: Add test.
274 2008-11-11 Owen Taylor <otaylor@redhat.com>
276 * girepository/girparser.c: Search provided include dirs before
277 the default directories.
279 2008-11-11 Owen Taylor <otaylor@redhat.com>
281 * girepository/giroffsets.c: Include fully-qualified names in
284 2008-11-11 Owen Taylor <otaylor@redhat.com>
286 * girepository/giroffsets.c: Fail gracefully with an informative
287 error message when recursion is encountered when computing a
290 2008-11-11 Owen Taylor <otaylor@redhat.com>
292 * girepository/girparser.c: Remove an unused variable.
294 2008-11-10 Owen Taylor <otaylor@redhat.com>
296 Add tests for field offset computations
298 * tests/offsets/offsets.h: Header file with structure definitions to test
300 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
301 field offsets for the structures in offsets.h two ways: using
302 the information from a generated typelib, and as computed by the
305 We diff these two versions to test that everything is OK.
307 2008-11-10 Owen Taylor <otaylor@redhat.com>
309 Remove field offsets from g-ir-generate output and test inputs
311 Field offsets are a) architecture dependent so they shouldn't be part
312 of the architecture-independent gir format which is installed in
313 datadir. b) Are architecture-dependent so they shouldn't be in test
316 * girepository/girparser.c: Don't parse offset for fields
317 * tools/generate.c: Don't parse offset for fields
318 * tests/*.gir test/scanner/*.tgir: Remove offsets
320 (Virtual function and discriminator offsets are not removed, as they
321 aren't fully hooked up to the field-offset computation machinery yet.)
323 2008-11-10 Owen Taylor <otaylor@redhat.com>
325 Bug 560252 - Compute field offsets before writing typelib
327 * girepository/girnode.h: Store the total size and alignment for
328 GIrNodeStruct/Boxed/Union.
330 * girepository/giroffset.c: New file implementing computation of
331 structure field offsets.
333 * girepository/girnode.c: Compute structure field offsets before
334 writing types into the typelib.
336 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
337 means "unknown". Also fix description of the discriminator_offset
340 2008-11-10 Owen Taylor <otaylor@redhat.com>
342 Bug 560250 - Fully parse included modules
344 For some things, like computing structure offsets to put into the typelib
345 we need more than just the aliases from included modules. Do a completel
346 parse of included modules and store in module->included_modules.
348 Also add g_ir_find_node() to find node information from within the
349 active set of modules and their includes.
351 2008-11-10 Owen Taylor <otaylor@redhat.com>
353 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
355 Extract a function to convert GITypeTag to ffi_type from the internals
356 of ginvoke.c. This will be useful in figure out structure alignment.
358 Also fix handling of gsize and time_t to be portable. (Add a check
359 to configure.ac to figure out the width of time_t.)
361 2008-11-10 Owen Taylor <otaylor@redhat.com>
363 Bug 560248 – "disguised structures"
365 Certain types like GIConv and GdkAtom are pointers internally but don't
366 look like pointers when referenced. They have the form.
368 typedef struct _X *X;
370 Parse these as structures/records but mark them in the gir with a 'disguised'
371 attribute so that we know that they need special handling.
373 In the typelib treat them like any other structure.
375 2008-11-09 Jürg Billeter <j@bitron.ch>
378 * giscanner/girwriter.py:
380 Write throws attribute for virtual functions, fixes bug 559703
382 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
384 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
385 up some confusion about the second argument to find_module, it's
386 actually the packages __path__ attribute which we can safely ignore
388 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
390 2008-11-07 Owen Taylor <otaylor@redhat.com>
392 Bug 559737 – Deal with continuations in macros
394 * giscanner/giscannerlexer.l: Treat continuation lines the same
395 as regular newlines. This makes the scanner not complain about
396 #define foo(x) \ <stuff> inside a C file. There's no attempt
397 however to handle parsing macro definitions split across lines.
399 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
401 * giscanner/cachestore.py:
402 Handle broken cache entries, write only filesystems and
403 running out of diskspace.
405 2008-11-07 Owen Taylor <otaylor@redhat.com>
407 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
408 Set current_filename before lexing the file so error messages
409 are reported in the right file.
411 2008-11-06 Colin Walters <walters@verbum.org>
413 * tests/everything/*: Add some tests for strv.
415 2008-11-05 Colin Walters <walters@verbum.org>
417 * girepository/ginvoke.c (g_function_info_invoke): Don't use
418 nested scope local variable for error which may go away after
419 conditional is complete.
421 2008-11-05 Colin Walters <walters@verbum.org>
423 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
424 manipulate hackily; just use GString. This avoids an
425 uninitialized memory read pointed out by Havoc.
427 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
429 * giscanner/__init__.py:
431 * giscanner/cachestore.py:
432 * giscanner/cgobject.py:
433 * giscanner/girparser.py:
434 * giscanner/girwriter.py:
435 * giscanner/giscannermodule.c:
436 * giscanner/glibast.py:
437 * giscanner/glibtransformer.py:
438 * giscanner/libtoolimporter.py:
439 * giscanner/minixpath.py:
440 * giscanner/odict.py:
441 * giscanner/sourcescanner.c:
442 * giscanner/sourcescanner.h:
443 * giscanner/sourcescanner.py:
444 * giscanner/transformer.py:
445 * giscanner/utils.py:
446 * giscanner/xmlwriter.py:
448 Relicense the giscanner library under LGPLv2+.
449 This has been approved by all contributors.
451 2008-11-01 Owen Taylor <otaylor@redhat.com>
453 Bug 558848 giparser.py: shared library should be optional
455 When parsing a .gir, allow the shared-library attribute
456 of <namespace/> to be missing: this corresponds to the handling
457 in libgirepository and elsewhere.
459 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
461 Bug 557898 – Fails to build on OSX 10.4
463 * configure.ac: Check for $shrext_cmds that should be implicitly
464 available if you're using libtool >= 2.0. If undefined, call
465 libtool --config explicitly to get its value.
466 * girepository/gtypelib.c: Remove special case for (non-)Darwin
469 2008-10-31 Colin Walters <walters@verbum.org>
471 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
473 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
475 * configure.ac: Post release version bump
478 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
482 * docs/release-checklist.txt:
485 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
487 * Makefile.am: add an upload-release target
488 * docs/release-checklist.txt:
489 Release process documentation
491 2008-10-31 Colin Walters <walters@verbum.org>
493 Bug 558109 – _g_typelib_init fails to find shared libraries
495 * transformer/glibtransformer.py: Use ctypes' find_library
496 on passed libraries and write that for the shared-library
497 entry. We want to avoid depending on -devel packages.
499 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
501 * docs/g-ir-scanner.1:
502 Document the renaming options.
504 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
506 * giscanner/Makefile.am:
507 * tests/invoke/Makefile.am:
508 * tests/repository/Makefile.am: List in-tree libraries first in
509 LDADD / LIBADD. If installed library is listed first, the
510 resulting binary will prefer installed version to one in .libs,
511 possibly making 'make check' behave strangely.
513 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
515 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
516 gir-repository from choking with gdk/quartz
518 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
520 * giscanner/giscannermodule.c (calc_attrs_length),
521 (pygi_collect_attributes):
522 * giscanner/xmlwriter.py:
523 Write a C version of the xml namespace formatter.
524 Saves 15% of the time it takes to create a gtk gir.
526 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
528 * giscanner/xmlwriter.py: Abstract attribute formatting
529 to a function external to the XMLWriter class.
531 * giscanner/scannerlexer.l:
532 Parse and discard __typeof and __attribute.
534 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
536 * giscanner/girparser.py:
537 Remove arguments from the constructor, move them to
538 separate accessors. Add a new parse_tree method
539 which takes an element tree instance.
540 * tools/g-ir-scanner:
541 Update callsite for this
543 * giscanner/Makefile.am:
544 * giscanner/cachestore.py:
545 * giscanner/transformer.py:
546 Cache the include parsing. Saves ~25% time when
547 creating vte (which includes everything up to gtk+).
549 2008-10-30 Colin Walters <walters@verbum.org>
551 * giscanner/transformer.py: Don't reparse includes
552 we've already processed.
554 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
556 * giscanner/girparser.py:
557 * giscanner/transformer.py:
558 Avoid parsing parameters, types etc when parsing
559 includes. Should speed up include parsing a bit.
561 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
563 * giscanner/girparser.py:
564 Avoid big if/else and use a dispatch table like
567 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
569 * giscanner/transformer.py:
570 Clean up include parsing and registration.
572 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
574 * giscanner/transformer.py:
577 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
579 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
582 construct PYTHONPATH just once
584 * tests/everything/Makefile.am:
585 * tests/scanner/Makefile.am:
586 add $(top_srcdir) to PYTHONPATH to
587 handle builddir != srcdir
589 * giscanner/libtoolimporter.py:
590 * giscanner/sourcescanner.py:
591 Make the libtoolimporter work when distchecking too.
593 Mostly based on patch by Tommi Komulainen
595 2008-10-29 Owen Taylor <otaylor@redhat.com>
597 * giscanner/glibtransformer.py: If a filename of an existing
598 file is passed to --library, hunt for it directly, rather than
599 searching for a corresponding library.
601 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
603 * giscanner/libtoolimporter.py:
604 * giscanner/sourcescanner.py:
605 Clean up the libtool importer a bit. Add a context so we
606 can use it through a with statement.
607 Don't just look in the current directory, look in the whole
610 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
612 Bug 558065 – gitesttypes should be installed
616 * tests/types/Makefile.am -> tests/everything/Makefile.am
617 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
618 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
619 move tests/types to tests/everything
621 * tests/everything/Makefile.am: build normal shared library
622 libgirepository-everything.so.1.0.0 and corresponding typelib
623 Everything-1.0.typelib
625 * tests/everything/Makefile.am: explicitly link libtool
626 versioning with typelib versioning with variables
628 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
630 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
632 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
634 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
637 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
639 Bug 558068 – when invoking a method, offset the in arguments by one,
642 * tests/invoke/invoke.c, tests/invoke/testfns.c,
643 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
644 * girepository/ginvoke.c: do not offset the index of given out
645 arguments by one for methods, "this" is provided as in argument only.
647 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
649 * gir/gio-2.0.c: add annotation for g_file_delete
651 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
653 Bug 558062 – provide and use paths in the .pc file
655 * gobject-introspection-1.0.pc.in: provide typelibdir variable
656 for where .typelibs should be installed (callers shouldn't need
657 to construct paths from bits and pieces)
659 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
661 Bug 557791 – g_irepository_require() could return a GTypelib *
663 * girepository/girepository.c: Return GTypelib; this is useful
664 for low level manipulation.
666 2008-10-25 Colin Walters <walters@verbum.org>
668 Bug 557788 – Return types for constructors in generated typelib bogus
670 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
671 rely on end pass resolution.
673 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
675 Bug 557786 - support fixed size arrays
677 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
678 * giscanner/scannerparser.y: Retain fixed array size.
679 * giscanner/ast.py: Add to note.
680 * giscanner/girwriter.py: Write to gir.
681 * girepository/girnode.c: Write it to typelib.
682 * tools/generate.c: Generate.
683 * tests/*: Add tests.
685 2008-10-25 Colin Walters <walters@verbum.org>
687 Bug 557076 - move typelibs to $libdir
689 * configure.ac: Steal some configury bits from dbus to expand
691 * gir/Makefile.am: Move to libdir.
692 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
693 instead just look at one hardcoded path in libdir.
694 * acinclude.m4: Bits from dbus.
696 2008-10-24 Johan Dahlin <johan@gnome.org>
698 * girepository/girnode.c (g_ir_node_check_unhandled_members):
699 Be quiet, do not warn about unhandled members.
701 2008-10-24 Johan Dahlin <johan@gnome.org>
703 * girepository/gtypelib.c:
704 Only use SHLIB_SUFFIX on darwin, otherwise use
705 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
707 2008-10-24 Lucas Rocha <lucasr@gnome.org>
709 Bug 557623 - Constructors shouldn't be flagged as methods.
711 * girepository/ginfo.c (g_function_info_get_flags): ditto.
713 2008-10-24 Johan Dahlin <johan@gnome.org>
715 * giscanner/scannerparser.y:
716 Check against division by zero for the modula operator.
717 This fixes header parsing of OSX system headers included
720 2008-10-24 Johan Dahlin <johan@gnome.org>
724 Add a CONTRIBUTORS file and dist it.
726 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
728 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
730 * girepository/girparser.c (parse_param_transfer):
731 * giscanner/transformer.py (_create_parameter, _create_return):
732 * giscanner/girwriter.py (_write_return, _write_parameter):
733 * tools/generate.c (write_callable_info): always write and
734 require "transfer-ownership" for return-values and parameters
737 * tests/invoke/testfns-1.0.gir:
739 * tests/scanner/DrawableAdditions.xml:
740 * tests/scanner/GtkFrob-1.0-expected.tgir:
741 * tests/scanner/annotation-1.0-expected.tgir:
742 * tests/scanner/drawable-1.0-expected.tgir:
743 * tests/scanner/drawable-injected-1.0-expected.gir:
744 * tests/scanner/drawable-injected-1.0-expected.tgir:
745 * tests/scanner/foo-1.0-expected.tgir: Updated
747 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
749 * giscanner/cgobject.py: build fundamental types same way as glib
751 * giscanner/glibtransformer.py (_type_from_gtype): record GType
752 when constructing the Type from it
754 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
755 the parameter is a GObject from its GType, if available.
757 * giscanner/glibtransformer.py (_adjust_transfer):
758 * tests/scanner/foo-1.0-expected.gir:
759 * tests/scanner/foo-1.0-expected.tgir: deduce
760 transfer-ownership from GTypes
762 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
764 * giscanner/transformer.py (_create_parameter):
765 * tests/scanner/foo-1.0-expected.gir: make varargs
766 transfer-ownership="none"
768 2008-10-23 Colin Walters <walters@verbum.org>
770 Bug 556739 - transfer ownership
772 * giscanner/ast.py: Refactor Parameter/Return to share
773 common attributes. Add transfer_inferred attribute
774 which says whether or not we made a guess.
775 * giscanner/transformer.py: Add much more extensive
776 heuristics around parameter and return transfer.
777 * giscanner/glibtransformer.py: Adjust to inspect
781 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
783 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
785 * tests/scanner/Makefile.am:
786 * tests/scanner/annotation-1.0-expected.tgir:
787 * tests/scanner/drawable-1.0-expected.tgir:
788 * tests/scanner/drawable-injected-1.0-expected.tgir:
789 * tests/scanner/foo-1.0-expected.tgir:
790 * tests/scanner/GtkFrob-1.0-expected.tgir:
791 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
792 annotations survive the roundtrip via typelib
794 The expectations are as currently produced by g-ir-generate,
795 comparison with the .gir files shows there are differences.
797 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
799 Bug 557468 – Support for GI_TYPELIB_PATH
801 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
802 provided paths to the global search path.
804 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
806 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
808 * tests/scanner/drawable-1.0-expected.tgir:
809 * tests/scanner/drawable-injected-1.0-expected.tgir:
810 * tests/scanner/foo-1.0-expected.tgir:
811 * tools/generate.c (write_object_info): write 'abstract'
812 attribute for classes
814 2008-10-22 Lucas Rocha <lucasr@gnome.org>
816 * girepository/girmodule.c, girepository/gtypelib.c,
817 girepository/girparser.[ch]: fix some build warnings.
819 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
821 Bug 557405 – Use 'allow-none' consistently
823 * docs/typelib-format.txt:
824 * girepository/ginfo.c (g_arg_info_may_be_null):
825 * girepository/girnode.c (g_ir_node_build_typelib):
826 * girepository/girnode.h (struct _GIrNodeParam):
827 * girepository/girparser.c (start_parameter):
828 * girepository/girwriter.c (function_generate):
829 * girepository/gtypelib.h (ArgBlob):
831 * tests/function.gir:
832 * tools/generate.c (write_callable_info): Use 'allow-none'
833 consistently throughout
835 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
837 Bug 557092 – Callback annotations not used
839 * giscanner/transformer.py (_create_callback): use annotations
841 * tests/scanner/annotation.h
842 * tests/scanner/annotation-1.0-expected.gir: add tests
844 2008-10-21 Colin Walters <walters@verbum.org>
846 * giscanner/scannerlexer.l: Don't require trailing whitespace after
847 uncommented parameters.
850 2008-10-21 Colin Walters <walters@verbum.org>
852 * girepository/girepository.c: Ensure that when doing an unversioned
853 require, we prefer items earlier in the search path to later ones.
855 2008-10-21 Owen Taylor <otaylor@redhat.com>
857 * giscanner/transformer.py: For string parameters allow transfer annotation
858 to override the standard automatic guessing based on 'const'.
860 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
862 Bug 557241 – "throws" flag for functions
864 * tests/scanner/drawable-1.0-expected.gir,
865 tests/scanner/drawable-injected-1.0-expected.gir,
866 tests/scanner/drawable.[ch]: add simple test for throwing
867 function (has GError ** as last argument)
869 * giscanner/ast.py: add a 'throws' flag to Function
870 * giscanner/glibtransformer.py: if a function's last paramerter is
871 a GError, set the 'throws' flag and remove that parameter
872 * giscanner/girwriter.py: write out the 'throws' attribute
873 * giscanner/girparser.py: support parsing the 'throws' attribute
875 * tests/repository/gitestthrows.c: add a simple test to check the
876 throws flag in a typelib and invoke the function
878 * girepository/ginfo.c, girepository/girnode.[ch],
879 girepository/girnode.h, girepository/girparser.c,
880 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
882 * girepository/ginvoke.c: if a function throws, add a GError as last
883 arguments, and propagate the error to the invoker.
885 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
887 * giscanner/transformer.py (_create_parameters): Warn if we see
888 annotations for unknown parameters. If .h and .c files name
889 parameters differently, the annotations may be lost.
891 2008-10-21 Johan Dahlin <johan@gnome.org>
893 Bug 556358 - don't use libtool internals
895 * giscanner/Makefile.am:
896 * giscanner/libtoolimporter.py:
897 * giscanner/sourcescanner.py:
898 * giscanner/utils.py:
899 Add a python meta importer and remove a libtool symlink hack.
901 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
903 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
904 and --add-include-path appropriately when invoking the scanner.
905 * tests/types/Makefile.am (%typelib): Likewise.
907 2008-10-20 Colin Walters <walters@verbum.org>
909 Bug 556777 - validate properties
911 * giscanner/transformer.py: Add option to throw on unknown types.
912 * giscanner/glibtransformer.py: Use it on properties.
913 * tests/*: Add a test.
915 2008-10-20 Colin Walters <walters@verbum.org>
917 * giscanner/glibast.py: Also register g variants of
918 default_array_types. This is not beautiful, but
919 good alternatives aren't easy to come by.
920 This fixes gchar ** parsing.
922 2008-10-20 Colin Walters <walters@verbum.org>
924 * docs/typelib-format.txt, girepository/gtypelib.h:
925 Take a bit from ObjectInfo to represent abstract flag.
926 * giscanner/cgobject.py: Expose g_type_get_flags.
927 * girepository/girepository.h: Add accessor.
928 * girepository/ginfo.c: Implement it.
929 * giscanner/ast.py: Add is_abstract flag to generic
931 * giscanner/glibast.py: Use it.
932 * giscanner/girwriter.py: Write it.
933 * girepository/girparser.c: Parse it.
936 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
938 * giscanner/girparser.py (_parse_function): don't lose
939 'transfer-ownership' attributes when injecting, check for the
942 2008-10-19 Johan Dahlin <johan@gnome.org>
944 * giscanner/scannerlexer.l: Parse and ignore __asm.
946 2008-10-19 Colin Walters <walters@verbum.org>
948 * giscanner/girparser.py: Parse array length= to ensure
949 it doesn't get lost from --inject.
951 2008-10-17 Colin Walters <walters@verbum.org>
953 Bug 556795 - char ** regression
955 * giscanner/transformer.py: Fix parsing of ctypes, add some
956 comments about what's going on.
957 * tests/*: Add a test for char **.
959 2008-10-17 Colin Walters <walters@verbum.org>
961 Bug 556783 - change namespace handling to be more consistent
963 * giscanner/transformer.py: Eliminate usage of
964 strip_namespace_object. We now treat --namespace as the default
965 --strip-prefix; however, if --strip-prefix is specified it
966 overrides --namespace. This applies to everything except function
967 names, where we do also strip the namespace.
968 * giscanner/glibtransformer.py: Remove usage of
969 strip_namespace_object.
971 * tests/*: Add skeletal GtkFrob-1.0 test which has different
972 --namespace and --strip-prefix.
974 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
976 Bug 556732 – generate gir files consistently
978 * girepository/girparser.c (start_parameter):
980 * tests/invoke/testfns-1.0.gir:
981 * tools/generate.c (write_callable_info): write
982 'transfer-ownership' attribute consistently with both
983 return-value and parameter elements
985 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
987 Bug 556732 – generate gir files consistently
989 * tools/generate.c (write_callable_info): write 'direction'
990 attribute only if other than 'in' to be consistent with
993 * tests/object.gir: remove direction="in" which is the default
995 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
997 Bug 556732 – generate gir files consistently
999 * giscanner/ast.py (Field): add readable and writable properties
1000 * giscanner/girparser.py (_parse_field): copy 'readable' and
1001 'writable' attributes
1002 * giscanner/transformer.py (_create_member): create fields as
1004 * giscanner/glibtransformer.py (_introspect_object,
1005 _pair_class_struct): make object instance and class fields
1007 * giscanner/girwriter.py (_write_field):
1008 * tools/generate.c (write_field_info): write field 'readable'
1009 and 'writable' attributes only if non-default (read-only)
1010 * girepository/girparser.c (start_field): in the absence of
1011 attributes assume fields are read-only
1013 * tests/struct.gir: remove redundant readable="1" from fields
1014 * tests/scanner/foo-1.0-expected.gir:
1015 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1016 all record and union fields
1018 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1020 Bug 556732 – generate gir files consistently
1022 * giscanner/girwriter.py (_write_property): write properties
1023 'construct' attribute if set
1024 * tools/generate.c (write_property_info): write properties
1025 'readable' and 'writable' attributes only if non-default
1026 * tests/object.gir: add writable="0"
1027 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1029 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1031 * gir/glib-2.0.c: added annotations
1033 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1035 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1038 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1040 Bug 556610 – giscanner/girparser.py drops parameter options
1042 * tests/scanner/drawable-injected-1.0-expected.gir,
1043 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1044 * giscanner/ast.py: allow Parameter to take options in the constructor
1045 * giscanner/girparser.py: parse parameter options (transfer,
1046 direction, allow-none)
1048 2008-10-16 Colin Walters <walters@verbum.org>
1050 Bug 556185 - segfault on g_callable_info_get_return_type
1052 Initial patch from John Ehresman.
1054 * tests/repository/*: Add a test using
1055 g_callable_info_get_return_type. Instead of casting a
1056 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1057 to call g_type_info_get_interface.
1059 2008-10-16 Colin Walters <walters@verbum.org>
1061 Bug 556579 - union and struct name misresolved
1063 * giscanner/transformer.py: The calls to _resolve_type_name
1064 for struct/union names was a legacy holdover from when type
1065 resolution had multiple phases. Now it's actively harmful
1066 since we might pull in an identical name from another
1070 2008-10-16 Colin Walters <walters@verbum.org>
1072 Bug 556432 - transfer annotations and defaults
1074 * giscanner/transformer.py: Canonicalize type
1075 after removing *, not before. This ensures that
1076 guchar* is transformed to 'uint8'.
1077 Add some comments here.
1078 * giscanner/glibtransformer.py: Add _adjust_transfer
1079 phase for tweaking GObject transfers.
1082 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1084 * configure.ac: enable bunch of gcc warning CFLAGS
1086 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1088 Bug 556543 – reduce compiler warnings
1090 * girepository/ginfo.c:
1091 * girepository/girepository.c (register_internal,
1092 count_interfaces, find_interface, find_namespace_version,
1093 parse_version, g_irepository_require):
1094 * girepository/girmodule.c (g_ir_module_build_typelib):
1095 * girepository/girnode.c (init_stats, dump_stats,
1096 _g_irnode_init_stats, _g_irnode_dump_stats,
1097 g_ir_node_can_have_member):
1098 * girepository/girparser.c (firstpass_end_element_handler,
1099 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1100 start_alias, start_type, end_type_top, parse_include, cleanup,
1102 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1103 * giscanner/giscannermodule.c (directive_get_options,
1104 type_get_child_list):
1105 * giscanner/scannerlexer.l (parse_gtkdoc):
1106 * giscanner/scannerparser.y (ctype_free):
1107 * giscanner/sourcescanner.c:
1108 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1109 * tests/types/gitesttypes.c:
1110 * tools/compiler.c (main):
1111 * tools/generate.c (write_repository): Remove unused variables
1112 and code, add missing includes, declarations and case
1115 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1117 Bug 556541 – access union members through UnionBlob rather than
1120 * girepository/ginfo.c (g_union_info_find_method): access union
1121 members through UnionBlob rather than StructBlob
1123 2008-10-15 Colin Walters <walters@verbum.org>
1125 Bug 556331 - clean up includes handling
1127 * tools/g-ir-scanner: Rework command line arguments; now we take
1128 --add-include-path and --include separately.
1129 * giscanner/girwriter.py: Separate name= and version= in include
1131 * giscanner/ast.py: Add Include type.
1132 * giscanner/transformer.py: Cleanups to register_include now that
1133 we don't need to handle mixed filenames and relative arguments.
1134 * girepository/girparser.c: Parse name and version separately;
1135 this fixes a bug as a side effect where we weren't resolving
1136 through aliases for basic types.
1137 * girepository/girepository.c: Fix format string args.
1138 * gir/Makefile.am: Update.
1141 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1143 Bug 556434 – unhandled interface/object/... member types
1145 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1146 g_ir_node_build_typelib): Check all
1147 interface/object/boxed/struct/union members are processed and
1148 abort if they are not. (Mostly callbacks in structs, but also
1149 fields in interfaces.)
1151 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1153 * a/girepository/girnode.c (g_ir_node_build_members,
1154 g_ir_node_build_typelib): refactor common code for processing
1155 members to a function
1157 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1159 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1160 transformation is lossless (it's not)
1162 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1164 * tests/Makefile.am: fix tests to compare xml to xml instead of
1165 typelib to xml, and stop on error
1167 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1169 * tools/generate.c (write_type_name, write_type_info,
1170 write_type_info, write_object_info, write_object_info,
1171 write_interface_info, write_error_domain_info): reduce code
1174 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1176 Bug 556174 – parse types for lists etc.
1178 * girepository/girparser.c (end_type_recurse):
1180 * tools/generate.c (write_type_info, write_field_info,
1181 write_callable_info, write_callable_info, write_constant_info,
1182 write_property_info): use nested <type>s for lists and hashes
1184 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1187 * tests/object.gir: remove trailing whitespace from inside
1188 elements to match g-ir-generate output
1190 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1192 * tools/generate.c (xml_printf): quote printf arguments so that
1193 we don't generate invalid XML by writing unescaped double quotes
1194 and such in attributes
1196 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1198 * tools/generate.c (write_field_info, write_callable_info,
1199 write_function_info, write_callback_info, write_struct_info,
1200 write_constant_value, write_signal_info, write_vfunc_info,
1201 write_object_info, write_interface_info, write_union_info,
1202 write_repository): remove unused indent parameters, xmlwriter
1203 keeps track of necessary indentation
1205 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1207 * tools/generate.c (xml_element_new, xml_element_free,
1208 xml_start_element, xml_end_element, xml_end_element_unchecked,
1209 xml_open, xml_close): Keep track of generated XML tree and
1210 handle indentation and closing tags properly.
1211 (write_field_info, write_callable_info, write_function_info,
1212 write_callback_info, write_struct_info, write_value_info,
1213 write_constant_info, write_enum_info, write_signal_info,
1214 write_vfunc_info, write_property_info, write_object_info,
1215 write_interface_info, write_error_domain_info, write_union_info,
1216 write_repository): Use xml_start_element and xml_end_element to
1219 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1221 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1222 (write_type_name, write_type_info, write_field_info,
1223 write_callable_info, write_function_info, write_callback_info,
1224 write_struct_info, write_value_info, write_constant_value,
1225 write_constant_info, write_enum_info, write_signal_info,
1226 write_vfunc_info, write_property_info, write_object_info,
1227 write_interface_info, write_error_domain_info, write_union_info,
1228 write_repository): wrap all FILE access to go through simple xmlwriter
1230 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1232 Bug 556400 – Fails to build on OS X 10.4
1234 * configure.ac: check for functions backtrace and backtrace_symbols
1235 * girepository/girparser.c (backtrace_stderr): Comment out
1236 implementation if the functions are not available.
1237 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1238 directory for better portability
1240 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1242 Bug 556433 – assume direction = out for int * parameters
1244 * giscanner/ast.py: define a list of types for which, if passed as
1245 reference, we assume a default direction of 'out'
1246 * giscanner/transformer.py: if a type has type pointer to one of the
1247 previously defined types, and no direction is set, assume out.
1248 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1250 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1252 * tests/scanner/annotation.c: fixed a few copy-paste errors
1254 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1256 Bug 556323 – transfer-ownership is wrong for functions returning const
1259 * giscanner/transformer.py: check for a const string as return value,
1260 not just const char*. Suggested by Colin Walters
1261 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1263 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1265 * girepository/ginfo.c, girepository/girepository.h: add
1266 g_union_info_find_method
1268 2008-10-14 Colin Walters <walters@verbum.org>
1270 * tests/repository/Makefile.am: Reenable repo test.
1271 * tests/repository/gitestrepo.c: Prepend search
1272 path for $(top_builddir)/gir dir so that we don't
1273 require installation for "make check" to pass.
1275 2008-10-13 Jürg Billeter <j@bitron.ch>
1277 * giscanner/glibtransformer.py:
1278 * tests/scanner/annotation-1.0-expected.gir:
1279 * tests/scanner/drawable-1.0-expected.gir:
1280 * tests/scanner/foo-1.0-expected.gir:
1281 * tests/scanner/utility-1.0-expected.gir:
1283 Support fields in GObject structs
1285 2008-10-13 Jürg Billeter <j@bitron.ch>
1287 * giscanner/ast.py: add signed integer and off_t to type_names
1289 2008-10-12 Jürg Billeter <j@bitron.ch>
1291 * giscanner/girparser.py: Parse bits attribute of fields
1293 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1295 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1296 * tests/repository/gitestrepo.c (main): instantiate
1297 'GCancellable' to ensure the GType is registered before using
1300 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1302 * giscanner/girparser.py: actually add the parsed constant nodes
1304 2008-10-12 Colin Walters <walters@verbum.org>
1306 * girepository/girepository.c: Don't cast DirEntry to Blob,
1307 actually look it up by offset.
1309 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1311 * giscanner/girparser.py: parse constant nodes in gir files
1313 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1315 * giscanner/transformer.py: prefix for constants have an underscore,
1316 so remove them as if they were functions, not objects.
1318 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1320 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1323 2008-10-12 Colin Walters <walters@verbum.org>
1325 Initial patch from Jani Monoses.
1327 * girepository/gtypelib.c: Fix inverted test for success
1330 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1332 * tools/generate.c (write_callable_info): use "transfer-ownership"
1333 attribute for return values
1335 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1337 * tools/generate.c (write_callable_info): move "transfer" and
1338 "null-ok" attributes from <function> to <return-value> element
1340 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1342 * girepository/girparser.c (start_return_value): handle
1343 "transfer-ownership" attribute
1345 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1347 * girepository/girparser.c (parse_param_transfer):
1348 * tools/generate.c (write_callable_info): use "container" for
1349 container/shallow ownership transfer (not "shallow")
1351 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1353 * girepository/girparser.c (parse_param_transfer,
1354 start_parameter): Refactor handling of transfer=none/shallow/full
1355 to separate function
1357 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1359 Bug 556048 – Crash in g_irepository_find_by_gtype
1361 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1362 * girepository/girepository.c (find_interface): Fix
1363 find_by_gtype case to get the type name from right offset
1365 2008-10-12 Jürg Billeter <j@bitron.ch>
1367 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1370 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1372 * girepository/gtypelib.h (RegisteredTypeBlob): make
1373 'unregistered' one bit wide as everywhere else
1375 2008-10-12 Jürg Billeter <j@bitron.ch>
1377 * giscanner/glibtransformer.py:
1378 * tests/scanner/annotation-1.0-expected.gir:
1379 * tests/scanner/drawable-1.0-expected.gir:
1380 * tests/scanner/drawable.h:
1381 * tests/scanner/foo-1.0-expected.gir:
1382 * tests/scanner/utility-1.0-expected.gir:
1384 Readd class records as workaround to not break Gtk typelib
1386 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1388 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1390 2008-10-12 Jürg Billeter <j@bitron.ch>
1392 * giscanner/glibtransformer.py: Don't generate <record> elements
1394 * tests/scanner/*: Update test cases
1396 2008-10-11 Colin Walters <walters@verbum.org>
1398 Bug 552858: versioning
1400 This is a big patch. You should probably remove your installation
1403 * docs/typelib-format.txt: Add nsversion entry which holds
1404 version of namespace.
1405 * girepository/girepository.h: Add 'version' parameter to
1406 g_irepository_require. This may be NULL. Normally
1407 bindings should pass an explicit version though.
1408 * girepository/girepository.c: Lots of infrastructure to
1409 support versioning. Add some more documentation. Disallow
1410 some usage of NULL namespaces.
1411 * girepository/girmodule.c: Add version parameter.
1412 * girepository/gtypelib.c: Update header size.
1413 * giscanner/ast.py: Add version to Namespace.
1414 * giscanner/girparser.py: Parse version attribute from
1415 XML, pass to Namespace.
1416 * giscanner/girwriter.py: Write out version parameter.
1417 * giscanner/transformer.py: Clean up include registration.
1418 * tests/*: Add version attribute.
1419 * tests/invoke/invoke.c: Don't try looking up test before
1420 it's loaded in repository.
1421 * tools/generate.c: Output version parameter.
1422 * gir/Makefile.am: Add 2.0 version to .gir files.
1424 2008-10-11 Colin Walters <walters@verbum.org>
1426 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1427 if we have mismatched parens.
1429 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1431 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1432 on 'members' variable.
1434 2008-10-11 Colin Walters <walters@verbum.org>
1436 Bug 555947 - update annotations syntax
1438 * giscanner/ast.py: Default to None for transfer. Remove
1439 default transfers for container types; we require this to
1441 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1442 'full' to match repository.
1443 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1444 * giscanner/transformer.py: Update for new annotations syntax.
1447 2008-10-11 Johan Bilien <jobi@litl.com>
1449 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1451 2008-10-11 Johan Bilien <jobi@litl.com>
1453 Bug 552347: Parse #defines constants
1455 * girepository/gtypelib.c: update the list of value_size
1456 with recently defined type tags
1457 * giscanner/scannerparser.y: brought back parsing of #defined, as
1458 present in older version
1459 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1460 * giscanner/girwriter.py: write out constant tags in the gir
1461 * giscanner/sourcescanner.py: add accessor for const_string
1462 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1465 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1467 Bug 555946: Install a test module exercising all types, transfer
1472 * tests/types/*: Add and install a test module that has functions
1473 accepting and returning most of the basic types to enable bindings
1474 implementors to more easily test their type conversion routines.
1476 2008-10-11 Jürg Billeter <j@bitron.ch>
1478 Bug 552374: Const strings should be identified in the gir.
1480 * giscanner/transformer.py: support string memory management
1481 * tests/scanner/foo.h: use char * and const char *
1482 * tests/scanner/foo-expected.gir: test that
1484 2008-10-11 Johan Dahlin <johan@gnome.org>
1486 * giscanner/girparser.py:
1487 Also parse enums which are not glib types.
1489 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1491 Bug 552370: add one more test for unsigned as a type, not as
1494 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1495 * test/scanner/foo.h: add function which uses unsigned as a type.
1496 * test/scanner/foo-expected.gir: test that.
1498 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1500 Bug 555712: Struct and union issues
1502 * giscanner/scannerparser.y (struct_declarator): Use information
1503 provided about the bit width of a field.
1504 * giscanner/transformer.py (Transformer._create_member): Pass the
1505 symbol's const_int member to the created field (it represents the
1507 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1508 field attribute, if present.
1509 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1510 width in bits of the field (only relevant for bitfields).
1513 * giscanner/transformer.py (Transformer._create_typedef_struct)
1514 (Transformer._create_typedef_union): Add calls to _create_struct()
1515 and _create_union(), respectively. This causes the scanner to
1516 generate output for fields of struct and union typedefs.
1519 2008-10-11 Jürg Billeter <j@bitron.ch>
1521 Bug 552370: unsigned not scanned properly
1523 * giscanner/scannerparser.y: combine basic types such as unsigned
1524 int and long long when scanning
1525 * tests/scanner/foo-expected.gir:
1526 * tests/scanner/foo.c: (foo_test_unsigned):
1527 * tests/scanner/foo.h: test that
1529 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1531 Bug 554854: The --typelib-xml and --inject options should reuse
1532 giscanner parser/writer.
1534 * giscanner/ast.py: add constructor list to Struct and Union.
1535 Add new param in Return's contructor to define transfer.
1536 * giscanner/girparser.py: several additions to the parser in order
1537 to have parsing all nodes of the gir xml files.
1538 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1539 and writer in --inject and --typelib-xml options.
1540 * giscanner/xmlwriter.py: ignore empty attributes instead of
1541 raising an error as this basically exposes a bug in GIRParser.
1542 This should be reverted as soon as the parser is fixed.
1544 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1546 Bug 552376: scanner generates wrong names for enum members when
1547 there's no defined gtype.
1549 * giscanner/utils.py (strip_common_prefix): Always strip common
1550 prefix exactly up to the last "_", and not beyond.
1551 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1552 here is that the first character after the last '_' should should be
1553 the same as the character in the same position on the type name.
1554 * tests/scanner/foo-expected.gir: test that
1556 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1558 Bug 555293: append library_paths to LPATH env variable to work
1559 around a bug in find_library when using ldconfig.
1561 * tools/g-ir-scanner (main): ditto.
1563 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1565 * girepository/girepository.c (register_internal): fix regression on
1566 invoke test case by making sure we load the global module in the
1567 typelib when dealing with inline typelibs.
1568 * girepository/gtypelib.c: a couple of coding style fixes.
1570 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1572 Bug 555294: Add support for multiple shared libraries per typelib.
1574 * girepository/ginvoke.c (g_function_info_invoke),
1575 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1576 g_typelib_symbol instead of g_module_symbol.
1577 * girepository/girepository.h: remove g_typelib_set_module and add
1579 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1580 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1581 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1582 modules instead of just one. The symbol lookup is now abstracted
1583 behind g_typelib_symbol which tries to find the passed symbol name in
1585 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1586 and write shared_library attribute as a comma-separated list of libs.
1588 2008-10-06 Colin Walters <walters@verbum.org>
1590 * giscanner/transformer.py: Parse length= annotation as
1591 a parameter name, not a raw int.
1594 2008-10-03 Colin Walters <walters@verbum.org>
1596 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1598 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1600 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1604 2008-10-03 Colin Walters <walters@verbum.org>
1606 Bug 554576: scan problem with ev_selection_render_selection()
1608 * giscanner/transformer.py: Only do type resolution once we've
1609 scanned all types. What could happen before is that we'd strip
1610 the namespace from local type "EvSelection" => Selection, and
1611 then later pull a "Selection" from some other namespace because
1612 we hadn't yet seen the local EvSelection. This could come
1613 down to hash table ordering and other things so not easy
1614 to write a test for.
1616 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1618 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1619 GLibEnumMember constructor as it should be the enum member nick.
1621 2008-10-02 Colin Walters <walters@verbum.org>
1623 Bug 552961: remove this parameter for methods
1625 * giscanner/glibtransformer.py: Delete this parameter; it is
1627 * girepository/ginvoke.c: Insert this parameter for methods.
1628 * girepository/gtypelib.c: Remove no longer needed verification of
1629 method this parameter.
1632 2008-09-30 Dan Winship <danw@gnome.org>
1634 Bug 554490: g-ir-scanner gets confused by '\\'
1636 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1637 backslashes so it will correctly parse '\\' and "\\"
1639 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1642 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1644 2008-10-02 Colin Walters <walters@verbum.org>
1646 bug 552393: Note variadic functions
1648 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1649 to use parameter_list directly.
1650 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1651 * giscanner/ast.py: Add Varargs type.
1652 * giscanner/transformer.py: Check for ellipsis symbol, transform
1654 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1655 Parse varargs functions, but filter them out before we start
1656 compiling the typelib.
1658 2008-10-02 Colin Walters <walters@verbum.org>
1660 Bug 554632: type tag for GType
1662 * girepository/girepository.h, girepository/girepository.c:
1663 Add type tag for GType - it's a special type we don't want
1664 to resolve to just "long".
1665 * docs/typelib-format.txt: Update.
1666 * girepository/girparser.c: Parse it.
1667 * giscanner/glibtransformer.py: Ensure we don't put GType in
1669 * tools/generate.c: Remove hardcoded type list.
1672 2008-09-30 Dan Winship <danw@gnome.org>
1674 Bug 554521: scanner generates wrong names for enum members with
1675 full type name prefix
1677 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1678 right amount when the entire "first" string is a prefix of
1681 * tests/scanner/foo.h (FooEnumFullname):
1682 * tests/scanner/foo-expected.gir: test that
1684 2008-09-29 Colin Walters <walters@verbum.org>
1686 Bug 552380: Array parameters should be marked in the gir
1688 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1689 uint8[]. Add Array, List, and Map subclasses of Type;
1690 these types can be generic. Return transfer defaults
1691 to true if return value is string or container type.
1692 Delete Sequence type.
1693 * giscanner/scannerlexer.l: Syntax change for annotations;
1694 use <> since it's more readable.
1695 * giscanner/girwriter.py: Write out these changes.
1696 * giscanner/girparser.py: Parse them.
1697 * giscanner/transformer.py: Have a defined set of
1698 both list and map types. When creating a type,
1699 check if the ctype we've parsed is one of them,
1700 if so create a container type subclass as appropriate.
1701 * girepository/girparser.c: Parse in generic types.
1704 2008-09-27 Colin Walters <walters@verbum.org>
1706 * tools/g-ir-scanner: Add --inject option.
1708 2008-09-25 Colin Walters <walters@verbum.org>
1710 Remove non-repository types from GIR
1712 * giscanner/ast.py: The canonical name is 'utf8', not
1714 * giscanner/glibast.py: A few more glib type mappings.
1715 * girepository/girparser.c: We only parse repository types.
1716 * tests/*.gir: Update.
1718 2008-09-23 Colin Walters <walters@verbum.org>
1720 Bug 552566: Add time_t type
1722 We need a type for time_t since it's special in C, and just
1723 mapping it to long precluded bindings from handling it
1726 2008-09-19 Colin Walters <walters@verbum.org>
1728 Bug 552390: Handle capitialization like "DBus" more robustly
1730 The to_underscores function was designed for use against prefixed
1731 names; we need a separate function which will convert names like
1732 DBusFoo into dbus_foo, not d_bus_foo.
1734 2008-09-19 Colin Walters <walters@verbum.org>
1736 Add check to make sure we're not hitting out unresolved types
1738 Validate the "this" argument for methods
1740 Remove heuristic matching of methods to classes based on prefix
1742 It was a broken hack that dated from when we handled underscoring
1743 and capitalization conventions less well.
1745 2008-09-18 Colin Walters <walters@verbum.org>
1747 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1749 On Darwin, the suffix for installed shared libraries (.dylib) is
1750 different from loadable modules (.so). We use a bit of magic shell
1751 script from Behdad Esfahbod to figure out the right suffix.
1753 2008-09-15 Johan Dahlin <johan@gnome.org>
1755 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1756 a wrapper for type_qualifier as well.
1758 2008-09-15 Colin Walters <walters@verbum.org>
1760 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1762 * giscanner/ast.py: Add deprecation attributes.
1763 * giscanner/girwriter.py: Write out deprecation data.
1764 * girepository/girparser.c: Relax parsing; deprecated
1765 attribute now includes freeform string.
1766 * giscanner/scannerlexer.l: Parse Deprecated.
1767 * giscanner/transformer.py: Look for deprecated attribute
1769 * tests/scanner/*: Add a Deprecated test.
1771 2008-09-14 Tor Lillqvist <tml@novell.com>
1773 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1775 2008-09-14 Colin Walters <walters@verbum.org>
1777 * giscanner/glibtransformer.py: Ignore functions with
1780 2008-09-12 Colin Walters <walters@verbum.org>
1782 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1784 2008-09-12 Colin Walters <walters@verbum.org>
1786 * giscanner/ast.py: Bind pid_t to INT for vte.
1788 2008-09-12 Colin Walters <walters@verbum.org>
1790 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1791 * giscanner/glibast.py: Avoid overwriting ctype.
1792 * giscsanner/transformer.py: Try resolving types using the GType names.
1794 2008-09-12 Colin Walters <walters@verbum.org>
1796 * giscanner/minixpath.py: Code to run an "XPath"
1797 assertion against an XML tree, taken from
1798 gir-repository/gir/tests.py.
1799 * giscanner/Makefile.am: Ship it.
1800 * tools/g-ir-scanner: Add --xpath-assertions option.
1801 * gir/GLib-assertions.txt: Add a few assertions.
1802 * gir/Makefile.am: Run them.
1804 2008-09-11 Colin Walters <walters@verbum.org>
1806 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1808 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1809 prefix if it ends with _. Tweak callback stripping to determine
1810 based on presence of _ whether we need to use strip_namespace_func
1811 or strip_namespace_object.
1813 2008-09-09 Owen Taylor <otaylor@redhat.com>
1815 * docs/typelib-format.txt: Wether => Whether
1817 2008-09-08 Colin Walters <walters@verbum.org>
1819 * girepository/girparser.c: Default to "readable" for properties.
1820 * giscanner/ast.py: Add readable, writable etc.
1821 * giscanner/girwriter.py: Writ them.
1822 * giscanner/glibtransformer.py: Inspect them.
1825 2008-09-07 Colin Walters <walters@verbum.org>
1827 * giscanner/cgobject.py: Add comment.
1829 2008-09-07 Colin Walters <walters@verbum.org>
1831 * giscanner/cgobject.py: Also call g_thread_init.
1833 2008-09-07 Colin Walters <walters@verbum.org>
1835 * giscanner/transformer.py: Fix regression by not
1836 stripping prefix before stripping namespace for unions
1839 2008-09-06 Colin Walters <walters@verbum.org>
1841 * giscanner/transformer.py: If a namespace contains
1842 multiple caps, try stripping both gnomekeyring_ and
1845 2008-09-07 Johan Dahlin <johan@gnome.org>
1847 Bug 551162 – giscanner does not recognize asm and __asm__
1848 * giscanner/scannerlexer.l:
1849 Patch by Jani Monoses.
1851 2008-09-06 Colin Walters <walters@verbum.org>
1853 * girepository/girnode.c: Allow gtype_name
1854 and gtype_init in struct and union.
1855 * girepository/girparser.c: Parse glib:
1856 boxed bits for both structure and union.
1857 * girepository/gtypelib.c: Don't barf
1858 if structure is boxed.
1859 * giscanner/girparser.py: Parse new XML
1861 * giscanner/girwriter.py: Write out new
1863 * giscanner/glibast.py: Define new classes
1864 which are both Boxed and Struct/Union, as
1865 well as an "Other" for everything else.
1866 * giscanner/glibtransformer.py: Handle
1867 boxed types specially; we try to merge
1868 them with a struct/union if one exists,
1869 otherwise fall back to generic boxed.
1871 * tools/generate.c: Write out new format.
1873 2008-09-06 Johan Dahlin <johan@gnome.org>
1875 * giscanner/grealpath.h: Include stdlib.h
1877 * docs/g-ir-generate.1: Remove leading %
1879 2008-09-01 Colin Walters <walters@verbum.org>
1881 * girepository/girparser.c: Look at c:type to determine
1882 whether or not an item is a pointer.
1884 2008-09-01 Johan Dahlin <johan@gnome.org>
1886 * tests/scanner/Makefile.am:
1887 Set PYTHONPATH so the scanner can run
1888 even if you didn't install anything.
1890 2008-09-01 Johan Dahlin <johan@gnome.org>
1893 Post-release version bump
1896 2008-09-01 Johan Dahlin <johan@gnome.org>
1900 2008-08-31 Colin Walters <walters@verbum.org>
1902 * giscanner/glibtransformer.py: Quiet info
1905 2008-08-31 Johan Dahlin <johan@gnome.org>
1908 Bump version to 0.5.0
1910 2008-08-31 Colin Walters <walters@verbum.org>
1912 * giscanner/glibtransformer.py: Follow aliases to ensure
1913 we don't get a constructor returning a basic type.
1914 * giscanner/transformer.py: Add function to follow aliases.
1917 2008-08-31 Johan Dahlin <johan@gnome.org>
1919 * giscanner/scannerlexer.l:
1920 * giscanner/scannerparser.y:
1921 * giscanner/sourcescanner.h:
1922 * giscanner/sourcescanner.py:
1923 Parse GCC extensions in the parser instead of just undeffing them
1924 in the pre-processor.
1926 2008-08-31 Johan Dahlin <johan@gnome.org>
1928 * giscanner/glibtransformer.py:
1929 Clean up a huge if. Do not add methods or constructors
1931 * giscanner/utils.py:
1932 second might be longer than first, check that.
1934 2008-08-31 Johan Dahlin <johan@gnome.org>
1939 2008-08-31 Colin Walters <walters@verbum.org>
1941 * girepository/girparser.c: Don't lose if we
1944 2008-08-31 Colin Walters <walters@verbum.org>
1946 * giscanner/glibtransformer.py: Look for libtool
1947 library in current directory
1948 * tests/scanner - Update.
1950 2008-08-30 Colin Walters <walters@verbum.org>
1952 * docs/typelib-format.txt: Add a guint32
1954 * gir/Makefile.am: Dep on Makefile
1955 * girepository/ginfo.c:
1956 * girepository/girepository.c: Clean up
1957 default typelib handling; remove global
1958 default_typelib variable. Ensure we handle
1959 NULL repository in more places.
1960 Support dependency resolution.
1961 Support lazy loading.
1962 * girepository/girepository.h: Remove
1963 g_irepository_unregister; we don't support
1964 unloading typelibs since really they're
1965 process-global. Update for lazy loading
1967 * girepository/girmodule.c: Use g_new0.
1968 Add dependencies to GirModule.
1969 * girepository/girparser.c: Parse dependencies.
1970 * girepository/gtypelib.c: Add 4 bytes for
1972 * tests/Makefile.am: Kill off gobject.gir,
1973 it conflicts with the real one.
1974 * tests/object.gir: Dep on GObject.
1975 * tools/generate.c: Take --includedir
1976 argument to say which directories to search
1977 for typelibs. Print out dependencies.
1979 2008-08-30 Colin Walters <walters@verbum.org>
1981 * giscanner/glibtransformer.py: Reduce warning noise.
1983 2008-08-29 Colin Walters <walters@verbum.org>
1985 * girepository/ginfo.c: Add some assertions regarding
1986 refcounts, just to be sure.
1987 * giscanner/glibtransformer.py: Blacklist a few more
1990 2008-08-29 Colin Walters <walters@verbum.org>
1992 * giscanner/glibtransformer.py: Blacklist a few
1993 functions that use GError oddly
1995 2008-08-29 Colin Walters <walters@verbum.org>
1997 * girepository/gtypelib.c: Don't crash if no
2000 2008-08-29 Colin Walters <walters@verbum.org>
2002 * girepository/girparser.c: Handle chains of aliases
2003 across modules by ensuring we fully qualify aliases
2006 2008-08-29 Colin Walters <walters@verbum.org>
2008 * girepository/girparser.c: Don't search aliases
2011 2008-08-29 Colin Walters <walters@verbum.org>
2013 * girepository/girparser.c: Rewrite type parsing
2014 to handle both GLib parsing case as well as correctly
2015 handling GLib.List and friends. Don't try to treat
2016 e.g. ListStore as a List.
2018 2008-08-29 Colin Walters <walters@verbum.org>
2020 * girepository/gtypelib.c: Add more context
2023 2008-08-29 Colin Walters <walters@verbum.org>
2025 * giscanner/glibtransformer.py: Add some informative
2026 logging messages in corner cases. Be sure we use
2027 the most recent node set instead of a cache
2028 when generating result set.
2029 * tests/: Remove duplicated bits in expected girs
2030 * girepository/girparser.c: Accept both List (for
2031 compiling GLib) and GLib.List (what the scanner
2034 * tools/generate.c: Generate canonical form.
2036 2008-08-29 Johan Dahlin <johan@gnome.org>
2038 * giscanner/config.py.in:
2039 Use datarootdir instead of datadir to avoid
2040 an autoconf warning.
2042 2008-08-29 Johan Dahlin <johan@gnome.org>
2046 * examples/gdk-pixbuf.gidl:
2048 Update and remove old cruft.
2050 2008-08-29 Johan Dahlin <johan@gnome.org>
2053 * docs/g-ir-compiler.1:
2054 * docs/g-ir-generate.1:
2055 * docs/g-ir-scanner.1:
2056 Add man pages for the generator and compiler.
2058 2008-08-29 Johan Dahlin <johan@gnome.org>
2060 * docs/g-ir-scanner.1: Document
2062 * giscanner/Makefile.am:
2063 * giscanner/gidlparser.py:
2064 * giscanner/gidlwriter.py:
2065 * tools/g-ir-scanner:
2066 Remove gidl support.
2068 2008-08-28 Colin Walters <walters@verbum.org>
2070 * tests/scanner/Makefile.am: Pass the right
2071 --includedir args. Add a Makefile dep.
2072 * tools/compiler.c: Pass includedirs down.
2073 * girepository/girparser.c: Actually put
2074 includedirs in context, pass down. Fix
2077 2008-08-28 Colin Walters <walters@verbum.org>
2079 * gir/Makefile.am: Use --includedir
2080 * girepository/girparser.c: Recursively parse
2081 includes to pull in aliases and expand them.
2082 We need this to avoid putting unknown names in
2084 * tools/compiler.c: Add --includedir option.
2085 * giscanner/ast.py: Map size/ssize to types
2088 2008-08-28 Tor Lillqvist <tml@novell.com>
2090 Make check now runs successfully on Windows.
2092 * tools/compiler.c (write_out_typelib): Use binary mode for output
2095 * girepository/girnode.c: Don't print NULL strings.
2097 * tests/invoke/Makefile.am
2098 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2099 convince libtool to build shared libraries.
2101 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2102 g_assert() instead of printing out expected errors.
2104 2008-08-28 Tor Lillqvist <tml@novell.com>
2106 * girepository/gtypelib.h: Change type of bitfield fields from
2107 guint to the most suitable smaller type. This makes the struct
2108 sizes match the ones on Linux that the sanity check expects when
2109 using gcc -mms-bitfields on Windows.
2111 2008-08-28 Johan Dahlin <johan@gnome.org>
2116 * giscanner/Makefile.am:
2117 * tests/Makefile.am:
2118 * tests/scanner/Makefile.am:
2119 Make distcheck pass.
2121 2008-08-27 Johan Dahlin <johan@gnome.org>
2123 * giscanner/Makefile.am:
2124 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2126 2008-08-27 Tor Lillqvist <tml@novell.com>
2128 Make g-ir-scanner work on Windows. Still problems with the typelib
2129 code. Changes okayed by jdahlin.
2131 * configure.ac: Check for Windows, set Automake conditional
2132 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2133 avoid shell quoting issues
2135 * girepository/Makefile.am: Use -no-undefined so that libtool
2136 agrees to build a shared library on Windows.
2138 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2139 Windows. Empty implementation on Windows so far.
2141 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2142 informative error message for the assertion failures. Tell also
2143 what the expected size of the struct is. Check all sizes first and
2144 fail afterwards if at least one size was different from expected.
2146 * tools/Makefile.am: Reorder libraries into proper logical
2149 * tools/generate.c: Don't include <dlfcn.h>, not used.
2151 * giscanner/Makefile.am: On Windows, link with the Python library,
2152 and install the module DLL as _giscanner.pyd. Remove the
2153 unnecessary import library and libtool library that libtool has
2156 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2157 and just skip it. Recognize also two "l" suffixes for long long
2158 constants. Recognize also __inline__.
2160 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2161 GetFullPathName(). As such, GetFullPathName() does more than the
2162 UNIX realpath(). It also changes relative paths into absolute
2163 paths. But for our purposes that shouldn't matter.
2165 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2166 Windows the file descriptor passed to us is from Python. Python
2167 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2168 uses msvcrt.dll. On Windows, file descriptors are specific to
2169 which C library is used. So we must find out what underlying OS
2170 handle corresponds to the file descriptor Python passes us, and
2171 then make that into a file descriptor valid for the C library this
2174 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2175 __attribute__ as the lexer now handles it. The definition as empty
2176 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2177 __attribute__. Close the temp file before unlinking it.
2179 * giscanner/cgobject.py: Use correct library name for the gobject
2182 * gir/Makefile.am: Must pass the full basename of the DLLs on
2183 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2184 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2185 reality they won't change, until there is a GLib 3, and then also
2186 the Unix code here needs changing.
2188 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2191 2008-08-26 Colin Walters <walters@verbum.org>
2193 * girepository/girepository.c: Search
2194 $DATADIR/girepository instead of
2195 $DATADIR/gitypelibs; this naming makes
2196 it clearer that e.g. jgir can install
2198 * gir/Makefile.am: Install there.
2200 2008-08-26 Colin Walters <walters@verbum.org>
2202 * girepository/gtypelib.c (_g_typelib_init): Also
2203 use G_MODULE_SUFFIX instead of hardcoding .so.
2205 2008-08-26 Colin Walters <walters@verbum.org>
2207 * girepository/gtypelib.c (_g_typelib_init): Free
2208 string in the right place.
2210 2008-08-26 Colin Walters <walters@verbum.org>
2212 * girepository/gtypelib.c (_g_typelib_init): Handle
2213 both .la and .so names; this works better in the
2214 uninstalled library case.
2216 2008-08-26 Johan Dahlin <johan@gnome.org>
2219 * giscanner/Makefile.am:
2220 * giscanner/cgobject.py:
2221 * giscanner/config.py.in:
2222 * giscanner/sourcescanner.py:
2223 Avoid undeffing __GNUC__, instead define
2224 __attribute__ & friends. Remove glibconfig.h hack.
2225 This makes gobject-introspection work better on
2226 MacOS X, Thanks to Richard Hult for kind help.
2228 2008-08-25 Colin Walters <walters@verbum.org>
2230 * giscanner/glibtransformer.py: Always print
2233 2008-08-25 Colin Walters <walters@verbum.org>
2235 * giscanner/glibtransformer.py: Skip over
2236 interfaces we don't know.
2238 2008-08-25 Colin Walters <walters@verbum.org>
2240 * girepository/girparser.c: Parse new implements
2241 syntax, drop gapi one.
2242 * tests/object.gir: Update.
2243 * tools/generate.c: Generate new syntax.
2245 2008-08-25 Colin Walters <walters@verbum.org>
2247 * giscanner/ast.py: Add interfaces property
2249 * giscanner/girwriter.py: Write out implemented
2251 * giscanner/glibtransformer.py: Introspect
2252 implemented interfaces.
2253 * tests/scanner/*: Make FooObject implement
2256 2008-08-25 Colin Walters <walters@verbum.org>
2258 * giscanner/glibtransformer.py: More correctly pair
2259 methods; if we have a symbol that starts with
2260 e.g. hippo_canvas look for a matching HippoCanvas
2261 class before accepting e.g. HippoCanvasImage.
2263 2008-08-24 Colin Walters <walters@verbum.org>
2265 * tools/g-ir-scanner: Filter out unknown options from
2268 2008-08-24 Colin Walters <walters@verbum.org>
2270 * giscanner/glibtransformer.py: Fail with better
2271 error if we can't find library.
2273 2008-08-24 Colin Walters <walters@verbum.org>
2275 * tools/g-ir-scanner: Use subprocess instead of
2276 commands, works on Windows and avoids the evil
2279 2008-08-24 Colin Walters <walters@verbum.org>
2281 * giscanner/glibtransformer.py: Skip over
2282 g_object_get_type from GLib trunk.
2284 2008-08-24 Colin Walters <walters@verbum.org>
2286 * girepository/girepository.c (g_irepository_require):
2287 Don't open shared library here; we already do it
2290 2008-08-24 Colin Walters <walters@verbum.org>
2292 * girepository/gtypelib.c: Add context stack so
2293 when we get an error we can print out nicely
2296 2008-08-24 Johan Dahlin <johan@gnome.org>
2298 * girepository/girparser.c (start_glib_boxed), (start_function),
2299 (start_field), (start_alias):
2300 Refactor a couple of parsing functions to be simpler to follow.
2303 2008-08-24 Johan Dahlin <johan@gnome.org>
2305 * girepository/girparser.c (start_function):
2306 Remove left-over code, checking type of function.
2308 2008-08-23 Colin Walters <walters@verbum.org>
2310 * giscanner/config.py: Define DATADIR.
2311 * giscanner/transformer.py: Look in DATADIR.
2313 2008-08-23 Colin Walters <walters@verbum.org>
2315 * girepository/gtypelib.c: Check constructor
2317 * girepository/girnode.c: Small tweaks.
2318 * girepository/ginfo.c: Calculate signature offsets
2320 * girepository/girparser.c: Remove duplicate
2322 * giscanner/glibtransformer.py: Avoid marking
2323 functions which return a basic type as
2326 2008-08-23 Colin Walters <walters@verbum.org>
2328 * girepository/girparser.c: Ignore <include>.
2329 * giscanner/girparser.py: Parse them.
2330 * giscanner/girwriter.py: Generate them.
2331 * giscanner/transformer.py: Process <include>
2332 recursively. Don't require full path for
2333 includes, look in {$XDG_DATA_DIRS}/gir.
2334 * tools/g-ir-scanner: Pass through includes.
2335 * Makefile.am: Remove extra --include
2337 * *-expected.gir: Add expected includes.
2339 2008-08-23 Johan Dahlin <johan@gnome.org>
2341 * tests/scanner/Makefile.am:
2342 * tests/scanner/annotation-expected.gir:
2343 * tests/scanner/drawable-expected.gir:
2344 Avoid duplication in the Makefile, regenerate with new
2345 namespaces (same as the filename)
2347 2008-08-22 Colin Walters <walters@verbum.org>
2349 * girepository/girnode.c: Don't hardcode integers,
2352 2008-08-22 Johan Dahlin <johan@gnome.org>
2354 * giscanner/sourcescanner.py:
2355 Check for ../gobject-introspection-1.0.pc.in to determine
2356 if we run installed or uninstalled.
2358 2008-08-22 Johan Dahlin <johan@gnome.org>
2361 * giscanner/sourcescanner.py:
2362 Send in undefs/defines via writing it directly to stdin
2363 of cpp instead of via arguments.
2365 2008-08-22 Colin Walters <walters@verbum.org>
2367 * tools/generate.c, tools/compiler.c: Default
2369 * all Makefile.am: Update.
2371 2008-08-22 Colin Walters <walters@verbum.org>
2373 * girepository/girparser.c: Pass through
2374 recursive types. Avoid overwriting errors.
2375 * giscanner/xmlwriter.py: Always write the
2377 * tests/*.gir: Adjust.
2378 * tests/scanner/Makefile.am: Build typelibs,
2379 and generate XML from those. Once we
2380 have a good diff mechanism...
2381 * tests/scanner/*-expected.gir: Add XML
2383 * tools/g-ir-scanner: Accept --typelib-xml
2385 * tools/generate.c: Better defaults for transfer.
2387 2008-08-22 Johan Dahlin <johan@gnome.org>
2391 * giscanner/Makefile.am:
2392 * giscanner/config.py.in:
2393 * giscanner/sourcescanner.py:
2394 Use the generated glibconfig.h for all scanner invokations.
2395 Rename it to glibconfig-scanner.h and install it.
2396 Add a config.py which so far contains the include dir.
2398 2008-08-22 Johan Dahlin <johan@gnome.org>
2401 Replace glibconfig.h with our own, do some replacement
2402 for CPP/C features we do not support
2404 2008-08-22 Colin Walters <walters@verbum.org>
2406 * tools/generate.c (write_callable_info): Fix unref
2409 2008-08-22 Colin Walters <walters@verbum.org>
2411 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2412 * tests/Makefile.am: Support $(DEBUG)
2413 * tools/generate.c: Do immediate close tags if no
2416 2008-08-21 Colin Walters <walters@verbum.org>
2418 * tests/scanner/drawable-expected.gir,
2419 * tests/scanner/drawable.c,
2420 * tests/scanner/drawable.h:
2423 2008-08-21 Colin Walters <walters@verbum.org>
2425 * giscanner/glibtransformer.py: Compute prefix
2426 by searching through the symbol for bits
2427 rather than going directly from ctype; this fixes
2430 2008-08-21 Colin Walters <walters@verbum.org>
2432 * giscanner/glibtransformer.py: Also try squashing
2433 underscores from namespace, fixes webkit_web_view_new.
2435 2008-08-21 Colin Walters <walters@verbum.org>
2437 * giscanner/glibtransformer.py: More ctor work,
2438 avoid having gtk_window_group_new end up under
2441 2008-08-21 Colin Walters <walters@verbum.org>
2443 * giscanner/glibtransformer.py: Much simpler approach
2444 of mapping uscored names to classes.
2445 * giscanner/utils.py: Remove unnecessary function.
2447 2008-08-21 Johan Dahlin <johan@gnome.org>
2449 * girepository/girepository.c (g_irepository_require):
2450 Plug memory leak and avoid using freed memory.
2451 Resolve the whole module path, here as well.
2453 2008-08-21 Colin Walters <walters@verbum.org>
2455 * giscanner/glibtransformer.py: Look up all permutations
2456 of class names when scanning methods/ctors based on
2457 the prefix instead of using the return value. This
2458 associates gtk_window_new with the right class.
2460 2008-08-21 Colin Walters <walters@verbum.org>
2462 * girepository/girmodule.c (g_ir_module_build_typelib):
2463 Revert change to increment header_size; we do that in
2466 2008-08-21 Colin Walters <walters@verbum.org>
2468 * girepository/girnode.c (write_string): Tweak to
2469 use UINT instead of INT. Not likely to matter.
2470 * girepository/girmodule.c (g_ir_module_build_typelib):
2471 Add to header_offset as well for header strings
2472 to match what write_string does.
2473 * girepository/gtypelib.c: Replace is_name with
2474 validate_name, which more strongly validates and
2475 handles errors in a better way. Update all callers.
2476 * giscanner/glibtransformer.py: Handle constructors
2479 2008-08-21 Johan Dahlin <johan@gnome.org>
2481 * gir/Makefile.am (typelibs_DATA): Build and
2482 install the Gio.typelib too
2484 * girepository/gtypelib.c (_g_typelib_init):
2485 Use g_module_build_path to resolve the shlib name
2487 2008-08-21 Colin Walters <walters@verbum.org>
2489 * gir/Makefile.am: CLEANFILES typelibs too.
2491 2008-08-21 Johan Dahlin <johan@gnome.org>
2493 * giscanner/glibtransformer.py:
2494 Do not send .la files through find_library.
2496 2008-08-21 Colin Walters <walters@verbum.org>
2498 * girepository/girparser.c (g_irepository_require):
2499 Fix one small leak in error case.
2501 2008-08-21 Johan Dahlin <johan@gnome.org>
2504 Parse glibconfig.h as well and install the compiled
2507 2008-08-21 Johan Dahlin <johan@gnome.org>
2510 * giscanner/glibtransformer.py:
2511 * tools/g-ir-scanner:
2512 Do not hard-core library names in the Makefile, reuse
2513 ctypes find_library instead.
2515 2008-08-21 Johan Dahlin <johan@gnome.org>
2517 * girepository/girparser.c (resolve_aliases):
2518 Remove compilation warnings
2520 2008-08-21 Johan Dahlin <johan@gnome.org>
2522 * girepository/girepository.c (g_irepository_require):
2523 Rewrap and fix double free bug by leaking a bit.
2525 2008-08-20 Colin Walters <walters@verbum.org>
2527 * girepository/girepository.c: Add new function
2528 g_irepository_get_typelib_path which tells
2529 us from where we loaded a namespace.
2531 2008-08-20 Colin Walters <walters@verbum.org>
2533 * tests/scanner/*-expected.gir: Adjust for
2534 added shared-library.
2535 * giscanner/giwriter.py: Make pylint happy.
2537 2008-08-20 Colin Walters <walters@verbum.org>
2539 * girepository/girmodule.c (g_ir_module_build_typelib):
2540 Calculate size correctly, avoid use-after-free.
2542 2008-08-20 Colin Walters <walters@verbum.org>
2544 * girepository/girepository.c: Remove
2545 g_irepository_register_file in favor of
2546 g_irepository_require. There are two
2547 possible deployment scenarios for typelibs:
2548 First, separate in $DATADIR/gitypelibs/. Second,
2549 they may be embedded in shlibs. However since
2550 the first is now the normal case, the API is
2551 optimized around it.
2553 Refactor internals to look up typelibs for
2554 namespaces just-in-time, but we expect
2555 consumers to call g_irepository_require.
2557 Also, add some docs. No one has died from that
2559 * gir/Makefile.am: Need --library for glib.
2560 * giscanner/girwriter.py: Write out shared-library.
2561 * tools/g-ir-writer: Take the first --library
2562 argument as the target of shared-library. In
2563 the future we should make this nicer with pkg-config
2566 2008-08-20 Colin Walters <walters@verbum.org>
2568 * girepository/girparser.py: And parse them.
2570 2008-08-20 Johan Dahlin <johan@gnome.org>
2572 * giscanner/glibast.py: Add gshort/gushort types
2574 2008-08-20 Colin Walters <walters@verbum.org>
2576 * gir/Makefile.am: Rename .gir files using GI namespace.
2577 * girepository/girepository.c: Use XDG_DATA_DIRS for
2578 looking up typelibs. Also typelibs are now suffixed
2580 * tests/invoke/Makefile.am: Only use metadata.
2581 * girepository/Makefile.am: Remove unnecessary include.
2582 * tests/scanner/Makefile.am: Update using GI namespaces
2583 for scanner includes.
2585 2008-08-20 Colin Walters <walters@verbum.org>
2587 * girepository/transformer.py: Suppress aliases whose
2589 * girepository/ast.py: Define some more aliases.
2591 2008-08-20 Colin Walters <walters@verbum.org>
2593 * girepository/girparser.c: Avoid alias infloops.
2595 2008-08-20 Colin Walters <walters@verbum.org>
2597 * tests/scanner/foo-expected.gir: Fix expected list type.
2599 2008-08-20 Johan Dahlin <johan@gnome.org>
2601 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2602 Add a workaround for #548689.
2603 We can now compile gtk!
2605 2008-08-20 Colin Walters <walters@verbum.org>
2607 * giscanner/glibtransformer.py: Try to look up
2608 aliases using the c:type too.
2610 2008-08-20 Colin Walters <walters@verbum.org>
2612 * girepository/girparser.c: Parse union fields.
2614 2008-08-20 Johan Dahlin <johan@gnome.org>
2616 * giscanner/ast.py: Make time_t an alias for long
2618 * gir/gio-2.0-good.gir:
2619 * gir/glib-2.0-good.gir:
2620 * gir/gobject-2.0-good.gir:
2622 * giscanner/glibtransformer.py:
2623 Do not delete Class structures, we need them in gdk/gtk.
2624 * tests/scanner/drawable-expected.gir:
2625 * tests/scanner/foo-expected.gir:
2626 * tests/scanner/utility-expected.gir:
2629 2008-08-20 Johan Dahlin <johan@gnome.org>
2631 * tests/scanner/Makefile.am:
2632 * tests/scanner/annotation-expected.gir:
2633 * tests/scanner/annotation.c (annotation_object_class_init),
2634 (annotation_object_init), (annotation_object_method),
2635 (annotation_object_in), (annotation_object_out),
2636 (annotation_object_inout), (annotation_object_inout2),
2637 (annotation_object_inout3), (annotation_object_calleeowns),
2638 (annotation_object_calleesowns), (annotation_object_get_strings),
2639 (annotation_object_with_voidp), (annotation_object_get_objects),
2640 (annotation_object_create_object), (annotation_object_allow_none):
2641 * tests/scanner/annotation.h:
2642 * tests/scanner/foo-expected.gir:
2643 * tests/scanner/foo.c:
2644 * tests/scanner/foo.h:
2645 Split out annotation tests out of foo
2647 2008-08-20 Johan Dahlin <johan@gnome.org>
2649 * tests/scanner/Foo-expected.gir:
2650 * tests/scanner/Makefile.am:
2651 * tests/scanner/foo-expected.gir:
2652 * tests/scanner/foo-object.h:
2653 * tests/scanner/foo.c:
2654 Foo->foo, foo-object.h -> foo.h
2656 2008-08-20 Johan Dahlin <johan@gnome.org>
2658 * tests/scanner/Foo-expected.gir:
2659 * tests/scanner/Makefile.am:
2660 * tests/scanner/drawable-expected.gir:
2661 * tests/scanner/drawable.c (test_drawable_class_init),
2662 (test_drawable_init):
2663 * tests/scanner/drawable.h:
2664 * tests/scanner/foo-object.h:
2665 * tests/scanner/foo.c (foo_boxed_method):
2666 Move the drawable parts out of Foo to its own test.
2668 2008-08-20 Johan Dahlin <johan@gnome.org>
2670 * tests/scanner/Foo-expected.gir:
2671 * tests/scanner/foo-object.h:
2672 * tests/scanner/foo.c (foo_drawable_class_init),
2673 (foo_drawable_init):
2674 Add a based on GdkDrawable which generates
2677 2008-08-19 Colin Walters <walters@verbum.org>
2679 * giscanner/transformer.py: Don't try
2680 to strip prefix before namespace.
2682 2008-08-19 Johan Dahlin <johan@gnome.org>
2684 * giscanner/transformer.py:
2685 * tests/scanner/Foo-expected.gir:
2686 * tests/scanner/foo-object.h:
2687 Add support for typedef void foo type of
2690 2008-08-19 Johan Dahlin <johan@gnome.org>
2693 * giscanner/girwriter.py:
2694 * giscanner/glibtransformer.py:
2695 * giscanner/transformer.py:
2696 * tests/scanner/Foo-expected.gir:
2697 Add basic support for union, base the code much
2698 on Struct. Add a testcase.
2700 2008-08-19 Johan Dahlin <johan@gnome.org>
2702 * tests/scanner/Foo-expected.gir:
2703 * tests/scanner/foo-object.h:
2704 Add a union testcase which the compiler currently
2707 2008-08-19 Johan Dahlin <johan@gnome.org>
2709 * gobject-introspection-1.0.pc.in:
2710 Add a g_ir_compiler variable
2712 2008-08-19 Colin Walters <walters@verbum.org>
2714 * giscanner/ast.py: Rework types to be more closely
2716 * giscanner/girparser.py: Parse more bits.
2717 * giscanner/girwriter.py: Write sequences in a new
2718 way that specifies container type.
2719 * giscanner/glibast.py: Adjust for ast.py changes,
2720 add 'ctype' property to GLibObject and GLibInterface
2721 so we can look things up by it later.
2722 * gicanner/transformer.py: Names is new class holding
2723 the various namespaces we manage. Do not confuse
2724 with Namespace which is toplevel XML node effectively.
2725 Rework all type resolution to go through
2726 _resolve_type_name_1.
2727 * giscanner/glibtransformer.py: Raise UnknownTypeError
2728 instead of ValueError for cleanliness. Add Unresolved
2729 class to mark types whose parent we haven't seen yet.
2730 Use new Names object from transformer.py.
2731 Correctly look up parent=.
2732 Fix type validation to handle sequences.
2733 * tests/scanner/Foo-expected.gir: Update for sequence
2734 work, int instead of int32.
2735 * tools/g-ir-scanner: Add --noclosure option
2736 * gir/Makefile.am: Use --noclosure by default for
2739 2008-08-18 Johan Dahlin <johan@gnome.org>
2741 * gir/gio-2.0-good.gir:
2742 * gir/glib-2.0-good.gir:
2743 * gir/gobject-2.0-good.gir:
2746 2008-08-18 Johan Dahlin <johan@gnome.org>
2749 * giscanner/girparser.py:
2750 * giscanner/girwriter.py:
2751 * giscanner/glibast.py:
2752 * giscanner/glibtransformer.py:
2753 * giscanner/transformer.py:
2754 * tests/scanner/Foo-expected.gir:
2755 * tests/scanner/foo-object.h:
2756 * tests/scanner/utility-expected.gir:
2757 * tests/scanner/utility.h:
2758 Redo type resolving and validation.
2759 Add a couple of new tests.
2760 Patch mostly written by Colin.
2762 2008-08-18 Johan Dahlin <johan@gnome.org>
2765 * giscanner/girparser.py:
2767 * giscanner/transformer.py:
2768 Improve enum parsing for enums without a GType.
2769 Make flags/enum references to other girs work
2770 * giscanner/utils.py:
2772 * tests/scanner/Makefile.am:
2773 * tests/scanner/foo-object.h:
2774 * tests/scanner/utility-expected.gir:
2775 * tests/scanner/utility.h:
2776 Add a new test for external enum references
2778 2008-08-18 Johan Dahlin <johan@gnome.org>
2780 * docs/global-module-registry.txt: Update
2782 * tests/array.gir: Update with new type proposal
2784 * girepository/girepository.c (g_type_tag_to_string):
2785 * girepository/girepository.h:
2786 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2788 * girepository/girnode.h:
2789 Make enum serializing functions public. Clean up some whitespace.
2791 2008-08-17 Johan Dahlin <johan@gnome.org>
2793 * docs/global-module-registry.txt:
2794 Add a document for an on disk module registry format
2796 2008-08-17 Johan Dahlin <johan@gnome.org>
2799 * gir/gio-2.0-good.gir:
2802 2008-08-17 Johan Dahlin <johan@gnome.org>
2805 * gir/glib-2.0-good.gir:
2806 * gir/gobject-2.0-good.gir:
2807 * giscanner/cgobject.py:
2808 * giscanner/glibtransformer.py:
2809 Regenerate GObject & GType.
2810 Avoid warnings when generating gobject-2.0.gir.
2811 Introspect a little more, and skip *_get_type functions.
2813 2008-08-17 Colin Walters <walters@verbum.org>
2815 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2816 Rename to -good, always generate during build.
2817 * gir/Makefile.am: Ensure .gir files dep on
2818 all scanner sources.
2819 * Makefile.am: Switch build order to ensure
2820 the scanner is ready before we do gir/.
2821 * tools/g-ir-scanner: Look for .git too.
2823 2008-08-17 Johan Dahlin <johan@gnome.org>
2825 * girepository/gtypelib.c (validate_enum_blob):
2826 * giscanner/glibtransformer.py:
2827 * giscanner/transformer.py:
2828 Remove resolve_possible_typedefs, it was unused.
2829 Allow multiple enum values of the sample value in an enum,
2830 since it's actually pretty common.
2831 Register enums so they can be resolved too.
2833 2008-08-16 Johan Dahlin <johan@gnome.org>
2835 * giscanner/girparser.py:
2836 Parse enumeration/bitfield.
2838 2008-08-16 Johan Dahlin <johan@gnome.org>
2840 * giscanner/girparser.py:
2843 2008-08-16 Johan Dahlin <johan@gnome.org>
2845 * giscanner/glibtransformer.py:
2846 Resolve type names for alias targets
2847 * giscanner/transformer.py:
2848 Skip FILE* parameters fow now
2850 2008-08-16 Johan Dahlin <johan@gnome.org>
2853 * gir/gobject-2.0.gir:
2856 * tests/scanner/Makefile.am:
2859 2008-08-15 Colin Walters <walters@verbum.org>
2861 * giscanner/glibtransformer.py: Explicitly construct
2862 new list, since we're deleting as we iterate.
2863 Don't delete all structures which end in Class; just
2864 ones which have a paired GObject.
2865 Fix printing of type warning.
2866 * giscanner/transformer.py: Make strip_namespace_object
2867 be the identity function if it doesn't match the
2870 2008-08-15 Colin Walters <walters@verbum.org>
2872 * giscanner/cgobject.py: Define yet more argument
2873 prototypes; fix prototype for g_type_fundamental.
2875 2008-08-14 Johan Dahlin <johan@gnome.org>
2877 * tests/Makefile.am:
2878 * tests/constant.gir:
2879 * tests/gobject.gir:
2881 * tools/generate.c (write_struct_info):
2882 Fix generator for constant/gobject/struct
2884 2008-08-14 Johan Dahlin <johan@gnome.org>
2886 * tests/Makefile.am:
2888 * tools/generate.c (write_enum_info):
2889 Fix generation of enum/bitfields
2891 2008-08-14 Johan Dahlin <johan@gnome.org>
2893 * girepository/girparser.c (start_field), (start_constant),
2894 (start_type), (end_element_handler):
2895 Clear up constant parsing
2900 * tools/generate.c (write_callable_info), (write_function_info),
2901 (write_callback_info), (write_constant_info), (write_signal_info),
2902 (write_vfunc_info), (write_property_info), (write_object_info),
2903 (write_interface_info):
2904 Constants/Signals are handled now.
2906 2008-08-14 Johan Dahlin <johan@gnome.org>
2908 * girepository/girparser.c (start_type):
2909 Don't require c:type.
2910 * tests/Makefile.am:
2913 Update, remove parts we don't support yet
2914 * tests/roundtrips.sh:
2916 * tools/generate.c (write_type_info), (write_field_info),
2917 (write_callable_info), (write_struct_info):
2918 Make it emit proper gir.
2920 2008-08-14 Johan Dahlin <johan@gnome.org>
2922 * giscanner/transformer.py:
2923 New internal function for adding a new node.
2925 2008-08-14 Johan Dahlin <johan@gnome.org>
2928 Define an internal _H_ variable so we skip parsing both
2929 i18n headers, only one is needed.
2931 Add the glib-2.0.gir too.
2932 * giscanner/glibast.py:
2933 Add gconstpointer as an alias for ANY
2934 * giscanner/transformer.py:
2935 Do not lower case enumeration names per se.
2936 Skip functions which has parameters called 'va_list'
2938 2008-08-14 Colin Walters <walters@verbum.org>
2940 * giscanner/transformer.py: Comment data structures.
2941 Also squash pointers in resolve_type_name to correspond
2942 with what we do for params.
2943 * giscanner/glibtransformer.py: Print warnings in more
2944 situations. Rework checks for method/constructor to
2945 look up in our GType database instead of just checking
2946 for *. Avoid generating <record> for GObject which
2947 duplicate the <class>.
2948 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2951 2008-08-14 Johan Dahlin <johan@gnome.org>
2953 * giscanner/girwriter.py:
2954 * giscanner/glibast.py:
2955 * giscanner/glibtransformer.py:
2956 * giscanner/transformer.py:
2958 * tests/Makefile.am:
2959 Add pyflakes.py and run it in make check.
2960 Update the source code to fix the errors reported by
2963 2008-08-14 Johan Dahlin <johan@gnome.org>
2966 * giscanner/girparser.py:
2967 * giscanner/glibast.py:
2968 * giscanner/glibtransformer.py:
2969 Refactor the parser a bit.
2970 Add parent type to interfaces and update callsites.
2972 2008-08-14 Johan Dahlin <johan@gnome.org>
2974 * giscanner/glibtransformer.py:
2975 * giscanner/utils.py:
2976 Refactor a bit, avoid isinstance and add a method
2977 for each type we parse.
2979 2008-08-14 Johan Dahlin <johan@gnome.org>
2982 * giscanner/girparser.py:
2983 * giscanner/glibtransformer.py:
2984 * tests/Makefile.am:
2985 Run pep8.py in make check, fix old errors.
2987 2008-08-13 Colin Walters <walters@verbum.org>
2989 * giscanner/girparser.py: Parse records.
2991 2008-08-13 Colin Walters <walters@verbum.org>
2993 * gir/Makefile.am: Install again.
2994 * gir/gobject-2.0.gir: Add some more bits.
2996 2008-08-13 Colin Walters <walters@verbum.org>
2998 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2999 * giscanner/girparser.py: Handle aliases.
3000 * giscanner/transformer.py: Record aliases. Make resolver
3001 functions public; we now call into these explicitly from
3002 glibtransformer. Handle resolving aliases.
3003 * giscanner/glibtransformer.py: Separate our internal namespace
3004 from included ones. Call up into transformer's resolver functions.
3006 2008-08-13 Johan Dahlin <johan@gnome.org>
3008 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3009 * girepository/girparser.c (start_class):
3010 * giscanner/glibtransformer.py:
3011 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3013 2008-08-13 Johan Dahlin <johan@gnome.org>
3015 * giscanner/cgobject.py:
3016 Register GInitiallyUnowned
3017 * giscanner/girwriter.py:
3018 * giscanner/glibtransformer.py:
3019 Special case GObject/GInitially owned as they are a bit special to use.
3021 2008-08-13 Colin Walters <walters@verbum.org>
3023 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3024 Object is in GObject namespace.
3026 2008-08-13 Colin Walters <walters@verbum.org>
3028 * giscanner/girparser.py: Fix processing of functions
3031 2008-08-13 Colin Walters <walters@verbum.org>
3033 * giscanner/girparser.py: Parse more than just <class.
3034 * giscanner/glibtransformer.py: Put aliases in a separate
3035 data structure since their name is not canonicall.
3036 * giscanner/transformer.py: Handle resolving type names
3039 2008-08-13 Johan Dahlin <johan@gnome.org>
3041 * tools/g-ir-scanner:
3042 Allow multiple libraries
3043 * giscanner/glibtransformer.py:
3044 Rename load_library to add_library, traverse over all libraries
3045 when trying to resolve a function
3047 2008-08-12 Colin Walters <walters@verbum.org>
3049 * giscanner/transformer.py: Record typedefs as <alias> elements.
3050 Also attempt to look up types in external namespaces.
3051 * giscanner/girwriter.py: Write them.
3052 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3053 checks. Resolve interface methods and properties.
3054 * tests/scanner/foo-object.h: Add a method with typedef.
3055 * tests/scanner/Foo-expected.gir: Update.
3056 * girepository/girnode.c: Debug tweaks.
3057 * girepository/girparser.c: Make a first pass through the XML where we
3058 record all the aliases. This lets us resolve them as we go through the
3060 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3061 from gir-repository.
3063 2008-08-12 Colin Walters <walters@verbum.org>
3065 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3066 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3068 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3070 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3072 2008-08-12 Colin Walters <walters@verbum.org>
3074 * giscanner/glibtransformer.py: Also transform object properties.
3076 2008-08-12 Colin Walters <walters@verbum.org>
3078 * giscanner/glibtransformer.py: Also transform callbacks
3079 and structure field types.
3080 * tests/scanner/Fooe-expected.gir: Update to expect correct
3081 names for callbacks and structs.
3083 2008-08-12 Colin Walters <walters@verbum.org>
3085 * girepository/girparser.c: Handle 'any'.
3086 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3087 Add test for void *.
3089 2008-08-12 Colin Walters <walters@verbum.org>
3091 * giscanner/glibtransformer.py: We need to do type
3092 resolution in a second pass after we've seen all the
3093 enums, records, etc.
3095 2008-08-12 Colin Walters <walters@verbum.org>
3097 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3098 Add enum return value.
3099 * giscanner/glibtransformer.py: Transform function return types
3102 2008-08-12 Colin Walters <walters@verbum.org>
3104 * tests/scanner/Makefile.am: Dep .gir files on scanner
3105 sources too. Also remove @ so we see scanner invocations.
3107 2008-08-12 Colin Walters <walters@verbum.org>
3109 * girepository/girparser.c, girepository/gtypelib.c,
3110 girepository/gtypelib.h, girepository/girnode.c:
3111 Remove usage of (GAPI-oriented) TypeTag in favor of
3112 GITypeTag from girepository.h.
3114 2008-08-10 Colin Walters <walters@verbum.org>
3116 * tests/roundtrips.sh: Use the correct tests.
3118 2008-08-10 Colin Walters <walters@verbum.org>
3120 * giscanner/cgobject.py: Declare/wrap a few more functions.
3121 Fix parameter types for g_object_new and g_type_fundamental.
3123 2008-08-10 Colin Walters <walters@verbum.org>
3125 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3126 us to declare types for both return value and parameters. The
3127 ctypes default of 'int' is bad because it hides 32/64 bit
3128 problems. Convert all existing functions to use it.
3130 2008-08-09 Johan Dahlin <johan@gnome.org>
3132 * giscanner/__init__.py:
3134 * giscanner/cgobject.py:
3135 * giscanner/gidlparser.py:
3136 * giscanner/gidlwriter.py:
3137 * giscanner/girparser.py:
3138 * giscanner/girwriter.py:
3139 * giscanner/glibast.py:
3140 * giscanner/glibtransformer.py:
3141 * giscanner/odict.py:
3142 * giscanner/sourcescanner.py:
3143 * giscanner/transformer.py:
3144 * giscanner/utils.py:
3145 * giscanner/xmlwriter.py:
3146 * tools/g-ir-scanner:
3150 2008-08-09 Johan Dahlin <johan@gnome.org>
3153 * relaxng/c-types.xml:
3154 * relaxng/g-types.xml:
3155 * relaxng/relaxng.rng:
3157 Remove outdated relaxng schemas.
3159 2008-08-09 Johan Dahlin <johan@gnome.org>
3162 Rename metadata to typelib in variable names,
3165 2008-08-09 Johan Dahlin <johan@gnome.org>
3169 Remove old C scanner, which got rewritten in python.
3171 2008-08-09 Johan Dahlin <johan@gnome.org>
3173 * girepository/Makefile.am:
3174 * tools/Makefile.am:
3175 * tools/girmodule.c:
3176 * tools/girmodule.h:
3179 * tools/girparser.c:
3180 * tools/girparser.h:
3181 * tools/girwriter.c:
3182 * tools/girwriter.h:
3183 Move shared *.[ch] files to girepository from tools
3185 2008-08-09 Johan Dahlin <johan@gnome.org>
3187 * tests/Makefile.am:
3190 * tests/constant.test:
3192 * tests/errors.test:
3193 * tests/function.test:
3194 * tests/gobject.test:
3195 * tests/interface.test:
3196 * tests/object.test:
3197 * tests/struct.test:
3202 Rename *.test to *.gir
3204 2008-08-09 Johan Dahlin <johan@gnome.org>
3207 * tests/Makefile.am:
3208 * tests/parser/Foo-expected.gir:
3209 * tests/parser/Makefile.am:
3210 * tests/parser/foo-object.h:
3211 * tests/parser/foo.c:
3212 * tests/parser/utility-expected.gir:
3213 * tests/parser/utility.c:
3214 * tests/parser/utility.h:
3215 * tests/scanner/Makefile.am:
3216 Rename tests/parser to test/scanner
3218 2008-08-08 Colin Walters <walters@verbum.org>
3220 * tests/roundtrips.sh: Use local .gir files again.
3222 2008-08-08 Colin Walters <walters@verbum.org>
3224 * tests/invoke/Makefile.am: .gir file depends on libtool
3227 2008-08-08 Colin Walters <walters@verbum.org>
3229 * tools/girnode.c: Pass through parent node so we can
3230 print the node whose child is NULL, if that occurs.
3232 2008-08-08 Johan Dahlin <johan@gnome.org>
3234 * tests/Makefile.am:
3235 Disable roundtrip tests which are not yet working
3236 * tests/invoke/testfns.gir:
3239 2008-08-08 Johan Dahlin <johan@gnome.org>
3241 * giscanner/girwriter.py:
3243 * giscanner/glibast.py:
3244 * giscanner/glibtransformer.py:
3245 Swap order of members, to keep it consistent with
3248 2008-08-08 Johan Dahlin <johan@gnome.org>
3250 * girepository/gtypelib.c (validate_header):
3251 * girepository/gtypelib.h:
3253 * giscanner/girwriter.py:
3254 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3255 (gi_source_symbol_unref):
3258 * tests/constant.test:
3260 * tests/errors.test:
3261 * tests/function.test:
3262 * tests/gobject.test:
3263 * tests/interface.test:
3264 * tests/invoke/Makefile.am:
3265 * tests/invoke/testfns.xml:
3266 * tests/object.test:
3267 * tests/parser/Makefile.am:
3268 * tests/roundtrips.sh:
3269 * tests/struct.test:
3274 * tools/Makefile.am:
3275 * tools/compiler.c (main):
3276 * tools/generate.c (write_callable_info), (write_function_info),
3278 * tools/gidlmodule.c:
3279 * tools/gidlmodule.h:
3282 * tools/gidlparser.c:
3283 * tools/gidlparser.h:
3284 * tools/gidlwriter.c:
3285 * tools/gidlwriter.h:
3286 * tools/scanner.c (create_node_from_gtype),
3287 (create_node_from_ctype), (g_igenerator_process_properties),
3288 (g_igenerator_process_signals), (g_igenerator_create_object),
3289 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3290 (g_igenerator_create_enum), (g_igenerator_create_flags),
3291 (g_igenerator_process_function_symbol),
3292 (g_igenerator_process_unregistered_struct_typedef),
3293 (g_igenerator_process_struct_typedef),
3294 (g_igenerator_process_union_typedef),
3295 (g_igenerator_process_enum_typedef),
3296 (g_igenerator_process_function_typedef),
3297 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3298 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3299 Merge in the gir-compiler branch.
3300 Thanks to Philip and Colin for their help.
3302 2008-07-26 Colin Walters <walters@verbum.org>
3304 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3305 and g-idl-generate to go along with how we're changing this
3306 module to be installed.
3307 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3309 2008-07-24 Colin Walters <walters@verbum.org>
3311 * girepository/girepository.c (g_irepository_register): Add
3312 environment variable G_IREPOSITORY_VERBOSE so we can print
3313 out what we're doing.
3314 * girepository/girepository.c (g_irepository_register_file):
3315 Add GError error message to g_debug call.
3317 2008-07-08 Jürg Billeter <j@bitron.ch>
3319 * giscanner/glibast.py:
3323 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3325 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3328 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3331 * giscanner/girwriter.py:
3332 * giscanner/transformer.py:
3333 * tests/parser/Foo-expected.gir:
3334 * tests/parser/foo-object.h:
3335 * tests/parser/foo.c (foo_object_allow_none):
3336 Add support for gtk-doc annotations for allow-none.
3339 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3342 * giscanner/girwriter.py:
3343 * giscanner/glibast.py:
3344 * giscanner/glibtransformer.py:
3345 * giscanner/transformer.py:
3346 * tests/parser/Foo-expected.gir:
3347 Start using abstract type instead of the raw C types.
3348 Register a bunch of glib types we care about.
3350 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3355 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3357 * girepository/girepository.c:
3358 * girepository/gtypelib.c:
3359 * girepository/ginfo.c:
3360 * girepository/ginvoke.c:
3361 * girepository/girepository.h:
3362 * girepository/gtypelib.h:
3363 * girepository/gmetadata.c:
3364 * girepository/Makefile.am:
3365 * girepository/gmetadata.h:
3367 * tools/gidlmodule.c:
3370 * tools/gidlmodule.h:
3371 * tools/gidlparser.c:
3373 Renamed GMetadata to GTypelib
3375 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3377 * giscanner/xmlwriter.py:
3378 Improve line wrapping when > 79 charaters
3380 2008-06-05 Jürg Billeter <j@bitron.ch>
3383 * giscanner/girwriter.py:
3384 * giscanner/transformer.py:
3385 Use <type> element for field types
3386 * tests/parser/Foo-expected.gir:
3389 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3391 * giscanner/glibtransformer.py:
3392 Fix a bug which prevented GdkEvent from being generated
3394 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3396 * giscanner/Makefile.am:
3398 * giscanner/girwriter.py:
3399 * giscanner/glibast.py:
3400 * giscanner/glibtransformer.py:
3401 * giscanner/transformer.py:
3402 * giscanner/utils.py:
3403 * tests/parser/Foo-expected.gir:
3404 Improve enum member parsing and introspection
3406 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3408 * giscanner/scannerparser.y:
3409 * giscanner/sourcescanner.h:
3410 * giscanner/sourcescanner.py:
3411 Add a new source type enum for member.
3412 Use __repr__ for improved debugging
3413 * giscanner/girparser.py:
3415 * giscanner/transformer.py:
3416 Improve parsing of struct members.
3417 * tests/parser/foo-object.h:
3420 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3422 * giscanner/xmlwriter.py:
3423 Improve error reporting when trying to quote None.
3424 * giscanner/girparser.py:
3425 Do not print warnings when including more complete .gir files
3426 * giscanner/girwriter.py:
3427 Do not require a name for parameters, add a todo for singletons
3428 * giscanner/glibtransformer.py:
3429 Refactor the way structs are done, add a couple of hacks to allow
3431 * giscanner/transformer.py:
3432 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3433 * gobject-introspection-1.0.pc.in:
3434 Export girdir, so we can access gobject-2.0.gir from outside
3436 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3438 * tools/g-ir-scanner:
3439 * tests/parser/Makefile.am:
3440 Update sys.path before running the parser so we don't have
3441 to setup PYTHONPATH ourselves.
3445 * girepository/Makefile.am:
3446 * giscanner/transformer.py:
3447 * gobject-introspection-1.0.pc.in:
3448 * gobject-introspection.pc.in:
3449 * tools/Makefile.am:
3451 Rename pkg-config name to gobject-introspection-1.0,
3452 Do not installed anything which is not using the gir format.
3453 Disable compililation the old C scanner, but still keep the source
3454 until all the remaning functionallity has been ported.
3456 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3458 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3459 a crash when symbol->indent is NULL.
3461 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3462 a function to convert a CTYPE symbol to a string
3464 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3467 * giscanner/girwriter.py:
3468 * giscanner/giscannermodule.c
3469 (pygi_source_scanner_append_filename),
3470 (pygi_source_scanner_parse_file):
3471 * giscanner/glibtransformer.py:
3472 * giscanner/sourcescanner.py:
3473 Revert back to using temporary files to send in headers.
3474 Allow Functions to be passed in as callbacks, add a couple
3475 of try/excepts missing features.
3476 We can now scan pango
3478 2008-05-08 Johan Dahlin <johan@gnome.org>
3480 * giscanner/glibtransformer.py:
3481 * giscanner/transformer.py:
3482 Move namespace stripping glibtransformer->transformer
3484 2008-05-08 Johan Dahlin <johan@gnome.org>
3487 * giscanner/girwriter.py:
3488 * giscanner/glibtransformer.py:
3489 * giscanner/transformer.py:
3490 * tools/g-ir-scanner:
3491 Introduce a namespace ast node
3493 2008-05-05 Johan Dahlin <johan@gnome.org>
3495 * giscanner/__init__.py:
3496 * giscanner/sourcescanner.py:
3497 * giscanner/transformer.py:
3498 Move sourcescanner symbols to the sourcescanner module, instead
3499 of in the global __init__ namespace.
3501 2008-05-03 Johan Dahlin <johan@gnome.org>
3503 * giscanner/glibtransformer.py:
3504 * tools/g-ir-scanner:
3505 Handle missing parameters better, allow - and + in .la dlname
3508 2008-05-03 Johan Dahlin <johan@gnome.org>
3510 * giscanner/__init__.py:
3512 * giscanner/girwriter.py:
3513 * giscanner/glibtransformer.py:
3514 * giscanner/transformer.py:
3515 Parse struct fields properly, improve debugging.
3517 2008-04-29 Johan Dahlin <johan@gnome.org>
3520 * giscanner/girwriter.py:
3521 * giscanner/transformer.py:
3522 * tests/parser/Foo-expected.gir:
3524 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3526 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3529 * docs/g-ir-scanner.1:
3530 * metadata-annotations-proposal.txt:
3531 * metadata-format.txt:
3532 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3534 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3536 * giscanner/girwriter.py:
3537 * giscanner/glibtransformer.py:
3538 * giscanner/transformer.py:
3539 * giscanner/xmlwriter.py:
3540 * tests/parser/Foo-expected.gir:
3541 * tests/parser/foo-object.h:
3542 Write record/structs to gir file too. Add a couple of tests,
3543 fix an off by one error in xmlwriter.py.
3545 2008-04-28 Johan Dahlin <johan@gnome.org>
3547 * giscanner/xmlwriter.py: Calculate the line length properly,
3548 include the provided extra indentation in the calculation, really.
3550 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3553 * giscanner/glibast.py:
3554 * giscanner/glibtransformer.py:
3555 * giscanner/transformer.py:
3556 * tools/g-ir-scanner:
3557 Add a --strip-prefix and sort out confusion between names and symbols
3558 for functions and struct + derivaties.
3559 Refactor bootstrap of g-ir-scanner, so we can set options on
3560 Transformer() before parsing everything.
3562 2008-04-28 Johan Dahlin <johan@gnome.org>
3564 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3565 when scanning girepository.h
3567 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3568 a __GI_SCANNER__ when we run.
3570 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3573 * giscanner/girwriter.py:
3574 * giscanner/glibast.py:
3575 * giscanner/glibtransformer.py:
3576 * tests/parser/Foo-expected.gir:
3577 * tests/parser/utility-expected.gir:
3578 Rename most c:identifier to c:type. Add new ones to
3579 class/interface/enum/boxed.
3581 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3584 * giscanner/girwriter.py:
3585 * giscanner/glibtransformer.py:
3586 * tests/parser/Foo-expected.gidl:
3587 * tests/parser/Makefile.am:
3588 Move c:identifier from return-value to subchild type,
3589 as per Jürgs suggestion
3591 2008-04-28 Johan Dahlin <johan@gnome.org>
3593 * giscanner/girwriter.py:
3594 * tests/parser/Foo-expected.gir:
3595 Write property.type as a child node.
3597 2008-04-27 Johan Dahlin <johan@gnome.org>
3602 * gidl/gobject-2.0.gidl:
3604 * gir/gobject-2.0.gir:
3605 * tests/parser/Makefile.am:
3606 Replace the GObject gidl with a GObject gir.
3608 2008-04-27 Johan Dahlin <johan@gnome.org>
3610 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3613 * giscanner/xmlwriter.py:
3614 * tests/parser/Foo-expected.gir:
3615 Include indentation in line length calculation
3617 2008-04-27 Johan Dahlin <johan@gnome.org>
3619 * giscanner/girparser.py:
3620 Prettify NS parsing using elementtree.
3622 2008-04-27 Johan Dahlin <johan@gnome.org>
3625 * giscanner/Makefile.am:
3626 * giscanner/girparser.py:
3627 * giscanner/glibtransformer.py:
3628 * tests/parser/Foo-expected.gidl:
3629 * tests/parser/Foo-expected.gir:
3630 * tests/parser/Makefile.am:
3631 * tests/parser/utility-expected.gidl:
3632 * tests/parser/utility-expected.gir:
3633 * tools/g-ir-scanner:
3634 Switch over to GIR as the default format. Add a simple GIDL
3636 Update tests and fix simplify makefiles by depending
3637 on GNU make extensions.
3639 2008-04-27 Johan Dahlin <johan@gnome.org>
3641 * giscanner/xmlwriter.py:
3642 Wrap attributes for lines which are wider than 79 characters
3644 * giscanner/scannerlexer.l:
3645 Allow parenthesis in annotations
3648 * giscanner/gidlwriter.py:
3649 * giscanner/girwriter.py:
3650 * giscanner/glibtransformer.py:
3651 * giscanner/transformer.py:
3652 Add initial sequence support, including annotation.
3653 Refactor type handling a bit.
3655 2008-04-27 Johan Dahlin <johan@gnome.org>
3657 * tests/parser/Foo-expected.gidl:
3658 * tests/parser/foo-object.h:
3659 * tests/parser/foo.c (foo_object_class_init),
3660 (foo_object_get_strings), (foo_object_get_objects):
3661 Add two new functions to check sequence return values.
3662 Also fixes a compilation warning.
3664 2008-04-27 Johan Dahlin <johan@gnome.org>
3666 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3667 a compilation warning.
3669 * tools/Makefile.am (g_ir_scanner_SOURCES):
3670 g-ir-scanner has no sources.
3672 2008-04-25 Johan Dahlin <johan@gnome.org>
3674 * giscanner/Makefile.am:
3676 * giscanner/gidlparser.py:
3677 * giscanner/gidlwriter.py:
3678 * giscanner/girwriter.py:
3679 * giscanner/glibast.py:
3680 * giscanner/glibtransformer.py:
3681 * giscanner/transformer.py:
3682 Split out nodes to ast.py and glibast.py
3684 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3686 * giscanner/Makefile.am:
3687 * giscanner/gidlparser.py:
3688 * giscanner/gidlwriter.py:
3689 * giscanner/girwriter.py:
3690 * giscanner/glibtransformer.py:
3691 * giscanner/gobjecttreebuilder.py:
3692 * giscanner/transformer.py:
3693 * giscanner/treebuilder.py:
3694 * tools/g-ir-scanner:
3695 Rename treebuilder to transformer and
3696 gobjectreebuilder to glibtransformer.
3698 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3700 * giscanner/Makefile.am:
3701 * giscanner/__init__.py:
3702 * giscanner/cgobject.py:
3703 * giscanner/gidlparser.py:
3704 * giscanner/gidlwriter.py:
3705 * giscanner/girwriter.py:
3706 * giscanner/gobjecttreebuilder.py:
3707 * giscanner/odict.py:
3708 * giscanner/sourcescanner.py:
3709 * giscanner/treebuilder.py:
3710 * giscanner/xmlwriter.py:
3711 * tools/Makefile.am:
3712 * tools/g-ir-scanner:
3713 Add LGPLv2 license header and install all python files
3715 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3718 * giscanner/gidlwriter.py:
3719 * giscanner/giscannermodule.c (pygi_source_directive_new),
3720 (directive_get_options), (pygi_source_symbol_new),
3721 (symbol_get_base_type), (pygi_source_type_new),
3722 (type_get_base_type), (type_get_child_list),
3723 (pygi_source_scanner_get_symbols),
3724 (pygi_source_scanner_get_directives):
3725 * giscanner/gobjecttreebuilder.py:
3726 * giscanner/sourcescanner.py:
3727 * giscanner/treebuilder.py:
3728 * tests/parser/foo-object.h:
3729 Add support for virtual methods.
3730 Pair struct FooClass with struct Foo.
3731 Clean up the SourceScanner bindings a bit.
3732 Add a testcase for virtual methods.
3734 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3736 * giscanner/cgobject.py:
3737 * giscanner/gidlwriter.py:
3738 * giscanner/gobjecttreebuilder.py:
3739 Add support for signals
3741 * tests/parser/foo.c (foo_object_class_init):
3742 * Foo-expected.gidl:
3743 Add a signal and update the expected output.
3745 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3747 * giscanner/gidlwriter.py:
3748 * giscanner/girwriter.py:
3749 * giscanner/giscannermodule.c (directive_get_name),
3750 (directive_get_value), (directive_get_options),
3751 (symbol_get_directives), (symbol_set_directives),
3752 (pygi_source_scanner_parse_file),
3753 (pygi_source_scanner_lex_filename),
3754 (pygi_source_scanner_get_directives), (init_giscanner):
3755 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3756 * giscanner/sourcescanner.h:
3757 * giscanner/sourcescanner.py:
3758 * giscanner/treebuilder.py:
3759 * tools/g-ir-scanner:
3760 Add support for source/header annotations.
3762 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3764 * giscanner/gidlwriter.py:
3765 * giscanner/girwriter.py:
3766 * giscanner/gobjecttreebuilder.py:
3767 * giscanner/treebuilder.py:
3768 Add support for Callbacks
3770 2008-04-22 Havoc Pennington <hp@pobox.com>
3772 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3773 not in metadata->module, look for it in the global module, in case
3774 some other object or the app itself provides the symbol.
3776 2008-04-22 Havoc Pennington <hp@pobox.com>
3778 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3779 dlopening a library that is already in the main app, by checking
3780 whether one of the lib's symbols is already loaded.
3782 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3784 * tests/parser/Foo-expected.gidl:
3785 * tests/parser/foo-object.h:
3788 2008-04-22 Havoc Pennington <hp@pobox.com>
3790 * girepository/ginfo.c (g_interface_info_find_method):
3791 Use interface_blob_size not object_blob_size to compute offset.
3793 2008-04-22 Havoc Pennington <hp@pobox.com>
3795 * girepository/gmetadata.c (_g_metadata_init): remove
3796 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3797 (Glade and Clutter for example) rely on being loaded globally.
3799 2008-04-22 Havoc Pennington <hp@pobox.com>
3801 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3802 function to get the GType given a RegisteredTypeInfo
3804 2008-04-22 Johan Dahlin <johan@gnome.org>
3806 * COPYING: Add a LGPL license, to prevent automake to
3807 put in a copy of GPL here. Pointed out by Havoc.
3809 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3810 (g_type_info_is_pointer), (g_type_info_get_tag),
3811 (g_type_info_get_param_type), (g_type_info_get_interface),
3812 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3813 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3814 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3815 (g_object_info_get_interface), (g_object_info_get_field),
3816 (g_interface_info_get_prerequisite),
3817 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3818 * girepository/ginvoke.c (get_ffi_type):
3819 * girepository/girepository.h:
3820 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3821 (g_metadata_check_sanity), (validate_header),
3822 (validate_array_type_blob), (validate_iface_type_blob),
3823 (validate_param_type_blob), (validate_error_type_blob),
3824 (validate_type_blob), (validate_constant_blob),
3825 (validate_struct_blob), (validate_enum_blob):
3826 * girepository/gmetadata.h:
3827 * tests/Makefile.am:
3828 * tests/invoke/Makefile.am:
3829 * tests/invoke/invoke.c (main):
3830 * tests/roundtrips.sh:
3831 * tools/Makefile.am:
3832 * tools/compiler.c (format_output), (write_out_metadata), (main):
3833 * tools/generate.c (write_type_name), (write_type_info),
3834 (write_constant_value), (write_enum_info), (load_metadata), (main):
3835 * tools/gidlcompilercontext.c:
3836 * tools/gidlcompilercontext.h:
3837 * tools/gidlcompilerentrynode.c:
3838 * tools/gidlcompilerentrynode.h:
3839 * tools/gidlcompilertypenode.c:
3840 * tools/gidlcompilertypenode.h:
3841 * tools/gidlmodule.c (g_idl_module_build_metadata):
3842 * tools/gidlmodule.h:
3843 * tools/gidlnode.c (init_stats), (dump_stats),
3844 (g_idl_node_get_size), (g_idl_node_get_full_size),
3845 (g_idl_node_cmp), (g_idl_node_can_have_member),
3846 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3847 (parse_int_value), (parse_uint_value), (parse_float_value),
3848 (parse_boolean_value), (find_entry_node), (find_entry),
3849 (serialize_type), (g_idl_node_build_metadata), (write_string):
3851 * tools/gidlparser.c (parse_type_internal):
3852 * tools/quote-file.sh:
3853 Revert revisions 157,149-148,136-129 and 120.
3854 Move back to using g-idl-generate to generate the metadata and
3855 avoids dependency on a c compiler.
3857 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3859 * giscanner/girwriter.py:
3860 * tools/g-ir-scanner:
3861 Add an initial GIR writer and a --format option to g-ir-scanner
3863 2008-04-21 Johan Dahlin <johan@gnome.org>
3865 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3866 gobject-2.0 and raise ImportError if not found.
3868 * giscanner/gidlparser.py:
3869 * giscanner/gidlwriter.py:
3870 * giscanner/gobjecttreebuilder.py:
3871 * tools/g-ir-scanner:
3872 Add a --include argument to include types from other idls.
3873 Add a minimalistic GIDL parser (just objects for now)
3874 Implement resolving of external type references and use it to
3875 resolve parent types, argument types and return types.
3877 2008-04-21 Johan Dahlin <johan@gnome.org>
3879 * giscanner/gidlwriter.py:
3880 * giscanner/gobjecttreebuilder.py:
3881 * giscanner/treebuilder.py:
3882 Add support for properties.
3883 Refactor Class/Interface support a bit, to share more code and
3884 always initialize their method attribute to an empty list.
3886 2008-04-21 Johan Dahlin <johan@gnome.org>
3888 * giscanner/cgobject.py:
3889 Add a workaround for a glib bug interface introspection bug
3890 (object_interface_list_properties, object_class_list_properties):
3891 Cast the return value to GParamSpec.
3893 * tests/parser/Foo-expected.gidl: Update
3894 * tests/parser/foo.c: Add a string property
3896 * giscanner/gobjecttreebuilder.py:
3897 After stripping namespaces, remove the original
3898 item to avoid duplication (GtkButton struct and Button object)
3900 2008-04-21 Johan Dahlin <johan@gnome.org>
3902 * giscanner/gobjecttreebuilder.py:
3903 * giscanner/treebuilder.py:
3904 Strip namespaces before objects, so we'll export
3905 GtkButton as Button in the gtk namespace
3907 2008-04-21 Johan Dahlin <johan@gnome.org>
3909 * giscanner/gidlwriter.py:
3910 * giscanner/gobjecttreebuilder.py:
3911 * giscanner/treebuilder.py:
3912 Add constructors for object/boxed types.
3914 2008-04-21 Johan Dahlin <johan@gnome.org>
3916 * giscanner/gidlwriter.py:
3917 * giscanner/gobjecttreebuilder.py:
3918 Add support for boxed types
3920 2008-04-21 Johan Dahlin <johan@gnome.org>
3922 * giscanner/giscannermodule.c: Mark structures as const,
3923 wrap SourceType.const_string.
3925 * tests/parser/foo-object.h: Add a couple of constants.
3927 * giscanner/gidlwriter.py:
3928 * giscanner/gobjecttreebuilder.py:
3929 * giscanner/treebuilder.py:
3930 Add basic support for interfaces
3932 * tools/g-ir-scanner:
3933 Add -o/--output for writing to a file
3935 2008-04-21 Havoc Pennington <hp@redhat.com>
3937 * TODO: add some C API wishlist items I could think of quickly
3939 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3941 * giscanner/gidlwriter.py:
3942 * giscanner/xmlwriter.py:
3943 Add a simple api for writing tags which can be used
3944 with the new 'with statement' in python 2.5
3946 2008-04-21 Johan Dahlin <johan@gnome.org>
3948 * giscanner/gobjecttreebuilder.py:
3949 Strip namespace and object prefix from method names.
3951 2008-04-21 Johan Dahlin <johan@gnome.org>
3953 * tools/g-ir-scanner (main): Add --pkg option to pass in
3954 pkg-config modules to get cflags from.
3956 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3957 Avoid duplication, reuse function writer for methods.
3959 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3961 * giscanner/gidlwriter.py:
3962 * giscanner/gobjecttreebuilder.py:
3963 * giscanner/treebuilder.py:
3964 * tools/g-ir-scanner:
3965 Resolve libtool .la files.
3966 Strip name spaces for methods.
3967 Add function symbols
3969 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3971 * giscanner/cgobject.py:
3972 * giscanner/gidlwriter.py:
3973 * giscanner/gobjecttreebuilder.py:
3974 * giscanner/treebuilder.py:
3975 Add support for classes and methods
3977 2008-04-20 Johan Dahlin <johan@gnome.org>
3979 * giscanner/gidlwriter.py:
3980 * giscanner/gobjecttreebuilder.py:
3981 * giscanner/odict.py:
3982 Avoid conflicts, keep the output ordered similar to
3983 the order of the input.
3984 Add a simple ordered dictionary implemenation
3986 2008-04-19 Johan Dahlin <johan@gnome.org>
3988 * giscanner/cgobject.py:
3989 * giscanner/gidlwriter.py:
3990 * giscanner/gobjecttreebuilder.py:
3991 * tools/g-ir-scanner:
3992 Start introspecting get-type functions.
3993 Implement support for GLib/GFlags GTypes.
3994 Add a ctype based GObject binding.
3996 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3998 * giscanner/gidlwriter.py:
3999 * giscanner/xmlwriter.py:
4000 * tools/g-ir-scanner:
4001 Add a simplistic gidl writer, which can't do too much.
4003 2008-04-18 Johan Dahlin <johan@gnome.org>
4005 * giscanner/sourcescanner.py:
4006 * giscanner/treebuilder.py:
4007 * tools/g-ir-scanner:
4008 split tree building and source scanning interface to separate files.
4010 2008-04-18 Johan Dahlin <johan@gnome.org>
4012 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4014 - Add support for struct/parameter/return, start parsing of ctypes
4016 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4019 2008-03-31 Johan Dahlin <johan@gnome.org>
4021 * tools/g-ir-scanner:
4022 Start to build abstract syntax node of scanned sources.
4023 Add support for cpp options.
4025 2008-03-27 Johan Dahlin <johan@gnome.org>
4027 * giscanner/giscannermodule.c:
4028 * giscanner/scannerlexer.l:
4029 * giscanner/sourcescanner.c:
4030 * tools/g-ir-scanner:
4032 Add simple pre-processor using subprocess and a PIPE.
4033 Change the parse_file apis to accept a file descriptor.
4035 2008-03-25 Johan Dahlin <johan@gnome.org>
4037 * giscanner/__init__.py:
4038 * tools/g-ir-scanner:
4039 Fix a typo and add an example python test program.
4041 2008-03-25 Johan Dahlin <johan@gnome.org>
4043 * giscanner/__init__.py:
4044 * giscanner/giscannermodule.c:
4045 * giscanner/sourcescanner.c:
4046 * giscanner/sourcescanner.h:
4047 Add constants and wrap a few more SymbolType fields
4049 2008-03-25 Johan Dahlin <johan@gnome.org>
4053 * giscanner/__init__.py:
4054 * giscanner/giscannermodule.c:
4055 * giscanner/Makefile.am:
4057 Add initial python bindings for the scanner and
4058 depend on python 2.5.
4060 2008-03-25 Johan Dahlin <johan@gnome.org>
4064 * giscanner/Makefile.am:
4065 * giscanner/sourcescanner.c:
4066 * giscanner/sourcescanner.h:
4067 * tools/Makefile.am:
4068 * tools/grealpath.h:
4069 * tools/sourcescanner.c:
4070 * tools/sourcescanner.h:
4072 Move the scanner to a separate library.
4074 2008-03-23 Johan Dahlin <johan@gnome.org>
4076 * tools/Makefile.am:
4079 * tools/scannerlexer.l:
4080 * tools/scannerparser.y:
4081 * tools/sourcescanner.c:
4082 * tools/sourcescanner.h:
4083 Split out the source scanner from the generator.
4084 Rename the symbols used in the scanner to use the gi_ prefix.
4085 This should make it possible to use the raw C parser from
4088 2008-03-23 Johan Dahlin <johan@gnome.org>
4090 * tests/parser/Makefile.am (utility.gidl):
4091 * tests/parser/utility-expected.gidl:
4092 Pass in the gobject.gidl since we're defining a GObject.
4094 2008-03-12 Johan Dahlin <johan@gnome.org>
4096 * relaxng/relaxng.rng:
4097 Add a releaxng in relaxng we can use to validate the relaxngs
4100 2008-03-12 Jürg Billeter <j@bitron.ch>
4102 * tools/scanner.c: (g_igenerator_new):
4103 * tools/scannerparser.y:
4104 Fix compiler warnings.
4106 2008-03-12 Jürg Billeter <j@bitron.ch>
4110 * tools/scannerparser.y:
4111 Start fixing memory management in g-idl-scanner.
4113 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4115 * tools/gidlcompilercontext.c: (write_compiled):
4116 Fix critical warning when no shlib passed to g-idl-compiler.
4118 2008-03-12 Johan Dahlin <johan@gnome.org>
4120 * tests/parser/utility-expected.gidl:
4121 * tests/parser/utility.h:
4122 Add a get_type-function, so the scanner actually
4123 parses it as an object.
4125 2008-03-12 Johan Dahlin <johan@gnome.org>
4127 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4130 * tests/parser/Foo-expected.gidl:
4131 * tests/parser/Makefile.am:
4132 * tests/parser/foo-object.h:
4133 * tests/parser/foo.c:
4134 * tests/parser/utility-expected.gidl:
4135 * tests/parser/utility.c:
4136 * tests/parser/utility.h:
4138 Add a new gidl test. 'utility.gidl', which is used to be able
4139 to test external type references. Add a reference to UtilityObject*
4142 2008-03-11 Johan Dahlin <johan@gnome.org>
4146 Remove most global variables
4148 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4150 * tools/scannerlexer.l:
4152 * tests/parser/Foo-expected.gidl:
4153 * tests/parser/foo.c:
4154 * tests/parser/Makefile.am:
4155 * tests/parser/foo-object.h:
4157 Added a few extra tests. Which resulted in finding a few
4158 bugs. Which resulted in me fixing those bugs
4160 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4162 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4163 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4164 Add some comments for strings into generated output for
4167 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4169 * tools/gidlcompilercontext.c: (write_compiled):
4170 Write out the shlibs variable before writing out the strings
4171 length. Fixes compiler warning when using '-l' flag with
4174 2008-03-11 Johan Dahlin <johan@gnome.org>
4176 * tests/parser/Foo-expected.gidl:
4177 * tests/parser/foo-object.h:
4180 * tools/scannerlexer.l:
4181 Add support for parsing return arguments. Add support for
4182 caller-owns return types.
4183 Patch by Philip Van Hoof.
4185 * tools/scannerparser.y:
4186 Remove parsing of the @deprecated syntax used in headers.
4187 We will support gtk-doc deprecation in the future instead.
4189 2008-03-11 Johan Dahlin <johan@gnome.org>
4191 * tools/compiler.c (main): Coding style fixes
4193 2008-03-10 Johan Dahlin <johan@gnome.org>
4196 Add GCOV_LIBS to GILIBS
4198 2008-03-10 Johan Dahlin <johan@gnome.org>
4200 * tests/parser/Foo-expected.gidl:
4201 * tests/parser/foo.c:
4202 Rename null-ok to direction=out
4204 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4206 reviewed and extensively tested by Johan
4208 * tests/parser/Foo-expected.gidl:
4209 * tests/parser/foo-object.h:
4210 * tests/parser/foo.c:
4213 * tools/gidlwriter.c:
4216 * tools/scannerlexer.l:
4217 * tools/scannerparser.y:
4219 Add support for scanning for gtk-doc comments inside
4220 C source files. Add tests
4222 2008-03-10 Johan Dahlin <johan@gnome.org>
4224 * tests/parser/Makefile.am:
4225 * tests/parser/foo.c:
4228 * tools/scannerparser.y:
4229 Add an api to lex filenames.
4230 Lex all source .c files passed in on the command line.
4231 Scan sources in a test and a couple of private structures
4232 which should not be included in the generated gidl
4234 2008-03-10 Johan Dahlin <johan@gnome.org>
4236 * tests/invoke/Makefile.am: Make the generated metadata
4237 depend on the g-idl-compiler
4239 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4241 * tools/gidlmodule.c
4242 * tools/gidlmodule.h
4245 Remove the old g-idl-compiler code.
4248 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4250 * tools/quote-file.sh
4253 Move to using the 'C' struct compiler code.
4255 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4257 * girepository/ginfo.c
4259 Change the way that external references with no namespace
4260 are dealt with. External references with no namespace
4261 are placed into the XML as-if they are a local reference.
4262 This is temporary, but helps with roundtrip tests.
4264 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4266 * girepository/ginfo.c
4267 Add the ability to get the value of a constant of
4268 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4269 is provided as a string.
4271 This would deal properly with:
4272 typedef char* random;
4273 const random = "A string";
4275 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4277 * girepository/ginfo.c
4278 * girepository/girepository.h
4280 Add a function to check if an enum is registered or not.
4281 Previously anything testing this relied on the g-type
4282 string offset having a value of 0.
4284 * girepository/gmetadata.c
4285 * girepository/gmetadata.h
4287 Remove unneccesary or erroneous checks. There were two
4288 metadata validation checks which made sure that the blob
4289 sizes were the same as some magic numbers compiled into the code.
4290 This is wrong as it breaks any forwards compatibility that may
4293 Checks were also present that made sure that unregistered type
4294 blobs had a value of 0 in the g-type offset field. This is
4295 unneccessary. If a type blob is unregistered then any value
4296 in its g-type field is simply invalid.
4298 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4300 * girepository/ginfo.c
4301 * girepository/gmetadata.c
4302 * girepository/gmetadata.h
4304 Change the metadata format to have a standard header
4305 for all the type blobs. Merge the SimpleTypeBlob
4306 and InterfaceTypeBlob into a union. A union of these
4307 two blobs existed previously but was not explicit
4308 in the metadata format.
4310 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4312 * tools/gidlcompilercontext.c
4313 * tools/gidlcompilercontext.h
4314 * tools/gidlcompilerentrynode.c
4315 * tools/gidlcompilerentrynode.h
4316 * tools/gidlcompilertypenode.c
4317 * tools/gidlcompilertypenode.h
4319 Add code to compile a tree of GIdlNodes to
4320 a 'C' struct representing the metadata.
4321 This is to aid cross-compiling. Previously
4322 the g-idl-compiler created a binary blob with
4323 data written in the byte order and alignment
4324 of the tool rather than the intended target.
4326 Cleaned up and improved by Johan and Robert :-)
4328 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4330 * girepository/ginvoke.c
4331 * girepository/girepository.h
4332 * girepository/gmetadata.c
4333 * girepository/gmetadata.h
4335 * tools/gidlparser.c
4336 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4337 to avoid confusion with the interface blob.
4340 * tools/gidlparser.c
4341 Remove magic numbers and replace with type-tag
4342 enumeration symbols.
4344 * girepository/gmetadata.c
4345 Add validate declaration.
4347 2008-03-10 Jürg Billeter <j@bitron.ch>
4349 * tools/gidlparser.c: (parse_type_internal):
4350 * tools/scannerlexer.l:
4351 * tools/scannerparser.y:
4352 Support C99 _Bool type in scanner.
4354 2008-03-10 Jürg Billeter <j@bitron.ch>
4356 * tests/parser/Foo-expected.gidl:
4357 * tests/parser/foo-object.h:
4358 * tests/parser/foo.c: (foo_enum_method):
4359 * tools/scanner.c: (g_igenerator_process_function_symbol):
4360 Don't skip functions that are defined in the namespace of a type
4361 that doesn't support methods, as for example enums.
4363 2008-03-10 Johan Dahlin <johan@gnome.org>
4365 * gidl.dtd: Remove, we're using relaxng for now
4367 * tests/parser/Foo-expected.gidl:
4368 * tests/parser/foo-object.h:
4369 * tests/parser/foo.c:
4370 Rename the enum/flags get_type functions to include the whole type.
4372 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4374 * tools/gidlwriter.c (enum_generate): added "type-name",
4375 "get-type" and "deprecated" missing arguments.
4376 * tests/parser/Foo-expected.gidl:
4377 * tests/parser/foo-object.h: test enum type, and no type.
4379 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4382 Consistent checks, add missing 'test'
4384 2008-03-05 Havoc Pennington <hp@redhat.com>
4386 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4387 does on Fedora 8. Make libffi a hard requirement, since it was in
4388 practice anyway (was not really conditional in the code or
4389 makefile, only in configure).
4391 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4393 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4394 reviewed by: Johan Dahlin <johan@gnome.org>
4396 * tests/Makefile.am:
4397 * tests/roundtrips.sh:
4398 Modify the roundtrips test so that they do not use the
4399 --raw option of the gidl compiler but instead compile a
4400 shared library to use with g_module.
4402 * tests/invoke/Makefile.am:
4403 * tests/invoke/invoke.c:
4404 Modify the invoke tests to build a shared library rather
4405 than use the --raw option.
4407 * tests/invoke/invoke-namespace-find.sh: Removed:
4408 Noone knows why this was here, so removed.
4410 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4412 * tools/scanner.c: (g_igenerator_process_function_symbol):
4413 Move g_idl_node_can_have_member test later, as it broke spotting
4414 get_type's for nodes that can't have members.
4416 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4419 * tools/gidlnode.c: (g_idl_node_can_have_member):
4420 Add g_idl_node_can_have_member.
4422 * tools/scanner.c: (g_igenerator_process_function_symbol):
4423 Use g_idl_node_can_have_member to test if we should add a function
4424 as a member of the type node.
4426 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4428 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4430 * tests/parser/Makefile.am:
4431 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4433 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4435 * tools/scanner.c: (main):
4436 Ignore -pthread when passed to g-idl-scanner.
4438 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4440 * tools/grealpath.h: Added:
4441 * tools/scanner.c: (main):
4442 * tools/scannerlexer.l:
4443 * tools/Makefile.am:
4444 Always use absolute paths with symbolic links resolved when
4445 comparing filenames.
4447 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4449 * gobject-introspection.pc.in:
4450 Provide variables for g-idl-parser, scanner and compiler in the
4453 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4456 * girepository/Makefile.am:
4457 * tools/Makefile.am:
4458 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4460 2008-02-10 Johan Dahlin <johan@gnome.org>
4462 * tests/parser/Foo-expected.gidl:
4463 * tests/parser/foo-object.h:
4464 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4465 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4468 2008-02-10 Johan Dahlin <johan@gnome.org>
4470 * tests/parser/Foo-expected.gidl:
4471 * tests/parser/foo-object.h:
4472 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4473 Add enum and flags test.
4475 2008-02-10 Johan Dahlin <johan@gnome.org>
4479 * girepository/Makefile.am:
4480 Make 'make distcheck' work again.
4482 2008-02-10 Johan Dahlin <johan@gnome.org>
4484 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4487 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4488 check, eg exclude it from BUILT_SOURCES.
4490 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4495 * girepository/Makefile.am:
4496 * m4/Makefile.am: Added:
4497 * m4/as-compiler-flag.m4: Added:
4498 * m4/gcov.m4: Added:
4499 * tools/Makefile.am:
4500 Add ability to generate a coverage report.
4501 Adds configure option --enable-gcov and make rule 'check-coverage'.
4503 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4507 * gidl/Makefile.am: Added:
4508 * girepository/Makefile.am: Added:
4509 * src/Makefile.am: Renamed to tools/Makefile.am:
4510 * src/compiler.c: Renamed to tools/compiler.c:
4511 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4512 * src/generate.c: Renamed to tools/generate.c:
4513 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4514 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4515 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4516 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4517 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4518 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4519 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4520 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4521 * src/ginfo.c: Renamed to girepository/ginfo.c:
4522 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4523 * src/girepository.c: Renamed to girepository/girepository.c:
4524 * src/girepository.h: Renamed to girepository/girepository.h:
4525 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4526 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4527 * src/scanner.c: Renamed to tools/scanner.c:
4528 * src/scanner.h: Renamed to tools/scanner.h:
4529 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4530 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4531 * tests/invoke/Makefile.am:
4532 Split src/ into girepository/ and tools/
4536 * girepository/Makefile.am:
4537 * tests/Makefile.am:
4538 * tests/invoke/Makefile.am:
4539 * tests/parser/Makefile.am:
4540 * tests/roundtrips.sh:
4541 * tools/Makefile.am:
4542 Make distcheck work.
4544 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4546 * tests/invoke/invoke.c: (main):
4547 * tests/invoke/testfns.c: (test6), (test7):
4548 * tests/invoke/testfns.xml:
4549 Add tests for invokation with a GList argument.
4550 Also tests caller-owns return values.
4552 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4555 Add some documentation for GICallableInfo
4557 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4560 Correct syntax errors in the DTD file.
4562 * relaxng/c-types.xml:
4563 * relaxng/g-types.xml:
4565 Add a RelaxNG specification for the GObject Introspection XML data.
4566 The Specification has validated all of the test files.
4568 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4570 * tests/roundtrips.sh:
4571 * tests/struct.test:
4572 Add roundtrip tests for structs.
4574 2008-01-11 Johan Dahlin <johan@gnome.org>
4576 * src/scanner.c (g_igenerator_process_function_symbol):
4577 Refactor out g_idle_node_add_member.
4578 (create_node_from_gtype, create_node_from_ctype):
4579 Use case instead of if...else
4580 (get_type_from_type_id):
4581 Rename to create_node_from_gtype
4582 (get_type_from_ctype):
4583 Rename to create_node_from_ctype
4585 Rename ginode -> node, gitype -> type, gifunc -> func.
4587 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4588 Two new functions, refactor out of scanner.c
4590 * src/scanner.c: (g_igenerator_process_function_symbol):
4591 * src/scannerlexer.l:
4592 Do not save the content of the deprecated variable, only
4595 2008-01-11 Johan Dahlin <johan@gnome.org>
4597 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4599 2008-01-11 Jürg Billeter <j@bitron.ch>
4601 * src/scannerlexer.l:
4602 Fix GTK-Doc parsing.
4604 2008-01-11 Jürg Billeter <j@bitron.ch>
4606 * src/scannerlexer.l:
4607 Fix GTK-Doc parsing.
4609 2008-01-11 Jürg Billeter <j@bitron.ch>
4611 * src/scanner.c: (lookup_symbol):
4612 Return unresolved name if we find unknown symbol.
4614 2008-01-11 Jürg Billeter <j@bitron.ch>
4616 * src/scanner.c: (g_igenerator_generate):
4617 Initialize GObject to fix scanning interface properties.
4619 * tests/parser/Foo-expected.gidl:
4620 * tests/parser/foo-object.h:
4621 * tests/parser/foo.c: (foo_interface_get_type):
4622 Test interfaces with GObject prerequisite.
4624 * tests/parser/Makefile.am:
4625 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4627 2007-12-27 Johan Dahlin <johan@gnome.org>
4629 * src/scannerlexer.l:
4630 Parse gtk-doc comments.
4632 * src/gidlwriter.c: (function_generate):
4633 Reorganize, avoid duplication and add support for
4634 writing deprecated functions.
4636 * src/scannerparser.y:
4638 Add new structure CDirective and functions to create/free them.
4640 * src/scanner.c: (g_igenerator_process_function_symbol),
4641 (g_igenerator_process_unregistered_struct_typedef),
4642 (g_igenerator_process_struct_typedef),
4643 (g_igenerator_process_union_typedef),
4644 (g_igenerator_process_enum_typedef),
4645 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4646 (g_igenerator_start_preprocessor):
4647 Parse @deprecated directive for functions.
4648 Remove some more C99isms.
4649 Send in -C to cpp to avoid stripping comments.
4651 * tests/parser/foo-object.h:
4652 * tests/parser/Foo-expected.gidl:
4653 Add deprecated directive
4655 2007-12-27 Johan Dahlin <johan@gnome.org>
4657 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4658 escape ' and " so it looks more like C.
4661 Unlink temporary file used.
4663 2007-12-27 Johan Dahlin <johan@gnome.org>
4665 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4666 (g_igenerator_start_preprocessor), (main):
4668 * src/scannerparser.y:
4669 Plug a couple of simple memory leaks.
4671 2007-12-27 Johan Dahlin <johan@gnome.org>
4673 * src/scanner.c: (g_igenerator_parse_macros),
4674 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4677 * src/scannerparser.y:
4678 * tests/parser/Makefile.am:
4680 Improve error reporting, return when the preprocessor fails.
4681 Add a verbose parameter, to aid debugging.
4682 Revert to using a temporary file to communicate between the
4683 preprocessor and the parser, because we need to wait for
4684 the exit code from the pre-processor before starting to parse.
4686 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4688 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4689 cparser.y to scannerparser.y
4691 2007-12-11 Johan Dahlin <johan@gnome.org>
4695 * src/scanner.c: (g_igenerator_new):
4697 Get rid of the global the_generator variable.
4699 2007-12-10 Johan Dahlin <johan@gnome.org>
4701 * src/scanner.c (main): Add an output option,
4702 add checks for required parameters
4705 set BUILD_SOURCES and CLEANFILES properly
4707 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4708 (g_writer_write_indent), (g_writer_write_unindent),
4709 (field_generate), (value_generate), (constant_generate),
4710 (property_generate), (function_generate), (vfunc_generate),
4711 (signal_generate), (interface_generate), (struct_generate),
4712 (union_generate), (boxed_generate), (enum_generate),
4713 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4715 * src/scanner.c: (g_igenerator_generate):
4717 * src/scannerwriter.c:
4719 Refactor scannerwriter to only be tied to a GIdlModule and move
4720 it (again!) to gidlwriter.c. Change the writer function to take
4723 2007-12-10 Johan Dahlin <johan@gnome.org>
4726 * src/scanner.c: (g_igenerator_generate):
4728 * src/scannerwriter.c: (g_igenerator_write_inline),
4729 (g_igenerator_write), (g_igenerator_write_indent),
4730 (g_igenerator_write_unindent), (field_generate), (value_generate),
4731 (constant_generate), (property_generate), (function_generate),
4732 (vfunc_generate), (signal_generate), (interface_generate),
4733 (struct_generate), (union_generate), (boxed_generate),
4734 (enum_generate), (node_generate), (module_generate),
4735 (g_scanner_write_file):
4737 Move the scanner gidl writing to a separate source file.
4739 2007-12-10 Johan Dahlin <johan@gnome.org>
4744 Move over all CType construction functions.
4746 * tests/parser/Makefile.am:
4747 Be verbose when printing parsing tests results.
4749 2007-12-10 Johan Dahlin <johan@gnome.org>
4751 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4752 preprocessor handling to here. Start cpp insteado of cc -E,
4753 always include -U__GNUC__, since it's specific to the preprocessor
4756 * tests/parser/Makefile.am (check-local): Silent diff and skip
4757 -U__GNUC__ which is always defined now
4759 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4761 reviewed by: <delete if not using a buddy>
4763 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4764 * tests/parser/Makefile.am:
4766 2007-12-09 Johan Dahlin <johan@gnome.org>
4769 Use GOption for command line options.
4770 (g_igenerator_new, main): Simplify constructor and they way
4771 parameters are passed into it.
4777 * src/gen-introspect.c:
4778 * src/gen-introspect.h:
4780 Rename gen-introspect.[ch] to scanner.[ch]
4782 2007-12-09 Johan Dahlin <johan@gnome.org>
4786 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4787 don't make the repository library and the other utilites link against
4790 * src/gen-introspect.c: (g_igenerator_create_object),
4791 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4792 (g_igenerator_create_enum), (g_igenerator_create_flags),
4793 (g_igenerator_process_module_symbol),
4794 (g_igenerator_process_module), (g_igenerator_generate), (main):
4795 * src/gen-introspect.h:
4796 Refactor g_igenerator_process_types into smaller pieces.
4798 * tests/parser/Makefile.am:
4799 Depend on the gen-introspect binary
4801 2007-12-09 Johan Dahlin <johan@gnome.org>
4803 * src/gen-introspect.c (g_igenerator_process_types):
4804 Break into smaller pieces, one for each generated node type.
4806 2007-12-08 Johan Dahlin <johan@gnome.org>
4808 * src/gen-introspect.c: (g_igenerator_process_types),
4809 (g_igenerator_add_module):
4810 * tests/parser/Foo-expected.gidl:
4811 * tests/parser/foo-object.h:
4812 * tests/parser/foo.c: (foo_subobject_class_init),
4813 (foo_subobject_init):
4815 Add a subobject test and make sure to register defined classes
4816 in the lookup symbol hash table.
4818 2007-12-08 Johan Dahlin <johan@gnome.org>
4822 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4823 (g_igenerator_process_types), (g_igenerator_add_module),
4824 (g_igenerator_add_include_idl), (main):
4825 * src/gen-introspect.h:
4826 * tests/parser/Makefile.am:
4827 * tests/parser/Foo-expected.gidl:
4829 Change the gen-introspect to generate namespaced module names,
4830 such as GLib.Object instead of GObject.
4831 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4832 add a --include-idl parameter to gen-introspect,
4833 and update the parser test.
4835 2007-12-08 Johan Dahlin <johan@gnome.org>
4837 * src/gen-introspect.c:
4838 Move main to the end of the file and attempt to make it valid
4841 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4842 we're not quite ready to generate metadata yet.
4847 Add a simple gen-introspect parser test
4849 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4851 reviewed by: Johan Dahlin <johan@gnome.org>
4854 * gobject-introspection.pc.in:
4856 * src/compiler.c: (format_output), (write_out_metadata), (main):
4857 * src/gen-introspect.c: (main):
4858 * src/gen-introspect.h:
4859 * src/generate.c: (write_callable_info), (write_repository),
4860 (load_metadata), (main):
4861 * src/gidlmodule.c: (g_idl_module_new),
4862 (g_idl_module_build_metadata):
4864 * src/gidlparser.c: (start_element_handler):
4865 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4866 (g_base_info_get_name), (g_base_info_get_namespace),
4867 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4868 (g_base_info_get_metadata), (g_function_info_get_symbol),
4869 (g_function_info_get_flags), (g_function_info_get_property),
4870 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4871 (g_callable_info_may_return_null),
4872 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4873 (g_callable_info_get_arg), (g_arg_info_get_direction),
4874 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4875 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4876 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4877 (g_type_info_get_tag), (g_type_info_get_param_type),
4878 (g_type_info_get_interface), (g_type_info_get_array_length),
4879 (g_type_info_is_zero_terminated),
4880 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4881 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4882 (g_value_info_get_value), (g_field_info_get_flags),
4883 (g_field_info_get_size), (g_field_info_get_offset),
4884 (g_registered_type_info_get_type_name),
4885 (g_registered_type_info_get_type_init),
4886 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4887 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4888 (find_method), (g_struct_info_find_method),
4889 (g_enum_info_get_n_values), (g_enum_info_get_value),
4890 (g_object_info_get_parent), (g_object_info_get_type_name),
4891 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4892 (g_object_info_get_interface), (g_object_info_get_n_fields),
4893 (g_object_info_get_field), (g_object_info_get_n_properties),
4894 (g_object_info_get_property), (g_object_info_get_n_methods),
4895 (g_object_info_get_method), (g_object_info_find_method),
4896 (g_object_info_get_n_signals), (g_object_info_get_signal),
4897 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4898 (g_object_info_get_n_constants), (g_object_info_get_constant),
4899 (g_interface_info_get_n_prerequisites),
4900 (g_interface_info_get_prerequisite),
4901 (g_interface_info_get_n_properties),
4902 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4903 (g_interface_info_get_method), (g_interface_info_find_method),
4904 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4905 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4906 (g_interface_info_get_n_constants),
4907 (g_interface_info_get_constant), (g_property_info_get_flags),
4908 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4909 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4910 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4911 (g_constant_info_get_value), (g_union_info_get_n_fields),
4912 (g_union_info_get_field), (g_union_info_get_n_methods),
4913 (g_union_info_get_method), (g_union_info_is_discriminated),
4914 (g_union_info_get_discriminator_offset),
4915 (g_union_info_get_discriminator):
4916 * src/ginvoke.c: (g_function_info_invoke):
4917 * src/girepository.c: (g_irepository_register),
4918 (g_irepository_unregister), (g_irepository_get_default),
4919 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4920 (g_irepository_get_info), (g_irepository_find_by_name),
4921 (g_irepository_get_shared_library),
4922 (g_irepository_build_search_path), (g_irepository_register_file),
4923 (g_irepository_error_quark):
4924 * src/girepository.h:
4925 * src/gmetadata.c: (g_metadata_get_dir_entry),
4926 (g_metadata_check_sanity), (validate_header),
4927 (validate_array_type_blob), (validate_iface_type_blob),
4928 (validate_param_type_blob), (validate_error_type_blob),
4929 (validate_type_blob), (validate_arg_blob),
4930 (validate_signature_blob), (validate_function_blob),
4931 (validate_callback_blob), (validate_constant_blob),
4932 (validate_value_blob), (validate_field_blob),
4933 (validate_property_blob), (validate_signal_blob),
4934 (validate_vfunc_blob), (validate_struct_blob),
4935 (validate_enum_blob), (validate_object_blob),
4936 (validate_interface_blob), (validate_errordomain_blob),
4937 (validate_union_blob), (validate_blob), (validate_directory),
4938 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4939 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4940 (g_metadata_new_from_mapped_file), (g_metadata_free),
4941 (g_metadata_set_module), (g_metadata_get_namespace):
4943 * tests/Makefile.am:
4944 * tests/invoke/Makefile.am:
4945 * tests/invoke/invoke-namespace-find.sh:
4946 * tests/invoke/invoke.c: (main):
4948 Add a namespace/shared library mapping. fixes #313268.
4950 2007-12-03 Johan Dahlin <johan@gnome.org>
4952 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4955 2007-11-30 Jürg Billeter <j@bitron.ch>
4961 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4962 (g_igenerator_write_inline), (g_igenerator_write),
4963 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4964 (field_generate), (value_generate), (constant_generate),
4965 (property_generate), (function_generate), (vfunc_generate),
4966 (signal_generate), (interface_generate), (struct_generate),
4967 (union_generate), (boxed_generate), (enum_generate),
4968 (node_generate), (module_generate), (get_type_from_type_id),
4969 (str_replace), (g_igenerator_process_properties),
4970 (g_igenerator_process_signals), (g_igenerator_process_types),
4971 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4972 (g_igenerator_process_unregistered_struct_typedef),
4973 (g_igenerator_process_struct_typedef),
4974 (g_igenerator_process_union_typedef),
4975 (g_igenerator_process_enum_typedef),
4976 (g_igenerator_process_function_typedef),
4977 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4978 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4979 (g_igenerator_generate), (main), (csymbol_new),
4980 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4981 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4982 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4983 (eat_hspace), (eat_line), (read_identifier),
4984 (g_igenerator_parse_macros):
4985 * src/gen-introspect.h:
4987 Import gen-introspect to generate introspection information by
4990 2007-11-30 Jürg Billeter <j@bitron.ch>
4992 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4994 2007-11-30 Jürg Billeter <j@bitron.ch>
4996 * src/gidlparser.c: (end_element_handler): Don't leave requires
4999 2007-11-29 Johan Dahlin <johan@gnome.org>
5001 * src/gidlparser.c (parse_type_internal): Add char,
5002 gchar and guchar to the builtin types.
5004 2007-11-26 Johan Dahlin <johan@gnome.org>
5006 * src/ginfo.c: (g_object_info_get_type_name),
5007 (g_object_info_get_type_init):
5008 * src/girepository.c: (g_irepository_is_registered):
5009 * src/girepository.h:
5011 Add g_object_info_get_type_name, g_object_info_get_type_init and
5012 g_irepository_is_registered.
5014 2006-08-14 Jürg Billeter <j@bitron.ch>
5016 * src/gidlparser.c: (end_element_handler): Don't leave
5017 namespace and implements states too early.
5020 2007-11-26 Johan Dahlin <johan@gnome.org>
5022 * src/gmetadata.c (validate_struct_blob):
5023 pass blob_type to validate_function_blob instead of
5024 hard-coding BLOB_TYPE_STRUCT.
5026 Patch by Torsten Schoenfeld, fixes #314190
5028 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5030 * src/compiler.c, src/generate.c, src/gidlnode.c,
5031 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5032 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5033 warnings about return values, signedness mismatches, unused
5034 variables, and unhandles enum values in switch statements.
5036 * tests/invoke/Makefile.am: Don't install the invoke test program.
5037 Add -I ../../src to the cflags used for the test functions files.
5039 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5041 * src/girepository.h: Export g_invoke_error_quark.
5043 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5045 * src/ginvoke.c: Remove the fallback implementation of
5046 g_function_info_invoke since we now formally depend on libffi.
5048 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5050 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5051 Remove these files from cvs, as they are now generated.
5053 * src/gmetadata.c (validate_iface_type_blob): Don't
5054 complain if blob->pointer is not set, since that
5055 happens for enum and flag types. (#308935, Gustavo
5058 * Commit an autoconf-conversion patch by
5059 Gustavo Carneiro (#308708)
5061 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5063 * src/compiler.c (main): Use it here to validate
5064 the generated metadata.
5066 * src/gmetadata.[hc]: Add code to validate a
5069 * metadata-format.txt: Updates
5071 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5073 * tests/*: Add struct offsets to field and vfunc
5076 * src/generate.c (write_vfunc_info): Write offset
5077 information for vfuncs.
5079 * src/gidlnode.c (g_idl_node_build_metadata): Write
5080 the struct offsets into the metadata.
5082 * src/gidlparser.c: Parse the offset attributes of
5083 field and vfunc elements.
5085 * src/gidlnode.h: Add offset members to field and
5088 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5092 * gidl.dtd: Updates.
5094 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5095 file, creates, compiles and runs a C file, and folds the
5096 resulting struct offsets back into the .gidl file.
5098 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5100 * src/gidlparser.c (start_field): Make fields in objects
5103 * src/gidlmodule.c: Include string.h
5108 * metadata-format.txt: Cleanup basic types.
5109 * src/*: Adapt to the changes.
5110 * tests/*: Adapt to the changes.
5111 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5113 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5114 size for enum blobs.
5115 (g_idl_node_get_full_size): Report the correct size for
5118 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5119 error checking for blob sizes.
5121 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5123 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5124 interface types for which is_pointer is FALSE, e.g. enums.
5126 * src/gidlnode.c (g_idl_node_get_full_size)
5127 * src/gidlparser.c (parse_type_internal):
5128 * src/generate.c (write_type_info): Support unspecialized
5129 lists, hashtables and errors. Also emit a '*' after these.
5133 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5137 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5139 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5141 * src/*.c: Change the directory to be addressed by
5142 1-based indexes, and use an index of zero to mean
5145 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5147 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5149 * tests/union.test: Add a union test.
5151 * src/generate.c: Handle unions.
5153 * src/girepository.h:
5154 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5156 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5158 * src/gidlparser.c (start_union): Parse <union> elements.
5160 * src/gidlnode.h: Add a GIdlNodeUnion.
5162 * gidl.dtd: Add a <union> element.
5164 * src/gmetadata.c (g_metadata_check_sanity): Check
5167 * src/gmetadata.h: Add union_blob_size to Header,
5170 * metadata-format.txt: Add a UnionBlob.
5172 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5174 * tests/*: Update testcases.
5176 * src/generate.c (write_callable_info): Don't forget to
5177 write transfer and null-ok attributes for return types
5180 * src/girepository.h:
5181 * src/ginfo.c (g_callable_info_may_return_null):
5182 New function to find out if a function may return NULL.
5184 * src/compiler.c (format_output): Make the generated
5187 * README: Point to a recent libffi snapshot.
5189 * tests/invoke/*: Some invoke tests.
5191 * src/Makefile: Add ginvoke.c and the necessary
5194 * src/girepository.h (g_function_info_invoke): Add
5197 * src/ginvoke.c (g_function_info_invoke): Initial
5198 implementation of invoke functionality based on libffi.
5200 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5201 strings and types hash tables in the right order when
5203 (find_entry_node): Free the name parts.
5205 2005-05-12 Johan Dahlin <johan@gnome.org>
5207 * src/generate.c: Generate consistent end tags.
5211 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5215 * src/gidlparser.c (start_function): Actually add
5216 methods to objects. (Steven Walter)
5218 * src/girepository.h:
5219 * src/ginfo.c: Rename Transfer and Direction to
5220 GITransfer and GIDirection. (Torsten Schoenfeld)
5222 * tests/*: Make tests work with the changes in name
5225 * src/gidlnode.c (find_entry_node): Parse qualified
5226 names and generate xref nodes for them if needed. Don't
5227 require all modules to be loaded any more.
5229 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5232 * src/ginfo.c (g_object_info_get_parent): Return NULL
5233 if blob->parent is 0. Still need to make sure index
5236 * src/generate.c: Generate qualified names when
5237 referring to non-local types. Emit transfer attribute
5240 * src/compiler.c (format_output): Put the function
5241 attributes where gcc accepts them.
5243 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5245 * src/compiler.c (main): Add a --verbose cmdline option
5246 and only log messages if it is specified.
5249 * src/gidlnode.c (init_stats, dump_stats): Collect some
5250 statistics on string and type sharing.
5252 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5253 g_message() instead of fprintf().
5255 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5256 (g_idl_node_get_size): Implement for structs.
5257 (g_idl_node_get_full_size): Handle parent being NULL.
5258 (serialize_type): Handle lookup failures more gracefully.
5260 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5262 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5263 size calculation for 2-parameter types and for objects.
5265 * src/compiler.c: Add a cmdline option for debug output
5266 and install a log handler to implement it.
5267 * src/gidlnode.c: Add some debug spew.
5271 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5272 forget to count the module name when calculating the
5273 required size for the metadata.
5276 * src/gidlparser.c: Fix compiler warnings.
5278 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5280 * src/compiler.c (main): Free the option context.
5282 * gidl.dtd: Clean up handling of names. All elements
5283 have a "name", only the elements corresponding to
5284 actual callable functions (function, method, constructor),
5285 have an additional "symbol" attribute holding the
5286 dlsym()-able function name.
5288 * src/generate.c: Adapt to generate xml matching the
5292 * src/gidlnode.c: Adapt to parse the new dtd.
5294 * tests/*.test: Adjust to the new dtd.
5296 * metadata-format.txt:
5297 * src/gmetadata.h: Remove the short_name field
5299 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5300 * src/girepository.h:
5301 * src/ginfo.c (g_value_info_get_short_name): Removed
5303 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5305 * gidl.dtd: Allow constructors for boxed types,
5306 patch by Jonathan Blandford.
5309 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5311 * --- Initial import ---