MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / save

Function save

lua/llex.c:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53static void save (LexState *ls, int c) {
54 Mbuffer *b = ls->buff;
55 if (b->n + 1 > b->buffsize) {
56 size_t newsize;
57 if (b->buffsize >= MAX_SIZET/2)
58 luaX_lexerror(ls, "lexical element too long", 0);
59 newsize = b->buffsize * 2;
60 luaZ_resizebuffer(ls->L, b, newsize);
61 }
62 b->buffer[b->n++] = cast(char, c);
63}
64
65
66void luaX_init (lua_State *L) {

Callers 4

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

Calls 1

luaX_lexerrorFunction · 0.85

Tested by

no test coverage detected