| 330 | |
| 331 | |
| 332 | static int readable (const char *filename) { |
| 333 | FILE *f = fopen(filename, "r"); /* try to open file */ |
| 334 | if (f == NULL) return 0; /* open failed */ |
| 335 | fclose(f); |
| 336 | return 1; |
| 337 | } |
| 338 | |
| 339 | |
| 340 | static const char *pushnexttemplate (lua_State *L, const char *path) { |