style cleanup

This commit is contained in:
Campbell Barton
2012-09-16 04:58:18 +00:00
parent c2a1dcf621
commit 2fb8292005
222 changed files with 1480 additions and 1471 deletions

View File

@@ -48,10 +48,10 @@ http://www.gnu.org/copyleft/lesser.txt.
// get material id
static PyObject * getMaterialID (PyObject *self, PyObject *args)
static PyObject *getMaterialID (PyObject *self, PyObject *args)
{
// parameters - game object with video texture
PyObject * obj = NULL;
PyObject *obj = NULL;
// material name
char * matName;
@@ -72,13 +72,13 @@ static PyObject * getMaterialID (PyObject *self, PyObject *args)
// get last error description
static PyObject * getLastError (PyObject *self, PyObject *args)
static PyObject *getLastError (PyObject *self, PyObject *args)
{
return PyUnicode_FromString(Exception::m_lastError.c_str());
}
// set log file
static PyObject * setLogFile (PyObject *self, PyObject *args)
static PyObject *setLogFile (PyObject *self, PyObject *args)
{
// get parameters
if (!PyArg_ParseTuple(args, "s:setLogFile", &Exception::m_logFile))
@@ -89,10 +89,10 @@ static PyObject * setLogFile (PyObject *self, PyObject *args)
// image to numpy array
static PyObject * imageToArray (PyObject * self, PyObject *args)
static PyObject *imageToArray(PyObject *self, PyObject *args)
{
// parameter is Image object
PyObject * pyImg;
PyObject *pyImg;
char *mode = NULL;
if (!PyArg_ParseTuple(args, "O|s:imageToArray", &pyImg, &mode) || !pyImageTypes.in(Py_TYPE(pyImg)))
{
@@ -172,7 +172,7 @@ static struct PyModuleDef VideoTexture_module_def = {
PyObject *initVideoTexture(void)
{
PyObject * m;
PyObject *m;
// initialize GL extensions
//bgl::InitExtensions(0);
@@ -210,7 +210,7 @@ PyObject *initVideoTexture(void)
pyFilterTypes.reg(m);
Py_INCREF(&TextureType);
PyModule_AddObject(m, (char*)"Texture", (PyObject*)&TextureType);
PyModule_AddObject(m, (char*)"Texture", (PyObject *)&TextureType);
PyModule_AddIntConstant(m, (char*)"SOURCE_ERROR", SourceError);
PyModule_AddIntConstant(m, (char*)"SOURCE_EMPTY", SourceEmpty);
PyModule_AddIntConstant(m, (char*)"SOURCE_READY", SourceReady);