From: Chris Hanson Date: Thu, 13 Apr 2000 22:21:01 +0000 (+0000) Subject: Use fixnum arithmetic everywhere. Various other small changes. X-Git-Tag: 20090517-FFI~4021 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=25c77c09e804abc3ae50f0fea1c130ed4315dca7;p=mit-scheme.git Use fixnum arithmetic everywhere. Various other small changes. --- diff --git a/v7/src/runtime/string.scm b/v7/src/runtime/string.scm index cb19ccfa4..a2510eae7 100644 --- a/v7/src/runtime/string.scm +++ b/v7/src/runtime/string.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: string.scm,v 14.30 2000/04/13 22:18:09 cph Exp $ +$Id: string.scm,v 14.31 2000/04/13 22:21:01 cph Exp $ Copyright (c) 1988-2000 Massachusetts Institute of Technology @@ -424,7 +424,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. (define (substring-lower-case? string start end) (guarantee-substring string start end 'SUBSTRING-LOWER-CASE?) (%substring-lower-case? string start end)) - + (define (%substring-lower-case? string start end) (let find-lower ((start start)) (and (fix:< start end) @@ -925,7 +925,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ;; menaingful message. Structuring the code this way significantly ;; reduces code bloat from large integrated procedures. - (define-integrable (guarantee-string object procedure) (if (not (string? object)) (error:wrong-type-argument object "string" procedure))) @@ -948,7 +947,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. (error:wrong-type-argument object "valid string index" procedure)) - (define-integrable (guarantee-substring string start end procedure) (if (not (and (string? string) (index-fixnum? start)