comparison src/sysdll.c @ 2855:612eb81b76eb

[xemacs-hg @ 2005-07-12 12:22:11 by malcolmp] Fixed a crash with the MacOS X DLL code that appeared in Tiger.
author malcolmp
date Tue, 12 Jul 2005 12:22:13 +0000
parents 0bcc1e4dfd91
children 5989b9bbb612
comparison
equal deleted inserted replaced
2854:b51ad701231a 2855:612eb81b76eb
226 Extbyte *soname; 226 Extbyte *soname;
227 NSObjectFileImage file; 227 NSObjectFileImage file;
228 NSModule out; 228 NSModule out;
229 NSObjectFileImageReturnCode ret; 229 NSObjectFileImageReturnCode ret;
230 230
231 /*
232 * MacOS X dll support is for bundles, not the current executable, so return
233 * NULL is this case. However, dll_function() uses a special hack where a
234 * NULL handle can be used to find executable symbols. This satisfies the
235 * needs of ui-gtk.c but is not a general solution.
236 */
231 if (NILP (fname)) 237 if (NILP (fname))
232 { 238 {
233 soname = NULL; 239 return NULL;
234 } 240 }
235 else 241 else
236 { 242 {
237 LISP_STRING_TO_EXTERNAL (fname, soname, Qdll_filename_encoding); 243 LISP_STRING_TO_EXTERNAL (fname, soname, Qdll_filename_encoding);
238 } 244 }