X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fobjects.lisp;h=b7c27157480bdcf1d3757b96de0386bec62d84db;hb=2f7e64265ca4c1811946f0004fe3d476b40568ef;hp=46b72752dcc79b52b0a0f1944ad61eaee63f7ef6;hpb=d25878a6a15d78719a44ba21534b24a11e03628f;p=uffi.git diff --git a/src/objects.lisp b/src/objects.lisp index 46b7275..b7c2715 100644 --- a/src/objects.lisp +++ b/src/objects.lisp @@ -242,9 +242,9 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated." '(error "WITH-CAST-POINTER not (yet) implemented for ~A" (lisp-implementation-type))) - (defmacro convert-external-name (name) + (defun convert-external-name (name) "Add an underscore to NAME if necessary for the ABI." - #+macosx `(concatenate 'string "_" ,name) + #+macosx (concatenate 'string "_" name) #-macosx name) (defmacro def-foreign-var (names type module) @@ -260,7 +260,7 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated." #+allegro `(define-symbol-macro ,lisp-name (ff:fslot-value-typed (quote ,(convert-from-uffi-type type :deref)) - :c (convert-external-name (ff:get-entry-point ,foreign-name)))) + :c (ff:get-entry-point ,(convert-external-name foreign-name)))) #+lispworks `(progn (fli:define-foreign-variable (,lisp-name ,foreign-name)