1 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
3 * giscanner/cachestore.py:
4 Catch ValueError exceptions.
6 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
8 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
10 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
12 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
13 instead of hard-coding struct sizes.
15 2008-11-18 Owen Taylor <otaylor@redhat.com>
17 Bug 561296 - Add "storage type" to the typelib data for enums
19 In order to set and get enum and flag fields in structures, we need
20 to know the integral type that the enumeration is stored as. We are already
21 computing that at compile time in order to compute struct offsets, so the
22 easiest thing to do is to save that in the typelib.
24 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
25 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
26 and compute and save it at compile time.
28 * girepository/girepository.h girepository/ginfo.c:
29 Add g_enum_info_get_storage_type().
31 * girepository/gfield.c: Implement reading and writing enum and flags fields
32 based on the storage type.
34 2008-11-18 Owen Taylor <otaylor@redhat.com>
36 Add enums to the Everything test module
38 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
39 test module and register them as GTypes.
41 https://bugzilla.gnome.org/show_bug.cgi?id=561296
43 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
45 * giscanner/cachestore.py:
46 Catch BadPickleGet exceptions as well.
48 2008-11-17 Owen Taylor <otaylor@redhat.com>
50 * tests/everything/everything.c: Fix doc comment annotations
51 for test_struct_b_clone() to refer to the right function.
53 2008-11-17 Dan Winship <danw@gnome.org>
55 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
56 spelling of GHashTable. #561135
58 * tests/scanner/annotation.c (annotation_object_get_hash):
59 * tests/scanner/annotation-1.0-expected.gir:
60 * tests/scanner/annotation-1.0-expected.tgir: add a test of
61 GHashTable annotations
63 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
65 * giscanner/ast.py: Change string array match type to be in terms
66 of canonicalized type.
67 * giscanner/transformer.py: Add canonicalize_ctype which gives us
68 a version of a c:type without aliases, so we can deep canonicalize
69 char** to utf8*. Update parse_ctype to use it.
70 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
72 2008-11-16 Colin Walters <walters@verbum.org>
74 * girepository/girepository.c: Ensure we always call init_globals,
75 even if passed a non-default repository.
77 2008-11-16 Colin Walters <walters@verbum.org>
79 Bug 559706 - Interface prerequisites
81 * common.mk: Dep on libgirepository.la for scanner libs so that
82 we rebuild things even if just gdump.c changes.
83 * girepository/gdump.c: Dump prerequisites.
84 * giscanner/ast.py: Add prerequisite list.
85 * giscanner/girparser.py: Parse them from gdump.
86 * giscanner/girwriter.py: Write them.
87 * giscanner/glibtransformer.py: Resolve them.
90 2008-11-16 Owen Taylor <otaylor@redhat.com>
92 Bug 561087 - Respect is_pointer in serialize_type()
94 Add a '*' to the serialization for the cases where we set is_pointer
95 in the type blob we write out depending on node->is_pointer. Don't
96 add the '*' in the cases where is_pointer is set or not set in a
99 http://bugzilla.gnome.org/show_bug.cgi?id=561087
101 2008-11-16 Owen Taylor <otaylor@redhat.com>
103 Bug 560825 – Add size and alignment to typelib
105 Include the size and alignment of structures and unions in the typelib,
106 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
108 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
109 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
110 to StructBlob and UnionBlob.
112 * girepository/ginfo.c girepository/girepository.h:
113 Add g_[struct|union]_get[size|alignment]().
115 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
117 2008-11-16 Owen Taylor <otaylor@redhat.com>
119 Bug 552371 – implement struct field get/set
121 * girepository/gfield.c girepository/girepository.h: Add
122 convenience functions g_field_info_set_field() and
123 g_field_info_get_field() to set and get fields based on the
124 offsets in GIFieldInfo.
126 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
128 Bug 560241 - Out-arguments should not be marked as being pointers
131 * girepository/girparser.c: Improved logic for out arguments.
133 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
135 Bug 559601 - Pointers in structs/unions unduly treated as arrays
137 * giscanner/transformer.py: Differentiate type creation logic
138 between parameters and struct components.
140 2008-11-15 Colin Walters <walters@verbum.org>
142 * giscanner/dumper.py: Check return code from pkg-config
145 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
147 * tests/everything/everything.c (test_array_int_in),
148 (test_array_gtype_in):
149 * tests/everything/everything.h:
150 Rename the int/gtype array tests. Make the return value
151 useful, an aggregation of the array input values.
153 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
155 * tests/everything/Makefile.am:
156 * tests/everything/everything.c:
157 * tests/everything/everything.h:
158 * tests/everything/gitesttypes.c:
159 * tests/everything/gitesttypes.h:
160 Rename gitesttypes.[ch] to everything.[ch]
162 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
164 Bug 560708 – Don't treat arrays that have a length specified as
165 zero-terminated by default
167 * giscanner/transformer.py: Default to non zero terminated for
169 * tests/*: Update, add test for zero vs not.
171 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
173 Bug 557788 - Return types for constructors in generated typelib bogus
175 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
176 obviously broken in the face of duplicate names in different
178 * tests/scanner/*expected.gir: Fix up.
180 2008-11-13 Owen Taylor <otaylor@redhat.com>
182 * girepository/girffi.c: Fix "Unexpected time for time_t"
185 2008-11-13 Colin Walters <walters@verbum.org>
187 Bug 558436 - avoid having scanner load app code
189 * giscanner/cgobject.py: Delete; we no longer load shared
191 * giscanner/dumper.py: Support for linking a library to
192 a stub binary for introspection.
193 * giscanner/glibtransformer.py: Rewrite to use gdump XML
194 from invocation of child binary.
195 * giscanner/transformer.py: Fix up to use fully qualified
196 name in parse tree. Make parse_ctype public so we can use
197 it inside glibtransformer.
198 * tests/scanner/barapp.c: New test, using --program arg
200 * tests/*: Update to use common.mk for invoking scanner.
201 * tools/g-ir-scanner: Add options --program, --program-arg,
203 * docs/g-ir-scanner.1: Update.
205 2008-11-13 Colin Walters <walters@verbum.org>
207 * configure.ac: Depend on Gio, we use it in gdump.c.
208 * girepository/gdump.c: Code to dump GType data to XML.
209 * girepository/girepository.c: Add option group for dumping.
210 * girepository/girepository.h: Define API for the above.
212 2008-11-13 Colin Walters <walters@verbum.org>
214 * common.mk: Add a file to include with Makefile fragments
215 useful for scanner invocation.
217 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
219 * tests/everything/gitesttypes.c (test_filename_return): Return
220 strings in filename encoding.
222 2008-11-13 Owen Taylor <otaylor@redhat.com>
224 Bug 560253 – Add structure and boxed types to Everything test module
226 * tests/everything/gitesttypes.[ch]: Add examples of:
228 Plain old data structs
229 Plain old data structs with nested fields
231 Plain old data boxed with nested fields
232 More complicated boxed types with internal state
234 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
236 * tests/everything/gitesttypes.c (test_gtype_in):
237 * tests/everything/gitesttypes.h:
238 Add a test of GType arrays, a la gtk_list_store_set_columns.
240 2008-11-12 Owen Taylor <otaylor@redhat.com>
242 Bug 560419 – Cache includes when parsing
244 Keep track of all modules parsed within a GIrParser, and when a
245 module is referenced a second time, use the existing parsed copy
246 instead of reparsing.
248 2008-11-12 Owen Taylor <otaylor@redhat.com>
250 Fix management of ParseContext.includes_modules (#560419)
252 * girepository/girparser.c: Fix some trivial bugs in managing the
253 list of include modules. (Add to module's list twice, not
254 initialized to NULL, not freed.)
256 2008-11-12 Owen Taylor <otaylor@redhat.com>
258 Keep aliases and disguised_structures local to each module (#560419)
260 * girepository/girmodule.[ch]: When parsing, keep keep a separate
261 hash tables of aliases and 'disguised' flags for each module, and
262 store that on the module.
264 After parsing an include merge the aliases/disguised flags to the
267 * girepository/girparser.c: Remove 'prefix_aliases' flag and
268 always prefix aliases/disguised structure types when parsing; this
269 simplifies the code considerably.
271 2008-11-12 Owen Taylor <otaylor@redhat.com>
273 Fix mismatches between .gir name and 'name' attribute (#560419)
275 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
276 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
277 where the 'name' element of <namespace/> didn't match the filename of the
278 gir, an assumption that the compiler has always expected and now enforces.
280 2008-11-12 Owen Taylor <otaylor@redhat.com>
282 Only allow one <namespace/> element per <repository/> (#560419)
284 * girepository/girparser.c: The logic in girparser.c didn't work
285 very well if there were multiple <namespace/> nodes within a
286 single <repository/> (context->namespace was always the overall
287 filename and not the the name specified in the <namespace/>
288 element for one thing; this would cause aliases to be mis-prefixed
289 in include modules.) Also check that the "name" in the
290 <namespace/> node matches the filename.
292 2008-11-12 Owen Taylor <otaylor@redhat.com>
294 Add a GirParser object to hold the state of a compilation
296 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
297 GirParser object to hold state that is global across a
298 compilation. Currently just holds the include path, but will
299 eventually also keep a cached list of parsed modules.
301 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
303 * girepository/girepository.c (find_namespace_latest): Fix
306 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
308 * configure.ac: use 'introspection' component for bugs
310 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
312 * tests/everything/gitesttypes.c (test_filename_return):
313 * tests/everything/gitesttypes.h:
314 Add a filename return test.
316 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
318 * tests/offsets/Makefile.am (gitestoffsets.c): fix
319 gen-gitestoffsets invocation with builddir != srcdir
321 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
323 * girepository/girepository.c:
324 Change the element type from utf8 to filename
325 * girepository/girnode.c (g_ir_node_build_typelib):
326 Special case filename equally to utf8 here.
328 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
331 Remove unused variables, add a dependency of girepository.ch, so when
332 they change we rebuild the gir automatically.
334 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
336 * girepository/girepository.c (g_irepository_get_search_path):
337 * girepository/girepository.h:
338 Add a g_irepository_get_search_path, so we can access the search
341 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
343 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
345 * girepository/girparser.c: avoid freeing an uninitialized pointer
347 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
350 * giscanner/glibtransformer.py:
351 * tools/g-ir-scanner:
352 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
353 so we can just pass in --library=foo/bar/baz.la and the scanner
354 does the right thing.
355 Don't warn for _get_type() functions if they don't take any
358 2008-11-11 Owen Taylor <otaylor@redhat.com>
360 Bug 560404 – Prefix types when resolving aliases in included modules
362 * girepository/girparser.c: When resolving aliases in an included
363 module, prefix types before looking them up.
365 2008-11-11 Owen Taylor <otaylor@redhat.com>
367 Compute field offsets and overall size for object structures
369 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
370 field of type object in structure"
372 Do basic computation of field offsets for objects and interfaces;
373 this doesn't attempt to address all of the "mess" for virtual
374 functions described in Bug 560281.
376 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
378 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
380 Based on patch by Johan Bilien.
382 * giscanner/transformer.py (_create_member, _create_parameter):
383 Resolve types here as well.
384 (_resolve_type_name_1): Try resolving using 'ctype' first since
385 it's least ambiguous. Fixes struct member type resolution with
386 similarly named types, e.g. Gdk.PangoRendererClass and
388 * tests/scanner/foo*: Add test.
390 2008-11-11 Owen Taylor <otaylor@redhat.com>
392 * girepository/girparser.c: Search provided include dirs before
393 the default directories.
395 2008-11-11 Owen Taylor <otaylor@redhat.com>
397 * girepository/giroffsets.c: Include fully-qualified names in
400 2008-11-11 Owen Taylor <otaylor@redhat.com>
402 * girepository/giroffsets.c: Fail gracefully with an informative
403 error message when recursion is encountered when computing a
406 2008-11-11 Owen Taylor <otaylor@redhat.com>
408 * girepository/girparser.c: Remove an unused variable.
410 2008-11-10 Owen Taylor <otaylor@redhat.com>
412 Add tests for field offset computations
414 * tests/offsets/offsets.h: Header file with structure definitions to test
416 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
417 field offsets for the structures in offsets.h two ways: using
418 the information from a generated typelib, and as computed by the
421 We diff these two versions to test that everything is OK.
423 2008-11-10 Owen Taylor <otaylor@redhat.com>
425 Remove field offsets from g-ir-generate output and test inputs
427 Field offsets are a) architecture dependent so they shouldn't be part
428 of the architecture-independent gir format which is installed in
429 datadir. b) Are architecture-dependent so they shouldn't be in test
432 * girepository/girparser.c: Don't parse offset for fields
433 * tools/generate.c: Don't parse offset for fields
434 * tests/*.gir test/scanner/*.tgir: Remove offsets
436 (Virtual function and discriminator offsets are not removed, as they
437 aren't fully hooked up to the field-offset computation machinery yet.)
439 2008-11-10 Owen Taylor <otaylor@redhat.com>
441 Bug 560252 - Compute field offsets before writing typelib
443 * girepository/girnode.h: Store the total size and alignment for
444 GIrNodeStruct/Boxed/Union.
446 * girepository/giroffset.c: New file implementing computation of
447 structure field offsets.
449 * girepository/girnode.c: Compute structure field offsets before
450 writing types into the typelib.
452 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
453 means "unknown". Also fix description of the discriminator_offset
456 2008-11-10 Owen Taylor <otaylor@redhat.com>
458 Bug 560250 - Fully parse included modules
460 For some things, like computing structure offsets to put into the typelib
461 we need more than just the aliases from included modules. Do a completel
462 parse of included modules and store in module->included_modules.
464 Also add g_ir_find_node() to find node information from within the
465 active set of modules and their includes.
467 2008-11-10 Owen Taylor <otaylor@redhat.com>
469 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
471 Extract a function to convert GITypeTag to ffi_type from the internals
472 of ginvoke.c. This will be useful in figure out structure alignment.
474 Also fix handling of gsize and time_t to be portable. (Add a check
475 to configure.ac to figure out the width of time_t.)
477 2008-11-10 Owen Taylor <otaylor@redhat.com>
479 Bug 560248 – "disguised structures"
481 Certain types like GIConv and GdkAtom are pointers internally but don't
482 look like pointers when referenced. They have the form.
484 typedef struct _X *X;
486 Parse these as structures/records but mark them in the gir with a 'disguised'
487 attribute so that we know that they need special handling.
489 In the typelib treat them like any other structure.
491 2008-11-09 Jürg Billeter <j@bitron.ch>
494 * giscanner/girwriter.py:
496 Write throws attribute for virtual functions, fixes bug 559703
498 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
500 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
501 up some confusion about the second argument to find_module, it's
502 actually the packages __path__ attribute which we can safely ignore
504 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
506 2008-11-07 Owen Taylor <otaylor@redhat.com>
508 Bug 559737 – Deal with continuations in macros
510 * giscanner/giscannerlexer.l: Treat continuation lines the same
511 as regular newlines. This makes the scanner not complain about
512 #define foo(x) \ <stuff> inside a C file. There's no attempt
513 however to handle parsing macro definitions split across lines.
515 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
517 * giscanner/cachestore.py:
518 Handle broken cache entries, write only filesystems and
519 running out of diskspace.
521 2008-11-07 Owen Taylor <otaylor@redhat.com>
523 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
524 Set current_filename before lexing the file so error messages
525 are reported in the right file.
527 2008-11-06 Colin Walters <walters@verbum.org>
529 * tests/everything/*: Add some tests for strv.
531 2008-11-05 Colin Walters <walters@verbum.org>
533 * girepository/ginvoke.c (g_function_info_invoke): Don't use
534 nested scope local variable for error which may go away after
535 conditional is complete.
537 2008-11-05 Colin Walters <walters@verbum.org>
539 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
540 manipulate hackily; just use GString. This avoids an
541 uninitialized memory read pointed out by Havoc.
543 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
545 * giscanner/__init__.py:
547 * giscanner/cachestore.py:
548 * giscanner/cgobject.py:
549 * giscanner/girparser.py:
550 * giscanner/girwriter.py:
551 * giscanner/giscannermodule.c:
552 * giscanner/glibast.py:
553 * giscanner/glibtransformer.py:
554 * giscanner/libtoolimporter.py:
555 * giscanner/minixpath.py:
556 * giscanner/odict.py:
557 * giscanner/sourcescanner.c:
558 * giscanner/sourcescanner.h:
559 * giscanner/sourcescanner.py:
560 * giscanner/transformer.py:
561 * giscanner/utils.py:
562 * giscanner/xmlwriter.py:
564 Relicense the giscanner library under LGPLv2+.
565 This has been approved by all contributors.
567 2008-11-01 Owen Taylor <otaylor@redhat.com>
569 Bug 558848 giparser.py: shared library should be optional
571 When parsing a .gir, allow the shared-library attribute
572 of <namespace/> to be missing: this corresponds to the handling
573 in libgirepository and elsewhere.
575 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
577 Bug 557898 – Fails to build on OSX 10.4
579 * configure.ac: Check for $shrext_cmds that should be implicitly
580 available if you're using libtool >= 2.0. If undefined, call
581 libtool --config explicitly to get its value.
582 * girepository/gtypelib.c: Remove special case for (non-)Darwin
585 2008-10-31 Colin Walters <walters@verbum.org>
587 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
589 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
591 * configure.ac: Post release version bump
594 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
598 * docs/release-checklist.txt:
601 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
603 * Makefile.am: add an upload-release target
604 * docs/release-checklist.txt:
605 Release process documentation
607 2008-10-31 Colin Walters <walters@verbum.org>
609 Bug 558109 – _g_typelib_init fails to find shared libraries
611 * transformer/glibtransformer.py: Use ctypes' find_library
612 on passed libraries and write that for the shared-library
613 entry. We want to avoid depending on -devel packages.
615 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
617 * docs/g-ir-scanner.1:
618 Document the renaming options.
620 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
622 * giscanner/Makefile.am:
623 * tests/invoke/Makefile.am:
624 * tests/repository/Makefile.am: List in-tree libraries first in
625 LDADD / LIBADD. If installed library is listed first, the
626 resulting binary will prefer installed version to one in .libs,
627 possibly making 'make check' behave strangely.
629 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
631 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
632 gir-repository from choking with gdk/quartz
634 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
636 * giscanner/giscannermodule.c (calc_attrs_length),
637 (pygi_collect_attributes):
638 * giscanner/xmlwriter.py:
639 Write a C version of the xml namespace formatter.
640 Saves 15% of the time it takes to create a gtk gir.
642 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
644 * giscanner/xmlwriter.py: Abstract attribute formatting
645 to a function external to the XMLWriter class.
647 * giscanner/scannerlexer.l:
648 Parse and discard __typeof and __attribute.
650 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
652 * giscanner/girparser.py:
653 Remove arguments from the constructor, move them to
654 separate accessors. Add a new parse_tree method
655 which takes an element tree instance.
656 * tools/g-ir-scanner:
657 Update callsite for this
659 * giscanner/Makefile.am:
660 * giscanner/cachestore.py:
661 * giscanner/transformer.py:
662 Cache the include parsing. Saves ~25% time when
663 creating vte (which includes everything up to gtk+).
665 2008-10-30 Colin Walters <walters@verbum.org>
667 * giscanner/transformer.py: Don't reparse includes
668 we've already processed.
670 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
672 * giscanner/girparser.py:
673 * giscanner/transformer.py:
674 Avoid parsing parameters, types etc when parsing
675 includes. Should speed up include parsing a bit.
677 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
679 * giscanner/girparser.py:
680 Avoid big if/else and use a dispatch table like
683 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
685 * giscanner/transformer.py:
686 Clean up include parsing and registration.
688 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
690 * giscanner/transformer.py:
693 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
695 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
698 construct PYTHONPATH just once
700 * tests/everything/Makefile.am:
701 * tests/scanner/Makefile.am:
702 add $(top_srcdir) to PYTHONPATH to
703 handle builddir != srcdir
705 * giscanner/libtoolimporter.py:
706 * giscanner/sourcescanner.py:
707 Make the libtoolimporter work when distchecking too.
709 Mostly based on patch by Tommi Komulainen
711 2008-10-29 Owen Taylor <otaylor@redhat.com>
713 * giscanner/glibtransformer.py: If a filename of an existing
714 file is passed to --library, hunt for it directly, rather than
715 searching for a corresponding library.
717 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
719 * giscanner/libtoolimporter.py:
720 * giscanner/sourcescanner.py:
721 Clean up the libtool importer a bit. Add a context so we
722 can use it through a with statement.
723 Don't just look in the current directory, look in the whole
726 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
728 Bug 558065 – gitesttypes should be installed
732 * tests/types/Makefile.am -> tests/everything/Makefile.am
733 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
734 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
735 move tests/types to tests/everything
737 * tests/everything/Makefile.am: build normal shared library
738 libgirepository-everything.so.1.0.0 and corresponding typelib
739 Everything-1.0.typelib
741 * tests/everything/Makefile.am: explicitly link libtool
742 versioning with typelib versioning with variables
744 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
746 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
748 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
750 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
753 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
755 Bug 558068 – when invoking a method, offset the in arguments by one,
758 * tests/invoke/invoke.c, tests/invoke/testfns.c,
759 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
760 * girepository/ginvoke.c: do not offset the index of given out
761 arguments by one for methods, "this" is provided as in argument only.
763 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
765 * gir/gio-2.0.c: add annotation for g_file_delete
767 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
769 Bug 558062 – provide and use paths in the .pc file
771 * gobject-introspection-1.0.pc.in: provide typelibdir variable
772 for where .typelibs should be installed (callers shouldn't need
773 to construct paths from bits and pieces)
775 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
777 Bug 557791 – g_irepository_require() could return a GTypelib *
779 * girepository/girepository.c: Return GTypelib; this is useful
780 for low level manipulation.
782 2008-10-25 Colin Walters <walters@verbum.org>
784 Bug 557788 – Return types for constructors in generated typelib bogus
786 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
787 rely on end pass resolution.
789 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
791 Bug 557786 - support fixed size arrays
793 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
794 * giscanner/scannerparser.y: Retain fixed array size.
795 * giscanner/ast.py: Add to note.
796 * giscanner/girwriter.py: Write to gir.
797 * girepository/girnode.c: Write it to typelib.
798 * tools/generate.c: Generate.
799 * tests/*: Add tests.
801 2008-10-25 Colin Walters <walters@verbum.org>
803 Bug 557076 - move typelibs to $libdir
805 * configure.ac: Steal some configury bits from dbus to expand
807 * gir/Makefile.am: Move to libdir.
808 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
809 instead just look at one hardcoded path in libdir.
810 * acinclude.m4: Bits from dbus.
812 2008-10-24 Johan Dahlin <johan@gnome.org>
814 * girepository/girnode.c (g_ir_node_check_unhandled_members):
815 Be quiet, do not warn about unhandled members.
817 2008-10-24 Johan Dahlin <johan@gnome.org>
819 * girepository/gtypelib.c:
820 Only use SHLIB_SUFFIX on darwin, otherwise use
821 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
823 2008-10-24 Lucas Rocha <lucasr@gnome.org>
825 Bug 557623 - Constructors shouldn't be flagged as methods.
827 * girepository/ginfo.c (g_function_info_get_flags): ditto.
829 2008-10-24 Johan Dahlin <johan@gnome.org>
831 * giscanner/scannerparser.y:
832 Check against division by zero for the modula operator.
833 This fixes header parsing of OSX system headers included
836 2008-10-24 Johan Dahlin <johan@gnome.org>
840 Add a CONTRIBUTORS file and dist it.
842 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
844 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
846 * girepository/girparser.c (parse_param_transfer):
847 * giscanner/transformer.py (_create_parameter, _create_return):
848 * giscanner/girwriter.py (_write_return, _write_parameter):
849 * tools/generate.c (write_callable_info): always write and
850 require "transfer-ownership" for return-values and parameters
853 * tests/invoke/testfns-1.0.gir:
855 * tests/scanner/DrawableAdditions.xml:
856 * tests/scanner/GtkFrob-1.0-expected.tgir:
857 * tests/scanner/annotation-1.0-expected.tgir:
858 * tests/scanner/drawable-1.0-expected.tgir:
859 * tests/scanner/drawable-injected-1.0-expected.gir:
860 * tests/scanner/drawable-injected-1.0-expected.tgir:
861 * tests/scanner/foo-1.0-expected.tgir: Updated
863 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
865 * giscanner/cgobject.py: build fundamental types same way as glib
867 * giscanner/glibtransformer.py (_type_from_gtype): record GType
868 when constructing the Type from it
870 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
871 the parameter is a GObject from its GType, if available.
873 * giscanner/glibtransformer.py (_adjust_transfer):
874 * tests/scanner/foo-1.0-expected.gir:
875 * tests/scanner/foo-1.0-expected.tgir: deduce
876 transfer-ownership from GTypes
878 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
880 * giscanner/transformer.py (_create_parameter):
881 * tests/scanner/foo-1.0-expected.gir: make varargs
882 transfer-ownership="none"
884 2008-10-23 Colin Walters <walters@verbum.org>
886 Bug 556739 - transfer ownership
888 * giscanner/ast.py: Refactor Parameter/Return to share
889 common attributes. Add transfer_inferred attribute
890 which says whether or not we made a guess.
891 * giscanner/transformer.py: Add much more extensive
892 heuristics around parameter and return transfer.
893 * giscanner/glibtransformer.py: Adjust to inspect
897 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
899 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
901 * tests/scanner/Makefile.am:
902 * tests/scanner/annotation-1.0-expected.tgir:
903 * tests/scanner/drawable-1.0-expected.tgir:
904 * tests/scanner/drawable-injected-1.0-expected.tgir:
905 * tests/scanner/foo-1.0-expected.tgir:
906 * tests/scanner/GtkFrob-1.0-expected.tgir:
907 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
908 annotations survive the roundtrip via typelib
910 The expectations are as currently produced by g-ir-generate,
911 comparison with the .gir files shows there are differences.
913 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
915 Bug 557468 – Support for GI_TYPELIB_PATH
917 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
918 provided paths to the global search path.
920 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
922 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
924 * tests/scanner/drawable-1.0-expected.tgir:
925 * tests/scanner/drawable-injected-1.0-expected.tgir:
926 * tests/scanner/foo-1.0-expected.tgir:
927 * tools/generate.c (write_object_info): write 'abstract'
928 attribute for classes
930 2008-10-22 Lucas Rocha <lucasr@gnome.org>
932 * girepository/girmodule.c, girepository/gtypelib.c,
933 girepository/girparser.[ch]: fix some build warnings.
935 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
937 Bug 557405 – Use 'allow-none' consistently
939 * docs/typelib-format.txt:
940 * girepository/ginfo.c (g_arg_info_may_be_null):
941 * girepository/girnode.c (g_ir_node_build_typelib):
942 * girepository/girnode.h (struct _GIrNodeParam):
943 * girepository/girparser.c (start_parameter):
944 * girepository/girwriter.c (function_generate):
945 * girepository/gtypelib.h (ArgBlob):
947 * tests/function.gir:
948 * tools/generate.c (write_callable_info): Use 'allow-none'
949 consistently throughout
951 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
953 Bug 557092 – Callback annotations not used
955 * giscanner/transformer.py (_create_callback): use annotations
957 * tests/scanner/annotation.h
958 * tests/scanner/annotation-1.0-expected.gir: add tests
960 2008-10-21 Colin Walters <walters@verbum.org>
962 * giscanner/scannerlexer.l: Don't require trailing whitespace after
963 uncommented parameters.
966 2008-10-21 Colin Walters <walters@verbum.org>
968 * girepository/girepository.c: Ensure that when doing an unversioned
969 require, we prefer items earlier in the search path to later ones.
971 2008-10-21 Owen Taylor <otaylor@redhat.com>
973 * giscanner/transformer.py: For string parameters allow transfer annotation
974 to override the standard automatic guessing based on 'const'.
976 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
978 Bug 557241 – "throws" flag for functions
980 * tests/scanner/drawable-1.0-expected.gir,
981 tests/scanner/drawable-injected-1.0-expected.gir,
982 tests/scanner/drawable.[ch]: add simple test for throwing
983 function (has GError ** as last argument)
985 * giscanner/ast.py: add a 'throws' flag to Function
986 * giscanner/glibtransformer.py: if a function's last paramerter is
987 a GError, set the 'throws' flag and remove that parameter
988 * giscanner/girwriter.py: write out the 'throws' attribute
989 * giscanner/girparser.py: support parsing the 'throws' attribute
991 * tests/repository/gitestthrows.c: add a simple test to check the
992 throws flag in a typelib and invoke the function
994 * girepository/ginfo.c, girepository/girnode.[ch],
995 girepository/girnode.h, girepository/girparser.c,
996 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
998 * girepository/ginvoke.c: if a function throws, add a GError as last
999 arguments, and propagate the error to the invoker.
1001 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1003 * giscanner/transformer.py (_create_parameters): Warn if we see
1004 annotations for unknown parameters. If .h and .c files name
1005 parameters differently, the annotations may be lost.
1007 2008-10-21 Johan Dahlin <johan@gnome.org>
1009 Bug 556358 - don't use libtool internals
1011 * giscanner/Makefile.am:
1012 * giscanner/libtoolimporter.py:
1013 * giscanner/sourcescanner.py:
1014 * giscanner/utils.py:
1015 Add a python meta importer and remove a libtool symlink hack.
1017 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1019 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1020 and --add-include-path appropriately when invoking the scanner.
1021 * tests/types/Makefile.am (%typelib): Likewise.
1023 2008-10-20 Colin Walters <walters@verbum.org>
1025 Bug 556777 - validate properties
1027 * giscanner/transformer.py: Add option to throw on unknown types.
1028 * giscanner/glibtransformer.py: Use it on properties.
1029 * tests/*: Add a test.
1031 2008-10-20 Colin Walters <walters@verbum.org>
1033 * giscanner/glibast.py: Also register g variants of
1034 default_array_types. This is not beautiful, but
1035 good alternatives aren't easy to come by.
1036 This fixes gchar ** parsing.
1038 2008-10-20 Colin Walters <walters@verbum.org>
1040 * docs/typelib-format.txt, girepository/gtypelib.h:
1041 Take a bit from ObjectInfo to represent abstract flag.
1042 * giscanner/cgobject.py: Expose g_type_get_flags.
1043 * girepository/girepository.h: Add accessor.
1044 * girepository/ginfo.c: Implement it.
1045 * giscanner/ast.py: Add is_abstract flag to generic
1047 * giscanner/glibast.py: Use it.
1048 * giscanner/girwriter.py: Write it.
1049 * girepository/girparser.c: Parse it.
1052 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1054 * giscanner/girparser.py (_parse_function): don't lose
1055 'transfer-ownership' attributes when injecting, check for the
1058 2008-10-19 Johan Dahlin <johan@gnome.org>
1060 * giscanner/scannerlexer.l: Parse and ignore __asm.
1062 2008-10-19 Colin Walters <walters@verbum.org>
1064 * giscanner/girparser.py: Parse array length= to ensure
1065 it doesn't get lost from --inject.
1067 2008-10-17 Colin Walters <walters@verbum.org>
1069 Bug 556795 - char ** regression
1071 * giscanner/transformer.py: Fix parsing of ctypes, add some
1072 comments about what's going on.
1073 * tests/*: Add a test for char **.
1075 2008-10-17 Colin Walters <walters@verbum.org>
1077 Bug 556783 - change namespace handling to be more consistent
1079 * giscanner/transformer.py: Eliminate usage of
1080 strip_namespace_object. We now treat --namespace as the default
1081 --strip-prefix; however, if --strip-prefix is specified it
1082 overrides --namespace. This applies to everything except function
1083 names, where we do also strip the namespace.
1084 * giscanner/glibtransformer.py: Remove usage of
1085 strip_namespace_object.
1087 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1088 --namespace and --strip-prefix.
1090 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1092 Bug 556732 – generate gir files consistently
1094 * girepository/girparser.c (start_parameter):
1096 * tests/invoke/testfns-1.0.gir:
1097 * tools/generate.c (write_callable_info): write
1098 'transfer-ownership' attribute consistently with both
1099 return-value and parameter elements
1101 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1103 Bug 556732 – generate gir files consistently
1105 * tools/generate.c (write_callable_info): write 'direction'
1106 attribute only if other than 'in' to be consistent with
1109 * tests/object.gir: remove direction="in" which is the default
1111 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1113 Bug 556732 – generate gir files consistently
1115 * giscanner/ast.py (Field): add readable and writable properties
1116 * giscanner/girparser.py (_parse_field): copy 'readable' and
1117 'writable' attributes
1118 * giscanner/transformer.py (_create_member): create fields as
1120 * giscanner/glibtransformer.py (_introspect_object,
1121 _pair_class_struct): make object instance and class fields
1123 * giscanner/girwriter.py (_write_field):
1124 * tools/generate.c (write_field_info): write field 'readable'
1125 and 'writable' attributes only if non-default (read-only)
1126 * girepository/girparser.c (start_field): in the absence of
1127 attributes assume fields are read-only
1129 * tests/struct.gir: remove redundant readable="1" from fields
1130 * tests/scanner/foo-1.0-expected.gir:
1131 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1132 all record and union fields
1134 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1136 Bug 556732 – generate gir files consistently
1138 * giscanner/girwriter.py (_write_property): write properties
1139 'construct' attribute if set
1140 * tools/generate.c (write_property_info): write properties
1141 'readable' and 'writable' attributes only if non-default
1142 * tests/object.gir: add writable="0"
1143 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1145 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1147 * gir/glib-2.0.c: added annotations
1149 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1151 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1154 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1156 Bug 556610 – giscanner/girparser.py drops parameter options
1158 * tests/scanner/drawable-injected-1.0-expected.gir,
1159 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1160 * giscanner/ast.py: allow Parameter to take options in the constructor
1161 * giscanner/girparser.py: parse parameter options (transfer,
1162 direction, allow-none)
1164 2008-10-16 Colin Walters <walters@verbum.org>
1166 Bug 556185 - segfault on g_callable_info_get_return_type
1168 Initial patch from John Ehresman.
1170 * tests/repository/*: Add a test using
1171 g_callable_info_get_return_type. Instead of casting a
1172 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1173 to call g_type_info_get_interface.
1175 2008-10-16 Colin Walters <walters@verbum.org>
1177 Bug 556579 - union and struct name misresolved
1179 * giscanner/transformer.py: The calls to _resolve_type_name
1180 for struct/union names was a legacy holdover from when type
1181 resolution had multiple phases. Now it's actively harmful
1182 since we might pull in an identical name from another
1186 2008-10-16 Colin Walters <walters@verbum.org>
1188 Bug 556432 - transfer annotations and defaults
1190 * giscanner/transformer.py: Canonicalize type
1191 after removing *, not before. This ensures that
1192 guchar* is transformed to 'uint8'.
1193 Add some comments here.
1194 * giscanner/glibtransformer.py: Add _adjust_transfer
1195 phase for tweaking GObject transfers.
1198 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1200 * configure.ac: enable bunch of gcc warning CFLAGS
1202 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1204 Bug 556543 – reduce compiler warnings
1206 * girepository/ginfo.c:
1207 * girepository/girepository.c (register_internal,
1208 count_interfaces, find_interface, find_namespace_version,
1209 parse_version, g_irepository_require):
1210 * girepository/girmodule.c (g_ir_module_build_typelib):
1211 * girepository/girnode.c (init_stats, dump_stats,
1212 _g_irnode_init_stats, _g_irnode_dump_stats,
1213 g_ir_node_can_have_member):
1214 * girepository/girparser.c (firstpass_end_element_handler,
1215 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1216 start_alias, start_type, end_type_top, parse_include, cleanup,
1218 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1219 * giscanner/giscannermodule.c (directive_get_options,
1220 type_get_child_list):
1221 * giscanner/scannerlexer.l (parse_gtkdoc):
1222 * giscanner/scannerparser.y (ctype_free):
1223 * giscanner/sourcescanner.c:
1224 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1225 * tests/types/gitesttypes.c:
1226 * tools/compiler.c (main):
1227 * tools/generate.c (write_repository): Remove unused variables
1228 and code, add missing includes, declarations and case
1231 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1233 Bug 556541 – access union members through UnionBlob rather than
1236 * girepository/ginfo.c (g_union_info_find_method): access union
1237 members through UnionBlob rather than StructBlob
1239 2008-10-15 Colin Walters <walters@verbum.org>
1241 Bug 556331 - clean up includes handling
1243 * tools/g-ir-scanner: Rework command line arguments; now we take
1244 --add-include-path and --include separately.
1245 * giscanner/girwriter.py: Separate name= and version= in include
1247 * giscanner/ast.py: Add Include type.
1248 * giscanner/transformer.py: Cleanups to register_include now that
1249 we don't need to handle mixed filenames and relative arguments.
1250 * girepository/girparser.c: Parse name and version separately;
1251 this fixes a bug as a side effect where we weren't resolving
1252 through aliases for basic types.
1253 * girepository/girepository.c: Fix format string args.
1254 * gir/Makefile.am: Update.
1257 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1259 Bug 556434 – unhandled interface/object/... member types
1261 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1262 g_ir_node_build_typelib): Check all
1263 interface/object/boxed/struct/union members are processed and
1264 abort if they are not. (Mostly callbacks in structs, but also
1265 fields in interfaces.)
1267 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1269 * a/girepository/girnode.c (g_ir_node_build_members,
1270 g_ir_node_build_typelib): refactor common code for processing
1271 members to a function
1273 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1275 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1276 transformation is lossless (it's not)
1278 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1280 * tests/Makefile.am: fix tests to compare xml to xml instead of
1281 typelib to xml, and stop on error
1283 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1285 * tools/generate.c (write_type_name, write_type_info,
1286 write_type_info, write_object_info, write_object_info,
1287 write_interface_info, write_error_domain_info): reduce code
1290 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1292 Bug 556174 – parse types for lists etc.
1294 * girepository/girparser.c (end_type_recurse):
1296 * tools/generate.c (write_type_info, write_field_info,
1297 write_callable_info, write_callable_info, write_constant_info,
1298 write_property_info): use nested <type>s for lists and hashes
1300 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1303 * tests/object.gir: remove trailing whitespace from inside
1304 elements to match g-ir-generate output
1306 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1308 * tools/generate.c (xml_printf): quote printf arguments so that
1309 we don't generate invalid XML by writing unescaped double quotes
1310 and such in attributes
1312 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1314 * tools/generate.c (write_field_info, write_callable_info,
1315 write_function_info, write_callback_info, write_struct_info,
1316 write_constant_value, write_signal_info, write_vfunc_info,
1317 write_object_info, write_interface_info, write_union_info,
1318 write_repository): remove unused indent parameters, xmlwriter
1319 keeps track of necessary indentation
1321 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1323 * tools/generate.c (xml_element_new, xml_element_free,
1324 xml_start_element, xml_end_element, xml_end_element_unchecked,
1325 xml_open, xml_close): Keep track of generated XML tree and
1326 handle indentation and closing tags properly.
1327 (write_field_info, write_callable_info, write_function_info,
1328 write_callback_info, write_struct_info, write_value_info,
1329 write_constant_info, write_enum_info, write_signal_info,
1330 write_vfunc_info, write_property_info, write_object_info,
1331 write_interface_info, write_error_domain_info, write_union_info,
1332 write_repository): Use xml_start_element and xml_end_element to
1335 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1337 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1338 (write_type_name, write_type_info, write_field_info,
1339 write_callable_info, write_function_info, write_callback_info,
1340 write_struct_info, write_value_info, write_constant_value,
1341 write_constant_info, write_enum_info, write_signal_info,
1342 write_vfunc_info, write_property_info, write_object_info,
1343 write_interface_info, write_error_domain_info, write_union_info,
1344 write_repository): wrap all FILE access to go through simple xmlwriter
1346 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1348 Bug 556400 – Fails to build on OS X 10.4
1350 * configure.ac: check for functions backtrace and backtrace_symbols
1351 * girepository/girparser.c (backtrace_stderr): Comment out
1352 implementation if the functions are not available.
1353 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1354 directory for better portability
1356 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1358 Bug 556433 – assume direction = out for int * parameters
1360 * giscanner/ast.py: define a list of types for which, if passed as
1361 reference, we assume a default direction of 'out'
1362 * giscanner/transformer.py: if a type has type pointer to one of the
1363 previously defined types, and no direction is set, assume out.
1364 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1366 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1368 * tests/scanner/annotation.c: fixed a few copy-paste errors
1370 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1372 Bug 556323 – transfer-ownership is wrong for functions returning const
1375 * giscanner/transformer.py: check for a const string as return value,
1376 not just const char*. Suggested by Colin Walters
1377 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1379 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1381 * girepository/ginfo.c, girepository/girepository.h: add
1382 g_union_info_find_method
1384 2008-10-14 Colin Walters <walters@verbum.org>
1386 * tests/repository/Makefile.am: Reenable repo test.
1387 * tests/repository/gitestrepo.c: Prepend search
1388 path for $(top_builddir)/gir dir so that we don't
1389 require installation for "make check" to pass.
1391 2008-10-13 Jürg Billeter <j@bitron.ch>
1393 * giscanner/glibtransformer.py:
1394 * tests/scanner/annotation-1.0-expected.gir:
1395 * tests/scanner/drawable-1.0-expected.gir:
1396 * tests/scanner/foo-1.0-expected.gir:
1397 * tests/scanner/utility-1.0-expected.gir:
1399 Support fields in GObject structs
1401 2008-10-13 Jürg Billeter <j@bitron.ch>
1403 * giscanner/ast.py: add signed integer and off_t to type_names
1405 2008-10-12 Jürg Billeter <j@bitron.ch>
1407 * giscanner/girparser.py: Parse bits attribute of fields
1409 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1411 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1412 * tests/repository/gitestrepo.c (main): instantiate
1413 'GCancellable' to ensure the GType is registered before using
1416 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1418 * giscanner/girparser.py: actually add the parsed constant nodes
1420 2008-10-12 Colin Walters <walters@verbum.org>
1422 * girepository/girepository.c: Don't cast DirEntry to Blob,
1423 actually look it up by offset.
1425 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1427 * giscanner/girparser.py: parse constant nodes in gir files
1429 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1431 * giscanner/transformer.py: prefix for constants have an underscore,
1432 so remove them as if they were functions, not objects.
1434 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1436 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1439 2008-10-12 Colin Walters <walters@verbum.org>
1441 Initial patch from Jani Monoses.
1443 * girepository/gtypelib.c: Fix inverted test for success
1446 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1448 * tools/generate.c (write_callable_info): use "transfer-ownership"
1449 attribute for return values
1451 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1453 * tools/generate.c (write_callable_info): move "transfer" and
1454 "null-ok" attributes from <function> to <return-value> element
1456 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1458 * girepository/girparser.c (start_return_value): handle
1459 "transfer-ownership" attribute
1461 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1463 * girepository/girparser.c (parse_param_transfer):
1464 * tools/generate.c (write_callable_info): use "container" for
1465 container/shallow ownership transfer (not "shallow")
1467 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1469 * girepository/girparser.c (parse_param_transfer,
1470 start_parameter): Refactor handling of transfer=none/shallow/full
1471 to separate function
1473 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1475 Bug 556048 – Crash in g_irepository_find_by_gtype
1477 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1478 * girepository/girepository.c (find_interface): Fix
1479 find_by_gtype case to get the type name from right offset
1481 2008-10-12 Jürg Billeter <j@bitron.ch>
1483 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1486 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1488 * girepository/gtypelib.h (RegisteredTypeBlob): make
1489 'unregistered' one bit wide as everywhere else
1491 2008-10-12 Jürg Billeter <j@bitron.ch>
1493 * giscanner/glibtransformer.py:
1494 * tests/scanner/annotation-1.0-expected.gir:
1495 * tests/scanner/drawable-1.0-expected.gir:
1496 * tests/scanner/drawable.h:
1497 * tests/scanner/foo-1.0-expected.gir:
1498 * tests/scanner/utility-1.0-expected.gir:
1500 Readd class records as workaround to not break Gtk typelib
1502 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1504 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1506 2008-10-12 Jürg Billeter <j@bitron.ch>
1508 * giscanner/glibtransformer.py: Don't generate <record> elements
1510 * tests/scanner/*: Update test cases
1512 2008-10-11 Colin Walters <walters@verbum.org>
1514 Bug 552858: versioning
1516 This is a big patch. You should probably remove your installation
1519 * docs/typelib-format.txt: Add nsversion entry which holds
1520 version of namespace.
1521 * girepository/girepository.h: Add 'version' parameter to
1522 g_irepository_require. This may be NULL. Normally
1523 bindings should pass an explicit version though.
1524 * girepository/girepository.c: Lots of infrastructure to
1525 support versioning. Add some more documentation. Disallow
1526 some usage of NULL namespaces.
1527 * girepository/girmodule.c: Add version parameter.
1528 * girepository/gtypelib.c: Update header size.
1529 * giscanner/ast.py: Add version to Namespace.
1530 * giscanner/girparser.py: Parse version attribute from
1531 XML, pass to Namespace.
1532 * giscanner/girwriter.py: Write out version parameter.
1533 * giscanner/transformer.py: Clean up include registration.
1534 * tests/*: Add version attribute.
1535 * tests/invoke/invoke.c: Don't try looking up test before
1536 it's loaded in repository.
1537 * tools/generate.c: Output version parameter.
1538 * gir/Makefile.am: Add 2.0 version to .gir files.
1540 2008-10-11 Colin Walters <walters@verbum.org>
1542 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1543 if we have mismatched parens.
1545 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1547 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1548 on 'members' variable.
1550 2008-10-11 Colin Walters <walters@verbum.org>
1552 Bug 555947 - update annotations syntax
1554 * giscanner/ast.py: Default to None for transfer. Remove
1555 default transfers for container types; we require this to
1557 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1558 'full' to match repository.
1559 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1560 * giscanner/transformer.py: Update for new annotations syntax.
1563 2008-10-11 Johan Bilien <jobi@litl.com>
1565 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1567 2008-10-11 Johan Bilien <jobi@litl.com>
1569 Bug 552347: Parse #defines constants
1571 * girepository/gtypelib.c: update the list of value_size
1572 with recently defined type tags
1573 * giscanner/scannerparser.y: brought back parsing of #defined, as
1574 present in older version
1575 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1576 * giscanner/girwriter.py: write out constant tags in the gir
1577 * giscanner/sourcescanner.py: add accessor for const_string
1578 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1581 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1583 Bug 555946: Install a test module exercising all types, transfer
1588 * tests/types/*: Add and install a test module that has functions
1589 accepting and returning most of the basic types to enable bindings
1590 implementors to more easily test their type conversion routines.
1592 2008-10-11 Jürg Billeter <j@bitron.ch>
1594 Bug 552374: Const strings should be identified in the gir.
1596 * giscanner/transformer.py: support string memory management
1597 * tests/scanner/foo.h: use char * and const char *
1598 * tests/scanner/foo-expected.gir: test that
1600 2008-10-11 Johan Dahlin <johan@gnome.org>
1602 * giscanner/girparser.py:
1603 Also parse enums which are not glib types.
1605 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1607 Bug 552370: add one more test for unsigned as a type, not as
1610 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1611 * test/scanner/foo.h: add function which uses unsigned as a type.
1612 * test/scanner/foo-expected.gir: test that.
1614 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1616 Bug 555712: Struct and union issues
1618 * giscanner/scannerparser.y (struct_declarator): Use information
1619 provided about the bit width of a field.
1620 * giscanner/transformer.py (Transformer._create_member): Pass the
1621 symbol's const_int member to the created field (it represents the
1623 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1624 field attribute, if present.
1625 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1626 width in bits of the field (only relevant for bitfields).
1629 * giscanner/transformer.py (Transformer._create_typedef_struct)
1630 (Transformer._create_typedef_union): Add calls to _create_struct()
1631 and _create_union(), respectively. This causes the scanner to
1632 generate output for fields of struct and union typedefs.
1635 2008-10-11 Jürg Billeter <j@bitron.ch>
1637 Bug 552370: unsigned not scanned properly
1639 * giscanner/scannerparser.y: combine basic types such as unsigned
1640 int and long long when scanning
1641 * tests/scanner/foo-expected.gir:
1642 * tests/scanner/foo.c: (foo_test_unsigned):
1643 * tests/scanner/foo.h: test that
1645 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1647 Bug 554854: The --typelib-xml and --inject options should reuse
1648 giscanner parser/writer.
1650 * giscanner/ast.py: add constructor list to Struct and Union.
1651 Add new param in Return's contructor to define transfer.
1652 * giscanner/girparser.py: several additions to the parser in order
1653 to have parsing all nodes of the gir xml files.
1654 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1655 and writer in --inject and --typelib-xml options.
1656 * giscanner/xmlwriter.py: ignore empty attributes instead of
1657 raising an error as this basically exposes a bug in GIRParser.
1658 This should be reverted as soon as the parser is fixed.
1660 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1662 Bug 552376: scanner generates wrong names for enum members when
1663 there's no defined gtype.
1665 * giscanner/utils.py (strip_common_prefix): Always strip common
1666 prefix exactly up to the last "_", and not beyond.
1667 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1668 here is that the first character after the last '_' should should be
1669 the same as the character in the same position on the type name.
1670 * tests/scanner/foo-expected.gir: test that
1672 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1674 Bug 555293: append library_paths to LPATH env variable to work
1675 around a bug in find_library when using ldconfig.
1677 * tools/g-ir-scanner (main): ditto.
1679 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1681 * girepository/girepository.c (register_internal): fix regression on
1682 invoke test case by making sure we load the global module in the
1683 typelib when dealing with inline typelibs.
1684 * girepository/gtypelib.c: a couple of coding style fixes.
1686 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1688 Bug 555294: Add support for multiple shared libraries per typelib.
1690 * girepository/ginvoke.c (g_function_info_invoke),
1691 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1692 g_typelib_symbol instead of g_module_symbol.
1693 * girepository/girepository.h: remove g_typelib_set_module and add
1695 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1696 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1697 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1698 modules instead of just one. The symbol lookup is now abstracted
1699 behind g_typelib_symbol which tries to find the passed symbol name in
1701 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1702 and write shared_library attribute as a comma-separated list of libs.
1704 2008-10-06 Colin Walters <walters@verbum.org>
1706 * giscanner/transformer.py: Parse length= annotation as
1707 a parameter name, not a raw int.
1710 2008-10-03 Colin Walters <walters@verbum.org>
1712 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1714 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1716 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1720 2008-10-03 Colin Walters <walters@verbum.org>
1722 Bug 554576: scan problem with ev_selection_render_selection()
1724 * giscanner/transformer.py: Only do type resolution once we've
1725 scanned all types. What could happen before is that we'd strip
1726 the namespace from local type "EvSelection" => Selection, and
1727 then later pull a "Selection" from some other namespace because
1728 we hadn't yet seen the local EvSelection. This could come
1729 down to hash table ordering and other things so not easy
1730 to write a test for.
1732 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1734 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1735 GLibEnumMember constructor as it should be the enum member nick.
1737 2008-10-02 Colin Walters <walters@verbum.org>
1739 Bug 552961: remove this parameter for methods
1741 * giscanner/glibtransformer.py: Delete this parameter; it is
1743 * girepository/ginvoke.c: Insert this parameter for methods.
1744 * girepository/gtypelib.c: Remove no longer needed verification of
1745 method this parameter.
1748 2008-09-30 Dan Winship <danw@gnome.org>
1750 Bug 554490: g-ir-scanner gets confused by '\\'
1752 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1753 backslashes so it will correctly parse '\\' and "\\"
1755 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1758 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1760 2008-10-02 Colin Walters <walters@verbum.org>
1762 bug 552393: Note variadic functions
1764 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1765 to use parameter_list directly.
1766 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1767 * giscanner/ast.py: Add Varargs type.
1768 * giscanner/transformer.py: Check for ellipsis symbol, transform
1770 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1771 Parse varargs functions, but filter them out before we start
1772 compiling the typelib.
1774 2008-10-02 Colin Walters <walters@verbum.org>
1776 Bug 554632: type tag for GType
1778 * girepository/girepository.h, girepository/girepository.c:
1779 Add type tag for GType - it's a special type we don't want
1780 to resolve to just "long".
1781 * docs/typelib-format.txt: Update.
1782 * girepository/girparser.c: Parse it.
1783 * giscanner/glibtransformer.py: Ensure we don't put GType in
1785 * tools/generate.c: Remove hardcoded type list.
1788 2008-09-30 Dan Winship <danw@gnome.org>
1790 Bug 554521: scanner generates wrong names for enum members with
1791 full type name prefix
1793 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1794 right amount when the entire "first" string is a prefix of
1797 * tests/scanner/foo.h (FooEnumFullname):
1798 * tests/scanner/foo-expected.gir: test that
1800 2008-09-29 Colin Walters <walters@verbum.org>
1802 Bug 552380: Array parameters should be marked in the gir
1804 * giscanner/ast.py: Default char** to utf8[], and guchar* to
1805 uint8[]. Add Array, List, and Map subclasses of Type;
1806 these types can be generic. Return transfer defaults
1807 to true if return value is string or container type.
1808 Delete Sequence type.
1809 * giscanner/scannerlexer.l: Syntax change for annotations;
1810 use <> since it's more readable.
1811 * giscanner/girwriter.py: Write out these changes.
1812 * giscanner/girparser.py: Parse them.
1813 * giscanner/transformer.py: Have a defined set of
1814 both list and map types. When creating a type,
1815 check if the ctype we've parsed is one of them,
1816 if so create a container type subclass as appropriate.
1817 * girepository/girparser.c: Parse in generic types.
1820 2008-09-27 Colin Walters <walters@verbum.org>
1822 * tools/g-ir-scanner: Add --inject option.
1824 2008-09-25 Colin Walters <walters@verbum.org>
1826 Remove non-repository types from GIR
1828 * giscanner/ast.py: The canonical name is 'utf8', not
1830 * giscanner/glibast.py: A few more glib type mappings.
1831 * girepository/girparser.c: We only parse repository types.
1832 * tests/*.gir: Update.
1834 2008-09-23 Colin Walters <walters@verbum.org>
1836 Bug 552566: Add time_t type
1838 We need a type for time_t since it's special in C, and just
1839 mapping it to long precluded bindings from handling it
1842 2008-09-19 Colin Walters <walters@verbum.org>
1844 Bug 552390: Handle capitialization like "DBus" more robustly
1846 The to_underscores function was designed for use against prefixed
1847 names; we need a separate function which will convert names like
1848 DBusFoo into dbus_foo, not d_bus_foo.
1850 2008-09-19 Colin Walters <walters@verbum.org>
1852 Add check to make sure we're not hitting out unresolved types
1854 Validate the "this" argument for methods
1856 Remove heuristic matching of methods to classes based on prefix
1858 It was a broken hack that dated from when we handled underscoring
1859 and capitalization conventions less well.
1861 2008-09-18 Colin Walters <walters@verbum.org>
1863 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
1865 On Darwin, the suffix for installed shared libraries (.dylib) is
1866 different from loadable modules (.so). We use a bit of magic shell
1867 script from Behdad Esfahbod to figure out the right suffix.
1869 2008-09-15 Johan Dahlin <johan@gnome.org>
1871 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
1872 a wrapper for type_qualifier as well.
1874 2008-09-15 Colin Walters <walters@verbum.org>
1876 http://bugzilla.gnome.org/show_bug.cgi?id=552065
1878 * giscanner/ast.py: Add deprecation attributes.
1879 * giscanner/girwriter.py: Write out deprecation data.
1880 * girepository/girparser.c: Relax parsing; deprecated
1881 attribute now includes freeform string.
1882 * giscanner/scannerlexer.l: Parse Deprecated.
1883 * giscanner/transformer.py: Look for deprecated attribute
1885 * tests/scanner/*: Add a Deprecated test.
1887 2008-09-14 Tor Lillqvist <tml@novell.com>
1889 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
1891 2008-09-14 Colin Walters <walters@verbum.org>
1893 * giscanner/glibtransformer.py: Ignore functions with
1896 2008-09-12 Colin Walters <walters@verbum.org>
1898 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
1900 2008-09-12 Colin Walters <walters@verbum.org>
1902 * giscanner/ast.py: Bind pid_t to INT for vte.
1904 2008-09-12 Colin Walters <walters@verbum.org>
1906 * giscanner/girparser.py: Parse c:type for boxed records/unions.
1907 * giscanner/glibast.py: Avoid overwriting ctype.
1908 * giscsanner/transformer.py: Try resolving types using the GType names.
1910 2008-09-12 Colin Walters <walters@verbum.org>
1912 * giscanner/minixpath.py: Code to run an "XPath"
1913 assertion against an XML tree, taken from
1914 gir-repository/gir/tests.py.
1915 * giscanner/Makefile.am: Ship it.
1916 * tools/g-ir-scanner: Add --xpath-assertions option.
1917 * gir/GLib-assertions.txt: Add a few assertions.
1918 * gir/Makefile.am: Run them.
1920 2008-09-11 Colin Walters <walters@verbum.org>
1922 http://bugzilla.gnome.org/show_bug.cgi?id=551737
1924 * giscanner/transformer.py: Fix strip_namespace_func to only strip
1925 prefix if it ends with _. Tweak callback stripping to determine
1926 based on presence of _ whether we need to use strip_namespace_func
1927 or strip_namespace_object.
1929 2008-09-09 Owen Taylor <otaylor@redhat.com>
1931 * docs/typelib-format.txt: Wether => Whether
1933 2008-09-08 Colin Walters <walters@verbum.org>
1935 * girepository/girparser.c: Default to "readable" for properties.
1936 * giscanner/ast.py: Add readable, writable etc.
1937 * giscanner/girwriter.py: Writ them.
1938 * giscanner/glibtransformer.py: Inspect them.
1941 2008-09-07 Colin Walters <walters@verbum.org>
1943 * giscanner/cgobject.py: Add comment.
1945 2008-09-07 Colin Walters <walters@verbum.org>
1947 * giscanner/cgobject.py: Also call g_thread_init.
1949 2008-09-07 Colin Walters <walters@verbum.org>
1951 * giscanner/transformer.py: Fix regression by not
1952 stripping prefix before stripping namespace for unions
1955 2008-09-06 Colin Walters <walters@verbum.org>
1957 * giscanner/transformer.py: If a namespace contains
1958 multiple caps, try stripping both gnomekeyring_ and
1961 2008-09-07 Johan Dahlin <johan@gnome.org>
1963 Bug 551162 – giscanner does not recognize asm and __asm__
1964 * giscanner/scannerlexer.l:
1965 Patch by Jani Monoses.
1967 2008-09-06 Colin Walters <walters@verbum.org>
1969 * girepository/girnode.c: Allow gtype_name
1970 and gtype_init in struct and union.
1971 * girepository/girparser.c: Parse glib:
1972 boxed bits for both structure and union.
1973 * girepository/gtypelib.c: Don't barf
1974 if structure is boxed.
1975 * giscanner/girparser.py: Parse new XML
1977 * giscanner/girwriter.py: Write out new
1979 * giscanner/glibast.py: Define new classes
1980 which are both Boxed and Struct/Union, as
1981 well as an "Other" for everything else.
1982 * giscanner/glibtransformer.py: Handle
1983 boxed types specially; we try to merge
1984 them with a struct/union if one exists,
1985 otherwise fall back to generic boxed.
1987 * tools/generate.c: Write out new format.
1989 2008-09-06 Johan Dahlin <johan@gnome.org>
1991 * giscanner/grealpath.h: Include stdlib.h
1993 * docs/g-ir-generate.1: Remove leading %
1995 2008-09-01 Colin Walters <walters@verbum.org>
1997 * girepository/girparser.c: Look at c:type to determine
1998 whether or not an item is a pointer.
2000 2008-09-01 Johan Dahlin <johan@gnome.org>
2002 * tests/scanner/Makefile.am:
2003 Set PYTHONPATH so the scanner can run
2004 even if you didn't install anything.
2006 2008-09-01 Johan Dahlin <johan@gnome.org>
2009 Post-release version bump
2012 2008-09-01 Johan Dahlin <johan@gnome.org>
2016 2008-08-31 Colin Walters <walters@verbum.org>
2018 * giscanner/glibtransformer.py: Quiet info
2021 2008-08-31 Johan Dahlin <johan@gnome.org>
2024 Bump version to 0.5.0
2026 2008-08-31 Colin Walters <walters@verbum.org>
2028 * giscanner/glibtransformer.py: Follow aliases to ensure
2029 we don't get a constructor returning a basic type.
2030 * giscanner/transformer.py: Add function to follow aliases.
2033 2008-08-31 Johan Dahlin <johan@gnome.org>
2035 * giscanner/scannerlexer.l:
2036 * giscanner/scannerparser.y:
2037 * giscanner/sourcescanner.h:
2038 * giscanner/sourcescanner.py:
2039 Parse GCC extensions in the parser instead of just undeffing them
2040 in the pre-processor.
2042 2008-08-31 Johan Dahlin <johan@gnome.org>
2044 * giscanner/glibtransformer.py:
2045 Clean up a huge if. Do not add methods or constructors
2047 * giscanner/utils.py:
2048 second might be longer than first, check that.
2050 2008-08-31 Johan Dahlin <johan@gnome.org>
2055 2008-08-31 Colin Walters <walters@verbum.org>
2057 * girepository/girparser.c: Don't lose if we
2060 2008-08-31 Colin Walters <walters@verbum.org>
2062 * giscanner/glibtransformer.py: Look for libtool
2063 library in current directory
2064 * tests/scanner - Update.
2066 2008-08-30 Colin Walters <walters@verbum.org>
2068 * docs/typelib-format.txt: Add a guint32
2070 * gir/Makefile.am: Dep on Makefile
2071 * girepository/ginfo.c:
2072 * girepository/girepository.c: Clean up
2073 default typelib handling; remove global
2074 default_typelib variable. Ensure we handle
2075 NULL repository in more places.
2076 Support dependency resolution.
2077 Support lazy loading.
2078 * girepository/girepository.h: Remove
2079 g_irepository_unregister; we don't support
2080 unloading typelibs since really they're
2081 process-global. Update for lazy loading
2083 * girepository/girmodule.c: Use g_new0.
2084 Add dependencies to GirModule.
2085 * girepository/girparser.c: Parse dependencies.
2086 * girepository/gtypelib.c: Add 4 bytes for
2088 * tests/Makefile.am: Kill off gobject.gir,
2089 it conflicts with the real one.
2090 * tests/object.gir: Dep on GObject.
2091 * tools/generate.c: Take --includedir
2092 argument to say which directories to search
2093 for typelibs. Print out dependencies.
2095 2008-08-30 Colin Walters <walters@verbum.org>
2097 * giscanner/glibtransformer.py: Reduce warning noise.
2099 2008-08-29 Colin Walters <walters@verbum.org>
2101 * girepository/ginfo.c: Add some assertions regarding
2102 refcounts, just to be sure.
2103 * giscanner/glibtransformer.py: Blacklist a few more
2106 2008-08-29 Colin Walters <walters@verbum.org>
2108 * giscanner/glibtransformer.py: Blacklist a few
2109 functions that use GError oddly
2111 2008-08-29 Colin Walters <walters@verbum.org>
2113 * girepository/gtypelib.c: Don't crash if no
2116 2008-08-29 Colin Walters <walters@verbum.org>
2118 * girepository/girparser.c: Handle chains of aliases
2119 across modules by ensuring we fully qualify aliases
2122 2008-08-29 Colin Walters <walters@verbum.org>
2124 * girepository/girparser.c: Don't search aliases
2127 2008-08-29 Colin Walters <walters@verbum.org>
2129 * girepository/girparser.c: Rewrite type parsing
2130 to handle both GLib parsing case as well as correctly
2131 handling GLib.List and friends. Don't try to treat
2132 e.g. ListStore as a List.
2134 2008-08-29 Colin Walters <walters@verbum.org>
2136 * girepository/gtypelib.c: Add more context
2139 2008-08-29 Colin Walters <walters@verbum.org>
2141 * giscanner/glibtransformer.py: Add some informative
2142 logging messages in corner cases. Be sure we use
2143 the most recent node set instead of a cache
2144 when generating result set.
2145 * tests/: Remove duplicated bits in expected girs
2146 * girepository/girparser.c: Accept both List (for
2147 compiling GLib) and GLib.List (what the scanner
2150 * tools/generate.c: Generate canonical form.
2152 2008-08-29 Johan Dahlin <johan@gnome.org>
2154 * giscanner/config.py.in:
2155 Use datarootdir instead of datadir to avoid
2156 an autoconf warning.
2158 2008-08-29 Johan Dahlin <johan@gnome.org>
2162 * examples/gdk-pixbuf.gidl:
2164 Update and remove old cruft.
2166 2008-08-29 Johan Dahlin <johan@gnome.org>
2169 * docs/g-ir-compiler.1:
2170 * docs/g-ir-generate.1:
2171 * docs/g-ir-scanner.1:
2172 Add man pages for the generator and compiler.
2174 2008-08-29 Johan Dahlin <johan@gnome.org>
2176 * docs/g-ir-scanner.1: Document
2178 * giscanner/Makefile.am:
2179 * giscanner/gidlparser.py:
2180 * giscanner/gidlwriter.py:
2181 * tools/g-ir-scanner:
2182 Remove gidl support.
2184 2008-08-28 Colin Walters <walters@verbum.org>
2186 * tests/scanner/Makefile.am: Pass the right
2187 --includedir args. Add a Makefile dep.
2188 * tools/compiler.c: Pass includedirs down.
2189 * girepository/girparser.c: Actually put
2190 includedirs in context, pass down. Fix
2193 2008-08-28 Colin Walters <walters@verbum.org>
2195 * gir/Makefile.am: Use --includedir
2196 * girepository/girparser.c: Recursively parse
2197 includes to pull in aliases and expand them.
2198 We need this to avoid putting unknown names in
2200 * tools/compiler.c: Add --includedir option.
2201 * giscanner/ast.py: Map size/ssize to types
2204 2008-08-28 Tor Lillqvist <tml@novell.com>
2206 Make check now runs successfully on Windows.
2208 * tools/compiler.c (write_out_typelib): Use binary mode for output
2211 * girepository/girnode.c: Don't print NULL strings.
2213 * tests/invoke/Makefile.am
2214 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2215 convince libtool to build shared libraries.
2217 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2218 g_assert() instead of printing out expected errors.
2220 2008-08-28 Tor Lillqvist <tml@novell.com>
2222 * girepository/gtypelib.h: Change type of bitfield fields from
2223 guint to the most suitable smaller type. This makes the struct
2224 sizes match the ones on Linux that the sanity check expects when
2225 using gcc -mms-bitfields on Windows.
2227 2008-08-28 Johan Dahlin <johan@gnome.org>
2232 * giscanner/Makefile.am:
2233 * tests/Makefile.am:
2234 * tests/scanner/Makefile.am:
2235 Make distcheck pass.
2237 2008-08-27 Johan Dahlin <johan@gnome.org>
2239 * giscanner/Makefile.am:
2240 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2242 2008-08-27 Tor Lillqvist <tml@novell.com>
2244 Make g-ir-scanner work on Windows. Still problems with the typelib
2245 code. Changes okayed by jdahlin.
2247 * configure.ac: Check for Windows, set Automake conditional
2248 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2249 avoid shell quoting issues
2251 * girepository/Makefile.am: Use -no-undefined so that libtool
2252 agrees to build a shared library on Windows.
2254 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2255 Windows. Empty implementation on Windows so far.
2257 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2258 informative error message for the assertion failures. Tell also
2259 what the expected size of the struct is. Check all sizes first and
2260 fail afterwards if at least one size was different from expected.
2262 * tools/Makefile.am: Reorder libraries into proper logical
2265 * tools/generate.c: Don't include <dlfcn.h>, not used.
2267 * giscanner/Makefile.am: On Windows, link with the Python library,
2268 and install the module DLL as _giscanner.pyd. Remove the
2269 unnecessary import library and libtool library that libtool has
2272 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2273 and just skip it. Recognize also two "l" suffixes for long long
2274 constants. Recognize also __inline__.
2276 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2277 GetFullPathName(). As such, GetFullPathName() does more than the
2278 UNIX realpath(). It also changes relative paths into absolute
2279 paths. But for our purposes that shouldn't matter.
2281 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2282 Windows the file descriptor passed to us is from Python. Python
2283 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2284 uses msvcrt.dll. On Windows, file descriptors are specific to
2285 which C library is used. So we must find out what underlying OS
2286 handle corresponds to the file descriptor Python passes us, and
2287 then make that into a file descriptor valid for the C library this
2290 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2291 __attribute__ as the lexer now handles it. The definition as empty
2292 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2293 __attribute__. Close the temp file before unlinking it.
2295 * giscanner/cgobject.py: Use correct library name for the gobject
2298 * gir/Makefile.am: Must pass the full basename of the DLLs on
2299 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2300 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2301 reality they won't change, until there is a GLib 3, and then also
2302 the Unix code here needs changing.
2304 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2307 2008-08-26 Colin Walters <walters@verbum.org>
2309 * girepository/girepository.c: Search
2310 $DATADIR/girepository instead of
2311 $DATADIR/gitypelibs; this naming makes
2312 it clearer that e.g. jgir can install
2314 * gir/Makefile.am: Install there.
2316 2008-08-26 Colin Walters <walters@verbum.org>
2318 * girepository/gtypelib.c (_g_typelib_init): Also
2319 use G_MODULE_SUFFIX instead of hardcoding .so.
2321 2008-08-26 Colin Walters <walters@verbum.org>
2323 * girepository/gtypelib.c (_g_typelib_init): Free
2324 string in the right place.
2326 2008-08-26 Colin Walters <walters@verbum.org>
2328 * girepository/gtypelib.c (_g_typelib_init): Handle
2329 both .la and .so names; this works better in the
2330 uninstalled library case.
2332 2008-08-26 Johan Dahlin <johan@gnome.org>
2335 * giscanner/Makefile.am:
2336 * giscanner/cgobject.py:
2337 * giscanner/config.py.in:
2338 * giscanner/sourcescanner.py:
2339 Avoid undeffing __GNUC__, instead define
2340 __attribute__ & friends. Remove glibconfig.h hack.
2341 This makes gobject-introspection work better on
2342 MacOS X, Thanks to Richard Hult for kind help.
2344 2008-08-25 Colin Walters <walters@verbum.org>
2346 * giscanner/glibtransformer.py: Always print
2349 2008-08-25 Colin Walters <walters@verbum.org>
2351 * giscanner/glibtransformer.py: Skip over
2352 interfaces we don't know.
2354 2008-08-25 Colin Walters <walters@verbum.org>
2356 * girepository/girparser.c: Parse new implements
2357 syntax, drop gapi one.
2358 * tests/object.gir: Update.
2359 * tools/generate.c: Generate new syntax.
2361 2008-08-25 Colin Walters <walters@verbum.org>
2363 * giscanner/ast.py: Add interfaces property
2365 * giscanner/girwriter.py: Write out implemented
2367 * giscanner/glibtransformer.py: Introspect
2368 implemented interfaces.
2369 * tests/scanner/*: Make FooObject implement
2372 2008-08-25 Colin Walters <walters@verbum.org>
2374 * giscanner/glibtransformer.py: More correctly pair
2375 methods; if we have a symbol that starts with
2376 e.g. hippo_canvas look for a matching HippoCanvas
2377 class before accepting e.g. HippoCanvasImage.
2379 2008-08-24 Colin Walters <walters@verbum.org>
2381 * tools/g-ir-scanner: Filter out unknown options from
2384 2008-08-24 Colin Walters <walters@verbum.org>
2386 * giscanner/glibtransformer.py: Fail with better
2387 error if we can't find library.
2389 2008-08-24 Colin Walters <walters@verbum.org>
2391 * tools/g-ir-scanner: Use subprocess instead of
2392 commands, works on Windows and avoids the evil
2395 2008-08-24 Colin Walters <walters@verbum.org>
2397 * giscanner/glibtransformer.py: Skip over
2398 g_object_get_type from GLib trunk.
2400 2008-08-24 Colin Walters <walters@verbum.org>
2402 * girepository/girepository.c (g_irepository_require):
2403 Don't open shared library here; we already do it
2406 2008-08-24 Colin Walters <walters@verbum.org>
2408 * girepository/gtypelib.c: Add context stack so
2409 when we get an error we can print out nicely
2412 2008-08-24 Johan Dahlin <johan@gnome.org>
2414 * girepository/girparser.c (start_glib_boxed), (start_function),
2415 (start_field), (start_alias):
2416 Refactor a couple of parsing functions to be simpler to follow.
2419 2008-08-24 Johan Dahlin <johan@gnome.org>
2421 * girepository/girparser.c (start_function):
2422 Remove left-over code, checking type of function.
2424 2008-08-23 Colin Walters <walters@verbum.org>
2426 * giscanner/config.py: Define DATADIR.
2427 * giscanner/transformer.py: Look in DATADIR.
2429 2008-08-23 Colin Walters <walters@verbum.org>
2431 * girepository/gtypelib.c: Check constructor
2433 * girepository/girnode.c: Small tweaks.
2434 * girepository/ginfo.c: Calculate signature offsets
2436 * girepository/girparser.c: Remove duplicate
2438 * giscanner/glibtransformer.py: Avoid marking
2439 functions which return a basic type as
2442 2008-08-23 Colin Walters <walters@verbum.org>
2444 * girepository/girparser.c: Ignore <include>.
2445 * giscanner/girparser.py: Parse them.
2446 * giscanner/girwriter.py: Generate them.
2447 * giscanner/transformer.py: Process <include>
2448 recursively. Don't require full path for
2449 includes, look in {$XDG_DATA_DIRS}/gir.
2450 * tools/g-ir-scanner: Pass through includes.
2451 * Makefile.am: Remove extra --include
2453 * *-expected.gir: Add expected includes.
2455 2008-08-23 Johan Dahlin <johan@gnome.org>
2457 * tests/scanner/Makefile.am:
2458 * tests/scanner/annotation-expected.gir:
2459 * tests/scanner/drawable-expected.gir:
2460 Avoid duplication in the Makefile, regenerate with new
2461 namespaces (same as the filename)
2463 2008-08-22 Colin Walters <walters@verbum.org>
2465 * girepository/girnode.c: Don't hardcode integers,
2468 2008-08-22 Johan Dahlin <johan@gnome.org>
2470 * giscanner/sourcescanner.py:
2471 Check for ../gobject-introspection-1.0.pc.in to determine
2472 if we run installed or uninstalled.
2474 2008-08-22 Johan Dahlin <johan@gnome.org>
2477 * giscanner/sourcescanner.py:
2478 Send in undefs/defines via writing it directly to stdin
2479 of cpp instead of via arguments.
2481 2008-08-22 Colin Walters <walters@verbum.org>
2483 * tools/generate.c, tools/compiler.c: Default
2485 * all Makefile.am: Update.
2487 2008-08-22 Colin Walters <walters@verbum.org>
2489 * girepository/girparser.c: Pass through
2490 recursive types. Avoid overwriting errors.
2491 * giscanner/xmlwriter.py: Always write the
2493 * tests/*.gir: Adjust.
2494 * tests/scanner/Makefile.am: Build typelibs,
2495 and generate XML from those. Once we
2496 have a good diff mechanism...
2497 * tests/scanner/*-expected.gir: Add XML
2499 * tools/g-ir-scanner: Accept --typelib-xml
2501 * tools/generate.c: Better defaults for transfer.
2503 2008-08-22 Johan Dahlin <johan@gnome.org>
2507 * giscanner/Makefile.am:
2508 * giscanner/config.py.in:
2509 * giscanner/sourcescanner.py:
2510 Use the generated glibconfig.h for all scanner invokations.
2511 Rename it to glibconfig-scanner.h and install it.
2512 Add a config.py which so far contains the include dir.
2514 2008-08-22 Johan Dahlin <johan@gnome.org>
2517 Replace glibconfig.h with our own, do some replacement
2518 for CPP/C features we do not support
2520 2008-08-22 Colin Walters <walters@verbum.org>
2522 * tools/generate.c (write_callable_info): Fix unref
2525 2008-08-22 Colin Walters <walters@verbum.org>
2527 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2528 * tests/Makefile.am: Support $(DEBUG)
2529 * tools/generate.c: Do immediate close tags if no
2532 2008-08-21 Colin Walters <walters@verbum.org>
2534 * tests/scanner/drawable-expected.gir,
2535 * tests/scanner/drawable.c,
2536 * tests/scanner/drawable.h:
2539 2008-08-21 Colin Walters <walters@verbum.org>
2541 * giscanner/glibtransformer.py: Compute prefix
2542 by searching through the symbol for bits
2543 rather than going directly from ctype; this fixes
2546 2008-08-21 Colin Walters <walters@verbum.org>
2548 * giscanner/glibtransformer.py: Also try squashing
2549 underscores from namespace, fixes webkit_web_view_new.
2551 2008-08-21 Colin Walters <walters@verbum.org>
2553 * giscanner/glibtransformer.py: More ctor work,
2554 avoid having gtk_window_group_new end up under
2557 2008-08-21 Colin Walters <walters@verbum.org>
2559 * giscanner/glibtransformer.py: Much simpler approach
2560 of mapping uscored names to classes.
2561 * giscanner/utils.py: Remove unnecessary function.
2563 2008-08-21 Johan Dahlin <johan@gnome.org>
2565 * girepository/girepository.c (g_irepository_require):
2566 Plug memory leak and avoid using freed memory.
2567 Resolve the whole module path, here as well.
2569 2008-08-21 Colin Walters <walters@verbum.org>
2571 * giscanner/glibtransformer.py: Look up all permutations
2572 of class names when scanning methods/ctors based on
2573 the prefix instead of using the return value. This
2574 associates gtk_window_new with the right class.
2576 2008-08-21 Colin Walters <walters@verbum.org>
2578 * girepository/girmodule.c (g_ir_module_build_typelib):
2579 Revert change to increment header_size; we do that in
2582 2008-08-21 Colin Walters <walters@verbum.org>
2584 * girepository/girnode.c (write_string): Tweak to
2585 use UINT instead of INT. Not likely to matter.
2586 * girepository/girmodule.c (g_ir_module_build_typelib):
2587 Add to header_offset as well for header strings
2588 to match what write_string does.
2589 * girepository/gtypelib.c: Replace is_name with
2590 validate_name, which more strongly validates and
2591 handles errors in a better way. Update all callers.
2592 * giscanner/glibtransformer.py: Handle constructors
2595 2008-08-21 Johan Dahlin <johan@gnome.org>
2597 * gir/Makefile.am (typelibs_DATA): Build and
2598 install the Gio.typelib too
2600 * girepository/gtypelib.c (_g_typelib_init):
2601 Use g_module_build_path to resolve the shlib name
2603 2008-08-21 Colin Walters <walters@verbum.org>
2605 * gir/Makefile.am: CLEANFILES typelibs too.
2607 2008-08-21 Johan Dahlin <johan@gnome.org>
2609 * giscanner/glibtransformer.py:
2610 Do not send .la files through find_library.
2612 2008-08-21 Colin Walters <walters@verbum.org>
2614 * girepository/girparser.c (g_irepository_require):
2615 Fix one small leak in error case.
2617 2008-08-21 Johan Dahlin <johan@gnome.org>
2620 Parse glibconfig.h as well and install the compiled
2623 2008-08-21 Johan Dahlin <johan@gnome.org>
2626 * giscanner/glibtransformer.py:
2627 * tools/g-ir-scanner:
2628 Do not hard-core library names in the Makefile, reuse
2629 ctypes find_library instead.
2631 2008-08-21 Johan Dahlin <johan@gnome.org>
2633 * girepository/girparser.c (resolve_aliases):
2634 Remove compilation warnings
2636 2008-08-21 Johan Dahlin <johan@gnome.org>
2638 * girepository/girepository.c (g_irepository_require):
2639 Rewrap and fix double free bug by leaking a bit.
2641 2008-08-20 Colin Walters <walters@verbum.org>
2643 * girepository/girepository.c: Add new function
2644 g_irepository_get_typelib_path which tells
2645 us from where we loaded a namespace.
2647 2008-08-20 Colin Walters <walters@verbum.org>
2649 * tests/scanner/*-expected.gir: Adjust for
2650 added shared-library.
2651 * giscanner/giwriter.py: Make pylint happy.
2653 2008-08-20 Colin Walters <walters@verbum.org>
2655 * girepository/girmodule.c (g_ir_module_build_typelib):
2656 Calculate size correctly, avoid use-after-free.
2658 2008-08-20 Colin Walters <walters@verbum.org>
2660 * girepository/girepository.c: Remove
2661 g_irepository_register_file in favor of
2662 g_irepository_require. There are two
2663 possible deployment scenarios for typelibs:
2664 First, separate in $DATADIR/gitypelibs/. Second,
2665 they may be embedded in shlibs. However since
2666 the first is now the normal case, the API is
2667 optimized around it.
2669 Refactor internals to look up typelibs for
2670 namespaces just-in-time, but we expect
2671 consumers to call g_irepository_require.
2673 Also, add some docs. No one has died from that
2675 * gir/Makefile.am: Need --library for glib.
2676 * giscanner/girwriter.py: Write out shared-library.
2677 * tools/g-ir-writer: Take the first --library
2678 argument as the target of shared-library. In
2679 the future we should make this nicer with pkg-config
2682 2008-08-20 Colin Walters <walters@verbum.org>
2684 * girepository/girparser.py: And parse them.
2686 2008-08-20 Johan Dahlin <johan@gnome.org>
2688 * giscanner/glibast.py: Add gshort/gushort types
2690 2008-08-20 Colin Walters <walters@verbum.org>
2692 * gir/Makefile.am: Rename .gir files using GI namespace.
2693 * girepository/girepository.c: Use XDG_DATA_DIRS for
2694 looking up typelibs. Also typelibs are now suffixed
2696 * tests/invoke/Makefile.am: Only use metadata.
2697 * girepository/Makefile.am: Remove unnecessary include.
2698 * tests/scanner/Makefile.am: Update using GI namespaces
2699 for scanner includes.
2701 2008-08-20 Colin Walters <walters@verbum.org>
2703 * girepository/transformer.py: Suppress aliases whose
2705 * girepository/ast.py: Define some more aliases.
2707 2008-08-20 Colin Walters <walters@verbum.org>
2709 * girepository/girparser.c: Avoid alias infloops.
2711 2008-08-20 Colin Walters <walters@verbum.org>
2713 * tests/scanner/foo-expected.gir: Fix expected list type.
2715 2008-08-20 Johan Dahlin <johan@gnome.org>
2717 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2718 Add a workaround for #548689.
2719 We can now compile gtk!
2721 2008-08-20 Colin Walters <walters@verbum.org>
2723 * giscanner/glibtransformer.py: Try to look up
2724 aliases using the c:type too.
2726 2008-08-20 Colin Walters <walters@verbum.org>
2728 * girepository/girparser.c: Parse union fields.
2730 2008-08-20 Johan Dahlin <johan@gnome.org>
2732 * giscanner/ast.py: Make time_t an alias for long
2734 * gir/gio-2.0-good.gir:
2735 * gir/glib-2.0-good.gir:
2736 * gir/gobject-2.0-good.gir:
2738 * giscanner/glibtransformer.py:
2739 Do not delete Class structures, we need them in gdk/gtk.
2740 * tests/scanner/drawable-expected.gir:
2741 * tests/scanner/foo-expected.gir:
2742 * tests/scanner/utility-expected.gir:
2745 2008-08-20 Johan Dahlin <johan@gnome.org>
2747 * tests/scanner/Makefile.am:
2748 * tests/scanner/annotation-expected.gir:
2749 * tests/scanner/annotation.c (annotation_object_class_init),
2750 (annotation_object_init), (annotation_object_method),
2751 (annotation_object_in), (annotation_object_out),
2752 (annotation_object_inout), (annotation_object_inout2),
2753 (annotation_object_inout3), (annotation_object_calleeowns),
2754 (annotation_object_calleesowns), (annotation_object_get_strings),
2755 (annotation_object_with_voidp), (annotation_object_get_objects),
2756 (annotation_object_create_object), (annotation_object_allow_none):
2757 * tests/scanner/annotation.h:
2758 * tests/scanner/foo-expected.gir:
2759 * tests/scanner/foo.c:
2760 * tests/scanner/foo.h:
2761 Split out annotation tests out of foo
2763 2008-08-20 Johan Dahlin <johan@gnome.org>
2765 * tests/scanner/Foo-expected.gir:
2766 * tests/scanner/Makefile.am:
2767 * tests/scanner/foo-expected.gir:
2768 * tests/scanner/foo-object.h:
2769 * tests/scanner/foo.c:
2770 Foo->foo, foo-object.h -> foo.h
2772 2008-08-20 Johan Dahlin <johan@gnome.org>
2774 * tests/scanner/Foo-expected.gir:
2775 * tests/scanner/Makefile.am:
2776 * tests/scanner/drawable-expected.gir:
2777 * tests/scanner/drawable.c (test_drawable_class_init),
2778 (test_drawable_init):
2779 * tests/scanner/drawable.h:
2780 * tests/scanner/foo-object.h:
2781 * tests/scanner/foo.c (foo_boxed_method):
2782 Move the drawable parts out of Foo to its own test.
2784 2008-08-20 Johan Dahlin <johan@gnome.org>
2786 * tests/scanner/Foo-expected.gir:
2787 * tests/scanner/foo-object.h:
2788 * tests/scanner/foo.c (foo_drawable_class_init),
2789 (foo_drawable_init):
2790 Add a based on GdkDrawable which generates
2793 2008-08-19 Colin Walters <walters@verbum.org>
2795 * giscanner/transformer.py: Don't try
2796 to strip prefix before namespace.
2798 2008-08-19 Johan Dahlin <johan@gnome.org>
2800 * giscanner/transformer.py:
2801 * tests/scanner/Foo-expected.gir:
2802 * tests/scanner/foo-object.h:
2803 Add support for typedef void foo type of
2806 2008-08-19 Johan Dahlin <johan@gnome.org>
2809 * giscanner/girwriter.py:
2810 * giscanner/glibtransformer.py:
2811 * giscanner/transformer.py:
2812 * tests/scanner/Foo-expected.gir:
2813 Add basic support for union, base the code much
2814 on Struct. Add a testcase.
2816 2008-08-19 Johan Dahlin <johan@gnome.org>
2818 * tests/scanner/Foo-expected.gir:
2819 * tests/scanner/foo-object.h:
2820 Add a union testcase which the compiler currently
2823 2008-08-19 Johan Dahlin <johan@gnome.org>
2825 * gobject-introspection-1.0.pc.in:
2826 Add a g_ir_compiler variable
2828 2008-08-19 Colin Walters <walters@verbum.org>
2830 * giscanner/ast.py: Rework types to be more closely
2832 * giscanner/girparser.py: Parse more bits.
2833 * giscanner/girwriter.py: Write sequences in a new
2834 way that specifies container type.
2835 * giscanner/glibast.py: Adjust for ast.py changes,
2836 add 'ctype' property to GLibObject and GLibInterface
2837 so we can look things up by it later.
2838 * gicanner/transformer.py: Names is new class holding
2839 the various namespaces we manage. Do not confuse
2840 with Namespace which is toplevel XML node effectively.
2841 Rework all type resolution to go through
2842 _resolve_type_name_1.
2843 * giscanner/glibtransformer.py: Raise UnknownTypeError
2844 instead of ValueError for cleanliness. Add Unresolved
2845 class to mark types whose parent we haven't seen yet.
2846 Use new Names object from transformer.py.
2847 Correctly look up parent=.
2848 Fix type validation to handle sequences.
2849 * tests/scanner/Foo-expected.gir: Update for sequence
2850 work, int instead of int32.
2851 * tools/g-ir-scanner: Add --noclosure option
2852 * gir/Makefile.am: Use --noclosure by default for
2855 2008-08-18 Johan Dahlin <johan@gnome.org>
2857 * gir/gio-2.0-good.gir:
2858 * gir/glib-2.0-good.gir:
2859 * gir/gobject-2.0-good.gir:
2862 2008-08-18 Johan Dahlin <johan@gnome.org>
2865 * giscanner/girparser.py:
2866 * giscanner/girwriter.py:
2867 * giscanner/glibast.py:
2868 * giscanner/glibtransformer.py:
2869 * giscanner/transformer.py:
2870 * tests/scanner/Foo-expected.gir:
2871 * tests/scanner/foo-object.h:
2872 * tests/scanner/utility-expected.gir:
2873 * tests/scanner/utility.h:
2874 Redo type resolving and validation.
2875 Add a couple of new tests.
2876 Patch mostly written by Colin.
2878 2008-08-18 Johan Dahlin <johan@gnome.org>
2881 * giscanner/girparser.py:
2883 * giscanner/transformer.py:
2884 Improve enum parsing for enums without a GType.
2885 Make flags/enum references to other girs work
2886 * giscanner/utils.py:
2888 * tests/scanner/Makefile.am:
2889 * tests/scanner/foo-object.h:
2890 * tests/scanner/utility-expected.gir:
2891 * tests/scanner/utility.h:
2892 Add a new test for external enum references
2894 2008-08-18 Johan Dahlin <johan@gnome.org>
2896 * docs/global-module-registry.txt: Update
2898 * tests/array.gir: Update with new type proposal
2900 * girepository/girepository.c (g_type_tag_to_string):
2901 * girepository/girepository.h:
2902 * girepository/girnode.c (g_ir_node_get_full_size_internal),
2904 * girepository/girnode.h:
2905 Make enum serializing functions public. Clean up some whitespace.
2907 2008-08-17 Johan Dahlin <johan@gnome.org>
2909 * docs/global-module-registry.txt:
2910 Add a document for an on disk module registry format
2912 2008-08-17 Johan Dahlin <johan@gnome.org>
2915 * gir/gio-2.0-good.gir:
2918 2008-08-17 Johan Dahlin <johan@gnome.org>
2921 * gir/glib-2.0-good.gir:
2922 * gir/gobject-2.0-good.gir:
2923 * giscanner/cgobject.py:
2924 * giscanner/glibtransformer.py:
2925 Regenerate GObject & GType.
2926 Avoid warnings when generating gobject-2.0.gir.
2927 Introspect a little more, and skip *_get_type functions.
2929 2008-08-17 Colin Walters <walters@verbum.org>
2931 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
2932 Rename to -good, always generate during build.
2933 * gir/Makefile.am: Ensure .gir files dep on
2934 all scanner sources.
2935 * Makefile.am: Switch build order to ensure
2936 the scanner is ready before we do gir/.
2937 * tools/g-ir-scanner: Look for .git too.
2939 2008-08-17 Johan Dahlin <johan@gnome.org>
2941 * girepository/gtypelib.c (validate_enum_blob):
2942 * giscanner/glibtransformer.py:
2943 * giscanner/transformer.py:
2944 Remove resolve_possible_typedefs, it was unused.
2945 Allow multiple enum values of the sample value in an enum,
2946 since it's actually pretty common.
2947 Register enums so they can be resolved too.
2949 2008-08-16 Johan Dahlin <johan@gnome.org>
2951 * giscanner/girparser.py:
2952 Parse enumeration/bitfield.
2954 2008-08-16 Johan Dahlin <johan@gnome.org>
2956 * giscanner/girparser.py:
2959 2008-08-16 Johan Dahlin <johan@gnome.org>
2961 * giscanner/glibtransformer.py:
2962 Resolve type names for alias targets
2963 * giscanner/transformer.py:
2964 Skip FILE* parameters fow now
2966 2008-08-16 Johan Dahlin <johan@gnome.org>
2969 * gir/gobject-2.0.gir:
2972 * tests/scanner/Makefile.am:
2975 2008-08-15 Colin Walters <walters@verbum.org>
2977 * giscanner/glibtransformer.py: Explicitly construct
2978 new list, since we're deleting as we iterate.
2979 Don't delete all structures which end in Class; just
2980 ones which have a paired GObject.
2981 Fix printing of type warning.
2982 * giscanner/transformer.py: Make strip_namespace_object
2983 be the identity function if it doesn't match the
2986 2008-08-15 Colin Walters <walters@verbum.org>
2988 * giscanner/cgobject.py: Define yet more argument
2989 prototypes; fix prototype for g_type_fundamental.
2991 2008-08-14 Johan Dahlin <johan@gnome.org>
2993 * tests/Makefile.am:
2994 * tests/constant.gir:
2995 * tests/gobject.gir:
2997 * tools/generate.c (write_struct_info):
2998 Fix generator for constant/gobject/struct
3000 2008-08-14 Johan Dahlin <johan@gnome.org>
3002 * tests/Makefile.am:
3004 * tools/generate.c (write_enum_info):
3005 Fix generation of enum/bitfields
3007 2008-08-14 Johan Dahlin <johan@gnome.org>
3009 * girepository/girparser.c (start_field), (start_constant),
3010 (start_type), (end_element_handler):
3011 Clear up constant parsing
3016 * tools/generate.c (write_callable_info), (write_function_info),
3017 (write_callback_info), (write_constant_info), (write_signal_info),
3018 (write_vfunc_info), (write_property_info), (write_object_info),
3019 (write_interface_info):
3020 Constants/Signals are handled now.
3022 2008-08-14 Johan Dahlin <johan@gnome.org>
3024 * girepository/girparser.c (start_type):
3025 Don't require c:type.
3026 * tests/Makefile.am:
3029 Update, remove parts we don't support yet
3030 * tests/roundtrips.sh:
3032 * tools/generate.c (write_type_info), (write_field_info),
3033 (write_callable_info), (write_struct_info):
3034 Make it emit proper gir.
3036 2008-08-14 Johan Dahlin <johan@gnome.org>
3038 * giscanner/transformer.py:
3039 New internal function for adding a new node.
3041 2008-08-14 Johan Dahlin <johan@gnome.org>
3044 Define an internal _H_ variable so we skip parsing both
3045 i18n headers, only one is needed.
3047 Add the glib-2.0.gir too.
3048 * giscanner/glibast.py:
3049 Add gconstpointer as an alias for ANY
3050 * giscanner/transformer.py:
3051 Do not lower case enumeration names per se.
3052 Skip functions which has parameters called 'va_list'
3054 2008-08-14 Colin Walters <walters@verbum.org>
3056 * giscanner/transformer.py: Comment data structures.
3057 Also squash pointers in resolve_type_name to correspond
3058 with what we do for params.
3059 * giscanner/glibtransformer.py: Print warnings in more
3060 situations. Rework checks for method/constructor to
3061 look up in our GType database instead of just checking
3062 for *. Avoid generating <record> for GObject which
3063 duplicate the <class>.
3064 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3067 2008-08-14 Johan Dahlin <johan@gnome.org>
3069 * giscanner/girwriter.py:
3070 * giscanner/glibast.py:
3071 * giscanner/glibtransformer.py:
3072 * giscanner/transformer.py:
3074 * tests/Makefile.am:
3075 Add pyflakes.py and run it in make check.
3076 Update the source code to fix the errors reported by
3079 2008-08-14 Johan Dahlin <johan@gnome.org>
3082 * giscanner/girparser.py:
3083 * giscanner/glibast.py:
3084 * giscanner/glibtransformer.py:
3085 Refactor the parser a bit.
3086 Add parent type to interfaces and update callsites.
3088 2008-08-14 Johan Dahlin <johan@gnome.org>
3090 * giscanner/glibtransformer.py:
3091 * giscanner/utils.py:
3092 Refactor a bit, avoid isinstance and add a method
3093 for each type we parse.
3095 2008-08-14 Johan Dahlin <johan@gnome.org>
3098 * giscanner/girparser.py:
3099 * giscanner/glibtransformer.py:
3100 * tests/Makefile.am:
3101 Run pep8.py in make check, fix old errors.
3103 2008-08-13 Colin Walters <walters@verbum.org>
3105 * giscanner/girparser.py: Parse records.
3107 2008-08-13 Colin Walters <walters@verbum.org>
3109 * gir/Makefile.am: Install again.
3110 * gir/gobject-2.0.gir: Add some more bits.
3112 2008-08-13 Colin Walters <walters@verbum.org>
3114 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3115 * giscanner/girparser.py: Handle aliases.
3116 * giscanner/transformer.py: Record aliases. Make resolver
3117 functions public; we now call into these explicitly from
3118 glibtransformer. Handle resolving aliases.
3119 * giscanner/glibtransformer.py: Separate our internal namespace
3120 from included ones. Call up into transformer's resolver functions.
3122 2008-08-13 Johan Dahlin <johan@gnome.org>
3124 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3125 * girepository/girparser.c (start_class):
3126 * giscanner/glibtransformer.py:
3127 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3129 2008-08-13 Johan Dahlin <johan@gnome.org>
3131 * giscanner/cgobject.py:
3132 Register GInitiallyUnowned
3133 * giscanner/girwriter.py:
3134 * giscanner/glibtransformer.py:
3135 Special case GObject/GInitially owned as they are a bit special to use.
3137 2008-08-13 Colin Walters <walters@verbum.org>
3139 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3140 Object is in GObject namespace.
3142 2008-08-13 Colin Walters <walters@verbum.org>
3144 * giscanner/girparser.py: Fix processing of functions
3147 2008-08-13 Colin Walters <walters@verbum.org>
3149 * giscanner/girparser.py: Parse more than just <class.
3150 * giscanner/glibtransformer.py: Put aliases in a separate
3151 data structure since their name is not canonicall.
3152 * giscanner/transformer.py: Handle resolving type names
3155 2008-08-13 Johan Dahlin <johan@gnome.org>
3157 * tools/g-ir-scanner:
3158 Allow multiple libraries
3159 * giscanner/glibtransformer.py:
3160 Rename load_library to add_library, traverse over all libraries
3161 when trying to resolve a function
3163 2008-08-12 Colin Walters <walters@verbum.org>
3165 * giscanner/transformer.py: Record typedefs as <alias> elements.
3166 Also attempt to look up types in external namespaces.
3167 * giscanner/girwriter.py: Write them.
3168 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3169 checks. Resolve interface methods and properties.
3170 * tests/scanner/foo-object.h: Add a method with typedef.
3171 * tests/scanner/Foo-expected.gir: Update.
3172 * girepository/girnode.c: Debug tweaks.
3173 * girepository/girparser.c: Make a first pass through the XML where we
3174 record all the aliases. This lets us resolve them as we go through the
3176 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3177 from gir-repository.
3179 2008-08-12 Colin Walters <walters@verbum.org>
3181 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3182 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3184 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3186 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3188 2008-08-12 Colin Walters <walters@verbum.org>
3190 * giscanner/glibtransformer.py: Also transform object properties.
3192 2008-08-12 Colin Walters <walters@verbum.org>
3194 * giscanner/glibtransformer.py: Also transform callbacks
3195 and structure field types.
3196 * tests/scanner/Fooe-expected.gir: Update to expect correct
3197 names for callbacks and structs.
3199 2008-08-12 Colin Walters <walters@verbum.org>
3201 * girepository/girparser.c: Handle 'any'.
3202 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3203 Add test for void *.
3205 2008-08-12 Colin Walters <walters@verbum.org>
3207 * giscanner/glibtransformer.py: We need to do type
3208 resolution in a second pass after we've seen all the
3209 enums, records, etc.
3211 2008-08-12 Colin Walters <walters@verbum.org>
3213 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3214 Add enum return value.
3215 * giscanner/glibtransformer.py: Transform function return types
3218 2008-08-12 Colin Walters <walters@verbum.org>
3220 * tests/scanner/Makefile.am: Dep .gir files on scanner
3221 sources too. Also remove @ so we see scanner invocations.
3223 2008-08-12 Colin Walters <walters@verbum.org>
3225 * girepository/girparser.c, girepository/gtypelib.c,
3226 girepository/gtypelib.h, girepository/girnode.c:
3227 Remove usage of (GAPI-oriented) TypeTag in favor of
3228 GITypeTag from girepository.h.
3230 2008-08-10 Colin Walters <walters@verbum.org>
3232 * tests/roundtrips.sh: Use the correct tests.
3234 2008-08-10 Colin Walters <walters@verbum.org>
3236 * giscanner/cgobject.py: Declare/wrap a few more functions.
3237 Fix parameter types for g_object_new and g_type_fundamental.
3239 2008-08-10 Colin Walters <walters@verbum.org>
3241 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3242 us to declare types for both return value and parameters. The
3243 ctypes default of 'int' is bad because it hides 32/64 bit
3244 problems. Convert all existing functions to use it.
3246 2008-08-09 Johan Dahlin <johan@gnome.org>
3248 * giscanner/__init__.py:
3250 * giscanner/cgobject.py:
3251 * giscanner/gidlparser.py:
3252 * giscanner/gidlwriter.py:
3253 * giscanner/girparser.py:
3254 * giscanner/girwriter.py:
3255 * giscanner/glibast.py:
3256 * giscanner/glibtransformer.py:
3257 * giscanner/odict.py:
3258 * giscanner/sourcescanner.py:
3259 * giscanner/transformer.py:
3260 * giscanner/utils.py:
3261 * giscanner/xmlwriter.py:
3262 * tools/g-ir-scanner:
3266 2008-08-09 Johan Dahlin <johan@gnome.org>
3269 * relaxng/c-types.xml:
3270 * relaxng/g-types.xml:
3271 * relaxng/relaxng.rng:
3273 Remove outdated relaxng schemas.
3275 2008-08-09 Johan Dahlin <johan@gnome.org>
3278 Rename metadata to typelib in variable names,
3281 2008-08-09 Johan Dahlin <johan@gnome.org>
3285 Remove old C scanner, which got rewritten in python.
3287 2008-08-09 Johan Dahlin <johan@gnome.org>
3289 * girepository/Makefile.am:
3290 * tools/Makefile.am:
3291 * tools/girmodule.c:
3292 * tools/girmodule.h:
3295 * tools/girparser.c:
3296 * tools/girparser.h:
3297 * tools/girwriter.c:
3298 * tools/girwriter.h:
3299 Move shared *.[ch] files to girepository from tools
3301 2008-08-09 Johan Dahlin <johan@gnome.org>
3303 * tests/Makefile.am:
3306 * tests/constant.test:
3308 * tests/errors.test:
3309 * tests/function.test:
3310 * tests/gobject.test:
3311 * tests/interface.test:
3312 * tests/object.test:
3313 * tests/struct.test:
3318 Rename *.test to *.gir
3320 2008-08-09 Johan Dahlin <johan@gnome.org>
3323 * tests/Makefile.am:
3324 * tests/parser/Foo-expected.gir:
3325 * tests/parser/Makefile.am:
3326 * tests/parser/foo-object.h:
3327 * tests/parser/foo.c:
3328 * tests/parser/utility-expected.gir:
3329 * tests/parser/utility.c:
3330 * tests/parser/utility.h:
3331 * tests/scanner/Makefile.am:
3332 Rename tests/parser to test/scanner
3334 2008-08-08 Colin Walters <walters@verbum.org>
3336 * tests/roundtrips.sh: Use local .gir files again.
3338 2008-08-08 Colin Walters <walters@verbum.org>
3340 * tests/invoke/Makefile.am: .gir file depends on libtool
3343 2008-08-08 Colin Walters <walters@verbum.org>
3345 * tools/girnode.c: Pass through parent node so we can
3346 print the node whose child is NULL, if that occurs.
3348 2008-08-08 Johan Dahlin <johan@gnome.org>
3350 * tests/Makefile.am:
3351 Disable roundtrip tests which are not yet working
3352 * tests/invoke/testfns.gir:
3355 2008-08-08 Johan Dahlin <johan@gnome.org>
3357 * giscanner/girwriter.py:
3359 * giscanner/glibast.py:
3360 * giscanner/glibtransformer.py:
3361 Swap order of members, to keep it consistent with
3364 2008-08-08 Johan Dahlin <johan@gnome.org>
3366 * girepository/gtypelib.c (validate_header):
3367 * girepository/gtypelib.h:
3369 * giscanner/girwriter.py:
3370 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3371 (gi_source_symbol_unref):
3374 * tests/constant.test:
3376 * tests/errors.test:
3377 * tests/function.test:
3378 * tests/gobject.test:
3379 * tests/interface.test:
3380 * tests/invoke/Makefile.am:
3381 * tests/invoke/testfns.xml:
3382 * tests/object.test:
3383 * tests/parser/Makefile.am:
3384 * tests/roundtrips.sh:
3385 * tests/struct.test:
3390 * tools/Makefile.am:
3391 * tools/compiler.c (main):
3392 * tools/generate.c (write_callable_info), (write_function_info),
3394 * tools/gidlmodule.c:
3395 * tools/gidlmodule.h:
3398 * tools/gidlparser.c:
3399 * tools/gidlparser.h:
3400 * tools/gidlwriter.c:
3401 * tools/gidlwriter.h:
3402 * tools/scanner.c (create_node_from_gtype),
3403 (create_node_from_ctype), (g_igenerator_process_properties),
3404 (g_igenerator_process_signals), (g_igenerator_create_object),
3405 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3406 (g_igenerator_create_enum), (g_igenerator_create_flags),
3407 (g_igenerator_process_function_symbol),
3408 (g_igenerator_process_unregistered_struct_typedef),
3409 (g_igenerator_process_struct_typedef),
3410 (g_igenerator_process_union_typedef),
3411 (g_igenerator_process_enum_typedef),
3412 (g_igenerator_process_function_typedef),
3413 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3414 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3415 Merge in the gir-compiler branch.
3416 Thanks to Philip and Colin for their help.
3418 2008-07-26 Colin Walters <walters@verbum.org>
3420 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3421 and g-idl-generate to go along with how we're changing this
3422 module to be installed.
3423 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3425 2008-07-24 Colin Walters <walters@verbum.org>
3427 * girepository/girepository.c (g_irepository_register): Add
3428 environment variable G_IREPOSITORY_VERBOSE so we can print
3429 out what we're doing.
3430 * girepository/girepository.c (g_irepository_register_file):
3431 Add GError error message to g_debug call.
3433 2008-07-08 Jürg Billeter <j@bitron.ch>
3435 * giscanner/glibast.py:
3439 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3441 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3444 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3447 * giscanner/girwriter.py:
3448 * giscanner/transformer.py:
3449 * tests/parser/Foo-expected.gir:
3450 * tests/parser/foo-object.h:
3451 * tests/parser/foo.c (foo_object_allow_none):
3452 Add support for gtk-doc annotations for allow-none.
3455 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3458 * giscanner/girwriter.py:
3459 * giscanner/glibast.py:
3460 * giscanner/glibtransformer.py:
3461 * giscanner/transformer.py:
3462 * tests/parser/Foo-expected.gir:
3463 Start using abstract type instead of the raw C types.
3464 Register a bunch of glib types we care about.
3466 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3471 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3473 * girepository/girepository.c:
3474 * girepository/gtypelib.c:
3475 * girepository/ginfo.c:
3476 * girepository/ginvoke.c:
3477 * girepository/girepository.h:
3478 * girepository/gtypelib.h:
3479 * girepository/gmetadata.c:
3480 * girepository/Makefile.am:
3481 * girepository/gmetadata.h:
3483 * tools/gidlmodule.c:
3486 * tools/gidlmodule.h:
3487 * tools/gidlparser.c:
3489 Renamed GMetadata to GTypelib
3491 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3493 * giscanner/xmlwriter.py:
3494 Improve line wrapping when > 79 charaters
3496 2008-06-05 Jürg Billeter <j@bitron.ch>
3499 * giscanner/girwriter.py:
3500 * giscanner/transformer.py:
3501 Use <type> element for field types
3502 * tests/parser/Foo-expected.gir:
3505 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3507 * giscanner/glibtransformer.py:
3508 Fix a bug which prevented GdkEvent from being generated
3510 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3512 * giscanner/Makefile.am:
3514 * giscanner/girwriter.py:
3515 * giscanner/glibast.py:
3516 * giscanner/glibtransformer.py:
3517 * giscanner/transformer.py:
3518 * giscanner/utils.py:
3519 * tests/parser/Foo-expected.gir:
3520 Improve enum member parsing and introspection
3522 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3524 * giscanner/scannerparser.y:
3525 * giscanner/sourcescanner.h:
3526 * giscanner/sourcescanner.py:
3527 Add a new source type enum for member.
3528 Use __repr__ for improved debugging
3529 * giscanner/girparser.py:
3531 * giscanner/transformer.py:
3532 Improve parsing of struct members.
3533 * tests/parser/foo-object.h:
3536 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3538 * giscanner/xmlwriter.py:
3539 Improve error reporting when trying to quote None.
3540 * giscanner/girparser.py:
3541 Do not print warnings when including more complete .gir files
3542 * giscanner/girwriter.py:
3543 Do not require a name for parameters, add a todo for singletons
3544 * giscanner/glibtransformer.py:
3545 Refactor the way structs are done, add a couple of hacks to allow
3547 * giscanner/transformer.py:
3548 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3549 * gobject-introspection-1.0.pc.in:
3550 Export girdir, so we can access gobject-2.0.gir from outside
3552 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3554 * tools/g-ir-scanner:
3555 * tests/parser/Makefile.am:
3556 Update sys.path before running the parser so we don't have
3557 to setup PYTHONPATH ourselves.
3561 * girepository/Makefile.am:
3562 * giscanner/transformer.py:
3563 * gobject-introspection-1.0.pc.in:
3564 * gobject-introspection.pc.in:
3565 * tools/Makefile.am:
3567 Rename pkg-config name to gobject-introspection-1.0,
3568 Do not installed anything which is not using the gir format.
3569 Disable compililation the old C scanner, but still keep the source
3570 until all the remaning functionallity has been ported.
3572 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3574 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3575 a crash when symbol->indent is NULL.
3577 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3578 a function to convert a CTYPE symbol to a string
3580 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3583 * giscanner/girwriter.py:
3584 * giscanner/giscannermodule.c
3585 (pygi_source_scanner_append_filename),
3586 (pygi_source_scanner_parse_file):
3587 * giscanner/glibtransformer.py:
3588 * giscanner/sourcescanner.py:
3589 Revert back to using temporary files to send in headers.
3590 Allow Functions to be passed in as callbacks, add a couple
3591 of try/excepts missing features.
3592 We can now scan pango
3594 2008-05-08 Johan Dahlin <johan@gnome.org>
3596 * giscanner/glibtransformer.py:
3597 * giscanner/transformer.py:
3598 Move namespace stripping glibtransformer->transformer
3600 2008-05-08 Johan Dahlin <johan@gnome.org>
3603 * giscanner/girwriter.py:
3604 * giscanner/glibtransformer.py:
3605 * giscanner/transformer.py:
3606 * tools/g-ir-scanner:
3607 Introduce a namespace ast node
3609 2008-05-05 Johan Dahlin <johan@gnome.org>
3611 * giscanner/__init__.py:
3612 * giscanner/sourcescanner.py:
3613 * giscanner/transformer.py:
3614 Move sourcescanner symbols to the sourcescanner module, instead
3615 of in the global __init__ namespace.
3617 2008-05-03 Johan Dahlin <johan@gnome.org>
3619 * giscanner/glibtransformer.py:
3620 * tools/g-ir-scanner:
3621 Handle missing parameters better, allow - and + in .la dlname
3624 2008-05-03 Johan Dahlin <johan@gnome.org>
3626 * giscanner/__init__.py:
3628 * giscanner/girwriter.py:
3629 * giscanner/glibtransformer.py:
3630 * giscanner/transformer.py:
3631 Parse struct fields properly, improve debugging.
3633 2008-04-29 Johan Dahlin <johan@gnome.org>
3636 * giscanner/girwriter.py:
3637 * giscanner/transformer.py:
3638 * tests/parser/Foo-expected.gir:
3640 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3642 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3645 * docs/g-ir-scanner.1:
3646 * metadata-annotations-proposal.txt:
3647 * metadata-format.txt:
3648 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3650 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3652 * giscanner/girwriter.py:
3653 * giscanner/glibtransformer.py:
3654 * giscanner/transformer.py:
3655 * giscanner/xmlwriter.py:
3656 * tests/parser/Foo-expected.gir:
3657 * tests/parser/foo-object.h:
3658 Write record/structs to gir file too. Add a couple of tests,
3659 fix an off by one error in xmlwriter.py.
3661 2008-04-28 Johan Dahlin <johan@gnome.org>
3663 * giscanner/xmlwriter.py: Calculate the line length properly,
3664 include the provided extra indentation in the calculation, really.
3666 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3669 * giscanner/glibast.py:
3670 * giscanner/glibtransformer.py:
3671 * giscanner/transformer.py:
3672 * tools/g-ir-scanner:
3673 Add a --strip-prefix and sort out confusion between names and symbols
3674 for functions and struct + derivaties.
3675 Refactor bootstrap of g-ir-scanner, so we can set options on
3676 Transformer() before parsing everything.
3678 2008-04-28 Johan Dahlin <johan@gnome.org>
3680 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3681 when scanning girepository.h
3683 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3684 a __GI_SCANNER__ when we run.
3686 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3689 * giscanner/girwriter.py:
3690 * giscanner/glibast.py:
3691 * giscanner/glibtransformer.py:
3692 * tests/parser/Foo-expected.gir:
3693 * tests/parser/utility-expected.gir:
3694 Rename most c:identifier to c:type. Add new ones to
3695 class/interface/enum/boxed.
3697 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3700 * giscanner/girwriter.py:
3701 * giscanner/glibtransformer.py:
3702 * tests/parser/Foo-expected.gidl:
3703 * tests/parser/Makefile.am:
3704 Move c:identifier from return-value to subchild type,
3705 as per Jürgs suggestion
3707 2008-04-28 Johan Dahlin <johan@gnome.org>
3709 * giscanner/girwriter.py:
3710 * tests/parser/Foo-expected.gir:
3711 Write property.type as a child node.
3713 2008-04-27 Johan Dahlin <johan@gnome.org>
3718 * gidl/gobject-2.0.gidl:
3720 * gir/gobject-2.0.gir:
3721 * tests/parser/Makefile.am:
3722 Replace the GObject gidl with a GObject gir.
3724 2008-04-27 Johan Dahlin <johan@gnome.org>
3726 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3729 * giscanner/xmlwriter.py:
3730 * tests/parser/Foo-expected.gir:
3731 Include indentation in line length calculation
3733 2008-04-27 Johan Dahlin <johan@gnome.org>
3735 * giscanner/girparser.py:
3736 Prettify NS parsing using elementtree.
3738 2008-04-27 Johan Dahlin <johan@gnome.org>
3741 * giscanner/Makefile.am:
3742 * giscanner/girparser.py:
3743 * giscanner/glibtransformer.py:
3744 * tests/parser/Foo-expected.gidl:
3745 * tests/parser/Foo-expected.gir:
3746 * tests/parser/Makefile.am:
3747 * tests/parser/utility-expected.gidl:
3748 * tests/parser/utility-expected.gir:
3749 * tools/g-ir-scanner:
3750 Switch over to GIR as the default format. Add a simple GIDL
3752 Update tests and fix simplify makefiles by depending
3753 on GNU make extensions.
3755 2008-04-27 Johan Dahlin <johan@gnome.org>
3757 * giscanner/xmlwriter.py:
3758 Wrap attributes for lines which are wider than 79 characters
3760 * giscanner/scannerlexer.l:
3761 Allow parenthesis in annotations
3764 * giscanner/gidlwriter.py:
3765 * giscanner/girwriter.py:
3766 * giscanner/glibtransformer.py:
3767 * giscanner/transformer.py:
3768 Add initial sequence support, including annotation.
3769 Refactor type handling a bit.
3771 2008-04-27 Johan Dahlin <johan@gnome.org>
3773 * tests/parser/Foo-expected.gidl:
3774 * tests/parser/foo-object.h:
3775 * tests/parser/foo.c (foo_object_class_init),
3776 (foo_object_get_strings), (foo_object_get_objects):
3777 Add two new functions to check sequence return values.
3778 Also fixes a compilation warning.
3780 2008-04-27 Johan Dahlin <johan@gnome.org>
3782 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3783 a compilation warning.
3785 * tools/Makefile.am (g_ir_scanner_SOURCES):
3786 g-ir-scanner has no sources.
3788 2008-04-25 Johan Dahlin <johan@gnome.org>
3790 * giscanner/Makefile.am:
3792 * giscanner/gidlparser.py:
3793 * giscanner/gidlwriter.py:
3794 * giscanner/girwriter.py:
3795 * giscanner/glibast.py:
3796 * giscanner/glibtransformer.py:
3797 * giscanner/transformer.py:
3798 Split out nodes to ast.py and glibast.py
3800 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3802 * giscanner/Makefile.am:
3803 * giscanner/gidlparser.py:
3804 * giscanner/gidlwriter.py:
3805 * giscanner/girwriter.py:
3806 * giscanner/glibtransformer.py:
3807 * giscanner/gobjecttreebuilder.py:
3808 * giscanner/transformer.py:
3809 * giscanner/treebuilder.py:
3810 * tools/g-ir-scanner:
3811 Rename treebuilder to transformer and
3812 gobjectreebuilder to glibtransformer.
3814 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3816 * giscanner/Makefile.am:
3817 * giscanner/__init__.py:
3818 * giscanner/cgobject.py:
3819 * giscanner/gidlparser.py:
3820 * giscanner/gidlwriter.py:
3821 * giscanner/girwriter.py:
3822 * giscanner/gobjecttreebuilder.py:
3823 * giscanner/odict.py:
3824 * giscanner/sourcescanner.py:
3825 * giscanner/treebuilder.py:
3826 * giscanner/xmlwriter.py:
3827 * tools/Makefile.am:
3828 * tools/g-ir-scanner:
3829 Add LGPLv2 license header and install all python files
3831 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3834 * giscanner/gidlwriter.py:
3835 * giscanner/giscannermodule.c (pygi_source_directive_new),
3836 (directive_get_options), (pygi_source_symbol_new),
3837 (symbol_get_base_type), (pygi_source_type_new),
3838 (type_get_base_type), (type_get_child_list),
3839 (pygi_source_scanner_get_symbols),
3840 (pygi_source_scanner_get_directives):
3841 * giscanner/gobjecttreebuilder.py:
3842 * giscanner/sourcescanner.py:
3843 * giscanner/treebuilder.py:
3844 * tests/parser/foo-object.h:
3845 Add support for virtual methods.
3846 Pair struct FooClass with struct Foo.
3847 Clean up the SourceScanner bindings a bit.
3848 Add a testcase for virtual methods.
3850 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
3852 * giscanner/cgobject.py:
3853 * giscanner/gidlwriter.py:
3854 * giscanner/gobjecttreebuilder.py:
3855 Add support for signals
3857 * tests/parser/foo.c (foo_object_class_init):
3858 * Foo-expected.gidl:
3859 Add a signal and update the expected output.
3861 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
3863 * giscanner/gidlwriter.py:
3864 * giscanner/girwriter.py:
3865 * giscanner/giscannermodule.c (directive_get_name),
3866 (directive_get_value), (directive_get_options),
3867 (symbol_get_directives), (symbol_set_directives),
3868 (pygi_source_scanner_parse_file),
3869 (pygi_source_scanner_lex_filename),
3870 (pygi_source_scanner_get_directives), (init_giscanner):
3871 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
3872 * giscanner/sourcescanner.h:
3873 * giscanner/sourcescanner.py:
3874 * giscanner/treebuilder.py:
3875 * tools/g-ir-scanner:
3876 Add support for source/header annotations.
3878 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3880 * giscanner/gidlwriter.py:
3881 * giscanner/girwriter.py:
3882 * giscanner/gobjecttreebuilder.py:
3883 * giscanner/treebuilder.py:
3884 Add support for Callbacks
3886 2008-04-22 Havoc Pennington <hp@pobox.com>
3888 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
3889 not in metadata->module, look for it in the global module, in case
3890 some other object or the app itself provides the symbol.
3892 2008-04-22 Havoc Pennington <hp@pobox.com>
3894 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
3895 dlopening a library that is already in the main app, by checking
3896 whether one of the lib's symbols is already loaded.
3898 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3900 * tests/parser/Foo-expected.gidl:
3901 * tests/parser/foo-object.h:
3904 2008-04-22 Havoc Pennington <hp@pobox.com>
3906 * girepository/ginfo.c (g_interface_info_find_method):
3907 Use interface_blob_size not object_blob_size to compute offset.
3909 2008-04-22 Havoc Pennington <hp@pobox.com>
3911 * girepository/gmetadata.c (_g_metadata_init): remove
3912 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
3913 (Glade and Clutter for example) rely on being loaded globally.
3915 2008-04-22 Havoc Pennington <hp@pobox.com>
3917 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
3918 function to get the GType given a RegisteredTypeInfo
3920 2008-04-22 Johan Dahlin <johan@gnome.org>
3922 * COPYING: Add a LGPL license, to prevent automake to
3923 put in a copy of GPL here. Pointed out by Havoc.
3925 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
3926 (g_type_info_is_pointer), (g_type_info_get_tag),
3927 (g_type_info_get_param_type), (g_type_info_get_interface),
3928 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
3929 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
3930 (g_error_domain_info_get_codes), (g_enum_info_get_value),
3931 (g_object_info_get_interface), (g_object_info_get_field),
3932 (g_interface_info_get_prerequisite),
3933 (g_signal_info_get_class_closure), (g_constant_info_get_value):
3934 * girepository/ginvoke.c (get_ffi_type):
3935 * girepository/girepository.h:
3936 * girepository/gmetadata.c (g_metadata_get_dir_entry),
3937 (g_metadata_check_sanity), (validate_header),
3938 (validate_array_type_blob), (validate_iface_type_blob),
3939 (validate_param_type_blob), (validate_error_type_blob),
3940 (validate_type_blob), (validate_constant_blob),
3941 (validate_struct_blob), (validate_enum_blob):
3942 * girepository/gmetadata.h:
3943 * tests/Makefile.am:
3944 * tests/invoke/Makefile.am:
3945 * tests/invoke/invoke.c (main):
3946 * tests/roundtrips.sh:
3947 * tools/Makefile.am:
3948 * tools/compiler.c (format_output), (write_out_metadata), (main):
3949 * tools/generate.c (write_type_name), (write_type_info),
3950 (write_constant_value), (write_enum_info), (load_metadata), (main):
3951 * tools/gidlcompilercontext.c:
3952 * tools/gidlcompilercontext.h:
3953 * tools/gidlcompilerentrynode.c:
3954 * tools/gidlcompilerentrynode.h:
3955 * tools/gidlcompilertypenode.c:
3956 * tools/gidlcompilertypenode.h:
3957 * tools/gidlmodule.c (g_idl_module_build_metadata):
3958 * tools/gidlmodule.h:
3959 * tools/gidlnode.c (init_stats), (dump_stats),
3960 (g_idl_node_get_size), (g_idl_node_get_full_size),
3961 (g_idl_node_cmp), (g_idl_node_can_have_member),
3962 (g_idl_node_add_member), (g_idl_node_param_direction_string),
3963 (parse_int_value), (parse_uint_value), (parse_float_value),
3964 (parse_boolean_value), (find_entry_node), (find_entry),
3965 (serialize_type), (g_idl_node_build_metadata), (write_string):
3967 * tools/gidlparser.c (parse_type_internal):
3968 * tools/quote-file.sh:
3969 Revert revisions 157,149-148,136-129 and 120.
3970 Move back to using g-idl-generate to generate the metadata and
3971 avoids dependency on a c compiler.
3973 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
3975 * giscanner/girwriter.py:
3976 * tools/g-ir-scanner:
3977 Add an initial GIR writer and a --format option to g-ir-scanner
3979 2008-04-21 Johan Dahlin <johan@gnome.org>
3981 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
3982 gobject-2.0 and raise ImportError if not found.
3984 * giscanner/gidlparser.py:
3985 * giscanner/gidlwriter.py:
3986 * giscanner/gobjecttreebuilder.py:
3987 * tools/g-ir-scanner:
3988 Add a --include argument to include types from other idls.
3989 Add a minimalistic GIDL parser (just objects for now)
3990 Implement resolving of external type references and use it to
3991 resolve parent types, argument types and return types.
3993 2008-04-21 Johan Dahlin <johan@gnome.org>
3995 * giscanner/gidlwriter.py:
3996 * giscanner/gobjecttreebuilder.py:
3997 * giscanner/treebuilder.py:
3998 Add support for properties.
3999 Refactor Class/Interface support a bit, to share more code and
4000 always initialize their method attribute to an empty list.
4002 2008-04-21 Johan Dahlin <johan@gnome.org>
4004 * giscanner/cgobject.py:
4005 Add a workaround for a glib bug interface introspection bug
4006 (object_interface_list_properties, object_class_list_properties):
4007 Cast the return value to GParamSpec.
4009 * tests/parser/Foo-expected.gidl: Update
4010 * tests/parser/foo.c: Add a string property
4012 * giscanner/gobjecttreebuilder.py:
4013 After stripping namespaces, remove the original
4014 item to avoid duplication (GtkButton struct and Button object)
4016 2008-04-21 Johan Dahlin <johan@gnome.org>
4018 * giscanner/gobjecttreebuilder.py:
4019 * giscanner/treebuilder.py:
4020 Strip namespaces before objects, so we'll export
4021 GtkButton as Button in the gtk namespace
4023 2008-04-21 Johan Dahlin <johan@gnome.org>
4025 * giscanner/gidlwriter.py:
4026 * giscanner/gobjecttreebuilder.py:
4027 * giscanner/treebuilder.py:
4028 Add constructors for object/boxed types.
4030 2008-04-21 Johan Dahlin <johan@gnome.org>
4032 * giscanner/gidlwriter.py:
4033 * giscanner/gobjecttreebuilder.py:
4034 Add support for boxed types
4036 2008-04-21 Johan Dahlin <johan@gnome.org>
4038 * giscanner/giscannermodule.c: Mark structures as const,
4039 wrap SourceType.const_string.
4041 * tests/parser/foo-object.h: Add a couple of constants.
4043 * giscanner/gidlwriter.py:
4044 * giscanner/gobjecttreebuilder.py:
4045 * giscanner/treebuilder.py:
4046 Add basic support for interfaces
4048 * tools/g-ir-scanner:
4049 Add -o/--output for writing to a file
4051 2008-04-21 Havoc Pennington <hp@redhat.com>
4053 * TODO: add some C API wishlist items I could think of quickly
4055 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4057 * giscanner/gidlwriter.py:
4058 * giscanner/xmlwriter.py:
4059 Add a simple api for writing tags which can be used
4060 with the new 'with statement' in python 2.5
4062 2008-04-21 Johan Dahlin <johan@gnome.org>
4064 * giscanner/gobjecttreebuilder.py:
4065 Strip namespace and object prefix from method names.
4067 2008-04-21 Johan Dahlin <johan@gnome.org>
4069 * tools/g-ir-scanner (main): Add --pkg option to pass in
4070 pkg-config modules to get cflags from.
4072 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4073 Avoid duplication, reuse function writer for methods.
4075 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4077 * giscanner/gidlwriter.py:
4078 * giscanner/gobjecttreebuilder.py:
4079 * giscanner/treebuilder.py:
4080 * tools/g-ir-scanner:
4081 Resolve libtool .la files.
4082 Strip name spaces for methods.
4083 Add function symbols
4085 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4087 * giscanner/cgobject.py:
4088 * giscanner/gidlwriter.py:
4089 * giscanner/gobjecttreebuilder.py:
4090 * giscanner/treebuilder.py:
4091 Add support for classes and methods
4093 2008-04-20 Johan Dahlin <johan@gnome.org>
4095 * giscanner/gidlwriter.py:
4096 * giscanner/gobjecttreebuilder.py:
4097 * giscanner/odict.py:
4098 Avoid conflicts, keep the output ordered similar to
4099 the order of the input.
4100 Add a simple ordered dictionary implemenation
4102 2008-04-19 Johan Dahlin <johan@gnome.org>
4104 * giscanner/cgobject.py:
4105 * giscanner/gidlwriter.py:
4106 * giscanner/gobjecttreebuilder.py:
4107 * tools/g-ir-scanner:
4108 Start introspecting get-type functions.
4109 Implement support for GLib/GFlags GTypes.
4110 Add a ctype based GObject binding.
4112 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4114 * giscanner/gidlwriter.py:
4115 * giscanner/xmlwriter.py:
4116 * tools/g-ir-scanner:
4117 Add a simplistic gidl writer, which can't do too much.
4119 2008-04-18 Johan Dahlin <johan@gnome.org>
4121 * giscanner/sourcescanner.py:
4122 * giscanner/treebuilder.py:
4123 * tools/g-ir-scanner:
4124 split tree building and source scanning interface to separate files.
4126 2008-04-18 Johan Dahlin <johan@gnome.org>
4128 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4130 - Add support for struct/parameter/return, start parsing of ctypes
4132 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4135 2008-03-31 Johan Dahlin <johan@gnome.org>
4137 * tools/g-ir-scanner:
4138 Start to build abstract syntax node of scanned sources.
4139 Add support for cpp options.
4141 2008-03-27 Johan Dahlin <johan@gnome.org>
4143 * giscanner/giscannermodule.c:
4144 * giscanner/scannerlexer.l:
4145 * giscanner/sourcescanner.c:
4146 * tools/g-ir-scanner:
4148 Add simple pre-processor using subprocess and a PIPE.
4149 Change the parse_file apis to accept a file descriptor.
4151 2008-03-25 Johan Dahlin <johan@gnome.org>
4153 * giscanner/__init__.py:
4154 * tools/g-ir-scanner:
4155 Fix a typo and add an example python test program.
4157 2008-03-25 Johan Dahlin <johan@gnome.org>
4159 * giscanner/__init__.py:
4160 * giscanner/giscannermodule.c:
4161 * giscanner/sourcescanner.c:
4162 * giscanner/sourcescanner.h:
4163 Add constants and wrap a few more SymbolType fields
4165 2008-03-25 Johan Dahlin <johan@gnome.org>
4169 * giscanner/__init__.py:
4170 * giscanner/giscannermodule.c:
4171 * giscanner/Makefile.am:
4173 Add initial python bindings for the scanner and
4174 depend on python 2.5.
4176 2008-03-25 Johan Dahlin <johan@gnome.org>
4180 * giscanner/Makefile.am:
4181 * giscanner/sourcescanner.c:
4182 * giscanner/sourcescanner.h:
4183 * tools/Makefile.am:
4184 * tools/grealpath.h:
4185 * tools/sourcescanner.c:
4186 * tools/sourcescanner.h:
4188 Move the scanner to a separate library.
4190 2008-03-23 Johan Dahlin <johan@gnome.org>
4192 * tools/Makefile.am:
4195 * tools/scannerlexer.l:
4196 * tools/scannerparser.y:
4197 * tools/sourcescanner.c:
4198 * tools/sourcescanner.h:
4199 Split out the source scanner from the generator.
4200 Rename the symbols used in the scanner to use the gi_ prefix.
4201 This should make it possible to use the raw C parser from
4204 2008-03-23 Johan Dahlin <johan@gnome.org>
4206 * tests/parser/Makefile.am (utility.gidl):
4207 * tests/parser/utility-expected.gidl:
4208 Pass in the gobject.gidl since we're defining a GObject.
4210 2008-03-12 Johan Dahlin <johan@gnome.org>
4212 * relaxng/relaxng.rng:
4213 Add a releaxng in relaxng we can use to validate the relaxngs
4216 2008-03-12 Jürg Billeter <j@bitron.ch>
4218 * tools/scanner.c: (g_igenerator_new):
4219 * tools/scannerparser.y:
4220 Fix compiler warnings.
4222 2008-03-12 Jürg Billeter <j@bitron.ch>
4226 * tools/scannerparser.y:
4227 Start fixing memory management in g-idl-scanner.
4229 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4231 * tools/gidlcompilercontext.c: (write_compiled):
4232 Fix critical warning when no shlib passed to g-idl-compiler.
4234 2008-03-12 Johan Dahlin <johan@gnome.org>
4236 * tests/parser/utility-expected.gidl:
4237 * tests/parser/utility.h:
4238 Add a get_type-function, so the scanner actually
4239 parses it as an object.
4241 2008-03-12 Johan Dahlin <johan@gnome.org>
4243 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4246 * tests/parser/Foo-expected.gidl:
4247 * tests/parser/Makefile.am:
4248 * tests/parser/foo-object.h:
4249 * tests/parser/foo.c:
4250 * tests/parser/utility-expected.gidl:
4251 * tests/parser/utility.c:
4252 * tests/parser/utility.h:
4254 Add a new gidl test. 'utility.gidl', which is used to be able
4255 to test external type references. Add a reference to UtilityObject*
4258 2008-03-11 Johan Dahlin <johan@gnome.org>
4262 Remove most global variables
4264 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4266 * tools/scannerlexer.l:
4268 * tests/parser/Foo-expected.gidl:
4269 * tests/parser/foo.c:
4270 * tests/parser/Makefile.am:
4271 * tests/parser/foo-object.h:
4273 Added a few extra tests. Which resulted in finding a few
4274 bugs. Which resulted in me fixing those bugs
4276 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4278 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4279 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4280 Add some comments for strings into generated output for
4283 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4285 * tools/gidlcompilercontext.c: (write_compiled):
4286 Write out the shlibs variable before writing out the strings
4287 length. Fixes compiler warning when using '-l' flag with
4290 2008-03-11 Johan Dahlin <johan@gnome.org>
4292 * tests/parser/Foo-expected.gidl:
4293 * tests/parser/foo-object.h:
4296 * tools/scannerlexer.l:
4297 Add support for parsing return arguments. Add support for
4298 caller-owns return types.
4299 Patch by Philip Van Hoof.
4301 * tools/scannerparser.y:
4302 Remove parsing of the @deprecated syntax used in headers.
4303 We will support gtk-doc deprecation in the future instead.
4305 2008-03-11 Johan Dahlin <johan@gnome.org>
4307 * tools/compiler.c (main): Coding style fixes
4309 2008-03-10 Johan Dahlin <johan@gnome.org>
4312 Add GCOV_LIBS to GILIBS
4314 2008-03-10 Johan Dahlin <johan@gnome.org>
4316 * tests/parser/Foo-expected.gidl:
4317 * tests/parser/foo.c:
4318 Rename null-ok to direction=out
4320 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4322 reviewed and extensively tested by Johan
4324 * tests/parser/Foo-expected.gidl:
4325 * tests/parser/foo-object.h:
4326 * tests/parser/foo.c:
4329 * tools/gidlwriter.c:
4332 * tools/scannerlexer.l:
4333 * tools/scannerparser.y:
4335 Add support for scanning for gtk-doc comments inside
4336 C source files. Add tests
4338 2008-03-10 Johan Dahlin <johan@gnome.org>
4340 * tests/parser/Makefile.am:
4341 * tests/parser/foo.c:
4344 * tools/scannerparser.y:
4345 Add an api to lex filenames.
4346 Lex all source .c files passed in on the command line.
4347 Scan sources in a test and a couple of private structures
4348 which should not be included in the generated gidl
4350 2008-03-10 Johan Dahlin <johan@gnome.org>
4352 * tests/invoke/Makefile.am: Make the generated metadata
4353 depend on the g-idl-compiler
4355 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4357 * tools/gidlmodule.c
4358 * tools/gidlmodule.h
4361 Remove the old g-idl-compiler code.
4364 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4366 * tools/quote-file.sh
4369 Move to using the 'C' struct compiler code.
4371 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4373 * girepository/ginfo.c
4375 Change the way that external references with no namespace
4376 are dealt with. External references with no namespace
4377 are placed into the XML as-if they are a local reference.
4378 This is temporary, but helps with roundtrip tests.
4380 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4382 * girepository/ginfo.c
4383 Add the ability to get the value of a constant of
4384 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4385 is provided as a string.
4387 This would deal properly with:
4388 typedef char* random;
4389 const random = "A string";
4391 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4393 * girepository/ginfo.c
4394 * girepository/girepository.h
4396 Add a function to check if an enum is registered or not.
4397 Previously anything testing this relied on the g-type
4398 string offset having a value of 0.
4400 * girepository/gmetadata.c
4401 * girepository/gmetadata.h
4403 Remove unneccesary or erroneous checks. There were two
4404 metadata validation checks which made sure that the blob
4405 sizes were the same as some magic numbers compiled into the code.
4406 This is wrong as it breaks any forwards compatibility that may
4409 Checks were also present that made sure that unregistered type
4410 blobs had a value of 0 in the g-type offset field. This is
4411 unneccessary. If a type blob is unregistered then any value
4412 in its g-type field is simply invalid.
4414 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4416 * girepository/ginfo.c
4417 * girepository/gmetadata.c
4418 * girepository/gmetadata.h
4420 Change the metadata format to have a standard header
4421 for all the type blobs. Merge the SimpleTypeBlob
4422 and InterfaceTypeBlob into a union. A union of these
4423 two blobs existed previously but was not explicit
4424 in the metadata format.
4426 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4428 * tools/gidlcompilercontext.c
4429 * tools/gidlcompilercontext.h
4430 * tools/gidlcompilerentrynode.c
4431 * tools/gidlcompilerentrynode.h
4432 * tools/gidlcompilertypenode.c
4433 * tools/gidlcompilertypenode.h
4435 Add code to compile a tree of GIdlNodes to
4436 a 'C' struct representing the metadata.
4437 This is to aid cross-compiling. Previously
4438 the g-idl-compiler created a binary blob with
4439 data written in the byte order and alignment
4440 of the tool rather than the intended target.
4442 Cleaned up and improved by Johan and Robert :-)
4444 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4446 * girepository/ginvoke.c
4447 * girepository/girepository.h
4448 * girepository/gmetadata.c
4449 * girepository/gmetadata.h
4451 * tools/gidlparser.c
4452 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4453 to avoid confusion with the interface blob.
4456 * tools/gidlparser.c
4457 Remove magic numbers and replace with type-tag
4458 enumeration symbols.
4460 * girepository/gmetadata.c
4461 Add validate declaration.
4463 2008-03-10 Jürg Billeter <j@bitron.ch>
4465 * tools/gidlparser.c: (parse_type_internal):
4466 * tools/scannerlexer.l:
4467 * tools/scannerparser.y:
4468 Support C99 _Bool type in scanner.
4470 2008-03-10 Jürg Billeter <j@bitron.ch>
4472 * tests/parser/Foo-expected.gidl:
4473 * tests/parser/foo-object.h:
4474 * tests/parser/foo.c: (foo_enum_method):
4475 * tools/scanner.c: (g_igenerator_process_function_symbol):
4476 Don't skip functions that are defined in the namespace of a type
4477 that doesn't support methods, as for example enums.
4479 2008-03-10 Johan Dahlin <johan@gnome.org>
4481 * gidl.dtd: Remove, we're using relaxng for now
4483 * tests/parser/Foo-expected.gidl:
4484 * tests/parser/foo-object.h:
4485 * tests/parser/foo.c:
4486 Rename the enum/flags get_type functions to include the whole type.
4488 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4490 * tools/gidlwriter.c (enum_generate): added "type-name",
4491 "get-type" and "deprecated" missing arguments.
4492 * tests/parser/Foo-expected.gidl:
4493 * tests/parser/foo-object.h: test enum type, and no type.
4495 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4498 Consistent checks, add missing 'test'
4500 2008-03-05 Havoc Pennington <hp@redhat.com>
4502 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4503 does on Fedora 8. Make libffi a hard requirement, since it was in
4504 practice anyway (was not really conditional in the code or
4505 makefile, only in configure).
4507 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4509 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4510 reviewed by: Johan Dahlin <johan@gnome.org>
4512 * tests/Makefile.am:
4513 * tests/roundtrips.sh:
4514 Modify the roundtrips test so that they do not use the
4515 --raw option of the gidl compiler but instead compile a
4516 shared library to use with g_module.
4518 * tests/invoke/Makefile.am:
4519 * tests/invoke/invoke.c:
4520 Modify the invoke tests to build a shared library rather
4521 than use the --raw option.
4523 * tests/invoke/invoke-namespace-find.sh: Removed:
4524 Noone knows why this was here, so removed.
4526 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4528 * tools/scanner.c: (g_igenerator_process_function_symbol):
4529 Move g_idl_node_can_have_member test later, as it broke spotting
4530 get_type's for nodes that can't have members.
4532 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4535 * tools/gidlnode.c: (g_idl_node_can_have_member):
4536 Add g_idl_node_can_have_member.
4538 * tools/scanner.c: (g_igenerator_process_function_symbol):
4539 Use g_idl_node_can_have_member to test if we should add a function
4540 as a member of the type node.
4542 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4544 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4546 * tests/parser/Makefile.am:
4547 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4549 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4551 * tools/scanner.c: (main):
4552 Ignore -pthread when passed to g-idl-scanner.
4554 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4556 * tools/grealpath.h: Added:
4557 * tools/scanner.c: (main):
4558 * tools/scannerlexer.l:
4559 * tools/Makefile.am:
4560 Always use absolute paths with symbolic links resolved when
4561 comparing filenames.
4563 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4565 * gobject-introspection.pc.in:
4566 Provide variables for g-idl-parser, scanner and compiler in the
4569 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4572 * girepository/Makefile.am:
4573 * tools/Makefile.am:
4574 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4576 2008-02-10 Johan Dahlin <johan@gnome.org>
4578 * tests/parser/Foo-expected.gidl:
4579 * tests/parser/foo-object.h:
4580 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4581 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4584 2008-02-10 Johan Dahlin <johan@gnome.org>
4586 * tests/parser/Foo-expected.gidl:
4587 * tests/parser/foo-object.h:
4588 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4589 Add enum and flags test.
4591 2008-02-10 Johan Dahlin <johan@gnome.org>
4595 * girepository/Makefile.am:
4596 Make 'make distcheck' work again.
4598 2008-02-10 Johan Dahlin <johan@gnome.org>
4600 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4603 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4604 check, eg exclude it from BUILT_SOURCES.
4606 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4611 * girepository/Makefile.am:
4612 * m4/Makefile.am: Added:
4613 * m4/as-compiler-flag.m4: Added:
4614 * m4/gcov.m4: Added:
4615 * tools/Makefile.am:
4616 Add ability to generate a coverage report.
4617 Adds configure option --enable-gcov and make rule 'check-coverage'.
4619 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4623 * gidl/Makefile.am: Added:
4624 * girepository/Makefile.am: Added:
4625 * src/Makefile.am: Renamed to tools/Makefile.am:
4626 * src/compiler.c: Renamed to tools/compiler.c:
4627 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4628 * src/generate.c: Renamed to tools/generate.c:
4629 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4630 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4631 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4632 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4633 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4634 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4635 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4636 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4637 * src/ginfo.c: Renamed to girepository/ginfo.c:
4638 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4639 * src/girepository.c: Renamed to girepository/girepository.c:
4640 * src/girepository.h: Renamed to girepository/girepository.h:
4641 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4642 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4643 * src/scanner.c: Renamed to tools/scanner.c:
4644 * src/scanner.h: Renamed to tools/scanner.h:
4645 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4646 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4647 * tests/invoke/Makefile.am:
4648 Split src/ into girepository/ and tools/
4652 * girepository/Makefile.am:
4653 * tests/Makefile.am:
4654 * tests/invoke/Makefile.am:
4655 * tests/parser/Makefile.am:
4656 * tests/roundtrips.sh:
4657 * tools/Makefile.am:
4658 Make distcheck work.
4660 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4662 * tests/invoke/invoke.c: (main):
4663 * tests/invoke/testfns.c: (test6), (test7):
4664 * tests/invoke/testfns.xml:
4665 Add tests for invokation with a GList argument.
4666 Also tests caller-owns return values.
4668 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4671 Add some documentation for GICallableInfo
4673 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4676 Correct syntax errors in the DTD file.
4678 * relaxng/c-types.xml:
4679 * relaxng/g-types.xml:
4681 Add a RelaxNG specification for the GObject Introspection XML data.
4682 The Specification has validated all of the test files.
4684 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4686 * tests/roundtrips.sh:
4687 * tests/struct.test:
4688 Add roundtrip tests for structs.
4690 2008-01-11 Johan Dahlin <johan@gnome.org>
4692 * src/scanner.c (g_igenerator_process_function_symbol):
4693 Refactor out g_idle_node_add_member.
4694 (create_node_from_gtype, create_node_from_ctype):
4695 Use case instead of if...else
4696 (get_type_from_type_id):
4697 Rename to create_node_from_gtype
4698 (get_type_from_ctype):
4699 Rename to create_node_from_ctype
4701 Rename ginode -> node, gitype -> type, gifunc -> func.
4703 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4704 Two new functions, refactor out of scanner.c
4706 * src/scanner.c: (g_igenerator_process_function_symbol):
4707 * src/scannerlexer.l:
4708 Do not save the content of the deprecated variable, only
4711 2008-01-11 Johan Dahlin <johan@gnome.org>
4713 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4715 2008-01-11 Jürg Billeter <j@bitron.ch>
4717 * src/scannerlexer.l:
4718 Fix GTK-Doc parsing.
4720 2008-01-11 Jürg Billeter <j@bitron.ch>
4722 * src/scannerlexer.l:
4723 Fix GTK-Doc parsing.
4725 2008-01-11 Jürg Billeter <j@bitron.ch>
4727 * src/scanner.c: (lookup_symbol):
4728 Return unresolved name if we find unknown symbol.
4730 2008-01-11 Jürg Billeter <j@bitron.ch>
4732 * src/scanner.c: (g_igenerator_generate):
4733 Initialize GObject to fix scanning interface properties.
4735 * tests/parser/Foo-expected.gidl:
4736 * tests/parser/foo-object.h:
4737 * tests/parser/foo.c: (foo_interface_get_type):
4738 Test interfaces with GObject prerequisite.
4740 * tests/parser/Makefile.am:
4741 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4743 2007-12-27 Johan Dahlin <johan@gnome.org>
4745 * src/scannerlexer.l:
4746 Parse gtk-doc comments.
4748 * src/gidlwriter.c: (function_generate):
4749 Reorganize, avoid duplication and add support for
4750 writing deprecated functions.
4752 * src/scannerparser.y:
4754 Add new structure CDirective and functions to create/free them.
4756 * src/scanner.c: (g_igenerator_process_function_symbol),
4757 (g_igenerator_process_unregistered_struct_typedef),
4758 (g_igenerator_process_struct_typedef),
4759 (g_igenerator_process_union_typedef),
4760 (g_igenerator_process_enum_typedef),
4761 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4762 (g_igenerator_start_preprocessor):
4763 Parse @deprecated directive for functions.
4764 Remove some more C99isms.
4765 Send in -C to cpp to avoid stripping comments.
4767 * tests/parser/foo-object.h:
4768 * tests/parser/Foo-expected.gidl:
4769 Add deprecated directive
4771 2007-12-27 Johan Dahlin <johan@gnome.org>
4773 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4774 escape ' and " so it looks more like C.
4777 Unlink temporary file used.
4779 2007-12-27 Johan Dahlin <johan@gnome.org>
4781 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4782 (g_igenerator_start_preprocessor), (main):
4784 * src/scannerparser.y:
4785 Plug a couple of simple memory leaks.
4787 2007-12-27 Johan Dahlin <johan@gnome.org>
4789 * src/scanner.c: (g_igenerator_parse_macros),
4790 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4793 * src/scannerparser.y:
4794 * tests/parser/Makefile.am:
4796 Improve error reporting, return when the preprocessor fails.
4797 Add a verbose parameter, to aid debugging.
4798 Revert to using a temporary file to communicate between the
4799 preprocessor and the parser, because we need to wait for
4800 the exit code from the pre-processor before starting to parse.
4802 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
4804 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
4805 cparser.y to scannerparser.y
4807 2007-12-11 Johan Dahlin <johan@gnome.org>
4811 * src/scanner.c: (g_igenerator_new):
4813 Get rid of the global the_generator variable.
4815 2007-12-10 Johan Dahlin <johan@gnome.org>
4817 * src/scanner.c (main): Add an output option,
4818 add checks for required parameters
4821 set BUILD_SOURCES and CLEANFILES properly
4823 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
4824 (g_writer_write_indent), (g_writer_write_unindent),
4825 (field_generate), (value_generate), (constant_generate),
4826 (property_generate), (function_generate), (vfunc_generate),
4827 (signal_generate), (interface_generate), (struct_generate),
4828 (union_generate), (boxed_generate), (enum_generate),
4829 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
4831 * src/scanner.c: (g_igenerator_generate):
4833 * src/scannerwriter.c:
4835 Refactor scannerwriter to only be tied to a GIdlModule and move
4836 it (again!) to gidlwriter.c. Change the writer function to take
4839 2007-12-10 Johan Dahlin <johan@gnome.org>
4842 * src/scanner.c: (g_igenerator_generate):
4844 * src/scannerwriter.c: (g_igenerator_write_inline),
4845 (g_igenerator_write), (g_igenerator_write_indent),
4846 (g_igenerator_write_unindent), (field_generate), (value_generate),
4847 (constant_generate), (property_generate), (function_generate),
4848 (vfunc_generate), (signal_generate), (interface_generate),
4849 (struct_generate), (union_generate), (boxed_generate),
4850 (enum_generate), (node_generate), (module_generate),
4851 (g_scanner_write_file):
4853 Move the scanner gidl writing to a separate source file.
4855 2007-12-10 Johan Dahlin <johan@gnome.org>
4860 Move over all CType construction functions.
4862 * tests/parser/Makefile.am:
4863 Be verbose when printing parsing tests results.
4865 2007-12-10 Johan Dahlin <johan@gnome.org>
4867 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
4868 preprocessor handling to here. Start cpp insteado of cc -E,
4869 always include -U__GNUC__, since it's specific to the preprocessor
4872 * tests/parser/Makefile.am (check-local): Silent diff and skip
4873 -U__GNUC__ which is always defined now
4875 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
4877 reviewed by: <delete if not using a buddy>
4879 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
4880 * tests/parser/Makefile.am:
4882 2007-12-09 Johan Dahlin <johan@gnome.org>
4885 Use GOption for command line options.
4886 (g_igenerator_new, main): Simplify constructor and they way
4887 parameters are passed into it.
4893 * src/gen-introspect.c:
4894 * src/gen-introspect.h:
4896 Rename gen-introspect.[ch] to scanner.[ch]
4898 2007-12-09 Johan Dahlin <johan@gnome.org>
4902 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
4903 don't make the repository library and the other utilites link against
4906 * src/gen-introspect.c: (g_igenerator_create_object),
4907 (g_igenerator_create_interface), (g_igenerator_create_boxed),
4908 (g_igenerator_create_enum), (g_igenerator_create_flags),
4909 (g_igenerator_process_module_symbol),
4910 (g_igenerator_process_module), (g_igenerator_generate), (main):
4911 * src/gen-introspect.h:
4912 Refactor g_igenerator_process_types into smaller pieces.
4914 * tests/parser/Makefile.am:
4915 Depend on the gen-introspect binary
4917 2007-12-09 Johan Dahlin <johan@gnome.org>
4919 * src/gen-introspect.c (g_igenerator_process_types):
4920 Break into smaller pieces, one for each generated node type.
4922 2007-12-08 Johan Dahlin <johan@gnome.org>
4924 * src/gen-introspect.c: (g_igenerator_process_types),
4925 (g_igenerator_add_module):
4926 * tests/parser/Foo-expected.gidl:
4927 * tests/parser/foo-object.h:
4928 * tests/parser/foo.c: (foo_subobject_class_init),
4929 (foo_subobject_init):
4931 Add a subobject test and make sure to register defined classes
4932 in the lookup symbol hash table.
4934 2007-12-08 Johan Dahlin <johan@gnome.org>
4938 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
4939 (g_igenerator_process_types), (g_igenerator_add_module),
4940 (g_igenerator_add_include_idl), (main):
4941 * src/gen-introspect.h:
4942 * tests/parser/Makefile.am:
4943 * tests/parser/Foo-expected.gidl:
4945 Change the gen-introspect to generate namespaced module names,
4946 such as GLib.Object instead of GObject.
4947 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
4948 add a --include-idl parameter to gen-introspect,
4949 and update the parser test.
4951 2007-12-08 Johan Dahlin <johan@gnome.org>
4953 * src/gen-introspect.c:
4954 Move main to the end of the file and attempt to make it valid
4957 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
4958 we're not quite ready to generate metadata yet.
4963 Add a simple gen-introspect parser test
4965 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
4967 reviewed by: Johan Dahlin <johan@gnome.org>
4970 * gobject-introspection.pc.in:
4972 * src/compiler.c: (format_output), (write_out_metadata), (main):
4973 * src/gen-introspect.c: (main):
4974 * src/gen-introspect.h:
4975 * src/generate.c: (write_callable_info), (write_repository),
4976 (load_metadata), (main):
4977 * src/gidlmodule.c: (g_idl_module_new),
4978 (g_idl_module_build_metadata):
4980 * src/gidlparser.c: (start_element_handler):
4981 * src/ginfo.c: (g_info_new), (g_info_from_entry),
4982 (g_base_info_get_name), (g_base_info_get_namespace),
4983 (g_base_info_is_deprecated), (g_base_info_get_annotation),
4984 (g_base_info_get_metadata), (g_function_info_get_symbol),
4985 (g_function_info_get_flags), (g_function_info_get_property),
4986 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
4987 (g_callable_info_may_return_null),
4988 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
4989 (g_callable_info_get_arg), (g_arg_info_get_direction),
4990 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
4991 (g_arg_info_is_optional), (g_arg_info_may_be_null),
4992 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
4993 (g_type_info_get_tag), (g_type_info_get_param_type),
4994 (g_type_info_get_interface), (g_type_info_get_array_length),
4995 (g_type_info_is_zero_terminated),
4996 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4997 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
4998 (g_value_info_get_value), (g_field_info_get_flags),
4999 (g_field_info_get_size), (g_field_info_get_offset),
5000 (g_registered_type_info_get_type_name),
5001 (g_registered_type_info_get_type_init),
5002 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5003 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5004 (find_method), (g_struct_info_find_method),
5005 (g_enum_info_get_n_values), (g_enum_info_get_value),
5006 (g_object_info_get_parent), (g_object_info_get_type_name),
5007 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5008 (g_object_info_get_interface), (g_object_info_get_n_fields),
5009 (g_object_info_get_field), (g_object_info_get_n_properties),
5010 (g_object_info_get_property), (g_object_info_get_n_methods),
5011 (g_object_info_get_method), (g_object_info_find_method),
5012 (g_object_info_get_n_signals), (g_object_info_get_signal),
5013 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5014 (g_object_info_get_n_constants), (g_object_info_get_constant),
5015 (g_interface_info_get_n_prerequisites),
5016 (g_interface_info_get_prerequisite),
5017 (g_interface_info_get_n_properties),
5018 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5019 (g_interface_info_get_method), (g_interface_info_find_method),
5020 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5021 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5022 (g_interface_info_get_n_constants),
5023 (g_interface_info_get_constant), (g_property_info_get_flags),
5024 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5025 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5026 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5027 (g_constant_info_get_value), (g_union_info_get_n_fields),
5028 (g_union_info_get_field), (g_union_info_get_n_methods),
5029 (g_union_info_get_method), (g_union_info_is_discriminated),
5030 (g_union_info_get_discriminator_offset),
5031 (g_union_info_get_discriminator):
5032 * src/ginvoke.c: (g_function_info_invoke):
5033 * src/girepository.c: (g_irepository_register),
5034 (g_irepository_unregister), (g_irepository_get_default),
5035 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5036 (g_irepository_get_info), (g_irepository_find_by_name),
5037 (g_irepository_get_shared_library),
5038 (g_irepository_build_search_path), (g_irepository_register_file),
5039 (g_irepository_error_quark):
5040 * src/girepository.h:
5041 * src/gmetadata.c: (g_metadata_get_dir_entry),
5042 (g_metadata_check_sanity), (validate_header),
5043 (validate_array_type_blob), (validate_iface_type_blob),
5044 (validate_param_type_blob), (validate_error_type_blob),
5045 (validate_type_blob), (validate_arg_blob),
5046 (validate_signature_blob), (validate_function_blob),
5047 (validate_callback_blob), (validate_constant_blob),
5048 (validate_value_blob), (validate_field_blob),
5049 (validate_property_blob), (validate_signal_blob),
5050 (validate_vfunc_blob), (validate_struct_blob),
5051 (validate_enum_blob), (validate_object_blob),
5052 (validate_interface_blob), (validate_errordomain_blob),
5053 (validate_union_blob), (validate_blob), (validate_directory),
5054 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5055 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5056 (g_metadata_new_from_mapped_file), (g_metadata_free),
5057 (g_metadata_set_module), (g_metadata_get_namespace):
5059 * tests/Makefile.am:
5060 * tests/invoke/Makefile.am:
5061 * tests/invoke/invoke-namespace-find.sh:
5062 * tests/invoke/invoke.c: (main):
5064 Add a namespace/shared library mapping. fixes #313268.
5066 2007-12-03 Johan Dahlin <johan@gnome.org>
5068 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5071 2007-11-30 Jürg Billeter <j@bitron.ch>
5077 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5078 (g_igenerator_write_inline), (g_igenerator_write),
5079 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5080 (field_generate), (value_generate), (constant_generate),
5081 (property_generate), (function_generate), (vfunc_generate),
5082 (signal_generate), (interface_generate), (struct_generate),
5083 (union_generate), (boxed_generate), (enum_generate),
5084 (node_generate), (module_generate), (get_type_from_type_id),
5085 (str_replace), (g_igenerator_process_properties),
5086 (g_igenerator_process_signals), (g_igenerator_process_types),
5087 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5088 (g_igenerator_process_unregistered_struct_typedef),
5089 (g_igenerator_process_struct_typedef),
5090 (g_igenerator_process_union_typedef),
5091 (g_igenerator_process_enum_typedef),
5092 (g_igenerator_process_function_typedef),
5093 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5094 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5095 (g_igenerator_generate), (main), (csymbol_new),
5096 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5097 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5098 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5099 (eat_hspace), (eat_line), (read_identifier),
5100 (g_igenerator_parse_macros):
5101 * src/gen-introspect.h:
5103 Import gen-introspect to generate introspection information by
5106 2007-11-30 Jürg Billeter <j@bitron.ch>
5108 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5110 2007-11-30 Jürg Billeter <j@bitron.ch>
5112 * src/gidlparser.c: (end_element_handler): Don't leave requires
5115 2007-11-29 Johan Dahlin <johan@gnome.org>
5117 * src/gidlparser.c (parse_type_internal): Add char,
5118 gchar and guchar to the builtin types.
5120 2007-11-26 Johan Dahlin <johan@gnome.org>
5122 * src/ginfo.c: (g_object_info_get_type_name),
5123 (g_object_info_get_type_init):
5124 * src/girepository.c: (g_irepository_is_registered):
5125 * src/girepository.h:
5127 Add g_object_info_get_type_name, g_object_info_get_type_init and
5128 g_irepository_is_registered.
5130 2006-08-14 Jürg Billeter <j@bitron.ch>
5132 * src/gidlparser.c: (end_element_handler): Don't leave
5133 namespace and implements states too early.
5136 2007-11-26 Johan Dahlin <johan@gnome.org>
5138 * src/gmetadata.c (validate_struct_blob):
5139 pass blob_type to validate_function_blob instead of
5140 hard-coding BLOB_TYPE_STRUCT.
5142 Patch by Torsten Schoenfeld, fixes #314190
5144 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5146 * src/compiler.c, src/generate.c, src/gidlnode.c,
5147 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5148 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5149 warnings about return values, signedness mismatches, unused
5150 variables, and unhandles enum values in switch statements.
5152 * tests/invoke/Makefile.am: Don't install the invoke test program.
5153 Add -I ../../src to the cflags used for the test functions files.
5155 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5157 * src/girepository.h: Export g_invoke_error_quark.
5159 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5161 * src/ginvoke.c: Remove the fallback implementation of
5162 g_function_info_invoke since we now formally depend on libffi.
5164 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5166 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5167 Remove these files from cvs, as they are now generated.
5169 * src/gmetadata.c (validate_iface_type_blob): Don't
5170 complain if blob->pointer is not set, since that
5171 happens for enum and flag types. (#308935, Gustavo
5174 * Commit an autoconf-conversion patch by
5175 Gustavo Carneiro (#308708)
5177 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5179 * src/compiler.c (main): Use it here to validate
5180 the generated metadata.
5182 * src/gmetadata.[hc]: Add code to validate a
5185 * metadata-format.txt: Updates
5187 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5189 * tests/*: Add struct offsets to field and vfunc
5192 * src/generate.c (write_vfunc_info): Write offset
5193 information for vfuncs.
5195 * src/gidlnode.c (g_idl_node_build_metadata): Write
5196 the struct offsets into the metadata.
5198 * src/gidlparser.c: Parse the offset attributes of
5199 field and vfunc elements.
5201 * src/gidlnode.h: Add offset members to field and
5204 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5208 * gidl.dtd: Updates.
5210 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5211 file, creates, compiles and runs a C file, and folds the
5212 resulting struct offsets back into the .gidl file.
5214 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5216 * src/gidlparser.c (start_field): Make fields in objects
5219 * src/gidlmodule.c: Include string.h
5224 * metadata-format.txt: Cleanup basic types.
5225 * src/*: Adapt to the changes.
5226 * tests/*: Adapt to the changes.
5227 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5229 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5230 size for enum blobs.
5231 (g_idl_node_get_full_size): Report the correct size for
5234 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5235 error checking for blob sizes.
5237 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5239 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5240 interface types for which is_pointer is FALSE, e.g. enums.
5242 * src/gidlnode.c (g_idl_node_get_full_size)
5243 * src/gidlparser.c (parse_type_internal):
5244 * src/generate.c (write_type_info): Support unspecialized
5245 lists, hashtables and errors. Also emit a '*' after these.
5249 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5253 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5255 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5257 * src/*.c: Change the directory to be addressed by
5258 1-based indexes, and use an index of zero to mean
5261 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5263 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5265 * tests/union.test: Add a union test.
5267 * src/generate.c: Handle unions.
5269 * src/girepository.h:
5270 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5272 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5274 * src/gidlparser.c (start_union): Parse <union> elements.
5276 * src/gidlnode.h: Add a GIdlNodeUnion.
5278 * gidl.dtd: Add a <union> element.
5280 * src/gmetadata.c (g_metadata_check_sanity): Check
5283 * src/gmetadata.h: Add union_blob_size to Header,
5286 * metadata-format.txt: Add a UnionBlob.
5288 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5290 * tests/*: Update testcases.
5292 * src/generate.c (write_callable_info): Don't forget to
5293 write transfer and null-ok attributes for return types
5296 * src/girepository.h:
5297 * src/ginfo.c (g_callable_info_may_return_null):
5298 New function to find out if a function may return NULL.
5300 * src/compiler.c (format_output): Make the generated
5303 * README: Point to a recent libffi snapshot.
5305 * tests/invoke/*: Some invoke tests.
5307 * src/Makefile: Add ginvoke.c and the necessary
5310 * src/girepository.h (g_function_info_invoke): Add
5313 * src/ginvoke.c (g_function_info_invoke): Initial
5314 implementation of invoke functionality based on libffi.
5316 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5317 strings and types hash tables in the right order when
5319 (find_entry_node): Free the name parts.
5321 2005-05-12 Johan Dahlin <johan@gnome.org>
5323 * src/generate.c: Generate consistent end tags.
5327 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5331 * src/gidlparser.c (start_function): Actually add
5332 methods to objects. (Steven Walter)
5334 * src/girepository.h:
5335 * src/ginfo.c: Rename Transfer and Direction to
5336 GITransfer and GIDirection. (Torsten Schoenfeld)
5338 * tests/*: Make tests work with the changes in name
5341 * src/gidlnode.c (find_entry_node): Parse qualified
5342 names and generate xref nodes for them if needed. Don't
5343 require all modules to be loaded any more.
5345 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5348 * src/ginfo.c (g_object_info_get_parent): Return NULL
5349 if blob->parent is 0. Still need to make sure index
5352 * src/generate.c: Generate qualified names when
5353 referring to non-local types. Emit transfer attribute
5356 * src/compiler.c (format_output): Put the function
5357 attributes where gcc accepts them.
5359 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5361 * src/compiler.c (main): Add a --verbose cmdline option
5362 and only log messages if it is specified.
5365 * src/gidlnode.c (init_stats, dump_stats): Collect some
5366 statistics on string and type sharing.
5368 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5369 g_message() instead of fprintf().
5371 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5372 (g_idl_node_get_size): Implement for structs.
5373 (g_idl_node_get_full_size): Handle parent being NULL.
5374 (serialize_type): Handle lookup failures more gracefully.
5376 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5378 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5379 size calculation for 2-parameter types and for objects.
5381 * src/compiler.c: Add a cmdline option for debug output
5382 and install a log handler to implement it.
5383 * src/gidlnode.c: Add some debug spew.
5387 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5388 forget to count the module name when calculating the
5389 required size for the metadata.
5392 * src/gidlparser.c: Fix compiler warnings.
5394 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5396 * src/compiler.c (main): Free the option context.
5398 * gidl.dtd: Clean up handling of names. All elements
5399 have a "name", only the elements corresponding to
5400 actual callable functions (function, method, constructor),
5401 have an additional "symbol" attribute holding the
5402 dlsym()-able function name.
5404 * src/generate.c: Adapt to generate xml matching the
5408 * src/gidlnode.c: Adapt to parse the new dtd.
5410 * tests/*.test: Adjust to the new dtd.
5412 * metadata-format.txt:
5413 * src/gmetadata.h: Remove the short_name field
5415 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5416 * src/girepository.h:
5417 * src/ginfo.c (g_value_info_get_short_name): Removed
5419 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5421 * gidl.dtd: Allow constructors for boxed types,
5422 patch by Jonathan Blandford.
5425 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5427 * --- Initial import ---