aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/environ.cc
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-10-19 03:12:44 +0000
committerDJ Delorie <dj@redhat.com>2000-10-19 03:12:44 +0000
commit2556e737ec044e39cd8afc6f00cd0f156b9d6ede (patch)
treefaedfc2543659c41638054dca1260321647c5762 /winsup/cygwin/environ.cc
parentcc55c579a361e3dd8bd4766530e1e6de1eb71664 (diff)
downloadnewlib-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.cc6
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;
}