MCPcopy Create free account
hub / github.com/DFHack/dfhack / readdecesc

Function readdecesc

depends/lua/src/llex.c:356–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355
356static int readdecesc (LexState *ls) {
357 int i;
358 int r = 0; /* result accumulator */
359 for (i = 0; i < 3 && lisdigit(ls->current); i++) { /* read up to 3 digits */
360 r = 10*r + ls->current - '0';
361 save_and_next(ls);
362 }
363 esccheck(ls, r <= UCHAR_MAX, "decimal escape too large");
364 luaZ_buffremove(ls->buff, i); /* remove read digits from buffer */
365 return r;
366}
367
368
369static void read_string (LexState *ls, int del, SemInfo *seminfo) {

Callers 1

read_stringFunction · 0.85

Calls 1

esccheckFunction · 0.85

Tested by

no test coverage detected