1 2008-11-05 Colin Walters <walters@verbum.org>
3 * girepository/ginvoke.c (g_function_info_invoke): Don't use
4 nested scope local variable for error which may go away after
5 conditional is complete.
7 2008-11-05 Colin Walters <walters@verbum.org>
9 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
10 manipulate hackily; just use GString. This avoids an
11 uninitialized memory read pointed out by Havoc.
13 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
15 * giscanner/__init__.py:
17 * giscanner/cachestore.py:
18 * giscanner/cgobject.py:
19 * giscanner/girparser.py:
20 * giscanner/girwriter.py:
21 * giscanner/giscannermodule.c:
22 * giscanner/glibast.py:
23 * giscanner/glibtransformer.py:
24 * giscanner/libtoolimporter.py:
25 * giscanner/minixpath.py:
27 * giscanner/sourcescanner.c:
28 * giscanner/sourcescanner.h:
29 * giscanner/sourcescanner.py:
30 * giscanner/transformer.py:
32 * giscanner/xmlwriter.py:
34 Relicense the giscanner library under LGPLv2+.
35 This has been approved by all contributors.
37 2008-11-01 Owen Taylor <otaylor@redhat.com>
39 Bug 558848 giparser.py: shared library should be optional
41 When parsing a .gir, allow the shared-library attribute
42 of <namespace/> to be missing: this corresponds to the handling
43 in libgirepository and elsewhere.
45 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
47 Bug 557898 – Fails to build on OSX 10.4
49 * configure.ac: Check for $shrext_cmds that should be implicitly
50 available if you're using libtool >= 2.0. If undefined, call
51 libtool --config explicitly to get its value.
52 * girepository/gtypelib.c: Remove special case for (non-)Darwin
55 2008-10-31 Colin Walters <walters@verbum.org>
57 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
59 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
61 * configure.ac: Post release version bump
64 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
68 * docs/release-checklist.txt:
71 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
73 * Makefile.am: add an upload-release target
74 * docs/release-checklist.txt:
75 Release process documentation
77 2008-10-31 Colin Walters <walters@verbum.org>
79 Bug 558109 – _g_typelib_init fails to find shared libraries
81 * transformer/glibtransformer.py: Use ctypes' find_library
82 on passed libraries and write that for the shared-library
83 entry. We want to avoid depending on -devel packages.
85 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
87 * docs/g-ir-scanner.1:
88 Document the renaming options.
90 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
92 * giscanner/Makefile.am:
93 * tests/invoke/Makefile.am:
94 * tests/repository/Makefile.am: List in-tree libraries first in
95 LDADD / LIBADD. If installed library is listed first, the
96 resulting binary will prefer installed version to one in .libs,
97 possibly making 'make check' behave strangely.
99 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
101 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
102 gir-repository from choking with gdk/quartz
104 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
106 * giscanner/giscannermodule.c (calc_attrs_length),
107 (pygi_collect_attributes):
108 * giscanner/xmlwriter.py:
109 Write a C version of the xml namespace formatter.
110 Saves 15% of the time it takes to create a gtk gir.
112 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
114 * giscanner/xmlwriter.py: Abstract attribute formatting
115 to a function external to the XMLWriter class.
117 * giscanner/scannerlexer.l:
118 Parse and discard __typeof and __attribute.
120 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
122 * giscanner/girparser.py:
123 Remove arguments from the constructor, move them to
124 separate accessors. Add a new parse_tree method
125 which takes an element tree instance.
126 * tools/g-ir-scanner:
127 Update callsite for this
129 * giscanner/Makefile.am:
130 * giscanner/cachestore.py:
131 * giscanner/transformer.py:
132 Cache the include parsing. Saves ~25% time when
133 creating vte (which includes everything up to gtk+).
135 2008-10-30 Colin Walters <walters@verbum.org>
137 * giscanner/transformer.py: Don't reparse includes
138 we've already processed.
140 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
142 * giscanner/girparser.py:
143 * giscanner/transformer.py:
144 Avoid parsing parameters, types etc when parsing
145 includes. Should speed up include parsing a bit.
147 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
149 * giscanner/girparser.py:
150 Avoid big if/else and use a dispatch table like
153 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
155 * giscanner/transformer.py:
156 Clean up include parsing and registration.
158 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
160 * giscanner/transformer.py:
163 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
165 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
168 construct PYTHONPATH just once
170 * tests/everything/Makefile.am:
171 * tests/scanner/Makefile.am:
172 add $(top_srcdir) to PYTHONPATH to
173 handle builddir != srcdir
175 * giscanner/libtoolimporter.py:
176 * giscanner/sourcescanner.py:
177 Make the libtoolimporter work when distchecking too.
179 Mostly based on patch by Tommi Komulainen
181 2008-10-29 Owen Taylor <otaylor@redhat.com>
183 * giscanner/glibtransformer.py: If a filename of an existing
184 file is passed to --library, hunt for it directly, rather than
185 searching for a corresponding library.
187 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
189 * giscanner/libtoolimporter.py:
190 * giscanner/sourcescanner.py:
191 Clean up the libtool importer a bit. Add a context so we
192 can use it through a with statement.
193 Don't just look in the current directory, look in the whole
196 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
198 Bug 558065 – gitesttypes should be installed
202 * tests/types/Makefile.am -> tests/everything/Makefile.am
203 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
204 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
205 move tests/types to tests/everything
207 * tests/everything/Makefile.am: build normal shared library
208 libgirepository-everything.so.1.0.0 and corresponding typelib
209 Everything-1.0.typelib
211 * tests/everything/Makefile.am: explicitly link libtool
212 versioning with typelib versioning with variables
214 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
216 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
218 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
220 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
223 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
225 Bug 558068 – when invoking a method, offset the in arguments by one,
228 * tests/invoke/invoke.c, tests/invoke/testfns.c,
229 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
230 * girepository/ginvoke.c: do not offset the index of given out
231 arguments by one for methods, "this" is provided as in argument only.
233 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
235 * gir/gio-2.0.c: add annotation for g_file_delete
237 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
239 Bug 558062 – provide and use paths in the .pc file
241 * gobject-introspection-1.0.pc.in: provide typelibdir variable
242 for where .typelibs should be installed (callers shouldn't need
243 to construct paths from bits and pieces)
245 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
247 Bug 557791 – g_irepository_require() could return a GTypelib *
249 * girepository/girepository.c: Return GTypelib; this is useful
250 for low level manipulation.
252 2008-10-25 Colin Walters <walters@verbum.org>
254 Bug 557788 – Return types for constructors in generated typelib bogus
256 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
257 rely on end pass resolution.
259 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
261 Bug 557786 - support fixed size arrays
263 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
264 * giscanner/scannerparser.y: Retain fixed array size.
265 * giscanner/ast.py: Add to note.
266 * giscanner/girwriter.py: Write to gir.
267 * girepository/girnode.c: Write it to typelib.
268 * tools/generate.c: Generate.
269 * tests/*: Add tests.
271 2008-10-25 Colin Walters <walters@verbum.org>
273 Bug 557076 - move typelibs to $libdir
275 * configure.ac: Steal some configury bits from dbus to expand
277 * gir/Makefile.am: Move to libdir.
278 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
279 instead just look at one hardcoded path in libdir.
280 * acinclude.m4: Bits from dbus.
282 2008-10-24 Johan Dahlin <johan@gnome.org>
284 * girepository/girnode.c (g_ir_node_check_unhandled_members):
285 Be quiet, do not warn about unhandled members.
287 2008-10-24 Johan Dahlin <johan@gnome.org>
289 * girepository/gtypelib.c:
290 Only use SHLIB_SUFFIX on darwin, otherwise use
291 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
293 2008-10-24 Lucas Rocha <lucasr@gnome.org>
295 Bug 557623 - Constructors shouldn't be flagged as methods.
297 * girepository/ginfo.c (g_function_info_get_flags): ditto.
299 2008-10-24 Johan Dahlin <johan@gnome.org>
301 * giscanner/scannerparser.y:
302 Check against division by zero for the modula operator.
303 This fixes header parsing of OSX system headers included
306 2008-10-24 Johan Dahlin <johan@gnome.org>
310 Add a CONTRIBUTORS file and dist it.
312 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
314 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
316 * girepository/girparser.c (parse_param_transfer):
317 * giscanner/transformer.py (_create_parameter, _create_return):
318 * giscanner/girwriter.py (_write_return, _write_parameter):
319 * tools/generate.c (write_callable_info): always write and
320 require "transfer-ownership" for return-values and parameters
323 * tests/invoke/testfns-1.0.gir:
325 * tests/scanner/DrawableAdditions.xml:
326 * tests/scanner/GtkFrob-1.0-expected.tgir:
327 * tests/scanner/annotation-1.0-expected.tgir:
328 * tests/scanner/drawable-1.0-expected.tgir:
329 * tests/scanner/drawable-injected-1.0-expected.gir:
330 * tests/scanner/drawable-injected-1.0-expected.tgir:
331 * tests/scanner/foo-1.0-expected.tgir: Updated
333 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
335 * giscanner/cgobject.py: build fundamental types same way as glib
337 * giscanner/glibtransformer.py (_type_from_gtype): record GType
338 when constructing the Type from it
340 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
341 the parameter is a GObject from its GType, if available.
343 * giscanner/glibtransformer.py (_adjust_transfer):
344 * tests/scanner/foo-1.0-expected.gir:
345 * tests/scanner/foo-1.0-expected.tgir: deduce
346 transfer-ownership from GTypes
348 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
350 * giscanner/transformer.py (_create_parameter):
351 * tests/scanner/foo-1.0-expected.gir: make varargs
352 transfer-ownership="none"
354 2008-10-23 Colin Walters <walters@verbum.org>
356 Bug 556739 - transfer ownership
358 * giscanner/ast.py: Refactor Parameter/Return to share
359 common attributes. Add transfer_inferred attribute
360 which says whether or not we made a guess.
361 * giscanner/transformer.py: Add much more extensive
362 heuristics around parameter and return transfer.
363 * giscanner/glibtransformer.py: Adjust to inspect
367 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
369 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
371 * tests/scanner/Makefile.am:
372 * tests/scanner/annotation-1.0-expected.tgir:
373 * tests/scanner/drawable-1.0-expected.tgir:
374 * tests/scanner/drawable-injected-1.0-expected.tgir:
375 * tests/scanner/foo-1.0-expected.tgir:
376 * tests/scanner/GtkFrob-1.0-expected.tgir:
377 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
378 annotations survive the roundtrip via typelib
380 The expectations are as currently produced by g-ir-generate,
381 comparison with the .gir files shows there are differences.
383 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
385 Bug 557468 – Support for GI_TYPELIB_PATH
387 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
388 provided paths to the global search path.
390 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
392 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
394 * tests/scanner/drawable-1.0-expected.tgir:
395 * tests/scanner/drawable-injected-1.0-expected.tgir:
396 * tests/scanner/foo-1.0-expected.tgir:
397 * tools/generate.c (write_object_info): write 'abstract'
398 attribute for classes
400 2008-10-22 Lucas Rocha <lucasr@gnome.org>
402 * girepository/girmodule.c, girepository/gtypelib.c,
403 girepository/girparser.[ch]: fix some build warnings.
405 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
407 Bug 557405 – Use 'allow-none' consistently
409 * docs/typelib-format.txt:
410 * girepository/ginfo.c (g_arg_info_may_be_null):
411 * girepository/girnode.c (g_ir_node_build_typelib):
412 * girepository/girnode.h (struct _GIrNodeParam):
413 * girepository/girparser.c (start_parameter):
414 * girepository/girwriter.c (function_generate):
415 * girepository/gtypelib.h (ArgBlob):
417 * tests/function.gir:
418 * tools/generate.c (write_callable_info): Use 'allow-none'
419 consistently throughout
421 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
423 Bug 557092 – Callback annotations not used
425 * giscanner/transformer.py (_create_callback): use annotations
427 * tests/scanner/annotation.h
428 * tests/scanner/annotation-1.0-expected.gir: add tests
430 2008-10-21 Colin Walters <walters@verbum.org>
432 * giscanner/scannerlexer.l: Don't require trailing whitespace after
433 uncommented parameters.
436 2008-10-21 Colin Walters <walters@verbum.org>
438 * girepository/girepository.c: Ensure that when doing an unversioned
439 require, we prefer items earlier in the search path to later ones.
441 2008-10-21 Owen Taylor <otaylor@redhat.com>
443 * giscanner/transformer.py: For string parameters allow transfer annotation
444 to override the standard automatic guessing based on 'const'.
446 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
448 Bug 557241 – "throws" flag for functions
450 * tests/scanner/drawable-1.0-expected.gir,
451 tests/scanner/drawable-injected-1.0-expected.gir,
452 tests/scanner/drawable.[ch]: add simple test for throwing
453 function (has GError ** as last argument)
455 * giscanner/ast.py: add a 'throws' flag to Function
456 * giscanner/glibtransformer.py: if a function's last paramerter is
457 a GError, set the 'throws' flag and remove that parameter
458 * giscanner/girwriter.py: write out the 'throws' attribute
459 * giscanner/girparser.py: support parsing the 'throws' attribute
461 * tests/repository/gitestthrows.c: add a simple test to check the
462 throws flag in a typelib and invoke the function
464 * girepository/ginfo.c, girepository/girnode.[ch],
465 girepository/girnode.h, girepository/girparser.c,
466 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
468 * girepository/ginvoke.c: if a function throws, add a GError as last
469 arguments, and propagate the error to the invoker.
471 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
473 * giscanner/transformer.py (_create_parameters): Warn if we see
474 annotations for unknown parameters. If .h and .c files name
475 parameters differently, the annotations may be lost.
477 2008-10-21 Johan Dahlin <johan@gnome.org>
479 Bug 556358 - don't use libtool internals
481 * giscanner/Makefile.am:
482 * giscanner/libtoolimporter.py:
483 * giscanner/sourcescanner.py:
484 * giscanner/utils.py:
485 Add a python meta importer and remove a libtool symlink hack.
487 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
489 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
490 and --add-include-path appropriately when invoking the scanner.
491 * tests/types/Makefile.am (%typelib): Likewise.
493 2008-10-20 Colin Walters <walters@verbum.org>
495 Bug 556777 - validate properties
497 * giscanner/transformer.py: Add option to throw on unknown types.
498 * giscanner/glibtransformer.py: Use it on properties.
499 * tests/*: Add a test.
501 2008-10-20 Colin Walters <walters@verbum.org>
503 * giscanner/glibast.py: Also register g variants of
504 default_array_types. This is not beautiful, but
505 good alternatives aren't easy to come by.
506 This fixes gchar ** parsing.
508 2008-10-20 Colin Walters <walters@verbum.org>
510 * docs/typelib-format.txt, girepository/gtypelib.h:
511 Take a bit from ObjectInfo to represent abstract flag.
512 * giscanner/cgobject.py: Expose g_type_get_flags.
513 * girepository/girepository.h: Add accessor.
514 * girepository/ginfo.c: Implement it.
515 * giscanner/ast.py: Add is_abstract flag to generic
517 * giscanner/glibast.py: Use it.
518 * giscanner/girwriter.py: Write it.
519 * girepository/girparser.c: Parse it.
522 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
524 * giscanner/girparser.py (_parse_function): don't lose
525 'transfer-ownership' attributes when injecting, check for the
528 2008-10-19 Johan Dahlin <johan@gnome.org>
530 * giscanner/scannerlexer.l: Parse and ignore __asm.
532 2008-10-19 Colin Walters <walters@verbum.org>
534 * giscanner/girparser.py: Parse array length= to ensure
535 it doesn't get lost from --inject.
537 2008-10-17 Colin Walters <walters@verbum.org>
539 Bug 556795 - char ** regression
541 * giscanner/transformer.py: Fix parsing of ctypes, add some
542 comments about what's going on.
543 * tests/*: Add a test for char **.
545 2008-10-17 Colin Walters <walters@verbum.org>
547 Bug 556783 - change namespace handling to be more consistent
549 * giscanner/transformer.py: Eliminate usage of
550 strip_namespace_object. We now treat --namespace as the default
551 --strip-prefix; however, if --strip-prefix is specified it
552 overrides --namespace. This applies to everything except function
553 names, where we do also strip the namespace.
554 * giscanner/glibtransformer.py: Remove usage of
555 strip_namespace_object.
557 * tests/*: Add skeletal GtkFrob-1.0 test which has different
558 --namespace and --strip-prefix.
560 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
562 Bug 556732 – generate gir files consistently
564 * girepository/girparser.c (start_parameter):
566 * tests/invoke/testfns-1.0.gir:
567 * tools/generate.c (write_callable_info): write
568 'transfer-ownership' attribute consistently with both
569 return-value and parameter elements
571 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
573 Bug 556732 – generate gir files consistently
575 * tools/generate.c (write_callable_info): write 'direction'
576 attribute only if other than 'in' to be consistent with
579 * tests/object.gir: remove direction="in" which is the default
581 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
583 Bug 556732 – generate gir files consistently
585 * giscanner/ast.py (Field): add readable and writable properties
586 * giscanner/girparser.py (_parse_field): copy 'readable' and
587 'writable' attributes
588 * giscanner/transformer.py (_create_member): create fields as
590 * giscanner/glibtransformer.py (_introspect_object,
591 _pair_class_struct): make object instance and class fields
593 * giscanner/girwriter.py (_write_field):
594 * tools/generate.c (write_field_info): write field 'readable'
595 and 'writable' attributes only if non-default (read-only)
596 * girepository/girparser.c (start_field): in the absence of
597 attributes assume fields are read-only
599 * tests/struct.gir: remove redundant readable="1" from fields
600 * tests/scanner/foo-1.0-expected.gir:
601 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
602 all record and union fields
604 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
606 Bug 556732 – generate gir files consistently
608 * giscanner/girwriter.py (_write_property): write properties
609 'construct' attribute if set
610 * tools/generate.c (write_property_info): write properties
611 'readable' and 'writable' attributes only if non-default
612 * tests/object.gir: add writable="0"
613 * tests/scanner/foo-1.0-expected.gir: add construct="1"
615 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
617 * gir/glib-2.0.c: added annotations
619 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
621 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
624 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
626 Bug 556610 – giscanner/girparser.py drops parameter options
628 * tests/scanner/drawable-injected-1.0-expected.gir,
629 tests/scanner/DrawableAdditions.xml: added simple test for injection.
630 * giscanner/ast.py: allow Parameter to take options in the constructor
631 * giscanner/girparser.py: parse parameter options (transfer,
632 direction, allow-none)
634 2008-10-16 Colin Walters <walters@verbum.org>
636 Bug 556185 - segfault on g_callable_info_get_return_type
638 Initial patch from John Ehresman.
640 * tests/repository/*: Add a test using
641 g_callable_info_get_return_type. Instead of casting a
642 GITypeInfo directly to a GIRegisteredTypeInfo, we need
643 to call g_type_info_get_interface.
645 2008-10-16 Colin Walters <walters@verbum.org>
647 Bug 556579 - union and struct name misresolved
649 * giscanner/transformer.py: The calls to _resolve_type_name
650 for struct/union names was a legacy holdover from when type
651 resolution had multiple phases. Now it's actively harmful
652 since we might pull in an identical name from another
656 2008-10-16 Colin Walters <walters@verbum.org>
658 Bug 556432 - transfer annotations and defaults
660 * giscanner/transformer.py: Canonicalize type
661 after removing *, not before. This ensures that
662 guchar* is transformed to 'uint8'.
663 Add some comments here.
664 * giscanner/glibtransformer.py: Add _adjust_transfer
665 phase for tweaking GObject transfers.
668 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
670 * configure.ac: enable bunch of gcc warning CFLAGS
672 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
674 Bug 556543 – reduce compiler warnings
676 * girepository/ginfo.c:
677 * girepository/girepository.c (register_internal,
678 count_interfaces, find_interface, find_namespace_version,
679 parse_version, g_irepository_require):
680 * girepository/girmodule.c (g_ir_module_build_typelib):
681 * girepository/girnode.c (init_stats, dump_stats,
682 _g_irnode_init_stats, _g_irnode_dump_stats,
683 g_ir_node_can_have_member):
684 * girepository/girparser.c (firstpass_end_element_handler,
685 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
686 start_alias, start_type, end_type_top, parse_include, cleanup,
688 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
689 * giscanner/giscannermodule.c (directive_get_options,
690 type_get_child_list):
691 * giscanner/scannerlexer.l (parse_gtkdoc):
692 * giscanner/scannerparser.y (ctype_free):
693 * giscanner/sourcescanner.c:
694 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
695 * tests/types/gitesttypes.c:
696 * tools/compiler.c (main):
697 * tools/generate.c (write_repository): Remove unused variables
698 and code, add missing includes, declarations and case
701 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
703 Bug 556541 – access union members through UnionBlob rather than
706 * girepository/ginfo.c (g_union_info_find_method): access union
707 members through UnionBlob rather than StructBlob
709 2008-10-15 Colin Walters <walters@verbum.org>
711 Bug 556331 - clean up includes handling
713 * tools/g-ir-scanner: Rework command line arguments; now we take
714 --add-include-path and --include separately.
715 * giscanner/girwriter.py: Separate name= and version= in include
717 * giscanner/ast.py: Add Include type.
718 * giscanner/transformer.py: Cleanups to register_include now that
719 we don't need to handle mixed filenames and relative arguments.
720 * girepository/girparser.c: Parse name and version separately;
721 this fixes a bug as a side effect where we weren't resolving
722 through aliases for basic types.
723 * girepository/girepository.c: Fix format string args.
724 * gir/Makefile.am: Update.
727 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
729 Bug 556434 – unhandled interface/object/... member types
731 * girepository/girnode.c (g_ir_node_check_unhandled_members,
732 g_ir_node_build_typelib): Check all
733 interface/object/boxed/struct/union members are processed and
734 abort if they are not. (Mostly callbacks in structs, but also
735 fields in interfaces.)
737 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
739 * a/girepository/girnode.c (g_ir_node_build_members,
740 g_ir_node_build_typelib): refactor common code for processing
741 members to a function
743 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
745 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
746 transformation is lossless (it's not)
748 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
750 * tests/Makefile.am: fix tests to compare xml to xml instead of
751 typelib to xml, and stop on error
753 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
755 * tools/generate.c (write_type_name, write_type_info,
756 write_type_info, write_object_info, write_object_info,
757 write_interface_info, write_error_domain_info): reduce code
760 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
762 Bug 556174 – parse types for lists etc.
764 * girepository/girparser.c (end_type_recurse):
766 * tools/generate.c (write_type_info, write_field_info,
767 write_callable_info, write_callable_info, write_constant_info,
768 write_property_info): use nested <type>s for lists and hashes
770 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
773 * tests/object.gir: remove trailing whitespace from inside
774 elements to match g-ir-generate output
776 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
778 * tools/generate.c (xml_printf): quote printf arguments so that
779 we don't generate invalid XML by writing unescaped double quotes
780 and such in attributes
782 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
784 * tools/generate.c (write_field_info, write_callable_info,
785 write_function_info, write_callback_info, write_struct_info,
786 write_constant_value, write_signal_info, write_vfunc_info,
787 write_object_info, write_interface_info, write_union_info,
788 write_repository): remove unused indent parameters, xmlwriter
789 keeps track of necessary indentation
791 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
793 * tools/generate.c (xml_element_new, xml_element_free,
794 xml_start_element, xml_end_element, xml_end_element_unchecked,
795 xml_open, xml_close): Keep track of generated XML tree and
796 handle indentation and closing tags properly.
797 (write_field_info, write_callable_info, write_function_info,
798 write_callback_info, write_struct_info, write_value_info,
799 write_constant_info, write_enum_info, write_signal_info,
800 write_vfunc_info, write_property_info, write_object_info,
801 write_interface_info, write_error_domain_info, write_union_info,
802 write_repository): Use xml_start_element and xml_end_element to
805 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
807 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
808 (write_type_name, write_type_info, write_field_info,
809 write_callable_info, write_function_info, write_callback_info,
810 write_struct_info, write_value_info, write_constant_value,
811 write_constant_info, write_enum_info, write_signal_info,
812 write_vfunc_info, write_property_info, write_object_info,
813 write_interface_info, write_error_domain_info, write_union_info,
814 write_repository): wrap all FILE access to go through simple xmlwriter
816 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
818 Bug 556400 – Fails to build on OS X 10.4
820 * configure.ac: check for functions backtrace and backtrace_symbols
821 * girepository/girparser.c (backtrace_stderr): Comment out
822 implementation if the functions are not available.
823 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
824 directory for better portability
826 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
828 Bug 556433 – assume direction = out for int * parameters
830 * giscanner/ast.py: define a list of types for which, if passed as
831 reference, we assume a default direction of 'out'
832 * giscanner/transformer.py: if a type has type pointer to one of the
833 previously defined types, and no direction is set, assume out.
834 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
836 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
838 * tests/scanner/annotation.c: fixed a few copy-paste errors
840 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
842 Bug 556323 – transfer-ownership is wrong for functions returning const
845 * giscanner/transformer.py: check for a const string as return value,
846 not just const char*. Suggested by Colin Walters
847 * tests/scanner/annotation-1.0-expected.gir: updated expected output
849 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
851 * girepository/ginfo.c, girepository/girepository.h: add
852 g_union_info_find_method
854 2008-10-14 Colin Walters <walters@verbum.org>
856 * tests/repository/Makefile.am: Reenable repo test.
857 * tests/repository/gitestrepo.c: Prepend search
858 path for $(top_builddir)/gir dir so that we don't
859 require installation for "make check" to pass.
861 2008-10-13 Jürg Billeter <j@bitron.ch>
863 * giscanner/glibtransformer.py:
864 * tests/scanner/annotation-1.0-expected.gir:
865 * tests/scanner/drawable-1.0-expected.gir:
866 * tests/scanner/foo-1.0-expected.gir:
867 * tests/scanner/utility-1.0-expected.gir:
869 Support fields in GObject structs
871 2008-10-13 Jürg Billeter <j@bitron.ch>
873 * giscanner/ast.py: add signed integer and off_t to type_names
875 2008-10-12 Jürg Billeter <j@bitron.ch>
877 * giscanner/girparser.py: Parse bits attribute of fields
879 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
881 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
882 * tests/repository/gitestrepo.c (main): instantiate
883 'GCancellable' to ensure the GType is registered before using
886 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
888 * giscanner/girparser.py: actually add the parsed constant nodes
890 2008-10-12 Colin Walters <walters@verbum.org>
892 * girepository/girepository.c: Don't cast DirEntry to Blob,
893 actually look it up by offset.
895 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
897 * giscanner/girparser.py: parse constant nodes in gir files
899 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
901 * giscanner/transformer.py: prefix for constants have an underscore,
902 so remove them as if they were functions, not objects.
904 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
906 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
909 2008-10-12 Colin Walters <walters@verbum.org>
911 Initial patch from Jani Monoses.
913 * girepository/gtypelib.c: Fix inverted test for success
916 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
918 * tools/generate.c (write_callable_info): use "transfer-ownership"
919 attribute for return values
921 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
923 * tools/generate.c (write_callable_info): move "transfer" and
924 "null-ok" attributes from <function> to <return-value> element
926 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
928 * girepository/girparser.c (start_return_value): handle
929 "transfer-ownership" attribute
931 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
933 * girepository/girparser.c (parse_param_transfer):
934 * tools/generate.c (write_callable_info): use "container" for
935 container/shallow ownership transfer (not "shallow")
937 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
939 * girepository/girparser.c (parse_param_transfer,
940 start_parameter): Refactor handling of transfer=none/shallow/full
943 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
945 Bug 556048 – Crash in g_irepository_find_by_gtype
947 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
948 * girepository/girepository.c (find_interface): Fix
949 find_by_gtype case to get the type name from right offset
951 2008-10-12 Jürg Billeter <j@bitron.ch>
953 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
956 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
958 * girepository/gtypelib.h (RegisteredTypeBlob): make
959 'unregistered' one bit wide as everywhere else
961 2008-10-12 Jürg Billeter <j@bitron.ch>
963 * giscanner/glibtransformer.py:
964 * tests/scanner/annotation-1.0-expected.gir:
965 * tests/scanner/drawable-1.0-expected.gir:
966 * tests/scanner/drawable.h:
967 * tests/scanner/foo-1.0-expected.gir:
968 * tests/scanner/utility-1.0-expected.gir:
970 Readd class records as workaround to not break Gtk typelib
972 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
974 * tests/types/Makefile.am: fix typo in gitesttypes namespace
976 2008-10-12 Jürg Billeter <j@bitron.ch>
978 * giscanner/glibtransformer.py: Don't generate <record> elements
980 * tests/scanner/*: Update test cases
982 2008-10-11 Colin Walters <walters@verbum.org>
984 Bug 552858: versioning
986 This is a big patch. You should probably remove your installation
989 * docs/typelib-format.txt: Add nsversion entry which holds
990 version of namespace.
991 * girepository/girepository.h: Add 'version' parameter to
992 g_irepository_require. This may be NULL. Normally
993 bindings should pass an explicit version though.
994 * girepository/girepository.c: Lots of infrastructure to
995 support versioning. Add some more documentation. Disallow
996 some usage of NULL namespaces.
997 * girepository/girmodule.c: Add version parameter.
998 * girepository/gtypelib.c: Update header size.
999 * giscanner/ast.py: Add version to Namespace.
1000 * giscanner/girparser.py: Parse version attribute from
1001 XML, pass to Namespace.
1002 * giscanner/girwriter.py: Write out version parameter.
1003 * giscanner/transformer.py: Clean up include registration.
1004 * tests/*: Add version attribute.
1005 * tests/invoke/invoke.c: Don't try looking up test before
1006 it's loaded in repository.
1007 * tools/generate.c: Output version parameter.
1008 * gir/Makefile.am: Add 2.0 version to .gir files.
1010 2008-10-11 Colin Walters <walters@verbum.org>
1012 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1013 if we have mismatched parens.
1015 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1017 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1018 on 'members' variable.
1020 2008-10-11 Colin Walters <walters@verbum.org>
1022 Bug 555947 - update annotations syntax
1024 * giscanner/ast.py: Default to None for transfer. Remove
1025 default transfers for container types; we require this to
1027 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1028 'full' to match repository.
1029 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1030 * giscanner/transformer.py: Update for new annotations syntax.
1033 2008-10-11 Johan Bilien <jobi@litl.com>
1035 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1037 2008-10-11 Johan Bilien <jobi@litl.com>
1039 Bug 552347: Parse #defines constants
1041 * girepository/gtypelib.c: update the list of value_size
1042 with recently defined type tags
1043 * giscanner/scannerparser.y: brought back parsing of #defined, as
1044 present in older version
1045 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1046 * giscanner/girwriter.py: write out constant tags in the gir
1047 * giscanner/sourcescanner.py: add accessor for const_string
1048 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1051 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1053 Bug 555946: Install a test module exercising all types, transfer
1058 * tests/types/*: Add and install a test module that has functions
1059 accepting and returning most of the basic types to enable bindings
1060 implementors to more easily test their type conversion routines.
1062 2008-10-11 Jürg Billeter <j@bitron.ch>
1064 Bug 552374: Const strings should be identified in the gir.
1066 * giscanner/transformer.py: support string memory management
1067 * tests/scanner/foo.h: use char * and const char *
1068 * tests/scanner/foo-expected.gir: test that
1070 2008-10-11 Johan Dahlin <johan@gnome.org>
1072 * giscanner/girparser.py:
1073 Also parse enums which are not glib types.
1075 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1077 Bug 552370: add one more test for unsigned as a type, not as
1080 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1081 * test/scanner/foo.h: add function which uses unsigned as a type.
1082 * test/scanner/foo-expected.gir: test that.
1084 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1086 Bug 555712: Struct and union issues
1088 * giscanner/scannerparser.y (struct_declarator): Use information
1089 provided about the bit width of a field.
1090 * giscanner/transformer.py (Transformer._create_member): Pass the
1091 symbol's const_int member to the created field (it represents the
1093 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1094 field attribute, if present.
1095 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1096 width in bits of the field (only relevant for bitfields).
1099 * giscanner/transformer.py (Transformer._create_typedef_struct)
1100 (Transformer._create_typedef_union): Add calls to _create_struct()
1101 and _create_union(), respectively. This causes the scanner to
1102 generate output for fields of struct and union typedefs.
1105 2008-10-11 Jürg Billeter <j@bitron.ch>
1107 Bug 552370: unsigned not scanned properly
1109 * giscanner/scannerparser.y: combine basic types such as unsigned
1110 int and long long when scanning
1111 * tests/scanner/foo-expected.gir:
1112 * tests/scanner/foo.c: (foo_test_unsigned):
1113 * tests/scanner/foo.h: test that
1115 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1117 Bug 554854: The --typelib-xml and --inject options should reuse
1118 giscanner parser/writer.
1120 * giscanner/ast.py: add constructor list to Struct and Union.
1121 Add new param in Return's contructor to define transfer.
1122 * giscanner/girparser.py: several additions to the parser in order
1123 to have parsing all nodes of the gir xml files.
1124 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1125 and writer in --inject and --typelib-xml options.
1126 * giscanner/xmlwriter.py: ignore empty attributes instead of
1127 raising an error as this basically exposes a bug in GIRParser.
1128 This should be reverted as soon as the parser is fixed.
1130 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1132 Bug 552376: scanner generates wrong names for enum members when
1133 there's no defined gtype.
1135 * giscanner/utils.py (strip_common_prefix): Always strip common
1136 prefix exactly up to the last "_", and not beyond.
1137 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1138 here is that the first character after the last '_' should should be
1139 the same as the character in the same position on the type name.
1140 * tests/scanner/foo-expected.gir: test that
1142 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1144 Bug 555293: append library_paths to LPATH env variable to work
1145 around a bug in find_library when using ldconfig.
1147 * tools/g-ir-scanner (main): ditto.
1149 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1151 * girepository/girepository.c (register_internal): fix regression on
1152 invoke test case by making sure we load the global module in the
1153 typelib when dealing with inline typelibs.
1154 * girepository/gtypelib.c: a couple of coding style fixes.
1156 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1158 Bug 555294: Add support for multiple shared libraries per typelib.
1160 * girepository/ginvoke.c (g_function_info_invoke),
1161 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1162 g_typelib_symbol instead of g_module_symbol.
1163 * girepository/girepository.h: remove g_typelib_set_module and add
1165 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1166 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1167 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1168 modules instead of just one. The symbol lookup is now abstracted
1169 behind g_typelib_symbol which tries to find the passed symbol name in
1171 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1172 and write shared_library attribute as a comma-separated list of libs.
1174 2008-10-06 Colin Walters <walters@verbum.org>
1176 * giscanner/transformer.py: Parse length= annotation as
1177 a parameter name, not a raw int.
1180 2008-10-03 Colin Walters <walters@verbum.org>
1182 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1184 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1186 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1190 2008-10-03 Colin Walters <walters@verbum.org>
1192 Bug 554576: scan problem with ev_selection_render_selection()
1194 * giscanner/transformer.py: Only do type resolution once we've
1195 scanned all types. What could happen before is that we'd strip
1196 the namespace from local type "EvSelection" => Selection, and
1197 then later pull a "Selection" from some other namespace because
1198 we hadn't yet seen the local EvSelection. This could come
1199 down to hash table ordering and other things so not easy
1200 to write a test for.
1202 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1204 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1205 GLibEnumMember constructor as it should be the enum member nick.
1207 2008-10-02 Colin Walters <walters@verbum.org>
1209 Bug 552961: remove this parameter for methods
1211 * giscanner/glibtransformer.py: Delete this parameter; it is
1213 * girepository/ginvoke.c: Insert this parameter for methods.
1214 * girepository/gtypelib.c: Remove no longer needed verification of
1215 method this parameter.
1218 2008-09-30 Dan Winship <danw@gnome.org>
1220 Bug 554490: g-ir-scanner gets confused by '\\'
1222 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1223 backslashes so it will correctly parse '\\' and "\\"
1225 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1228 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1230 2008-10-02 Colin Walters <walters@verbum.org>
1232 bug 552393: Note variadic functions
1234 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1235 to use parameter_list directly.
1236 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1237 * giscanner/ast.py: Add Varargs type.
1238 * giscanner/transformer.py: Check for ellipsis symbol, transform
1240 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1241 Parse varargs functions, but filter them out before we start
1242 compiling the typelib.
1244 2008-10-02 Colin Walters <walters@verbum.org>
1246 Bug 554632: type tag for GType
1248 * girepository/girepository.h, girepository/girepository.c:
1249 Add type tag for GType - it's a special type we don't want
1250 to resolve to just "long".
1251 * docs/typelib-format.txt: Update.
1252 * girepository/girparser.c: Parse it.
1253 * giscanner/glibtransformer.py: Ensure we don't put GType in
1255 * tools/generate.c: Remove hardcoded type list.
1258 2008-09-30 Dan Winship <danw@gnome.org>
1260 Bug 554521: scanner generates wrong names for enum members with
1261 full type name prefix
1263 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1264 right amount when the entire "first" string is a prefix of
1267 * tests/scanner/foo.h (FooEnumFullname):
1268 * tests/scanner/foo-expected.gir: test that
1270 2008-09-29 Colin Walters <walters@verbum.org>
1272 Bug 552380: Array parameters should be marked in the gir
1274 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1275 uint8[]. Add Array, List, and Map subclasses of Type;
1276 these types can be generic. Return transfer defaults
1277 to true if return value is string or container type.
1278 Delete Sequence type.
1279 * giscanner/scannerlexer.l: Syntax change for annotations;
1280 use <> since it's more readable.
1281 * giscanner/girwriter.py: Write out these changes.
1282 * giscanner/girparser.py: Parse them.
1283 * giscanner/transformer.py: Have a defined set of
1284 both list and map types. When creating a type,
1285 check if the ctype we've parsed is one of them,
1286 if so create a container type subclass as appropriate.
1287 * girepository/girparser.c: Parse in generic types.
1290 2008-09-27 Colin Walters <walters@verbum.org>
1292 * tools/g-ir-scanner: Add --inject option.
1294 2008-09-25 Colin Walters <walters@verbum.org>
1296 Remove non-repository types from GIR
1298 * giscanner/ast.py: The canonical name is 'utf8', not
1300 * giscanner/glibast.py: A few more glib type mappings.
1301 * girepository/girparser.c: We only parse repository types.
1302 * tests/*.gir: Update.
1304 2008-09-23 Colin Walters <walters@verbum.org>
1306 Bug 552566: Add time_t type
1308 We need a type for time_t since it's special in C, and just
1309 mapping it to long precluded bindings from handling it
1312 2008-09-19 Colin Walters <walters@verbum.org>
1314 Bug 552390: Handle capitialization like "DBus" more robustly
1316 The to_underscores function was designed for use against prefixed
1317 names; we need a separate function which will convert names like
1318 DBusFoo into dbus_foo, not d_bus_foo.
1320 2008-09-19 Colin Walters <walters@verbum.org>
1322 Add check to make sure we're not hitting out unresolved types
1324 Validate the "this" argument for methods
1326 Remove heuristic matching of methods to classes based on prefix
1328 It was a broken hack that dated from when we handled underscoring
1329 and capitalization conventions less well.
1331 2008-09-18 Colin Walters <walters@verbum.org>
1333 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1335 On Darwin, the suffix for installed shared libraries (.dylib) is
1336 different from loadable modules (.so). We use a bit of magic shell
1337 script from Behdad Esfahbod to figure out the right suffix.
1339 2008-09-15 Johan Dahlin <johan@gnome.org>
1341 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1342 a wrapper for type_qualifier as well.
1344 2008-09-15 Colin Walters <walters@verbum.org>
1346 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1348 * giscanner/ast.py: Add deprecation attributes.
1349 * giscanner/girwriter.py: Write out deprecation data.
1350 * girepository/girparser.c: Relax parsing; deprecated
1351 attribute now includes freeform string.
1352 * giscanner/scannerlexer.l: Parse Deprecated.
1353 * giscanner/transformer.py: Look for deprecated attribute
1355 * tests/scanner/*: Add a Deprecated test.
1357 2008-09-14 Tor Lillqvist <tml@novell.com>
1359 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1361 2008-09-14 Colin Walters <walters@verbum.org>
1363 * giscanner/glibtransformer.py: Ignore functions with
1366 2008-09-12 Colin Walters <walters@verbum.org>
1368 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1370 2008-09-12 Colin Walters <walters@verbum.org>
1372 * giscanner/ast.py: Bind pid_t to INT for vte.
1374 2008-09-12 Colin Walters <walters@verbum.org>
1376 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1377 * giscanner/glibast.py: Avoid overwriting ctype.
1378 * giscsanner/transformer.py: Try resolving types using the GType names.
1380 2008-09-12 Colin Walters <walters@verbum.org>
1382 * giscanner/minixpath.py: Code to run an "XPath"
1383 assertion against an XML tree, taken from
1384 gir-repository/gir/tests.py.
1385 * giscanner/Makefile.am: Ship it.
1386 * tools/g-ir-scanner: Add --xpath-assertions option.
1387 * gir/GLib-assertions.txt: Add a few assertions.
1388 * gir/Makefile.am: Run them.
1390 2008-09-11 Colin Walters <walters@verbum.org>
1392 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1394 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1395 prefix if it ends with _. Tweak callback stripping to determine
1396 based on presence of _ whether we need to use strip_namespace_func
1397 or strip_namespace_object.
1399 2008-09-09 Owen Taylor <otaylor@redhat.com>
1401 * docs/typelib-format.txt: Wether => Whether
1403 2008-09-08 Colin Walters <walters@verbum.org>
1405 * girepository/girparser.c: Default to "readable" for properties.
1406 * giscanner/ast.py: Add readable, writable etc.
1407 * giscanner/girwriter.py: Writ them.
1408 * giscanner/glibtransformer.py: Inspect them.
1411 2008-09-07 Colin Walters <walters@verbum.org>
1413 * giscanner/cgobject.py: Add comment.
1415 2008-09-07 Colin Walters <walters@verbum.org>
1417 * giscanner/cgobject.py: Also call g_thread_init.
1419 2008-09-07 Colin Walters <walters@verbum.org>
1421 * giscanner/transformer.py: Fix regression by not
1422 stripping prefix before stripping namespace for unions
1425 2008-09-06 Colin Walters <walters@verbum.org>
1427 * giscanner/transformer.py: If a namespace contains
1428 multiple caps, try stripping both gnomekeyring_ and
1431 2008-09-07 Johan Dahlin <johan@gnome.org>
1433 Bug 551162 – giscanner does not recognize asm and __asm__
1434 * giscanner/scannerlexer.l:
1435 Patch by Jani Monoses.
1437 2008-09-06 Colin Walters <walters@verbum.org>
1439 * girepository/girnode.c: Allow gtype_name
1440 and gtype_init in struct and union.
1441 * girepository/girparser.c: Parse glib:
1442 boxed bits for both structure and union.
1443 * girepository/gtypelib.c: Don't barf
1444 if structure is boxed.
1445 * giscanner/girparser.py: Parse new XML
1447 * giscanner/girwriter.py: Write out new
1449 * giscanner/glibast.py: Define new classes
1450 which are both Boxed and Struct/Union, as
1451 well as an "Other" for everything else.
1452 * giscanner/glibtransformer.py: Handle
1453 boxed types specially; we try to merge
1454 them with a struct/union if one exists,
1455 otherwise fall back to generic boxed.
1457 * tools/generate.c: Write out new format.
1459 2008-09-06 Johan Dahlin <johan@gnome.org>
1461 * giscanner/grealpath.h: Include stdlib.h
1463 * docs/g-ir-generate.1: Remove leading %
1465 2008-09-01 Colin Walters <walters@verbum.org>
1467 * girepository/girparser.c: Look at c:type to determine
1468 whether or not an item is a pointer.
1470 2008-09-01 Johan Dahlin <johan@gnome.org>
1472 * tests/scanner/Makefile.am:
1473 Set PYTHONPATH so the scanner can run
1474 even if you didn't install anything.
1476 2008-09-01 Johan Dahlin <johan@gnome.org>
1479 Post-release version bump
1482 2008-09-01 Johan Dahlin <johan@gnome.org>
1486 2008-08-31 Colin Walters <walters@verbum.org>
1488 * giscanner/glibtransformer.py: Quiet info
1491 2008-08-31 Johan Dahlin <johan@gnome.org>
1494 Bump version to 0.5.0
1496 2008-08-31 Colin Walters <walters@verbum.org>
1498 * giscanner/glibtransformer.py: Follow aliases to ensure
1499 we don't get a constructor returning a basic type.
1500 * giscanner/transformer.py: Add function to follow aliases.
1503 2008-08-31 Johan Dahlin <johan@gnome.org>
1505 * giscanner/scannerlexer.l:
1506 * giscanner/scannerparser.y:
1507 * giscanner/sourcescanner.h:
1508 * giscanner/sourcescanner.py:
1509 Parse GCC extensions in the parser instead of just undeffing them
1510 in the pre-processor.
1512 2008-08-31 Johan Dahlin <johan@gnome.org>
1514 * giscanner/glibtransformer.py:
1515 Clean up a huge if. Do not add methods or constructors
1517 * giscanner/utils.py:
1518 second might be longer than first, check that.
1520 2008-08-31 Johan Dahlin <johan@gnome.org>
1525 2008-08-31 Colin Walters <walters@verbum.org>
1527 * girepository/girparser.c: Don't lose if we
1530 2008-08-31 Colin Walters <walters@verbum.org>
1532 * giscanner/glibtransformer.py: Look for libtool
1533 library in current directory
1534 * tests/scanner - Update.
1536 2008-08-30 Colin Walters <walters@verbum.org>
1538 * docs/typelib-format.txt: Add a guint32
1540 * gir/Makefile.am: Dep on Makefile
1541 * girepository/ginfo.c:
1542 * girepository/girepository.c: Clean up
1543 default typelib handling; remove global
1544 default_typelib variable. Ensure we handle
1545 NULL repository in more places.
1546 Support dependency resolution.
1547 Support lazy loading.
1548 * girepository/girepository.h: Remove
1549 g_irepository_unregister; we don't support
1550 unloading typelibs since really they're
1551 process-global. Update for lazy loading
1553 * girepository/girmodule.c: Use g_new0.
1554 Add dependencies to GirModule.
1555 * girepository/girparser.c: Parse dependencies.
1556 * girepository/gtypelib.c: Add 4 bytes for
1558 * tests/Makefile.am: Kill off gobject.gir,
1559 it conflicts with the real one.
1560 * tests/object.gir: Dep on GObject.
1561 * tools/generate.c: Take --includedir
1562 argument to say which directories to search
1563 for typelibs. Print out dependencies.
1565 2008-08-30 Colin Walters <walters@verbum.org>
1567 * giscanner/glibtransformer.py: Reduce warning noise.
1569 2008-08-29 Colin Walters <walters@verbum.org>
1571 * girepository/ginfo.c: Add some assertions regarding
1572 refcounts, just to be sure.
1573 * giscanner/glibtransformer.py: Blacklist a few more
1576 2008-08-29 Colin Walters <walters@verbum.org>
1578 * giscanner/glibtransformer.py: Blacklist a few
1579 functions that use GError oddly
1581 2008-08-29 Colin Walters <walters@verbum.org>
1583 * girepository/gtypelib.c: Don't crash if no
1586 2008-08-29 Colin Walters <walters@verbum.org>
1588 * girepository/girparser.c: Handle chains of aliases
1589 across modules by ensuring we fully qualify aliases
1592 2008-08-29 Colin Walters <walters@verbum.org>
1594 * girepository/girparser.c: Don't search aliases
1597 2008-08-29 Colin Walters <walters@verbum.org>
1599 * girepository/girparser.c: Rewrite type parsing
1600 to handle both GLib parsing case as well as correctly
1601 handling GLib.List and friends. Don't try to treat
1602 e.g. ListStore as a List.
1604 2008-08-29 Colin Walters <walters@verbum.org>
1606 * girepository/gtypelib.c: Add more context
1609 2008-08-29 Colin Walters <walters@verbum.org>
1611 * giscanner/glibtransformer.py: Add some informative
1612 logging messages in corner cases. Be sure we use
1613 the most recent node set instead of a cache
1614 when generating result set.
1615 * tests/: Remove duplicated bits in expected girs
1616 * girepository/girparser.c: Accept both List (for
1617 compiling GLib) and GLib.List (what the scanner
1620 * tools/generate.c: Generate canonical form.
1622 2008-08-29 Johan Dahlin <johan@gnome.org>
1624 * giscanner/config.py.in:
1625 Use datarootdir instead of datadir to avoid
1626 an autoconf warning.
1628 2008-08-29 Johan Dahlin <johan@gnome.org>
1632 * examples/gdk-pixbuf.gidl:
1634 Update and remove old cruft.
1636 2008-08-29 Johan Dahlin <johan@gnome.org>
1639 * docs/g-ir-compiler.1:
1640 * docs/g-ir-generate.1:
1641 * docs/g-ir-scanner.1:
1642 Add man pages for the generator and compiler.
1644 2008-08-29 Johan Dahlin <johan@gnome.org>
1646 * docs/g-ir-scanner.1: Document
1648 * giscanner/Makefile.am:
1649 * giscanner/gidlparser.py:
1650 * giscanner/gidlwriter.py:
1651 * tools/g-ir-scanner:
1652 Remove gidl support.
1654 2008-08-28 Colin Walters <walters@verbum.org>
1656 * tests/scanner/Makefile.am: Pass the right
1657 --includedir args. Add a Makefile dep.
1658 * tools/compiler.c: Pass includedirs down.
1659 * girepository/girparser.c: Actually put
1660 includedirs in context, pass down. Fix
1663 2008-08-28 Colin Walters <walters@verbum.org>
1665 * gir/Makefile.am: Use --includedir
1666 * girepository/girparser.c: Recursively parse
1667 includes to pull in aliases and expand them.
1668 We need this to avoid putting unknown names in
1670 * tools/compiler.c: Add --includedir option.
1671 * giscanner/ast.py: Map size/ssize to types
1674 2008-08-28 Tor Lillqvist <tml@novell.com>
1676 Make check now runs successfully on Windows.
1678 * tools/compiler.c (write_out_typelib): Use binary mode for output
1681 * girepository/girnode.c: Don't print NULL strings.
1683 * tests/invoke/Makefile.am
1684 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
1685 convince libtool to build shared libraries.
1687 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
1688 g_assert() instead of printing out expected errors.
1690 2008-08-28 Tor Lillqvist <tml@novell.com>
1692 * girepository/gtypelib.h: Change type of bitfield fields from
1693 guint to the most suitable smaller type. This makes the struct
1694 sizes match the ones on Linux that the sanity check expects when
1695 using gcc -mms-bitfields on Windows.
1697 2008-08-28 Johan Dahlin <johan@gnome.org>
1702 * giscanner/Makefile.am:
1703 * tests/Makefile.am:
1704 * tests/scanner/Makefile.am:
1705 Make distcheck pass.
1707 2008-08-27 Johan Dahlin <johan@gnome.org>
1709 * giscanner/Makefile.am:
1710 Only send in -no-undefined on Win32 as it breaks on MacOS X.
1712 2008-08-27 Tor Lillqvist <tml@novell.com>
1714 Make g-ir-scanner work on Windows. Still problems with the typelib
1715 code. Changes okayed by jdahlin.
1717 * configure.ac: Check for Windows, set Automake conditional
1718 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
1719 avoid shell quoting issues
1721 * girepository/Makefile.am: Use -no-undefined so that libtool
1722 agrees to build a shared library on Windows.
1724 * girepository/girparser.c (backtrace_stderr): No backtrace() on
1725 Windows. Empty implementation on Windows so far.
1727 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
1728 informative error message for the assertion failures. Tell also
1729 what the expected size of the struct is. Check all sizes first and
1730 fail afterwards if at least one size was different from expected.
1732 * tools/Makefile.am: Reorder libraries into proper logical
1735 * tools/generate.c: Don't include <dlfcn.h>, not used.
1737 * giscanner/Makefile.am: On Windows, link with the Python library,
1738 and install the module DLL as _giscanner.pyd. Remove the
1739 unnecessary import library and libtool library that libtool has
1742 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
1743 and just skip it. Recognize also two "l" suffixes for long long
1744 constants. Recognize also __inline__.
1746 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
1747 GetFullPathName(). As such, GetFullPathName() does more than the
1748 UNIX realpath(). It also changes relative paths into absolute
1749 paths. But for our purposes that shouldn't matter.
1751 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
1752 Windows the file descriptor passed to us is from Python. Python
1753 Python2.5 uses the msvcr71.dll C library, while mingw-built code
1754 uses msvcrt.dll. On Windows, file descriptors are specific to
1755 which C library is used. So we must find out what underlying OS
1756 handle corresponds to the file descriptor Python passes us, and
1757 then make that into a file descriptor valid for the C library this
1760 * giscanner/sourcescanner.py (_parse): Don't need to bypass
1761 __attribute__ as the lexer now handles it. The definition as empty
1762 was ineffective for mingw anyway, as mingw's _mingw.h undefines
1763 __attribute__. Close the temp file before unlinking it.
1765 * giscanner/cgobject.py: Use correct library name for the gobject
1768 * gir/Makefile.am: Must pass the full basename of the DLLs on
1769 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
1770 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
1771 reality they won't change, until there is a GLib 3, and then also
1772 the Unix code here needs changing.
1774 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
1777 2008-08-26 Colin Walters <walters@verbum.org>
1779 * girepository/girepository.c: Search
1780 $DATADIR/girepository instead of
1781 $DATADIR/gitypelibs; this naming makes
1782 it clearer that e.g. jgir can install
1784 * gir/Makefile.am: Install there.
1786 2008-08-26 Colin Walters <walters@verbum.org>
1788 * girepository/gtypelib.c (_g_typelib_init): Also
1789 use G_MODULE_SUFFIX instead of hardcoding .so.
1791 2008-08-26 Colin Walters <walters@verbum.org>
1793 * girepository/gtypelib.c (_g_typelib_init): Free
1794 string in the right place.
1796 2008-08-26 Colin Walters <walters@verbum.org>
1798 * girepository/gtypelib.c (_g_typelib_init): Handle
1799 both .la and .so names; this works better in the
1800 uninstalled library case.
1802 2008-08-26 Johan Dahlin <johan@gnome.org>
1805 * giscanner/Makefile.am:
1806 * giscanner/cgobject.py:
1807 * giscanner/config.py.in:
1808 * giscanner/sourcescanner.py:
1809 Avoid undeffing __GNUC__, instead define
1810 __attribute__ & friends. Remove glibconfig.h hack.
1811 This makes gobject-introspection work better on
1812 MacOS X, Thanks to Richard Hult for kind help.
1814 2008-08-25 Colin Walters <walters@verbum.org>
1816 * giscanner/glibtransformer.py: Always print
1819 2008-08-25 Colin Walters <walters@verbum.org>
1821 * giscanner/glibtransformer.py: Skip over
1822 interfaces we don't know.
1824 2008-08-25 Colin Walters <walters@verbum.org>
1826 * girepository/girparser.c: Parse new implements
1827 syntax, drop gapi one.
1828 * tests/object.gir: Update.
1829 * tools/generate.c: Generate new syntax.
1831 2008-08-25 Colin Walters <walters@verbum.org>
1833 * giscanner/ast.py: Add interfaces property
1835 * giscanner/girwriter.py: Write out implemented
1837 * giscanner/glibtransformer.py: Introspect
1838 implemented interfaces.
1839 * tests/scanner/*: Make FooObject implement
1842 2008-08-25 Colin Walters <walters@verbum.org>
1844 * giscanner/glibtransformer.py: More correctly pair
1845 methods; if we have a symbol that starts with
1846 e.g. hippo_canvas look for a matching HippoCanvas
1847 class before accepting e.g. HippoCanvasImage.
1849 2008-08-24 Colin Walters <walters@verbum.org>
1851 * tools/g-ir-scanner: Filter out unknown options from
1854 2008-08-24 Colin Walters <walters@verbum.org>
1856 * giscanner/glibtransformer.py: Fail with better
1857 error if we can't find library.
1859 2008-08-24 Colin Walters <walters@verbum.org>
1861 * tools/g-ir-scanner: Use subprocess instead of
1862 commands, works on Windows and avoids the evil
1865 2008-08-24 Colin Walters <walters@verbum.org>
1867 * giscanner/glibtransformer.py: Skip over
1868 g_object_get_type from GLib trunk.
1870 2008-08-24 Colin Walters <walters@verbum.org>
1872 * girepository/girepository.c (g_irepository_require):
1873 Don't open shared library here; we already do it
1876 2008-08-24 Colin Walters <walters@verbum.org>
1878 * girepository/gtypelib.c: Add context stack so
1879 when we get an error we can print out nicely
1882 2008-08-24 Johan Dahlin <johan@gnome.org>
1884 * girepository/girparser.c (start_glib_boxed), (start_function),
1885 (start_field), (start_alias):
1886 Refactor a couple of parsing functions to be simpler to follow.
1889 2008-08-24 Johan Dahlin <johan@gnome.org>
1891 * girepository/girparser.c (start_function):
1892 Remove left-over code, checking type of function.
1894 2008-08-23 Colin Walters <walters@verbum.org>
1896 * giscanner/config.py: Define DATADIR.
1897 * giscanner/transformer.py: Look in DATADIR.
1899 2008-08-23 Colin Walters <walters@verbum.org>
1901 * girepository/gtypelib.c: Check constructor
1903 * girepository/girnode.c: Small tweaks.
1904 * girepository/ginfo.c: Calculate signature offsets
1906 * girepository/girparser.c: Remove duplicate
1908 * giscanner/glibtransformer.py: Avoid marking
1909 functions which return a basic type as
1912 2008-08-23 Colin Walters <walters@verbum.org>
1914 * girepository/girparser.c: Ignore <include>.
1915 * giscanner/girparser.py: Parse them.
1916 * giscanner/girwriter.py: Generate them.
1917 * giscanner/transformer.py: Process <include>
1918 recursively. Don't require full path for
1919 includes, look in {$XDG_DATA_DIRS}/gir.
1920 * tools/g-ir-scanner: Pass through includes.
1921 * Makefile.am: Remove extra --include
1923 * *-expected.gir: Add expected includes.
1925 2008-08-23 Johan Dahlin <johan@gnome.org>
1927 * tests/scanner/Makefile.am:
1928 * tests/scanner/annotation-expected.gir:
1929 * tests/scanner/drawable-expected.gir:
1930 Avoid duplication in the Makefile, regenerate with new
1931 namespaces (same as the filename)
1933 2008-08-22 Colin Walters <walters@verbum.org>
1935 * girepository/girnode.c: Don't hardcode integers,
1938 2008-08-22 Johan Dahlin <johan@gnome.org>
1940 * giscanner/sourcescanner.py:
1941 Check for ../gobject-introspection-1.0.pc.in to determine
1942 if we run installed or uninstalled.
1944 2008-08-22 Johan Dahlin <johan@gnome.org>
1947 * giscanner/sourcescanner.py:
1948 Send in undefs/defines via writing it directly to stdin
1949 of cpp instead of via arguments.
1951 2008-08-22 Colin Walters <walters@verbum.org>
1953 * tools/generate.c, tools/compiler.c: Default
1955 * all Makefile.am: Update.
1957 2008-08-22 Colin Walters <walters@verbum.org>
1959 * girepository/girparser.c: Pass through
1960 recursive types. Avoid overwriting errors.
1961 * giscanner/xmlwriter.py: Always write the
1963 * tests/*.gir: Adjust.
1964 * tests/scanner/Makefile.am: Build typelibs,
1965 and generate XML from those. Once we
1966 have a good diff mechanism...
1967 * tests/scanner/*-expected.gir: Add XML
1969 * tools/g-ir-scanner: Accept --typelib-xml
1971 * tools/generate.c: Better defaults for transfer.
1973 2008-08-22 Johan Dahlin <johan@gnome.org>
1977 * giscanner/Makefile.am:
1978 * giscanner/config.py.in:
1979 * giscanner/sourcescanner.py:
1980 Use the generated glibconfig.h for all scanner invokations.
1981 Rename it to glibconfig-scanner.h and install it.
1982 Add a config.py which so far contains the include dir.
1984 2008-08-22 Johan Dahlin <johan@gnome.org>
1987 Replace glibconfig.h with our own, do some replacement
1988 for CPP/C features we do not support
1990 2008-08-22 Colin Walters <walters@verbum.org>
1992 * tools/generate.c (write_callable_info): Fix unref
1995 2008-08-22 Colin Walters <walters@verbum.org>
1997 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
1998 * tests/Makefile.am: Support $(DEBUG)
1999 * tools/generate.c: Do immediate close tags if no
2002 2008-08-21 Colin Walters <walters@verbum.org>
2004 * tests/scanner/drawable-expected.gir,
2005 * tests/scanner/drawable.c,
2006 * tests/scanner/drawable.h:
2009 2008-08-21 Colin Walters <walters@verbum.org>
2011 * giscanner/glibtransformer.py: Compute prefix
2012 by searching through the symbol for bits
2013 rather than going directly from ctype; this fixes
2016 2008-08-21 Colin Walters <walters@verbum.org>
2018 * giscanner/glibtransformer.py: Also try squashing
2019 underscores from namespace, fixes webkit_web_view_new.
2021 2008-08-21 Colin Walters <walters@verbum.org>
2023 * giscanner/glibtransformer.py: More ctor work,
2024 avoid having gtk_window_group_new end up under
2027 2008-08-21 Colin Walters <walters@verbum.org>
2029 * giscanner/glibtransformer.py: Much simpler approach
2030 of mapping uscored names to classes.
2031 * giscanner/utils.py: Remove unnecessary function.
2033 2008-08-21 Johan Dahlin <johan@gnome.org>
2035 * girepository/girepository.c (g_irepository_require):
2036 Plug memory leak and avoid using freed memory.
2037 Resolve the whole module path, here as well.
2039 2008-08-21 Colin Walters <walters@verbum.org>
2041 * giscanner/glibtransformer.py: Look up all permutations
2042 of class names when scanning methods/ctors based on
2043 the prefix instead of using the return value. This
2044 associates gtk_window_new with the right class.
2046 2008-08-21 Colin Walters <walters@verbum.org>
2048 * girepository/girmodule.c (g_ir_module_build_typelib):
2049 Revert change to increment header_size; we do that in
2052 2008-08-21 Colin Walters <walters@verbum.org>
2054 * girepository/girnode.c (write_string): Tweak to
2055 use UINT instead of INT. Not likely to matter.
2056 * girepository/girmodule.c (g_ir_module_build_typelib):
2057 Add to header_offset as well for header strings
2058 to match what write_string does.
2059 * girepository/gtypelib.c: Replace is_name with
2060 validate_name, which more strongly validates and
2061 handles errors in a better way. Update all callers.
2062 * giscanner/glibtransformer.py: Handle constructors
2065 2008-08-21 Johan Dahlin <johan@gnome.org>
2067 * gir/Makefile.am (typelibs_DATA): Build and
2068 install the Gio.typelib too
2070 * girepository/gtypelib.c (_g_typelib_init):
2071 Use g_module_build_path to resolve the shlib name
2073 2008-08-21 Colin Walters <walters@verbum.org>
2075 * gir/Makefile.am: CLEANFILES typelibs too.
2077 2008-08-21 Johan Dahlin <johan@gnome.org>
2079 * giscanner/glibtransformer.py:
2080 Do not send .la files through find_library.
2082 2008-08-21 Colin Walters <walters@verbum.org>
2084 * girepository/girparser.c (g_irepository_require):
2085 Fix one small leak in error case.
2087 2008-08-21 Johan Dahlin <johan@gnome.org>
2090 Parse glibconfig.h as well and install the compiled
2093 2008-08-21 Johan Dahlin <johan@gnome.org>
2096 * giscanner/glibtransformer.py:
2097 * tools/g-ir-scanner:
2098 Do not hard-core library names in the Makefile, reuse
2099 ctypes find_library instead.
2101 2008-08-21 Johan Dahlin <johan@gnome.org>
2103 * girepository/girparser.c (resolve_aliases):
2104 Remove compilation warnings
2106 2008-08-21 Johan Dahlin <johan@gnome.org>
2108 * girepository/girepository.c (g_irepository_require):
2109 Rewrap and fix double free bug by leaking a bit.
2111 2008-08-20 Colin Walters <walters@verbum.org>
2113 * girepository/girepository.c: Add new function
2114 g_irepository_get_typelib_path which tells
2115 us from where we loaded a namespace.
2117 2008-08-20 Colin Walters <walters@verbum.org>
2119 * tests/scanner/*-expected.gir: Adjust for
2120 added shared-library.
2121 * giscanner/giwriter.py: Make pylint happy.
2123 2008-08-20 Colin Walters <walters@verbum.org>
2125 * girepository/girmodule.c (g_ir_module_build_typelib):
2126 Calculate size correctly, avoid use-after-free.
2128 2008-08-20 Colin Walters <walters@verbum.org>
2130 * girepository/girepository.c: Remove
2131 g_irepository_register_file in favor of
2132 g_irepository_require. There are two
2133 possible deployment scenarios for typelibs:
2134 First, separate in $DATADIR/gitypelibs/. Second,
2135 they may be embedded in shlibs. However since
2136 the first is now the normal case, the API is
2137 optimized around it.
2139 Refactor internals to look up typelibs for
2140 namespaces just-in-time, but we expect
2141 consumers to call g_irepository_require.
2143 Also, add some docs. No one has died from that
2145 * gir/Makefile.am: Need --library for glib.
2146 * giscanner/girwriter.py: Write out shared-library.
2147 * tools/g-ir-writer: Take the first --library
2148 argument as the target of shared-library. In
2149 the future we should make this nicer with pkg-config
2152 2008-08-20 Colin Walters <walters@verbum.org>
2154 * girepository/girparser.py: And parse them.
2156 2008-08-20 Johan Dahlin <johan@gnome.org>
2158 * giscanner/glibast.py: Add gshort/gushort types
2160 2008-08-20 Colin Walters <walters@verbum.org>
2162 * gir/Makefile.am: Rename .gir files using GI namespace.
2163 * girepository/girepository.c: Use XDG_DATA_DIRS for
2164 looking up typelibs. Also typelibs are now suffixed
2166 * tests/invoke/Makefile.am: Only use metadata.
2167 * girepository/Makefile.am: Remove unnecessary include.
2168 * tests/scanner/Makefile.am: Update using GI namespaces
2169 for scanner includes.
2171 2008-08-20 Colin Walters <walters@verbum.org>
2173 * girepository/transformer.py: Suppress aliases whose
2175 * girepository/ast.py: Define some more aliases.
2177 2008-08-20 Colin Walters <walters@verbum.org>
2179 * girepository/girparser.c: Avoid alias infloops.
2181 2008-08-20 Colin Walters <walters@verbum.org>
2183 * tests/scanner/foo-expected.gir: Fix expected list type.
2185 2008-08-20 Johan Dahlin <johan@gnome.org>
2187 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2188 Add a workaround for #548689.
2189 We can now compile gtk!
2191 2008-08-20 Colin Walters <walters@verbum.org>
2193 * giscanner/glibtransformer.py: Try to look up
2194 aliases using the c:type too.
2196 2008-08-20 Colin Walters <walters@verbum.org>
2198 * girepository/girparser.c: Parse union fields.
2200 2008-08-20 Johan Dahlin <johan@gnome.org>
2202 * giscanner/ast.py: Make time_t an alias for long
2204 * gir/gio-2.0-good.gir:
2205 * gir/glib-2.0-good.gir:
2206 * gir/gobject-2.0-good.gir:
2208 * giscanner/glibtransformer.py:
2209 Do not delete Class structures, we need them in gdk/gtk.
2210 * tests/scanner/drawable-expected.gir:
2211 * tests/scanner/foo-expected.gir:
2212 * tests/scanner/utility-expected.gir:
2215 2008-08-20 Johan Dahlin <johan@gnome.org>
2217 * tests/scanner/Makefile.am:
2218 * tests/scanner/annotation-expected.gir:
2219 * tests/scanner/annotation.c (annotation_object_class_init),
2220 (annotation_object_init), (annotation_object_method),
2221 (annotation_object_in), (annotation_object_out),
2222 (annotation_object_inout), (annotation_object_inout2),
2223 (annotation_object_inout3), (annotation_object_calleeowns),
2224 (annotation_object_calleesowns), (annotation_object_get_strings),
2225 (annotation_object_with_voidp), (annotation_object_get_objects),
2226 (annotation_object_create_object), (annotation_object_allow_none):
2227 * tests/scanner/annotation.h:
2228 * tests/scanner/foo-expected.gir:
2229 * tests/scanner/foo.c:
2230 * tests/scanner/foo.h:
2231 Split out annotation tests out of foo
2233 2008-08-20 Johan Dahlin <johan@gnome.org>
2235 * tests/scanner/Foo-expected.gir:
2236 * tests/scanner/Makefile.am:
2237 * tests/scanner/foo-expected.gir:
2238 * tests/scanner/foo-object.h:
2239 * tests/scanner/foo.c:
2240 Foo->foo, foo-object.h -> foo.h
2242 2008-08-20 Johan Dahlin <johan@gnome.org>
2244 * tests/scanner/Foo-expected.gir:
2245 * tests/scanner/Makefile.am:
2246 * tests/scanner/drawable-expected.gir:
2247 * tests/scanner/drawable.c (test_drawable_class_init),
2248 (test_drawable_init):
2249 * tests/scanner/drawable.h:
2250 * tests/scanner/foo-object.h:
2251 * tests/scanner/foo.c (foo_boxed_method):
2252 Move the drawable parts out of Foo to its own test.
2254 2008-08-20 Johan Dahlin <johan@gnome.org>
2256 * tests/scanner/Foo-expected.gir:
2257 * tests/scanner/foo-object.h:
2258 * tests/scanner/foo.c (foo_drawable_class_init),
2259 (foo_drawable_init):
2260 Add a based on GdkDrawable which generates
2263 2008-08-19 Colin Walters <walters@verbum.org>
2265 * giscanner/transformer.py: Don't try
2266 to strip prefix before namespace.
2268 2008-08-19 Johan Dahlin <johan@gnome.org>
2270 * giscanner/transformer.py:
2271 * tests/scanner/Foo-expected.gir:
2272 * tests/scanner/foo-object.h:
2273 Add support for typedef void foo type of
2276 2008-08-19 Johan Dahlin <johan@gnome.org>
2279 * giscanner/girwriter.py:
2280 * giscanner/glibtransformer.py:
2281 * giscanner/transformer.py:
2282 * tests/scanner/Foo-expected.gir:
2283 Add basic support for union, base the code much
2284 on Struct. Add a testcase.
2286 2008-08-19 Johan Dahlin <johan@gnome.org>
2288 * tests/scanner/Foo-expected.gir:
2289 * tests/scanner/foo-object.h:
2290 Add a union testcase which the compiler currently
2293 2008-08-19 Johan Dahlin <johan@gnome.org>
2295 * gobject-introspection-1.0.pc.in:
2296 Add a g_ir_compiler variable
2298 2008-08-19 Colin Walters <walters@verbum.org>
2300 * giscanner/ast.py: Rework types to be more closely
2302 * giscanner/girparser.py: Parse more bits.
2303 * giscanner/girwriter.py: Write sequences in a new
2304 way that specifies container type.
2305 * giscanner/glibast.py: Adjust for ast.py changes,
2306 add 'ctype' property to GLibObject and GLibInterface
2307 so we can look things up by it later.
2308 * gicanner/transformer.py: Names is new class holding
2309 the various namespaces we manage. Do not confuse
2310 with Namespace which is toplevel XML node effectively.
2311 Rework all type resolution to go through
2312 _resolve_type_name_1.
2313 * giscanner/glibtransformer.py: Raise UnknownTypeError
2314 instead of ValueError for cleanliness. Add Unresolved
2315 class to mark types whose parent we haven't seen yet.
2316 Use new Names object from transformer.py.
2317 Correctly look up parent=.
2318 Fix type validation to handle sequences.
2319 * tests/scanner/Foo-expected.gir: Update for sequence
2320 work, int instead of int32.
2321 * tools/g-ir-scanner: Add --noclosure option
2322 * gir/Makefile.am: Use --noclosure by default for
2325 2008-08-18 Johan Dahlin <johan@gnome.org>
2327 * gir/gio-2.0-good.gir:
2328 * gir/glib-2.0-good.gir:
2329 * gir/gobject-2.0-good.gir:
2332 2008-08-18 Johan Dahlin <johan@gnome.org>
2335 * giscanner/girparser.py:
2336 * giscanner/girwriter.py:
2337 * giscanner/glibast.py:
2338 * giscanner/glibtransformer.py:
2339 * giscanner/transformer.py:
2340 * tests/scanner/Foo-expected.gir:
2341 * tests/scanner/foo-object.h:
2342 * tests/scanner/utility-expected.gir:
2343 * tests/scanner/utility.h:
2344 Redo type resolving and validation.
2345 Add a couple of new tests.
2346 Patch mostly written by Colin.
2348 2008-08-18 Johan Dahlin <johan@gnome.org>
2351 * giscanner/girparser.py:
2353 * giscanner/transformer.py:
2354 Improve enum parsing for enums without a GType.
2355 Make flags/enum references to other girs work
2356 * giscanner/utils.py:
2358 * tests/scanner/Makefile.am:
2359 * tests/scanner/foo-object.h:
2360 * tests/scanner/utility-expected.gir:
2361 * tests/scanner/utility.h:
2362 Add a new test for external enum references
2364 2008-08-18 Johan Dahlin <johan@gnome.org>
2366 * docs/global-module-registry.txt: Update
2368 * tests/array.gir: Update with new type proposal
2370 * girepository/girepository.c (g_type_tag_to_string):
2371 * girepository/girepository.h:
2372 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2374 * girepository/girnode.h:
2375 Make enum serializing functions public. Clean up some whitespace.
2377 2008-08-17 Johan Dahlin <johan@gnome.org>
2379 * docs/global-module-registry.txt:
2380 Add a document for an on disk module registry format
2382 2008-08-17 Johan Dahlin <johan@gnome.org>
2385 * gir/gio-2.0-good.gir:
2388 2008-08-17 Johan Dahlin <johan@gnome.org>
2391 * gir/glib-2.0-good.gir:
2392 * gir/gobject-2.0-good.gir:
2393 * giscanner/cgobject.py:
2394 * giscanner/glibtransformer.py:
2395 Regenerate GObject & GType.
2396 Avoid warnings when generating gobject-2.0.gir.
2397 Introspect a little more, and skip *_get_type functions.
2399 2008-08-17 Colin Walters <walters@verbum.org>
2401 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2402 Rename to -good, always generate during build.
2403 * gir/Makefile.am: Ensure .gir files dep on
2404 all scanner sources.
2405 * Makefile.am: Switch build order to ensure
2406 the scanner is ready before we do gir/.
2407 * tools/g-ir-scanner: Look for .git too.
2409 2008-08-17 Johan Dahlin <johan@gnome.org>
2411 * girepository/gtypelib.c (validate_enum_blob):
2412 * giscanner/glibtransformer.py:
2413 * giscanner/transformer.py:
2414 Remove resolve_possible_typedefs, it was unused.
2415 Allow multiple enum values of the sample value in an enum,
2416 since it's actually pretty common.
2417 Register enums so they can be resolved too.
2419 2008-08-16 Johan Dahlin <johan@gnome.org>
2421 * giscanner/girparser.py:
2422 Parse enumeration/bitfield.
2424 2008-08-16 Johan Dahlin <johan@gnome.org>
2426 * giscanner/girparser.py:
2429 2008-08-16 Johan Dahlin <johan@gnome.org>
2431 * giscanner/glibtransformer.py:
2432 Resolve type names for alias targets
2433 * giscanner/transformer.py:
2434 Skip FILE* parameters fow now
2436 2008-08-16 Johan Dahlin <johan@gnome.org>
2439 * gir/gobject-2.0.gir:
2442 * tests/scanner/Makefile.am:
2445 2008-08-15 Colin Walters <walters@verbum.org>
2447 * giscanner/glibtransformer.py: Explicitly construct
2448 new list, since we're deleting as we iterate.
2449 Don't delete all structures which end in Class; just
2450 ones which have a paired GObject.
2451 Fix printing of type warning.
2452 * giscanner/transformer.py: Make strip_namespace_object
2453 be the identity function if it doesn't match the
2456 2008-08-15 Colin Walters <walters@verbum.org>
2458 * giscanner/cgobject.py: Define yet more argument
2459 prototypes; fix prototype for g_type_fundamental.
2461 2008-08-14 Johan Dahlin <johan@gnome.org>
2463 * tests/Makefile.am:
2464 * tests/constant.gir:
2465 * tests/gobject.gir:
2467 * tools/generate.c (write_struct_info):
2468 Fix generator for constant/gobject/struct
2470 2008-08-14 Johan Dahlin <johan@gnome.org>
2472 * tests/Makefile.am:
2474 * tools/generate.c (write_enum_info):
2475 Fix generation of enum/bitfields
2477 2008-08-14 Johan Dahlin <johan@gnome.org>
2479 * girepository/girparser.c (start_field), (start_constant),
2480 (start_type), (end_element_handler):
2481 Clear up constant parsing
2486 * tools/generate.c (write_callable_info), (write_function_info),
2487 (write_callback_info), (write_constant_info), (write_signal_info),
2488 (write_vfunc_info), (write_property_info), (write_object_info),
2489 (write_interface_info):
2490 Constants/Signals are handled now.
2492 2008-08-14 Johan Dahlin <johan@gnome.org>
2494 * girepository/girparser.c (start_type):
2495 Don't require c:type.
2496 * tests/Makefile.am:
2499 Update, remove parts we don't support yet
2500 * tests/roundtrips.sh:
2502 * tools/generate.c (write_type_info), (write_field_info),
2503 (write_callable_info), (write_struct_info):
2504 Make it emit proper gir.
2506 2008-08-14 Johan Dahlin <johan@gnome.org>
2508 * giscanner/transformer.py:
2509 New internal function for adding a new node.
2511 2008-08-14 Johan Dahlin <johan@gnome.org>
2514 Define an internal _H_ variable so we skip parsing both
2515 i18n headers, only one is needed.
2517 Add the glib-2.0.gir too.
2518 * giscanner/glibast.py:
2519 Add gconstpointer as an alias for ANY
2520 * giscanner/transformer.py:
2521 Do not lower case enumeration names per se.
2522 Skip functions which has parameters called 'va_list'
2524 2008-08-14 Colin Walters <walters@verbum.org>
2526 * giscanner/transformer.py: Comment data structures.
2527 Also squash pointers in resolve_type_name to correspond
2528 with what we do for params.
2529 * giscanner/glibtransformer.py: Print warnings in more
2530 situations. Rework checks for method/constructor to
2531 look up in our GType database instead of just checking
2532 for *. Avoid generating <record> for GObject which
2533 duplicate the <class>.
2534 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2537 2008-08-14 Johan Dahlin <johan@gnome.org>
2539 * giscanner/girwriter.py:
2540 * giscanner/glibast.py:
2541 * giscanner/glibtransformer.py:
2542 * giscanner/transformer.py:
2544 * tests/Makefile.am:
2545 Add pyflakes.py and run it in make check.
2546 Update the source code to fix the errors reported by
2549 2008-08-14 Johan Dahlin <johan@gnome.org>
2552 * giscanner/girparser.py:
2553 * giscanner/glibast.py:
2554 * giscanner/glibtransformer.py:
2555 Refactor the parser a bit.
2556 Add parent type to interfaces and update callsites.
2558 2008-08-14 Johan Dahlin <johan@gnome.org>
2560 * giscanner/glibtransformer.py:
2561 * giscanner/utils.py:
2562 Refactor a bit, avoid isinstance and add a method
2563 for each type we parse.
2565 2008-08-14 Johan Dahlin <johan@gnome.org>
2568 * giscanner/girparser.py:
2569 * giscanner/glibtransformer.py:
2570 * tests/Makefile.am:
2571 Run pep8.py in make check, fix old errors.
2573 2008-08-13 Colin Walters <walters@verbum.org>
2575 * giscanner/girparser.py: Parse records.
2577 2008-08-13 Colin Walters <walters@verbum.org>
2579 * gir/Makefile.am: Install again.
2580 * gir/gobject-2.0.gir: Add some more bits.
2582 2008-08-13 Colin Walters <walters@verbum.org>
2584 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2585 * giscanner/girparser.py: Handle aliases.
2586 * giscanner/transformer.py: Record aliases. Make resolver
2587 functions public; we now call into these explicitly from
2588 glibtransformer. Handle resolving aliases.
2589 * giscanner/glibtransformer.py: Separate our internal namespace
2590 from included ones. Call up into transformer's resolver functions.
2592 2008-08-13 Johan Dahlin <johan@gnome.org>
2594 * girepository/girnode.c (g_ir_node_get_full_size_internal):
2595 * girepository/girparser.c (start_class):
2596 * giscanner/glibtransformer.py:
2597 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
2599 2008-08-13 Johan Dahlin <johan@gnome.org>
2601 * giscanner/cgobject.py:
2602 Register GInitiallyUnowned
2603 * giscanner/girwriter.py:
2604 * giscanner/glibtransformer.py:
2605 Special case GObject/GInitially owned as they are a bit special to use.
2607 2008-08-13 Colin Walters <walters@verbum.org>
2609 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
2610 Object is in GObject namespace.
2612 2008-08-13 Colin Walters <walters@verbum.org>
2614 * giscanner/girparser.py: Fix processing of functions
2617 2008-08-13 Colin Walters <walters@verbum.org>
2619 * giscanner/girparser.py: Parse more than just <class.
2620 * giscanner/glibtransformer.py: Put aliases in a separate
2621 data structure since their name is not canonicall.
2622 * giscanner/transformer.py: Handle resolving type names
2625 2008-08-13 Johan Dahlin <johan@gnome.org>
2627 * tools/g-ir-scanner:
2628 Allow multiple libraries
2629 * giscanner/glibtransformer.py:
2630 Rename load_library to add_library, traverse over all libraries
2631 when trying to resolve a function
2633 2008-08-12 Colin Walters <walters@verbum.org>
2635 * giscanner/transformer.py: Record typedefs as <alias> elements.
2636 Also attempt to look up types in external namespaces.
2637 * giscanner/girwriter.py: Write them.
2638 * giscanner/glibtransformer.py: Rework resolver using real instanceof
2639 checks. Resolve interface methods and properties.
2640 * tests/scanner/foo-object.h: Add a method with typedef.
2641 * tests/scanner/Foo-expected.gir: Update.
2642 * girepository/girnode.c: Debug tweaks.
2643 * girepository/girparser.c: Make a first pass through the XML where we
2644 record all the aliases. This lets us resolve them as we go through the
2646 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
2647 from gir-repository.
2649 2008-08-12 Colin Walters <walters@verbum.org>
2651 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
2652 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
2654 * giscanner/transformer.py: Record typedefs and expose public API for resolving
2656 * tests/scanner/Foo-expected.gir: Fix expected callback types.
2658 2008-08-12 Colin Walters <walters@verbum.org>
2660 * giscanner/glibtransformer.py: Also transform object properties.
2662 2008-08-12 Colin Walters <walters@verbum.org>
2664 * giscanner/glibtransformer.py: Also transform callbacks
2665 and structure field types.
2666 * tests/scanner/Fooe-expected.gir: Update to expect correct
2667 names for callbacks and structs.
2669 2008-08-12 Colin Walters <walters@verbum.org>
2671 * girepository/girparser.c: Handle 'any'.
2672 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2673 Add test for void *.
2675 2008-08-12 Colin Walters <walters@verbum.org>
2677 * giscanner/glibtransformer.py: We need to do type
2678 resolution in a second pass after we've seen all the
2679 enums, records, etc.
2681 2008-08-12 Colin Walters <walters@verbum.org>
2683 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2684 Add enum return value.
2685 * giscanner/glibtransformer.py: Transform function return types
2688 2008-08-12 Colin Walters <walters@verbum.org>
2690 * tests/scanner/Makefile.am: Dep .gir files on scanner
2691 sources too. Also remove @ so we see scanner invocations.
2693 2008-08-12 Colin Walters <walters@verbum.org>
2695 * girepository/girparser.c, girepository/gtypelib.c,
2696 girepository/gtypelib.h, girepository/girnode.c:
2697 Remove usage of (GAPI-oriented) TypeTag in favor of
2698 GITypeTag from girepository.h.
2700 2008-08-10 Colin Walters <walters@verbum.org>
2702 * tests/roundtrips.sh: Use the correct tests.
2704 2008-08-10 Colin Walters <walters@verbum.org>
2706 * giscanner/cgobject.py: Declare/wrap a few more functions.
2707 Fix parameter types for g_object_new and g_type_fundamental.
2709 2008-08-10 Colin Walters <walters@verbum.org>
2711 * giscanner/cgobject.py: Add new decorator @gwrap which forces
2712 us to declare types for both return value and parameters. The
2713 ctypes default of 'int' is bad because it hides 32/64 bit
2714 problems. Convert all existing functions to use it.
2716 2008-08-09 Johan Dahlin <johan@gnome.org>
2718 * giscanner/__init__.py:
2720 * giscanner/cgobject.py:
2721 * giscanner/gidlparser.py:
2722 * giscanner/gidlwriter.py:
2723 * giscanner/girparser.py:
2724 * giscanner/girwriter.py:
2725 * giscanner/glibast.py:
2726 * giscanner/glibtransformer.py:
2727 * giscanner/odict.py:
2728 * giscanner/sourcescanner.py:
2729 * giscanner/transformer.py:
2730 * giscanner/utils.py:
2731 * giscanner/xmlwriter.py:
2732 * tools/g-ir-scanner:
2736 2008-08-09 Johan Dahlin <johan@gnome.org>
2739 * relaxng/c-types.xml:
2740 * relaxng/g-types.xml:
2741 * relaxng/relaxng.rng:
2743 Remove outdated relaxng schemas.
2745 2008-08-09 Johan Dahlin <johan@gnome.org>
2748 Rename metadata to typelib in variable names,
2751 2008-08-09 Johan Dahlin <johan@gnome.org>
2755 Remove old C scanner, which got rewritten in python.
2757 2008-08-09 Johan Dahlin <johan@gnome.org>
2759 * girepository/Makefile.am:
2760 * tools/Makefile.am:
2761 * tools/girmodule.c:
2762 * tools/girmodule.h:
2765 * tools/girparser.c:
2766 * tools/girparser.h:
2767 * tools/girwriter.c:
2768 * tools/girwriter.h:
2769 Move shared *.[ch] files to girepository from tools
2771 2008-08-09 Johan Dahlin <johan@gnome.org>
2773 * tests/Makefile.am:
2776 * tests/constant.test:
2778 * tests/errors.test:
2779 * tests/function.test:
2780 * tests/gobject.test:
2781 * tests/interface.test:
2782 * tests/object.test:
2783 * tests/struct.test:
2788 Rename *.test to *.gir
2790 2008-08-09 Johan Dahlin <johan@gnome.org>
2793 * tests/Makefile.am:
2794 * tests/parser/Foo-expected.gir:
2795 * tests/parser/Makefile.am:
2796 * tests/parser/foo-object.h:
2797 * tests/parser/foo.c:
2798 * tests/parser/utility-expected.gir:
2799 * tests/parser/utility.c:
2800 * tests/parser/utility.h:
2801 * tests/scanner/Makefile.am:
2802 Rename tests/parser to test/scanner
2804 2008-08-08 Colin Walters <walters@verbum.org>
2806 * tests/roundtrips.sh: Use local .gir files again.
2808 2008-08-08 Colin Walters <walters@verbum.org>
2810 * tests/invoke/Makefile.am: .gir file depends on libtool
2813 2008-08-08 Colin Walters <walters@verbum.org>
2815 * tools/girnode.c: Pass through parent node so we can
2816 print the node whose child is NULL, if that occurs.
2818 2008-08-08 Johan Dahlin <johan@gnome.org>
2820 * tests/Makefile.am:
2821 Disable roundtrip tests which are not yet working
2822 * tests/invoke/testfns.gir:
2825 2008-08-08 Johan Dahlin <johan@gnome.org>
2827 * giscanner/girwriter.py:
2829 * giscanner/glibast.py:
2830 * giscanner/glibtransformer.py:
2831 Swap order of members, to keep it consistent with
2834 2008-08-08 Johan Dahlin <johan@gnome.org>
2836 * girepository/gtypelib.c (validate_header):
2837 * girepository/gtypelib.h:
2839 * giscanner/girwriter.py:
2840 * giscanner/sourcescanner.c (gi_source_symbol_ref),
2841 (gi_source_symbol_unref):
2844 * tests/constant.test:
2846 * tests/errors.test:
2847 * tests/function.test:
2848 * tests/gobject.test:
2849 * tests/interface.test:
2850 * tests/invoke/Makefile.am:
2851 * tests/invoke/testfns.xml:
2852 * tests/object.test:
2853 * tests/parser/Makefile.am:
2854 * tests/roundtrips.sh:
2855 * tests/struct.test:
2860 * tools/Makefile.am:
2861 * tools/compiler.c (main):
2862 * tools/generate.c (write_callable_info), (write_function_info),
2864 * tools/gidlmodule.c:
2865 * tools/gidlmodule.h:
2868 * tools/gidlparser.c:
2869 * tools/gidlparser.h:
2870 * tools/gidlwriter.c:
2871 * tools/gidlwriter.h:
2872 * tools/scanner.c (create_node_from_gtype),
2873 (create_node_from_ctype), (g_igenerator_process_properties),
2874 (g_igenerator_process_signals), (g_igenerator_create_object),
2875 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2876 (g_igenerator_create_enum), (g_igenerator_create_flags),
2877 (g_igenerator_process_function_symbol),
2878 (g_igenerator_process_unregistered_struct_typedef),
2879 (g_igenerator_process_struct_typedef),
2880 (g_igenerator_process_union_typedef),
2881 (g_igenerator_process_enum_typedef),
2882 (g_igenerator_process_function_typedef),
2883 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2884 (g_igenerator_add_module), (g_igenerator_add_include_idl):
2885 Merge in the gir-compiler branch.
2886 Thanks to Philip and Colin for their help.
2888 2008-07-26 Colin Walters <walters@verbum.org>
2890 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
2891 and g-idl-generate to go along with how we're changing this
2892 module to be installed.
2893 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
2895 2008-07-24 Colin Walters <walters@verbum.org>
2897 * girepository/girepository.c (g_irepository_register): Add
2898 environment variable G_IREPOSITORY_VERBOSE so we can print
2899 out what we're doing.
2900 * girepository/girepository.c (g_irepository_register_file):
2901 Add GError error message to g_debug call.
2903 2008-07-08 Jürg Billeter <j@bitron.ch>
2905 * giscanner/glibast.py:
2909 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
2911 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
2914 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
2917 * giscanner/girwriter.py:
2918 * giscanner/transformer.py:
2919 * tests/parser/Foo-expected.gir:
2920 * tests/parser/foo-object.h:
2921 * tests/parser/foo.c (foo_object_allow_none):
2922 Add support for gtk-doc annotations for allow-none.
2925 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
2928 * giscanner/girwriter.py:
2929 * giscanner/glibast.py:
2930 * giscanner/glibtransformer.py:
2931 * giscanner/transformer.py:
2932 * tests/parser/Foo-expected.gir:
2933 Start using abstract type instead of the raw C types.
2934 Register a bunch of glib types we care about.
2936 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
2941 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
2943 * girepository/girepository.c:
2944 * girepository/gtypelib.c:
2945 * girepository/ginfo.c:
2946 * girepository/ginvoke.c:
2947 * girepository/girepository.h:
2948 * girepository/gtypelib.h:
2949 * girepository/gmetadata.c:
2950 * girepository/Makefile.am:
2951 * girepository/gmetadata.h:
2953 * tools/gidlmodule.c:
2956 * tools/gidlmodule.h:
2957 * tools/gidlparser.c:
2959 Renamed GMetadata to GTypelib
2961 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
2963 * giscanner/xmlwriter.py:
2964 Improve line wrapping when > 79 charaters
2966 2008-06-05 Jürg Billeter <j@bitron.ch>
2969 * giscanner/girwriter.py:
2970 * giscanner/transformer.py:
2971 Use <type> element for field types
2972 * tests/parser/Foo-expected.gir:
2975 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
2977 * giscanner/glibtransformer.py:
2978 Fix a bug which prevented GdkEvent from being generated
2980 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
2982 * giscanner/Makefile.am:
2984 * giscanner/girwriter.py:
2985 * giscanner/glibast.py:
2986 * giscanner/glibtransformer.py:
2987 * giscanner/transformer.py:
2988 * giscanner/utils.py:
2989 * tests/parser/Foo-expected.gir:
2990 Improve enum member parsing and introspection
2992 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2994 * giscanner/scannerparser.y:
2995 * giscanner/sourcescanner.h:
2996 * giscanner/sourcescanner.py:
2997 Add a new source type enum for member.
2998 Use __repr__ for improved debugging
2999 * giscanner/girparser.py:
3001 * giscanner/transformer.py:
3002 Improve parsing of struct members.
3003 * tests/parser/foo-object.h:
3006 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3008 * giscanner/xmlwriter.py:
3009 Improve error reporting when trying to quote None.
3010 * giscanner/girparser.py:
3011 Do not print warnings when including more complete .gir files
3012 * giscanner/girwriter.py:
3013 Do not require a name for parameters, add a todo for singletons
3014 * giscanner/glibtransformer.py:
3015 Refactor the way structs are done, add a couple of hacks to allow
3017 * giscanner/transformer.py:
3018 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3019 * gobject-introspection-1.0.pc.in:
3020 Export girdir, so we can access gobject-2.0.gir from outside
3022 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3024 * tools/g-ir-scanner:
3025 * tests/parser/Makefile.am:
3026 Update sys.path before running the parser so we don't have
3027 to setup PYTHONPATH ourselves.
3031 * girepository/Makefile.am:
3032 * giscanner/transformer.py:
3033 * gobject-introspection-1.0.pc.in:
3034 * gobject-introspection.pc.in:
3035 * tools/Makefile.am:
3037 Rename pkg-config name to gobject-introspection-1.0,
3038 Do not installed anything which is not using the gir format.
3039 Disable compililation the old C scanner, but still keep the source
3040 until all the remaning functionallity has been ported.
3042 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3044 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3045 a crash when symbol->indent is NULL.
3047 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3048 a function to convert a CTYPE symbol to a string
3050 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3053 * giscanner/girwriter.py:
3054 * giscanner/giscannermodule.c
3055 (pygi_source_scanner_append_filename),
3056 (pygi_source_scanner_parse_file):
3057 * giscanner/glibtransformer.py:
3058 * giscanner/sourcescanner.py:
3059 Revert back to using temporary files to send in headers.
3060 Allow Functions to be passed in as callbacks, add a couple
3061 of try/excepts missing features.
3062 We can now scan pango
3064 2008-05-08 Johan Dahlin <johan@gnome.org>
3066 * giscanner/glibtransformer.py:
3067 * giscanner/transformer.py:
3068 Move namespace stripping glibtransformer->transformer
3070 2008-05-08 Johan Dahlin <johan@gnome.org>
3073 * giscanner/girwriter.py:
3074 * giscanner/glibtransformer.py:
3075 * giscanner/transformer.py:
3076 * tools/g-ir-scanner:
3077 Introduce a namespace ast node
3079 2008-05-05 Johan Dahlin <johan@gnome.org>
3081 * giscanner/__init__.py:
3082 * giscanner/sourcescanner.py:
3083 * giscanner/transformer.py:
3084 Move sourcescanner symbols to the sourcescanner module, instead
3085 of in the global __init__ namespace.
3087 2008-05-03 Johan Dahlin <johan@gnome.org>
3089 * giscanner/glibtransformer.py:
3090 * tools/g-ir-scanner:
3091 Handle missing parameters better, allow - and + in .la dlname
3094 2008-05-03 Johan Dahlin <johan@gnome.org>
3096 * giscanner/__init__.py:
3098 * giscanner/girwriter.py:
3099 * giscanner/glibtransformer.py:
3100 * giscanner/transformer.py:
3101 Parse struct fields properly, improve debugging.
3103 2008-04-29 Johan Dahlin <johan@gnome.org>
3106 * giscanner/girwriter.py:
3107 * giscanner/transformer.py:
3108 * tests/parser/Foo-expected.gir:
3110 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3112 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3115 * docs/g-ir-scanner.1:
3116 * metadata-annotations-proposal.txt:
3117 * metadata-format.txt:
3118 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3120 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3122 * giscanner/girwriter.py:
3123 * giscanner/glibtransformer.py:
3124 * giscanner/transformer.py:
3125 * giscanner/xmlwriter.py:
3126 * tests/parser/Foo-expected.gir:
3127 * tests/parser/foo-object.h:
3128 Write record/structs to gir file too. Add a couple of tests,
3129 fix an off by one error in xmlwriter.py.
3131 2008-04-28 Johan Dahlin <johan@gnome.org>
3133 * giscanner/xmlwriter.py: Calculate the line length properly,
3134 include the provided extra indentation in the calculation, really.
3136 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3139 * giscanner/glibast.py:
3140 * giscanner/glibtransformer.py:
3141 * giscanner/transformer.py:
3142 * tools/g-ir-scanner:
3143 Add a --strip-prefix and sort out confusion between names and symbols
3144 for functions and struct + derivaties.
3145 Refactor bootstrap of g-ir-scanner, so we can set options on
3146 Transformer() before parsing everything.
3148 2008-04-28 Johan Dahlin <johan@gnome.org>
3150 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3151 when scanning girepository.h
3153 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3154 a __GI_SCANNER__ when we run.
3156 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3159 * giscanner/girwriter.py:
3160 * giscanner/glibast.py:
3161 * giscanner/glibtransformer.py:
3162 * tests/parser/Foo-expected.gir:
3163 * tests/parser/utility-expected.gir:
3164 Rename most c:identifier to c:type. Add new ones to
3165 class/interface/enum/boxed.
3167 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3170 * giscanner/girwriter.py:
3171 * giscanner/glibtransformer.py:
3172 * tests/parser/Foo-expected.gidl:
3173 * tests/parser/Makefile.am:
3174 Move c:identifier from return-value to subchild type,
3175 as per Jürgs suggestion
3177 2008-04-28 Johan Dahlin <johan@gnome.org>
3179 * giscanner/girwriter.py:
3180 * tests/parser/Foo-expected.gir:
3181 Write property.type as a child node.
3183 2008-04-27 Johan Dahlin <johan@gnome.org>
3188 * gidl/gobject-2.0.gidl:
3190 * gir/gobject-2.0.gir:
3191 * tests/parser/Makefile.am:
3192 Replace the GObject gidl with a GObject gir.
3194 2008-04-27 Johan Dahlin <johan@gnome.org>
3196 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3199 * giscanner/xmlwriter.py:
3200 * tests/parser/Foo-expected.gir:
3201 Include indentation in line length calculation
3203 2008-04-27 Johan Dahlin <johan@gnome.org>
3205 * giscanner/girparser.py:
3206 Prettify NS parsing using elementtree.
3208 2008-04-27 Johan Dahlin <johan@gnome.org>
3211 * giscanner/Makefile.am:
3212 * giscanner/girparser.py:
3213 * giscanner/glibtransformer.py:
3214 * tests/parser/Foo-expected.gidl:
3215 * tests/parser/Foo-expected.gir:
3216 * tests/parser/Makefile.am:
3217 * tests/parser/utility-expected.gidl:
3218 * tests/parser/utility-expected.gir:
3219 * tools/g-ir-scanner:
3220 Switch over to GIR as the default format. Add a simple GIDL
3222 Update tests and fix simplify makefiles by depending
3223 on GNU make extensions.
3225 2008-04-27 Johan Dahlin <johan@gnome.org>
3227 * giscanner/xmlwriter.py:
3228 Wrap attributes for lines which are wider than 79 characters
3230 * giscanner/scannerlexer.l:
3231 Allow parenthesis in annotations
3234 * giscanner/gidlwriter.py:
3235 * giscanner/girwriter.py:
3236 * giscanner/glibtransformer.py:
3237 * giscanner/transformer.py:
3238 Add initial sequence support, including annotation.
3239 Refactor type handling a bit.
3241 2008-04-27 Johan Dahlin <johan@gnome.org>
3243 * tests/parser/Foo-expected.gidl:
3244 * tests/parser/foo-object.h:
3245 * tests/parser/foo.c (foo_object_class_init),
3246 (foo_object_get_strings), (foo_object_get_objects):
3247 Add two new functions to check sequence return values.
3248 Also fixes a compilation warning.
3250 2008-04-27 Johan Dahlin <johan@gnome.org>
3252 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3253 a compilation warning.
3255 * tools/Makefile.am (g_ir_scanner_SOURCES):
3256 g-ir-scanner has no sources.
3258 2008-04-25 Johan Dahlin <johan@gnome.org>
3260 * giscanner/Makefile.am:
3262 * giscanner/gidlparser.py:
3263 * giscanner/gidlwriter.py:
3264 * giscanner/girwriter.py:
3265 * giscanner/glibast.py:
3266 * giscanner/glibtransformer.py:
3267 * giscanner/transformer.py:
3268 Split out nodes to ast.py and glibast.py
3270 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3272 * giscanner/Makefile.am:
3273 * giscanner/gidlparser.py:
3274 * giscanner/gidlwriter.py:
3275 * giscanner/girwriter.py:
3276 * giscanner/glibtransformer.py:
3277 * giscanner/gobjecttreebuilder.py:
3278 * giscanner/transformer.py:
3279 * giscanner/treebuilder.py:
3280 * tools/g-ir-scanner:
3281 Rename treebuilder to transformer and
3282 gobjectreebuilder to glibtransformer.
3284 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3286 * giscanner/Makefile.am:
3287 * giscanner/__init__.py:
3288 * giscanner/cgobject.py:
3289 * giscanner/gidlparser.py:
3290 * giscanner/gidlwriter.py:
3291 * giscanner/girwriter.py:
3292 * giscanner/gobjecttreebuilder.py:
3293 * giscanner/odict.py:
3294 * giscanner/sourcescanner.py:
3295 * giscanner/treebuilder.py:
3296 * giscanner/xmlwriter.py:
3297 * tools/Makefile.am:
3298 * tools/g-ir-scanner:
3299 Add LGPLv2 license header and install all python files
3301 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3304 * giscanner/gidlwriter.py:
3305 * giscanner/giscannermodule.c (pygi_source_directive_new),
3306 (directive_get_options), (pygi_source_symbol_new),
3307 (symbol_get_base_type), (pygi_source_type_new),
3308 (type_get_base_type), (type_get_child_list),
3309 (pygi_source_scanner_get_symbols),
3310 (pygi_source_scanner_get_directives):
3311 * giscanner/gobjecttreebuilder.py:
3312 * giscanner/sourcescanner.py:
3313 * giscanner/treebuilder.py:
3314 * tests/parser/foo-object.h:
3315 Add support for virtual methods.
3316 Pair struct FooClass with struct Foo.
3317 Clean up the SourceScanner bindings a bit.
3318 Add a testcase for virtual methods.
3320 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3322 * giscanner/cgobject.py:
3323 * giscanner/gidlwriter.py:
3324 * giscanner/gobjecttreebuilder.py:
3325 Add support for signals
3327 * tests/parser/foo.c (foo_object_class_init):
3328 * Foo-expected.gidl:
3329 Add a signal and update the expected output.
3331 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3333 * giscanner/gidlwriter.py:
3334 * giscanner/girwriter.py:
3335 * giscanner/giscannermodule.c (directive_get_name),
3336 (directive_get_value), (directive_get_options),
3337 (symbol_get_directives), (symbol_set_directives),
3338 (pygi_source_scanner_parse_file),
3339 (pygi_source_scanner_lex_filename),
3340 (pygi_source_scanner_get_directives), (init_giscanner):
3341 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3342 * giscanner/sourcescanner.h:
3343 * giscanner/sourcescanner.py:
3344 * giscanner/treebuilder.py:
3345 * tools/g-ir-scanner:
3346 Add support for source/header annotations.
3348 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3350 * giscanner/gidlwriter.py:
3351 * giscanner/girwriter.py:
3352 * giscanner/gobjecttreebuilder.py:
3353 * giscanner/treebuilder.py:
3354 Add support for Callbacks
3356 2008-04-22 Havoc Pennington <hp@pobox.com>
3358 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3359 not in metadata->module, look for it in the global module, in case
3360 some other object or the app itself provides the symbol.
3362 2008-04-22 Havoc Pennington <hp@pobox.com>
3364 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3365 dlopening a library that is already in the main app, by checking
3366 whether one of the lib's symbols is already loaded.
3368 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3370 * tests/parser/Foo-expected.gidl:
3371 * tests/parser/foo-object.h:
3374 2008-04-22 Havoc Pennington <hp@pobox.com>
3376 * girepository/ginfo.c (g_interface_info_find_method):
3377 Use interface_blob_size not object_blob_size to compute offset.
3379 2008-04-22 Havoc Pennington <hp@pobox.com>
3381 * girepository/gmetadata.c (_g_metadata_init): remove
3382 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3383 (Glade and Clutter for example) rely on being loaded globally.
3385 2008-04-22 Havoc Pennington <hp@pobox.com>
3387 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3388 function to get the GType given a RegisteredTypeInfo
3390 2008-04-22 Johan Dahlin <johan@gnome.org>
3392 * COPYING: Add a LGPL license, to prevent automake to
3393 put in a copy of GPL here. Pointed out by Havoc.
3395 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3396 (g_type_info_is_pointer), (g_type_info_get_tag),
3397 (g_type_info_get_param_type), (g_type_info_get_interface),
3398 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3399 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3400 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3401 (g_object_info_get_interface), (g_object_info_get_field),
3402 (g_interface_info_get_prerequisite),
3403 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3404 * girepository/ginvoke.c (get_ffi_type):
3405 * girepository/girepository.h:
3406 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3407 (g_metadata_check_sanity), (validate_header),
3408 (validate_array_type_blob), (validate_iface_type_blob),
3409 (validate_param_type_blob), (validate_error_type_blob),
3410 (validate_type_blob), (validate_constant_blob),
3411 (validate_struct_blob), (validate_enum_blob):
3412 * girepository/gmetadata.h:
3413 * tests/Makefile.am:
3414 * tests/invoke/Makefile.am:
3415 * tests/invoke/invoke.c (main):
3416 * tests/roundtrips.sh:
3417 * tools/Makefile.am:
3418 * tools/compiler.c (format_output), (write_out_metadata), (main):
3419 * tools/generate.c (write_type_name), (write_type_info),
3420 (write_constant_value), (write_enum_info), (load_metadata), (main):
3421 * tools/gidlcompilercontext.c:
3422 * tools/gidlcompilercontext.h:
3423 * tools/gidlcompilerentrynode.c:
3424 * tools/gidlcompilerentrynode.h:
3425 * tools/gidlcompilertypenode.c:
3426 * tools/gidlcompilertypenode.h:
3427 * tools/gidlmodule.c (g_idl_module_build_metadata):
3428 * tools/gidlmodule.h:
3429 * tools/gidlnode.c (init_stats), (dump_stats),
3430 (g_idl_node_get_size), (g_idl_node_get_full_size),
3431 (g_idl_node_cmp), (g_idl_node_can_have_member),
3432 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3433 (parse_int_value), (parse_uint_value), (parse_float_value),
3434 (parse_boolean_value), (find_entry_node), (find_entry),
3435 (serialize_type), (g_idl_node_build_metadata), (write_string):
3437 * tools/gidlparser.c (parse_type_internal):
3438 * tools/quote-file.sh:
3439 Revert revisions 157,149-148,136-129 and 120.
3440 Move back to using g-idl-generate to generate the metadata and
3441 avoids dependency on a c compiler.
3443 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3445 * giscanner/girwriter.py:
3446 * tools/g-ir-scanner:
3447 Add an initial GIR writer and a --format option to g-ir-scanner
3449 2008-04-21 Johan Dahlin <johan@gnome.org>
3451 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3452 gobject-2.0 and raise ImportError if not found.
3454 * giscanner/gidlparser.py:
3455 * giscanner/gidlwriter.py:
3456 * giscanner/gobjecttreebuilder.py:
3457 * tools/g-ir-scanner:
3458 Add a --include argument to include types from other idls.
3459 Add a minimalistic GIDL parser (just objects for now)
3460 Implement resolving of external type references and use it to
3461 resolve parent types, argument types and return types.
3463 2008-04-21 Johan Dahlin <johan@gnome.org>
3465 * giscanner/gidlwriter.py:
3466 * giscanner/gobjecttreebuilder.py:
3467 * giscanner/treebuilder.py:
3468 Add support for properties.
3469 Refactor Class/Interface support a bit, to share more code and
3470 always initialize their method attribute to an empty list.
3472 2008-04-21 Johan Dahlin <johan@gnome.org>
3474 * giscanner/cgobject.py:
3475 Add a workaround for a glib bug interface introspection bug
3476 (object_interface_list_properties, object_class_list_properties):
3477 Cast the return value to GParamSpec.
3479 * tests/parser/Foo-expected.gidl: Update
3480 * tests/parser/foo.c: Add a string property
3482 * giscanner/gobjecttreebuilder.py:
3483 After stripping namespaces, remove the original
3484 item to avoid duplication (GtkButton struct and Button object)
3486 2008-04-21 Johan Dahlin <johan@gnome.org>
3488 * giscanner/gobjecttreebuilder.py:
3489 * giscanner/treebuilder.py:
3490 Strip namespaces before objects, so we'll export
3491 GtkButton as Button in the gtk namespace
3493 2008-04-21 Johan Dahlin <johan@gnome.org>
3495 * giscanner/gidlwriter.py:
3496 * giscanner/gobjecttreebuilder.py:
3497 * giscanner/treebuilder.py:
3498 Add constructors for object/boxed types.
3500 2008-04-21 Johan Dahlin <johan@gnome.org>
3502 * giscanner/gidlwriter.py:
3503 * giscanner/gobjecttreebuilder.py:
3504 Add support for boxed types
3506 2008-04-21 Johan Dahlin <johan@gnome.org>
3508 * giscanner/giscannermodule.c: Mark structures as const,
3509 wrap SourceType.const_string.
3511 * tests/parser/foo-object.h: Add a couple of constants.
3513 * giscanner/gidlwriter.py:
3514 * giscanner/gobjecttreebuilder.py:
3515 * giscanner/treebuilder.py:
3516 Add basic support for interfaces
3518 * tools/g-ir-scanner:
3519 Add -o/--output for writing to a file
3521 2008-04-21 Havoc Pennington <hp@redhat.com>
3523 * TODO: add some C API wishlist items I could think of quickly
3525 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3527 * giscanner/gidlwriter.py:
3528 * giscanner/xmlwriter.py:
3529 Add a simple api for writing tags which can be used
3530 with the new 'with statement' in python 2.5
3532 2008-04-21 Johan Dahlin <johan@gnome.org>
3534 * giscanner/gobjecttreebuilder.py:
3535 Strip namespace and object prefix from method names.
3537 2008-04-21 Johan Dahlin <johan@gnome.org>
3539 * tools/g-ir-scanner (main): Add --pkg option to pass in
3540 pkg-config modules to get cflags from.
3542 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3543 Avoid duplication, reuse function writer for methods.
3545 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3547 * giscanner/gidlwriter.py:
3548 * giscanner/gobjecttreebuilder.py:
3549 * giscanner/treebuilder.py:
3550 * tools/g-ir-scanner:
3551 Resolve libtool .la files.
3552 Strip name spaces for methods.
3553 Add function symbols
3555 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3557 * giscanner/cgobject.py:
3558 * giscanner/gidlwriter.py:
3559 * giscanner/gobjecttreebuilder.py:
3560 * giscanner/treebuilder.py:
3561 Add support for classes and methods
3563 2008-04-20 Johan Dahlin <johan@gnome.org>
3565 * giscanner/gidlwriter.py:
3566 * giscanner/gobjecttreebuilder.py:
3567 * giscanner/odict.py:
3568 Avoid conflicts, keep the output ordered similar to
3569 the order of the input.
3570 Add a simple ordered dictionary implemenation
3572 2008-04-19 Johan Dahlin <johan@gnome.org>
3574 * giscanner/cgobject.py:
3575 * giscanner/gidlwriter.py:
3576 * giscanner/gobjecttreebuilder.py:
3577 * tools/g-ir-scanner:
3578 Start introspecting get-type functions.
3579 Implement support for GLib/GFlags GTypes.
3580 Add a ctype based GObject binding.
3582 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3584 * giscanner/gidlwriter.py:
3585 * giscanner/xmlwriter.py:
3586 * tools/g-ir-scanner:
3587 Add a simplistic gidl writer, which can't do too much.
3589 2008-04-18 Johan Dahlin <johan@gnome.org>
3591 * giscanner/sourcescanner.py:
3592 * giscanner/treebuilder.py:
3593 * tools/g-ir-scanner:
3594 split tree building and source scanning interface to separate files.
3596 2008-04-18 Johan Dahlin <johan@gnome.org>
3598 * tools/g-ir-scanner (Parameter.__init__): Start constructing
3600 - Add support for struct/parameter/return, start parsing of ctypes
3602 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
3605 2008-03-31 Johan Dahlin <johan@gnome.org>
3607 * tools/g-ir-scanner:
3608 Start to build abstract syntax node of scanned sources.
3609 Add support for cpp options.
3611 2008-03-27 Johan Dahlin <johan@gnome.org>
3613 * giscanner/giscannermodule.c:
3614 * giscanner/scannerlexer.l:
3615 * giscanner/sourcescanner.c:
3616 * tools/g-ir-scanner:
3618 Add simple pre-processor using subprocess and a PIPE.
3619 Change the parse_file apis to accept a file descriptor.
3621 2008-03-25 Johan Dahlin <johan@gnome.org>
3623 * giscanner/__init__.py:
3624 * tools/g-ir-scanner:
3625 Fix a typo and add an example python test program.
3627 2008-03-25 Johan Dahlin <johan@gnome.org>
3629 * giscanner/__init__.py:
3630 * giscanner/giscannermodule.c:
3631 * giscanner/sourcescanner.c:
3632 * giscanner/sourcescanner.h:
3633 Add constants and wrap a few more SymbolType fields
3635 2008-03-25 Johan Dahlin <johan@gnome.org>
3639 * giscanner/__init__.py:
3640 * giscanner/giscannermodule.c:
3641 * giscanner/Makefile.am:
3643 Add initial python bindings for the scanner and
3644 depend on python 2.5.
3646 2008-03-25 Johan Dahlin <johan@gnome.org>
3650 * giscanner/Makefile.am:
3651 * giscanner/sourcescanner.c:
3652 * giscanner/sourcescanner.h:
3653 * tools/Makefile.am:
3654 * tools/grealpath.h:
3655 * tools/sourcescanner.c:
3656 * tools/sourcescanner.h:
3658 Move the scanner to a separate library.
3660 2008-03-23 Johan Dahlin <johan@gnome.org>
3662 * tools/Makefile.am:
3665 * tools/scannerlexer.l:
3666 * tools/scannerparser.y:
3667 * tools/sourcescanner.c:
3668 * tools/sourcescanner.h:
3669 Split out the source scanner from the generator.
3670 Rename the symbols used in the scanner to use the gi_ prefix.
3671 This should make it possible to use the raw C parser from
3674 2008-03-23 Johan Dahlin <johan@gnome.org>
3676 * tests/parser/Makefile.am (utility.gidl):
3677 * tests/parser/utility-expected.gidl:
3678 Pass in the gobject.gidl since we're defining a GObject.
3680 2008-03-12 Johan Dahlin <johan@gnome.org>
3682 * relaxng/relaxng.rng:
3683 Add a releaxng in relaxng we can use to validate the relaxngs
3686 2008-03-12 Jürg Billeter <j@bitron.ch>
3688 * tools/scanner.c: (g_igenerator_new):
3689 * tools/scannerparser.y:
3690 Fix compiler warnings.
3692 2008-03-12 Jürg Billeter <j@bitron.ch>
3696 * tools/scannerparser.y:
3697 Start fixing memory management in g-idl-scanner.
3699 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
3701 * tools/gidlcompilercontext.c: (write_compiled):
3702 Fix critical warning when no shlib passed to g-idl-compiler.
3704 2008-03-12 Johan Dahlin <johan@gnome.org>
3706 * tests/parser/utility-expected.gidl:
3707 * tests/parser/utility.h:
3708 Add a get_type-function, so the scanner actually
3709 parses it as an object.
3711 2008-03-12 Johan Dahlin <johan@gnome.org>
3713 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
3716 * tests/parser/Foo-expected.gidl:
3717 * tests/parser/Makefile.am:
3718 * tests/parser/foo-object.h:
3719 * tests/parser/foo.c:
3720 * tests/parser/utility-expected.gidl:
3721 * tests/parser/utility.c:
3722 * tests/parser/utility.h:
3724 Add a new gidl test. 'utility.gidl', which is used to be able
3725 to test external type references. Add a reference to UtilityObject*
3728 2008-03-11 Johan Dahlin <johan@gnome.org>
3732 Remove most global variables
3734 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
3736 * tools/scannerlexer.l:
3738 * tests/parser/Foo-expected.gidl:
3739 * tests/parser/foo.c:
3740 * tests/parser/Makefile.am:
3741 * tests/parser/foo-object.h:
3743 Added a few extra tests. Which resulted in finding a few
3744 bugs. Which resulted in me fixing those bugs
3746 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
3748 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
3749 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
3750 Add some comments for strings into generated output for
3753 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
3755 * tools/gidlcompilercontext.c: (write_compiled):
3756 Write out the shlibs variable before writing out the strings
3757 length. Fixes compiler warning when using '-l' flag with
3760 2008-03-11 Johan Dahlin <johan@gnome.org>
3762 * tests/parser/Foo-expected.gidl:
3763 * tests/parser/foo-object.h:
3766 * tools/scannerlexer.l:
3767 Add support for parsing return arguments. Add support for
3768 caller-owns return types.
3769 Patch by Philip Van Hoof.
3771 * tools/scannerparser.y:
3772 Remove parsing of the @deprecated syntax used in headers.
3773 We will support gtk-doc deprecation in the future instead.
3775 2008-03-11 Johan Dahlin <johan@gnome.org>
3777 * tools/compiler.c (main): Coding style fixes
3779 2008-03-10 Johan Dahlin <johan@gnome.org>
3782 Add GCOV_LIBS to GILIBS
3784 2008-03-10 Johan Dahlin <johan@gnome.org>
3786 * tests/parser/Foo-expected.gidl:
3787 * tests/parser/foo.c:
3788 Rename null-ok to direction=out
3790 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
3792 reviewed and extensively tested by Johan
3794 * tests/parser/Foo-expected.gidl:
3795 * tests/parser/foo-object.h:
3796 * tests/parser/foo.c:
3799 * tools/gidlwriter.c:
3802 * tools/scannerlexer.l:
3803 * tools/scannerparser.y:
3805 Add support for scanning for gtk-doc comments inside
3806 C source files. Add tests
3808 2008-03-10 Johan Dahlin <johan@gnome.org>
3810 * tests/parser/Makefile.am:
3811 * tests/parser/foo.c:
3814 * tools/scannerparser.y:
3815 Add an api to lex filenames.
3816 Lex all source .c files passed in on the command line.
3817 Scan sources in a test and a couple of private structures
3818 which should not be included in the generated gidl
3820 2008-03-10 Johan Dahlin <johan@gnome.org>
3822 * tests/invoke/Makefile.am: Make the generated metadata
3823 depend on the g-idl-compiler
3825 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3827 * tools/gidlmodule.c
3828 * tools/gidlmodule.h
3831 Remove the old g-idl-compiler code.
3834 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
3836 * tools/quote-file.sh
3839 Move to using the 'C' struct compiler code.
3841 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3843 * girepository/ginfo.c
3845 Change the way that external references with no namespace
3846 are dealt with. External references with no namespace
3847 are placed into the XML as-if they are a local reference.
3848 This is temporary, but helps with roundtrip tests.
3850 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3852 * girepository/ginfo.c
3853 Add the ability to get the value of a constant of
3854 type TYPE_TAG_SYMBOL. In the case of a symbol the value
3855 is provided as a string.
3857 This would deal properly with:
3858 typedef char* random;
3859 const random = "A string";
3861 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3863 * girepository/ginfo.c
3864 * girepository/girepository.h
3866 Add a function to check if an enum is registered or not.
3867 Previously anything testing this relied on the g-type
3868 string offset having a value of 0.
3870 * girepository/gmetadata.c
3871 * girepository/gmetadata.h
3873 Remove unneccesary or erroneous checks. There were two
3874 metadata validation checks which made sure that the blob
3875 sizes were the same as some magic numbers compiled into the code.
3876 This is wrong as it breaks any forwards compatibility that may
3879 Checks were also present that made sure that unregistered type
3880 blobs had a value of 0 in the g-type offset field. This is
3881 unneccessary. If a type blob is unregistered then any value
3882 in its g-type field is simply invalid.
3884 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3886 * girepository/ginfo.c
3887 * girepository/gmetadata.c
3888 * girepository/gmetadata.h
3890 Change the metadata format to have a standard header
3891 for all the type blobs. Merge the SimpleTypeBlob
3892 and InterfaceTypeBlob into a union. A union of these
3893 two blobs existed previously but was not explicit
3894 in the metadata format.
3896 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3898 * tools/gidlcompilercontext.c
3899 * tools/gidlcompilercontext.h
3900 * tools/gidlcompilerentrynode.c
3901 * tools/gidlcompilerentrynode.h
3902 * tools/gidlcompilertypenode.c
3903 * tools/gidlcompilertypenode.h
3905 Add code to compile a tree of GIdlNodes to
3906 a 'C' struct representing the metadata.
3907 This is to aid cross-compiling. Previously
3908 the g-idl-compiler created a binary blob with
3909 data written in the byte order and alignment
3910 of the tool rather than the intended target.
3912 Cleaned up and improved by Johan and Robert :-)
3914 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3916 * girepository/ginvoke.c
3917 * girepository/girepository.h
3918 * girepository/gmetadata.c
3919 * girepository/gmetadata.h
3921 * tools/gidlparser.c
3922 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
3923 to avoid confusion with the interface blob.
3926 * tools/gidlparser.c
3927 Remove magic numbers and replace with type-tag
3928 enumeration symbols.
3930 * girepository/gmetadata.c
3931 Add validate declaration.
3933 2008-03-10 Jürg Billeter <j@bitron.ch>
3935 * tools/gidlparser.c: (parse_type_internal):
3936 * tools/scannerlexer.l:
3937 * tools/scannerparser.y:
3938 Support C99 _Bool type in scanner.
3940 2008-03-10 Jürg Billeter <j@bitron.ch>
3942 * tests/parser/Foo-expected.gidl:
3943 * tests/parser/foo-object.h:
3944 * tests/parser/foo.c: (foo_enum_method):
3945 * tools/scanner.c: (g_igenerator_process_function_symbol):
3946 Don't skip functions that are defined in the namespace of a type
3947 that doesn't support methods, as for example enums.
3949 2008-03-10 Johan Dahlin <johan@gnome.org>
3951 * gidl.dtd: Remove, we're using relaxng for now
3953 * tests/parser/Foo-expected.gidl:
3954 * tests/parser/foo-object.h:
3955 * tests/parser/foo.c:
3956 Rename the enum/flags get_type functions to include the whole type.
3958 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
3960 * tools/gidlwriter.c (enum_generate): added "type-name",
3961 "get-type" and "deprecated" missing arguments.
3962 * tests/parser/Foo-expected.gidl:
3963 * tests/parser/foo-object.h: test enum type, and no type.
3965 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
3968 Consistent checks, add missing 'test'
3970 2008-03-05 Havoc Pennington <hp@redhat.com>
3972 * configure.ac: Take advantage of a libffi.pc if one exists, as it
3973 does on Fedora 8. Make libffi a hard requirement, since it was in
3974 practice anyway (was not really conditional in the code or
3975 makefile, only in configure).
3977 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3979 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
3980 reviewed by: Johan Dahlin <johan@gnome.org>
3982 * tests/Makefile.am:
3983 * tests/roundtrips.sh:
3984 Modify the roundtrips test so that they do not use the
3985 --raw option of the gidl compiler but instead compile a
3986 shared library to use with g_module.
3988 * tests/invoke/Makefile.am:
3989 * tests/invoke/invoke.c:
3990 Modify the invoke tests to build a shared library rather
3991 than use the --raw option.
3993 * tests/invoke/invoke-namespace-find.sh: Removed:
3994 Noone knows why this was here, so removed.
3996 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
3998 * tools/scanner.c: (g_igenerator_process_function_symbol):
3999 Move g_idl_node_can_have_member test later, as it broke spotting
4000 get_type's for nodes that can't have members.
4002 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4005 * tools/gidlnode.c: (g_idl_node_can_have_member):
4006 Add g_idl_node_can_have_member.
4008 * tools/scanner.c: (g_igenerator_process_function_symbol):
4009 Use g_idl_node_can_have_member to test if we should add a function
4010 as a member of the type node.
4012 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4014 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4016 * tests/parser/Makefile.am:
4017 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4019 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4021 * tools/scanner.c: (main):
4022 Ignore -pthread when passed to g-idl-scanner.
4024 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4026 * tools/grealpath.h: Added:
4027 * tools/scanner.c: (main):
4028 * tools/scannerlexer.l:
4029 * tools/Makefile.am:
4030 Always use absolute paths with symbolic links resolved when
4031 comparing filenames.
4033 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4035 * gobject-introspection.pc.in:
4036 Provide variables for g-idl-parser, scanner and compiler in the
4039 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4042 * girepository/Makefile.am:
4043 * tools/Makefile.am:
4044 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4046 2008-02-10 Johan Dahlin <johan@gnome.org>
4048 * tests/parser/Foo-expected.gidl:
4049 * tests/parser/foo-object.h:
4050 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4051 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4054 2008-02-10 Johan Dahlin <johan@gnome.org>
4056 * tests/parser/Foo-expected.gidl:
4057 * tests/parser/foo-object.h:
4058 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4059 Add enum and flags test.
4061 2008-02-10 Johan Dahlin <johan@gnome.org>
4065 * girepository/Makefile.am:
4066 Make 'make distcheck' work again.
4068 2008-02-10 Johan Dahlin <johan@gnome.org>
4070 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4073 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4074 check, eg exclude it from BUILT_SOURCES.
4076 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4081 * girepository/Makefile.am:
4082 * m4/Makefile.am: Added:
4083 * m4/as-compiler-flag.m4: Added:
4084 * m4/gcov.m4: Added:
4085 * tools/Makefile.am:
4086 Add ability to generate a coverage report.
4087 Adds configure option --enable-gcov and make rule 'check-coverage'.
4089 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4093 * gidl/Makefile.am: Added:
4094 * girepository/Makefile.am: Added:
4095 * src/Makefile.am: Renamed to tools/Makefile.am:
4096 * src/compiler.c: Renamed to tools/compiler.c:
4097 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4098 * src/generate.c: Renamed to tools/generate.c:
4099 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4100 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4101 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4102 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4103 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4104 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4105 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4106 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4107 * src/ginfo.c: Renamed to girepository/ginfo.c:
4108 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4109 * src/girepository.c: Renamed to girepository/girepository.c:
4110 * src/girepository.h: Renamed to girepository/girepository.h:
4111 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4112 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4113 * src/scanner.c: Renamed to tools/scanner.c:
4114 * src/scanner.h: Renamed to tools/scanner.h:
4115 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4116 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4117 * tests/invoke/Makefile.am:
4118 Split src/ into girepository/ and tools/
4122 * girepository/Makefile.am:
4123 * tests/Makefile.am:
4124 * tests/invoke/Makefile.am:
4125 * tests/parser/Makefile.am:
4126 * tests/roundtrips.sh:
4127 * tools/Makefile.am:
4128 Make distcheck work.
4130 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4132 * tests/invoke/invoke.c: (main):
4133 * tests/invoke/testfns.c: (test6), (test7):
4134 * tests/invoke/testfns.xml:
4135 Add tests for invokation with a GList argument.
4136 Also tests caller-owns return values.
4138 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4141 Add some documentation for GICallableInfo
4143 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4146 Correct syntax errors in the DTD file.
4148 * relaxng/c-types.xml:
4149 * relaxng/g-types.xml:
4151 Add a RelaxNG specification for the GObject Introspection XML data.
4152 The Specification has validated all of the test files.
4154 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4156 * tests/roundtrips.sh:
4157 * tests/struct.test:
4158 Add roundtrip tests for structs.
4160 2008-01-11 Johan Dahlin <johan@gnome.org>
4162 * src/scanner.c (g_igenerator_process_function_symbol):
4163 Refactor out g_idle_node_add_member.
4164 (create_node_from_gtype, create_node_from_ctype):
4165 Use case instead of if...else
4166 (get_type_from_type_id):
4167 Rename to create_node_from_gtype
4168 (get_type_from_ctype):
4169 Rename to create_node_from_ctype
4171 Rename ginode -> node, gitype -> type, gifunc -> func.
4173 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4174 Two new functions, refactor out of scanner.c
4176 * src/scanner.c: (g_igenerator_process_function_symbol):
4177 * src/scannerlexer.l:
4178 Do not save the content of the deprecated variable, only
4181 2008-01-11 Johan Dahlin <johan@gnome.org>
4183 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4185 2008-01-11 Jürg Billeter <j@bitron.ch>
4187 * src/scannerlexer.l:
4188 Fix GTK-Doc parsing.
4190 2008-01-11 Jürg Billeter <j@bitron.ch>
4192 * src/scannerlexer.l:
4193 Fix GTK-Doc parsing.
4195 2008-01-11 Jürg Billeter <j@bitron.ch>
4197 * src/scanner.c: (lookup_symbol):
4198 Return unresolved name if we find unknown symbol.
4200 2008-01-11 Jürg Billeter <j@bitron.ch>
4202 * src/scanner.c: (g_igenerator_generate):
4203 Initialize GObject to fix scanning interface properties.
4205 * tests/parser/Foo-expected.gidl:
4206 * tests/parser/foo-object.h:
4207 * tests/parser/foo.c: (foo_interface_get_type):
4208 Test interfaces with GObject prerequisite.
4210 * tests/parser/Makefile.am:
4211 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4213 2007-12-27 Johan Dahlin <johan@gnome.org>
4215 * src/scannerlexer.l:
4216 Parse gtk-doc comments.
4218 * src/gidlwriter.c: (function_generate):
4219 Reorganize, avoid duplication and add support for
4220 writing deprecated functions.
4222 * src/scannerparser.y:
4224 Add new structure CDirective and functions to create/free them.
4226 * src/scanner.c: (g_igenerator_process_function_symbol),
4227 (g_igenerator_process_unregistered_struct_typedef),
4228 (g_igenerator_process_struct_typedef),
4229 (g_igenerator_process_union_typedef),
4230 (g_igenerator_process_enum_typedef),
4231 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4232 (g_igenerator_start_preprocessor):
4233 Parse @deprecated directive for functions.
4234 Remove some more C99isms.
4235 Send in -C to cpp to avoid stripping comments.
4237 * tests/parser/foo-object.h:
4238 * tests/parser/Foo-expected.gidl:
4239 Add deprecated directive
4241 2007-12-27 Johan Dahlin <johan@gnome.org>
4243 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4244 escape ' and " so it looks more like C.
4247 Unlink temporary file used.
4249 2007-12-27 Johan Dahlin <johan@gnome.org>
4251 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4252 (g_igenerator_start_preprocessor), (main):
4254 * src/scannerparser.y:
4255 Plug a couple of simple memory leaks.
4257 2007-12-27 Johan Dahlin <johan@gnome.org>
4259 * src/scanner.c: (g_igenerator_parse_macros),
4260 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4263 * src/scannerparser.y:
4264 * tests/parser/Makefile.am:
4266 Improve error reporting, return when the preprocessor fails.
4267 Add a verbose parameter, to aid debugging.
4268 Revert to using a temporary file to communicate between the
4269 preprocessor and the parser, because we need to wait for
4270 the exit code from the pre-processor before starting to parse.
4272 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4274 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4275 cparser.y to scannerparser.y
4277 2007-12-11 Johan Dahlin <johan@gnome.org>
4281 * src/scanner.c: (g_igenerator_new):
4283 Get rid of the global the_generator variable.
4285 2007-12-10 Johan Dahlin <johan@gnome.org>
4287 * src/scanner.c (main): Add an output option,
4288 add checks for required parameters
4291 set BUILD_SOURCES and CLEANFILES properly
4293 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4294 (g_writer_write_indent), (g_writer_write_unindent),
4295 (field_generate), (value_generate), (constant_generate),
4296 (property_generate), (function_generate), (vfunc_generate),
4297 (signal_generate), (interface_generate), (struct_generate),
4298 (union_generate), (boxed_generate), (enum_generate),
4299 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4301 * src/scanner.c: (g_igenerator_generate):
4303 * src/scannerwriter.c:
4305 Refactor scannerwriter to only be tied to a GIdlModule and move
4306 it (again!) to gidlwriter.c. Change the writer function to take
4309 2007-12-10 Johan Dahlin <johan@gnome.org>
4312 * src/scanner.c: (g_igenerator_generate):
4314 * src/scannerwriter.c: (g_igenerator_write_inline),
4315 (g_igenerator_write), (g_igenerator_write_indent),
4316 (g_igenerator_write_unindent), (field_generate), (value_generate),
4317 (constant_generate), (property_generate), (function_generate),
4318 (vfunc_generate), (signal_generate), (interface_generate),
4319 (struct_generate), (union_generate), (boxed_generate),
4320 (enum_generate), (node_generate), (module_generate),
4321 (g_scanner_write_file):
4323 Move the scanner gidl writing to a separate source file.
4325 2007-12-10 Johan Dahlin <johan@gnome.org>
4330 Move over all CType construction functions.
4332 * tests/parser/Makefile.am:
4333 Be verbose when printing parsing tests results.
4335 2007-12-10 Johan Dahlin <johan@gnome.org>
4337 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4338 preprocessor handling to here. Start cpp insteado of cc -E,
4339 always include -U__GNUC__, since it's specific to the preprocessor
4342 * tests/parser/Makefile.am (check-local): Silent diff and skip
4343 -U__GNUC__ which is always defined now
4345 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4347 reviewed by: <delete if not using a buddy>
4349 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4350 * tests/parser/Makefile.am:
4352 2007-12-09 Johan Dahlin <johan@gnome.org>
4355 Use GOption for command line options.
4356 (g_igenerator_new, main): Simplify constructor and they way
4357 parameters are passed into it.
4363 * src/gen-introspect.c:
4364 * src/gen-introspect.h:
4366 Rename gen-introspect.[ch] to scanner.[ch]
4368 2007-12-09 Johan Dahlin <johan@gnome.org>
4372 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4373 don't make the repository library and the other utilites link against
4376 * src/gen-introspect.c: (g_igenerator_create_object),
4377 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4378 (g_igenerator_create_enum), (g_igenerator_create_flags),
4379 (g_igenerator_process_module_symbol),
4380 (g_igenerator_process_module), (g_igenerator_generate), (main):
4381 * src/gen-introspect.h:
4382 Refactor g_igenerator_process_types into smaller pieces.
4384 * tests/parser/Makefile.am:
4385 Depend on the gen-introspect binary
4387 2007-12-09 Johan Dahlin <johan@gnome.org>
4389 * src/gen-introspect.c (g_igenerator_process_types):
4390 Break into smaller pieces, one for each generated node type.
4392 2007-12-08 Johan Dahlin <johan@gnome.org>
4394 * src/gen-introspect.c: (g_igenerator_process_types),
4395 (g_igenerator_add_module):
4396 * tests/parser/Foo-expected.gidl:
4397 * tests/parser/foo-object.h:
4398 * tests/parser/foo.c: (foo_subobject_class_init),
4399 (foo_subobject_init):
4401 Add a subobject test and make sure to register defined classes
4402 in the lookup symbol hash table.
4404 2007-12-08 Johan Dahlin <johan@gnome.org>
4408 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4409 (g_igenerator_process_types), (g_igenerator_add_module),
4410 (g_igenerator_add_include_idl), (main):
4411 * src/gen-introspect.h:
4412 * tests/parser/Makefile.am:
4413 * tests/parser/Foo-expected.gidl:
4415 Change the gen-introspect to generate namespaced module names,
4416 such as GLib.Object instead of GObject.
4417 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4418 add a --include-idl parameter to gen-introspect,
4419 and update the parser test.
4421 2007-12-08 Johan Dahlin <johan@gnome.org>
4423 * src/gen-introspect.c:
4424 Move main to the end of the file and attempt to make it valid
4427 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4428 we're not quite ready to generate metadata yet.
4433 Add a simple gen-introspect parser test
4435 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4437 reviewed by: Johan Dahlin <johan@gnome.org>
4440 * gobject-introspection.pc.in:
4442 * src/compiler.c: (format_output), (write_out_metadata), (main):
4443 * src/gen-introspect.c: (main):
4444 * src/gen-introspect.h:
4445 * src/generate.c: (write_callable_info), (write_repository),
4446 (load_metadata), (main):
4447 * src/gidlmodule.c: (g_idl_module_new),
4448 (g_idl_module_build_metadata):
4450 * src/gidlparser.c: (start_element_handler):
4451 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4452 (g_base_info_get_name), (g_base_info_get_namespace),
4453 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4454 (g_base_info_get_metadata), (g_function_info_get_symbol),
4455 (g_function_info_get_flags), (g_function_info_get_property),
4456 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4457 (g_callable_info_may_return_null),
4458 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4459 (g_callable_info_get_arg), (g_arg_info_get_direction),
4460 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4461 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4462 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4463 (g_type_info_get_tag), (g_type_info_get_param_type),
4464 (g_type_info_get_interface), (g_type_info_get_array_length),
4465 (g_type_info_is_zero_terminated),
4466 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4467 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4468 (g_value_info_get_value), (g_field_info_get_flags),
4469 (g_field_info_get_size), (g_field_info_get_offset),
4470 (g_registered_type_info_get_type_name),
4471 (g_registered_type_info_get_type_init),
4472 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4473 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4474 (find_method), (g_struct_info_find_method),
4475 (g_enum_info_get_n_values), (g_enum_info_get_value),
4476 (g_object_info_get_parent), (g_object_info_get_type_name),
4477 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4478 (g_object_info_get_interface), (g_object_info_get_n_fields),
4479 (g_object_info_get_field), (g_object_info_get_n_properties),
4480 (g_object_info_get_property), (g_object_info_get_n_methods),
4481 (g_object_info_get_method), (g_object_info_find_method),
4482 (g_object_info_get_n_signals), (g_object_info_get_signal),
4483 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4484 (g_object_info_get_n_constants), (g_object_info_get_constant),
4485 (g_interface_info_get_n_prerequisites),
4486 (g_interface_info_get_prerequisite),
4487 (g_interface_info_get_n_properties),
4488 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4489 (g_interface_info_get_method), (g_interface_info_find_method),
4490 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4491 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4492 (g_interface_info_get_n_constants),
4493 (g_interface_info_get_constant), (g_property_info_get_flags),
4494 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4495 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4496 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4497 (g_constant_info_get_value), (g_union_info_get_n_fields),
4498 (g_union_info_get_field), (g_union_info_get_n_methods),
4499 (g_union_info_get_method), (g_union_info_is_discriminated),
4500 (g_union_info_get_discriminator_offset),
4501 (g_union_info_get_discriminator):
4502 * src/ginvoke.c: (g_function_info_invoke):
4503 * src/girepository.c: (g_irepository_register),
4504 (g_irepository_unregister), (g_irepository_get_default),
4505 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4506 (g_irepository_get_info), (g_irepository_find_by_name),
4507 (g_irepository_get_shared_library),
4508 (g_irepository_build_search_path), (g_irepository_register_file),
4509 (g_irepository_error_quark):
4510 * src/girepository.h:
4511 * src/gmetadata.c: (g_metadata_get_dir_entry),
4512 (g_metadata_check_sanity), (validate_header),
4513 (validate_array_type_blob), (validate_iface_type_blob),
4514 (validate_param_type_blob), (validate_error_type_blob),
4515 (validate_type_blob), (validate_arg_blob),
4516 (validate_signature_blob), (validate_function_blob),
4517 (validate_callback_blob), (validate_constant_blob),
4518 (validate_value_blob), (validate_field_blob),
4519 (validate_property_blob), (validate_signal_blob),
4520 (validate_vfunc_blob), (validate_struct_blob),
4521 (validate_enum_blob), (validate_object_blob),
4522 (validate_interface_blob), (validate_errordomain_blob),
4523 (validate_union_blob), (validate_blob), (validate_directory),
4524 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4525 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4526 (g_metadata_new_from_mapped_file), (g_metadata_free),
4527 (g_metadata_set_module), (g_metadata_get_namespace):
4529 * tests/Makefile.am:
4530 * tests/invoke/Makefile.am:
4531 * tests/invoke/invoke-namespace-find.sh:
4532 * tests/invoke/invoke.c: (main):
4534 Add a namespace/shared library mapping. fixes #313268.
4536 2007-12-03 Johan Dahlin <johan@gnome.org>
4538 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4541 2007-11-30 Jürg Billeter <j@bitron.ch>
4547 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4548 (g_igenerator_write_inline), (g_igenerator_write),
4549 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4550 (field_generate), (value_generate), (constant_generate),
4551 (property_generate), (function_generate), (vfunc_generate),
4552 (signal_generate), (interface_generate), (struct_generate),
4553 (union_generate), (boxed_generate), (enum_generate),
4554 (node_generate), (module_generate), (get_type_from_type_id),
4555 (str_replace), (g_igenerator_process_properties),
4556 (g_igenerator_process_signals), (g_igenerator_process_types),
4557 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4558 (g_igenerator_process_unregistered_struct_typedef),
4559 (g_igenerator_process_struct_typedef),
4560 (g_igenerator_process_union_typedef),
4561 (g_igenerator_process_enum_typedef),
4562 (g_igenerator_process_function_typedef),
4563 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4564 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4565 (g_igenerator_generate), (main), (csymbol_new),
4566 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4567 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4568 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4569 (eat_hspace), (eat_line), (read_identifier),
4570 (g_igenerator_parse_macros):
4571 * src/gen-introspect.h:
4573 Import gen-introspect to generate introspection information by
4576 2007-11-30 Jürg Billeter <j@bitron.ch>
4578 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4580 2007-11-30 Jürg Billeter <j@bitron.ch>
4582 * src/gidlparser.c: (end_element_handler): Don't leave requires
4585 2007-11-29 Johan Dahlin <johan@gnome.org>
4587 * src/gidlparser.c (parse_type_internal): Add char,
4588 gchar and guchar to the builtin types.
4590 2007-11-26 Johan Dahlin <johan@gnome.org>
4592 * src/ginfo.c: (g_object_info_get_type_name),
4593 (g_object_info_get_type_init):
4594 * src/girepository.c: (g_irepository_is_registered):
4595 * src/girepository.h:
4597 Add g_object_info_get_type_name, g_object_info_get_type_init and
4598 g_irepository_is_registered.
4600 2006-08-14 Jürg Billeter <j@bitron.ch>
4602 * src/gidlparser.c: (end_element_handler): Don't leave
4603 namespace and implements states too early.
4606 2007-11-26 Johan Dahlin <johan@gnome.org>
4608 * src/gmetadata.c (validate_struct_blob):
4609 pass blob_type to validate_function_blob instead of
4610 hard-coding BLOB_TYPE_STRUCT.
4612 Patch by Torsten Schoenfeld, fixes #314190
4614 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
4616 * src/compiler.c, src/generate.c, src/gidlnode.c,
4617 src/gidlparser.c, src/ginfo.c, src/girepository.c,
4618 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
4619 warnings about return values, signedness mismatches, unused
4620 variables, and unhandles enum values in switch statements.
4622 * tests/invoke/Makefile.am: Don't install the invoke test program.
4623 Add -I ../../src to the cflags used for the test functions files.
4625 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4627 * src/girepository.h: Export g_invoke_error_quark.
4629 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4631 * src/ginvoke.c: Remove the fallback implementation of
4632 g_function_info_invoke since we now formally depend on libffi.
4634 2005-07-25 Matthias Clasen <mclasen@redhat.com>
4636 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
4637 Remove these files from cvs, as they are now generated.
4639 * src/gmetadata.c (validate_iface_type_blob): Don't
4640 complain if blob->pointer is not set, since that
4641 happens for enum and flag types. (#308935, Gustavo
4644 * Commit an autoconf-conversion patch by
4645 Gustavo Carneiro (#308708)
4647 2005-05-24 Matthias Clasen <mclasen@redhat.com>
4649 * src/compiler.c (main): Use it here to validate
4650 the generated metadata.
4652 * src/gmetadata.[hc]: Add code to validate a
4655 * metadata-format.txt: Updates
4657 2005-05-22 Matthias Clasen <mclasen@redhat.com>
4659 * tests/*: Add struct offsets to field and vfunc
4662 * src/generate.c (write_vfunc_info): Write offset
4663 information for vfuncs.
4665 * src/gidlnode.c (g_idl_node_build_metadata): Write
4666 the struct offsets into the metadata.
4668 * src/gidlparser.c: Parse the offset attributes of
4669 field and vfunc elements.
4671 * src/gidlnode.h: Add offset members to field and
4674 2005-05-21 Matthias Clasen <mclasen@redhat.com>
4678 * gidl.dtd: Updates.
4680 * src/g-idl-offsets.pl: A perl script which reads a .gidl
4681 file, creates, compiles and runs a C file, and folds the
4682 resulting struct offsets back into the .gidl file.
4684 2005-05-20 Matthias Clasen <mclasen@redhat.com>
4686 * src/gidlparser.c (start_field): Make fields in objects
4689 * src/gidlmodule.c: Include string.h
4694 * metadata-format.txt: Cleanup basic types.
4695 * src/*: Adapt to the changes.
4696 * tests/*: Adapt to the changes.
4697 * examples/gdk-pixbuf.gidl: Adapt to the changes.
4699 * src/gidlnode.c (g_idl_node_get_size): Report the correct
4700 size for enum blobs.
4701 (g_idl_node_get_full_size): Report the correct size for
4704 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
4705 error checking for blob sizes.
4707 2005-05-19 Matthias Clasen <mclasen@redhat.com>
4709 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
4710 interface types for which is_pointer is FALSE, e.g. enums.
4712 * src/gidlnode.c (g_idl_node_get_full_size)
4713 * src/gidlparser.c (parse_type_internal):
4714 * src/generate.c (write_type_info): Support unspecialized
4715 lists, hashtables and errors. Also emit a '*' after these.
4719 2005-05-17 Matthias Clasen <mclasen@redhat.com>
4723 * metadata-format.txt: Cleanups by Maciej Katafiasz.
4725 2005-05-15 Matthias Clasen <mclasen@redhat.com>
4727 * src/*.c: Change the directory to be addressed by
4728 1-based indexes, and use an index of zero to mean
4731 2005-05-15 Matthias Clasen <mclasen@redhat.com>
4733 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
4735 * tests/union.test: Add a union test.
4737 * src/generate.c: Handle unions.
4739 * src/girepository.h:
4740 * src/ginfo.c: Add GIUnionInfo and functions to access it.
4742 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
4744 * src/gidlparser.c (start_union): Parse <union> elements.
4746 * src/gidlnode.h: Add a GIdlNodeUnion.
4748 * gidl.dtd: Add a <union> element.
4750 * src/gmetadata.c (g_metadata_check_sanity): Check
4753 * src/gmetadata.h: Add union_blob_size to Header,
4756 * metadata-format.txt: Add a UnionBlob.
4758 2005-05-13 Matthias Clasen <mclasen@redhat.com>
4760 * tests/*: Update testcases.
4762 * src/generate.c (write_callable_info): Don't forget to
4763 write transfer and null-ok attributes for return types
4766 * src/girepository.h:
4767 * src/ginfo.c (g_callable_info_may_return_null):
4768 New function to find out if a function may return NULL.
4770 * src/compiler.c (format_output): Make the generated
4773 * README: Point to a recent libffi snapshot.
4775 * tests/invoke/*: Some invoke tests.
4777 * src/Makefile: Add ginvoke.c and the necessary
4780 * src/girepository.h (g_function_info_invoke): Add
4783 * src/ginvoke.c (g_function_info_invoke): Initial
4784 implementation of invoke functionality based on libffi.
4786 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
4787 strings and types hash tables in the right order when
4789 (find_entry_node): Free the name parts.
4791 2005-05-12 Johan Dahlin <johan@gnome.org>
4793 * src/generate.c: Generate consistent end tags.
4797 2005-05-12 Matthias Clasen <mclasen@redhat.com>
4801 * src/gidlparser.c (start_function): Actually add
4802 methods to objects. (Steven Walter)
4804 * src/girepository.h:
4805 * src/ginfo.c: Rename Transfer and Direction to
4806 GITransfer and GIDirection. (Torsten Schoenfeld)
4808 * tests/*: Make tests work with the changes in name
4811 * src/gidlnode.c (find_entry_node): Parse qualified
4812 names and generate xref nodes for them if needed. Don't
4813 require all modules to be loaded any more.
4815 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
4818 * src/ginfo.c (g_object_info_get_parent): Return NULL
4819 if blob->parent is 0. Still need to make sure index
4822 * src/generate.c: Generate qualified names when
4823 referring to non-local types. Emit transfer attribute
4826 * src/compiler.c (format_output): Put the function
4827 attributes where gcc accepts them.
4829 2005-05-11 Matthias Clasen <mclasen@redhat.com>
4831 * src/compiler.c (main): Add a --verbose cmdline option
4832 and only log messages if it is specified.
4835 * src/gidlnode.c (init_stats, dump_stats): Collect some
4836 statistics on string and type sharing.
4838 * src/gidlmodule.c (g_idl_module_build_metadata): Use
4839 g_message() instead of fprintf().
4841 * src/gidlnode.c (g_idl_node_free): Make this more robust.
4842 (g_idl_node_get_size): Implement for structs.
4843 (g_idl_node_get_full_size): Handle parent being NULL.
4844 (serialize_type): Handle lookup failures more gracefully.
4846 2005-05-10 Matthias Clasen <mclasen@redhat.com>
4848 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
4849 size calculation for 2-parameter types and for objects.
4851 * src/compiler.c: Add a cmdline option for debug output
4852 and install a log handler to implement it.
4853 * src/gidlnode.c: Add some debug spew.
4857 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
4858 forget to count the module name when calculating the
4859 required size for the metadata.
4862 * src/gidlparser.c: Fix compiler warnings.
4864 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4866 * src/compiler.c (main): Free the option context.
4868 * gidl.dtd: Clean up handling of names. All elements
4869 have a "name", only the elements corresponding to
4870 actual callable functions (function, method, constructor),
4871 have an additional "symbol" attribute holding the
4872 dlsym()-able function name.
4874 * src/generate.c: Adapt to generate xml matching the
4878 * src/gidlnode.c: Adapt to parse the new dtd.
4880 * tests/*.test: Adjust to the new dtd.
4882 * metadata-format.txt:
4883 * src/gmetadata.h: Remove the short_name field
4885 * src/gmetadata.c: Shrink size of ValueBlob to 12.
4886 * src/girepository.h:
4887 * src/ginfo.c (g_value_info_get_short_name): Removed
4889 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4891 * gidl.dtd: Allow constructors for boxed types,
4892 patch by Jonathan Blandford.
4895 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4897 * --- Initial import ---