mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-23 03:54:12 +02:00
* list.c: Moved append docs to append! Thanks Dirk Hermann. Also,
added append docs from R4RS. * strings.c: Docstring typo fix, + eliminate unneeded IMP tests. Thanks Dirk Hermann! * chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann! * *.h, *.c: Use SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR throughout. Drop use of SCM_P for function prototypes... assume an ANSI C compiler. Thanks Dirk Hermann!
This commit is contained in:
parent
e510ed373f
commit
7866a09b5b
79 changed files with 939 additions and 938 deletions
|
@ -439,13 +439,13 @@ scm_array_fill_int (SCM ra, SCM fill, SCM ignore)
|
|||
SCM_VELTS (ra)[i] = fill;
|
||||
break;
|
||||
case scm_tc7_string:
|
||||
SCM_ASRTGO (SCM_ICHRP (fill), badarg2);
|
||||
SCM_ASRTGO (SCM_CHARP (fill), badarg2);
|
||||
for (i = base; n--; i += inc)
|
||||
SCM_CHARS (ra)[i] = SCM_ICHR (fill);
|
||||
SCM_CHARS (ra)[i] = SCM_CHAR (fill);
|
||||
break;
|
||||
case scm_tc7_byvect:
|
||||
if (SCM_ICHRP (fill))
|
||||
fill = SCM_MAKINUM ((char) SCM_ICHR (fill));
|
||||
if (SCM_CHARP (fill))
|
||||
fill = SCM_MAKINUM ((char) SCM_CHAR (fill));
|
||||
SCM_ASRTGO (SCM_INUMP (fill)
|
||||
&& -128 <= SCM_INUM (fill) && SCM_INUM (fill) < 128,
|
||||
badarg2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue