Another step in the Big Bpy Cleanup.

- move static declarations and data definitions out of headers.
  the BGL module still need cleaning.

- move declarations out of modules.h and into appropriate .h files.
  modules.h still exists as a container for the few modules that
  need to #include almost everything.

- all files now have a $Id tag and have been formatted by indent

there are no changes to executable code.

pre-commit versions are tagged with bpy-cleanup-pre-20041007
for the sake of paranoia.
This commit is contained in:
Stephen Swaney
2004-10-07 19:25:40 +00:00
parent 14ae3362c5
commit 0fdc0ce297
65 changed files with 2315 additions and 2052 deletions

View File

@@ -32,6 +32,35 @@
#ifndef EXPP_NURB_H
#define EXPP_NURB_H
#include <DNA_curve_types.h>
extern PyTypeObject CurNurb_Type;
#define BPy_CurNurb_Check(v) ((v)->ob_type == &CurNurb_Type) /* for type checking */
/* Python BPy_CurNurb structure definition */
typedef struct {
PyObject_HEAD /* required py macro */
Nurb * nurb; /* pointer to Blender data */
/* iterator stuff */
/* internal ptrs to point data. do not free */
BPoint *bp;
BezTriple *bezt;
int atEnd; /* iter exhausted flag */
int nextPoint;
} BPy_CurNurb;
/*
* prototypes
*/
PyObject *CurNurb_Init( void );
PyObject *CurNurb_CreatePyObject( Nurb * bzt );
int CurNurb_CheckPyObject( PyObject * pyobj );
Nurb *CurNurb_FromPyObject( PyObject * pyobj );
PyObject *CurNurb_getPoint( BPy_CurNurb * self, int index );
PyObject *CurNurb_pointAtIndex( Nurb * nurb, int index );