From: Chris Hanson Date: Mon, 24 Feb 2003 21:56:36 +0000 (+0000) Subject: Export "guarantee" procedures for string indices. X-Git-Tag: 20090517-FFI~2021 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=83125baeb77488e00299b0e49b0e09c74bda3355;p=mit-scheme.git Export "guarantee" procedures for string indices. --- diff --git a/v7/src/runtime/string.scm b/v7/src/runtime/string.scm index 0c51f6f9e..bee934f28 100644 --- a/v7/src/runtime/string.scm +++ b/v7/src/runtime/string.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: string.scm,v 14.51 2003/02/24 21:55:32 cph Exp $ +$Id: string.scm,v 14.52 2003/02/24 21:56:36 cph Exp $ Copyright 1986,1987,1988,1992,1993,1994 Massachusetts Institute of Technology Copyright 1995,1997,1999,2000,2001,2002 Massachusetts Institute of Technology @@ -1417,7 +1417,7 @@ USA. (define (guarantee-substring/fail string start end caller) (guarantee-string string caller) (guarantee-substring-end-index string end caller) - (guarantee-substring-start-index string start end caller)) + (guarantee-substring-start-index start end caller)) (define-integrable (guarantee-substring-end-index string end caller) (guarantee-string-index end caller) @@ -1425,7 +1425,7 @@ USA. (error:bad-range-argument end caller)) end) -(define-integrable (guarantee-substring-start-index string start end caller) +(define-integrable (guarantee-substring-start-index start end caller) (guarantee-string-index start caller) (if (not (fix:<= start end)) (error:bad-range-argument start caller))