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

Function inclinenumber

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

Source from the content-addressed store, hash-verified

127
128
129static void inclinenumber (LexState *ls) {
130 int old = ls->current;
131 lua_assert(currIsNewline(ls));
132 next(ls); /* skip `\n' or `\r' */
133 if (currIsNewline(ls) && ls->current != old)
134 next(ls); /* skip `\n\r' or `\r\n' */
135 if (++ls->linenumber >= MAX_INT)
136 luaX_syntaxerror(ls, "chunk has too many lines");
137}
138
139
140void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source) {

Callers 3

read_long_stringFunction · 0.70
read_stringFunction · 0.70
llexFunction · 0.70

Calls 2

nextFunction · 0.85
luaX_syntaxerrorFunction · 0.70

Tested by

no test coverage detected