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

Function readdecesc

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

Source from the content-addressed store, hash-verified

324
325
326static int readdecesc (LexState *ls) {
327 int c[3], i;
328 int r = 0; /* result accumulator */
329 for (i = 0; i < 3 && lisdigit(ls->current); i++) { /* read up to 3 digits */
330 c[i] = ls->current;
331 r = 10*r + c[i] - '0';
332 next(ls);
333 }
334 if (r > UCHAR_MAX)
335 escerror(ls, c, i, "decimal escape too large");
336 return r;
337}
338
339
340static void read_string (LexState *ls, int del, SemInfo *seminfo) {

Callers 1

read_stringFunction · 0.85

Calls 2

nextFunction · 0.85
escerrorFunction · 0.85

Tested by

no test coverage detected