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>2006-04-16 19:28:50 +0400
committerStephen Swaney <sswaney@centurytel.net>2006-04-16 19:28:50 +0400
commit342bb99a19579531dcc4b5dbc1d4b3862ba91f04 (patch)
tree57db6ec8a4d079f3278d9792c90ec8177093ef34 /source/blender/python/api2_2x/Armature.c
parenta204ccd2877a4c8eddffdba71f5f9fa0c654935b (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/Armature.c')
-rw-r--r--source/blender/python/api2_2x/Armature.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c
index eb5aba7a5ae..0b3672ebb29 100644
--- a/source/blender/python/api2_2x/Armature.c
+++ b/source/blender/python/api2_2x/Armature.c
@@ -45,7 +45,6 @@
#include "BIF_editarmature.h"
//------------------EXTERNAL PROTOTYPES--------------------
-extern void free_editArmature(void);
extern void make_boneList(ListBase* list, ListBase *bones, EditBone *parent);
extern void editbones_to_armature (ListBase *list, Object *ob);
@@ -67,7 +66,7 @@ static const char sModuleBadArgs[] = "Blender.Armature - Bad Arguments: ";
//------------------METHOD IMPLEMENTATIONS-----------------------------
//------------------------Armature.bones.items()
//Returns a list of key:value pairs like dict.items()
-PyObject* BonesDict_items(BPy_BonesDict *self)
+static PyObject* BonesDict_items(BPy_BonesDict *self)
{
if (self->editmode_flag){
return PyDict_Items(self->editbonesMap);
@@ -77,7 +76,7 @@ PyObject* BonesDict_items(BPy_BonesDict *self)
}
//------------------------Armature.bones.keys()
//Returns a list of keys like dict.keys()
-PyObject* BonesDict_keys(BPy_BonesDict *self)
+static PyObject* BonesDict_keys(BPy_BonesDict *self)
{
if (self->editmode_flag){
return PyDict_Keys(self->editbonesMap);
@@ -87,7 +86,7 @@ PyObject* BonesDict_keys(BPy_BonesDict *self)
}
//------------------------Armature.bones.values()
//Returns a list of values like dict.values()
-PyObject* BonesDict_values(BPy_BonesDict *self)
+static PyObject* BonesDict_values(BPy_BonesDict *self)
{
if (self->editmode_flag){
return PyDict_Values(self->editbonesMap);
@@ -205,7 +204,7 @@ static void BonesDict_dealloc(BPy_BonesDict * self)
}
//------------------------mp_length
//This gets the size of the dictionary
-int BonesDict_len(BPy_BonesDict *self)
+static int BonesDict_len(BPy_BonesDict *self)
{
if (self->editmode_flag){
return BLI_countlist(&self->editbones);
@@ -215,7 +214,7 @@ int BonesDict_len(BPy_BonesDict *self)
}
//-----------------------mp_subscript
//This defines getting a bone from the dictionary - x = Bones['key']
-PyObject *BonesDict_GetItem(BPy_BonesDict *self, PyObject* key)
+static PyObject *BonesDict_GetItem(BPy_BonesDict *self, PyObject* key)
{
PyObject *value = NULL;
@@ -241,7 +240,7 @@ PyObject *BonesDict_GetItem(BPy_BonesDict *self, PyObject* key)
}
//-----------------------mp_ass_subscript
//This does dict assignment - Bones['key'] = value
-int BonesDict_SetItem(BPy_BonesDict *self, PyObject *key, PyObject *value)
+static int BonesDict_SetItem(BPy_BonesDict *self, PyObject *key, PyObject *value)
{
BPy_EditBone *editbone_for_deletion;
struct EditBone *editbone = NULL;
@@ -974,7 +973,7 @@ static PyGetSetDef BPy_Armature_getset[] = {
"Adds temporal IK chains while grabbing bones", NULL},
{"layers", (getter)Armature_getLayers, (setter)Armature_setLayers,
"List of layers for the armature", NULL},
- {NULL}
+ {NULL, NULL, NULL, NULL, NULL}
};
//------------------------tp_new
//This methods creates a new object (note it does not initialize it - only the building)
@@ -1222,7 +1221,6 @@ AttributeError:
}
//-------------------MODULE METHODS DEFINITION-----------------------------
-static PyObject *M_Armature_Get( PyObject * self, PyObject * args );
static char M_Armature_Get_doc[] = "(name) - return the armature with the name 'name', \
returns None if not found.\n If 'name' is not specified, it returns a list of all \