[armedbear-cvs] r11442 - trunk/j/src/org/armedbear/lisp

Ville Voutilainen vvoutilainen at common-lisp.net
Sun Dec 14 12:52:41 UTC 2008


Author: vvoutilainen
Date: Sun Dec 14 12:52:39 2008
New Revision: 11442

Log:
Remove remaining bits of local-macro-function and
expand-local-macro as they are no longer needed.


Modified:
   trunk/j/src/org/armedbear/lisp/precompiler.lisp

Modified: trunk/j/src/org/armedbear/lisp/precompiler.lisp
==============================================================================
--- trunk/j/src/org/armedbear/lisp/precompiler.lisp	(original)
+++ trunk/j/src/org/armedbear/lisp/precompiler.lisp	Sun Dec 14 12:52:39 2008
@@ -372,11 +372,6 @@
            (when (symbolp op)
              (cond ((setf handler (get op 'precompile-handler))
                     (return-from precompile1 (funcall handler form)))
-                   ((local-macro-function op)
-                    (let ((result (expand-local-macro (precompile-cons form))))
-                      (return-from precompile1 (if (equal result form)
-                                                   result
-                                                   (precompile1 result)))))
                    ((macro-function op *compile-file-environment*)
                     (return-from precompile1 (precompile1 (expand-macro form))))
                    ((special-operator-p op)
@@ -500,18 +495,14 @@
 (defun precompile-setf (form)
   (let ((place (second form)))
     (cond ((and (consp place)
-                (local-macro-function (%car place)))
-           (let ((expansion (expand-local-macro place)))
-             (precompile1 (list* 'SETF expansion (cddr form)))))
-          ((and (consp place)
                 (eq (%car place) 'VALUES))
-           (setf form
-                 (list* 'SETF
-                        (list* 'VALUES
-                               (mapcar #'precompile1 (%cdr place)))
-                        (cddr form)))
-           (precompile1 (expand-macro form)))
-          ((symbolp place)
+	   (setf form
+		 (list* 'SETF
+			(list* 'VALUES
+			       (mapcar #'precompile1 (%cdr place)))
+			(cddr form)))
+	   (precompile1 (expand-macro form)))
+	  ((symbolp place)
            (let ((varspec (find-varspec place)))
              (if (and varspec (eq (second varspec) :symbol-macro))
                  (precompile1 (list* 'SETF (copy-tree (third varspec)) (cddr form)))
@@ -692,9 +683,6 @@
 
 (defvar *local-functions-and-macros* ())
 
-(defun local-macro-function (name)
-  (getf *local-functions-and-macros* name))
-
 (defun precompile-macrolet (form)
   (let ((*compile-file-environment*
          (make-environment *compile-file-environment*)))




More information about the armedbear-cvs mailing list