* 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.
This commit is contained in:
2003-07-20 18:06:06 +00:00
parent 5a7db88f59
commit 2ccf7ffb84
4 changed files with 17 additions and 10 deletions

View File

@@ -30,7 +30,7 @@
*/
#include "Ipo.h"
#include"Ipocurve.c"
#include "Ipocurve.h"
/*****************************************************************************/
/* Function: M_Ipo_New */
/* Python equivalent: Blender.Ipo.New */

View File

@@ -30,7 +30,7 @@
*/
#include "Ipocurve.h"
#include "BezTriple.c"
#include "BezTriple.h"
/*****************************************************************************/
/* Function: M_IpoCurve_New */
/* Python equivalent: Blender.IpoCurve.New */

View File

@@ -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 =
{

View File

@@ -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);