* 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
This commit is contained in:
DJ Delorie
2000-10-19 03:12:44 +00:00
parent cc55c579a3
commit 2556e737ec
8 changed files with 144 additions and 105 deletions

View File

@@ -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