code cleanup: make local game engine functions static
authorCampbell Barton <ideasman42@gmail.com>
Sun, 16 Sep 2012 00:22:55 +0000 (00:22 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 16 Sep 2012 00:22:55 +0000 (00:22 +0000)
19 files changed:
source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
source/gameengine/Converter/BL_BlenderDataConversion.cpp
source/gameengine/Converter/BL_SkinDeformer.cpp
source/gameengine/Expressions/EXP_C-Api.cpp
source/gameengine/Expressions/EXP_C-Api.h
source/gameengine/Expressions/ListValue.cpp
source/gameengine/Ketsji/KX_FontObject.cpp
source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
source/gameengine/Ketsji/KX_PythonInitTypes.cpp
source/gameengine/Ketsji/KX_PythonSeq.cpp
source/gameengine/Ketsji/KX_Scene.cpp
source/gameengine/Ketsji/KX_TrackToActuator.cpp
source/gameengine/VideoTexture/ImageBase.cpp
source/gameengine/VideoTexture/ImageMix.cpp
source/gameengine/VideoTexture/ImageRender.cpp
source/gameengine/VideoTexture/Texture.cpp
source/gameengine/VideoTexture/VideoFFmpeg.cpp
source/gameengine/VideoTexture/blendVideoTex.cpp

index c819407c81c6da5c772a06ab446ef972c019e9d0..62bfc31b96aa285f4d6a4a3656efe71802a77a05 100644 (file)
@@ -125,8 +125,8 @@ static BlendFileData *load_game_data(char *filename)
        return bfd;
 }
 
