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