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

Function luaX_init

freebsd/contrib/openzfs/module/lua/llex.c:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62void luaX_init (lua_State *L) {
63 int i;
64 for (i=0; i<NUM_RESERVED; i++) {
65 TString *ts = luaS_new(L, luaX_tokens[i]);
66 luaS_fix(ts); /* reserved words are never collected */
67 ts->tsv.extra = cast_byte(i+1); /* reserved word */
68 }
69}
70
71
72const char *luaX_token2str (LexState *ls, int token) {

Callers 1

f_luaopenFunction · 0.70

Calls 1

luaS_newFunction · 0.85

Tested by

no test coverage detected