[Ecls-list] si:load-foreign-module

Stelian Ionescu sionescu at common-lisp.net
Sun Jun 1 21:51:29 UTC 2008


I've noticed that SI:LOAD-FOREIGN-MODULE doesn't search in standard
library directories, which in my opinion is an important feature of
dlopen() in that it doesn't force me find the actual path of the library
I'm loading, especially since the default paths vary across OSes(Linux,
*BSD, OSX).
The attached patch removes the call to TRUENAME from SI:LOAD-FOREIGN-MODULE

-- 
Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.
-------------- next part --------------
diff --git a/src/c/ffi.d b/src/c/ffi.d
index 5b9b6f6..8049e5f 100644
--- a/src/c/ffi.d
+++ b/src/c/ffi.d
@@ -418,8 +418,6 @@ si_load_foreign_module(cl_object filename)
 	cl_object output;
 	int i;
 
-	filename = cl_namestring(cl_truename(filename));
-
 #ifdef ECL_THREADS
 	mp_get_lock(1, ecl_symbol_value(@'mp::+load-compile-lock+'));
 	CL_UNWIND_PROTECT_BEGIN {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20080601/f93a8020/attachment.sig>


More information about the ecl-devel mailing list