summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Matthias Clasen [Sun, 15 May 2005 04:30:43 +0000 (04:30 +0000)]
Add union.test.
2005-05-15 Matthias Clasen <mclasen@redhat.com>
* tests/roundtrips.sh (SIMPLE_TESTS): Add union.test.
* tests/union.test: Add a union test.
* src/generate.c: Handle unions.
* src/girepository.h:
* src/ginfo.c: Add GIUnionInfo and functions to access it.
* src/gidlnode.c: Handle GIdlNodeUnion nodes.
* src/gidlparser.c (start_union): Parse <union> elements.
* src/gidlnode.h: Add a GIdlNodeUnion.
* gidl.dtd: Add a <union> element.
* src/gmetadata.c (g_metadata_check_sanity): Check
union_blob_size.
* src/gmetadata.h: Add union_blob_size to Header,
add a UnionBlob.
* metadata-format.txt: Add a UnionBlob.
Matthias Clasen [Fri, 13 May 2005 17:33:11 +0000 (17:33 +0000)]
Updates
Matthias Clasen [Fri, 13 May 2005 17:31:10 +0000 (17:31 +0000)]
Update testcases.
2005-05-13 Matthias Clasen <mclasen@redhat.com>
* tests/*: Update testcases.
* src/generate.c (write_callable_info): Don't forget to
write transfer and null-ok attributes for return types
and parameters.
* src/girepository.h:
* src/ginfo.c (g_callable_info_may_return_null):
New function to find out if a function may return NULL.
Matthias Clasen [Fri, 13 May 2005 15:58:43 +0000 (15:58 +0000)]
Make the generated C code compile.
2005-05-13 Matthias Clasen <mclasen@redhat.com>
* src/compiler.c (format_output): Make the generated
C code compile.
* README: Point to a recent libffi snapshot.
* tests/invoke/*: Some invoke tests.
* src/Makefile: Add ginvoke.c and the necessary
libffi information.
* src/girepository.h (g_function_info_invoke): Add
a GError argument.
* src/ginvoke.c (g_function_info_invoke): Initial
implementation of invoke functionality based on libffi.
Matthias Clasen [Fri, 13 May 2005 14:35:04 +0000 (14:35 +0000)]
Free the name parts.
2005-05-13 Matthias Clasen <mclasen@redhat.com>
* src/gidlnode.c (find_entry_node): Free the name parts.
Matthias Clasen [Fri, 13 May 2005 04:42:12 +0000 (04:42 +0000)]
Pass the strings and types hash tables in the right order when recursing.
2005-05-13 Matthias Clasen <mclasen@redhat.com>
* src/gidlnode.c (g_idl_node_build_metadata): Pass the
strings and types hash tables in the right order when
recursing.
Johan Dahlin [Fri, 13 May 2005 02:54:03 +0000 (02:54 +0000)]
Generate consistent end tags.
* src/generate.c: Generate consistent end tags.
* tests/*: Update
Matthias Clasen [Fri, 13 May 2005 02:44:04 +0000 (02:44 +0000)]
Updates
2005-05-12 Matthias Clasen <mclasen@redhat.com>
* TODO: Updates
Matthias Clasen [Fri, 13 May 2005 02:42:21 +0000 (02:42 +0000)]
Actually add methods to objects. (Steven Walter)
2005-05-12 Matthias Clasen <mclasen@redhat.com>
* src/gidlparser.c (start_function): Actually add
methods to objects. (Steven Walter)
* src/girepository.h:
* src/ginfo.c: Rename Transfer and Direction to
GITransfer and GIDirection. (Torsten Schoenfeld)
Matthias Clasen [Fri, 13 May 2005 02:36:01 +0000 (02:36 +0000)]
Rename Transfer and Direction to GITransfer and GIDirection. (Torsten
2005-05-12 Matthias Clasen <mclasen@redhat.com>
* src/girepository.h:
* src/ginfo.c: Rename Transfer and Direction to
GITransfer and GIDirection. (Torsten Schoenfeld)
Matthias Clasen [Thu, 12 May 2005 22:51:16 +0000 (22:51 +0000)]
Fix test cases
Matthias Clasen [Thu, 12 May 2005 22:49:59 +0000 (22:49 +0000)]
Some fixes
Matthias Clasen [Wed, 11 May 2005 19:31:37 +0000 (19:31 +0000)]
Add a --verbose cmdline option and only log messages if it is specified.
2005-05-11 Matthias Clasen <mclasen@redhat.com>
* src/compiler.c (main): Add a --verbose cmdline option
and only log messages if it is specified.
* src/gidlnode.h:
* src/gidlnode.c (init_stats, dump_stats): Collect some
statistics on string and type sharing.
* src/gidlmodule.c (g_idl_module_build_metadata): Use
g_message() instead of fprintf().
* src/gidlnode.c (g_idl_node_free): Make this more robust.
(g_idl_node_get_size): Implement for structs.
(g_idl_node_get_full_size): Handle parent being NULL.
(serialize_type): Handle lookup failures more gracefully.
Matthias Clasen [Tue, 10 May 2005 17:43:21 +0000 (17:43 +0000)]
Correct the size calculation for 2-parameter types and for objects.
2005-05-10 Matthias Clasen <mclasen@redhat.com>
* src/gidlnode.c (g_idl_node_get_full_size): Correct the
size calculation for 2-parameter types and for objects.
* src/compiler.c: Add a cmdline option for debug output
and install a log handler to implement it.
* src/gidlnode.c: Add some debug spew.
Matthias Clasen [Tue, 10 May 2005 05:14:32 +0000 (05:14 +0000)]
Updates
Matthias Clasen [Tue, 10 May 2005 05:08:40 +0000 (05:08 +0000)]
Don't forget to count the module name when calculating the required size
2005-05-10 Matthias Clasen <mclasen@redhat.com>
* src/gidlmodule.c (g_idl_module_build_metadata): Don't
forget to count the module name when calculating the
required size for the metadata.
* src/gidlnode.c:
* src/gidlparser.c: Fix compiler warnings.
Matthias Clasen [Tue, 10 May 2005 03:52:16 +0000 (03:52 +0000)]
Free the option context.
2005-05-09 Matthias Clasen <mclasen@redhat.com>
* src/compiler.c (main): Free the option context.
Matthias Clasen [Mon, 9 May 2005 19:32:10 +0000 (19:32 +0000)]
Clean up handling of names. All elements have a "name", only the elements
2005-05-09 Matthias Clasen <mclasen@redhat.com>
* gidl.dtd: Clean up handling of names. All elements
have a "name", only the elements corresponding to
actual callable functions (function, method, constructor),
have an additional "symbol" attribute holding the
dlsym()-able function name.
* src/generate.c: Adapt to generate xml matching the
new dtd.
* src/gidlparser.c:
* src/gidlnode.c: Adapt to parse the new dtd.
* tests/*.test: Adjust to the new dtd.
* metadata-format.txt:
* src/gmetadata.h: Remove the short_name field
from the ValueBlob.
* src/gmetadata.c: Shrink size of ValueBlob to 12.
* src/girepository.h:
* src/ginfo.c (g_value_info_get_short_name): Removed
Matthias Clasen [Mon, 9 May 2005 16:08:26 +0000 (16:08 +0000)]
Allow constructors in boxed
Matthias Clasen [Mon, 9 May 2005 14:24:46 +0000 (14:24 +0000)]
Import the GObject introspection prototype
Matthias Clasen [Mon, 9 May 2005 14:24:46 +0000 (14:24 +0000)]
Initial revision