* Removed datablock.[ch]

* Object.Get("") should work.
* Many variables from module Object are implemented.
* Updated build environment to generate more warnings (-Wall)

Michel
This commit is contained in:
2003-03-15 19:14:16 +00:00
parent a0c1e2bd3d
commit b6b9c648bc
8 changed files with 485 additions and 397 deletions

View File

@@ -33,6 +33,7 @@
#include <string.h>
#include <Python.h>
#include <DNA_ID.h>
#include <DNA_scriptlink_types.h>
int StringEqual (char * string1, char * string2)
@@ -40,10 +41,15 @@ int StringEqual (char * string1, char * string2)
return (strcmp(string1, string2)==0);
}
char * GetIdName (ID *id)
{
return ((id->name)+2);
}
PyObject * PythonReturnErrorObject (PyObject * type, char * error_msg)
{
PyErr_SetString (type, error_msg);
return NULL;
return (NULL);
}
PyObject * PythonIncRef (PyObject *object)