diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-08-15 10:11:10 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-08-15 10:11:10 +0800 |
commit | ab3f38c8fdf21930c97026cd25a20efc1d52baa1 (patch) | |
tree | ea1f8cb22e5b637030bdbf0111863ae9ec424184 /giscanner | |
parent | 7a82752734b496bb619fce62572c0c7f8578350a (diff) | |
download | gobject-introspection-ab3f38c8fdf21930c97026cd25a20efc1d52baa1.tar.gz |
Revert "codegen.py: Update Generation of everything.[c|h]"
This reverts commit 7a82752734b496bb619fce62572c0c7f8578350a.
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/codegen.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/giscanner/codegen.py b/giscanner/codegen.py index a9fa375c..e9ed9415 100644 --- a/giscanner/codegen.py +++ b/giscanner/codegen.py @@ -51,7 +51,6 @@ class CCodeGenerator(object): def _write_prelude(self, out, func): out.write(""" -_GI_TEST_EXTERN %s %s (""" % (self._typecontainer_to_ctype(func.retval), func.symbol)) l = len(func.parameters) @@ -111,18 +110,10 @@ _GI_TEST_EXTERN #define __%s_H__ #include <glib-object.h> - -#include "../tests/gitestmacros.h" - """ % (nsupper, nsupper)) self.out_c.write(warning) - self.out_c.write(""" -#include "config.h" - -#include "%s" - -""" % (self.out_h_filename, )) + self.out_c.write("""#include "%s"\n\n""" % (self.out_h_filename, )) def _codegen_end(self): self.out_h.write("""#endif\n""") |