commit 1978094b3a914930bd5aee2aaf830c8ff1410b9a
parent 5acc5b0c1e2f5ae79fa990782d0850303924b082
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Fri, 24 Jun 2011 09:25:09 -0300
resort to standard C ctype for non-ASCII systems
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lctype.c b/lctype.c
@@ -1,13 +1,15 @@
/*
-** $Id: lctype.c,v 1.8 2009/11/19 19:06:52 roberto Exp roberto $
+** $Id: lctype.c,v 1.9 2011/06/23 16:00:43 roberto Exp roberto $
** 'ctype' functions for Lua
** See Copyright Notice in lua.h
*/
-#include <limits.h>
-
#include "lctype.h"
+#if !LUA_USE_CTYPE /* { */
+
+#include <limits.h>
+
LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = {
0x00, /* EOZ */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0. */
@@ -43,3 +45,5 @@ LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* f. */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
+
+#endif /* } */