use const for readonly strings and set some functions to static

This commit is contained in:
2011-10-27 14:41:26 +00:00
parent 626f737186
commit 699030ceb6
23 changed files with 39 additions and 65 deletions

View File

@@ -124,7 +124,7 @@ PyObject *bpy_text_import(Text *text)
return PyImport_ExecCodeModule(modulename, text->compiled);
}
PyObject *bpy_text_import_name(char *name, int *found)
PyObject *bpy_text_import_name(const char *name, int *found)
{
Text *text;
char txtname[MAX_ID_NAME-2];