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