MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / readdecesc

Function readdecesc

libraries/AP_Scripting/lua/src/llex.c:355–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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