On 2006-maj-13, at 20:01, [EMAIL PROTECTED] wrote:
(t (:default "libc")))
[vs]
(t (:or "libc" "libc.so.6")))
[...]
the second example appears to the naive (like me) to be a super-set
of the first example.
You want: (:or (:default "libc") "libc.so.6)
Also:
(define-foreign-library libc
(:unix (:or "libc.so.6"))
(t (:default "libc")))
(use-foreign-library libc)
Doesn't work since OS-X is unix, but not linux. Maybe after failing
on the specific case (i.e. unix), it could fall back to the general
case?
I suppose falling back to other clauses in a COND-like fashion
wouldn't hurt.
--
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