From f8a3e3931c7f199d5616b80171ea4b6d3cc5ee27 Mon Sep 17 00:00:00 2001 From: uema2 Date: Fri, 31 Oct 2003 13:36:19 +0000 Subject: * wince/string_wce.c (strrchr): should decrement pointer. * wince/Makefile.sub: correct a range of isdigit(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- wince/Makefile.sub | 2 +- wince/string_wce.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'wince') diff --git a/wince/Makefile.sub b/wince/Makefile.sub index f77e31cc6..905c47930 100644 --- a/wince/Makefile.sub +++ b/wince/Makefile.sub @@ -313,7 +313,7 @@ $(BANG)endif #if _WIN32_WCE < 300 #define isascii(c) ( (c>=0x00&&c<=0x7f)?1:0 ) #define isspace(c) ( ((c>=0x09&&c<=0x0d)||c==0x20)?1:0 ) - #define isdigit(c) ( (c>=0x00&&c<=0x09)?1:0 ) + #define isdigit(c) ( (c>=0x30&&c<=0x39)?1:0 ) #define isupper(c) ( (c>='A'&&c<='Z')?1:0 ) #define isalpha(c) ( ((c>='A'&&c<='Z')||(c>='a'&&c<='z'))?1:0 ) #define isprint(c) ( (c>=0x20&&c<=0x7e)?1:0 ) diff --git a/wince/string_wce.c b/wince/string_wce.c index a1ee07507..257eee101 100644 --- a/wince/string_wce.c +++ b/wince/string_wce.c @@ -44,7 +44,7 @@ int strnicmp( const char *s1, const char *s2, size_t count ) char *strrchr( const char *p, int c ) { char *pp; - for( pp=(char*)p+strlen(p); pp!=p; p-- ) + for( pp=(char*)p+strlen(p); pp!=p; pp-- ) { if( *pp==c ) break; } -- cgit