1 2009-01-03 Jürg Billeter <j@bitron.ch>
5 * giscanner/girparser.py:
6 * giscanner/glibtransformer.py:
7 * giscanner/sourcescanner.py:
8 * giscanner/transformer.py:
9 * giscanner/xmlwriter.py:
11 Fix inconsistencies with PEP8
13 2008-12-21 Johan Dahlin <jdahlin@async.com.br>
16 Annotate transfer, direction and allow none for
17 g_file_load_contents, g_file_load_contents_finish and
18 g_file_load_partial_contents_finish parameters.
20 2008-12-12 Owen Taylor <otaylor@redhat.com>
22 Disable array auto-detection for out-annotated parameters (#563934)
24 If we have a parameter annotated as (out), then having a ctype of
25 'char **' (or similar) doesn't necessarily indicate an array.
27 * giscanner/transformer.py: Skip array-detection logic for
28 (out)-annotated parameters.
29 * tests/scanner/annotation.h tests/scanner/annotation.c
30 tests/scanner/annotation-1.0-expected.gir
31 tests/scanner/annotation-1.0-expected.tgir: Add a test for
32 an (out) string parameter.
34 2008-12-12 Johan Dahlin <jdahlin@async.com.br>
36 * giscanner/dumper.py (DumpCompiler._link): Pass in
37 --tag=CC to libtool to avoid making libtool confused
38 when CC is different from gcc on some systems.
40 2008-12-10 Johan Bilien <jobi@via.ecp.fr>
42 Bug 563998 – Cache the GIBaseInfo for GTypes
44 * girepository/girepository.c (g_irepository_find_by_gtype):
45 add a cache of GType -> GIBaseInfo.
47 2008-12-09 Johan Bilien <jobi@via.ecp.fr>
49 Bug 562545 – Add function taking / returning GValue
51 * tests/everything/everything.[ch]: add a test of function taking and
52 returning "const GValue *"
54 2008-12-09 Johan Dahlin <johan@async.com.br>
56 * giscanner/cachestore.py (CacheStore.store): Use
57 shutil.move instead of os.rename, since it will
58 automatically fall back to copying+remove if the
59 src directory is on a different partition from
62 2008-12-08 Tristan Van Berkom <tristan.van.berkom@gmail.com>
64 Bug 563742 – introspection should record the introduced version of
65 symbols marked with the "Since:" tag
70 * giscanner/girwriter.py:
71 * giscanner/scannerlexer.l:
72 * giscanner/transformer.py:
73 * tests/scanner/annotation-1.0-expected.gir:
74 * tests/scanner/annotation-1.0-expected.tgir:
75 * tests/scanner/annotation.c (annotation_versioned):
76 * tests/scanner/annotation.h:
78 2008-12-08 Johan Dahlin <johan@async.com.br>
80 * giscanner/cachestore.py (_get_cachedir): Don't require
81 HOME to be set and if it set, don't require the
84 2008-12-08 Johan Dahlin <johan@async.com.br>
86 * giscanner/cachestore.py (CacheStore.store): Dump the cache
87 file to a temporary file and rename it the expected filename
88 only when it's completely written.
89 This should make the cache more roboust when run in parallel,
90 and hopefully avoid triggering bugs in Python.
92 2008-12-03 Christophe Fergeau <teuf@gnome.org>
94 Bug 562971 – g-ir-scanner failure on libgpod headers
96 * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
97 default 16384. Without it, the lexer was aborting with a cryptic
98 error message on source files containing really long comment
101 2008-12-01 Colin Walters <walters@verbum.org>
103 * girepository/gfield.c: Fix memory leak; unref type info we
104 created, not field info
106 2008-11-30 Johan Dahlin <jdahlin@async.com.br>
108 Bug 562289 – Race when removing invalid cache
110 * giscanner/cachestore.py:
111 ENOENT is mapped to a OSError, not IOError.
113 2008-11-27 Johan Dahlin <jdahlin@async.com.br>
115 * gir/glib-2.0.c: Add return value transfer annotation
116 for g_markup_escape_text.
118 2008-11-25 Colin Walters <walters@verbum.org>
120 * tools/g-ir-scanner: Add --libtool option which we expect Automake-using
122 * giscanner/dumper.py: Implement it.
123 * gir/Makefile.am, tests/**/Makefile.am: Use it.
125 2008-11-25 Colin Walters <walters@verbum.org>
127 * tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
128 to just use a Makefile rule and dependencies. This corresponds with a change
129 made to gir-repository to fix srcdir != builddir issues.
131 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
134 Post release version bump
137 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
142 2008-11-25 Colin Walters <walters@verbum.org>
144 Bug 559705 – Missing association between static methods and classes
146 * docs/typelib-format.txt:
147 * girepository/ginfo.c (g_function_info_get_flags):
148 * girepository/girmodule.c (g_ir_module_build_typelib):
149 * girepository/girnode.c (g_ir_node_get_size),
150 (g_ir_node_build_typelib):
151 * girepository/girparser.c (start_function):
152 * girepository/gtypelib.c (g_typelib_check_sanity),
153 (validate_header), (validate_function_blob):
154 * girepository/gtypelib.h:
156 * giscanner/girwriter.py:
157 * giscanner/glibtransformer.py:
158 * tests/scanner/foo-1.0-expected.gir:
159 * tests/scanner/foo-1.0-expected.tgir:
160 * tests/scanner/foo.h:
162 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
164 * giscanner/ast.py: Define socklen_t as an alias for int32.
166 2008-11-24 Johan Dahlin <jdahlin@async.com.br>
168 * girepository/gdump.c (dump_type): Remove a warning,
169 be less verbose on error on fundamental types.
171 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
173 * giscanner/dumper.py: Add license headers,
174 refactor into a class, avoid some duplication and do some
175 extra pedantic checks.
177 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
179 Make it compilable with -Werror on my system by adding
180 a couple of prototypes and including headers.
182 2008-11-23 Johan Dahlin <jdahlin@async.com.br>
184 Bug 562022 – gobject-introspection needs python headers
186 * configure.ac: fail without python headers present.
189 2008-11-21 Johan Dahlin <jdahlin@async.com.br>
191 Bug 561617 – Return value array annotations
193 * giscanner/transformer.py:
194 * tests/scanner/annotation.c (annotation_return_array):
195 * tests/scanner/annotation.h:
196 Add support for (array) for return value annotations as well.
198 2008-11-20 Johan Bilien <jobi@via.ecp.fr>
200 * tests/everything/everything.[ch]: add a test function which calls a
203 2008-11-19 Johan Dahlin <jdahlin@async.com.br>
205 * giscanner/cachestore.py:
206 Catch ValueError exceptions.
208 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi>
210 * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
212 2008-11-18 Andreas Rottmann <a.rottmann@gmx.at>
214 * girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
215 instead of hard-coding struct sizes.
217 2008-11-18 Owen Taylor <otaylor@redhat.com>
219 Bug 561296 - Add "storage type" to the typelib data for enums
221 In order to set and get enum and flag fields in structures, we need
222 to know the integral type that the enumeration is stored as. We are already
223 computing that at compile time in order to compute struct offsets, so the
224 easiest thing to do is to save that in the typelib.
226 * docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
227 girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
228 and compute and save it at compile time.
230 * girepository/girepository.h girepository/ginfo.c:
231 Add g_enum_info_get_storage_type().
233 * girepository/gfield.c: Implement reading and writing enum and flags fields
234 based on the storage type.
236 2008-11-18 Owen Taylor <otaylor@redhat.com>
238 Add enums to the Everything test module
240 * tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
241 test module and register them as GTypes.
243 https://bugzilla.gnome.org/show_bug.cgi?id=561296
245 2008-11-18 Johan Dahlin <jdahlin@async.com.br>
247 * giscanner/cachestore.py:
248 Catch BadPickleGet exceptions as well.
250 2008-11-17 Owen Taylor <otaylor@redhat.com>
252 * tests/everything/everything.c: Fix doc comment annotations
253 for test_struct_b_clone() to refer to the right function.
255 2008-11-17 Dan Winship <danw@gnome.org>
257 * giscanner/glibtransformer.py (GLibTransformer.__init__): fix
258 spelling of GHashTable. #561135
260 * tests/scanner/annotation.c (annotation_object_get_hash):
261 * tests/scanner/annotation-1.0-expected.gir:
262 * tests/scanner/annotation-1.0-expected.tgir: add a test of
263 GHashTable annotations
265 2008-11-17 Andreas Rottmann <a.rottmann@gmx.at>
267 * giscanner/ast.py: Change string array match type to be in terms
268 of canonicalized type.
269 * giscanner/transformer.py: Add canonicalize_ctype which gives us
270 a version of a c:type without aliases, so we can deep canonicalize
271 char** to utf8*. Update parse_ctype to use it.
272 * tests/*: Add gtk_init like int*/char*** arg functions for testing.
274 2008-11-16 Colin Walters <walters@verbum.org>
276 * girepository/girepository.c: Ensure we always call init_globals,
277 even if passed a non-default repository.
279 2008-11-16 Colin Walters <walters@verbum.org>
281 Bug 559706 - Interface prerequisites
283 * common.mk: Dep on libgirepository.la for scanner libs so that
284 we rebuild things even if just gdump.c changes.
285 * girepository/gdump.c: Dump prerequisites.
286 * giscanner/ast.py: Add prerequisite list.
287 * giscanner/girparser.py: Parse them from gdump.
288 * giscanner/girwriter.py: Write them.
289 * giscanner/glibtransformer.py: Resolve them.
292 2008-11-16 Owen Taylor <otaylor@redhat.com>
294 Bug 561087 - Respect is_pointer in serialize_type()
296 Add a '*' to the serialization for the cases where we set is_pointer
297 in the type blob we write out depending on node->is_pointer. Don't
298 add the '*' in the cases where is_pointer is set or not set in a
301 http://bugzilla.gnome.org/show_bug.cgi?id=561087
303 2008-11-16 Owen Taylor <otaylor@redhat.com>
305 Bug 560825 – Add size and alignment to typelib
307 Include the size and alignment of structures and unions in the typelib,
308 and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
310 * docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
311 girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
312 to StructBlob and UnionBlob.
314 * girepository/ginfo.c girepository/girepository.h:
315 Add g_[struct|union]_get[size|alignment]().
317 * test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
319 2008-11-16 Owen Taylor <otaylor@redhat.com>
321 Bug 552371 – implement struct field get/set
323 * girepository/gfield.c girepository/girepository.h: Add
324 convenience functions g_field_info_set_field() and
325 g_field_info_get_field() to set and get fields based on the
326 offsets in GIFieldInfo.
328 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
330 Bug 560241 - Out-arguments should not be marked as being pointers
333 * girepository/girparser.c: Improved logic for out arguments.
335 2008-11-16 Andreas Rottmann <a.rottmann@gmx.at>
337 Bug 559601 - Pointers in structs/unions unduly treated as arrays
339 * giscanner/transformer.py: Differentiate type creation logic
340 between parameters and struct components.
342 2008-11-15 Colin Walters <walters@verbum.org>
344 * giscanner/dumper.py: Check return code from pkg-config
347 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
349 * tests/everything/everything.c (test_array_int_in),
350 (test_array_gtype_in):
351 * tests/everything/everything.h:
352 Rename the int/gtype array tests. Make the return value
353 useful, an aggregation of the array input values.
355 2008-11-14 Johan Dahlin <jdahlin@async.com.br>
357 * tests/everything/Makefile.am:
358 * tests/everything/everything.c:
359 * tests/everything/everything.h:
360 * tests/everything/gitesttypes.c:
361 * tests/everything/gitesttypes.h:
362 Rename gitesttypes.[ch] to everything.[ch]
364 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
366 Bug 560708 – Don't treat arrays that have a length specified as
367 zero-terminated by default
369 * giscanner/transformer.py: Default to non zero terminated for
371 * tests/*: Update, add test for zero vs not.
373 2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
375 Bug 557788 - Return types for constructors in generated typelib bogus
377 * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
378 obviously broken in the face of duplicate names in different
380 * tests/scanner/*expected.gir: Fix up.
382 2008-11-13 Owen Taylor <otaylor@redhat.com>
384 * girepository/girffi.c: Fix "Unexpected time for time_t"
387 2008-11-13 Colin Walters <walters@verbum.org>
389 Bug 558436 - avoid having scanner load app code
391 * giscanner/cgobject.py: Delete; we no longer load shared
393 * giscanner/dumper.py: Support for linking a library to
394 a stub binary for introspection.
395 * giscanner/glibtransformer.py: Rewrite to use gdump XML
396 from invocation of child binary.
397 * giscanner/transformer.py: Fix up to use fully qualified
398 name in parse tree. Make parse_ctype public so we can use
399 it inside glibtransformer.
400 * tests/scanner/barapp.c: New test, using --program arg
402 * tests/*: Update to use common.mk for invoking scanner.
403 * tools/g-ir-scanner: Add options --program, --program-arg,
405 * docs/g-ir-scanner.1: Update.
407 2008-11-13 Colin Walters <walters@verbum.org>
409 * configure.ac: Depend on Gio, we use it in gdump.c.
410 * girepository/gdump.c: Code to dump GType data to XML.
411 * girepository/girepository.c: Add option group for dumping.
412 * girepository/girepository.h: Define API for the above.
414 2008-11-13 Colin Walters <walters@verbum.org>
416 * common.mk: Add a file to include with Makefile fragments
417 useful for scanner invocation.
419 2008-11-13 Tommi Komulainen <tommi.komulainen@iki.fi>
421 * tests/everything/gitesttypes.c (test_filename_return): Return
422 strings in filename encoding.
424 2008-11-13 Owen Taylor <otaylor@redhat.com>
426 Bug 560253 – Add structure and boxed types to Everything test module
428 * tests/everything/gitesttypes.[ch]: Add examples of:
430 Plain old data structs
431 Plain old data structs with nested fields
433 Plain old data boxed with nested fields
434 More complicated boxed types with internal state
436 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
438 * tests/everything/gitesttypes.c (test_gtype_in):
439 * tests/everything/gitesttypes.h:
440 Add a test of GType arrays, a la gtk_list_store_set_columns.
442 2008-11-12 Owen Taylor <otaylor@redhat.com>
444 Bug 560419 – Cache includes when parsing
446 Keep track of all modules parsed within a GIrParser, and when a
447 module is referenced a second time, use the existing parsed copy
448 instead of reparsing.
450 2008-11-12 Owen Taylor <otaylor@redhat.com>
452 Fix management of ParseContext.includes_modules (#560419)
454 * girepository/girparser.c: Fix some trivial bugs in managing the
455 list of include modules. (Add to module's list twice, not
456 initialized to NULL, not freed.)
458 2008-11-12 Owen Taylor <otaylor@redhat.com>
460 Keep aliases and disguised_structures local to each module (#560419)
462 * girepository/girmodule.[ch]: When parsing, keep keep a separate
463 hash tables of aliases and 'disguised' flags for each module, and
464 store that on the module.
466 After parsing an include merge the aliases/disguised flags to the
469 * girepository/girparser.c: Remove 'prefix_aliases' flag and
470 always prefix aliases/disguised structure types when parsing; this
471 simplifies the code considerably.
473 2008-11-12 Owen Taylor <otaylor@redhat.com>
475 Fix mismatches between .gir name and 'name' attribute (#560419)
477 * tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
478 tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
479 where the 'name' element of <namespace/> didn't match the filename of the
480 gir, an assumption that the compiler has always expected and now enforces.
482 2008-11-12 Owen Taylor <otaylor@redhat.com>
484 Only allow one <namespace/> element per <repository/> (#560419)
486 * girepository/girparser.c: The logic in girparser.c didn't work
487 very well if there were multiple <namespace/> nodes within a
488 single <repository/> (context->namespace was always the overall
489 filename and not the the name specified in the <namespace/>
490 element for one thing; this would cause aliases to be mis-prefixed
491 in include modules.) Also check that the "name" in the
492 <namespace/> node matches the filename.
494 2008-11-12 Owen Taylor <otaylor@redhat.com>
496 Add a GirParser object to hold the state of a compilation
498 * girepository/girparser.[ch] tools/compiler.c: Add a toplevel
499 GirParser object to hold state that is global across a
500 compilation. Currently just holds the include path, but will
501 eventually also keep a cached list of parsed modules.
503 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
505 * girepository/girepository.c (find_namespace_latest): Fix
508 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
510 * configure.ac: use 'introspection' component for bugs
512 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
514 * tests/everything/gitesttypes.c (test_filename_return):
515 * tests/everything/gitesttypes.h:
516 Add a filename return test.
518 2008-11-12 Tommi Komulainen <tommi.komulainen@iki.fi>
520 * tests/offsets/Makefile.am (gitestoffsets.c): fix
521 gen-gitestoffsets invocation with builddir != srcdir
523 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
525 * girepository/girepository.c:
526 Change the element type from utf8 to filename
527 * girepository/girnode.c (g_ir_node_build_typelib):
528 Special case filename equally to utf8 here.
530 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
533 Remove unused variables, add a dependency of girepository.ch, so when
534 they change we rebuild the gir automatically.
536 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
538 * girepository/girepository.c (g_irepository_get_search_path):
539 * girepository/girepository.h:
540 Add a g_irepository_get_search_path, so we can access the search
543 2008-11-12 Johan Bilien <jobi@via.ecp.fr>
545 Bug 560474 – g-ir-compiler crashes when compiling the glib gir
547 * girepository/girparser.c: avoid freeing an uninitialized pointer
549 2008-11-12 Johan Dahlin <jdahlin@async.com.br>
552 * giscanner/glibtransformer.py:
553 * tools/g-ir-scanner:
554 Add a GIRepository-2.0.gir. Change the libtool lookup slightly
555 so we can just pass in --library=foo/bar/baz.la and the scanner
556 does the right thing.
557 Don't warn for _get_type() functions if they don't take any
560 2008-11-11 Owen Taylor <otaylor@redhat.com>
562 Bug 560404 – Prefix types when resolving aliases in included modules
564 * girepository/girparser.c: When resolving aliases in an included
565 module, prefix types before looking them up.
567 2008-11-11 Owen Taylor <otaylor@redhat.com>
569 Compute field offsets and overall size for object structures
571 Bug 560326 – Fails to build Gtk-2.0.typelib with "Unexpected non-pointer
572 field of type object in structure"
574 Do basic computation of field offsets for objects and interfaces;
575 this doesn't attempt to address all of the "mess" for virtual
576 functions described in Bug 560281.
578 2008-11-11 Tommi Komulainen <tommi.komulainen@iki.fi>
580 Bug 560308 – g-ir-compiler goes in infinite loop on Gdk-2.0.gir
582 Based on patch by Johan Bilien.
584 * giscanner/transformer.py (_create_member, _create_parameter):
585 Resolve types here as well.
586 (_resolve_type_name_1): Try resolving using 'ctype' first since
587 it's least ambiguous. Fixes struct member type resolution with
588 similarly named types, e.g. Gdk.PangoRendererClass and
590 * tests/scanner/foo*: Add test.
592 2008-11-11 Owen Taylor <otaylor@redhat.com>
594 * girepository/girparser.c: Search provided include dirs before
595 the default directories.
597 2008-11-11 Owen Taylor <otaylor@redhat.com>
599 * girepository/giroffsets.c: Include fully-qualified names in
602 2008-11-11 Owen Taylor <otaylor@redhat.com>
604 * girepository/giroffsets.c: Fail gracefully with an informative
605 error message when recursion is encountered when computing a
608 2008-11-11 Owen Taylor <otaylor@redhat.com>
610 * girepository/girparser.c: Remove an unused variable.
612 2008-11-10 Owen Taylor <otaylor@redhat.com>
614 Add tests for field offset computations
616 * tests/offsets/offsets.h: Header file with structure definitions to test
618 * tests/offsets/gen-gitestoffsets: Generate a C program that computes
619 field offsets for the structures in offsets.h two ways: using
620 the information from a generated typelib, and as computed by the
623 We diff these two versions to test that everything is OK.
625 2008-11-10 Owen Taylor <otaylor@redhat.com>
627 Remove field offsets from g-ir-generate output and test inputs
629 Field offsets are a) architecture dependent so they shouldn't be part
630 of the architecture-independent gir format which is installed in
631 datadir. b) Are architecture-dependent so they shouldn't be in test
634 * girepository/girparser.c: Don't parse offset for fields
635 * tools/generate.c: Don't parse offset for fields
636 * tests/*.gir test/scanner/*.tgir: Remove offsets
638 (Virtual function and discriminator offsets are not removed, as they
639 aren't fully hooked up to the field-offset computation machinery yet.)
641 2008-11-10 Owen Taylor <otaylor@redhat.com>
643 Bug 560252 - Compute field offsets before writing typelib
645 * girepository/girnode.h: Store the total size and alignment for
646 GIrNodeStruct/Boxed/Union.
648 * girepository/giroffset.c: New file implementing computation of
649 structure field offsets.
651 * girepository/girnode.c: Compute structure field offsets before
652 writing types into the typelib.
654 * docs/typelib-format.txt: Document that a field offset of 0xFFFF
655 means "unknown". Also fix description of the discriminator_offset
658 2008-11-10 Owen Taylor <otaylor@redhat.com>
660 Bug 560250 - Fully parse included modules
662 For some things, like computing structure offsets to put into the typelib
663 we need more than just the aliases from included modules. Do a completel
664 parse of included modules and store in module->included_modules.
666 Also add g_ir_find_node() to find node information from within the
667 active set of modules and their includes.
669 2008-11-10 Owen Taylor <otaylor@redhat.com>
671 Split g_ir_ffi_get_ffi_type() out from ginvoke.c
673 Extract a function to convert GITypeTag to ffi_type from the internals
674 of ginvoke.c. This will be useful in figure out structure alignment.
676 Also fix handling of gsize and time_t to be portable. (Add a check
677 to configure.ac to figure out the width of time_t.)
679 2008-11-10 Owen Taylor <otaylor@redhat.com>
681 Bug 560248 – "disguised structures"
683 Certain types like GIConv and GdkAtom are pointers internally but don't
684 look like pointers when referenced. They have the form.
686 typedef struct _X *X;
688 Parse these as structures/records but mark them in the gir with a 'disguised'
689 attribute so that we know that they need special handling.
691 In the typelib treat them like any other structure.
693 2008-11-09 Jürg Billeter <j@bitron.ch>
696 * giscanner/girwriter.py:
698 Write throws attribute for virtual functions, fixes bug 559703
700 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
702 * giscanner/libtoolimporter.py (LibtoolImporter.find_module): Clear
703 up some confusion about the second argument to find_module, it's
704 actually the packages __path__ attribute which we can safely ignore
706 (LibtoolImporter.load_module): Set module.__loader__ as per PEP 302.
708 2008-11-07 Owen Taylor <otaylor@redhat.com>
710 Bug 559737 – Deal with continuations in macros
712 * giscanner/giscannerlexer.l: Treat continuation lines the same
713 as regular newlines. This makes the scanner not complain about
714 #define foo(x) \ <stuff> inside a C file. There's no attempt
715 however to handle parsing macro definitions split across lines.
717 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
719 * giscanner/cachestore.py:
720 Handle broken cache entries, write only filesystems and
721 running out of diskspace.
723 2008-11-07 Owen Taylor <otaylor@redhat.com>
725 * giscanner/giscannermodule.c (pygi_source_scanner_lex_filename):
726 Set current_filename before lexing the file so error messages
727 are reported in the right file.
729 2008-11-06 Colin Walters <walters@verbum.org>
731 * tests/everything/*: Add some tests for strv.
733 2008-11-05 Colin Walters <walters@verbum.org>
735 * girepository/ginvoke.c (g_function_info_invoke): Don't use
736 nested scope local variable for error which may go away after
737 conditional is complete.
739 2008-11-05 Colin Walters <walters@verbum.org>
741 * giscanner/scannerlexer.l: Avoid static 256 char buf which we
742 manipulate hackily; just use GString. This avoids an
743 uninitialized memory read pointed out by Havoc.
745 2008-11-04 Johan Dahlin <jdahlin@async.com.br>
747 * giscanner/__init__.py:
749 * giscanner/cachestore.py:
750 * giscanner/cgobject.py:
751 * giscanner/girparser.py:
752 * giscanner/girwriter.py:
753 * giscanner/giscannermodule.c:
754 * giscanner/glibast.py:
755 * giscanner/glibtransformer.py:
756 * giscanner/libtoolimporter.py:
757 * giscanner/minixpath.py:
758 * giscanner/odict.py:
759 * giscanner/sourcescanner.c:
760 * giscanner/sourcescanner.h:
761 * giscanner/sourcescanner.py:
762 * giscanner/transformer.py:
763 * giscanner/utils.py:
764 * giscanner/xmlwriter.py:
766 Relicense the giscanner library under LGPLv2+.
767 This has been approved by all contributors.
769 2008-11-01 Owen Taylor <otaylor@redhat.com>
771 Bug 558848 giparser.py: shared library should be optional
773 When parsing a .gir, allow the shared-library attribute
774 of <namespace/> to be missing: this corresponds to the handling
775 in libgirepository and elsewhere.
777 2008-11-01 Tommi Komulainen <tommi.komulainen@iki.fi>
779 Bug 557898 – Fails to build on OSX 10.4
781 * configure.ac: Check for $shrext_cmds that should be implicitly
782 available if you're using libtool >= 2.0. If undefined, call
783 libtool --config explicitly to get its value.
784 * girepository/gtypelib.c: Remove special case for (non-)Darwin
787 2008-10-31 Colin Walters <walters@verbum.org>
789 * COPYING, COPYING.lib, COPYING.tools: Clarify licensing status.
791 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
793 * configure.ac: Post release version bump
796 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
800 * docs/release-checklist.txt:
803 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
805 * Makefile.am: add an upload-release target
806 * docs/release-checklist.txt:
807 Release process documentation
809 2008-10-31 Colin Walters <walters@verbum.org>
811 Bug 558109 – _g_typelib_init fails to find shared libraries
813 * transformer/glibtransformer.py: Use ctypes' find_library
814 on passed libraries and write that for the shared-library
815 entry. We want to avoid depending on -devel packages.
817 2008-10-31 Johan Dahlin <jdahlin@async.com.br>
819 * docs/g-ir-scanner.1:
820 Document the renaming options.
822 2008-10-31 Tommi Komulainen <tommi.komulainen@iki.fi>
824 * giscanner/Makefile.am:
825 * tests/invoke/Makefile.am:
826 * tests/repository/Makefile.am: List in-tree libraries first in
827 LDADD / LIBADD. If installed library is listed first, the
828 resulting binary will prefer installed version to one in .libs,
829 possibly making 'make check' behave strangely.
831 2008-10-30 Tommi Komulainen <tommi.komulainen@iki.fi>
833 * giscanner/ast.py: map 'id' (ObjC) to 'any' type to stop
834 gir-repository from choking with gdk/quartz
836 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
838 * giscanner/giscannermodule.c (calc_attrs_length),
839 (pygi_collect_attributes):
840 * giscanner/xmlwriter.py:
841 Write a C version of the xml namespace formatter.
842 Saves 15% of the time it takes to create a gtk gir.
844 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
846 * giscanner/xmlwriter.py: Abstract attribute formatting
847 to a function external to the XMLWriter class.
849 * giscanner/scannerlexer.l:
850 Parse and discard __typeof and __attribute.
852 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
854 * giscanner/girparser.py:
855 Remove arguments from the constructor, move them to
856 separate accessors. Add a new parse_tree method
857 which takes an element tree instance.
858 * tools/g-ir-scanner:
859 Update callsite for this
861 * giscanner/Makefile.am:
862 * giscanner/cachestore.py:
863 * giscanner/transformer.py:
864 Cache the include parsing. Saves ~25% time when
865 creating vte (which includes everything up to gtk+).
867 2008-10-30 Colin Walters <walters@verbum.org>
869 * giscanner/transformer.py: Don't reparse includes
870 we've already processed.
872 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
874 * giscanner/girparser.py:
875 * giscanner/transformer.py:
876 Avoid parsing parameters, types etc when parsing
877 includes. Should speed up include parsing a bit.
879 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
881 * giscanner/girparser.py:
882 Avoid big if/else and use a dispatch table like
885 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
887 * giscanner/transformer.py:
888 Clean up include parsing and registration.
890 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
892 * giscanner/transformer.py:
895 2008-10-30 Johan Dahlin <jdahlin@async.com.br>
897 Bug 558383 – builddir != srcdir build fails if giscanner python module not already installed
900 construct PYTHONPATH just once
902 * tests/everything/Makefile.am:
903 * tests/scanner/Makefile.am:
904 add $(top_srcdir) to PYTHONPATH to
905 handle builddir != srcdir
907 * giscanner/libtoolimporter.py:
908 * giscanner/sourcescanner.py:
909 Make the libtoolimporter work when distchecking too.
911 Mostly based on patch by Tommi Komulainen
913 2008-10-29 Owen Taylor <otaylor@redhat.com>
915 * giscanner/glibtransformer.py: If a filename of an existing
916 file is passed to --library, hunt for it directly, rather than
917 searching for a corresponding library.
919 2008-10-29 Johan Dahlin <jdahlin@async.com.br>
921 * giscanner/libtoolimporter.py:
922 * giscanner/sourcescanner.py:
923 Clean up the libtool importer a bit. Add a context so we
924 can use it through a with statement.
925 Don't just look in the current directory, look in the whole
928 2008-10-29 Tommi Komulainen <tommi.komulainen@iki.fi>
930 Bug 558065 – gitesttypes should be installed
934 * tests/types/Makefile.am -> tests/everything/Makefile.am
935 * tests/types/gitesttypes.c -> tests/everything/gitesttypes.c
936 * tests/types/gitesttypes.h -> tests/everything/gitesttypes.h
937 move tests/types to tests/everything
939 * tests/everything/Makefile.am: build normal shared library
940 libgirepository-everything.so.1.0.0 and corresponding typelib
941 Everything-1.0.typelib
943 * tests/everything/Makefile.am: explicitly link libtool
944 versioning with typelib versioning with variables
946 2008-10-28 Johan Bilien <jobi@via.ecp.fr>
948 * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld.
950 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
952 * gio/gio-2.0.c: add allow-none annotations, based on the pygobject
955 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
957 Bug 558068 – when invoking a method, offset the in arguments by one,
960 * tests/invoke/invoke.c, tests/invoke/testfns.c,
961 tests/invoke/testfns-1.0.gir: Add testing of method and constructor.
962 * girepository/ginvoke.c: do not offset the index of given out
963 arguments by one for methods, "this" is provided as in argument only.
965 2008-10-27 Johan Bilien <jobi@via.ecp.fr>
967 * gir/gio-2.0.c: add annotation for g_file_delete
969 2008-10-27 Tommi Komulainen <tommi.komulainen@iki.fi>
971 Bug 558062 – provide and use paths in the .pc file
973 * gobject-introspection-1.0.pc.in: provide typelibdir variable
974 for where .typelibs should be installed (callers shouldn't need
975 to construct paths from bits and pieces)
977 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
979 Bug 557791 – g_irepository_require() could return a GTypelib *
981 * girepository/girepository.c: Return GTypelib; this is useful
982 for low level manipulation.
984 2008-10-25 Colin Walters <walters@verbum.org>
986 Bug 557788 – Return types for constructors in generated typelib bogus
988 * giscanner/glibtransformer.py: Don't resolve ctors incrementally,
989 rely on end pass resolution.
991 2008-10-25 Andreas Rottmann <a.rottmann@gmx.at>
993 Bug 557786 - support fixed size arrays
995 * girepository/ginfo.c: Add g_type_info_get_array_fixed_size.
996 * giscanner/scannerparser.y: Retain fixed array size.
997 * giscanner/ast.py: Add to note.
998 * giscanner/girwriter.py: Write to gir.
999 * girepository/girnode.c: Write it to typelib.
1000 * tools/generate.c: Generate.
1001 * tests/*: Add tests.
1003 2008-10-25 Colin Walters <walters@verbum.org>
1005 Bug 557076 - move typelibs to $libdir
1007 * configure.ac: Steal some configury bits from dbus to expand
1009 * gir/Makefile.am: Move to libdir.
1010 * girepository/girepository.c: Stop searching XDG_DATA_DIRS;
1011 instead just look at one hardcoded path in libdir.
1012 * acinclude.m4: Bits from dbus.
1014 2008-10-24 Johan Dahlin <johan@gnome.org>
1016 * girepository/girnode.c (g_ir_node_check_unhandled_members):
1017 Be quiet, do not warn about unhandled members.
1019 2008-10-24 Johan Dahlin <johan@gnome.org>
1021 * girepository/gtypelib.c:
1022 Only use SHLIB_SUFFIX on darwin, otherwise use
1023 G_MODULE_SUFFIX, we cannot get shext_cmds from libtool 2.2.
1025 2008-10-24 Lucas Rocha <lucasr@gnome.org>
1027 Bug 557623 - Constructors shouldn't be flagged as methods.
1029 * girepository/ginfo.c (g_function_info_get_flags): ditto.
1031 2008-10-24 Johan Dahlin <johan@gnome.org>
1033 * giscanner/scannerparser.y:
1034 Check against division by zero for the modula operator.
1035 This fixes header parsing of OSX system headers included
1038 2008-10-24 Johan Dahlin <johan@gnome.org>
1042 Add a CONTRIBUTORS file and dist it.
1044 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1046 Bug 556739 – transfer-ownership attribute should be mandatory in .gir
1048 * girepository/girparser.c (parse_param_transfer):
1049 * giscanner/transformer.py (_create_parameter, _create_return):
1050 * giscanner/girwriter.py (_write_return, _write_parameter):
1051 * tools/generate.c (write_callable_info): always write and
1052 require "transfer-ownership" for return-values and parameters
1055 * tests/invoke/testfns-1.0.gir:
1057 * tests/scanner/DrawableAdditions.xml:
1058 * tests/scanner/GtkFrob-1.0-expected.tgir:
1059 * tests/scanner/annotation-1.0-expected.tgir:
1060 * tests/scanner/drawable-1.0-expected.tgir:
1061 * tests/scanner/drawable-injected-1.0-expected.gir:
1062 * tests/scanner/drawable-injected-1.0-expected.tgir:
1063 * tests/scanner/foo-1.0-expected.tgir: Updated
1065 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1067 * giscanner/cgobject.py: build fundamental types same way as glib
1069 * giscanner/glibtransformer.py (_type_from_gtype): record GType
1070 when constructing the Type from it
1072 * giscanner/glibtransformer.py (_adjust_transfer): Check whether
1073 the parameter is a GObject from its GType, if available.
1075 * giscanner/glibtransformer.py (_adjust_transfer):
1076 * tests/scanner/foo-1.0-expected.gir:
1077 * tests/scanner/foo-1.0-expected.tgir: deduce
1078 transfer-ownership from GTypes
1080 2008-10-23 Tommi Komulainen <tommi.komulainen@iki.fi>
1082 * giscanner/transformer.py (_create_parameter):
1083 * tests/scanner/foo-1.0-expected.gir: make varargs
1084 transfer-ownership="none"
1086 2008-10-23 Colin Walters <walters@verbum.org>
1088 Bug 556739 - transfer ownership
1090 * giscanner/ast.py: Refactor Parameter/Return to share
1091 common attributes. Add transfer_inferred attribute
1092 which says whether or not we made a guess.
1093 * giscanner/transformer.py: Add much more extensive
1094 heuristics around parameter and return transfer.
1095 * giscanner/glibtransformer.py: Adjust to inspect
1099 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1101 Bug 557377 – Add test to ensure annotations survive the roundtrip via typelib
1103 * tests/scanner/Makefile.am:
1104 * tests/scanner/annotation-1.0-expected.tgir:
1105 * tests/scanner/drawable-1.0-expected.tgir:
1106 * tests/scanner/drawable-injected-1.0-expected.tgir:
1107 * tests/scanner/foo-1.0-expected.tgir:
1108 * tests/scanner/GtkFrob-1.0-expected.tgir:
1109 * tests/scanner/utility-1.0-expected.tgir: Add test to ensure
1110 annotations survive the roundtrip via typelib
1112 The expectations are as currently produced by g-ir-generate,
1113 comparison with the .gir files shows there are differences.
1115 2008-10-23 Johan Bilien <jobi@via.ecp.fr>
1117 Bug 557468 – Support for GI_TYPELIB_PATH
1119 * girepository/girepository.c: if the GI_TYPELIB_PATH is set, add the
1120 provided paths to the global search path.
1122 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1124 Bug 557379 – g-ir-generate not writing the 'abstract' attribute
1126 * tests/scanner/drawable-1.0-expected.tgir:
1127 * tests/scanner/drawable-injected-1.0-expected.tgir:
1128 * tests/scanner/foo-1.0-expected.tgir:
1129 * tools/generate.c (write_object_info): write 'abstract'
1130 attribute for classes
1132 2008-10-22 Lucas Rocha <lucasr@gnome.org>
1134 * girepository/girmodule.c, girepository/gtypelib.c,
1135 girepository/girparser.[ch]: fix some build warnings.
1137 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1139 Bug 557405 – Use 'allow-none' consistently
1141 * docs/typelib-format.txt:
1142 * girepository/ginfo.c (g_arg_info_may_be_null):
1143 * girepository/girnode.c (g_ir_node_build_typelib):
1144 * girepository/girnode.h (struct _GIrNodeParam):
1145 * girepository/girparser.c (start_parameter):
1146 * girepository/girwriter.c (function_generate):
1147 * girepository/gtypelib.h (ArgBlob):
1149 * tests/function.gir:
1150 * tools/generate.c (write_callable_info): Use 'allow-none'
1151 consistently throughout
1153 2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi>
1155 Bug 557092 – Callback annotations not used
1157 * giscanner/transformer.py (_create_callback): use annotations
1159 * tests/scanner/annotation.h
1160 * tests/scanner/annotation-1.0-expected.gir: add tests
1162 2008-10-21 Colin Walters <walters@verbum.org>
1164 * giscanner/scannerlexer.l: Don't require trailing whitespace after
1165 uncommented parameters.
1168 2008-10-21 Colin Walters <walters@verbum.org>
1170 * girepository/girepository.c: Ensure that when doing an unversioned
1171 require, we prefer items earlier in the search path to later ones.
1173 2008-10-21 Owen Taylor <otaylor@redhat.com>
1175 * giscanner/transformer.py: For string parameters allow transfer annotation
1176 to override the standard automatic guessing based on 'const'.
1178 2008-10-21 Johan Bilien <jobi@via.ecp.fr>
1180 Bug 557241 – "throws" flag for functions
1182 * tests/scanner/drawable-1.0-expected.gir,
1183 tests/scanner/drawable-injected-1.0-expected.gir,
1184 tests/scanner/drawable.[ch]: add simple test for throwing
1185 function (has GError ** as last argument)
1187 * giscanner/ast.py: add a 'throws' flag to Function
1188 * giscanner/glibtransformer.py: if a function's last paramerter is
1189 a GError, set the 'throws' flag and remove that parameter
1190 * giscanner/girwriter.py: write out the 'throws' attribute
1191 * giscanner/girparser.py: support parsing the 'throws' attribute
1193 * tests/repository/gitestthrows.c: add a simple test to check the
1194 throws flag in a typelib and invoke the function
1196 * girepository/ginfo.c, girepository/girnode.[ch],
1197 girepository/girnode.h, girepository/girparser.c,
1198 girepository/girepository.h: Add and parse the GI_FUNCTION_THROWS flag
1200 * girepository/ginvoke.c: if a function throws, add a GError as last
1201 arguments, and propagate the error to the invoker.
1203 2008-10-21 Tommi Komulainen <tommi.komulainen@iki.fi>
1205 * giscanner/transformer.py (_create_parameters): Warn if we see
1206 annotations for unknown parameters. If .h and .c files name
1207 parameters differently, the annotations may be lost.
1209 2008-10-21 Johan Dahlin <johan@gnome.org>
1211 Bug 556358 - don't use libtool internals
1213 * giscanner/Makefile.am:
1214 * giscanner/libtoolimporter.py:
1215 * giscanner/sourcescanner.py:
1216 * giscanner/utils.py:
1217 Add a python meta importer and remove a libtool symlink hack.
1219 2008-10-20 Andreas Rottmann <a.rottmann@gmx.at>
1221 * tests/scanner/Makefile.am (%.typelib): Set PYTHONPATH
1222 and --add-include-path appropriately when invoking the scanner.
1223 * tests/types/Makefile.am (%typelib): Likewise.
1225 2008-10-20 Colin Walters <walters@verbum.org>
1227 Bug 556777 - validate properties
1229 * giscanner/transformer.py: Add option to throw on unknown types.
1230 * giscanner/glibtransformer.py: Use it on properties.
1231 * tests/*: Add a test.
1233 2008-10-20 Colin Walters <walters@verbum.org>
1235 * giscanner/glibast.py: Also register g variants of
1236 default_array_types. This is not beautiful, but
1237 good alternatives aren't easy to come by.
1238 This fixes gchar ** parsing.
1240 2008-10-20 Colin Walters <walters@verbum.org>
1242 * docs/typelib-format.txt, girepository/gtypelib.h:
1243 Take a bit from ObjectInfo to represent abstract flag.
1244 * giscanner/cgobject.py: Expose g_type_get_flags.
1245 * girepository/girepository.h: Add accessor.
1246 * girepository/ginfo.c: Implement it.
1247 * giscanner/ast.py: Add is_abstract flag to generic
1249 * giscanner/glibast.py: Use it.
1250 * giscanner/girwriter.py: Write it.
1251 * girepository/girparser.c: Parse it.
1254 2008-10-20 Tommi Komulainen <tommi.komulainen@iki.fi>
1256 * giscanner/girparser.py (_parse_function): don't lose
1257 'transfer-ownership' attributes when injecting, check for the
1260 2008-10-19 Johan Dahlin <johan@gnome.org>
1262 * giscanner/scannerlexer.l: Parse and ignore __asm.
1264 2008-10-19 Colin Walters <walters@verbum.org>
1266 * giscanner/girparser.py: Parse array length= to ensure
1267 it doesn't get lost from --inject.
1269 2008-10-17 Colin Walters <walters@verbum.org>
1271 Bug 556795 - char ** regression
1273 * giscanner/transformer.py: Fix parsing of ctypes, add some
1274 comments about what's going on.
1275 * tests/*: Add a test for char **.
1277 2008-10-17 Colin Walters <walters@verbum.org>
1279 Bug 556783 - change namespace handling to be more consistent
1281 * giscanner/transformer.py: Eliminate usage of
1282 strip_namespace_object. We now treat --namespace as the default
1283 --strip-prefix; however, if --strip-prefix is specified it
1284 overrides --namespace. This applies to everything except function
1285 names, where we do also strip the namespace.
1286 * giscanner/glibtransformer.py: Remove usage of
1287 strip_namespace_object.
1289 * tests/*: Add skeletal GtkFrob-1.0 test which has different
1290 --namespace and --strip-prefix.
1292 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1294 Bug 556732 – generate gir files consistently
1296 * girepository/girparser.c (start_parameter):
1298 * tests/invoke/testfns-1.0.gir:
1299 * tools/generate.c (write_callable_info): write
1300 'transfer-ownership' attribute consistently with both
1301 return-value and parameter elements
1303 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1305 Bug 556732 – generate gir files consistently
1307 * tools/generate.c (write_callable_info): write 'direction'
1308 attribute only if other than 'in' to be consistent with
1311 * tests/object.gir: remove direction="in" which is the default
1313 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1315 Bug 556732 – generate gir files consistently
1317 * giscanner/ast.py (Field): add readable and writable properties
1318 * giscanner/girparser.py (_parse_field): copy 'readable' and
1319 'writable' attributes
1320 * giscanner/transformer.py (_create_member): create fields as
1322 * giscanner/glibtransformer.py (_introspect_object,
1323 _pair_class_struct): make object instance and class fields
1325 * giscanner/girwriter.py (_write_field):
1326 * tools/generate.c (write_field_info): write field 'readable'
1327 and 'writable' attributes only if non-default (read-only)
1328 * girepository/girparser.c (start_field): in the absence of
1329 attributes assume fields are read-only
1331 * tests/struct.gir: remove redundant readable="1" from fields
1332 * tests/scanner/foo-1.0-expected.gir:
1333 * tests/scanner/utility-1.0-expected.gir: add writable="1" to
1334 all record and union fields
1336 2008-10-17 Tommi Komulainen <tommi.komulainen@iki.fi>
1338 Bug 556732 – generate gir files consistently
1340 * giscanner/girwriter.py (_write_property): write properties
1341 'construct' attribute if set
1342 * tools/generate.c (write_property_info): write properties
1343 'readable' and 'writable' attributes only if non-default
1344 * tests/object.gir: add writable="0"
1345 * tests/scanner/foo-1.0-expected.gir: add construct="1"
1347 2008-10-17 Johan Bilien <jobi@via.ecp.fr>
1349 * gir/glib-2.0.c: added annotations
1351 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1353 * giscanner/ast.py: Also assume direction=out for size_t*, ssize_t*
1356 2008-10-16 Johan Bilien <jobi@via.ecp.fr>
1358 Bug 556610 – giscanner/girparser.py drops parameter options
1360 * tests/scanner/drawable-injected-1.0-expected.gir,
1361 tests/scanner/DrawableAdditions.xml: added simple test for injection.
1362 * giscanner/ast.py: allow Parameter to take options in the constructor
1363 * giscanner/girparser.py: parse parameter options (transfer,
1364 direction, allow-none)
1366 2008-10-16 Colin Walters <walters@verbum.org>
1368 Bug 556185 - segfault on g_callable_info_get_return_type
1370 Initial patch from John Ehresman.
1372 * tests/repository/*: Add a test using
1373 g_callable_info_get_return_type. Instead of casting a
1374 GITypeInfo directly to a GIRegisteredTypeInfo, we need
1375 to call g_type_info_get_interface.
1377 2008-10-16 Colin Walters <walters@verbum.org>
1379 Bug 556579 - union and struct name misresolved
1381 * giscanner/transformer.py: The calls to _resolve_type_name
1382 for struct/union names was a legacy holdover from when type
1383 resolution had multiple phases. Now it's actively harmful
1384 since we might pull in an identical name from another
1388 2008-10-16 Colin Walters <walters@verbum.org>
1390 Bug 556432 - transfer annotations and defaults
1392 * giscanner/transformer.py: Canonicalize type
1393 after removing *, not before. This ensures that
1394 guchar* is transformed to 'uint8'.
1395 Add some comments here.
1396 * giscanner/glibtransformer.py: Add _adjust_transfer
1397 phase for tweaking GObject transfers.
1400 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1402 * configure.ac: enable bunch of gcc warning CFLAGS
1404 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1406 Bug 556543 – reduce compiler warnings
1408 * girepository/ginfo.c:
1409 * girepository/girepository.c (register_internal,
1410 count_interfaces, find_interface, find_namespace_version,
1411 parse_version, g_irepository_require):
1412 * girepository/girmodule.c (g_ir_module_build_typelib):
1413 * girepository/girnode.c (init_stats, dump_stats,
1414 _g_irnode_init_stats, _g_irnode_dump_stats,
1415 g_ir_node_can_have_member):
1416 * girepository/girparser.c (firstpass_end_element_handler,
1417 locate_gir, parse_basic, parse_type_internal, resolve_aliases,
1418 start_alias, start_type, end_type_top, parse_include, cleanup,
1420 * girepository/gtypelib.c (validate_function_blob, validate_enum_blob):
1421 * giscanner/giscannermodule.c (directive_get_options,
1422 type_get_child_list):
1423 * giscanner/scannerlexer.l (parse_gtkdoc):
1424 * giscanner/scannerparser.y (ctype_free):
1425 * giscanner/sourcescanner.c:
1426 * giscanner/sourcescanner.h (gi_source_scanner_parse_macros):
1427 * tests/types/gitesttypes.c:
1428 * tools/compiler.c (main):
1429 * tools/generate.c (write_repository): Remove unused variables
1430 and code, add missing includes, declarations and case
1433 2008-10-16 Tommi Komulainen <tommi.komulainen@iki.fi>
1435 Bug 556541 – access union members through UnionBlob rather than
1438 * girepository/ginfo.c (g_union_info_find_method): access union
1439 members through UnionBlob rather than StructBlob
1441 2008-10-15 Colin Walters <walters@verbum.org>
1443 Bug 556331 - clean up includes handling
1445 * tools/g-ir-scanner: Rework command line arguments; now we take
1446 --add-include-path and --include separately.
1447 * giscanner/girwriter.py: Separate name= and version= in include
1449 * giscanner/ast.py: Add Include type.
1450 * giscanner/transformer.py: Cleanups to register_include now that
1451 we don't need to handle mixed filenames and relative arguments.
1452 * girepository/girparser.c: Parse name and version separately;
1453 this fixes a bug as a side effect where we weren't resolving
1454 through aliases for basic types.
1455 * girepository/girepository.c: Fix format string args.
1456 * gir/Makefile.am: Update.
1459 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1461 Bug 556434 – unhandled interface/object/... member types
1463 * girepository/girnode.c (g_ir_node_check_unhandled_members,
1464 g_ir_node_build_typelib): Check all
1465 interface/object/boxed/struct/union members are processed and
1466 abort if they are not. (Mostly callbacks in structs, but also
1467 fields in interfaces.)
1469 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1471 * a/girepository/girnode.c (g_ir_node_build_members,
1472 g_ir_node_build_typelib): refactor common code for processing
1473 members to a function
1475 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1477 * gir/Makefile.am (check-local): check that typelib -> gir -> typelib
1478 transformation is lossless (it's not)
1480 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1482 * tests/Makefile.am: fix tests to compare xml to xml instead of
1483 typelib to xml, and stop on error
1485 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1487 * tools/generate.c (write_type_name, write_type_info,
1488 write_type_info, write_object_info, write_object_info,
1489 write_interface_info, write_error_domain_info): reduce code
1492 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1494 Bug 556174 – parse types for lists etc.
1496 * girepository/girparser.c (end_type_recurse):
1498 * tools/generate.c (write_type_info, write_field_info,
1499 write_callable_info, write_callable_info, write_constant_info,
1500 write_property_info): use nested <type>s for lists and hashes
1502 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1505 * tests/object.gir: remove trailing whitespace from inside
1506 elements to match g-ir-generate output
1508 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1510 * tools/generate.c (xml_printf): quote printf arguments so that
1511 we don't generate invalid XML by writing unescaped double quotes
1512 and such in attributes
1514 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1516 * tools/generate.c (write_field_info, write_callable_info,
1517 write_function_info, write_callback_info, write_struct_info,
1518 write_constant_value, write_signal_info, write_vfunc_info,
1519 write_object_info, write_interface_info, write_union_info,
1520 write_repository): remove unused indent parameters, xmlwriter
1521 keeps track of necessary indentation
1523 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1525 * tools/generate.c (xml_element_new, xml_element_free,
1526 xml_start_element, xml_end_element, xml_end_element_unchecked,
1527 xml_open, xml_close): Keep track of generated XML tree and
1528 handle indentation and closing tags properly.
1529 (write_field_info, write_callable_info, write_function_info,
1530 write_callback_info, write_struct_info, write_value_info,
1531 write_constant_info, write_enum_info, write_signal_info,
1532 write_vfunc_info, write_property_info, write_object_info,
1533 write_interface_info, write_error_domain_info, write_union_info,
1534 write_repository): Use xml_start_element and xml_end_element to
1537 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1539 * tools/generate.c (xml_printf, xml_open, xml_close, xml_free):
1540 (write_type_name, write_type_info, write_field_info,
1541 write_callable_info, write_function_info, write_callback_info,
1542 write_struct_info, write_value_info, write_constant_value,
1543 write_constant_info, write_enum_info, write_signal_info,
1544 write_vfunc_info, write_property_info, write_object_info,
1545 write_interface_info, write_error_domain_info, write_union_info,
1546 write_repository): wrap all FILE access to go through simple xmlwriter
1548 2008-10-15 Tommi Komulainen <tommi.komulainen@iki.fi>
1550 Bug 556400 – Fails to build on OS X 10.4
1552 * configure.ac: check for functions backtrace and backtrace_symbols
1553 * girepository/girparser.c (backtrace_stderr): Comment out
1554 implementation if the functions are not available.
1555 * gcov.mak (clean-gcov, clean-gcno): always call 'find' with a
1556 directory for better portability
1558 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1560 Bug 556433 – assume direction = out for int * parameters
1562 * giscanner/ast.py: define a list of types for which, if passed as
1563 reference, we assume a default direction of 'out'
1564 * giscanner/transformer.py: if a type has type pointer to one of the
1565 previously defined types, and no direction is set, assume out.
1566 * tests/scanner/drawable.[ch]: added tests for guessed direction=out
1568 2008-10-15 Johan Bilien <jobi@via.ecp.fr>
1570 * tests/scanner/annotation.c: fixed a few copy-paste errors
1572 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1574 Bug 556323 – transfer-ownership is wrong for functions returning const
1577 * giscanner/transformer.py: check for a const string as return value,
1578 not just const char*. Suggested by Colin Walters
1579 * tests/scanner/annotation-1.0-expected.gir: updated expected output
1581 2008-10-14 Johan Bilien <jobi@via.ecp.fr>
1583 * girepository/ginfo.c, girepository/girepository.h: add
1584 g_union_info_find_method
1586 2008-10-14 Colin Walters <walters@verbum.org>
1588 * tests/repository/Makefile.am: Reenable repo test.
1589 * tests/repository/gitestrepo.c: Prepend search
1590 path for $(top_builddir)/gir dir so that we don't
1591 require installation for "make check" to pass.
1593 2008-10-13 Jürg Billeter <j@bitron.ch>
1595 * giscanner/glibtransformer.py:
1596 * tests/scanner/annotation-1.0-expected.gir:
1597 * tests/scanner/drawable-1.0-expected.gir:
1598 * tests/scanner/foo-1.0-expected.gir:
1599 * tests/scanner/utility-1.0-expected.gir:
1601 Support fields in GObject structs
1603 2008-10-13 Jürg Billeter <j@bitron.ch>
1605 * giscanner/ast.py: add signed integer and off_t to type_names
1607 2008-10-12 Jürg Billeter <j@bitron.ch>
1609 * giscanner/girparser.py: Parse bits attribute of fields
1611 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1613 * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
1614 * tests/repository/gitestrepo.c (main): instantiate
1615 'GCancellable' to ensure the GType is registered before using
1618 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1620 * giscanner/girparser.py: actually add the parsed constant nodes
1622 2008-10-12 Colin Walters <walters@verbum.org>
1624 * girepository/girepository.c: Don't cast DirEntry to Blob,
1625 actually look it up by offset.
1627 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1629 * giscanner/girparser.py: parse constant nodes in gir files
1631 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1633 * giscanner/transformer.py: prefix for constants have an underscore,
1634 so remove them as if they were functions, not objects.
1636 2008-10-12 Johan Bilien <jobi@via.ecp.fr>
1638 * tests/scanner/foo-1.0-expected.gir: add constants to expected gir
1641 2008-10-12 Colin Walters <walters@verbum.org>
1643 Initial patch from Jani Monoses.
1645 * girepository/gtypelib.c: Fix inverted test for success
1648 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1650 * tools/generate.c (write_callable_info): use "transfer-ownership"
1651 attribute for return values
1653 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1655 * tools/generate.c (write_callable_info): move "transfer" and
1656 "null-ok" attributes from <function> to <return-value> element
1658 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1660 * girepository/girparser.c (start_return_value): handle
1661 "transfer-ownership" attribute
1663 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1665 * girepository/girparser.c (parse_param_transfer):
1666 * tools/generate.c (write_callable_info): use "container" for
1667 container/shallow ownership transfer (not "shallow")
1669 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1671 * girepository/girparser.c (parse_param_transfer,
1672 start_parameter): Refactor handling of transfer=none/shallow/full
1673 to separate function
1675 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1677 Bug 556048 – Crash in g_irepository_find_by_gtype
1679 * girepository/gtypelib.h (BLOB_IS_REGISTERED_TYPE): added
1680 * girepository/girepository.c (find_interface): Fix
1681 find_by_gtype case to get the type name from right offset
1683 2008-10-12 Jürg Billeter <j@bitron.ch>
1685 * giscanner/girparser.py: Fix parsing transfer-ownership attribute
1688 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1690 * girepository/gtypelib.h (RegisteredTypeBlob): make
1691 'unregistered' one bit wide as everywhere else
1693 2008-10-12 Jürg Billeter <j@bitron.ch>
1695 * giscanner/glibtransformer.py:
1696 * tests/scanner/annotation-1.0-expected.gir:
1697 * tests/scanner/drawable-1.0-expected.gir:
1698 * tests/scanner/drawable.h:
1699 * tests/scanner/foo-1.0-expected.gir:
1700 * tests/scanner/utility-1.0-expected.gir:
1702 Readd class records as workaround to not break Gtk typelib
1704 2008-10-12 Tommi Komulainen <tommi.komulainen@iki.fi>
1706 * tests/types/Makefile.am: fix typo in gitesttypes namespace
1708 2008-10-12 Jürg Billeter <j@bitron.ch>
1710 * giscanner/glibtransformer.py: Don't generate <record> elements
1712 * tests/scanner/*: Update test cases
1714 2008-10-11 Colin Walters <walters@verbum.org>
1716 Bug 552858: versioning
1718 This is a big patch. You should probably remove your installation
1721 * docs/typelib-format.txt: Add nsversion entry which holds
1722 version of namespace.
1723 * girepository/girepository.h: Add 'version' parameter to
1724 g_irepository_require. This may be NULL. Normally
1725 bindings should pass an explicit version though.
1726 * girepository/girepository.c: Lots of infrastructure to
1727 support versioning. Add some more documentation. Disallow
1728 some usage of NULL namespaces.
1729 * girepository/girmodule.c: Add version parameter.
1730 * girepository/gtypelib.c: Update header size.
1731 * giscanner/ast.py: Add version to Namespace.
1732 * giscanner/girparser.py: Parse version attribute from
1733 XML, pass to Namespace.
1734 * giscanner/girwriter.py: Write out version parameter.
1735 * giscanner/transformer.py: Clean up include registration.
1736 * tests/*: Add version attribute.
1737 * tests/invoke/invoke.c: Don't try looking up test before
1738 it's loaded in repository.
1739 * tools/generate.c: Output version parameter.
1740 * gir/Makefile.am: Add 2.0 version to .gir files.
1742 2008-10-11 Colin Walters <walters@verbum.org>
1744 * giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
1745 if we have mismatched parens.
1747 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1749 * giscanner/girparser.py (_parse_enumeration_bitfield): fix typo
1750 on 'members' variable.
1752 2008-10-11 Colin Walters <walters@verbum.org>
1754 Bug 555947 - update annotations syntax
1756 * giscanner/ast.py: Default to None for transfer. Remove
1757 default transfers for container types; we require this to
1759 * giscanner/girwriter.py: Transfer is now 'none', 'container',
1760 'full' to match repository.
1761 * giscanner/scannerlexer.l: Annotations now are parenthesized.
1762 * giscanner/transformer.py: Update for new annotations syntax.
1765 2008-10-11 Johan Bilien <jobi@litl.com>
1767 * giscanner/scannerparser.y: ignore non-UTF-8 string constants
1769 2008-10-11 Johan Bilien <jobi@litl.com>
1771 Bug 552347: Parse #defines constants
1773 * girepository/gtypelib.c: update the list of value_size
1774 with recently defined type tags
1775 * giscanner/scannerparser.y: brought back parsing of #defined, as
1776 present in older version
1777 * giscanner/giscannermodule.c: bind gi_source_scanner_append_filename
1778 * giscanner/girwriter.py: write out constant tags in the gir
1779 * giscanner/sourcescanner.py: add accessor for const_string
1780 * giscanner/transformer.py, giscanner/glibtransformer.py: handle
1783 2008-10-11 Tommi Komulainen <tommi.komulainen@iki.fi>
1785 Bug 555946: Install a test module exercising all types, transfer
1790 * tests/types/*: Add and install a test module that has functions
1791 accepting and returning most of the basic types to enable bindings
1792 implementors to more easily test their type conversion routines.
1794 2008-10-11 Jürg Billeter <j@bitron.ch>
1796 Bug 552374: Const strings should be identified in the gir.
1798 * giscanner/transformer.py: support string memory management
1799 * tests/scanner/foo.h: use char * and const char *
1800 * tests/scanner/foo-expected.gir: test that
1802 2008-10-11 Johan Dahlin <johan@gnome.org>
1804 * giscanner/girparser.py:
1805 Also parse enums which are not glib types.
1807 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1809 Bug 552370: add one more test for unsigned as a type, not as
1812 * giscanner/ast.py: add 'uint' type name for 'unsigned'.
1813 * test/scanner/foo.h: add function which uses unsigned as a type.
1814 * test/scanner/foo-expected.gir: test that.
1816 2008-10-11 Andreas Rottmann <a.rottmann@gmx.at>
1818 Bug 555712: Struct and union issues
1820 * giscanner/scannerparser.y (struct_declarator): Use information
1821 provided about the bit width of a field.
1822 * giscanner/transformer.py (Transformer._create_member): Pass the
1823 symbol's const_int member to the created field (it represents the
1825 * giscanner/girwriter.py (GIRWriter._write_field): Output 'bits'
1826 field attribute, if present.
1827 * giscanner/ast.py (Field): Add 'bits' member, specifying the
1828 width in bits of the field (only relevant for bitfields).
1831 * giscanner/transformer.py (Transformer._create_typedef_struct)
1832 (Transformer._create_typedef_union): Add calls to _create_struct()
1833 and _create_union(), respectively. This causes the scanner to
1834 generate output for fields of struct and union typedefs.
1837 2008-10-11 Jürg Billeter <j@bitron.ch>
1839 Bug 552370: unsigned not scanned properly
1841 * giscanner/scannerparser.y: combine basic types such as unsigned
1842 int and long long when scanning
1843 * tests/scanner/foo-expected.gir:
1844 * tests/scanner/foo.c: (foo_test_unsigned):
1845 * tests/scanner/foo.h: test that
1847 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1849 Bug 554854: The --typelib-xml and --inject options should reuse
1850 giscanner parser/writer.
1852 * giscanner/ast.py: add constructor list to Struct and Union.
1853 Add new param in Return's contructor to define transfer.
1854 * giscanner/girparser.py: several additions to the parser in order
1855 to have parsing all nodes of the gir xml files.
1856 * tools/g-ir-scanner (typelib_xml_strip, inject): use gir parser
1857 and writer in --inject and --typelib-xml options.
1858 * giscanner/xmlwriter.py: ignore empty attributes instead of
1859 raising an error as this basically exposes a bug in GIRParser.
1860 This should be reverted as soon as the parser is fixed.
1862 2008-10-11 Lucas Rocha <lucasr@gnome.org>
1864 Bug 552376: scanner generates wrong names for enum members when
1865 there's no defined gtype.
1867 * giscanner/utils.py (strip_common_prefix): Always strip common
1868 prefix exactly up to the last "_", and not beyond.
1869 * tests/scanner/foo.h (FooEnumNoType): add FOO_ENUM_NEUF. The point
1870 here is that the first character after the last '_' should should be
1871 the same as the character in the same position on the type name.
1872 * tests/scanner/foo-expected.gir: test that
1874 2008-10-10 Lucas Rocha <lucasr@gnome.org>
1876 Bug 555293: append library_paths to LPATH env variable to work
1877 around a bug in find_library when using ldconfig.
1879 * tools/g-ir-scanner (main): ditto.
1881 2008-10-09 Lucas Rocha <lucasr@gnome.org>
1883 * girepository/girepository.c (register_internal): fix regression on
1884 invoke test case by making sure we load the global module in the
1885 typelib when dealing with inline typelibs.
1886 * girepository/gtypelib.c: a couple of coding style fixes.
1888 2008-10-06 Lucas Rocha <lucasr@gnome.org>
1890 Bug 555294: Add support for multiple shared libraries per typelib.
1892 * girepository/ginvoke.c (g_function_info_invoke),
1893 girepository/ginfo.c(g_registered_type_info_get_g_type): use
1894 g_typelib_symbol instead of g_module_symbol.
1895 * girepository/girepository.h: remove g_typelib_set_module and add
1897 * girepository/gtypelib.[ch] (find_some_symbol, _g_typelib_init,
1898 g_typelib_new_from_memory, g_typelib_new_from_const_memory,
1899 g_typelib_free, g_typelib_symbol): chnage GTypeLib to hold a list of
1900 modules instead of just one. The symbol lookup is now abstracted
1901 behind g_typelib_symbol which tries to find the passed symbol name in
1903 * giscanner/girwriter.py, tools/g-ir-scanner: change scanner to read
1904 and write shared_library attribute as a comma-separated list of libs.
1906 2008-10-06 Colin Walters <walters@verbum.org>
1908 * giscanner/transformer.py: Parse length= annotation as
1909 a parameter name, not a raw int.
1912 2008-10-03 Colin Walters <walters@verbum.org>
1914 Bug 551744: Non-GObject types aren't aggregating ctors and methods
1916 * girepository/gtypelib.c: Allow ctors/methods on struct,union,
1918 * giscanner/glibtransformer.py: Ditto, and GLibBoxed is also a
1922 2008-10-03 Colin Walters <walters@verbum.org>
1924 Bug 554576: scan problem with ev_selection_render_selection()
1926 * giscanner/transformer.py: Only do type resolution once we've
1927 scanned all types. What could happen before is that we'd strip
1928 the namespace from local type "EvSelection" => Selection, and
1929 then later pull a "Selection" from some other namespace because
1930 we hadn't yet seen the local EvSelection. This could come
1931 down to hash table ordering and other things so not easy
1932 to write a test for.
1934 2008-10-03 Lucas Rocha <lucasr@gnome.org>
1936 * giscanner/girwriter.py (_parser_member): fix the last parameter of
1937 GLibEnumMember constructor as it should be the enum member nick.
1939 2008-10-02 Colin Walters <walters@verbum.org>
1941 Bug 552961: remove this parameter for methods
1943 * giscanner/glibtransformer.py: Delete this parameter; it is
1945 * girepository/ginvoke.c: Insert this parameter for methods.
1946 * girepository/gtypelib.c: Remove no longer needed verification of
1947 method this parameter.
1950 2008-09-30 Dan Winship <danw@gnome.org>
1952 Bug 554490: g-ir-scanner gets confused by '\\'
1954 * giscanner/scannerlexer.l (chartext, stringtext): fix use of
1955 backslashes so it will correctly parse '\\' and "\\"
1957 * tests/scanner/annotation.c: add a use of '\\' to make sure that
1960 * giscanner/glibtransformer.py (GLibTransformer.count_type): typo
1962 2008-10-02 Colin Walters <walters@verbum.org>
1964 bug 552393: Note variadic functions
1966 * giscanner/scannerparser.y: Parse ellipsis. Refactor grammar
1967 to use parameter_list directly.
1968 * giscanner/sourcescanner.h: Add ellipsis csymbol type.
1969 * giscanner/ast.py: Add Varargs type.
1970 * giscanner/transformer.py: Check for ellipsis symbol, transform
1972 * girepository/girnode.h: Add varargs flag to in-memory nodes.
1973 Parse varargs functions, but filter them out before we start
1974 compiling the typelib.
1976 2008-10-02 Colin Walters <walters@verbum.org>
1978 Bug 554632: type tag for GType
1980 * girepository/girepository.h, girepository/girepository.c:
1981 Add type tag for GType - it's a special type we don't want
1982 to resolve to just "long".
1983 * docs/typelib-format.txt: Update.
1984 * girepository/girparser.c: Parse it.
1985 * giscanner/glibtransformer.py: Ensure we don't put GType in
1987 * tools/generate.c: Remove hardcoded type list.
1990 2008-09-30 Dan Winship <danw@gnome.org>
1992 Bug 554521: scanner generates wrong names for enum members with
1993 full type name prefix
1995 * giscanner/utils.py (strip_common_prefix): Fix this to strip the
1996 right amount when the entire "first" string is a prefix of
1999 * tests/scanner/foo.h (FooEnumFullname):
2000 * tests/scanner/foo-expected.gir: test that
2002 2008-09-29 Colin Walters <walters@verbum.org>
2004 Bug 552380: Array parameters should be marked in the gir
2006 * giscanner/ast.py: Default char** to utf8[], and guchar* to
2007 uint8[]. Add Array, List, and Map subclasses of Type;
2008 these types can be generic. Return transfer defaults
2009 to true if return value is string or container type.
2010 Delete Sequence type.
2011 * giscanner/scannerlexer.l: Syntax change for annotations;
2012 use <> since it's more readable.
2013 * giscanner/girwriter.py: Write out these changes.
2014 * giscanner/girparser.py: Parse them.
2015 * giscanner/transformer.py: Have a defined set of
2016 both list and map types. When creating a type,
2017 check if the ctype we've parsed is one of them,
2018 if so create a container type subclass as appropriate.
2019 * girepository/girparser.c: Parse in generic types.
2022 2008-09-27 Colin Walters <walters@verbum.org>
2024 * tools/g-ir-scanner: Add --inject option.
2026 2008-09-25 Colin Walters <walters@verbum.org>
2028 Remove non-repository types from GIR
2030 * giscanner/ast.py: The canonical name is 'utf8', not
2032 * giscanner/glibast.py: A few more glib type mappings.
2033 * girepository/girparser.c: We only parse repository types.
2034 * tests/*.gir: Update.
2036 2008-09-23 Colin Walters <walters@verbum.org>
2038 Bug 552566: Add time_t type
2040 We need a type for time_t since it's special in C, and just
2041 mapping it to long precluded bindings from handling it
2044 2008-09-19 Colin Walters <walters@verbum.org>
2046 Bug 552390: Handle capitialization like "DBus" more robustly
2048 The to_underscores function was designed for use against prefixed
2049 names; we need a separate function which will convert names like
2050 DBusFoo into dbus_foo, not d_bus_foo.
2052 2008-09-19 Colin Walters <walters@verbum.org>
2054 Add check to make sure we're not hitting out unresolved types
2056 Validate the "this" argument for methods
2058 Remove heuristic matching of methods to classes based on prefix
2060 It was a broken hack that dated from when we handled underscoring
2061 and capitalization conventions less well.
2063 2008-09-18 Colin Walters <walters@verbum.org>
2065 Bug 552384: Use SHLIB_SUFFIX intead of G_MODULE_SUFFIX for Darwin
2067 On Darwin, the suffix for installed shared libraries (.dylib) is
2068 different from loadable modules (.so). We use a bit of magic shell
2069 script from Behdad Esfahbod to figure out the right suffix.
2071 2008-09-15 Johan Dahlin <johan@gnome.org>
2073 * giscanner/sourcescanner.py (SourceType.type_qualifier): Add
2074 a wrapper for type_qualifier as well.
2076 2008-09-15 Colin Walters <walters@verbum.org>
2078 http://bugzilla.gnome.org/show_bug.cgi?id=552065
2080 * giscanner/ast.py: Add deprecation attributes.
2081 * giscanner/girwriter.py: Write out deprecation data.
2082 * girepository/girparser.c: Relax parsing; deprecated
2083 attribute now includes freeform string.
2084 * giscanner/scannerlexer.l: Parse Deprecated.
2085 * giscanner/transformer.py: Look for deprecated attribute
2087 * tests/scanner/*: Add a Deprecated test.
2089 2008-09-14 Tor Lillqvist <tml@novell.com>
2091 * tests/scanner/Makefile.am (%.typelib): Use $(EXEEXT).
2093 2008-09-14 Colin Walters <walters@verbum.org>
2095 * giscanner/glibtransformer.py: Ignore functions with
2098 2008-09-12 Colin Walters <walters@verbum.org>
2100 * giscanner/glibtransformer.py: Accept Gtk.Type as GType.
2102 2008-09-12 Colin Walters <walters@verbum.org>
2104 * giscanner/ast.py: Bind pid_t to INT for vte.
2106 2008-09-12 Colin Walters <walters@verbum.org>
2108 * giscanner/girparser.py: Parse c:type for boxed records/unions.
2109 * giscanner/glibast.py: Avoid overwriting ctype.
2110 * giscsanner/transformer.py: Try resolving types using the GType names.
2112 2008-09-12 Colin Walters <walters@verbum.org>
2114 * giscanner/minixpath.py: Code to run an "XPath"
2115 assertion against an XML tree, taken from
2116 gir-repository/gir/tests.py.
2117 * giscanner/Makefile.am: Ship it.
2118 * tools/g-ir-scanner: Add --xpath-assertions option.
2119 * gir/GLib-assertions.txt: Add a few assertions.
2120 * gir/Makefile.am: Run them.
2122 2008-09-11 Colin Walters <walters@verbum.org>
2124 http://bugzilla.gnome.org/show_bug.cgi?id=551737
2126 * giscanner/transformer.py: Fix strip_namespace_func to only strip
2127 prefix if it ends with _. Tweak callback stripping to determine
2128 based on presence of _ whether we need to use strip_namespace_func
2129 or strip_namespace_object.
2131 2008-09-09 Owen Taylor <otaylor@redhat.com>
2133 * docs/typelib-format.txt: Wether => Whether
2135 2008-09-08 Colin Walters <walters@verbum.org>
2137 * girepository/girparser.c: Default to "readable" for properties.
2138 * giscanner/ast.py: Add readable, writable etc.
2139 * giscanner/girwriter.py: Writ them.
2140 * giscanner/glibtransformer.py: Inspect them.
2143 2008-09-07 Colin Walters <walters@verbum.org>
2145 * giscanner/cgobject.py: Add comment.
2147 2008-09-07 Colin Walters <walters@verbum.org>
2149 * giscanner/cgobject.py: Also call g_thread_init.
2151 2008-09-07 Colin Walters <walters@verbum.org>
2153 * giscanner/transformer.py: Fix regression by not
2154 stripping prefix before stripping namespace for unions
2157 2008-09-06 Colin Walters <walters@verbum.org>
2159 * giscanner/transformer.py: If a namespace contains
2160 multiple caps, try stripping both gnomekeyring_ and
2163 2008-09-07 Johan Dahlin <johan@gnome.org>
2165 Bug 551162 – giscanner does not recognize asm and __asm__
2166 * giscanner/scannerlexer.l:
2167 Patch by Jani Monoses.
2169 2008-09-06 Colin Walters <walters@verbum.org>
2171 * girepository/girnode.c: Allow gtype_name
2172 and gtype_init in struct and union.
2173 * girepository/girparser.c: Parse glib:
2174 boxed bits for both structure and union.
2175 * girepository/gtypelib.c: Don't barf
2176 if structure is boxed.
2177 * giscanner/girparser.py: Parse new XML
2179 * giscanner/girwriter.py: Write out new
2181 * giscanner/glibast.py: Define new classes
2182 which are both Boxed and Struct/Union, as
2183 well as an "Other" for everything else.
2184 * giscanner/glibtransformer.py: Handle
2185 boxed types specially; we try to merge
2186 them with a struct/union if one exists,
2187 otherwise fall back to generic boxed.
2189 * tools/generate.c: Write out new format.
2191 2008-09-06 Johan Dahlin <johan@gnome.org>
2193 * giscanner/grealpath.h: Include stdlib.h
2195 * docs/g-ir-generate.1: Remove leading %
2197 2008-09-01 Colin Walters <walters@verbum.org>
2199 * girepository/girparser.c: Look at c:type to determine
2200 whether or not an item is a pointer.
2202 2008-09-01 Johan Dahlin <johan@gnome.org>
2204 * tests/scanner/Makefile.am:
2205 Set PYTHONPATH so the scanner can run
2206 even if you didn't install anything.
2208 2008-09-01 Johan Dahlin <johan@gnome.org>
2211 Post-release version bump
2214 2008-09-01 Johan Dahlin <johan@gnome.org>
2218 2008-08-31 Colin Walters <walters@verbum.org>
2220 * giscanner/glibtransformer.py: Quiet info
2223 2008-08-31 Johan Dahlin <johan@gnome.org>
2226 Bump version to 0.5.0
2228 2008-08-31 Colin Walters <walters@verbum.org>
2230 * giscanner/glibtransformer.py: Follow aliases to ensure
2231 we don't get a constructor returning a basic type.
2232 * giscanner/transformer.py: Add function to follow aliases.
2235 2008-08-31 Johan Dahlin <johan@gnome.org>
2237 * giscanner/scannerlexer.l:
2238 * giscanner/scannerparser.y:
2239 * giscanner/sourcescanner.h:
2240 * giscanner/sourcescanner.py:
2241 Parse GCC extensions in the parser instead of just undeffing them
2242 in the pre-processor.
2244 2008-08-31 Johan Dahlin <johan@gnome.org>
2246 * giscanner/glibtransformer.py:
2247 Clean up a huge if. Do not add methods or constructors
2249 * giscanner/utils.py:
2250 second might be longer than first, check that.
2252 2008-08-31 Johan Dahlin <johan@gnome.org>
2257 2008-08-31 Colin Walters <walters@verbum.org>
2259 * girepository/girparser.c: Don't lose if we
2262 2008-08-31 Colin Walters <walters@verbum.org>
2264 * giscanner/glibtransformer.py: Look for libtool
2265 library in current directory
2266 * tests/scanner - Update.
2268 2008-08-30 Colin Walters <walters@verbum.org>
2270 * docs/typelib-format.txt: Add a guint32
2272 * gir/Makefile.am: Dep on Makefile
2273 * girepository/ginfo.c:
2274 * girepository/girepository.c: Clean up
2275 default typelib handling; remove global
2276 default_typelib variable. Ensure we handle
2277 NULL repository in more places.
2278 Support dependency resolution.
2279 Support lazy loading.
2280 * girepository/girepository.h: Remove
2281 g_irepository_unregister; we don't support
2282 unloading typelibs since really they're
2283 process-global. Update for lazy loading
2285 * girepository/girmodule.c: Use g_new0.
2286 Add dependencies to GirModule.
2287 * girepository/girparser.c: Parse dependencies.
2288 * girepository/gtypelib.c: Add 4 bytes for
2290 * tests/Makefile.am: Kill off gobject.gir,
2291 it conflicts with the real one.
2292 * tests/object.gir: Dep on GObject.
2293 * tools/generate.c: Take --includedir
2294 argument to say which directories to search
2295 for typelibs. Print out dependencies.
2297 2008-08-30 Colin Walters <walters@verbum.org>
2299 * giscanner/glibtransformer.py: Reduce warning noise.
2301 2008-08-29 Colin Walters <walters@verbum.org>
2303 * girepository/ginfo.c: Add some assertions regarding
2304 refcounts, just to be sure.
2305 * giscanner/glibtransformer.py: Blacklist a few more
2308 2008-08-29 Colin Walters <walters@verbum.org>
2310 * giscanner/glibtransformer.py: Blacklist a few
2311 functions that use GError oddly
2313 2008-08-29 Colin Walters <walters@verbum.org>
2315 * girepository/gtypelib.c: Don't crash if no
2318 2008-08-29 Colin Walters <walters@verbum.org>
2320 * girepository/girparser.c: Handle chains of aliases
2321 across modules by ensuring we fully qualify aliases
2324 2008-08-29 Colin Walters <walters@verbum.org>
2326 * girepository/girparser.c: Don't search aliases
2329 2008-08-29 Colin Walters <walters@verbum.org>
2331 * girepository/girparser.c: Rewrite type parsing
2332 to handle both GLib parsing case as well as correctly
2333 handling GLib.List and friends. Don't try to treat
2334 e.g. ListStore as a List.
2336 2008-08-29 Colin Walters <walters@verbum.org>
2338 * girepository/gtypelib.c: Add more context
2341 2008-08-29 Colin Walters <walters@verbum.org>
2343 * giscanner/glibtransformer.py: Add some informative
2344 logging messages in corner cases. Be sure we use
2345 the most recent node set instead of a cache
2346 when generating result set.
2347 * tests/: Remove duplicated bits in expected girs
2348 * girepository/girparser.c: Accept both List (for
2349 compiling GLib) and GLib.List (what the scanner
2352 * tools/generate.c: Generate canonical form.
2354 2008-08-29 Johan Dahlin <johan@gnome.org>
2356 * giscanner/config.py.in:
2357 Use datarootdir instead of datadir to avoid
2358 an autoconf warning.
2360 2008-08-29 Johan Dahlin <johan@gnome.org>
2364 * examples/gdk-pixbuf.gidl:
2366 Update and remove old cruft.
2368 2008-08-29 Johan Dahlin <johan@gnome.org>
2371 * docs/g-ir-compiler.1:
2372 * docs/g-ir-generate.1:
2373 * docs/g-ir-scanner.1:
2374 Add man pages for the generator and compiler.
2376 2008-08-29 Johan Dahlin <johan@gnome.org>
2378 * docs/g-ir-scanner.1: Document
2380 * giscanner/Makefile.am:
2381 * giscanner/gidlparser.py:
2382 * giscanner/gidlwriter.py:
2383 * tools/g-ir-scanner:
2384 Remove gidl support.
2386 2008-08-28 Colin Walters <walters@verbum.org>
2388 * tests/scanner/Makefile.am: Pass the right
2389 --includedir args. Add a Makefile dep.
2390 * tools/compiler.c: Pass includedirs down.
2391 * girepository/girparser.c: Actually put
2392 includedirs in context, pass down. Fix
2395 2008-08-28 Colin Walters <walters@verbum.org>
2397 * gir/Makefile.am: Use --includedir
2398 * girepository/girparser.c: Recursively parse
2399 includes to pull in aliases and expand them.
2400 We need this to avoid putting unknown names in
2402 * tools/compiler.c: Add --includedir option.
2403 * giscanner/ast.py: Map size/ssize to types
2406 2008-08-28 Tor Lillqvist <tml@novell.com>
2408 Make check now runs successfully on Windows.
2410 * tools/compiler.c (write_out_typelib): Use binary mode for output
2413 * girepository/girnode.c: Don't print NULL strings.
2415 * tests/invoke/Makefile.am
2416 * tests/scanner/Makefile.am: Use -no-undefined on Windows to
2417 convince libtool to build shared libraries.
2419 * tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
2420 g_assert() instead of printing out expected errors.
2422 2008-08-28 Tor Lillqvist <tml@novell.com>
2424 * girepository/gtypelib.h: Change type of bitfield fields from
2425 guint to the most suitable smaller type. This makes the struct
2426 sizes match the ones on Linux that the sanity check expects when
2427 using gcc -mms-bitfields on Windows.
2429 2008-08-28 Johan Dahlin <johan@gnome.org>
2434 * giscanner/Makefile.am:
2435 * tests/Makefile.am:
2436 * tests/scanner/Makefile.am:
2437 Make distcheck pass.
2439 2008-08-27 Johan Dahlin <johan@gnome.org>
2441 * giscanner/Makefile.am:
2442 Only send in -no-undefined on Win32 as it breaks on MacOS X.
2444 2008-08-27 Tor Lillqvist <tml@novell.com>
2446 Make g-ir-scanner work on Windows. Still problems with the typelib
2447 code. Changes okayed by jdahlin.
2449 * configure.ac: Check for Windows, set Automake conditional
2450 OS_WIN32. Change backslashes to forward slashes in pyexecdir to
2451 avoid shell quoting issues
2453 * girepository/Makefile.am: Use -no-undefined so that libtool
2454 agrees to build a shared library on Windows.
2456 * girepository/girparser.c (backtrace_stderr): No backtrace() on
2457 Windows. Empty implementation on Windows so far.
2459 * girepository/gtypelib.c (g_typelib_check_sanity): Give more
2460 informative error message for the assertion failures. Tell also
2461 what the expected size of the struct is. Check all sizes first and
2462 fail afterwards if at least one size was different from expected.
2464 * tools/Makefile.am: Reorder libraries into proper logical
2467 * tools/generate.c: Don't include <dlfcn.h>, not used.
2469 * giscanner/Makefile.am: On Windows, link with the Python library,
2470 and install the module DLL as _giscanner.pyd. Remove the
2471 unnecessary import library and libtool library that libtool has
2474 * giscanner/scannerlexer.l: Recognize the gcc __attribute__ syntax
2475 and just skip it. Recognize also two "l" suffixes for long long
2476 constants. Recognize also __inline__.
2478 * giscanner/grealpath.h (g_realpath): Implement on Windows, using
2479 GetFullPathName(). As such, GetFullPathName() does more than the
2480 UNIX realpath(). It also changes relative paths into absolute
2481 paths. But for our purposes that shouldn't matter.
2483 * giscanner/giscannermodule.c (pygi_source_scanner_parse_file): On
2484 Windows the file descriptor passed to us is from Python. Python
2485 Python2.5 uses the msvcr71.dll C library, while mingw-built code
2486 uses msvcrt.dll. On Windows, file descriptors are specific to
2487 which C library is used. So we must find out what underlying OS
2488 handle corresponds to the file descriptor Python passes us, and
2489 then make that into a file descriptor valid for the C library this
2492 * giscanner/sourcescanner.py (_parse): Don't need to bypass
2493 __attribute__ as the lexer now handles it. The definition as empty
2494 was ineffective for mingw anyway, as mingw's _mingw.h undefines
2495 __attribute__. Close the temp file before unlinking it.
2497 * giscanner/cgobject.py: Use correct library name for the gobject
2500 * gir/Makefile.am: Must pass the full basename of the DLLs on
2501 Windows to g-ir-scanner. It's a bit ugly that we have to "know"
2502 that the names of the GLib DLLs are like libglib-2.0-0.dll, but in
2503 reality they won't change, until there is a GLib 3, and then also
2504 the Unix code here needs changing.
2506 Must pass CPPFLAGS to g-ir-scanner when building GLib.gir so that
2509 2008-08-26 Colin Walters <walters@verbum.org>
2511 * girepository/girepository.c: Search
2512 $DATADIR/girepository instead of
2513 $DATADIR/gitypelibs; this naming makes
2514 it clearer that e.g. jgir can install
2516 * gir/Makefile.am: Install there.
2518 2008-08-26 Colin Walters <walters@verbum.org>
2520 * girepository/gtypelib.c (_g_typelib_init): Also
2521 use G_MODULE_SUFFIX instead of hardcoding .so.
2523 2008-08-26 Colin Walters <walters@verbum.org>
2525 * girepository/gtypelib.c (_g_typelib_init): Free
2526 string in the right place.
2528 2008-08-26 Colin Walters <walters@verbum.org>
2530 * girepository/gtypelib.c (_g_typelib_init): Handle
2531 both .la and .so names; this works better in the
2532 uninstalled library case.
2534 2008-08-26 Johan Dahlin <johan@gnome.org>
2537 * giscanner/Makefile.am:
2538 * giscanner/cgobject.py:
2539 * giscanner/config.py.in:
2540 * giscanner/sourcescanner.py:
2541 Avoid undeffing __GNUC__, instead define
2542 __attribute__ & friends. Remove glibconfig.h hack.
2543 This makes gobject-introspection work better on
2544 MacOS X, Thanks to Richard Hult for kind help.
2546 2008-08-25 Colin Walters <walters@verbum.org>
2548 * giscanner/glibtransformer.py: Always print
2551 2008-08-25 Colin Walters <walters@verbum.org>
2553 * giscanner/glibtransformer.py: Skip over
2554 interfaces we don't know.
2556 2008-08-25 Colin Walters <walters@verbum.org>
2558 * girepository/girparser.c: Parse new implements
2559 syntax, drop gapi one.
2560 * tests/object.gir: Update.
2561 * tools/generate.c: Generate new syntax.
2563 2008-08-25 Colin Walters <walters@verbum.org>
2565 * giscanner/ast.py: Add interfaces property
2567 * giscanner/girwriter.py: Write out implemented
2569 * giscanner/glibtransformer.py: Introspect
2570 implemented interfaces.
2571 * tests/scanner/*: Make FooObject implement
2574 2008-08-25 Colin Walters <walters@verbum.org>
2576 * giscanner/glibtransformer.py: More correctly pair
2577 methods; if we have a symbol that starts with
2578 e.g. hippo_canvas look for a matching HippoCanvas
2579 class before accepting e.g. HippoCanvasImage.
2581 2008-08-24 Colin Walters <walters@verbum.org>
2583 * tools/g-ir-scanner: Filter out unknown options from
2586 2008-08-24 Colin Walters <walters@verbum.org>
2588 * giscanner/glibtransformer.py: Fail with better
2589 error if we can't find library.
2591 2008-08-24 Colin Walters <walters@verbum.org>
2593 * tools/g-ir-scanner: Use subprocess instead of
2594 commands, works on Windows and avoids the evil
2597 2008-08-24 Colin Walters <walters@verbum.org>
2599 * giscanner/glibtransformer.py: Skip over
2600 g_object_get_type from GLib trunk.
2602 2008-08-24 Colin Walters <walters@verbum.org>
2604 * girepository/girepository.c (g_irepository_require):
2605 Don't open shared library here; we already do it
2608 2008-08-24 Colin Walters <walters@verbum.org>
2610 * girepository/gtypelib.c: Add context stack so
2611 when we get an error we can print out nicely
2614 2008-08-24 Johan Dahlin <johan@gnome.org>
2616 * girepository/girparser.c (start_glib_boxed), (start_function),
2617 (start_field), (start_alias):
2618 Refactor a couple of parsing functions to be simpler to follow.
2621 2008-08-24 Johan Dahlin <johan@gnome.org>
2623 * girepository/girparser.c (start_function):
2624 Remove left-over code, checking type of function.
2626 2008-08-23 Colin Walters <walters@verbum.org>
2628 * giscanner/config.py: Define DATADIR.
2629 * giscanner/transformer.py: Look in DATADIR.
2631 2008-08-23 Colin Walters <walters@verbum.org>
2633 * girepository/gtypelib.c: Check constructor
2635 * girepository/girnode.c: Small tweaks.
2636 * girepository/ginfo.c: Calculate signature offsets
2638 * girepository/girparser.c: Remove duplicate
2640 * giscanner/glibtransformer.py: Avoid marking
2641 functions which return a basic type as
2644 2008-08-23 Colin Walters <walters@verbum.org>
2646 * girepository/girparser.c: Ignore <include>.
2647 * giscanner/girparser.py: Parse them.
2648 * giscanner/girwriter.py: Generate them.
2649 * giscanner/transformer.py: Process <include>
2650 recursively. Don't require full path for
2651 includes, look in {$XDG_DATA_DIRS}/gir.
2652 * tools/g-ir-scanner: Pass through includes.
2653 * Makefile.am: Remove extra --include
2655 * *-expected.gir: Add expected includes.
2657 2008-08-23 Johan Dahlin <johan@gnome.org>
2659 * tests/scanner/Makefile.am:
2660 * tests/scanner/annotation-expected.gir:
2661 * tests/scanner/drawable-expected.gir:
2662 Avoid duplication in the Makefile, regenerate with new
2663 namespaces (same as the filename)
2665 2008-08-22 Colin Walters <walters@verbum.org>
2667 * girepository/girnode.c: Don't hardcode integers,
2670 2008-08-22 Johan Dahlin <johan@gnome.org>
2672 * giscanner/sourcescanner.py:
2673 Check for ../gobject-introspection-1.0.pc.in to determine
2674 if we run installed or uninstalled.
2676 2008-08-22 Johan Dahlin <johan@gnome.org>
2679 * giscanner/sourcescanner.py:
2680 Send in undefs/defines via writing it directly to stdin
2681 of cpp instead of via arguments.
2683 2008-08-22 Colin Walters <walters@verbum.org>
2685 * tools/generate.c, tools/compiler.c: Default
2687 * all Makefile.am: Update.
2689 2008-08-22 Colin Walters <walters@verbum.org>
2691 * girepository/girparser.c: Pass through
2692 recursive types. Avoid overwriting errors.
2693 * giscanner/xmlwriter.py: Always write the
2695 * tests/*.gir: Adjust.
2696 * tests/scanner/Makefile.am: Build typelibs,
2697 and generate XML from those. Once we
2698 have a good diff mechanism...
2699 * tests/scanner/*-expected.gir: Add XML
2701 * tools/g-ir-scanner: Accept --typelib-xml
2703 * tools/generate.c: Better defaults for transfer.
2705 2008-08-22 Johan Dahlin <johan@gnome.org>
2709 * giscanner/Makefile.am:
2710 * giscanner/config.py.in:
2711 * giscanner/sourcescanner.py:
2712 Use the generated glibconfig.h for all scanner invokations.
2713 Rename it to glibconfig-scanner.h and install it.
2714 Add a config.py which so far contains the include dir.
2716 2008-08-22 Johan Dahlin <johan@gnome.org>
2719 Replace glibconfig.h with our own, do some replacement
2720 for CPP/C features we do not support
2722 2008-08-22 Colin Walters <walters@verbum.org>
2724 * tools/generate.c (write_callable_info): Fix unref
2727 2008-08-22 Colin Walters <walters@verbum.org>
2729 * gobject-introspection-1.0.pc.in: Add g-ir-generate.
2730 * tests/Makefile.am: Support $(DEBUG)
2731 * tools/generate.c: Do immediate close tags if no
2734 2008-08-21 Colin Walters <walters@verbum.org>
2736 * tests/scanner/drawable-expected.gir,
2737 * tests/scanner/drawable.c,
2738 * tests/scanner/drawable.h:
2741 2008-08-21 Colin Walters <walters@verbum.org>
2743 * giscanner/glibtransformer.py: Compute prefix
2744 by searching through the symbol for bits
2745 rather than going directly from ctype; this fixes
2748 2008-08-21 Colin Walters <walters@verbum.org>
2750 * giscanner/glibtransformer.py: Also try squashing
2751 underscores from namespace, fixes webkit_web_view_new.
2753 2008-08-21 Colin Walters <walters@verbum.org>
2755 * giscanner/glibtransformer.py: More ctor work,
2756 avoid having gtk_window_group_new end up under
2759 2008-08-21 Colin Walters <walters@verbum.org>
2761 * giscanner/glibtransformer.py: Much simpler approach
2762 of mapping uscored names to classes.
2763 * giscanner/utils.py: Remove unnecessary function.
2765 2008-08-21 Johan Dahlin <johan@gnome.org>
2767 * girepository/girepository.c (g_irepository_require):
2768 Plug memory leak and avoid using freed memory.
2769 Resolve the whole module path, here as well.
2771 2008-08-21 Colin Walters <walters@verbum.org>
2773 * giscanner/glibtransformer.py: Look up all permutations
2774 of class names when scanning methods/ctors based on
2775 the prefix instead of using the return value. This
2776 associates gtk_window_new with the right class.
2778 2008-08-21 Colin Walters <walters@verbum.org>
2780 * girepository/girmodule.c (g_ir_module_build_typelib):
2781 Revert change to increment header_size; we do that in
2784 2008-08-21 Colin Walters <walters@verbum.org>
2786 * girepository/girnode.c (write_string): Tweak to
2787 use UINT instead of INT. Not likely to matter.
2788 * girepository/girmodule.c (g_ir_module_build_typelib):
2789 Add to header_offset as well for header strings
2790 to match what write_string does.
2791 * girepository/gtypelib.c: Replace is_name with
2792 validate_name, which more strongly validates and
2793 handles errors in a better way. Update all callers.
2794 * giscanner/glibtransformer.py: Handle constructors
2797 2008-08-21 Johan Dahlin <johan@gnome.org>
2799 * gir/Makefile.am (typelibs_DATA): Build and
2800 install the Gio.typelib too
2802 * girepository/gtypelib.c (_g_typelib_init):
2803 Use g_module_build_path to resolve the shlib name
2805 2008-08-21 Colin Walters <walters@verbum.org>
2807 * gir/Makefile.am: CLEANFILES typelibs too.
2809 2008-08-21 Johan Dahlin <johan@gnome.org>
2811 * giscanner/glibtransformer.py:
2812 Do not send .la files through find_library.
2814 2008-08-21 Colin Walters <walters@verbum.org>
2816 * girepository/girparser.c (g_irepository_require):
2817 Fix one small leak in error case.
2819 2008-08-21 Johan Dahlin <johan@gnome.org>
2822 Parse glibconfig.h as well and install the compiled
2825 2008-08-21 Johan Dahlin <johan@gnome.org>
2828 * giscanner/glibtransformer.py:
2829 * tools/g-ir-scanner:
2830 Do not hard-core library names in the Makefile, reuse
2831 ctypes find_library instead.
2833 2008-08-21 Johan Dahlin <johan@gnome.org>
2835 * girepository/girparser.c (resolve_aliases):
2836 Remove compilation warnings
2838 2008-08-21 Johan Dahlin <johan@gnome.org>
2840 * girepository/girepository.c (g_irepository_require):
2841 Rewrap and fix double free bug by leaking a bit.
2843 2008-08-20 Colin Walters <walters@verbum.org>
2845 * girepository/girepository.c: Add new function
2846 g_irepository_get_typelib_path which tells
2847 us from where we loaded a namespace.
2849 2008-08-20 Colin Walters <walters@verbum.org>
2851 * tests/scanner/*-expected.gir: Adjust for
2852 added shared-library.
2853 * giscanner/giwriter.py: Make pylint happy.
2855 2008-08-20 Colin Walters <walters@verbum.org>
2857 * girepository/girmodule.c (g_ir_module_build_typelib):
2858 Calculate size correctly, avoid use-after-free.
2860 2008-08-20 Colin Walters <walters@verbum.org>
2862 * girepository/girepository.c: Remove
2863 g_irepository_register_file in favor of
2864 g_irepository_require. There are two
2865 possible deployment scenarios for typelibs:
2866 First, separate in $DATADIR/gitypelibs/. Second,
2867 they may be embedded in shlibs. However since
2868 the first is now the normal case, the API is
2869 optimized around it.
2871 Refactor internals to look up typelibs for
2872 namespaces just-in-time, but we expect
2873 consumers to call g_irepository_require.
2875 Also, add some docs. No one has died from that
2877 * gir/Makefile.am: Need --library for glib.
2878 * giscanner/girwriter.py: Write out shared-library.
2879 * tools/g-ir-writer: Take the first --library
2880 argument as the target of shared-library. In
2881 the future we should make this nicer with pkg-config
2884 2008-08-20 Colin Walters <walters@verbum.org>
2886 * girepository/girparser.py: And parse them.
2888 2008-08-20 Johan Dahlin <johan@gnome.org>
2890 * giscanner/glibast.py: Add gshort/gushort types
2892 2008-08-20 Colin Walters <walters@verbum.org>
2894 * gir/Makefile.am: Rename .gir files using GI namespace.
2895 * girepository/girepository.c: Use XDG_DATA_DIRS for
2896 looking up typelibs. Also typelibs are now suffixed
2898 * tests/invoke/Makefile.am: Only use metadata.
2899 * girepository/Makefile.am: Remove unnecessary include.
2900 * tests/scanner/Makefile.am: Update using GI namespaces
2901 for scanner includes.
2903 2008-08-20 Colin Walters <walters@verbum.org>
2905 * girepository/transformer.py: Suppress aliases whose
2907 * girepository/ast.py: Define some more aliases.
2909 2008-08-20 Colin Walters <walters@verbum.org>
2911 * girepository/girparser.c: Avoid alias infloops.
2913 2008-08-20 Colin Walters <walters@verbum.org>
2915 * tests/scanner/foo-expected.gir: Fix expected list type.
2917 2008-08-20 Johan Dahlin <johan@gnome.org>
2919 * giscanner/glibtransformer.py (GLibTransformer._resolve_type_name):
2920 Add a workaround for #548689.
2921 We can now compile gtk!
2923 2008-08-20 Colin Walters <walters@verbum.org>
2925 * giscanner/glibtransformer.py: Try to look up
2926 aliases using the c:type too.
2928 2008-08-20 Colin Walters <walters@verbum.org>
2930 * girepository/girparser.c: Parse union fields.
2932 2008-08-20 Johan Dahlin <johan@gnome.org>
2934 * giscanner/ast.py: Make time_t an alias for long
2936 * gir/gio-2.0-good.gir:
2937 * gir/glib-2.0-good.gir:
2938 * gir/gobject-2.0-good.gir:
2940 * giscanner/glibtransformer.py:
2941 Do not delete Class structures, we need them in gdk/gtk.
2942 * tests/scanner/drawable-expected.gir:
2943 * tests/scanner/foo-expected.gir:
2944 * tests/scanner/utility-expected.gir:
2947 2008-08-20 Johan Dahlin <johan@gnome.org>
2949 * tests/scanner/Makefile.am:
2950 * tests/scanner/annotation-expected.gir:
2951 * tests/scanner/annotation.c (annotation_object_class_init),
2952 (annotation_object_init), (annotation_object_method),
2953 (annotation_object_in), (annotation_object_out),
2954 (annotation_object_inout), (annotation_object_inout2),
2955 (annotation_object_inout3), (annotation_object_calleeowns),
2956 (annotation_object_calleesowns), (annotation_object_get_strings),
2957 (annotation_object_with_voidp), (annotation_object_get_objects),
2958 (annotation_object_create_object), (annotation_object_allow_none):
2959 * tests/scanner/annotation.h:
2960 * tests/scanner/foo-expected.gir:
2961 * tests/scanner/foo.c:
2962 * tests/scanner/foo.h:
2963 Split out annotation tests out of foo
2965 2008-08-20 Johan Dahlin <johan@gnome.org>
2967 * tests/scanner/Foo-expected.gir:
2968 * tests/scanner/Makefile.am:
2969 * tests/scanner/foo-expected.gir:
2970 * tests/scanner/foo-object.h:
2971 * tests/scanner/foo.c:
2972 Foo->foo, foo-object.h -> foo.h
2974 2008-08-20 Johan Dahlin <johan@gnome.org>
2976 * tests/scanner/Foo-expected.gir:
2977 * tests/scanner/Makefile.am:
2978 * tests/scanner/drawable-expected.gir:
2979 * tests/scanner/drawable.c (test_drawable_class_init),
2980 (test_drawable_init):
2981 * tests/scanner/drawable.h:
2982 * tests/scanner/foo-object.h:
2983 * tests/scanner/foo.c (foo_boxed_method):
2984 Move the drawable parts out of Foo to its own test.
2986 2008-08-20 Johan Dahlin <johan@gnome.org>
2988 * tests/scanner/Foo-expected.gir:
2989 * tests/scanner/foo-object.h:
2990 * tests/scanner/foo.c (foo_drawable_class_init),
2991 (foo_drawable_init):
2992 Add a based on GdkDrawable which generates
2995 2008-08-19 Colin Walters <walters@verbum.org>
2997 * giscanner/transformer.py: Don't try
2998 to strip prefix before namespace.
3000 2008-08-19 Johan Dahlin <johan@gnome.org>
3002 * giscanner/transformer.py:
3003 * tests/scanner/Foo-expected.gir:
3004 * tests/scanner/foo-object.h:
3005 Add support for typedef void foo type of
3008 2008-08-19 Johan Dahlin <johan@gnome.org>
3011 * giscanner/girwriter.py:
3012 * giscanner/glibtransformer.py:
3013 * giscanner/transformer.py:
3014 * tests/scanner/Foo-expected.gir:
3015 Add basic support for union, base the code much
3016 on Struct. Add a testcase.
3018 2008-08-19 Johan Dahlin <johan@gnome.org>
3020 * tests/scanner/Foo-expected.gir:
3021 * tests/scanner/foo-object.h:
3022 Add a union testcase which the compiler currently
3025 2008-08-19 Johan Dahlin <johan@gnome.org>
3027 * gobject-introspection-1.0.pc.in:
3028 Add a g_ir_compiler variable
3030 2008-08-19 Colin Walters <walters@verbum.org>
3032 * giscanner/ast.py: Rework types to be more closely
3034 * giscanner/girparser.py: Parse more bits.
3035 * giscanner/girwriter.py: Write sequences in a new
3036 way that specifies container type.
3037 * giscanner/glibast.py: Adjust for ast.py changes,
3038 add 'ctype' property to GLibObject and GLibInterface
3039 so we can look things up by it later.
3040 * gicanner/transformer.py: Names is new class holding
3041 the various namespaces we manage. Do not confuse
3042 with Namespace which is toplevel XML node effectively.
3043 Rework all type resolution to go through
3044 _resolve_type_name_1.
3045 * giscanner/glibtransformer.py: Raise UnknownTypeError
3046 instead of ValueError for cleanliness. Add Unresolved
3047 class to mark types whose parent we haven't seen yet.
3048 Use new Names object from transformer.py.
3049 Correctly look up parent=.
3050 Fix type validation to handle sequences.
3051 * tests/scanner/Foo-expected.gir: Update for sequence
3052 work, int instead of int32.
3053 * tools/g-ir-scanner: Add --noclosure option
3054 * gir/Makefile.am: Use --noclosure by default for
3057 2008-08-18 Johan Dahlin <johan@gnome.org>
3059 * gir/gio-2.0-good.gir:
3060 * gir/glib-2.0-good.gir:
3061 * gir/gobject-2.0-good.gir:
3064 2008-08-18 Johan Dahlin <johan@gnome.org>
3067 * giscanner/girparser.py:
3068 * giscanner/girwriter.py:
3069 * giscanner/glibast.py:
3070 * giscanner/glibtransformer.py:
3071 * giscanner/transformer.py:
3072 * tests/scanner/Foo-expected.gir:
3073 * tests/scanner/foo-object.h:
3074 * tests/scanner/utility-expected.gir:
3075 * tests/scanner/utility.h:
3076 Redo type resolving and validation.
3077 Add a couple of new tests.
3078 Patch mostly written by Colin.
3080 2008-08-18 Johan Dahlin <johan@gnome.org>
3083 * giscanner/girparser.py:
3085 * giscanner/transformer.py:
3086 Improve enum parsing for enums without a GType.
3087 Make flags/enum references to other girs work
3088 * giscanner/utils.py:
3090 * tests/scanner/Makefile.am:
3091 * tests/scanner/foo-object.h:
3092 * tests/scanner/utility-expected.gir:
3093 * tests/scanner/utility.h:
3094 Add a new test for external enum references
3096 2008-08-18 Johan Dahlin <johan@gnome.org>
3098 * docs/global-module-registry.txt: Update
3100 * tests/array.gir: Update with new type proposal
3102 * girepository/girepository.c (g_type_tag_to_string):
3103 * girepository/girepository.h:
3104 * girepository/girnode.c (g_ir_node_get_full_size_internal),
3106 * girepository/girnode.h:
3107 Make enum serializing functions public. Clean up some whitespace.
3109 2008-08-17 Johan Dahlin <johan@gnome.org>
3111 * docs/global-module-registry.txt:
3112 Add a document for an on disk module registry format
3114 2008-08-17 Johan Dahlin <johan@gnome.org>
3117 * gir/gio-2.0-good.gir:
3120 2008-08-17 Johan Dahlin <johan@gnome.org>
3123 * gir/glib-2.0-good.gir:
3124 * gir/gobject-2.0-good.gir:
3125 * giscanner/cgobject.py:
3126 * giscanner/glibtransformer.py:
3127 Regenerate GObject & GType.
3128 Avoid warnings when generating gobject-2.0.gir.
3129 Introspect a little more, and skip *_get_type functions.
3131 2008-08-17 Colin Walters <walters@verbum.org>
3133 * gir/glib-2.0.gir, gir/gobject-2.0.gir:
3134 Rename to -good, always generate during build.
3135 * gir/Makefile.am: Ensure .gir files dep on
3136 all scanner sources.
3137 * Makefile.am: Switch build order to ensure
3138 the scanner is ready before we do gir/.
3139 * tools/g-ir-scanner: Look for .git too.
3141 2008-08-17 Johan Dahlin <johan@gnome.org>
3143 * girepository/gtypelib.c (validate_enum_blob):
3144 * giscanner/glibtransformer.py:
3145 * giscanner/transformer.py:
3146 Remove resolve_possible_typedefs, it was unused.
3147 Allow multiple enum values of the sample value in an enum,
3148 since it's actually pretty common.
3149 Register enums so they can be resolved too.
3151 2008-08-16 Johan Dahlin <johan@gnome.org>
3153 * giscanner/girparser.py:
3154 Parse enumeration/bitfield.
3156 2008-08-16 Johan Dahlin <johan@gnome.org>
3158 * giscanner/girparser.py:
3161 2008-08-16 Johan Dahlin <johan@gnome.org>
3163 * giscanner/glibtransformer.py:
3164 Resolve type names for alias targets
3165 * giscanner/transformer.py:
3166 Skip FILE* parameters fow now
3168 2008-08-16 Johan Dahlin <johan@gnome.org>
3171 * gir/gobject-2.0.gir:
3174 * tests/scanner/Makefile.am:
3177 2008-08-15 Colin Walters <walters@verbum.org>
3179 * giscanner/glibtransformer.py: Explicitly construct
3180 new list, since we're deleting as we iterate.
3181 Don't delete all structures which end in Class; just
3182 ones which have a paired GObject.
3183 Fix printing of type warning.
3184 * giscanner/transformer.py: Make strip_namespace_object
3185 be the identity function if it doesn't match the
3188 2008-08-15 Colin Walters <walters@verbum.org>
3190 * giscanner/cgobject.py: Define yet more argument
3191 prototypes; fix prototype for g_type_fundamental.
3193 2008-08-14 Johan Dahlin <johan@gnome.org>
3195 * tests/Makefile.am:
3196 * tests/constant.gir:
3197 * tests/gobject.gir:
3199 * tools/generate.c (write_struct_info):
3200 Fix generator for constant/gobject/struct
3202 2008-08-14 Johan Dahlin <johan@gnome.org>
3204 * tests/Makefile.am:
3206 * tools/generate.c (write_enum_info):
3207 Fix generation of enum/bitfields
3209 2008-08-14 Johan Dahlin <johan@gnome.org>
3211 * girepository/girparser.c (start_field), (start_constant),
3212 (start_type), (end_element_handler):
3213 Clear up constant parsing
3218 * tools/generate.c (write_callable_info), (write_function_info),
3219 (write_callback_info), (write_constant_info), (write_signal_info),
3220 (write_vfunc_info), (write_property_info), (write_object_info),
3221 (write_interface_info):
3222 Constants/Signals are handled now.
3224 2008-08-14 Johan Dahlin <johan@gnome.org>
3226 * girepository/girparser.c (start_type):
3227 Don't require c:type.
3228 * tests/Makefile.am:
3231 Update, remove parts we don't support yet
3232 * tests/roundtrips.sh:
3234 * tools/generate.c (write_type_info), (write_field_info),
3235 (write_callable_info), (write_struct_info):
3236 Make it emit proper gir.
3238 2008-08-14 Johan Dahlin <johan@gnome.org>
3240 * giscanner/transformer.py:
3241 New internal function for adding a new node.
3243 2008-08-14 Johan Dahlin <johan@gnome.org>
3246 Define an internal _H_ variable so we skip parsing both
3247 i18n headers, only one is needed.
3249 Add the glib-2.0.gir too.
3250 * giscanner/glibast.py:
3251 Add gconstpointer as an alias for ANY
3252 * giscanner/transformer.py:
3253 Do not lower case enumeration names per se.
3254 Skip functions which has parameters called 'va_list'
3256 2008-08-14 Colin Walters <walters@verbum.org>
3258 * giscanner/transformer.py: Comment data structures.
3259 Also squash pointers in resolve_type_name to correspond
3260 with what we do for params.
3261 * giscanner/glibtransformer.py: Print warnings in more
3262 situations. Rework checks for method/constructor to
3263 look up in our GType database instead of just checking
3264 for *. Avoid generating <record> for GObject which
3265 duplicate the <class>.
3266 * gir/Makefile.am: Generate glib-2.0.gir and gobject-2.0.gir
3269 2008-08-14 Johan Dahlin <johan@gnome.org>
3271 * giscanner/girwriter.py:
3272 * giscanner/glibast.py:
3273 * giscanner/glibtransformer.py:
3274 * giscanner/transformer.py:
3276 * tests/Makefile.am:
3277 Add pyflakes.py and run it in make check.
3278 Update the source code to fix the errors reported by
3281 2008-08-14 Johan Dahlin <johan@gnome.org>
3284 * giscanner/girparser.py:
3285 * giscanner/glibast.py:
3286 * giscanner/glibtransformer.py:
3287 Refactor the parser a bit.
3288 Add parent type to interfaces and update callsites.
3290 2008-08-14 Johan Dahlin <johan@gnome.org>
3292 * giscanner/glibtransformer.py:
3293 * giscanner/utils.py:
3294 Refactor a bit, avoid isinstance and add a method
3295 for each type we parse.
3297 2008-08-14 Johan Dahlin <johan@gnome.org>
3300 * giscanner/girparser.py:
3301 * giscanner/glibtransformer.py:
3302 * tests/Makefile.am:
3303 Run pep8.py in make check, fix old errors.
3305 2008-08-13 Colin Walters <walters@verbum.org>
3307 * giscanner/girparser.py: Parse records.
3309 2008-08-13 Colin Walters <walters@verbum.org>
3311 * gir/Makefile.am: Install again.
3312 * gir/gobject-2.0.gir: Add some more bits.
3314 2008-08-13 Colin Walters <walters@verbum.org>
3316 * gir/gobject-2.0.gir: Use correct namespace, add GType.
3317 * giscanner/girparser.py: Handle aliases.
3318 * giscanner/transformer.py: Record aliases. Make resolver
3319 functions public; we now call into these explicitly from
3320 glibtransformer. Handle resolving aliases.
3321 * giscanner/glibtransformer.py: Separate our internal namespace
3322 from included ones. Call up into transformer's resolver functions.
3324 2008-08-13 Johan Dahlin <johan@gnome.org>
3326 * girepository/girnode.c (g_ir_node_get_full_size_internal):
3327 * girepository/girparser.c (start_class):
3328 * giscanner/glibtransformer.py:
3329 Allow get_type to be None, set a get_type for GInitiallyUnowned too.
3331 2008-08-13 Johan Dahlin <johan@gnome.org>
3333 * giscanner/cgobject.py:
3334 Register GInitiallyUnowned
3335 * giscanner/girwriter.py:
3336 * giscanner/glibtransformer.py:
3337 Special case GObject/GInitially owned as they are a bit special to use.
3339 2008-08-13 Colin Walters <walters@verbum.org>
3341 * tests/scanner/Foo-expected.gir, tests/scanner/utility-expected.gir:
3342 Object is in GObject namespace.
3344 2008-08-13 Colin Walters <walters@verbum.org>
3346 * giscanner/girparser.py: Fix processing of functions
3349 2008-08-13 Colin Walters <walters@verbum.org>
3351 * giscanner/girparser.py: Parse more than just <class.
3352 * giscanner/glibtransformer.py: Put aliases in a separate
3353 data structure since their name is not canonicall.
3354 * giscanner/transformer.py: Handle resolving type names
3357 2008-08-13 Johan Dahlin <johan@gnome.org>
3359 * tools/g-ir-scanner:
3360 Allow multiple libraries
3361 * giscanner/glibtransformer.py:
3362 Rename load_library to add_library, traverse over all libraries
3363 when trying to resolve a function
3365 2008-08-12 Colin Walters <walters@verbum.org>
3367 * giscanner/transformer.py: Record typedefs as <alias> elements.
3368 Also attempt to look up types in external namespaces.
3369 * giscanner/girwriter.py: Write them.
3370 * giscanner/glibtransformer.py: Rework resolver using real instanceof
3371 checks. Resolve interface methods and properties.
3372 * tests/scanner/foo-object.h: Add a method with typedef.
3373 * tests/scanner/Foo-expected.gir: Update.
3374 * girepository/girnode.c: Debug tweaks.
3375 * girepository/girparser.c: Make a first pass through the XML where we
3376 record all the aliases. This lets us resolve them as we go through the
3378 * gir/Makefile.am: Don't install gobject-2.0.gir; we want that to come
3379 from gir-repository.
3381 2008-08-12 Colin Walters <walters@verbum.org>
3383 * giscanner/glibtransformer.py: Resolve typedefs (e.g. AtkAttributeSet -> GSList).
3384 Correctly do subclasseing in 2nd pass resolution. Handle callbacks in structure
3386 * giscanner/transformer.py: Record typedefs and expose public API for resolving
3388 * tests/scanner/Foo-expected.gir: Fix expected callback types.
3390 2008-08-12 Colin Walters <walters@verbum.org>
3392 * giscanner/glibtransformer.py: Also transform object properties.
3394 2008-08-12 Colin Walters <walters@verbum.org>
3396 * giscanner/glibtransformer.py: Also transform callbacks
3397 and structure field types.
3398 * tests/scanner/Fooe-expected.gir: Update to expect correct
3399 names for callbacks and structs.
3401 2008-08-12 Colin Walters <walters@verbum.org>
3403 * girepository/girparser.c: Handle 'any'.
3404 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3405 Add test for void *.
3407 2008-08-12 Colin Walters <walters@verbum.org>
3409 * giscanner/glibtransformer.py: We need to do type
3410 resolution in a second pass after we've seen all the
3411 enums, records, etc.
3413 2008-08-12 Colin Walters <walters@verbum.org>
3415 * tests/scanner/Foo-expected.gir, tests/scanner/foo-object.h:
3416 Add enum return value.
3417 * giscanner/glibtransformer.py: Transform function return types
3420 2008-08-12 Colin Walters <walters@verbum.org>
3422 * tests/scanner/Makefile.am: Dep .gir files on scanner
3423 sources too. Also remove @ so we see scanner invocations.
3425 2008-08-12 Colin Walters <walters@verbum.org>
3427 * girepository/girparser.c, girepository/gtypelib.c,
3428 girepository/gtypelib.h, girepository/girnode.c:
3429 Remove usage of (GAPI-oriented) TypeTag in favor of
3430 GITypeTag from girepository.h.
3432 2008-08-10 Colin Walters <walters@verbum.org>
3434 * tests/roundtrips.sh: Use the correct tests.
3436 2008-08-10 Colin Walters <walters@verbum.org>
3438 * giscanner/cgobject.py: Declare/wrap a few more functions.
3439 Fix parameter types for g_object_new and g_type_fundamental.
3441 2008-08-10 Colin Walters <walters@verbum.org>
3443 * giscanner/cgobject.py: Add new decorator @gwrap which forces
3444 us to declare types for both return value and parameters. The
3445 ctypes default of 'int' is bad because it hides 32/64 bit
3446 problems. Convert all existing functions to use it.
3448 2008-08-09 Johan Dahlin <johan@gnome.org>
3450 * giscanner/__init__.py:
3452 * giscanner/cgobject.py:
3453 * giscanner/gidlparser.py:
3454 * giscanner/gidlwriter.py:
3455 * giscanner/girparser.py:
3456 * giscanner/girwriter.py:
3457 * giscanner/glibast.py:
3458 * giscanner/glibtransformer.py:
3459 * giscanner/odict.py:
3460 * giscanner/sourcescanner.py:
3461 * giscanner/transformer.py:
3462 * giscanner/utils.py:
3463 * giscanner/xmlwriter.py:
3464 * tools/g-ir-scanner:
3468 2008-08-09 Johan Dahlin <johan@gnome.org>
3471 * relaxng/c-types.xml:
3472 * relaxng/g-types.xml:
3473 * relaxng/relaxng.rng:
3475 Remove outdated relaxng schemas.
3477 2008-08-09 Johan Dahlin <johan@gnome.org>
3480 Rename metadata to typelib in variable names,
3483 2008-08-09 Johan Dahlin <johan@gnome.org>
3487 Remove old C scanner, which got rewritten in python.
3489 2008-08-09 Johan Dahlin <johan@gnome.org>
3491 * girepository/Makefile.am:
3492 * tools/Makefile.am:
3493 * tools/girmodule.c:
3494 * tools/girmodule.h:
3497 * tools/girparser.c:
3498 * tools/girparser.h:
3499 * tools/girwriter.c:
3500 * tools/girwriter.h:
3501 Move shared *.[ch] files to girepository from tools
3503 2008-08-09 Johan Dahlin <johan@gnome.org>
3505 * tests/Makefile.am:
3508 * tests/constant.test:
3510 * tests/errors.test:
3511 * tests/function.test:
3512 * tests/gobject.test:
3513 * tests/interface.test:
3514 * tests/object.test:
3515 * tests/struct.test:
3520 Rename *.test to *.gir
3522 2008-08-09 Johan Dahlin <johan@gnome.org>
3525 * tests/Makefile.am:
3526 * tests/parser/Foo-expected.gir:
3527 * tests/parser/Makefile.am:
3528 * tests/parser/foo-object.h:
3529 * tests/parser/foo.c:
3530 * tests/parser/utility-expected.gir:
3531 * tests/parser/utility.c:
3532 * tests/parser/utility.h:
3533 * tests/scanner/Makefile.am:
3534 Rename tests/parser to test/scanner
3536 2008-08-08 Colin Walters <walters@verbum.org>
3538 * tests/roundtrips.sh: Use local .gir files again.
3540 2008-08-08 Colin Walters <walters@verbum.org>
3542 * tests/invoke/Makefile.am: .gir file depends on libtool
3545 2008-08-08 Colin Walters <walters@verbum.org>
3547 * tools/girnode.c: Pass through parent node so we can
3548 print the node whose child is NULL, if that occurs.
3550 2008-08-08 Johan Dahlin <johan@gnome.org>
3552 * tests/Makefile.am:
3553 Disable roundtrip tests which are not yet working
3554 * tests/invoke/testfns.gir:
3557 2008-08-08 Johan Dahlin <johan@gnome.org>
3559 * giscanner/girwriter.py:
3561 * giscanner/glibast.py:
3562 * giscanner/glibtransformer.py:
3563 Swap order of members, to keep it consistent with
3566 2008-08-08 Johan Dahlin <johan@gnome.org>
3568 * girepository/gtypelib.c (validate_header):
3569 * girepository/gtypelib.h:
3571 * giscanner/girwriter.py:
3572 * giscanner/sourcescanner.c (gi_source_symbol_ref),
3573 (gi_source_symbol_unref):
3576 * tests/constant.test:
3578 * tests/errors.test:
3579 * tests/function.test:
3580 * tests/gobject.test:
3581 * tests/interface.test:
3582 * tests/invoke/Makefile.am:
3583 * tests/invoke/testfns.xml:
3584 * tests/object.test:
3585 * tests/parser/Makefile.am:
3586 * tests/roundtrips.sh:
3587 * tests/struct.test:
3592 * tools/Makefile.am:
3593 * tools/compiler.c (main):
3594 * tools/generate.c (write_callable_info), (write_function_info),
3596 * tools/gidlmodule.c:
3597 * tools/gidlmodule.h:
3600 * tools/gidlparser.c:
3601 * tools/gidlparser.h:
3602 * tools/gidlwriter.c:
3603 * tools/gidlwriter.h:
3604 * tools/scanner.c (create_node_from_gtype),
3605 (create_node_from_ctype), (g_igenerator_process_properties),
3606 (g_igenerator_process_signals), (g_igenerator_create_object),
3607 (g_igenerator_create_interface), (g_igenerator_create_boxed),
3608 (g_igenerator_create_enum), (g_igenerator_create_flags),
3609 (g_igenerator_process_function_symbol),
3610 (g_igenerator_process_unregistered_struct_typedef),
3611 (g_igenerator_process_struct_typedef),
3612 (g_igenerator_process_union_typedef),
3613 (g_igenerator_process_enum_typedef),
3614 (g_igenerator_process_function_typedef),
3615 (g_igenerator_process_constant), (g_igenerator_process_symbols),
3616 (g_igenerator_add_module), (g_igenerator_add_include_idl):
3617 Merge in the gir-compiler branch.
3618 Thanks to Philip and Colin for their help.
3620 2008-07-26 Colin Walters <walters@verbum.org>
3622 * tools/Makefile.am (bin_PROGRAMS): Install g-idl-compiler
3623 and g-idl-generate to go along with how we're changing this
3624 module to be installed.
3625 * gobject-introspection-1.0.pc.in: Set up Cflags and Libs.
3627 2008-07-24 Colin Walters <walters@verbum.org>
3629 * girepository/girepository.c (g_irepository_register): Add
3630 environment variable G_IREPOSITORY_VERBOSE so we can print
3631 out what we're doing.
3632 * girepository/girepository.c (g_irepository_register_file):
3633 Add GError error message to g_debug call.
3635 2008-07-08 Jürg Billeter <j@bitron.ch>
3637 * giscanner/glibast.py:
3641 2008-06-21 Johan Dahlin <jdahlin@async.com.br>
3643 * giscanner/girparser.py (GIRParser._parse_api): Ignore a few
3646 2008-06-20 Johan Dahlin <jdahlin@async.com.br>
3649 * giscanner/girwriter.py:
3650 * giscanner/transformer.py:
3651 * tests/parser/Foo-expected.gir:
3652 * tests/parser/foo-object.h:
3653 * tests/parser/foo.c (foo_object_allow_none):
3654 Add support for gtk-doc annotations for allow-none.
3657 2008-06-19 Johan Dahlin <jdahlin@async.com.br>
3660 * giscanner/girwriter.py:
3661 * giscanner/glibast.py:
3662 * giscanner/glibtransformer.py:
3663 * giscanner/transformer.py:
3664 * tests/parser/Foo-expected.gir:
3665 Start using abstract type instead of the raw C types.
3666 Register a bunch of glib types we care about.
3668 2008-06-19 Rob Taylor <rob.taylor@codethink.co.uk>
3673 2008-06-08 Philip Van Hoof <pvanhoof@gnome.org>
3675 * girepository/girepository.c:
3676 * girepository/gtypelib.c:
3677 * girepository/ginfo.c:
3678 * girepository/ginvoke.c:
3679 * girepository/girepository.h:
3680 * girepository/gtypelib.h:
3681 * girepository/gmetadata.c:
3682 * girepository/Makefile.am:
3683 * girepository/gmetadata.h:
3685 * tools/gidlmodule.c:
3688 * tools/gidlmodule.h:
3689 * tools/gidlparser.c:
3691 Renamed GMetadata to GTypelib
3693 2008-06-07 Johan Dahlin <jdahlin@async.com.br>
3695 * giscanner/xmlwriter.py:
3696 Improve line wrapping when > 79 charaters
3698 2008-06-05 Jürg Billeter <j@bitron.ch>
3701 * giscanner/girwriter.py:
3702 * giscanner/transformer.py:
3703 Use <type> element for field types
3704 * tests/parser/Foo-expected.gir:
3707 2008-06-04 Johan Dahlin <jdahlin@async.com.br>
3709 * giscanner/glibtransformer.py:
3710 Fix a bug which prevented GdkEvent from being generated
3712 2008-06-03 Johan Dahlin <jdahlin@async.com.br>
3714 * giscanner/Makefile.am:
3716 * giscanner/girwriter.py:
3717 * giscanner/glibast.py:
3718 * giscanner/glibtransformer.py:
3719 * giscanner/transformer.py:
3720 * giscanner/utils.py:
3721 * tests/parser/Foo-expected.gir:
3722 Improve enum member parsing and introspection
3724 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3726 * giscanner/scannerparser.y:
3727 * giscanner/sourcescanner.h:
3728 * giscanner/sourcescanner.py:
3729 Add a new source type enum for member.
3730 Use __repr__ for improved debugging
3731 * giscanner/girparser.py:
3733 * giscanner/transformer.py:
3734 Improve parsing of struct members.
3735 * tests/parser/foo-object.h:
3738 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3740 * giscanner/xmlwriter.py:
3741 Improve error reporting when trying to quote None.
3742 * giscanner/girparser.py:
3743 Do not print warnings when including more complete .gir files
3744 * giscanner/girwriter.py:
3745 Do not require a name for parameters, add a todo for singletons
3746 * giscanner/glibtransformer.py:
3747 Refactor the way structs are done, add a couple of hacks to allow
3749 * giscanner/transformer.py:
3750 Add enough hacks so cairo, atk and pango.gir can be parsed properly
3751 * gobject-introspection-1.0.pc.in:
3752 Export girdir, so we can access gobject-2.0.gir from outside
3754 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3756 * tools/g-ir-scanner:
3757 * tests/parser/Makefile.am:
3758 Update sys.path before running the parser so we don't have
3759 to setup PYTHONPATH ourselves.
3763 * girepository/Makefile.am:
3764 * giscanner/transformer.py:
3765 * gobject-introspection-1.0.pc.in:
3766 * gobject-introspection.pc.in:
3767 * tools/Makefile.am:
3769 Rename pkg-config name to gobject-introspection-1.0,
3770 Do not installed anything which is not using the gir format.
3771 Disable compililation the old C scanner, but still keep the source
3772 until all the remaning functionallity has been ported.
3774 2008-05-31 Johan Dahlin <jdahlin@async.com.br>
3776 * giscanner/giscannermodule.c (symbol_get_ident): Prevent
3777 a crash when symbol->indent is NULL.
3779 * giscanner/sourcescanner.py (ctype_name): Add ctype_name,
3780 a function to convert a CTYPE symbol to a string
3782 2008-05-24 Johan Dahlin <jdahlin@async.com.br>
3785 * giscanner/girwriter.py:
3786 * giscanner/giscannermodule.c
3787 (pygi_source_scanner_append_filename),
3788 (pygi_source_scanner_parse_file):
3789 * giscanner/glibtransformer.py:
3790 * giscanner/sourcescanner.py:
3791 Revert back to using temporary files to send in headers.
3792 Allow Functions to be passed in as callbacks, add a couple
3793 of try/excepts missing features.
3794 We can now scan pango
3796 2008-05-08 Johan Dahlin <johan@gnome.org>
3798 * giscanner/glibtransformer.py:
3799 * giscanner/transformer.py:
3800 Move namespace stripping glibtransformer->transformer
3802 2008-05-08 Johan Dahlin <johan@gnome.org>
3805 * giscanner/girwriter.py:
3806 * giscanner/glibtransformer.py:
3807 * giscanner/transformer.py:
3808 * tools/g-ir-scanner:
3809 Introduce a namespace ast node
3811 2008-05-05 Johan Dahlin <johan@gnome.org>
3813 * giscanner/__init__.py:
3814 * giscanner/sourcescanner.py:
3815 * giscanner/transformer.py:
3816 Move sourcescanner symbols to the sourcescanner module, instead
3817 of in the global __init__ namespace.
3819 2008-05-03 Johan Dahlin <johan@gnome.org>
3821 * giscanner/glibtransformer.py:
3822 * tools/g-ir-scanner:
3823 Handle missing parameters better, allow - and + in .la dlname
3826 2008-05-03 Johan Dahlin <johan@gnome.org>
3828 * giscanner/__init__.py:
3830 * giscanner/girwriter.py:
3831 * giscanner/glibtransformer.py:
3832 * giscanner/transformer.py:
3833 Parse struct fields properly, improve debugging.
3835 2008-04-29 Johan Dahlin <johan@gnome.org>
3838 * giscanner/girwriter.py:
3839 * giscanner/transformer.py:
3840 * tests/parser/Foo-expected.gir:
3842 Use transfer-ownership everywhere, to mark ownership/calle/caller etc.
3844 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3847 * docs/g-ir-scanner.1:
3848 * metadata-annotations-proposal.txt:
3849 * metadata-format.txt:
3850 Add a basic, unfinshed man page for g-ir-scanner, move documents into .txt
3852 2008-04-29 Johan Dahlin <jdahlin@async.com.br>
3854 * giscanner/girwriter.py:
3855 * giscanner/glibtransformer.py:
3856 * giscanner/transformer.py:
3857 * giscanner/xmlwriter.py:
3858 * tests/parser/Foo-expected.gir:
3859 * tests/parser/foo-object.h:
3860 Write record/structs to gir file too. Add a couple of tests,
3861 fix an off by one error in xmlwriter.py.
3863 2008-04-28 Johan Dahlin <johan@gnome.org>
3865 * giscanner/xmlwriter.py: Calculate the line length properly,
3866 include the provided extra indentation in the calculation, really.
3868 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3871 * giscanner/glibast.py:
3872 * giscanner/glibtransformer.py:
3873 * giscanner/transformer.py:
3874 * tools/g-ir-scanner:
3875 Add a --strip-prefix and sort out confusion between names and symbols
3876 for functions and struct + derivaties.
3877 Refactor bootstrap of g-ir-scanner, so we can set options on
3878 Transformer() before parsing everything.
3880 2008-04-28 Johan Dahlin <johan@gnome.org>
3882 * giscanner/transformer.py (Transformer._traverse_one): Avoid recursion
3883 when scanning girepository.h
3885 * giscanner/sourcescanner.py (SourceScanner._preprocess): Define
3886 a __GI_SCANNER__ when we run.
3888 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3891 * giscanner/girwriter.py:
3892 * giscanner/glibast.py:
3893 * giscanner/glibtransformer.py:
3894 * tests/parser/Foo-expected.gir:
3895 * tests/parser/utility-expected.gir:
3896 Rename most c:identifier to c:type. Add new ones to
3897 class/interface/enum/boxed.
3899 2008-04-28 Johan Dahlin <jdahlin@async.com.br>
3902 * giscanner/girwriter.py:
3903 * giscanner/glibtransformer.py:
3904 * tests/parser/Foo-expected.gidl:
3905 * tests/parser/Makefile.am:
3906 Move c:identifier from return-value to subchild type,
3907 as per Jürgs suggestion
3909 2008-04-28 Johan Dahlin <johan@gnome.org>
3911 * giscanner/girwriter.py:
3912 * tests/parser/Foo-expected.gir:
3913 Write property.type as a child node.
3915 2008-04-27 Johan Dahlin <johan@gnome.org>
3920 * gidl/gobject-2.0.gidl:
3922 * gir/gobject-2.0.gir:
3923 * tests/parser/Makefile.am:
3924 Replace the GObject gidl with a GObject gir.
3926 2008-04-27 Johan Dahlin <johan@gnome.org>
3928 * tools/Makefile.am (bin_SCRIPTS): g-ir-scanner is a script,
3931 * giscanner/xmlwriter.py:
3932 * tests/parser/Foo-expected.gir:
3933 Include indentation in line length calculation
3935 2008-04-27 Johan Dahlin <johan@gnome.org>
3937 * giscanner/girparser.py:
3938 Prettify NS parsing using elementtree.
3940 2008-04-27 Johan Dahlin <johan@gnome.org>
3943 * giscanner/Makefile.am:
3944 * giscanner/girparser.py:
3945 * giscanner/glibtransformer.py:
3946 * tests/parser/Foo-expected.gidl:
3947 * tests/parser/Foo-expected.gir:
3948 * tests/parser/Makefile.am:
3949 * tests/parser/utility-expected.gidl:
3950 * tests/parser/utility-expected.gir:
3951 * tools/g-ir-scanner:
3952 Switch over to GIR as the default format. Add a simple GIDL
3954 Update tests and fix simplify makefiles by depending
3955 on GNU make extensions.
3957 2008-04-27 Johan Dahlin <johan@gnome.org>
3959 * giscanner/xmlwriter.py:
3960 Wrap attributes for lines which are wider than 79 characters
3962 * giscanner/scannerlexer.l:
3963 Allow parenthesis in annotations
3966 * giscanner/gidlwriter.py:
3967 * giscanner/girwriter.py:
3968 * giscanner/glibtransformer.py:
3969 * giscanner/transformer.py:
3970 Add initial sequence support, including annotation.
3971 Refactor type handling a bit.
3973 2008-04-27 Johan Dahlin <johan@gnome.org>
3975 * tests/parser/Foo-expected.gidl:
3976 * tests/parser/foo-object.h:
3977 * tests/parser/foo.c (foo_object_class_init),
3978 (foo_object_get_strings), (foo_object_get_objects):
3979 Add two new functions to check sequence return values.
3980 Also fixes a compilation warning.
3982 2008-04-27 Johan Dahlin <johan@gnome.org>
3984 * giscanner/giscannermodule.c (]): Cast the getter, avoids
3985 a compilation warning.
3987 * tools/Makefile.am (g_ir_scanner_SOURCES):
3988 g-ir-scanner has no sources.
3990 2008-04-25 Johan Dahlin <johan@gnome.org>
3992 * giscanner/Makefile.am:
3994 * giscanner/gidlparser.py:
3995 * giscanner/gidlwriter.py:
3996 * giscanner/girwriter.py:
3997 * giscanner/glibast.py:
3998 * giscanner/glibtransformer.py:
3999 * giscanner/transformer.py:
4000 Split out nodes to ast.py and glibast.py
4002 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4004 * giscanner/Makefile.am:
4005 * giscanner/gidlparser.py:
4006 * giscanner/gidlwriter.py:
4007 * giscanner/girwriter.py:
4008 * giscanner/glibtransformer.py:
4009 * giscanner/gobjecttreebuilder.py:
4010 * giscanner/transformer.py:
4011 * giscanner/treebuilder.py:
4012 * tools/g-ir-scanner:
4013 Rename treebuilder to transformer and
4014 gobjectreebuilder to glibtransformer.
4016 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4018 * giscanner/Makefile.am:
4019 * giscanner/__init__.py:
4020 * giscanner/cgobject.py:
4021 * giscanner/gidlparser.py:
4022 * giscanner/gidlwriter.py:
4023 * giscanner/girwriter.py:
4024 * giscanner/gobjecttreebuilder.py:
4025 * giscanner/odict.py:
4026 * giscanner/sourcescanner.py:
4027 * giscanner/treebuilder.py:
4028 * giscanner/xmlwriter.py:
4029 * tools/Makefile.am:
4030 * tools/g-ir-scanner:
4031 Add LGPLv2 license header and install all python files
4033 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4036 * giscanner/gidlwriter.py:
4037 * giscanner/giscannermodule.c (pygi_source_directive_new),
4038 (directive_get_options), (pygi_source_symbol_new),
4039 (symbol_get_base_type), (pygi_source_type_new),
4040 (type_get_base_type), (type_get_child_list),
4041 (pygi_source_scanner_get_symbols),
4042 (pygi_source_scanner_get_directives):
4043 * giscanner/gobjecttreebuilder.py:
4044 * giscanner/sourcescanner.py:
4045 * giscanner/treebuilder.py:
4046 * tests/parser/foo-object.h:
4047 Add support for virtual methods.
4048 Pair struct FooClass with struct Foo.
4049 Clean up the SourceScanner bindings a bit.
4050 Add a testcase for virtual methods.
4052 2008-04-25 Johan Dahlin <jdahlin@async.com.br>
4054 * giscanner/cgobject.py:
4055 * giscanner/gidlwriter.py:
4056 * giscanner/gobjecttreebuilder.py:
4057 Add support for signals
4059 * tests/parser/foo.c (foo_object_class_init):
4060 * Foo-expected.gidl:
4061 Add a signal and update the expected output.
4063 2008-04-24 Johan Dahlin <jdahlin@async.com.br>
4065 * giscanner/gidlwriter.py:
4066 * giscanner/girwriter.py:
4067 * giscanner/giscannermodule.c (directive_get_name),
4068 (directive_get_value), (directive_get_options),
4069 (symbol_get_directives), (symbol_set_directives),
4070 (pygi_source_scanner_parse_file),
4071 (pygi_source_scanner_lex_filename),
4072 (pygi_source_scanner_get_directives), (init_giscanner):
4073 * giscanner/sourcescanner.c (gi_source_scanner_get_directives):
4074 * giscanner/sourcescanner.h:
4075 * giscanner/sourcescanner.py:
4076 * giscanner/treebuilder.py:
4077 * tools/g-ir-scanner:
4078 Add support for source/header annotations.
4080 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4082 * giscanner/gidlwriter.py:
4083 * giscanner/girwriter.py:
4084 * giscanner/gobjecttreebuilder.py:
4085 * giscanner/treebuilder.py:
4086 Add support for Callbacks
4088 2008-04-22 Havoc Pennington <hp@pobox.com>
4090 * girepository/ginvoke.c (g_function_info_invoke): If a symbol is
4091 not in metadata->module, look for it in the global module, in case
4092 some other object or the app itself provides the symbol.
4094 2008-04-22 Havoc Pennington <hp@pobox.com>
4096 * girepository/gmetadata.c (_g_metadata_init): hack to avoid
4097 dlopening a library that is already in the main app, by checking
4098 whether one of the lib's symbols is already loaded.
4100 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4102 * tests/parser/Foo-expected.gidl:
4103 * tests/parser/foo-object.h:
4106 2008-04-22 Havoc Pennington <hp@pobox.com>
4108 * girepository/ginfo.c (g_interface_info_find_method):
4109 Use interface_blob_size not object_blob_size to compute offset.
4111 2008-04-22 Havoc Pennington <hp@pobox.com>
4113 * girepository/gmetadata.c (_g_metadata_init): remove
4114 G_MODULE_BIND_LOCAL flag when loading libraries, since some libs
4115 (Glade and Clutter for example) rely on being loaded globally.
4117 2008-04-22 Havoc Pennington <hp@pobox.com>
4119 * girepository/ginfo.c (g_registered_type_info_get_g_type): new
4120 function to get the GType given a RegisteredTypeInfo
4122 2008-04-22 Johan Dahlin <johan@gnome.org>
4124 * COPYING: Add a LGPL license, to prevent automake to
4125 put in a copy of GPL here. Pointed out by Havoc.
4127 * girepository/ginfo.c (g_info_from_entry), (g_type_info_new),
4128 (g_type_info_is_pointer), (g_type_info_get_tag),
4129 (g_type_info_get_param_type), (g_type_info_get_interface),
4130 (g_type_info_get_array_length), (g_type_info_is_zero_terminated),
4131 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
4132 (g_error_domain_info_get_codes), (g_enum_info_get_value),
4133 (g_object_info_get_interface), (g_object_info_get_field),
4134 (g_interface_info_get_prerequisite),
4135 (g_signal_info_get_class_closure), (g_constant_info_get_value):
4136 * girepository/ginvoke.c (get_ffi_type):
4137 * girepository/girepository.h:
4138 * girepository/gmetadata.c (g_metadata_get_dir_entry),
4139 (g_metadata_check_sanity), (validate_header),
4140 (validate_array_type_blob), (validate_iface_type_blob),
4141 (validate_param_type_blob), (validate_error_type_blob),
4142 (validate_type_blob), (validate_constant_blob),
4143 (validate_struct_blob), (validate_enum_blob):
4144 * girepository/gmetadata.h:
4145 * tests/Makefile.am:
4146 * tests/invoke/Makefile.am:
4147 * tests/invoke/invoke.c (main):
4148 * tests/roundtrips.sh:
4149 * tools/Makefile.am:
4150 * tools/compiler.c (format_output), (write_out_metadata), (main):
4151 * tools/generate.c (write_type_name), (write_type_info),
4152 (write_constant_value), (write_enum_info), (load_metadata), (main):
4153 * tools/gidlcompilercontext.c:
4154 * tools/gidlcompilercontext.h:
4155 * tools/gidlcompilerentrynode.c:
4156 * tools/gidlcompilerentrynode.h:
4157 * tools/gidlcompilertypenode.c:
4158 * tools/gidlcompilertypenode.h:
4159 * tools/gidlmodule.c (g_idl_module_build_metadata):
4160 * tools/gidlmodule.h:
4161 * tools/gidlnode.c (init_stats), (dump_stats),
4162 (g_idl_node_get_size), (g_idl_node_get_full_size),
4163 (g_idl_node_cmp), (g_idl_node_can_have_member),
4164 (g_idl_node_add_member), (g_idl_node_param_direction_string),
4165 (parse_int_value), (parse_uint_value), (parse_float_value),
4166 (parse_boolean_value), (find_entry_node), (find_entry),
4167 (serialize_type), (g_idl_node_build_metadata), (write_string):
4169 * tools/gidlparser.c (parse_type_internal):
4170 * tools/quote-file.sh:
4171 Revert revisions 157,149-148,136-129 and 120.
4172 Move back to using g-idl-generate to generate the metadata and
4173 avoids dependency on a c compiler.
4175 2008-04-22 Johan Dahlin <jdahlin@async.com.br>
4177 * giscanner/girwriter.py:
4178 * tools/g-ir-scanner:
4179 Add an initial GIR writer and a --format option to g-ir-scanner
4181 2008-04-21 Johan Dahlin <johan@gnome.org>
4183 * giscanner/cgobject.py: Use ctypes.util.find_library to locate
4184 gobject-2.0 and raise ImportError if not found.
4186 * giscanner/gidlparser.py:
4187 * giscanner/gidlwriter.py:
4188 * giscanner/gobjecttreebuilder.py:
4189 * tools/g-ir-scanner:
4190 Add a --include argument to include types from other idls.
4191 Add a minimalistic GIDL parser (just objects for now)
4192 Implement resolving of external type references and use it to
4193 resolve parent types, argument types and return types.
4195 2008-04-21 Johan Dahlin <johan@gnome.org>
4197 * giscanner/gidlwriter.py:
4198 * giscanner/gobjecttreebuilder.py:
4199 * giscanner/treebuilder.py:
4200 Add support for properties.
4201 Refactor Class/Interface support a bit, to share more code and
4202 always initialize their method attribute to an empty list.
4204 2008-04-21 Johan Dahlin <johan@gnome.org>
4206 * giscanner/cgobject.py:
4207 Add a workaround for a glib bug interface introspection bug
4208 (object_interface_list_properties, object_class_list_properties):
4209 Cast the return value to GParamSpec.
4211 * tests/parser/Foo-expected.gidl: Update
4212 * tests/parser/foo.c: Add a string property
4214 * giscanner/gobjecttreebuilder.py:
4215 After stripping namespaces, remove the original
4216 item to avoid duplication (GtkButton struct and Button object)
4218 2008-04-21 Johan Dahlin <johan@gnome.org>
4220 * giscanner/gobjecttreebuilder.py:
4221 * giscanner/treebuilder.py:
4222 Strip namespaces before objects, so we'll export
4223 GtkButton as Button in the gtk namespace
4225 2008-04-21 Johan Dahlin <johan@gnome.org>
4227 * giscanner/gidlwriter.py:
4228 * giscanner/gobjecttreebuilder.py:
4229 * giscanner/treebuilder.py:
4230 Add constructors for object/boxed types.
4232 2008-04-21 Johan Dahlin <johan@gnome.org>
4234 * giscanner/gidlwriter.py:
4235 * giscanner/gobjecttreebuilder.py:
4236 Add support for boxed types
4238 2008-04-21 Johan Dahlin <johan@gnome.org>
4240 * giscanner/giscannermodule.c: Mark structures as const,
4241 wrap SourceType.const_string.
4243 * tests/parser/foo-object.h: Add a couple of constants.
4245 * giscanner/gidlwriter.py:
4246 * giscanner/gobjecttreebuilder.py:
4247 * giscanner/treebuilder.py:
4248 Add basic support for interfaces
4250 * tools/g-ir-scanner:
4251 Add -o/--output for writing to a file
4253 2008-04-21 Havoc Pennington <hp@redhat.com>
4255 * TODO: add some C API wishlist items I could think of quickly
4257 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4259 * giscanner/gidlwriter.py:
4260 * giscanner/xmlwriter.py:
4261 Add a simple api for writing tags which can be used
4262 with the new 'with statement' in python 2.5
4264 2008-04-21 Johan Dahlin <johan@gnome.org>
4266 * giscanner/gobjecttreebuilder.py:
4267 Strip namespace and object prefix from method names.
4269 2008-04-21 Johan Dahlin <johan@gnome.org>
4271 * tools/g-ir-scanner (main): Add --pkg option to pass in
4272 pkg-config modules to get cflags from.
4274 * giscanner/gidlwriter.py (GIDLWriter._write_method):
4275 Avoid duplication, reuse function writer for methods.
4277 2008-04-21 Johan Dahlin <jdahlin@async.com.br>
4279 * giscanner/gidlwriter.py:
4280 * giscanner/gobjecttreebuilder.py:
4281 * giscanner/treebuilder.py:
4282 * tools/g-ir-scanner:
4283 Resolve libtool .la files.
4284 Strip name spaces for methods.
4285 Add function symbols
4287 2008-04-20 Johan Dahlin <jdahlin@async.com.br>
4289 * giscanner/cgobject.py:
4290 * giscanner/gidlwriter.py:
4291 * giscanner/gobjecttreebuilder.py:
4292 * giscanner/treebuilder.py:
4293 Add support for classes and methods
4295 2008-04-20 Johan Dahlin <johan@gnome.org>
4297 * giscanner/gidlwriter.py:
4298 * giscanner/gobjecttreebuilder.py:
4299 * giscanner/odict.py:
4300 Avoid conflicts, keep the output ordered similar to
4301 the order of the input.
4302 Add a simple ordered dictionary implemenation
4304 2008-04-19 Johan Dahlin <johan@gnome.org>
4306 * giscanner/cgobject.py:
4307 * giscanner/gidlwriter.py:
4308 * giscanner/gobjecttreebuilder.py:
4309 * tools/g-ir-scanner:
4310 Start introspecting get-type functions.
4311 Implement support for GLib/GFlags GTypes.
4312 Add a ctype based GObject binding.
4314 2008-04-18 Johan Dahlin <jdahlin@async.com.br>
4316 * giscanner/gidlwriter.py:
4317 * giscanner/xmlwriter.py:
4318 * tools/g-ir-scanner:
4319 Add a simplistic gidl writer, which can't do too much.
4321 2008-04-18 Johan Dahlin <johan@gnome.org>
4323 * giscanner/sourcescanner.py:
4324 * giscanner/treebuilder.py:
4325 * tools/g-ir-scanner:
4326 split tree building and source scanning interface to separate files.
4328 2008-04-18 Johan Dahlin <johan@gnome.org>
4330 * tools/g-ir-scanner (Parameter.__init__): Start constructing
4332 - Add support for struct/parameter/return, start parsing of ctypes
4334 * giscanner/giscannermodule.c: wrap GISourceType.child_list and
4337 2008-03-31 Johan Dahlin <johan@gnome.org>
4339 * tools/g-ir-scanner:
4340 Start to build abstract syntax node of scanned sources.
4341 Add support for cpp options.
4343 2008-03-27 Johan Dahlin <johan@gnome.org>
4345 * giscanner/giscannermodule.c:
4346 * giscanner/scannerlexer.l:
4347 * giscanner/sourcescanner.c:
4348 * tools/g-ir-scanner:
4350 Add simple pre-processor using subprocess and a PIPE.
4351 Change the parse_file apis to accept a file descriptor.
4353 2008-03-25 Johan Dahlin <johan@gnome.org>
4355 * giscanner/__init__.py:
4356 * tools/g-ir-scanner:
4357 Fix a typo and add an example python test program.
4359 2008-03-25 Johan Dahlin <johan@gnome.org>
4361 * giscanner/__init__.py:
4362 * giscanner/giscannermodule.c:
4363 * giscanner/sourcescanner.c:
4364 * giscanner/sourcescanner.h:
4365 Add constants and wrap a few more SymbolType fields
4367 2008-03-25 Johan Dahlin <johan@gnome.org>
4371 * giscanner/__init__.py:
4372 * giscanner/giscannermodule.c:
4373 * giscanner/Makefile.am:
4375 Add initial python bindings for the scanner and
4376 depend on python 2.5.
4378 2008-03-25 Johan Dahlin <johan@gnome.org>
4382 * giscanner/Makefile.am:
4383 * giscanner/sourcescanner.c:
4384 * giscanner/sourcescanner.h:
4385 * tools/Makefile.am:
4386 * tools/grealpath.h:
4387 * tools/sourcescanner.c:
4388 * tools/sourcescanner.h:
4390 Move the scanner to a separate library.
4392 2008-03-23 Johan Dahlin <johan@gnome.org>
4394 * tools/Makefile.am:
4397 * tools/scannerlexer.l:
4398 * tools/scannerparser.y:
4399 * tools/sourcescanner.c:
4400 * tools/sourcescanner.h:
4401 Split out the source scanner from the generator.
4402 Rename the symbols used in the scanner to use the gi_ prefix.
4403 This should make it possible to use the raw C parser from
4406 2008-03-23 Johan Dahlin <johan@gnome.org>
4408 * tests/parser/Makefile.am (utility.gidl):
4409 * tests/parser/utility-expected.gidl:
4410 Pass in the gobject.gidl since we're defining a GObject.
4412 2008-03-12 Johan Dahlin <johan@gnome.org>
4414 * relaxng/relaxng.rng:
4415 Add a releaxng in relaxng we can use to validate the relaxngs
4418 2008-03-12 Jürg Billeter <j@bitron.ch>
4420 * tools/scanner.c: (g_igenerator_new):
4421 * tools/scannerparser.y:
4422 Fix compiler warnings.
4424 2008-03-12 Jürg Billeter <j@bitron.ch>
4428 * tools/scannerparser.y:
4429 Start fixing memory management in g-idl-scanner.
4431 2008-03-12 Rob Taylor <rob.taylor@codethink.co.uk>
4433 * tools/gidlcompilercontext.c: (write_compiled):
4434 Fix critical warning when no shlib passed to g-idl-compiler.
4436 2008-03-12 Johan Dahlin <johan@gnome.org>
4438 * tests/parser/utility-expected.gidl:
4439 * tests/parser/utility.h:
4440 Add a get_type-function, so the scanner actually
4441 parses it as an object.
4443 2008-03-12 Johan Dahlin <johan@gnome.org>
4445 * tools/gidlwriter.c (function_generate): Add missing trailing quote.
4448 * tests/parser/Foo-expected.gidl:
4449 * tests/parser/Makefile.am:
4450 * tests/parser/foo-object.h:
4451 * tests/parser/foo.c:
4452 * tests/parser/utility-expected.gidl:
4453 * tests/parser/utility.c:
4454 * tests/parser/utility.h:
4456 Add a new gidl test. 'utility.gidl', which is used to be able
4457 to test external type references. Add a reference to UtilityObject*
4460 2008-03-11 Johan Dahlin <johan@gnome.org>
4464 Remove most global variables
4466 2008-03-11 Philip Van Hoof <me@pvanhoof.be>
4468 * tools/scannerlexer.l:
4470 * tests/parser/Foo-expected.gidl:
4471 * tests/parser/foo.c:
4472 * tests/parser/Makefile.am:
4473 * tests/parser/foo-object.h:
4475 Added a few extra tests. Which resulted in finding a few
4476 bugs. Which resulted in me fixing those bugs
4478 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4480 * tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
4481 (g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
4482 Add some comments for strings into generated output for
4485 2008-03-11 Rob Taylor <rob.taylor@codethink.co.uk>
4487 * tools/gidlcompilercontext.c: (write_compiled):
4488 Write out the shlibs variable before writing out the strings
4489 length. Fixes compiler warning when using '-l' flag with
4492 2008-03-11 Johan Dahlin <johan@gnome.org>
4494 * tests/parser/Foo-expected.gidl:
4495 * tests/parser/foo-object.h:
4498 * tools/scannerlexer.l:
4499 Add support for parsing return arguments. Add support for
4500 caller-owns return types.
4501 Patch by Philip Van Hoof.
4503 * tools/scannerparser.y:
4504 Remove parsing of the @deprecated syntax used in headers.
4505 We will support gtk-doc deprecation in the future instead.
4507 2008-03-11 Johan Dahlin <johan@gnome.org>
4509 * tools/compiler.c (main): Coding style fixes
4511 2008-03-10 Johan Dahlin <johan@gnome.org>
4514 Add GCOV_LIBS to GILIBS
4516 2008-03-10 Johan Dahlin <johan@gnome.org>
4518 * tests/parser/Foo-expected.gidl:
4519 * tests/parser/foo.c:
4520 Rename null-ok to direction=out
4522 2008-03-10 Philip Van Hoof <me@pvanhoof.be>
4524 reviewed and extensively tested by Johan
4526 * tests/parser/Foo-expected.gidl:
4527 * tests/parser/foo-object.h:
4528 * tests/parser/foo.c:
4531 * tools/gidlwriter.c:
4534 * tools/scannerlexer.l:
4535 * tools/scannerparser.y:
4537 Add support for scanning for gtk-doc comments inside
4538 C source files. Add tests
4540 2008-03-10 Johan Dahlin <johan@gnome.org>
4542 * tests/parser/Makefile.am:
4543 * tests/parser/foo.c:
4546 * tools/scannerparser.y:
4547 Add an api to lex filenames.
4548 Lex all source .c files passed in on the command line.
4549 Scan sources in a test and a couple of private structures
4550 which should not be included in the generated gidl
4552 2008-03-10 Johan Dahlin <johan@gnome.org>
4554 * tests/invoke/Makefile.am: Make the generated metadata
4555 depend on the g-idl-compiler
4557 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4559 * tools/gidlmodule.c
4560 * tools/gidlmodule.h
4563 Remove the old g-idl-compiler code.
4566 2008-02-22 Mark Doffman <mark.doffman@codethink.co.uk>
4568 * tools/quote-file.sh
4571 Move to using the 'C' struct compiler code.
4573 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4575 * girepository/ginfo.c
4577 Change the way that external references with no namespace
4578 are dealt with. External references with no namespace
4579 are placed into the XML as-if they are a local reference.
4580 This is temporary, but helps with roundtrip tests.
4582 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4584 * girepository/ginfo.c
4585 Add the ability to get the value of a constant of
4586 type TYPE_TAG_SYMBOL. In the case of a symbol the value
4587 is provided as a string.
4589 This would deal properly with:
4590 typedef char* random;
4591 const random = "A string";
4593 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4595 * girepository/ginfo.c
4596 * girepository/girepository.h
4598 Add a function to check if an enum is registered or not.
4599 Previously anything testing this relied on the g-type
4600 string offset having a value of 0.
4602 * girepository/gmetadata.c
4603 * girepository/gmetadata.h
4605 Remove unneccesary or erroneous checks. There were two
4606 metadata validation checks which made sure that the blob
4607 sizes were the same as some magic numbers compiled into the code.
4608 This is wrong as it breaks any forwards compatibility that may
4611 Checks were also present that made sure that unregistered type
4612 blobs had a value of 0 in the g-type offset field. This is
4613 unneccessary. If a type blob is unregistered then any value
4614 in its g-type field is simply invalid.
4616 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4618 * girepository/ginfo.c
4619 * girepository/gmetadata.c
4620 * girepository/gmetadata.h
4622 Change the metadata format to have a standard header
4623 for all the type blobs. Merge the SimpleTypeBlob
4624 and InterfaceTypeBlob into a union. A union of these
4625 two blobs existed previously but was not explicit
4626 in the metadata format.
4628 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4630 * tools/gidlcompilercontext.c
4631 * tools/gidlcompilercontext.h
4632 * tools/gidlcompilerentrynode.c
4633 * tools/gidlcompilerentrynode.h
4634 * tools/gidlcompilertypenode.c
4635 * tools/gidlcompilertypenode.h
4637 Add code to compile a tree of GIdlNodes to
4638 a 'C' struct representing the metadata.
4639 This is to aid cross-compiling. Previously
4640 the g-idl-compiler created a binary blob with
4641 data written in the byte order and alignment
4642 of the tool rather than the intended target.
4644 Cleaned up and improved by Johan and Robert :-)
4646 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4648 * girepository/ginvoke.c
4649 * girepository/girepository.h
4650 * girepository/gmetadata.c
4651 * girepository/gmetadata.h
4653 * tools/gidlparser.c
4654 Modify TYPE_TAG_INTERFACE to TYPE_TAG_SYMBOL
4655 to avoid confusion with the interface blob.
4658 * tools/gidlparser.c
4659 Remove magic numbers and replace with type-tag
4660 enumeration symbols.
4662 * girepository/gmetadata.c
4663 Add validate declaration.
4665 2008-03-10 Jürg Billeter <j@bitron.ch>
4667 * tools/gidlparser.c: (parse_type_internal):
4668 * tools/scannerlexer.l:
4669 * tools/scannerparser.y:
4670 Support C99 _Bool type in scanner.
4672 2008-03-10 Jürg Billeter <j@bitron.ch>
4674 * tests/parser/Foo-expected.gidl:
4675 * tests/parser/foo-object.h:
4676 * tests/parser/foo.c: (foo_enum_method):
4677 * tools/scanner.c: (g_igenerator_process_function_symbol):
4678 Don't skip functions that are defined in the namespace of a type
4679 that doesn't support methods, as for example enums.
4681 2008-03-10 Johan Dahlin <johan@gnome.org>
4683 * gidl.dtd: Remove, we're using relaxng for now
4685 * tests/parser/Foo-expected.gidl:
4686 * tests/parser/foo-object.h:
4687 * tests/parser/foo.c:
4688 Rename the enum/flags get_type functions to include the whole type.
4690 2008-03-08 Marc-Andre Lureau <marcandre.lureau@gmail.com>
4692 * tools/gidlwriter.c (enum_generate): added "type-name",
4693 "get-type" and "deprecated" missing arguments.
4694 * tests/parser/Foo-expected.gidl:
4695 * tests/parser/foo-object.h: test enum type, and no type.
4697 2008-03-06 Johan Dahlin <jdahlin@async.com.br>
4700 Consistent checks, add missing 'test'
4702 2008-03-05 Havoc Pennington <hp@redhat.com>
4704 * configure.ac: Take advantage of a libffi.pc if one exists, as it
4705 does on Fedora 8. Make libffi a hard requirement, since it was in
4706 practice anyway (was not really conditional in the code or
4707 makefile, only in configure).
4709 2008-02-21 Mark Doffman <mark.doffman@codethink.co.uk>
4711 reviewed by: Rob Taylor <rob.taylor@codethink.co.uk>
4712 reviewed by: Johan Dahlin <johan@gnome.org>
4714 * tests/Makefile.am:
4715 * tests/roundtrips.sh:
4716 Modify the roundtrips test so that they do not use the
4717 --raw option of the gidl compiler but instead compile a
4718 shared library to use with g_module.
4720 * tests/invoke/Makefile.am:
4721 * tests/invoke/invoke.c:
4722 Modify the invoke tests to build a shared library rather
4723 than use the --raw option.
4725 * tests/invoke/invoke-namespace-find.sh: Removed:
4726 Noone knows why this was here, so removed.
4728 2008-02-19 Rob Taylor <rob.taylor@codethink.co.uk>
4730 * tools/scanner.c: (g_igenerator_process_function_symbol):
4731 Move g_idl_node_can_have_member test later, as it broke spotting
4732 get_type's for nodes that can't have members.
4734 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4737 * tools/gidlnode.c: (g_idl_node_can_have_member):
4738 Add g_idl_node_can_have_member.
4740 * tools/scanner.c: (g_igenerator_process_function_symbol):
4741 Use g_idl_node_can_have_member to test if we should add a function
4742 as a member of the type node.
4744 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4746 * gidl/GLib.gidl: Renamed to gidl/gobject-2.0.gidl:
4748 * tests/parser/Makefile.am:
4749 Rename GLib.gidl to gobject-2.0.gidl and install in /usr/share/gidl.
4751 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4753 * tools/scanner.c: (main):
4754 Ignore -pthread when passed to g-idl-scanner.
4756 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4758 * tools/grealpath.h: Added:
4759 * tools/scanner.c: (main):
4760 * tools/scannerlexer.l:
4761 * tools/Makefile.am:
4762 Always use absolute paths with symbolic links resolved when
4763 comparing filenames.
4765 2008-02-18 Rob Taylor <rob.taylor@codethink.co.uk>
4767 * gobject-introspection.pc.in:
4768 Provide variables for g-idl-parser, scanner and compiler in the
4771 2008-02-13 Rob Taylor <rob.taylor@codethink.co.uk>
4774 * girepository/Makefile.am:
4775 * tools/Makefile.am:
4776 Rename GCOV_SOURCES to GCOVSOURCES to top automake complaining.
4778 2008-02-10 Johan Dahlin <johan@gnome.org>
4780 * tests/parser/Foo-expected.gidl:
4781 * tests/parser/foo-object.h:
4782 * tests/parser/foo.c: (foo_boxed_copy), (foo_boxed_free),
4783 (foo_boxed_get_type), (foo_boxed_new), (foo_boxed_method):
4786 2008-02-10 Johan Dahlin <johan@gnome.org>
4788 * tests/parser/Foo-expected.gidl:
4789 * tests/parser/foo-object.h:
4790 * tests/parser/foo.c: (foo_enum_get_type), (foo_flags_get_type):
4791 Add enum and flags test.
4793 2008-02-10 Johan Dahlin <johan@gnome.org>
4797 * girepository/Makefile.am:
4798 Make 'make distcheck' work again.
4800 2008-02-10 Johan Dahlin <johan@gnome.org>
4802 * m4/Makefile.am (EXTRA_DIST): its called as-compiler-flag.m4,
4805 * tests/parser/Makefile.am: Only create Foo.gidl when running make
4806 check, eg exclude it from BUILT_SOURCES.
4808 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4813 * girepository/Makefile.am:
4814 * m4/Makefile.am: Added:
4815 * m4/as-compiler-flag.m4: Added:
4816 * m4/gcov.m4: Added:
4817 * tools/Makefile.am:
4818 Add ability to generate a coverage report.
4819 Adds configure option --enable-gcov and make rule 'check-coverage'.
4821 2008-02-08 Rob Taylor <rob.taylor@codethink.co.uk>
4825 * gidl/Makefile.am: Added:
4826 * girepository/Makefile.am: Added:
4827 * src/Makefile.am: Renamed to tools/Makefile.am:
4828 * src/compiler.c: Renamed to tools/compiler.c:
4829 * src/g-idl-offsets.pl: Renamed to tools/g-idl-offsets.pl:
4830 * src/generate.c: Renamed to tools/generate.c:
4831 * src/gidlmodule.c: Renamed to tools/gidlmodule.c:
4832 * src/gidlmodule.h: Renamed to tools/gidlmodule.h:
4833 * src/gidlnode.c: Renamed to tools/gidlnode.c:
4834 * src/gidlnode.h: Renamed to tools/gidlnode.h:
4835 * src/gidlparser.c: Renamed to tools/gidlparser.c:
4836 * src/gidlparser.h: Renamed to tools/gidlparser.h:
4837 * src/gidlwriter.c: Renamed to tools/gidlwriter.c:
4838 * src/gidlwriter.h: Renamed to tools/gidlwriter.h:
4839 * src/ginfo.c: Renamed to girepository/ginfo.c:
4840 * src/ginvoke.c: Renamed to girepository/ginvoke.c:
4841 * src/girepository.c: Renamed to girepository/girepository.c:
4842 * src/girepository.h: Renamed to girepository/girepository.h:
4843 * src/gmetadata.c: Renamed to girepository/gmetadata.c:
4844 * src/gmetadata.h: Renamed to girepository/gmetadata.h:
4845 * src/scanner.c: Renamed to tools/scanner.c:
4846 * src/scanner.h: Renamed to tools/scanner.h:
4847 * src/scannerlexer.l: Renamed to tools/scannerlexer.l:
4848 * src/scannerparser.y: Renamed to tools/scannerparser.y:
4849 * tests/invoke/Makefile.am:
4850 Split src/ into girepository/ and tools/
4854 * girepository/Makefile.am:
4855 * tests/Makefile.am:
4856 * tests/invoke/Makefile.am:
4857 * tests/parser/Makefile.am:
4858 * tests/roundtrips.sh:
4859 * tools/Makefile.am:
4860 Make distcheck work.
4862 2008-02-04 Rob Taylor <rob.taylor@codethink.co.uk>
4864 * tests/invoke/invoke.c: (main):
4865 * tests/invoke/testfns.c: (test6), (test7):
4866 * tests/invoke/testfns.xml:
4867 Add tests for invokation with a GList argument.
4868 Also tests caller-owns return values.
4870 2008-02-04 Rob Taylor <robtaylor@floopily.org>
4873 Add some documentation for GICallableInfo
4875 2008-02-01 Mark Doffman <mark.doffman@codethink.co.uk>
4878 Correct syntax errors in the DTD file.
4880 * relaxng/c-types.xml:
4881 * relaxng/g-types.xml:
4883 Add a RelaxNG specification for the GObject Introspection XML data.
4884 The Specification has validated all of the test files.
4886 2008-01-25 Rob Taylor <robtaylor@floopily.org>
4888 * tests/roundtrips.sh:
4889 * tests/struct.test:
4890 Add roundtrip tests for structs.
4892 2008-01-11 Johan Dahlin <johan@gnome.org>
4894 * src/scanner.c (g_igenerator_process_function_symbol):
4895 Refactor out g_idle_node_add_member.
4896 (create_node_from_gtype, create_node_from_ctype):
4897 Use case instead of if...else
4898 (get_type_from_type_id):
4899 Rename to create_node_from_gtype
4900 (get_type_from_ctype):
4901 Rename to create_node_from_ctype
4903 Rename ginode -> node, gitype -> type, gifunc -> func.
4905 * src/gidlnode.c (g_idl_node_add_member, g_idl_node_cmp):
4906 Two new functions, refactor out of scanner.c
4908 * src/scanner.c: (g_igenerator_process_function_symbol):
4909 * src/scannerlexer.l:
4910 Do not save the content of the deprecated variable, only
4913 2008-01-11 Johan Dahlin <johan@gnome.org>
4915 * tests/parser/foo-object.h: Add a couple of comment parser tests.
4917 2008-01-11 Jürg Billeter <j@bitron.ch>
4919 * src/scannerlexer.l:
4920 Fix GTK-Doc parsing.
4922 2008-01-11 Jürg Billeter <j@bitron.ch>
4924 * src/scannerlexer.l:
4925 Fix GTK-Doc parsing.
4927 2008-01-11 Jürg Billeter <j@bitron.ch>
4929 * src/scanner.c: (lookup_symbol):
4930 Return unresolved name if we find unknown symbol.
4932 2008-01-11 Jürg Billeter <j@bitron.ch>
4934 * src/scanner.c: (g_igenerator_generate):
4935 Initialize GObject to fix scanning interface properties.
4937 * tests/parser/Foo-expected.gidl:
4938 * tests/parser/foo-object.h:
4939 * tests/parser/foo.c: (foo_interface_get_type):
4940 Test interfaces with GObject prerequisite.
4942 * tests/parser/Makefile.am:
4943 Set G_DEBUG=fatal_warnings to abort test on warnings and criticals.
4945 2007-12-27 Johan Dahlin <johan@gnome.org>
4947 * src/scannerlexer.l:
4948 Parse gtk-doc comments.
4950 * src/gidlwriter.c: (function_generate):
4951 Reorganize, avoid duplication and add support for
4952 writing deprecated functions.
4954 * src/scannerparser.y:
4956 Add new structure CDirective and functions to create/free them.
4958 * src/scanner.c: (g_igenerator_process_function_symbol),
4959 (g_igenerator_process_unregistered_struct_typedef),
4960 (g_igenerator_process_struct_typedef),
4961 (g_igenerator_process_union_typedef),
4962 (g_igenerator_process_enum_typedef),
4963 (g_igenerator_process_function_typedef), (g_igenerator_add_symbol),
4964 (g_igenerator_start_preprocessor):
4965 Parse @deprecated directive for functions.
4966 Remove some more C99isms.
4967 Send in -C to cpp to avoid stripping comments.
4969 * tests/parser/foo-object.h:
4970 * tests/parser/Foo-expected.gidl:
4971 Add deprecated directive
4973 2007-12-27 Johan Dahlin <johan@gnome.org>
4975 * src/scannerlexer.l (intsuffix): Add emacs mode line and
4976 escape ' and " so it looks more like C.
4979 Unlink temporary file used.
4981 2007-12-27 Johan Dahlin <johan@gnome.org>
4983 * src/scanner.c: (g_igenerator_new), (g_igenerator_free),
4984 (g_igenerator_start_preprocessor), (main):
4986 * src/scannerparser.y:
4987 Plug a couple of simple memory leaks.
4989 2007-12-27 Johan Dahlin <johan@gnome.org>
4991 * src/scanner.c: (g_igenerator_parse_macros),
4992 (g_igenerator_start_preprocessor), (g_igenerator_set_verbose),
4995 * src/scannerparser.y:
4996 * tests/parser/Makefile.am:
4998 Improve error reporting, return when the preprocessor fails.
4999 Add a verbose parameter, to aid debugging.
5000 Revert to using a temporary file to communicate between the
5001 preprocessor and the parser, because we need to wait for
5002 the exit code from the pre-processor before starting to parse.
5004 2007-12-16 Johan Dahlin <jdahlin@async.com.br>
5006 * src/Makefile.am: Rename clexer.l to scannerlexer.l and
5007 cparser.y to scannerparser.y
5009 2007-12-11 Johan Dahlin <johan@gnome.org>
5013 * src/scanner.c: (g_igenerator_new):
5015 Get rid of the global the_generator variable.
5017 2007-12-10 Johan Dahlin <johan@gnome.org>
5019 * src/scanner.c (main): Add an output option,
5020 add checks for required parameters
5023 set BUILD_SOURCES and CLEANFILES properly
5025 * src/gidlwriter.c: (g_writer_write_inline), (g_writer_write),
5026 (g_writer_write_indent), (g_writer_write_unindent),
5027 (field_generate), (value_generate), (constant_generate),
5028 (property_generate), (function_generate), (vfunc_generate),
5029 (signal_generate), (interface_generate), (struct_generate),
5030 (union_generate), (boxed_generate), (enum_generate),
5031 (node_generate), (g_writer_write_module), (g_idl_writer_save_file):
5033 * src/scanner.c: (g_igenerator_generate):
5035 * src/scannerwriter.c:
5037 Refactor scannerwriter to only be tied to a GIdlModule and move
5038 it (again!) to gidlwriter.c. Change the writer function to take
5041 2007-12-10 Johan Dahlin <johan@gnome.org>
5044 * src/scanner.c: (g_igenerator_generate):
5046 * src/scannerwriter.c: (g_igenerator_write_inline),
5047 (g_igenerator_write), (g_igenerator_write_indent),
5048 (g_igenerator_write_unindent), (field_generate), (value_generate),
5049 (constant_generate), (property_generate), (function_generate),
5050 (vfunc_generate), (signal_generate), (interface_generate),
5051 (struct_generate), (union_generate), (boxed_generate),
5052 (enum_generate), (node_generate), (module_generate),
5053 (g_scanner_write_file):
5055 Move the scanner gidl writing to a separate source file.
5057 2007-12-10 Johan Dahlin <johan@gnome.org>
5062 Move over all CType construction functions.
5064 * tests/parser/Makefile.am:
5065 Be verbose when printing parsing tests results.
5067 2007-12-10 Johan Dahlin <johan@gnome.org>
5069 * src/scanner.c (g_igenerator_start_preprocessor): Refactor
5070 preprocessor handling to here. Start cpp insteado of cc -E,
5071 always include -U__GNUC__, since it's specific to the preprocessor
5074 * tests/parser/Makefile.am (check-local): Silent diff and skip
5075 -U__GNUC__ which is always defined now
5077 2007-12-10 Johan Dahlin,,, <jdahlin@plasttroll>
5079 reviewed by: <delete if not using a buddy>
5081 * src/scanner.c: (g_igenerator_start_preprocessor), (main):
5082 * tests/parser/Makefile.am:
5084 2007-12-09 Johan Dahlin <johan@gnome.org>
5087 Use GOption for command line options.
5088 (g_igenerator_new, main): Simplify constructor and they way
5089 parameters are passed into it.
5095 * src/gen-introspect.c:
5096 * src/gen-introspect.h:
5098 Rename gen-introspect.[ch] to scanner.[ch]
5100 2007-12-09 Johan Dahlin <johan@gnome.org>
5104 * src/Makefile.am: Rename gen-introspect to g-idl-scanner,
5105 don't make the repository library and the other utilites link against
5108 * src/gen-introspect.c: (g_igenerator_create_object),
5109 (g_igenerator_create_interface), (g_igenerator_create_boxed),
5110 (g_igenerator_create_enum), (g_igenerator_create_flags),
5111 (g_igenerator_process_module_symbol),
5112 (g_igenerator_process_module), (g_igenerator_generate), (main):
5113 * src/gen-introspect.h:
5114 Refactor g_igenerator_process_types into smaller pieces.
5116 * tests/parser/Makefile.am:
5117 Depend on the gen-introspect binary
5119 2007-12-09 Johan Dahlin <johan@gnome.org>
5121 * src/gen-introspect.c (g_igenerator_process_types):
5122 Break into smaller pieces, one for each generated node type.
5124 2007-12-08 Johan Dahlin <johan@gnome.org>
5126 * src/gen-introspect.c: (g_igenerator_process_types),
5127 (g_igenerator_add_module):
5128 * tests/parser/Foo-expected.gidl:
5129 * tests/parser/foo-object.h:
5130 * tests/parser/foo.c: (foo_subobject_class_init),
5131 (foo_subobject_init):
5133 Add a subobject test and make sure to register defined classes
5134 in the lookup symbol hash table.
5136 2007-12-08 Johan Dahlin <johan@gnome.org>
5140 * src/gen-introspect.c: (g_igenerator_new), (lookup_symbol),
5141 (g_igenerator_process_types), (g_igenerator_add_module),
5142 (g_igenerator_add_include_idl), (main):
5143 * src/gen-introspect.h:
5144 * tests/parser/Makefile.am:
5145 * tests/parser/Foo-expected.gidl:
5147 Change the gen-introspect to generate namespaced module names,
5148 such as GLib.Object instead of GObject.
5149 Add a GLib.gidl which introduces GLib.Object and GLib.InitiallyUnowned,
5150 add a --include-idl parameter to gen-introspect,
5151 and update the parser test.
5153 2007-12-08 Johan Dahlin <johan@gnome.org>
5155 * src/gen-introspect.c:
5156 Move main to the end of the file and attempt to make it valid
5159 * tests/parser/Makefile.am (BUILT_SOURCES): Remove .repo here,
5160 we're not quite ready to generate metadata yet.
5165 Add a simple gen-introspect parser test
5167 2007-12-06 Gustavo J. A. M. Carneiro <gjc@gnome.org>
5169 reviewed by: Johan Dahlin <johan@gnome.org>
5172 * gobject-introspection.pc.in:
5174 * src/compiler.c: (format_output), (write_out_metadata), (main):
5175 * src/gen-introspect.c: (main):
5176 * src/gen-introspect.h:
5177 * src/generate.c: (write_callable_info), (write_repository),
5178 (load_metadata), (main):
5179 * src/gidlmodule.c: (g_idl_module_new),
5180 (g_idl_module_build_metadata):
5182 * src/gidlparser.c: (start_element_handler):
5183 * src/ginfo.c: (g_info_new), (g_info_from_entry),
5184 (g_base_info_get_name), (g_base_info_get_namespace),
5185 (g_base_info_is_deprecated), (g_base_info_get_annotation),
5186 (g_base_info_get_metadata), (g_function_info_get_symbol),
5187 (g_function_info_get_flags), (g_function_info_get_property),
5188 (g_function_info_get_vfunc), (signature_offset), (g_type_info_new),
5189 (g_callable_info_may_return_null),
5190 (g_callable_info_get_caller_owns), (g_callable_info_get_n_args),
5191 (g_callable_info_get_arg), (g_arg_info_get_direction),
5192 (g_arg_info_is_return_value), (g_arg_info_is_dipper),
5193 (g_arg_info_is_optional), (g_arg_info_may_be_null),
5194 (g_arg_info_get_ownership_transfer), (g_type_info_is_pointer),
5195 (g_type_info_get_tag), (g_type_info_get_param_type),
5196 (g_type_info_get_interface), (g_type_info_get_array_length),
5197 (g_type_info_is_zero_terminated),
5198 (g_type_info_get_n_error_domains), (g_type_info_get_error_domain),
5199 (g_error_domain_info_get_quark), (g_error_domain_info_get_codes),
5200 (g_value_info_get_value), (g_field_info_get_flags),
5201 (g_field_info_get_size), (g_field_info_get_offset),
5202 (g_registered_type_info_get_type_name),
5203 (g_registered_type_info_get_type_init),
5204 (g_struct_info_get_n_fields), (g_struct_info_get_field),
5205 (g_struct_info_get_n_methods), (g_struct_info_get_method),
5206 (find_method), (g_struct_info_find_method),
5207 (g_enum_info_get_n_values), (g_enum_info_get_value),
5208 (g_object_info_get_parent), (g_object_info_get_type_name),
5209 (g_object_info_get_type_init), (g_object_info_get_n_interfaces),
5210 (g_object_info_get_interface), (g_object_info_get_n_fields),
5211 (g_object_info_get_field), (g_object_info_get_n_properties),
5212 (g_object_info_get_property), (g_object_info_get_n_methods),
5213 (g_object_info_get_method), (g_object_info_find_method),
5214 (g_object_info_get_n_signals), (g_object_info_get_signal),
5215 (g_object_info_get_n_vfuncs), (g_object_info_get_vfunc),
5216 (g_object_info_get_n_constants), (g_object_info_get_constant),
5217 (g_interface_info_get_n_prerequisites),
5218 (g_interface_info_get_prerequisite),
5219 (g_interface_info_get_n_properties),
5220 (g_interface_info_get_property), (g_interface_info_get_n_methods),
5221 (g_interface_info_get_method), (g_interface_info_find_method),
5222 (g_interface_info_get_n_signals), (g_interface_info_get_signal),
5223 (g_interface_info_get_n_vfuncs), (g_interface_info_get_vfunc),
5224 (g_interface_info_get_n_constants),
5225 (g_interface_info_get_constant), (g_property_info_get_flags),
5226 (g_signal_info_get_flags), (g_signal_info_get_class_closure),
5227 (g_signal_info_true_stops_emit), (g_vfunc_info_get_flags),
5228 (g_vfunc_info_get_offset), (g_vfunc_info_get_signal),
5229 (g_constant_info_get_value), (g_union_info_get_n_fields),
5230 (g_union_info_get_field), (g_union_info_get_n_methods),
5231 (g_union_info_get_method), (g_union_info_is_discriminated),
5232 (g_union_info_get_discriminator_offset),
5233 (g_union_info_get_discriminator):
5234 * src/ginvoke.c: (g_function_info_invoke):
5235 * src/girepository.c: (g_irepository_register),
5236 (g_irepository_unregister), (g_irepository_get_default),
5237 (count_interfaces), (g_irepository_get_n_infos), (find_interface),
5238 (g_irepository_get_info), (g_irepository_find_by_name),
5239 (g_irepository_get_shared_library),
5240 (g_irepository_build_search_path), (g_irepository_register_file),
5241 (g_irepository_error_quark):
5242 * src/girepository.h:
5243 * src/gmetadata.c: (g_metadata_get_dir_entry),
5244 (g_metadata_check_sanity), (validate_header),
5245 (validate_array_type_blob), (validate_iface_type_blob),
5246 (validate_param_type_blob), (validate_error_type_blob),
5247 (validate_type_blob), (validate_arg_blob),
5248 (validate_signature_blob), (validate_function_blob),
5249 (validate_callback_blob), (validate_constant_blob),
5250 (validate_value_blob), (validate_field_blob),
5251 (validate_property_blob), (validate_signal_blob),
5252 (validate_vfunc_blob), (validate_struct_blob),
5253 (validate_enum_blob), (validate_object_blob),
5254 (validate_interface_blob), (validate_errordomain_blob),
5255 (validate_union_blob), (validate_blob), (validate_directory),
5256 (validate_annotations), (g_metadata_validate), (_g_metadata_init),
5257 (g_metadata_new_from_memory), (g_metadata_new_from_const_memory),
5258 (g_metadata_new_from_mapped_file), (g_metadata_free),
5259 (g_metadata_set_module), (g_metadata_get_namespace):
5261 * tests/Makefile.am:
5262 * tests/invoke/Makefile.am:
5263 * tests/invoke/invoke-namespace-find.sh:
5264 * tests/invoke/invoke.c: (main):
5266 Add a namespace/shared library mapping. fixes #313268.
5268 2007-12-03 Johan Dahlin <johan@gnome.org>
5270 * src/gidlparser.c (parse_type_internal): Disable char/gchar and
5273 2007-11-30 Jürg Billeter <j@bitron.ch>
5279 * src/gen-introspect.c: (g_idl_node_cmp), (g_igenerator_new),
5280 (g_igenerator_write_inline), (g_igenerator_write),
5281 (g_igenerator_write_indent), (g_igenerator_write_unindent),
5282 (field_generate), (value_generate), (constant_generate),
5283 (property_generate), (function_generate), (vfunc_generate),
5284 (signal_generate), (interface_generate), (struct_generate),
5285 (union_generate), (boxed_generate), (enum_generate),
5286 (node_generate), (module_generate), (get_type_from_type_id),
5287 (str_replace), (g_igenerator_process_properties),
5288 (g_igenerator_process_signals), (g_igenerator_process_types),
5289 (get_type_from_ctype), (g_igenerator_process_function_symbol),
5290 (g_igenerator_process_unregistered_struct_typedef),
5291 (g_igenerator_process_struct_typedef),
5292 (g_igenerator_process_union_typedef),
5293 (g_igenerator_process_enum_typedef),
5294 (g_igenerator_process_function_typedef),
5295 (g_igenerator_process_constant), (g_igenerator_process_symbols),
5296 (g_igenerator_add_symbol), (g_igenerator_is_typedef),
5297 (g_igenerator_generate), (main), (csymbol_new),
5298 (csymbol_get_const_boolean), (ctype_new), (ctype_copy),
5299 (cbasic_type_new), (ctypedef_new), (cstruct_new), (cunion_new),
5300 (cenum_new), (cpointer_new), (carray_new), (cfunction_new),
5301 (eat_hspace), (eat_line), (read_identifier),
5302 (g_igenerator_parse_macros):
5303 * src/gen-introspect.h:
5305 Import gen-introspect to generate introspection information by
5308 2007-11-30 Jürg Billeter <j@bitron.ch>
5310 * src/gidlnode.c: (g_idl_node_new): support creating callback nodes
5312 2007-11-30 Jürg Billeter <j@bitron.ch>
5314 * src/gidlparser.c: (end_element_handler): Don't leave requires
5317 2007-11-29 Johan Dahlin <johan@gnome.org>
5319 * src/gidlparser.c (parse_type_internal): Add char,
5320 gchar and guchar to the builtin types.
5322 2007-11-26 Johan Dahlin <johan@gnome.org>
5324 * src/ginfo.c: (g_object_info_get_type_name),
5325 (g_object_info_get_type_init):
5326 * src/girepository.c: (g_irepository_is_registered):
5327 * src/girepository.h:
5329 Add g_object_info_get_type_name, g_object_info_get_type_init and
5330 g_irepository_is_registered.
5332 2006-08-14 Jürg Billeter <j@bitron.ch>
5334 * src/gidlparser.c: (end_element_handler): Don't leave
5335 namespace and implements states too early.
5338 2007-11-26 Johan Dahlin <johan@gnome.org>
5340 * src/gmetadata.c (validate_struct_blob):
5341 pass blob_type to validate_function_blob instead of
5342 hard-coding BLOB_TYPE_STRUCT.
5344 Patch by Torsten Schoenfeld, fixes #314190
5346 2006-10-03 Torsten Schoenfeld <tsch@cvs.gnome.org>
5348 * src/compiler.c, src/generate.c, src/gidlnode.c,
5349 src/gidlparser.c, src/ginfo.c, src/girepository.c,
5350 tests/invoke/invoke.c, test/invoke/testfns.c: Hush compiler
5351 warnings about return values, signedness mismatches, unused
5352 variables, and unhandles enum values in switch statements.
5354 * tests/invoke/Makefile.am: Don't install the invoke test program.
5355 Add -I ../../src to the cflags used for the test functions files.
5357 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5359 * src/girepository.h: Export g_invoke_error_quark.
5361 2005-08-31 Torsten Schoenfeld <tsch@cvs.gnome.org>
5363 * src/ginvoke.c: Remove the fallback implementation of
5364 g_function_info_invoke since we now formally depend on libffi.
5366 2005-07-25 Matthias Clasen <mclasen@redhat.com>
5368 * src/Makefile, tests/Makefile, tests/invoke/Makefile:
5369 Remove these files from cvs, as they are now generated.
5371 * src/gmetadata.c (validate_iface_type_blob): Don't
5372 complain if blob->pointer is not set, since that
5373 happens for enum and flag types. (#308935, Gustavo
5376 * Commit an autoconf-conversion patch by
5377 Gustavo Carneiro (#308708)
5379 2005-05-24 Matthias Clasen <mclasen@redhat.com>
5381 * src/compiler.c (main): Use it here to validate
5382 the generated metadata.
5384 * src/gmetadata.[hc]: Add code to validate a
5387 * metadata-format.txt: Updates
5389 2005-05-22 Matthias Clasen <mclasen@redhat.com>
5391 * tests/*: Add struct offsets to field and vfunc
5394 * src/generate.c (write_vfunc_info): Write offset
5395 information for vfuncs.
5397 * src/gidlnode.c (g_idl_node_build_metadata): Write
5398 the struct offsets into the metadata.
5400 * src/gidlparser.c: Parse the offset attributes of
5401 field and vfunc elements.
5403 * src/gidlnode.h: Add offset members to field and
5406 2005-05-21 Matthias Clasen <mclasen@redhat.com>
5410 * gidl.dtd: Updates.
5412 * src/g-idl-offsets.pl: A perl script which reads a .gidl
5413 file, creates, compiles and runs a C file, and folds the
5414 resulting struct offsets back into the .gidl file.
5416 2005-05-20 Matthias Clasen <mclasen@redhat.com>
5418 * src/gidlparser.c (start_field): Make fields in objects
5421 * src/gidlmodule.c: Include string.h
5426 * metadata-format.txt: Cleanup basic types.
5427 * src/*: Adapt to the changes.
5428 * tests/*: Adapt to the changes.
5429 * examples/gdk-pixbuf.gidl: Adapt to the changes.
5431 * src/gidlnode.c (g_idl_node_get_size): Report the correct
5432 size for enum blobs.
5433 (g_idl_node_get_full_size): Report the correct size for
5436 * src/gidlmodule.c (g_idl_module_build_metadata): Add some
5437 error checking for blob sizes.
5439 2005-05-19 Matthias Clasen <mclasen@redhat.com>
5441 * src/gidlnode.c (g_idl_node_build_metadata): Correctly handle
5442 interface types for which is_pointer is FALSE, e.g. enums.
5444 * src/gidlnode.c (g_idl_node_get_full_size)
5445 * src/gidlparser.c (parse_type_internal):
5446 * src/generate.c (write_type_info): Support unspecialized
5447 lists, hashtables and errors. Also emit a '*' after these.
5451 2005-05-17 Matthias Clasen <mclasen@redhat.com>
5455 * metadata-format.txt: Cleanups by Maciej Katafiasz.
5457 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5459 * src/*.c: Change the directory to be addressed by
5460 1-based indexes, and use an index of zero to mean
5463 2005-05-15 Matthias Clasen <mclasen@redhat.com>
5465 * tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
5467 * tests/union.test: Add a union test.
5469 * src/generate.c: Handle unions.
5471 * src/girepository.h:
5472 * src/ginfo.c: Add GIUnionInfo and functions to access it.
5474 * src/gidlnode.c: Handle GIdlNodeUnion nodes.
5476 * src/gidlparser.c (start_union): Parse <union> elements.
5478 * src/gidlnode.h: Add a GIdlNodeUnion.
5480 * gidl.dtd: Add a <union> element.
5482 * src/gmetadata.c (g_metadata_check_sanity): Check
5485 * src/gmetadata.h: Add union_blob_size to Header,
5488 * metadata-format.txt: Add a UnionBlob.
5490 2005-05-13 Matthias Clasen <mclasen@redhat.com>
5492 * tests/*: Update testcases.
5494 * src/generate.c (write_callable_info): Don't forget to
5495 write transfer and null-ok attributes for return types
5498 * src/girepository.h:
5499 * src/ginfo.c (g_callable_info_may_return_null):
5500 New function to find out if a function may return NULL.
5502 * src/compiler.c (format_output): Make the generated
5505 * README: Point to a recent libffi snapshot.
5507 * tests/invoke/*: Some invoke tests.
5509 * src/Makefile: Add ginvoke.c and the necessary
5512 * src/girepository.h (g_function_info_invoke): Add
5515 * src/ginvoke.c (g_function_info_invoke): Initial
5516 implementation of invoke functionality based on libffi.
5518 * src/gidlnode.c (g_idl_node_build_metadata): Pass the
5519 strings and types hash tables in the right order when
5521 (find_entry_node): Free the name parts.
5523 2005-05-12 Johan Dahlin <johan@gnome.org>
5525 * src/generate.c: Generate consistent end tags.
5529 2005-05-12 Matthias Clasen <mclasen@redhat.com>
5533 * src/gidlparser.c (start_function): Actually add
5534 methods to objects. (Steven Walter)
5536 * src/girepository.h:
5537 * src/ginfo.c: Rename Transfer and Direction to
5538 GITransfer and GIDirection. (Torsten Schoenfeld)
5540 * tests/*: Make tests work with the changes in name
5543 * src/gidlnode.c (find_entry_node): Parse qualified
5544 names and generate xref nodes for them if needed. Don't
5545 require all modules to be loaded any more.
5547 * src/gidlmodule.c (g_idl_module_build_metadata): Choke
5550 * src/ginfo.c (g_object_info_get_parent): Return NULL
5551 if blob->parent is 0. Still need to make sure index
5554 * src/generate.c: Generate qualified names when
5555 referring to non-local types. Emit transfer attribute
5558 * src/compiler.c (format_output): Put the function
5559 attributes where gcc accepts them.
5561 2005-05-11 Matthias Clasen <mclasen@redhat.com>
5563 * src/compiler.c (main): Add a --verbose cmdline option
5564 and only log messages if it is specified.
5567 * src/gidlnode.c (init_stats, dump_stats): Collect some
5568 statistics on string and type sharing.
5570 * src/gidlmodule.c (g_idl_module_build_metadata): Use
5571 g_message() instead of fprintf().
5573 * src/gidlnode.c (g_idl_node_free): Make this more robust.
5574 (g_idl_node_get_size): Implement for structs.
5575 (g_idl_node_get_full_size): Handle parent being NULL.
5576 (serialize_type): Handle lookup failures more gracefully.
5578 2005-05-10 Matthias Clasen <mclasen@redhat.com>
5580 * src/gidlnode.c (g_idl_node_get_full_size): Correct the
5581 size calculation for 2-parameter types and for objects.
5583 * src/compiler.c: Add a cmdline option for debug output
5584 and install a log handler to implement it.
5585 * src/gidlnode.c: Add some debug spew.
5589 * src/gidlmodule.c (g_idl_module_build_metadata): Don't
5590 forget to count the module name when calculating the
5591 required size for the metadata.
5594 * src/gidlparser.c: Fix compiler warnings.
5596 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5598 * src/compiler.c (main): Free the option context.
5600 * gidl.dtd: Clean up handling of names. All elements
5601 have a "name", only the elements corresponding to
5602 actual callable functions (function, method, constructor),
5603 have an additional "symbol" attribute holding the
5604 dlsym()-able function name.
5606 * src/generate.c: Adapt to generate xml matching the
5610 * src/gidlnode.c: Adapt to parse the new dtd.
5612 * tests/*.test: Adjust to the new dtd.
5614 * metadata-format.txt:
5615 * src/gmetadata.h: Remove the short_name field
5617 * src/gmetadata.c: Shrink size of ValueBlob to 12.
5618 * src/girepository.h:
5619 * src/ginfo.c (g_value_info_get_short_name): Removed
5621 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5623 * gidl.dtd: Allow constructors for boxed types,
5624 patch by Jonathan Blandford.
5627 2005-05-09 Matthias Clasen <mclasen@redhat.com>
5629 * --- Initial import ---