On 12/6/06, Stelian Ionescu <[EMAIL PROTECTED]> 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/
_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Reply via email to