From 30d7eb93c5aa34ab4dd6d418336374a8a52a7762 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 13 May 2005 15:58:43 +0000 Subject: [PATCH] Make the generated C code compile. 2005-05-13 Matthias Clasen * 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. --- girepository/src/compiler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/girepository/src/compiler.c b/girepository/src/compiler.c index 3fc342419..ab74089f2 100644 --- a/girepository/src/compiler.c +++ b/girepository/src/compiler.c @@ -46,6 +46,8 @@ format_output (guchar *metadata, result = g_string_sized_new (6 * len); + g_string_append_printf (result, "#include \n\n"); + g_string_append_printf (result, "const unsigned char _G_METADATA[] = \n{"); for (i = 0; i < len; i++)