New function GLOBAL-VAR-P

This commit is contained in:
Juan Jose Garcia Ripoll 2010-05-11 14:18:04 +02:00
parent 61d4c99781
commit f07de591f3

View file

@ -213,6 +213,11 @@
(and (not (member (var-kind var) '(LEXICAL CLOSURE SPECIAL GLOBAL REPLACED)))
(var-kind var)))
(defun global-var-p (var)
(let ((kind (var-kind var)))
(or (eq kind 'global)
(eq kind 'special))))
(defun c2var (vref) (unwind-exit vref))
(defun c2location (loc) (unwind-exit loc))