fix for warnings and implicit declarations

also fixed smoke comparing a float's mem-location rather then its value.
This commit is contained in:
2009-07-31 01:40:15 +00:00
parent c371f49d9a
commit 2a727083c9
23 changed files with 40 additions and 35 deletions

View File

@@ -111,8 +111,8 @@ PyObject *bpy_text_import( char *name, int *found )
PyObject *bpy_text_reimport( PyObject *module, int *found )
{
Text *text;
char *txtname;
char *name;
const char *txtname;
const char *name;
char *buf = NULL;
//XXX Main *maggie= bpy_import_main ? bpy_import_main:G.main;
Main *maggie= bpy_import_main;
@@ -166,7 +166,7 @@ PyObject *bpy_text_reimport( PyObject *module, int *found )
}
/* make into a module */
return PyImport_ExecCodeModule( name, text->compiled );
return PyImport_ExecCodeModule( (char *)name, text->compiled );
}
@@ -273,8 +273,8 @@ static PyObject *blender_reload( PyObject * self, PyObject * args )
return newmodule;
}
PyMethodDef bpy_import_meth[] = { {"bpy_import_meth", blender_import, METH_VARARGS | METH_KEYWORDS, "blenders import"} };
PyMethodDef bpy_reload_meth[] = { {"bpy_reload_meth", blender_reload, METH_VARARGS, "blenders reload"} };
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_VARARGS, "blenders reload"} };
/* Clear user modules.