source: trunk/j/src/org/armedbear/lisp/fixme.lisp @ 4461

Last change on this file since 4461 was 4461, checked in by piso, 19 years ago

DECLAIM: recognize SPECIAL declarations.

File size: 1.7 KB
Line 
1;;; fixme.lisp
2;;;
3;;; Copyright (C) 2003 Peter Graves
4;;; $Id: fixme.lisp,v 1.10 2003-10-19 18:58:56 piso Exp $
5;;;
6;;; This program is free software; you can redistribute it and/or
7;;; modify it under the terms of the GNU General Public License
8;;; as published by the Free Software Foundation; either version 2
9;;; of the License, or (at your option) any later version.
10;;;
11;;; This program is distributed in the hope that it will be useful,
12;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with this program; if not, write to the Free Software
18;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20(in-package "SYSTEM")
21
22;; Should be a special operator.
23(defmacro the (type form)
24  form)
25
26;; Should be a special operator.
27(defmacro declare (&rest ignored)
28  nil)
29
30(defmacro declaim (&rest decls)
31  (let ((res ()))
32    (dolist (decl decls)
33      (when (eq (car decl) 'special)
34        (dolist (var (cdr decl))
35          (push `(defvar ,var) res))))
36    (when res
37      `(progn ,@(nreverse res)))))
38
39;; Should be a special operator.
40(defmacro locally (&rest forms)
41  `(progn ,@forms))
42
43(defun proclaim (decl)
44  nil)
45
46(defun warn (&rest args)
47  nil)
48
49(defmacro assert (form &rest stuff)
50  `(if (not ,form) (error "assertion failed: ~S" ',form)))
51
52(defun compile-file (&rest args)
53  (values nil nil nil))
54
55(defun compile-file-pathname (pathname)
56  (concatenate 'string (namestring pathname) ".compiled"))
57
58(defvar *readtable* nil)
59
60(defun copy-readtable (&rest ignored)
61  nil)
Note: See TracBrowser for help on using the repository browser.