now in the global environment.
#| -*-Scheme-*-
-$Id: undo.scm,v 1.62 2003/02/14 18:28:13 cph Exp $
+$Id: undo.scm,v 1.63 2005/07/31 02:59:32 cph Exp $
Copyright 1985, 1989-2000 Massachusetts Institute of Technology
;; the editor does not exist or is not running. It would actually
;; prefer to be run *before* the GC, but that's not possible now.
(if edwin-editor
- (let ((bytes/word
- (vector-ref ((ucode-primitive gc-space-status 0)) 0)))
+ (let ((bytes/word (vector-ref (gc-space-status) 0)))
(let ((words->bytes
(lambda (words)
(round (/ words bytes/word)))))
#| -*-Scheme-*-
-$Id: utils.scm,v 1.54 2003/02/14 18:28:13 cph Exp $
+$Id: utils.scm,v 1.55 2005/07/31 02:59:37 cph Exp $
Copyright 1986, 1989-2002 Massachusetts Institute of Technology
;; This is written as a macro so that the shift will be a constant
;; in the compiled code.
;; It does not work when cross-compiled!
- (let ((chars-per-word
- (vector-ref ((ucode-primitive gc-space-status 0)) 0)))
+ (let ((chars-per-word (vector-ref (gc-space-status) 0)))
(case chars-per-word
((4) -2)
((8) -3)
(define check-space
- (let ((get-status (make-primitive-procedure 'gc-space-status))
- (set-debug-flags! (make-primitive-procedure 'set-debug-flags!)))
+ (let ((set-debug-flags! (make-primitive-procedure 'set-debug-flags!)))
(lambda ()
- (let* ((status (get-status))
+ (let* ((status (gc-space-status))
(free (vector-ref status 5))
(top (vector-ref status 6))
(space (- top free)))