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

Function save

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

Source from the content-addressed store, hash-verified

47
48
49static void save (LexState *ls, int c) {
50 Mbuffer *b = ls->buff;
51 if (luaZ_bufflen(b) + 1 > luaZ_sizebuffer(b)) {
52 size_t newsize;
53 if (luaZ_sizebuffer(b) >= MAX_SIZET/2)
54 lexerror(ls, "lexical element too long", 0);
55 newsize = luaZ_sizebuffer(b) * 2;
56 luaZ_resizebuffer(ls->L, b, newsize);
57 }
58 b->buffer[luaZ_bufflen(b)++] = cast(char, c);
59}
60
61
62void luaX_init (lua_State *L) {

Callers 5

txtTokenFunction · 0.70
read_numeralFunction · 0.70
read_long_stringFunction · 0.70
escerrorFunction · 0.70
read_stringFunction · 0.70

Calls 1

lexerrorFunction · 0.85

Tested by

no test coverage detected