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