return dl_last_error;
}
-int dlclose(handle) /* stub only */
-void *handle;
+static int dlclose(void *handle) /* stub only */
{
return 0;
}
path, number, type);
break;
}
- safefree(dl_last_error);
- dl_last_error = savepv(error);
+ sv_setpv(MY_CXT.x_dl_last_error, error);
}
static char *dlopen(char *path, int mode /* mode is ignored */)
TranslateError(path, OFImage, dyld_result);
else
{
- // NSLinkModule will cause the run to abort on any link error's
+ // NSLinkModule will cause the run to abort on any link errors
// not very friendly but the error recovery functionality is limited.
handle = NSLinkModule(ofile, path, TRUE);
NSDestroyObjectFileImage(ofile);
return handle;
}
-void *
-dlsym(handle, symbol)
-void *handle;
-char *symbol;
+static void *
+dlsym(void *handle, char *symbol)
{
void *addr;