diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2006-04-16 19:28:50 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2006-04-16 19:28:50 +0400 |
commit | 342bb99a19579531dcc4b5dbc1d4b3862ba91f04 (patch) | |
tree | 57db6ec8a4d079f3278d9792c90ec8177093ef34 /source/blender/python/api2_2x/Bone.c | |
parent | a204ccd2877a4c8eddffdba71f5f9fa0c654935b (diff) |
a little spring cleaning to remove some compiler warnings for
implicit declarations, redundant redeclarations, missing initializers,
nested externs and other cruft.
Cleaned up includes and moved extern _Type decls from Types.h into
Types.c since that is the only place where they are needed now.
Did not touch Ipo.[ch] since work is on-going there.
Diffstat (limited to 'source/blender/python/api2_2x/Bone.c')
-rw-r--r-- | source/blender/python/api2_2x/Bone.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c index c7f65961c71..c63ad3d016a 100644 --- a/source/blender/python/api2_2x/Bone.c +++ b/source/blender/python/api2_2x/Bone.c @@ -29,6 +29,8 @@ */ #include "Bone.h" +#include "vector.h" +#include "matrix.h" #include "BLI_blenlib.h" #include "BLI_arithb.h" @@ -42,9 +44,6 @@ #include "DNA_object_types.h" //1 #include "BIF_editarmature.h" //2 -//------------------UNDECLARED EXTERNAL PROTOTYPES-------------------- -extern void mat3_to_vec_roll(float mat[][3], float *vec, float *roll); - //------------------------ERROR CODES--------------------------------- //This is here just to make me happy and to have more consistant error strings :) static const char sEditBoneError[] = "EditBone - Error: "; @@ -55,7 +54,7 @@ static const char sBoneError[] = "Bone - Error: "; //----------------------(internal) //gets the bone->roll (which is a localspace roll) and puts it in parentspace //(which is the 'roll' value the user sees) -double boneRoll_ToArmatureSpace(struct Bone *bone) +static double boneRoll_ToArmatureSpace(struct Bone *bone) { float head[3], tail[3], delta[3]; float premat[3][3], postmat[3][3]; @@ -85,7 +84,7 @@ double boneRoll_ToArmatureSpace(struct Bone *bone) //------------------METHOD IMPLEMENTATIONS----------------------------- //-------------------------EditBone.hasParent() -PyObject *EditBone_hasParent(BPy_EditBone *self) +static PyObject *EditBone_hasParent(BPy_EditBone *self) { if (self->editbone){ if (self->editbone->parent) @@ -101,7 +100,7 @@ AttributeError: sEditBoneError, ".hasParent: ", "EditBone must be added to the armature first"); } //-------------------------EditBone.clearParent() -PyObject *EditBone_clearParent(BPy_EditBone *self) +static PyObject *EditBone_clearParent(BPy_EditBone *self) { if (self->editbone){ if (self->editbone->parent) @@ -819,7 +818,7 @@ RuntimeError: sBoneError, "Internal error trying to wrap blender bones!"); } //-------------------------Bone.hasParent() -PyObject *Bone_hasParent(BPy_Bone *self) +static PyObject *Bone_hasParent(BPy_Bone *self) { if (self->bone->parent) return EXPP_incr_ret(Py_True); @@ -827,7 +826,7 @@ PyObject *Bone_hasParent(BPy_Bone *self) return EXPP_incr_ret(Py_False); } //-------------------------Bone.hasChildren() -PyObject *Bone_hasChildren(BPy_Bone *self) +static PyObject *Bone_hasChildren(BPy_Bone *self) { if (self->bone->childbase.first) return EXPP_incr_ret(Py_True); @@ -835,7 +834,7 @@ PyObject *Bone_hasChildren(BPy_Bone *self) return EXPP_incr_ret(Py_False); } //-------------------------Bone.getAllChildren() -PyObject *Bone_getAllChildren(BPy_Bone *self) +static PyObject *Bone_getAllChildren(BPy_Bone *self) { PyObject *list = NULL; |