1
0
Fork 0
forked from len0rd/rockbox

make the ctype array unsigned so that bit 7 (octal 0200) can be set and

used properly without warnings


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7120 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2005-07-12 11:06:38 +00:00
parent 2d8fd9cf8a
commit db4fb95585
3 changed files with 20 additions and 20 deletions

View file

@ -285,7 +285,7 @@ struct plugin_api {
int (*strncasecmp)(const char *s1, const char *s2, size_t n);
void* (*memset)(void *dst, int c, size_t length);
void* (*memcpy)(void *out, const void *in, size_t n);
const char *_ctype_;
const unsigned char *_ctype_;
int (*atoi)(const char *str);
char *(*strchr)(const char *s, int c);
char *(*strcat)(char *s1, const char *s2);

View file

@ -1,6 +1,6 @@
#include <ctype.h>
const char _ctype_[257]={
const unsigned char _ctype_[257]={
0,
_C, _C, _C, _C, _C, _C, _C, _C,
_C, _C|_S, _C|_S, _C|_S, _C|_S, _C|_S, _C, _C,

View file

@ -39,7 +39,7 @@ int _EXFUN(_toupper, (int __c));
#ifdef PLUGIN
#define _ctype_ (rb->_ctype_)
#else
extern const char _ctype_[];
extern const unsigned char _ctype_[257];
#endif
#ifndef __cplusplus