1 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
3 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
6 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
8 Bug 558068 – when invoking a method, offset the in arguments by one,
11 * tests/invoke/invoke.c, tests/invoke/testfns.c,
12 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
13 * girepository/ginvoke.c: do not offset the index of given out
14 arguments by one for methods, "this" is provided as in argument only.
16 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
18 * gir/gio-2.0.c: add annotation for g_file_delete
20 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
22 Bug 558062 – provide and use paths in the .pc file
24 * gobject-introspection-1.0.pc.in: provide typelibdir variable
25 for where .typelibs should be installed (callers shouldn't need
26 to construct paths from bits and pieces)
28 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
30 Bug 557791 – g_irepository_require() could return a GTypelib *
32 * girepository/girepository.c: Return GTypelib; this is useful
33 for low level manipulation.
35 2008-10-25 Colin Walters <walters@verbum.org>
37 Bug 557788 – Return types for constructors in generated typelib bogus
39 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
40 rely on end pass resolution.
42 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
44 Bug 557786 - support fixed size arrays
46 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
47 * giscanner/scannerparser.y: Retain fixed array size.
48 * giscanner/ast.py: Add to note.
49 * giscanner/girwriter.py: Write to gir.
50 * girepository/girnode.c: Write it to typelib.
51 * tools/generate.c: Generate.
54 2008-10-25 Colin Walters <walters@verbum.org>
56 Bug 557076 - move typelibs to $libdir
58 * configure.ac: Steal some configury bits from dbus to expand
60 * gir/Makefile.am: Move to libdir.
61 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
62 instead just look at one hardcoded path in libdir.
63 * acinclude.m4: Bits from dbus.
65 2008-10-24 Johan Dahlin <johan@gnome.org>
67 * girepository/girnode.c (g_ir_node_check_unhandled_members):
68 Be quiet, do not warn about unhandled members.
70 2008-10-24 Johan Dahlin <johan@gnome.org>
72 * girepository/gtypelib.c:
73 Only use SHLIB_SUFFIX on darwin, otherwise use
74 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
76 2008-10-24 Lucas Rocha <lucasr@gnome.org>
78 Bug 557623 - Constructors shouldn't be flagged as methods.
80 * girepository/ginfo.c (g_function_info_get_flags): ditto.
82 2008-10-24 Johan Dahlin <johan@gnome.org>
84 * giscanner/scannerparser.y:
85 Check against division by zero for the modula operator.
86 This fixes header parsing of OSX system headers included
89 2008-10-24 Johan Dahlin <johan@gnome.org>
93 Add a CONTRIBUTORS file and dist it.
95 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
97 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
99 * girepository/girparser.c (parse_param_transfer):
100 * giscanner/transformer.py (_create_parameter, _create_return):
101 * giscanner/girwriter.py (_write_return, _write_parameter):
102 * tools/generate.c (write_callable_info): always write and
103 require "transfer-ownership" for return-values and parameters
106 * tests/invoke/testfns-1.0.gir:
108 * tests/scanner/DrawableAdditions.xml:
109 * tests/scanner/GtkFrob-1.0-expected.tgir:
110 * tests/scanner/annotation-1.0-expected.tgir:
111 * tests/scanner/drawable-1.0-expected.tgir:
112 * tests/scanner/drawable-injected-1.0-expected.gir:
113 * tests/scanner/drawable-injected-1.0-expected.tgir:
114 * tests/scanner/foo-1.0-expected.tgir: Updated
116 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
118 * giscanner/cgobject.py: build fundamental types same way as glib
120 * giscanner/glibtransformer.py (_type_from_gtype): record GType
121 when constructing the Type from it
123 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
124 the parameter is a GObject from its GType, if available.
126 * giscanner/glibtransformer.py (_adjust_transfer):
127 * tests/scanner/foo-1.0-expected.gir:
128 * tests/scanner/foo-1.0-expected.tgir: deduce
129 transfer-ownership from GTypes
131 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
133 * giscanner/transformer.py (_create_parameter):
134 * tests/scanner/foo-1.0-expected.gir: make varargs
135 transfer-ownership="none"
137 2008-10-23 Colin Walters <walters@verbum.org>
139 Bug 556739 - transfer ownership
141 * giscanner/ast.py: Refactor Parameter/Return to share
142 common attributes. Add transfer_inferred attribute
143 which says whether or not we made a guess.
144 * giscanner/transformer.py: Add much more extensive
145 heuristics around parameter and return transfer.
146 * giscanner/glibtransformer.py: Adjust to inspect
150 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
152 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
154 * tests/scanner/Makefile.am:
155 * tests/scanner/annotation-1.0-expected.tgir:
156 * tests/scanner/drawable-1.0-expected.tgir:
157 * tests/scanner/drawable-injected-1.0-expected.tgir:
158 * tests/scanner/foo-1.0-expected.tgir:
159 * tests/scanner/GtkFrob-1.0-expected.tgir:
160 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
161 annotations survive the roundtrip via typelib
163 The expectations are as currently produced by g-ir-generate,
164 comparison with the .gir files shows there are differences.
166 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
168 Bug 557468 – Support for GI_TYPELIB_PATH
170 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
171 provided paths to the global search path.
173 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
175 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
177 * tests/scanner/drawable-1.0-expected.tgir:
178 * tests/scanner/drawable-injected-1.0-expected.tgir:
179 * tests/scanner/foo-1.0-expected.tgir:
180 * tools/generate.c (write_object_info): write 'abstract'
181 attribute for classes
183 2008-10-22 Lucas Rocha <lucasr@gnome.org>
185 * girepository/girmodule.c, girepository/gtypelib.c,
186 girepository/girparser.[ch]: fix some build warnings.
188 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
190 Bug 557405 – Use 'allow-none' consistently
192 * docs/typelib-format.txt:
193 * girepository/ginfo.c (g_arg_info_may_be_null):
194 * girepository/girnode.c (g_ir_node_build_typelib):
195 * girepository/girnode.h (struct _GIrNodeParam):
196 * girepository/girparser.c (start_parameter):
197 * girepository/girwriter.c (function_generate):
198 * girepository/gtypelib.h (ArgBlob):
200 * tests/function.gir:
201 * tools/generate.c (write_callable_info): Use 'allow-none'
202 consistently throughout
204 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
206 Bug 557092 – Callback annotations not used
208 * giscanner/transformer.py (_create_callback): use annotations
210 * tests/scanner/annotation.h
211 * tests/scanner/annotation-1.0-expected.gir: add tests
213 2008-10-21 Colin Walters <walters@verbum.org>
215 * giscanner/scannerlexer.l: Don't require trailing whitespace after
216 uncommented parameters.
219 2008-10-21 Colin Walters <walters@verbum.org>
221 * girepository/girepository.c: Ensure that when doing an unversioned
222 require, we prefer items earlier in the search path to later ones.
224 2008-10-21 Owen Taylor <otaylor@redhat.com>
226 * giscanner/transformer.py: For string parameters allow transfer annotation
227 to override the standard automatic guessing based on 'const'.
229 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
231 Bug 557241 – "throws" flag for functions
233 * tests/scanner/drawable-1.0-expected.gir,
234 tests/scanner/drawable-injected-1.0-expected.gir,
235 tests/scanner/drawable.[ch]: add simple test for throwing
236 function (has GError ** as last argument)
238 * giscanner/ast.py: add a 'throws' flag to Function
239 * giscanner/glibtransformer.py: if a function's last paramerter is
240 a GError, set the 'throws' flag and remove that parameter
241 * giscanner/girwriter.py: write out the 'throws' attribute
242 * giscanner/girparser.py: support parsing the 'throws' attribute
244 * tests/repository/gitestthrows.c: add a simple test to check the
245 throws flag in a typelib and invoke the function
247 * girepository/ginfo.c, girepository/girnode.[ch],
248 girepository/girnode.h, girepository/girparser.c,
249 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
251 * girepository/ginvoke.c: if a function throws, add a GError as last
252 arguments, and propagate the error to the invoker.
254 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
256 * giscanner/transformer.py (_create_parameters): Warn if we see
257 annotations for unknown parameters. If .h and .c files name
258 parameters differently, the annotations may be lost.
260 2008-10-21 Johan Dahlin <johan@gnome.org>
262 Bug 556358 - don't use libtool internals
264 * giscanner/Makefile.am:
265 * giscanner/libtoolimporter.py:
266 * giscanner/sourcescanner.py:
267 * giscanner/utils.py:
268 Add a python meta importer and remove a libtool symlink hack.
270 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
272 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
273 and --add-include-path appropriately when invoking the scanner.
274 * tests/types/Makefile.am (%typelib): Likewise.
276 2008-10-20 Colin Walters <walters@verbum.org>
278 Bug 556777 - validate properties
280 * giscanner/transformer.py: Add option to throw on unknown types.
281 * giscanner/glibtransformer.py: Use it on properties.
282 * tests/*: Add a test.
284 2008-10-20 Colin Walters <walters@verbum.org>
286 * giscanner/glibast.py: Also register g variants of
287 default_array_types. This is not beautiful, but
288 good alternatives aren't easy to come by.
289 This fixes gchar ** parsing.
291 2008-10-20 Colin Walters <walters@verbum.org>
293 * docs/typelib-format.txt, girepository/gtypelib.h:
294 Take a bit from ObjectInfo to represent abstract flag.
295 * giscanner/cgobject.py: Expose g_type_get_flags.
296 * girepository/girepository.h: Add accessor.
297 * girepository/ginfo.c: Implement it.
298 * giscanner/ast.py: Add is_abstract flag to generic
300 * giscanner/glibast.py: Use it.
301 * giscanner/girwriter.py: Write it.
302 * girepository/girparser.c: Parse it.
305 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
307 * giscanner/girparser.py (_parse_function): don't lose
308 'transfer-ownership' attributes when injecting, check for the
311 2008-10-19 Johan Dahlin <johan@gnome.org>
313 * giscanner/scannerlexer.l: Parse and ignore __asm.
315 2008-10-19 Colin Walters <walters@verbum.org>
317 * giscanner/girparser.py: Parse array length= to ensure
318 it doesn't get lost from --inject.
320 2008-10-17 Colin Walters <walters@verbum.org>
322 Bug 556795 - char ** regression
324 * giscanner/transformer.py: Fix parsing of ctypes, add some
325 comments about what's going on.
326 * tests/*: Add a test for char **.
328 2008-10-17 Colin Walters <walters@verbum.org>
330 Bug 556783 - change namespace handling to be more consistent
332 * giscanner/transformer.py: Eliminate usage of
333 strip_namespace_object. We now treat --namespace as the default
334 --strip-prefix; however, if --strip-prefix is specified it
335 overrides --namespace. This applies to everything except function
336 names, where we do also strip the namespace.
337 * giscanner/glibtransformer.py: Remove usage of
338 strip_namespace_object.
340 * tests/*: Add skeletal GtkFrob-1.0 test which has different
341 --namespace and --strip-prefix.
343 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
345 Bug 556732 – generate gir files consistently
347 * girepository/girparser.c (start_parameter):
349 * tests/invoke/testfns-1.0.gir:
350 * tools/generate.c (write_callable_info): write
351 'transfer-ownership' attribute consistently with both
352 return-value and parameter elements
354 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
356 Bug 556732 – generate gir files consistently
358 * tools/generate.c (write_callable_info): write 'direction'
359 attribute only if other than 'in' to be consistent with
362 * tests/object.gir: remove direction="in" which is the default
364 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
366 Bug 556732 – generate gir files consistently
368 * giscanner/ast.py (Field): add readable and writable properties
369 * giscanner/girparser.py (_parse_field): copy 'readable' and
370 'writable' attributes
371 * giscanner/transformer.py (_create_member): create fields as
373 * giscanner/glibtransformer.py (_introspect_object,
374 _pair_class_struct): make object instance and class fields
376 * giscanner/girwriter.py (_write_field):
377 * tools/generate.c (write_field_info): write field 'readable'
378 and 'writable' attributes only if non-default (read-only)
379 * girepository/girparser.c (start_field): in the absence of
380 attributes assume fields are read-only
382 * tests/struct.gir: remove redundant readable="1" from fields
383 * tests/scanner/foo-1.0-expected.gir:
384 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
385 all record and union fields
387 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
389 Bug 556732 – generate gir files consistently
391 * giscanner/girwriter.py (_write_property): write properties
392 'construct' attribute if set
393 * tools/generate.c (write_property_info): write properties
394 'readable' and 'writable' attributes only if non-default
395 * tests/object.gir: add writable="0"
396 * tests/scanner/foo-1.0-expected.gir: add construct="1"
398 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
400 * gir/glib-2.0.c: added annotations
402 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
404 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
407 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
409 Bug 556610 – giscanner/girparser.py drops parameter options
411 * tests/scanner/drawable-injected-1.0-expected.gir,
412 tests/scanner/DrawableAdditions.xml: added simple test for injection.
413 * giscanner/ast.py: allow Parameter to take options in the constructor
414 * giscanner/girparser.py: parse parameter options (transfer,
415 direction, allow-none)
417 2008-10-16 Colin Walters <walters@verbum.org>
419 Bug 556185 - segfault on g_callable_info_get_return_type
421 Initial patch from John Ehresman.
423 * tests/repository/*: Add a test using
424 g_callable_info_get_return_type. Instead of casting a
425 GITypeInfo directly to a GIRegisteredTypeInfo, we need
426 to call g_type_info_get_interface.
428 2008-10-16 Colin Walters <walters@verbum.org>
430 Bug 556579 - union and struct name misresolved
432 * giscanner/transformer.py: The calls to _resolve_type_name
433 for struct/union names was a legacy holdover from when type
434 resolution had multiple phases. Now it's actively harmful
435 since we might pull in an identical name from another
439 2008-10-16 Colin Walters <walters@verbum.org>
441 Bug 556432 - transfer annotations and defaults
443 * giscanner/transformer.py: Canonicalize type
444 after removing *, not before. This ensures that
445 guchar* is transformed to 'uint8'.
446 Add some comments here.
447 * giscanner/glibtransformer.py: Add _adjust_transfer
448 phase for tweaking GObject transfers.
451 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
453 * configure.ac: enable bunch of gcc warning CFLAGS
455 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
457 Bug 556543 – reduce compiler warnings
459 * girepository/ginfo.c:
460 * girepository/girepository.c (register_internal,
461 count_interfaces, find_interface, find_namespace_version,
462 parse_version, g_irepository_require):
463 * girepository/girmodule.c (g_ir_module_build_typelib):
464 * girepository/girnode.c (init_stats, dump_stats,
465 _g_irnode_init_stats, _g_irnode_dump_stats,
466 g_ir_node_can_have_member):
467 * girepository/girparser.c (firstpass_end_element_handler,
468 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
469 start_alias, start_type, end_type_top, parse_include, cleanup,
471 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
472 * giscanner/giscannermodule.c (directive_get_options,
473 type_get_child_list):
474 * giscanner/scannerlexer.l (parse_gtkdoc):
475 * giscanner/scannerparser.y (ctype_free):
476 * giscanner/sourcescanner.c:
477 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
478 * tests/types/gitesttypes.c:
479 * tools/compiler.c (main):
480 * tools/generate.c (write_repository): Remove unused variables
481 and code, add missing includes, declarations and case
484 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
486 Bug 556541 – access union members through UnionBlob rather than
489 * girepository/ginfo.c (g_union_info_find_method): access union
490 members through UnionBlob rather than StructBlob
492 2008-10-15 Colin Walters <walters@verbum.org>
494 Bug 556331 - clean up includes handling
496 * tools/g-ir-scanner: Rework command line arguments; now we take
497 --add-include-path and --include separately.
498 * giscanner/girwriter.py: Separate name= and version= in include
500 * giscanner/ast.py: Add Include type.
501 * giscanner/transformer.py: Cleanups to register_include now that
502 we don't need to handle mixed filenames and relative arguments.
503 * girepository/girparser.c: Parse name and version separately;
504 this fixes a bug as a side effect where we weren't resolving
505 through aliases for basic types.
506 * girepository/girepository.c: Fix format string args.
507 * gir/Makefile.am: Update.
510 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
512 Bug 556434 – unhandled interface/object/... member types
514 * girepository/girnode.c (g_ir_node_check_unhandled_members,
515 g_ir_node_build_typelib): Check all
516 interface/object/boxed/struct/union members are processed and
517 abort if they are not. (Mostly callbacks in structs, but also
518 fields in interfaces.)
520 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
522 * a/girepository/girnode.c (g_ir_node_build_members,
523 g_ir_node_build_typelib): refactor common code for processing
524 members to a function
526 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
528 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
529 transformation is lossless (it's not)
531 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
533 * tests/Makefile.am: fix tests to compare xml to xml instead of
534 typelib to xml, and stop on error
536 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
538 * tools/generate.c (write_type_name, write_type_info,
539 write_type_info, write_object_info, write_object_info,
540 write_interface_info, write_error_domain_info): reduce code
543 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
545 Bug 556174 – parse types for lists etc.
547 * girepository/girparser.c (end_type_recurse):
549 * tools/generate.c (write_type_info, write_field_info,
550 write_callable_info, write_callable_info, write_constant_info,
551 write_property_info): use nested <type>s for lists and hashes
553 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
556 * tests/object.gir: remove trailing whitespace from inside
557 elements to match g-ir-generate output
559 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
561 * tools/generate.c (xml_printf): quote printf arguments so that
562 we don't generate invalid XML by writing unescaped double quotes
563 and such in attributes
565 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
567 * tools/generate.c (write_field_info, write_callable_info,
568 write_function_info, write_callback_info, write_struct_info,
569 write_constant_value, write_signal_info, write_vfunc_info,
570 write_object_info, write_interface_info, write_union_info,
571 write_repository): remove unused indent parameters, xmlwriter
572 keeps track of necessary indentation
574 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
576 * tools/generate.c (xml_element_new, xml_element_free,
577 xml_start_element, xml_end_element, xml_end_element_unchecked,
578 xml_open, xml_close): Keep track of generated XML tree and
579 handle indentation and closing tags properly.
580 (write_field_info, write_callable_info, write_function_info,
581 write_callback_info, write_struct_info, write_value_info,
582 write_constant_info, write_enum_info, write_signal_info,
583 write_vfunc_info, write_property_info, write_object_info,
584 write_interface_info, write_error_domain_info, write_union_info,
585 write_repository): Use xml_start_element and xml_end_element to
588 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
590 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
591 (write_type_name, write_type_info, write_field_info,
592 write_callable_info, write_function_info, write_callback_info,
593 write_struct_info, write_value_info, write_constant_value,
594 write_constant_info, write_enum_info, write_signal_info,
595 write_vfunc_info, write_property_info, write_object_info,
596 write_interface_info, write_error_domain_info, write_union_info,
597 write_repository): wrap all FILE access to go through simple xmlwriter
599 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
601 Bug 556400 – Fails to build on OS X 10.4
603 * configure.ac: check for functions backtrace and backtrace_symbols
604 * girepository/girparser.c (backtrace_stderr): Comment out
605 implementation if the functions are not available.
606 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
607 directory for better portability
609 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
611 Bug 556433 – assume direction = out for int * parameters
613 * giscanner/ast.py: define a list of types for which, if passed as
614 reference, we assume a default direction of 'out'
615 * giscanner/transformer.py: if a type has type pointer to one of the
616 previously defined types, and no direction is set, assume out.
617 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
619 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
621 * tests/scanner/annotation.c: fixed a few copy-paste errors
623 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
625 Bug 556323 – transfer-ownership is wrong for functions returning const
628 * giscanner/transformer.py: check for a const string as return value,
629 not just const char*. Suggested by Colin Walters
630 * tests/scanner/annotation-1.0-expected.gir: updated expected output
632 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
634 * girepository/ginfo.c, girepository/girepository.h: add
635 g_union_info_find_method
637 2008-10-14 Colin Walters <walters@verbum.org>
639 * tests/repository/Makefile.am: Reenable repo test.
640 * tests/repository/gitestrepo.c: Prepend search
641 path for $(top_builddir)/gir dir so that we don't
642 require installation for "make check" to pass.
644 2008-10-13 Jürg Billeter <j@bitron.ch>
646 * giscanner/glibtransformer.py:
647 * tests/scanner/annotation-1.0-expected.gir:
648 * tests/scanner/drawable-1.0-expected.gir:
649 * tests/scanner/foo-1.0-expected.gir:
650 * tests/scanner/utility-1.0-expected.gir:
652 Support fields in GObject structs
654 2008-10-13 Jürg Billeter <j@bitron.ch>
656 * giscanner/ast.py: add signed integer and off_t to type_names
658 2008-10-12 Jürg Billeter <j@bitron.ch>
660 * giscanner/girparser.py: Parse bits attribute of fields
662 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
664 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
665 * tests/repository/gitestrepo.c (main): instantiate
666 'GCancellable' to ensure the GType is registered before using
669 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
671 * giscanner/girparser.py: actually add the parsed constant nodes
673 2008-10-12 Colin Walters <walters@verbum.org>
675 * girepository/girepository.c: Don't cast DirEntry to Blob,
676 actually look it up by offset.
678 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
680 * giscanner/girparser.py: parse constant nodes in gir files
682 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
684 * giscanner/transformer.py: prefix for constants have an underscore,
685 so remove them as if they were functions, not objects.
687 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
689 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
692 2008-10-12 Colin Walters <walters@verbum.org>
694 Initial patch from Jani Monoses.
696 * girepository/gtypelib.c: Fix inverted test for success
699 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
701 * tools/generate.c (write_callable_info): use "transfer-ownership"
702 attribute for return values
704 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
706 * tools/generate.c (write_callable_info): move "transfer" and
707 "null-ok" attributes from <function> to <return-value> element
709 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
711 * girepository/girparser.c (start_return_value): handle
712 "transfer-ownership" attribute
714 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
716 * girepository/girparser.c (parse_param_transfer):
717 * tools/generate.c (write_callable_info): use "container" for
718 container/shallow ownership transfer (not "shallow")
720 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
722 * girepository/girparser.c (parse_param_transfer,
723 start_parameter): Refactor handling of transfer=none/shallow/full
726 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
728 Bug 556048 – Crash in g_irepository_find_by_gtype
730 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
731 * girepository/girepository.c (find_interface): Fix
732 find_by_gtype case to get the type name from right offset
734 2008-10-12 Jürg Billeter <j@bitron.ch>
736 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
739 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
741 * girepository/gtypelib.h (RegisteredTypeBlob): make
742 'unregistered' one bit wide as everywhere else
744 2008-10-12 Jürg Billeter <j@bitron.ch>
746 * giscanner/glibtransformer.py:
747 * tests/scanner/annotation-1.0-expected.gir:
748 * tests/scanner/drawable-1.0-expected.gir:
749 * tests/scanner/drawable.h:
750 * tests/scanner/foo-1.0-expected.gir:
751 * tests/scanner/utility-1.0-expected.gir:
753 Readd class records as workaround to not break Gtk typelib
755 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
757 * tests/types/Makefile.am: fix typo in gitesttypes namespace
759 2008-10-12 Jürg Billeter <j@bitron.ch>
761 * giscanner/glibtransformer.py: Don't generate <record> elements
763 * tests/scanner/*: Update test cases
765 2008-10-11 Colin Walters <walters@verbum.org>
767 Bug 552858: versioning
769 This is a big patch. You should probably remove your installation
772 * docs/typelib-format.txt: Add nsversion entry which holds
773 version of namespace.
774 * girepository/girepository.h: Add 'version' parameter to
775 g_irepository_require. This may be NULL. Normally
776 bindings should pass an explicit version though.
777 * girepository/girepository.c: Lots of infrastructure to
778 support versioning. Add some more documentation. Disallow
779 some usage of NULL namespaces.
780 * girepository/girmodule.c: Add version parameter.
781 * girepository/gtypelib.c: Update header size.
782 * giscanner/ast.py: Add version to Namespace.
783 * giscanner/girparser.py: Parse version attribute from
784 XML, pass to Namespace.
785 * giscanner/girwriter.py: Write out version parameter.
786 * giscanner/transformer.py: Clean up include registration.
787 * tests/*: Add version attribute.
788 * tests/invoke/invoke.c: Don't try looking up test before
789 it's loaded in repository.
790 * tools/generate.c: Output version parameter.
791 * gir/Makefile.am: Add 2.0 version to .gir files.
793 2008-10-11 Colin Walters <walters@verbum.org>
795 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
796 if we have mismatched parens.
798 2008-10-11 Lucas Rocha <lucasr@gnome.org>
800 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
801 on 'members' variable.
803 2008-10-11 Colin Walters <walters@verbum.org>
805 Bug 555947 - update annotations syntax
807 * giscanner/ast.py: Default to None for transfer. Remove
808 default transfers for container types; we require this to
810 * giscanner/girwriter.py: Transfer is now 'none', 'container',
811 'full' to match repository.
812 * giscanner/scannerlexer.l: Annotations now are parenthesized.
813 * giscanner/transformer.py: Update for new annotations syntax.
816 2008-10-11 Johan Bilien <jobi@litl.com>
818 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
820 2008-10-11 Johan Bilien <jobi@litl.com>
822 Bug 552347: Parse #defines constants
824 * girepository/gtypelib.c: update the list of value_size
825 with recently defined type tags
826 * giscanner/scannerparser.y: brought back parsing of #defined, as
827 present in older version
828 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
829 * giscanner/girwriter.py: write out constant tags in the gir
830 * giscanner/sourcescanner.py: add accessor for const_string
831 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
834 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
836 Bug 555946: Install a test module exercising all types, transfer
841 * tests/types/*: Add and install a test module that has functions
842 accepting and returning most of the basic types to enable bindings
843 implementors to more easily test their type conversion routines.
845 2008-10-11 Jürg Billeter <j@bitron.ch>
847 Bug 552374: Const strings should be identified in the gir.
849 * giscanner/transformer.py: support string memory management
850 * tests/scanner/foo.h: use char * and const char *
851 * tests/scanner/foo-expected.gir: test that
853 2008-10-11 Johan Dahlin <johan@gnome.org>
855 * giscanner/girparser.py:
856 Also parse enums which are not glib types.
858 2008-10-11 Lucas Rocha <lucasr@gnome.org>
860 Bug 552370: add one more test for unsigned as a type, not as
863 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
864 * test/scanner/foo.h: add function which uses unsigned as a type.
865 * test/scanner/foo-expected.gir: test that.
867 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
869 Bug 555712: Struct and union issues
871 * giscanner/scannerparser.y (struct_declarator): Use information
872 provided about the bit width of a field.
873 * giscanner/transformer.py (Transformer._create_member): Pass the
874 symbol's const_int member to the created field (it represents the
876 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
877 field attribute, if present.
878 * giscanner/ast.py (Field): Add 'bits' member, specifying the
879 width in bits of the field (only relevant for bitfields).
882 * giscanner/transformer.py (Transformer._create_typedef_struct)
883 (Transformer._create_typedef_union): Add calls to _create_struct()
884 and _create_union(), respectively. This causes the scanner to
885 generate output for fields of struct and union typedefs.
888 2008-10-11 Jürg Billeter <j@bitron.ch>
890 Bug 552370: unsigned not scanned properly
892 * giscanner/scannerparser.y: combine basic types such as unsigned
893 int and long long when scanning
894 * tests/scanner/foo-expected.gir:
895 * tests/scanner/foo.c: (foo_test_unsigned):
896 * tests/scanner/foo.h: test that
898 2008-10-11 Lucas Rocha <lucasr@gnome.org>
900 Bug 554854: The --typelib-xml and --inject options should reuse
901 giscanner parser/writer.
903 * giscanner/ast.py: add constructor list to Struct and Union.
904 Add new param in Return's contructor to define transfer.
905 * giscanner/girparser.py: several additions to the parser in order
906 to have parsing all nodes of the gir xml files.
907 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
908 and writer in --inject and --typelib-xml options.
909 * giscanner/xmlwriter.py: ignore empty attributes instead of
910 raising an error as this basically exposes a bug in GIRParser.
911 This should be reverted as soon as the parser is fixed.
913 2008-10-11 Lucas Rocha <lucasr@gnome.org>
915 Bug 552376: scanner generates wrong names for enum members when
916 there's no defined gtype.
918 * giscanner/utils.py (strip_common_prefix): Always strip common
919 prefix exactly up to the last "_", and not beyond.
920 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
921 here is that the first character after the last '_' should should be
922 the same as the character in the same position on the type name.
923 * tests/scanner/foo-expected.gir: test that
925 2008-10-10 Lucas Rocha <lucasr@gnome.org>
927 Bug 555293: append library_paths to LPATH env variable to work
928 around a bug in find_library when using ldconfig.
930 * tools/g-ir-scanner (main): ditto.
932 2008-10-09 Lucas Rocha <lucasr@gnome.org>
934 * girepository/girepository.c (register_internal): fix regression on
935 invoke test case by making sure we load the global module in the
936 typelib when dealing with inline typelibs.
937 * girepository/gtypelib.c: a couple of coding style fixes.
939 2008-10-06 Lucas Rocha <lucasr@gnome.org>
941 Bug 555294: Add support for multiple shared libraries per typelib.
943 * girepository/ginvoke.c (g_function_info_invoke),
944 girepository/ginfo.c(g_registered_type_info_get_g_type): use
945 g_typelib_symbol instead of g_module_symbol.
946 * girepository/girepository.h: remove g_typelib_set_module and add
948 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
949 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
950 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
951 modules instead of just one. The symbol lookup is now abstracted
952 behind g_typelib_symbol which tries to find the passed symbol name in
954 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
955 and write shared_library attribute as a comma-separated list of libs.
957 2008-10-06 Colin Walters <walters@verbum.org>
959 * giscanner/transformer.py: Parse length= annotation as
960 a parameter name, not a raw int.
963 2008-10-03 Colin Walters <walters@verbum.org>
965 Bug 551744: Non-GObject types aren't aggregating ctors and methods
967 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
969 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
973 2008-10-03 Colin Walters <walters@verbum.org>
975 Bug 554576: scan problem with ev_selection_render_selection()
977 * giscanner/transformer.py: Only do type resolution once we've
978 scanned all types. What could happen before is that we'd strip
979 the namespace from local type "EvSelection" => Selection, and
980 then later pull a "Selection" from some other namespace because
981 we hadn't yet seen the local EvSelection. This could come
982 down to hash table ordering and other things so not easy
985 2008-10-03 Lucas Rocha <lucasr@gnome.org>
987 * giscanner/girwriter.py (_parser_member): fix the last parameter of
988 GLibEnumMember constructor as it should be the enum member nick.
990 2008-10-02 Colin Walters <walters@verbum.org>
992 Bug 552961: remove this parameter for methods
994 * giscanner/glibtransformer.py: Delete this parameter; it is
996 * girepository/ginvoke.c: Insert this parameter for methods.
997 * girepository/gtypelib.c: Remove no longer needed verification of
998 method this parameter.
1001 2008-09-30 Dan Winship <danw@gnome.org>
1003 Bug 554490: g-ir-scanner gets confused by '\\'
1005 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1006 backslashes so it will correctly parse '\\' and "\\"
1008 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1011 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1013 2008-10-02 Colin Walters <walters@verbum.org>
1015 bug 552393: Note variadic functions
1017 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1018 to use parameter_list directly.
1019 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1020 * giscanner/ast.py: Add Varargs type.
1021 * giscanner/transformer.py: Check for ellipsis symbol, transform
1023 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1024 Parse varargs functions, but filter them out before we start
1025 compiling the typelib.
1027 2008-10-02 Colin Walters <walters@verbum.org>
1029 Bug 554632: type tag for GType
1031 * girepository/girepository.h, girepository/girepository.c:
1032 Add type tag for GType - it's a special type we don't want
1033 to resolve to just "long".
1034 * docs/typelib-format.txt: Update.
1035 * girepository/girparser.c: Parse it.
1036 * giscanner/glibtransformer.py: Ensure we don't put GType in
1038 * tools/generate.c: Remove hardcoded type list.
1041 2008-09-30 Dan Winship <danw@gnome.org>
1043 Bug 554521: scanner generates wrong names for enum members with
1044 full type name prefix
1046 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1047 right amount when the entire "first" string is a prefix of
1050 * tests/scanner/foo.h (FooEnumFullname):
1051 * tests/scanner/foo-expected.gir: test that
1053 2008-09-29 Colin Walters <walters@verbum.org>
1055 Bug 552380: Array parameters should be marked in the gir
1057 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1058 uint8[]. Add Array, List, and Map subclasses of Type;
1059 these types can be generic. Return transfer defaults
1060 to true if return value is string or container type.
1061 Delete Sequence type.
1062 * giscanner/scannerlexer.l: Syntax change for annotations;
1063 use <> since it's more readable.
1064 * giscanner/girwriter.py: Write out these changes.
1065 * giscanner/girparser.py: Parse them.
1066 * giscanner/transformer.py: Have a defined set of
1067 both list and map types. When creating a type,
1068 check if the ctype we've parsed is one of them,
1069 if so create a container type subclass as appropriate.
1070 * girepository/girparser.c: Parse in generic types.
1073 2008-09-27 Colin Walters <walters@verbum.org>
1075 * tools/g-ir-scanner: Add --inject option.
1077 2008-09-25 Colin Walters <walters@verbum.org>
1079 Remove non-repository types from GIR
1081 * giscanner/ast.py: The canonical name is 'utf8', not
1083 * giscanner/glibast.py: A few more glib type mappings.
1084 * girepository/girparser.c: We only parse repository types.
1085 * tests/*.gir: Update.
1087 2008-09-23 Colin Walters <walters@verbum.org>
1089 Bug 552566: Add time_t type
1091 We need a type for time_t since it's special in C, and just
1092 mapping it to long precluded bindings from handling it
1095 2008-09-19 Colin Walters <walters@verbum.org>
1097 Bug 552390: Handle capitialization like "DBus" more robustly
1099 The to_underscores function was designed for use against prefixed
1100 names; we need a separate function which will convert names like
1101 DBusFoo into dbus_foo, not d_bus_foo.
1103 2008-09-19 Colin Walters <walters@verbum.org>
1105 Add check to make sure we're not hitting out unresolved types
1107 Validate the "this" argument for methods
1109 Remove heuristic matching of methods to classes based on prefix
1111 It was a broken hack that dated from when we handled underscoring
1112 and capitalization conventions less well.
1114 2008-09-18 Colin Walters <walters@verbum.org>
1116 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1118 On Darwin, the suffix for installed shared libraries (.dylib) is
1119 different from loadable modules (.so). We use a bit of magic shell
1120 script from Behdad Esfahbod to figure out the right suffix.
1122 2008-09-15 Johan Dahlin <johan@gnome.org>
1124 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1125 a wrapper for type_qualifier as well.
1127 2008-09-15 Colin Walters <walters@verbum.org>
1129 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1131 * giscanner/ast.py: Add deprecation attributes.
1132 * giscanner/girwriter.py: Write out deprecation data.
1133 * girepository/girparser.c: Relax parsing; deprecated
1134 attribute now includes freeform string.
1135 * giscanner/scannerlexer.l: Parse Deprecated.
1136 * giscanner/transformer.py: Look for deprecated attribute
1138 * tests/scanner/*: Add a Deprecated test.
1140 2008-09-14 Tor Lillqvist <tml@novell.com>
1142 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1144 2008-09-14 Colin Walters <walters@verbum.org>
1146 * giscanner/glibtransformer.py: Ignore functions with
1149 2008-09-12 Colin Walters <walters@verbum.org>
1151 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1153 2008-09-12 Colin Walters <walters@verbum.org>
1155 * giscanner/ast.py: Bind pid_t to INT for vte.
1157 2008-09-12 Colin Walters <walters@verbum.org>
1159 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1160 * giscanner/glibast.py: Avoid overwriting ctype.
1161 * giscsanner/transformer.py: Try resolving types using the GType names.
1163 2008-09-12 Colin Walters <walters@verbum.org>
1165 * giscanner/minixpath.py: Code to run an "XPath"
1166 assertion against an XML tree, taken from
1167 gir-repository/gir/tests.py.
1168 * giscanner/Makefile.am: Ship it.
1169 * tools/g-ir-scanner: Add --xpath-assertions option.
1170 * gir/GLib-assertions.txt: Add a few assertions.
1171 * gir/Makefile.am: Run them.
1173 2008-09-11 Colin Walters <walters@verbum.org>
1175 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1177 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1178 prefix if it ends with _. Tweak callback stripping to determine
1179 based on presence of _ whether we need to use strip_namespace_func
1180 or strip_namespace_object.
1182 2008-09-09 Owen Taylor <otaylor@redhat.com>
1184 * docs/typelib-format.txt: Wether => Whether
1186 2008-09-08 Colin Walters <walters@verbum.org>
1188 * girepository/girparser.c: Default to "readable" for properties.
1189 * giscanner/ast.py: Add readable, writable etc.
1190 * giscanner/girwriter.py: Writ them.
1191 * giscanner/glibtransformer.py: Inspect them.
1194 2008-09-07 Colin Walters <walters@verbum.org>
1196 * giscanner/cgobject.py: Add comment.
1198 2008-09-07 Colin Walters <walters@verbum.org>
1200 * giscanner/cgobject.py: Also call g_thread_init.
1202 2008-09-07 Colin Walters <walters@verbum.org>
1204 * giscanner/transformer.py: Fix regression by not
1205 stripping prefix before stripping namespace for unions
1208 2008-09-06 Colin Walters <walters@verbum.org>
1210 * giscanner/transformer.py: If a namespace contains
1211 multiple caps, try stripping both gnomekeyring_ and
1214 2008-09-07 Johan Dahlin <johan@gnome.org>
1216 Bug 551162 – giscanner does not recognize asm and __asm__
1217 * giscanner/scannerlexer.l:
1218 Patch by Jani Monoses.
1220 2008-09-06 Colin Walters <walters@verbum.org>
1222 * girepository/girnode.c: Allow gtype_name
1223 and gtype_init in struct and union.
1224 * girepository/girparser.c: Parse glib:
1225 boxed bits for both structure and union.
1226 * girepository/gtypelib.c: Don't barf
1227 if structure is boxed.
1228 * giscanner/girparser.py: Parse new XML
1230 * giscanner/girwriter.py: Write out new
1232 * giscanner/glibast.py: Define new classes
1233 which are both Boxed and Struct/Union, as
1234 well as an "Other" for everything else.
1235 * giscanner/glibtransformer.py: Handle
1236 boxed types specially; we try to merge
1237 them with a struct/union if one exists,
1238 otherwise fall back to generic boxed.
1240 * tools/generate.c: Write out new format.
1242 2008-09-06 Johan Dahlin <johan@gnome.org>
1244 * giscanner/grealpath.h: Include stdlib.h
1246 * docs/g-ir-generate.1: Remove leading %
1248 2008-09-01 Colin Walters <walters@verbum.org>
1250 * girepository/girparser.c: Look at c:type to determine
1251 whether or not an item is a pointer.
1253 2008-09-01 Johan Dahlin <johan@gnome.org>
1255 * tests/scanner/Makefile.am:
1256 Set PYTHONPATH so the scanner can run
1257 even if you didn't install anything.
1259 2008-09-01 Johan Dahlin <johan@gnome.org>
1262 Post-release version bump
1265 2008-09-01 Johan Dahlin <johan@gnome.org>
1269 2008-08-31 Colin Walters <walters@verbum.org>
1271 * giscanner/glibtransformer.py: Quiet info
1274 2008-08-31 Johan Dahlin <johan@gnome.org>
1277 Bump version to 0.5.0
1279 2008-08-31 Colin Walters <walters@verbum.org>
1281 * giscanner/glibtransformer.py: Follow aliases to ensure
1282 we don't get a constructor returning a basic type.
1283 * giscanner/transformer.py: Add function to follow aliases.
1286 2008-08-31 Johan Dahlin <johan@gnome.org>
1288 * giscanner/scannerlexer.l:
1289 * giscanner/scannerparser.y:
1290 * giscanner/sourcescanner.h:
1291 * giscanner/sourcescanner.py:
1292 Parse GCC extensions in the parser instead of just undeffing them
1293 in the pre-processor.
1295 2008-08-31 Johan Dahlin <johan@gnome.org>
1297 * giscanner/glibtransformer.py:
1298 Clean up a huge if. Do not add methods or constructors
1300 * giscanner/utils.py:
1301 second might be longer than first, check that.
1303 2008-08-31 Johan Dahlin <johan@gnome.org>
1308 2008-08-31 Colin Walters <walters@verbum.org>
1310 * girepository/girparser.c: Don't lose if we
1313 2008-08-31 Colin Walters <walters@verbum.org>
1315 * giscanner/glibtransformer.py: Look for libtool
1316 library in current directory
1317 * tests/scanner - Update.
1319 2008-08-30 Colin Walters <walters@verbum.org>
1321 * docs/typelib-format.txt: Add a guint32
1323 * gir/Makefile.am: Dep on Makefile
1324 * girepository/ginfo.c:
1325 * girepository/girepository.c: Clean up
1326 default typelib handling; remove global
1327 default_typelib variable. Ensure we handle
1328 NULL repository in more places.
1329 Support dependency resolution.
1330 Support lazy loading.
1331 * girepository/girepository.h: Remove
1332 g_irepository_unregister; we don't support
1333 unloading typelibs since really they're
1334 process-global. Update for lazy loading
1336 * girepository/girmodule.c: Use g_new0.
1337 Add dependencies to GirModule.
1338 * girepository/girparser.c: Parse dependencies.
1339 * girepository/gtypelib.c: Add 4 bytes for
1341 * tests/Makefile.am: Kill off gobject.gir,
1342 it conflicts with the real one.
1343 * tests/object.gir: Dep on GObject.
1344 * tools/generate.c: Take --includedir
1345 argument to say which directories to search
1346 for typelibs. Print out dependencies.
1348 2008-08-30 Colin Walters <walters@verbum.org>
1350 * giscanner/glibtransformer.py: Reduce warning noise.
1352 2008-08-29 Colin Walters <walters@verbum.org>
1354 * girepository/ginfo.c: Add some assertions regarding
1355 refcounts, just to be sure.
1356 * giscanner/glibtransformer.py: Blacklist a few more
1359 2008-08-29 Colin Walters <walters@verbum.org>
1361 * giscanner/glibtransformer.py: Blacklist a few
1362 functions that use GError oddly
1364 2008-08-29 Colin Walters <walters@verbum.org>
1366 * girepository/gtypelib.c: Don't crash if no
1369 2008-08-29 Colin Walters <walters@verbum.org>
1371 * girepository/girparser.c: Handle chains of aliases
1372 across modules by ensuring we fully qualify aliases
1375 2008-08-29 Colin Walters <walters@verbum.org>
1377 * girepository/girparser.c: Don't search aliases
1380 2008-08-29 Colin Walters <walters@verbum.org>
1382 * girepository/girparser.c: Rewrite type parsing
1383 to handle both GLib parsing case as well as correctly
1384 handling GLib.List and friends. Don't try to treat
1385 e.g. ListStore as a List.
1387 2008-08-29 Colin Walters <walters@verbum.org>
1389 * girepository/gtypelib.c: Add more context
1392 2008-08-29 Colin Walters <walters@verbum.org>
1394 * giscanner/glibtransformer.py: Add some informative
1395 logging messages in corner cases. Be sure we use
1396 the most recent node set instead of a cache
1397 when generating result set.
1398 * tests/: Remove duplicated bits in expected girs
1399 * girepository/girparser.c: Accept both List (for
1400 compiling GLib) and GLib.List (what the scanner
1403 * tools/generate.c: Generate canonical form.
1405 2008-08-29 Johan Dahlin <johan@gnome.org>
1407 * giscanner/config.py.in:
1408 Use datarootdir instead of datadir to avoid
1409 an autoconf warning.
1411 2008-08-29 Johan Dahlin <johan@gnome.org>
1415 * examples/gdk-pixbuf.gidl:
1417 Update and remove old cruft.
1419 2008-08-29 Johan Dahlin <johan@gnome.org>
1422 * docs/g-ir-compiler.1:
1423 * docs/g-ir-generate.1:
1424 * docs/g-ir-scanner.1:
1425 Add man pages for the generator and compiler.
1427 2008-08-29 Johan Dahlin <johan@gnome.org>
1429 * docs/g-ir-scanner.1: Document
1431 * giscanner/Makefile.am:
1432 * giscanner/gidlparser.py:
1433 * giscanner/gidlwriter.py:
1434 * tools/g-ir-scanner:
1435 Remove gidl support.
1437 2008-08-28 Colin Walters <walters@verbum.org>
1439 * tests/scanner/Makefile.am: Pass the right
1440 --includedir args. Add a Makefile dep.
1441 * tools/compiler.c: Pass includedirs down.
1442 * girepository/girparser.c: Actually put
1443 includedirs in context, pass down. Fix
1446 2008-08-28 Colin Walters <walters@verbum.org>
1448 * gir/Makefile.am: Use --includedir
1449 * girepository/girparser.c: Recursively parse
1450 includes to pull in aliases and expand them.
1451 We need this to avoid putting unknown names in
1453 * tools/compiler.c: Add --includedir option.
1454 * giscanner/ast.py: Map size/ssize to types
1457 2008-08-28 Tor Lillqvist <tml@novell.com>
1459 Make check now runs successfully on Windows.
1461 * tools/compiler.c (write_out_typelib): Use binary mode for output
1464 * girepository/girnode.c: Don't print NULL strings.
1466 * tests/invoke/Makefile.am
1467 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
1468 convince libtool to build shared libraries.
1470 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
1471 g_assert() instead of printing out expected errors.
1473 2008-08-28 Tor Lillqvist <tml@novell.com>
1475 * girepository/gtypelib.h: Change type of bitfield fields from
1476 guint to the most suitable smaller type. This makes the struct
1477 sizes match the ones on Linux that the sanity check expects when
1478 using gcc -mms-bitfields on Windows.
1480 2008-08-28 Johan Dahlin <johan@gnome.org>
1485 * giscanner/Makefile.am:
1486 * tests/Makefile.am:
1487 * tests/scanner/Makefile.am:
1488 Make distcheck pass.
1490 2008-08-27 Johan Dahlin <johan@gnome.org>
1492 * giscanner/Makefile.am:
1493 Only send in -no-undefined on Win32 as it breaks on MacOS X.
1495 2008-08-27 Tor Lillqvist <tml@novell.com>
1497 Make g-ir-scanner work on Windows. Still problems with the typelib
1498 code. Changes okayed by jdahlin.
1500 * configure.ac: Check for Windows, set Automake conditional
1501 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
1502 avoid shell quoting issues
1504 * girepository/Makefile.am: Use -no-undefined so that libtool
1505 agrees to build a shared library on Windows.
1507 * girepository/girparser.c (backtrace_stderr): No backtrace() on
1508 Windows. Empty implementation on Windows so far.
1510 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
1511 informative error message for the assertion failures. Tell also
1512 what the expected size of the struct is. Check all sizes first and
1513 fail afterwards if at least one size was different from expected.
1515 * tools/Makefile.am: Reorder libraries into proper logical
1518 * tools/generate.c: Don't include <dlfcn.h>, not used.
1520 * giscanner/Makefile.am: On Windows, link with the Python library,
1521 and install the module DLL as _giscanner.pyd. Remove the
1522 unnecessary import library and libtool library that libtool has
1525 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
1526 and just skip it. Recognize also two "l" suffixes for long long
1527 constants. Recognize also __inline__.
1529 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
1530 GetFullPathName(). As such, GetFullPathName() does more than the
1531 UNIX realpath(). It also changes relative paths into absolute
1532 paths. But for our purposes that shouldn't matter.
1534 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
1535 Windows the file descriptor passed to us is from Python. Python
1536 Python2.5 uses the msvcr71.dll C library, while mingw-built code
1537 uses msvcrt.dll. On Windows, file descriptors are specific to
1538 which C library is used. So we must find out what underlying OS
1539 handle corresponds to the file descriptor Python passes us, and
1540 then make that into a file descriptor valid for the C library this
1543 * giscanner/sourcescanner.py (_parse): Don't need to bypass
1544 __attribute__ as the lexer now handles it. The definition as empty
1545 was ineffective for mingw anyway, as mingw's _mingw.h undefines
1546 __attribute__. Close the temp file before unlinking it.
1548 * giscanner/cgobject.py: Use correct library name for the gobject
1551 * gir/Makefile.am: Must pass the full basename of the DLLs on
1552 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
1553 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
1554 reality they won't change, until there is a GLib 3, and then also
1555 the Unix code here needs changing.
1557 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
1560 2008-08-26 Colin Walters <walters@verbum.org>
1562 * girepository/girepository.c: Search
1563 $DATADIR/girepository instead of
1564 $DATADIR/gitypelibs; this naming makes
1565 it clearer that e.g. jgir can install
1567 * gir/Makefile.am: Install there.
1569 2008-08-26 Colin Walters <walters@verbum.org>
1571 * girepository/gtypelib.c (_g_typelib_init): Also
1572 use G_MODULE_SUFFIX instead of hardcoding .so.
1574 2008-08-26 Colin Walters <walters@verbum.org>
1576 * girepository/gtypelib.c (_g_typelib_init): Free
1577 string in the right place.
1579 2008-08-26 Colin Walters <walters@verbum.org>
1581 * girepository/gtypelib.c (_g_typelib_init): Handle
1582 both .la and .so names; this works better in the
1583 uninstalled library case.
1585 2008-08-26 Johan Dahlin <johan@gnome.org>
1588 * giscanner/Makefile.am:
1589 * giscanner/cgobject.py:
1590 * giscanner/config.py.in:
1591 * giscanner/sourcescanner.py:
1592 Avoid undeffing __GNUC__, instead define
1593 __attribute__ & friends. Remove glibconfig.h hack.
1594 This makes gobject-introspection work better on
1595 MacOS X, Thanks to Richard Hult for kind help.
1597 2008-08-25 Colin Walters <walters@verbum.org>
1599 * giscanner/glibtransformer.py: Always print
1602 2008-08-25 Colin Walters <walters@verbum.org>
1604 * giscanner/glibtransformer.py: Skip over
1605 interfaces we don't know.
1607 2008-08-25 Colin Walters <walters@verbum.org>
1609 * girepository/girparser.c: Parse new implements
1610 syntax, drop gapi one.
1611 * tests/object.gir: Update.
1612 * tools/generate.c: Generate new syntax.
1614 2008-08-25 Colin Walters <walters@verbum.org>
1616 * giscanner/ast.py: Add interfaces property
1618 * giscanner/girwriter.py: Write out implemented
1620 * giscanner/glibtransformer.py: Introspect
1621 implemented interfaces.
1622 * tests/scanner/*: Make FooObject implement
1625 2008-08-25 Colin Walters <walters@verbum.org>
1627 * giscanner/glibtransformer.py: More correctly pair
1628 methods; if we have a symbol that starts with
1629 e.g. hippo_canvas look for a matching HippoCanvas
1630 class before accepting e.g. HippoCanvasImage.
1632 2008-08-24 Colin Walters <walters@verbum.org>
1634 * tools/g-ir-scanner: Filter out unknown options from
1637 2008-08-24 Colin Walters <walters@verbum.org>
1639 * giscanner/glibtransformer.py: Fail with better
1640 error if we can't find library.
1642 2008-08-24 Colin Walters <walters@verbum.org>
1644 * tools/g-ir-scanner: Use subprocess instead of
1645 commands, works on Windows and avoids the evil
1648 2008-08-24 Colin Walters <walters@verbum.org>
1650 * giscanner/glibtransformer.py: Skip over
1651 g_object_get_type from GLib trunk.
1653 2008-08-24 Colin Walters <walters@verbum.org>
1655 * girepository/girepository.c (g_irepository_require):
1656 Don't open shared library here; we already do it
1659 2008-08-24 Colin Walters <walters@verbum.org>
1661 * girepository/gtypelib.c: Add context stack so
1662 when we get an error we can print out nicely
1665 2008-08-24 Johan Dahlin <johan@gnome.org>
1667 * girepository/girparser.c (start_glib_boxed), (start_function),
1668 (start_field), (start_alias):
1669 Refactor a couple of parsing functions to be simpler to follow.
1672 2008-08-24 Johan Dahlin <johan@gnome.org>
1674 * girepository/girparser.c (start_function):
1675 Remove left-over code, checking type of function.
1677 2008-08-23 Colin Walters <walters@verbum.org>
1679 * giscanner/config.py: Define DATADIR.
1680 * giscanner/transformer.py: Look in DATADIR.
1682 2008-08-23 Colin Walters <walters@verbum.org>
1684 * girepository/gtypelib.c: Check constructor
1686 * girepository/girnode.c: Small tweaks.
1687 * girepository/ginfo.c: Calculate signature offsets
1689 * girepository/girparser.c: Remove duplicate
1691 * giscanner/glibtransformer.py: Avoid marking
1692 functions which return a basic type as
1695 2008-08-23 Colin Walters <walters@verbum.org>
1697 * girepository/girparser.c: Ignore <include>.
1698 * giscanner/girparser.py: Parse them.
1699 * giscanner/girwriter.py: Generate them.
1700 * giscanner/transformer.py: Process <include>
1701 recursively. Don't require full path for
1702 includes, look in {$XDG_DATA_DIRS}/gir.
1703 * tools/g-ir-scanner: Pass through includes.
1704 * Makefile.am: Remove extra --include
1706 * *-expected.gir: Add expected includes.
1708 2008-08-23 Johan Dahlin <johan@gnome.org>
1710 * tests/scanner/Makefile.am:
1711 * tests/scanner/annotation-expected.gir:
1712 * tests/scanner/drawable-expected.gir:
1713 Avoid duplication in the Makefile, regenerate with new
1714 namespaces (same as the filename)
1716 2008-08-22 Colin Walters <walters@verbum.org>
1718 * girepository/girnode.c: Don't hardcode integers,
1721 2008-08-22 Johan Dahlin <johan@gnome.org>
1723 * giscanner/sourcescanner.py:
1724 Check for ../gobject-introspection-1.0.pc.in to determine
1725 if we run installed or uninstalled.
1727 2008-08-22 Johan Dahlin <johan@gnome.org>
1730 * giscanner/sourcescanner.py:
1731 Send in undefs/defines via writing it directly to stdin
1732 of cpp instead of via arguments.
1734 2008-08-22 Colin Walters <walters@verbum.org>
1736 * tools/generate.c, tools/compiler.c: Default
1738 * all Makefile.am: Update.
1740 2008-08-22 Colin Walters <walters@verbum.org>
1742 * girepository/girparser.c: Pass through
1743 recursive types. Avoid overwriting errors.
1744 * giscanner/xmlwriter.py: Always write the
1746 * tests/*.gir: Adjust.
1747 * tests/scanner/Makefile.am: Build typelibs,
1748 and generate XML from those. Once we
1749 have a good diff mechanism...
1750 * tests/scanner/*-expected.gir: Add XML
1752 * tools/g-ir-scanner: Accept --typelib-xml
1754 * tools/generate.c: Better defaults for transfer.
1756 2008-08-22 Johan Dahlin <johan@gnome.org>
1760 * giscanner/Makefile.am:
1761 * giscanner/config.py.in:
1762 * giscanner/sourcescanner.py:
1763 Use the generated glibconfig.h for all scanner invokations.
1764 Rename it to glibconfig-scanner.h and install it.
1765 Add a config.py which so far contains the include dir.
1767 2008-08-22 Johan Dahlin <johan@gnome.org>
1770 Replace glibconfig.h with our own, do some replacement
1771 for CPP/C features we do not support
1773 2008-08-22 Colin Walters <walters@verbum.org>
1775 * tools/generate.c (write_callable_info): Fix unref
1778 2008-08-22 Colin Walters <walters@verbum.org>
1780 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
1781 * tests/Makefile.am: Support $(DEBUG)
1782 * tools/generate.c: Do immediate close tags if no
1785 2008-08-21 Colin Walters <walters@verbum.org>
1787 * tests/scanner/drawable-expected.gir,
1788 * tests/scanner/drawable.c,
1789 * tests/scanner/drawable.h:
1792 2008-08-21 Colin Walters <walters@verbum.org>
1794 * giscanner/glibtransformer.py: Compute prefix
1795 by searching through the symbol for bits
1796 rather than going directly from ctype; this fixes
1799 2008-08-21 Colin Walters <walters@verbum.org>
1801 * giscanner/glibtransformer.py: Also try squashing
1802 underscores from namespace, fixes webkit_web_view_new.
1804 2008-08-21 Colin Walters <walters@verbum.org>
1806 * giscanner/glibtransformer.py: More ctor work,
1807 avoid having gtk_window_group_new end up under
1810 2008-08-21 Colin Walters <walters@verbum.org>
1812 * giscanner/glibtransformer.py: Much simpler approach
1813 of mapping uscored names to classes.
1814 * giscanner/utils.py: Remove unnecessary function.
1816 2008-08-21 Johan Dahlin <johan@gnome.org>
1818 * girepository/girepository.c (g_irepository_require):
1819 Plug memory leak and avoid using freed memory.
1820 Resolve the whole module path, here as well.
1822 2008-08-21 Colin Walters <walters@verbum.org>
1824 * giscanner/glibtransformer.py: Look up all permutations
1825 of class names when scanning methods/ctors based on
1826 the prefix instead of using the return value. This
1827 associates gtk_window_new with the right class.
1829 2008-08-21 Colin Walters <walters@verbum.org>
1831 * girepository/girmodule.c (g_ir_module_build_typelib):
1832 Revert change to increment header_size; we do that in
1835 2008-08-21 Colin Walters <walters@verbum.org>
1837 * girepository/girnode.c (write_string): Tweak to
1838 use UINT instead of INT. Not likely to matter.
1839 * girepository/girmodule.c (g_ir_module_build_typelib):
1840 Add to header_offset as well for header strings
1841 to match what write_string does.
1842 * girepository/gtypelib.c: Replace is_name with
1843 validate_name, which more strongly validates and
1844 handles errors in a better way. Update all callers.
1845 * giscanner/glibtransformer.py: Handle constructors
1848 2008-08-21 Johan Dahlin <johan@gnome.org>
1850 * gir/Makefile.am (typelibs_DATA): Build and
1851 install the Gio.typelib too
1853 * girepository/gtypelib.c (_g_typelib_init):
1854 Use g_module_build_path to resolve the shlib name
1856 2008-08-21 Colin Walters <walters@verbum.org>
1858 * gir/Makefile.am: CLEANFILES typelibs too.
1860 2008-08-21 Johan Dahlin <johan@gnome.org>
1862 * giscanner/glibtransformer.py:
1863 Do not send .la files through find_library.
1865 2008-08-21 Colin Walters <walters@verbum.org>
1867 * girepository/girparser.c (g_irepository_require):
1868 Fix one small leak in error case.
1870 2008-08-21 Johan Dahlin <johan@gnome.org>
1873 Parse glibconfig.h as well and install the compiled
1876 2008-08-21 Johan Dahlin <johan@gnome.org>
1879 * giscanner/glibtransformer.py:
1880 * tools/g-ir-scanner:
1881 Do not hard-core library names in the Makefile, reuse
1882 ctypes find_library instead.
1884 2008-08-21 Johan Dahlin <johan@gnome.org>
1886 * girepository/girparser.c (resolve_aliases):
1887 Remove compilation warnings
1889 2008-08-21 Johan Dahlin <johan@gnome.org>
1891 * girepository/girepository.c (g_irepository_require):
1892 Rewrap and fix double free bug by leaking a bit.
1894 2008-08-20 Colin Walters <walters@verbum.org>
1896 * girepository/girepository.c: Add new function
1897 g_irepository_get_typelib_path which tells
1898 us from where we loaded a namespace.
1900 2008-08-20 Colin Walters <walters@verbum.org>
1902 * tests/scanner/*-expected.gir: Adjust for
1903 added shared-library.
1904 * giscanner/giwriter.py: Make pylint happy.
1906 2008-08-20 Colin Walters <walters@verbum.org>
1908 * girepository/girmodule.c (g_ir_module_build_typelib):
1909 Calculate size correctly, avoid use-after-free.
1911 2008-08-20 Colin Walters <walters@verbum.org>
1913 * girepository/girepository.c: Remove
1914 g_irepository_register_file in favor of
1915 g_irepository_require. There are two
1916 possible deployment scenarios for typelibs:
1917 First, separate in $DATADIR/gitypelibs/. Second,
1918 they may be embedded in shlibs. However since
1919 the first is now the normal case, the API is
1920 optimized around it.
1922 Refactor internals to look up typelibs for
1923 namespaces just-in-time, but we expect
1924 consumers to call g_irepository_require.
1926 Also, add some docs. No one has died from that
1928 * gir/Makefile.am: Need --library for glib.
1929 * giscanner/girwriter.py: Write out shared-library.
1930 * tools/g-ir-writer: Take the first --library
1931 argument as the target of shared-library. In
1932 the future we should make this nicer with pkg-config
1935 2008-08-20 Colin Walters <walters@verbum.org>
1937 * girepository/girparser.py: And parse them.
1939 2008-08-20 Johan Dahlin <johan@gnome.org>
1941 * giscanner/glibast.py: Add gshort/gushort types
1943 2008-08-20 Colin Walters <walters@verbum.org>
1945 * gir/Makefile.am: Rename .gir files using GI namespace.
1946 * girepository/girepository.c: Use XDG_DATA_DIRS for
1947 looking up typelibs. Also typelibs are now suffixed
1949 * tests/invoke/Makefile.am: Only use metadata.
1950 * girepository/Makefile.am: Remove unnecessary include.
1951 * tests/scanner/Makefile.am: Update using GI namespaces
1952 for scanner includes.
1954 2008-08-20 Colin Walters <walters@verbum.org>
1956 * girepository/transformer.py: Suppress aliases whose
1958 * girepository/ast.py: Define some more aliases.
1960 2008-08-20 Colin Walters <walters@verbum.org>
1962 * girepository/girparser.c: Avoid alias infloops.
1964 2008-08-20 Colin Walters <walters@verbum.org>
1966 * tests/scanner/foo-expected.gir: Fix expected list type.
1968 2008-08-20 Johan Dahlin <johan@gnome.org>
1970 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
1971 Add a workaround for #548689.
1972 We can now compile gtk!
1974 2008-08-20 Colin Walters <walters@verbum.org>
1976 * giscanner/glibtransformer.py: Try to look up
1977 aliases using the c:type too.
1979 2008-08-20 Colin Walters <walters@verbum.org>
1981 * girepository/girparser.c: Parse union fields.
1983 2008-08-20 Johan Dahlin <johan@gnome.org>
1985 * giscanner/ast.py: Make time_t an alias for long
1987 * gir/gio-2.0-good.gir:
1988 * gir/glib-2.0-good.gir:
1989 * gir/gobject-2.0-good.gir:
1991 * giscanner/glibtransformer.py:
1992 Do not delete Class structures, we need them in gdk/gtk.
1993 * tests/scanner/drawable-expected.gir:
1994 * tests/scanner/foo-expected.gir:
1995 * tests/scanner/utility-expected.gir:
1998 2008-08-20 Johan Dahlin <johan@gnome.org>
2000 * tests/scanner/Makefile.am:
2001 * tests/scanner/annotation-expected.gir:
2002 * tests/scanner/annotation.c (annotation_object_class_init),
2003 (annotation_object_init), (annotation_object_method),
2004 (annotation_object_in), (annotation_object_out),
2005 (annotation_object_inout), (annotation_object_inout2),
2006 (annotation_object_inout3), (annotation_object_calleeowns),
2007 (annotation_object_calleesowns), (annotation_object_get_strings),
2008 (annotation_object_with_voidp), (annotation_object_get_objects),
2009 (annotation_object_create_object), (annotation_object_allow_none):
2010 * tests/scanner/annotation.h:
2011 * tests/scanner/foo-expected.gir:
2012 * tests/scanner/foo.c:
2013 * tests/scanner/foo.h:
2014 Split out annotation tests out of foo
2016 2008-08-20 Johan Dahlin <johan@gnome.org>
2018 * tests/scanner/Foo-expected.gir:
2019 * tests/scanner/Makefile.am:
2020 * tests/scanner/foo-expected.gir:
2021 * tests/scanner/foo-object.h:
2022 * tests/scanner/foo.c:
2023 Foo->foo, foo-object.h -> foo.h
2025 2008-08-20 Johan Dahlin <johan@gnome.org>
2027 * tests/scanner/Foo-expected.gir:
2028 * tests/scanner/Makefile.am:
2029 * tests/scanner/drawable-expected.gir:
2030 * tests/scanner/drawable.c (test_drawable_class_init),
2031 (test_drawable_init):
2032 * tests/scanner/drawable.h:
2033 * tests/scanner/foo-object.h:
2034 * tests/scanner/foo.c (foo_boxed_method):
2035 Move the drawable parts out of Foo to its own test.
2037 2008-08-20 Johan Dahlin <johan@gnome.org>
2039 * tests/scanner/Foo-expected.gir:
2040 * tests/scanner/foo-object.h:
2041 * tests/scanner/foo.c (foo_drawable_class_init),
2042 (foo_drawable_init):
2043 Add a based on GdkDrawable which generates
2046 2008-08-19 Colin Walters <walters@verbum.org>
2048 * giscanner/transformer.py: Don't try
2049 to strip prefix before namespace.
2051 2008-08-19 Johan Dahlin <johan@gnome.org>
2053 * giscanner/transformer.py:
2054 * tests/scanner/Foo-expected.gir:
2055 * tests/scanner/foo-object.h:
2056 Add support for typedef void foo type of
2059 2008-08-19 Johan Dahlin <johan@gnome.org>
2062 * giscanner/girwriter.py:
2063 * giscanner/glibtransformer.py:
2064 * giscanner/transformer.py:
2065 * tests/scanner/Foo-expected.gir:
2066 Add basic support for union, base the code much
2067 on Struct. Add a testcase.
2069 2008-08-19 Johan Dahlin <johan@gnome.org>
2071 * tests/scanner/Foo-expected.gir:
2072 * tests/scanner/foo-object.h:
2073 Add a union testcase which the compiler currently
2076 2008-08-19 Johan Dahlin <johan@gnome.org>
2078 * gobject-introspection-1.0.pc.in:
2079 Add a g_ir_compiler variable
2081 2008-08-19 Colin Walters <walters@verbum.org>
2083 * giscanner/ast.py: Rework types to be more closely
2085 * giscanner/girparser.py: Parse more bits.
2086 * giscanner/girwriter.py: Write sequences in a new
2087 way that specifies container type.
2088 * giscanner/glibast.py: Adjust for ast.py changes,
2089 add 'ctype' property to GLibObject and GLibInterface
2090 so we can look things up by it later.
2091 * gicanner/transformer.py: Names is new class holding
2092 the various namespaces we manage. Do not confuse
2093 with Namespace which is toplevel XML node effectively.
2094 Rework all type resolution to go through
2095 _resolve_type_name_1.
2096 * giscanner/glibtransformer.py: Raise UnknownTypeError
2097 instead of ValueError for cleanliness. Add Unresolved
2098 class to mark types whose parent we haven't seen yet.
2099 Use new Names object from transformer.py.
2100 Correctly look up parent=.
2101 Fix type validation to handle sequences.
2102 * tests/scanner/Foo-expected.gir: Update for sequence
2103 work, int instead of int32.
2104 * tools/g-ir-scanner: Add --noclosure option
2105 * gir/Makefile.am: Use --noclosure by default for
2108 2008-08-18 Johan Dahlin <johan@gnome.org>
2110 * gir/gio-2.0-good.gir:
2111 * gir/glib-2.0-good.gir:
2112 * gir/gobject-2.0-good.gir:
2115 2008-08-18 Johan Dahlin <johan@gnome.org>
2118 * giscanner/girparser.py:
2119 * giscanner/girwriter.py:
2120 * giscanner/glibast.py:
2121 * giscanner/glibtransformer.py:
2122 * giscanner/transformer.py:
2123 * tests/scanner/Foo-expected.gir:
2124 * tests/scanner/foo-object.h:
2125 * tests/scanner/utility-expected.gir:
2126 * tests/scanner/utility.h:
2127 Redo type resolving and validation.
2128 Add a couple of new tests.
2129 Patch mostly written by Colin.
2131 2008-08-18 Johan Dahlin <johan@gnome.org>
2134 * giscanner/girparser.py:
2136 * giscanner/transformer.py:
2137 Improve enum parsing for enums without a GType.
2138 Make flags/enum references to other girs work
2139 * giscanner/utils.py:
2141 * tests/scanner/Makefile.am:
2142 * tests/scanner/foo-object.h:
2143 * tests/scanner/utility-expected.gir:
2144 * tests/scanner/utility.h:
2145 Add a new test for external enum references
2147 2008-08-18 Johan Dahlin <johan@gnome.org>
2149 * docs/global-module-registry.txt: Update
2151 * tests/array.gir: Update with new type proposal
2153 * girepository/girepository.c (g_type_tag_to_string):
2154 * girepository/girepository.h:
2155 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2157 * girepository/girnode.h:
2158 Make enum serializing functions public. Clean up some whitespace.
2160 2008-08-17 Johan Dahlin <johan@gnome.org>
2162 * docs/global-module-registry.txt:
2163 Add a document for an on disk module registry format
2165 2008-08-17 Johan Dahlin <johan@gnome.org>
2168 * gir/gio-2.0-good.gir:
2171 2008-08-17 Johan Dahlin <johan@gnome.org>
2174 * gir/glib-2.0-good.gir:
2175 * gir/gobject-2.0-good.gir:
2176 * giscanner/cgobject.py:
2177 * giscanner/glibtransformer.py:
2178 Regenerate GObject & GType.
2179 Avoid warnings when generating gobject-2.0.gir.
2180 Introspect a little more, and skip *_get_type functions.
2182 2008-08-17 Colin Walters <walters@verbum.org>
2184 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2185 Rename to -good, always generate during build.
2186 * gir/Makefile.am: Ensure .gir files dep on
2187 all scanner sources.
2188 * Makefile.am: Switch build order to ensure
2189 the scanner is ready before we do gir/.
2190 * tools/g-ir-scanner: Look for .git too.
2192 2008-08-17 Johan Dahlin <johan@gnome.org>
2194 * girepository/gtypelib.c (validate_enum_blob):
2195 * giscanner/glibtransformer.py:
2196 * giscanner/transformer.py:
2197 Remove resolve_possible_typedefs, it was unused.
2198 Allow multiple enum values of the sample value in an enum,
2199 since it's actually pretty common.
2200 Register enums so they can be resolved too.
2202 2008-08-16 Johan Dahlin <johan@gnome.org>
2204 * giscanner/girparser.py:
2205 Parse enumeration/bitfield.
2207 2008-08-16 Johan Dahlin <johan@gnome.org>
2209 * giscanner/girparser.py:
2212 2008-08-16 Johan Dahlin <johan@gnome.org>
2214 * giscanner/glibtransformer.py:
2215 Resolve type names for alias targets
2216 * giscanner/transformer.py:
2217 Skip FILE* parameters fow now
2219 2008-08-16 Johan Dahlin <johan@gnome.org>
2222 * gir/gobject-2.0.gir:
2225 * tests/scanner/Makefile.am:
2228 2008-08-15 Colin Walters <walters@verbum.org>
2230 * giscanner/glibtransformer.py: Explicitly construct
2231 new list, since we're deleting as we iterate.
2232 Don't delete all structures which end in Class; just
2233 ones which have a paired GObject.
2234 Fix printing of type warning.
2235 * giscanner/transformer.py: Make strip_namespace_object
2236 be the identity function if it doesn't match the
2239 2008-08-15 Colin Walters <walters@verbum.org>
2241 * giscanner/cgobject.py: Define yet more argument
2242 prototypes; fix prototype for g_type_fundamental.
2244 2008-08-14 Johan Dahlin <johan@gnome.org>
2246 * tests/Makefile.am:
2247 * tests/constant.gir:
2248 * tests/gobject.gir:
2250 * tools/generate.c (write_struct_info):
2251 Fix generator for constant/gobject/struct
2253 2008-08-14 Johan Dahlin <johan@gnome.org>
2255 * tests/Makefile.am:
2257 * tools/generate.c (write_enum_info):
2258 Fix generation of enum/bitfields
2260 2008-08-14 Johan Dahlin <johan@gnome.org>
2262 * girepository/girparser.c (start_field), (start_constant),
2263 (start_type), (end_element_handler):
2264 Clear up constant parsing
2269 * tools/generate.c (write_callable_info), (write_function_info),
2270 (write_callback_info), (write_constant_info), (write_signal_info),
2271 (write_vfunc_info), (write_property_info), (write_object_info),
2272 (write_interface_info):
2273 Constants/Signals are handled now.
2275 2008-08-14 Johan Dahlin <johan@gnome.org>
2277 * girepository/girparser.c (start_type):
2278 Don't require c:type.
2279 * tests/Makefile.am:
2282 Update, remove parts we don't support yet
2283 * tests/roundtrips.sh:
2285 * tools/generate.c (write_type_info), (write_field_info),
2286 (write_callable_info), (write_struct_info):
2287 Make it emit proper gir.
2289 2008-08-14 Johan Dahlin <johan@gnome.org>
2291 * giscanner/transformer.py:
2292 New internal function for adding a new node.
2294 2008-08-14 Johan Dahlin <johan@gnome.org>
2297 Define an internal _H_ variable so we skip parsing both
2298 i18n headers, only one is needed.
2300 Add the glib-2.0.gir too.
2301 * giscanner/glibast.py:
2302 Add gconstpointer as an alias for ANY
2303 * giscanner/transformer.py:
2304 Do not lower case enumeration names per se.
2305 Skip functions which has parameters called 'va_list'
2307 2008-08-14 Colin Walters <walters@verbum.org>
2309 * giscanner/transformer.py: Comment data structures.
2310 Also squash pointers in resolve_type_name to correspond
2311 with what we do for params.
2312 * giscanner/glibtransformer.py: Print warnings in more
2313 situations. Rework checks for method/constructor to
2314 look up in our GType database instead of just checking
2315 for *. Avoid generating <record> for GObject which
2316 duplicate the <class>.
2317 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2320 2008-08-14 Johan Dahlin <johan@gnome.org>
2322 * giscanner/girwriter.py:
2323 * giscanner/glibast.py:
2324 * giscanner/glibtransformer.py:
2325 * giscanner/transformer.py:
2327 * tests/Makefile.am:
2328 Add pyflakes.py and run it in make check.
2329 Update the source code to fix the errors reported by
2332 2008-08-14 Johan Dahlin <johan@gnome.org>
2335 * giscanner/girparser.py:
2336 * giscanner/glibast.py:
2337 * giscanner/glibtransformer.py:
2338 Refactor the parser a bit.
2339 Add parent type to interfaces and update callsites.
2341 2008-08-14 Johan Dahlin <johan@gnome.org>
2343 * giscanner/glibtransformer.py:
2344 * giscanner/utils.py:
2345 Refactor a bit, avoid isinstance and add a method
2346 for each type we parse.
2348 2008-08-14 Johan Dahlin <johan@gnome.org>
2351 * giscanner/girparser.py:
2352 * giscanner/glibtransformer.py:
2353 * tests/Makefile.am:
2354 Run pep8.py in make check, fix old errors.
2356 2008-08-13 Colin Walters <walters@verbum.org>
2358 * giscanner/girparser.py: Parse records.
2360 2008-08-13 Colin Walters <walters@verbum.org>
2362 * gir/Makefile.am: Install again.
2363 * gir/gobject-2.0.gir: Add some more bits.
2365 2008-08-13 Colin Walters <walters@verbum.org>
2367 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2368 * giscanner/girparser.py: Handle aliases.
2369 * giscanner/transformer.py: Record aliases. Make resolver
2370 functions public; we now call into these explicitly from
2371 glibtransformer. Handle resolving aliases.
2372 * giscanner/glibtransformer.py: Separate our internal namespace
2373 from included ones. Call up into transformer's resolver functions.
2375 2008-08-13 Johan Dahlin <johan@gnome.org>
2377 * girepository/girnode.c (g_ir_node_get_full_size_internal):
2378 * girepository/girparser.c (start_class):
2379 * giscanner/glibtransformer.py:
2380 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
2382 2008-08-13 Johan Dahlin <johan@gnome.org>
2384 * giscanner/cgobject.py:
2385 Register GInitiallyUnowned
2386 * giscanner/girwriter.py:
2387 * giscanner/glibtransformer.py:
2388 Special case GObject/GInitially owned as they are a bit special to use.
2390 2008-08-13 Colin Walters <walters@verbum.org>
2392 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
2393 Object is in GObject namespace.
2395 2008-08-13 Colin Walters <walters@verbum.org>
2397 * giscanner/girparser.py: Fix processing of functions
2400 2008-08-13 Colin Walters <walters@verbum.org>
2402 * giscanner/girparser.py: Parse more than just <class.
2403 * giscanner/glibtransformer.py: Put aliases in a separate
2404 data structure since their name is not canonicall.
2405 * giscanner/transformer.py: Handle resolving type names
2408 2008-08-13 Johan Dahlin <johan@gnome.org>
2410 * tools/g-ir-scanner:
2411 Allow multiple libraries
2412 * giscanner/glibtransformer.py:
2413 Rename load_library to add_library, traverse over all libraries
2414 when trying to resolve a function
2416 2008-08-12 Colin Walters <walters@verbum.org>
2418 * giscanner/transformer.py: Record typedefs as <alias> elements.
2419 Also attempt to look up types in external namespaces.
2420 * giscanner/girwriter.py: Write them.
2421 * giscanner/glibtransformer.py: Rework resolver using real instanceof
2422 checks. Resolve interface methods and properties.
2423 * tests/scanner/foo-object.h: Add a method with typedef.
2424 * tests/scanner/Foo-expected.gir: Update.
2425 * girepository/girnode.c: Debug tweaks.
2426 * girepository/girparser.c: Make a first pass through the XML where we
2427 record all the aliases. This lets us resolve them as we go through the
2429 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
2430 from gir-repository.
2432 2008-08-12 Colin Walters <walters@verbum.org>
2434 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
2435 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
2437 * giscanner/transformer.py: Record typedefs and expose public API for resolving
2439 * tests/scanner/Foo-expected.gir: Fix expected callback types.
2441 2008-08-12 Colin Walters <walters@verbum.org>
2443 * giscanner/glibtransformer.py: Also transform object properties.
2445 2008-08-12 Colin Walters <walters@verbum.org>
2447 * giscanner/glibtransformer.py: Also transform callbacks
2448 and structure field types.
2449 * tests/scanner/Fooe-expected.gir: Update to expect correct
2450 names for callbacks and structs.
2452 2008-08-12 Colin Walters <walters@verbum.org>
2454 * girepository/girparser.c: Handle 'any'.
2455 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2456 Add test for void *.
2458 2008-08-12 Colin Walters <walters@verbum.org>
2460 * giscanner/glibtransformer.py: We need to do type
2461 resolution in a second pass after we've seen all the
2462 enums, records, etc.
2464 2008-08-12 Colin Walters <walters@verbum.org>
2466 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2467 Add enum return value.
2468 * giscanner/glibtransformer.py: Transform function return types
2471 2008-08-12 Colin Walters <walters@verbum.org>
2473 * tests/scanner/Makefile.am: Dep .gir files on scanner
2474 sources too. Also remove @ so we see scanner invocations.
2476 2008-08-12 Colin Walters <walters@verbum.org>
2478 * girepository/girparser.c, girepository/gtypelib.c,
2479 girepository/gtypelib.h, girepository/girnode.c:
2480 Remove usage of (GAPI-oriented) TypeTag in favor of
2481 GITypeTag from girepository.h.
2483 2008-08-10 Colin Walters <walters@verbum.org>
2485 * tests/roundtrips.sh: Use the correct tests.
2487 2008-08-10 Colin Walters <walters@verbum.org>
2489 * giscanner/cgobject.py: Declare/wrap a few more functions.
2490 Fix parameter types for g_object_new and g_type_fundamental.
2492 2008-08-10 Colin Walters <walters@verbum.org>
2494 * giscanner/cgobject.py: Add new decorator @gwrap which forces
2495 us to declare types for both return value and parameters. The
2496 ctypes default of 'int' is bad because it hides 32/64 bit
2497 problems. Convert all existing functions to use it.
2499 2008-08-09 Johan Dahlin <johan@gnome.org>
2501 * giscanner/__init__.py:
2503 * giscanner/cgobject.py:
2504 * giscanner/gidlparser.py:
2505 * giscanner/gidlwriter.py:
2506 * giscanner/girparser.py:
2507 * giscanner/girwriter.py:
2508 * giscanner/glibast.py:
2509 * giscanner/glibtransformer.py:
2510 * giscanner/odict.py:
2511 * giscanner/sourcescanner.py:
2512 * giscanner/transformer.py:
2513 * giscanner/utils.py:
2514 * giscanner/xmlwriter.py:
2515 * tools/g-ir-scanner:
2519 2008-08-09 Johan Dahlin <johan@gnome.org>
2522 * relaxng/c-types.xml:
2523 * relaxng/g-types.xml:
2524 * relaxng/relaxng.rng:
2526 Remove outdated relaxng schemas.
2528 2008-08-09 Johan Dahlin <johan@gnome.org>
2531 Rename metadata to typelib in variable names,
2534 2008-08-09 Johan Dahlin <johan@gnome.org>
2538 Remove old C scanner, which got rewritten in python.
2540 2008-08-09 Johan Dahlin <johan@gnome.org>
2542 * girepository/Makefile.am:
2543 * tools/Makefile.am:
2544 * tools/girmodule.c:
2545 * tools/girmodule.h:
2548 * tools/girparser.c:
2549 * tools/girparser.h:
2550 * tools/girwriter.c:
2551 * tools/girwriter.h:
2552 Move shared *.[ch] files to girepository from tools
2554 2008-08-09 Johan Dahlin <johan@gnome.org>
2556 * tests/Makefile.am:
2559 * tests/constant.test:
2561 * tests/errors.test:
2562 * tests/function.test:
2563 * tests/gobject.test:
2564 * tests/interface.test:
2565 * tests/object.test:
2566 * tests/struct.test:
2571 Rename *.test to *.gir
2573 2008-08-09 Johan Dahlin <johan@gnome.org>
2576 * tests/Makefile.am:
2577 * tests/parser/Foo-expected.gir:
2578 * tests/parser/Makefile.am:
2579 * tests/parser/foo-object.h:
2580 * tests/parser/foo.c:
2581 * tests/parser/utility-expected.gir:
2582 * tests/parser/utility.c:
2583 * tests/parser/utility.h:
2584 * tests/scanner/Makefile.am:
2585 Rename tests/parser to test/scanner
2587 2008-08-08 Colin Walters <walters@verbum.org>
2589 * tests/roundtrips.sh: Use local .gir files again.
2591 2008-08-08 Colin Walters <walters@verbum.org>
2593 * tests/invoke/Makefile.am: .gir file depends on libtool
2596 2008-08-08 Colin Walters <walters@verbum.org>
2598 * tools/girnode.c: Pass through parent node so we can
2599 print the node whose child is NULL, if that occurs.
2601 2008-08-08 Johan Dahlin <johan@gnome.org>
2603 * tests/Makefile.am:
2604 Disable roundtrip tests which are not yet working
2605 * tests/invoke/testfns.gir:
2608 2008-08-08 Johan Dahlin <johan@gnome.org>
2610 * giscanner/girwriter.py:
2612 * giscanner/glibast.py:
2613 * giscanner/glibtransformer.py:
2614 Swap order of members, to keep it consistent with
2617 2008-08-08 Johan Dahlin <johan@gnome.org>
2619 * girepository/gtypelib.c (validate_header):
2620 * girepository/gtypelib.h:
2622 * giscanner/girwriter.py:
2623 * giscanner/sourcescanner.c (gi_source_symbol_ref),
2624 (gi_source_symbol_unref):
2627 * tests/constant.test:
2629 * tests/errors.test:
2630 * tests/function.test:
2631 * tests/gobject.test:
2632 * tests/interface.test:
2633 * tests/invoke/Makefile.am:
2634 * tests/invoke/testfns.xml:
2635 * tests/object.test:
2636 * tests/parser/Makefile.am:
2637 * tests/roundtrips.sh:
2638 * tests/struct.test:
2643 * tools/Makefile.am:
2644 * tools/compiler.c (main):
2645 * tools/generate.c (write_callable_info), (write_function_info),
2647 * tools/gidlmodule.c:
2648 * tools/gidlmodule.h:
2651 * tools/gidlparser.c:
2652 * tools/gidlparser.h:
2653 * tools/gidlwriter.c:
2654 * tools/gidlwriter.h:
2655 * tools/scanner.c (create_node_from_gtype),
2656 (create_node_from_ctype), (g_igenerator_process_properties),
2657 (g_igenerator_process_signals), (g_igenerator_create_object),
2658 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2659 (g_igenerator_create_enum), (g_igenerator_create_flags),
2660 (g_igenerator_process_function_symbol),
2661 (g_igenerator_process_unregistered_struct_typedef),
2662 (g_igenerator_process_struct_typedef),
2663 (g_igenerator_process_union_typedef),
2664 (g_igenerator_process_enum_typedef),
2665 (g_igenerator_process_function_typedef),
2666 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2667 (g_igenerator_add_module), (g_igenerator_add_include_idl):
2668 Merge in the gir-compiler branch.
2669 Thanks to Philip and Colin for their help.
2671 2008-07-26 Colin Walters <walters@verbum.org>
2673 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
2674 and g-idl-generate to go along with how we're changing this
2675 module to be installed.
2676 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
2678 2008-07-24 Colin Walters <walters@verbum.org>
2680 * girepository/girepository.c (g_irepository_register): Add
2681 environment variable G_IREPOSITORY_VERBOSE so we can print
2682 out what we're doing.
2683 * girepository/girepository.c (g_irepository_register_file):
2684 Add GError error message to g_debug call.
2686 2008-07-08 Jürg Billeter <j@bitron.ch>
2688 * giscanner/glibast.py:
2692 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
2694 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
2697 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
2700 * giscanner/girwriter.py:
2701 * giscanner/transformer.py:
2702 * tests/parser/Foo-expected.gir:
2703 * tests/parser/foo-object.h:
2704 * tests/parser/foo.c (foo_object_allow_none):
2705 Add support for gtk-doc annotations for allow-none.
2708 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
2711 * giscanner/girwriter.py:
2712 * giscanner/glibast.py:
2713 * giscanner/glibtransformer.py:
2714 * giscanner/transformer.py:
2715 * tests/parser/Foo-expected.gir:
2716 Start using abstract type instead of the raw C types.
2717 Register a bunch of glib types we care about.
2719 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
2724 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
2726 * girepository/girepository.c:
2727 * girepository/gtypelib.c:
2728 * girepository/ginfo.c:
2729 * girepository/ginvoke.c:
2730 * girepository/girepository.h:
2731 * girepository/gtypelib.h:
2732 * girepository/gmetadata.c:
2733 * girepository/Makefile.am:
2734 * girepository/gmetadata.h:
2736 * tools/gidlmodule.c:
2739 * tools/gidlmodule.h:
2740 * tools/gidlparser.c:
2742 Renamed GMetadata to GTypelib
2744 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
2746 * giscanner/xmlwriter.py:
2747 Improve line wrapping when > 79 charaters
2749 2008-06-05 Jürg Billeter <j@bitron.ch>
2752 * giscanner/girwriter.py:
2753 * giscanner/transformer.py:
2754 Use <type> element for field types
2755 * tests/parser/Foo-expected.gir:
2758 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
2760 * giscanner/glibtransformer.py:
2761 Fix a bug which prevented GdkEvent from being generated
2763 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
2765 * giscanner/Makefile.am:
2767 * giscanner/girwriter.py:
2768 * giscanner/glibast.py:
2769 * giscanner/glibtransformer.py:
2770 * giscanner/transformer.py:
2771 * giscanner/utils.py:
2772 * tests/parser/Foo-expected.gir:
2773 Improve enum member parsing and introspection
2775 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2777 * giscanner/scannerparser.y:
2778 * giscanner/sourcescanner.h:
2779 * giscanner/sourcescanner.py:
2780 Add a new source type enum for member.
2781 Use __repr__ for improved debugging
2782 * giscanner/girparser.py:
2784 * giscanner/transformer.py:
2785 Improve parsing of struct members.
2786 * tests/parser/foo-object.h:
2789 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2791 * giscanner/xmlwriter.py:
2792 Improve error reporting when trying to quote None.
2793 * giscanner/girparser.py:
2794 Do not print warnings when including more complete .gir files
2795 * giscanner/girwriter.py:
2796 Do not require a name for parameters, add a todo for singletons
2797 * giscanner/glibtransformer.py:
2798 Refactor the way structs are done, add a couple of hacks to allow
2800 * giscanner/transformer.py:
2801 Add enough hacks so cairo, atk and pango.gir can be parsed properly
2802 * gobject-introspection-1.0.pc.in:
2803 Export girdir, so we can access gobject-2.0.gir from outside
2805 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2807 * tools/g-ir-scanner:
2808 * tests/parser/Makefile.am:
2809 Update sys.path before running the parser so we don't have
2810 to setup PYTHONPATH ourselves.
2814 * girepository/Makefile.am:
2815 * giscanner/transformer.py:
2816 * gobject-introspection-1.0.pc.in:
2817 * gobject-introspection.pc.in:
2818 * tools/Makefile.am:
2820 Rename pkg-config name to gobject-introspection-1.0,
2821 Do not installed anything which is not using the gir format.
2822 Disable compililation the old C scanner, but still keep the source
2823 until all the remaning functionallity has been ported.
2825 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2827 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
2828 a crash when symbol->indent is NULL.
2830 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
2831 a function to convert a CTYPE symbol to a string
2833 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
2836 * giscanner/girwriter.py:
2837 * giscanner/giscannermodule.c
2838 (pygi_source_scanner_append_filename),
2839 (pygi_source_scanner_parse_file):
2840 * giscanner/glibtransformer.py:
2841 * giscanner/sourcescanner.py:
2842 Revert back to using temporary files to send in headers.
2843 Allow Functions to be passed in as callbacks, add a couple
2844 of try/excepts missing features.
2845 We can now scan pango
2847 2008-05-08 Johan Dahlin <johan@gnome.org>
2849 * giscanner/glibtransformer.py:
2850 * giscanner/transformer.py:
2851 Move namespace stripping glibtransformer->transformer
2853 2008-05-08 Johan Dahlin <johan@gnome.org>
2856 * giscanner/girwriter.py:
2857 * giscanner/glibtransformer.py:
2858 * giscanner/transformer.py:
2859 * tools/g-ir-scanner:
2860 Introduce a namespace ast node
2862 2008-05-05 Johan Dahlin <johan@gnome.org>
2864 * giscanner/__init__.py:
2865 * giscanner/sourcescanner.py:
2866 * giscanner/transformer.py:
2867 Move sourcescanner symbols to the sourcescanner module, instead
2868 of in the global __init__ namespace.
2870 2008-05-03 Johan Dahlin <johan@gnome.org>
2872 * giscanner/glibtransformer.py:
2873 * tools/g-ir-scanner:
2874 Handle missing parameters better, allow - and + in .la dlname
2877 2008-05-03 Johan Dahlin <johan@gnome.org>
2879 * giscanner/__init__.py:
2881 * giscanner/girwriter.py:
2882 * giscanner/glibtransformer.py:
2883 * giscanner/transformer.py:
2884 Parse struct fields properly, improve debugging.
2886 2008-04-29 Johan Dahlin <johan@gnome.org>
2889 * giscanner/girwriter.py:
2890 * giscanner/transformer.py:
2891 * tests/parser/Foo-expected.gir:
2893 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
2895 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
2898 * docs/g-ir-scanner.1:
2899 * metadata-annotations-proposal.txt:
2900 * metadata-format.txt:
2901 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
2903 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
2905 * giscanner/girwriter.py:
2906 * giscanner/glibtransformer.py:
2907 * giscanner/transformer.py:
2908 * giscanner/xmlwriter.py:
2909 * tests/parser/Foo-expected.gir:
2910 * tests/parser/foo-object.h:
2911 Write record/structs to gir file too. Add a couple of tests,
2912 fix an off by one error in xmlwriter.py.
2914 2008-04-28 Johan Dahlin <johan@gnome.org>
2916 * giscanner/xmlwriter.py: Calculate the line length properly,
2917 include the provided extra indentation in the calculation, really.
2919 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2922 * giscanner/glibast.py:
2923 * giscanner/glibtransformer.py:
2924 * giscanner/transformer.py:
2925 * tools/g-ir-scanner:
2926 Add a --strip-prefix and sort out confusion between names and symbols
2927 for functions and struct + derivaties.
2928 Refactor bootstrap of g-ir-scanner, so we can set options on
2929 Transformer() before parsing everything.
2931 2008-04-28 Johan Dahlin <johan@gnome.org>
2933 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
2934 when scanning girepository.h
2936 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
2937 a __GI_SCANNER__ when we run.
2939 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2942 * giscanner/girwriter.py:
2943 * giscanner/glibast.py:
2944 * giscanner/glibtransformer.py:
2945 * tests/parser/Foo-expected.gir:
2946 * tests/parser/utility-expected.gir:
2947 Rename most c:identifier to c:type. Add new ones to
2948 class/interface/enum/boxed.
2950 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2953 * giscanner/girwriter.py:
2954 * giscanner/glibtransformer.py:
2955 * tests/parser/Foo-expected.gidl:
2956 * tests/parser/Makefile.am:
2957 Move c:identifier from return-value to subchild type,
2958 as per Jürgs suggestion
2960 2008-04-28 Johan Dahlin <johan@gnome.org>
2962 * giscanner/girwriter.py:
2963 * tests/parser/Foo-expected.gir:
2964 Write property.type as a child node.
2966 2008-04-27 Johan Dahlin <johan@gnome.org>
2971 * gidl/gobject-2.0.gidl:
2973 * gir/gobject-2.0.gir:
2974 * tests/parser/Makefile.am:
2975 Replace the GObject gidl with a GObject gir.
2977 2008-04-27 Johan Dahlin <johan@gnome.org>
2979 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
2982 * giscanner/xmlwriter.py:
2983 * tests/parser/Foo-expected.gir:
2984 Include indentation in line length calculation
2986 2008-04-27 Johan Dahlin <johan@gnome.org>
2988 * giscanner/girparser.py:
2989 Prettify NS parsing using elementtree.
2991 2008-04-27 Johan Dahlin <johan@gnome.org>
2994 * giscanner/Makefile.am:
2995 * giscanner/girparser.py:
2996 * giscanner/glibtransformer.py:
2997 * tests/parser/Foo-expected.gidl:
2998 * tests/parser/Foo-expected.gir:
2999 * tests/parser/Makefile.am:
3000 * tests/parser/utility-expected.gidl:
3001 * tests/parser/utility-expected.gir:
3002 * tools/g-ir-scanner:
3003 Switch over to GIR as the default format. Add a simple GIDL
3005 Update tests and fix simplify makefiles by depending
3006 on GNU make extensions.
3008 2008-04-27 Johan Dahlin <johan@gnome.org>
3010 * giscanner/xmlwriter.py:
3011 Wrap attributes for lines which are wider than 79 characters
3013 * giscanner/scannerlexer.l:
3014 Allow parenthesis in annotations
3017 * giscanner/gidlwriter.py:
3018 * giscanner/girwriter.py:
3019 * giscanner/glibtransformer.py:
3020 * giscanner/transformer.py:
3021 Add initial sequence support, including annotation.
3022 Refactor type handling a bit.
3024 2008-04-27 Johan Dahlin <johan@gnome.org>
3026 * tests/parser/Foo-expected.gidl:
3027 * tests/parser/foo-object.h:
3028 * tests/parser/foo.c (foo_object_class_init),
3029 (foo_object_get_strings), (foo_object_get_objects):
3030 Add two new functions to check sequence return values.
3031 Also fixes a compilation warning.
3033 2008-04-27 Johan Dahlin <johan@gnome.org>
3035 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3036 a compilation warning.
3038 * tools/Makefile.am (g_ir_scanner_SOURCES):
3039 g-ir-scanner has no sources.
3041 2008-04-25 Johan Dahlin <johan@gnome.org>
3043 * giscanner/Makefile.am:
3045 * giscanner/gidlparser.py:
3046 * giscanner/gidlwriter.py:
3047 * giscanner/girwriter.py:
3048 * giscanner/glibast.py:
3049 * giscanner/glibtransformer.py:
3050 * giscanner/transformer.py:
3051 Split out nodes to ast.py and glibast.py
3053 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3055 * giscanner/Makefile.am:
3056 * giscanner/gidlparser.py:
3057 * giscanner/gidlwriter.py:
3058 * giscanner/girwriter.py:
3059 * giscanner/glibtransformer.py:
3060 * giscanner/gobjecttreebuilder.py:
3061 * giscanner/transformer.py:
3062 * giscanner/treebuilder.py:
3063 * tools/g-ir-scanner:
3064 Rename treebuilder to transformer and
3065 gobjectreebuilder to glibtransformer.
3067 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3069 * giscanner/Makefile.am:
3070 * giscanner/__init__.py:
3071 * giscanner/cgobject.py:
3072 * giscanner/gidlparser.py:
3073 * giscanner/gidlwriter.py:
3074 * giscanner/girwriter.py:
3075 * giscanner/gobjecttreebuilder.py:
3076 * giscanner/odict.py:
3077 * giscanner/sourcescanner.py:
3078 * giscanner/treebuilder.py:
3079 * giscanner/xmlwriter.py:
3080 * tools/Makefile.am:
3081 * tools/g-ir-scanner:
3082 Add LGPLv2 license header and install all python files
3084 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3087 * giscanner/gidlwriter.py:
3088 * giscanner/giscannermodule.c (pygi_source_directive_new),
3089 (directive_get_options), (pygi_source_symbol_new),
3090 (symbol_get_base_type), (pygi_source_type_new),
3091 (type_get_base_type), (type_get_child_list),
3092 (pygi_source_scanner_get_symbols),
3093 (pygi_source_scanner_get_directives):
3094 * giscanner/gobjecttreebuilder.py:
3095 * giscanner/sourcescanner.py:
3096 * giscanner/treebuilder.py:
3097 * tests/parser/foo-object.h:
3098 Add support for virtual methods.
3099 Pair struct FooClass with struct Foo.
3100 Clean up the SourceScanner bindings a bit.
3101 Add a testcase for virtual methods.
3103 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3105 * giscanner/cgobject.py:
3106 * giscanner/gidlwriter.py:
3107 * giscanner/gobjecttreebuilder.py:
3108 Add support for signals
3110 * tests/parser/foo.c (foo_object_class_init):
3111 * Foo-expected.gidl:
3112 Add a signal and update the expected output.
3114 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3116 * giscanner/gidlwriter.py:
3117 * giscanner/girwriter.py:
3118 * giscanner/giscannermodule.c (directive_get_name),
3119 (directive_get_value), (directive_get_options),
3120 (symbol_get_directives), (symbol_set_directives),
3121 (pygi_source_scanner_parse_file),
3122 (pygi_source_scanner_lex_filename),
3123 (pygi_source_scanner_get_directives), (init_giscanner):
3124 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3125 * giscanner/sourcescanner.h:
3126 * giscanner/sourcescanner.py:
3127 * giscanner/treebuilder.py:
3128 * tools/g-ir-scanner:
3129 Add support for source/header annotations.
3131 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3133 * giscanner/gidlwriter.py:
3134 * giscanner/girwriter.py:
3135 * giscanner/gobjecttreebuilder.py:
3136 * giscanner/treebuilder.py:
3137 Add support for Callbacks
3139 2008-04-22 Havoc Pennington <hp@pobox.com>
3141 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3142 not in metadata->module, look for it in the global module, in case
3143 some other object or the app itself provides the symbol.
3145 2008-04-22 Havoc Pennington <hp@pobox.com>
3147 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3148 dlopening a library that is already in the main app, by checking
3149 whether one of the lib's symbols is already loaded.
3151 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3153 * tests/parser/Foo-expected.gidl:
3154 * tests/parser/foo-object.h:
3157 2008-04-22 Havoc Pennington <hp@pobox.com>
3159 * girepository/ginfo.c (g_interface_info_find_method):
3160 Use interface_blob_size not object_blob_size to compute offset.
3162 2008-04-22 Havoc Pennington <hp@pobox.com>
3164 * girepository/gmetadata.c (_g_metadata_init): remove
3165 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3166 (Glade and Clutter for example) rely on being loaded globally.
3168 2008-04-22 Havoc Pennington <hp@pobox.com>
3170 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3171 function to get the GType given a RegisteredTypeInfo
3173 2008-04-22 Johan Dahlin <johan@gnome.org>
3175 * COPYING: Add a LGPL license, to prevent automake to
3176 put in a copy of GPL here. Pointed out by Havoc.
3178 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3179 (g_type_info_is_pointer), (g_type_info_get_tag),
3180 (g_type_info_get_param_type), (g_type_info_get_interface),
3181 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3182 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3183 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3184 (g_object_info_get_interface), (g_object_info_get_field),
3185 (g_interface_info_get_prerequisite),
3186 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3187 * girepository/ginvoke.c (get_ffi_type):
3188 * girepository/girepository.h:
3189 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3190 (g_metadata_check_sanity), (validate_header),
3191 (validate_array_type_blob), (validate_iface_type_blob),
3192 (validate_param_type_blob), (validate_error_type_blob),
3193 (validate_type_blob), (validate_constant_blob),
3194 (validate_struct_blob), (validate_enum_blob):
3195 * girepository/gmetadata.h:
3196 * tests/Makefile.am:
3197 * tests/invoke/Makefile.am:
3198 * tests/invoke/invoke.c (main):
3199 * tests/roundtrips.sh:
3200 * tools/Makefile.am:
3201 * tools/compiler.c (format_output), (write_out_metadata), (main):
3202 * tools/generate.c (write_type_name), (write_type_info),
3203 (write_constant_value), (write_enum_info), (load_metadata), (main):
3204 * tools/gidlcompilercontext.c:
3205 * tools/gidlcompilercontext.h:
3206 * tools/gidlcompilerentrynode.c:
3207 * tools/gidlcompilerentrynode.h:
3208 * tools/gidlcompilertypenode.c:
3209 * tools/gidlcompilertypenode.h:
3210 * tools/gidlmodule.c (g_idl_module_build_metadata):
3211 * tools/gidlmodule.h:
3212 * tools/gidlnode.c (init_stats), (dump_stats),
3213 (g_idl_node_get_size), (g_idl_node_get_full_size),
3214 (g_idl_node_cmp), (g_idl_node_can_have_member),
3215 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3216 (parse_int_value), (parse_uint_value), (parse_float_value),
3217 (parse_boolean_value), (find_entry_node), (find_entry),
3218 (serialize_type), (g_idl_node_build_metadata), (write_string):
3220 * tools/gidlparser.c (parse_type_internal):
3221 * tools/quote-file.sh:
3222 Revert revisions 157,149-148,136-129 and 120.
3223 Move back to using g-idl-generate to generate the metadata and
3224 avoids dependency on a c compiler.
3226 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3228 * giscanner/girwriter.py:
3229 * tools/g-ir-scanner:
3230 Add an initial GIR writer and a --format option to g-ir-scanner
3232 2008-04-21 Johan Dahlin <johan@gnome.org>
3234 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3235 gobject-2.0 and raise ImportError if not found.
3237 * giscanner/gidlparser.py:
3238 * giscanner/gidlwriter.py:
3239 * giscanner/gobjecttreebuilder.py:
3240 * tools/g-ir-scanner:
3241 Add a --include argument to include types from other idls.
3242 Add a minimalistic GIDL parser (just objects for now)
3243 Implement resolving of external type references and use it to
3244 resolve parent types, argument types and return types.
3246 2008-04-21 Johan Dahlin <johan@gnome.org>
3248 * giscanner/gidlwriter.py:
3249 * giscanner/gobjecttreebuilder.py:
3250 * giscanner/treebuilder.py:
3251 Add support for properties.
3252 Refactor Class/Interface support a bit, to share more code and
3253 always initialize their method attribute to an empty list.
3255 2008-04-21 Johan Dahlin <johan@gnome.org>
3257 * giscanner/cgobject.py:
3258 Add a workaround for a glib bug interface introspection bug
3259 (object_interface_list_properties, object_class_list_properties):
3260 Cast the return value to GParamSpec.
3262 * tests/parser/Foo-expected.gidl: Update
3263 * tests/parser/foo.c: Add a string property
3265 * giscanner/gobjecttreebuilder.py:
3266 After stripping namespaces, remove the original
3267 item to avoid duplication (GtkButton struct and Button object)
3269 2008-04-21 Johan Dahlin <johan@gnome.org>
3271 * giscanner/gobjecttreebuilder.py:
3272 * giscanner/treebuilder.py:
3273 Strip namespaces before objects, so we'll export
3274 GtkButton as Button in the gtk namespace
3276 2008-04-21 Johan Dahlin <johan@gnome.org>
3278 * giscanner/gidlwriter.py:
3279 * giscanner/gobjecttreebuilder.py:
3280 * giscanner/treebuilder.py:
3281 Add constructors for object/boxed types.
3283 2008-04-21 Johan Dahlin <johan@gnome.org>
3285 * giscanner/gidlwriter.py:
3286 * giscanner/gobjecttreebuilder.py:
3287 Add support for boxed types
3289 2008-04-21 Johan Dahlin <johan@gnome.org>
3291 * giscanner/giscannermodule.c: Mark structures as const,
3292 wrap SourceType.const_string.
3294 * tests/parser/foo-object.h: Add a couple of constants.
3296 * giscanner/gidlwriter.py:
3297 * giscanner/gobjecttreebuilder.py:
3298 * giscanner/treebuilder.py:
3299 Add basic support for interfaces
3301 * tools/g-ir-scanner:
3302 Add -o/--output for writing to a file
3304 2008-04-21 Havoc Pennington <hp@redhat.com>
3306 * TODO: add some C API wishlist items I could think of quickly
3308 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3310 * giscanner/gidlwriter.py:
3311 * giscanner/xmlwriter.py:
3312 Add a simple api for writing tags which can be used
3313 with the new 'with statement' in python 2.5
3315 2008-04-21 Johan Dahlin <johan@gnome.org>
3317 * giscanner/gobjecttreebuilder.py:
3318 Strip namespace and object prefix from method names.
3320 2008-04-21 Johan Dahlin <johan@gnome.org>
3322 * tools/g-ir-scanner (main): Add --pkg option to pass in
3323 pkg-config modules to get cflags from.
3325 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3326 Avoid duplication, reuse function writer for methods.
3328 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3330 * giscanner/gidlwriter.py:
3331 * giscanner/gobjecttreebuilder.py:
3332 * giscanner/treebuilder.py:
3333 * tools/g-ir-scanner:
3334 Resolve libtool .la files.
3335 Strip name spaces for methods.
3336 Add function symbols
3338 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3340 * giscanner/cgobject.py:
3341 * giscanner/gidlwriter.py:
3342 * giscanner/gobjecttreebuilder.py:
3343 * giscanner/treebuilder.py:
3344 Add support for classes and methods
3346 2008-04-20 Johan Dahlin <johan@gnome.org>
3348 * giscanner/gidlwriter.py:
3349 * giscanner/gobjecttreebuilder.py:
3350 * giscanner/odict.py:
3351 Avoid conflicts, keep the output ordered similar to
3352 the order of the input.
3353 Add a simple ordered dictionary implemenation
3355 2008-04-19 Johan Dahlin <johan@gnome.org>
3357 * giscanner/cgobject.py:
3358 * giscanner/gidlwriter.py:
3359 * giscanner/gobjecttreebuilder.py:
3360 * tools/g-ir-scanner:
3361 Start introspecting get-type functions.
3362 Implement support for GLib/GFlags GTypes.
3363 Add a ctype based GObject binding.
3365 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3367 * giscanner/gidlwriter.py:
3368 * giscanner/xmlwriter.py:
3369 * tools/g-ir-scanner:
3370 Add a simplistic gidl writer, which can't do too much.
3372 2008-04-18 Johan Dahlin <johan@gnome.org>
3374 * giscanner/sourcescanner.py:
3375 * giscanner/treebuilder.py:
3376 * tools/g-ir-scanner:
3377 split tree building and source scanning interface to separate files.
3379 2008-04-18 Johan Dahlin <johan@gnome.org>
3381 * tools/g-ir-scanner (Parameter.__init__): Start constructing
3383 - Add support for struct/parameter/return, start parsing of ctypes
3385 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
3388 2008-03-31 Johan Dahlin <johan@gnome.org>
3390 * tools/g-ir-scanner:
3391 Start to build abstract syntax node of scanned sources.
3392 Add support for cpp options.
3394 2008-03-27 Johan Dahlin <johan@gnome.org>
3396 * giscanner/giscannermodule.c:
3397 * giscanner/scannerlexer.l:
3398 * giscanner/sourcescanner.c:
3399 * tools/g-ir-scanner:
3401 Add simple pre-processor using subprocess and a PIPE.
3402 Change the parse_file apis to accept a file descriptor.
3404 2008-03-25 Johan Dahlin <johan@gnome.org>
3406 * giscanner/__init__.py:
3407 * tools/g-ir-scanner:
3408 Fix a typo and add an example python test program.
3410 2008-03-25 Johan Dahlin <johan@gnome.org>
3412 * giscanner/__init__.py:
3413 * giscanner/giscannermodule.c:
3414 * giscanner/sourcescanner.c:
3415 * giscanner/sourcescanner.h:
3416 Add constants and wrap a few more SymbolType fields
3418 2008-03-25 Johan Dahlin <johan@gnome.org>
3422 * giscanner/__init__.py:
3423 * giscanner/giscannermodule.c:
3424 * giscanner/Makefile.am:
3426 Add initial python bindings for the scanner and
3427 depend on python 2.5.
3429 2008-03-25 Johan Dahlin <johan@gnome.org>
3433 * giscanner/Makefile.am:
3434 * giscanner/sourcescanner.c:
3435 * giscanner/sourcescanner.h:
3436 * tools/Makefile.am:
3437 * tools/grealpath.h:
3438 * tools/sourcescanner.c:
3439 * tools/sourcescanner.h:
3441 Move the scanner to a separate library.
3443 2008-03-23 Johan Dahlin <johan@gnome.org>
3445 * tools/Makefile.am:
3448 * tools/scannerlexer.l:
3449 * tools/scannerparser.y:
3450 * tools/sourcescanner.c:
3451 * tools/sourcescanner.h:
3452 Split out the source scanner from the generator.
3453 Rename the symbols used in the scanner to use the gi_ prefix.
3454 This should make it possible to use the raw C parser from
3457 2008-03-23 Johan Dahlin <johan@gnome.org>
3459 * tests/parser/Makefile.am (utility.gidl):
3460 * tests/parser/utility-expected.gidl:
3461 Pass in the gobject.gidl since we're defining a GObject.
3463 2008-03-12 Johan Dahlin <johan@gnome.org>
3465 * relaxng/relaxng.rng:
3466 Add a releaxng in relaxng we can use to validate the relaxngs
3469 2008-03-12 Jürg Billeter <j@bitron.ch>
3471 * tools/scanner.c: (g_igenerator_new):
3472 * tools/scannerparser.y:
3473 Fix compiler warnings.
3475 2008-03-12 Jürg Billeter <j@bitron.ch>
3479 * tools/scannerparser.y:
3480 Start fixing memory management in g-idl-scanner.
3482 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
3484 * tools/gidlcompilercontext.c: (write_compiled):
3485 Fix critical warning when no shlib passed to g-idl-compiler.
3487 2008-03-12 Johan Dahlin <johan@gnome.org>
3489 * tests/parser/utility-expected.gidl:
3490 * tests/parser/utility.h:
3491 Add a get_type-function, so the scanner actually
3492 parses it as an object.
3494 2008-03-12 Johan Dahlin <johan@gnome.org>
3496 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
3499 * tests/parser/Foo-expected.gidl:
3500 * tests/parser/Makefile.am:
3501 * tests/parser/foo-object.h:
3502 * tests/parser/foo.c:
3503 * tests/parser/utility-expected.gidl:
3504 * tests/parser/utility.c:
3505 * tests/parser/utility.h:
3507 Add a new gidl test. 'utility.gidl', which is used to be able
3508 to test external type references. Add a reference to UtilityObject*
3511 2008-03-11 Johan Dahlin <johan@gnome.org>
3515 Remove most global variables
3517 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
3519 * tools/scannerlexer.l:
3521 * tests/parser/Foo-expected.gidl:
3522 * tests/parser/foo.c:
3523 * tests/parser/Makefile.am:
3524 * tests/parser/foo-object.h:
3526 Added a few extra tests. Which resulted in finding a few
3527 bugs. Which resulted in me fixing those bugs
3529 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
3531 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
3532 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
3533 Add some comments for strings into generated output for
3536 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
3538 * tools/gidlcompilercontext.c: (write_compiled):
3539 Write out the shlibs variable before writing out the strings
3540 length. Fixes compiler warning when using '-l' flag with
3543 2008-03-11 Johan Dahlin <johan@gnome.org>
3545 * tests/parser/Foo-expected.gidl:
3546 * tests/parser/foo-object.h:
3549 * tools/scannerlexer.l:
3550 Add support for parsing return arguments. Add support for
3551 caller-owns return types.
3552 Patch by Philip Van Hoof.
3554 * tools/scannerparser.y:
3555 Remove parsing of the @deprecated syntax used in headers.
3556 We will support gtk-doc deprecation in the future instead.
3558 2008-03-11 Johan Dahlin <johan@gnome.org>
3560 * tools/compiler.c (main): Coding style fixes
3562 2008-03-10 Johan Dahlin <johan@gnome.org>
3565 Add GCOV_LIBS to GILIBS
3567 2008-03-10 Johan Dahlin <johan@gnome.org>
3569 * tests/parser/Foo-expected.gidl:
3570 * tests/parser/foo.c:
3571 Rename null-ok to direction=out
3573 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
3575 reviewed and extensively tested by Johan
3577 * tests/parser/Foo-expected.gidl:
3578 * tests/parser/foo-object.h:
3579 * tests/parser/foo.c:
3582 * tools/gidlwriter.c:
3585 * tools/scannerlexer.l:
3586 * tools/scannerparser.y:
3588 Add support for scanning for gtk-doc comments inside
3589 C source files. Add tests
3591 2008-03-10 Johan Dahlin <johan@gnome.org>
3593 * tests/parser/Makefile.am:
3594 * tests/parser/foo.c:
3597 * tools/scannerparser.y:
3598 Add an api to lex filenames.
3599 Lex all source .c files passed in on the command line.
3600 Scan sources in a test and a couple of private structures
3601 which should not be included in the generated gidl
3603 2008-03-10 Johan Dahlin <johan@gnome.org>
3605 * tests/invoke/Makefile.am: Make the generated metadata
3606 depend on the g-idl-compiler
3608 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3610 * tools/gidlmodule.c
3611 * tools/gidlmodule.h
3614 Remove the old g-idl-compiler code.
3617 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
3619 * tools/quote-file.sh
3622 Move to using the 'C' struct compiler code.
3624 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3626 * girepository/ginfo.c
3628 Change the way that external references with no namespace
3629 are dealt with. External references with no namespace
3630 are placed into the XML as-if they are a local reference.
3631 This is temporary, but helps with roundtrip tests.
3633 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3635 * girepository/ginfo.c
3636 Add the ability to get the value of a constant of
3637 type TYPE_TAG_SYMBOL. In the case of a symbol the value
3638 is provided as a string.
3640 This would deal properly with:
3641 typedef char* random;
3642 const random = "A string";
3644 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3646 * girepository/ginfo.c
3647 * girepository/girepository.h
3649 Add a function to check if an enum is registered or not.
3650 Previously anything testing this relied on the g-type
3651 string offset having a value of 0.
3653 * girepository/gmetadata.c
3654 * girepository/gmetadata.h
3656 Remove unneccesary or erroneous checks. There were two
3657 metadata validation checks which made sure that the blob
3658 sizes were the same as some magic numbers compiled into the code.
3659 This is wrong as it breaks any forwards compatibility that may
3662 Checks were also present that made sure that unregistered type
3663 blobs had a value of 0 in the g-type offset field. This is
3664 unneccessary. If a type blob is unregistered then any value
3665 in its g-type field is simply invalid.
3667 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3669 * girepository/ginfo.c
3670 * girepository/gmetadata.c
3671 * girepository/gmetadata.h
3673 Change the metadata format to have a standard header
3674 for all the type blobs. Merge the SimpleTypeBlob
3675 and InterfaceTypeBlob into a union. A union of these
3676 two blobs existed previously but was not explicit
3677 in the metadata format.
3679 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3681 * tools/gidlcompilercontext.c
3682 * tools/gidlcompilercontext.h
3683 * tools/gidlcompilerentrynode.c
3684 * tools/gidlcompilerentrynode.h
3685 * tools/gidlcompilertypenode.c
3686 * tools/gidlcompilertypenode.h
3688 Add code to compile a tree of GIdlNodes to
3689 a 'C' struct representing the metadata.
3690 This is to aid cross-compiling. Previously
3691 the g-idl-compiler created a binary blob with
3692 data written in the byte order and alignment
3693 of the tool rather than the intended target.
3695 Cleaned up and improved by Johan and Robert :-)
3697 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3699 * girepository/ginvoke.c
3700 * girepository/girepository.h
3701 * girepository/gmetadata.c
3702 * girepository/gmetadata.h
3704 * tools/gidlparser.c
3705 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
3706 to avoid confusion with the interface blob.
3709 * tools/gidlparser.c
3710 Remove magic numbers and replace with type-tag
3711 enumeration symbols.
3713 * girepository/gmetadata.c
3714 Add validate declaration.
3716 2008-03-10 Jürg Billeter <j@bitron.ch>
3718 * tools/gidlparser.c: (parse_type_internal):
3719 * tools/scannerlexer.l:
3720 * tools/scannerparser.y:
3721 Support C99 _Bool type in scanner.
3723 2008-03-10 Jürg Billeter <j@bitron.ch>
3725 * tests/parser/Foo-expected.gidl:
3726 * tests/parser/foo-object.h:
3727 * tests/parser/foo.c: (foo_enum_method):
3728 * tools/scanner.c: (g_igenerator_process_function_symbol):
3729 Don't skip functions that are defined in the namespace of a type
3730 that doesn't support methods, as for example enums.
3732 2008-03-10 Johan Dahlin <johan@gnome.org>
3734 * gidl.dtd: Remove, we're using relaxng for now
3736 * tests/parser/Foo-expected.gidl:
3737 * tests/parser/foo-object.h:
3738 * tests/parser/foo.c:
3739 Rename the enum/flags get_type functions to include the whole type.
3741 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
3743 * tools/gidlwriter.c (enum_generate): added "type-name",
3744 "get-type" and "deprecated" missing arguments.
3745 * tests/parser/Foo-expected.gidl:
3746 * tests/parser/foo-object.h: test enum type, and no type.
3748 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
3751 Consistent checks, add missing 'test'
3753 2008-03-05 Havoc Pennington <hp@redhat.com>
3755 * configure.ac: Take advantage of a libffi.pc if one exists, as it
3756 does on Fedora 8. Make libffi a hard requirement, since it was in
3757 practice anyway (was not really conditional in the code or
3758 makefile, only in configure).
3760 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3762 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
3763 reviewed by: Johan Dahlin <johan@gnome.org>
3765 * tests/Makefile.am:
3766 * tests/roundtrips.sh:
3767 Modify the roundtrips test so that they do not use the
3768 --raw option of the gidl compiler but instead compile a
3769 shared library to use with g_module.
3771 * tests/invoke/Makefile.am:
3772 * tests/invoke/invoke.c:
3773 Modify the invoke tests to build a shared library rather
3774 than use the --raw option.
3776 * tests/invoke/invoke-namespace-find.sh: Removed:
3777 Noone knows why this was here, so removed.
3779 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
3781 * tools/scanner.c: (g_igenerator_process_function_symbol):
3782 Move g_idl_node_can_have_member test later, as it broke spotting
3783 get_type's for nodes that can't have members.
3785 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3788 * tools/gidlnode.c: (g_idl_node_can_have_member):
3789 Add g_idl_node_can_have_member.
3791 * tools/scanner.c: (g_igenerator_process_function_symbol):
3792 Use g_idl_node_can_have_member to test if we should add a function
3793 as a member of the type node.
3795 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3797 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
3799 * tests/parser/Makefile.am:
3800 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
3802 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3804 * tools/scanner.c: (main):
3805 Ignore -pthread when passed to g-idl-scanner.
3807 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3809 * tools/grealpath.h: Added:
3810 * tools/scanner.c: (main):
3811 * tools/scannerlexer.l:
3812 * tools/Makefile.am:
3813 Always use absolute paths with symbolic links resolved when
3814 comparing filenames.
3816 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3818 * gobject-introspection.pc.in:
3819 Provide variables for g-idl-parser, scanner and compiler in the
3822 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
3825 * girepository/Makefile.am:
3826 * tools/Makefile.am:
3827 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
3829 2008-02-10 Johan Dahlin <johan@gnome.org>
3831 * tests/parser/Foo-expected.gidl:
3832 * tests/parser/foo-object.h:
3833 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
3834 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
3837 2008-02-10 Johan Dahlin <johan@gnome.org>
3839 * tests/parser/Foo-expected.gidl:
3840 * tests/parser/foo-object.h:
3841 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
3842 Add enum and flags test.
3844 2008-02-10 Johan Dahlin <johan@gnome.org>
3848 * girepository/Makefile.am:
3849 Make 'make distcheck' work again.
3851 2008-02-10 Johan Dahlin <johan@gnome.org>
3853 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
3856 * tests/parser/Makefile.am: Only create Foo.gidl when running make
3857 check, eg exclude it from BUILT_SOURCES.
3859 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
3864 * girepository/Makefile.am:
3865 * m4/Makefile.am: Added:
3866 * m4/as-compiler-flag.m4: Added:
3867 * m4/gcov.m4: Added:
3868 * tools/Makefile.am:
3869 Add ability to generate a coverage report.
3870 Adds configure option --enable-gcov and make rule 'check-coverage'.
3872 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
3876 * gidl/Makefile.am: Added:
3877 * girepository/Makefile.am: Added:
3878 * src/Makefile.am: Renamed to tools/Makefile.am:
3879 * src/compiler.c: Renamed to tools/compiler.c:
3880 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
3881 * src/generate.c: Renamed to tools/generate.c:
3882 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
3883 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
3884 * src/gidlnode.c: Renamed to tools/gidlnode.c:
3885 * src/gidlnode.h: Renamed to tools/gidlnode.h:
3886 * src/gidlparser.c: Renamed to tools/gidlparser.c:
3887 * src/gidlparser.h: Renamed to tools/gidlparser.h:
3888 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
3889 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
3890 * src/ginfo.c: Renamed to girepository/ginfo.c:
3891 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
3892 * src/girepository.c: Renamed to girepository/girepository.c:
3893 * src/girepository.h: Renamed to girepository/girepository.h:
3894 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
3895 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
3896 * src/scanner.c: Renamed to tools/scanner.c:
3897 * src/scanner.h: Renamed to tools/scanner.h:
3898 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
3899 * src/scannerparser.y: Renamed to tools/scannerparser.y:
3900 * tests/invoke/Makefile.am:
3901 Split src/ into girepository/ and tools/
3905 * girepository/Makefile.am:
3906 * tests/Makefile.am:
3907 * tests/invoke/Makefile.am:
3908 * tests/parser/Makefile.am:
3909 * tests/roundtrips.sh:
3910 * tools/Makefile.am:
3911 Make distcheck work.
3913 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
3915 * tests/invoke/invoke.c: (main):
3916 * tests/invoke/testfns.c: (test6), (test7):
3917 * tests/invoke/testfns.xml:
3918 Add tests for invokation with a GList argument.
3919 Also tests caller-owns return values.
3921 2008-02-04 Rob Taylor <robtaylor@floopily.org>
3924 Add some documentation for GICallableInfo
3926 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
3929 Correct syntax errors in the DTD file.
3931 * relaxng/c-types.xml:
3932 * relaxng/g-types.xml:
3934 Add a RelaxNG specification for the GObject Introspection XML data.
3935 The Specification has validated all of the test files.
3937 2008-01-25 Rob Taylor <robtaylor@floopily.org>
3939 * tests/roundtrips.sh:
3940 * tests/struct.test:
3941 Add roundtrip tests for structs.
3943 2008-01-11 Johan Dahlin <johan@gnome.org>
3945 * src/scanner.c (g_igenerator_process_function_symbol):
3946 Refactor out g_idle_node_add_member.
3947 (create_node_from_gtype, create_node_from_ctype):
3948 Use case instead of if...else
3949 (get_type_from_type_id):
3950 Rename to create_node_from_gtype
3951 (get_type_from_ctype):
3952 Rename to create_node_from_ctype
3954 Rename ginode -> node, gitype -> type, gifunc -> func.
3956 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
3957 Two new functions, refactor out of scanner.c
3959 * src/scanner.c: (g_igenerator_process_function_symbol):
3960 * src/scannerlexer.l:
3961 Do not save the content of the deprecated variable, only
3964 2008-01-11 Johan Dahlin <johan@gnome.org>
3966 * tests/parser/foo-object.h: Add a couple of comment parser tests.
3968 2008-01-11 Jürg Billeter <j@bitron.ch>
3970 * src/scannerlexer.l:
3971 Fix GTK-Doc parsing.
3973 2008-01-11 Jürg Billeter <j@bitron.ch>
3975 * src/scannerlexer.l:
3976 Fix GTK-Doc parsing.
3978 2008-01-11 Jürg Billeter <j@bitron.ch>
3980 * src/scanner.c: (lookup_symbol):
3981 Return unresolved name if we find unknown symbol.
3983 2008-01-11 Jürg Billeter <j@bitron.ch>
3985 * src/scanner.c: (g_igenerator_generate):
3986 Initialize GObject to fix scanning interface properties.
3988 * tests/parser/Foo-expected.gidl:
3989 * tests/parser/foo-object.h:
3990 * tests/parser/foo.c: (foo_interface_get_type):
3991 Test interfaces with GObject prerequisite.
3993 * tests/parser/Makefile.am:
3994 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
3996 2007-12-27 Johan Dahlin <johan@gnome.org>
3998 * src/scannerlexer.l:
3999 Parse gtk-doc comments.
4001 * src/gidlwriter.c: (function_generate):
4002 Reorganize, avoid duplication and add support for
4003 writing deprecated functions.
4005 * src/scannerparser.y:
4007 Add new structure CDirective and functions to create/free them.
4009 * src/scanner.c: (g_igenerator_process_function_symbol),
4010 (g_igenerator_process_unregistered_struct_typedef),
4011 (g_igenerator_process_struct_typedef),
4012 (g_igenerator_process_union_typedef),
4013 (g_igenerator_process_enum_typedef),
4014 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4015 (g_igenerator_start_preprocessor):
4016 Parse @deprecated directive for functions.
4017 Remove some more C99isms.
4018 Send in -C to cpp to avoid stripping comments.
4020 * tests/parser/foo-object.h:
4021 * tests/parser/Foo-expected.gidl:
4022 Add deprecated directive
4024 2007-12-27 Johan Dahlin <johan@gnome.org>
4026 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4027 escape ' and " so it looks more like C.
4030 Unlink temporary file used.
4032 2007-12-27 Johan Dahlin <johan@gnome.org>
4034 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4035 (g_igenerator_start_preprocessor), (main):
4037 * src/scannerparser.y:
4038 Plug a couple of simple memory leaks.
4040 2007-12-27 Johan Dahlin <johan@gnome.org>
4042 * src/scanner.c: (g_igenerator_parse_macros),
4043 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4046 * src/scannerparser.y:
4047 * tests/parser/Makefile.am:
4049 Improve error reporting, return when the preprocessor fails.
4050 Add a verbose parameter, to aid debugging.
4051 Revert to using a temporary file to communicate between the
4052 preprocessor and the parser, because we need to wait for
4053 the exit code from the pre-processor before starting to parse.
4055 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4057 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4058 cparser.y to scannerparser.y
4060 2007-12-11 Johan Dahlin <johan@gnome.org>
4064 * src/scanner.c: (g_igenerator_new):
4066 Get rid of the global the_generator variable.
4068 2007-12-10 Johan Dahlin <johan@gnome.org>
4070 * src/scanner.c (main): Add an output option,
4071 add checks for required parameters
4074 set BUILD_SOURCES and CLEANFILES properly
4076 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4077 (g_writer_write_indent), (g_writer_write_unindent),
4078 (field_generate), (value_generate), (constant_generate),
4079 (property_generate), (function_generate), (vfunc_generate),
4080 (signal_generate), (interface_generate), (struct_generate),
4081 (union_generate), (boxed_generate), (enum_generate),
4082 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4084 * src/scanner.c: (g_igenerator_generate):
4086 * src/scannerwriter.c:
4088 Refactor scannerwriter to only be tied to a GIdlModule and move
4089 it (again!) to gidlwriter.c. Change the writer function to take
4092 2007-12-10 Johan Dahlin <johan@gnome.org>
4095 * src/scanner.c: (g_igenerator_generate):
4097 * src/scannerwriter.c: (g_igenerator_write_inline),
4098 (g_igenerator_write), (g_igenerator_write_indent),
4099 (g_igenerator_write_unindent), (field_generate), (value_generate),
4100 (constant_generate), (property_generate), (function_generate),
4101 (vfunc_generate), (signal_generate), (interface_generate),
4102 (struct_generate), (union_generate), (boxed_generate),
4103 (enum_generate), (node_generate), (module_generate),
4104 (g_scanner_write_file):
4106 Move the scanner gidl writing to a separate source file.
4108 2007-12-10 Johan Dahlin <johan@gnome.org>
4113 Move over all CType construction functions.
4115 * tests/parser/Makefile.am:
4116 Be verbose when printing parsing tests results.
4118 2007-12-10 Johan Dahlin <johan@gnome.org>
4120 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4121 preprocessor handling to here. Start cpp insteado of cc -E,
4122 always include -U__GNUC__, since it's specific to the preprocessor
4125 * tests/parser/Makefile.am (check-local): Silent diff and skip
4126 -U__GNUC__ which is always defined now
4128 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4130 reviewed by: <delete if not using a buddy>
4132 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4133 * tests/parser/Makefile.am:
4135 2007-12-09 Johan Dahlin <johan@gnome.org>
4138 Use GOption for command line options.
4139 (g_igenerator_new, main): Simplify constructor and they way
4140 parameters are passed into it.
4146 * src/gen-introspect.c:
4147 * src/gen-introspect.h:
4149 Rename gen-introspect.[ch] to scanner.[ch]
4151 2007-12-09 Johan Dahlin <johan@gnome.org>
4155 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4156 don't make the repository library and the other utilites link against
4159 * src/gen-introspect.c: (g_igenerator_create_object),
4160 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4161 (g_igenerator_create_enum), (g_igenerator_create_flags),
4162 (g_igenerator_process_module_symbol),
4163 (g_igenerator_process_module), (g_igenerator_generate), (main):
4164 * src/gen-introspect.h:
4165 Refactor g_igenerator_process_types into smaller pieces.
4167 * tests/parser/Makefile.am:
4168 Depend on the gen-introspect binary
4170 2007-12-09 Johan Dahlin <johan@gnome.org>
4172 * src/gen-introspect.c (g_igenerator_process_types):
4173 Break into smaller pieces, one for each generated node type.
4175 2007-12-08 Johan Dahlin <johan@gnome.org>
4177 * src/gen-introspect.c: (g_igenerator_process_types),
4178 (g_igenerator_add_module):
4179 * tests/parser/Foo-expected.gidl:
4180 * tests/parser/foo-object.h:
4181 * tests/parser/foo.c: (foo_subobject_class_init),
4182 (foo_subobject_init):
4184 Add a subobject test and make sure to register defined classes
4185 in the lookup symbol hash table.
4187 2007-12-08 Johan Dahlin <johan@gnome.org>
4191 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4192 (g_igenerator_process_types), (g_igenerator_add_module),
4193 (g_igenerator_add_include_idl), (main):
4194 * src/gen-introspect.h:
4195 * tests/parser/Makefile.am:
4196 * tests/parser/Foo-expected.gidl:
4198 Change the gen-introspect to generate namespaced module names,
4199 such as GLib.Object instead of GObject.
4200 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4201 add a --include-idl parameter to gen-introspect,
4202 and update the parser test.
4204 2007-12-08 Johan Dahlin <johan@gnome.org>
4206 * src/gen-introspect.c:
4207 Move main to the end of the file and attempt to make it valid
4210 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4211 we're not quite ready to generate metadata yet.
4216 Add a simple gen-introspect parser test
4218 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4220 reviewed by: Johan Dahlin <johan@gnome.org>
4223 * gobject-introspection.pc.in:
4225 * src/compiler.c: (format_output), (write_out_metadata), (main):
4226 * src/gen-introspect.c: (main):
4227 * src/gen-introspect.h:
4228 * src/generate.c: (write_callable_info), (write_repository),
4229 (load_metadata), (main):
4230 * src/gidlmodule.c: (g_idl_module_new),
4231 (g_idl_module_build_metadata):
4233 * src/gidlparser.c: (start_element_handler):
4234 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4235 (g_base_info_get_name), (g_base_info_get_namespace),
4236 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4237 (g_base_info_get_metadata), (g_function_info_get_symbol),
4238 (g_function_info_get_flags), (g_function_info_get_property),
4239 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4240 (g_callable_info_may_return_null),
4241 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4242 (g_callable_info_get_arg), (g_arg_info_get_direction),
4243 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4244 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4245 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4246 (g_type_info_get_tag), (g_type_info_get_param_type),
4247 (g_type_info_get_interface), (g_type_info_get_array_length),
4248 (g_type_info_is_zero_terminated),
4249 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4250 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4251 (g_value_info_get_value), (g_field_info_get_flags),
4252 (g_field_info_get_size), (g_field_info_get_offset),
4253 (g_registered_type_info_get_type_name),
4254 (g_registered_type_info_get_type_init),
4255 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4256 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4257 (find_method), (g_struct_info_find_method),
4258 (g_enum_info_get_n_values), (g_enum_info_get_value),
4259 (g_object_info_get_parent), (g_object_info_get_type_name),
4260 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4261 (g_object_info_get_interface), (g_object_info_get_n_fields),
4262 (g_object_info_get_field), (g_object_info_get_n_properties),
4263 (g_object_info_get_property), (g_object_info_get_n_methods),
4264 (g_object_info_get_method), (g_object_info_find_method),
4265 (g_object_info_get_n_signals), (g_object_info_get_signal),
4266 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4267 (g_object_info_get_n_constants), (g_object_info_get_constant),
4268 (g_interface_info_get_n_prerequisites),
4269 (g_interface_info_get_prerequisite),
4270 (g_interface_info_get_n_properties),
4271 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4272 (g_interface_info_get_method), (g_interface_info_find_method),
4273 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4274 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4275 (g_interface_info_get_n_constants),
4276 (g_interface_info_get_constant), (g_property_info_get_flags),
4277 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4278 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4279 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4280 (g_constant_info_get_value), (g_union_info_get_n_fields),
4281 (g_union_info_get_field), (g_union_info_get_n_methods),
4282 (g_union_info_get_method), (g_union_info_is_discriminated),
4283 (g_union_info_get_discriminator_offset),
4284 (g_union_info_get_discriminator):
4285 * src/ginvoke.c: (g_function_info_invoke):
4286 * src/girepository.c: (g_irepository_register),
4287 (g_irepository_unregister), (g_irepository_get_default),
4288 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4289 (g_irepository_get_info), (g_irepository_find_by_name),
4290 (g_irepository_get_shared_library),
4291 (g_irepository_build_search_path), (g_irepository_register_file),
4292 (g_irepository_error_quark):
4293 * src/girepository.h:
4294 * src/gmetadata.c: (g_metadata_get_dir_entry),
4295 (g_metadata_check_sanity), (validate_header),
4296 (validate_array_type_blob), (validate_iface_type_blob),
4297 (validate_param_type_blob), (validate_error_type_blob),
4298 (validate_type_blob), (validate_arg_blob),
4299 (validate_signature_blob), (validate_function_blob),
4300 (validate_callback_blob), (validate_constant_blob),
4301 (validate_value_blob), (validate_field_blob),
4302 (validate_property_blob), (validate_signal_blob),
4303 (validate_vfunc_blob), (validate_struct_blob),
4304 (validate_enum_blob), (validate_object_blob),
4305 (validate_interface_blob), (validate_errordomain_blob),
4306 (validate_union_blob), (validate_blob), (validate_directory),
4307 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4308 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4309 (g_metadata_new_from_mapped_file), (g_metadata_free),
4310 (g_metadata_set_module), (g_metadata_get_namespace):
4312 * tests/Makefile.am:
4313 * tests/invoke/Makefile.am:
4314 * tests/invoke/invoke-namespace-find.sh:
4315 * tests/invoke/invoke.c: (main):
4317 Add a namespace/shared library mapping. fixes #313268.
4319 2007-12-03 Johan Dahlin <johan@gnome.org>
4321 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4324 2007-11-30 Jürg Billeter <j@bitron.ch>
4330 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4331 (g_igenerator_write_inline), (g_igenerator_write),
4332 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4333 (field_generate), (value_generate), (constant_generate),
4334 (property_generate), (function_generate), (vfunc_generate),
4335 (signal_generate), (interface_generate), (struct_generate),
4336 (union_generate), (boxed_generate), (enum_generate),
4337 (node_generate), (module_generate), (get_type_from_type_id),
4338 (str_replace), (g_igenerator_process_properties),
4339 (g_igenerator_process_signals), (g_igenerator_process_types),
4340 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4341 (g_igenerator_process_unregistered_struct_typedef),
4342 (g_igenerator_process_struct_typedef),
4343 (g_igenerator_process_union_typedef),
4344 (g_igenerator_process_enum_typedef),
4345 (g_igenerator_process_function_typedef),
4346 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4347 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4348 (g_igenerator_generate), (main), (csymbol_new),
4349 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4350 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4351 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4352 (eat_hspace), (eat_line), (read_identifier),
4353 (g_igenerator_parse_macros):
4354 * src/gen-introspect.h:
4356 Import gen-introspect to generate introspection information by
4359 2007-11-30 Jürg Billeter <j@bitron.ch>
4361 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4363 2007-11-30 Jürg Billeter <j@bitron.ch>
4365 * src/gidlparser.c: (end_element_handler): Don't leave requires
4368 2007-11-29 Johan Dahlin <johan@gnome.org>
4370 * src/gidlparser.c (parse_type_internal): Add char,
4371 gchar and guchar to the builtin types.
4373 2007-11-26 Johan Dahlin <johan@gnome.org>
4375 * src/ginfo.c: (g_object_info_get_type_name),
4376 (g_object_info_get_type_init):
4377 * src/girepository.c: (g_irepository_is_registered):
4378 * src/girepository.h:
4380 Add g_object_info_get_type_name, g_object_info_get_type_init and
4381 g_irepository_is_registered.
4383 2006-08-14 Jürg Billeter <j@bitron.ch>
4385 * src/gidlparser.c: (end_element_handler): Don't leave
4386 namespace and implements states too early.
4389 2007-11-26 Johan Dahlin <johan@gnome.org>
4391 * src/gmetadata.c (validate_struct_blob):
4392 pass blob_type to validate_function_blob instead of
4393 hard-coding BLOB_TYPE_STRUCT.
4395 Patch by Torsten Schoenfeld, fixes #314190
4397 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
4399 * src/compiler.c, src/generate.c, src/gidlnode.c,
4400 src/gidlparser.c, src/ginfo.c, src/girepository.c,
4401 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
4402 warnings about return values, signedness mismatches, unused
4403 variables, and unhandles enum values in switch statements.
4405 * tests/invoke/Makefile.am: Don't install the invoke test program.
4406 Add -I ../../src to the cflags used for the test functions files.
4408 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4410 * src/girepository.h: Export g_invoke_error_quark.
4412 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4414 * src/ginvoke.c: Remove the fallback implementation of
4415 g_function_info_invoke since we now formally depend on libffi.
4417 2005-07-25 Matthias Clasen <mclasen@redhat.com>
4419 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
4420 Remove these files from cvs, as they are now generated.
4422 * src/gmetadata.c (validate_iface_type_blob): Don't
4423 complain if blob->pointer is not set, since that
4424 happens for enum and flag types. (#308935, Gustavo
4427 * Commit an autoconf-conversion patch by
4428 Gustavo Carneiro (#308708)
4430 2005-05-24 Matthias Clasen <mclasen@redhat.com>
4432 * src/compiler.c (main): Use it here to validate
4433 the generated metadata.
4435 * src/gmetadata.[hc]: Add code to validate a
4438 * metadata-format.txt: Updates
4440 2005-05-22 Matthias Clasen <mclasen@redhat.com>
4442 * tests/*: Add struct offsets to field and vfunc
4445 * src/generate.c (write_vfunc_info): Write offset
4446 information for vfuncs.
4448 * src/gidlnode.c (g_idl_node_build_metadata): Write
4449 the struct offsets into the metadata.
4451 * src/gidlparser.c: Parse the offset attributes of
4452 field and vfunc elements.
4454 * src/gidlnode.h: Add offset members to field and
4457 2005-05-21 Matthias Clasen <mclasen@redhat.com>
4461 * gidl.dtd: Updates.
4463 * src/g-idl-offsets.pl: A perl script which reads a .gidl
4464 file, creates, compiles and runs a C file, and folds the
4465 resulting struct offsets back into the .gidl file.
4467 2005-05-20 Matthias Clasen <mclasen@redhat.com>
4469 * src/gidlparser.c (start_field): Make fields in objects
4472 * src/gidlmodule.c: Include string.h
4477 * metadata-format.txt: Cleanup basic types.
4478 * src/*: Adapt to the changes.
4479 * tests/*: Adapt to the changes.
4480 * examples/gdk-pixbuf.gidl: Adapt to the changes.
4482 * src/gidlnode.c (g_idl_node_get_size): Report the correct
4483 size for enum blobs.
4484 (g_idl_node_get_full_size): Report the correct size for
4487 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
4488 error checking for blob sizes.
4490 2005-05-19 Matthias Clasen <mclasen@redhat.com>
4492 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
4493 interface types for which is_pointer is FALSE, e.g. enums.
4495 * src/gidlnode.c (g_idl_node_get_full_size)
4496 * src/gidlparser.c (parse_type_internal):
4497 * src/generate.c (write_type_info): Support unspecialized
4498 lists, hashtables and errors. Also emit a '*' after these.
4502 2005-05-17 Matthias Clasen <mclasen@redhat.com>
4506 * metadata-format.txt: Cleanups by Maciej Katafiasz.
4508 2005-05-15 Matthias Clasen <mclasen@redhat.com>
4510 * src/*.c: Change the directory to be addressed by
4511 1-based indexes, and use an index of zero to mean
4514 2005-05-15 Matthias Clasen <mclasen@redhat.com>
4516 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
4518 * tests/union.test: Add a union test.
4520 * src/generate.c: Handle unions.
4522 * src/girepository.h:
4523 * src/ginfo.c: Add GIUnionInfo and functions to access it.
4525 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
4527 * src/gidlparser.c (start_union): Parse <union> elements.
4529 * src/gidlnode.h: Add a GIdlNodeUnion.
4531 * gidl.dtd: Add a <union> element.
4533 * src/gmetadata.c (g_metadata_check_sanity): Check
4536 * src/gmetadata.h: Add union_blob_size to Header,
4539 * metadata-format.txt: Add a UnionBlob.
4541 2005-05-13 Matthias Clasen <mclasen@redhat.com>
4543 * tests/*: Update testcases.
4545 * src/generate.c (write_callable_info): Don't forget to
4546 write transfer and null-ok attributes for return types
4549 * src/girepository.h:
4550 * src/ginfo.c (g_callable_info_may_return_null):
4551 New function to find out if a function may return NULL.
4553 * src/compiler.c (format_output): Make the generated
4556 * README: Point to a recent libffi snapshot.
4558 * tests/invoke/*: Some invoke tests.
4560 * src/Makefile: Add ginvoke.c and the necessary
4563 * src/girepository.h (g_function_info_invoke): Add
4566 * src/ginvoke.c (g_function_info_invoke): Initial
4567 implementation of invoke functionality based on libffi.
4569 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
4570 strings and types hash tables in the right order when
4572 (find_entry_node): Free the name parts.
4574 2005-05-12 Johan Dahlin <johan@gnome.org>
4576 * src/generate.c: Generate consistent end tags.
4580 2005-05-12 Matthias Clasen <mclasen@redhat.com>
4584 * src/gidlparser.c (start_function): Actually add
4585 methods to objects. (Steven Walter)
4587 * src/girepository.h:
4588 * src/ginfo.c: Rename Transfer and Direction to
4589 GITransfer and GIDirection. (Torsten Schoenfeld)
4591 * tests/*: Make tests work with the changes in name
4594 * src/gidlnode.c (find_entry_node): Parse qualified
4595 names and generate xref nodes for them if needed. Don't
4596 require all modules to be loaded any more.
4598 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
4601 * src/ginfo.c (g_object_info_get_parent): Return NULL
4602 if blob->parent is 0. Still need to make sure index
4605 * src/generate.c: Generate qualified names when
4606 referring to non-local types. Emit transfer attribute
4609 * src/compiler.c (format_output): Put the function
4610 attributes where gcc accepts them.
4612 2005-05-11 Matthias Clasen <mclasen@redhat.com>
4614 * src/compiler.c (main): Add a --verbose cmdline option
4615 and only log messages if it is specified.
4618 * src/gidlnode.c (init_stats, dump_stats): Collect some
4619 statistics on string and type sharing.
4621 * src/gidlmodule.c (g_idl_module_build_metadata): Use
4622 g_message() instead of fprintf().
4624 * src/gidlnode.c (g_idl_node_free): Make this more robust.
4625 (g_idl_node_get_size): Implement for structs.
4626 (g_idl_node_get_full_size): Handle parent being NULL.
4627 (serialize_type): Handle lookup failures more gracefully.
4629 2005-05-10 Matthias Clasen <mclasen@redhat.com>
4631 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
4632 size calculation for 2-parameter types and for objects.
4634 * src/compiler.c: Add a cmdline option for debug output
4635 and install a log handler to implement it.
4636 * src/gidlnode.c: Add some debug spew.
4640 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
4641 forget to count the module name when calculating the
4642 required size for the metadata.
4645 * src/gidlparser.c: Fix compiler warnings.
4647 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4649 * src/compiler.c (main): Free the option context.
4651 * gidl.dtd: Clean up handling of names. All elements
4652 have a "name", only the elements corresponding to
4653 actual callable functions (function, method, constructor),
4654 have an additional "symbol" attribute holding the
4655 dlsym()-able function name.
4657 * src/generate.c: Adapt to generate xml matching the
4661 * src/gidlnode.c: Adapt to parse the new dtd.
4663 * tests/*.test: Adjust to the new dtd.
4665 * metadata-format.txt:
4666 * src/gmetadata.h: Remove the short_name field
4668 * src/gmetadata.c: Shrink size of ValueBlob to 12.
4669 * src/girepository.h:
4670 * src/ginfo.c (g_value_info_get_short_name): Removed
4672 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4674 * gidl.dtd: Allow constructors for boxed types,
4675 patch by Jonathan Blandford.
4678 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4680 * --- Initial import ---