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/Pose.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/Pose.c')
-rw-r--r-- | source/blender/python/api2_2x/Pose.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c index 8ac2ad56aeb..1fef31ed796 100644 --- a/source/blender/python/api2_2x/Pose.c +++ b/source/blender/python/api2_2x/Pose.c @@ -72,19 +72,19 @@ static const char sPoseBonesDictError[] = "PoseBone - Error: "; //------------------METHOD IMPLEMENTATIONS----------------------------- //------------------------Pose.bones.items() //Returns a list of key:value pairs like dict.items() -PyObject* PoseBonesDict_items(BPy_PoseBonesDict *self) +static PyObject* PoseBonesDict_items(BPy_PoseBonesDict *self) { return PyDict_Items(self->bonesMap); } //------------------------Pose.bones.keys() //Returns a list of keys like dict.keys() -PyObject* PoseBonesDict_keys(BPy_PoseBonesDict *self) +static PyObject* PoseBonesDict_keys(BPy_PoseBonesDict *self) { return PyDict_Keys(self->bonesMap); } //------------------------Armature.bones.values() //Returns a list of values like dict.values() -PyObject* PoseBonesDict_values(BPy_PoseBonesDict *self) +static PyObject* PoseBonesDict_values(BPy_PoseBonesDict *self) { return PyDict_Values(self->bonesMap); } @@ -165,13 +165,13 @@ static void PoseBonesDict_dealloc(BPy_PoseBonesDict * self) } //------------------------mp_length //This gets the size of the dictionary -int PoseBonesDict_len(BPy_PoseBonesDict *self) +static int PoseBonesDict_len(BPy_PoseBonesDict *self) { return BLI_countlist(self->bones); } //-----------------------mp_subscript //This defines getting a bone from the dictionary - x = Bones['key'] -PyObject *PoseBonesDict_GetItem(BPy_PoseBonesDict *self, PyObject* key) +static PyObject *PoseBonesDict_GetItem(BPy_PoseBonesDict *self, PyObject* key) { PyObject *value = NULL; |