| 275 | |
| 276 | |
| 277 | static int read_number (lua_State *L, FILE *f) { |
| 278 | lua_Number d; |
| 279 | if (fscanf(f, LUA_NUMBER_SCAN, &d) == 1) { |
| 280 | lua_pushnumber(L, d); |
| 281 | return 1; |
| 282 | } |
| 283 | else return 0; /* read fails */ |
| 284 | } |
| 285 | |
| 286 | |
| 287 | static int test_eof (lua_State *L, FILE *f) { |
no test coverage detected