From d38a335d47f1632000db5172877499ff0184d114 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Sun, 24 Feb 2013 02:32:56 +0000 Subject: Code clean-up and fix for typos in docstrings. --- .../intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp | 3 +-- .../intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp | 2 +- .../intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp | 2 +- .../intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp | 4 ++-- .../intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp | 3 +-- .../python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp | 4 ++-- .../intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp | 6 +++--- .../UnaryFunction1D/UnaryFunction1D_double/BPy_DensityF1D.cpp | 1 - .../UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedXF1D.cpp | 1 - .../python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetXF1D.cpp | 1 - .../UnaryFunction1D_double/BPy_ZDiscontinuityF1D.cpp | 1 - 11 files changed, 11 insertions(+), 17 deletions(-) (limited to 'source/blender/freestyle/intern/python/UnaryFunction1D') diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp index db514270390..c2b945224f1 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp @@ -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); diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp index 03040555f08..ac3f6482069 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp @@ -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); diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp index 7dc51119e37..034ce943ee3 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp @@ -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); diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp index 6d9fa27d342..e2f5e5b69f5 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp @@ -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); diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp index 6f8eb22eb5e..63494c9411d 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp @@ -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); diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp index 12b5cfe6eec..d5261b41d1f 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp @@ -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); diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp index 910de62a665..10c2977f411 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp @@ -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); diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_DensityF1D.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_DensityF1D.cpp index cda064ca389..9b36fcdea1e 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_DensityF1D.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_DensityF1D.cpp @@ -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 ------------------------------*/ diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedXF1D.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedXF1D.cpp index 2faae7d30fe..d40209fcb95 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedXF1D.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedXF1D.cpp @@ -75,7 +75,6 @@ static int GetProjectedXF1D___init__(BPy_GetProjectedXF1D* self, PyObject *args, return 0; } - /*-----------------------BPy_GetProjectedXF1D type definition ------------------------------*/ PyTypeObject GetProjectedXF1D_Type = { diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetXF1D.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetXF1D.cpp index 007312251ae..20884fbe6cd 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetXF1D.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetXF1D.cpp @@ -75,7 +75,6 @@ static int GetXF1D___init__(BPy_GetXF1D* self, PyObject *args, PyObject *kwds) return 0; } - /*-----------------------BPy_GetXF1D type definition ------------------------------*/ PyTypeObject GetXF1D_Type = { diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_ZDiscontinuityF1D.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_ZDiscontinuityF1D.cpp index cf45d37ba5c..278c4da60da 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_ZDiscontinuityF1D.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_ZDiscontinuityF1D.cpp @@ -79,7 +79,6 @@ static int ZDiscontinuityF1D___init__(BPy_ZDiscontinuityF1D* self, PyObject *arg return 0; } - /*-----------------------BPy_ZDiscontinuityF1D type definition ------------------------------*/ PyTypeObject ZDiscontinuityF1D_Type = { -- cgit v1.2.3