diff options
Diffstat (limited to 'lctype.h')
-rw-r--r-- | lctype.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: $ | 2 | ** $Id: lctype.h,v 1.1 2009/02/19 17:18:25 roberto Exp roberto $ |
3 | ** 'ctype' functions for Lua | 3 | ** 'ctype' functions for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -22,13 +22,13 @@ | |||
22 | #define MASK(B) (1 << (B)) | 22 | #define MASK(B) (1 << (B)) |
23 | 23 | ||
24 | 24 | ||
25 | #define lisalpha(x) (lctypecode[x] & MASK(ALPHABIT)) | 25 | #define lisalpha(x) (luai_ctype_[x] & MASK(ALPHABIT)) |
26 | #define lisalnum(x) (lctypecode[x] & (MASK(ALPHABIT) | MASK(DIGITBIT))) | 26 | #define lisalnum(x) (luai_ctype_[x] & (MASK(ALPHABIT) | MASK(DIGITBIT))) |
27 | #define lisdigit(x) (lctypecode[x] & MASK(DIGITBIT)) | 27 | #define lisdigit(x) (luai_ctype_[x] & MASK(DIGITBIT)) |
28 | #define lisspace(x) (lctypecode[x] & MASK(SPACEBIT)) | 28 | #define lisspace(x) (luai_ctype_[x] & MASK(SPACEBIT)) |
29 | #define lisprint(x) (lctypecode[x] & MASK(PRINTBIT)) | 29 | #define lisprint(x) (luai_ctype_[x] & MASK(PRINTBIT)) |
30 | 30 | ||
31 | LUAI_DATA const char lctypecode[UCHAR_MAX + 1]; | 31 | LUAI_DATA const char luai_ctype_[UCHAR_MAX + 1]; |
32 | 32 | ||
33 | #endif | 33 | #endif |
34 | 34 | ||