MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaX_init

Function luaX_init

app/redis-6.2.6/deps/lua/src/llex.c:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63
64void luaX_init (lua_State *L) {
65 int i;
66 for (i=0; i<NUM_RESERVED; i++) {
67 TString *ts = luaS_new(L, luaX_tokens[i]);
68 luaS_fix(ts); /* reserved words are never collected */
69 lua_assert(strlen(luaX_tokens[i])+1 <= TOKEN_LEN);
70 ts->tsv.reserved = cast_byte(i+1); /* reserved word */
71 }
72}
73
74
75#define MAXSRC 80

Callers 1

f_luaopenFunction · 0.70

Calls 1

luaS_newFunction · 0.85

Tested by

no test coverage detected