* Implemented more of the Object module.

* Keep a Python Object reference for parent and track objects when available.
This commit is contained in:
2003-05-21 19:54:19 +00:00
parent 64f0bdd954
commit 000f92e204
2 changed files with 155 additions and 14 deletions

View File

@@ -87,6 +87,8 @@ The active object is the first in the list, if visible";
/*****************************************************************************/
/* Python C_Object structure definition. */
/*****************************************************************************/
struct C_Object;
typedef struct {
PyObject_HEAD
struct Object * object;
@@ -94,6 +96,14 @@ typedef struct {
/* points to the data. This only is set when there's a valid PyObject */
/* that points to the linked data. */
PyObject * data;
/* points to the parent object. This is only set when there's a valid */
/* PyObject (already created at some point). */
struct C_Object * parent;
/* points to the object that is tracking this object. This is only set */
/* when there's a valid PyObject (already created at some point). */
struct C_Object * track;
} C_Object;
/*****************************************************************************/