[cffi-devel] [PATCH] fix %load-foreign-library on cmucl
Luís Oliveira
luismbo at gmail.com
Fri Dec 8 09:09:38 UTC 2006
On 12/6/06, Stelian Ionescu <stelian.ionescu-zeus at poste.it> wrote:
(defun %load-foreign-library (name)
"Load the foreign library NAME."
- (sys::load-object-file name))
+ (or (sys::load-object-file name)
+ t))
Hmm, that way %LOAD-FOREIGN-LIBRARY will never return NIL, even when
loading the library really fails. We should be detecting if the
foreign library is already loaded, and we should probably keep track
of this in the portable side of things. That's needed for
UNLOAD-FOREIGN-LIBRARY too, it's in the TODO list I think.
You're welcome to tackle that TODO item. :-)
--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
More information about the cffi-devel
mailing list