* strings.h: don't use SCM_P. don't include <string.h>.
authorGary Houston <ghouston@arglist.com>
Mon, 31 Jan 2000 18:29:56 +0000 (18:29 +0000)
committerGary Houston <ghouston@arglist.com>
Mon, 31 Jan 2000 18:29:56 +0000 (18:29 +0000)
commitbd9e24b30126cb31005ca286118609eb6f4dfbba
tree33a2cc729eb2990f3bf27ef0faa888c6e59392c6
parent505ede188182b40c34dba6745c768f42c7caca09
* strings.h: don't use SCM_P.  don't include <string.h>.
* error.c, gh_data.c, ports.c, script.c, strop.c: include <string.h>.

* 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.
13 files changed:
NEWS
ice-9/ChangeLog
ice-9/boot-9.scm
libguile/ChangeLog
libguile/error.c
libguile/filesys.c
libguile/gh_data.c
libguile/ports.c
libguile/posix.c
libguile/script.c
libguile/strings.c
libguile/strings.h
libguile/strop.c