* Fix compilation errors on Windows hopefully. Implemented the suggestion done
by Aphex - thanks. * Added the doc strings to the Object module. * Added more functionality to the Object module.
This commit is contained in:
@@ -83,7 +83,7 @@ static PySequenceMethods rgbTupleAsSequence =
|
||||
/*****************************************************************************/
|
||||
PyTypeObject rgbTuple_Type =
|
||||
{
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /* ob_size */
|
||||
"rgbTuple", /* tp_name */
|
||||
sizeof (C_rgbTuple), /* tp_basicsize */
|
||||
@@ -115,6 +115,8 @@ PyObject *rgbTuple_New(float *rgb[3])
|
||||
|
||||
printf ("In rgbTuple_New()\n");
|
||||
|
||||
rgbTuple_Type.ob_type = &PyType_Type;
|
||||
|
||||
rgbTuple = (C_rgbTuple *)PyObject_NEW(C_rgbTuple, &rgbTuple_Type);
|
||||
|
||||
if (rgbTuple == NULL)
|
||||
|
||||
Reference in New Issue
Block a user