Change type code names.
authorChris Hanson <org/chris-hanson/cph>
Tue, 21 Jul 1992 04:26:40 +0000 (04:26 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 21 Jul 1992 04:26:40 +0000 (04:26 +0000)
v7/src/runtime/global.scm
v7/src/runtime/parse.scm
v7/src/runtime/scomb.scm
v7/src/runtime/uenvir.scm
v7/src/runtime/unpars.scm
v8/src/runtime/global.scm
v8/src/runtime/uenvir.scm

index 3614a9fb78d2352b0ff50533a6a0a74e7caf3a85..62ea332a885c51b4e86ca8be4aeacd324c48061d 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.37 1992/05/26 19:34:04 mhwu Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.38 1992/07/21 04:24:07 cph Exp $
 
 Copyright (c) 1988-92 Massachusetts Institute of Technology
 
@@ -264,18 +264,18 @@ MIT in each case. |#
 (define (undefined-value? object)
   ;; Note: the unparser takes advantage of the fact that objects
   ;; satisfying this predicate also satisfy:
-  ;; (object-type? (microcode-type 'TRUE) object)
+  ;; (object-type? (microcode-type 'CONSTANT) object)
   (or (eq? object undefined-conditional-branch)
       ;; same as `undefined-conditional-branch'.
       ;; (eq? object *the-non-printing-object*)
       ;; (eq? object unspecific)
       (eq? object (microcode-object/unassigned))))
 
-(define *the-non-printing-object*
-  (object-new-type (ucode-type true) 1))
-
 (define unspecific
-  (object-new-type (ucode-type true) 1))
+  (object-new-type (microcode-type 'CONSTANT) 1))
+
+(define *the-non-printing-object*
+  unspecific)
 
 (define (obarray->list #!optional obarray)
   (let ((table (if (default-object? obarray)
index 8a2ccde6b33a98b4955426620f08389981d1299b..73cadffb10d6b5da315b37450d3c471bd0a4a8e4 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/parse.scm,v 14.17 1991/11/26 07:06:39 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/parse.scm,v 14.18 1992/07/21 04:24:43 cph Exp $
 
-Copyright (c) 1988-91 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -57,8 +57,8 @@ MIT in each case. |#
                             (char-set #\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9
                                       #\+ #\- #\. #\#)))
 
-  (set! lambda-optional-tag (object-new-type (ucode-type true) 3))
-  (set! lambda-rest-tag (object-new-type (ucode-type true) 4))
+  (set! lambda-optional-tag (object-new-type (microcode-type 'CONSTANT) 3))
+  (set! lambda-rest-tag (object-new-type (microcode-type 'CONSTANT) 4))
   (set! dot-symbol (intern "."))
   (set! named-objects
        `((NULL . ,(list))
@@ -319,7 +319,7 @@ MIT in each case. |#
 
 (define (collect-list/list-close)
   (discard-char)
-  '())
+  (list))
 
 (define ignore-extra-list-closes
   true)
index 19360f46a694dcfa6d6c3aacf7ed381558551b40..5883930c68eda5f673926a3f9defc9bc66a3e5c6 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/scomb.scm,v 14.10 1991/02/15 18:07:03 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/scomb.scm,v 14.11 1992/07/21 04:25:13 cph Exp $
 
-Copyright (c) 1988-91 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -197,7 +197,7 @@ MIT in each case. |#
   (object-type? (ucode-type conditional) object))
 
 (define undefined-conditional-branch
-  (object-new-type (ucode-type true) 1))
+  (object-new-type (microcode-type 'CONSTANT) 1))
 
 (define-integrable (conditional-predicate conditional)
   (&triple-first conditional))
index 4917a97ef881460ec418df1507e0fe5ceb38bf2c..961f66ef71b1ede547070032bb7af91ec4b50767 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/uenvir.scm,v 14.25 1991/10/29 13:31:11 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/uenvir.scm,v 14.26 1992/07/21 04:25:47 cph Exp $
 
-Copyright (c) 1988-91 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -237,7 +237,7 @@ MIT in each case. |#
   (ic-environment/set-parent! environment null-environment))
 
 (define null-environment
-  (object-new-type (ucode-type null) 1))
+  (object-new-type (microcode-type 'NULL) 1))
 
 (define (make-null-interpreter-environment)
   (let ((environment (let () (the-environment))))
index 2c937cd4e3f98f8be694adbff17b35ae172b462e..11b113362c89806a86543db836bdabbd32b8aa0e 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unpars.scm,v 14.26 1992/03/25 21:58:07 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unpars.scm,v 14.27 1992/07/21 04:26:40 cph Exp $
 
 Copyright (c) 1988-92 Massachusetts Institute of Technology
 
@@ -81,21 +81,22 @@ MIT in each case. |#
                (CHARACTER ,unparse/character)
                (COMPILED-ENTRY ,unparse/compiled-entry)
                (COMPLEX ,unparse/number)
+               (CONSTANT ,unparse/constant)
                (ENTITY ,unparse/entity)
                (ENVIRONMENT ,unparse/environment)
                (EXTENDED-PROCEDURE ,unparse/compound-procedure)
-               (FIXNUM ,unparse/number)
                (FLONUM ,unparse/flonum)
                (FUTURE ,unparse/future)
                (INTERNED-SYMBOL ,unparse/interned-symbol)
                (LIST ,unparse/pair)
+               (NEGATIVE-FIXNUM ,unparse/number)
                (NULL ,unparse/null)
+               (POSITIVE-FIXNUM ,unparse/number)
                (PRIMITIVE ,unparse/primitive-procedure)
                (PROCEDURE ,unparse/compound-procedure)
                (RATNUM ,unparse/number)
                (RETURN-ADDRESS ,unparse/return-address)
                (STRING ,unparse/string)
-               (TRUE ,unparse/true)
                (UNINTERNED-SYMBOL ,unparse/uninterned-symbol)
                (VARIABLE ,unparse/variable)
                (VECTOR ,unparse/vector)
@@ -257,7 +258,8 @@ MIT in each case. |#
        type-name)))
 
 (define renamed-user-object-types
-  '((FIXNUM . NUMBER)
+  '((NEGATIVE-FIXNUM . NUMBER)
+    (POSITIVE-FIXNUM . NUMBER)
     (BIGNUM . NUMBER)
     (FLONUM . NUMBER)
     (COMPLEX . NUMBER)
@@ -286,8 +288,10 @@ MIT in each case. |#
          (*unparse-string "#f")
          (unparse/default object))))
 
-(define (unparse/true object)
-  (cond ((eq? object #t) (*unparse-string "#t"))
+(define (unparse/constant object)
+  (cond ((not object) (*unparse-string "#f"))
+       ((null? object) (*unparse-string "()"))
+       ((eq? object #t) (*unparse-string "#t"))
        ((undefined-value? object) (*unparse-string "#[undefined-value]"))
        ((eq? object lambda-optional-tag) (*unparse-string "#!optional"))
        ((eq? object lambda-rest-tag) (*unparse-string "#!rest"))
index 44861dc1e4f07a70dd49bb381eae29ae7e5aabca..4b4c8be2292d2846fde16bd593cc6612ca237388 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.37 1992/05/26 19:34:04 mhwu Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.38 1992/07/21 04:24:07 cph Exp $
 
 Copyright (c) 1988-92 Massachusetts Institute of Technology
 
@@ -264,18 +264,18 @@ MIT in each case. |#
 (define (undefined-value? object)
   ;; Note: the unparser takes advantage of the fact that objects
   ;; satisfying this predicate also satisfy:
-  ;; (object-type? (microcode-type 'TRUE) object)
+  ;; (object-type? (microcode-type 'CONSTANT) object)
   (or (eq? object undefined-conditional-branch)
       ;; same as `undefined-conditional-branch'.
       ;; (eq? object *the-non-printing-object*)
       ;; (eq? object unspecific)
       (eq? object (microcode-object/unassigned))))
 
-(define *the-non-printing-object*
-  (object-new-type (ucode-type true) 1))
-
 (define unspecific
-  (object-new-type (ucode-type true) 1))
+  (object-new-type (microcode-type 'CONSTANT) 1))
+
+(define *the-non-printing-object*
+  unspecific)
 
 (define (obarray->list #!optional obarray)
   (let ((table (if (default-object? obarray)
index 55ce64b4023d026e79ae0e5bff409f78f08e665d..10c940018763f18c6595b5104f01428da025df8a 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/uenvir.scm,v 14.25 1991/10/29 13:31:11 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/uenvir.scm,v 14.26 1992/07/21 04:25:47 cph Exp $
 
-Copyright (c) 1988-91 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -237,7 +237,7 @@ MIT in each case. |#
   (ic-environment/set-parent! environment null-environment))
 
 (define null-environment
-  (object-new-type (ucode-type null) 1))
+  (object-new-type (microcode-type 'NULL) 1))
 
 (define (make-null-interpreter-environment)
   (let ((environment (let () (the-environment))))