summaryrefslogtreecommitdiffstats
path: root/codegen/codegen.py
diff options
context:
space:
mode:
authorJohn Ehresman <jpe@wingware.com>2010-04-12 23:21:24 -0400
committerJohn Ehresman <jpe@wingware.com>2010-04-15 12:13:34 -0400
commitf6f2ed44c84aff3c38fc3eb5961b28621a14fc51 (patch)
tree20d33d2b2dc36a454ba8ad9e59b823b50569e3a8 /codegen/codegen.py
parentd8109d9de81a776794965d4cc1093ca03bebd6af (diff)
downloadpygobject-f6f2ed44c84aff3c38fc3eb5961b28621a14fc51.tar.gz
pygobject-f6f2ed44c84aff3c38fc3eb5961b28621a14fc51.tar.xz
pygobject-f6f2ed44c84aff3c38fc3eb5961b28621a14fc51.zip
Make pyglib-python-compat.h a public header and include in pygobject.h Also #define PyVarObject_HEAD_INIT if not defined (in < python 2.6)
Diffstat (limited to 'codegen/codegen.py')
-rwxr-xr-xcodegen/codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/codegen.py b/codegen/codegen.py
index 7a1f7e6..aef93ae 100755
--- a/codegen/codegen.py
+++ b/codegen/codegen.py
@@ -96,7 +96,7 @@ class FileOutput:
class Wrapper:
type_tmpl = (
'PyTypeObject G_GNUC_INTERNAL Py%(typename)s_Type = {\n'
- ' PyVarObject_HEAD_INIT(NULL, 0)'
+ ' PyVarObject_HEAD_INIT(NULL, 0)\n'
' "%(classname)s", /* tp_name */\n'
' sizeof(%(tp_basicsize)s), /* tp_basicsize */\n'
' 0, /* tp_itemsize */\n'