MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / save

Function save

Source/Misc/lua/src/lua.c:6764–6774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6762
6763
6764static void save (LexState *ls, int c) {
6765Mbuffer *b = ls->buff;
6766if (b->n + 1 > b->buffsize) {
6767size_t newsize;
6768if (b->buffsize >= MAX_SIZET/2)
6769luaX_lexerror(ls, "lexical element too long", 0);
6770newsize = b->buffsize * 2;
6771luaZ_resizebuffer(ls->L, b, newsize);
6772}
6773b->buffer[b->n++] = cast(char, c);
6774}
6775
6776
6777void luaX_init (lua_State *L) {

Callers 6

txtTokenFunction · 0.70
read_numeralFunction · 0.70
read_long_stringFunction · 0.70
read_stringFunction · 0.70
menuItemSelectedMethod · 0.50
restoreStateMethod · 0.50

Calls 1

luaX_lexerrorFunction · 0.85

Tested by

no test coverage detected