From 2ccf7ffb84ef035563d5ad0289b76274b70fee36 Mon Sep 17 00:00:00 2001 From: Michel Selten Date: Sun, 20 Jul 2003 18:06:06 +0000 Subject: * removed the #include .c statements and replaced them with corresponding .h files. * updated the build environment to include the needed .c files. * Updated the modules.h file to expose the necessary functions to other modules. --- source/blender/python/api2_2x/Ipo.c | 2 +- source/blender/python/api2_2x/Ipocurve.c | 2 +- source/blender/python/api2_2x/Ipocurve.h | 16 ++++++++-------- source/blender/python/api2_2x/modules.h | 7 +++++++ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c index 33727105589..3a65a618e95 100644 --- a/source/blender/python/api2_2x/Ipo.c +++ b/source/blender/python/api2_2x/Ipo.c @@ -30,7 +30,7 @@ */ #include "Ipo.h" -#include"Ipocurve.c" +#include "Ipocurve.h" /*****************************************************************************/ /* Function: M_Ipo_New */ /* Python equivalent: Blender.Ipo.New */ diff --git a/source/blender/python/api2_2x/Ipocurve.c b/source/blender/python/api2_2x/Ipocurve.c index cdf43125b35..7a329fce2b1 100644 --- a/source/blender/python/api2_2x/Ipocurve.c +++ b/source/blender/python/api2_2x/Ipocurve.c @@ -30,7 +30,7 @@ */ #include "Ipocurve.h" -#include "BezTriple.c" +#include "BezTriple.h" /*****************************************************************************/ /* Function: M_IpoCurve_New */ /* Python equivalent: Blender.IpoCurve.New */ diff --git a/source/blender/python/api2_2x/Ipocurve.h b/source/blender/python/api2_2x/Ipocurve.h index 86c58b0f5c3..cc15c9aae9d 100644 --- a/source/blender/python/api2_2x/Ipocurve.h +++ b/source/blender/python/api2_2x/Ipocurve.h @@ -47,7 +47,7 @@ /*****************************************************************************/ -/* Python API function prototypes for the IpoCurve module. */ +/* Python API function prototypes for the IpoCurve module. */ /*****************************************************************************/ static PyObject *M_IpoCurve_New (PyObject *self, PyObject *args); static PyObject *M_IpoCurve_Get (PyObject *self, PyObject *args); @@ -55,7 +55,7 @@ static PyObject *M_IpoCurve_Get (PyObject *self, PyObject *args); /*****************************************************************************/ /* The following string definitions are used for documentation strings. */ /* In Python these will be written to the console when doing a */ -/* Blender.IpoCurve.__doc__ */ +/* Blender.IpoCurve.__doc__ */ /*****************************************************************************/ char M_IpoCurve_doc[] = ""; char M_IpoCurve_New_doc[] =""; @@ -63,7 +63,7 @@ char M_IpoCurve_Get_doc[] =""; /*****************************************************************************/ -/* Python method structure definition for Blender.IpoCurve module: */ +/* Python method structure definition for Blender.IpoCurve module: */ /*****************************************************************************/ struct PyMethodDef M_IpoCurve_methods[] = { @@ -74,7 +74,7 @@ struct PyMethodDef M_IpoCurve_methods[] = { }; /*****************************************************************************/ -/* Python C_IpoCurve structure definition: */ +/* Python C_IpoCurve structure definition: */ /*****************************************************************************/ typedef struct { PyObject_HEAD @@ -82,14 +82,14 @@ typedef struct { } C_IpoCurve; /*****************************************************************************/ -/* Python C_IpoCurve methods declarations: */ +/* Python C_IpoCurve methods declarations: */ /*****************************************************************************/ static PyObject *IpoCurve_getName(C_IpoCurve *self); static PyObject *IpoCurve_Recalc(C_IpoCurve *self); static PyObject *IpoCurve_setName(C_IpoCurve *self, PyObject *args); /*****************************************************************************/ -/* Python C_IpoCurve methods table: */ +/* Python C_IpoCurve methods table: */ /*****************************************************************************/ static PyMethodDef C_IpoCurve_methods[] = { /* name, method, flags, doc */ @@ -103,7 +103,7 @@ static PyMethodDef C_IpoCurve_methods[] = { }; /*****************************************************************************/ -/* Python IpoCurve_Type callback function prototypes: */ +/* Python IpoCurve_Type callback function prototypes: */ /*****************************************************************************/ static void IpoCurveDeAlloc (C_IpoCurve *self); //static int IpoCurvePrint (C_IpoCurve *self, FILE *fp, int flags); @@ -112,7 +112,7 @@ static PyObject *IpoCurveGetAttr (C_IpoCurve *self, char *name); static PyObject *IpoCurveRepr (C_IpoCurve *self); /*****************************************************************************/ -/* Python IpoCurve_Type structure definition: */ +/* Python IpoCurve_Type structure definition: */ /*****************************************************************************/ PyTypeObject IpoCurve_Type = { diff --git a/source/blender/python/api2_2x/modules.h b/source/blender/python/api2_2x/modules.h index 4c86777ea6e..45eca07416b 100644 --- a/source/blender/python/api2_2x/modules.h +++ b/source/blender/python/api2_2x/modules.h @@ -119,8 +119,15 @@ bArmature * Armature_FromPyObject (PyObject *py_obj); int Armature_CheckPyObject (PyObject *py_obj); /* Ipo Data */ +PyObject * BezTriple_CreatePyObject (BezTriple *bzt); +int BezTriple_CheckPyObject (PyObject *pyobj); +BezTriple* BezTriple_FromPyObject (PyObject *pyobj); PyObject * IpoCurve_Init(void); +PyObject * IpoCurve_CreatePyObject (IpoCurve *ipo); +int IpoCurve_CheckPyObject (PyObject *pyobj); +IpoCurve * IpoCurve_FromPyObject (PyObject *pyobj); + PyObject * Ipo_Init (void); PyObject * Ipo_CreatePyObject (struct Ipo *ipo); Ipo * Ipo_FromPyObject (PyObject *py_obj); -- cgit v1.2.3