MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / save

Function save

extlibs/lua/src/llex.c:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57static void save (LexState *ls, int c) {
58 Mbuffer *b = ls->buff;
59 if (luaZ_bufflen(b) + 1 > luaZ_sizebuffer(b)) {
60 size_t newsize;
61 if (luaZ_sizebuffer(b) >= MAX_SIZE/2)
62 lexerror(ls, "lexical element too long", 0);
63 newsize = luaZ_sizebuffer(b) * 2;
64 luaZ_resizebuffer(ls->L, b, newsize);
65 }
66 b->buffer[luaZ_bufflen(b)++] = cast_char(c);
67}
68
69
70void luaX_init (lua_State *L) {

Callers 5

txtTokenFunction · 0.85
read_numeralFunction · 0.85
read_long_stringFunction · 0.85
utf8escFunction · 0.85
read_stringFunction · 0.85

Calls 1

lexerrorFunction · 0.85

Tested by

no test coverage detected