diff options
author | DJ Delorie <dj@redhat.com> | 2000-10-19 03:12:44 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2000-10-19 03:12:44 +0000 |
commit | 2556e737ec044e39cd8afc6f00cd0f156b9d6ede (patch) | |
tree | faedfc2543659c41638054dca1260321647c5762 /winsup/cygwin/environ.cc | |
parent | cc55c579a361e3dd8bd4766530e1e6de1eb71664 (diff) | |
download | newlib-2556e737ec044e39cd8afc6f00cd0f156b9d6ede.zip newlib-2556e737ec044e39cd8afc6f00cd0f156b9d6ede.tar.gz newlib-2556e737ec044e39cd8afc6f00cd0f156b9d6ede.tar.bz2 |
* Makefile.in: add miscfuncs.cc
* miscfuncs.cc: new, miscellaneous functions
* winsup.h: define table-driven tolower/toupper
* environ.cc: use them
* fhandler_console.cc: ditto
* fhandler_termios: ditto
* path.cc: ditto
(strncasematch, strcasematch, strcasestr): move to miscfuncs.cc
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index b93d7e6..016d036 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -354,7 +354,7 @@ ucenv (char *p, char *eq) we only do it for the first process in a session group. */ for (; p < eq; p++) if (islower (*p)) - *p = toupper (*p); + *p = cyg_toupper (*p); } /* Parse CYGWIN options */ @@ -538,8 +538,8 @@ environ_init (char **envp, int envc) { for (int i = 0; conv_envvars[i].name != NULL; i++) { - conv_start_chars[tolower(conv_envvars[i].name[0])] = 1; - conv_start_chars[toupper(conv_envvars[i].name[0])] = 1; + conv_start_chars[cyg_tolower(conv_envvars[i].name[0])] = 1; + conv_start_chars[cyg_toupper(conv_envvars[i].name[0])] = 1; } initted = 1; } |