Correct function argument name generation in DEF-MATH-RTN
authorLutz Euler <lutz.euler@freenet.de>
Wed, 29 Jun 2011 16:32:46 +0000 (18:32 +0200)
committerNikodemus Siivola <nikodemus@sb-studio.net>
Fri, 5 Aug 2011 08:27:48 +0000 (11:27 +0300)
Argument names of math functions defined using DEF-MATH-RTN now really
start with "ARG0". Kills a style warning during build and slightly
reduces the number of symbols in the SB-KERNEL package.

src/code/irrat.lisp

index 1b28a3a..05410a6 100644 (file)
@@ -24,8 +24,8 @@
 
 (sb!xc:defmacro def-math-rtn (name num-args)
   (let ((function (symbolicate "%" (string-upcase name)))
-        (args (let ((sb!impl::*gentemp-counter* 0))
-                (loop repeat num-args collect (gentemp "ARG")))))
+        (args (loop for i below num-args
+                    collect (intern (format nil "ARG~D" i)))))
     `(progn
        (declaim (inline ,function))
        (defun ,function ,args