diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-16 04:22:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-16 04:22:55 +0400 |
commit | beac985ab7b8c1fb62e102dee74d68fa7f3c192d (patch) | |
tree | c930c02676d6c4064def616977363a7573c24670 /source/gameengine/Expressions | |
parent | 2d6839ce65589a91f183de1304bd900d2278c8b1 (diff) |
code cleanup: make local game engine functions static
Diffstat (limited to 'source/gameengine/Expressions')
-rw-r--r-- | source/gameengine/Expressions/EXP_C-Api.cpp | 4 | ||||
-rw-r--r-- | source/gameengine/Expressions/EXP_C-Api.h | 2 | ||||
-rw-r--r-- | source/gameengine/Expressions/ListValue.cpp | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/source/gameengine/Expressions/EXP_C-Api.cpp b/source/gameengine/Expressions/EXP_C-Api.cpp index 763d115a840..2822fd8f6de 100644 --- a/source/gameengine/Expressions/EXP_C-Api.cpp +++ b/source/gameengine/Expressions/EXP_C-Api.cpp @@ -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); } diff --git a/source/gameengine/Expressions/EXP_C-Api.h b/source/gameengine/Expressions/EXP_C-Api.h index 6be1e57481c..4d43695f9b9 100644 --- a/source/gameengine/Expressions/EXP_C-Api.h +++ b/source/gameengine/Expressions/EXP_C-Api.h @@ -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); diff --git a/source/gameengine/Expressions/ListValue.cpp b/source/gameengine/Expressions/ListValue.cpp index f43625a7821..ef82b9ed8cf 100644 --- a/source/gameengine/Expressions/ListValue.cpp +++ b/source/gameengine/Expressions/ListValue.cpp @@ -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) { |