mirror of
https://github.com/lua/lua
synced 2024-11-25 22:29:39 +03:00
type of 'luai_ctype_' array changed to unsigned (safer for bitwise
operations)
This commit is contained in:
parent
eea6d10866
commit
139d562861
4
lctype.c
4
lctype.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lctype.c,v 1.5 2009/03/26 18:53:52 roberto Exp roberto $
|
** $Id: lctype.c,v 1.6 2009/05/18 17:15:14 roberto Exp roberto $
|
||||||
** 'ctype' functions for Lua
|
** 'ctype' functions for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "lctype.h"
|
#include "lctype.h"
|
||||||
|
|
||||||
const char luai_ctype_[UCHAR_MAX + 2] = {
|
const lu_byte luai_ctype_[UCHAR_MAX + 2] = {
|
||||||
0x00, /* EOZ */
|
0x00, /* EOZ */
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00,
|
0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00,
|
||||||
|
6
lctype.h
6
lctype.h
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lctype.h,v 1.5 2009/03/26 18:53:52 roberto Exp roberto $
|
** $Id: lctype.h,v 1.6 2009/05/18 17:15:14 roberto Exp roberto $
|
||||||
** 'ctype' functions for Lua
|
** 'ctype' functions for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include "lua.h"
|
#include "lua.h"
|
||||||
|
|
||||||
|
#include "llimits.h"
|
||||||
|
|
||||||
|
|
||||||
#define ALPHABIT 0
|
#define ALPHABIT 0
|
||||||
#define DIGITBIT 1
|
#define DIGITBIT 1
|
||||||
@ -42,7 +44,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* one more entry for 0 and one more for -1 (EOZ) */
|
/* one more entry for 0 and one more for -1 (EOZ) */
|
||||||
LUAI_DATA const char luai_ctype_[UCHAR_MAX + 2];
|
LUAI_DATA const lu_byte luai_ctype_[UCHAR_MAX + 2];
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user