From 240b76445bcff480d8cfa8351bd84744d53bf897 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 14 Aug 2008 19:45:37 +0000 Subject: Fix generator for constant/gobject/struct 2008-08-14 Johan Dahlin * tests/Makefile.am: * tests/constant.gir: * tests/gobject.gir: * tests/struct.gir: * tools/generate.c (write_struct_info): Fix generator for constant/gobject/struct svn path=/trunk/; revision=379 --- ChangeLog | 9 +++++++++ tests/Makefile.am | 12 +++++++----- tests/constant.gir | 20 +++++++++++++++----- tests/gobject.gir | 4 ++-- tests/interface.gir | 54 ++++++++++++++++++++++++++++++++++++----------------- tests/struct.gir | 36 ++++++++++++++++++++++++----------- tools/generate.c | 4 ++-- 7 files changed, 97 insertions(+), 42 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9917a4b8..c7689299 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-08-14 Johan Dahlin + + * tests/Makefile.am: + * tests/constant.gir: + * tests/gobject.gir: + * tests/struct.gir: + * tools/generate.c (write_struct_info): + Fix generator for constant/gobject/struct + 2008-08-14 Johan Dahlin * tests/Makefile.am: diff --git a/tests/Makefile.am b/tests/Makefile.am index bb55f256..7ee560b3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -3,7 +3,6 @@ SUBDIRS = . invoke scanner EXTRA_DIST = \ array.gir \ boxed.gir \ - constant.gir \ enum.gir \ errors.gir \ function.gir \ @@ -16,10 +15,13 @@ EXTRA_DIST = \ xref1.gir \ xref2.gir -GIRTESTS = \ - boxed.gir.test \ - enum.gir.test \ - object.gir.test +GIRTESTS = \ + boxed.gir.test \ + constant.gir.test \ + enum.gir.test \ + gobject.gir.test \ + object.gir.test \ + struct.gir.test %.gir.test: %.gir @echo Testing $<: diff --git a/tests/constant.gir b/tests/constant.gir index f5da5358..c64bd930 100644 --- a/tests/constant.gir +++ b/tests/constant.gir @@ -4,10 +4,20 @@ xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> - - - - - + + + + + + + + + + + + + + + diff --git a/tests/gobject.gir b/tests/gobject.gir index aa4aa3ae..33de9625 100644 --- a/tests/gobject.gir +++ b/tests/gobject.gir @@ -4,7 +4,7 @@ xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> - - + + diff --git a/tests/interface.gir b/tests/interface.gir index 35ea45eb..74fd4205 100644 --- a/tests/interface.gir +++ b/tests/interface.gir @@ -4,38 +4,58 @@ xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> - + - + - + + + - + + + - - - + + + + + + + - + + + - - - + + + + + - + + + - + - + + + - + + + - + + + - + diff --git a/tests/struct.gir b/tests/struct.gir index e94a4352..ff659cb1 100644 --- a/tests/struct.gir +++ b/tests/struct.gir @@ -4,16 +4,30 @@ xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/generate.c b/tools/generate.c index 4cbf23ec..3e6a8f82 100644 --- a/tools/generate.c +++ b/tools/generate.c @@ -434,7 +434,7 @@ write_struct_info (const gchar *namespace, g_fprintf (file, " \n"); else - g_fprintf (file, " \n"); + g_fprintf (file, " \n"); } static void -- cgit v1.2.1