Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-05-22 05:25:37 +0400
committerChristopher Faylor <me@cgf.cx>2008-05-22 05:25:37 +0400
commit9ea50a60e17a1c52ff92ce8b24578442e6c30ec2 (patch)
tree7b35e299fdec9feee09c9c7ba4bc87305401d4fa /winsup/cygwin/string.h
parent4962a9453ac3a9c23cba3c7e952242a6831f0cb3 (diff)
* string.h (strchr): Eliminate.
* syscalls.cc (rename): Work around inexplicable C++ warning.
Diffstat (limited to 'winsup/cygwin/string.h')
-rw-r--r--winsup/cygwin/string.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/winsup/cygwin/string.h b/winsup/cygwin/string.h
index 0e0477deb..b02fadb8f 100644
--- a/winsup/cygwin/string.h
+++ b/winsup/cygwin/string.h
@@ -17,27 +17,6 @@ details. */
extern "C" {
#endif
-#undef strchr
-#define strchr cygwin_strchr
-static inline __stdcall char *
-strchr (const char *s, int c)
-{
- register char * res;
- __asm__ __volatile__ ("\
- movb %%al,%%ah\n\
-1: movb (%1),%%al\n\
- cmpb %%ah,%%al\n\
- je 2f\n\
- incl %1\n\
- testb %%al,%%al\n\
- jne 1b\n\
- xorl %1,%1\n\
-2: movl %1,%0\n\
- ":"=a" (res), "=r" (s)
- :"0" (c), "1" (s));
- return res;
-}
-
#undef strechr
#define strechr cygwin_strechr
static inline __stdcall char *