From 6427c61e7c3e6acd467b488c573ac37b0f46d0a2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 10 Mar 2009 14:42:33 -0300 Subject: added macro 'lisxdigit' (just in case :) --- lctype.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lctype.h') diff --git a/lctype.h b/lctype.h index 89dbbd8d..13e3d88d 100644 --- a/lctype.h +++ b/lctype.h @@ -1,5 +1,5 @@ /* -** $Id: lctype.h,v 1.1 2009/02/19 17:18:25 roberto Exp roberto $ +** $Id: lctype.h,v 1.2 2009/02/20 13:11:15 roberto Exp roberto $ ** 'ctype' functions for Lua ** See Copyright Notice in lua.h */ @@ -17,6 +17,7 @@ #define DIGITBIT 1 #define PRINTBIT 2 #define SPACEBIT 3 +#define XDIGITBIT 4 #define MASK(B) (1 << (B)) @@ -27,6 +28,7 @@ #define lisdigit(x) (luai_ctype_[x] & MASK(DIGITBIT)) #define lisspace(x) (luai_ctype_[x] & MASK(SPACEBIT)) #define lisprint(x) (luai_ctype_[x] & MASK(PRINTBIT)) +#define lisxdigit(x) (luai_ctype_[x] & MASK(XDIGITBIT)) LUAI_DATA const char luai_ctype_[UCHAR_MAX + 1]; -- cgit v1.2.3-55-g6feb