Change `get-primitive-name' to return a string instead of a symbol.
authorChris Hanson <org/chris-hanson/cph>
Tue, 18 Apr 1989 04:09:26 +0000 (04:09 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 18 Apr 1989 04:09:26 +0000 (04:09 +0000)
This concentrates knowledge of symbols' internal case in the runtime
system.

v7/src/microcode/primutl.c
v7/src/runtime/udata.scm

index 20a188474520a8e5c89647e04666e962ddcabf70..45a962904b73f48c95ea34941ddc62f0048e8c43 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/primutl.c,v 9.47 1989/04/15 19:04:24 cph Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/primutl.c,v 9.48 1989/04/18 04:09:26 cph Exp $
  *
  * This file contains the support routines for mapping primitive names
  * to numbers within the microcode.  Primitives are written in C
@@ -341,7 +341,7 @@ primitive_name(code)
     scheme_string = User_Vector_Ref(Undefined_Primitives,
                                    (code - MAX_PRIMITIVE));
   }
-  return (string_to_symbol(scheme_string));
+  return (scheme_string);
 }
 \f
 /*
index 106b5b875b91ba6ace338451e263498291ed87ea..0e87dca91e2d004ed4de9893bcfb84054dbc1830 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/udata.scm,v 14.6 1988/12/30 06:43:27 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/udata.scm,v 14.7 1989/04/18 04:09:04 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -314,8 +314,9 @@ that you cannot just vector-ref into.
                                           false))
 
 (define (primitive-procedure-name primitive)
-  ((ucode-primitive get-primitive-name)
-   (object-datum (guarantee-primitive-procedure primitive))))
+  (intern
+   ((ucode-primitive get-primitive-name)
+    (guarantee-primitive-procedure primitive))))
 
 (define (compound-procedure? object)
   (or (object-type? (ucode-type procedure) object)