* 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:
@@ -60,7 +60,7 @@ static PyMappingMethods constantAsMapping =
|
||||
/*****************************************************************************/
|
||||
PyTypeObject constant_Type =
|
||||
{
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /* ob_size */
|
||||
"constant", /* tp_name */
|
||||
sizeof (C_constant), /* tp_basicsize */
|
||||
@@ -97,6 +97,8 @@ static PyObject *new_const(void)
|
||||
{ /* this is the static one */
|
||||
C_constant *constant;
|
||||
|
||||
constant_Type.ob_type = &PyType_Type;
|
||||
|
||||
printf ("In constant_New()\n");
|
||||
|
||||
constant = (C_constant *)PyObject_NEW(C_constant, &constant_Type);
|
||||
|
Reference in New Issue
Block a user