Add procedures to allocate strings without garbage collecting.
authorChris Hanson <org/chris-hanson/cph>
Thu, 8 Mar 2001 17:14:36 +0000 (17:14 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 8 Mar 2001 17:14:36 +0000 (17:14 +0000)
v7/src/microcode/string.c

index 0f0f1977a5144ad8ecf961326a0b5b3f3c14ac35..732e5bc37c0df6a77dcf1e86ef19d3cf954546d2 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: string.c,v 9.43 2001/03/08 17:13:59 cph Exp $
+$Id: string.c,v 9.44 2001/03/08 17:14:36 cph Exp $
 
 Copyright (c) 1987-2001 Massachusetts Institute of Technology
 
@@ -87,7 +87,7 @@ SCHEME_OBJECT
 DEFUN (char_pointer_to_string, (char_pointer),
        CONST unsigned char * char_pointer)
 {
-  unsigned char * scan = char_pointer;
+  CONST unsigned char * scan = char_pointer;
   if (scan == 0)
     scan += 1;
   else
@@ -100,7 +100,7 @@ SCHEME_OBJECT
 DEFUN (char_pointer_to_string_no_gc, (char_pointer),
        CONST unsigned char * char_pointer)
 {
-  unsigned char * scan = char_pointer;
+  CONST unsigned char * scan = char_pointer;
   if (scan == 0)
     scan += 1;
   else