-int BL_KetsjiNextFrame(KX_KetsjiEngine *ketsjiengine, bContext *C, wmWindow *win, Scene *scene, ARegion *ar,
-                       KX_BlenderKeyboardDevice* keyboarddevice, KX_BlenderMouseDevice* mousedevice, int draw_letterbox)
+static int BL_KetsjiNextFrame(KX_KetsjiEngine *ketsjiengine, bContext *C, wmWindow *win, Scene *scene, ARegion *ar,
+                              KX_BlenderKeyboardDevice* keyboarddevice, KX_BlenderMouseDevice* mousedevice, int draw_letterbox)
 {
        int exitrequested;
 
@@ -198,7 +198,7 @@ struct BL_KetsjiNextFrameState {
        int draw_letterbox;
 } ketsjinextframestate;
 
-int BL_KetsjiPyNextFrame(void *state0) 
+static int BL_KetsjiPyNextFrame(void *state0)
 {
        BL_KetsjiNextFrameState *state = (BL_KetsjiNextFrameState *) state0;
        return BL_KetsjiNextFrame(
index 19a84acf0270a74c91939affc93e74b6d8c1e792..98a1aa810297dcd5a9cb15bc75a91ac0d4ed9f45 100644 (file)
@@ -91,7 +91,7 @@ void BL_SwapBuffers(wmWindow *win)
        wm_window_swap_buffers(win);
 }
 
-void DisableForText()
+static void DisableForText()
 {
        glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); /* needed for texture fonts otherwise they render as wireframe */
 
index 84ad12477d0bab069fe5057015025828fbd5e620..4a8541cd3101d3a0cdc0dd40aa7e49b0483a58d1 100644 (file)
@@ -491,7 +491,7 @@ typedef struct MTF_localLayer {
 } MTF_localLayer;
 
 // ------------------------------------
-bool ConvertMaterial(
+static bool ConvertMaterial(
        BL_Material *material,
        Material *mat, 
        MTFace* tface,  
@@ -1535,14 +1535,14 @@ static void my_get_local_bounds(Object *ob, DerivedMesh *dm, float *center, floa
 //////////////////////////////////////////////////////
 
 
-void BL_CreateGraphicObjectNew(KX_GameObject* gameobj,
-                                                          const MT_Point3& localAabbMin,
-                                                          const MT_Point3& localAabbMax,
-                                                          KX_Scene* kxscene,
-                                                          bool isActive,
-                                                          e_PhysicsEngine physics_engine)
+static void BL_CreateGraphicObjectNew(KX_GameObject* gameobj,
+                                      const MT_Point3& localAabbMin,
+                                      const MT_Point3& localAabbMax,
+                                      KX_Scene* kxscene,
+                                      bool isActive,
+                                      e_PhysicsEngine physics_engine)
 {
-       if (gameobj->GetMeshCount() > 0) 
+       if (gameobj->GetMeshCount() > 0)
        {
                switch (physics_engine)
                {
@@ -1574,16 +1574,16 @@ void BL_CreateGraphicObjectNew(KX_GameObject* gameobj,
        }
 }
 
-void BL_CreatePhysicsObjectNew(KX_GameObject* gameobj,
-                                                struct Object* blenderobject,
-                                                RAS_MeshObject* meshobj,
-                                                KX_Scene* kxscene,
-                                                int activeLayerBitInfo,
-                                                e_PhysicsEngine        physics_engine,
-                                                KX_BlenderSceneConverter *converter,
-                                                bool processCompoundChildren
-                                                )
-                                       
+static void BL_CreatePhysicsObjectNew(KX_GameObject* gameobj,
+                                      struct Object* blenderobject,
+                                      RAS_MeshObject* meshobj,
+                                      KX_Scene* kxscene,
+                                      int activeLayerBitInfo,
+                                      e_PhysicsEngine  physics_engine,
+                                      KX_BlenderSceneConverter *converter,
+                                      bool processCompoundChildren
+                                      )
+
 {
        //SYS_SystemHandle syshandle = SYS_GetSystem(); /*unused*/
        //int userigidbody = SYS_GetCommandLineInt(syshandle,"norigidbody",0);
@@ -2086,7 +2086,7 @@ struct parentChildLink {
 #include "DNA_constraint_types.h"
 //XXX #include "BIF_editconstraint.h"
 
-bPoseChannel *get_active_posechannel2 (Object *ob)
+static bPoseChannel *get_active_posechannel2 (Object *ob)
 {
        bArmature *arm= (bArmature*)ob->data;
        bPoseChannel *pchan;
@@ -2100,7 +2100,7 @@ bPoseChannel *get_active_posechannel2 (Object *ob)
        return NULL;
 }
 
-ListBase *get_active_constraints2(Object *ob)
+static ListBase *get_active_constraints2(Object *ob)
 {
        if (!ob)
                return NULL;
@@ -2120,7 +2120,7 @@ ListBase *get_active_constraints2(Object *ob)
 }
 
 
-void RBJconstraints(Object *ob)//not used
+static void RBJconstraints(Object *ob)//not used
 {
        ListBase *conlist;
        bConstraint *curcon;
@@ -2141,7 +2141,7 @@ void RBJconstraints(Object *ob)//not used
 #include "KX_IPhysicsController.h"
 #include "PHY_DynamicTypes.h"
 
-KX_IPhysicsController* getPhId(CListValue* sumolist,STR_String busc) {//not used
+static KX_IPhysicsController* getPhId(CListValue* sumolist,STR_String busc) {//not used
 
        for (int j=0;j<sumolist->GetCount();j++)
        {
@@ -2154,7 +2154,7 @@ KX_IPhysicsController* getPhId(CListValue* sumolist,STR_String busc) {//not used
 
 }
 
-KX_GameObject* getGameOb(STR_String busc,CListValue* sumolist)
+static KX_GameObject* getGameOb(STR_String busc,CListValue* sumolist)
 {
 
        for (int j=0;j<sumolist->GetCount();j++)
index 47cba81798db66e7ed9e6637205917b24b1fdeda..c508623bdb6a6448db60065d9f4c89e6b74f6971 100644 (file)
@@ -67,7 +67,7 @@ extern "C"{
 #define __NLA_DEFNORMALS
 //#undef __NLA_DEFNORMALS
 
-short get_deformflags(struct Object *bmeshobj)
+static short get_deformflags(struct Object *bmeshobj)
 {
        short flags = ARM_DEF_VGROUP;
 
@@ -85,9 +85,9 @@ short get_deformflags(struct Object *bmeshobj)
 }
 
 BL_SkinDeformer::BL_SkinDeformer(BL_DeformableGameObject *gameobj,
-                                                               struct Object *bmeshobj, 
-                                                               class RAS_MeshObject *mesh,
-                                                               BL_ArmatureObject* arma)
+                                 struct Object *bmeshobj,
+                                 class RAS_MeshObject *mesh,
+                                 BL_ArmatureObject* arma)
                                                        :       //
                                                        BL_MeshDeformer(gameobj, bmeshobj, mesh),
                                                        m_armobj(arma),
index 763d115a8403698da45ac2573b14d17c824e4a9c..2822fd8f6de6745daf0be0f6104b24f9b18f348a 100644 (file)
@@ -102,8 +102,8 @@ int EXP_IsValid(EXP_ValueHandle inval)
 
 /* assign property 'propval' to 'destinationval' */
 void EXP_SetProperty(EXP_ValueHandle destinationval,
-                                        const char* propname,
-                                        EXP_ValueHandle propval)
+                     const char *propname,
+                     EXP_ValueHandle propval)
 {
        ((CValue*) destinationval)->SetProperty(propname,(CValue*)propval);
 }
index 6be1e57481c01c70a9e30f253aad1c4e4b7cf0dc..4d43695f9b9e6a8c5c3fc9946f94d16286a44f8c 100644 (file)
@@ -53,7 +53,7 @@ extern void                                   EXP_ReleaseValue(EXP_ValueHandle);
 extern int                                     EXP_IsValid(EXP_ValueHandle);
 
 /* assign property 'propval' to 'destinationval' */
-extern void                                    EXP_SetProperty(EXP_ValueHandle propval,EXP_ValueHandle destinationval);
+extern void                                    EXP_SetProperty(EXP_ValueHandle destinationval, const char *propname, EXP_ValueHandle propval);
 
 /* returns NULL if property doesn't exist */
 extern EXP_ValueHandle         EXP_GetProperty(EXP_ValueHandle inval,const char* propname);
index f43625a7821fbfda886b27960b1d39dc88d71c7c..ef82b9ed8cf58dcb6c202c9f2b9e38658ac30eb4 100644 (file)
@@ -278,7 +278,7 @@ bool CListValue::IsModified()
 /* Python interface ---------------------------------------------------- */
 /* --------------------------------------------------------------------- */
 
-Py_ssize_t listvalue_bufferlen(PyObject* self)
+static Py_ssize_t listvalue_bufferlen(PyObject* self)
 {
        CListValue *list= static_cast<CListValue *>(BGE_PROXY_REF(self));
        if (list==NULL)
@@ -287,7 +287,7 @@ Py_ssize_t listvalue_bufferlen(PyObject* self)
        return (Py_ssize_t)list->GetCount();
 }
 
-PyObject* listvalue_buffer_item(PyObject* self, Py_ssize_t index)
+static PyObject* listvalue_buffer_item(PyObject* self, Py_ssize_t index)
 {
        CListValue *list= static_cast<CListValue *>(BGE_PROXY_REF(self));
        CValue *cval;
@@ -316,7 +316,7 @@ PyObject* listvalue_buffer_item(PyObject* self, Py_ssize_t index)
                return cval->GetProxy();
 }
 
-PyObject* listvalue_mapping_subscript(PyObject* self, PyObject* pyindex)
+static PyObject* listvalue_mapping_subscript(PyObject* self, PyObject* pyindex)
 {
        CListValue *list= static_cast<CListValue *>(BGE_PROXY_REF(self));
        if (list==NULL) {
@@ -348,7 +348,7 @@ PyObject* listvalue_mapping_subscript(PyObject* self, PyObject* pyindex)
 
 
 /* just slice it into a python list... */
-PyObject* listvalue_buffer_slice(PyObject* self,Py_ssize_t ilow, Py_ssize_t ihigh)
+static PyObject* listvalue_buffer_slice(PyObject* self,Py_ssize_t ilow, Py_ssize_t ihigh)
 {
        CListValue *list= static_cast<CListValue *>(BGE_PROXY_REF(self));
        if (list==NULL) {
index 931eac7a974c97d1d0c15b2f16974ed6d7e47ff3..78134afdab0b5a826857f82df0435ad2ccccb9c1 100644 (file)
@@ -52,7 +52,7 @@ extern "C" {
 /* proptotype */
 int GetFontId(VFont *font);
 
-std::vector<STR_String> split_string(STR_String str)
+static std::vector<STR_String> split_string(STR_String str)
 {
        std::vector<STR_String> text = std::vector<STR_String>();
 
@@ -73,10 +73,10 @@ std::vector<STR_String> split_string(STR_String str)
        return text;
 }
 
-KX_FontObject::KX_FontObject(  void* sgReplicationInfo,
-                                                               SG_Callbacks callbacks,
-                                                               RAS_IRenderTools* rendertools,
-                                                               Object *ob):
+KX_FontObject::KX_FontObject(void* sgReplicationInfo,
+                             SG_Callbacks callbacks,
+                             RAS_IRenderTools* rendertools,
+                             Object *ob):
        KX_GameObject(sgReplicationInfo, callbacks),
        m_object(ob),
        m_dpi(72),
index 556d451cf66d24a89b5f56f4760b715afe3f7728..6fb315d51cb9177b0555d97a94d0d27daf6a58be 100644 (file)
@@ -716,10 +716,11 @@ PyObject* initPythonConstraintBinding()
        return d;
 }
 
-
-void   KX_RemovePythonConstraintBinding()
+#if 0
+static void KX_RemovePythonConstraintBinding()
 {
 }
+#endif
 
 void   PHY_SetActiveEnvironment(class  PHY_IPhysicsEnvironment* env)
 {
index 3033c534e846a40c2a260bfe5201662076dff517..4c5e10f2a04534e1f3694ba0201d5812205e2475 100644 (file)
@@ -164,9 +164,9 @@ static void PyType_Ready_ADD(PyObject *dict, PyTypeObject *tp, PyAttributeDef *a
 #define PyType_Ready_Attr(d, n, i)   PyType_Ready_ADD(d, &n::Type, n::Attributes, NULL, i)
 #define PyType_Ready_AttrPtr(d, n, i)   PyType_Ready_ADD(d, &n::Type, n::Attributes, n::AttributesPtr, i)
 
-void initPyTypes(void)
+static void initPyTypes(void)
 {
-       
+
 /*
  * initPyObjectPlusType(BL_ActionActuator::Parents);
  * .....
index 6eadc0cbef371a5a4819dc66dd17ecab227db827..5d082c8394a098416d20ba022ba501c459f4a68b 100644 (file)
@@ -314,7 +314,7 @@ static int KX_PythonSeq_contains(PyObject *self, PyObject *key)
 }
 
 /* Matches python dict.get(key, [default]) */
-PyObject* KX_PythonSeq_get(PyObject * self, PyObject *args)
+static PyObject* KX_PythonSeq_get(PyObject * self, PyObject *args)
 {
        char *key;
        PyObject* def = Py_None;
index c1afed82b022736ab16db63fb973a7f189b846ea..f77cb535eed7b00c3a4c8b161daf73dc63e6f00d 100644 (file)
@@ -98,7 +98,7 @@
 
 #include <stdio.h>
 
-void* KX_SceneReplicationFunc(SG_IObject* node,void* gameobj,void* scene)
+static void *KX_SceneReplicationFunc(SG_IObject* node,void* gameobj,void* scene)
 {
        KX_GameObject* replica = ((KX_Scene*)scene)->AddNodeReplicaObject(node,(KX_GameObject*)gameobj);
 
@@ -108,7 +108,7 @@ void* KX_SceneReplicationFunc(SG_IObject* node,void* gameobj,void* scene)
        return (void*)replica;
 }
 
-void* KX_SceneDestructionFunc(SG_IObject* node,void* gameobj,void* scene)
+static void *KX_SceneDestructionFunc(SG_IObject* node,void* gameobj,void* scene)
 {
        ((KX_Scene*)scene)->RemoveNodeDestructObject(node,(KX_GameObject*)gameobj);
 
index 99732130f8336ed4c4639a0f9b7c9ced1cbce9c4..172741595456d4ada84b23c3d4a31b9a276957ed 100644 (file)
@@ -90,7 +90,7 @@ KX_TrackToActuator::KX_TrackToActuator(SCA_IObject *gameobj,
 
 
 /* old function from Blender */
-MT_Matrix3x3 EulToMat3(float *eul)
+static MT_Matrix3x3 EulToMat3(float eul[3])
 {
        MT_Matrix3x3 mat;
        float ci, cj, ch, si, sj, sh, cc, cs, sc, ss;
@@ -122,7 +122,7 @@ MT_Matrix3x3 EulToMat3(float *eul)
 
 
 /* old function from Blender */
-void Mat3ToEulOld(MT_Matrix3x3 mat, float eul[3])
+static void Mat3ToEulOld(MT_Matrix3x3 mat, float eul[3])
 {
        const float cy = sqrtf(mat[0][0] * mat[0][0] + mat[0][1] * mat[0][1]);
 
@@ -141,7 +141,7 @@ void Mat3ToEulOld(MT_Matrix3x3 mat, float eul[3])
 
 
 /* old function from Blender */
-void compatible_eulFast(float *eul, float *oldrot)
+static void compatible_eulFast(float *eul, float *oldrot)
 {
        float dx, dy, dz;
        
@@ -164,7 +164,7 @@ void compatible_eulFast(float *eul, float *oldrot)
 
 
 
-MT_Matrix3x3 matrix3x3_interpol(MT_Matrix3x3 oldmat, MT_Matrix3x3 mat, int m_time)
+static MT_Matrix3x3 matrix3x3_interpol(MT_Matrix3x3 oldmat, MT_Matrix3x3 mat, int m_time)
 {
        float eul[3], oldeul[3];        
 
index 54c1939ce6b79117c0b7cda2ac6d2378fb7631eb..9333e0184ec00651309cff4c8426a939af4b4d28 100644 (file)
@@ -644,7 +644,7 @@ PyObject * Image_valid(PyImage * self, void * closure)
        }
 }
 
-int Image_getbuffer(PyImage *self, Py_buffer *view, int flags)
+static int Image_getbuffer(PyImage *self, Py_buffer *view, int flags)
 {
        unsigned int * image;
        int ret;
@@ -691,7 +691,7 @@ error:
        
 }
 
-void Image_releaseBuffer(PyImage *self, Py_buffer *buffer)
+static void Image_releaseBuffer(PyImage *self, Py_buffer *buffer)
 {
        self->m_image->m_exports--;
 }
index cd8c6683a7f72a4e6bbc9c5a06ebc1e14f71dee3..3907e6c68837ecc58dc4a045ae4eb176b6fe0bbe 100644 (file)
@@ -108,7 +108,7 @@ inline ImageMix * getImageMix (PyImage * self)
 // python methods
 
 // get source weight
-PyObject * getWeight (PyImage * self, PyObject * args)
+static PyObject *getWeight (PyImage * self, PyObject * args)
 {
        // weight
        short weight = 0;
@@ -125,7 +125,7 @@ PyObject * getWeight (PyImage * self, PyObject * args)
 
 
 // set source weight
-PyObject * setWeight (PyImage * self, PyObject * args)
+static PyObject *setWeight (PyImage *self, PyObject *args)
 {
        // get arguments
        char * id;
index c8763671dd1d169c15fa129e8d1e879e2871a271..6d6cb770afaa03e28a2a7d4998b2f7e94115479f 100644 (file)
@@ -333,7 +333,7 @@ static int ImageRender_init (PyObject * pySelf, PyObject * args, PyObject * kwds
 
 
 // get background color
-PyObject * getBackground (PyImage * self, void * closure)
+static PyObject *getBackground (PyImage *self, void *closure)
 {
        return Py_BuildValue("[BBBB]",
                             getImageRender(self)->getBackground(0),
@@ -510,7 +510,7 @@ static int ImageMirror_init (PyObject * pySelf, PyObject * args, PyObject * kwds
 }
 
 // get background color
-PyObject * getClip (PyImage * self, void * closure)
+static PyObject *getClip (PyImage *self, void *closure)
 {
        return PyFloat_FromDouble(getImageRender(self)->getClip());
 }
index a21300018ebefccd7ef54b367389c2ba78b9949c..a189f5f9aaf4cfdba7b7293d975bb800de5133aa 100644 (file)
@@ -108,7 +108,7 @@ RAS_IPolyMaterial * getMaterial (PyObject *obj, short matID)
 }
 
 // get pointer to a lamp
-KX_LightObject * getLamp(PyObject *obj)
+static KX_LightObject *getLamp(PyObject *obj)
 {
        // if object is available
        if (obj == NULL) return NULL;
@@ -147,7 +147,7 @@ short getMaterialID(PyObject * obj, const char *name)
 
 
 // Texture object allocation
-PyObject * Texture_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
+static PyObject *Texture_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
 {
        // allocate object
        Texture * self = reinterpret_cast<Texture*>(type->tp_alloc(type, 0));
@@ -172,7 +172,7 @@ int Texture_setSource (Texture * self, PyObject * value, void * closure);
 
 
 // Texture object deallocation
-void Texture_dealloc (Texture * self)
+static void Texture_dealloc(Texture *self)
 {
        // release renderer
        Py_XDECREF(self->m_source);
@@ -190,7 +190,7 @@ ExceptionID MaterialNotAvail;
 ExpDesc MaterialNotAvailDesc (MaterialNotAvail, "Texture material is not available");
 
 // Texture object initialization
-int Texture_init (Texture *self, PyObject *args, PyObject *kwds)
+static int Texture_init(Texture *self, PyObject *args, PyObject *kwds)
 {
        // parameters - game object with video texture
        PyObject * obj = NULL;
@@ -298,7 +298,7 @@ PyObject * Texture_close(Texture * self)
 
 
 // refresh texture
-PyObject * Texture_refresh (Texture * self, PyObject * args)
+static PyObject *Texture_refresh(Texture *self, PyObject *args)
 {
        // get parameter - refresh source
        PyObject * param;
@@ -390,14 +390,14 @@ PyObject * Texture_refresh (Texture * self, PyObject * args)
 }
 
 // get OpenGL Bind Id
-PyObject * Texture_getBindId (Texture * self, void * closure)
+static PyObject *Texture_getBindId(Texture *self, void *closure)
 {
        unsigned int id = self->m_actTex;
        return Py_BuildValue("h", id);
 }
 
 // get mipmap value
-PyObject * Texture_getMipmap (Texture * self, void * closure)
+static PyObject *Texture_getMipmap(Texture *self, void *closure)
 {
        // return true if flag is set, otherwise false
        if (self->m_mipmap) Py_RETURN_TRUE;
@@ -405,7 +405,7 @@ PyObject * Texture_getMipmap (Texture * self, void * closure)
 }
 
 // set mipmap value
-int Texture_setMipmap (Texture * self, PyObject * value, void * closure)
+static int Texture_setMipmap(Texture *self, PyObject *value, void *closure)
 {
        // check parameter, report failure
        if (value == NULL || !PyBool_Check(value))
@@ -421,7 +421,7 @@ int Texture_setMipmap (Texture * self, PyObject * value, void * closure)
 
 
 // get source object
-PyObject * Texture_getSource (Texture * self, PyObject * value, void * closure)
+static PyObject *Texture_getSource(Texture *self, PyObject *value, void *closure)
 {
        // if source exists
        if (self->m_source != NULL)
index 1ba944aa9558a7b20b476e56906f262eaa81e9c7..f1c92f2feb3d9266239d170b5157a1c90086ed45 100644 (file)
@@ -1123,13 +1123,13 @@ static int VideoFFmpeg_init (PyObject * pySelf, PyObject * args, PyObject * kwds
        return 0;
 }
 
-PyObject * VideoFFmpeg_getPreseek (PyImage *self, void * closure)
+static PyObject *VideoFFmpeg_getPreseek(PyImage *self, void *closure)
 {
        return Py_BuildValue("h", getFFmpeg(self)->getPreseek());
 }
 
 // set range
-int VideoFFmpeg_setPreseek (PyImage * self, PyObject * value, void * closure)
+static int VideoFFmpeg_setPreseek(PyImage *self, PyObject *value, void *closure)
 {
        // check validity of parameter
        if (value == NULL || !PyLong_Check(value))
@@ -1144,7 +1144,7 @@ int VideoFFmpeg_setPreseek (PyImage * self, PyObject * value, void * closure)
 }
 
 // get deinterlace
-PyObject * VideoFFmpeg_getDeinterlace (PyImage * self, void * closure)
+static PyObject *VideoFFmpeg_getDeinterlace(PyImage *self, void *closure)
 {
        if (getFFmpeg(self)->getDeinterlace())
                Py_RETURN_TRUE;
@@ -1153,7 +1153,7 @@ PyObject * VideoFFmpeg_getDeinterlace (PyImage * self, void * closure)
 }
 
 // set flip
-int VideoFFmpeg_setDeinterlace (PyImage * self, PyObject * value, void * closure)
+static int VideoFFmpeg_setDeinterlace(PyImage *self, PyObject *value, void *closure)
 {
        // check parameter, report failure
        if (value == NULL || !PyBool_Check(value))
@@ -1269,7 +1269,7 @@ static int ImageFFmpeg_init (PyObject * pySelf, PyObject * args, PyObject * kwds
        return 0;
 }
 
-PyObject * Image_reload (PyImage * self, PyObject *args)
+static PyObject *Image_reload(PyImage *self, PyObject *args)
 {
        char * newname = NULL;
        if (!PyArg_ParseTuple(args, "|s:reload", &newname))
index 627da57baac540e3b54461bb543b14bfaaf9e409..b05675c880a656e76cdd12fbeec65fce1e969a13 100644 (file)
@@ -168,7 +168,7 @@ static struct PyModuleDef VideoTexture_module_def = {
        0,  /* m_free */
 };
 
-PyObject* initVideoTexture(void) 
+static PyObject *initVideoTexture(void)
 {
        PyObject * m;