Ignore:
Timestamp:
12/07/03 01:16:53 (18 years ago)
Author:
piso
Message:

SEARCH compiler macro.

File:
1 edited

Legend:

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

    r4951 r4997  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: precompiler.lisp,v 1.18 2003-12-03 02:28:25 piso Exp $
     4;;; $Id: precompiler.lisp,v 1.19 2003-12-07 01:16:53 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    4444         `(memql ,(first args) ,(second args)))
    4545        (t form)))
     46
     47(define-compiler-macro search (&whole form &rest args)
     48  (if (= (length args) 2)
     49      `(simple-search ,@args)
     50      form))
    4651
    4752(define-compiler-macro %aset (&whole form &rest args)
Note: See TracChangeset for help on using the changeset viewer.