003 File Manager
Current Path:
/usr/src/sys/contrib/openzfs/module/lua
usr
/
src
/
sys
/
contrib
/
openzfs
/
module
/
lua
/
📁
..
📄
Makefile.in
(852 B)
📄
README.zfs
(3.38 KB)
📄
lapi.c
(30.73 KB)
📄
lapi.h
(583 B)
📄
lauxlib.c
(22.21 KB)
📄
lbaselib.c
(7.23 KB)
📄
lcode.c
(22.03 KB)
📄
lcode.h
(3.08 KB)
📄
lcompat.c
(1.43 KB)
📄
lcorolib.c
(3.59 KB)
📄
lctype.c
(2.26 KB)
📄
lctype.h
(1.83 KB)
📄
ldebug.c
(16.15 KB)
📄
ldebug.h
(1.1 KB)
📄
ldo.c
(22.2 KB)
📄
ldo.h
(1.53 KB)
📄
lfunc.c
(4.19 KB)
📄
lfunc.h
(1.06 KB)
📄
lgc.c
(36.9 KB)
📄
lgc.h
(5.31 KB)
📄
llex.c
(15.02 KB)
📄
llex.h
(2.18 KB)
📄
llimits.h
(7.73 KB)
📄
lmem.c
(2.61 KB)
📄
lmem.h
(1.79 KB)
📄
lobject.c
(7.68 KB)
📄
lobject.h
(14.62 KB)
📄
lopcodes.c
(3.04 KB)
📄
lopcodes.h
(8.32 KB)
📄
lparser.c
(45.19 KB)
📄
lparser.h
(3.29 KB)
📄
lstate.c
(7.54 KB)
📄
lstate.h
(7.46 KB)
📄
lstring.c
(4.85 KB)
📄
lstring.h
(1.28 KB)
📄
lstrlib.c
(28.3 KB)
📄
ltable.c
(16.18 KB)
📄
ltable.h
(1.42 KB)
📄
ltablib.c
(7.62 KB)
📄
ltm.c
(1.78 KB)
📄
ltm.h
(1.14 KB)
📄
lvm.c
(30.16 KB)
📄
lvm.h
(1.49 KB)
📄
lzio.c
(1.61 KB)
📄
lzio.h
(1.5 KB)
📁
setjmp
Editing: lctype.h
/* BEGIN CSTYLED */ /* ** $Id: lctype.h,v 1.12.1.1 2013/04/12 18:48:47 roberto Exp $ ** 'ctype' functions for Lua ** See Copyright Notice in lua.h */ #ifndef lctype_h #define lctype_h #include <sys/lua/lua.h> /* ** WARNING: the functions defined here do not necessarily correspond ** to the similar functions in the standard C ctype.h. They are ** optimized for the specific needs of Lua */ #if !defined(LUA_USE_CTYPE) #if 'A' == 65 && '0' == 48 /* ASCII case: can use its own tables; faster and fixed */ #define LUA_USE_CTYPE 0 #else /* must use standard C ctype */ #define LUA_USE_CTYPE 1 #endif #endif #if !LUA_USE_CTYPE /* { */ #include "llimits.h" #define ALPHABIT 0 #define DIGITBIT 1 #define PRINTBIT 2 #define SPACEBIT 3 #define XDIGITBIT 4 #define MASK(B) (1 << (B)) /* ** add 1 to char to allow index -1 (EOZ) */ #define testprop(c,p) (luai_ctype_[(lu_byte)(c)+1] & (p)) /* ** 'lalpha' (Lua alphabetic) and 'lalnum' (Lua alphanumeric) both include '_' */ #define lislalpha(c) testprop(c, MASK(ALPHABIT)) #define lislalnum(c) testprop(c, (MASK(ALPHABIT) | MASK(DIGITBIT))) #define lisdigit(c) testprop(c, MASK(DIGITBIT)) #define lisspace(c) testprop(c, MASK(SPACEBIT)) #define lisprint(c) testprop(c, MASK(PRINTBIT)) #define lisxdigit(c) testprop(c, MASK(XDIGITBIT)) /* ** this 'ltolower' only works for alphabetic characters */ #define ltolower(c) ((c) | ('A' ^ 'a')) /* two more entries for 0 and -1 (EOZ) */ LUAI_DDEC const lu_byte luai_ctype_[UCHAR_MAX + 2]; #else /* }{ */ /* ** use standard C ctypes */ #include <ctype.h> #define lislalpha(c) (isalpha(c) || (c) == '_') #define lislalnum(c) (isalnum(c) || (c) == '_') #define lisdigit(c) (isdigit(c)) #define lisspace(c) (isspace(c)) #define lisprint(c) (isprint(c)) #define lisxdigit(c) (isxdigit(c)) #define ltolower(c) (tolower(c)) #endif /* } */ #endif /* END CSTYLED */
Upload File
Create Folder