Skip to content
Snippets Groups Projects
Commit 3f3ce599 authored by ram's avatar ram
Browse files

Moved condition handler binding into with-ir1-namespace, since that is

used in all the right places.
parent 7f419d98
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/macros.lisp,v 1.35 1993/07/21 14:29:56 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/macros.lisp,v 1.36 1993/07/21 14:36:17 ram Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -763,14 +763,17 @@ ...@@ -763,14 +763,17 @@
;;; WITH-IR1-NAMESPACE -- Interface ;;; WITH-IR1-NAMESPACE -- Interface
;;; ;;;
;;; Bind the hashtables used for keeping track of global variables, ;;; Bind the hashtables used for keeping track of global variables,
;;; functions, &c. ;;; functions, &c. Also establish condition handlers.
;;; ;;;
(defmacro with-ir1-namespace (&body forms) (defmacro with-ir1-namespace (&body forms)
`(let ((*free-variables* (make-hash-table :test #'eq)) `(let ((*free-variables* (make-hash-table :test #'eq))
(*free-functions* (make-hash-table :test #'equal)) (*free-functions* (make-hash-table :test #'equal))
(*constants* (make-hash-table :test #'equal)) (*constants* (make-hash-table :test #'equal))
(*source-paths* (make-hash-table :test #'eq))) (*source-paths* (make-hash-table :test #'eq)))
,@forms)) (handler-bind ((compiler-error #'compiler-error-handler)
(style-warning #'compiler-style-warning-handler)
(warning #'compiler-warning-handler))
,@forms)))
;;; LEXENV-FIND -- Interface ;;; LEXENV-FIND -- Interface
...@@ -1163,14 +1166,3 @@ ...@@ -1163,14 +1166,3 @@
(setf (event-info-count v) 0)) (setf (event-info-count v) 0))
*event-info*) *event-info*)
(values)) (values))
;;;; WITH-COMPILER-ERROR-HANDLERS -- Interface
;;;
;;; Establish the compiler's condition handlers.
;;;
(defmacro with-compiler-error-handlers (&body body)
`(handler-bind ((compiler-error #'compiler-error-handler)
(style-warning #'compiler-style-warning-handler)
(warning #'compiler-warning-handler))
,@body))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment