platform/upstream/gobject-introspection.git
19 years agonew_with_mime+type -> new_with_mime_type
Johan Dahlin [Thu, 19 May 2005 19:42:23 +0000 (19:42 +0000)]
new_with_mime+type -> new_with_mime_type

19 years agoRemove debug spew
Matthias Clasen [Thu, 19 May 2005 19:15:31 +0000 (19:15 +0000)]
Remove debug spew

19 years agoAdd gdk-pixbuf.gidl as an example, and fix the code to handle it.
Matthias Clasen [Thu, 19 May 2005 19:05:05 +0000 (19:05 +0000)]
Add gdk-pixbuf.gidl as an example, and fix the code to handle it.

19 years agoUpdates
Matthias Clasen [Thu, 19 May 2005 17:37:56 +0000 (17:37 +0000)]
Updates

19 years agoUpdates
Matthias Clasen [Tue, 17 May 2005 21:05:02 +0000 (21:05 +0000)]
Updates

19 years agoCleanups
Matthias Clasen [Tue, 17 May 2005 19:11:43 +0000 (19:11 +0000)]
Cleanups

19 years agoChange the directory to be addressed by 1-based indexes, and use an index
Matthias Clasen [Sun, 15 May 2005 05:11:53 +0000 (05:11 +0000)]
Change the directory to be addressed by 1-based indexes, and use an index

2005-05-15  Matthias Clasen  <mclasen@redhat.com>

        * src/*.c: Change the directory to be addressed by
        1-based indexes, and use an index of zero to mean
        'no object'.

19 years agoAdd union.test.
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.

19 years agoUpdates
Matthias Clasen [Fri, 13 May 2005 17:33:11 +0000 (17:33 +0000)]
Updates

19 years agoUpdate testcases.
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.

19 years agoMake the generated C code compile.
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.

19 years agoFree the name parts.
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.

19 years agoPass the strings and types hash tables in the right order when recursing.
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.

19 years agoGenerate consistent end tags.
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

19 years agoUpdates
Matthias Clasen [Fri, 13 May 2005 02:44:04 +0000 (02:44 +0000)]
Updates

2005-05-12  Matthias Clasen  <mclasen@redhat.com>

        * TODO: Updates

19 years agoActually add methods to objects. (Steven Walter)
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)

19 years agoRename Transfer and Direction to GITransfer and GIDirection. (Torsten
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)

19 years agoFix test cases
Matthias Clasen [Thu, 12 May 2005 22:51:16 +0000 (22:51 +0000)]
Fix test cases

19 years agoSome fixes
Matthias Clasen [Thu, 12 May 2005 22:49:59 +0000 (22:49 +0000)]
Some fixes

19 years agoAdd a --verbose cmdline option and only log messages if it is specified.
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.

19 years agoCorrect the size calculation for 2-parameter types and for objects.
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.

19 years agoUpdates
Matthias Clasen [Tue, 10 May 2005 05:14:32 +0000 (05:14 +0000)]
Updates

19 years agoDon't forget to count the module name when calculating the required size
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.

19 years agoFree the option context.
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.

19 years agoClean up handling of names. All elements have a "name", only the elements
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

19 years agoAllow constructors in boxed
Matthias Clasen [Mon, 9 May 2005 16:08:26 +0000 (16:08 +0000)]
Allow constructors in boxed

19 years agoImport the GObject introspection prototype INITIAL_RELEASE
Matthias Clasen [Mon, 9 May 2005 14:24:46 +0000 (14:24 +0000)]
Import the GObject introspection prototype

19 years agoInitial revision
Matthias Clasen [Mon, 9 May 2005 14:24:46 +0000 (14:24 +0000)]
Initial revision