| 419 | |
| 420 | |
| 421 | static int readable (const char *filename) { |
| 422 | FILE *f = fopen(filename, "r"); /* try to open file */ |
| 423 | if (f == NULL) return 0; /* open failed */ |
| 424 | fclose(f); |
| 425 | return 1; |
| 426 | } |
| 427 | |
| 428 | |
| 429 | static const char *pushnexttemplate (lua_State *L, const char *path) { |