mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
* strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
unif.c. strop.h: move prototypes too. * posix.c (scm_init_posix): don't intern EINTR since it's now done elsewhere. * ioext.c (scm_init_ioext): don't intern stat macros, S_IRUSR etc. I deleted them from filesys.c long ago, but didn't notice they were here too (although ineffective since sys/stat.h wasn't included).
This commit is contained in:
parent
5862b540cd
commit
c101e39e41
7 changed files with 66 additions and 131 deletions
|
@ -1925,56 +1925,6 @@ scm_bit_invert_x (v)
|
|||
}
|
||||
|
||||
|
||||
SCM_PROC(s_string_upcase_x, "string-upcase!", 1, 0, 0, scm_string_upcase_x);
|
||||
|
||||
SCM
|
||||
scm_string_upcase_x (v)
|
||||
SCM v;
|
||||
{
|
||||
register long k;
|
||||
register unsigned char *cs;
|
||||
SCM_ASRTGO (SCM_NIMP (v), badarg1);
|
||||
k = SCM_LENGTH (v);
|
||||
switch SCM_TYP7
|
||||
(v)
|
||||
{
|
||||
case scm_tc7_string:
|
||||
cs = SCM_UCHARS (v);
|
||||
while (k--)
|
||||
cs[k] = scm_upcase(cs[k]);
|
||||
break;
|
||||
default:
|
||||
badarg1:scm_wta (v, (char *) SCM_ARG1, s_string_upcase_x);
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
SCM_PROC(s_string_downcase_x, "string-downcase!", 1, 0, 0, scm_string_downcase_x);
|
||||
|
||||
SCM
|
||||
scm_string_downcase_x (v)
|
||||
SCM v;
|
||||
{
|
||||
register long k;
|
||||
register unsigned char *cs;
|
||||
SCM_ASRTGO (SCM_NIMP (v), badarg1);
|
||||
k = SCM_LENGTH (v);
|
||||
switch SCM_TYP7
|
||||
(v)
|
||||
{
|
||||
case scm_tc7_string:
|
||||
cs = SCM_UCHARS (v);
|
||||
while (k--)
|
||||
cs[k] = scm_downcase(cs[k]);
|
||||
break;
|
||||
default:
|
||||
badarg1:scm_wta (v, (char *) SCM_ARG1, s_string_downcase_x);
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
|
||||
|
||||
SCM
|
||||
scm_istr2bve (str, len)
|
||||
char *str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue