| 1330 | } |
| 1331 | |
| 1332 | static const char *getstring_aux (lua_State *L, char *buff, const char **pc) { |
| 1333 | int i = 0; |
| 1334 | skip(pc); |
| 1335 | if (**pc == '"' || **pc == '\'') { /* quoted string? */ |
| 1336 | int quote = *(*pc)++; |
| 1337 | while (**pc != quote) { |
| 1338 | if (**pc == '\0') luaL_error(L, "unfinished string in C script"); |
| 1339 | buff[i++] = *(*pc)++; |
| 1340 | } |
| 1341 | (*pc)++; |
| 1342 | } |
| 1343 | else { |
| 1344 | while (**pc != '\0' && !strchr(delimits, **pc)) |
| 1345 | buff[i++] = *(*pc)++; |
| 1346 | } |
| 1347 | buff[i] = '\0'; |
| 1348 | return buff; |
| 1349 | } |
| 1350 | |
| 1351 | |
| 1352 | static int getindex_aux (lua_State *L, lua_State *L1, const char **pc) { |
nothing calls this directly
no test coverage detected