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: lmem.h
/* BEGIN CSTYLED */ /* ** $Id: lmem.h,v 1.40.1.1 2013/04/12 18:48:47 roberto Exp $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ #ifndef lmem_h #define lmem_h #include "llimits.h" #include <sys/lua/lua.h> /* ** This macro avoids the runtime division MAX_SIZET/(e), as 'e' is ** always constant. ** The macro is somewhat complex to avoid warnings: ** +1 avoids warnings of "comparison has constant result"; ** cast to 'void' avoids warnings of "value unused". */ #define luaM_reallocv(L,b,on,n,e) \ (cast(void, \ (cast(size_t, (n)+1) > MAX_SIZET/(e)) ? (luaM_toobig(L), 0) : 0), \ luaM_realloc_(L, (b), (on)*(e), (n)*(e))) #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) #define luaM_freearray(L, b, n) luaM_reallocv(L, (b), n, 0, sizeof((b)[0])) #define luaM_malloc(L,s) luaM_realloc_(L, NULL, 0, (s)) #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) #define luaM_newvector(L,n,t) \ cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) #define luaM_newobject(L,tag,s) luaM_realloc_(L, NULL, tag, (s)) #define luaM_growvector(L,v,nelems,size,t,limit,e) \ if ((nelems)+1 > (size)) \ ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) #define luaM_reallocvector(L, v,oldn,n,t) \ ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) LUAI_FUNC l_noret luaM_toobig (lua_State *L); /* not to be called directly */ LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, size_t size); LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elem, int limit, const char *what); #endif /* END CSTYLED */
Upload File
Create Folder