MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaX_setinput

Function luaX_setinput

3rd/lua-5.4.3/src/llex.c:167–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source,
168 int firstchar) {
169 ls->t.token = 0;
170 ls->L = L;
171 ls->current = firstchar;
172 ls->lookahead.token = TK_EOS; /* no look-ahead token */
173 ls->z = z;
174 ls->fs = NULL;
175 ls->linenumber = 1;
176 ls->lastline = 1;
177 ls->source = source;
178 ls->envn = luaS_newliteral(L, LUA_ENV); /* get env name */
179 luaZ_resizebuffer(ls->L, ls->buff, LUA_MINBUFFER); /* initialize buffer */
180}
181
182
183

Callers 1

luaY_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected