Ignore:
Timestamp:
11/15/03 13:48:23 (18 years ago)
Author:
piso
Message:

PRECOMPILE-CASE, PRECOMPILE-COND

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/precompiler.lisp

    r4762 r4763  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: precompiler.lisp,v 1.4 2003-11-15 01:07:35 piso Exp $
     4;;; $Id: precompiler.lisp,v 1.5 2003-11-15 13:48:23 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    170170         (result (list (precompile1 keyform))))
    171171    (dolist (clause clauses)
    172       (setq result (nconc result (list (precompile-case-clause clause)))))
    173     (cons (car form) result)))
     172      (push (precompile-case-clause clause) result))
     173    (cons (car form) (nreverse result))))
    174174
    175175(defun precompile-case-clause (clause)
     
    182182        (result nil))
    183183    (dolist (clause clauses)
    184       (setq result (nconc result (list (precompile-cond-clause clause)))))
    185     (cons 'COND result)))
     184      (push (precompile-cond-clause clause) result))
     185    (cons 'COND (nreverse result))))
    186186
    187187(defun precompile-cond-clause (clause)
Note: See TracChangeset for help on using the changeset viewer.