summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/winsup.h
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/winsup.h
parentcc55c579a361e3dd8bd4766530e1e6de1eb71664 (diff)
downloadcygnal-2556e737ec044e39cd8afc6f00cd0f156b9d6ede.tar.gz
cygnal-2556e737ec044e39cd8afc6f00cd0f156b9d6ede.tar.bz2
cygnal-2556e737ec044e39cd8afc6f00cd0f156b9d6ede.zip
* 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/winsup.h')
-rw-r--r--winsup/cygwin/winsup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index 6513a4078..f308d6de3 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -53,6 +53,11 @@ __asm__ __volatile__(
return __res;
}
+extern char case_folded_lower[];
+#define cyg_tolower(c) (case_folded_lower[(unsigned char)(c)])
+extern char case_folded_upper[];
+#define cyg_toupper(c) (case_folded_upper[(unsigned char)(c)])
+
#define cfree newlib_cfree_dont_use
#define WIN32_LEAN_AND_MEAN 1