Code clean-up and fix for typos in docstrings.

This commit is contained in:
2013-02-24 02:32:56 +00:00
parent 3bd0b89716
commit d38a335d47
52 changed files with 572 additions and 620 deletions

View File

@@ -50,7 +50,6 @@
#include "UnaryFunction1D_double/BPy_LocalAverageDepthF1D.h"
#include "UnaryFunction1D_double/BPy_ZDiscontinuityF1D.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -98,7 +97,7 @@ int UnaryFunction1DDouble_Init(PyObject *module)
return -1;
Py_INCREF(&GetProjectedYF1D_Type);
PyModule_AddObject(module, "GetProjectedYF1D", (PyObject *)&GetProjectedYF1D_Type);
if (PyType_Ready(&GetProjectedZF1D_Type) < 0)
return -1;
Py_INCREF(&GetProjectedZF1D_Type);

View File

@@ -54,7 +54,7 @@ int UnaryFunction1DEdgeNature_Init(PyObject *module)
return -1;
Py_INCREF(&UnaryFunction1DEdgeNature_Type);
PyModule_AddObject(module, "UnaryFunction1DEdgeNature", (PyObject *)&UnaryFunction1DEdgeNature_Type);
if (PyType_Ready(&CurveNatureF1D_Type) < 0)
return -1;
Py_INCREF(&CurveNatureF1D_Type);

View File

@@ -54,7 +54,7 @@ int UnaryFunction1DUnsigned_Init(PyObject *module)
return -1;
Py_INCREF(&UnaryFunction1DUnsigned_Type);
PyModule_AddObject(module, "UnaryFunction1DUnsigned", (PyObject *)&UnaryFunction1DUnsigned_Type);
if (PyType_Ready(&QuantitativeInvisibilityF1D_Type) < 0)
return -1;
Py_INCREF(&QuantitativeInvisibilityF1D_Type);

View File

@@ -55,12 +55,12 @@ int UnaryFunction1DVec2f_Init(PyObject *module)
return -1;
Py_INCREF(&UnaryFunction1DVec2f_Type);
PyModule_AddObject(module, "UnaryFunction1DVec2f", (PyObject *)&UnaryFunction1DVec2f_Type);
if (PyType_Ready(&Normal2DF1D_Type) < 0)
return -1;
Py_INCREF(&Normal2DF1D_Type);
PyModule_AddObject(module, "Normal2DF1D", (PyObject *)&Normal2DF1D_Type);
if (PyType_Ready(&Orientation2DF1D_Type) < 0)
return -1;
Py_INCREF(&Orientation2DF1D_Type);

View File

@@ -54,7 +54,7 @@ int UnaryFunction1DVec3f_Init(PyObject *module)
return -1;
Py_INCREF(&UnaryFunction1DVec3f_Type);
PyModule_AddObject(module, "UnaryFunction1DVec3f", (PyObject *)&UnaryFunction1DVec3f_Type);
if (PyType_Ready(&Orientation3DF1D_Type) < 0)
return -1;
Py_INCREF(&Orientation3DF1D_Type);
@@ -109,7 +109,6 @@ static void UnaryFunction1DVec3f___dealloc__(BPy_UnaryFunction1DVec3f* self)
UnaryFunction1D_Type.tp_dealloc((PyObject*)self);
}
static PyObject * UnaryFunction1DVec3f___repr__(BPy_UnaryFunction1DVec3f* self)
{
return PyUnicode_FromFormat("type: %s - address: %p", Py_TYPE(self)->tp_name, self->uf1D_vec3f);

View File

@@ -56,7 +56,7 @@ int UnaryFunction1DVectorViewShape_Init(PyObject *module)
return -1;
Py_INCREF(&UnaryFunction1DVectorViewShape_Type);
PyModule_AddObject(module, "UnaryFunction1DVectorViewShape", (PyObject *)&UnaryFunction1DVectorViewShape_Type);
if (PyType_Ready(&GetOccludeeF1D_Type) < 0)
return -1;
Py_INCREF(&GetOccludeeF1D_Type);
@@ -66,7 +66,7 @@ int UnaryFunction1DVectorViewShape_Init(PyObject *module)
return -1;
Py_INCREF(&GetOccludersF1D_Type);
PyModule_AddObject(module, "GetOccludersF1D", (PyObject *)&GetOccludersF1D_Type);
if (PyType_Ready(&GetShapeF1D_Type) < 0)
return -1;
Py_INCREF(&GetShapeF1D_Type);

View File

@@ -57,17 +57,17 @@ int UnaryFunction1DVoid_Init(PyObject *module)
return -1;
Py_INCREF(&UnaryFunction1DVoid_Type);
PyModule_AddObject(module, "UnaryFunction1DVoid", (PyObject *)&UnaryFunction1DVoid_Type);
if (PyType_Ready(&ChainingTimeStampF1D_Type) < 0)
return -1;
Py_INCREF(&ChainingTimeStampF1D_Type);
PyModule_AddObject(module, "ChainingTimeStampF1D", (PyObject *)&ChainingTimeStampF1D_Type);
if (PyType_Ready(&IncrementChainingTimeStampF1D_Type) < 0)
return -1;
Py_INCREF(&IncrementChainingTimeStampF1D_Type);
PyModule_AddObject(module, "IncrementChainingTimeStampF1D", (PyObject *)&IncrementChainingTimeStampF1D_Type);
if (PyType_Ready(&TimeStampF1D_Type) < 0)
return -1;
Py_INCREF(&TimeStampF1D_Type);

View File

@@ -87,7 +87,6 @@ static int DensityF1D___init__(BPy_DensityF1D* self, PyObject *args, PyObject *k
IntegrationType t = (obj) ? IntegrationType_from_BPy_IntegrationType(obj) : MEAN;
self->py_uf1D_double.uf1D_double = new Functions1D::DensityF1D(d,t,f);
return 0;
}
/*-----------------------BPy_DensityF1D type definition ------------------------------*/

View File

@@ -75,7 +75,6 @@ static int GetProjectedXF1D___init__(BPy_GetProjectedXF1D* self, PyObject *args,
return 0;
}
/*-----------------------BPy_GetProjectedXF1D type definition ------------------------------*/
PyTypeObject GetProjectedXF1D_Type = {

View File

@@ -75,7 +75,6 @@ static int GetXF1D___init__(BPy_GetXF1D* self, PyObject *args, PyObject *kwds)
return 0;
}
/*-----------------------BPy_GetXF1D type definition ------------------------------*/
PyTypeObject GetXF1D_Type = {

View File

@@ -79,7 +79,6 @@ static int ZDiscontinuityF1D___init__(BPy_ZDiscontinuityF1D* self, PyObject *arg
return 0;
}
/*-----------------------BPy_ZDiscontinuityF1D type definition ------------------------------*/
PyTypeObject ZDiscontinuityF1D_Type = {