1 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
3 * gir/gio-2.0.c: add annotation for g_file_delete
5 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
7 Bug 558062 – provide and use paths in the .pc file
9 * gobject-introspection-1.0.pc.in: provide typelibdir variable
10 for where .typelibs should be installed (callers shouldn't need
11 to construct paths from bits and pieces)
13 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
15 Bug 557791 – g_irepository_require() could return a GTypelib *
17 * girepository/girepository.c: Return GTypelib; this is useful
18 for low level manipulation.
20 2008-10-25 Colin Walters <walters@verbum.org>
22 Bug 557788 – Return types for constructors in generated typelib bogus
24 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
25 rely on end pass resolution.
27 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
29 Bug 557786 - support fixed size arrays
31 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
32 * giscanner/scannerparser.y: Retain fixed array size.
33 * giscanner/ast.py: Add to note.
34 * giscanner/girwriter.py: Write to gir.
35 * girepository/girnode.c: Write it to typelib.
36 * tools/generate.c: Generate.
39 2008-10-25 Colin Walters <walters@verbum.org>
41 Bug 557076 - move typelibs to $libdir
43 * configure.ac: Steal some configury bits from dbus to expand
45 * gir/Makefile.am: Move to libdir.
46 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
47 instead just look at one hardcoded path in libdir.
48 * acinclude.m4: Bits from dbus.
50 2008-10-24 Johan Dahlin <johan@gnome.org>
52 * girepository/girnode.c (g_ir_node_check_unhandled_members):
53 Be quiet, do not warn about unhandled members.
55 2008-10-24 Johan Dahlin <johan@gnome.org>
57 * girepository/gtypelib.c:
58 Only use SHLIB_SUFFIX on darwin, otherwise use
59 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
61 2008-10-24 Lucas Rocha <lucasr@gnome.org>
63 Bug 557623 - Constructors shouldn't be flagged as methods.
65 * girepository/ginfo.c (g_function_info_get_flags): ditto.
67 2008-10-24 Johan Dahlin <johan@gnome.org>
69 * giscanner/scannerparser.y:
70 Check against division by zero for the modula operator.
71 This fixes header parsing of OSX system headers included
74 2008-10-24 Johan Dahlin <johan@gnome.org>
78 Add a CONTRIBUTORS file and dist it.
80 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
82 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
84 * girepository/girparser.c (parse_param_transfer):
85 * giscanner/transformer.py (_create_parameter, _create_return):
86 * giscanner/girwriter.py (_write_return, _write_parameter):
87 * tools/generate.c (write_callable_info): always write and
88 require "transfer-ownership" for return-values and parameters
91 * tests/invoke/testfns-1.0.gir:
93 * tests/scanner/DrawableAdditions.xml:
94 * tests/scanner/GtkFrob-1.0-expected.tgir:
95 * tests/scanner/annotation-1.0-expected.tgir:
96 * tests/scanner/drawable-1.0-expected.tgir:
97 * tests/scanner/drawable-injected-1.0-expected.gir:
98 * tests/scanner/drawable-injected-1.0-expected.tgir:
99 * tests/scanner/foo-1.0-expected.tgir: Updated
101 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
103 * giscanner/cgobject.py: build fundamental types same way as glib
105 * giscanner/glibtransformer.py (_type_from_gtype): record GType
106 when constructing the Type from it
108 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
109 the parameter is a GObject from its GType, if available.
111 * giscanner/glibtransformer.py (_adjust_transfer):
112 * tests/scanner/foo-1.0-expected.gir:
113 * tests/scanner/foo-1.0-expected.tgir: deduce
114 transfer-ownership from GTypes
116 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
118 * giscanner/transformer.py (_create_parameter):
119 * tests/scanner/foo-1.0-expected.gir: make varargs
120 transfer-ownership="none"
122 2008-10-23 Colin Walters <walters@verbum.org>
124 Bug 556739 - transfer ownership
126 * giscanner/ast.py: Refactor Parameter/Return to share
127 common attributes. Add transfer_inferred attribute
128 which says whether or not we made a guess.
129 * giscanner/transformer.py: Add much more extensive
130 heuristics around parameter and return transfer.
131 * giscanner/glibtransformer.py: Adjust to inspect
135 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
137 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
139 * tests/scanner/Makefile.am:
140 * tests/scanner/annotation-1.0-expected.tgir:
141 * tests/scanner/drawable-1.0-expected.tgir:
142 * tests/scanner/drawable-injected-1.0-expected.tgir:
143 * tests/scanner/foo-1.0-expected.tgir:
144 * tests/scanner/GtkFrob-1.0-expected.tgir:
145 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
146 annotations survive the roundtrip via typelib
148 The expectations are as currently produced by g-ir-generate,
149 comparison with the .gir files shows there are differences.
151 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
153 Bug 557468 – Support for GI_TYPELIB_PATH
155 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
156 provided paths to the global search path.
158 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
160 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
162 * tests/scanner/drawable-1.0-expected.tgir:
163 * tests/scanner/drawable-injected-1.0-expected.tgir:
164 * tests/scanner/foo-1.0-expected.tgir:
165 * tools/generate.c (write_object_info): write 'abstract'
166 attribute for classes
168 2008-10-22 Lucas Rocha <lucasr@gnome.org>
170 * girepository/girmodule.c, girepository/gtypelib.c,
171 girepository/girparser.[ch]: fix some build warnings.
173 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
175 Bug 557405 – Use 'allow-none' consistently
177 * docs/typelib-format.txt:
178 * girepository/ginfo.c (g_arg_info_may_be_null):
179 * girepository/girnode.c (g_ir_node_build_typelib):
180 * girepository/girnode.h (struct _GIrNodeParam):
181 * girepository/girparser.c (start_parameter):
182 * girepository/girwriter.c (function_generate):
183 * girepository/gtypelib.h (ArgBlob):
185 * tests/function.gir:
186 * tools/generate.c (write_callable_info): Use 'allow-none'
187 consistently throughout
189 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
191 Bug 557092 – Callback annotations not used
193 * giscanner/transformer.py (_create_callback): use annotations
195 * tests/scanner/annotation.h
196 * tests/scanner/annotation-1.0-expected.gir: add tests
198 2008-10-21 Colin Walters <walters@verbum.org>
200 * giscanner/scannerlexer.l: Don't require trailing whitespace after
201 uncommented parameters.
204 2008-10-21 Colin Walters <walters@verbum.org>
206 * girepository/girepository.c: Ensure that when doing an unversioned
207 require, we prefer items earlier in the search path to later ones.
209 2008-10-21 Owen Taylor <otaylor@redhat.com>
211 * giscanner/transformer.py: For string parameters allow transfer annotation
212 to override the standard automatic guessing based on 'const'.
214 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
216 Bug 557241 – "throws" flag for functions
218 * tests/scanner/drawable-1.0-expected.gir,
219 tests/scanner/drawable-injected-1.0-expected.gir,
220 tests/scanner/drawable.[ch]: add simple test for throwing
221 function (has GError ** as last argument)
223 * giscanner/ast.py: add a 'throws' flag to Function
224 * giscanner/glibtransformer.py: if a function's last paramerter is
225 a GError, set the 'throws' flag and remove that parameter
226 * giscanner/girwriter.py: write out the 'throws' attribute
227 * giscanner/girparser.py: support parsing the 'throws' attribute
229 * tests/repository/gitestthrows.c: add a simple test to check the
230 throws flag in a typelib and invoke the function
232 * girepository/ginfo.c, girepository/girnode.[ch],
233 girepository/girnode.h, girepository/girparser.c,
234 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
236 * girepository/ginvoke.c: if a function throws, add a GError as last
237 arguments, and propagate the error to the invoker.
239 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
241 * giscanner/transformer.py (_create_parameters): Warn if we see
242 annotations for unknown parameters. If .h and .c files name
243 parameters differently, the annotations may be lost.
245 2008-10-21 Johan Dahlin <johan@gnome.org>
247 Bug 556358 - don't use libtool internals
249 * giscanner/Makefile.am:
250 * giscanner/libtoolimporter.py:
251 * giscanner/sourcescanner.py:
252 * giscanner/utils.py:
253 Add a python meta importer and remove a libtool symlink hack.
255 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
257 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
258 and --add-include-path appropriately when invoking the scanner.
259 * tests/types/Makefile.am (%typelib): Likewise.
261 2008-10-20 Colin Walters <walters@verbum.org>
263 Bug 556777 - validate properties
265 * giscanner/transformer.py: Add option to throw on unknown types.
266 * giscanner/glibtransformer.py: Use it on properties.
267 * tests/*: Add a test.
269 2008-10-20 Colin Walters <walters@verbum.org>
271 * giscanner/glibast.py: Also register g variants of
272 default_array_types. This is not beautiful, but
273 good alternatives aren't easy to come by.
274 This fixes gchar ** parsing.
276 2008-10-20 Colin Walters <walters@verbum.org>
278 * docs/typelib-format.txt, girepository/gtypelib.h:
279 Take a bit from ObjectInfo to represent abstract flag.
280 * giscanner/cgobject.py: Expose g_type_get_flags.
281 * girepository/girepository.h: Add accessor.
282 * girepository/ginfo.c: Implement it.
283 * giscanner/ast.py: Add is_abstract flag to generic
285 * giscanner/glibast.py: Use it.
286 * giscanner/girwriter.py: Write it.
287 * girepository/girparser.c: Parse it.
290 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
292 * giscanner/girparser.py (_parse_function): don't lose
293 'transfer-ownership' attributes when injecting, check for the
296 2008-10-19 Johan Dahlin <johan@gnome.org>
298 * giscanner/scannerlexer.l: Parse and ignore __asm.
300 2008-10-19 Colin Walters <walters@verbum.org>
302 * giscanner/girparser.py: Parse array length= to ensure
303 it doesn't get lost from --inject.
305 2008-10-17 Colin Walters <walters@verbum.org>
307 Bug 556795 - char ** regression
309 * giscanner/transformer.py: Fix parsing of ctypes, add some
310 comments about what's going on.
311 * tests/*: Add a test for char **.
313 2008-10-17 Colin Walters <walters@verbum.org>
315 Bug 556783 - change namespace handling to be more consistent
317 * giscanner/transformer.py: Eliminate usage of
318 strip_namespace_object. We now treat --namespace as the default
319 --strip-prefix; however, if --strip-prefix is specified it
320 overrides --namespace. This applies to everything except function
321 names, where we do also strip the namespace.
322 * giscanner/glibtransformer.py: Remove usage of
323 strip_namespace_object.
325 * tests/*: Add skeletal GtkFrob-1.0 test which has different
326 --namespace and --strip-prefix.
328 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
330 Bug 556732 – generate gir files consistently
332 * girepository/girparser.c (start_parameter):
334 * tests/invoke/testfns-1.0.gir:
335 * tools/generate.c (write_callable_info): write
336 'transfer-ownership' attribute consistently with both
337 return-value and parameter elements
339 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
341 Bug 556732 – generate gir files consistently
343 * tools/generate.c (write_callable_info): write 'direction'
344 attribute only if other than 'in' to be consistent with
347 * tests/object.gir: remove direction="in" which is the default
349 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
351 Bug 556732 – generate gir files consistently
353 * giscanner/ast.py (Field): add readable and writable properties
354 * giscanner/girparser.py (_parse_field): copy 'readable' and
355 'writable' attributes
356 * giscanner/transformer.py (_create_member): create fields as
358 * giscanner/glibtransformer.py (_introspect_object,
359 _pair_class_struct): make object instance and class fields
361 * giscanner/girwriter.py (_write_field):
362 * tools/generate.c (write_field_info): write field 'readable'
363 and 'writable' attributes only if non-default (read-only)
364 * girepository/girparser.c (start_field): in the absence of
365 attributes assume fields are read-only
367 * tests/struct.gir: remove redundant readable="1" from fields
368 * tests/scanner/foo-1.0-expected.gir:
369 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
370 all record and union fields
372 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
374 Bug 556732 – generate gir files consistently
376 * giscanner/girwriter.py (_write_property): write properties
377 'construct' attribute if set
378 * tools/generate.c (write_property_info): write properties
379 'readable' and 'writable' attributes only if non-default
380 * tests/object.gir: add writable="0"
381 * tests/scanner/foo-1.0-expected.gir: add construct="1"
383 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
385 * gir/glib-2.0.c: added annotations
387 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
389 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
392 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
394 Bug 556610 – giscanner/girparser.py drops parameter options
396 * tests/scanner/drawable-injected-1.0-expected.gir,
397 tests/scanner/DrawableAdditions.xml: added simple test for injection.
398 * giscanner/ast.py: allow Parameter to take options in the constructor
399 * giscanner/girparser.py: parse parameter options (transfer,
400 direction, allow-none)
402 2008-10-16 Colin Walters <walters@verbum.org>
404 Bug 556185 - segfault on g_callable_info_get_return_type
406 Initial patch from John Ehresman.
408 * tests/repository/*: Add a test using
409 g_callable_info_get_return_type. Instead of casting a
410 GITypeInfo directly to a GIRegisteredTypeInfo, we need
411 to call g_type_info_get_interface.
413 2008-10-16 Colin Walters <walters@verbum.org>
415 Bug 556579 - union and struct name misresolved
417 * giscanner/transformer.py: The calls to _resolve_type_name
418 for struct/union names was a legacy holdover from when type
419 resolution had multiple phases. Now it's actively harmful
420 since we might pull in an identical name from another
424 2008-10-16 Colin Walters <walters@verbum.org>
426 Bug 556432 - transfer annotations and defaults
428 * giscanner/transformer.py: Canonicalize type
429 after removing *, not before. This ensures that
430 guchar* is transformed to 'uint8'.
431 Add some comments here.
432 * giscanner/glibtransformer.py: Add _adjust_transfer
433 phase for tweaking GObject transfers.
436 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
438 * configure.ac: enable bunch of gcc warning CFLAGS
440 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
442 Bug 556543 – reduce compiler warnings
444 * girepository/ginfo.c:
445 * girepository/girepository.c (register_internal,
446 count_interfaces, find_interface, find_namespace_version,
447 parse_version, g_irepository_require):
448 * girepository/girmodule.c (g_ir_module_build_typelib):
449 * girepository/girnode.c (init_stats, dump_stats,
450 _g_irnode_init_stats, _g_irnode_dump_stats,
451 g_ir_node_can_have_member):
452 * girepository/girparser.c (firstpass_end_element_handler,
453 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
454 start_alias, start_type, end_type_top, parse_include, cleanup,
456 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
457 * giscanner/giscannermodule.c (directive_get_options,
458 type_get_child_list):
459 * giscanner/scannerlexer.l (parse_gtkdoc):
460 * giscanner/scannerparser.y (ctype_free):
461 * giscanner/sourcescanner.c:
462 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
463 * tests/types/gitesttypes.c:
464 * tools/compiler.c (main):
465 * tools/generate.c (write_repository): Remove unused variables
466 and code, add missing includes, declarations and case
469 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
471 Bug 556541 – access union members through UnionBlob rather than
474 * girepository/ginfo.c (g_union_info_find_method): access union
475 members through UnionBlob rather than StructBlob
477 2008-10-15 Colin Walters <walters@verbum.org>
479 Bug 556331 - clean up includes handling
481 * tools/g-ir-scanner: Rework command line arguments; now we take
482 --add-include-path and --include separately.
483 * giscanner/girwriter.py: Separate name= and version= in include
485 * giscanner/ast.py: Add Include type.
486 * giscanner/transformer.py: Cleanups to register_include now that
487 we don't need to handle mixed filenames and relative arguments.
488 * girepository/girparser.c: Parse name and version separately;
489 this fixes a bug as a side effect where we weren't resolving
490 through aliases for basic types.
491 * girepository/girepository.c: Fix format string args.
492 * gir/Makefile.am: Update.
495 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
497 Bug 556434 – unhandled interface/object/... member types
499 * girepository/girnode.c (g_ir_node_check_unhandled_members,
500 g_ir_node_build_typelib): Check all
501 interface/object/boxed/struct/union members are processed and
502 abort if they are not. (Mostly callbacks in structs, but also
503 fields in interfaces.)
505 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
507 * a/girepository/girnode.c (g_ir_node_build_members,
508 g_ir_node_build_typelib): refactor common code for processing
509 members to a function
511 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
513 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
514 transformation is lossless (it's not)
516 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
518 * tests/Makefile.am: fix tests to compare xml to xml instead of
519 typelib to xml, and stop on error
521 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
523 * tools/generate.c (write_type_name, write_type_info,
524 write_type_info, write_object_info, write_object_info,
525 write_interface_info, write_error_domain_info): reduce code
528 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
530 Bug 556174 – parse types for lists etc.
532 * girepository/girparser.c (end_type_recurse):
534 * tools/generate.c (write_type_info, write_field_info,
535 write_callable_info, write_callable_info, write_constant_info,
536 write_property_info): use nested <type>s for lists and hashes
538 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
541 * tests/object.gir: remove trailing whitespace from inside
542 elements to match g-ir-generate output
544 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
546 * tools/generate.c (xml_printf): quote printf arguments so that
547 we don't generate invalid XML by writing unescaped double quotes
548 and such in attributes
550 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
552 * tools/generate.c (write_field_info, write_callable_info,
553 write_function_info, write_callback_info, write_struct_info,
554 write_constant_value, write_signal_info, write_vfunc_info,
555 write_object_info, write_interface_info, write_union_info,
556 write_repository): remove unused indent parameters, xmlwriter
557 keeps track of necessary indentation
559 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
561 * tools/generate.c (xml_element_new, xml_element_free,
562 xml_start_element, xml_end_element, xml_end_element_unchecked,
563 xml_open, xml_close): Keep track of generated XML tree and
564 handle indentation and closing tags properly.
565 (write_field_info, write_callable_info, write_function_info,
566 write_callback_info, write_struct_info, write_value_info,
567 write_constant_info, write_enum_info, write_signal_info,
568 write_vfunc_info, write_property_info, write_object_info,
569 write_interface_info, write_error_domain_info, write_union_info,
570 write_repository): Use xml_start_element and xml_end_element to
573 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
575 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
576 (write_type_name, write_type_info, write_field_info,
577 write_callable_info, write_function_info, write_callback_info,
578 write_struct_info, write_value_info, write_constant_value,
579 write_constant_info, write_enum_info, write_signal_info,
580 write_vfunc_info, write_property_info, write_object_info,
581 write_interface_info, write_error_domain_info, write_union_info,
582 write_repository): wrap all FILE access to go through simple xmlwriter
584 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
586 Bug 556400 – Fails to build on OS X 10.4
588 * configure.ac: check for functions backtrace and backtrace_symbols
589 * girepository/girparser.c (backtrace_stderr): Comment out
590 implementation if the functions are not available.
591 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
592 directory for better portability
594 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
596 Bug 556433 – assume direction = out for int * parameters
598 * giscanner/ast.py: define a list of types for which, if passed as
599 reference, we assume a default direction of 'out'
600 * giscanner/transformer.py: if a type has type pointer to one of the
601 previously defined types, and no direction is set, assume out.
602 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
604 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
606 * tests/scanner/annotation.c: fixed a few copy-paste errors
608 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
610 Bug 556323 – transfer-ownership is wrong for functions returning const
613 * giscanner/transformer.py: check for a const string as return value,
614 not just const char*. Suggested by Colin Walters
615 * tests/scanner/annotation-1.0-expected.gir: updated expected output
617 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
619 * girepository/ginfo.c, girepository/girepository.h: add
620 g_union_info_find_method
622 2008-10-14 Colin Walters <walters@verbum.org>
624 * tests/repository/Makefile.am: Reenable repo test.
625 * tests/repository/gitestrepo.c: Prepend search
626 path for $(top_builddir)/gir dir so that we don't
627 require installation for "make check" to pass.
629 2008-10-13 Jürg Billeter <j@bitron.ch>
631 * giscanner/glibtransformer.py:
632 * tests/scanner/annotation-1.0-expected.gir:
633 * tests/scanner/drawable-1.0-expected.gir:
634 * tests/scanner/foo-1.0-expected.gir:
635 * tests/scanner/utility-1.0-expected.gir:
637 Support fields in GObject structs
639 2008-10-13 Jürg Billeter <j@bitron.ch>
641 * giscanner/ast.py: add signed integer and off_t to type_names
643 2008-10-12 Jürg Billeter <j@bitron.ch>
645 * giscanner/girparser.py: Parse bits attribute of fields
647 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
649 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
650 * tests/repository/gitestrepo.c (main): instantiate
651 'GCancellable' to ensure the GType is registered before using
654 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
656 * giscanner/girparser.py: actually add the parsed constant nodes
658 2008-10-12 Colin Walters <walters@verbum.org>
660 * girepository/girepository.c: Don't cast DirEntry to Blob,
661 actually look it up by offset.
663 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
665 * giscanner/girparser.py: parse constant nodes in gir files
667 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
669 * giscanner/transformer.py: prefix for constants have an underscore,
670 so remove them as if they were functions, not objects.
672 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
674 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
677 2008-10-12 Colin Walters <walters@verbum.org>
679 Initial patch from Jani Monoses.
681 * girepository/gtypelib.c: Fix inverted test for success
684 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
686 * tools/generate.c (write_callable_info): use "transfer-ownership"
687 attribute for return values
689 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
691 * tools/generate.c (write_callable_info): move "transfer" and
692 "null-ok" attributes from <function> to <return-value> element
694 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
696 * girepository/girparser.c (start_return_value): handle
697 "transfer-ownership" attribute
699 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
701 * girepository/girparser.c (parse_param_transfer):
702 * tools/generate.c (write_callable_info): use "container" for
703 container/shallow ownership transfer (not "shallow")
705 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
707 * girepository/girparser.c (parse_param_transfer,
708 start_parameter): Refactor handling of transfer=none/shallow/full
711 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
713 Bug 556048 – Crash in g_irepository_find_by_gtype
715 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
716 * girepository/girepository.c (find_interface): Fix
717 find_by_gtype case to get the type name from right offset
719 2008-10-12 Jürg Billeter <j@bitron.ch>
721 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
724 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
726 * girepository/gtypelib.h (RegisteredTypeBlob): make
727 'unregistered' one bit wide as everywhere else
729 2008-10-12 Jürg Billeter <j@bitron.ch>
731 * giscanner/glibtransformer.py:
732 * tests/scanner/annotation-1.0-expected.gir:
733 * tests/scanner/drawable-1.0-expected.gir:
734 * tests/scanner/drawable.h:
735 * tests/scanner/foo-1.0-expected.gir:
736 * tests/scanner/utility-1.0-expected.gir:
738 Readd class records as workaround to not break Gtk typelib
740 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
742 * tests/types/Makefile.am: fix typo in gitesttypes namespace
744 2008-10-12 Jürg Billeter <j@bitron.ch>
746 * giscanner/glibtransformer.py: Don't generate <record> elements
748 * tests/scanner/*: Update test cases
750 2008-10-11 Colin Walters <walters@verbum.org>
752 Bug 552858: versioning
754 This is a big patch. You should probably remove your installation
757 * docs/typelib-format.txt: Add nsversion entry which holds
758 version of namespace.
759 * girepository/girepository.h: Add 'version' parameter to
760 g_irepository_require. This may be NULL. Normally
761 bindings should pass an explicit version though.
762 * girepository/girepository.c: Lots of infrastructure to
763 support versioning. Add some more documentation. Disallow
764 some usage of NULL namespaces.
765 * girepository/girmodule.c: Add version parameter.
766 * girepository/gtypelib.c: Update header size.
767 * giscanner/ast.py: Add version to Namespace.
768 * giscanner/girparser.py: Parse version attribute from
769 XML, pass to Namespace.
770 * giscanner/girwriter.py: Write out version parameter.
771 * giscanner/transformer.py: Clean up include registration.
772 * tests/*: Add version attribute.
773 * tests/invoke/invoke.c: Don't try looking up test before
774 it's loaded in repository.
775 * tools/generate.c: Output version parameter.
776 * gir/Makefile.am: Add 2.0 version to .gir files.
778 2008-10-11 Colin Walters <walters@verbum.org>
780 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
781 if we have mismatched parens.
783 2008-10-11 Lucas Rocha <lucasr@gnome.org>
785 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
786 on 'members' variable.
788 2008-10-11 Colin Walters <walters@verbum.org>
790 Bug 555947 - update annotations syntax
792 * giscanner/ast.py: Default to None for transfer. Remove
793 default transfers for container types; we require this to
795 * giscanner/girwriter.py: Transfer is now 'none', 'container',
796 'full' to match repository.
797 * giscanner/scannerlexer.l: Annotations now are parenthesized.
798 * giscanner/transformer.py: Update for new annotations syntax.
801 2008-10-11 Johan Bilien <jobi@litl.com>
803 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
805 2008-10-11 Johan Bilien <jobi@litl.com>
807 Bug 552347: Parse #defines constants
809 * girepository/gtypelib.c: update the list of value_size
810 with recently defined type tags
811 * giscanner/scannerparser.y: brought back parsing of #defined, as
812 present in older version
813 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
814 * giscanner/girwriter.py: write out constant tags in the gir
815 * giscanner/sourcescanner.py: add accessor for const_string
816 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
819 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
821 Bug 555946: Install a test module exercising all types, transfer
826 * tests/types/*: Add and install a test module that has functions
827 accepting and returning most of the basic types to enable bindings
828 implementors to more easily test their type conversion routines.
830 2008-10-11 Jürg Billeter <j@bitron.ch>
832 Bug 552374: Const strings should be identified in the gir.
834 * giscanner/transformer.py: support string memory management
835 * tests/scanner/foo.h: use char * and const char *
836 * tests/scanner/foo-expected.gir: test that
838 2008-10-11 Johan Dahlin <johan@gnome.org>
840 * giscanner/girparser.py:
841 Also parse enums which are not glib types.
843 2008-10-11 Lucas Rocha <lucasr@gnome.org>
845 Bug 552370: add one more test for unsigned as a type, not as
848 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
849 * test/scanner/foo.h: add function which uses unsigned as a type.
850 * test/scanner/foo-expected.gir: test that.
852 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
854 Bug 555712: Struct and union issues
856 * giscanner/scannerparser.y (struct_declarator): Use information
857 provided about the bit width of a field.
858 * giscanner/transformer.py (Transformer._create_member): Pass the
859 symbol's const_int member to the created field (it represents the
861 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
862 field attribute, if present.
863 * giscanner/ast.py (Field): Add 'bits' member, specifying the
864 width in bits of the field (only relevant for bitfields).
867 * giscanner/transformer.py (Transformer._create_typedef_struct)
868 (Transformer._create_typedef_union): Add calls to _create_struct()
869 and _create_union(), respectively. This causes the scanner to
870 generate output for fields of struct and union typedefs.
873 2008-10-11 Jürg Billeter <j@bitron.ch>
875 Bug 552370: unsigned not scanned properly
877 * giscanner/scannerparser.y: combine basic types such as unsigned
878 int and long long when scanning
879 * tests/scanner/foo-expected.gir:
880 * tests/scanner/foo.c: (foo_test_unsigned):
881 * tests/scanner/foo.h: test that
883 2008-10-11 Lucas Rocha <lucasr@gnome.org>
885 Bug 554854: The --typelib-xml and --inject options should reuse
886 giscanner parser/writer.
888 * giscanner/ast.py: add constructor list to Struct and Union.
889 Add new param in Return's contructor to define transfer.
890 * giscanner/girparser.py: several additions to the parser in order
891 to have parsing all nodes of the gir xml files.
892 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
893 and writer in --inject and --typelib-xml options.
894 * giscanner/xmlwriter.py: ignore empty attributes instead of
895 raising an error as this basically exposes a bug in GIRParser.
896 This should be reverted as soon as the parser is fixed.
898 2008-10-11 Lucas Rocha <lucasr@gnome.org>
900 Bug 552376: scanner generates wrong names for enum members when
901 there's no defined gtype.
903 * giscanner/utils.py (strip_common_prefix): Always strip common
904 prefix exactly up to the last "_", and not beyond.
905 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
906 here is that the first character after the last '_' should should be
907 the same as the character in the same position on the type name.
908 * tests/scanner/foo-expected.gir: test that
910 2008-10-10 Lucas Rocha <lucasr@gnome.org>
912 Bug 555293: append library_paths to LPATH env variable to work
913 around a bug in find_library when using ldconfig.
915 * tools/g-ir-scanner (main): ditto.
917 2008-10-09 Lucas Rocha <lucasr@gnome.org>
919 * girepository/girepository.c (register_internal): fix regression on
920 invoke test case by making sure we load the global module in the
921 typelib when dealing with inline typelibs.
922 * girepository/gtypelib.c: a couple of coding style fixes.
924 2008-10-06 Lucas Rocha <lucasr@gnome.org>
926 Bug 555294: Add support for multiple shared libraries per typelib.
928 * girepository/ginvoke.c (g_function_info_invoke),
929 girepository/ginfo.c(g_registered_type_info_get_g_type): use
930 g_typelib_symbol instead of g_module_symbol.
931 * girepository/girepository.h: remove g_typelib_set_module and add
933 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
934 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
935 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
936 modules instead of just one. The symbol lookup is now abstracted
937 behind g_typelib_symbol which tries to find the passed symbol name in
939 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
940 and write shared_library attribute as a comma-separated list of libs.
942 2008-10-06 Colin Walters <walters@verbum.org>
944 * giscanner/transformer.py: Parse length= annotation as
945 a parameter name, not a raw int.
948 2008-10-03 Colin Walters <walters@verbum.org>
950 Bug 551744: Non-GObject types aren't aggregating ctors and methods
952 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
954 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
958 2008-10-03 Colin Walters <walters@verbum.org>
960 Bug 554576: scan problem with ev_selection_render_selection()
962 * giscanner/transformer.py: Only do type resolution once we've
963 scanned all types. What could happen before is that we'd strip
964 the namespace from local type "EvSelection" => Selection, and
965 then later pull a "Selection" from some other namespace because
966 we hadn't yet seen the local EvSelection. This could come
967 down to hash table ordering and other things so not easy
970 2008-10-03 Lucas Rocha <lucasr@gnome.org>
972 * giscanner/girwriter.py (_parser_member): fix the last parameter of
973 GLibEnumMember constructor as it should be the enum member nick.
975 2008-10-02 Colin Walters <walters@verbum.org>
977 Bug 552961: remove this parameter for methods
979 * giscanner/glibtransformer.py: Delete this parameter; it is
981 * girepository/ginvoke.c: Insert this parameter for methods.
982 * girepository/gtypelib.c: Remove no longer needed verification of
983 method this parameter.
986 2008-09-30 Dan Winship <danw@gnome.org>
988 Bug 554490: g-ir-scanner gets confused by '\\'
990 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
991 backslashes so it will correctly parse '\\' and "\\"
993 * tests/scanner/annotation.c: add a use of '\\' to make sure that
996 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
998 2008-10-02 Colin Walters <walters@verbum.org>
1000 bug 552393: Note variadic functions
1002 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1003 to use parameter_list directly.
1004 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1005 * giscanner/ast.py: Add Varargs type.
1006 * giscanner/transformer.py: Check for ellipsis symbol, transform
1008 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1009 Parse varargs functions, but filter them out before we start
1010 compiling the typelib.
1012 2008-10-02 Colin Walters <walters@verbum.org>
1014 Bug 554632: type tag for GType
1016 * girepository/girepository.h, girepository/girepository.c:
1017 Add type tag for GType - it's a special type we don't want
1018 to resolve to just "long".
1019 * docs/typelib-format.txt: Update.
1020 * girepository/girparser.c: Parse it.
1021 * giscanner/glibtransformer.py: Ensure we don't put GType in
1023 * tools/generate.c: Remove hardcoded type list.
1026 2008-09-30 Dan Winship <danw@gnome.org>
1028 Bug 554521: scanner generates wrong names for enum members with
1029 full type name prefix
1031 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1032 right amount when the entire "first" string is a prefix of
1035 * tests/scanner/foo.h (FooEnumFullname):
1036 * tests/scanner/foo-expected.gir: test that
1038 2008-09-29 Colin Walters <walters@verbum.org>
1040 Bug 552380: Array parameters should be marked in the gir
1042 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1043 uint8[]. Add Array, List, and Map subclasses of Type;
1044 these types can be generic. Return transfer defaults
1045 to true if return value is string or container type.
1046 Delete Sequence type.
1047 * giscanner/scannerlexer.l: Syntax change for annotations;
1048 use <> since it's more readable.
1049 * giscanner/girwriter.py: Write out these changes.
1050 * giscanner/girparser.py: Parse them.
1051 * giscanner/transformer.py: Have a defined set of
1052 both list and map types. When creating a type,
1053 check if the ctype we've parsed is one of them,
1054 if so create a container type subclass as appropriate.
1055 * girepository/girparser.c: Parse in generic types.
1058 2008-09-27 Colin Walters <walters@verbum.org>
1060 * tools/g-ir-scanner: Add --inject option.
1062 2008-09-25 Colin Walters <walters@verbum.org>
1064 Remove non-repository types from GIR
1066 * giscanner/ast.py: The canonical name is 'utf8', not
1068 * giscanner/glibast.py: A few more glib type mappings.
1069 * girepository/girparser.c: We only parse repository types.
1070 * tests/*.gir: Update.
1072 2008-09-23 Colin Walters <walters@verbum.org>
1074 Bug 552566: Add time_t type
1076 We need a type for time_t since it's special in C, and just
1077 mapping it to long precluded bindings from handling it
1080 2008-09-19 Colin Walters <walters@verbum.org>
1082 Bug 552390: Handle capitialization like "DBus" more robustly
1084 The to_underscores function was designed for use against prefixed
1085 names; we need a separate function which will convert names like
1086 DBusFoo into dbus_foo, not d_bus_foo.
1088 2008-09-19 Colin Walters <walters@verbum.org>
1090 Add check to make sure we're not hitting out unresolved types
1092 Validate the "this" argument for methods
1094 Remove heuristic matching of methods to classes based on prefix
1096 It was a broken hack that dated from when we handled underscoring
1097 and capitalization conventions less well.
1099 2008-09-18 Colin Walters <walters@verbum.org>
1101 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1103 On Darwin, the suffix for installed shared libraries (.dylib) is
1104 different from loadable modules (.so). We use a bit of magic shell
1105 script from Behdad Esfahbod to figure out the right suffix.
1107 2008-09-15 Johan Dahlin <johan@gnome.org>
1109 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1110 a wrapper for type_qualifier as well.
1112 2008-09-15 Colin Walters <walters@verbum.org>
1114 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1116 * giscanner/ast.py: Add deprecation attributes.
1117 * giscanner/girwriter.py: Write out deprecation data.
1118 * girepository/girparser.c: Relax parsing; deprecated
1119 attribute now includes freeform string.
1120 * giscanner/scannerlexer.l: Parse Deprecated.
1121 * giscanner/transformer.py: Look for deprecated attribute
1123 * tests/scanner/*: Add a Deprecated test.
1125 2008-09-14 Tor Lillqvist <tml@novell.com>
1127 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1129 2008-09-14 Colin Walters <walters@verbum.org>
1131 * giscanner/glibtransformer.py: Ignore functions with
1134 2008-09-12 Colin Walters <walters@verbum.org>
1136 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1138 2008-09-12 Colin Walters <walters@verbum.org>
1140 * giscanner/ast.py: Bind pid_t to INT for vte.
1142 2008-09-12 Colin Walters <walters@verbum.org>
1144 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1145 * giscanner/glibast.py: Avoid overwriting ctype.
1146 * giscsanner/transformer.py: Try resolving types using the GType names.
1148 2008-09-12 Colin Walters <walters@verbum.org>
1150 * giscanner/minixpath.py: Code to run an "XPath"
1151 assertion against an XML tree, taken from
1152 gir-repository/gir/tests.py.
1153 * giscanner/Makefile.am: Ship it.
1154 * tools/g-ir-scanner: Add --xpath-assertions option.
1155 * gir/GLib-assertions.txt: Add a few assertions.
1156 * gir/Makefile.am: Run them.
1158 2008-09-11 Colin Walters <walters@verbum.org>
1160 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1162 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1163 prefix if it ends with _. Tweak callback stripping to determine
1164 based on presence of _ whether we need to use strip_namespace_func
1165 or strip_namespace_object.
1167 2008-09-09 Owen Taylor <otaylor@redhat.com>
1169 * docs/typelib-format.txt: Wether => Whether
1171 2008-09-08 Colin Walters <walters@verbum.org>
1173 * girepository/girparser.c: Default to "readable" for properties.
1174 * giscanner/ast.py: Add readable, writable etc.
1175 * giscanner/girwriter.py: Writ them.
1176 * giscanner/glibtransformer.py: Inspect them.
1179 2008-09-07 Colin Walters <walters@verbum.org>
1181 * giscanner/cgobject.py: Add comment.
1183 2008-09-07 Colin Walters <walters@verbum.org>
1185 * giscanner/cgobject.py: Also call g_thread_init.
1187 2008-09-07 Colin Walters <walters@verbum.org>
1189 * giscanner/transformer.py: Fix regression by not
1190 stripping prefix before stripping namespace for unions
1193 2008-09-06 Colin Walters <walters@verbum.org>
1195 * giscanner/transformer.py: If a namespace contains
1196 multiple caps, try stripping both gnomekeyring_ and
1199 2008-09-07 Johan Dahlin <johan@gnome.org>
1201 Bug 551162 – giscanner does not recognize asm and __asm__
1202 * giscanner/scannerlexer.l:
1203 Patch by Jani Monoses.
1205 2008-09-06 Colin Walters <walters@verbum.org>
1207 * girepository/girnode.c: Allow gtype_name
1208 and gtype_init in struct and union.
1209 * girepository/girparser.c: Parse glib:
1210 boxed bits for both structure and union.
1211 * girepository/gtypelib.c: Don't barf
1212 if structure is boxed.
1213 * giscanner/girparser.py: Parse new XML
1215 * giscanner/girwriter.py: Write out new
1217 * giscanner/glibast.py: Define new classes
1218 which are both Boxed and Struct/Union, as
1219 well as an "Other" for everything else.
1220 * giscanner/glibtransformer.py: Handle
1221 boxed types specially; we try to merge
1222 them with a struct/union if one exists,
1223 otherwise fall back to generic boxed.
1225 * tools/generate.c: Write out new format.
1227 2008-09-06 Johan Dahlin <johan@gnome.org>
1229 * giscanner/grealpath.h: Include stdlib.h
1231 * docs/g-ir-generate.1: Remove leading %
1233 2008-09-01 Colin Walters <walters@verbum.org>
1235 * girepository/girparser.c: Look at c:type to determine
1236 whether or not an item is a pointer.
1238 2008-09-01 Johan Dahlin <johan@gnome.org>
1240 * tests/scanner/Makefile.am:
1241 Set PYTHONPATH so the scanner can run
1242 even if you didn't install anything.
1244 2008-09-01 Johan Dahlin <johan@gnome.org>
1247 Post-release version bump
1250 2008-09-01 Johan Dahlin <johan@gnome.org>
1254 2008-08-31 Colin Walters <walters@verbum.org>
1256 * giscanner/glibtransformer.py: Quiet info
1259 2008-08-31 Johan Dahlin <johan@gnome.org>
1262 Bump version to 0.5.0
1264 2008-08-31 Colin Walters <walters@verbum.org>
1266 * giscanner/glibtransformer.py: Follow aliases to ensure
1267 we don't get a constructor returning a basic type.
1268 * giscanner/transformer.py: Add function to follow aliases.
1271 2008-08-31 Johan Dahlin <johan@gnome.org>
1273 * giscanner/scannerlexer.l:
1274 * giscanner/scannerparser.y:
1275 * giscanner/sourcescanner.h:
1276 * giscanner/sourcescanner.py:
1277 Parse GCC extensions in the parser instead of just undeffing them
1278 in the pre-processor.
1280 2008-08-31 Johan Dahlin <johan@gnome.org>
1282 * giscanner/glibtransformer.py:
1283 Clean up a huge if. Do not add methods or constructors
1285 * giscanner/utils.py:
1286 second might be longer than first, check that.
1288 2008-08-31 Johan Dahlin <johan@gnome.org>
1293 2008-08-31 Colin Walters <walters@verbum.org>
1295 * girepository/girparser.c: Don't lose if we
1298 2008-08-31 Colin Walters <walters@verbum.org>
1300 * giscanner/glibtransformer.py: Look for libtool
1301 library in current directory
1302 * tests/scanner - Update.
1304 2008-08-30 Colin Walters <walters@verbum.org>
1306 * docs/typelib-format.txt: Add a guint32
1308 * gir/Makefile.am: Dep on Makefile
1309 * girepository/ginfo.c:
1310 * girepository/girepository.c: Clean up
1311 default typelib handling; remove global
1312 default_typelib variable. Ensure we handle
1313 NULL repository in more places.
1314 Support dependency resolution.
1315 Support lazy loading.
1316 * girepository/girepository.h: Remove
1317 g_irepository_unregister; we don't support
1318 unloading typelibs since really they're
1319 process-global. Update for lazy loading
1321 * girepository/girmodule.c: Use g_new0.
1322 Add dependencies to GirModule.
1323 * girepository/girparser.c: Parse dependencies.
1324 * girepository/gtypelib.c: Add 4 bytes for
1326 * tests/Makefile.am: Kill off gobject.gir,
1327 it conflicts with the real one.
1328 * tests/object.gir: Dep on GObject.
1329 * tools/generate.c: Take --includedir
1330 argument to say which directories to search
1331 for typelibs. Print out dependencies.
1333 2008-08-30 Colin Walters <walters@verbum.org>
1335 * giscanner/glibtransformer.py: Reduce warning noise.
1337 2008-08-29 Colin Walters <walters@verbum.org>
1339 * girepository/ginfo.c: Add some assertions regarding
1340 refcounts, just to be sure.
1341 * giscanner/glibtransformer.py: Blacklist a few more
1344 2008-08-29 Colin Walters <walters@verbum.org>
1346 * giscanner/glibtransformer.py: Blacklist a few
1347 functions that use GError oddly
1349 2008-08-29 Colin Walters <walters@verbum.org>
1351 * girepository/gtypelib.c: Don't crash if no
1354 2008-08-29 Colin Walters <walters@verbum.org>
1356 * girepository/girparser.c: Handle chains of aliases
1357 across modules by ensuring we fully qualify aliases
1360 2008-08-29 Colin Walters <walters@verbum.org>
1362 * girepository/girparser.c: Don't search aliases
1365 2008-08-29 Colin Walters <walters@verbum.org>
1367 * girepository/girparser.c: Rewrite type parsing
1368 to handle both GLib parsing case as well as correctly
1369 handling GLib.List and friends. Don't try to treat
1370 e.g. ListStore as a List.
1372 2008-08-29 Colin Walters <walters@verbum.org>
1374 * girepository/gtypelib.c: Add more context
1377 2008-08-29 Colin Walters <walters@verbum.org>
1379 * giscanner/glibtransformer.py: Add some informative
1380 logging messages in corner cases. Be sure we use
1381 the most recent node set instead of a cache
1382 when generating result set.
1383 * tests/: Remove duplicated bits in expected girs
1384 * girepository/girparser.c: Accept both List (for
1385 compiling GLib) and GLib.List (what the scanner
1388 * tools/generate.c: Generate canonical form.
1390 2008-08-29 Johan Dahlin <johan@gnome.org>
1392 * giscanner/config.py.in:
1393 Use datarootdir instead of datadir to avoid
1394 an autoconf warning.
1396 2008-08-29 Johan Dahlin <johan@gnome.org>
1400 * examples/gdk-pixbuf.gidl:
1402 Update and remove old cruft.
1404 2008-08-29 Johan Dahlin <johan@gnome.org>
1407 * docs/g-ir-compiler.1:
1408 * docs/g-ir-generate.1:
1409 * docs/g-ir-scanner.1:
1410 Add man pages for the generator and compiler.
1412 2008-08-29 Johan Dahlin <johan@gnome.org>
1414 * docs/g-ir-scanner.1: Document
1416 * giscanner/Makefile.am:
1417 * giscanner/gidlparser.py:
1418 * giscanner/gidlwriter.py:
1419 * tools/g-ir-scanner:
1420 Remove gidl support.
1422 2008-08-28 Colin Walters <walters@verbum.org>
1424 * tests/scanner/Makefile.am: Pass the right
1425 --includedir args. Add a Makefile dep.
1426 * tools/compiler.c: Pass includedirs down.
1427 * girepository/girparser.c: Actually put
1428 includedirs in context, pass down. Fix
1431 2008-08-28 Colin Walters <walters@verbum.org>
1433 * gir/Makefile.am: Use --includedir
1434 * girepository/girparser.c: Recursively parse
1435 includes to pull in aliases and expand them.
1436 We need this to avoid putting unknown names in
1438 * tools/compiler.c: Add --includedir option.
1439 * giscanner/ast.py: Map size/ssize to types
1442 2008-08-28 Tor Lillqvist <tml@novell.com>
1444 Make check now runs successfully on Windows.
1446 * tools/compiler.c (write_out_typelib): Use binary mode for output
1449 * girepository/girnode.c: Don't print NULL strings.
1451 * tests/invoke/Makefile.am
1452 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
1453 convince libtool to build shared libraries.
1455 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
1456 g_assert() instead of printing out expected errors.
1458 2008-08-28 Tor Lillqvist <tml@novell.com>
1460 * girepository/gtypelib.h: Change type of bitfield fields from
1461 guint to the most suitable smaller type. This makes the struct
1462 sizes match the ones on Linux that the sanity check expects when
1463 using gcc -mms-bitfields on Windows.
1465 2008-08-28 Johan Dahlin <johan@gnome.org>
1470 * giscanner/Makefile.am:
1471 * tests/Makefile.am:
1472 * tests/scanner/Makefile.am:
1473 Make distcheck pass.
1475 2008-08-27 Johan Dahlin <johan@gnome.org>
1477 * giscanner/Makefile.am:
1478 Only send in -no-undefined on Win32 as it breaks on MacOS X.
1480 2008-08-27 Tor Lillqvist <tml@novell.com>
1482 Make g-ir-scanner work on Windows. Still problems with the typelib
1483 code. Changes okayed by jdahlin.
1485 * configure.ac: Check for Windows, set Automake conditional
1486 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
1487 avoid shell quoting issues
1489 * girepository/Makefile.am: Use -no-undefined so that libtool
1490 agrees to build a shared library on Windows.
1492 * girepository/girparser.c (backtrace_stderr): No backtrace() on
1493 Windows. Empty implementation on Windows so far.
1495 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
1496 informative error message for the assertion failures. Tell also
1497 what the expected size of the struct is. Check all sizes first and
1498 fail afterwards if at least one size was different from expected.
1500 * tools/Makefile.am: Reorder libraries into proper logical
1503 * tools/generate.c: Don't include <dlfcn.h>, not used.
1505 * giscanner/Makefile.am: On Windows, link with the Python library,
1506 and install the module DLL as _giscanner.pyd. Remove the
1507 unnecessary import library and libtool library that libtool has
1510 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
1511 and just skip it. Recognize also two "l" suffixes for long long
1512 constants. Recognize also __inline__.
1514 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
1515 GetFullPathName(). As such, GetFullPathName() does more than the
1516 UNIX realpath(). It also changes relative paths into absolute
1517 paths. But for our purposes that shouldn't matter.
1519 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
1520 Windows the file descriptor passed to us is from Python. Python
1521 Python2.5 uses the msvcr71.dll C library, while mingw-built code
1522 uses msvcrt.dll. On Windows, file descriptors are specific to
1523 which C library is used. So we must find out what underlying OS
1524 handle corresponds to the file descriptor Python passes us, and
1525 then make that into a file descriptor valid for the C library this
1528 * giscanner/sourcescanner.py (_parse): Don't need to bypass
1529 __attribute__ as the lexer now handles it. The definition as empty
1530 was ineffective for mingw anyway, as mingw's _mingw.h undefines
1531 __attribute__. Close the temp file before unlinking it.
1533 * giscanner/cgobject.py: Use correct library name for the gobject
1536 * gir/Makefile.am: Must pass the full basename of the DLLs on
1537 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
1538 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
1539 reality they won't change, until there is a GLib 3, and then also
1540 the Unix code here needs changing.
1542 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
1545 2008-08-26 Colin Walters <walters@verbum.org>
1547 * girepository/girepository.c: Search
1548 $DATADIR/girepository instead of
1549 $DATADIR/gitypelibs; this naming makes
1550 it clearer that e.g. jgir can install
1552 * gir/Makefile.am: Install there.
1554 2008-08-26 Colin Walters <walters@verbum.org>
1556 * girepository/gtypelib.c (_g_typelib_init): Also
1557 use G_MODULE_SUFFIX instead of hardcoding .so.
1559 2008-08-26 Colin Walters <walters@verbum.org>
1561 * girepository/gtypelib.c (_g_typelib_init): Free
1562 string in the right place.
1564 2008-08-26 Colin Walters <walters@verbum.org>
1566 * girepository/gtypelib.c (_g_typelib_init): Handle
1567 both .la and .so names; this works better in the
1568 uninstalled library case.
1570 2008-08-26 Johan Dahlin <johan@gnome.org>
1573 * giscanner/Makefile.am:
1574 * giscanner/cgobject.py:
1575 * giscanner/config.py.in:
1576 * giscanner/sourcescanner.py:
1577 Avoid undeffing __GNUC__, instead define
1578 __attribute__ & friends. Remove glibconfig.h hack.
1579 This makes gobject-introspection work better on
1580 MacOS X, Thanks to Richard Hult for kind help.
1582 2008-08-25 Colin Walters <walters@verbum.org>
1584 * giscanner/glibtransformer.py: Always print
1587 2008-08-25 Colin Walters <walters@verbum.org>
1589 * giscanner/glibtransformer.py: Skip over
1590 interfaces we don't know.
1592 2008-08-25 Colin Walters <walters@verbum.org>
1594 * girepository/girparser.c: Parse new implements
1595 syntax, drop gapi one.
1596 * tests/object.gir: Update.
1597 * tools/generate.c: Generate new syntax.
1599 2008-08-25 Colin Walters <walters@verbum.org>
1601 * giscanner/ast.py: Add interfaces property
1603 * giscanner/girwriter.py: Write out implemented
1605 * giscanner/glibtransformer.py: Introspect
1606 implemented interfaces.
1607 * tests/scanner/*: Make FooObject implement
1610 2008-08-25 Colin Walters <walters@verbum.org>
1612 * giscanner/glibtransformer.py: More correctly pair
1613 methods; if we have a symbol that starts with
1614 e.g. hippo_canvas look for a matching HippoCanvas
1615 class before accepting e.g. HippoCanvasImage.
1617 2008-08-24 Colin Walters <walters@verbum.org>
1619 * tools/g-ir-scanner: Filter out unknown options from
1622 2008-08-24 Colin Walters <walters@verbum.org>
1624 * giscanner/glibtransformer.py: Fail with better
1625 error if we can't find library.
1627 2008-08-24 Colin Walters <walters@verbum.org>
1629 * tools/g-ir-scanner: Use subprocess instead of
1630 commands, works on Windows and avoids the evil
1633 2008-08-24 Colin Walters <walters@verbum.org>
1635 * giscanner/glibtransformer.py: Skip over
1636 g_object_get_type from GLib trunk.
1638 2008-08-24 Colin Walters <walters@verbum.org>
1640 * girepository/girepository.c (g_irepository_require):
1641 Don't open shared library here; we already do it
1644 2008-08-24 Colin Walters <walters@verbum.org>
1646 * girepository/gtypelib.c: Add context stack so
1647 when we get an error we can print out nicely
1650 2008-08-24 Johan Dahlin <johan@gnome.org>
1652 * girepository/girparser.c (start_glib_boxed), (start_function),
1653 (start_field), (start_alias):
1654 Refactor a couple of parsing functions to be simpler to follow.
1657 2008-08-24 Johan Dahlin <johan@gnome.org>
1659 * girepository/girparser.c (start_function):
1660 Remove left-over code, checking type of function.
1662 2008-08-23 Colin Walters <walters@verbum.org>
1664 * giscanner/config.py: Define DATADIR.
1665 * giscanner/transformer.py: Look in DATADIR.
1667 2008-08-23 Colin Walters <walters@verbum.org>
1669 * girepository/gtypelib.c: Check constructor
1671 * girepository/girnode.c: Small tweaks.
1672 * girepository/ginfo.c: Calculate signature offsets
1674 * girepository/girparser.c: Remove duplicate
1676 * giscanner/glibtransformer.py: Avoid marking
1677 functions which return a basic type as
1680 2008-08-23 Colin Walters <walters@verbum.org>
1682 * girepository/girparser.c: Ignore <include>.
1683 * giscanner/girparser.py: Parse them.
1684 * giscanner/girwriter.py: Generate them.
1685 * giscanner/transformer.py: Process <include>
1686 recursively. Don't require full path for
1687 includes, look in {$XDG_DATA_DIRS}/gir.
1688 * tools/g-ir-scanner: Pass through includes.
1689 * Makefile.am: Remove extra --include
1691 * *-expected.gir: Add expected includes.
1693 2008-08-23 Johan Dahlin <johan@gnome.org>
1695 * tests/scanner/Makefile.am:
1696 * tests/scanner/annotation-expected.gir:
1697 * tests/scanner/drawable-expected.gir:
1698 Avoid duplication in the Makefile, regenerate with new
1699 namespaces (same as the filename)
1701 2008-08-22 Colin Walters <walters@verbum.org>
1703 * girepository/girnode.c: Don't hardcode integers,
1706 2008-08-22 Johan Dahlin <johan@gnome.org>
1708 * giscanner/sourcescanner.py:
1709 Check for ../gobject-introspection-1.0.pc.in to determine
1710 if we run installed or uninstalled.
1712 2008-08-22 Johan Dahlin <johan@gnome.org>
1715 * giscanner/sourcescanner.py:
1716 Send in undefs/defines via writing it directly to stdin
1717 of cpp instead of via arguments.
1719 2008-08-22 Colin Walters <walters@verbum.org>
1721 * tools/generate.c, tools/compiler.c: Default
1723 * all Makefile.am: Update.
1725 2008-08-22 Colin Walters <walters@verbum.org>
1727 * girepository/girparser.c: Pass through
1728 recursive types. Avoid overwriting errors.
1729 * giscanner/xmlwriter.py: Always write the
1731 * tests/*.gir: Adjust.
1732 * tests/scanner/Makefile.am: Build typelibs,
1733 and generate XML from those. Once we
1734 have a good diff mechanism...
1735 * tests/scanner/*-expected.gir: Add XML
1737 * tools/g-ir-scanner: Accept --typelib-xml
1739 * tools/generate.c: Better defaults for transfer.
1741 2008-08-22 Johan Dahlin <johan@gnome.org>
1745 * giscanner/Makefile.am:
1746 * giscanner/config.py.in:
1747 * giscanner/sourcescanner.py:
1748 Use the generated glibconfig.h for all scanner invokations.
1749 Rename it to glibconfig-scanner.h and install it.
1750 Add a config.py which so far contains the include dir.
1752 2008-08-22 Johan Dahlin <johan@gnome.org>
1755 Replace glibconfig.h with our own, do some replacement
1756 for CPP/C features we do not support
1758 2008-08-22 Colin Walters <walters@verbum.org>
1760 * tools/generate.c (write_callable_info): Fix unref
1763 2008-08-22 Colin Walters <walters@verbum.org>
1765 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
1766 * tests/Makefile.am: Support $(DEBUG)
1767 * tools/generate.c: Do immediate close tags if no
1770 2008-08-21 Colin Walters <walters@verbum.org>
1772 * tests/scanner/drawable-expected.gir,
1773 * tests/scanner/drawable.c,
1774 * tests/scanner/drawable.h:
1777 2008-08-21 Colin Walters <walters@verbum.org>
1779 * giscanner/glibtransformer.py: Compute prefix
1780 by searching through the symbol for bits
1781 rather than going directly from ctype; this fixes
1784 2008-08-21 Colin Walters <walters@verbum.org>
1786 * giscanner/glibtransformer.py: Also try squashing
1787 underscores from namespace, fixes webkit_web_view_new.
1789 2008-08-21 Colin Walters <walters@verbum.org>
1791 * giscanner/glibtransformer.py: More ctor work,
1792 avoid having gtk_window_group_new end up under
1795 2008-08-21 Colin Walters <walters@verbum.org>
1797 * giscanner/glibtransformer.py: Much simpler approach
1798 of mapping uscored names to classes.
1799 * giscanner/utils.py: Remove unnecessary function.
1801 2008-08-21 Johan Dahlin <johan@gnome.org>
1803 * girepository/girepository.c (g_irepository_require):
1804 Plug memory leak and avoid using freed memory.
1805 Resolve the whole module path, here as well.
1807 2008-08-21 Colin Walters <walters@verbum.org>
1809 * giscanner/glibtransformer.py: Look up all permutations
1810 of class names when scanning methods/ctors based on
1811 the prefix instead of using the return value. This
1812 associates gtk_window_new with the right class.
1814 2008-08-21 Colin Walters <walters@verbum.org>
1816 * girepository/girmodule.c (g_ir_module_build_typelib):
1817 Revert change to increment header_size; we do that in
1820 2008-08-21 Colin Walters <walters@verbum.org>
1822 * girepository/girnode.c (write_string): Tweak to
1823 use UINT instead of INT. Not likely to matter.
1824 * girepository/girmodule.c (g_ir_module_build_typelib):
1825 Add to header_offset as well for header strings
1826 to match what write_string does.
1827 * girepository/gtypelib.c: Replace is_name with
1828 validate_name, which more strongly validates and
1829 handles errors in a better way. Update all callers.
1830 * giscanner/glibtransformer.py: Handle constructors
1833 2008-08-21 Johan Dahlin <johan@gnome.org>
1835 * gir/Makefile.am (typelibs_DATA): Build and
1836 install the Gio.typelib too
1838 * girepository/gtypelib.c (_g_typelib_init):
1839 Use g_module_build_path to resolve the shlib name
1841 2008-08-21 Colin Walters <walters@verbum.org>
1843 * gir/Makefile.am: CLEANFILES typelibs too.
1845 2008-08-21 Johan Dahlin <johan@gnome.org>
1847 * giscanner/glibtransformer.py:
1848 Do not send .la files through find_library.
1850 2008-08-21 Colin Walters <walters@verbum.org>
1852 * girepository/girparser.c (g_irepository_require):
1853 Fix one small leak in error case.
1855 2008-08-21 Johan Dahlin <johan@gnome.org>
1858 Parse glibconfig.h as well and install the compiled
1861 2008-08-21 Johan Dahlin <johan@gnome.org>
1864 * giscanner/glibtransformer.py:
1865 * tools/g-ir-scanner:
1866 Do not hard-core library names in the Makefile, reuse
1867 ctypes find_library instead.
1869 2008-08-21 Johan Dahlin <johan@gnome.org>
1871 * girepository/girparser.c (resolve_aliases):
1872 Remove compilation warnings
1874 2008-08-21 Johan Dahlin <johan@gnome.org>
1876 * girepository/girepository.c (g_irepository_require):
1877 Rewrap and fix double free bug by leaking a bit.
1879 2008-08-20 Colin Walters <walters@verbum.org>
1881 * girepository/girepository.c: Add new function
1882 g_irepository_get_typelib_path which tells
1883 us from where we loaded a namespace.
1885 2008-08-20 Colin Walters <walters@verbum.org>
1887 * tests/scanner/*-expected.gir: Adjust for
1888 added shared-library.
1889 * giscanner/giwriter.py: Make pylint happy.
1891 2008-08-20 Colin Walters <walters@verbum.org>
1893 * girepository/girmodule.c (g_ir_module_build_typelib):
1894 Calculate size correctly, avoid use-after-free.
1896 2008-08-20 Colin Walters <walters@verbum.org>
1898 * girepository/girepository.c: Remove
1899 g_irepository_register_file in favor of
1900 g_irepository_require. There are two
1901 possible deployment scenarios for typelibs:
1902 First, separate in $DATADIR/gitypelibs/. Second,
1903 they may be embedded in shlibs. However since
1904 the first is now the normal case, the API is
1905 optimized around it.
1907 Refactor internals to look up typelibs for
1908 namespaces just-in-time, but we expect
1909 consumers to call g_irepository_require.
1911 Also, add some docs. No one has died from that
1913 * gir/Makefile.am: Need --library for glib.
1914 * giscanner/girwriter.py: Write out shared-library.
1915 * tools/g-ir-writer: Take the first --library
1916 argument as the target of shared-library. In
1917 the future we should make this nicer with pkg-config
1920 2008-08-20 Colin Walters <walters@verbum.org>
1922 * girepository/girparser.py: And parse them.
1924 2008-08-20 Johan Dahlin <johan@gnome.org>
1926 * giscanner/glibast.py: Add gshort/gushort types
1928 2008-08-20 Colin Walters <walters@verbum.org>
1930 * gir/Makefile.am: Rename .gir files using GI namespace.
1931 * girepository/girepository.c: Use XDG_DATA_DIRS for
1932 looking up typelibs. Also typelibs are now suffixed
1934 * tests/invoke/Makefile.am: Only use metadata.
1935 * girepository/Makefile.am: Remove unnecessary include.
1936 * tests/scanner/Makefile.am: Update using GI namespaces
1937 for scanner includes.
1939 2008-08-20 Colin Walters <walters@verbum.org>
1941 * girepository/transformer.py: Suppress aliases whose
1943 * girepository/ast.py: Define some more aliases.
1945 2008-08-20 Colin Walters <walters@verbum.org>
1947 * girepository/girparser.c: Avoid alias infloops.
1949 2008-08-20 Colin Walters <walters@verbum.org>
1951 * tests/scanner/foo-expected.gir: Fix expected list type.
1953 2008-08-20 Johan Dahlin <johan@gnome.org>
1955 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
1956 Add a workaround for #548689.
1957 We can now compile gtk!
1959 2008-08-20 Colin Walters <walters@verbum.org>
1961 * giscanner/glibtransformer.py: Try to look up
1962 aliases using the c:type too.
1964 2008-08-20 Colin Walters <walters@verbum.org>
1966 * girepository/girparser.c: Parse union fields.
1968 2008-08-20 Johan Dahlin <johan@gnome.org>
1970 * giscanner/ast.py: Make time_t an alias for long
1972 * gir/gio-2.0-good.gir:
1973 * gir/glib-2.0-good.gir:
1974 * gir/gobject-2.0-good.gir:
1976 * giscanner/glibtransformer.py:
1977 Do not delete Class structures, we need them in gdk/gtk.
1978 * tests/scanner/drawable-expected.gir:
1979 * tests/scanner/foo-expected.gir:
1980 * tests/scanner/utility-expected.gir:
1983 2008-08-20 Johan Dahlin <johan@gnome.org>
1985 * tests/scanner/Makefile.am:
1986 * tests/scanner/annotation-expected.gir:
1987 * tests/scanner/annotation.c (annotation_object_class_init),
1988 (annotation_object_init), (annotation_object_method),
1989 (annotation_object_in), (annotation_object_out),
1990 (annotation_object_inout), (annotation_object_inout2),
1991 (annotation_object_inout3), (annotation_object_calleeowns),
1992 (annotation_object_calleesowns), (annotation_object_get_strings),
1993 (annotation_object_with_voidp), (annotation_object_get_objects),
1994 (annotation_object_create_object), (annotation_object_allow_none):
1995 * tests/scanner/annotation.h:
1996 * tests/scanner/foo-expected.gir:
1997 * tests/scanner/foo.c:
1998 * tests/scanner/foo.h:
1999 Split out annotation tests out of foo
2001 2008-08-20 Johan Dahlin <johan@gnome.org>
2003 * tests/scanner/Foo-expected.gir:
2004 * tests/scanner/Makefile.am:
2005 * tests/scanner/foo-expected.gir:
2006 * tests/scanner/foo-object.h:
2007 * tests/scanner/foo.c:
2008 Foo->foo, foo-object.h -> foo.h
2010 2008-08-20 Johan Dahlin <johan@gnome.org>
2012 * tests/scanner/Foo-expected.gir:
2013 * tests/scanner/Makefile.am:
2014 * tests/scanner/drawable-expected.gir:
2015 * tests/scanner/drawable.c (test_drawable_class_init),
2016 (test_drawable_init):
2017 * tests/scanner/drawable.h:
2018 * tests/scanner/foo-object.h:
2019 * tests/scanner/foo.c (foo_boxed_method):
2020 Move the drawable parts out of Foo to its own test.
2022 2008-08-20 Johan Dahlin <johan@gnome.org>
2024 * tests/scanner/Foo-expected.gir:
2025 * tests/scanner/foo-object.h:
2026 * tests/scanner/foo.c (foo_drawable_class_init),
2027 (foo_drawable_init):
2028 Add a based on GdkDrawable which generates
2031 2008-08-19 Colin Walters <walters@verbum.org>
2033 * giscanner/transformer.py: Don't try
2034 to strip prefix before namespace.
2036 2008-08-19 Johan Dahlin <johan@gnome.org>
2038 * giscanner/transformer.py:
2039 * tests/scanner/Foo-expected.gir:
2040 * tests/scanner/foo-object.h:
2041 Add support for typedef void foo type of
2044 2008-08-19 Johan Dahlin <johan@gnome.org>
2047 * giscanner/girwriter.py:
2048 * giscanner/glibtransformer.py:
2049 * giscanner/transformer.py:
2050 * tests/scanner/Foo-expected.gir:
2051 Add basic support for union, base the code much
2052 on Struct. Add a testcase.
2054 2008-08-19 Johan Dahlin <johan@gnome.org>
2056 * tests/scanner/Foo-expected.gir:
2057 * tests/scanner/foo-object.h:
2058 Add a union testcase which the compiler currently
2061 2008-08-19 Johan Dahlin <johan@gnome.org>
2063 * gobject-introspection-1.0.pc.in:
2064 Add a g_ir_compiler variable
2066 2008-08-19 Colin Walters <walters@verbum.org>
2068 * giscanner/ast.py: Rework types to be more closely
2070 * giscanner/girparser.py: Parse more bits.
2071 * giscanner/girwriter.py: Write sequences in a new
2072 way that specifies container type.
2073 * giscanner/glibast.py: Adjust for ast.py changes,
2074 add 'ctype' property to GLibObject and GLibInterface
2075 so we can look things up by it later.
2076 * gicanner/transformer.py: Names is new class holding
2077 the various namespaces we manage. Do not confuse
2078 with Namespace which is toplevel XML node effectively.
2079 Rework all type resolution to go through
2080 _resolve_type_name_1.
2081 * giscanner/glibtransformer.py: Raise UnknownTypeError
2082 instead of ValueError for cleanliness. Add Unresolved
2083 class to mark types whose parent we haven't seen yet.
2084 Use new Names object from transformer.py.
2085 Correctly look up parent=.
2086 Fix type validation to handle sequences.
2087 * tests/scanner/Foo-expected.gir: Update for sequence
2088 work, int instead of int32.
2089 * tools/g-ir-scanner: Add --noclosure option
2090 * gir/Makefile.am: Use --noclosure by default for
2093 2008-08-18 Johan Dahlin <johan@gnome.org>
2095 * gir/gio-2.0-good.gir:
2096 * gir/glib-2.0-good.gir:
2097 * gir/gobject-2.0-good.gir:
2100 2008-08-18 Johan Dahlin <johan@gnome.org>
2103 * giscanner/girparser.py:
2104 * giscanner/girwriter.py:
2105 * giscanner/glibast.py:
2106 * giscanner/glibtransformer.py:
2107 * giscanner/transformer.py:
2108 * tests/scanner/Foo-expected.gir:
2109 * tests/scanner/foo-object.h:
2110 * tests/scanner/utility-expected.gir:
2111 * tests/scanner/utility.h:
2112 Redo type resolving and validation.
2113 Add a couple of new tests.
2114 Patch mostly written by Colin.
2116 2008-08-18 Johan Dahlin <johan@gnome.org>
2119 * giscanner/girparser.py:
2121 * giscanner/transformer.py:
2122 Improve enum parsing for enums without a GType.
2123 Make flags/enum references to other girs work
2124 * giscanner/utils.py:
2126 * tests/scanner/Makefile.am:
2127 * tests/scanner/foo-object.h:
2128 * tests/scanner/utility-expected.gir:
2129 * tests/scanner/utility.h:
2130 Add a new test for external enum references
2132 2008-08-18 Johan Dahlin <johan@gnome.org>
2134 * docs/global-module-registry.txt: Update
2136 * tests/array.gir: Update with new type proposal
2138 * girepository/girepository.c (g_type_tag_to_string):
2139 * girepository/girepository.h:
2140 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2142 * girepository/girnode.h:
2143 Make enum serializing functions public. Clean up some whitespace.
2145 2008-08-17 Johan Dahlin <johan@gnome.org>
2147 * docs/global-module-registry.txt:
2148 Add a document for an on disk module registry format
2150 2008-08-17 Johan Dahlin <johan@gnome.org>
2153 * gir/gio-2.0-good.gir:
2156 2008-08-17 Johan Dahlin <johan@gnome.org>
2159 * gir/glib-2.0-good.gir:
2160 * gir/gobject-2.0-good.gir:
2161 * giscanner/cgobject.py:
2162 * giscanner/glibtransformer.py:
2163 Regenerate GObject & GType.
2164 Avoid warnings when generating gobject-2.0.gir.
2165 Introspect a little more, and skip *_get_type functions.
2167 2008-08-17 Colin Walters <walters@verbum.org>
2169 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2170 Rename to -good, always generate during build.
2171 * gir/Makefile.am: Ensure .gir files dep on
2172 all scanner sources.
2173 * Makefile.am: Switch build order to ensure
2174 the scanner is ready before we do gir/.
2175 * tools/g-ir-scanner: Look for .git too.
2177 2008-08-17 Johan Dahlin <johan@gnome.org>
2179 * girepository/gtypelib.c (validate_enum_blob):
2180 * giscanner/glibtransformer.py:
2181 * giscanner/transformer.py:
2182 Remove resolve_possible_typedefs, it was unused.
2183 Allow multiple enum values of the sample value in an enum,
2184 since it's actually pretty common.
2185 Register enums so they can be resolved too.
2187 2008-08-16 Johan Dahlin <johan@gnome.org>
2189 * giscanner/girparser.py:
2190 Parse enumeration/bitfield.
2192 2008-08-16 Johan Dahlin <johan@gnome.org>
2194 * giscanner/girparser.py:
2197 2008-08-16 Johan Dahlin <johan@gnome.org>
2199 * giscanner/glibtransformer.py:
2200 Resolve type names for alias targets
2201 * giscanner/transformer.py:
2202 Skip FILE* parameters fow now
2204 2008-08-16 Johan Dahlin <johan@gnome.org>
2207 * gir/gobject-2.0.gir:
2210 * tests/scanner/Makefile.am:
2213 2008-08-15 Colin Walters <walters@verbum.org>
2215 * giscanner/glibtransformer.py: Explicitly construct
2216 new list, since we're deleting as we iterate.
2217 Don't delete all structures which end in Class; just
2218 ones which have a paired GObject.
2219 Fix printing of type warning.
2220 * giscanner/transformer.py: Make strip_namespace_object
2221 be the identity function if it doesn't match the
2224 2008-08-15 Colin Walters <walters@verbum.org>
2226 * giscanner/cgobject.py: Define yet more argument
2227 prototypes; fix prototype for g_type_fundamental.
2229 2008-08-14 Johan Dahlin <johan@gnome.org>
2231 * tests/Makefile.am:
2232 * tests/constant.gir:
2233 * tests/gobject.gir:
2235 * tools/generate.c (write_struct_info):
2236 Fix generator for constant/gobject/struct
2238 2008-08-14 Johan Dahlin <johan@gnome.org>
2240 * tests/Makefile.am:
2242 * tools/generate.c (write_enum_info):
2243 Fix generation of enum/bitfields
2245 2008-08-14 Johan Dahlin <johan@gnome.org>
2247 * girepository/girparser.c (start_field), (start_constant),
2248 (start_type), (end_element_handler):
2249 Clear up constant parsing
2254 * tools/generate.c (write_callable_info), (write_function_info),
2255 (write_callback_info), (write_constant_info), (write_signal_info),
2256 (write_vfunc_info), (write_property_info), (write_object_info),
2257 (write_interface_info):
2258 Constants/Signals are handled now.
2260 2008-08-14 Johan Dahlin <johan@gnome.org>
2262 * girepository/girparser.c (start_type):
2263 Don't require c:type.
2264 * tests/Makefile.am:
2267 Update, remove parts we don't support yet
2268 * tests/roundtrips.sh:
2270 * tools/generate.c (write_type_info), (write_field_info),
2271 (write_callable_info), (write_struct_info):
2272 Make it emit proper gir.
2274 2008-08-14 Johan Dahlin <johan@gnome.org>
2276 * giscanner/transformer.py:
2277 New internal function for adding a new node.
2279 2008-08-14 Johan Dahlin <johan@gnome.org>
2282 Define an internal _H_ variable so we skip parsing both
2283 i18n headers, only one is needed.
2285 Add the glib-2.0.gir too.
2286 * giscanner/glibast.py:
2287 Add gconstpointer as an alias for ANY
2288 * giscanner/transformer.py:
2289 Do not lower case enumeration names per se.
2290 Skip functions which has parameters called 'va_list'
2292 2008-08-14 Colin Walters <walters@verbum.org>
2294 * giscanner/transformer.py: Comment data structures.
2295 Also squash pointers in resolve_type_name to correspond
2296 with what we do for params.
2297 * giscanner/glibtransformer.py: Print warnings in more
2298 situations. Rework checks for method/constructor to
2299 look up in our GType database instead of just checking
2300 for *. Avoid generating <record> for GObject which
2301 duplicate the <class>.
2302 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2305 2008-08-14 Johan Dahlin <johan@gnome.org>
2307 * giscanner/girwriter.py:
2308 * giscanner/glibast.py:
2309 * giscanner/glibtransformer.py:
2310 * giscanner/transformer.py:
2312 * tests/Makefile.am:
2313 Add pyflakes.py and run it in make check.
2314 Update the source code to fix the errors reported by
2317 2008-08-14 Johan Dahlin <johan@gnome.org>
2320 * giscanner/girparser.py:
2321 * giscanner/glibast.py:
2322 * giscanner/glibtransformer.py:
2323 Refactor the parser a bit.
2324 Add parent type to interfaces and update callsites.
2326 2008-08-14 Johan Dahlin <johan@gnome.org>
2328 * giscanner/glibtransformer.py:
2329 * giscanner/utils.py:
2330 Refactor a bit, avoid isinstance and add a method
2331 for each type we parse.
2333 2008-08-14 Johan Dahlin <johan@gnome.org>
2336 * giscanner/girparser.py:
2337 * giscanner/glibtransformer.py:
2338 * tests/Makefile.am:
2339 Run pep8.py in make check, fix old errors.
2341 2008-08-13 Colin Walters <walters@verbum.org>
2343 * giscanner/girparser.py: Parse records.
2345 2008-08-13 Colin Walters <walters@verbum.org>
2347 * gir/Makefile.am: Install again.
2348 * gir/gobject-2.0.gir: Add some more bits.
2350 2008-08-13 Colin Walters <walters@verbum.org>
2352 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2353 * giscanner/girparser.py: Handle aliases.
2354 * giscanner/transformer.py: Record aliases. Make resolver
2355 functions public; we now call into these explicitly from
2356 glibtransformer. Handle resolving aliases.
2357 * giscanner/glibtransformer.py: Separate our internal namespace
2358 from included ones. Call up into transformer's resolver functions.
2360 2008-08-13 Johan Dahlin <johan@gnome.org>
2362 * girepository/girnode.c (g_ir_node_get_full_size_internal):
2363 * girepository/girparser.c (start_class):
2364 * giscanner/glibtransformer.py:
2365 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
2367 2008-08-13 Johan Dahlin <johan@gnome.org>
2369 * giscanner/cgobject.py:
2370 Register GInitiallyUnowned
2371 * giscanner/girwriter.py:
2372 * giscanner/glibtransformer.py:
2373 Special case GObject/GInitially owned as they are a bit special to use.
2375 2008-08-13 Colin Walters <walters@verbum.org>
2377 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
2378 Object is in GObject namespace.
2380 2008-08-13 Colin Walters <walters@verbum.org>
2382 * giscanner/girparser.py: Fix processing of functions
2385 2008-08-13 Colin Walters <walters@verbum.org>
2387 * giscanner/girparser.py: Parse more than just <class.
2388 * giscanner/glibtransformer.py: Put aliases in a separate
2389 data structure since their name is not canonicall.
2390 * giscanner/transformer.py: Handle resolving type names
2393 2008-08-13 Johan Dahlin <johan@gnome.org>
2395 * tools/g-ir-scanner:
2396 Allow multiple libraries
2397 * giscanner/glibtransformer.py:
2398 Rename load_library to add_library, traverse over all libraries
2399 when trying to resolve a function
2401 2008-08-12 Colin Walters <walters@verbum.org>
2403 * giscanner/transformer.py: Record typedefs as <alias> elements.
2404 Also attempt to look up types in external namespaces.
2405 * giscanner/girwriter.py: Write them.
2406 * giscanner/glibtransformer.py: Rework resolver using real instanceof
2407 checks. Resolve interface methods and properties.
2408 * tests/scanner/foo-object.h: Add a method with typedef.
2409 * tests/scanner/Foo-expected.gir: Update.
2410 * girepository/girnode.c: Debug tweaks.
2411 * girepository/girparser.c: Make a first pass through the XML where we
2412 record all the aliases. This lets us resolve them as we go through the
2414 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
2415 from gir-repository.
2417 2008-08-12 Colin Walters <walters@verbum.org>
2419 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
2420 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
2422 * giscanner/transformer.py: Record typedefs and expose public API for resolving
2424 * tests/scanner/Foo-expected.gir: Fix expected callback types.
2426 2008-08-12 Colin Walters <walters@verbum.org>
2428 * giscanner/glibtransformer.py: Also transform object properties.
2430 2008-08-12 Colin Walters <walters@verbum.org>
2432 * giscanner/glibtransformer.py: Also transform callbacks
2433 and structure field types.
2434 * tests/scanner/Fooe-expected.gir: Update to expect correct
2435 names for callbacks and structs.
2437 2008-08-12 Colin Walters <walters@verbum.org>
2439 * girepository/girparser.c: Handle 'any'.
2440 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2441 Add test for void *.
2443 2008-08-12 Colin Walters <walters@verbum.org>
2445 * giscanner/glibtransformer.py: We need to do type
2446 resolution in a second pass after we've seen all the
2447 enums, records, etc.
2449 2008-08-12 Colin Walters <walters@verbum.org>
2451 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2452 Add enum return value.
2453 * giscanner/glibtransformer.py: Transform function return types
2456 2008-08-12 Colin Walters <walters@verbum.org>
2458 * tests/scanner/Makefile.am: Dep .gir files on scanner
2459 sources too. Also remove @ so we see scanner invocations.
2461 2008-08-12 Colin Walters <walters@verbum.org>
2463 * girepository/girparser.c, girepository/gtypelib.c,
2464 girepository/gtypelib.h, girepository/girnode.c:
2465 Remove usage of (GAPI-oriented) TypeTag in favor of
2466 GITypeTag from girepository.h.
2468 2008-08-10 Colin Walters <walters@verbum.org>
2470 * tests/roundtrips.sh: Use the correct tests.
2472 2008-08-10 Colin Walters <walters@verbum.org>
2474 * giscanner/cgobject.py: Declare/wrap a few more functions.
2475 Fix parameter types for g_object_new and g_type_fundamental.
2477 2008-08-10 Colin Walters <walters@verbum.org>
2479 * giscanner/cgobject.py: Add new decorator @gwrap which forces
2480 us to declare types for both return value and parameters. The
2481 ctypes default of 'int' is bad because it hides 32/64 bit
2482 problems. Convert all existing functions to use it.
2484 2008-08-09 Johan Dahlin <johan@gnome.org>
2486 * giscanner/__init__.py:
2488 * giscanner/cgobject.py:
2489 * giscanner/gidlparser.py:
2490 * giscanner/gidlwriter.py:
2491 * giscanner/girparser.py:
2492 * giscanner/girwriter.py:
2493 * giscanner/glibast.py:
2494 * giscanner/glibtransformer.py:
2495 * giscanner/odict.py:
2496 * giscanner/sourcescanner.py:
2497 * giscanner/transformer.py:
2498 * giscanner/utils.py:
2499 * giscanner/xmlwriter.py:
2500 * tools/g-ir-scanner:
2504 2008-08-09 Johan Dahlin <johan@gnome.org>
2507 * relaxng/c-types.xml:
2508 * relaxng/g-types.xml:
2509 * relaxng/relaxng.rng:
2511 Remove outdated relaxng schemas.
2513 2008-08-09 Johan Dahlin <johan@gnome.org>
2516 Rename metadata to typelib in variable names,
2519 2008-08-09 Johan Dahlin <johan@gnome.org>
2523 Remove old C scanner, which got rewritten in python.
2525 2008-08-09 Johan Dahlin <johan@gnome.org>
2527 * girepository/Makefile.am:
2528 * tools/Makefile.am:
2529 * tools/girmodule.c:
2530 * tools/girmodule.h:
2533 * tools/girparser.c:
2534 * tools/girparser.h:
2535 * tools/girwriter.c:
2536 * tools/girwriter.h:
2537 Move shared *.[ch] files to girepository from tools
2539 2008-08-09 Johan Dahlin <johan@gnome.org>
2541 * tests/Makefile.am:
2544 * tests/constant.test:
2546 * tests/errors.test:
2547 * tests/function.test:
2548 * tests/gobject.test:
2549 * tests/interface.test:
2550 * tests/object.test:
2551 * tests/struct.test:
2556 Rename *.test to *.gir
2558 2008-08-09 Johan Dahlin <johan@gnome.org>
2561 * tests/Makefile.am:
2562 * tests/parser/Foo-expected.gir:
2563 * tests/parser/Makefile.am:
2564 * tests/parser/foo-object.h:
2565 * tests/parser/foo.c:
2566 * tests/parser/utility-expected.gir:
2567 * tests/parser/utility.c:
2568 * tests/parser/utility.h:
2569 * tests/scanner/Makefile.am:
2570 Rename tests/parser to test/scanner
2572 2008-08-08 Colin Walters <walters@verbum.org>
2574 * tests/roundtrips.sh: Use local .gir files again.
2576 2008-08-08 Colin Walters <walters@verbum.org>
2578 * tests/invoke/Makefile.am: .gir file depends on libtool
2581 2008-08-08 Colin Walters <walters@verbum.org>
2583 * tools/girnode.c: Pass through parent node so we can
2584 print the node whose child is NULL, if that occurs.
2586 2008-08-08 Johan Dahlin <johan@gnome.org>
2588 * tests/Makefile.am:
2589 Disable roundtrip tests which are not yet working
2590 * tests/invoke/testfns.gir:
2593 2008-08-08 Johan Dahlin <johan@gnome.org>
2595 * giscanner/girwriter.py:
2597 * giscanner/glibast.py:
2598 * giscanner/glibtransformer.py:
2599 Swap order of members, to keep it consistent with
2602 2008-08-08 Johan Dahlin <johan@gnome.org>
2604 * girepository/gtypelib.c (validate_header):
2605 * girepository/gtypelib.h:
2607 * giscanner/girwriter.py:
2608 * giscanner/sourcescanner.c (gi_source_symbol_ref),
2609 (gi_source_symbol_unref):
2612 * tests/constant.test:
2614 * tests/errors.test:
2615 * tests/function.test:
2616 * tests/gobject.test:
2617 * tests/interface.test:
2618 * tests/invoke/Makefile.am:
2619 * tests/invoke/testfns.xml:
2620 * tests/object.test:
2621 * tests/parser/Makefile.am:
2622 * tests/roundtrips.sh:
2623 * tests/struct.test:
2628 * tools/Makefile.am:
2629 * tools/compiler.c (main):
2630 * tools/generate.c (write_callable_info), (write_function_info),
2632 * tools/gidlmodule.c:
2633 * tools/gidlmodule.h:
2636 * tools/gidlparser.c:
2637 * tools/gidlparser.h:
2638 * tools/gidlwriter.c:
2639 * tools/gidlwriter.h:
2640 * tools/scanner.c (create_node_from_gtype),
2641 (create_node_from_ctype), (g_igenerator_process_properties),
2642 (g_igenerator_process_signals), (g_igenerator_create_object),
2643 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2644 (g_igenerator_create_enum), (g_igenerator_create_flags),
2645 (g_igenerator_process_function_symbol),
2646 (g_igenerator_process_unregistered_struct_typedef),
2647 (g_igenerator_process_struct_typedef),
2648 (g_igenerator_process_union_typedef),
2649 (g_igenerator_process_enum_typedef),
2650 (g_igenerator_process_function_typedef),
2651 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2652 (g_igenerator_add_module), (g_igenerator_add_include_idl):
2653 Merge in the gir-compiler branch.
2654 Thanks to Philip and Colin for their help.
2656 2008-07-26 Colin Walters <walters@verbum.org>
2658 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
2659 and g-idl-generate to go along with how we're changing this
2660 module to be installed.
2661 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
2663 2008-07-24 Colin Walters <walters@verbum.org>
2665 * girepository/girepository.c (g_irepository_register): Add
2666 environment variable G_IREPOSITORY_VERBOSE so we can print
2667 out what we're doing.
2668 * girepository/girepository.c (g_irepository_register_file):
2669 Add GError error message to g_debug call.
2671 2008-07-08 Jürg Billeter <j@bitron.ch>
2673 * giscanner/glibast.py:
2677 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
2679 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
2682 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
2685 * giscanner/girwriter.py:
2686 * giscanner/transformer.py:
2687 * tests/parser/Foo-expected.gir:
2688 * tests/parser/foo-object.h:
2689 * tests/parser/foo.c (foo_object_allow_none):
2690 Add support for gtk-doc annotations for allow-none.
2693 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
2696 * giscanner/girwriter.py:
2697 * giscanner/glibast.py:
2698 * giscanner/glibtransformer.py:
2699 * giscanner/transformer.py:
2700 * tests/parser/Foo-expected.gir:
2701 Start using abstract type instead of the raw C types.
2702 Register a bunch of glib types we care about.
2704 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
2709 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
2711 * girepository/girepository.c:
2712 * girepository/gtypelib.c:
2713 * girepository/ginfo.c:
2714 * girepository/ginvoke.c:
2715 * girepository/girepository.h:
2716 * girepository/gtypelib.h:
2717 * girepository/gmetadata.c:
2718 * girepository/Makefile.am:
2719 * girepository/gmetadata.h:
2721 * tools/gidlmodule.c:
2724 * tools/gidlmodule.h:
2725 * tools/gidlparser.c:
2727 Renamed GMetadata to GTypelib
2729 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
2731 * giscanner/xmlwriter.py:
2732 Improve line wrapping when > 79 charaters
2734 2008-06-05 Jürg Billeter <j@bitron.ch>
2737 * giscanner/girwriter.py:
2738 * giscanner/transformer.py:
2739 Use <type> element for field types
2740 * tests/parser/Foo-expected.gir:
2743 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
2745 * giscanner/glibtransformer.py:
2746 Fix a bug which prevented GdkEvent from being generated
2748 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
2750 * giscanner/Makefile.am:
2752 * giscanner/girwriter.py:
2753 * giscanner/glibast.py:
2754 * giscanner/glibtransformer.py:
2755 * giscanner/transformer.py:
2756 * giscanner/utils.py:
2757 * tests/parser/Foo-expected.gir:
2758 Improve enum member parsing and introspection
2760 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2762 * giscanner/scannerparser.y:
2763 * giscanner/sourcescanner.h:
2764 * giscanner/sourcescanner.py:
2765 Add a new source type enum for member.
2766 Use __repr__ for improved debugging
2767 * giscanner/girparser.py:
2769 * giscanner/transformer.py:
2770 Improve parsing of struct members.
2771 * tests/parser/foo-object.h:
2774 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2776 * giscanner/xmlwriter.py:
2777 Improve error reporting when trying to quote None.
2778 * giscanner/girparser.py:
2779 Do not print warnings when including more complete .gir files
2780 * giscanner/girwriter.py:
2781 Do not require a name for parameters, add a todo for singletons
2782 * giscanner/glibtransformer.py:
2783 Refactor the way structs are done, add a couple of hacks to allow
2785 * giscanner/transformer.py:
2786 Add enough hacks so cairo, atk and pango.gir can be parsed properly
2787 * gobject-introspection-1.0.pc.in:
2788 Export girdir, so we can access gobject-2.0.gir from outside
2790 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2792 * tools/g-ir-scanner:
2793 * tests/parser/Makefile.am:
2794 Update sys.path before running the parser so we don't have
2795 to setup PYTHONPATH ourselves.
2799 * girepository/Makefile.am:
2800 * giscanner/transformer.py:
2801 * gobject-introspection-1.0.pc.in:
2802 * gobject-introspection.pc.in:
2803 * tools/Makefile.am:
2805 Rename pkg-config name to gobject-introspection-1.0,
2806 Do not installed anything which is not using the gir format.
2807 Disable compililation the old C scanner, but still keep the source
2808 until all the remaning functionallity has been ported.
2810 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2812 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
2813 a crash when symbol->indent is NULL.
2815 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
2816 a function to convert a CTYPE symbol to a string
2818 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
2821 * giscanner/girwriter.py:
2822 * giscanner/giscannermodule.c
2823 (pygi_source_scanner_append_filename),
2824 (pygi_source_scanner_parse_file):
2825 * giscanner/glibtransformer.py:
2826 * giscanner/sourcescanner.py:
2827 Revert back to using temporary files to send in headers.
2828 Allow Functions to be passed in as callbacks, add a couple
2829 of try/excepts missing features.
2830 We can now scan pango
2832 2008-05-08 Johan Dahlin <johan@gnome.org>
2834 * giscanner/glibtransformer.py:
2835 * giscanner/transformer.py:
2836 Move namespace stripping glibtransformer->transformer
2838 2008-05-08 Johan Dahlin <johan@gnome.org>
2841 * giscanner/girwriter.py:
2842 * giscanner/glibtransformer.py:
2843 * giscanner/transformer.py:
2844 * tools/g-ir-scanner:
2845 Introduce a namespace ast node
2847 2008-05-05 Johan Dahlin <johan@gnome.org>
2849 * giscanner/__init__.py:
2850 * giscanner/sourcescanner.py:
2851 * giscanner/transformer.py:
2852 Move sourcescanner symbols to the sourcescanner module, instead
2853 of in the global __init__ namespace.
2855 2008-05-03 Johan Dahlin <johan@gnome.org>
2857 * giscanner/glibtransformer.py:
2858 * tools/g-ir-scanner:
2859 Handle missing parameters better, allow - and + in .la dlname
2862 2008-05-03 Johan Dahlin <johan@gnome.org>
2864 * giscanner/__init__.py:
2866 * giscanner/girwriter.py:
2867 * giscanner/glibtransformer.py:
2868 * giscanner/transformer.py:
2869 Parse struct fields properly, improve debugging.
2871 2008-04-29 Johan Dahlin <johan@gnome.org>
2874 * giscanner/girwriter.py:
2875 * giscanner/transformer.py:
2876 * tests/parser/Foo-expected.gir:
2878 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
2880 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
2883 * docs/g-ir-scanner.1:
2884 * metadata-annotations-proposal.txt:
2885 * metadata-format.txt:
2886 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
2888 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
2890 * giscanner/girwriter.py:
2891 * giscanner/glibtransformer.py:
2892 * giscanner/transformer.py:
2893 * giscanner/xmlwriter.py:
2894 * tests/parser/Foo-expected.gir:
2895 * tests/parser/foo-object.h:
2896 Write record/structs to gir file too. Add a couple of tests,
2897 fix an off by one error in xmlwriter.py.
2899 2008-04-28 Johan Dahlin <johan@gnome.org>
2901 * giscanner/xmlwriter.py: Calculate the line length properly,
2902 include the provided extra indentation in the calculation, really.
2904 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2907 * giscanner/glibast.py:
2908 * giscanner/glibtransformer.py:
2909 * giscanner/transformer.py:
2910 * tools/g-ir-scanner:
2911 Add a --strip-prefix and sort out confusion between names and symbols
2912 for functions and struct + derivaties.
2913 Refactor bootstrap of g-ir-scanner, so we can set options on
2914 Transformer() before parsing everything.
2916 2008-04-28 Johan Dahlin <johan@gnome.org>
2918 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
2919 when scanning girepository.h
2921 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
2922 a __GI_SCANNER__ when we run.
2924 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2927 * giscanner/girwriter.py:
2928 * giscanner/glibast.py:
2929 * giscanner/glibtransformer.py:
2930 * tests/parser/Foo-expected.gir:
2931 * tests/parser/utility-expected.gir:
2932 Rename most c:identifier to c:type. Add new ones to
2933 class/interface/enum/boxed.
2935 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2938 * giscanner/girwriter.py:
2939 * giscanner/glibtransformer.py:
2940 * tests/parser/Foo-expected.gidl:
2941 * tests/parser/Makefile.am:
2942 Move c:identifier from return-value to subchild type,
2943 as per Jürgs suggestion
2945 2008-04-28 Johan Dahlin <johan@gnome.org>
2947 * giscanner/girwriter.py:
2948 * tests/parser/Foo-expected.gir:
2949 Write property.type as a child node.
2951 2008-04-27 Johan Dahlin <johan@gnome.org>
2956 * gidl/gobject-2.0.gidl:
2958 * gir/gobject-2.0.gir:
2959 * tests/parser/Makefile.am:
2960 Replace the GObject gidl with a GObject gir.
2962 2008-04-27 Johan Dahlin <johan@gnome.org>
2964 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
2967 * giscanner/xmlwriter.py:
2968 * tests/parser/Foo-expected.gir:
2969 Include indentation in line length calculation
2971 2008-04-27 Johan Dahlin <johan@gnome.org>
2973 * giscanner/girparser.py:
2974 Prettify NS parsing using elementtree.
2976 2008-04-27 Johan Dahlin <johan@gnome.org>
2979 * giscanner/Makefile.am:
2980 * giscanner/girparser.py:
2981 * giscanner/glibtransformer.py:
2982 * tests/parser/Foo-expected.gidl:
2983 * tests/parser/Foo-expected.gir:
2984 * tests/parser/Makefile.am:
2985 * tests/parser/utility-expected.gidl:
2986 * tests/parser/utility-expected.gir:
2987 * tools/g-ir-scanner:
2988 Switch over to GIR as the default format. Add a simple GIDL
2990 Update tests and fix simplify makefiles by depending
2991 on GNU make extensions.
2993 2008-04-27 Johan Dahlin <johan@gnome.org>
2995 * giscanner/xmlwriter.py:
2996 Wrap attributes for lines which are wider than 79 characters
2998 * giscanner/scannerlexer.l:
2999 Allow parenthesis in annotations
3002 * giscanner/gidlwriter.py:
3003 * giscanner/girwriter.py:
3004 * giscanner/glibtransformer.py:
3005 * giscanner/transformer.py:
3006 Add initial sequence support, including annotation.
3007 Refactor type handling a bit.
3009 2008-04-27 Johan Dahlin <johan@gnome.org>
3011 * tests/parser/Foo-expected.gidl:
3012 * tests/parser/foo-object.h:
3013 * tests/parser/foo.c (foo_object_class_init),
3014 (foo_object_get_strings), (foo_object_get_objects):
3015 Add two new functions to check sequence return values.
3016 Also fixes a compilation warning.
3018 2008-04-27 Johan Dahlin <johan@gnome.org>
3020 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3021 a compilation warning.
3023 * tools/Makefile.am (g_ir_scanner_SOURCES):
3024 g-ir-scanner has no sources.
3026 2008-04-25 Johan Dahlin <johan@gnome.org>
3028 * giscanner/Makefile.am:
3030 * giscanner/gidlparser.py:
3031 * giscanner/gidlwriter.py:
3032 * giscanner/girwriter.py:
3033 * giscanner/glibast.py:
3034 * giscanner/glibtransformer.py:
3035 * giscanner/transformer.py:
3036 Split out nodes to ast.py and glibast.py
3038 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3040 * giscanner/Makefile.am:
3041 * giscanner/gidlparser.py:
3042 * giscanner/gidlwriter.py:
3043 * giscanner/girwriter.py:
3044 * giscanner/glibtransformer.py:
3045 * giscanner/gobjecttreebuilder.py:
3046 * giscanner/transformer.py:
3047 * giscanner/treebuilder.py:
3048 * tools/g-ir-scanner:
3049 Rename treebuilder to transformer and
3050 gobjectreebuilder to glibtransformer.
3052 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3054 * giscanner/Makefile.am:
3055 * giscanner/__init__.py:
3056 * giscanner/cgobject.py:
3057 * giscanner/gidlparser.py:
3058 * giscanner/gidlwriter.py:
3059 * giscanner/girwriter.py:
3060 * giscanner/gobjecttreebuilder.py:
3061 * giscanner/odict.py:
3062 * giscanner/sourcescanner.py:
3063 * giscanner/treebuilder.py:
3064 * giscanner/xmlwriter.py:
3065 * tools/Makefile.am:
3066 * tools/g-ir-scanner:
3067 Add LGPLv2 license header and install all python files
3069 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3072 * giscanner/gidlwriter.py:
3073 * giscanner/giscannermodule.c (pygi_source_directive_new),
3074 (directive_get_options), (pygi_source_symbol_new),
3075 (symbol_get_base_type), (pygi_source_type_new),
3076 (type_get_base_type), (type_get_child_list),
3077 (pygi_source_scanner_get_symbols),
3078 (pygi_source_scanner_get_directives):
3079 * giscanner/gobjecttreebuilder.py:
3080 * giscanner/sourcescanner.py:
3081 * giscanner/treebuilder.py:
3082 * tests/parser/foo-object.h:
3083 Add support for virtual methods.
3084 Pair struct FooClass with struct Foo.
3085 Clean up the SourceScanner bindings a bit.
3086 Add a testcase for virtual methods.
3088 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3090 * giscanner/cgobject.py:
3091 * giscanner/gidlwriter.py:
3092 * giscanner/gobjecttreebuilder.py:
3093 Add support for signals
3095 * tests/parser/foo.c (foo_object_class_init):
3096 * Foo-expected.gidl:
3097 Add a signal and update the expected output.
3099 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3101 * giscanner/gidlwriter.py:
3102 * giscanner/girwriter.py:
3103 * giscanner/giscannermodule.c (directive_get_name),
3104 (directive_get_value), (directive_get_options),
3105 (symbol_get_directives), (symbol_set_directives),
3106 (pygi_source_scanner_parse_file),
3107 (pygi_source_scanner_lex_filename),
3108 (pygi_source_scanner_get_directives), (init_giscanner):
3109 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3110 * giscanner/sourcescanner.h:
3111 * giscanner/sourcescanner.py:
3112 * giscanner/treebuilder.py:
3113 * tools/g-ir-scanner:
3114 Add support for source/header annotations.
3116 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3118 * giscanner/gidlwriter.py:
3119 * giscanner/girwriter.py:
3120 * giscanner/gobjecttreebuilder.py:
3121 * giscanner/treebuilder.py:
3122 Add support for Callbacks
3124 2008-04-22 Havoc Pennington <hp@pobox.com>
3126 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3127 not in metadata->module, look for it in the global module, in case
3128 some other object or the app itself provides the symbol.
3130 2008-04-22 Havoc Pennington <hp@pobox.com>
3132 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3133 dlopening a library that is already in the main app, by checking
3134 whether one of the lib's symbols is already loaded.
3136 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3138 * tests/parser/Foo-expected.gidl:
3139 * tests/parser/foo-object.h:
3142 2008-04-22 Havoc Pennington <hp@pobox.com>
3144 * girepository/ginfo.c (g_interface_info_find_method):
3145 Use interface_blob_size not object_blob_size to compute offset.
3147 2008-04-22 Havoc Pennington <hp@pobox.com>
3149 * girepository/gmetadata.c (_g_metadata_init): remove
3150 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3151 (Glade and Clutter for example) rely on being loaded globally.
3153 2008-04-22 Havoc Pennington <hp@pobox.com>
3155 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3156 function to get the GType given a RegisteredTypeInfo
3158 2008-04-22 Johan Dahlin <johan@gnome.org>
3160 * COPYING: Add a LGPL license, to prevent automake to
3161 put in a copy of GPL here. Pointed out by Havoc.
3163 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3164 (g_type_info_is_pointer), (g_type_info_get_tag),
3165 (g_type_info_get_param_type), (g_type_info_get_interface),
3166 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3167 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3168 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3169 (g_object_info_get_interface), (g_object_info_get_field),
3170 (g_interface_info_get_prerequisite),
3171 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3172 * girepository/ginvoke.c (get_ffi_type):
3173 * girepository/girepository.h:
3174 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3175 (g_metadata_check_sanity), (validate_header),
3176 (validate_array_type_blob), (validate_iface_type_blob),
3177 (validate_param_type_blob), (validate_error_type_blob),
3178 (validate_type_blob), (validate_constant_blob),
3179 (validate_struct_blob), (validate_enum_blob):
3180 * girepository/gmetadata.h:
3181 * tests/Makefile.am:
3182 * tests/invoke/Makefile.am:
3183 * tests/invoke/invoke.c (main):
3184 * tests/roundtrips.sh:
3185 * tools/Makefile.am:
3186 * tools/compiler.c (format_output), (write_out_metadata), (main):
3187 * tools/generate.c (write_type_name), (write_type_info),
3188 (write_constant_value), (write_enum_info), (load_metadata), (main):
3189 * tools/gidlcompilercontext.c:
3190 * tools/gidlcompilercontext.h:
3191 * tools/gidlcompilerentrynode.c:
3192 * tools/gidlcompilerentrynode.h:
3193 * tools/gidlcompilertypenode.c:
3194 * tools/gidlcompilertypenode.h:
3195 * tools/gidlmodule.c (g_idl_module_build_metadata):
3196 * tools/gidlmodule.h:
3197 * tools/gidlnode.c (init_stats), (dump_stats),
3198 (g_idl_node_get_size), (g_idl_node_get_full_size),
3199 (g_idl_node_cmp), (g_idl_node_can_have_member),
3200 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3201 (parse_int_value), (parse_uint_value), (parse_float_value),
3202 (parse_boolean_value), (find_entry_node), (find_entry),
3203 (serialize_type), (g_idl_node_build_metadata), (write_string):
3205 * tools/gidlparser.c (parse_type_internal):
3206 * tools/quote-file.sh:
3207 Revert revisions 157,149-148,136-129 and 120.
3208 Move back to using g-idl-generate to generate the metadata and
3209 avoids dependency on a c compiler.
3211 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3213 * giscanner/girwriter.py:
3214 * tools/g-ir-scanner:
3215 Add an initial GIR writer and a --format option to g-ir-scanner
3217 2008-04-21 Johan Dahlin <johan@gnome.org>
3219 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3220 gobject-2.0 and raise ImportError if not found.
3222 * giscanner/gidlparser.py:
3223 * giscanner/gidlwriter.py:
3224 * giscanner/gobjecttreebuilder.py:
3225 * tools/g-ir-scanner:
3226 Add a --include argument to include types from other idls.
3227 Add a minimalistic GIDL parser (just objects for now)
3228 Implement resolving of external type references and use it to
3229 resolve parent types, argument types and return types.
3231 2008-04-21 Johan Dahlin <johan@gnome.org>
3233 * giscanner/gidlwriter.py:
3234 * giscanner/gobjecttreebuilder.py:
3235 * giscanner/treebuilder.py:
3236 Add support for properties.
3237 Refactor Class/Interface support a bit, to share more code and
3238 always initialize their method attribute to an empty list.
3240 2008-04-21 Johan Dahlin <johan@gnome.org>
3242 * giscanner/cgobject.py:
3243 Add a workaround for a glib bug interface introspection bug
3244 (object_interface_list_properties, object_class_list_properties):
3245 Cast the return value to GParamSpec.
3247 * tests/parser/Foo-expected.gidl: Update
3248 * tests/parser/foo.c: Add a string property
3250 * giscanner/gobjecttreebuilder.py:
3251 After stripping namespaces, remove the original
3252 item to avoid duplication (GtkButton struct and Button object)
3254 2008-04-21 Johan Dahlin <johan@gnome.org>
3256 * giscanner/gobjecttreebuilder.py:
3257 * giscanner/treebuilder.py:
3258 Strip namespaces before objects, so we'll export
3259 GtkButton as Button in the gtk namespace
3261 2008-04-21 Johan Dahlin <johan@gnome.org>
3263 * giscanner/gidlwriter.py:
3264 * giscanner/gobjecttreebuilder.py:
3265 * giscanner/treebuilder.py:
3266 Add constructors for object/boxed types.
3268 2008-04-21 Johan Dahlin <johan@gnome.org>
3270 * giscanner/gidlwriter.py:
3271 * giscanner/gobjecttreebuilder.py:
3272 Add support for boxed types
3274 2008-04-21 Johan Dahlin <johan@gnome.org>
3276 * giscanner/giscannermodule.c: Mark structures as const,
3277 wrap SourceType.const_string.
3279 * tests/parser/foo-object.h: Add a couple of constants.
3281 * giscanner/gidlwriter.py:
3282 * giscanner/gobjecttreebuilder.py:
3283 * giscanner/treebuilder.py:
3284 Add basic support for interfaces
3286 * tools/g-ir-scanner:
3287 Add -o/--output for writing to a file
3289 2008-04-21 Havoc Pennington <hp@redhat.com>
3291 * TODO: add some C API wishlist items I could think of quickly
3293 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3295 * giscanner/gidlwriter.py:
3296 * giscanner/xmlwriter.py:
3297 Add a simple api for writing tags which can be used
3298 with the new 'with statement' in python 2.5
3300 2008-04-21 Johan Dahlin <johan@gnome.org>
3302 * giscanner/gobjecttreebuilder.py:
3303 Strip namespace and object prefix from method names.
3305 2008-04-21 Johan Dahlin <johan@gnome.org>
3307 * tools/g-ir-scanner (main): Add --pkg option to pass in
3308 pkg-config modules to get cflags from.
3310 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3311 Avoid duplication, reuse function writer for methods.
3313 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3315 * giscanner/gidlwriter.py:
3316 * giscanner/gobjecttreebuilder.py:
3317 * giscanner/treebuilder.py:
3318 * tools/g-ir-scanner:
3319 Resolve libtool .la files.
3320 Strip name spaces for methods.
3321 Add function symbols
3323 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3325 * giscanner/cgobject.py:
3326 * giscanner/gidlwriter.py:
3327 * giscanner/gobjecttreebuilder.py:
3328 * giscanner/treebuilder.py:
3329 Add support for classes and methods
3331 2008-04-20 Johan Dahlin <johan@gnome.org>
3333 * giscanner/gidlwriter.py:
3334 * giscanner/gobjecttreebuilder.py:
3335 * giscanner/odict.py:
3336 Avoid conflicts, keep the output ordered similar to
3337 the order of the input.
3338 Add a simple ordered dictionary implemenation
3340 2008-04-19 Johan Dahlin <johan@gnome.org>
3342 * giscanner/cgobject.py:
3343 * giscanner/gidlwriter.py:
3344 * giscanner/gobjecttreebuilder.py:
3345 * tools/g-ir-scanner:
3346 Start introspecting get-type functions.
3347 Implement support for GLib/GFlags GTypes.
3348 Add a ctype based GObject binding.
3350 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3352 * giscanner/gidlwriter.py:
3353 * giscanner/xmlwriter.py:
3354 * tools/g-ir-scanner:
3355 Add a simplistic gidl writer, which can't do too much.
3357 2008-04-18 Johan Dahlin <johan@gnome.org>
3359 * giscanner/sourcescanner.py:
3360 * giscanner/treebuilder.py:
3361 * tools/g-ir-scanner:
3362 split tree building and source scanning interface to separate files.
3364 2008-04-18 Johan Dahlin <johan@gnome.org>
3366 * tools/g-ir-scanner (Parameter.__init__): Start constructing
3368 - Add support for struct/parameter/return, start parsing of ctypes
3370 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
3373 2008-03-31 Johan Dahlin <johan@gnome.org>
3375 * tools/g-ir-scanner:
3376 Start to build abstract syntax node of scanned sources.
3377 Add support for cpp options.
3379 2008-03-27 Johan Dahlin <johan@gnome.org>
3381 * giscanner/giscannermodule.c:
3382 * giscanner/scannerlexer.l:
3383 * giscanner/sourcescanner.c:
3384 * tools/g-ir-scanner:
3386 Add simple pre-processor using subprocess and a PIPE.
3387 Change the parse_file apis to accept a file descriptor.
3389 2008-03-25 Johan Dahlin <johan@gnome.org>
3391 * giscanner/__init__.py:
3392 * tools/g-ir-scanner:
3393 Fix a typo and add an example python test program.
3395 2008-03-25 Johan Dahlin <johan@gnome.org>
3397 * giscanner/__init__.py:
3398 * giscanner/giscannermodule.c:
3399 * giscanner/sourcescanner.c:
3400 * giscanner/sourcescanner.h:
3401 Add constants and wrap a few more SymbolType fields
3403 2008-03-25 Johan Dahlin <johan@gnome.org>
3407 * giscanner/__init__.py:
3408 * giscanner/giscannermodule.c:
3409 * giscanner/Makefile.am:
3411 Add initial python bindings for the scanner and
3412 depend on python 2.5.
3414 2008-03-25 Johan Dahlin <johan@gnome.org>
3418 * giscanner/Makefile.am:
3419 * giscanner/sourcescanner.c:
3420 * giscanner/sourcescanner.h:
3421 * tools/Makefile.am:
3422 * tools/grealpath.h:
3423 * tools/sourcescanner.c:
3424 * tools/sourcescanner.h:
3426 Move the scanner to a separate library.
3428 2008-03-23 Johan Dahlin <johan@gnome.org>
3430 * tools/Makefile.am:
3433 * tools/scannerlexer.l:
3434 * tools/scannerparser.y:
3435 * tools/sourcescanner.c:
3436 * tools/sourcescanner.h:
3437 Split out the source scanner from the generator.
3438 Rename the symbols used in the scanner to use the gi_ prefix.
3439 This should make it possible to use the raw C parser from
3442 2008-03-23 Johan Dahlin <johan@gnome.org>
3444 * tests/parser/Makefile.am (utility.gidl):
3445 * tests/parser/utility-expected.gidl:
3446 Pass in the gobject.gidl since we're defining a GObject.
3448 2008-03-12 Johan Dahlin <johan@gnome.org>
3450 * relaxng/relaxng.rng:
3451 Add a releaxng in relaxng we can use to validate the relaxngs
3454 2008-03-12 Jürg Billeter <j@bitron.ch>
3456 * tools/scanner.c: (g_igenerator_new):
3457 * tools/scannerparser.y:
3458 Fix compiler warnings.
3460 2008-03-12 Jürg Billeter <j@bitron.ch>
3464 * tools/scannerparser.y:
3465 Start fixing memory management in g-idl-scanner.
3467 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
3469 * tools/gidlcompilercontext.c: (write_compiled):
3470 Fix critical warning when no shlib passed to g-idl-compiler.
3472 2008-03-12 Johan Dahlin <johan@gnome.org>
3474 * tests/parser/utility-expected.gidl:
3475 * tests/parser/utility.h:
3476 Add a get_type-function, so the scanner actually
3477 parses it as an object.
3479 2008-03-12 Johan Dahlin <johan@gnome.org>
3481 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
3484 * tests/parser/Foo-expected.gidl:
3485 * tests/parser/Makefile.am:
3486 * tests/parser/foo-object.h:
3487 * tests/parser/foo.c:
3488 * tests/parser/utility-expected.gidl:
3489 * tests/parser/utility.c:
3490 * tests/parser/utility.h:
3492 Add a new gidl test. 'utility.gidl', which is used to be able
3493 to test external type references. Add a reference to UtilityObject*
3496 2008-03-11 Johan Dahlin <johan@gnome.org>
3500 Remove most global variables
3502 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
3504 * tools/scannerlexer.l:
3506 * tests/parser/Foo-expected.gidl:
3507 * tests/parser/foo.c:
3508 * tests/parser/Makefile.am:
3509 * tests/parser/foo-object.h:
3511 Added a few extra tests. Which resulted in finding a few
3512 bugs. Which resulted in me fixing those bugs
3514 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
3516 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
3517 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
3518 Add some comments for strings into generated output for
3521 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
3523 * tools/gidlcompilercontext.c: (write_compiled):
3524 Write out the shlibs variable before writing out the strings
3525 length. Fixes compiler warning when using '-l' flag with
3528 2008-03-11 Johan Dahlin <johan@gnome.org>
3530 * tests/parser/Foo-expected.gidl:
3531 * tests/parser/foo-object.h:
3534 * tools/scannerlexer.l:
3535 Add support for parsing return arguments. Add support for
3536 caller-owns return types.
3537 Patch by Philip Van Hoof.
3539 * tools/scannerparser.y:
3540 Remove parsing of the @deprecated syntax used in headers.
3541 We will support gtk-doc deprecation in the future instead.
3543 2008-03-11 Johan Dahlin <johan@gnome.org>
3545 * tools/compiler.c (main): Coding style fixes
3547 2008-03-10 Johan Dahlin <johan@gnome.org>
3550 Add GCOV_LIBS to GILIBS
3552 2008-03-10 Johan Dahlin <johan@gnome.org>
3554 * tests/parser/Foo-expected.gidl:
3555 * tests/parser/foo.c:
3556 Rename null-ok to direction=out
3558 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
3560 reviewed and extensively tested by Johan
3562 * tests/parser/Foo-expected.gidl:
3563 * tests/parser/foo-object.h:
3564 * tests/parser/foo.c:
3567 * tools/gidlwriter.c:
3570 * tools/scannerlexer.l:
3571 * tools/scannerparser.y:
3573 Add support for scanning for gtk-doc comments inside
3574 C source files. Add tests
3576 2008-03-10 Johan Dahlin <johan@gnome.org>
3578 * tests/parser/Makefile.am:
3579 * tests/parser/foo.c:
3582 * tools/scannerparser.y:
3583 Add an api to lex filenames.
3584 Lex all source .c files passed in on the command line.
3585 Scan sources in a test and a couple of private structures
3586 which should not be included in the generated gidl
3588 2008-03-10 Johan Dahlin <johan@gnome.org>
3590 * tests/invoke/Makefile.am: Make the generated metadata
3591 depend on the g-idl-compiler
3593 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3595 * tools/gidlmodule.c
3596 * tools/gidlmodule.h
3599 Remove the old g-idl-compiler code.
3602 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
3604 * tools/quote-file.sh
3607 Move to using the 'C' struct compiler code.
3609 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3611 * girepository/ginfo.c
3613 Change the way that external references with no namespace
3614 are dealt with. External references with no namespace
3615 are placed into the XML as-if they are a local reference.
3616 This is temporary, but helps with roundtrip tests.
3618 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3620 * girepository/ginfo.c
3621 Add the ability to get the value of a constant of
3622 type TYPE_TAG_SYMBOL. In the case of a symbol the value
3623 is provided as a string.
3625 This would deal properly with:
3626 typedef char* random;
3627 const random = "A string";
3629 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3631 * girepository/ginfo.c
3632 * girepository/girepository.h
3634 Add a function to check if an enum is registered or not.
3635 Previously anything testing this relied on the g-type
3636 string offset having a value of 0.
3638 * girepository/gmetadata.c
3639 * girepository/gmetadata.h
3641 Remove unneccesary or erroneous checks. There were two
3642 metadata validation checks which made sure that the blob
3643 sizes were the same as some magic numbers compiled into the code.
3644 This is wrong as it breaks any forwards compatibility that may
3647 Checks were also present that made sure that unregistered type
3648 blobs had a value of 0 in the g-type offset field. This is
3649 unneccessary. If a type blob is unregistered then any value
3650 in its g-type field is simply invalid.
3652 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3654 * girepository/ginfo.c
3655 * girepository/gmetadata.c
3656 * girepository/gmetadata.h
3658 Change the metadata format to have a standard header
3659 for all the type blobs. Merge the SimpleTypeBlob
3660 and InterfaceTypeBlob into a union. A union of these
3661 two blobs existed previously but was not explicit
3662 in the metadata format.
3664 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3666 * tools/gidlcompilercontext.c
3667 * tools/gidlcompilercontext.h
3668 * tools/gidlcompilerentrynode.c
3669 * tools/gidlcompilerentrynode.h
3670 * tools/gidlcompilertypenode.c
3671 * tools/gidlcompilertypenode.h
3673 Add code to compile a tree of GIdlNodes to
3674 a 'C' struct representing the metadata.
3675 This is to aid cross-compiling. Previously
3676 the g-idl-compiler created a binary blob with
3677 data written in the byte order and alignment
3678 of the tool rather than the intended target.
3680 Cleaned up and improved by Johan and Robert :-)
3682 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3684 * girepository/ginvoke.c
3685 * girepository/girepository.h
3686 * girepository/gmetadata.c
3687 * girepository/gmetadata.h
3689 * tools/gidlparser.c
3690 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
3691 to avoid confusion with the interface blob.
3694 * tools/gidlparser.c
3695 Remove magic numbers and replace with type-tag
3696 enumeration symbols.
3698 * girepository/gmetadata.c
3699 Add validate declaration.
3701 2008-03-10 Jürg Billeter <j@bitron.ch>
3703 * tools/gidlparser.c: (parse_type_internal):
3704 * tools/scannerlexer.l:
3705 * tools/scannerparser.y:
3706 Support C99 _Bool type in scanner.
3708 2008-03-10 Jürg Billeter <j@bitron.ch>
3710 * tests/parser/Foo-expected.gidl:
3711 * tests/parser/foo-object.h:
3712 * tests/parser/foo.c: (foo_enum_method):
3713 * tools/scanner.c: (g_igenerator_process_function_symbol):
3714 Don't skip functions that are defined in the namespace of a type
3715 that doesn't support methods, as for example enums.
3717 2008-03-10 Johan Dahlin <johan@gnome.org>
3719 * gidl.dtd: Remove, we're using relaxng for now
3721 * tests/parser/Foo-expected.gidl:
3722 * tests/parser/foo-object.h:
3723 * tests/parser/foo.c:
3724 Rename the enum/flags get_type functions to include the whole type.
3726 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
3728 * tools/gidlwriter.c (enum_generate): added "type-name",
3729 "get-type" and "deprecated" missing arguments.
3730 * tests/parser/Foo-expected.gidl:
3731 * tests/parser/foo-object.h: test enum type, and no type.
3733 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
3736 Consistent checks, add missing 'test'
3738 2008-03-05 Havoc Pennington <hp@redhat.com>
3740 * configure.ac: Take advantage of a libffi.pc if one exists, as it
3741 does on Fedora 8. Make libffi a hard requirement, since it was in
3742 practice anyway (was not really conditional in the code or
3743 makefile, only in configure).
3745 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3747 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
3748 reviewed by: Johan Dahlin <johan@gnome.org>
3750 * tests/Makefile.am:
3751 * tests/roundtrips.sh:
3752 Modify the roundtrips test so that they do not use the
3753 --raw option of the gidl compiler but instead compile a
3754 shared library to use with g_module.
3756 * tests/invoke/Makefile.am:
3757 * tests/invoke/invoke.c:
3758 Modify the invoke tests to build a shared library rather
3759 than use the --raw option.
3761 * tests/invoke/invoke-namespace-find.sh: Removed:
3762 Noone knows why this was here, so removed.
3764 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
3766 * tools/scanner.c: (g_igenerator_process_function_symbol):
3767 Move g_idl_node_can_have_member test later, as it broke spotting
3768 get_type's for nodes that can't have members.
3770 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3773 * tools/gidlnode.c: (g_idl_node_can_have_member):
3774 Add g_idl_node_can_have_member.
3776 * tools/scanner.c: (g_igenerator_process_function_symbol):
3777 Use g_idl_node_can_have_member to test if we should add a function
3778 as a member of the type node.
3780 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3782 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
3784 * tests/parser/Makefile.am:
3785 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
3787 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3789 * tools/scanner.c: (main):
3790 Ignore -pthread when passed to g-idl-scanner.
3792 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3794 * tools/grealpath.h: Added:
3795 * tools/scanner.c: (main):
3796 * tools/scannerlexer.l:
3797 * tools/Makefile.am:
3798 Always use absolute paths with symbolic links resolved when
3799 comparing filenames.
3801 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3803 * gobject-introspection.pc.in:
3804 Provide variables for g-idl-parser, scanner and compiler in the
3807 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
3810 * girepository/Makefile.am:
3811 * tools/Makefile.am:
3812 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
3814 2008-02-10 Johan Dahlin <johan@gnome.org>
3816 * tests/parser/Foo-expected.gidl:
3817 * tests/parser/foo-object.h:
3818 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
3819 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
3822 2008-02-10 Johan Dahlin <johan@gnome.org>
3824 * tests/parser/Foo-expected.gidl:
3825 * tests/parser/foo-object.h:
3826 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
3827 Add enum and flags test.
3829 2008-02-10 Johan Dahlin <johan@gnome.org>
3833 * girepository/Makefile.am:
3834 Make 'make distcheck' work again.
3836 2008-02-10 Johan Dahlin <johan@gnome.org>
3838 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
3841 * tests/parser/Makefile.am: Only create Foo.gidl when running make
3842 check, eg exclude it from BUILT_SOURCES.
3844 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
3849 * girepository/Makefile.am:
3850 * m4/Makefile.am: Added:
3851 * m4/as-compiler-flag.m4: Added:
3852 * m4/gcov.m4: Added:
3853 * tools/Makefile.am:
3854 Add ability to generate a coverage report.
3855 Adds configure option --enable-gcov and make rule 'check-coverage'.
3857 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
3861 * gidl/Makefile.am: Added:
3862 * girepository/Makefile.am: Added:
3863 * src/Makefile.am: Renamed to tools/Makefile.am:
3864 * src/compiler.c: Renamed to tools/compiler.c:
3865 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
3866 * src/generate.c: Renamed to tools/generate.c:
3867 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
3868 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
3869 * src/gidlnode.c: Renamed to tools/gidlnode.c:
3870 * src/gidlnode.h: Renamed to tools/gidlnode.h:
3871 * src/gidlparser.c: Renamed to tools/gidlparser.c:
3872 * src/gidlparser.h: Renamed to tools/gidlparser.h:
3873 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
3874 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
3875 * src/ginfo.c: Renamed to girepository/ginfo.c:
3876 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
3877 * src/girepository.c: Renamed to girepository/girepository.c:
3878 * src/girepository.h: Renamed to girepository/girepository.h:
3879 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
3880 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
3881 * src/scanner.c: Renamed to tools/scanner.c:
3882 * src/scanner.h: Renamed to tools/scanner.h:
3883 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
3884 * src/scannerparser.y: Renamed to tools/scannerparser.y:
3885 * tests/invoke/Makefile.am:
3886 Split src/ into girepository/ and tools/
3890 * girepository/Makefile.am:
3891 * tests/Makefile.am:
3892 * tests/invoke/Makefile.am:
3893 * tests/parser/Makefile.am:
3894 * tests/roundtrips.sh:
3895 * tools/Makefile.am:
3896 Make distcheck work.
3898 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
3900 * tests/invoke/invoke.c: (main):
3901 * tests/invoke/testfns.c: (test6), (test7):
3902 * tests/invoke/testfns.xml:
3903 Add tests for invokation with a GList argument.
3904 Also tests caller-owns return values.
3906 2008-02-04 Rob Taylor <robtaylor@floopily.org>
3909 Add some documentation for GICallableInfo
3911 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
3914 Correct syntax errors in the DTD file.
3916 * relaxng/c-types.xml:
3917 * relaxng/g-types.xml:
3919 Add a RelaxNG specification for the GObject Introspection XML data.
3920 The Specification has validated all of the test files.
3922 2008-01-25 Rob Taylor <robtaylor@floopily.org>
3924 * tests/roundtrips.sh:
3925 * tests/struct.test:
3926 Add roundtrip tests for structs.
3928 2008-01-11 Johan Dahlin <johan@gnome.org>
3930 * src/scanner.c (g_igenerator_process_function_symbol):
3931 Refactor out g_idle_node_add_member.
3932 (create_node_from_gtype, create_node_from_ctype):
3933 Use case instead of if...else
3934 (get_type_from_type_id):
3935 Rename to create_node_from_gtype
3936 (get_type_from_ctype):
3937 Rename to create_node_from_ctype
3939 Rename ginode -> node, gitype -> type, gifunc -> func.
3941 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
3942 Two new functions, refactor out of scanner.c
3944 * src/scanner.c: (g_igenerator_process_function_symbol):
3945 * src/scannerlexer.l:
3946 Do not save the content of the deprecated variable, only
3949 2008-01-11 Johan Dahlin <johan@gnome.org>
3951 * tests/parser/foo-object.h: Add a couple of comment parser tests.
3953 2008-01-11 Jürg Billeter <j@bitron.ch>
3955 * src/scannerlexer.l:
3956 Fix GTK-Doc parsing.
3958 2008-01-11 Jürg Billeter <j@bitron.ch>
3960 * src/scannerlexer.l:
3961 Fix GTK-Doc parsing.
3963 2008-01-11 Jürg Billeter <j@bitron.ch>
3965 * src/scanner.c: (lookup_symbol):
3966 Return unresolved name if we find unknown symbol.
3968 2008-01-11 Jürg Billeter <j@bitron.ch>
3970 * src/scanner.c: (g_igenerator_generate):
3971 Initialize GObject to fix scanning interface properties.
3973 * tests/parser/Foo-expected.gidl:
3974 * tests/parser/foo-object.h:
3975 * tests/parser/foo.c: (foo_interface_get_type):
3976 Test interfaces with GObject prerequisite.
3978 * tests/parser/Makefile.am:
3979 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
3981 2007-12-27 Johan Dahlin <johan@gnome.org>
3983 * src/scannerlexer.l:
3984 Parse gtk-doc comments.
3986 * src/gidlwriter.c: (function_generate):
3987 Reorganize, avoid duplication and add support for
3988 writing deprecated functions.
3990 * src/scannerparser.y:
3992 Add new structure CDirective and functions to create/free them.
3994 * src/scanner.c: (g_igenerator_process_function_symbol),
3995 (g_igenerator_process_unregistered_struct_typedef),
3996 (g_igenerator_process_struct_typedef),
3997 (g_igenerator_process_union_typedef),
3998 (g_igenerator_process_enum_typedef),
3999 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4000 (g_igenerator_start_preprocessor):
4001 Parse @deprecated directive for functions.
4002 Remove some more C99isms.
4003 Send in -C to cpp to avoid stripping comments.
4005 * tests/parser/foo-object.h:
4006 * tests/parser/Foo-expected.gidl:
4007 Add deprecated directive
4009 2007-12-27 Johan Dahlin <johan@gnome.org>
4011 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4012 escape ' and " so it looks more like C.
4015 Unlink temporary file used.
4017 2007-12-27 Johan Dahlin <johan@gnome.org>
4019 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4020 (g_igenerator_start_preprocessor), (main):
4022 * src/scannerparser.y:
4023 Plug a couple of simple memory leaks.
4025 2007-12-27 Johan Dahlin <johan@gnome.org>
4027 * src/scanner.c: (g_igenerator_parse_macros),
4028 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4031 * src/scannerparser.y:
4032 * tests/parser/Makefile.am:
4034 Improve error reporting, return when the preprocessor fails.
4035 Add a verbose parameter, to aid debugging.
4036 Revert to using a temporary file to communicate between the
4037 preprocessor and the parser, because we need to wait for
4038 the exit code from the pre-processor before starting to parse.
4040 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4042 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4043 cparser.y to scannerparser.y
4045 2007-12-11 Johan Dahlin <johan@gnome.org>
4049 * src/scanner.c: (g_igenerator_new):
4051 Get rid of the global the_generator variable.
4053 2007-12-10 Johan Dahlin <johan@gnome.org>
4055 * src/scanner.c (main): Add an output option,
4056 add checks for required parameters
4059 set BUILD_SOURCES and CLEANFILES properly
4061 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4062 (g_writer_write_indent), (g_writer_write_unindent),
4063 (field_generate), (value_generate), (constant_generate),
4064 (property_generate), (function_generate), (vfunc_generate),
4065 (signal_generate), (interface_generate), (struct_generate),
4066 (union_generate), (boxed_generate), (enum_generate),
4067 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4069 * src/scanner.c: (g_igenerator_generate):
4071 * src/scannerwriter.c:
4073 Refactor scannerwriter to only be tied to a GIdlModule and move
4074 it (again!) to gidlwriter.c. Change the writer function to take
4077 2007-12-10 Johan Dahlin <johan@gnome.org>
4080 * src/scanner.c: (g_igenerator_generate):
4082 * src/scannerwriter.c: (g_igenerator_write_inline),
4083 (g_igenerator_write), (g_igenerator_write_indent),
4084 (g_igenerator_write_unindent), (field_generate), (value_generate),
4085 (constant_generate), (property_generate), (function_generate),
4086 (vfunc_generate), (signal_generate), (interface_generate),
4087 (struct_generate), (union_generate), (boxed_generate),
4088 (enum_generate), (node_generate), (module_generate),
4089 (g_scanner_write_file):
4091 Move the scanner gidl writing to a separate source file.
4093 2007-12-10 Johan Dahlin <johan@gnome.org>
4098 Move over all CType construction functions.
4100 * tests/parser/Makefile.am:
4101 Be verbose when printing parsing tests results.
4103 2007-12-10 Johan Dahlin <johan@gnome.org>
4105 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4106 preprocessor handling to here. Start cpp insteado of cc -E,
4107 always include -U__GNUC__, since it's specific to the preprocessor
4110 * tests/parser/Makefile.am (check-local): Silent diff and skip
4111 -U__GNUC__ which is always defined now
4113 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4115 reviewed by: <delete if not using a buddy>
4117 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4118 * tests/parser/Makefile.am:
4120 2007-12-09 Johan Dahlin <johan@gnome.org>
4123 Use GOption for command line options.
4124 (g_igenerator_new, main): Simplify constructor and they way
4125 parameters are passed into it.
4131 * src/gen-introspect.c:
4132 * src/gen-introspect.h:
4134 Rename gen-introspect.[ch] to scanner.[ch]
4136 2007-12-09 Johan Dahlin <johan@gnome.org>
4140 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4141 don't make the repository library and the other utilites link against
4144 * src/gen-introspect.c: (g_igenerator_create_object),
4145 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4146 (g_igenerator_create_enum), (g_igenerator_create_flags),
4147 (g_igenerator_process_module_symbol),
4148 (g_igenerator_process_module), (g_igenerator_generate), (main):
4149 * src/gen-introspect.h:
4150 Refactor g_igenerator_process_types into smaller pieces.
4152 * tests/parser/Makefile.am:
4153 Depend on the gen-introspect binary
4155 2007-12-09 Johan Dahlin <johan@gnome.org>
4157 * src/gen-introspect.c (g_igenerator_process_types):
4158 Break into smaller pieces, one for each generated node type.
4160 2007-12-08 Johan Dahlin <johan@gnome.org>
4162 * src/gen-introspect.c: (g_igenerator_process_types),
4163 (g_igenerator_add_module):
4164 * tests/parser/Foo-expected.gidl:
4165 * tests/parser/foo-object.h:
4166 * tests/parser/foo.c: (foo_subobject_class_init),
4167 (foo_subobject_init):
4169 Add a subobject test and make sure to register defined classes
4170 in the lookup symbol hash table.
4172 2007-12-08 Johan Dahlin <johan@gnome.org>
4176 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4177 (g_igenerator_process_types), (g_igenerator_add_module),
4178 (g_igenerator_add_include_idl), (main):
4179 * src/gen-introspect.h:
4180 * tests/parser/Makefile.am:
4181 * tests/parser/Foo-expected.gidl:
4183 Change the gen-introspect to generate namespaced module names,
4184 such as GLib.Object instead of GObject.
4185 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4186 add a --include-idl parameter to gen-introspect,
4187 and update the parser test.
4189 2007-12-08 Johan Dahlin <johan@gnome.org>
4191 * src/gen-introspect.c:
4192 Move main to the end of the file and attempt to make it valid
4195 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4196 we're not quite ready to generate metadata yet.
4201 Add a simple gen-introspect parser test
4203 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4205 reviewed by: Johan Dahlin <johan@gnome.org>
4208 * gobject-introspection.pc.in:
4210 * src/compiler.c: (format_output), (write_out_metadata), (main):
4211 * src/gen-introspect.c: (main):
4212 * src/gen-introspect.h:
4213 * src/generate.c: (write_callable_info), (write_repository),
4214 (load_metadata), (main):
4215 * src/gidlmodule.c: (g_idl_module_new),
4216 (g_idl_module_build_metadata):
4218 * src/gidlparser.c: (start_element_handler):
4219 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4220 (g_base_info_get_name), (g_base_info_get_namespace),
4221 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4222 (g_base_info_get_metadata), (g_function_info_get_symbol),
4223 (g_function_info_get_flags), (g_function_info_get_property),
4224 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4225 (g_callable_info_may_return_null),
4226 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4227 (g_callable_info_get_arg), (g_arg_info_get_direction),
4228 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4229 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4230 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4231 (g_type_info_get_tag), (g_type_info_get_param_type),
4232 (g_type_info_get_interface), (g_type_info_get_array_length),
4233 (g_type_info_is_zero_terminated),
4234 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4235 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4236 (g_value_info_get_value), (g_field_info_get_flags),
4237 (g_field_info_get_size), (g_field_info_get_offset),
4238 (g_registered_type_info_get_type_name),
4239 (g_registered_type_info_get_type_init),
4240 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4241 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4242 (find_method), (g_struct_info_find_method),
4243 (g_enum_info_get_n_values), (g_enum_info_get_value),
4244 (g_object_info_get_parent), (g_object_info_get_type_name),
4245 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4246 (g_object_info_get_interface), (g_object_info_get_n_fields),
4247 (g_object_info_get_field), (g_object_info_get_n_properties),
4248 (g_object_info_get_property), (g_object_info_get_n_methods),
4249 (g_object_info_get_method), (g_object_info_find_method),
4250 (g_object_info_get_n_signals), (g_object_info_get_signal),
4251 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4252 (g_object_info_get_n_constants), (g_object_info_get_constant),
4253 (g_interface_info_get_n_prerequisites),
4254 (g_interface_info_get_prerequisite),
4255 (g_interface_info_get_n_properties),
4256 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4257 (g_interface_info_get_method), (g_interface_info_find_method),
4258 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4259 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4260 (g_interface_info_get_n_constants),
4261 (g_interface_info_get_constant), (g_property_info_get_flags),
4262 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4263 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4264 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4265 (g_constant_info_get_value), (g_union_info_get_n_fields),
4266 (g_union_info_get_field), (g_union_info_get_n_methods),
4267 (g_union_info_get_method), (g_union_info_is_discriminated),
4268 (g_union_info_get_discriminator_offset),
4269 (g_union_info_get_discriminator):
4270 * src/ginvoke.c: (g_function_info_invoke):
4271 * src/girepository.c: (g_irepository_register),
4272 (g_irepository_unregister), (g_irepository_get_default),
4273 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4274 (g_irepository_get_info), (g_irepository_find_by_name),
4275 (g_irepository_get_shared_library),
4276 (g_irepository_build_search_path), (g_irepository_register_file),
4277 (g_irepository_error_quark):
4278 * src/girepository.h:
4279 * src/gmetadata.c: (g_metadata_get_dir_entry),
4280 (g_metadata_check_sanity), (validate_header),
4281 (validate_array_type_blob), (validate_iface_type_blob),
4282 (validate_param_type_blob), (validate_error_type_blob),
4283 (validate_type_blob), (validate_arg_blob),
4284 (validate_signature_blob), (validate_function_blob),
4285 (validate_callback_blob), (validate_constant_blob),
4286 (validate_value_blob), (validate_field_blob),
4287 (validate_property_blob), (validate_signal_blob),
4288 (validate_vfunc_blob), (validate_struct_blob),
4289 (validate_enum_blob), (validate_object_blob),
4290 (validate_interface_blob), (validate_errordomain_blob),
4291 (validate_union_blob), (validate_blob), (validate_directory),
4292 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4293 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4294 (g_metadata_new_from_mapped_file), (g_metadata_free),
4295 (g_metadata_set_module), (g_metadata_get_namespace):
4297 * tests/Makefile.am:
4298 * tests/invoke/Makefile.am:
4299 * tests/invoke/invoke-namespace-find.sh:
4300 * tests/invoke/invoke.c: (main):
4302 Add a namespace/shared library mapping. fixes #313268.
4304 2007-12-03 Johan Dahlin <johan@gnome.org>
4306 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4309 2007-11-30 Jürg Billeter <j@bitron.ch>
4315 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4316 (g_igenerator_write_inline), (g_igenerator_write),
4317 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4318 (field_generate), (value_generate), (constant_generate),
4319 (property_generate), (function_generate), (vfunc_generate),
4320 (signal_generate), (interface_generate), (struct_generate),
4321 (union_generate), (boxed_generate), (enum_generate),
4322 (node_generate), (module_generate), (get_type_from_type_id),
4323 (str_replace), (g_igenerator_process_properties),
4324 (g_igenerator_process_signals), (g_igenerator_process_types),
4325 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4326 (g_igenerator_process_unregistered_struct_typedef),
4327 (g_igenerator_process_struct_typedef),
4328 (g_igenerator_process_union_typedef),
4329 (g_igenerator_process_enum_typedef),
4330 (g_igenerator_process_function_typedef),
4331 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4332 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4333 (g_igenerator_generate), (main), (csymbol_new),
4334 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4335 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4336 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4337 (eat_hspace), (eat_line), (read_identifier),
4338 (g_igenerator_parse_macros):
4339 * src/gen-introspect.h:
4341 Import gen-introspect to generate introspection information by
4344 2007-11-30 Jürg Billeter <j@bitron.ch>
4346 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4348 2007-11-30 Jürg Billeter <j@bitron.ch>
4350 * src/gidlparser.c: (end_element_handler): Don't leave requires
4353 2007-11-29 Johan Dahlin <johan@gnome.org>
4355 * src/gidlparser.c (parse_type_internal): Add char,
4356 gchar and guchar to the builtin types.
4358 2007-11-26 Johan Dahlin <johan@gnome.org>
4360 * src/ginfo.c: (g_object_info_get_type_name),
4361 (g_object_info_get_type_init):
4362 * src/girepository.c: (g_irepository_is_registered):
4363 * src/girepository.h:
4365 Add g_object_info_get_type_name, g_object_info_get_type_init and
4366 g_irepository_is_registered.
4368 2006-08-14 Jürg Billeter <j@bitron.ch>
4370 * src/gidlparser.c: (end_element_handler): Don't leave
4371 namespace and implements states too early.
4374 2007-11-26 Johan Dahlin <johan@gnome.org>
4376 * src/gmetadata.c (validate_struct_blob):
4377 pass blob_type to validate_function_blob instead of
4378 hard-coding BLOB_TYPE_STRUCT.
4380 Patch by Torsten Schoenfeld, fixes #314190
4382 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
4384 * src/compiler.c, src/generate.c, src/gidlnode.c,
4385 src/gidlparser.c, src/ginfo.c, src/girepository.c,
4386 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
4387 warnings about return values, signedness mismatches, unused
4388 variables, and unhandles enum values in switch statements.
4390 * tests/invoke/Makefile.am: Don't install the invoke test program.
4391 Add -I ../../src to the cflags used for the test functions files.
4393 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4395 * src/girepository.h: Export g_invoke_error_quark.
4397 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4399 * src/ginvoke.c: Remove the fallback implementation of
4400 g_function_info_invoke since we now formally depend on libffi.
4402 2005-07-25 Matthias Clasen <mclasen@redhat.com>
4404 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
4405 Remove these files from cvs, as they are now generated.
4407 * src/gmetadata.c (validate_iface_type_blob): Don't
4408 complain if blob->pointer is not set, since that
4409 happens for enum and flag types. (#308935, Gustavo
4412 * Commit an autoconf-conversion patch by
4413 Gustavo Carneiro (#308708)
4415 2005-05-24 Matthias Clasen <mclasen@redhat.com>
4417 * src/compiler.c (main): Use it here to validate
4418 the generated metadata.
4420 * src/gmetadata.[hc]: Add code to validate a
4423 * metadata-format.txt: Updates
4425 2005-05-22 Matthias Clasen <mclasen@redhat.com>
4427 * tests/*: Add struct offsets to field and vfunc
4430 * src/generate.c (write_vfunc_info): Write offset
4431 information for vfuncs.
4433 * src/gidlnode.c (g_idl_node_build_metadata): Write
4434 the struct offsets into the metadata.
4436 * src/gidlparser.c: Parse the offset attributes of
4437 field and vfunc elements.
4439 * src/gidlnode.h: Add offset members to field and
4442 2005-05-21 Matthias Clasen <mclasen@redhat.com>
4446 * gidl.dtd: Updates.
4448 * src/g-idl-offsets.pl: A perl script which reads a .gidl
4449 file, creates, compiles and runs a C file, and folds the
4450 resulting struct offsets back into the .gidl file.
4452 2005-05-20 Matthias Clasen <mclasen@redhat.com>
4454 * src/gidlparser.c (start_field): Make fields in objects
4457 * src/gidlmodule.c: Include string.h
4462 * metadata-format.txt: Cleanup basic types.
4463 * src/*: Adapt to the changes.
4464 * tests/*: Adapt to the changes.
4465 * examples/gdk-pixbuf.gidl: Adapt to the changes.
4467 * src/gidlnode.c (g_idl_node_get_size): Report the correct
4468 size for enum blobs.
4469 (g_idl_node_get_full_size): Report the correct size for
4472 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
4473 error checking for blob sizes.
4475 2005-05-19 Matthias Clasen <mclasen@redhat.com>
4477 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
4478 interface types for which is_pointer is FALSE, e.g. enums.
4480 * src/gidlnode.c (g_idl_node_get_full_size)
4481 * src/gidlparser.c (parse_type_internal):
4482 * src/generate.c (write_type_info): Support unspecialized
4483 lists, hashtables and errors. Also emit a '*' after these.
4487 2005-05-17 Matthias Clasen <mclasen@redhat.com>
4491 * metadata-format.txt: Cleanups by Maciej Katafiasz.
4493 2005-05-15 Matthias Clasen <mclasen@redhat.com>
4495 * src/*.c: Change the directory to be addressed by
4496 1-based indexes, and use an index of zero to mean
4499 2005-05-15 Matthias Clasen <mclasen@redhat.com>
4501 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
4503 * tests/union.test: Add a union test.
4505 * src/generate.c: Handle unions.
4507 * src/girepository.h:
4508 * src/ginfo.c: Add GIUnionInfo and functions to access it.
4510 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
4512 * src/gidlparser.c (start_union): Parse <union> elements.
4514 * src/gidlnode.h: Add a GIdlNodeUnion.
4516 * gidl.dtd: Add a <union> element.
4518 * src/gmetadata.c (g_metadata_check_sanity): Check
4521 * src/gmetadata.h: Add union_blob_size to Header,
4524 * metadata-format.txt: Add a UnionBlob.
4526 2005-05-13 Matthias Clasen <mclasen@redhat.com>
4528 * tests/*: Update testcases.
4530 * src/generate.c (write_callable_info): Don't forget to
4531 write transfer and null-ok attributes for return types
4534 * src/girepository.h:
4535 * src/ginfo.c (g_callable_info_may_return_null):
4536 New function to find out if a function may return NULL.
4538 * src/compiler.c (format_output): Make the generated
4541 * README: Point to a recent libffi snapshot.
4543 * tests/invoke/*: Some invoke tests.
4545 * src/Makefile: Add ginvoke.c and the necessary
4548 * src/girepository.h (g_function_info_invoke): Add
4551 * src/ginvoke.c (g_function_info_invoke): Initial
4552 implementation of invoke functionality based on libffi.
4554 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
4555 strings and types hash tables in the right order when
4557 (find_entry_node): Free the name parts.
4559 2005-05-12 Johan Dahlin <johan@gnome.org>
4561 * src/generate.c: Generate consistent end tags.
4565 2005-05-12 Matthias Clasen <mclasen@redhat.com>
4569 * src/gidlparser.c (start_function): Actually add
4570 methods to objects. (Steven Walter)
4572 * src/girepository.h:
4573 * src/ginfo.c: Rename Transfer and Direction to
4574 GITransfer and GIDirection. (Torsten Schoenfeld)
4576 * tests/*: Make tests work with the changes in name
4579 * src/gidlnode.c (find_entry_node): Parse qualified
4580 names and generate xref nodes for them if needed. Don't
4581 require all modules to be loaded any more.
4583 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
4586 * src/ginfo.c (g_object_info_get_parent): Return NULL
4587 if blob->parent is 0. Still need to make sure index
4590 * src/generate.c: Generate qualified names when
4591 referring to non-local types. Emit transfer attribute
4594 * src/compiler.c (format_output): Put the function
4595 attributes where gcc accepts them.
4597 2005-05-11 Matthias Clasen <mclasen@redhat.com>
4599 * src/compiler.c (main): Add a --verbose cmdline option
4600 and only log messages if it is specified.
4603 * src/gidlnode.c (init_stats, dump_stats): Collect some
4604 statistics on string and type sharing.
4606 * src/gidlmodule.c (g_idl_module_build_metadata): Use
4607 g_message() instead of fprintf().
4609 * src/gidlnode.c (g_idl_node_free): Make this more robust.
4610 (g_idl_node_get_size): Implement for structs.
4611 (g_idl_node_get_full_size): Handle parent being NULL.
4612 (serialize_type): Handle lookup failures more gracefully.
4614 2005-05-10 Matthias Clasen <mclasen@redhat.com>
4616 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
4617 size calculation for 2-parameter types and for objects.
4619 * src/compiler.c: Add a cmdline option for debug output
4620 and install a log handler to implement it.
4621 * src/gidlnode.c: Add some debug spew.
4625 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
4626 forget to count the module name when calculating the
4627 required size for the metadata.
4630 * src/gidlparser.c: Fix compiler warnings.
4632 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4634 * src/compiler.c (main): Free the option context.
4636 * gidl.dtd: Clean up handling of names. All elements
4637 have a "name", only the elements corresponding to
4638 actual callable functions (function, method, constructor),
4639 have an additional "symbol" attribute holding the
4640 dlsym()-able function name.
4642 * src/generate.c: Adapt to generate xml matching the
4646 * src/gidlnode.c: Adapt to parse the new dtd.
4648 * tests/*.test: Adjust to the new dtd.
4650 * metadata-format.txt:
4651 * src/gmetadata.h: Remove the short_name field
4653 * src/gmetadata.c: Shrink size of ValueBlob to 12.
4654 * src/girepository.h:
4655 * src/ginfo.c (g_value_info_get_short_name): Removed
4657 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4659 * gidl.dtd: Allow constructors for boxed types,
4660 patch by Jonathan Blandford.
4663 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4665 * --- Initial import ---