Changeset 4670


Ignore:
Timestamp:
11/07/03 19:15:37 (18 years ago)
Author:
piso
Message:

Moved PROG and PROG* to prog.lisp.

File:
1 edited

Legend:

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

    r4639 r4670  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: boot.lisp,v 1.124 2003-11-04 03:11:01 piso Exp $
     4;;; $Id: boot.lisp,v 1.125 2003-11-07 19:15:37 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    313313       (cond ,@(rest clauses))))))))
    314314
    315 
    316 ;;; PROG, PROG* (from GCL)
    317 
    318 (defmacro prog (vl &rest body &aux (decl nil))
    319   (do ()
    320       ((or (endp body)
    321            (not (consp (car body)))
    322            (not (eq (caar body) 'declare)))
    323        `(block nil (let ,vl ,@decl (tagbody ,@body))))
    324       (push (car body) decl)
    325       (pop body)))
    326 
    327 (defmacro prog* (vl &rest body &aux (decl nil))
    328   (do ()
    329       ((or (endp body)
    330            (not (consp (car body)))
    331            (not (eq (caar body) 'declare)))
    332        `(block nil (let* ,vl ,@decl (tagbody ,@body))))
    333       (push (car body) decl)
    334       (pop body)))
    335 
    336 
    337315;;; DOTIMES (from CMUCL)
    338316(defmacro dotimes ((var count &optional (result nil)) &body body)
Note: See TracChangeset for help on using the changeset viewer.