diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-19 13:23:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-19 13:23:31 +0400 |
commit | 4408a4aeffaa48a4346d03d758dce2fb5043b8d3 (patch) | |
tree | b527cb47cb3a6858bc4ef2d0fcc252dcefb31d33 /source/blender/python | |
parent | 2721a17a31e780b70cc0421c552217134320da80 (diff) |
remove unneeded externs
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/generic/bpy_internal_import.c | 9 | ||||
-rw-r--r-- | source/blender/python/generic/bpy_internal_import.h | 3 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/python/generic/bpy_internal_import.c b/source/blender/python/generic/bpy_internal_import.c index 5852a68e7b7..d4158210cc8 100644 --- a/source/blender/python/generic/bpy_internal_import.c +++ b/source/blender/python/generic/bpy_internal_import.c @@ -48,12 +48,15 @@ #include "BLI_utildefines.h" /* UNUSED */ -#include "BKE_text.h" /* txt_to_buf */ +#include "BKE_text.h" /* txt_to_buf */ #include "BKE_main.h" static Main *bpy_import_main = NULL; static ListBase bpy_import_main_list; +static PyMethodDef bpy_import_meth; +static PyMethodDef bpy_reload_meth; + /* 'builtins' is most likely PyEval_GetBuiltins() */ void bpy_import_init(PyObject *builtins) { @@ -335,5 +338,5 @@ static PyObject *blender_reload(PyObject *UNUSED(self), PyObject *module) return newmodule; } -PyMethodDef bpy_import_meth = {"bpy_import_meth", (PyCFunction)blender_import, METH_VARARGS | METH_KEYWORDS, "blenders import"}; -PyMethodDef bpy_reload_meth = {"bpy_reload_meth", (PyCFunction)blender_reload, METH_O, "blenders reload"}; +static PyMethodDef bpy_import_meth = {"bpy_import_meth", (PyCFunction)blender_import, METH_VARARGS | METH_KEYWORDS, "blenders import"}; +static PyMethodDef bpy_reload_meth = {"bpy_reload_meth", (PyCFunction)blender_reload, METH_O, "blenders reload"}; diff --git a/source/blender/python/generic/bpy_internal_import.h b/source/blender/python/generic/bpy_internal_import.h index 980e6edca03..1592ec52b4c 100644 --- a/source/blender/python/generic/bpy_internal_import.h +++ b/source/blender/python/generic/bpy_internal_import.h @@ -55,9 +55,6 @@ PyObject* bpy_text_reimport(PyObject *module, int *found); void bpy_text_filename_get(char *fn, size_t fn_len, struct Text *text); -extern PyMethodDef bpy_import_meth; -extern PyMethodDef bpy_reload_meth; - /* The game engine has its own Main struct, if this is set search this rather than G.main */ struct Main *bpy_import_main_get(void); void bpy_import_main_set(struct Main *maggie); |