aboutsummaryrefslogtreecommitdiff
path: root/lctype.h
diff options
context:
space:
mode:
Diffstat (limited to 'lctype.h')
-rw-r--r--lctype.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lctype.h b/lctype.h
index 21ef8fd1..89dbbd8d 100644
--- a/lctype.h
+++ b/lctype.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: $ 2** $Id: lctype.h,v 1.1 2009/02/19 17:18:25 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*/
@@ -22,13 +22,13 @@
22#define MASK(B) (1 << (B)) 22#define MASK(B) (1 << (B))
23 23
24 24
25#define lisalpha(x) (lctypecode[x] & MASK(ALPHABIT)) 25#define lisalpha(x) (luai_ctype_[x] & MASK(ALPHABIT))
26#define lisalnum(x) (lctypecode[x] & (MASK(ALPHABIT) | MASK(DIGITBIT))) 26#define lisalnum(x) (luai_ctype_[x] & (MASK(ALPHABIT) | MASK(DIGITBIT)))
27#define lisdigit(x) (lctypecode[x] & MASK(DIGITBIT)) 27#define lisdigit(x) (luai_ctype_[x] & MASK(DIGITBIT))
28#define lisspace(x) (lctypecode[x] & MASK(SPACEBIT)) 28#define lisspace(x) (luai_ctype_[x] & MASK(SPACEBIT))
29#define lisprint(x) (lctypecode[x] & MASK(PRINTBIT)) 29#define lisprint(x) (luai_ctype_[x] & MASK(PRINTBIT))
30 30
31LUAI_DATA const char lctypecode[UCHAR_MAX + 1]; 31LUAI_DATA const char luai_ctype_[UCHAR_MAX + 1];
32 32
33#endif 33#endif
34 34