X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_misc.lisp;h=a3991d5924d9fdd666b5c4a6d2514f60f7be371a;hb=c0c271a74a11ccba4e5c2c51e46045c9073c32a6;hp=419181b7680236407ec82526a376eb1e475466c9;hpb=a5498a39db21d35ab8090f154944550def25f68e;p=gacela.git diff --git a/gacela_misc.lisp b/gacela_misc.lisp index 419181b..a3991d5 100755 --- a/gacela_misc.lisp +++ b/gacela_misc.lisp @@ -14,7 +14,6 @@ ;;; You should have received a copy of the GNU General Public License ;;; along with this program. If not, see . - (in-package :gacela) (defconstant INFINITY MOST-POSITIVE-LONG-FLOAT) @@ -69,16 +68,6 @@ (t (power (* p 2) n))))) (power 1 n))) -(defmacro mapcconst (type c-type name) - (let ((c-header (concatenate 'string c-type " gacela_" name " (void)")) - (c-body (concatenate 'string "return " name ";")) - (c-name (concatenate 'string "gacela_" name)) - (lisp-name (intern (string-upcase name)))) - `(progn - (defcfun ,c-header 0 ,c-body) - (defentry ,lisp-name () (,type ,c-name)) - (eval-when (load) (defconstant ,lisp-name (,lisp-name)))))) - ;Geometry (defun dotp (dot) (match-pattern dot '(0 0)))