fix for warnings and implicit declarations
also fixed smoke comparing a float's mem-location rather then its value.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user