From 1978094b3a914930bd5aee2aaf830c8ff1410b9a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 24 Jun 2011 09:25:33 -0300 Subject: resort to standard C ctype for non-ASCII systems --- lctype.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lctype.c') diff --git a/lctype.c b/lctype.c index 1d8b31b1..c6eefa51 100644 --- 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 - #include "lctype.h" +#if !LUA_USE_CTYPE /* { */ + +#include + 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 /* } */ -- cgit v1.2.3-55-g6feb