invoking renamed foreign function

Anton Vodonosov avodonosov at yandex.ru
Mon May 29 03:12:33 UTC 2017


It does on SBCL. Is it correct theoretically to call DEFCFUN from inside of IF?

Also, when somebody saves lisp image and the image opened next time,
possibly different version of OpenSSL is loaded. The defcfun done
before saving the image, will it conflict with the new library?

29.05.2017, 06:02, "Luís Oliveira" <luismbo at gmail.com>:
> That solution looks interesting. Does it work?
>
> On Mon, May 29, 2017, 03:48 Anton Vodonosov <avodonosov at yandex.ru> wrote:
>
>> 29.05.2017, 05:42, "Luís Oliveira" <luismbo at gmail.com>:
>>> foreign-symbol-pointer should work on Corman, yes.
>>
>> If so, maybe this is the best solution?
>>
>>     (if (cffi:foreign-symbol-pointer "OpenSSL_version_num")
>>         (cffi:defcfun ("OpenSSL_version_num" ssleay) :long)
>>         (cffi:defcfun ("SSLeay" ssleay) :long))
>>



More information about the cffi-devel mailing list