1 2008-11-13 Owen Taylor <otaylor@redhat.com>
3 Bug 560253 – Add structure and boxed types to Everything test module
5 * tests/everything/gitesttypes.[ch]: Add examples of:
8 Plain old data structs with nested fields
10 Plain old data boxed with nested fields
11 More complicated boxed types with internal state
13 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
15 * tests/everything/gitesttypes.c (test_gtype_in):
16 * tests/everything/gitesttypes.h:
17 Add a test of GType arrays, a la gtk_list_store_set_columns.
19 2008-11-12 Owen Taylor <otaylor@redhat.com>
21 Bug 560419 – Cache includes when parsing
23 Keep track of all modules parsed within a GIrParser, and when a
24 module is referenced a second time, use the existing parsed copy
27 2008-11-12 Owen Taylor <otaylor@redhat.com>
29 Fix management of ParseContext.includes_modules (#560419)
31 * girepository/girparser.c: Fix some trivial bugs in managing the
32 list of include modules. (Add to module's list twice, not
33 initialized to NULL, not freed.)
35 2008-11-12 Owen Taylor <otaylor@redhat.com>
37 Keep aliases and disguised_structures local to each module (#560419)
39 * girepository/girmodule.[ch]: When parsing, keep keep a separate
40 hash tables of aliases and 'disguised' flags for each module, and
41 store that on the module.
43 After parsing an include merge the aliases/disguised flags to the
46 * girepository/girparser.c: Remove 'prefix_aliases' flag and
47 always prefix aliases/disguised structure types when parsing; this
48 simplifies the code considerably.
50 2008-11-12 Owen Taylor <otaylor@redhat.com>
52 Fix mismatches between .gir name and 'name' attribute (#560419)
54 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
55 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
56 where the 'name' element of <namespace/> didn't match the filename of the
57 gir, an assumption that the compiler has always expected and now enforces.
59 2008-11-12 Owen Taylor <otaylor@redhat.com>
61 Only allow one <namespace/> element per <repository/> (#560419)
63 * girepository/girparser.c: The logic in girparser.c didn't work
64 very well if there were multiple <namespace/> nodes within a
65 single <repository/> (context->namespace was always the overall
66 filename and not the the name specified in the <namespace/>
67 element for one thing; this would cause aliases to be mis-prefixed
68 in include modules.) Also check that the "name" in the
69 <namespace/> node matches the filename.
71 2008-11-12 Owen Taylor <otaylor@redhat.com>
73 Add a GirParser object to hold the state of a compilation
75 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
76 GirParser object to hold state that is global across a
77 compilation. Currently just holds the include path, but will
78 eventually also keep a cached list of parsed modules.
80 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
82 * girepository/girepository.c (find_namespace_latest): Fix
85 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
87 * configure.ac: use 'introspection' component for bugs
89 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
91 * tests/everything/gitesttypes.c (test_filename_return):
92 * tests/everything/gitesttypes.h:
93 Add a filename return test.
95 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
97 * tests/offsets/Makefile.am (gitestoffsets.c): fix
98 gen-gitestoffsets invocation with builddir != srcdir
100 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
102 * girepository/girepository.c:
103 Change the element type from utf8 to filename
104 * girepository/girnode.c (g_ir_node_build_typelib):
105 Special case filename equally to utf8 here.
107 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
110 Remove unused variables, add a dependency of girepository.ch, so when
111 they change we rebuild the gir automatically.
113 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
115 * girepository/girepository.c (g_irepository_get_search_path):
116 * girepository/girepository.h:
117 Add a g_irepository_get_search_path, so we can access the search
120 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
122 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
124 * girepository/girparser.c: avoid freeing an uninitialized pointer
126 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
129 * giscanner/glibtransformer.py:
130 * tools/g-ir-scanner:
131 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
132 so we can just pass in --library=foo/bar/baz.la and the scanner
133 does the right thing.
134 Don't warn for _get_type() functions if they don't take any
137 2008-11-11 Owen Taylor <otaylor@redhat.com>
139 Bug 560404 – Prefix types when resolving aliases in included modules
141 * girepository/girparser.c: When resolving aliases in an included
142 module, prefix types before looking them up.
144 2008-11-11 Owen Taylor <otaylor@redhat.com>
146 Compute field offsets and overall size for object structures
148 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
149 field of type object in structure"
151 Do basic computation of field offsets for objects and interfaces;
152 this doesn't attempt to address all of the "mess" for virtual
153 functions described in Bug 560281.
155 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
157 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
159 Based on patch by Johan Bilien.
161 * giscanner/transformer.py (_create_member, _create_parameter):
162 Resolve types here as well.
163 (_resolve_type_name_1): Try resolving using 'ctype' first since
164 it's least ambiguous. Fixes struct member type resolution with
165 similarly named types, e.g. Gdk.PangoRendererClass and
167 * tests/scanner/foo*: Add test.
169 2008-11-11 Owen Taylor <otaylor@redhat.com>
171 * girepository/girparser.c: Search provided include dirs before
172 the default directories.
174 2008-11-11 Owen Taylor <otaylor@redhat.com>
176 * girepository/giroffsets.c: Include fully-qualified names in
179 2008-11-11 Owen Taylor <otaylor@redhat.com>
181 * girepository/giroffsets.c: Fail gracefully with an informative
182 error message when recursion is encountered when computing a
185 2008-11-11 Owen Taylor <otaylor@redhat.com>
187 * girepository/girparser.c: Remove an unused variable.
189 2008-11-10 Owen Taylor <otaylor@redhat.com>
191 Add tests for field offset computations
193 * tests/offsets/offsets.h: Header file with structure definitions to test
195 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
196 field offsets for the structures in offsets.h two ways: using
197 the information from a generated typelib, and as computed by the
200 We diff these two versions to test that everything is OK.
202 2008-11-10 Owen Taylor <otaylor@redhat.com>
204 Remove field offsets from g-ir-generate output and test inputs
206 Field offsets are a) architecture dependent so they shouldn't be part
207 of the architecture-independent gir format which is installed in
208 datadir. b) Are architecture-dependent so they shouldn't be in test
211 * girepository/girparser.c: Don't parse offset for fields
212 * tools/generate.c: Don't parse offset for fields
213 * tests/*.gir test/scanner/*.tgir: Remove offsets
215 (Virtual function and discriminator offsets are not removed, as they
216 aren't fully hooked up to the field-offset computation machinery yet.)
218 2008-11-10 Owen Taylor <otaylor@redhat.com>
220 Bug 560252 - Compute field offsets before writing typelib
222 * girepository/girnode.h: Store the total size and alignment for
223 GIrNodeStruct/Boxed/Union.
225 * girepository/giroffset.c: New file implementing computation of
226 structure field offsets.
228 * girepository/girnode.c: Compute structure field offsets before
229 writing types into the typelib.
231 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
232 means "unknown". Also fix description of the discriminator_offset
235 2008-11-10 Owen Taylor <otaylor@redhat.com>
237 Bug 560250 - Fully parse included modules
239 For some things, like computing structure offsets to put into the typelib
240 we need more than just the aliases from included modules. Do a completel
241 parse of included modules and store in module->included_modules.
243 Also add g_ir_find_node() to find node information from within the
244 active set of modules and their includes.
246 2008-11-10 Owen Taylor <otaylor@redhat.com>
248 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
250 Extract a function to convert GITypeTag to ffi_type from the internals
251 of ginvoke.c. This will be useful in figure out structure alignment.
253 Also fix handling of gsize and time_t to be portable. (Add a check
254 to configure.ac to figure out the width of time_t.)
256 2008-11-10 Owen Taylor <otaylor@redhat.com>
258 Bug 560248 – "disguised structures"
260 Certain types like GIConv and GdkAtom are pointers internally but don't
261 look like pointers when referenced. They have the form.
263 typedef struct _X *X;
265 Parse these as structures/records but mark them in the gir with a 'disguised'
266 attribute so that we know that they need special handling.
268 In the typelib treat them like any other structure.
270 2008-11-09 Jürg Billeter <j@bitron.ch>
273 * giscanner/girwriter.py:
275 Write throws attribute for virtual functions, fixes bug 559703
277 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
279 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
280 up some confusion about the second argument to find_module, it's
281 actually the packages __path__ attribute which we can safely ignore
283 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
285 2008-11-07 Owen Taylor <otaylor@redhat.com>
287 Bug 559737 – Deal with continuations in macros
289 * giscanner/giscannerlexer.l: Treat continuation lines the same
290 as regular newlines. This makes the scanner not complain about
291 #define foo(x) \ <stuff> inside a C file. There's no attempt
292 however to handle parsing macro definitions split across lines.
294 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
296 * giscanner/cachestore.py:
297 Handle broken cache entries, write only filesystems and
298 running out of diskspace.
300 2008-11-07 Owen Taylor <otaylor@redhat.com>
302 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
303 Set current_filename before lexing the file so error messages
304 are reported in the right file.
306 2008-11-06 Colin Walters <walters@verbum.org>
308 * tests/everything/*: Add some tests for strv.
310 2008-11-05 Colin Walters <walters@verbum.org>
312 * girepository/ginvoke.c (g_function_info_invoke): Don't use
313 nested scope local variable for error which may go away after
314 conditional is complete.
316 2008-11-05 Colin Walters <walters@verbum.org>
318 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
319 manipulate hackily; just use GString. This avoids an
320 uninitialized memory read pointed out by Havoc.
322 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
324 * giscanner/__init__.py:
326 * giscanner/cachestore.py:
327 * giscanner/cgobject.py:
328 * giscanner/girparser.py:
329 * giscanner/girwriter.py:
330 * giscanner/giscannermodule.c:
331 * giscanner/glibast.py:
332 * giscanner/glibtransformer.py:
333 * giscanner/libtoolimporter.py:
334 * giscanner/minixpath.py:
335 * giscanner/odict.py:
336 * giscanner/sourcescanner.c:
337 * giscanner/sourcescanner.h:
338 * giscanner/sourcescanner.py:
339 * giscanner/transformer.py:
340 * giscanner/utils.py:
341 * giscanner/xmlwriter.py:
343 Relicense the giscanner library under LGPLv2+.
344 This has been approved by all contributors.
346 2008-11-01 Owen Taylor <otaylor@redhat.com>
348 Bug 558848 giparser.py: shared library should be optional
350 When parsing a .gir, allow the shared-library attribute
351 of <namespace/> to be missing: this corresponds to the handling
352 in libgirepository and elsewhere.
354 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
356 Bug 557898 – Fails to build on OSX 10.4
358 * configure.ac: Check for $shrext_cmds that should be implicitly
359 available if you're using libtool >= 2.0. If undefined, call
360 libtool --config explicitly to get its value.
361 * girepository/gtypelib.c: Remove special case for (non-)Darwin
364 2008-10-31 Colin Walters <walters@verbum.org>
366 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
368 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
370 * configure.ac: Post release version bump
373 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
377 * docs/release-checklist.txt:
380 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
382 * Makefile.am: add an upload-release target
383 * docs/release-checklist.txt:
384 Release process documentation
386 2008-10-31 Colin Walters <walters@verbum.org>
388 Bug 558109 – _g_typelib_init fails to find shared libraries
390 * transformer/glibtransformer.py: Use ctypes' find_library
391 on passed libraries and write that for the shared-library
392 entry. We want to avoid depending on -devel packages.
394 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
396 * docs/g-ir-scanner.1:
397 Document the renaming options.
399 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
401 * giscanner/Makefile.am:
402 * tests/invoke/Makefile.am:
403 * tests/repository/Makefile.am: List in-tree libraries first in
404 LDADD / LIBADD. If installed library is listed first, the
405 resulting binary will prefer installed version to one in .libs,
406 possibly making 'make check' behave strangely.
408 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
410 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
411 gir-repository from choking with gdk/quartz
413 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
415 * giscanner/giscannermodule.c (calc_attrs_length),
416 (pygi_collect_attributes):
417 * giscanner/xmlwriter.py:
418 Write a C version of the xml namespace formatter.
419 Saves 15% of the time it takes to create a gtk gir.
421 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
423 * giscanner/xmlwriter.py: Abstract attribute formatting
424 to a function external to the XMLWriter class.
426 * giscanner/scannerlexer.l:
427 Parse and discard __typeof and __attribute.
429 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
431 * giscanner/girparser.py:
432 Remove arguments from the constructor, move them to
433 separate accessors. Add a new parse_tree method
434 which takes an element tree instance.
435 * tools/g-ir-scanner:
436 Update callsite for this
438 * giscanner/Makefile.am:
439 * giscanner/cachestore.py:
440 * giscanner/transformer.py:
441 Cache the include parsing. Saves ~25% time when
442 creating vte (which includes everything up to gtk+).
444 2008-10-30 Colin Walters <walters@verbum.org>
446 * giscanner/transformer.py: Don't reparse includes
447 we've already processed.
449 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
451 * giscanner/girparser.py:
452 * giscanner/transformer.py:
453 Avoid parsing parameters, types etc when parsing
454 includes. Should speed up include parsing a bit.
456 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
458 * giscanner/girparser.py:
459 Avoid big if/else and use a dispatch table like
462 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
464 * giscanner/transformer.py:
465 Clean up include parsing and registration.
467 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
469 * giscanner/transformer.py:
472 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
474 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
477 construct PYTHONPATH just once
479 * tests/everything/Makefile.am:
480 * tests/scanner/Makefile.am:
481 add $(top_srcdir) to PYTHONPATH to
482 handle builddir != srcdir
484 * giscanner/libtoolimporter.py:
485 * giscanner/sourcescanner.py:
486 Make the libtoolimporter work when distchecking too.
488 Mostly based on patch by Tommi Komulainen
490 2008-10-29 Owen Taylor <otaylor@redhat.com>
492 * giscanner/glibtransformer.py: If a filename of an existing
493 file is passed to --library, hunt for it directly, rather than
494 searching for a corresponding library.
496 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
498 * giscanner/libtoolimporter.py:
499 * giscanner/sourcescanner.py:
500 Clean up the libtool importer a bit. Add a context so we
501 can use it through a with statement.
502 Don't just look in the current directory, look in the whole
505 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
507 Bug 558065 – gitesttypes should be installed
511 * tests/types/Makefile.am -> tests/everything/Makefile.am
512 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
513 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
514 move tests/types to tests/everything
516 * tests/everything/Makefile.am: build normal shared library
517 libgirepository-everything.so.1.0.0 and corresponding typelib
518 Everything-1.0.typelib
520 * tests/everything/Makefile.am: explicitly link libtool
521 versioning with typelib versioning with variables
523 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
525 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
527 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
529 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
532 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
534 Bug 558068 – when invoking a method, offset the in arguments by one,
537 * tests/invoke/invoke.c, tests/invoke/testfns.c,
538 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
539 * girepository/ginvoke.c: do not offset the index of given out
540 arguments by one for methods, "this" is provided as in argument only.
542 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
544 * gir/gio-2.0.c: add annotation for g_file_delete
546 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
548 Bug 558062 – provide and use paths in the .pc file
550 * gobject-introspection-1.0.pc.in: provide typelibdir variable
551 for where .typelibs should be installed (callers shouldn't need
552 to construct paths from bits and pieces)
554 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
556 Bug 557791 – g_irepository_require() could return a GTypelib *
558 * girepository/girepository.c: Return GTypelib; this is useful
559 for low level manipulation.
561 2008-10-25 Colin Walters <walters@verbum.org>
563 Bug 557788 – Return types for constructors in generated typelib bogus
565 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
566 rely on end pass resolution.
568 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
570 Bug 557786 - support fixed size arrays
572 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
573 * giscanner/scannerparser.y: Retain fixed array size.
574 * giscanner/ast.py: Add to note.
575 * giscanner/girwriter.py: Write to gir.
576 * girepository/girnode.c: Write it to typelib.
577 * tools/generate.c: Generate.
578 * tests/*: Add tests.
580 2008-10-25 Colin Walters <walters@verbum.org>
582 Bug 557076 - move typelibs to $libdir
584 * configure.ac: Steal some configury bits from dbus to expand
586 * gir/Makefile.am: Move to libdir.
587 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
588 instead just look at one hardcoded path in libdir.
589 * acinclude.m4: Bits from dbus.
591 2008-10-24 Johan Dahlin <johan@gnome.org>
593 * girepository/girnode.c (g_ir_node_check_unhandled_members):
594 Be quiet, do not warn about unhandled members.
596 2008-10-24 Johan Dahlin <johan@gnome.org>
598 * girepository/gtypelib.c:
599 Only use SHLIB_SUFFIX on darwin, otherwise use
600 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
602 2008-10-24 Lucas Rocha <lucasr@gnome.org>
604 Bug 557623 - Constructors shouldn't be flagged as methods.
606 * girepository/ginfo.c (g_function_info_get_flags): ditto.
608 2008-10-24 Johan Dahlin <johan@gnome.org>
610 * giscanner/scannerparser.y:
611 Check against division by zero for the modula operator.
612 This fixes header parsing of OSX system headers included
615 2008-10-24 Johan Dahlin <johan@gnome.org>
619 Add a CONTRIBUTORS file and dist it.
621 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
623 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
625 * girepository/girparser.c (parse_param_transfer):
626 * giscanner/transformer.py (_create_parameter, _create_return):
627 * giscanner/girwriter.py (_write_return, _write_parameter):
628 * tools/generate.c (write_callable_info): always write and
629 require "transfer-ownership" for return-values and parameters
632 * tests/invoke/testfns-1.0.gir:
634 * tests/scanner/DrawableAdditions.xml:
635 * tests/scanner/GtkFrob-1.0-expected.tgir:
636 * tests/scanner/annotation-1.0-expected.tgir:
637 * tests/scanner/drawable-1.0-expected.tgir:
638 * tests/scanner/drawable-injected-1.0-expected.gir:
639 * tests/scanner/drawable-injected-1.0-expected.tgir:
640 * tests/scanner/foo-1.0-expected.tgir: Updated
642 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
644 * giscanner/cgobject.py: build fundamental types same way as glib
646 * giscanner/glibtransformer.py (_type_from_gtype): record GType
647 when constructing the Type from it
649 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
650 the parameter is a GObject from its GType, if available.
652 * giscanner/glibtransformer.py (_adjust_transfer):
653 * tests/scanner/foo-1.0-expected.gir:
654 * tests/scanner/foo-1.0-expected.tgir: deduce
655 transfer-ownership from GTypes
657 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
659 * giscanner/transformer.py (_create_parameter):
660 * tests/scanner/foo-1.0-expected.gir: make varargs
661 transfer-ownership="none"
663 2008-10-23 Colin Walters <walters@verbum.org>
665 Bug 556739 - transfer ownership
667 * giscanner/ast.py: Refactor Parameter/Return to share
668 common attributes. Add transfer_inferred attribute
669 which says whether or not we made a guess.
670 * giscanner/transformer.py: Add much more extensive
671 heuristics around parameter and return transfer.
672 * giscanner/glibtransformer.py: Adjust to inspect
676 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
678 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
680 * tests/scanner/Makefile.am:
681 * tests/scanner/annotation-1.0-expected.tgir:
682 * tests/scanner/drawable-1.0-expected.tgir:
683 * tests/scanner/drawable-injected-1.0-expected.tgir:
684 * tests/scanner/foo-1.0-expected.tgir:
685 * tests/scanner/GtkFrob-1.0-expected.tgir:
686 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
687 annotations survive the roundtrip via typelib
689 The expectations are as currently produced by g-ir-generate,
690 comparison with the .gir files shows there are differences.
692 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
694 Bug 557468 – Support for GI_TYPELIB_PATH
696 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
697 provided paths to the global search path.
699 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
701 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
703 * tests/scanner/drawable-1.0-expected.tgir:
704 * tests/scanner/drawable-injected-1.0-expected.tgir:
705 * tests/scanner/foo-1.0-expected.tgir:
706 * tools/generate.c (write_object_info): write 'abstract'
707 attribute for classes
709 2008-10-22 Lucas Rocha <lucasr@gnome.org>
711 * girepository/girmodule.c, girepository/gtypelib.c,
712 girepository/girparser.[ch]: fix some build warnings.
714 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
716 Bug 557405 – Use 'allow-none' consistently
718 * docs/typelib-format.txt:
719 * girepository/ginfo.c (g_arg_info_may_be_null):
720 * girepository/girnode.c (g_ir_node_build_typelib):
721 * girepository/girnode.h (struct _GIrNodeParam):
722 * girepository/girparser.c (start_parameter):
723 * girepository/girwriter.c (function_generate):
724 * girepository/gtypelib.h (ArgBlob):
726 * tests/function.gir:
727 * tools/generate.c (write_callable_info): Use 'allow-none'
728 consistently throughout
730 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
732 Bug 557092 – Callback annotations not used
734 * giscanner/transformer.py (_create_callback): use annotations
736 * tests/scanner/annotation.h
737 * tests/scanner/annotation-1.0-expected.gir: add tests
739 2008-10-21 Colin Walters <walters@verbum.org>
741 * giscanner/scannerlexer.l: Don't require trailing whitespace after
742 uncommented parameters.
745 2008-10-21 Colin Walters <walters@verbum.org>
747 * girepository/girepository.c: Ensure that when doing an unversioned
748 require, we prefer items earlier in the search path to later ones.
750 2008-10-21 Owen Taylor <otaylor@redhat.com>
752 * giscanner/transformer.py: For string parameters allow transfer annotation
753 to override the standard automatic guessing based on 'const'.
755 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
757 Bug 557241 – "throws" flag for functions
759 * tests/scanner/drawable-1.0-expected.gir,
760 tests/scanner/drawable-injected-1.0-expected.gir,
761 tests/scanner/drawable.[ch]: add simple test for throwing
762 function (has GError ** as last argument)
764 * giscanner/ast.py: add a 'throws' flag to Function
765 * giscanner/glibtransformer.py: if a function's last paramerter is
766 a GError, set the 'throws' flag and remove that parameter
767 * giscanner/girwriter.py: write out the 'throws' attribute
768 * giscanner/girparser.py: support parsing the 'throws' attribute
770 * tests/repository/gitestthrows.c: add a simple test to check the
771 throws flag in a typelib and invoke the function
773 * girepository/ginfo.c, girepository/girnode.[ch],
774 girepository/girnode.h, girepository/girparser.c,
775 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
777 * girepository/ginvoke.c: if a function throws, add a GError as last
778 arguments, and propagate the error to the invoker.
780 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
782 * giscanner/transformer.py (_create_parameters): Warn if we see
783 annotations for unknown parameters. If .h and .c files name
784 parameters differently, the annotations may be lost.
786 2008-10-21 Johan Dahlin <johan@gnome.org>
788 Bug 556358 - don't use libtool internals
790 * giscanner/Makefile.am:
791 * giscanner/libtoolimporter.py:
792 * giscanner/sourcescanner.py:
793 * giscanner/utils.py:
794 Add a python meta importer and remove a libtool symlink hack.
796 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
798 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
799 and --add-include-path appropriately when invoking the scanner.
800 * tests/types/Makefile.am (%typelib): Likewise.
802 2008-10-20 Colin Walters <walters@verbum.org>
804 Bug 556777 - validate properties
806 * giscanner/transformer.py: Add option to throw on unknown types.
807 * giscanner/glibtransformer.py: Use it on properties.
808 * tests/*: Add a test.
810 2008-10-20 Colin Walters <walters@verbum.org>
812 * giscanner/glibast.py: Also register g variants of
813 default_array_types. This is not beautiful, but
814 good alternatives aren't easy to come by.
815 This fixes gchar ** parsing.
817 2008-10-20 Colin Walters <walters@verbum.org>
819 * docs/typelib-format.txt, girepository/gtypelib.h:
820 Take a bit from ObjectInfo to represent abstract flag.
821 * giscanner/cgobject.py: Expose g_type_get_flags.
822 * girepository/girepository.h: Add accessor.
823 * girepository/ginfo.c: Implement it.
824 * giscanner/ast.py: Add is_abstract flag to generic
826 * giscanner/glibast.py: Use it.
827 * giscanner/girwriter.py: Write it.
828 * girepository/girparser.c: Parse it.
831 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
833 * giscanner/girparser.py (_parse_function): don't lose
834 'transfer-ownership' attributes when injecting, check for the
837 2008-10-19 Johan Dahlin <johan@gnome.org>
839 * giscanner/scannerlexer.l: Parse and ignore __asm.
841 2008-10-19 Colin Walters <walters@verbum.org>
843 * giscanner/girparser.py: Parse array length= to ensure
844 it doesn't get lost from --inject.
846 2008-10-17 Colin Walters <walters@verbum.org>
848 Bug 556795 - char ** regression
850 * giscanner/transformer.py: Fix parsing of ctypes, add some
851 comments about what's going on.
852 * tests/*: Add a test for char **.
854 2008-10-17 Colin Walters <walters@verbum.org>
856 Bug 556783 - change namespace handling to be more consistent
858 * giscanner/transformer.py: Eliminate usage of
859 strip_namespace_object. We now treat --namespace as the default
860 --strip-prefix; however, if --strip-prefix is specified it
861 overrides --namespace. This applies to everything except function
862 names, where we do also strip the namespace.
863 * giscanner/glibtransformer.py: Remove usage of
864 strip_namespace_object.
866 * tests/*: Add skeletal GtkFrob-1.0 test which has different
867 --namespace and --strip-prefix.
869 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
871 Bug 556732 – generate gir files consistently
873 * girepository/girparser.c (start_parameter):
875 * tests/invoke/testfns-1.0.gir:
876 * tools/generate.c (write_callable_info): write
877 'transfer-ownership' attribute consistently with both
878 return-value and parameter elements
880 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
882 Bug 556732 – generate gir files consistently
884 * tools/generate.c (write_callable_info): write 'direction'
885 attribute only if other than 'in' to be consistent with
888 * tests/object.gir: remove direction="in" which is the default
890 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
892 Bug 556732 – generate gir files consistently
894 * giscanner/ast.py (Field): add readable and writable properties
895 * giscanner/girparser.py (_parse_field): copy 'readable' and
896 'writable' attributes
897 * giscanner/transformer.py (_create_member): create fields as
899 * giscanner/glibtransformer.py (_introspect_object,
900 _pair_class_struct): make object instance and class fields
902 * giscanner/girwriter.py (_write_field):
903 * tools/generate.c (write_field_info): write field 'readable'
904 and 'writable' attributes only if non-default (read-only)
905 * girepository/girparser.c (start_field): in the absence of
906 attributes assume fields are read-only
908 * tests/struct.gir: remove redundant readable="1" from fields
909 * tests/scanner/foo-1.0-expected.gir:
910 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
911 all record and union fields
913 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
915 Bug 556732 – generate gir files consistently
917 * giscanner/girwriter.py (_write_property): write properties
918 'construct' attribute if set
919 * tools/generate.c (write_property_info): write properties
920 'readable' and 'writable' attributes only if non-default
921 * tests/object.gir: add writable="0"
922 * tests/scanner/foo-1.0-expected.gir: add construct="1"
924 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
926 * gir/glib-2.0.c: added annotations
928 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
930 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
933 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
935 Bug 556610 – giscanner/girparser.py drops parameter options
937 * tests/scanner/drawable-injected-1.0-expected.gir,
938 tests/scanner/DrawableAdditions.xml: added simple test for injection.
939 * giscanner/ast.py: allow Parameter to take options in the constructor
940 * giscanner/girparser.py: parse parameter options (transfer,
941 direction, allow-none)
943 2008-10-16 Colin Walters <walters@verbum.org>
945 Bug 556185 - segfault on g_callable_info_get_return_type
947 Initial patch from John Ehresman.
949 * tests/repository/*: Add a test using
950 g_callable_info_get_return_type. Instead of casting a
951 GITypeInfo directly to a GIRegisteredTypeInfo, we need
952 to call g_type_info_get_interface.
954 2008-10-16 Colin Walters <walters@verbum.org>
956 Bug 556579 - union and struct name misresolved
958 * giscanner/transformer.py: The calls to _resolve_type_name
959 for struct/union names was a legacy holdover from when type
960 resolution had multiple phases. Now it's actively harmful
961 since we might pull in an identical name from another
965 2008-10-16 Colin Walters <walters@verbum.org>
967 Bug 556432 - transfer annotations and defaults
969 * giscanner/transformer.py: Canonicalize type
970 after removing *, not before. This ensures that
971 guchar* is transformed to 'uint8'.
972 Add some comments here.
973 * giscanner/glibtransformer.py: Add _adjust_transfer
974 phase for tweaking GObject transfers.
977 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
979 * configure.ac: enable bunch of gcc warning CFLAGS
981 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
983 Bug 556543 – reduce compiler warnings
985 * girepository/ginfo.c:
986 * girepository/girepository.c (register_internal,
987 count_interfaces, find_interface, find_namespace_version,
988 parse_version, g_irepository_require):
989 * girepository/girmodule.c (g_ir_module_build_typelib):
990 * girepository/girnode.c (init_stats, dump_stats,
991 _g_irnode_init_stats, _g_irnode_dump_stats,
992 g_ir_node_can_have_member):
993 * girepository/girparser.c (firstpass_end_element_handler,
994 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
995 start_alias, start_type, end_type_top, parse_include, cleanup,
997 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
998 * giscanner/giscannermodule.c (directive_get_options,
999 type_get_child_list):
1000 * giscanner/scannerlexer.l (parse_gtkdoc):
1001 * giscanner/scannerparser.y (ctype_free):
1002 * giscanner/sourcescanner.c:
1003 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1004 * tests/types/gitesttypes.c:
1005 * tools/compiler.c (main):
1006 * tools/generate.c (write_repository): Remove unused variables
1007 and code, add missing includes, declarations and case
1010 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1012 Bug 556541 – access union members through UnionBlob rather than
1015 * girepository/ginfo.c (g_union_info_find_method): access union
1016 members through UnionBlob rather than StructBlob
1018 2008-10-15 Colin Walters <walters@verbum.org>
1020 Bug 556331 - clean up includes handling
1022 * tools/g-ir-scanner: Rework command line arguments; now we take
1023 --add-include-path and --include separately.
1024 * giscanner/girwriter.py: Separate name= and version= in include
1026 * giscanner/ast.py: Add Include type.
1027 * giscanner/transformer.py: Cleanups to register_include now that
1028 we don't need to handle mixed filenames and relative arguments.
1029 * girepository/girparser.c: Parse name and version separately;
1030 this fixes a bug as a side effect where we weren't resolving
1031 through aliases for basic types.
1032 * girepository/girepository.c: Fix format string args.
1033 * gir/Makefile.am: Update.
1036 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1038 Bug 556434 – unhandled interface/object/... member types
1040 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1041 g_ir_node_build_typelib): Check all
1042 interface/object/boxed/struct/union members are processed and
1043 abort if they are not. (Mostly callbacks in structs, but also
1044 fields in interfaces.)
1046 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1048 * a/girepository/girnode.c (g_ir_node_build_members,
1049 g_ir_node_build_typelib): refactor common code for processing
1050 members to a function
1052 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1054 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1055 transformation is lossless (it's not)
1057 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1059 * tests/Makefile.am: fix tests to compare xml to xml instead of
1060 typelib to xml, and stop on error
1062 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1064 * tools/generate.c (write_type_name, write_type_info,
1065 write_type_info, write_object_info, write_object_info,
1066 write_interface_info, write_error_domain_info): reduce code
1069 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1071 Bug 556174 – parse types for lists etc.
1073 * girepository/girparser.c (end_type_recurse):
1075 * tools/generate.c (write_type_info, write_field_info,
1076 write_callable_info, write_callable_info, write_constant_info,
1077 write_property_info): use nested <type>s for lists and hashes
1079 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1082 * tests/object.gir: remove trailing whitespace from inside
1083 elements to match g-ir-generate output
1085 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1087 * tools/generate.c (xml_printf): quote printf arguments so that
1088 we don't generate invalid XML by writing unescaped double quotes
1089 and such in attributes
1091 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1093 * tools/generate.c (write_field_info, write_callable_info,
1094 write_function_info, write_callback_info, write_struct_info,
1095 write_constant_value, write_signal_info, write_vfunc_info,
1096 write_object_info, write_interface_info, write_union_info,
1097 write_repository): remove unused indent parameters, xmlwriter
1098 keeps track of necessary indentation
1100 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1102 * tools/generate.c (xml_element_new, xml_element_free,
1103 xml_start_element, xml_end_element, xml_end_element_unchecked,
1104 xml_open, xml_close): Keep track of generated XML tree and
1105 handle indentation and closing tags properly.
1106 (write_field_info, write_callable_info, write_function_info,
1107 write_callback_info, write_struct_info, write_value_info,
1108 write_constant_info, write_enum_info, write_signal_info,
1109 write_vfunc_info, write_property_info, write_object_info,
1110 write_interface_info, write_error_domain_info, write_union_info,
1111 write_repository): Use xml_start_element and xml_end_element to
1114 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1116 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1117 (write_type_name, write_type_info, write_field_info,
1118 write_callable_info, write_function_info, write_callback_info,
1119 write_struct_info, write_value_info, write_constant_value,
1120 write_constant_info, write_enum_info, write_signal_info,
1121 write_vfunc_info, write_property_info, write_object_info,
1122 write_interface_info, write_error_domain_info, write_union_info,
1123 write_repository): wrap all FILE access to go through simple xmlwriter
1125 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1127 Bug 556400 – Fails to build on OS X 10.4
1129 * configure.ac: check for functions backtrace and backtrace_symbols
1130 * girepository/girparser.c (backtrace_stderr): Comment out
1131 implementation if the functions are not available.
1132 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1133 directory for better portability
1135 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1137 Bug 556433 – assume direction = out for int * parameters
1139 * giscanner/ast.py: define a list of types for which, if passed as
1140 reference, we assume a default direction of 'out'
1141 * giscanner/transformer.py: if a type has type pointer to one of the
1142 previously defined types, and no direction is set, assume out.
1143 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1145 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1147 * tests/scanner/annotation.c: fixed a few copy-paste errors
1149 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1151 Bug 556323 – transfer-ownership is wrong for functions returning const
1154 * giscanner/transformer.py: check for a const string as return value,
1155 not just const char*. Suggested by Colin Walters
1156 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1158 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1160 * girepository/ginfo.c, girepository/girepository.h: add
1161 g_union_info_find_method
1163 2008-10-14 Colin Walters <walters@verbum.org>
1165 * tests/repository/Makefile.am: Reenable repo test.
1166 * tests/repository/gitestrepo.c: Prepend search
1167 path for $(top_builddir)/gir dir so that we don't
1168 require installation for "make check" to pass.
1170 2008-10-13 Jürg Billeter <j@bitron.ch>
1172 * giscanner/glibtransformer.py:
1173 * tests/scanner/annotation-1.0-expected.gir:
1174 * tests/scanner/drawable-1.0-expected.gir:
1175 * tests/scanner/foo-1.0-expected.gir:
1176 * tests/scanner/utility-1.0-expected.gir:
1178 Support fields in GObject structs
1180 2008-10-13 Jürg Billeter <j@bitron.ch>
1182 * giscanner/ast.py: add signed integer and off_t to type_names
1184 2008-10-12 Jürg Billeter <j@bitron.ch>
1186 * giscanner/girparser.py: Parse bits attribute of fields
1188 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1190 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1191 * tests/repository/gitestrepo.c (main): instantiate
1192 'GCancellable' to ensure the GType is registered before using
1195 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1197 * giscanner/girparser.py: actually add the parsed constant nodes
1199 2008-10-12 Colin Walters <walters@verbum.org>
1201 * girepository/girepository.c: Don't cast DirEntry to Blob,
1202 actually look it up by offset.
1204 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1206 * giscanner/girparser.py: parse constant nodes in gir files
1208 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1210 * giscanner/transformer.py: prefix for constants have an underscore,
1211 so remove them as if they were functions, not objects.
1213 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1215 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1218 2008-10-12 Colin Walters <walters@verbum.org>
1220 Initial patch from Jani Monoses.
1222 * girepository/gtypelib.c: Fix inverted test for success
1225 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1227 * tools/generate.c (write_callable_info): use "transfer-ownership"
1228 attribute for return values
1230 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1232 * tools/generate.c (write_callable_info): move "transfer" and
1233 "null-ok" attributes from <function> to <return-value> element
1235 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1237 * girepository/girparser.c (start_return_value): handle
1238 "transfer-ownership" attribute
1240 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1242 * girepository/girparser.c (parse_param_transfer):
1243 * tools/generate.c (write_callable_info): use "container" for
1244 container/shallow ownership transfer (not "shallow")
1246 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1248 * girepository/girparser.c (parse_param_transfer,
1249 start_parameter): Refactor handling of transfer=none/shallow/full
1250 to separate function
1252 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1254 Bug 556048 – Crash in g_irepository_find_by_gtype
1256 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1257 * girepository/girepository.c (find_interface): Fix
1258 find_by_gtype case to get the type name from right offset
1260 2008-10-12 Jürg Billeter <j@bitron.ch>
1262 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1265 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1267 * girepository/gtypelib.h (RegisteredTypeBlob): make
1268 'unregistered' one bit wide as everywhere else
1270 2008-10-12 Jürg Billeter <j@bitron.ch>
1272 * giscanner/glibtransformer.py:
1273 * tests/scanner/annotation-1.0-expected.gir:
1274 * tests/scanner/drawable-1.0-expected.gir:
1275 * tests/scanner/drawable.h:
1276 * tests/scanner/foo-1.0-expected.gir:
1277 * tests/scanner/utility-1.0-expected.gir:
1279 Readd class records as workaround to not break Gtk typelib
1281 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1283 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1285 2008-10-12 Jürg Billeter <j@bitron.ch>
1287 * giscanner/glibtransformer.py: Don't generate <record> elements
1289 * tests/scanner/*: Update test cases
1291 2008-10-11 Colin Walters <walters@verbum.org>
1293 Bug 552858: versioning
1295 This is a big patch. You should probably remove your installation
1298 * docs/typelib-format.txt: Add nsversion entry which holds
1299 version of namespace.
1300 * girepository/girepository.h: Add 'version' parameter to
1301 g_irepository_require. This may be NULL. Normally
1302 bindings should pass an explicit version though.
1303 * girepository/girepository.c: Lots of infrastructure to
1304 support versioning. Add some more documentation. Disallow
1305 some usage of NULL namespaces.
1306 * girepository/girmodule.c: Add version parameter.
1307 * girepository/gtypelib.c: Update header size.
1308 * giscanner/ast.py: Add version to Namespace.
1309 * giscanner/girparser.py: Parse version attribute from
1310 XML, pass to Namespace.
1311 * giscanner/girwriter.py: Write out version parameter.
1312 * giscanner/transformer.py: Clean up include registration.
1313 * tests/*: Add version attribute.
1314 * tests/invoke/invoke.c: Don't try looking up test before
1315 it's loaded in repository.
1316 * tools/generate.c: Output version parameter.
1317 * gir/Makefile.am: Add 2.0 version to .gir files.
1319 2008-10-11 Colin Walters <walters@verbum.org>
1321 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1322 if we have mismatched parens.
1324 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1326 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1327 on 'members' variable.
1329 2008-10-11 Colin Walters <walters@verbum.org>
1331 Bug 555947 - update annotations syntax
1333 * giscanner/ast.py: Default to None for transfer. Remove
1334 default transfers for container types; we require this to
1336 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1337 'full' to match repository.
1338 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1339 * giscanner/transformer.py: Update for new annotations syntax.
1342 2008-10-11 Johan Bilien <jobi@litl.com>
1344 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1346 2008-10-11 Johan Bilien <jobi@litl.com>
1348 Bug 552347: Parse #defines constants
1350 * girepository/gtypelib.c: update the list of value_size
1351 with recently defined type tags
1352 * giscanner/scannerparser.y: brought back parsing of #defined, as
1353 present in older version
1354 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1355 * giscanner/girwriter.py: write out constant tags in the gir
1356 * giscanner/sourcescanner.py: add accessor for const_string
1357 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1360 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1362 Bug 555946: Install a test module exercising all types, transfer
1367 * tests/types/*: Add and install a test module that has functions
1368 accepting and returning most of the basic types to enable bindings
1369 implementors to more easily test their type conversion routines.
1371 2008-10-11 Jürg Billeter <j@bitron.ch>
1373 Bug 552374: Const strings should be identified in the gir.
1375 * giscanner/transformer.py: support string memory management
1376 * tests/scanner/foo.h: use char * and const char *
1377 * tests/scanner/foo-expected.gir: test that
1379 2008-10-11 Johan Dahlin <johan@gnome.org>
1381 * giscanner/girparser.py:
1382 Also parse enums which are not glib types.
1384 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1386 Bug 552370: add one more test for unsigned as a type, not as
1389 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1390 * test/scanner/foo.h: add function which uses unsigned as a type.
1391 * test/scanner/foo-expected.gir: test that.
1393 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1395 Bug 555712: Struct and union issues
1397 * giscanner/scannerparser.y (struct_declarator): Use information
1398 provided about the bit width of a field.
1399 * giscanner/transformer.py (Transformer._create_member): Pass the
1400 symbol's const_int member to the created field (it represents the
1402 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1403 field attribute, if present.
1404 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1405 width in bits of the field (only relevant for bitfields).
1408 * giscanner/transformer.py (Transformer._create_typedef_struct)
1409 (Transformer._create_typedef_union): Add calls to _create_struct()
1410 and _create_union(), respectively. This causes the scanner to
1411 generate output for fields of struct and union typedefs.
1414 2008-10-11 Jürg Billeter <j@bitron.ch>
1416 Bug 552370: unsigned not scanned properly
1418 * giscanner/scannerparser.y: combine basic types such as unsigned
1419 int and long long when scanning
1420 * tests/scanner/foo-expected.gir:
1421 * tests/scanner/foo.c: (foo_test_unsigned):
1422 * tests/scanner/foo.h: test that
1424 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1426 Bug 554854: The --typelib-xml and --inject options should reuse
1427 giscanner parser/writer.
1429 * giscanner/ast.py: add constructor list to Struct and Union.
1430 Add new param in Return's contructor to define transfer.
1431 * giscanner/girparser.py: several additions to the parser in order
1432 to have parsing all nodes of the gir xml files.
1433 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1434 and writer in --inject and --typelib-xml options.
1435 * giscanner/xmlwriter.py: ignore empty attributes instead of
1436 raising an error as this basically exposes a bug in GIRParser.
1437 This should be reverted as soon as the parser is fixed.
1439 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1441 Bug 552376: scanner generates wrong names for enum members when
1442 there's no defined gtype.
1444 * giscanner/utils.py (strip_common_prefix): Always strip common
1445 prefix exactly up to the last "_", and not beyond.
1446 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1447 here is that the first character after the last '_' should should be
1448 the same as the character in the same position on the type name.
1449 * tests/scanner/foo-expected.gir: test that
1451 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1453 Bug 555293: append library_paths to LPATH env variable to work
1454 around a bug in find_library when using ldconfig.
1456 * tools/g-ir-scanner (main): ditto.
1458 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1460 * girepository/girepository.c (register_internal): fix regression on
1461 invoke test case by making sure we load the global module in the
1462 typelib when dealing with inline typelibs.
1463 * girepository/gtypelib.c: a couple of coding style fixes.
1465 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1467 Bug 555294: Add support for multiple shared libraries per typelib.
1469 * girepository/ginvoke.c (g_function_info_invoke),
1470 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1471 g_typelib_symbol instead of g_module_symbol.
1472 * girepository/girepository.h: remove g_typelib_set_module and add
1474 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1475 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1476 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1477 modules instead of just one. The symbol lookup is now abstracted
1478 behind g_typelib_symbol which tries to find the passed symbol name in
1480 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1481 and write shared_library attribute as a comma-separated list of libs.
1483 2008-10-06 Colin Walters <walters@verbum.org>
1485 * giscanner/transformer.py: Parse length= annotation as
1486 a parameter name, not a raw int.
1489 2008-10-03 Colin Walters <walters@verbum.org>
1491 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1493 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1495 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1499 2008-10-03 Colin Walters <walters@verbum.org>
1501 Bug 554576: scan problem with ev_selection_render_selection()
1503 * giscanner/transformer.py: Only do type resolution once we've
1504 scanned all types. What could happen before is that we'd strip
1505 the namespace from local type "EvSelection" => Selection, and
1506 then later pull a "Selection" from some other namespace because
1507 we hadn't yet seen the local EvSelection. This could come
1508 down to hash table ordering and other things so not easy
1509 to write a test for.
1511 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1513 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1514 GLibEnumMember constructor as it should be the enum member nick.
1516 2008-10-02 Colin Walters <walters@verbum.org>
1518 Bug 552961: remove this parameter for methods
1520 * giscanner/glibtransformer.py: Delete this parameter; it is
1522 * girepository/ginvoke.c: Insert this parameter for methods.
1523 * girepository/gtypelib.c: Remove no longer needed verification of
1524 method this parameter.
1527 2008-09-30 Dan Winship <danw@gnome.org>
1529 Bug 554490: g-ir-scanner gets confused by '\\'
1531 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1532 backslashes so it will correctly parse '\\' and "\\"
1534 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1537 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1539 2008-10-02 Colin Walters <walters@verbum.org>
1541 bug 552393: Note variadic functions
1543 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1544 to use parameter_list directly.
1545 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1546 * giscanner/ast.py: Add Varargs type.
1547 * giscanner/transformer.py: Check for ellipsis symbol, transform
1549 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1550 Parse varargs functions, but filter them out before we start
1551 compiling the typelib.
1553 2008-10-02 Colin Walters <walters@verbum.org>
1555 Bug 554632: type tag for GType
1557 * girepository/girepository.h, girepository/girepository.c:
1558 Add type tag for GType - it's a special type we don't want
1559 to resolve to just "long".
1560 * docs/typelib-format.txt: Update.
1561 * girepository/girparser.c: Parse it.
1562 * giscanner/glibtransformer.py: Ensure we don't put GType in
1564 * tools/generate.c: Remove hardcoded type list.
1567 2008-09-30 Dan Winship <danw@gnome.org>
1569 Bug 554521: scanner generates wrong names for enum members with
1570 full type name prefix
1572 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1573 right amount when the entire "first" string is a prefix of
1576 * tests/scanner/foo.h (FooEnumFullname):
1577 * tests/scanner/foo-expected.gir: test that
1579 2008-09-29 Colin Walters <walters@verbum.org>
1581 Bug 552380: Array parameters should be marked in the gir
1583 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1584 uint8[]. Add Array, List, and Map subclasses of Type;
1585 these types can be generic. Return transfer defaults
1586 to true if return value is string or container type.
1587 Delete Sequence type.
1588 * giscanner/scannerlexer.l: Syntax change for annotations;
1589 use <> since it's more readable.
1590 * giscanner/girwriter.py: Write out these changes.
1591 * giscanner/girparser.py: Parse them.
1592 * giscanner/transformer.py: Have a defined set of
1593 both list and map types. When creating a type,
1594 check if the ctype we've parsed is one of them,
1595 if so create a container type subclass as appropriate.
1596 * girepository/girparser.c: Parse in generic types.
1599 2008-09-27 Colin Walters <walters@verbum.org>
1601 * tools/g-ir-scanner: Add --inject option.
1603 2008-09-25 Colin Walters <walters@verbum.org>
1605 Remove non-repository types from GIR
1607 * giscanner/ast.py: The canonical name is 'utf8', not
1609 * giscanner/glibast.py: A few more glib type mappings.
1610 * girepository/girparser.c: We only parse repository types.
1611 * tests/*.gir: Update.
1613 2008-09-23 Colin Walters <walters@verbum.org>
1615 Bug 552566: Add time_t type
1617 We need a type for time_t since it's special in C, and just
1618 mapping it to long precluded bindings from handling it
1621 2008-09-19 Colin Walters <walters@verbum.org>
1623 Bug 552390: Handle capitialization like "DBus" more robustly
1625 The to_underscores function was designed for use against prefixed
1626 names; we need a separate function which will convert names like
1627 DBusFoo into dbus_foo, not d_bus_foo.
1629 2008-09-19 Colin Walters <walters@verbum.org>
1631 Add check to make sure we're not hitting out unresolved types
1633 Validate the "this" argument for methods
1635 Remove heuristic matching of methods to classes based on prefix
1637 It was a broken hack that dated from when we handled underscoring
1638 and capitalization conventions less well.
1640 2008-09-18 Colin Walters <walters@verbum.org>
1642 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1644 On Darwin, the suffix for installed shared libraries (.dylib) is
1645 different from loadable modules (.so). We use a bit of magic shell
1646 script from Behdad Esfahbod to figure out the right suffix.
1648 2008-09-15 Johan Dahlin <johan@gnome.org>
1650 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1651 a wrapper for type_qualifier as well.
1653 2008-09-15 Colin Walters <walters@verbum.org>
1655 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1657 * giscanner/ast.py: Add deprecation attributes.
1658 * giscanner/girwriter.py: Write out deprecation data.
1659 * girepository/girparser.c: Relax parsing; deprecated
1660 attribute now includes freeform string.
1661 * giscanner/scannerlexer.l: Parse Deprecated.
1662 * giscanner/transformer.py: Look for deprecated attribute
1664 * tests/scanner/*: Add a Deprecated test.
1666 2008-09-14 Tor Lillqvist <tml@novell.com>
1668 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1670 2008-09-14 Colin Walters <walters@verbum.org>
1672 * giscanner/glibtransformer.py: Ignore functions with
1675 2008-09-12 Colin Walters <walters@verbum.org>
1677 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1679 2008-09-12 Colin Walters <walters@verbum.org>
1681 * giscanner/ast.py: Bind pid_t to INT for vte.
1683 2008-09-12 Colin Walters <walters@verbum.org>
1685 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1686 * giscanner/glibast.py: Avoid overwriting ctype.
1687 * giscsanner/transformer.py: Try resolving types using the GType names.
1689 2008-09-12 Colin Walters <walters@verbum.org>
1691 * giscanner/minixpath.py: Code to run an "XPath"
1692 assertion against an XML tree, taken from
1693 gir-repository/gir/tests.py.
1694 * giscanner/Makefile.am: Ship it.
1695 * tools/g-ir-scanner: Add --xpath-assertions option.
1696 * gir/GLib-assertions.txt: Add a few assertions.
1697 * gir/Makefile.am: Run them.
1699 2008-09-11 Colin Walters <walters@verbum.org>
1701 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1703 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1704 prefix if it ends with _. Tweak callback stripping to determine
1705 based on presence of _ whether we need to use strip_namespace_func
1706 or strip_namespace_object.
1708 2008-09-09 Owen Taylor <otaylor@redhat.com>
1710 * docs/typelib-format.txt: Wether => Whether
1712 2008-09-08 Colin Walters <walters@verbum.org>
1714 * girepository/girparser.c: Default to "readable" for properties.
1715 * giscanner/ast.py: Add readable, writable etc.
1716 * giscanner/girwriter.py: Writ them.
1717 * giscanner/glibtransformer.py: Inspect them.
1720 2008-09-07 Colin Walters <walters@verbum.org>
1722 * giscanner/cgobject.py: Add comment.
1724 2008-09-07 Colin Walters <walters@verbum.org>
1726 * giscanner/cgobject.py: Also call g_thread_init.
1728 2008-09-07 Colin Walters <walters@verbum.org>
1730 * giscanner/transformer.py: Fix regression by not
1731 stripping prefix before stripping namespace for unions
1734 2008-09-06 Colin Walters <walters@verbum.org>
1736 * giscanner/transformer.py: If a namespace contains
1737 multiple caps, try stripping both gnomekeyring_ and
1740 2008-09-07 Johan Dahlin <johan@gnome.org>
1742 Bug 551162 – giscanner does not recognize asm and __asm__
1743 * giscanner/scannerlexer.l:
1744 Patch by Jani Monoses.
1746 2008-09-06 Colin Walters <walters@verbum.org>
1748 * girepository/girnode.c: Allow gtype_name
1749 and gtype_init in struct and union.
1750 * girepository/girparser.c: Parse glib:
1751 boxed bits for both structure and union.
1752 * girepository/gtypelib.c: Don't barf
1753 if structure is boxed.
1754 * giscanner/girparser.py: Parse new XML
1756 * giscanner/girwriter.py: Write out new
1758 * giscanner/glibast.py: Define new classes
1759 which are both Boxed and Struct/Union, as
1760 well as an "Other" for everything else.
1761 * giscanner/glibtransformer.py: Handle
1762 boxed types specially; we try to merge
1763 them with a struct/union if one exists,
1764 otherwise fall back to generic boxed.
1766 * tools/generate.c: Write out new format.
1768 2008-09-06 Johan Dahlin <johan@gnome.org>
1770 * giscanner/grealpath.h: Include stdlib.h
1772 * docs/g-ir-generate.1: Remove leading %
1774 2008-09-01 Colin Walters <walters@verbum.org>
1776 * girepository/girparser.c: Look at c:type to determine
1777 whether or not an item is a pointer.
1779 2008-09-01 Johan Dahlin <johan@gnome.org>
1781 * tests/scanner/Makefile.am:
1782 Set PYTHONPATH so the scanner can run
1783 even if you didn't install anything.
1785 2008-09-01 Johan Dahlin <johan@gnome.org>
1788 Post-release version bump
1791 2008-09-01 Johan Dahlin <johan@gnome.org>
1795 2008-08-31 Colin Walters <walters@verbum.org>
1797 * giscanner/glibtransformer.py: Quiet info
1800 2008-08-31 Johan Dahlin <johan@gnome.org>
1803 Bump version to 0.5.0
1805 2008-08-31 Colin Walters <walters@verbum.org>
1807 * giscanner/glibtransformer.py: Follow aliases to ensure
1808 we don't get a constructor returning a basic type.
1809 * giscanner/transformer.py: Add function to follow aliases.
1812 2008-08-31 Johan Dahlin <johan@gnome.org>
1814 * giscanner/scannerlexer.l:
1815 * giscanner/scannerparser.y:
1816 * giscanner/sourcescanner.h:
1817 * giscanner/sourcescanner.py:
1818 Parse GCC extensions in the parser instead of just undeffing them
1819 in the pre-processor.
1821 2008-08-31 Johan Dahlin <johan@gnome.org>
1823 * giscanner/glibtransformer.py:
1824 Clean up a huge if. Do not add methods or constructors
1826 * giscanner/utils.py:
1827 second might be longer than first, check that.
1829 2008-08-31 Johan Dahlin <johan@gnome.org>
1834 2008-08-31 Colin Walters <walters@verbum.org>
1836 * girepository/girparser.c: Don't lose if we
1839 2008-08-31 Colin Walters <walters@verbum.org>
1841 * giscanner/glibtransformer.py: Look for libtool
1842 library in current directory
1843 * tests/scanner - Update.
1845 2008-08-30 Colin Walters <walters@verbum.org>
1847 * docs/typelib-format.txt: Add a guint32
1849 * gir/Makefile.am: Dep on Makefile
1850 * girepository/ginfo.c:
1851 * girepository/girepository.c: Clean up
1852 default typelib handling; remove global
1853 default_typelib variable. Ensure we handle
1854 NULL repository in more places.
1855 Support dependency resolution.
1856 Support lazy loading.
1857 * girepository/girepository.h: Remove
1858 g_irepository_unregister; we don't support
1859 unloading typelibs since really they're
1860 process-global. Update for lazy loading
1862 * girepository/girmodule.c: Use g_new0.
1863 Add dependencies to GirModule.
1864 * girepository/girparser.c: Parse dependencies.
1865 * girepository/gtypelib.c: Add 4 bytes for
1867 * tests/Makefile.am: Kill off gobject.gir,
1868 it conflicts with the real one.
1869 * tests/object.gir: Dep on GObject.
1870 * tools/generate.c: Take --includedir
1871 argument to say which directories to search
1872 for typelibs. Print out dependencies.
1874 2008-08-30 Colin Walters <walters@verbum.org>
1876 * giscanner/glibtransformer.py: Reduce warning noise.
1878 2008-08-29 Colin Walters <walters@verbum.org>
1880 * girepository/ginfo.c: Add some assertions regarding
1881 refcounts, just to be sure.
1882 * giscanner/glibtransformer.py: Blacklist a few more
1885 2008-08-29 Colin Walters <walters@verbum.org>
1887 * giscanner/glibtransformer.py: Blacklist a few
1888 functions that use GError oddly
1890 2008-08-29 Colin Walters <walters@verbum.org>
1892 * girepository/gtypelib.c: Don't crash if no
1895 2008-08-29 Colin Walters <walters@verbum.org>
1897 * girepository/girparser.c: Handle chains of aliases
1898 across modules by ensuring we fully qualify aliases
1901 2008-08-29 Colin Walters <walters@verbum.org>
1903 * girepository/girparser.c: Don't search aliases
1906 2008-08-29 Colin Walters <walters@verbum.org>
1908 * girepository/girparser.c: Rewrite type parsing
1909 to handle both GLib parsing case as well as correctly
1910 handling GLib.List and friends. Don't try to treat
1911 e.g. ListStore as a List.
1913 2008-08-29 Colin Walters <walters@verbum.org>
1915 * girepository/gtypelib.c: Add more context
1918 2008-08-29 Colin Walters <walters@verbum.org>
1920 * giscanner/glibtransformer.py: Add some informative
1921 logging messages in corner cases. Be sure we use
1922 the most recent node set instead of a cache
1923 when generating result set.
1924 * tests/: Remove duplicated bits in expected girs
1925 * girepository/girparser.c: Accept both List (for
1926 compiling GLib) and GLib.List (what the scanner
1929 * tools/generate.c: Generate canonical form.
1931 2008-08-29 Johan Dahlin <johan@gnome.org>
1933 * giscanner/config.py.in:
1934 Use datarootdir instead of datadir to avoid
1935 an autoconf warning.
1937 2008-08-29 Johan Dahlin <johan@gnome.org>
1941 * examples/gdk-pixbuf.gidl:
1943 Update and remove old cruft.
1945 2008-08-29 Johan Dahlin <johan@gnome.org>
1948 * docs/g-ir-compiler.1:
1949 * docs/g-ir-generate.1:
1950 * docs/g-ir-scanner.1:
1951 Add man pages for the generator and compiler.
1953 2008-08-29 Johan Dahlin <johan@gnome.org>
1955 * docs/g-ir-scanner.1: Document
1957 * giscanner/Makefile.am:
1958 * giscanner/gidlparser.py:
1959 * giscanner/gidlwriter.py:
1960 * tools/g-ir-scanner:
1961 Remove gidl support.
1963 2008-08-28 Colin Walters <walters@verbum.org>
1965 * tests/scanner/Makefile.am: Pass the right
1966 --includedir args. Add a Makefile dep.
1967 * tools/compiler.c: Pass includedirs down.
1968 * girepository/girparser.c: Actually put
1969 includedirs in context, pass down. Fix
1972 2008-08-28 Colin Walters <walters@verbum.org>
1974 * gir/Makefile.am: Use --includedir
1975 * girepository/girparser.c: Recursively parse
1976 includes to pull in aliases and expand them.
1977 We need this to avoid putting unknown names in
1979 * tools/compiler.c: Add --includedir option.
1980 * giscanner/ast.py: Map size/ssize to types
1983 2008-08-28 Tor Lillqvist <tml@novell.com>
1985 Make check now runs successfully on Windows.
1987 * tools/compiler.c (write_out_typelib): Use binary mode for output
1990 * girepository/girnode.c: Don't print NULL strings.
1992 * tests/invoke/Makefile.am
1993 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
1994 convince libtool to build shared libraries.
1996 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
1997 g_assert() instead of printing out expected errors.
1999 2008-08-28 Tor Lillqvist <tml@novell.com>
2001 * girepository/gtypelib.h: Change type of bitfield fields from
2002 guint to the most suitable smaller type. This makes the struct
2003 sizes match the ones on Linux that the sanity check expects when
2004 using gcc -mms-bitfields on Windows.
2006 2008-08-28 Johan Dahlin <johan@gnome.org>
2011 * giscanner/Makefile.am:
2012 * tests/Makefile.am:
2013 * tests/scanner/Makefile.am:
2014 Make distcheck pass.
2016 2008-08-27 Johan Dahlin <johan@gnome.org>
2018 * giscanner/Makefile.am:
2019 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2021 2008-08-27 Tor Lillqvist <tml@novell.com>
2023 Make g-ir-scanner work on Windows. Still problems with the typelib
2024 code. Changes okayed by jdahlin.
2026 * configure.ac: Check for Windows, set Automake conditional
2027 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2028 avoid shell quoting issues
2030 * girepository/Makefile.am: Use -no-undefined so that libtool
2031 agrees to build a shared library on Windows.
2033 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2034 Windows. Empty implementation on Windows so far.
2036 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2037 informative error message for the assertion failures. Tell also
2038 what the expected size of the struct is. Check all sizes first and
2039 fail afterwards if at least one size was different from expected.
2041 * tools/Makefile.am: Reorder libraries into proper logical
2044 * tools/generate.c: Don't include <dlfcn.h>, not used.
2046 * giscanner/Makefile.am: On Windows, link with the Python library,
2047 and install the module DLL as _giscanner.pyd. Remove the
2048 unnecessary import library and libtool library that libtool has
2051 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2052 and just skip it. Recognize also two "l" suffixes for long long
2053 constants. Recognize also __inline__.
2055 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2056 GetFullPathName(). As such, GetFullPathName() does more than the
2057 UNIX realpath(). It also changes relative paths into absolute
2058 paths. But for our purposes that shouldn't matter.
2060 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2061 Windows the file descriptor passed to us is from Python. Python
2062 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2063 uses msvcrt.dll. On Windows, file descriptors are specific to
2064 which C library is used. So we must find out what underlying OS
2065 handle corresponds to the file descriptor Python passes us, and
2066 then make that into a file descriptor valid for the C library this
2069 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2070 __attribute__ as the lexer now handles it. The definition as empty
2071 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2072 __attribute__. Close the temp file before unlinking it.
2074 * giscanner/cgobject.py: Use correct library name for the gobject
2077 * gir/Makefile.am: Must pass the full basename of the DLLs on
2078 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2079 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2080 reality they won't change, until there is a GLib 3, and then also
2081 the Unix code here needs changing.
2083 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2086 2008-08-26 Colin Walters <walters@verbum.org>
2088 * girepository/girepository.c: Search
2089 $DATADIR/girepository instead of
2090 $DATADIR/gitypelibs; this naming makes
2091 it clearer that e.g. jgir can install
2093 * gir/Makefile.am: Install there.
2095 2008-08-26 Colin Walters <walters@verbum.org>
2097 * girepository/gtypelib.c (_g_typelib_init): Also
2098 use G_MODULE_SUFFIX instead of hardcoding .so.
2100 2008-08-26 Colin Walters <walters@verbum.org>
2102 * girepository/gtypelib.c (_g_typelib_init): Free
2103 string in the right place.
2105 2008-08-26 Colin Walters <walters@verbum.org>
2107 * girepository/gtypelib.c (_g_typelib_init): Handle
2108 both .la and .so names; this works better in the
2109 uninstalled library case.
2111 2008-08-26 Johan Dahlin <johan@gnome.org>
2114 * giscanner/Makefile.am:
2115 * giscanner/cgobject.py:
2116 * giscanner/config.py.in:
2117 * giscanner/sourcescanner.py:
2118 Avoid undeffing __GNUC__, instead define
2119 __attribute__ & friends. Remove glibconfig.h hack.
2120 This makes gobject-introspection work better on
2121 MacOS X, Thanks to Richard Hult for kind help.
2123 2008-08-25 Colin Walters <walters@verbum.org>
2125 * giscanner/glibtransformer.py: Always print
2128 2008-08-25 Colin Walters <walters@verbum.org>
2130 * giscanner/glibtransformer.py: Skip over
2131 interfaces we don't know.
2133 2008-08-25 Colin Walters <walters@verbum.org>
2135 * girepository/girparser.c: Parse new implements
2136 syntax, drop gapi one.
2137 * tests/object.gir: Update.
2138 * tools/generate.c: Generate new syntax.
2140 2008-08-25 Colin Walters <walters@verbum.org>
2142 * giscanner/ast.py: Add interfaces property
2144 * giscanner/girwriter.py: Write out implemented
2146 * giscanner/glibtransformer.py: Introspect
2147 implemented interfaces.
2148 * tests/scanner/*: Make FooObject implement
2151 2008-08-25 Colin Walters <walters@verbum.org>
2153 * giscanner/glibtransformer.py: More correctly pair
2154 methods; if we have a symbol that starts with
2155 e.g. hippo_canvas look for a matching HippoCanvas
2156 class before accepting e.g. HippoCanvasImage.
2158 2008-08-24 Colin Walters <walters@verbum.org>
2160 * tools/g-ir-scanner: Filter out unknown options from
2163 2008-08-24 Colin Walters <walters@verbum.org>
2165 * giscanner/glibtransformer.py: Fail with better
2166 error if we can't find library.
2168 2008-08-24 Colin Walters <walters@verbum.org>
2170 * tools/g-ir-scanner: Use subprocess instead of
2171 commands, works on Windows and avoids the evil
2174 2008-08-24 Colin Walters <walters@verbum.org>
2176 * giscanner/glibtransformer.py: Skip over
2177 g_object_get_type from GLib trunk.
2179 2008-08-24 Colin Walters <walters@verbum.org>
2181 * girepository/girepository.c (g_irepository_require):
2182 Don't open shared library here; we already do it
2185 2008-08-24 Colin Walters <walters@verbum.org>
2187 * girepository/gtypelib.c: Add context stack so
2188 when we get an error we can print out nicely
2191 2008-08-24 Johan Dahlin <johan@gnome.org>
2193 * girepository/girparser.c (start_glib_boxed), (start_function),
2194 (start_field), (start_alias):
2195 Refactor a couple of parsing functions to be simpler to follow.
2198 2008-08-24 Johan Dahlin <johan@gnome.org>
2200 * girepository/girparser.c (start_function):
2201 Remove left-over code, checking type of function.
2203 2008-08-23 Colin Walters <walters@verbum.org>
2205 * giscanner/config.py: Define DATADIR.
2206 * giscanner/transformer.py: Look in DATADIR.
2208 2008-08-23 Colin Walters <walters@verbum.org>
2210 * girepository/gtypelib.c: Check constructor
2212 * girepository/girnode.c: Small tweaks.
2213 * girepository/ginfo.c: Calculate signature offsets
2215 * girepository/girparser.c: Remove duplicate
2217 * giscanner/glibtransformer.py: Avoid marking
2218 functions which return a basic type as
2221 2008-08-23 Colin Walters <walters@verbum.org>
2223 * girepository/girparser.c: Ignore <include>.
2224 * giscanner/girparser.py: Parse them.
2225 * giscanner/girwriter.py: Generate them.
2226 * giscanner/transformer.py: Process <include>
2227 recursively. Don't require full path for
2228 includes, look in {$XDG_DATA_DIRS}/gir.
2229 * tools/g-ir-scanner: Pass through includes.
2230 * Makefile.am: Remove extra --include
2232 * *-expected.gir: Add expected includes.
2234 2008-08-23 Johan Dahlin <johan@gnome.org>
2236 * tests/scanner/Makefile.am:
2237 * tests/scanner/annotation-expected.gir:
2238 * tests/scanner/drawable-expected.gir:
2239 Avoid duplication in the Makefile, regenerate with new
2240 namespaces (same as the filename)
2242 2008-08-22 Colin Walters <walters@verbum.org>
2244 * girepository/girnode.c: Don't hardcode integers,
2247 2008-08-22 Johan Dahlin <johan@gnome.org>
2249 * giscanner/sourcescanner.py:
2250 Check for ../gobject-introspection-1.0.pc.in to determine
2251 if we run installed or uninstalled.
2253 2008-08-22 Johan Dahlin <johan@gnome.org>
2256 * giscanner/sourcescanner.py:
2257 Send in undefs/defines via writing it directly to stdin
2258 of cpp instead of via arguments.
2260 2008-08-22 Colin Walters <walters@verbum.org>
2262 * tools/generate.c, tools/compiler.c: Default
2264 * all Makefile.am: Update.
2266 2008-08-22 Colin Walters <walters@verbum.org>
2268 * girepository/girparser.c: Pass through
2269 recursive types. Avoid overwriting errors.
2270 * giscanner/xmlwriter.py: Always write the
2272 * tests/*.gir: Adjust.
2273 * tests/scanner/Makefile.am: Build typelibs,
2274 and generate XML from those. Once we
2275 have a good diff mechanism...
2276 * tests/scanner/*-expected.gir: Add XML
2278 * tools/g-ir-scanner: Accept --typelib-xml
2280 * tools/generate.c: Better defaults for transfer.
2282 2008-08-22 Johan Dahlin <johan@gnome.org>
2286 * giscanner/Makefile.am:
2287 * giscanner/config.py.in:
2288 * giscanner/sourcescanner.py:
2289 Use the generated glibconfig.h for all scanner invokations.
2290 Rename it to glibconfig-scanner.h and install it.
2291 Add a config.py which so far contains the include dir.
2293 2008-08-22 Johan Dahlin <johan@gnome.org>
2296 Replace glibconfig.h with our own, do some replacement
2297 for CPP/C features we do not support
2299 2008-08-22 Colin Walters <walters@verbum.org>
2301 * tools/generate.c (write_callable_info): Fix unref
2304 2008-08-22 Colin Walters <walters@verbum.org>
2306 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2307 * tests/Makefile.am: Support $(DEBUG)
2308 * tools/generate.c: Do immediate close tags if no
2311 2008-08-21 Colin Walters <walters@verbum.org>
2313 * tests/scanner/drawable-expected.gir,
2314 * tests/scanner/drawable.c,
2315 * tests/scanner/drawable.h:
2318 2008-08-21 Colin Walters <walters@verbum.org>
2320 * giscanner/glibtransformer.py: Compute prefix
2321 by searching through the symbol for bits
2322 rather than going directly from ctype; this fixes
2325 2008-08-21 Colin Walters <walters@verbum.org>
2327 * giscanner/glibtransformer.py: Also try squashing
2328 underscores from namespace, fixes webkit_web_view_new.
2330 2008-08-21 Colin Walters <walters@verbum.org>
2332 * giscanner/glibtransformer.py: More ctor work,
2333 avoid having gtk_window_group_new end up under
2336 2008-08-21 Colin Walters <walters@verbum.org>
2338 * giscanner/glibtransformer.py: Much simpler approach
2339 of mapping uscored names to classes.
2340 * giscanner/utils.py: Remove unnecessary function.
2342 2008-08-21 Johan Dahlin <johan@gnome.org>
2344 * girepository/girepository.c (g_irepository_require):
2345 Plug memory leak and avoid using freed memory.
2346 Resolve the whole module path, here as well.
2348 2008-08-21 Colin Walters <walters@verbum.org>
2350 * giscanner/glibtransformer.py: Look up all permutations
2351 of class names when scanning methods/ctors based on
2352 the prefix instead of using the return value. This
2353 associates gtk_window_new with the right class.
2355 2008-08-21 Colin Walters <walters@verbum.org>
2357 * girepository/girmodule.c (g_ir_module_build_typelib):
2358 Revert change to increment header_size; we do that in
2361 2008-08-21 Colin Walters <walters@verbum.org>
2363 * girepository/girnode.c (write_string): Tweak to
2364 use UINT instead of INT. Not likely to matter.
2365 * girepository/girmodule.c (g_ir_module_build_typelib):
2366 Add to header_offset as well for header strings
2367 to match what write_string does.
2368 * girepository/gtypelib.c: Replace is_name with
2369 validate_name, which more strongly validates and
2370 handles errors in a better way. Update all callers.
2371 * giscanner/glibtransformer.py: Handle constructors
2374 2008-08-21 Johan Dahlin <johan@gnome.org>
2376 * gir/Makefile.am (typelibs_DATA): Build and
2377 install the Gio.typelib too
2379 * girepository/gtypelib.c (_g_typelib_init):
2380 Use g_module_build_path to resolve the shlib name
2382 2008-08-21 Colin Walters <walters@verbum.org>
2384 * gir/Makefile.am: CLEANFILES typelibs too.
2386 2008-08-21 Johan Dahlin <johan@gnome.org>
2388 * giscanner/glibtransformer.py:
2389 Do not send .la files through find_library.
2391 2008-08-21 Colin Walters <walters@verbum.org>
2393 * girepository/girparser.c (g_irepository_require):
2394 Fix one small leak in error case.
2396 2008-08-21 Johan Dahlin <johan@gnome.org>
2399 Parse glibconfig.h as well and install the compiled
2402 2008-08-21 Johan Dahlin <johan@gnome.org>
2405 * giscanner/glibtransformer.py:
2406 * tools/g-ir-scanner:
2407 Do not hard-core library names in the Makefile, reuse
2408 ctypes find_library instead.
2410 2008-08-21 Johan Dahlin <johan@gnome.org>
2412 * girepository/girparser.c (resolve_aliases):
2413 Remove compilation warnings
2415 2008-08-21 Johan Dahlin <johan@gnome.org>
2417 * girepository/girepository.c (g_irepository_require):
2418 Rewrap and fix double free bug by leaking a bit.
2420 2008-08-20 Colin Walters <walters@verbum.org>
2422 * girepository/girepository.c: Add new function
2423 g_irepository_get_typelib_path which tells
2424 us from where we loaded a namespace.
2426 2008-08-20 Colin Walters <walters@verbum.org>
2428 * tests/scanner/*-expected.gir: Adjust for
2429 added shared-library.
2430 * giscanner/giwriter.py: Make pylint happy.
2432 2008-08-20 Colin Walters <walters@verbum.org>
2434 * girepository/girmodule.c (g_ir_module_build_typelib):
2435 Calculate size correctly, avoid use-after-free.
2437 2008-08-20 Colin Walters <walters@verbum.org>
2439 * girepository/girepository.c: Remove
2440 g_irepository_register_file in favor of
2441 g_irepository_require. There are two
2442 possible deployment scenarios for typelibs:
2443 First, separate in $DATADIR/gitypelibs/. Second,
2444 they may be embedded in shlibs. However since
2445 the first is now the normal case, the API is
2446 optimized around it.
2448 Refactor internals to look up typelibs for
2449 namespaces just-in-time, but we expect
2450 consumers to call g_irepository_require.
2452 Also, add some docs. No one has died from that
2454 * gir/Makefile.am: Need --library for glib.
2455 * giscanner/girwriter.py: Write out shared-library.
2456 * tools/g-ir-writer: Take the first --library
2457 argument as the target of shared-library. In
2458 the future we should make this nicer with pkg-config
2461 2008-08-20 Colin Walters <walters@verbum.org>
2463 * girepository/girparser.py: And parse them.
2465 2008-08-20 Johan Dahlin <johan@gnome.org>
2467 * giscanner/glibast.py: Add gshort/gushort types
2469 2008-08-20 Colin Walters <walters@verbum.org>
2471 * gir/Makefile.am: Rename .gir files using GI namespace.
2472 * girepository/girepository.c: Use XDG_DATA_DIRS for
2473 looking up typelibs. Also typelibs are now suffixed
2475 * tests/invoke/Makefile.am: Only use metadata.
2476 * girepository/Makefile.am: Remove unnecessary include.
2477 * tests/scanner/Makefile.am: Update using GI namespaces
2478 for scanner includes.
2480 2008-08-20 Colin Walters <walters@verbum.org>
2482 * girepository/transformer.py: Suppress aliases whose
2484 * girepository/ast.py: Define some more aliases.
2486 2008-08-20 Colin Walters <walters@verbum.org>
2488 * girepository/girparser.c: Avoid alias infloops.
2490 2008-08-20 Colin Walters <walters@verbum.org>
2492 * tests/scanner/foo-expected.gir: Fix expected list type.
2494 2008-08-20 Johan Dahlin <johan@gnome.org>
2496 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2497 Add a workaround for #548689.
2498 We can now compile gtk!
2500 2008-08-20 Colin Walters <walters@verbum.org>
2502 * giscanner/glibtransformer.py: Try to look up
2503 aliases using the c:type too.
2505 2008-08-20 Colin Walters <walters@verbum.org>
2507 * girepository/girparser.c: Parse union fields.
2509 2008-08-20 Johan Dahlin <johan@gnome.org>
2511 * giscanner/ast.py: Make time_t an alias for long
2513 * gir/gio-2.0-good.gir:
2514 * gir/glib-2.0-good.gir:
2515 * gir/gobject-2.0-good.gir:
2517 * giscanner/glibtransformer.py:
2518 Do not delete Class structures, we need them in gdk/gtk.
2519 * tests/scanner/drawable-expected.gir:
2520 * tests/scanner/foo-expected.gir:
2521 * tests/scanner/utility-expected.gir:
2524 2008-08-20 Johan Dahlin <johan@gnome.org>
2526 * tests/scanner/Makefile.am:
2527 * tests/scanner/annotation-expected.gir:
2528 * tests/scanner/annotation.c (annotation_object_class_init),
2529 (annotation_object_init), (annotation_object_method),
2530 (annotation_object_in), (annotation_object_out),
2531 (annotation_object_inout), (annotation_object_inout2),
2532 (annotation_object_inout3), (annotation_object_calleeowns),
2533 (annotation_object_calleesowns), (annotation_object_get_strings),
2534 (annotation_object_with_voidp), (annotation_object_get_objects),
2535 (annotation_object_create_object), (annotation_object_allow_none):
2536 * tests/scanner/annotation.h:
2537 * tests/scanner/foo-expected.gir:
2538 * tests/scanner/foo.c:
2539 * tests/scanner/foo.h:
2540 Split out annotation tests out of foo
2542 2008-08-20 Johan Dahlin <johan@gnome.org>
2544 * tests/scanner/Foo-expected.gir:
2545 * tests/scanner/Makefile.am:
2546 * tests/scanner/foo-expected.gir:
2547 * tests/scanner/foo-object.h:
2548 * tests/scanner/foo.c:
2549 Foo->foo, foo-object.h -> foo.h
2551 2008-08-20 Johan Dahlin <johan@gnome.org>
2553 * tests/scanner/Foo-expected.gir:
2554 * tests/scanner/Makefile.am:
2555 * tests/scanner/drawable-expected.gir:
2556 * tests/scanner/drawable.c (test_drawable_class_init),
2557 (test_drawable_init):
2558 * tests/scanner/drawable.h:
2559 * tests/scanner/foo-object.h:
2560 * tests/scanner/foo.c (foo_boxed_method):
2561 Move the drawable parts out of Foo to its own test.
2563 2008-08-20 Johan Dahlin <johan@gnome.org>
2565 * tests/scanner/Foo-expected.gir:
2566 * tests/scanner/foo-object.h:
2567 * tests/scanner/foo.c (foo_drawable_class_init),
2568 (foo_drawable_init):
2569 Add a based on GdkDrawable which generates
2572 2008-08-19 Colin Walters <walters@verbum.org>
2574 * giscanner/transformer.py: Don't try
2575 to strip prefix before namespace.
2577 2008-08-19 Johan Dahlin <johan@gnome.org>
2579 * giscanner/transformer.py:
2580 * tests/scanner/Foo-expected.gir:
2581 * tests/scanner/foo-object.h:
2582 Add support for typedef void foo type of
2585 2008-08-19 Johan Dahlin <johan@gnome.org>
2588 * giscanner/girwriter.py:
2589 * giscanner/glibtransformer.py:
2590 * giscanner/transformer.py:
2591 * tests/scanner/Foo-expected.gir:
2592 Add basic support for union, base the code much
2593 on Struct. Add a testcase.
2595 2008-08-19 Johan Dahlin <johan@gnome.org>
2597 * tests/scanner/Foo-expected.gir:
2598 * tests/scanner/foo-object.h:
2599 Add a union testcase which the compiler currently
2602 2008-08-19 Johan Dahlin <johan@gnome.org>
2604 * gobject-introspection-1.0.pc.in:
2605 Add a g_ir_compiler variable
2607 2008-08-19 Colin Walters <walters@verbum.org>
2609 * giscanner/ast.py: Rework types to be more closely
2611 * giscanner/girparser.py: Parse more bits.
2612 * giscanner/girwriter.py: Write sequences in a new
2613 way that specifies container type.
2614 * giscanner/glibast.py: Adjust for ast.py changes,
2615 add 'ctype' property to GLibObject and GLibInterface
2616 so we can look things up by it later.
2617 * gicanner/transformer.py: Names is new class holding
2618 the various namespaces we manage. Do not confuse
2619 with Namespace which is toplevel XML node effectively.
2620 Rework all type resolution to go through
2621 _resolve_type_name_1.
2622 * giscanner/glibtransformer.py: Raise UnknownTypeError
2623 instead of ValueError for cleanliness. Add Unresolved
2624 class to mark types whose parent we haven't seen yet.
2625 Use new Names object from transformer.py.
2626 Correctly look up parent=.
2627 Fix type validation to handle sequences.
2628 * tests/scanner/Foo-expected.gir: Update for sequence
2629 work, int instead of int32.
2630 * tools/g-ir-scanner: Add --noclosure option
2631 * gir/Makefile.am: Use --noclosure by default for
2634 2008-08-18 Johan Dahlin <johan@gnome.org>
2636 * gir/gio-2.0-good.gir:
2637 * gir/glib-2.0-good.gir:
2638 * gir/gobject-2.0-good.gir:
2641 2008-08-18 Johan Dahlin <johan@gnome.org>
2644 * giscanner/girparser.py:
2645 * giscanner/girwriter.py:
2646 * giscanner/glibast.py:
2647 * giscanner/glibtransformer.py:
2648 * giscanner/transformer.py:
2649 * tests/scanner/Foo-expected.gir:
2650 * tests/scanner/foo-object.h:
2651 * tests/scanner/utility-expected.gir:
2652 * tests/scanner/utility.h:
2653 Redo type resolving and validation.
2654 Add a couple of new tests.
2655 Patch mostly written by Colin.
2657 2008-08-18 Johan Dahlin <johan@gnome.org>
2660 * giscanner/girparser.py:
2662 * giscanner/transformer.py:
2663 Improve enum parsing for enums without a GType.
2664 Make flags/enum references to other girs work
2665 * giscanner/utils.py:
2667 * tests/scanner/Makefile.am:
2668 * tests/scanner/foo-object.h:
2669 * tests/scanner/utility-expected.gir:
2670 * tests/scanner/utility.h:
2671 Add a new test for external enum references
2673 2008-08-18 Johan Dahlin <johan@gnome.org>
2675 * docs/global-module-registry.txt: Update
2677 * tests/array.gir: Update with new type proposal
2679 * girepository/girepository.c (g_type_tag_to_string):
2680 * girepository/girepository.h:
2681 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2683 * girepository/girnode.h:
2684 Make enum serializing functions public. Clean up some whitespace.
2686 2008-08-17 Johan Dahlin <johan@gnome.org>
2688 * docs/global-module-registry.txt:
2689 Add a document for an on disk module registry format
2691 2008-08-17 Johan Dahlin <johan@gnome.org>
2694 * gir/gio-2.0-good.gir:
2697 2008-08-17 Johan Dahlin <johan@gnome.org>
2700 * gir/glib-2.0-good.gir:
2701 * gir/gobject-2.0-good.gir:
2702 * giscanner/cgobject.py:
2703 * giscanner/glibtransformer.py:
2704 Regenerate GObject & GType.
2705 Avoid warnings when generating gobject-2.0.gir.
2706 Introspect a little more, and skip *_get_type functions.
2708 2008-08-17 Colin Walters <walters@verbum.org>
2710 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2711 Rename to -good, always generate during build.
2712 * gir/Makefile.am: Ensure .gir files dep on
2713 all scanner sources.
2714 * Makefile.am: Switch build order to ensure
2715 the scanner is ready before we do gir/.
2716 * tools/g-ir-scanner: Look for .git too.
2718 2008-08-17 Johan Dahlin <johan@gnome.org>
2720 * girepository/gtypelib.c (validate_enum_blob):
2721 * giscanner/glibtransformer.py:
2722 * giscanner/transformer.py:
2723 Remove resolve_possible_typedefs, it was unused.
2724 Allow multiple enum values of the sample value in an enum,
2725 since it's actually pretty common.
2726 Register enums so they can be resolved too.
2728 2008-08-16 Johan Dahlin <johan@gnome.org>
2730 * giscanner/girparser.py:
2731 Parse enumeration/bitfield.
2733 2008-08-16 Johan Dahlin <johan@gnome.org>
2735 * giscanner/girparser.py:
2738 2008-08-16 Johan Dahlin <johan@gnome.org>
2740 * giscanner/glibtransformer.py:
2741 Resolve type names for alias targets
2742 * giscanner/transformer.py:
2743 Skip FILE* parameters fow now
2745 2008-08-16 Johan Dahlin <johan@gnome.org>
2748 * gir/gobject-2.0.gir:
2751 * tests/scanner/Makefile.am:
2754 2008-08-15 Colin Walters <walters@verbum.org>
2756 * giscanner/glibtransformer.py: Explicitly construct
2757 new list, since we're deleting as we iterate.
2758 Don't delete all structures which end in Class; just
2759 ones which have a paired GObject.
2760 Fix printing of type warning.
2761 * giscanner/transformer.py: Make strip_namespace_object
2762 be the identity function if it doesn't match the
2765 2008-08-15 Colin Walters <walters@verbum.org>
2767 * giscanner/cgobject.py: Define yet more argument
2768 prototypes; fix prototype for g_type_fundamental.
2770 2008-08-14 Johan Dahlin <johan@gnome.org>
2772 * tests/Makefile.am:
2773 * tests/constant.gir:
2774 * tests/gobject.gir:
2776 * tools/generate.c (write_struct_info):
2777 Fix generator for constant/gobject/struct
2779 2008-08-14 Johan Dahlin <johan@gnome.org>
2781 * tests/Makefile.am:
2783 * tools/generate.c (write_enum_info):
2784 Fix generation of enum/bitfields
2786 2008-08-14 Johan Dahlin <johan@gnome.org>
2788 * girepository/girparser.c (start_field), (start_constant),
2789 (start_type), (end_element_handler):
2790 Clear up constant parsing
2795 * tools/generate.c (write_callable_info), (write_function_info),
2796 (write_callback_info), (write_constant_info), (write_signal_info),
2797 (write_vfunc_info), (write_property_info), (write_object_info),
2798 (write_interface_info):
2799 Constants/Signals are handled now.
2801 2008-08-14 Johan Dahlin <johan@gnome.org>
2803 * girepository/girparser.c (start_type):
2804 Don't require c:type.
2805 * tests/Makefile.am:
2808 Update, remove parts we don't support yet
2809 * tests/roundtrips.sh:
2811 * tools/generate.c (write_type_info), (write_field_info),
2812 (write_callable_info), (write_struct_info):
2813 Make it emit proper gir.
2815 2008-08-14 Johan Dahlin <johan@gnome.org>
2817 * giscanner/transformer.py:
2818 New internal function for adding a new node.
2820 2008-08-14 Johan Dahlin <johan@gnome.org>
2823 Define an internal _H_ variable so we skip parsing both
2824 i18n headers, only one is needed.
2826 Add the glib-2.0.gir too.
2827 * giscanner/glibast.py:
2828 Add gconstpointer as an alias for ANY
2829 * giscanner/transformer.py:
2830 Do not lower case enumeration names per se.
2831 Skip functions which has parameters called 'va_list'
2833 2008-08-14 Colin Walters <walters@verbum.org>
2835 * giscanner/transformer.py: Comment data structures.
2836 Also squash pointers in resolve_type_name to correspond
2837 with what we do for params.
2838 * giscanner/glibtransformer.py: Print warnings in more
2839 situations. Rework checks for method/constructor to
2840 look up in our GType database instead of just checking
2841 for *. Avoid generating <record> for GObject which
2842 duplicate the <class>.
2843 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2846 2008-08-14 Johan Dahlin <johan@gnome.org>
2848 * giscanner/girwriter.py:
2849 * giscanner/glibast.py:
2850 * giscanner/glibtransformer.py:
2851 * giscanner/transformer.py:
2853 * tests/Makefile.am:
2854 Add pyflakes.py and run it in make check.
2855 Update the source code to fix the errors reported by
2858 2008-08-14 Johan Dahlin <johan@gnome.org>
2861 * giscanner/girparser.py:
2862 * giscanner/glibast.py:
2863 * giscanner/glibtransformer.py:
2864 Refactor the parser a bit.
2865 Add parent type to interfaces and update callsites.
2867 2008-08-14 Johan Dahlin <johan@gnome.org>
2869 * giscanner/glibtransformer.py:
2870 * giscanner/utils.py:
2871 Refactor a bit, avoid isinstance and add a method
2872 for each type we parse.
2874 2008-08-14 Johan Dahlin <johan@gnome.org>
2877 * giscanner/girparser.py:
2878 * giscanner/glibtransformer.py:
2879 * tests/Makefile.am:
2880 Run pep8.py in make check, fix old errors.
2882 2008-08-13 Colin Walters <walters@verbum.org>
2884 * giscanner/girparser.py: Parse records.
2886 2008-08-13 Colin Walters <walters@verbum.org>
2888 * gir/Makefile.am: Install again.
2889 * gir/gobject-2.0.gir: Add some more bits.
2891 2008-08-13 Colin Walters <walters@verbum.org>
2893 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2894 * giscanner/girparser.py: Handle aliases.
2895 * giscanner/transformer.py: Record aliases. Make resolver
2896 functions public; we now call into these explicitly from
2897 glibtransformer. Handle resolving aliases.
2898 * giscanner/glibtransformer.py: Separate our internal namespace
2899 from included ones. Call up into transformer's resolver functions.
2901 2008-08-13 Johan Dahlin <johan@gnome.org>
2903 * girepository/girnode.c (g_ir_node_get_full_size_internal):
2904 * girepository/girparser.c (start_class):
2905 * giscanner/glibtransformer.py:
2906 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
2908 2008-08-13 Johan Dahlin <johan@gnome.org>
2910 * giscanner/cgobject.py:
2911 Register GInitiallyUnowned
2912 * giscanner/girwriter.py:
2913 * giscanner/glibtransformer.py:
2914 Special case GObject/GInitially owned as they are a bit special to use.
2916 2008-08-13 Colin Walters <walters@verbum.org>
2918 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
2919 Object is in GObject namespace.
2921 2008-08-13 Colin Walters <walters@verbum.org>
2923 * giscanner/girparser.py: Fix processing of functions
2926 2008-08-13 Colin Walters <walters@verbum.org>
2928 * giscanner/girparser.py: Parse more than just <class.
2929 * giscanner/glibtransformer.py: Put aliases in a separate
2930 data structure since their name is not canonicall.
2931 * giscanner/transformer.py: Handle resolving type names
2934 2008-08-13 Johan Dahlin <johan@gnome.org>
2936 * tools/g-ir-scanner:
2937 Allow multiple libraries
2938 * giscanner/glibtransformer.py:
2939 Rename load_library to add_library, traverse over all libraries
2940 when trying to resolve a function
2942 2008-08-12 Colin Walters <walters@verbum.org>
2944 * giscanner/transformer.py: Record typedefs as <alias> elements.
2945 Also attempt to look up types in external namespaces.
2946 * giscanner/girwriter.py: Write them.
2947 * giscanner/glibtransformer.py: Rework resolver using real instanceof
2948 checks. Resolve interface methods and properties.
2949 * tests/scanner/foo-object.h: Add a method with typedef.
2950 * tests/scanner/Foo-expected.gir: Update.
2951 * girepository/girnode.c: Debug tweaks.
2952 * girepository/girparser.c: Make a first pass through the XML where we
2953 record all the aliases. This lets us resolve them as we go through the
2955 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
2956 from gir-repository.
2958 2008-08-12 Colin Walters <walters@verbum.org>
2960 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
2961 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
2963 * giscanner/transformer.py: Record typedefs and expose public API for resolving
2965 * tests/scanner/Foo-expected.gir: Fix expected callback types.
2967 2008-08-12 Colin Walters <walters@verbum.org>
2969 * giscanner/glibtransformer.py: Also transform object properties.
2971 2008-08-12 Colin Walters <walters@verbum.org>
2973 * giscanner/glibtransformer.py: Also transform callbacks
2974 and structure field types.
2975 * tests/scanner/Fooe-expected.gir: Update to expect correct
2976 names for callbacks and structs.
2978 2008-08-12 Colin Walters <walters@verbum.org>
2980 * girepository/girparser.c: Handle 'any'.
2981 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2982 Add test for void *.
2984 2008-08-12 Colin Walters <walters@verbum.org>
2986 * giscanner/glibtransformer.py: We need to do type
2987 resolution in a second pass after we've seen all the
2988 enums, records, etc.
2990 2008-08-12 Colin Walters <walters@verbum.org>
2992 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2993 Add enum return value.
2994 * giscanner/glibtransformer.py: Transform function return types
2997 2008-08-12 Colin Walters <walters@verbum.org>
2999 * tests/scanner/Makefile.am: Dep .gir files on scanner
3000 sources too. Also remove @ so we see scanner invocations.
3002 2008-08-12 Colin Walters <walters@verbum.org>
3004 * girepository/girparser.c, girepository/gtypelib.c,
3005 girepository/gtypelib.h, girepository/girnode.c:
3006 Remove usage of (GAPI-oriented) TypeTag in favor of
3007 GITypeTag from girepository.h.
3009 2008-08-10 Colin Walters <walters@verbum.org>
3011 * tests/roundtrips.sh: Use the correct tests.
3013 2008-08-10 Colin Walters <walters@verbum.org>
3015 * giscanner/cgobject.py: Declare/wrap a few more functions.
3016 Fix parameter types for g_object_new and g_type_fundamental.
3018 2008-08-10 Colin Walters <walters@verbum.org>
3020 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3021 us to declare types for both return value and parameters. The
3022 ctypes default of 'int' is bad because it hides 32/64 bit
3023 problems. Convert all existing functions to use it.
3025 2008-08-09 Johan Dahlin <johan@gnome.org>
3027 * giscanner/__init__.py:
3029 * giscanner/cgobject.py:
3030 * giscanner/gidlparser.py:
3031 * giscanner/gidlwriter.py:
3032 * giscanner/girparser.py:
3033 * giscanner/girwriter.py:
3034 * giscanner/glibast.py:
3035 * giscanner/glibtransformer.py:
3036 * giscanner/odict.py:
3037 * giscanner/sourcescanner.py:
3038 * giscanner/transformer.py:
3039 * giscanner/utils.py:
3040 * giscanner/xmlwriter.py:
3041 * tools/g-ir-scanner:
3045 2008-08-09 Johan Dahlin <johan@gnome.org>
3048 * relaxng/c-types.xml:
3049 * relaxng/g-types.xml:
3050 * relaxng/relaxng.rng:
3052 Remove outdated relaxng schemas.
3054 2008-08-09 Johan Dahlin <johan@gnome.org>
3057 Rename metadata to typelib in variable names,
3060 2008-08-09 Johan Dahlin <johan@gnome.org>
3064 Remove old C scanner, which got rewritten in python.
3066 2008-08-09 Johan Dahlin <johan@gnome.org>
3068 * girepository/Makefile.am:
3069 * tools/Makefile.am:
3070 * tools/girmodule.c:
3071 * tools/girmodule.h:
3074 * tools/girparser.c:
3075 * tools/girparser.h:
3076 * tools/girwriter.c:
3077 * tools/girwriter.h:
3078 Move shared *.[ch] files to girepository from tools
3080 2008-08-09 Johan Dahlin <johan@gnome.org>
3082 * tests/Makefile.am:
3085 * tests/constant.test:
3087 * tests/errors.test:
3088 * tests/function.test:
3089 * tests/gobject.test:
3090 * tests/interface.test:
3091 * tests/object.test:
3092 * tests/struct.test:
3097 Rename *.test to *.gir
3099 2008-08-09 Johan Dahlin <johan@gnome.org>
3102 * tests/Makefile.am:
3103 * tests/parser/Foo-expected.gir:
3104 * tests/parser/Makefile.am:
3105 * tests/parser/foo-object.h:
3106 * tests/parser/foo.c:
3107 * tests/parser/utility-expected.gir:
3108 * tests/parser/utility.c:
3109 * tests/parser/utility.h:
3110 * tests/scanner/Makefile.am:
3111 Rename tests/parser to test/scanner
3113 2008-08-08 Colin Walters <walters@verbum.org>
3115 * tests/roundtrips.sh: Use local .gir files again.
3117 2008-08-08 Colin Walters <walters@verbum.org>
3119 * tests/invoke/Makefile.am: .gir file depends on libtool
3122 2008-08-08 Colin Walters <walters@verbum.org>
3124 * tools/girnode.c: Pass through parent node so we can
3125 print the node whose child is NULL, if that occurs.
3127 2008-08-08 Johan Dahlin <johan@gnome.org>
3129 * tests/Makefile.am:
3130 Disable roundtrip tests which are not yet working
3131 * tests/invoke/testfns.gir:
3134 2008-08-08 Johan Dahlin <johan@gnome.org>
3136 * giscanner/girwriter.py:
3138 * giscanner/glibast.py:
3139 * giscanner/glibtransformer.py:
3140 Swap order of members, to keep it consistent with
3143 2008-08-08 Johan Dahlin <johan@gnome.org>
3145 * girepository/gtypelib.c (validate_header):
3146 * girepository/gtypelib.h:
3148 * giscanner/girwriter.py:
3149 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3150 (gi_source_symbol_unref):
3153 * tests/constant.test:
3155 * tests/errors.test:
3156 * tests/function.test:
3157 * tests/gobject.test:
3158 * tests/interface.test:
3159 * tests/invoke/Makefile.am:
3160 * tests/invoke/testfns.xml:
3161 * tests/object.test:
3162 * tests/parser/Makefile.am:
3163 * tests/roundtrips.sh:
3164 * tests/struct.test:
3169 * tools/Makefile.am:
3170 * tools/compiler.c (main):
3171 * tools/generate.c (write_callable_info), (write_function_info),
3173 * tools/gidlmodule.c:
3174 * tools/gidlmodule.h:
3177 * tools/gidlparser.c:
3178 * tools/gidlparser.h:
3179 * tools/gidlwriter.c:
3180 * tools/gidlwriter.h:
3181 * tools/scanner.c (create_node_from_gtype),
3182 (create_node_from_ctype), (g_igenerator_process_properties),
3183 (g_igenerator_process_signals), (g_igenerator_create_object),
3184 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3185 (g_igenerator_create_enum), (g_igenerator_create_flags),
3186 (g_igenerator_process_function_symbol),
3187 (g_igenerator_process_unregistered_struct_typedef),
3188 (g_igenerator_process_struct_typedef),
3189 (g_igenerator_process_union_typedef),
3190 (g_igenerator_process_enum_typedef),
3191 (g_igenerator_process_function_typedef),
3192 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3193 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3194 Merge in the gir-compiler branch.
3195 Thanks to Philip and Colin for their help.
3197 2008-07-26 Colin Walters <walters@verbum.org>
3199 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3200 and g-idl-generate to go along with how we're changing this
3201 module to be installed.
3202 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3204 2008-07-24 Colin Walters <walters@verbum.org>
3206 * girepository/girepository.c (g_irepository_register): Add
3207 environment variable G_IREPOSITORY_VERBOSE so we can print
3208 out what we're doing.
3209 * girepository/girepository.c (g_irepository_register_file):
3210 Add GError error message to g_debug call.
3212 2008-07-08 Jürg Billeter <j@bitron.ch>
3214 * giscanner/glibast.py:
3218 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3220 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3223 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3226 * giscanner/girwriter.py:
3227 * giscanner/transformer.py:
3228 * tests/parser/Foo-expected.gir:
3229 * tests/parser/foo-object.h:
3230 * tests/parser/foo.c (foo_object_allow_none):
3231 Add support for gtk-doc annotations for allow-none.
3234 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3237 * giscanner/girwriter.py:
3238 * giscanner/glibast.py:
3239 * giscanner/glibtransformer.py:
3240 * giscanner/transformer.py:
3241 * tests/parser/Foo-expected.gir:
3242 Start using abstract type instead of the raw C types.
3243 Register a bunch of glib types we care about.
3245 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3250 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3252 * girepository/girepository.c:
3253 * girepository/gtypelib.c:
3254 * girepository/ginfo.c:
3255 * girepository/ginvoke.c:
3256 * girepository/girepository.h:
3257 * girepository/gtypelib.h:
3258 * girepository/gmetadata.c:
3259 * girepository/Makefile.am:
3260 * girepository/gmetadata.h:
3262 * tools/gidlmodule.c:
3265 * tools/gidlmodule.h:
3266 * tools/gidlparser.c:
3268 Renamed GMetadata to GTypelib
3270 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3272 * giscanner/xmlwriter.py:
3273 Improve line wrapping when > 79 charaters
3275 2008-06-05 Jürg Billeter <j@bitron.ch>
3278 * giscanner/girwriter.py:
3279 * giscanner/transformer.py:
3280 Use <type> element for field types
3281 * tests/parser/Foo-expected.gir:
3284 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3286 * giscanner/glibtransformer.py:
3287 Fix a bug which prevented GdkEvent from being generated
3289 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3291 * giscanner/Makefile.am:
3293 * giscanner/girwriter.py:
3294 * giscanner/glibast.py:
3295 * giscanner/glibtransformer.py:
3296 * giscanner/transformer.py:
3297 * giscanner/utils.py:
3298 * tests/parser/Foo-expected.gir:
3299 Improve enum member parsing and introspection
3301 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3303 * giscanner/scannerparser.y:
3304 * giscanner/sourcescanner.h:
3305 * giscanner/sourcescanner.py:
3306 Add a new source type enum for member.
3307 Use __repr__ for improved debugging
3308 * giscanner/girparser.py:
3310 * giscanner/transformer.py:
3311 Improve parsing of struct members.
3312 * tests/parser/foo-object.h:
3315 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3317 * giscanner/xmlwriter.py:
3318 Improve error reporting when trying to quote None.
3319 * giscanner/girparser.py:
3320 Do not print warnings when including more complete .gir files
3321 * giscanner/girwriter.py:
3322 Do not require a name for parameters, add a todo for singletons
3323 * giscanner/glibtransformer.py:
3324 Refactor the way structs are done, add a couple of hacks to allow
3326 * giscanner/transformer.py:
3327 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3328 * gobject-introspection-1.0.pc.in:
3329 Export girdir, so we can access gobject-2.0.gir from outside
3331 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3333 * tools/g-ir-scanner:
3334 * tests/parser/Makefile.am:
3335 Update sys.path before running the parser so we don't have
3336 to setup PYTHONPATH ourselves.
3340 * girepository/Makefile.am:
3341 * giscanner/transformer.py:
3342 * gobject-introspection-1.0.pc.in:
3343 * gobject-introspection.pc.in:
3344 * tools/Makefile.am:
3346 Rename pkg-config name to gobject-introspection-1.0,
3347 Do not installed anything which is not using the gir format.
3348 Disable compililation the old C scanner, but still keep the source
3349 until all the remaning functionallity has been ported.
3351 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3353 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3354 a crash when symbol->indent is NULL.
3356 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3357 a function to convert a CTYPE symbol to a string
3359 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3362 * giscanner/girwriter.py:
3363 * giscanner/giscannermodule.c
3364 (pygi_source_scanner_append_filename),
3365 (pygi_source_scanner_parse_file):
3366 * giscanner/glibtransformer.py:
3367 * giscanner/sourcescanner.py:
3368 Revert back to using temporary files to send in headers.
3369 Allow Functions to be passed in as callbacks, add a couple
3370 of try/excepts missing features.
3371 We can now scan pango
3373 2008-05-08 Johan Dahlin <johan@gnome.org>
3375 * giscanner/glibtransformer.py:
3376 * giscanner/transformer.py:
3377 Move namespace stripping glibtransformer->transformer
3379 2008-05-08 Johan Dahlin <johan@gnome.org>
3382 * giscanner/girwriter.py:
3383 * giscanner/glibtransformer.py:
3384 * giscanner/transformer.py:
3385 * tools/g-ir-scanner:
3386 Introduce a namespace ast node
3388 2008-05-05 Johan Dahlin <johan@gnome.org>
3390 * giscanner/__init__.py:
3391 * giscanner/sourcescanner.py:
3392 * giscanner/transformer.py:
3393 Move sourcescanner symbols to the sourcescanner module, instead
3394 of in the global __init__ namespace.
3396 2008-05-03 Johan Dahlin <johan@gnome.org>
3398 * giscanner/glibtransformer.py:
3399 * tools/g-ir-scanner:
3400 Handle missing parameters better, allow - and + in .la dlname
3403 2008-05-03 Johan Dahlin <johan@gnome.org>
3405 * giscanner/__init__.py:
3407 * giscanner/girwriter.py:
3408 * giscanner/glibtransformer.py:
3409 * giscanner/transformer.py:
3410 Parse struct fields properly, improve debugging.
3412 2008-04-29 Johan Dahlin <johan@gnome.org>
3415 * giscanner/girwriter.py:
3416 * giscanner/transformer.py:
3417 * tests/parser/Foo-expected.gir:
3419 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3421 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3424 * docs/g-ir-scanner.1:
3425 * metadata-annotations-proposal.txt:
3426 * metadata-format.txt:
3427 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3429 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3431 * giscanner/girwriter.py:
3432 * giscanner/glibtransformer.py:
3433 * giscanner/transformer.py:
3434 * giscanner/xmlwriter.py:
3435 * tests/parser/Foo-expected.gir:
3436 * tests/parser/foo-object.h:
3437 Write record/structs to gir file too. Add a couple of tests,
3438 fix an off by one error in xmlwriter.py.
3440 2008-04-28 Johan Dahlin <johan@gnome.org>
3442 * giscanner/xmlwriter.py: Calculate the line length properly,
3443 include the provided extra indentation in the calculation, really.
3445 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3448 * giscanner/glibast.py:
3449 * giscanner/glibtransformer.py:
3450 * giscanner/transformer.py:
3451 * tools/g-ir-scanner:
3452 Add a --strip-prefix and sort out confusion between names and symbols
3453 for functions and struct + derivaties.
3454 Refactor bootstrap of g-ir-scanner, so we can set options on
3455 Transformer() before parsing everything.
3457 2008-04-28 Johan Dahlin <johan@gnome.org>
3459 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3460 when scanning girepository.h
3462 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3463 a __GI_SCANNER__ when we run.
3465 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3468 * giscanner/girwriter.py:
3469 * giscanner/glibast.py:
3470 * giscanner/glibtransformer.py:
3471 * tests/parser/Foo-expected.gir:
3472 * tests/parser/utility-expected.gir:
3473 Rename most c:identifier to c:type. Add new ones to
3474 class/interface/enum/boxed.
3476 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3479 * giscanner/girwriter.py:
3480 * giscanner/glibtransformer.py:
3481 * tests/parser/Foo-expected.gidl:
3482 * tests/parser/Makefile.am:
3483 Move c:identifier from return-value to subchild type,
3484 as per Jürgs suggestion
3486 2008-04-28 Johan Dahlin <johan@gnome.org>
3488 * giscanner/girwriter.py:
3489 * tests/parser/Foo-expected.gir:
3490 Write property.type as a child node.
3492 2008-04-27 Johan Dahlin <johan@gnome.org>
3497 * gidl/gobject-2.0.gidl:
3499 * gir/gobject-2.0.gir:
3500 * tests/parser/Makefile.am:
3501 Replace the GObject gidl with a GObject gir.
3503 2008-04-27 Johan Dahlin <johan@gnome.org>
3505 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3508 * giscanner/xmlwriter.py:
3509 * tests/parser/Foo-expected.gir:
3510 Include indentation in line length calculation
3512 2008-04-27 Johan Dahlin <johan@gnome.org>
3514 * giscanner/girparser.py:
3515 Prettify NS parsing using elementtree.
3517 2008-04-27 Johan Dahlin <johan@gnome.org>
3520 * giscanner/Makefile.am:
3521 * giscanner/girparser.py:
3522 * giscanner/glibtransformer.py:
3523 * tests/parser/Foo-expected.gidl:
3524 * tests/parser/Foo-expected.gir:
3525 * tests/parser/Makefile.am:
3526 * tests/parser/utility-expected.gidl:
3527 * tests/parser/utility-expected.gir:
3528 * tools/g-ir-scanner:
3529 Switch over to GIR as the default format. Add a simple GIDL
3531 Update tests and fix simplify makefiles by depending
3532 on GNU make extensions.
3534 2008-04-27 Johan Dahlin <johan@gnome.org>
3536 * giscanner/xmlwriter.py:
3537 Wrap attributes for lines which are wider than 79 characters
3539 * giscanner/scannerlexer.l:
3540 Allow parenthesis in annotations
3543 * giscanner/gidlwriter.py:
3544 * giscanner/girwriter.py:
3545 * giscanner/glibtransformer.py:
3546 * giscanner/transformer.py:
3547 Add initial sequence support, including annotation.
3548 Refactor type handling a bit.
3550 2008-04-27 Johan Dahlin <johan@gnome.org>
3552 * tests/parser/Foo-expected.gidl:
3553 * tests/parser/foo-object.h:
3554 * tests/parser/foo.c (foo_object_class_init),
3555 (foo_object_get_strings), (foo_object_get_objects):
3556 Add two new functions to check sequence return values.
3557 Also fixes a compilation warning.
3559 2008-04-27 Johan Dahlin <johan@gnome.org>
3561 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3562 a compilation warning.
3564 * tools/Makefile.am (g_ir_scanner_SOURCES):
3565 g-ir-scanner has no sources.
3567 2008-04-25 Johan Dahlin <johan@gnome.org>
3569 * giscanner/Makefile.am:
3571 * giscanner/gidlparser.py:
3572 * giscanner/gidlwriter.py:
3573 * giscanner/girwriter.py:
3574 * giscanner/glibast.py:
3575 * giscanner/glibtransformer.py:
3576 * giscanner/transformer.py:
3577 Split out nodes to ast.py and glibast.py
3579 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3581 * giscanner/Makefile.am:
3582 * giscanner/gidlparser.py:
3583 * giscanner/gidlwriter.py:
3584 * giscanner/girwriter.py:
3585 * giscanner/glibtransformer.py:
3586 * giscanner/gobjecttreebuilder.py:
3587 * giscanner/transformer.py:
3588 * giscanner/treebuilder.py:
3589 * tools/g-ir-scanner:
3590 Rename treebuilder to transformer and
3591 gobjectreebuilder to glibtransformer.
3593 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3595 * giscanner/Makefile.am:
3596 * giscanner/__init__.py:
3597 * giscanner/cgobject.py:
3598 * giscanner/gidlparser.py:
3599 * giscanner/gidlwriter.py:
3600 * giscanner/girwriter.py:
3601 * giscanner/gobjecttreebuilder.py:
3602 * giscanner/odict.py:
3603 * giscanner/sourcescanner.py:
3604 * giscanner/treebuilder.py:
3605 * giscanner/xmlwriter.py:
3606 * tools/Makefile.am:
3607 * tools/g-ir-scanner:
3608 Add LGPLv2 license header and install all python files
3610 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3613 * giscanner/gidlwriter.py:
3614 * giscanner/giscannermodule.c (pygi_source_directive_new),
3615 (directive_get_options), (pygi_source_symbol_new),
3616 (symbol_get_base_type), (pygi_source_type_new),
3617 (type_get_base_type), (type_get_child_list),
3618 (pygi_source_scanner_get_symbols),
3619 (pygi_source_scanner_get_directives):
3620 * giscanner/gobjecttreebuilder.py:
3621 * giscanner/sourcescanner.py:
3622 * giscanner/treebuilder.py:
3623 * tests/parser/foo-object.h:
3624 Add support for virtual methods.
3625 Pair struct FooClass with struct Foo.
3626 Clean up the SourceScanner bindings a bit.
3627 Add a testcase for virtual methods.
3629 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3631 * giscanner/cgobject.py:
3632 * giscanner/gidlwriter.py:
3633 * giscanner/gobjecttreebuilder.py:
3634 Add support for signals
3636 * tests/parser/foo.c (foo_object_class_init):
3637 * Foo-expected.gidl:
3638 Add a signal and update the expected output.
3640 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3642 * giscanner/gidlwriter.py:
3643 * giscanner/girwriter.py:
3644 * giscanner/giscannermodule.c (directive_get_name),
3645 (directive_get_value), (directive_get_options),
3646 (symbol_get_directives), (symbol_set_directives),
3647 (pygi_source_scanner_parse_file),
3648 (pygi_source_scanner_lex_filename),
3649 (pygi_source_scanner_get_directives), (init_giscanner):
3650 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3651 * giscanner/sourcescanner.h:
3652 * giscanner/sourcescanner.py:
3653 * giscanner/treebuilder.py:
3654 * tools/g-ir-scanner:
3655 Add support for source/header annotations.
3657 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3659 * giscanner/gidlwriter.py:
3660 * giscanner/girwriter.py:
3661 * giscanner/gobjecttreebuilder.py:
3662 * giscanner/treebuilder.py:
3663 Add support for Callbacks
3665 2008-04-22 Havoc Pennington <hp@pobox.com>
3667 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3668 not in metadata->module, look for it in the global module, in case
3669 some other object or the app itself provides the symbol.
3671 2008-04-22 Havoc Pennington <hp@pobox.com>
3673 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3674 dlopening a library that is already in the main app, by checking
3675 whether one of the lib's symbols is already loaded.
3677 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3679 * tests/parser/Foo-expected.gidl:
3680 * tests/parser/foo-object.h:
3683 2008-04-22 Havoc Pennington <hp@pobox.com>
3685 * girepository/ginfo.c (g_interface_info_find_method):
3686 Use interface_blob_size not object_blob_size to compute offset.
3688 2008-04-22 Havoc Pennington <hp@pobox.com>
3690 * girepository/gmetadata.c (_g_metadata_init): remove
3691 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3692 (Glade and Clutter for example) rely on being loaded globally.
3694 2008-04-22 Havoc Pennington <hp@pobox.com>
3696 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3697 function to get the GType given a RegisteredTypeInfo
3699 2008-04-22 Johan Dahlin <johan@gnome.org>
3701 * COPYING: Add a LGPL license, to prevent automake to
3702 put in a copy of GPL here. Pointed out by Havoc.
3704 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3705 (g_type_info_is_pointer), (g_type_info_get_tag),
3706 (g_type_info_get_param_type), (g_type_info_get_interface),
3707 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3708 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3709 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3710 (g_object_info_get_interface), (g_object_info_get_field),
3711 (g_interface_info_get_prerequisite),
3712 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3713 * girepository/ginvoke.c (get_ffi_type):
3714 * girepository/girepository.h:
3715 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3716 (g_metadata_check_sanity), (validate_header),
3717 (validate_array_type_blob), (validate_iface_type_blob),
3718 (validate_param_type_blob), (validate_error_type_blob),
3719 (validate_type_blob), (validate_constant_blob),
3720 (validate_struct_blob), (validate_enum_blob):
3721 * girepository/gmetadata.h:
3722 * tests/Makefile.am:
3723 * tests/invoke/Makefile.am:
3724 * tests/invoke/invoke.c (main):
3725 * tests/roundtrips.sh:
3726 * tools/Makefile.am:
3727 * tools/compiler.c (format_output), (write_out_metadata), (main):
3728 * tools/generate.c (write_type_name), (write_type_info),
3729 (write_constant_value), (write_enum_info), (load_metadata), (main):
3730 * tools/gidlcompilercontext.c:
3731 * tools/gidlcompilercontext.h:
3732 * tools/gidlcompilerentrynode.c:
3733 * tools/gidlcompilerentrynode.h:
3734 * tools/gidlcompilertypenode.c:
3735 * tools/gidlcompilertypenode.h:
3736 * tools/gidlmodule.c (g_idl_module_build_metadata):
3737 * tools/gidlmodule.h:
3738 * tools/gidlnode.c (init_stats), (dump_stats),
3739 (g_idl_node_get_size), (g_idl_node_get_full_size),
3740 (g_idl_node_cmp), (g_idl_node_can_have_member),
3741 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3742 (parse_int_value), (parse_uint_value), (parse_float_value),
3743 (parse_boolean_value), (find_entry_node), (find_entry),
3744 (serialize_type), (g_idl_node_build_metadata), (write_string):
3746 * tools/gidlparser.c (parse_type_internal):
3747 * tools/quote-file.sh:
3748 Revert revisions 157,149-148,136-129 and 120.
3749 Move back to using g-idl-generate to generate the metadata and
3750 avoids dependency on a c compiler.
3752 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3754 * giscanner/girwriter.py:
3755 * tools/g-ir-scanner:
3756 Add an initial GIR writer and a --format option to g-ir-scanner
3758 2008-04-21 Johan Dahlin <johan@gnome.org>
3760 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3761 gobject-2.0 and raise ImportError if not found.
3763 * giscanner/gidlparser.py:
3764 * giscanner/gidlwriter.py:
3765 * giscanner/gobjecttreebuilder.py:
3766 * tools/g-ir-scanner:
3767 Add a --include argument to include types from other idls.
3768 Add a minimalistic GIDL parser (just objects for now)
3769 Implement resolving of external type references and use it to
3770 resolve parent types, argument types and return types.
3772 2008-04-21 Johan Dahlin <johan@gnome.org>
3774 * giscanner/gidlwriter.py:
3775 * giscanner/gobjecttreebuilder.py:
3776 * giscanner/treebuilder.py:
3777 Add support for properties.
3778 Refactor Class/Interface support a bit, to share more code and
3779 always initialize their method attribute to an empty list.
3781 2008-04-21 Johan Dahlin <johan@gnome.org>
3783 * giscanner/cgobject.py:
3784 Add a workaround for a glib bug interface introspection bug
3785 (object_interface_list_properties, object_class_list_properties):
3786 Cast the return value to GParamSpec.
3788 * tests/parser/Foo-expected.gidl: Update
3789 * tests/parser/foo.c: Add a string property
3791 * giscanner/gobjecttreebuilder.py:
3792 After stripping namespaces, remove the original
3793 item to avoid duplication (GtkButton struct and Button object)
3795 2008-04-21 Johan Dahlin <johan@gnome.org>
3797 * giscanner/gobjecttreebuilder.py:
3798 * giscanner/treebuilder.py:
3799 Strip namespaces before objects, so we'll export
3800 GtkButton as Button in the gtk namespace
3802 2008-04-21 Johan Dahlin <johan@gnome.org>
3804 * giscanner/gidlwriter.py:
3805 * giscanner/gobjecttreebuilder.py:
3806 * giscanner/treebuilder.py:
3807 Add constructors for object/boxed types.
3809 2008-04-21 Johan Dahlin <johan@gnome.org>
3811 * giscanner/gidlwriter.py:
3812 * giscanner/gobjecttreebuilder.py:
3813 Add support for boxed types
3815 2008-04-21 Johan Dahlin <johan@gnome.org>
3817 * giscanner/giscannermodule.c: Mark structures as const,
3818 wrap SourceType.const_string.
3820 * tests/parser/foo-object.h: Add a couple of constants.
3822 * giscanner/gidlwriter.py:
3823 * giscanner/gobjecttreebuilder.py:
3824 * giscanner/treebuilder.py:
3825 Add basic support for interfaces
3827 * tools/g-ir-scanner:
3828 Add -o/--output for writing to a file
3830 2008-04-21 Havoc Pennington <hp@redhat.com>
3832 * TODO: add some C API wishlist items I could think of quickly
3834 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3836 * giscanner/gidlwriter.py:
3837 * giscanner/xmlwriter.py:
3838 Add a simple api for writing tags which can be used
3839 with the new 'with statement' in python 2.5
3841 2008-04-21 Johan Dahlin <johan@gnome.org>
3843 * giscanner/gobjecttreebuilder.py:
3844 Strip namespace and object prefix from method names.
3846 2008-04-21 Johan Dahlin <johan@gnome.org>
3848 * tools/g-ir-scanner (main): Add --pkg option to pass in
3849 pkg-config modules to get cflags from.
3851 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3852 Avoid duplication, reuse function writer for methods.
3854 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3856 * giscanner/gidlwriter.py:
3857 * giscanner/gobjecttreebuilder.py:
3858 * giscanner/treebuilder.py:
3859 * tools/g-ir-scanner:
3860 Resolve libtool .la files.
3861 Strip name spaces for methods.
3862 Add function symbols
3864 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3866 * giscanner/cgobject.py:
3867 * giscanner/gidlwriter.py:
3868 * giscanner/gobjecttreebuilder.py:
3869 * giscanner/treebuilder.py:
3870 Add support for classes and methods
3872 2008-04-20 Johan Dahlin <johan@gnome.org>
3874 * giscanner/gidlwriter.py:
3875 * giscanner/gobjecttreebuilder.py:
3876 * giscanner/odict.py:
3877 Avoid conflicts, keep the output ordered similar to
3878 the order of the input.
3879 Add a simple ordered dictionary implemenation
3881 2008-04-19 Johan Dahlin <johan@gnome.org>
3883 * giscanner/cgobject.py:
3884 * giscanner/gidlwriter.py:
3885 * giscanner/gobjecttreebuilder.py:
3886 * tools/g-ir-scanner:
3887 Start introspecting get-type functions.
3888 Implement support for GLib/GFlags GTypes.
3889 Add a ctype based GObject binding.
3891 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3893 * giscanner/gidlwriter.py:
3894 * giscanner/xmlwriter.py:
3895 * tools/g-ir-scanner:
3896 Add a simplistic gidl writer, which can't do too much.
3898 2008-04-18 Johan Dahlin <johan@gnome.org>
3900 * giscanner/sourcescanner.py:
3901 * giscanner/treebuilder.py:
3902 * tools/g-ir-scanner:
3903 split tree building and source scanning interface to separate files.
3905 2008-04-18 Johan Dahlin <johan@gnome.org>
3907 * tools/g-ir-scanner (Parameter.__init__): Start constructing
3909 - Add support for struct/parameter/return, start parsing of ctypes
3911 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
3914 2008-03-31 Johan Dahlin <johan@gnome.org>
3916 * tools/g-ir-scanner:
3917 Start to build abstract syntax node of scanned sources.
3918 Add support for cpp options.
3920 2008-03-27 Johan Dahlin <johan@gnome.org>
3922 * giscanner/giscannermodule.c:
3923 * giscanner/scannerlexer.l:
3924 * giscanner/sourcescanner.c:
3925 * tools/g-ir-scanner:
3927 Add simple pre-processor using subprocess and a PIPE.
3928 Change the parse_file apis to accept a file descriptor.
3930 2008-03-25 Johan Dahlin <johan@gnome.org>
3932 * giscanner/__init__.py:
3933 * tools/g-ir-scanner:
3934 Fix a typo and add an example python test program.
3936 2008-03-25 Johan Dahlin <johan@gnome.org>
3938 * giscanner/__init__.py:
3939 * giscanner/giscannermodule.c:
3940 * giscanner/sourcescanner.c:
3941 * giscanner/sourcescanner.h:
3942 Add constants and wrap a few more SymbolType fields
3944 2008-03-25 Johan Dahlin <johan@gnome.org>
3948 * giscanner/__init__.py:
3949 * giscanner/giscannermodule.c:
3950 * giscanner/Makefile.am:
3952 Add initial python bindings for the scanner and
3953 depend on python 2.5.
3955 2008-03-25 Johan Dahlin <johan@gnome.org>
3959 * giscanner/Makefile.am:
3960 * giscanner/sourcescanner.c:
3961 * giscanner/sourcescanner.h:
3962 * tools/Makefile.am:
3963 * tools/grealpath.h:
3964 * tools/sourcescanner.c:
3965 * tools/sourcescanner.h:
3967 Move the scanner to a separate library.
3969 2008-03-23 Johan Dahlin <johan@gnome.org>
3971 * tools/Makefile.am:
3974 * tools/scannerlexer.l:
3975 * tools/scannerparser.y:
3976 * tools/sourcescanner.c:
3977 * tools/sourcescanner.h:
3978 Split out the source scanner from the generator.
3979 Rename the symbols used in the scanner to use the gi_ prefix.
3980 This should make it possible to use the raw C parser from
3983 2008-03-23 Johan Dahlin <johan@gnome.org>
3985 * tests/parser/Makefile.am (utility.gidl):
3986 * tests/parser/utility-expected.gidl:
3987 Pass in the gobject.gidl since we're defining a GObject.
3989 2008-03-12 Johan Dahlin <johan@gnome.org>
3991 * relaxng/relaxng.rng:
3992 Add a releaxng in relaxng we can use to validate the relaxngs
3995 2008-03-12 Jürg Billeter <j@bitron.ch>
3997 * tools/scanner.c: (g_igenerator_new):
3998 * tools/scannerparser.y:
3999 Fix compiler warnings.
4001 2008-03-12 Jürg Billeter <j@bitron.ch>
4005 * tools/scannerparser.y:
4006 Start fixing memory management in g-idl-scanner.
4008 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4010 * tools/gidlcompilercontext.c: (write_compiled):
4011 Fix critical warning when no shlib passed to g-idl-compiler.
4013 2008-03-12 Johan Dahlin <johan@gnome.org>
4015 * tests/parser/utility-expected.gidl:
4016 * tests/parser/utility.h:
4017 Add a get_type-function, so the scanner actually
4018 parses it as an object.
4020 2008-03-12 Johan Dahlin <johan@gnome.org>
4022 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4025 * tests/parser/Foo-expected.gidl:
4026 * tests/parser/Makefile.am:
4027 * tests/parser/foo-object.h:
4028 * tests/parser/foo.c:
4029 * tests/parser/utility-expected.gidl:
4030 * tests/parser/utility.c:
4031 * tests/parser/utility.h:
4033 Add a new gidl test. 'utility.gidl', which is used to be able
4034 to test external type references. Add a reference to UtilityObject*
4037 2008-03-11 Johan Dahlin <johan@gnome.org>
4041 Remove most global variables
4043 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4045 * tools/scannerlexer.l:
4047 * tests/parser/Foo-expected.gidl:
4048 * tests/parser/foo.c:
4049 * tests/parser/Makefile.am:
4050 * tests/parser/foo-object.h:
4052 Added a few extra tests. Which resulted in finding a few
4053 bugs. Which resulted in me fixing those bugs
4055 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4057 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4058 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4059 Add some comments for strings into generated output for
4062 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4064 * tools/gidlcompilercontext.c: (write_compiled):
4065 Write out the shlibs variable before writing out the strings
4066 length. Fixes compiler warning when using '-l' flag with
4069 2008-03-11 Johan Dahlin <johan@gnome.org>
4071 * tests/parser/Foo-expected.gidl:
4072 * tests/parser/foo-object.h:
4075 * tools/scannerlexer.l:
4076 Add support for parsing return arguments. Add support for
4077 caller-owns return types.
4078 Patch by Philip Van Hoof.
4080 * tools/scannerparser.y:
4081 Remove parsing of the @deprecated syntax used in headers.
4082 We will support gtk-doc deprecation in the future instead.
4084 2008-03-11 Johan Dahlin <johan@gnome.org>
4086 * tools/compiler.c (main): Coding style fixes
4088 2008-03-10 Johan Dahlin <johan@gnome.org>
4091 Add GCOV_LIBS to GILIBS
4093 2008-03-10 Johan Dahlin <johan@gnome.org>
4095 * tests/parser/Foo-expected.gidl:
4096 * tests/parser/foo.c:
4097 Rename null-ok to direction=out
4099 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4101 reviewed and extensively tested by Johan
4103 * tests/parser/Foo-expected.gidl:
4104 * tests/parser/foo-object.h:
4105 * tests/parser/foo.c:
4108 * tools/gidlwriter.c:
4111 * tools/scannerlexer.l:
4112 * tools/scannerparser.y:
4114 Add support for scanning for gtk-doc comments inside
4115 C source files. Add tests
4117 2008-03-10 Johan Dahlin <johan@gnome.org>
4119 * tests/parser/Makefile.am:
4120 * tests/parser/foo.c:
4123 * tools/scannerparser.y:
4124 Add an api to lex filenames.
4125 Lex all source .c files passed in on the command line.
4126 Scan sources in a test and a couple of private structures
4127 which should not be included in the generated gidl
4129 2008-03-10 Johan Dahlin <johan@gnome.org>
4131 * tests/invoke/Makefile.am: Make the generated metadata
4132 depend on the g-idl-compiler
4134 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4136 * tools/gidlmodule.c
4137 * tools/gidlmodule.h
4140 Remove the old g-idl-compiler code.
4143 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4145 * tools/quote-file.sh
4148 Move to using the 'C' struct compiler code.
4150 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4152 * girepository/ginfo.c
4154 Change the way that external references with no namespace
4155 are dealt with. External references with no namespace
4156 are placed into the XML as-if they are a local reference.
4157 This is temporary, but helps with roundtrip tests.
4159 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4161 * girepository/ginfo.c
4162 Add the ability to get the value of a constant of
4163 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4164 is provided as a string.
4166 This would deal properly with:
4167 typedef char* random;
4168 const random = "A string";
4170 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4172 * girepository/ginfo.c
4173 * girepository/girepository.h
4175 Add a function to check if an enum is registered or not.
4176 Previously anything testing this relied on the g-type
4177 string offset having a value of 0.
4179 * girepository/gmetadata.c
4180 * girepository/gmetadata.h
4182 Remove unneccesary or erroneous checks. There were two
4183 metadata validation checks which made sure that the blob
4184 sizes were the same as some magic numbers compiled into the code.
4185 This is wrong as it breaks any forwards compatibility that may
4188 Checks were also present that made sure that unregistered type
4189 blobs had a value of 0 in the g-type offset field. This is
4190 unneccessary. If a type blob is unregistered then any value
4191 in its g-type field is simply invalid.
4193 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4195 * girepository/ginfo.c
4196 * girepository/gmetadata.c
4197 * girepository/gmetadata.h
4199 Change the metadata format to have a standard header
4200 for all the type blobs. Merge the SimpleTypeBlob
4201 and InterfaceTypeBlob into a union. A union of these
4202 two blobs existed previously but was not explicit
4203 in the metadata format.
4205 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4207 * tools/gidlcompilercontext.c
4208 * tools/gidlcompilercontext.h
4209 * tools/gidlcompilerentrynode.c
4210 * tools/gidlcompilerentrynode.h
4211 * tools/gidlcompilertypenode.c
4212 * tools/gidlcompilertypenode.h
4214 Add code to compile a tree of GIdlNodes to
4215 a 'C' struct representing the metadata.
4216 This is to aid cross-compiling. Previously
4217 the g-idl-compiler created a binary blob with
4218 data written in the byte order and alignment
4219 of the tool rather than the intended target.
4221 Cleaned up and improved by Johan and Robert :-)
4223 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4225 * girepository/ginvoke.c
4226 * girepository/girepository.h
4227 * girepository/gmetadata.c
4228 * girepository/gmetadata.h
4230 * tools/gidlparser.c
4231 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4232 to avoid confusion with the interface blob.
4235 * tools/gidlparser.c
4236 Remove magic numbers and replace with type-tag
4237 enumeration symbols.
4239 * girepository/gmetadata.c
4240 Add validate declaration.
4242 2008-03-10 Jürg Billeter <j@bitron.ch>
4244 * tools/gidlparser.c: (parse_type_internal):
4245 * tools/scannerlexer.l:
4246 * tools/scannerparser.y:
4247 Support C99 _Bool type in scanner.
4249 2008-03-10 Jürg Billeter <j@bitron.ch>
4251 * tests/parser/Foo-expected.gidl:
4252 * tests/parser/foo-object.h:
4253 * tests/parser/foo.c: (foo_enum_method):
4254 * tools/scanner.c: (g_igenerator_process_function_symbol):
4255 Don't skip functions that are defined in the namespace of a type
4256 that doesn't support methods, as for example enums.
4258 2008-03-10 Johan Dahlin <johan@gnome.org>
4260 * gidl.dtd: Remove, we're using relaxng for now
4262 * tests/parser/Foo-expected.gidl:
4263 * tests/parser/foo-object.h:
4264 * tests/parser/foo.c:
4265 Rename the enum/flags get_type functions to include the whole type.
4267 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4269 * tools/gidlwriter.c (enum_generate): added "type-name",
4270 "get-type" and "deprecated" missing arguments.
4271 * tests/parser/Foo-expected.gidl:
4272 * tests/parser/foo-object.h: test enum type, and no type.
4274 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4277 Consistent checks, add missing 'test'
4279 2008-03-05 Havoc Pennington <hp@redhat.com>
4281 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4282 does on Fedora 8. Make libffi a hard requirement, since it was in
4283 practice anyway (was not really conditional in the code or
4284 makefile, only in configure).
4286 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4288 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4289 reviewed by: Johan Dahlin <johan@gnome.org>
4291 * tests/Makefile.am:
4292 * tests/roundtrips.sh:
4293 Modify the roundtrips test so that they do not use the
4294 --raw option of the gidl compiler but instead compile a
4295 shared library to use with g_module.
4297 * tests/invoke/Makefile.am:
4298 * tests/invoke/invoke.c:
4299 Modify the invoke tests to build a shared library rather
4300 than use the --raw option.
4302 * tests/invoke/invoke-namespace-find.sh: Removed:
4303 Noone knows why this was here, so removed.
4305 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4307 * tools/scanner.c: (g_igenerator_process_function_symbol):
4308 Move g_idl_node_can_have_member test later, as it broke spotting
4309 get_type's for nodes that can't have members.
4311 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4314 * tools/gidlnode.c: (g_idl_node_can_have_member):
4315 Add g_idl_node_can_have_member.
4317 * tools/scanner.c: (g_igenerator_process_function_symbol):
4318 Use g_idl_node_can_have_member to test if we should add a function
4319 as a member of the type node.
4321 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4323 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4325 * tests/parser/Makefile.am:
4326 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4328 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4330 * tools/scanner.c: (main):
4331 Ignore -pthread when passed to g-idl-scanner.
4333 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4335 * tools/grealpath.h: Added:
4336 * tools/scanner.c: (main):
4337 * tools/scannerlexer.l:
4338 * tools/Makefile.am:
4339 Always use absolute paths with symbolic links resolved when
4340 comparing filenames.
4342 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4344 * gobject-introspection.pc.in:
4345 Provide variables for g-idl-parser, scanner and compiler in the
4348 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4351 * girepository/Makefile.am:
4352 * tools/Makefile.am:
4353 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4355 2008-02-10 Johan Dahlin <johan@gnome.org>
4357 * tests/parser/Foo-expected.gidl:
4358 * tests/parser/foo-object.h:
4359 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4360 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4363 2008-02-10 Johan Dahlin <johan@gnome.org>
4365 * tests/parser/Foo-expected.gidl:
4366 * tests/parser/foo-object.h:
4367 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4368 Add enum and flags test.
4370 2008-02-10 Johan Dahlin <johan@gnome.org>
4374 * girepository/Makefile.am:
4375 Make 'make distcheck' work again.
4377 2008-02-10 Johan Dahlin <johan@gnome.org>
4379 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4382 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4383 check, eg exclude it from BUILT_SOURCES.
4385 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4390 * girepository/Makefile.am:
4391 * m4/Makefile.am: Added:
4392 * m4/as-compiler-flag.m4: Added:
4393 * m4/gcov.m4: Added:
4394 * tools/Makefile.am:
4395 Add ability to generate a coverage report.
4396 Adds configure option --enable-gcov and make rule 'check-coverage'.
4398 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4402 * gidl/Makefile.am: Added:
4403 * girepository/Makefile.am: Added:
4404 * src/Makefile.am: Renamed to tools/Makefile.am:
4405 * src/compiler.c: Renamed to tools/compiler.c:
4406 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4407 * src/generate.c: Renamed to tools/generate.c:
4408 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4409 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4410 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4411 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4412 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4413 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4414 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4415 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4416 * src/ginfo.c: Renamed to girepository/ginfo.c:
4417 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4418 * src/girepository.c: Renamed to girepository/girepository.c:
4419 * src/girepository.h: Renamed to girepository/girepository.h:
4420 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4421 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4422 * src/scanner.c: Renamed to tools/scanner.c:
4423 * src/scanner.h: Renamed to tools/scanner.h:
4424 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4425 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4426 * tests/invoke/Makefile.am:
4427 Split src/ into girepository/ and tools/
4431 * girepository/Makefile.am:
4432 * tests/Makefile.am:
4433 * tests/invoke/Makefile.am:
4434 * tests/parser/Makefile.am:
4435 * tests/roundtrips.sh:
4436 * tools/Makefile.am:
4437 Make distcheck work.
4439 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4441 * tests/invoke/invoke.c: (main):
4442 * tests/invoke/testfns.c: (test6), (test7):
4443 * tests/invoke/testfns.xml:
4444 Add tests for invokation with a GList argument.
4445 Also tests caller-owns return values.
4447 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4450 Add some documentation for GICallableInfo
4452 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4455 Correct syntax errors in the DTD file.
4457 * relaxng/c-types.xml:
4458 * relaxng/g-types.xml:
4460 Add a RelaxNG specification for the GObject Introspection XML data.
4461 The Specification has validated all of the test files.
4463 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4465 * tests/roundtrips.sh:
4466 * tests/struct.test:
4467 Add roundtrip tests for structs.
4469 2008-01-11 Johan Dahlin <johan@gnome.org>
4471 * src/scanner.c (g_igenerator_process_function_symbol):
4472 Refactor out g_idle_node_add_member.
4473 (create_node_from_gtype, create_node_from_ctype):
4474 Use case instead of if...else
4475 (get_type_from_type_id):
4476 Rename to create_node_from_gtype
4477 (get_type_from_ctype):
4478 Rename to create_node_from_ctype
4480 Rename ginode -> node, gitype -> type, gifunc -> func.
4482 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4483 Two new functions, refactor out of scanner.c
4485 * src/scanner.c: (g_igenerator_process_function_symbol):
4486 * src/scannerlexer.l:
4487 Do not save the content of the deprecated variable, only
4490 2008-01-11 Johan Dahlin <johan@gnome.org>
4492 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4494 2008-01-11 Jürg Billeter <j@bitron.ch>
4496 * src/scannerlexer.l:
4497 Fix GTK-Doc parsing.
4499 2008-01-11 Jürg Billeter <j@bitron.ch>
4501 * src/scannerlexer.l:
4502 Fix GTK-Doc parsing.
4504 2008-01-11 Jürg Billeter <j@bitron.ch>
4506 * src/scanner.c: (lookup_symbol):
4507 Return unresolved name if we find unknown symbol.
4509 2008-01-11 Jürg Billeter <j@bitron.ch>
4511 * src/scanner.c: (g_igenerator_generate):
4512 Initialize GObject to fix scanning interface properties.
4514 * tests/parser/Foo-expected.gidl:
4515 * tests/parser/foo-object.h:
4516 * tests/parser/foo.c: (foo_interface_get_type):
4517 Test interfaces with GObject prerequisite.
4519 * tests/parser/Makefile.am:
4520 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4522 2007-12-27 Johan Dahlin <johan@gnome.org>
4524 * src/scannerlexer.l:
4525 Parse gtk-doc comments.
4527 * src/gidlwriter.c: (function_generate):
4528 Reorganize, avoid duplication and add support for
4529 writing deprecated functions.
4531 * src/scannerparser.y:
4533 Add new structure CDirective and functions to create/free them.
4535 * src/scanner.c: (g_igenerator_process_function_symbol),
4536 (g_igenerator_process_unregistered_struct_typedef),
4537 (g_igenerator_process_struct_typedef),
4538 (g_igenerator_process_union_typedef),
4539 (g_igenerator_process_enum_typedef),
4540 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4541 (g_igenerator_start_preprocessor):
4542 Parse @deprecated directive for functions.
4543 Remove some more C99isms.
4544 Send in -C to cpp to avoid stripping comments.
4546 * tests/parser/foo-object.h:
4547 * tests/parser/Foo-expected.gidl:
4548 Add deprecated directive
4550 2007-12-27 Johan Dahlin <johan@gnome.org>
4552 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4553 escape ' and " so it looks more like C.
4556 Unlink temporary file used.
4558 2007-12-27 Johan Dahlin <johan@gnome.org>
4560 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4561 (g_igenerator_start_preprocessor), (main):
4563 * src/scannerparser.y:
4564 Plug a couple of simple memory leaks.
4566 2007-12-27 Johan Dahlin <johan@gnome.org>
4568 * src/scanner.c: (g_igenerator_parse_macros),
4569 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4572 * src/scannerparser.y:
4573 * tests/parser/Makefile.am:
4575 Improve error reporting, return when the preprocessor fails.
4576 Add a verbose parameter, to aid debugging.
4577 Revert to using a temporary file to communicate between the
4578 preprocessor and the parser, because we need to wait for
4579 the exit code from the pre-processor before starting to parse.
4581 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4583 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4584 cparser.y to scannerparser.y
4586 2007-12-11 Johan Dahlin <johan@gnome.org>
4590 * src/scanner.c: (g_igenerator_new):
4592 Get rid of the global the_generator variable.
4594 2007-12-10 Johan Dahlin <johan@gnome.org>
4596 * src/scanner.c (main): Add an output option,
4597 add checks for required parameters
4600 set BUILD_SOURCES and CLEANFILES properly
4602 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4603 (g_writer_write_indent), (g_writer_write_unindent),
4604 (field_generate), (value_generate), (constant_generate),
4605 (property_generate), (function_generate), (vfunc_generate),
4606 (signal_generate), (interface_generate), (struct_generate),
4607 (union_generate), (boxed_generate), (enum_generate),
4608 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4610 * src/scanner.c: (g_igenerator_generate):
4612 * src/scannerwriter.c:
4614 Refactor scannerwriter to only be tied to a GIdlModule and move
4615 it (again!) to gidlwriter.c. Change the writer function to take
4618 2007-12-10 Johan Dahlin <johan@gnome.org>
4621 * src/scanner.c: (g_igenerator_generate):
4623 * src/scannerwriter.c: (g_igenerator_write_inline),
4624 (g_igenerator_write), (g_igenerator_write_indent),
4625 (g_igenerator_write_unindent), (field_generate), (value_generate),
4626 (constant_generate), (property_generate), (function_generate),
4627 (vfunc_generate), (signal_generate), (interface_generate),
4628 (struct_generate), (union_generate), (boxed_generate),
4629 (enum_generate), (node_generate), (module_generate),
4630 (g_scanner_write_file):
4632 Move the scanner gidl writing to a separate source file.
4634 2007-12-10 Johan Dahlin <johan@gnome.org>
4639 Move over all CType construction functions.
4641 * tests/parser/Makefile.am:
4642 Be verbose when printing parsing tests results.
4644 2007-12-10 Johan Dahlin <johan@gnome.org>
4646 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4647 preprocessor handling to here. Start cpp insteado of cc -E,
4648 always include -U__GNUC__, since it's specific to the preprocessor
4651 * tests/parser/Makefile.am (check-local): Silent diff and skip
4652 -U__GNUC__ which is always defined now
4654 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4656 reviewed by: <delete if not using a buddy>
4658 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4659 * tests/parser/Makefile.am:
4661 2007-12-09 Johan Dahlin <johan@gnome.org>
4664 Use GOption for command line options.
4665 (g_igenerator_new, main): Simplify constructor and they way
4666 parameters are passed into it.
4672 * src/gen-introspect.c:
4673 * src/gen-introspect.h:
4675 Rename gen-introspect.[ch] to scanner.[ch]
4677 2007-12-09 Johan Dahlin <johan@gnome.org>
4681 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4682 don't make the repository library and the other utilites link against
4685 * src/gen-introspect.c: (g_igenerator_create_object),
4686 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4687 (g_igenerator_create_enum), (g_igenerator_create_flags),
4688 (g_igenerator_process_module_symbol),
4689 (g_igenerator_process_module), (g_igenerator_generate), (main):
4690 * src/gen-introspect.h:
4691 Refactor g_igenerator_process_types into smaller pieces.
4693 * tests/parser/Makefile.am:
4694 Depend on the gen-introspect binary
4696 2007-12-09 Johan Dahlin <johan@gnome.org>
4698 * src/gen-introspect.c (g_igenerator_process_types):
4699 Break into smaller pieces, one for each generated node type.
4701 2007-12-08 Johan Dahlin <johan@gnome.org>
4703 * src/gen-introspect.c: (g_igenerator_process_types),
4704 (g_igenerator_add_module):
4705 * tests/parser/Foo-expected.gidl:
4706 * tests/parser/foo-object.h:
4707 * tests/parser/foo.c: (foo_subobject_class_init),
4708 (foo_subobject_init):
4710 Add a subobject test and make sure to register defined classes
4711 in the lookup symbol hash table.
4713 2007-12-08 Johan Dahlin <johan@gnome.org>
4717 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4718 (g_igenerator_process_types), (g_igenerator_add_module),
4719 (g_igenerator_add_include_idl), (main):
4720 * src/gen-introspect.h:
4721 * tests/parser/Makefile.am:
4722 * tests/parser/Foo-expected.gidl:
4724 Change the gen-introspect to generate namespaced module names,
4725 such as GLib.Object instead of GObject.
4726 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4727 add a --include-idl parameter to gen-introspect,
4728 and update the parser test.
4730 2007-12-08 Johan Dahlin <johan@gnome.org>
4732 * src/gen-introspect.c:
4733 Move main to the end of the file and attempt to make it valid
4736 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4737 we're not quite ready to generate metadata yet.
4742 Add a simple gen-introspect parser test
4744 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4746 reviewed by: Johan Dahlin <johan@gnome.org>
4749 * gobject-introspection.pc.in:
4751 * src/compiler.c: (format_output), (write_out_metadata), (main):
4752 * src/gen-introspect.c: (main):
4753 * src/gen-introspect.h:
4754 * src/generate.c: (write_callable_info), (write_repository),
4755 (load_metadata), (main):
4756 * src/gidlmodule.c: (g_idl_module_new),
4757 (g_idl_module_build_metadata):
4759 * src/gidlparser.c: (start_element_handler):
4760 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4761 (g_base_info_get_name), (g_base_info_get_namespace),
4762 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4763 (g_base_info_get_metadata), (g_function_info_get_symbol),
4764 (g_function_info_get_flags), (g_function_info_get_property),
4765 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4766 (g_callable_info_may_return_null),
4767 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4768 (g_callable_info_get_arg), (g_arg_info_get_direction),
4769 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4770 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4771 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4772 (g_type_info_get_tag), (g_type_info_get_param_type),
4773 (g_type_info_get_interface), (g_type_info_get_array_length),
4774 (g_type_info_is_zero_terminated),
4775 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4776 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4777 (g_value_info_get_value), (g_field_info_get_flags),
4778 (g_field_info_get_size), (g_field_info_get_offset),
4779 (g_registered_type_info_get_type_name),
4780 (g_registered_type_info_get_type_init),
4781 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4782 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4783 (find_method), (g_struct_info_find_method),
4784 (g_enum_info_get_n_values), (g_enum_info_get_value),
4785 (g_object_info_get_parent), (g_object_info_get_type_name),
4786 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4787 (g_object_info_get_interface), (g_object_info_get_n_fields),
4788 (g_object_info_get_field), (g_object_info_get_n_properties),
4789 (g_object_info_get_property), (g_object_info_get_n_methods),
4790 (g_object_info_get_method), (g_object_info_find_method),
4791 (g_object_info_get_n_signals), (g_object_info_get_signal),
4792 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4793 (g_object_info_get_n_constants), (g_object_info_get_constant),
4794 (g_interface_info_get_n_prerequisites),
4795 (g_interface_info_get_prerequisite),
4796 (g_interface_info_get_n_properties),
4797 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4798 (g_interface_info_get_method), (g_interface_info_find_method),
4799 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4800 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4801 (g_interface_info_get_n_constants),
4802 (g_interface_info_get_constant), (g_property_info_get_flags),
4803 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4804 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4805 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4806 (g_constant_info_get_value), (g_union_info_get_n_fields),
4807 (g_union_info_get_field), (g_union_info_get_n_methods),
4808 (g_union_info_get_method), (g_union_info_is_discriminated),
4809 (g_union_info_get_discriminator_offset),
4810 (g_union_info_get_discriminator):
4811 * src/ginvoke.c: (g_function_info_invoke):
4812 * src/girepository.c: (g_irepository_register),
4813 (g_irepository_unregister), (g_irepository_get_default),
4814 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4815 (g_irepository_get_info), (g_irepository_find_by_name),
4816 (g_irepository_get_shared_library),
4817 (g_irepository_build_search_path), (g_irepository_register_file),
4818 (g_irepository_error_quark):
4819 * src/girepository.h:
4820 * src/gmetadata.c: (g_metadata_get_dir_entry),
4821 (g_metadata_check_sanity), (validate_header),
4822 (validate_array_type_blob), (validate_iface_type_blob),
4823 (validate_param_type_blob), (validate_error_type_blob),
4824 (validate_type_blob), (validate_arg_blob),
4825 (validate_signature_blob), (validate_function_blob),
4826 (validate_callback_blob), (validate_constant_blob),
4827 (validate_value_blob), (validate_field_blob),
4828 (validate_property_blob), (validate_signal_blob),
4829 (validate_vfunc_blob), (validate_struct_blob),
4830 (validate_enum_blob), (validate_object_blob),
4831 (validate_interface_blob), (validate_errordomain_blob),
4832 (validate_union_blob), (validate_blob), (validate_directory),
4833 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4834 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4835 (g_metadata_new_from_mapped_file), (g_metadata_free),
4836 (g_metadata_set_module), (g_metadata_get_namespace):
4838 * tests/Makefile.am:
4839 * tests/invoke/Makefile.am:
4840 * tests/invoke/invoke-namespace-find.sh:
4841 * tests/invoke/invoke.c: (main):
4843 Add a namespace/shared library mapping. fixes #313268.
4845 2007-12-03 Johan Dahlin <johan@gnome.org>
4847 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4850 2007-11-30 Jürg Billeter <j@bitron.ch>
4856 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4857 (g_igenerator_write_inline), (g_igenerator_write),
4858 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4859 (field_generate), (value_generate), (constant_generate),
4860 (property_generate), (function_generate), (vfunc_generate),
4861 (signal_generate), (interface_generate), (struct_generate),
4862 (union_generate), (boxed_generate), (enum_generate),
4863 (node_generate), (module_generate), (get_type_from_type_id),
4864 (str_replace), (g_igenerator_process_properties),
4865 (g_igenerator_process_signals), (g_igenerator_process_types),
4866 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4867 (g_igenerator_process_unregistered_struct_typedef),
4868 (g_igenerator_process_struct_typedef),
4869 (g_igenerator_process_union_typedef),
4870 (g_igenerator_process_enum_typedef),
4871 (g_igenerator_process_function_typedef),
4872 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4873 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4874 (g_igenerator_generate), (main), (csymbol_new),
4875 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4876 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4877 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4878 (eat_hspace), (eat_line), (read_identifier),
4879 (g_igenerator_parse_macros):
4880 * src/gen-introspect.h:
4882 Import gen-introspect to generate introspection information by
4885 2007-11-30 Jürg Billeter <j@bitron.ch>
4887 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4889 2007-11-30 Jürg Billeter <j@bitron.ch>
4891 * src/gidlparser.c: (end_element_handler): Don't leave requires
4894 2007-11-29 Johan Dahlin <johan@gnome.org>
4896 * src/gidlparser.c (parse_type_internal): Add char,
4897 gchar and guchar to the builtin types.
4899 2007-11-26 Johan Dahlin <johan@gnome.org>
4901 * src/ginfo.c: (g_object_info_get_type_name),
4902 (g_object_info_get_type_init):
4903 * src/girepository.c: (g_irepository_is_registered):
4904 * src/girepository.h:
4906 Add g_object_info_get_type_name, g_object_info_get_type_init and
4907 g_irepository_is_registered.
4909 2006-08-14 Jürg Billeter <j@bitron.ch>
4911 * src/gidlparser.c: (end_element_handler): Don't leave
4912 namespace and implements states too early.
4915 2007-11-26 Johan Dahlin <johan@gnome.org>
4917 * src/gmetadata.c (validate_struct_blob):
4918 pass blob_type to validate_function_blob instead of
4919 hard-coding BLOB_TYPE_STRUCT.
4921 Patch by Torsten Schoenfeld, fixes #314190
4923 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
4925 * src/compiler.c, src/generate.c, src/gidlnode.c,
4926 src/gidlparser.c, src/ginfo.c, src/girepository.c,
4927 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
4928 warnings about return values, signedness mismatches, unused
4929 variables, and unhandles enum values in switch statements.
4931 * tests/invoke/Makefile.am: Don't install the invoke test program.
4932 Add -I ../../src to the cflags used for the test functions files.
4934 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4936 * src/girepository.h: Export g_invoke_error_quark.
4938 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4940 * src/ginvoke.c: Remove the fallback implementation of
4941 g_function_info_invoke since we now formally depend on libffi.
4943 2005-07-25 Matthias Clasen <mclasen@redhat.com>
4945 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
4946 Remove these files from cvs, as they are now generated.
4948 * src/gmetadata.c (validate_iface_type_blob): Don't
4949 complain if blob->pointer is not set, since that
4950 happens for enum and flag types. (#308935, Gustavo
4953 * Commit an autoconf-conversion patch by
4954 Gustavo Carneiro (#308708)
4956 2005-05-24 Matthias Clasen <mclasen@redhat.com>
4958 * src/compiler.c (main): Use it here to validate
4959 the generated metadata.
4961 * src/gmetadata.[hc]: Add code to validate a
4964 * metadata-format.txt: Updates
4966 2005-05-22 Matthias Clasen <mclasen@redhat.com>
4968 * tests/*: Add struct offsets to field and vfunc
4971 * src/generate.c (write_vfunc_info): Write offset
4972 information for vfuncs.
4974 * src/gidlnode.c (g_idl_node_build_metadata): Write
4975 the struct offsets into the metadata.
4977 * src/gidlparser.c: Parse the offset attributes of
4978 field and vfunc elements.
4980 * src/gidlnode.h: Add offset members to field and
4983 2005-05-21 Matthias Clasen <mclasen@redhat.com>
4987 * gidl.dtd: Updates.
4989 * src/g-idl-offsets.pl: A perl script which reads a .gidl
4990 file, creates, compiles and runs a C file, and folds the
4991 resulting struct offsets back into the .gidl file.
4993 2005-05-20 Matthias Clasen <mclasen@redhat.com>
4995 * src/gidlparser.c (start_field): Make fields in objects
4998 * src/gidlmodule.c: Include string.h
5003 * metadata-format.txt: Cleanup basic types.
5004 * src/*: Adapt to the changes.
5005 * tests/*: Adapt to the changes.
5006 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5008 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5009 size for enum blobs.
5010 (g_idl_node_get_full_size): Report the correct size for
5013 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5014 error checking for blob sizes.
5016 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5018 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5019 interface types for which is_pointer is FALSE, e.g. enums.
5021 * src/gidlnode.c (g_idl_node_get_full_size)
5022 * src/gidlparser.c (parse_type_internal):
5023 * src/generate.c (write_type_info): Support unspecialized
5024 lists, hashtables and errors. Also emit a '*' after these.
5028 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5032 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5034 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5036 * src/*.c: Change the directory to be addressed by
5037 1-based indexes, and use an index of zero to mean
5040 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5042 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5044 * tests/union.test: Add a union test.
5046 * src/generate.c: Handle unions.
5048 * src/girepository.h:
5049 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5051 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5053 * src/gidlparser.c (start_union): Parse <union> elements.
5055 * src/gidlnode.h: Add a GIdlNodeUnion.
5057 * gidl.dtd: Add a <union> element.
5059 * src/gmetadata.c (g_metadata_check_sanity): Check
5062 * src/gmetadata.h: Add union_blob_size to Header,
5065 * metadata-format.txt: Add a UnionBlob.
5067 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5069 * tests/*: Update testcases.
5071 * src/generate.c (write_callable_info): Don't forget to
5072 write transfer and null-ok attributes for return types
5075 * src/girepository.h:
5076 * src/ginfo.c (g_callable_info_may_return_null):
5077 New function to find out if a function may return NULL.
5079 * src/compiler.c (format_output): Make the generated
5082 * README: Point to a recent libffi snapshot.
5084 * tests/invoke/*: Some invoke tests.
5086 * src/Makefile: Add ginvoke.c and the necessary
5089 * src/girepository.h (g_function_info_invoke): Add
5092 * src/ginvoke.c (g_function_info_invoke): Initial
5093 implementation of invoke functionality based on libffi.
5095 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5096 strings and types hash tables in the right order when
5098 (find_entry_node): Free the name parts.
5100 2005-05-12 Johan Dahlin <johan@gnome.org>
5102 * src/generate.c: Generate consistent end tags.
5106 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5110 * src/gidlparser.c (start_function): Actually add
5111 methods to objects. (Steven Walter)
5113 * src/girepository.h:
5114 * src/ginfo.c: Rename Transfer and Direction to
5115 GITransfer and GIDirection. (Torsten Schoenfeld)
5117 * tests/*: Make tests work with the changes in name
5120 * src/gidlnode.c (find_entry_node): Parse qualified
5121 names and generate xref nodes for them if needed. Don't
5122 require all modules to be loaded any more.
5124 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5127 * src/ginfo.c (g_object_info_get_parent): Return NULL
5128 if blob->parent is 0. Still need to make sure index
5131 * src/generate.c: Generate qualified names when
5132 referring to non-local types. Emit transfer attribute
5135 * src/compiler.c (format_output): Put the function
5136 attributes where gcc accepts them.
5138 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5140 * src/compiler.c (main): Add a --verbose cmdline option
5141 and only log messages if it is specified.
5144 * src/gidlnode.c (init_stats, dump_stats): Collect some
5145 statistics on string and type sharing.
5147 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5148 g_message() instead of fprintf().
5150 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5151 (g_idl_node_get_size): Implement for structs.
5152 (g_idl_node_get_full_size): Handle parent being NULL.
5153 (serialize_type): Handle lookup failures more gracefully.
5155 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5157 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5158 size calculation for 2-parameter types and for objects.
5160 * src/compiler.c: Add a cmdline option for debug output
5161 and install a log handler to implement it.
5162 * src/gidlnode.c: Add some debug spew.
5166 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5167 forget to count the module name when calculating the
5168 required size for the metadata.
5171 * src/gidlparser.c: Fix compiler warnings.
5173 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5175 * src/compiler.c (main): Free the option context.
5177 * gidl.dtd: Clean up handling of names. All elements
5178 have a "name", only the elements corresponding to
5179 actual callable functions (function, method, constructor),
5180 have an additional "symbol" attribute holding the
5181 dlsym()-able function name.
5183 * src/generate.c: Adapt to generate xml matching the
5187 * src/gidlnode.c: Adapt to parse the new dtd.
5189 * tests/*.test: Adjust to the new dtd.
5191 * metadata-format.txt:
5192 * src/gmetadata.h: Remove the short_name field
5194 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5195 * src/girepository.h:
5196 * src/ginfo.c (g_value_info_get_short_name): Removed
5198 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5200 * gidl.dtd: Allow constructors for boxed types,
5201 patch by Jonathan Blandford.
5204 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5206 * --- Initial import ---