From: Chris Hanson Date: Mon, 24 Feb 2003 21:55:32 +0000 (+0000) Subject: Export "guarantee" procedures for string indices. X-Git-Tag: 20090517-FFI~2022 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=10e89ab0962ece423660a21cd19e8730c40d8026;p=mit-scheme.git Export "guarantee" procedures for string indices. --- diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index 1a1ce374d..d8ac52b76 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.428 2003/02/24 20:48:38 cph Exp $ +$Id: runtime.pkg,v 14.429 2003/02/24 21:53:39 cph Exp $ Copyright (c) 1988,1989,1990,1991,1992 Massachusetts Institute of Technology Copyright (c) 1993,1994,1995,1996,1997 Massachusetts Institute of Technology @@ -697,7 +697,6 @@ USA. decorated-string-append external-string-length external-string? - guarantee-char-set guarantee-string guarantee-string-index guarantee-substring diff --git a/v7/src/runtime/string.scm b/v7/src/runtime/string.scm index da8856005..0c51f6f9e 100644 --- a/v7/src/runtime/string.scm +++ b/v7/src/runtime/string.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: string.scm,v 14.50 2003/02/24 20:47:14 cph Exp $ +$Id: string.scm,v 14.51 2003/02/24 21:55:32 cph Exp $ Copyright 1986,1987,1988,1992,1993,1994 Massachusetts Institute of Technology Copyright 1995,1997,1999,2000,2001,2002 Massachusetts Institute of Technology @@ -1423,7 +1423,7 @@ USA. (guarantee-string-index end caller) (if (not (fix:<= end (string-length string))) (error:bad-range-argument end caller)) - start) + end) (define-integrable (guarantee-substring-start-index string start end caller) (guarantee-string-index start caller)