MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / save

Function save

deps/lua/src/llex.c:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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