Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2004-09-26 00:30:40 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-09-26 00:30:40 +0400
commita509b8adc9b8952cdb395c69406e821f57a9a6c7 (patch)
tree7c0e3c7b81007acc6b3e268e59a6af5fcb4bd93f /source/blender/python/api2_2x/vector.h
parentbd371ddb9ff947d4e598ad04af9402d89fa80d5e (diff)
Another round in the Great BPy Cleanup:
Run everything thru indent to cleanup spaces vs tabs. Clean up some of the comments by hand. BGL.c was not touched due to all that macro wackyness. There are no functional changes to the code. Pre-indent versions of source are tagged with tag bpy-cleanup-20040925 , just in case.
Diffstat (limited to 'source/blender/python/api2_2x/vector.h')
-rw-r--r--source/blender/python/api2_2x/vector.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/source/blender/python/api2_2x/vector.h b/source/blender/python/api2_2x/vector.h
index 733602f2f12..cf07b5ce78e 100644
--- a/source/blender/python/api2_2x/vector.h
+++ b/source/blender/python/api2_2x/vector.h
@@ -50,24 +50,22 @@
#define VectorObject_Check(v) ((v)->ob_type == &vector_Type)
typedef struct {
- PyObject_VAR_HEAD
- float * vec;
+ PyObject_VAR_HEAD float *vec;
int size;
int flag;
- //0 - no coercion
- //1 - coerced from int
- //2 - coerced from float
- int delete_pymem; /* do we need to delete the memory vec points at? */
+ //0 - no coercion
+ //1 - coerced from int
+ //2 - coerced from float
+ int delete_pymem; /* flag to delete the memory vec points at */
} VectorObject;
//prototypes
-PyObject *newVectorObject(float *vec, int size);
-PyObject *Vector_Zero(VectorObject *self);
-PyObject *Vector_Normalize(VectorObject *self);
-PyObject *Vector_Negate(VectorObject *self);
-PyObject *Vector_Resize2D(VectorObject *self);
-PyObject *Vector_Resize3D(VectorObject *self);
-PyObject *Vector_Resize4D(VectorObject *self);
-
-#endif /* EXPP_vector_h */
+PyObject *newVectorObject( float *vec, int size );
+PyObject *Vector_Zero( VectorObject * self );
+PyObject *Vector_Normalize( VectorObject * self );
+PyObject *Vector_Negate( VectorObject * self );
+PyObject *Vector_Resize2D( VectorObject * self );
+PyObject *Vector_Resize3D( VectorObject * self );
+PyObject *Vector_Resize4D( VectorObject * self );
+#endif /* EXPP_vector_h */