aboutsummaryrefslogtreecommitdiff
path: root/lctype.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-03-26 15:53:52 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-03-26 15:53:52 -0300
commitb1e1c15ced1f02becf578efb12dbeea6a9f01eee (patch)
tree0cbdb7f2b92ed4391d60613d578ca49de3137afd /lctype.c
parent3dbf30540892b4b9c86e0cb663069cd478a0c900 (diff)
downloadlua-b1e1c15ced1f02becf578efb12dbeea6a9f01eee.tar.gz
lua-b1e1c15ced1f02becf578efb12dbeea6a9f01eee.tar.bz2
lua-b1e1c15ced1f02becf578efb12dbeea6a9f01eee.zip
small bug: EOZ is a valid character to be tested
Diffstat (limited to 'lctype.c')
-rw-r--r--lctype.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lctype.c b/lctype.c
index 3cd79885..b210b5eb 100644
--- a/lctype.c
+++ b/lctype.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lctype.c,v 1.3 2009/03/10 17:42:33 roberto Exp roberto $ 2** $Id: lctype.c,v 1.4 2009/03/11 13:27:32 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*/
@@ -8,7 +8,8 @@
8 8
9#include "lctype.h" 9#include "lctype.h"
10 10
11const char luai_ctype_[UCHAR_MAX + 1] = { 11const char luai_ctype_[UCHAR_MAX + 2] = {
12 0x00, /* EOZ */
12 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 13 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
13 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 14 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00,
14 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 15 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,