diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-19 18:07:57 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-19 18:07:57 -0600 |
commit | 05ffbe15e92140617e90fe0ccbc22cc1fe0ac3e3 (patch) | |
tree | 3f1dc798357f5f4535967c98185b1aea5119a6a4 /libdimension-python/Scene.c | |
parent | 6d86cbdcdeb60cdaa5146d186a33e844a09aaf86 (diff) | |
download | dimension-05ffbe15e92140617e90fe0ccbc22cc1fe0ac3e3.tar.xz |
Don't #include .c files.
Diffstat (limited to 'libdimension-python/Scene.c')
-rw-r--r-- | libdimension-python/Scene.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libdimension-python/Scene.c b/libdimension-python/Scene.c index 48a41cb..bfbab63 100644 --- a/libdimension-python/Scene.c +++ b/libdimension-python/Scene.c @@ -18,10 +18,7 @@ * <http://www.gnu.org/licenses/>. * *************************************************************************/ -typedef struct dmnsn_py_Scene { - PyObject_HEAD - dmnsn_scene *scene; -} dmnsn_py_Scene; +#include "Scene.h" static PyObject * dmnsn_py_Scene_new(PyTypeObject *type, PyObject *args, PyObject *kwds) @@ -53,7 +50,7 @@ static PyGetSetDef dmnsn_py_Scene_getsetters[] = { { NULL } }; -static PyTypeObject dmnsn_py_SceneType = { +PyTypeObject dmnsn_py_SceneType = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "dimension.Scene", .tp_basicsize = sizeof(dmnsn_py_Scene), @@ -66,7 +63,7 @@ static PyTypeObject dmnsn_py_SceneType = { .tp_new = dmnsn_py_Scene_new, }; -static bool +bool dmnsn_py_init_SceneType(void) { Py_INCREF(&dmnsn_py_SceneType); |