| 236 | |
| 237 | |
| 238 | static void aux_lines (lua_State *L, int idx, int toclose) { |
| 239 | lua_pushvalue(L, idx); |
| 240 | lua_pushboolean(L, toclose); /* close/not close file when finished */ |
| 241 | lua_pushcclosure(L, io_readline, 2); |
| 242 | } |
| 243 | |
| 244 | |
| 245 | static int f_lines (lua_State *L) { |
no test coverage detected