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:
authorKent Mein <mein@cs.umn.edu>2003-04-30 19:55:50 +0400
committerKent Mein <mein@cs.umn.edu>2003-04-30 19:55:50 +0400
commit4a3d4472b1664eeb12b7844db210d6f8992ce025 (patch)
treeeaff99e5fa7d957c883ff3d4ff7ee90990b80f53 /source/blender/blenlib/intern/dynlib.c
parent9174db096b7c114552a9c61d12701509da00fa09 (diff)
Updated the macosX error message for plugins so it actually reports
something other than plugins not supported on macosx. Kent
Diffstat (limited to 'source/blender/blenlib/intern/dynlib.c')
-rw-r--r--source/blender/blenlib/intern/dynlib.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/dynlib.c b/source/blender/blenlib/intern/dynlib.c
index 2dd25505adf..4c6ab6ab616 100644
--- a/source/blender/blenlib/intern/dynlib.c
+++ b/source/blender/blenlib/intern/dynlib.c
@@ -131,8 +131,9 @@ void *PIL_dynlib_find_symbol(PILdynlib* lib, char *symname) {
size = strlen(symname) + 2 * sizeof(char);
if (size < CHAR_MAX) {
- name = MEM_mallocN(size, "temp string");
+ name = MEM_mallocN(size, symname);
sprintf(&name, "_%s",symname);
+printf("\nouchie name =%s\n",name);
cr = NSLookupSymbolInModule(lib->handle, name);
free(name);
return NSAddressOfSymbol(cr);
@@ -141,7 +142,14 @@ void *PIL_dynlib_find_symbol(PILdynlib* lib, char *symname) {
}
char *PIL_dynlib_get_error_as_string(PILdynlib* lib) {
- return "Plugins are currently unsupported on OSX";
+ char *string;
+ int *errorNumber;
+ NSLinkEditErrors *c;
+ char *filename, *errorstr;
+
+ NSLinkEditError(&c,&errorNumber,&filename,&errorstr);
+ sprintf(string,"%d :%s: %s",errorNumber,filename,errorstr);
+ return string;
}
void PIL_dynlib_close(PILdynlib *lib) {