Mercurial > hg > xemacs-beta
changeset 1271:44186d7cf4dd
[xemacs-hg @ 2003-02-07 21:05:32 by james]
Return the parameter for both strlwr and strupr, and make the definition of
strupr depend on no HAVE_STRUPR definition.
author | james |
---|---|
date | Fri, 07 Feb 2003 21:05:35 +0000 |
parents | d65d8a05e272 |
children | df61d2b1d4c3 |
files | src/ChangeLog src/sysdep.c |
diffstat | 2 files changed, 16 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Fri Feb 07 20:46:02 2003 +0000 +++ b/src/ChangeLog Fri Feb 07 21:05:35 2003 +0000 @@ -1,3 +1,8 @@ +2003-02-07 Jerry James <james@xemacs.org> + + * sysdep.c (strlwr): Return the parameter. + * sysdep.c (strupr): Ditto. Depend on !HAVE_STRUPR. + 2003-02-07 Ben Wing <ben@xemacs.org> This contains two related changes:
--- a/src/sysdep.c Fri Feb 07 20:46:02 2003 +0000 +++ b/src/sysdep.c Fri Feb 07 21:05:35 2003 +0000 @@ -3355,23 +3355,27 @@ char * strlwr (char *s) { - while (*s) + REGISTER char *c; + + for (c = s; *c; c++) { - *s = tolower (*s); - ++s; + *c = tolower (*c); } + return s; } #endif -#ifndef HAVE_STRLWR +#ifndef HAVE_STRUPR char * strupr (char *s) { - while (*s) + REGISTER char *c; + + for (c = s; *c; c++) { - *s = toupper (*s); - ++s; + *c = toupper (*c); } + return s; } #endif