diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-24 09:25:33 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-24 09:25:33 -0300 |
| commit | 1978094b3a914930bd5aee2aaf830c8ff1410b9a (patch) | |
| tree | a4928916228a46f857b6258f0eed9396ec8807d0 | |
| parent | 5acc5b0c1e2f5ae79fa990782d0850303924b082 (diff) | |
| download | lua-1978094b3a914930bd5aee2aaf830c8ff1410b9a.tar.gz lua-1978094b3a914930bd5aee2aaf830c8ff1410b9a.tar.bz2 lua-1978094b3a914930bd5aee2aaf830c8ff1410b9a.zip | |
resort to standard C ctype for non-ASCII systems
| -rw-r--r-- | lctype.c | 10 |
1 files changed, 7 insertions, 3 deletions
| @@ -1,13 +1,15 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lctype.c,v 1.8 2009/11/19 19:06:52 roberto Exp roberto $ | 2 | ** $Id: lctype.c,v 1.9 2011/06/23 16:00:43 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 | */ |
| 6 | 6 | ||
| 7 | #include <limits.h> | ||
| 8 | |||
| 9 | #include "lctype.h" | 7 | #include "lctype.h" |
| 10 | 8 | ||
| 9 | #if !LUA_USE_CTYPE /* { */ | ||
| 10 | |||
| 11 | #include <limits.h> | ||
| 12 | |||
| 11 | LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = { | 13 | LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = { |
| 12 | 0x00, /* EOZ */ | 14 | 0x00, /* EOZ */ |
| 13 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0. */ | 15 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0. */ |
| @@ -43,3 +45,5 @@ LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = { | |||
| 43 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* f. */ | 45 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* f. */ |
| 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 46 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 45 | }; | 47 | }; |
| 48 | |||
| 49 | #endif /* } */ | ||
