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:
authorCampbell Barton <ideasman42@gmail.com>2011-12-26 16:26:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-26 16:26:11 +0400
commite17fd46c71e0401fefecf22fa8975fc5826d8fe9 (patch)
tree7c8afe24927c1dfdb5cf14a8deeb61691e1ec0c3 /source/blender/python/intern/bpy_interface_atexit.c
parentf48fb385ea8dc6b12e12a6ec46a0c0b55d2dfcc4 (diff)
formatting edits only to use more consisted style
Diffstat (limited to 'source/blender/python/intern/bpy_interface_atexit.c')
-rw-r--r--source/blender/python/intern/bpy_interface_atexit.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/python/intern/bpy_interface_atexit.c b/source/blender/python/intern/bpy_interface_atexit.c
index a0cf3c38503..53775e7d893 100644
--- a/source/blender/python/intern/bpy_interface_atexit.c
+++ b/source/blender/python/intern/bpy_interface_atexit.c
@@ -40,15 +40,15 @@
static PyObject *bpy_atexit(PyObject *UNUSED(self), PyObject *UNUSED(args), PyObject *UNUSED(kw))
{
/* close down enough of blender at least not to crash */
- struct bContext *C= BPy_GetContext();
+ struct bContext *C = BPy_GetContext();
WM_exit_ext(C, 0);
Py_RETURN_NONE;
}
-static PyMethodDef meth_bpy_atexit= {"bpy_atexit", (PyCFunction)bpy_atexit, METH_NOARGS, NULL};
-static PyObject *func_bpy_atregister= NULL; /* borrowed referebce, atexit holds */
+static PyMethodDef meth_bpy_atexit = {"bpy_atexit", (PyCFunction)bpy_atexit, METH_NOARGS, NULL};
+static PyObject *func_bpy_atregister = NULL; /* borrowed referebce, atexit holds */
static void atexit_func_call(const char *func_name, PyObject *atexit_func_arg)
{
@@ -56,15 +56,15 @@ static void atexit_func_call(const char *func_name, PyObject *atexit_func_arg)
* this is intended, but if its problematic it could be changed
* - campbell */
- PyObject *atexit_mod= PyImport_ImportModuleLevel((char *)"atexit", NULL, NULL, NULL, 0);
- PyObject *atexit_func= PyObject_GetAttrString(atexit_mod, func_name);
- PyObject *args= PyTuple_New(1);
+ PyObject *atexit_mod = PyImport_ImportModuleLevel((char *)"atexit", NULL, NULL, NULL, 0);
+ PyObject *atexit_func = PyObject_GetAttrString(atexit_mod, func_name);
+ PyObject *args = PyTuple_New(1);
PyObject *ret;
PyTuple_SET_ITEM(args, 0, atexit_func_arg);
Py_INCREF(atexit_func_arg); /* only incref so we dont dec'ref along with 'args' */
- ret= PyObject_CallObject(atexit_func, args);
+ ret = PyObject_CallObject(atexit_func, args);
Py_DECREF(atexit_mod);
Py_DECREF(atexit_func);
@@ -83,7 +83,7 @@ void BPY_atexit_register(void)
/* atexit module owns this new function reference */
BLI_assert(func_bpy_atregister == NULL);
- func_bpy_atregister= (PyObject *)PyCFunction_New(&meth_bpy_atexit, NULL);
+ func_bpy_atregister = (PyObject *)PyCFunction_New(&meth_bpy_atexit, NULL);
atexit_func_call("register", func_bpy_atregister);
}
@@ -92,5 +92,5 @@ void BPY_atexit_unregister(void)
BLI_assert(func_bpy_atregister != NULL);
atexit_func_call("unregister", func_bpy_atregister);
- func_bpy_atregister= NULL; /* don't really need to set but just incase */
+ func_bpy_atregister = NULL; /* don't really need to set but just incase */
}