| 598 | |
| 599 | |
| 600 | static void checklocal (const char *line) { |
| 601 | static const size_t szloc = sizeof("local") - 1; |
| 602 | static const char space[] = " \t"; |
| 603 | line += strspn(line, space); /* skip spaces */ |
| 604 | if (strncmp(line, "local", szloc) == 0 && /* "local"? */ |
| 605 | strchr(space, *(line + szloc)) != NULL) { /* followed by a space? */ |
| 606 | lua_writestringerror("%s\n", |
| 607 | "warning: locals do not survive across lines in interactive mode"); |
| 608 | } |
| 609 | } |
| 610 | |
| 611 | |
| 612 | /* |