From: Chris Hanson Date: Thu, 8 Mar 2001 17:14:36 +0000 (+0000) Subject: Add procedures to allocate strings without garbage collecting. X-Git-Tag: 20090517-FFI~2925 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=39e6ffda3a24c7f2385930b61135d11000b62b62;p=mit-scheme.git Add procedures to allocate strings without garbage collecting. --- diff --git a/v7/src/microcode/string.c b/v7/src/microcode/string.c index 0f0f1977a..732e5bc37 100644 --- a/v7/src/microcode/string.c +++ b/v7/src/microcode/string.c @@ -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