diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-02-13 17:12:37 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-02-13 17:12:37 +0400 |
commit | d7bcd2a16f4dfad45357c57bc6334db51652215e (patch) | |
tree | f066a688df2d64de276da2b10d22960ea429d533 /winsup/cygwin/nlsfuncs.cc | |
parent | e633eaec087cc723ce6af440ed8b91d44a35cf79 (diff) |
* Makefile.in (clean): Remove non-existant regexp dir.
* collate.h: New header.
(__collate_range_cmp): Declare.
(__collate_load_error): Define.
* glob.cc: Pull in latest version from FreeBSD. Simplify and reduce
Cygwin-specific changes.
* regex/regcomp.c: Include collate.h on Cygwin as well.
(__collate_range_cmp): Move from here...
* nlsfuncs.cc (__collate_range_cmp): ...to here.
* miscfuncs.cc (thread_wrapper): Fix typo in comment.
(CygwinCreateThread): Take dead zone of Windows stack into account.
Change the way how the stack is commited and how to handle guardpages.
Explain how and why.
* thread.h (PTHREAD_DEFAULT_STACKSIZE): Change definition. Explain why.
Diffstat (limited to 'winsup/cygwin/nlsfuncs.cc')
-rw-r--r-- | winsup/cygwin/nlsfuncs.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc index 61255dfc3..00c834e55 100644 --- a/winsup/cygwin/nlsfuncs.cc +++ b/winsup/cygwin/nlsfuncs.cc @@ -1192,6 +1192,15 @@ strcoll (const char *s1, const char *s2) return ret - CSTR_EQUAL; } +/* BSD. Used in glob.cc and regcomp.c, for instance. */ +extern "C" int +__collate_range_cmp (int c1, int c2) +{ + char s1[2] = { c1, '\0' }; + char s2[2] = { c2, '\0' }; + return strcoll (s1, s2); +} + extern "C" size_t wcsxfrm (wchar_t *ws1, const wchar_t *ws2, size_t wsn) { |