1 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
3 Bug 558068 – when invoking a method, offset the in arguments by one,
6 * tests/invoke/invoke.c, tests/invoke/testfns.c,
7 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
8 * girepository/ginvoke.c: do not offset the index of given out
9 arguments by one for methods, "this" is provided as in argument only.
11 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
13 * gir/gio-2.0.c: add annotation for g_file_delete
15 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
17 Bug 558062 – provide and use paths in the .pc file
19 * gobject-introspection-1.0.pc.in: provide typelibdir variable
20 for where .typelibs should be installed (callers shouldn't need
21 to construct paths from bits and pieces)
23 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
25 Bug 557791 – g_irepository_require() could return a GTypelib *
27 * girepository/girepository.c: Return GTypelib; this is useful
28 for low level manipulation.
30 2008-10-25 Colin Walters <walters@verbum.org>
32 Bug 557788 – Return types for constructors in generated typelib bogus
34 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
35 rely on end pass resolution.
37 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
39 Bug 557786 - support fixed size arrays
41 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
42 * giscanner/scannerparser.y: Retain fixed array size.
43 * giscanner/ast.py: Add to note.
44 * giscanner/girwriter.py: Write to gir.
45 * girepository/girnode.c: Write it to typelib.
46 * tools/generate.c: Generate.
49 2008-10-25 Colin Walters <walters@verbum.org>
51 Bug 557076 - move typelibs to $libdir
53 * configure.ac: Steal some configury bits from dbus to expand
55 * gir/Makefile.am: Move to libdir.
56 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
57 instead just look at one hardcoded path in libdir.
58 * acinclude.m4: Bits from dbus.
60 2008-10-24 Johan Dahlin <johan@gnome.org>
62 * girepository/girnode.c (g_ir_node_check_unhandled_members):
63 Be quiet, do not warn about unhandled members.
65 2008-10-24 Johan Dahlin <johan@gnome.org>
67 * girepository/gtypelib.c:
68 Only use SHLIB_SUFFIX on darwin, otherwise use
69 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
71 2008-10-24 Lucas Rocha <lucasr@gnome.org>
73 Bug 557623 - Constructors shouldn't be flagged as methods.
75 * girepository/ginfo.c (g_function_info_get_flags): ditto.
77 2008-10-24 Johan Dahlin <johan@gnome.org>
79 * giscanner/scannerparser.y:
80 Check against division by zero for the modula operator.
81 This fixes header parsing of OSX system headers included
84 2008-10-24 Johan Dahlin <johan@gnome.org>
88 Add a CONTRIBUTORS file and dist it.
90 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
92 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
94 * girepository/girparser.c (parse_param_transfer):
95 * giscanner/transformer.py (_create_parameter, _create_return):
96 * giscanner/girwriter.py (_write_return, _write_parameter):
97 * tools/generate.c (write_callable_info): always write and
98 require "transfer-ownership" for return-values and parameters
101 * tests/invoke/testfns-1.0.gir:
103 * tests/scanner/DrawableAdditions.xml:
104 * tests/scanner/GtkFrob-1.0-expected.tgir:
105 * tests/scanner/annotation-1.0-expected.tgir:
106 * tests/scanner/drawable-1.0-expected.tgir:
107 * tests/scanner/drawable-injected-1.0-expected.gir:
108 * tests/scanner/drawable-injected-1.0-expected.tgir:
109 * tests/scanner/foo-1.0-expected.tgir: Updated
111 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
113 * giscanner/cgobject.py: build fundamental types same way as glib
115 * giscanner/glibtransformer.py (_type_from_gtype): record GType
116 when constructing the Type from it
118 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
119 the parameter is a GObject from its GType, if available.
121 * giscanner/glibtransformer.py (_adjust_transfer):
122 * tests/scanner/foo-1.0-expected.gir:
123 * tests/scanner/foo-1.0-expected.tgir: deduce
124 transfer-ownership from GTypes
126 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
128 * giscanner/transformer.py (_create_parameter):
129 * tests/scanner/foo-1.0-expected.gir: make varargs
130 transfer-ownership="none"
132 2008-10-23 Colin Walters <walters@verbum.org>
134 Bug 556739 - transfer ownership
136 * giscanner/ast.py: Refactor Parameter/Return to share
137 common attributes. Add transfer_inferred attribute
138 which says whether or not we made a guess.
139 * giscanner/transformer.py: Add much more extensive
140 heuristics around parameter and return transfer.
141 * giscanner/glibtransformer.py: Adjust to inspect
145 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
147 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
149 * tests/scanner/Makefile.am:
150 * tests/scanner/annotation-1.0-expected.tgir:
151 * tests/scanner/drawable-1.0-expected.tgir:
152 * tests/scanner/drawable-injected-1.0-expected.tgir:
153 * tests/scanner/foo-1.0-expected.tgir:
154 * tests/scanner/GtkFrob-1.0-expected.tgir:
155 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
156 annotations survive the roundtrip via typelib
158 The expectations are as currently produced by g-ir-generate,
159 comparison with the .gir files shows there are differences.
161 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
163 Bug 557468 – Support for GI_TYPELIB_PATH
165 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
166 provided paths to the global search path.
168 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
170 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
172 * tests/scanner/drawable-1.0-expected.tgir:
173 * tests/scanner/drawable-injected-1.0-expected.tgir:
174 * tests/scanner/foo-1.0-expected.tgir:
175 * tools/generate.c (write_object_info): write 'abstract'
176 attribute for classes
178 2008-10-22 Lucas Rocha <lucasr@gnome.org>
180 * girepository/girmodule.c, girepository/gtypelib.c,
181 girepository/girparser.[ch]: fix some build warnings.
183 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
185 Bug 557405 – Use 'allow-none' consistently
187 * docs/typelib-format.txt:
188 * girepository/ginfo.c (g_arg_info_may_be_null):
189 * girepository/girnode.c (g_ir_node_build_typelib):
190 * girepository/girnode.h (struct _GIrNodeParam):
191 * girepository/girparser.c (start_parameter):
192 * girepository/girwriter.c (function_generate):
193 * girepository/gtypelib.h (ArgBlob):
195 * tests/function.gir:
196 * tools/generate.c (write_callable_info): Use 'allow-none'
197 consistently throughout
199 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
201 Bug 557092 – Callback annotations not used
203 * giscanner/transformer.py (_create_callback): use annotations
205 * tests/scanner/annotation.h
206 * tests/scanner/annotation-1.0-expected.gir: add tests
208 2008-10-21 Colin Walters <walters@verbum.org>
210 * giscanner/scannerlexer.l: Don't require trailing whitespace after
211 uncommented parameters.
214 2008-10-21 Colin Walters <walters@verbum.org>
216 * girepository/girepository.c: Ensure that when doing an unversioned
217 require, we prefer items earlier in the search path to later ones.
219 2008-10-21 Owen Taylor <otaylor@redhat.com>
221 * giscanner/transformer.py: For string parameters allow transfer annotation
222 to override the standard automatic guessing based on 'const'.
224 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
226 Bug 557241 – "throws" flag for functions
228 * tests/scanner/drawable-1.0-expected.gir,
229 tests/scanner/drawable-injected-1.0-expected.gir,
230 tests/scanner/drawable.[ch]: add simple test for throwing
231 function (has GError ** as last argument)
233 * giscanner/ast.py: add a 'throws' flag to Function
234 * giscanner/glibtransformer.py: if a function's last paramerter is
235 a GError, set the 'throws' flag and remove that parameter
236 * giscanner/girwriter.py: write out the 'throws' attribute
237 * giscanner/girparser.py: support parsing the 'throws' attribute
239 * tests/repository/gitestthrows.c: add a simple test to check the
240 throws flag in a typelib and invoke the function
242 * girepository/ginfo.c, girepository/girnode.[ch],
243 girepository/girnode.h, girepository/girparser.c,
244 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
246 * girepository/ginvoke.c: if a function throws, add a GError as last
247 arguments, and propagate the error to the invoker.
249 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
251 * giscanner/transformer.py (_create_parameters): Warn if we see
252 annotations for unknown parameters. If .h and .c files name
253 parameters differently, the annotations may be lost.
255 2008-10-21 Johan Dahlin <johan@gnome.org>
257 Bug 556358 - don't use libtool internals
259 * giscanner/Makefile.am:
260 * giscanner/libtoolimporter.py:
261 * giscanner/sourcescanner.py:
262 * giscanner/utils.py:
263 Add a python meta importer and remove a libtool symlink hack.
265 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
267 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
268 and --add-include-path appropriately when invoking the scanner.
269 * tests/types/Makefile.am (%typelib): Likewise.
271 2008-10-20 Colin Walters <walters@verbum.org>
273 Bug 556777 - validate properties
275 * giscanner/transformer.py: Add option to throw on unknown types.
276 * giscanner/glibtransformer.py: Use it on properties.
277 * tests/*: Add a test.
279 2008-10-20 Colin Walters <walters@verbum.org>
281 * giscanner/glibast.py: Also register g variants of
282 default_array_types. This is not beautiful, but
283 good alternatives aren't easy to come by.
284 This fixes gchar ** parsing.
286 2008-10-20 Colin Walters <walters@verbum.org>
288 * docs/typelib-format.txt, girepository/gtypelib.h:
289 Take a bit from ObjectInfo to represent abstract flag.
290 * giscanner/cgobject.py: Expose g_type_get_flags.
291 * girepository/girepository.h: Add accessor.
292 * girepository/ginfo.c: Implement it.
293 * giscanner/ast.py: Add is_abstract flag to generic
295 * giscanner/glibast.py: Use it.
296 * giscanner/girwriter.py: Write it.
297 * girepository/girparser.c: Parse it.
300 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
302 * giscanner/girparser.py (_parse_function): don't lose
303 'transfer-ownership' attributes when injecting, check for the
306 2008-10-19 Johan Dahlin <johan@gnome.org>
308 * giscanner/scannerlexer.l: Parse and ignore __asm.
310 2008-10-19 Colin Walters <walters@verbum.org>
312 * giscanner/girparser.py: Parse array length= to ensure
313 it doesn't get lost from --inject.
315 2008-10-17 Colin Walters <walters@verbum.org>
317 Bug 556795 - char ** regression
319 * giscanner/transformer.py: Fix parsing of ctypes, add some
320 comments about what's going on.
321 * tests/*: Add a test for char **.
323 2008-10-17 Colin Walters <walters@verbum.org>
325 Bug 556783 - change namespace handling to be more consistent
327 * giscanner/transformer.py: Eliminate usage of
328 strip_namespace_object. We now treat --namespace as the default
329 --strip-prefix; however, if --strip-prefix is specified it
330 overrides --namespace. This applies to everything except function
331 names, where we do also strip the namespace.
332 * giscanner/glibtransformer.py: Remove usage of
333 strip_namespace_object.
335 * tests/*: Add skeletal GtkFrob-1.0 test which has different
336 --namespace and --strip-prefix.
338 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
340 Bug 556732 – generate gir files consistently
342 * girepository/girparser.c (start_parameter):
344 * tests/invoke/testfns-1.0.gir:
345 * tools/generate.c (write_callable_info): write
346 'transfer-ownership' attribute consistently with both
347 return-value and parameter elements
349 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
351 Bug 556732 – generate gir files consistently
353 * tools/generate.c (write_callable_info): write 'direction'
354 attribute only if other than 'in' to be consistent with
357 * tests/object.gir: remove direction="in" which is the default
359 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
361 Bug 556732 – generate gir files consistently
363 * giscanner/ast.py (Field): add readable and writable properties
364 * giscanner/girparser.py (_parse_field): copy 'readable' and
365 'writable' attributes
366 * giscanner/transformer.py (_create_member): create fields as
368 * giscanner/glibtransformer.py (_introspect_object,
369 _pair_class_struct): make object instance and class fields
371 * giscanner/girwriter.py (_write_field):
372 * tools/generate.c (write_field_info): write field 'readable'
373 and 'writable' attributes only if non-default (read-only)
374 * girepository/girparser.c (start_field): in the absence of
375 attributes assume fields are read-only
377 * tests/struct.gir: remove redundant readable="1" from fields
378 * tests/scanner/foo-1.0-expected.gir:
379 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
380 all record and union fields
382 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
384 Bug 556732 – generate gir files consistently
386 * giscanner/girwriter.py (_write_property): write properties
387 'construct' attribute if set
388 * tools/generate.c (write_property_info): write properties
389 'readable' and 'writable' attributes only if non-default
390 * tests/object.gir: add writable="0"
391 * tests/scanner/foo-1.0-expected.gir: add construct="1"
393 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
395 * gir/glib-2.0.c: added annotations
397 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
399 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
402 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
404 Bug 556610 – giscanner/girparser.py drops parameter options
406 * tests/scanner/drawable-injected-1.0-expected.gir,
407 tests/scanner/DrawableAdditions.xml: added simple test for injection.
408 * giscanner/ast.py: allow Parameter to take options in the constructor
409 * giscanner/girparser.py: parse parameter options (transfer,
410 direction, allow-none)
412 2008-10-16 Colin Walters <walters@verbum.org>
414 Bug 556185 - segfault on g_callable_info_get_return_type
416 Initial patch from John Ehresman.
418 * tests/repository/*: Add a test using
419 g_callable_info_get_return_type. Instead of casting a
420 GITypeInfo directly to a GIRegisteredTypeInfo, we need
421 to call g_type_info_get_interface.
423 2008-10-16 Colin Walters <walters@verbum.org>
425 Bug 556579 - union and struct name misresolved
427 * giscanner/transformer.py: The calls to _resolve_type_name
428 for struct/union names was a legacy holdover from when type
429 resolution had multiple phases. Now it's actively harmful
430 since we might pull in an identical name from another
434 2008-10-16 Colin Walters <walters@verbum.org>
436 Bug 556432 - transfer annotations and defaults
438 * giscanner/transformer.py: Canonicalize type
439 after removing *, not before. This ensures that
440 guchar* is transformed to 'uint8'.
441 Add some comments here.
442 * giscanner/glibtransformer.py: Add _adjust_transfer
443 phase for tweaking GObject transfers.
446 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
448 * configure.ac: enable bunch of gcc warning CFLAGS
450 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
452 Bug 556543 – reduce compiler warnings
454 * girepository/ginfo.c:
455 * girepository/girepository.c (register_internal,
456 count_interfaces, find_interface, find_namespace_version,
457 parse_version, g_irepository_require):
458 * girepository/girmodule.c (g_ir_module_build_typelib):
459 * girepository/girnode.c (init_stats, dump_stats,
460 _g_irnode_init_stats, _g_irnode_dump_stats,
461 g_ir_node_can_have_member):
462 * girepository/girparser.c (firstpass_end_element_handler,
463 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
464 start_alias, start_type, end_type_top, parse_include, cleanup,
466 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
467 * giscanner/giscannermodule.c (directive_get_options,
468 type_get_child_list):
469 * giscanner/scannerlexer.l (parse_gtkdoc):
470 * giscanner/scannerparser.y (ctype_free):
471 * giscanner/sourcescanner.c:
472 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
473 * tests/types/gitesttypes.c:
474 * tools/compiler.c (main):
475 * tools/generate.c (write_repository): Remove unused variables
476 and code, add missing includes, declarations and case
479 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
481 Bug 556541 – access union members through UnionBlob rather than
484 * girepository/ginfo.c (g_union_info_find_method): access union
485 members through UnionBlob rather than StructBlob
487 2008-10-15 Colin Walters <walters@verbum.org>
489 Bug 556331 - clean up includes handling
491 * tools/g-ir-scanner: Rework command line arguments; now we take
492 --add-include-path and --include separately.
493 * giscanner/girwriter.py: Separate name= and version= in include
495 * giscanner/ast.py: Add Include type.
496 * giscanner/transformer.py: Cleanups to register_include now that
497 we don't need to handle mixed filenames and relative arguments.
498 * girepository/girparser.c: Parse name and version separately;
499 this fixes a bug as a side effect where we weren't resolving
500 through aliases for basic types.
501 * girepository/girepository.c: Fix format string args.
502 * gir/Makefile.am: Update.
505 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
507 Bug 556434 – unhandled interface/object/... member types
509 * girepository/girnode.c (g_ir_node_check_unhandled_members,
510 g_ir_node_build_typelib): Check all
511 interface/object/boxed/struct/union members are processed and
512 abort if they are not. (Mostly callbacks in structs, but also
513 fields in interfaces.)
515 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
517 * a/girepository/girnode.c (g_ir_node_build_members,
518 g_ir_node_build_typelib): refactor common code for processing
519 members to a function
521 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
523 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
524 transformation is lossless (it's not)
526 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
528 * tests/Makefile.am: fix tests to compare xml to xml instead of
529 typelib to xml, and stop on error
531 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
533 * tools/generate.c (write_type_name, write_type_info,
534 write_type_info, write_object_info, write_object_info,
535 write_interface_info, write_error_domain_info): reduce code
538 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
540 Bug 556174 – parse types for lists etc.
542 * girepository/girparser.c (end_type_recurse):
544 * tools/generate.c (write_type_info, write_field_info,
545 write_callable_info, write_callable_info, write_constant_info,
546 write_property_info): use nested <type>s for lists and hashes
548 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
551 * tests/object.gir: remove trailing whitespace from inside
552 elements to match g-ir-generate output
554 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
556 * tools/generate.c (xml_printf): quote printf arguments so that
557 we don't generate invalid XML by writing unescaped double quotes
558 and such in attributes
560 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
562 * tools/generate.c (write_field_info, write_callable_info,
563 write_function_info, write_callback_info, write_struct_info,
564 write_constant_value, write_signal_info, write_vfunc_info,
565 write_object_info, write_interface_info, write_union_info,
566 write_repository): remove unused indent parameters, xmlwriter
567 keeps track of necessary indentation
569 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
571 * tools/generate.c (xml_element_new, xml_element_free,
572 xml_start_element, xml_end_element, xml_end_element_unchecked,
573 xml_open, xml_close): Keep track of generated XML tree and
574 handle indentation and closing tags properly.
575 (write_field_info, write_callable_info, write_function_info,
576 write_callback_info, write_struct_info, write_value_info,
577 write_constant_info, write_enum_info, write_signal_info,
578 write_vfunc_info, write_property_info, write_object_info,
579 write_interface_info, write_error_domain_info, write_union_info,
580 write_repository): Use xml_start_element and xml_end_element to
583 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
585 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
586 (write_type_name, write_type_info, write_field_info,
587 write_callable_info, write_function_info, write_callback_info,
588 write_struct_info, write_value_info, write_constant_value,
589 write_constant_info, write_enum_info, write_signal_info,
590 write_vfunc_info, write_property_info, write_object_info,
591 write_interface_info, write_error_domain_info, write_union_info,
592 write_repository): wrap all FILE access to go through simple xmlwriter
594 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
596 Bug 556400 – Fails to build on OS X 10.4
598 * configure.ac: check for functions backtrace and backtrace_symbols
599 * girepository/girparser.c (backtrace_stderr): Comment out
600 implementation if the functions are not available.
601 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
602 directory for better portability
604 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
606 Bug 556433 – assume direction = out for int * parameters
608 * giscanner/ast.py: define a list of types for which, if passed as
609 reference, we assume a default direction of 'out'
610 * giscanner/transformer.py: if a type has type pointer to one of the
611 previously defined types, and no direction is set, assume out.
612 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
614 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
616 * tests/scanner/annotation.c: fixed a few copy-paste errors
618 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
620 Bug 556323 – transfer-ownership is wrong for functions returning const
623 * giscanner/transformer.py: check for a const string as return value,
624 not just const char*. Suggested by Colin Walters
625 * tests/scanner/annotation-1.0-expected.gir: updated expected output
627 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
629 * girepository/ginfo.c, girepository/girepository.h: add
630 g_union_info_find_method
632 2008-10-14 Colin Walters <walters@verbum.org>
634 * tests/repository/Makefile.am: Reenable repo test.
635 * tests/repository/gitestrepo.c: Prepend search
636 path for $(top_builddir)/gir dir so that we don't
637 require installation for "make check" to pass.
639 2008-10-13 Jürg Billeter <j@bitron.ch>
641 * giscanner/glibtransformer.py:
642 * tests/scanner/annotation-1.0-expected.gir:
643 * tests/scanner/drawable-1.0-expected.gir:
644 * tests/scanner/foo-1.0-expected.gir:
645 * tests/scanner/utility-1.0-expected.gir:
647 Support fields in GObject structs
649 2008-10-13 Jürg Billeter <j@bitron.ch>
651 * giscanner/ast.py: add signed integer and off_t to type_names
653 2008-10-12 Jürg Billeter <j@bitron.ch>
655 * giscanner/girparser.py: Parse bits attribute of fields
657 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
659 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
660 * tests/repository/gitestrepo.c (main): instantiate
661 'GCancellable' to ensure the GType is registered before using
664 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
666 * giscanner/girparser.py: actually add the parsed constant nodes
668 2008-10-12 Colin Walters <walters@verbum.org>
670 * girepository/girepository.c: Don't cast DirEntry to Blob,
671 actually look it up by offset.
673 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
675 * giscanner/girparser.py: parse constant nodes in gir files
677 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
679 * giscanner/transformer.py: prefix for constants have an underscore,
680 so remove them as if they were functions, not objects.
682 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
684 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
687 2008-10-12 Colin Walters <walters@verbum.org>
689 Initial patch from Jani Monoses.
691 * girepository/gtypelib.c: Fix inverted test for success
694 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
696 * tools/generate.c (write_callable_info): use "transfer-ownership"
697 attribute for return values
699 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
701 * tools/generate.c (write_callable_info): move "transfer" and
702 "null-ok" attributes from <function> to <return-value> element
704 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
706 * girepository/girparser.c (start_return_value): handle
707 "transfer-ownership" attribute
709 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
711 * girepository/girparser.c (parse_param_transfer):
712 * tools/generate.c (write_callable_info): use "container" for
713 container/shallow ownership transfer (not "shallow")
715 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
717 * girepository/girparser.c (parse_param_transfer,
718 start_parameter): Refactor handling of transfer=none/shallow/full
721 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
723 Bug 556048 – Crash in g_irepository_find_by_gtype
725 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
726 * girepository/girepository.c (find_interface): Fix
727 find_by_gtype case to get the type name from right offset
729 2008-10-12 Jürg Billeter <j@bitron.ch>
731 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
734 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
736 * girepository/gtypelib.h (RegisteredTypeBlob): make
737 'unregistered' one bit wide as everywhere else
739 2008-10-12 Jürg Billeter <j@bitron.ch>
741 * giscanner/glibtransformer.py:
742 * tests/scanner/annotation-1.0-expected.gir:
743 * tests/scanner/drawable-1.0-expected.gir:
744 * tests/scanner/drawable.h:
745 * tests/scanner/foo-1.0-expected.gir:
746 * tests/scanner/utility-1.0-expected.gir:
748 Readd class records as workaround to not break Gtk typelib
750 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
752 * tests/types/Makefile.am: fix typo in gitesttypes namespace
754 2008-10-12 Jürg Billeter <j@bitron.ch>
756 * giscanner/glibtransformer.py: Don't generate <record> elements
758 * tests/scanner/*: Update test cases
760 2008-10-11 Colin Walters <walters@verbum.org>
762 Bug 552858: versioning
764 This is a big patch. You should probably remove your installation
767 * docs/typelib-format.txt: Add nsversion entry which holds
768 version of namespace.
769 * girepository/girepository.h: Add 'version' parameter to
770 g_irepository_require. This may be NULL. Normally
771 bindings should pass an explicit version though.
772 * girepository/girepository.c: Lots of infrastructure to
773 support versioning. Add some more documentation. Disallow
774 some usage of NULL namespaces.
775 * girepository/girmodule.c: Add version parameter.
776 * girepository/gtypelib.c: Update header size.
777 * giscanner/ast.py: Add version to Namespace.
778 * giscanner/girparser.py: Parse version attribute from
779 XML, pass to Namespace.
780 * giscanner/girwriter.py: Write out version parameter.
781 * giscanner/transformer.py: Clean up include registration.
782 * tests/*: Add version attribute.
783 * tests/invoke/invoke.c: Don't try looking up test before
784 it's loaded in repository.
785 * tools/generate.c: Output version parameter.
786 * gir/Makefile.am: Add 2.0 version to .gir files.
788 2008-10-11 Colin Walters <walters@verbum.org>
790 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
791 if we have mismatched parens.
793 2008-10-11 Lucas Rocha <lucasr@gnome.org>
795 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
796 on 'members' variable.
798 2008-10-11 Colin Walters <walters@verbum.org>
800 Bug 555947 - update annotations syntax
802 * giscanner/ast.py: Default to None for transfer. Remove
803 default transfers for container types; we require this to
805 * giscanner/girwriter.py: Transfer is now 'none', 'container',
806 'full' to match repository.
807 * giscanner/scannerlexer.l: Annotations now are parenthesized.
808 * giscanner/transformer.py: Update for new annotations syntax.
811 2008-10-11 Johan Bilien <jobi@litl.com>
813 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
815 2008-10-11 Johan Bilien <jobi@litl.com>
817 Bug 552347: Parse #defines constants
819 * girepository/gtypelib.c: update the list of value_size
820 with recently defined type tags
821 * giscanner/scannerparser.y: brought back parsing of #defined, as
822 present in older version
823 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
824 * giscanner/girwriter.py: write out constant tags in the gir
825 * giscanner/sourcescanner.py: add accessor for const_string
826 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
829 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
831 Bug 555946: Install a test module exercising all types, transfer
836 * tests/types/*: Add and install a test module that has functions
837 accepting and returning most of the basic types to enable bindings
838 implementors to more easily test their type conversion routines.
840 2008-10-11 Jürg Billeter <j@bitron.ch>
842 Bug 552374: Const strings should be identified in the gir.
844 * giscanner/transformer.py: support string memory management
845 * tests/scanner/foo.h: use char * and const char *
846 * tests/scanner/foo-expected.gir: test that
848 2008-10-11 Johan Dahlin <johan@gnome.org>
850 * giscanner/girparser.py:
851 Also parse enums which are not glib types.
853 2008-10-11 Lucas Rocha <lucasr@gnome.org>
855 Bug 552370: add one more test for unsigned as a type, not as
858 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
859 * test/scanner/foo.h: add function which uses unsigned as a type.
860 * test/scanner/foo-expected.gir: test that.
862 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
864 Bug 555712: Struct and union issues
866 * giscanner/scannerparser.y (struct_declarator): Use information
867 provided about the bit width of a field.
868 * giscanner/transformer.py (Transformer._create_member): Pass the
869 symbol's const_int member to the created field (it represents the
871 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
872 field attribute, if present.
873 * giscanner/ast.py (Field): Add 'bits' member, specifying the
874 width in bits of the field (only relevant for bitfields).
877 * giscanner/transformer.py (Transformer._create_typedef_struct)
878 (Transformer._create_typedef_union): Add calls to _create_struct()
879 and _create_union(), respectively. This causes the scanner to
880 generate output for fields of struct and union typedefs.
883 2008-10-11 Jürg Billeter <j@bitron.ch>
885 Bug 552370: unsigned not scanned properly
887 * giscanner/scannerparser.y: combine basic types such as unsigned
888 int and long long when scanning
889 * tests/scanner/foo-expected.gir:
890 * tests/scanner/foo.c: (foo_test_unsigned):
891 * tests/scanner/foo.h: test that
893 2008-10-11 Lucas Rocha <lucasr@gnome.org>
895 Bug 554854: The --typelib-xml and --inject options should reuse
896 giscanner parser/writer.
898 * giscanner/ast.py: add constructor list to Struct and Union.
899 Add new param in Return's contructor to define transfer.
900 * giscanner/girparser.py: several additions to the parser in order
901 to have parsing all nodes of the gir xml files.
902 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
903 and writer in --inject and --typelib-xml options.
904 * giscanner/xmlwriter.py: ignore empty attributes instead of
905 raising an error as this basically exposes a bug in GIRParser.
906 This should be reverted as soon as the parser is fixed.
908 2008-10-11 Lucas Rocha <lucasr@gnome.org>
910 Bug 552376: scanner generates wrong names for enum members when
911 there's no defined gtype.
913 * giscanner/utils.py (strip_common_prefix): Always strip common
914 prefix exactly up to the last "_", and not beyond.
915 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
916 here is that the first character after the last '_' should should be
917 the same as the character in the same position on the type name.
918 * tests/scanner/foo-expected.gir: test that
920 2008-10-10 Lucas Rocha <lucasr@gnome.org>
922 Bug 555293: append library_paths to LPATH env variable to work
923 around a bug in find_library when using ldconfig.
925 * tools/g-ir-scanner (main): ditto.
927 2008-10-09 Lucas Rocha <lucasr@gnome.org>
929 * girepository/girepository.c (register_internal): fix regression on
930 invoke test case by making sure we load the global module in the
931 typelib when dealing with inline typelibs.
932 * girepository/gtypelib.c: a couple of coding style fixes.
934 2008-10-06 Lucas Rocha <lucasr@gnome.org>
936 Bug 555294: Add support for multiple shared libraries per typelib.
938 * girepository/ginvoke.c (g_function_info_invoke),
939 girepository/ginfo.c(g_registered_type_info_get_g_type): use
940 g_typelib_symbol instead of g_module_symbol.
941 * girepository/girepository.h: remove g_typelib_set_module and add
943 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
944 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
945 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
946 modules instead of just one. The symbol lookup is now abstracted
947 behind g_typelib_symbol which tries to find the passed symbol name in
949 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
950 and write shared_library attribute as a comma-separated list of libs.
952 2008-10-06 Colin Walters <walters@verbum.org>
954 * giscanner/transformer.py: Parse length= annotation as
955 a parameter name, not a raw int.
958 2008-10-03 Colin Walters <walters@verbum.org>
960 Bug 551744: Non-GObject types aren't aggregating ctors and methods
962 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
964 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
968 2008-10-03 Colin Walters <walters@verbum.org>
970 Bug 554576: scan problem with ev_selection_render_selection()
972 * giscanner/transformer.py: Only do type resolution once we've
973 scanned all types. What could happen before is that we'd strip
974 the namespace from local type "EvSelection" => Selection, and
975 then later pull a "Selection" from some other namespace because
976 we hadn't yet seen the local EvSelection. This could come
977 down to hash table ordering and other things so not easy
980 2008-10-03 Lucas Rocha <lucasr@gnome.org>
982 * giscanner/girwriter.py (_parser_member): fix the last parameter of
983 GLibEnumMember constructor as it should be the enum member nick.
985 2008-10-02 Colin Walters <walters@verbum.org>
987 Bug 552961: remove this parameter for methods
989 * giscanner/glibtransformer.py: Delete this parameter; it is
991 * girepository/ginvoke.c: Insert this parameter for methods.
992 * girepository/gtypelib.c: Remove no longer needed verification of
993 method this parameter.
996 2008-09-30 Dan Winship <danw@gnome.org>
998 Bug 554490: g-ir-scanner gets confused by '\\'
1000 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1001 backslashes so it will correctly parse '\\' and "\\"
1003 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1006 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1008 2008-10-02 Colin Walters <walters@verbum.org>
1010 bug 552393: Note variadic functions
1012 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1013 to use parameter_list directly.
1014 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1015 * giscanner/ast.py: Add Varargs type.
1016 * giscanner/transformer.py: Check for ellipsis symbol, transform
1018 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1019 Parse varargs functions, but filter them out before we start
1020 compiling the typelib.
1022 2008-10-02 Colin Walters <walters@verbum.org>
1024 Bug 554632: type tag for GType
1026 * girepository/girepository.h, girepository/girepository.c:
1027 Add type tag for GType - it's a special type we don't want
1028 to resolve to just "long".
1029 * docs/typelib-format.txt: Update.
1030 * girepository/girparser.c: Parse it.
1031 * giscanner/glibtransformer.py: Ensure we don't put GType in
1033 * tools/generate.c: Remove hardcoded type list.
1036 2008-09-30 Dan Winship <danw@gnome.org>
1038 Bug 554521: scanner generates wrong names for enum members with
1039 full type name prefix
1041 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1042 right amount when the entire "first" string is a prefix of
1045 * tests/scanner/foo.h (FooEnumFullname):
1046 * tests/scanner/foo-expected.gir: test that
1048 2008-09-29 Colin Walters <walters@verbum.org>
1050 Bug 552380: Array parameters should be marked in the gir
1052 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1053 uint8[]. Add Array, List, and Map subclasses of Type;
1054 these types can be generic. Return transfer defaults
1055 to true if return value is string or container type.
1056 Delete Sequence type.
1057 * giscanner/scannerlexer.l: Syntax change for annotations;
1058 use <> since it's more readable.
1059 * giscanner/girwriter.py: Write out these changes.
1060 * giscanner/girparser.py: Parse them.
1061 * giscanner/transformer.py: Have a defined set of
1062 both list and map types. When creating a type,
1063 check if the ctype we've parsed is one of them,
1064 if so create a container type subclass as appropriate.
1065 * girepository/girparser.c: Parse in generic types.
1068 2008-09-27 Colin Walters <walters@verbum.org>
1070 * tools/g-ir-scanner: Add --inject option.
1072 2008-09-25 Colin Walters <walters@verbum.org>
1074 Remove non-repository types from GIR
1076 * giscanner/ast.py: The canonical name is 'utf8', not
1078 * giscanner/glibast.py: A few more glib type mappings.
1079 * girepository/girparser.c: We only parse repository types.
1080 * tests/*.gir: Update.
1082 2008-09-23 Colin Walters <walters@verbum.org>
1084 Bug 552566: Add time_t type
1086 We need a type for time_t since it's special in C, and just
1087 mapping it to long precluded bindings from handling it
1090 2008-09-19 Colin Walters <walters@verbum.org>
1092 Bug 552390: Handle capitialization like "DBus" more robustly
1094 The to_underscores function was designed for use against prefixed
1095 names; we need a separate function which will convert names like
1096 DBusFoo into dbus_foo, not d_bus_foo.
1098 2008-09-19 Colin Walters <walters@verbum.org>
1100 Add check to make sure we're not hitting out unresolved types
1102 Validate the "this" argument for methods
1104 Remove heuristic matching of methods to classes based on prefix
1106 It was a broken hack that dated from when we handled underscoring
1107 and capitalization conventions less well.
1109 2008-09-18 Colin Walters <walters@verbum.org>
1111 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1113 On Darwin, the suffix for installed shared libraries (.dylib) is
1114 different from loadable modules (.so). We use a bit of magic shell
1115 script from Behdad Esfahbod to figure out the right suffix.
1117 2008-09-15 Johan Dahlin <johan@gnome.org>
1119 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1120 a wrapper for type_qualifier as well.
1122 2008-09-15 Colin Walters <walters@verbum.org>
1124 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1126 * giscanner/ast.py: Add deprecation attributes.
1127 * giscanner/girwriter.py: Write out deprecation data.
1128 * girepository/girparser.c: Relax parsing; deprecated
1129 attribute now includes freeform string.
1130 * giscanner/scannerlexer.l: Parse Deprecated.
1131 * giscanner/transformer.py: Look for deprecated attribute
1133 * tests/scanner/*: Add a Deprecated test.
1135 2008-09-14 Tor Lillqvist <tml@novell.com>
1137 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1139 2008-09-14 Colin Walters <walters@verbum.org>
1141 * giscanner/glibtransformer.py: Ignore functions with
1144 2008-09-12 Colin Walters <walters@verbum.org>
1146 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1148 2008-09-12 Colin Walters <walters@verbum.org>
1150 * giscanner/ast.py: Bind pid_t to INT for vte.
1152 2008-09-12 Colin Walters <walters@verbum.org>
1154 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1155 * giscanner/glibast.py: Avoid overwriting ctype.
1156 * giscsanner/transformer.py: Try resolving types using the GType names.
1158 2008-09-12 Colin Walters <walters@verbum.org>
1160 * giscanner/minixpath.py: Code to run an "XPath"
1161 assertion against an XML tree, taken from
1162 gir-repository/gir/tests.py.
1163 * giscanner/Makefile.am: Ship it.
1164 * tools/g-ir-scanner: Add --xpath-assertions option.
1165 * gir/GLib-assertions.txt: Add a few assertions.
1166 * gir/Makefile.am: Run them.
1168 2008-09-11 Colin Walters <walters@verbum.org>
1170 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1172 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1173 prefix if it ends with _. Tweak callback stripping to determine
1174 based on presence of _ whether we need to use strip_namespace_func
1175 or strip_namespace_object.
1177 2008-09-09 Owen Taylor <otaylor@redhat.com>
1179 * docs/typelib-format.txt: Wether => Whether
1181 2008-09-08 Colin Walters <walters@verbum.org>
1183 * girepository/girparser.c: Default to "readable" for properties.
1184 * giscanner/ast.py: Add readable, writable etc.
1185 * giscanner/girwriter.py: Writ them.
1186 * giscanner/glibtransformer.py: Inspect them.
1189 2008-09-07 Colin Walters <walters@verbum.org>
1191 * giscanner/cgobject.py: Add comment.
1193 2008-09-07 Colin Walters <walters@verbum.org>
1195 * giscanner/cgobject.py: Also call g_thread_init.
1197 2008-09-07 Colin Walters <walters@verbum.org>
1199 * giscanner/transformer.py: Fix regression by not
1200 stripping prefix before stripping namespace for unions
1203 2008-09-06 Colin Walters <walters@verbum.org>
1205 * giscanner/transformer.py: If a namespace contains
1206 multiple caps, try stripping both gnomekeyring_ and
1209 2008-09-07 Johan Dahlin <johan@gnome.org>
1211 Bug 551162 – giscanner does not recognize asm and __asm__
1212 * giscanner/scannerlexer.l:
1213 Patch by Jani Monoses.
1215 2008-09-06 Colin Walters <walters@verbum.org>
1217 * girepository/girnode.c: Allow gtype_name
1218 and gtype_init in struct and union.
1219 * girepository/girparser.c: Parse glib:
1220 boxed bits for both structure and union.
1221 * girepository/gtypelib.c: Don't barf
1222 if structure is boxed.
1223 * giscanner/girparser.py: Parse new XML
1225 * giscanner/girwriter.py: Write out new
1227 * giscanner/glibast.py: Define new classes
1228 which are both Boxed and Struct/Union, as
1229 well as an "Other" for everything else.
1230 * giscanner/glibtransformer.py: Handle
1231 boxed types specially; we try to merge
1232 them with a struct/union if one exists,
1233 otherwise fall back to generic boxed.
1235 * tools/generate.c: Write out new format.
1237 2008-09-06 Johan Dahlin <johan@gnome.org>
1239 * giscanner/grealpath.h: Include stdlib.h
1241 * docs/g-ir-generate.1: Remove leading %
1243 2008-09-01 Colin Walters <walters@verbum.org>
1245 * girepository/girparser.c: Look at c:type to determine
1246 whether or not an item is a pointer.
1248 2008-09-01 Johan Dahlin <johan@gnome.org>
1250 * tests/scanner/Makefile.am:
1251 Set PYTHONPATH so the scanner can run
1252 even if you didn't install anything.
1254 2008-09-01 Johan Dahlin <johan@gnome.org>
1257 Post-release version bump
1260 2008-09-01 Johan Dahlin <johan@gnome.org>
1264 2008-08-31 Colin Walters <walters@verbum.org>
1266 * giscanner/glibtransformer.py: Quiet info
1269 2008-08-31 Johan Dahlin <johan@gnome.org>
1272 Bump version to 0.5.0
1274 2008-08-31 Colin Walters <walters@verbum.org>
1276 * giscanner/glibtransformer.py: Follow aliases to ensure
1277 we don't get a constructor returning a basic type.
1278 * giscanner/transformer.py: Add function to follow aliases.
1281 2008-08-31 Johan Dahlin <johan@gnome.org>
1283 * giscanner/scannerlexer.l:
1284 * giscanner/scannerparser.y:
1285 * giscanner/sourcescanner.h:
1286 * giscanner/sourcescanner.py:
1287 Parse GCC extensions in the parser instead of just undeffing them
1288 in the pre-processor.
1290 2008-08-31 Johan Dahlin <johan@gnome.org>
1292 * giscanner/glibtransformer.py:
1293 Clean up a huge if. Do not add methods or constructors
1295 * giscanner/utils.py:
1296 second might be longer than first, check that.
1298 2008-08-31 Johan Dahlin <johan@gnome.org>
1303 2008-08-31 Colin Walters <walters@verbum.org>
1305 * girepository/girparser.c: Don't lose if we
1308 2008-08-31 Colin Walters <walters@verbum.org>
1310 * giscanner/glibtransformer.py: Look for libtool
1311 library in current directory
1312 * tests/scanner - Update.
1314 2008-08-30 Colin Walters <walters@verbum.org>
1316 * docs/typelib-format.txt: Add a guint32
1318 * gir/Makefile.am: Dep on Makefile
1319 * girepository/ginfo.c:
1320 * girepository/girepository.c: Clean up
1321 default typelib handling; remove global
1322 default_typelib variable. Ensure we handle
1323 NULL repository in more places.
1324 Support dependency resolution.
1325 Support lazy loading.
1326 * girepository/girepository.h: Remove
1327 g_irepository_unregister; we don't support
1328 unloading typelibs since really they're
1329 process-global. Update for lazy loading
1331 * girepository/girmodule.c: Use g_new0.
1332 Add dependencies to GirModule.
1333 * girepository/girparser.c: Parse dependencies.
1334 * girepository/gtypelib.c: Add 4 bytes for
1336 * tests/Makefile.am: Kill off gobject.gir,
1337 it conflicts with the real one.
1338 * tests/object.gir: Dep on GObject.
1339 * tools/generate.c: Take --includedir
1340 argument to say which directories to search
1341 for typelibs. Print out dependencies.
1343 2008-08-30 Colin Walters <walters@verbum.org>
1345 * giscanner/glibtransformer.py: Reduce warning noise.
1347 2008-08-29 Colin Walters <walters@verbum.org>
1349 * girepository/ginfo.c: Add some assertions regarding
1350 refcounts, just to be sure.
1351 * giscanner/glibtransformer.py: Blacklist a few more
1354 2008-08-29 Colin Walters <walters@verbum.org>
1356 * giscanner/glibtransformer.py: Blacklist a few
1357 functions that use GError oddly
1359 2008-08-29 Colin Walters <walters@verbum.org>
1361 * girepository/gtypelib.c: Don't crash if no
1364 2008-08-29 Colin Walters <walters@verbum.org>
1366 * girepository/girparser.c: Handle chains of aliases
1367 across modules by ensuring we fully qualify aliases
1370 2008-08-29 Colin Walters <walters@verbum.org>
1372 * girepository/girparser.c: Don't search aliases
1375 2008-08-29 Colin Walters <walters@verbum.org>
1377 * girepository/girparser.c: Rewrite type parsing
1378 to handle both GLib parsing case as well as correctly
1379 handling GLib.List and friends. Don't try to treat
1380 e.g. ListStore as a List.
1382 2008-08-29 Colin Walters <walters@verbum.org>
1384 * girepository/gtypelib.c: Add more context
1387 2008-08-29 Colin Walters <walters@verbum.org>
1389 * giscanner/glibtransformer.py: Add some informative
1390 logging messages in corner cases. Be sure we use
1391 the most recent node set instead of a cache
1392 when generating result set.
1393 * tests/: Remove duplicated bits in expected girs
1394 * girepository/girparser.c: Accept both List (for
1395 compiling GLib) and GLib.List (what the scanner
1398 * tools/generate.c: Generate canonical form.
1400 2008-08-29 Johan Dahlin <johan@gnome.org>
1402 * giscanner/config.py.in:
1403 Use datarootdir instead of datadir to avoid
1404 an autoconf warning.
1406 2008-08-29 Johan Dahlin <johan@gnome.org>
1410 * examples/gdk-pixbuf.gidl:
1412 Update and remove old cruft.
1414 2008-08-29 Johan Dahlin <johan@gnome.org>
1417 * docs/g-ir-compiler.1:
1418 * docs/g-ir-generate.1:
1419 * docs/g-ir-scanner.1:
1420 Add man pages for the generator and compiler.
1422 2008-08-29 Johan Dahlin <johan@gnome.org>
1424 * docs/g-ir-scanner.1: Document
1426 * giscanner/Makefile.am:
1427 * giscanner/gidlparser.py:
1428 * giscanner/gidlwriter.py:
1429 * tools/g-ir-scanner:
1430 Remove gidl support.
1432 2008-08-28 Colin Walters <walters@verbum.org>
1434 * tests/scanner/Makefile.am: Pass the right
1435 --includedir args. Add a Makefile dep.
1436 * tools/compiler.c: Pass includedirs down.
1437 * girepository/girparser.c: Actually put
1438 includedirs in context, pass down. Fix
1441 2008-08-28 Colin Walters <walters@verbum.org>
1443 * gir/Makefile.am: Use --includedir
1444 * girepository/girparser.c: Recursively parse
1445 includes to pull in aliases and expand them.
1446 We need this to avoid putting unknown names in
1448 * tools/compiler.c: Add --includedir option.
1449 * giscanner/ast.py: Map size/ssize to types
1452 2008-08-28 Tor Lillqvist <tml@novell.com>
1454 Make check now runs successfully on Windows.
1456 * tools/compiler.c (write_out_typelib): Use binary mode for output
1459 * girepository/girnode.c: Don't print NULL strings.
1461 * tests/invoke/Makefile.am
1462 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
1463 convince libtool to build shared libraries.
1465 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
1466 g_assert() instead of printing out expected errors.
1468 2008-08-28 Tor Lillqvist <tml@novell.com>
1470 * girepository/gtypelib.h: Change type of bitfield fields from
1471 guint to the most suitable smaller type. This makes the struct
1472 sizes match the ones on Linux that the sanity check expects when
1473 using gcc -mms-bitfields on Windows.
1475 2008-08-28 Johan Dahlin <johan@gnome.org>
1480 * giscanner/Makefile.am:
1481 * tests/Makefile.am:
1482 * tests/scanner/Makefile.am:
1483 Make distcheck pass.
1485 2008-08-27 Johan Dahlin <johan@gnome.org>
1487 * giscanner/Makefile.am:
1488 Only send in -no-undefined on Win32 as it breaks on MacOS X.
1490 2008-08-27 Tor Lillqvist <tml@novell.com>
1492 Make g-ir-scanner work on Windows. Still problems with the typelib
1493 code. Changes okayed by jdahlin.
1495 * configure.ac: Check for Windows, set Automake conditional
1496 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
1497 avoid shell quoting issues
1499 * girepository/Makefile.am: Use -no-undefined so that libtool
1500 agrees to build a shared library on Windows.
1502 * girepository/girparser.c (backtrace_stderr): No backtrace() on
1503 Windows. Empty implementation on Windows so far.
1505 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
1506 informative error message for the assertion failures. Tell also
1507 what the expected size of the struct is. Check all sizes first and
1508 fail afterwards if at least one size was different from expected.
1510 * tools/Makefile.am: Reorder libraries into proper logical
1513 * tools/generate.c: Don't include <dlfcn.h>, not used.
1515 * giscanner/Makefile.am: On Windows, link with the Python library,
1516 and install the module DLL as _giscanner.pyd. Remove the
1517 unnecessary import library and libtool library that libtool has
1520 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
1521 and just skip it. Recognize also two "l" suffixes for long long
1522 constants. Recognize also __inline__.
1524 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
1525 GetFullPathName(). As such, GetFullPathName() does more than the
1526 UNIX realpath(). It also changes relative paths into absolute
1527 paths. But for our purposes that shouldn't matter.
1529 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
1530 Windows the file descriptor passed to us is from Python. Python
1531 Python2.5 uses the msvcr71.dll C library, while mingw-built code
1532 uses msvcrt.dll. On Windows, file descriptors are specific to
1533 which C library is used. So we must find out what underlying OS
1534 handle corresponds to the file descriptor Python passes us, and
1535 then make that into a file descriptor valid for the C library this
1538 * giscanner/sourcescanner.py (_parse): Don't need to bypass
1539 __attribute__ as the lexer now handles it. The definition as empty
1540 was ineffective for mingw anyway, as mingw's _mingw.h undefines
1541 __attribute__. Close the temp file before unlinking it.
1543 * giscanner/cgobject.py: Use correct library name for the gobject
1546 * gir/Makefile.am: Must pass the full basename of the DLLs on
1547 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
1548 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
1549 reality they won't change, until there is a GLib 3, and then also
1550 the Unix code here needs changing.
1552 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
1555 2008-08-26 Colin Walters <walters@verbum.org>
1557 * girepository/girepository.c: Search
1558 $DATADIR/girepository instead of
1559 $DATADIR/gitypelibs; this naming makes
1560 it clearer that e.g. jgir can install
1562 * gir/Makefile.am: Install there.
1564 2008-08-26 Colin Walters <walters@verbum.org>
1566 * girepository/gtypelib.c (_g_typelib_init): Also
1567 use G_MODULE_SUFFIX instead of hardcoding .so.
1569 2008-08-26 Colin Walters <walters@verbum.org>
1571 * girepository/gtypelib.c (_g_typelib_init): Free
1572 string in the right place.
1574 2008-08-26 Colin Walters <walters@verbum.org>
1576 * girepository/gtypelib.c (_g_typelib_init): Handle
1577 both .la and .so names; this works better in the
1578 uninstalled library case.
1580 2008-08-26 Johan Dahlin <johan@gnome.org>
1583 * giscanner/Makefile.am:
1584 * giscanner/cgobject.py:
1585 * giscanner/config.py.in:
1586 * giscanner/sourcescanner.py:
1587 Avoid undeffing __GNUC__, instead define
1588 __attribute__ & friends. Remove glibconfig.h hack.
1589 This makes gobject-introspection work better on
1590 MacOS X, Thanks to Richard Hult for kind help.
1592 2008-08-25 Colin Walters <walters@verbum.org>
1594 * giscanner/glibtransformer.py: Always print
1597 2008-08-25 Colin Walters <walters@verbum.org>
1599 * giscanner/glibtransformer.py: Skip over
1600 interfaces we don't know.
1602 2008-08-25 Colin Walters <walters@verbum.org>
1604 * girepository/girparser.c: Parse new implements
1605 syntax, drop gapi one.
1606 * tests/object.gir: Update.
1607 * tools/generate.c: Generate new syntax.
1609 2008-08-25 Colin Walters <walters@verbum.org>
1611 * giscanner/ast.py: Add interfaces property
1613 * giscanner/girwriter.py: Write out implemented
1615 * giscanner/glibtransformer.py: Introspect
1616 implemented interfaces.
1617 * tests/scanner/*: Make FooObject implement
1620 2008-08-25 Colin Walters <walters@verbum.org>
1622 * giscanner/glibtransformer.py: More correctly pair
1623 methods; if we have a symbol that starts with
1624 e.g. hippo_canvas look for a matching HippoCanvas
1625 class before accepting e.g. HippoCanvasImage.
1627 2008-08-24 Colin Walters <walters@verbum.org>
1629 * tools/g-ir-scanner: Filter out unknown options from
1632 2008-08-24 Colin Walters <walters@verbum.org>
1634 * giscanner/glibtransformer.py: Fail with better
1635 error if we can't find library.
1637 2008-08-24 Colin Walters <walters@verbum.org>
1639 * tools/g-ir-scanner: Use subprocess instead of
1640 commands, works on Windows and avoids the evil
1643 2008-08-24 Colin Walters <walters@verbum.org>
1645 * giscanner/glibtransformer.py: Skip over
1646 g_object_get_type from GLib trunk.
1648 2008-08-24 Colin Walters <walters@verbum.org>
1650 * girepository/girepository.c (g_irepository_require):
1651 Don't open shared library here; we already do it
1654 2008-08-24 Colin Walters <walters@verbum.org>
1656 * girepository/gtypelib.c: Add context stack so
1657 when we get an error we can print out nicely
1660 2008-08-24 Johan Dahlin <johan@gnome.org>
1662 * girepository/girparser.c (start_glib_boxed), (start_function),
1663 (start_field), (start_alias):
1664 Refactor a couple of parsing functions to be simpler to follow.
1667 2008-08-24 Johan Dahlin <johan@gnome.org>
1669 * girepository/girparser.c (start_function):
1670 Remove left-over code, checking type of function.
1672 2008-08-23 Colin Walters <walters@verbum.org>
1674 * giscanner/config.py: Define DATADIR.
1675 * giscanner/transformer.py: Look in DATADIR.
1677 2008-08-23 Colin Walters <walters@verbum.org>
1679 * girepository/gtypelib.c: Check constructor
1681 * girepository/girnode.c: Small tweaks.
1682 * girepository/ginfo.c: Calculate signature offsets
1684 * girepository/girparser.c: Remove duplicate
1686 * giscanner/glibtransformer.py: Avoid marking
1687 functions which return a basic type as
1690 2008-08-23 Colin Walters <walters@verbum.org>
1692 * girepository/girparser.c: Ignore <include>.
1693 * giscanner/girparser.py: Parse them.
1694 * giscanner/girwriter.py: Generate them.
1695 * giscanner/transformer.py: Process <include>
1696 recursively. Don't require full path for
1697 includes, look in {$XDG_DATA_DIRS}/gir.
1698 * tools/g-ir-scanner: Pass through includes.
1699 * Makefile.am: Remove extra --include
1701 * *-expected.gir: Add expected includes.
1703 2008-08-23 Johan Dahlin <johan@gnome.org>
1705 * tests/scanner/Makefile.am:
1706 * tests/scanner/annotation-expected.gir:
1707 * tests/scanner/drawable-expected.gir:
1708 Avoid duplication in the Makefile, regenerate with new
1709 namespaces (same as the filename)
1711 2008-08-22 Colin Walters <walters@verbum.org>
1713 * girepository/girnode.c: Don't hardcode integers,
1716 2008-08-22 Johan Dahlin <johan@gnome.org>
1718 * giscanner/sourcescanner.py:
1719 Check for ../gobject-introspection-1.0.pc.in to determine
1720 if we run installed or uninstalled.
1722 2008-08-22 Johan Dahlin <johan@gnome.org>
1725 * giscanner/sourcescanner.py:
1726 Send in undefs/defines via writing it directly to stdin
1727 of cpp instead of via arguments.
1729 2008-08-22 Colin Walters <walters@verbum.org>
1731 * tools/generate.c, tools/compiler.c: Default
1733 * all Makefile.am: Update.
1735 2008-08-22 Colin Walters <walters@verbum.org>
1737 * girepository/girparser.c: Pass through
1738 recursive types. Avoid overwriting errors.
1739 * giscanner/xmlwriter.py: Always write the
1741 * tests/*.gir: Adjust.
1742 * tests/scanner/Makefile.am: Build typelibs,
1743 and generate XML from those. Once we
1744 have a good diff mechanism...
1745 * tests/scanner/*-expected.gir: Add XML
1747 * tools/g-ir-scanner: Accept --typelib-xml
1749 * tools/generate.c: Better defaults for transfer.
1751 2008-08-22 Johan Dahlin <johan@gnome.org>
1755 * giscanner/Makefile.am:
1756 * giscanner/config.py.in:
1757 * giscanner/sourcescanner.py:
1758 Use the generated glibconfig.h for all scanner invokations.
1759 Rename it to glibconfig-scanner.h and install it.
1760 Add a config.py which so far contains the include dir.
1762 2008-08-22 Johan Dahlin <johan@gnome.org>
1765 Replace glibconfig.h with our own, do some replacement
1766 for CPP/C features we do not support
1768 2008-08-22 Colin Walters <walters@verbum.org>
1770 * tools/generate.c (write_callable_info): Fix unref
1773 2008-08-22 Colin Walters <walters@verbum.org>
1775 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
1776 * tests/Makefile.am: Support $(DEBUG)
1777 * tools/generate.c: Do immediate close tags if no
1780 2008-08-21 Colin Walters <walters@verbum.org>
1782 * tests/scanner/drawable-expected.gir,
1783 * tests/scanner/drawable.c,
1784 * tests/scanner/drawable.h:
1787 2008-08-21 Colin Walters <walters@verbum.org>
1789 * giscanner/glibtransformer.py: Compute prefix
1790 by searching through the symbol for bits
1791 rather than going directly from ctype; this fixes
1794 2008-08-21 Colin Walters <walters@verbum.org>
1796 * giscanner/glibtransformer.py: Also try squashing
1797 underscores from namespace, fixes webkit_web_view_new.
1799 2008-08-21 Colin Walters <walters@verbum.org>
1801 * giscanner/glibtransformer.py: More ctor work,
1802 avoid having gtk_window_group_new end up under
1805 2008-08-21 Colin Walters <walters@verbum.org>
1807 * giscanner/glibtransformer.py: Much simpler approach
1808 of mapping uscored names to classes.
1809 * giscanner/utils.py: Remove unnecessary function.
1811 2008-08-21 Johan Dahlin <johan@gnome.org>
1813 * girepository/girepository.c (g_irepository_require):
1814 Plug memory leak and avoid using freed memory.
1815 Resolve the whole module path, here as well.
1817 2008-08-21 Colin Walters <walters@verbum.org>
1819 * giscanner/glibtransformer.py: Look up all permutations
1820 of class names when scanning methods/ctors based on
1821 the prefix instead of using the return value. This
1822 associates gtk_window_new with the right class.
1824 2008-08-21 Colin Walters <walters@verbum.org>
1826 * girepository/girmodule.c (g_ir_module_build_typelib):
1827 Revert change to increment header_size; we do that in
1830 2008-08-21 Colin Walters <walters@verbum.org>
1832 * girepository/girnode.c (write_string): Tweak to
1833 use UINT instead of INT. Not likely to matter.
1834 * girepository/girmodule.c (g_ir_module_build_typelib):
1835 Add to header_offset as well for header strings
1836 to match what write_string does.
1837 * girepository/gtypelib.c: Replace is_name with
1838 validate_name, which more strongly validates and
1839 handles errors in a better way. Update all callers.
1840 * giscanner/glibtransformer.py: Handle constructors
1843 2008-08-21 Johan Dahlin <johan@gnome.org>
1845 * gir/Makefile.am (typelibs_DATA): Build and
1846 install the Gio.typelib too
1848 * girepository/gtypelib.c (_g_typelib_init):
1849 Use g_module_build_path to resolve the shlib name
1851 2008-08-21 Colin Walters <walters@verbum.org>
1853 * gir/Makefile.am: CLEANFILES typelibs too.
1855 2008-08-21 Johan Dahlin <johan@gnome.org>
1857 * giscanner/glibtransformer.py:
1858 Do not send .la files through find_library.
1860 2008-08-21 Colin Walters <walters@verbum.org>
1862 * girepository/girparser.c (g_irepository_require):
1863 Fix one small leak in error case.
1865 2008-08-21 Johan Dahlin <johan@gnome.org>
1868 Parse glibconfig.h as well and install the compiled
1871 2008-08-21 Johan Dahlin <johan@gnome.org>
1874 * giscanner/glibtransformer.py:
1875 * tools/g-ir-scanner:
1876 Do not hard-core library names in the Makefile, reuse
1877 ctypes find_library instead.
1879 2008-08-21 Johan Dahlin <johan@gnome.org>
1881 * girepository/girparser.c (resolve_aliases):
1882 Remove compilation warnings
1884 2008-08-21 Johan Dahlin <johan@gnome.org>
1886 * girepository/girepository.c (g_irepository_require):
1887 Rewrap and fix double free bug by leaking a bit.
1889 2008-08-20 Colin Walters <walters@verbum.org>
1891 * girepository/girepository.c: Add new function
1892 g_irepository_get_typelib_path which tells
1893 us from where we loaded a namespace.
1895 2008-08-20 Colin Walters <walters@verbum.org>
1897 * tests/scanner/*-expected.gir: Adjust for
1898 added shared-library.
1899 * giscanner/giwriter.py: Make pylint happy.
1901 2008-08-20 Colin Walters <walters@verbum.org>
1903 * girepository/girmodule.c (g_ir_module_build_typelib):
1904 Calculate size correctly, avoid use-after-free.
1906 2008-08-20 Colin Walters <walters@verbum.org>
1908 * girepository/girepository.c: Remove
1909 g_irepository_register_file in favor of
1910 g_irepository_require. There are two
1911 possible deployment scenarios for typelibs:
1912 First, separate in $DATADIR/gitypelibs/. Second,
1913 they may be embedded in shlibs. However since
1914 the first is now the normal case, the API is
1915 optimized around it.
1917 Refactor internals to look up typelibs for
1918 namespaces just-in-time, but we expect
1919 consumers to call g_irepository_require.
1921 Also, add some docs. No one has died from that
1923 * gir/Makefile.am: Need --library for glib.
1924 * giscanner/girwriter.py: Write out shared-library.
1925 * tools/g-ir-writer: Take the first --library
1926 argument as the target of shared-library. In
1927 the future we should make this nicer with pkg-config
1930 2008-08-20 Colin Walters <walters@verbum.org>
1932 * girepository/girparser.py: And parse them.
1934 2008-08-20 Johan Dahlin <johan@gnome.org>
1936 * giscanner/glibast.py: Add gshort/gushort types
1938 2008-08-20 Colin Walters <walters@verbum.org>
1940 * gir/Makefile.am: Rename .gir files using GI namespace.
1941 * girepository/girepository.c: Use XDG_DATA_DIRS for
1942 looking up typelibs. Also typelibs are now suffixed
1944 * tests/invoke/Makefile.am: Only use metadata.
1945 * girepository/Makefile.am: Remove unnecessary include.
1946 * tests/scanner/Makefile.am: Update using GI namespaces
1947 for scanner includes.
1949 2008-08-20 Colin Walters <walters@verbum.org>
1951 * girepository/transformer.py: Suppress aliases whose
1953 * girepository/ast.py: Define some more aliases.
1955 2008-08-20 Colin Walters <walters@verbum.org>
1957 * girepository/girparser.c: Avoid alias infloops.
1959 2008-08-20 Colin Walters <walters@verbum.org>
1961 * tests/scanner/foo-expected.gir: Fix expected list type.
1963 2008-08-20 Johan Dahlin <johan@gnome.org>
1965 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
1966 Add a workaround for #548689.
1967 We can now compile gtk!
1969 2008-08-20 Colin Walters <walters@verbum.org>
1971 * giscanner/glibtransformer.py: Try to look up
1972 aliases using the c:type too.
1974 2008-08-20 Colin Walters <walters@verbum.org>
1976 * girepository/girparser.c: Parse union fields.
1978 2008-08-20 Johan Dahlin <johan@gnome.org>
1980 * giscanner/ast.py: Make time_t an alias for long
1982 * gir/gio-2.0-good.gir:
1983 * gir/glib-2.0-good.gir:
1984 * gir/gobject-2.0-good.gir:
1986 * giscanner/glibtransformer.py:
1987 Do not delete Class structures, we need them in gdk/gtk.
1988 * tests/scanner/drawable-expected.gir:
1989 * tests/scanner/foo-expected.gir:
1990 * tests/scanner/utility-expected.gir:
1993 2008-08-20 Johan Dahlin <johan@gnome.org>
1995 * tests/scanner/Makefile.am:
1996 * tests/scanner/annotation-expected.gir:
1997 * tests/scanner/annotation.c (annotation_object_class_init),
1998 (annotation_object_init), (annotation_object_method),
1999 (annotation_object_in), (annotation_object_out),
2000 (annotation_object_inout), (annotation_object_inout2),
2001 (annotation_object_inout3), (annotation_object_calleeowns),
2002 (annotation_object_calleesowns), (annotation_object_get_strings),
2003 (annotation_object_with_voidp), (annotation_object_get_objects),
2004 (annotation_object_create_object), (annotation_object_allow_none):
2005 * tests/scanner/annotation.h:
2006 * tests/scanner/foo-expected.gir:
2007 * tests/scanner/foo.c:
2008 * tests/scanner/foo.h:
2009 Split out annotation tests out of foo
2011 2008-08-20 Johan Dahlin <johan@gnome.org>
2013 * tests/scanner/Foo-expected.gir:
2014 * tests/scanner/Makefile.am:
2015 * tests/scanner/foo-expected.gir:
2016 * tests/scanner/foo-object.h:
2017 * tests/scanner/foo.c:
2018 Foo->foo, foo-object.h -> foo.h
2020 2008-08-20 Johan Dahlin <johan@gnome.org>
2022 * tests/scanner/Foo-expected.gir:
2023 * tests/scanner/Makefile.am:
2024 * tests/scanner/drawable-expected.gir:
2025 * tests/scanner/drawable.c (test_drawable_class_init),
2026 (test_drawable_init):
2027 * tests/scanner/drawable.h:
2028 * tests/scanner/foo-object.h:
2029 * tests/scanner/foo.c (foo_boxed_method):
2030 Move the drawable parts out of Foo to its own test.
2032 2008-08-20 Johan Dahlin <johan@gnome.org>
2034 * tests/scanner/Foo-expected.gir:
2035 * tests/scanner/foo-object.h:
2036 * tests/scanner/foo.c (foo_drawable_class_init),
2037 (foo_drawable_init):
2038 Add a based on GdkDrawable which generates
2041 2008-08-19 Colin Walters <walters@verbum.org>
2043 * giscanner/transformer.py: Don't try
2044 to strip prefix before namespace.
2046 2008-08-19 Johan Dahlin <johan@gnome.org>
2048 * giscanner/transformer.py:
2049 * tests/scanner/Foo-expected.gir:
2050 * tests/scanner/foo-object.h:
2051 Add support for typedef void foo type of
2054 2008-08-19 Johan Dahlin <johan@gnome.org>
2057 * giscanner/girwriter.py:
2058 * giscanner/glibtransformer.py:
2059 * giscanner/transformer.py:
2060 * tests/scanner/Foo-expected.gir:
2061 Add basic support for union, base the code much
2062 on Struct. Add a testcase.
2064 2008-08-19 Johan Dahlin <johan@gnome.org>
2066 * tests/scanner/Foo-expected.gir:
2067 * tests/scanner/foo-object.h:
2068 Add a union testcase which the compiler currently
2071 2008-08-19 Johan Dahlin <johan@gnome.org>
2073 * gobject-introspection-1.0.pc.in:
2074 Add a g_ir_compiler variable
2076 2008-08-19 Colin Walters <walters@verbum.org>
2078 * giscanner/ast.py: Rework types to be more closely
2080 * giscanner/girparser.py: Parse more bits.
2081 * giscanner/girwriter.py: Write sequences in a new
2082 way that specifies container type.
2083 * giscanner/glibast.py: Adjust for ast.py changes,
2084 add 'ctype' property to GLibObject and GLibInterface
2085 so we can look things up by it later.
2086 * gicanner/transformer.py: Names is new class holding
2087 the various namespaces we manage. Do not confuse
2088 with Namespace which is toplevel XML node effectively.
2089 Rework all type resolution to go through
2090 _resolve_type_name_1.
2091 * giscanner/glibtransformer.py: Raise UnknownTypeError
2092 instead of ValueError for cleanliness. Add Unresolved
2093 class to mark types whose parent we haven't seen yet.
2094 Use new Names object from transformer.py.
2095 Correctly look up parent=.
2096 Fix type validation to handle sequences.
2097 * tests/scanner/Foo-expected.gir: Update for sequence
2098 work, int instead of int32.
2099 * tools/g-ir-scanner: Add --noclosure option
2100 * gir/Makefile.am: Use --noclosure by default for
2103 2008-08-18 Johan Dahlin <johan@gnome.org>
2105 * gir/gio-2.0-good.gir:
2106 * gir/glib-2.0-good.gir:
2107 * gir/gobject-2.0-good.gir:
2110 2008-08-18 Johan Dahlin <johan@gnome.org>
2113 * giscanner/girparser.py:
2114 * giscanner/girwriter.py:
2115 * giscanner/glibast.py:
2116 * giscanner/glibtransformer.py:
2117 * giscanner/transformer.py:
2118 * tests/scanner/Foo-expected.gir:
2119 * tests/scanner/foo-object.h:
2120 * tests/scanner/utility-expected.gir:
2121 * tests/scanner/utility.h:
2122 Redo type resolving and validation.
2123 Add a couple of new tests.
2124 Patch mostly written by Colin.
2126 2008-08-18 Johan Dahlin <johan@gnome.org>
2129 * giscanner/girparser.py:
2131 * giscanner/transformer.py:
2132 Improve enum parsing for enums without a GType.
2133 Make flags/enum references to other girs work
2134 * giscanner/utils.py:
2136 * tests/scanner/Makefile.am:
2137 * tests/scanner/foo-object.h:
2138 * tests/scanner/utility-expected.gir:
2139 * tests/scanner/utility.h:
2140 Add a new test for external enum references
2142 2008-08-18 Johan Dahlin <johan@gnome.org>
2144 * docs/global-module-registry.txt: Update
2146 * tests/array.gir: Update with new type proposal
2148 * girepository/girepository.c (g_type_tag_to_string):
2149 * girepository/girepository.h:
2150 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2152 * girepository/girnode.h:
2153 Make enum serializing functions public. Clean up some whitespace.
2155 2008-08-17 Johan Dahlin <johan@gnome.org>
2157 * docs/global-module-registry.txt:
2158 Add a document for an on disk module registry format
2160 2008-08-17 Johan Dahlin <johan@gnome.org>
2163 * gir/gio-2.0-good.gir:
2166 2008-08-17 Johan Dahlin <johan@gnome.org>
2169 * gir/glib-2.0-good.gir:
2170 * gir/gobject-2.0-good.gir:
2171 * giscanner/cgobject.py:
2172 * giscanner/glibtransformer.py:
2173 Regenerate GObject & GType.
2174 Avoid warnings when generating gobject-2.0.gir.
2175 Introspect a little more, and skip *_get_type functions.
2177 2008-08-17 Colin Walters <walters@verbum.org>
2179 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2180 Rename to -good, always generate during build.
2181 * gir/Makefile.am: Ensure .gir files dep on
2182 all scanner sources.
2183 * Makefile.am: Switch build order to ensure
2184 the scanner is ready before we do gir/.
2185 * tools/g-ir-scanner: Look for .git too.
2187 2008-08-17 Johan Dahlin <johan@gnome.org>
2189 * girepository/gtypelib.c (validate_enum_blob):
2190 * giscanner/glibtransformer.py:
2191 * giscanner/transformer.py:
2192 Remove resolve_possible_typedefs, it was unused.
2193 Allow multiple enum values of the sample value in an enum,
2194 since it's actually pretty common.
2195 Register enums so they can be resolved too.
2197 2008-08-16 Johan Dahlin <johan@gnome.org>
2199 * giscanner/girparser.py:
2200 Parse enumeration/bitfield.
2202 2008-08-16 Johan Dahlin <johan@gnome.org>
2204 * giscanner/girparser.py:
2207 2008-08-16 Johan Dahlin <johan@gnome.org>
2209 * giscanner/glibtransformer.py:
2210 Resolve type names for alias targets
2211 * giscanner/transformer.py:
2212 Skip FILE* parameters fow now
2214 2008-08-16 Johan Dahlin <johan@gnome.org>
2217 * gir/gobject-2.0.gir:
2220 * tests/scanner/Makefile.am:
2223 2008-08-15 Colin Walters <walters@verbum.org>
2225 * giscanner/glibtransformer.py: Explicitly construct
2226 new list, since we're deleting as we iterate.
2227 Don't delete all structures which end in Class; just
2228 ones which have a paired GObject.
2229 Fix printing of type warning.
2230 * giscanner/transformer.py: Make strip_namespace_object
2231 be the identity function if it doesn't match the
2234 2008-08-15 Colin Walters <walters@verbum.org>
2236 * giscanner/cgobject.py: Define yet more argument
2237 prototypes; fix prototype for g_type_fundamental.
2239 2008-08-14 Johan Dahlin <johan@gnome.org>
2241 * tests/Makefile.am:
2242 * tests/constant.gir:
2243 * tests/gobject.gir:
2245 * tools/generate.c (write_struct_info):
2246 Fix generator for constant/gobject/struct
2248 2008-08-14 Johan Dahlin <johan@gnome.org>
2250 * tests/Makefile.am:
2252 * tools/generate.c (write_enum_info):
2253 Fix generation of enum/bitfields
2255 2008-08-14 Johan Dahlin <johan@gnome.org>
2257 * girepository/girparser.c (start_field), (start_constant),
2258 (start_type), (end_element_handler):
2259 Clear up constant parsing
2264 * tools/generate.c (write_callable_info), (write_function_info),
2265 (write_callback_info), (write_constant_info), (write_signal_info),
2266 (write_vfunc_info), (write_property_info), (write_object_info),
2267 (write_interface_info):
2268 Constants/Signals are handled now.
2270 2008-08-14 Johan Dahlin <johan@gnome.org>
2272 * girepository/girparser.c (start_type):
2273 Don't require c:type.
2274 * tests/Makefile.am:
2277 Update, remove parts we don't support yet
2278 * tests/roundtrips.sh:
2280 * tools/generate.c (write_type_info), (write_field_info),
2281 (write_callable_info), (write_struct_info):
2282 Make it emit proper gir.
2284 2008-08-14 Johan Dahlin <johan@gnome.org>
2286 * giscanner/transformer.py:
2287 New internal function for adding a new node.
2289 2008-08-14 Johan Dahlin <johan@gnome.org>
2292 Define an internal _H_ variable so we skip parsing both
2293 i18n headers, only one is needed.
2295 Add the glib-2.0.gir too.
2296 * giscanner/glibast.py:
2297 Add gconstpointer as an alias for ANY
2298 * giscanner/transformer.py:
2299 Do not lower case enumeration names per se.
2300 Skip functions which has parameters called 'va_list'
2302 2008-08-14 Colin Walters <walters@verbum.org>
2304 * giscanner/transformer.py: Comment data structures.
2305 Also squash pointers in resolve_type_name to correspond
2306 with what we do for params.
2307 * giscanner/glibtransformer.py: Print warnings in more
2308 situations. Rework checks for method/constructor to
2309 look up in our GType database instead of just checking
2310 for *. Avoid generating <record> for GObject which
2311 duplicate the <class>.
2312 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
2315 2008-08-14 Johan Dahlin <johan@gnome.org>
2317 * giscanner/girwriter.py:
2318 * giscanner/glibast.py:
2319 * giscanner/glibtransformer.py:
2320 * giscanner/transformer.py:
2322 * tests/Makefile.am:
2323 Add pyflakes.py and run it in make check.
2324 Update the source code to fix the errors reported by
2327 2008-08-14 Johan Dahlin <johan@gnome.org>
2330 * giscanner/girparser.py:
2331 * giscanner/glibast.py:
2332 * giscanner/glibtransformer.py:
2333 Refactor the parser a bit.
2334 Add parent type to interfaces and update callsites.
2336 2008-08-14 Johan Dahlin <johan@gnome.org>
2338 * giscanner/glibtransformer.py:
2339 * giscanner/utils.py:
2340 Refactor a bit, avoid isinstance and add a method
2341 for each type we parse.
2343 2008-08-14 Johan Dahlin <johan@gnome.org>
2346 * giscanner/girparser.py:
2347 * giscanner/glibtransformer.py:
2348 * tests/Makefile.am:
2349 Run pep8.py in make check, fix old errors.
2351 2008-08-13 Colin Walters <walters@verbum.org>
2353 * giscanner/girparser.py: Parse records.
2355 2008-08-13 Colin Walters <walters@verbum.org>
2357 * gir/Makefile.am: Install again.
2358 * gir/gobject-2.0.gir: Add some more bits.
2360 2008-08-13 Colin Walters <walters@verbum.org>
2362 * gir/gobject-2.0.gir: Use correct namespace, add GType.
2363 * giscanner/girparser.py: Handle aliases.
2364 * giscanner/transformer.py: Record aliases. Make resolver
2365 functions public; we now call into these explicitly from
2366 glibtransformer. Handle resolving aliases.
2367 * giscanner/glibtransformer.py: Separate our internal namespace
2368 from included ones. Call up into transformer's resolver functions.
2370 2008-08-13 Johan Dahlin <johan@gnome.org>
2372 * girepository/girnode.c (g_ir_node_get_full_size_internal):
2373 * girepository/girparser.c (start_class):
2374 * giscanner/glibtransformer.py:
2375 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
2377 2008-08-13 Johan Dahlin <johan@gnome.org>
2379 * giscanner/cgobject.py:
2380 Register GInitiallyUnowned
2381 * giscanner/girwriter.py:
2382 * giscanner/glibtransformer.py:
2383 Special case GObject/GInitially owned as they are a bit special to use.
2385 2008-08-13 Colin Walters <walters@verbum.org>
2387 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
2388 Object is in GObject namespace.
2390 2008-08-13 Colin Walters <walters@verbum.org>
2392 * giscanner/girparser.py: Fix processing of functions
2395 2008-08-13 Colin Walters <walters@verbum.org>
2397 * giscanner/girparser.py: Parse more than just <class.
2398 * giscanner/glibtransformer.py: Put aliases in a separate
2399 data structure since their name is not canonicall.
2400 * giscanner/transformer.py: Handle resolving type names
2403 2008-08-13 Johan Dahlin <johan@gnome.org>
2405 * tools/g-ir-scanner:
2406 Allow multiple libraries
2407 * giscanner/glibtransformer.py:
2408 Rename load_library to add_library, traverse over all libraries
2409 when trying to resolve a function
2411 2008-08-12 Colin Walters <walters@verbum.org>
2413 * giscanner/transformer.py: Record typedefs as <alias> elements.
2414 Also attempt to look up types in external namespaces.
2415 * giscanner/girwriter.py: Write them.
2416 * giscanner/glibtransformer.py: Rework resolver using real instanceof
2417 checks. Resolve interface methods and properties.
2418 * tests/scanner/foo-object.h: Add a method with typedef.
2419 * tests/scanner/Foo-expected.gir: Update.
2420 * girepository/girnode.c: Debug tweaks.
2421 * girepository/girparser.c: Make a first pass through the XML where we
2422 record all the aliases. This lets us resolve them as we go through the
2424 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
2425 from gir-repository.
2427 2008-08-12 Colin Walters <walters@verbum.org>
2429 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
2430 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
2432 * giscanner/transformer.py: Record typedefs and expose public API for resolving
2434 * tests/scanner/Foo-expected.gir: Fix expected callback types.
2436 2008-08-12 Colin Walters <walters@verbum.org>
2438 * giscanner/glibtransformer.py: Also transform object properties.
2440 2008-08-12 Colin Walters <walters@verbum.org>
2442 * giscanner/glibtransformer.py: Also transform callbacks
2443 and structure field types.
2444 * tests/scanner/Fooe-expected.gir: Update to expect correct
2445 names for callbacks and structs.
2447 2008-08-12 Colin Walters <walters@verbum.org>
2449 * girepository/girparser.c: Handle 'any'.
2450 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2451 Add test for void *.
2453 2008-08-12 Colin Walters <walters@verbum.org>
2455 * giscanner/glibtransformer.py: We need to do type
2456 resolution in a second pass after we've seen all the
2457 enums, records, etc.
2459 2008-08-12 Colin Walters <walters@verbum.org>
2461 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
2462 Add enum return value.
2463 * giscanner/glibtransformer.py: Transform function return types
2466 2008-08-12 Colin Walters <walters@verbum.org>
2468 * tests/scanner/Makefile.am: Dep .gir files on scanner
2469 sources too. Also remove @ so we see scanner invocations.
2471 2008-08-12 Colin Walters <walters@verbum.org>
2473 * girepository/girparser.c, girepository/gtypelib.c,
2474 girepository/gtypelib.h, girepository/girnode.c:
2475 Remove usage of (GAPI-oriented) TypeTag in favor of
2476 GITypeTag from girepository.h.
2478 2008-08-10 Colin Walters <walters@verbum.org>
2480 * tests/roundtrips.sh: Use the correct tests.
2482 2008-08-10 Colin Walters <walters@verbum.org>
2484 * giscanner/cgobject.py: Declare/wrap a few more functions.
2485 Fix parameter types for g_object_new and g_type_fundamental.
2487 2008-08-10 Colin Walters <walters@verbum.org>
2489 * giscanner/cgobject.py: Add new decorator @gwrap which forces
2490 us to declare types for both return value and parameters. The
2491 ctypes default of 'int' is bad because it hides 32/64 bit
2492 problems. Convert all existing functions to use it.
2494 2008-08-09 Johan Dahlin <johan@gnome.org>
2496 * giscanner/__init__.py:
2498 * giscanner/cgobject.py:
2499 * giscanner/gidlparser.py:
2500 * giscanner/gidlwriter.py:
2501 * giscanner/girparser.py:
2502 * giscanner/girwriter.py:
2503 * giscanner/glibast.py:
2504 * giscanner/glibtransformer.py:
2505 * giscanner/odict.py:
2506 * giscanner/sourcescanner.py:
2507 * giscanner/transformer.py:
2508 * giscanner/utils.py:
2509 * giscanner/xmlwriter.py:
2510 * tools/g-ir-scanner:
2514 2008-08-09 Johan Dahlin <johan@gnome.org>
2517 * relaxng/c-types.xml:
2518 * relaxng/g-types.xml:
2519 * relaxng/relaxng.rng:
2521 Remove outdated relaxng schemas.
2523 2008-08-09 Johan Dahlin <johan@gnome.org>
2526 Rename metadata to typelib in variable names,
2529 2008-08-09 Johan Dahlin <johan@gnome.org>
2533 Remove old C scanner, which got rewritten in python.
2535 2008-08-09 Johan Dahlin <johan@gnome.org>
2537 * girepository/Makefile.am:
2538 * tools/Makefile.am:
2539 * tools/girmodule.c:
2540 * tools/girmodule.h:
2543 * tools/girparser.c:
2544 * tools/girparser.h:
2545 * tools/girwriter.c:
2546 * tools/girwriter.h:
2547 Move shared *.[ch] files to girepository from tools
2549 2008-08-09 Johan Dahlin <johan@gnome.org>
2551 * tests/Makefile.am:
2554 * tests/constant.test:
2556 * tests/errors.test:
2557 * tests/function.test:
2558 * tests/gobject.test:
2559 * tests/interface.test:
2560 * tests/object.test:
2561 * tests/struct.test:
2566 Rename *.test to *.gir
2568 2008-08-09 Johan Dahlin <johan@gnome.org>
2571 * tests/Makefile.am:
2572 * tests/parser/Foo-expected.gir:
2573 * tests/parser/Makefile.am:
2574 * tests/parser/foo-object.h:
2575 * tests/parser/foo.c:
2576 * tests/parser/utility-expected.gir:
2577 * tests/parser/utility.c:
2578 * tests/parser/utility.h:
2579 * tests/scanner/Makefile.am:
2580 Rename tests/parser to test/scanner
2582 2008-08-08 Colin Walters <walters@verbum.org>
2584 * tests/roundtrips.sh: Use local .gir files again.
2586 2008-08-08 Colin Walters <walters@verbum.org>
2588 * tests/invoke/Makefile.am: .gir file depends on libtool
2591 2008-08-08 Colin Walters <walters@verbum.org>
2593 * tools/girnode.c: Pass through parent node so we can
2594 print the node whose child is NULL, if that occurs.
2596 2008-08-08 Johan Dahlin <johan@gnome.org>
2598 * tests/Makefile.am:
2599 Disable roundtrip tests which are not yet working
2600 * tests/invoke/testfns.gir:
2603 2008-08-08 Johan Dahlin <johan@gnome.org>
2605 * giscanner/girwriter.py:
2607 * giscanner/glibast.py:
2608 * giscanner/glibtransformer.py:
2609 Swap order of members, to keep it consistent with
2612 2008-08-08 Johan Dahlin <johan@gnome.org>
2614 * girepository/gtypelib.c (validate_header):
2615 * girepository/gtypelib.h:
2617 * giscanner/girwriter.py:
2618 * giscanner/sourcescanner.c (gi_source_symbol_ref),
2619 (gi_source_symbol_unref):
2622 * tests/constant.test:
2624 * tests/errors.test:
2625 * tests/function.test:
2626 * tests/gobject.test:
2627 * tests/interface.test:
2628 * tests/invoke/Makefile.am:
2629 * tests/invoke/testfns.xml:
2630 * tests/object.test:
2631 * tests/parser/Makefile.am:
2632 * tests/roundtrips.sh:
2633 * tests/struct.test:
2638 * tools/Makefile.am:
2639 * tools/compiler.c (main):
2640 * tools/generate.c (write_callable_info), (write_function_info),
2642 * tools/gidlmodule.c:
2643 * tools/gidlmodule.h:
2646 * tools/gidlparser.c:
2647 * tools/gidlparser.h:
2648 * tools/gidlwriter.c:
2649 * tools/gidlwriter.h:
2650 * tools/scanner.c (create_node_from_gtype),
2651 (create_node_from_ctype), (g_igenerator_process_properties),
2652 (g_igenerator_process_signals), (g_igenerator_create_object),
2653 (g_igenerator_create_interface), (g_igenerator_create_boxed),
2654 (g_igenerator_create_enum), (g_igenerator_create_flags),
2655 (g_igenerator_process_function_symbol),
2656 (g_igenerator_process_unregistered_struct_typedef),
2657 (g_igenerator_process_struct_typedef),
2658 (g_igenerator_process_union_typedef),
2659 (g_igenerator_process_enum_typedef),
2660 (g_igenerator_process_function_typedef),
2661 (g_igenerator_process_constant), (g_igenerator_process_symbols),
2662 (g_igenerator_add_module), (g_igenerator_add_include_idl):
2663 Merge in the gir-compiler branch.
2664 Thanks to Philip and Colin for their help.
2666 2008-07-26 Colin Walters <walters@verbum.org>
2668 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
2669 and g-idl-generate to go along with how we're changing this
2670 module to be installed.
2671 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
2673 2008-07-24 Colin Walters <walters@verbum.org>
2675 * girepository/girepository.c (g_irepository_register): Add
2676 environment variable G_IREPOSITORY_VERBOSE so we can print
2677 out what we're doing.
2678 * girepository/girepository.c (g_irepository_register_file):
2679 Add GError error message to g_debug call.
2681 2008-07-08 Jürg Billeter <j@bitron.ch>
2683 * giscanner/glibast.py:
2687 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
2689 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
2692 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
2695 * giscanner/girwriter.py:
2696 * giscanner/transformer.py:
2697 * tests/parser/Foo-expected.gir:
2698 * tests/parser/foo-object.h:
2699 * tests/parser/foo.c (foo_object_allow_none):
2700 Add support for gtk-doc annotations for allow-none.
2703 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
2706 * giscanner/girwriter.py:
2707 * giscanner/glibast.py:
2708 * giscanner/glibtransformer.py:
2709 * giscanner/transformer.py:
2710 * tests/parser/Foo-expected.gir:
2711 Start using abstract type instead of the raw C types.
2712 Register a bunch of glib types we care about.
2714 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
2719 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
2721 * girepository/girepository.c:
2722 * girepository/gtypelib.c:
2723 * girepository/ginfo.c:
2724 * girepository/ginvoke.c:
2725 * girepository/girepository.h:
2726 * girepository/gtypelib.h:
2727 * girepository/gmetadata.c:
2728 * girepository/Makefile.am:
2729 * girepository/gmetadata.h:
2731 * tools/gidlmodule.c:
2734 * tools/gidlmodule.h:
2735 * tools/gidlparser.c:
2737 Renamed GMetadata to GTypelib
2739 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
2741 * giscanner/xmlwriter.py:
2742 Improve line wrapping when > 79 charaters
2744 2008-06-05 Jürg Billeter <j@bitron.ch>
2747 * giscanner/girwriter.py:
2748 * giscanner/transformer.py:
2749 Use <type> element for field types
2750 * tests/parser/Foo-expected.gir:
2753 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
2755 * giscanner/glibtransformer.py:
2756 Fix a bug which prevented GdkEvent from being generated
2758 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
2760 * giscanner/Makefile.am:
2762 * giscanner/girwriter.py:
2763 * giscanner/glibast.py:
2764 * giscanner/glibtransformer.py:
2765 * giscanner/transformer.py:
2766 * giscanner/utils.py:
2767 * tests/parser/Foo-expected.gir:
2768 Improve enum member parsing and introspection
2770 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2772 * giscanner/scannerparser.y:
2773 * giscanner/sourcescanner.h:
2774 * giscanner/sourcescanner.py:
2775 Add a new source type enum for member.
2776 Use __repr__ for improved debugging
2777 * giscanner/girparser.py:
2779 * giscanner/transformer.py:
2780 Improve parsing of struct members.
2781 * tests/parser/foo-object.h:
2784 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2786 * giscanner/xmlwriter.py:
2787 Improve error reporting when trying to quote None.
2788 * giscanner/girparser.py:
2789 Do not print warnings when including more complete .gir files
2790 * giscanner/girwriter.py:
2791 Do not require a name for parameters, add a todo for singletons
2792 * giscanner/glibtransformer.py:
2793 Refactor the way structs are done, add a couple of hacks to allow
2795 * giscanner/transformer.py:
2796 Add enough hacks so cairo, atk and pango.gir can be parsed properly
2797 * gobject-introspection-1.0.pc.in:
2798 Export girdir, so we can access gobject-2.0.gir from outside
2800 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2802 * tools/g-ir-scanner:
2803 * tests/parser/Makefile.am:
2804 Update sys.path before running the parser so we don't have
2805 to setup PYTHONPATH ourselves.
2809 * girepository/Makefile.am:
2810 * giscanner/transformer.py:
2811 * gobject-introspection-1.0.pc.in:
2812 * gobject-introspection.pc.in:
2813 * tools/Makefile.am:
2815 Rename pkg-config name to gobject-introspection-1.0,
2816 Do not installed anything which is not using the gir format.
2817 Disable compililation the old C scanner, but still keep the source
2818 until all the remaning functionallity has been ported.
2820 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
2822 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
2823 a crash when symbol->indent is NULL.
2825 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
2826 a function to convert a CTYPE symbol to a string
2828 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
2831 * giscanner/girwriter.py:
2832 * giscanner/giscannermodule.c
2833 (pygi_source_scanner_append_filename),
2834 (pygi_source_scanner_parse_file):
2835 * giscanner/glibtransformer.py:
2836 * giscanner/sourcescanner.py:
2837 Revert back to using temporary files to send in headers.
2838 Allow Functions to be passed in as callbacks, add a couple
2839 of try/excepts missing features.
2840 We can now scan pango
2842 2008-05-08 Johan Dahlin <johan@gnome.org>
2844 * giscanner/glibtransformer.py:
2845 * giscanner/transformer.py:
2846 Move namespace stripping glibtransformer->transformer
2848 2008-05-08 Johan Dahlin <johan@gnome.org>
2851 * giscanner/girwriter.py:
2852 * giscanner/glibtransformer.py:
2853 * giscanner/transformer.py:
2854 * tools/g-ir-scanner:
2855 Introduce a namespace ast node
2857 2008-05-05 Johan Dahlin <johan@gnome.org>
2859 * giscanner/__init__.py:
2860 * giscanner/sourcescanner.py:
2861 * giscanner/transformer.py:
2862 Move sourcescanner symbols to the sourcescanner module, instead
2863 of in the global __init__ namespace.
2865 2008-05-03 Johan Dahlin <johan@gnome.org>
2867 * giscanner/glibtransformer.py:
2868 * tools/g-ir-scanner:
2869 Handle missing parameters better, allow - and + in .la dlname
2872 2008-05-03 Johan Dahlin <johan@gnome.org>
2874 * giscanner/__init__.py:
2876 * giscanner/girwriter.py:
2877 * giscanner/glibtransformer.py:
2878 * giscanner/transformer.py:
2879 Parse struct fields properly, improve debugging.
2881 2008-04-29 Johan Dahlin <johan@gnome.org>
2884 * giscanner/girwriter.py:
2885 * giscanner/transformer.py:
2886 * tests/parser/Foo-expected.gir:
2888 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
2890 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
2893 * docs/g-ir-scanner.1:
2894 * metadata-annotations-proposal.txt:
2895 * metadata-format.txt:
2896 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
2898 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
2900 * giscanner/girwriter.py:
2901 * giscanner/glibtransformer.py:
2902 * giscanner/transformer.py:
2903 * giscanner/xmlwriter.py:
2904 * tests/parser/Foo-expected.gir:
2905 * tests/parser/foo-object.h:
2906 Write record/structs to gir file too. Add a couple of tests,
2907 fix an off by one error in xmlwriter.py.
2909 2008-04-28 Johan Dahlin <johan@gnome.org>
2911 * giscanner/xmlwriter.py: Calculate the line length properly,
2912 include the provided extra indentation in the calculation, really.
2914 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2917 * giscanner/glibast.py:
2918 * giscanner/glibtransformer.py:
2919 * giscanner/transformer.py:
2920 * tools/g-ir-scanner:
2921 Add a --strip-prefix and sort out confusion between names and symbols
2922 for functions and struct + derivaties.
2923 Refactor bootstrap of g-ir-scanner, so we can set options on
2924 Transformer() before parsing everything.
2926 2008-04-28 Johan Dahlin <johan@gnome.org>
2928 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
2929 when scanning girepository.h
2931 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
2932 a __GI_SCANNER__ when we run.
2934 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2937 * giscanner/girwriter.py:
2938 * giscanner/glibast.py:
2939 * giscanner/glibtransformer.py:
2940 * tests/parser/Foo-expected.gir:
2941 * tests/parser/utility-expected.gir:
2942 Rename most c:identifier to c:type. Add new ones to
2943 class/interface/enum/boxed.
2945 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
2948 * giscanner/girwriter.py:
2949 * giscanner/glibtransformer.py:
2950 * tests/parser/Foo-expected.gidl:
2951 * tests/parser/Makefile.am:
2952 Move c:identifier from return-value to subchild type,
2953 as per Jürgs suggestion
2955 2008-04-28 Johan Dahlin <johan@gnome.org>
2957 * giscanner/girwriter.py:
2958 * tests/parser/Foo-expected.gir:
2959 Write property.type as a child node.
2961 2008-04-27 Johan Dahlin <johan@gnome.org>
2966 * gidl/gobject-2.0.gidl:
2968 * gir/gobject-2.0.gir:
2969 * tests/parser/Makefile.am:
2970 Replace the GObject gidl with a GObject gir.
2972 2008-04-27 Johan Dahlin <johan@gnome.org>
2974 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
2977 * giscanner/xmlwriter.py:
2978 * tests/parser/Foo-expected.gir:
2979 Include indentation in line length calculation
2981 2008-04-27 Johan Dahlin <johan@gnome.org>
2983 * giscanner/girparser.py:
2984 Prettify NS parsing using elementtree.
2986 2008-04-27 Johan Dahlin <johan@gnome.org>
2989 * giscanner/Makefile.am:
2990 * giscanner/girparser.py:
2991 * giscanner/glibtransformer.py:
2992 * tests/parser/Foo-expected.gidl:
2993 * tests/parser/Foo-expected.gir:
2994 * tests/parser/Makefile.am:
2995 * tests/parser/utility-expected.gidl:
2996 * tests/parser/utility-expected.gir:
2997 * tools/g-ir-scanner:
2998 Switch over to GIR as the default format. Add a simple GIDL
3000 Update tests and fix simplify makefiles by depending
3001 on GNU make extensions.
3003 2008-04-27 Johan Dahlin <johan@gnome.org>
3005 * giscanner/xmlwriter.py:
3006 Wrap attributes for lines which are wider than 79 characters
3008 * giscanner/scannerlexer.l:
3009 Allow parenthesis in annotations
3012 * giscanner/gidlwriter.py:
3013 * giscanner/girwriter.py:
3014 * giscanner/glibtransformer.py:
3015 * giscanner/transformer.py:
3016 Add initial sequence support, including annotation.
3017 Refactor type handling a bit.
3019 2008-04-27 Johan Dahlin <johan@gnome.org>
3021 * tests/parser/Foo-expected.gidl:
3022 * tests/parser/foo-object.h:
3023 * tests/parser/foo.c (foo_object_class_init),
3024 (foo_object_get_strings), (foo_object_get_objects):
3025 Add two new functions to check sequence return values.
3026 Also fixes a compilation warning.
3028 2008-04-27 Johan Dahlin <johan@gnome.org>
3030 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3031 a compilation warning.
3033 * tools/Makefile.am (g_ir_scanner_SOURCES):
3034 g-ir-scanner has no sources.
3036 2008-04-25 Johan Dahlin <johan@gnome.org>
3038 * giscanner/Makefile.am:
3040 * giscanner/gidlparser.py:
3041 * giscanner/gidlwriter.py:
3042 * giscanner/girwriter.py:
3043 * giscanner/glibast.py:
3044 * giscanner/glibtransformer.py:
3045 * giscanner/transformer.py:
3046 Split out nodes to ast.py and glibast.py
3048 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3050 * giscanner/Makefile.am:
3051 * giscanner/gidlparser.py:
3052 * giscanner/gidlwriter.py:
3053 * giscanner/girwriter.py:
3054 * giscanner/glibtransformer.py:
3055 * giscanner/gobjecttreebuilder.py:
3056 * giscanner/transformer.py:
3057 * giscanner/treebuilder.py:
3058 * tools/g-ir-scanner:
3059 Rename treebuilder to transformer and
3060 gobjectreebuilder to glibtransformer.
3062 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3064 * giscanner/Makefile.am:
3065 * giscanner/__init__.py:
3066 * giscanner/cgobject.py:
3067 * giscanner/gidlparser.py:
3068 * giscanner/gidlwriter.py:
3069 * giscanner/girwriter.py:
3070 * giscanner/gobjecttreebuilder.py:
3071 * giscanner/odict.py:
3072 * giscanner/sourcescanner.py:
3073 * giscanner/treebuilder.py:
3074 * giscanner/xmlwriter.py:
3075 * tools/Makefile.am:
3076 * tools/g-ir-scanner:
3077 Add LGPLv2 license header and install all python files
3079 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3082 * giscanner/gidlwriter.py:
3083 * giscanner/giscannermodule.c (pygi_source_directive_new),
3084 (directive_get_options), (pygi_source_symbol_new),
3085 (symbol_get_base_type), (pygi_source_type_new),
3086 (type_get_base_type), (type_get_child_list),
3087 (pygi_source_scanner_get_symbols),
3088 (pygi_source_scanner_get_directives):
3089 * giscanner/gobjecttreebuilder.py:
3090 * giscanner/sourcescanner.py:
3091 * giscanner/treebuilder.py:
3092 * tests/parser/foo-object.h:
3093 Add support for virtual methods.
3094 Pair struct FooClass with struct Foo.
3095 Clean up the SourceScanner bindings a bit.
3096 Add a testcase for virtual methods.
3098 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3100 * giscanner/cgobject.py:
3101 * giscanner/gidlwriter.py:
3102 * giscanner/gobjecttreebuilder.py:
3103 Add support for signals
3105 * tests/parser/foo.c (foo_object_class_init):
3106 * Foo-expected.gidl:
3107 Add a signal and update the expected output.
3109 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3111 * giscanner/gidlwriter.py:
3112 * giscanner/girwriter.py:
3113 * giscanner/giscannermodule.c (directive_get_name),
3114 (directive_get_value), (directive_get_options),
3115 (symbol_get_directives), (symbol_set_directives),
3116 (pygi_source_scanner_parse_file),
3117 (pygi_source_scanner_lex_filename),
3118 (pygi_source_scanner_get_directives), (init_giscanner):
3119 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3120 * giscanner/sourcescanner.h:
3121 * giscanner/sourcescanner.py:
3122 * giscanner/treebuilder.py:
3123 * tools/g-ir-scanner:
3124 Add support for source/header annotations.
3126 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3128 * giscanner/gidlwriter.py:
3129 * giscanner/girwriter.py:
3130 * giscanner/gobjecttreebuilder.py:
3131 * giscanner/treebuilder.py:
3132 Add support for Callbacks
3134 2008-04-22 Havoc Pennington <hp@pobox.com>
3136 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3137 not in metadata->module, look for it in the global module, in case
3138 some other object or the app itself provides the symbol.
3140 2008-04-22 Havoc Pennington <hp@pobox.com>
3142 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3143 dlopening a library that is already in the main app, by checking
3144 whether one of the lib's symbols is already loaded.
3146 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3148 * tests/parser/Foo-expected.gidl:
3149 * tests/parser/foo-object.h:
3152 2008-04-22 Havoc Pennington <hp@pobox.com>
3154 * girepository/ginfo.c (g_interface_info_find_method):
3155 Use interface_blob_size not object_blob_size to compute offset.
3157 2008-04-22 Havoc Pennington <hp@pobox.com>
3159 * girepository/gmetadata.c (_g_metadata_init): remove
3160 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3161 (Glade and Clutter for example) rely on being loaded globally.
3163 2008-04-22 Havoc Pennington <hp@pobox.com>
3165 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3166 function to get the GType given a RegisteredTypeInfo
3168 2008-04-22 Johan Dahlin <johan@gnome.org>
3170 * COPYING: Add a LGPL license, to prevent automake to
3171 put in a copy of GPL here. Pointed out by Havoc.
3173 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3174 (g_type_info_is_pointer), (g_type_info_get_tag),
3175 (g_type_info_get_param_type), (g_type_info_get_interface),
3176 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3177 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3178 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3179 (g_object_info_get_interface), (g_object_info_get_field),
3180 (g_interface_info_get_prerequisite),
3181 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3182 * girepository/ginvoke.c (get_ffi_type):
3183 * girepository/girepository.h:
3184 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3185 (g_metadata_check_sanity), (validate_header),
3186 (validate_array_type_blob), (validate_iface_type_blob),
3187 (validate_param_type_blob), (validate_error_type_blob),
3188 (validate_type_blob), (validate_constant_blob),
3189 (validate_struct_blob), (validate_enum_blob):
3190 * girepository/gmetadata.h:
3191 * tests/Makefile.am:
3192 * tests/invoke/Makefile.am:
3193 * tests/invoke/invoke.c (main):
3194 * tests/roundtrips.sh:
3195 * tools/Makefile.am:
3196 * tools/compiler.c (format_output), (write_out_metadata), (main):
3197 * tools/generate.c (write_type_name), (write_type_info),
3198 (write_constant_value), (write_enum_info), (load_metadata), (main):
3199 * tools/gidlcompilercontext.c:
3200 * tools/gidlcompilercontext.h:
3201 * tools/gidlcompilerentrynode.c:
3202 * tools/gidlcompilerentrynode.h:
3203 * tools/gidlcompilertypenode.c:
3204 * tools/gidlcompilertypenode.h:
3205 * tools/gidlmodule.c (g_idl_module_build_metadata):
3206 * tools/gidlmodule.h:
3207 * tools/gidlnode.c (init_stats), (dump_stats),
3208 (g_idl_node_get_size), (g_idl_node_get_full_size),
3209 (g_idl_node_cmp), (g_idl_node_can_have_member),
3210 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3211 (parse_int_value), (parse_uint_value), (parse_float_value),
3212 (parse_boolean_value), (find_entry_node), (find_entry),
3213 (serialize_type), (g_idl_node_build_metadata), (write_string):
3215 * tools/gidlparser.c (parse_type_internal):
3216 * tools/quote-file.sh:
3217 Revert revisions 157,149-148,136-129 and 120.
3218 Move back to using g-idl-generate to generate the metadata and
3219 avoids dependency on a c compiler.
3221 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3223 * giscanner/girwriter.py:
3224 * tools/g-ir-scanner:
3225 Add an initial GIR writer and a --format option to g-ir-scanner
3227 2008-04-21 Johan Dahlin <johan@gnome.org>
3229 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3230 gobject-2.0 and raise ImportError if not found.
3232 * giscanner/gidlparser.py:
3233 * giscanner/gidlwriter.py:
3234 * giscanner/gobjecttreebuilder.py:
3235 * tools/g-ir-scanner:
3236 Add a --include argument to include types from other idls.
3237 Add a minimalistic GIDL parser (just objects for now)
3238 Implement resolving of external type references and use it to
3239 resolve parent types, argument types and return types.
3241 2008-04-21 Johan Dahlin <johan@gnome.org>
3243 * giscanner/gidlwriter.py:
3244 * giscanner/gobjecttreebuilder.py:
3245 * giscanner/treebuilder.py:
3246 Add support for properties.
3247 Refactor Class/Interface support a bit, to share more code and
3248 always initialize their method attribute to an empty list.
3250 2008-04-21 Johan Dahlin <johan@gnome.org>
3252 * giscanner/cgobject.py:
3253 Add a workaround for a glib bug interface introspection bug
3254 (object_interface_list_properties, object_class_list_properties):
3255 Cast the return value to GParamSpec.
3257 * tests/parser/Foo-expected.gidl: Update
3258 * tests/parser/foo.c: Add a string property
3260 * giscanner/gobjecttreebuilder.py:
3261 After stripping namespaces, remove the original
3262 item to avoid duplication (GtkButton struct and Button object)
3264 2008-04-21 Johan Dahlin <johan@gnome.org>
3266 * giscanner/gobjecttreebuilder.py:
3267 * giscanner/treebuilder.py:
3268 Strip namespaces before objects, so we'll export
3269 GtkButton as Button in the gtk namespace
3271 2008-04-21 Johan Dahlin <johan@gnome.org>
3273 * giscanner/gidlwriter.py:
3274 * giscanner/gobjecttreebuilder.py:
3275 * giscanner/treebuilder.py:
3276 Add constructors for object/boxed types.
3278 2008-04-21 Johan Dahlin <johan@gnome.org>
3280 * giscanner/gidlwriter.py:
3281 * giscanner/gobjecttreebuilder.py:
3282 Add support for boxed types
3284 2008-04-21 Johan Dahlin <johan@gnome.org>
3286 * giscanner/giscannermodule.c: Mark structures as const,
3287 wrap SourceType.const_string.
3289 * tests/parser/foo-object.h: Add a couple of constants.
3291 * giscanner/gidlwriter.py:
3292 * giscanner/gobjecttreebuilder.py:
3293 * giscanner/treebuilder.py:
3294 Add basic support for interfaces
3296 * tools/g-ir-scanner:
3297 Add -o/--output for writing to a file
3299 2008-04-21 Havoc Pennington <hp@redhat.com>
3301 * TODO: add some C API wishlist items I could think of quickly
3303 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3305 * giscanner/gidlwriter.py:
3306 * giscanner/xmlwriter.py:
3307 Add a simple api for writing tags which can be used
3308 with the new 'with statement' in python 2.5
3310 2008-04-21 Johan Dahlin <johan@gnome.org>
3312 * giscanner/gobjecttreebuilder.py:
3313 Strip namespace and object prefix from method names.
3315 2008-04-21 Johan Dahlin <johan@gnome.org>
3317 * tools/g-ir-scanner (main): Add --pkg option to pass in
3318 pkg-config modules to get cflags from.
3320 * giscanner/gidlwriter.py (GIDLWriter._write_method):
3321 Avoid duplication, reuse function writer for methods.
3323 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
3325 * giscanner/gidlwriter.py:
3326 * giscanner/gobjecttreebuilder.py:
3327 * giscanner/treebuilder.py:
3328 * tools/g-ir-scanner:
3329 Resolve libtool .la files.
3330 Strip name spaces for methods.
3331 Add function symbols
3333 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
3335 * giscanner/cgobject.py:
3336 * giscanner/gidlwriter.py:
3337 * giscanner/gobjecttreebuilder.py:
3338 * giscanner/treebuilder.py:
3339 Add support for classes and methods
3341 2008-04-20 Johan Dahlin <johan@gnome.org>
3343 * giscanner/gidlwriter.py:
3344 * giscanner/gobjecttreebuilder.py:
3345 * giscanner/odict.py:
3346 Avoid conflicts, keep the output ordered similar to
3347 the order of the input.
3348 Add a simple ordered dictionary implemenation
3350 2008-04-19 Johan Dahlin <johan@gnome.org>
3352 * giscanner/cgobject.py:
3353 * giscanner/gidlwriter.py:
3354 * giscanner/gobjecttreebuilder.py:
3355 * tools/g-ir-scanner:
3356 Start introspecting get-type functions.
3357 Implement support for GLib/GFlags GTypes.
3358 Add a ctype based GObject binding.
3360 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
3362 * giscanner/gidlwriter.py:
3363 * giscanner/xmlwriter.py:
3364 * tools/g-ir-scanner:
3365 Add a simplistic gidl writer, which can't do too much.
3367 2008-04-18 Johan Dahlin <johan@gnome.org>
3369 * giscanner/sourcescanner.py:
3370 * giscanner/treebuilder.py:
3371 * tools/g-ir-scanner:
3372 split tree building and source scanning interface to separate files.
3374 2008-04-18 Johan Dahlin <johan@gnome.org>
3376 * tools/g-ir-scanner (Parameter.__init__): Start constructing
3378 - Add support for struct/parameter/return, start parsing of ctypes
3380 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
3383 2008-03-31 Johan Dahlin <johan@gnome.org>
3385 * tools/g-ir-scanner:
3386 Start to build abstract syntax node of scanned sources.
3387 Add support for cpp options.
3389 2008-03-27 Johan Dahlin <johan@gnome.org>
3391 * giscanner/giscannermodule.c:
3392 * giscanner/scannerlexer.l:
3393 * giscanner/sourcescanner.c:
3394 * tools/g-ir-scanner:
3396 Add simple pre-processor using subprocess and a PIPE.
3397 Change the parse_file apis to accept a file descriptor.
3399 2008-03-25 Johan Dahlin <johan@gnome.org>
3401 * giscanner/__init__.py:
3402 * tools/g-ir-scanner:
3403 Fix a typo and add an example python test program.
3405 2008-03-25 Johan Dahlin <johan@gnome.org>
3407 * giscanner/__init__.py:
3408 * giscanner/giscannermodule.c:
3409 * giscanner/sourcescanner.c:
3410 * giscanner/sourcescanner.h:
3411 Add constants and wrap a few more SymbolType fields
3413 2008-03-25 Johan Dahlin <johan@gnome.org>
3417 * giscanner/__init__.py:
3418 * giscanner/giscannermodule.c:
3419 * giscanner/Makefile.am:
3421 Add initial python bindings for the scanner and
3422 depend on python 2.5.
3424 2008-03-25 Johan Dahlin <johan@gnome.org>
3428 * giscanner/Makefile.am:
3429 * giscanner/sourcescanner.c:
3430 * giscanner/sourcescanner.h:
3431 * tools/Makefile.am:
3432 * tools/grealpath.h:
3433 * tools/sourcescanner.c:
3434 * tools/sourcescanner.h:
3436 Move the scanner to a separate library.
3438 2008-03-23 Johan Dahlin <johan@gnome.org>
3440 * tools/Makefile.am:
3443 * tools/scannerlexer.l:
3444 * tools/scannerparser.y:
3445 * tools/sourcescanner.c:
3446 * tools/sourcescanner.h:
3447 Split out the source scanner from the generator.
3448 Rename the symbols used in the scanner to use the gi_ prefix.
3449 This should make it possible to use the raw C parser from
3452 2008-03-23 Johan Dahlin <johan@gnome.org>
3454 * tests/parser/Makefile.am (utility.gidl):
3455 * tests/parser/utility-expected.gidl:
3456 Pass in the gobject.gidl since we're defining a GObject.
3458 2008-03-12 Johan Dahlin <johan@gnome.org>
3460 * relaxng/relaxng.rng:
3461 Add a releaxng in relaxng we can use to validate the relaxngs
3464 2008-03-12 Jürg Billeter <j@bitron.ch>
3466 * tools/scanner.c: (g_igenerator_new):
3467 * tools/scannerparser.y:
3468 Fix compiler warnings.
3470 2008-03-12 Jürg Billeter <j@bitron.ch>
3474 * tools/scannerparser.y:
3475 Start fixing memory management in g-idl-scanner.
3477 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
3479 * tools/gidlcompilercontext.c: (write_compiled):
3480 Fix critical warning when no shlib passed to g-idl-compiler.
3482 2008-03-12 Johan Dahlin <johan@gnome.org>
3484 * tests/parser/utility-expected.gidl:
3485 * tests/parser/utility.h:
3486 Add a get_type-function, so the scanner actually
3487 parses it as an object.
3489 2008-03-12 Johan Dahlin <johan@gnome.org>
3491 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
3494 * tests/parser/Foo-expected.gidl:
3495 * tests/parser/Makefile.am:
3496 * tests/parser/foo-object.h:
3497 * tests/parser/foo.c:
3498 * tests/parser/utility-expected.gidl:
3499 * tests/parser/utility.c:
3500 * tests/parser/utility.h:
3502 Add a new gidl test. 'utility.gidl', which is used to be able
3503 to test external type references. Add a reference to UtilityObject*
3506 2008-03-11 Johan Dahlin <johan@gnome.org>
3510 Remove most global variables
3512 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
3514 * tools/scannerlexer.l:
3516 * tests/parser/Foo-expected.gidl:
3517 * tests/parser/foo.c:
3518 * tests/parser/Makefile.am:
3519 * tests/parser/foo-object.h:
3521 Added a few extra tests. Which resulted in finding a few
3522 bugs. Which resulted in me fixing those bugs
3524 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
3526 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
3527 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
3528 Add some comments for strings into generated output for
3531 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
3533 * tools/gidlcompilercontext.c: (write_compiled):
3534 Write out the shlibs variable before writing out the strings
3535 length. Fixes compiler warning when using '-l' flag with
3538 2008-03-11 Johan Dahlin <johan@gnome.org>
3540 * tests/parser/Foo-expected.gidl:
3541 * tests/parser/foo-object.h:
3544 * tools/scannerlexer.l:
3545 Add support for parsing return arguments. Add support for
3546 caller-owns return types.
3547 Patch by Philip Van Hoof.
3549 * tools/scannerparser.y:
3550 Remove parsing of the @deprecated syntax used in headers.
3551 We will support gtk-doc deprecation in the future instead.
3553 2008-03-11 Johan Dahlin <johan@gnome.org>
3555 * tools/compiler.c (main): Coding style fixes
3557 2008-03-10 Johan Dahlin <johan@gnome.org>
3560 Add GCOV_LIBS to GILIBS
3562 2008-03-10 Johan Dahlin <johan@gnome.org>
3564 * tests/parser/Foo-expected.gidl:
3565 * tests/parser/foo.c:
3566 Rename null-ok to direction=out
3568 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
3570 reviewed and extensively tested by Johan
3572 * tests/parser/Foo-expected.gidl:
3573 * tests/parser/foo-object.h:
3574 * tests/parser/foo.c:
3577 * tools/gidlwriter.c:
3580 * tools/scannerlexer.l:
3581 * tools/scannerparser.y:
3583 Add support for scanning for gtk-doc comments inside
3584 C source files. Add tests
3586 2008-03-10 Johan Dahlin <johan@gnome.org>
3588 * tests/parser/Makefile.am:
3589 * tests/parser/foo.c:
3592 * tools/scannerparser.y:
3593 Add an api to lex filenames.
3594 Lex all source .c files passed in on the command line.
3595 Scan sources in a test and a couple of private structures
3596 which should not be included in the generated gidl
3598 2008-03-10 Johan Dahlin <johan@gnome.org>
3600 * tests/invoke/Makefile.am: Make the generated metadata
3601 depend on the g-idl-compiler
3603 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3605 * tools/gidlmodule.c
3606 * tools/gidlmodule.h
3609 Remove the old g-idl-compiler code.
3612 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
3614 * tools/quote-file.sh
3617 Move to using the 'C' struct compiler code.
3619 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3621 * girepository/ginfo.c
3623 Change the way that external references with no namespace
3624 are dealt with. External references with no namespace
3625 are placed into the XML as-if they are a local reference.
3626 This is temporary, but helps with roundtrip tests.
3628 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3630 * girepository/ginfo.c
3631 Add the ability to get the value of a constant of
3632 type TYPE_TAG_SYMBOL. In the case of a symbol the value
3633 is provided as a string.
3635 This would deal properly with:
3636 typedef char* random;
3637 const random = "A string";
3639 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3641 * girepository/ginfo.c
3642 * girepository/girepository.h
3644 Add a function to check if an enum is registered or not.
3645 Previously anything testing this relied on the g-type
3646 string offset having a value of 0.
3648 * girepository/gmetadata.c
3649 * girepository/gmetadata.h
3651 Remove unneccesary or erroneous checks. There were two
3652 metadata validation checks which made sure that the blob
3653 sizes were the same as some magic numbers compiled into the code.
3654 This is wrong as it breaks any forwards compatibility that may
3657 Checks were also present that made sure that unregistered type
3658 blobs had a value of 0 in the g-type offset field. This is
3659 unneccessary. If a type blob is unregistered then any value
3660 in its g-type field is simply invalid.
3662 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3664 * girepository/ginfo.c
3665 * girepository/gmetadata.c
3666 * girepository/gmetadata.h
3668 Change the metadata format to have a standard header
3669 for all the type blobs. Merge the SimpleTypeBlob
3670 and InterfaceTypeBlob into a union. A union of these
3671 two blobs existed previously but was not explicit
3672 in the metadata format.
3674 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3676 * tools/gidlcompilercontext.c
3677 * tools/gidlcompilercontext.h
3678 * tools/gidlcompilerentrynode.c
3679 * tools/gidlcompilerentrynode.h
3680 * tools/gidlcompilertypenode.c
3681 * tools/gidlcompilertypenode.h
3683 Add code to compile a tree of GIdlNodes to
3684 a 'C' struct representing the metadata.
3685 This is to aid cross-compiling. Previously
3686 the g-idl-compiler created a binary blob with
3687 data written in the byte order and alignment
3688 of the tool rather than the intended target.
3690 Cleaned up and improved by Johan and Robert :-)
3692 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3694 * girepository/ginvoke.c
3695 * girepository/girepository.h
3696 * girepository/gmetadata.c
3697 * girepository/gmetadata.h
3699 * tools/gidlparser.c
3700 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
3701 to avoid confusion with the interface blob.
3704 * tools/gidlparser.c
3705 Remove magic numbers and replace with type-tag
3706 enumeration symbols.
3708 * girepository/gmetadata.c
3709 Add validate declaration.
3711 2008-03-10 Jürg Billeter <j@bitron.ch>
3713 * tools/gidlparser.c: (parse_type_internal):
3714 * tools/scannerlexer.l:
3715 * tools/scannerparser.y:
3716 Support C99 _Bool type in scanner.
3718 2008-03-10 Jürg Billeter <j@bitron.ch>
3720 * tests/parser/Foo-expected.gidl:
3721 * tests/parser/foo-object.h:
3722 * tests/parser/foo.c: (foo_enum_method):
3723 * tools/scanner.c: (g_igenerator_process_function_symbol):
3724 Don't skip functions that are defined in the namespace of a type
3725 that doesn't support methods, as for example enums.
3727 2008-03-10 Johan Dahlin <johan@gnome.org>
3729 * gidl.dtd: Remove, we're using relaxng for now
3731 * tests/parser/Foo-expected.gidl:
3732 * tests/parser/foo-object.h:
3733 * tests/parser/foo.c:
3734 Rename the enum/flags get_type functions to include the whole type.
3736 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
3738 * tools/gidlwriter.c (enum_generate): added "type-name",
3739 "get-type" and "deprecated" missing arguments.
3740 * tests/parser/Foo-expected.gidl:
3741 * tests/parser/foo-object.h: test enum type, and no type.
3743 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
3746 Consistent checks, add missing 'test'
3748 2008-03-05 Havoc Pennington <hp@redhat.com>
3750 * configure.ac: Take advantage of a libffi.pc if one exists, as it
3751 does on Fedora 8. Make libffi a hard requirement, since it was in
3752 practice anyway (was not really conditional in the code or
3753 makefile, only in configure).
3755 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
3757 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
3758 reviewed by: Johan Dahlin <johan@gnome.org>
3760 * tests/Makefile.am:
3761 * tests/roundtrips.sh:
3762 Modify the roundtrips test so that they do not use the
3763 --raw option of the gidl compiler but instead compile a
3764 shared library to use with g_module.
3766 * tests/invoke/Makefile.am:
3767 * tests/invoke/invoke.c:
3768 Modify the invoke tests to build a shared library rather
3769 than use the --raw option.
3771 * tests/invoke/invoke-namespace-find.sh: Removed:
3772 Noone knows why this was here, so removed.
3774 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
3776 * tools/scanner.c: (g_igenerator_process_function_symbol):
3777 Move g_idl_node_can_have_member test later, as it broke spotting
3778 get_type's for nodes that can't have members.
3780 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3783 * tools/gidlnode.c: (g_idl_node_can_have_member):
3784 Add g_idl_node_can_have_member.
3786 * tools/scanner.c: (g_igenerator_process_function_symbol):
3787 Use g_idl_node_can_have_member to test if we should add a function
3788 as a member of the type node.
3790 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3792 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
3794 * tests/parser/Makefile.am:
3795 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
3797 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3799 * tools/scanner.c: (main):
3800 Ignore -pthread when passed to g-idl-scanner.
3802 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3804 * tools/grealpath.h: Added:
3805 * tools/scanner.c: (main):
3806 * tools/scannerlexer.l:
3807 * tools/Makefile.am:
3808 Always use absolute paths with symbolic links resolved when
3809 comparing filenames.
3811 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
3813 * gobject-introspection.pc.in:
3814 Provide variables for g-idl-parser, scanner and compiler in the
3817 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
3820 * girepository/Makefile.am:
3821 * tools/Makefile.am:
3822 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
3824 2008-02-10 Johan Dahlin <johan@gnome.org>
3826 * tests/parser/Foo-expected.gidl:
3827 * tests/parser/foo-object.h:
3828 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
3829 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
3832 2008-02-10 Johan Dahlin <johan@gnome.org>
3834 * tests/parser/Foo-expected.gidl:
3835 * tests/parser/foo-object.h:
3836 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
3837 Add enum and flags test.
3839 2008-02-10 Johan Dahlin <johan@gnome.org>
3843 * girepository/Makefile.am:
3844 Make 'make distcheck' work again.
3846 2008-02-10 Johan Dahlin <johan@gnome.org>
3848 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
3851 * tests/parser/Makefile.am: Only create Foo.gidl when running make
3852 check, eg exclude it from BUILT_SOURCES.
3854 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
3859 * girepository/Makefile.am:
3860 * m4/Makefile.am: Added:
3861 * m4/as-compiler-flag.m4: Added:
3862 * m4/gcov.m4: Added:
3863 * tools/Makefile.am:
3864 Add ability to generate a coverage report.
3865 Adds configure option --enable-gcov and make rule 'check-coverage'.
3867 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
3871 * gidl/Makefile.am: Added:
3872 * girepository/Makefile.am: Added:
3873 * src/Makefile.am: Renamed to tools/Makefile.am:
3874 * src/compiler.c: Renamed to tools/compiler.c:
3875 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
3876 * src/generate.c: Renamed to tools/generate.c:
3877 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
3878 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
3879 * src/gidlnode.c: Renamed to tools/gidlnode.c:
3880 * src/gidlnode.h: Renamed to tools/gidlnode.h:
3881 * src/gidlparser.c: Renamed to tools/gidlparser.c:
3882 * src/gidlparser.h: Renamed to tools/gidlparser.h:
3883 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
3884 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
3885 * src/ginfo.c: Renamed to girepository/ginfo.c:
3886 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
3887 * src/girepository.c: Renamed to girepository/girepository.c:
3888 * src/girepository.h: Renamed to girepository/girepository.h:
3889 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
3890 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
3891 * src/scanner.c: Renamed to tools/scanner.c:
3892 * src/scanner.h: Renamed to tools/scanner.h:
3893 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
3894 * src/scannerparser.y: Renamed to tools/scannerparser.y:
3895 * tests/invoke/Makefile.am:
3896 Split src/ into girepository/ and tools/
3900 * girepository/Makefile.am:
3901 * tests/Makefile.am:
3902 * tests/invoke/Makefile.am:
3903 * tests/parser/Makefile.am:
3904 * tests/roundtrips.sh:
3905 * tools/Makefile.am:
3906 Make distcheck work.
3908 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
3910 * tests/invoke/invoke.c: (main):
3911 * tests/invoke/testfns.c: (test6), (test7):
3912 * tests/invoke/testfns.xml:
3913 Add tests for invokation with a GList argument.
3914 Also tests caller-owns return values.
3916 2008-02-04 Rob Taylor <robtaylor@floopily.org>
3919 Add some documentation for GICallableInfo
3921 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
3924 Correct syntax errors in the DTD file.
3926 * relaxng/c-types.xml:
3927 * relaxng/g-types.xml:
3929 Add a RelaxNG specification for the GObject Introspection XML data.
3930 The Specification has validated all of the test files.
3932 2008-01-25 Rob Taylor <robtaylor@floopily.org>
3934 * tests/roundtrips.sh:
3935 * tests/struct.test:
3936 Add roundtrip tests for structs.
3938 2008-01-11 Johan Dahlin <johan@gnome.org>
3940 * src/scanner.c (g_igenerator_process_function_symbol):
3941 Refactor out g_idle_node_add_member.
3942 (create_node_from_gtype, create_node_from_ctype):
3943 Use case instead of if...else
3944 (get_type_from_type_id):
3945 Rename to create_node_from_gtype
3946 (get_type_from_ctype):
3947 Rename to create_node_from_ctype
3949 Rename ginode -> node, gitype -> type, gifunc -> func.
3951 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
3952 Two new functions, refactor out of scanner.c
3954 * src/scanner.c: (g_igenerator_process_function_symbol):
3955 * src/scannerlexer.l:
3956 Do not save the content of the deprecated variable, only
3959 2008-01-11 Johan Dahlin <johan@gnome.org>
3961 * tests/parser/foo-object.h: Add a couple of comment parser tests.
3963 2008-01-11 Jürg Billeter <j@bitron.ch>
3965 * src/scannerlexer.l:
3966 Fix GTK-Doc parsing.
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/scanner.c: (lookup_symbol):
3976 Return unresolved name if we find unknown symbol.
3978 2008-01-11 Jürg Billeter <j@bitron.ch>
3980 * src/scanner.c: (g_igenerator_generate):
3981 Initialize GObject to fix scanning interface properties.
3983 * tests/parser/Foo-expected.gidl:
3984 * tests/parser/foo-object.h:
3985 * tests/parser/foo.c: (foo_interface_get_type):
3986 Test interfaces with GObject prerequisite.
3988 * tests/parser/Makefile.am:
3989 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
3991 2007-12-27 Johan Dahlin <johan@gnome.org>
3993 * src/scannerlexer.l:
3994 Parse gtk-doc comments.
3996 * src/gidlwriter.c: (function_generate):
3997 Reorganize, avoid duplication and add support for
3998 writing deprecated functions.
4000 * src/scannerparser.y:
4002 Add new structure CDirective and functions to create/free them.
4004 * src/scanner.c: (g_igenerator_process_function_symbol),
4005 (g_igenerator_process_unregistered_struct_typedef),
4006 (g_igenerator_process_struct_typedef),
4007 (g_igenerator_process_union_typedef),
4008 (g_igenerator_process_enum_typedef),
4009 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4010 (g_igenerator_start_preprocessor):
4011 Parse @deprecated directive for functions.
4012 Remove some more C99isms.
4013 Send in -C to cpp to avoid stripping comments.
4015 * tests/parser/foo-object.h:
4016 * tests/parser/Foo-expected.gidl:
4017 Add deprecated directive
4019 2007-12-27 Johan Dahlin <johan@gnome.org>
4021 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4022 escape ' and " so it looks more like C.
4025 Unlink temporary file used.
4027 2007-12-27 Johan Dahlin <johan@gnome.org>
4029 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4030 (g_igenerator_start_preprocessor), (main):
4032 * src/scannerparser.y:
4033 Plug a couple of simple memory leaks.
4035 2007-12-27 Johan Dahlin <johan@gnome.org>
4037 * src/scanner.c: (g_igenerator_parse_macros),
4038 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4041 * src/scannerparser.y:
4042 * tests/parser/Makefile.am:
4044 Improve error reporting, return when the preprocessor fails.
4045 Add a verbose parameter, to aid debugging.
4046 Revert to using a temporary file to communicate between the
4047 preprocessor and the parser, because we need to wait for
4048 the exit code from the pre-processor before starting to parse.
4050 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4052 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4053 cparser.y to scannerparser.y
4055 2007-12-11 Johan Dahlin <johan@gnome.org>
4059 * src/scanner.c: (g_igenerator_new):
4061 Get rid of the global the_generator variable.
4063 2007-12-10 Johan Dahlin <johan@gnome.org>
4065 * src/scanner.c (main): Add an output option,
4066 add checks for required parameters
4069 set BUILD_SOURCES and CLEANFILES properly
4071 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4072 (g_writer_write_indent), (g_writer_write_unindent),
4073 (field_generate), (value_generate), (constant_generate),
4074 (property_generate), (function_generate), (vfunc_generate),
4075 (signal_generate), (interface_generate), (struct_generate),
4076 (union_generate), (boxed_generate), (enum_generate),
4077 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4079 * src/scanner.c: (g_igenerator_generate):
4081 * src/scannerwriter.c:
4083 Refactor scannerwriter to only be tied to a GIdlModule and move
4084 it (again!) to gidlwriter.c. Change the writer function to take
4087 2007-12-10 Johan Dahlin <johan@gnome.org>
4090 * src/scanner.c: (g_igenerator_generate):
4092 * src/scannerwriter.c: (g_igenerator_write_inline),
4093 (g_igenerator_write), (g_igenerator_write_indent),
4094 (g_igenerator_write_unindent), (field_generate), (value_generate),
4095 (constant_generate), (property_generate), (function_generate),
4096 (vfunc_generate), (signal_generate), (interface_generate),
4097 (struct_generate), (union_generate), (boxed_generate),
4098 (enum_generate), (node_generate), (module_generate),
4099 (g_scanner_write_file):
4101 Move the scanner gidl writing to a separate source file.
4103 2007-12-10 Johan Dahlin <johan@gnome.org>
4108 Move over all CType construction functions.
4110 * tests/parser/Makefile.am:
4111 Be verbose when printing parsing tests results.
4113 2007-12-10 Johan Dahlin <johan@gnome.org>
4115 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4116 preprocessor handling to here. Start cpp insteado of cc -E,
4117 always include -U__GNUC__, since it's specific to the preprocessor
4120 * tests/parser/Makefile.am (check-local): Silent diff and skip
4121 -U__GNUC__ which is always defined now
4123 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4125 reviewed by: <delete if not using a buddy>
4127 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4128 * tests/parser/Makefile.am:
4130 2007-12-09 Johan Dahlin <johan@gnome.org>
4133 Use GOption for command line options.
4134 (g_igenerator_new, main): Simplify constructor and they way
4135 parameters are passed into it.
4141 * src/gen-introspect.c:
4142 * src/gen-introspect.h:
4144 Rename gen-introspect.[ch] to scanner.[ch]
4146 2007-12-09 Johan Dahlin <johan@gnome.org>
4150 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4151 don't make the repository library and the other utilites link against
4154 * src/gen-introspect.c: (g_igenerator_create_object),
4155 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4156 (g_igenerator_create_enum), (g_igenerator_create_flags),
4157 (g_igenerator_process_module_symbol),
4158 (g_igenerator_process_module), (g_igenerator_generate), (main):
4159 * src/gen-introspect.h:
4160 Refactor g_igenerator_process_types into smaller pieces.
4162 * tests/parser/Makefile.am:
4163 Depend on the gen-introspect binary
4165 2007-12-09 Johan Dahlin <johan@gnome.org>
4167 * src/gen-introspect.c (g_igenerator_process_types):
4168 Break into smaller pieces, one for each generated node type.
4170 2007-12-08 Johan Dahlin <johan@gnome.org>
4172 * src/gen-introspect.c: (g_igenerator_process_types),
4173 (g_igenerator_add_module):
4174 * tests/parser/Foo-expected.gidl:
4175 * tests/parser/foo-object.h:
4176 * tests/parser/foo.c: (foo_subobject_class_init),
4177 (foo_subobject_init):
4179 Add a subobject test and make sure to register defined classes
4180 in the lookup symbol hash table.
4182 2007-12-08 Johan Dahlin <johan@gnome.org>
4186 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4187 (g_igenerator_process_types), (g_igenerator_add_module),
4188 (g_igenerator_add_include_idl), (main):
4189 * src/gen-introspect.h:
4190 * tests/parser/Makefile.am:
4191 * tests/parser/Foo-expected.gidl:
4193 Change the gen-introspect to generate namespaced module names,
4194 such as GLib.Object instead of GObject.
4195 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4196 add a --include-idl parameter to gen-introspect,
4197 and update the parser test.
4199 2007-12-08 Johan Dahlin <johan@gnome.org>
4201 * src/gen-introspect.c:
4202 Move main to the end of the file and attempt to make it valid
4205 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4206 we're not quite ready to generate metadata yet.
4211 Add a simple gen-introspect parser test
4213 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4215 reviewed by: Johan Dahlin <johan@gnome.org>
4218 * gobject-introspection.pc.in:
4220 * src/compiler.c: (format_output), (write_out_metadata), (main):
4221 * src/gen-introspect.c: (main):
4222 * src/gen-introspect.h:
4223 * src/generate.c: (write_callable_info), (write_repository),
4224 (load_metadata), (main):
4225 * src/gidlmodule.c: (g_idl_module_new),
4226 (g_idl_module_build_metadata):
4228 * src/gidlparser.c: (start_element_handler):
4229 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4230 (g_base_info_get_name), (g_base_info_get_namespace),
4231 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4232 (g_base_info_get_metadata), (g_function_info_get_symbol),
4233 (g_function_info_get_flags), (g_function_info_get_property),
4234 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4235 (g_callable_info_may_return_null),
4236 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4237 (g_callable_info_get_arg), (g_arg_info_get_direction),
4238 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4239 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4240 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4241 (g_type_info_get_tag), (g_type_info_get_param_type),
4242 (g_type_info_get_interface), (g_type_info_get_array_length),
4243 (g_type_info_is_zero_terminated),
4244 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4245 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4246 (g_value_info_get_value), (g_field_info_get_flags),
4247 (g_field_info_get_size), (g_field_info_get_offset),
4248 (g_registered_type_info_get_type_name),
4249 (g_registered_type_info_get_type_init),
4250 (g_struct_info_get_n_fields), (g_struct_info_get_field),
4251 (g_struct_info_get_n_methods), (g_struct_info_get_method),
4252 (find_method), (g_struct_info_find_method),
4253 (g_enum_info_get_n_values), (g_enum_info_get_value),
4254 (g_object_info_get_parent), (g_object_info_get_type_name),
4255 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
4256 (g_object_info_get_interface), (g_object_info_get_n_fields),
4257 (g_object_info_get_field), (g_object_info_get_n_properties),
4258 (g_object_info_get_property), (g_object_info_get_n_methods),
4259 (g_object_info_get_method), (g_object_info_find_method),
4260 (g_object_info_get_n_signals), (g_object_info_get_signal),
4261 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
4262 (g_object_info_get_n_constants), (g_object_info_get_constant),
4263 (g_interface_info_get_n_prerequisites),
4264 (g_interface_info_get_prerequisite),
4265 (g_interface_info_get_n_properties),
4266 (g_interface_info_get_property), (g_interface_info_get_n_methods),
4267 (g_interface_info_get_method), (g_interface_info_find_method),
4268 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
4269 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
4270 (g_interface_info_get_n_constants),
4271 (g_interface_info_get_constant), (g_property_info_get_flags),
4272 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
4273 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
4274 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
4275 (g_constant_info_get_value), (g_union_info_get_n_fields),
4276 (g_union_info_get_field), (g_union_info_get_n_methods),
4277 (g_union_info_get_method), (g_union_info_is_discriminated),
4278 (g_union_info_get_discriminator_offset),
4279 (g_union_info_get_discriminator):
4280 * src/ginvoke.c: (g_function_info_invoke):
4281 * src/girepository.c: (g_irepository_register),
4282 (g_irepository_unregister), (g_irepository_get_default),
4283 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
4284 (g_irepository_get_info), (g_irepository_find_by_name),
4285 (g_irepository_get_shared_library),
4286 (g_irepository_build_search_path), (g_irepository_register_file),
4287 (g_irepository_error_quark):
4288 * src/girepository.h:
4289 * src/gmetadata.c: (g_metadata_get_dir_entry),
4290 (g_metadata_check_sanity), (validate_header),
4291 (validate_array_type_blob), (validate_iface_type_blob),
4292 (validate_param_type_blob), (validate_error_type_blob),
4293 (validate_type_blob), (validate_arg_blob),
4294 (validate_signature_blob), (validate_function_blob),
4295 (validate_callback_blob), (validate_constant_blob),
4296 (validate_value_blob), (validate_field_blob),
4297 (validate_property_blob), (validate_signal_blob),
4298 (validate_vfunc_blob), (validate_struct_blob),
4299 (validate_enum_blob), (validate_object_blob),
4300 (validate_interface_blob), (validate_errordomain_blob),
4301 (validate_union_blob), (validate_blob), (validate_directory),
4302 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
4303 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
4304 (g_metadata_new_from_mapped_file), (g_metadata_free),
4305 (g_metadata_set_module), (g_metadata_get_namespace):
4307 * tests/Makefile.am:
4308 * tests/invoke/Makefile.am:
4309 * tests/invoke/invoke-namespace-find.sh:
4310 * tests/invoke/invoke.c: (main):
4312 Add a namespace/shared library mapping. fixes #313268.
4314 2007-12-03 Johan Dahlin <johan@gnome.org>
4316 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
4319 2007-11-30 Jürg Billeter <j@bitron.ch>
4325 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
4326 (g_igenerator_write_inline), (g_igenerator_write),
4327 (g_igenerator_write_indent), (g_igenerator_write_unindent),
4328 (field_generate), (value_generate), (constant_generate),
4329 (property_generate), (function_generate), (vfunc_generate),
4330 (signal_generate), (interface_generate), (struct_generate),
4331 (union_generate), (boxed_generate), (enum_generate),
4332 (node_generate), (module_generate), (get_type_from_type_id),
4333 (str_replace), (g_igenerator_process_properties),
4334 (g_igenerator_process_signals), (g_igenerator_process_types),
4335 (get_type_from_ctype), (g_igenerator_process_function_symbol),
4336 (g_igenerator_process_unregistered_struct_typedef),
4337 (g_igenerator_process_struct_typedef),
4338 (g_igenerator_process_union_typedef),
4339 (g_igenerator_process_enum_typedef),
4340 (g_igenerator_process_function_typedef),
4341 (g_igenerator_process_constant), (g_igenerator_process_symbols),
4342 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
4343 (g_igenerator_generate), (main), (csymbol_new),
4344 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
4345 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
4346 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
4347 (eat_hspace), (eat_line), (read_identifier),
4348 (g_igenerator_parse_macros):
4349 * src/gen-introspect.h:
4351 Import gen-introspect to generate introspection information by
4354 2007-11-30 Jürg Billeter <j@bitron.ch>
4356 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
4358 2007-11-30 Jürg Billeter <j@bitron.ch>
4360 * src/gidlparser.c: (end_element_handler): Don't leave requires
4363 2007-11-29 Johan Dahlin <johan@gnome.org>
4365 * src/gidlparser.c (parse_type_internal): Add char,
4366 gchar and guchar to the builtin types.
4368 2007-11-26 Johan Dahlin <johan@gnome.org>
4370 * src/ginfo.c: (g_object_info_get_type_name),
4371 (g_object_info_get_type_init):
4372 * src/girepository.c: (g_irepository_is_registered):
4373 * src/girepository.h:
4375 Add g_object_info_get_type_name, g_object_info_get_type_init and
4376 g_irepository_is_registered.
4378 2006-08-14 Jürg Billeter <j@bitron.ch>
4380 * src/gidlparser.c: (end_element_handler): Don't leave
4381 namespace and implements states too early.
4384 2007-11-26 Johan Dahlin <johan@gnome.org>
4386 * src/gmetadata.c (validate_struct_blob):
4387 pass blob_type to validate_function_blob instead of
4388 hard-coding BLOB_TYPE_STRUCT.
4390 Patch by Torsten Schoenfeld, fixes #314190
4392 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
4394 * src/compiler.c, src/generate.c, src/gidlnode.c,
4395 src/gidlparser.c, src/ginfo.c, src/girepository.c,
4396 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
4397 warnings about return values, signedness mismatches, unused
4398 variables, and unhandles enum values in switch statements.
4400 * tests/invoke/Makefile.am: Don't install the invoke test program.
4401 Add -I ../../src to the cflags used for the test functions files.
4403 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4405 * src/girepository.h: Export g_invoke_error_quark.
4407 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
4409 * src/ginvoke.c: Remove the fallback implementation of
4410 g_function_info_invoke since we now formally depend on libffi.
4412 2005-07-25 Matthias Clasen <mclasen@redhat.com>
4414 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
4415 Remove these files from cvs, as they are now generated.
4417 * src/gmetadata.c (validate_iface_type_blob): Don't
4418 complain if blob->pointer is not set, since that
4419 happens for enum and flag types. (#308935, Gustavo
4422 * Commit an autoconf-conversion patch by
4423 Gustavo Carneiro (#308708)
4425 2005-05-24 Matthias Clasen <mclasen@redhat.com>
4427 * src/compiler.c (main): Use it here to validate
4428 the generated metadata.
4430 * src/gmetadata.[hc]: Add code to validate a
4433 * metadata-format.txt: Updates
4435 2005-05-22 Matthias Clasen <mclasen@redhat.com>
4437 * tests/*: Add struct offsets to field and vfunc
4440 * src/generate.c (write_vfunc_info): Write offset
4441 information for vfuncs.
4443 * src/gidlnode.c (g_idl_node_build_metadata): Write
4444 the struct offsets into the metadata.
4446 * src/gidlparser.c: Parse the offset attributes of
4447 field and vfunc elements.
4449 * src/gidlnode.h: Add offset members to field and
4452 2005-05-21 Matthias Clasen <mclasen@redhat.com>
4456 * gidl.dtd: Updates.
4458 * src/g-idl-offsets.pl: A perl script which reads a .gidl
4459 file, creates, compiles and runs a C file, and folds the
4460 resulting struct offsets back into the .gidl file.
4462 2005-05-20 Matthias Clasen <mclasen@redhat.com>
4464 * src/gidlparser.c (start_field): Make fields in objects
4467 * src/gidlmodule.c: Include string.h
4472 * metadata-format.txt: Cleanup basic types.
4473 * src/*: Adapt to the changes.
4474 * tests/*: Adapt to the changes.
4475 * examples/gdk-pixbuf.gidl: Adapt to the changes.
4477 * src/gidlnode.c (g_idl_node_get_size): Report the correct
4478 size for enum blobs.
4479 (g_idl_node_get_full_size): Report the correct size for
4482 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
4483 error checking for blob sizes.
4485 2005-05-19 Matthias Clasen <mclasen@redhat.com>
4487 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
4488 interface types for which is_pointer is FALSE, e.g. enums.
4490 * src/gidlnode.c (g_idl_node_get_full_size)
4491 * src/gidlparser.c (parse_type_internal):
4492 * src/generate.c (write_type_info): Support unspecialized
4493 lists, hashtables and errors. Also emit a '*' after these.
4497 2005-05-17 Matthias Clasen <mclasen@redhat.com>
4501 * metadata-format.txt: Cleanups by Maciej Katafiasz.
4503 2005-05-15 Matthias Clasen <mclasen@redhat.com>
4505 * src/*.c: Change the directory to be addressed by
4506 1-based indexes, and use an index of zero to mean
4509 2005-05-15 Matthias Clasen <mclasen@redhat.com>
4511 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
4513 * tests/union.test: Add a union test.
4515 * src/generate.c: Handle unions.
4517 * src/girepository.h:
4518 * src/ginfo.c: Add GIUnionInfo and functions to access it.
4520 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
4522 * src/gidlparser.c (start_union): Parse <union> elements.
4524 * src/gidlnode.h: Add a GIdlNodeUnion.
4526 * gidl.dtd: Add a <union> element.
4528 * src/gmetadata.c (g_metadata_check_sanity): Check
4531 * src/gmetadata.h: Add union_blob_size to Header,
4534 * metadata-format.txt: Add a UnionBlob.
4536 2005-05-13 Matthias Clasen <mclasen@redhat.com>
4538 * tests/*: Update testcases.
4540 * src/generate.c (write_callable_info): Don't forget to
4541 write transfer and null-ok attributes for return types
4544 * src/girepository.h:
4545 * src/ginfo.c (g_callable_info_may_return_null):
4546 New function to find out if a function may return NULL.
4548 * src/compiler.c (format_output): Make the generated
4551 * README: Point to a recent libffi snapshot.
4553 * tests/invoke/*: Some invoke tests.
4555 * src/Makefile: Add ginvoke.c and the necessary
4558 * src/girepository.h (g_function_info_invoke): Add
4561 * src/ginvoke.c (g_function_info_invoke): Initial
4562 implementation of invoke functionality based on libffi.
4564 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
4565 strings and types hash tables in the right order when
4567 (find_entry_node): Free the name parts.
4569 2005-05-12 Johan Dahlin <johan@gnome.org>
4571 * src/generate.c: Generate consistent end tags.
4575 2005-05-12 Matthias Clasen <mclasen@redhat.com>
4579 * src/gidlparser.c (start_function): Actually add
4580 methods to objects. (Steven Walter)
4582 * src/girepository.h:
4583 * src/ginfo.c: Rename Transfer and Direction to
4584 GITransfer and GIDirection. (Torsten Schoenfeld)
4586 * tests/*: Make tests work with the changes in name
4589 * src/gidlnode.c (find_entry_node): Parse qualified
4590 names and generate xref nodes for them if needed. Don't
4591 require all modules to be loaded any more.
4593 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
4596 * src/ginfo.c (g_object_info_get_parent): Return NULL
4597 if blob->parent is 0. Still need to make sure index
4600 * src/generate.c: Generate qualified names when
4601 referring to non-local types. Emit transfer attribute
4604 * src/compiler.c (format_output): Put the function
4605 attributes where gcc accepts them.
4607 2005-05-11 Matthias Clasen <mclasen@redhat.com>
4609 * src/compiler.c (main): Add a --verbose cmdline option
4610 and only log messages if it is specified.
4613 * src/gidlnode.c (init_stats, dump_stats): Collect some
4614 statistics on string and type sharing.
4616 * src/gidlmodule.c (g_idl_module_build_metadata): Use
4617 g_message() instead of fprintf().
4619 * src/gidlnode.c (g_idl_node_free): Make this more robust.
4620 (g_idl_node_get_size): Implement for structs.
4621 (g_idl_node_get_full_size): Handle parent being NULL.
4622 (serialize_type): Handle lookup failures more gracefully.
4624 2005-05-10 Matthias Clasen <mclasen@redhat.com>
4626 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
4627 size calculation for 2-parameter types and for objects.
4629 * src/compiler.c: Add a cmdline option for debug output
4630 and install a log handler to implement it.
4631 * src/gidlnode.c: Add some debug spew.
4635 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
4636 forget to count the module name when calculating the
4637 required size for the metadata.
4640 * src/gidlparser.c: Fix compiler warnings.
4642 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4644 * src/compiler.c (main): Free the option context.
4646 * gidl.dtd: Clean up handling of names. All elements
4647 have a "name", only the elements corresponding to
4648 actual callable functions (function, method, constructor),
4649 have an additional "symbol" attribute holding the
4650 dlsym()-able function name.
4652 * src/generate.c: Adapt to generate xml matching the
4656 * src/gidlnode.c: Adapt to parse the new dtd.
4658 * tests/*.test: Adjust to the new dtd.
4660 * metadata-format.txt:
4661 * src/gmetadata.h: Remove the short_name field
4663 * src/gmetadata.c: Shrink size of ValueBlob to 12.
4664 * src/girepository.h:
4665 * src/ginfo.c (g_value_info_get_short_name): Removed
4667 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4669 * gidl.dtd: Allow constructors for boxed types,
4670 patch by Jonathan Blandford.
4673 2005-05-09 Matthias Clasen <mclasen@redhat.com>
4675 * --- Initial import ---