1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* wince/string_wce.c (strrchr): should decrement pointer.

* wince/Makefile.sub: correct a range of isdigit().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
uema2 2003-10-31 13:36:19 +00:00
parent 0dfe20d3d4
commit e6775cc193
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Fri Oct 31 22:26:29 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
* wince/string_wce.c (strrchr): should decrement pointer.
* wince/Makefile.sub: correct a range of isdigit().
Fri Oct 31 12:55:24 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* configure.in, lib/mkmf.rb: add RPATHFLAG for NetBSD.

View file

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

View file

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