aboutsummaryrefslogtreecommitdiff
path: root/lctype.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-06-24 09:25:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-06-24 09:25:33 -0300
commit1978094b3a914930bd5aee2aaf830c8ff1410b9a (patch)
treea4928916228a46f857b6258f0eed9396ec8807d0 /lctype.c
parent5acc5b0c1e2f5ae79fa990782d0850303924b082 (diff)
downloadlua-1978094b3a914930bd5aee2aaf830c8ff1410b9a.tar.gz
lua-1978094b3a914930bd5aee2aaf830c8ff1410b9a.tar.bz2
lua-1978094b3a914930bd5aee2aaf830c8ff1410b9a.zip
resort to standard C ctype for non-ASCII systems
Diffstat (limited to 'lctype.c')
-rw-r--r--lctype.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lctype.c b/lctype.c
index 1d8b31b1..c6eefa51 100644
--- a/lctype.c
+++ b/lctype.c
@@ -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
11LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = { 13LUAI_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 /* } */