| 13098 | |
| 13099 | |
| 13100 | static int readable (const char *filename) { |
| 13101 | FILE *f = fopen(filename, "r"); /* try to open file */ |
| 13102 | if (f == NULL) return 0; /* open failed */ |
| 13103 | fclose(f); |
| 13104 | return 1; |
| 13105 | } |
| 13106 | |
| 13107 | |
| 13108 | static const char *pushnexttemplate (lua_State *L, const char *path) { |