From bd9e24b30126cb31005ca286118609eb6f4dfbba Mon Sep 17 00:00:00 2001 From: Gary Houston Date: Mon, 31 Jan 2000 18:29:56 +0000 Subject: * strings.h: don't use SCM_P. don't include . * error.c, gh_data.c, ports.c, script.c, strop.c: include . * strings.c (scm_string_ref): make the 2nd argument compulsory. previously it defaulted to zero for no good reason that I can see. use a local variable for SCM_INUM (k). replace SCM_VALIDATE_INUM_DEF with SCM_VALIDATE_INUM_COPY. (scm_makfromstr): cosmetic changes. (scm_string): Accept only chars in the list, not strings, for conformance to R5RS (particularly for list->string, which is supposed to be the inverse of string->list.) remove SCM_DEFER_INTS/SCM_ALLOW_INTS, which is unnecessary since scm_makstr handles the cell allocation. when reporting wrong-type arg, don't report the position as 1. * posix.c (scm_init_posix): intern PIPE_BUF if it's defined. * boot-9.scm (find-and-link-dynamic-module): pass strings, not symbols, to string-append. --- libguile/strop.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libguile/strop.c') diff --git a/libguile/strop.c b/libguile/strop.c index 641599905..b596f31d0 100644 --- a/libguile/strop.c +++ b/libguile/strop.c @@ -30,6 +30,11 @@ Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA #include "scm_validate.h" #include "strop.h" #include "read.h" /*For SCM_CASE_INSENSITIVE_P*/ + +#ifdef HAVE_STRING_H +#include +#endif + /* -- cgit v1.2.1