| 12185 | |
| 12186 | |
| 12187 | static int read_number (lua_State *L, FILE *f) { |
| 12188 | lua_Number d; |
| 12189 | if (fscanf(f, LUA_NUMBER_SCAN, &d) == 1) { |
| 12190 | lua_pushnumber(L, d); |
| 12191 | return 1; |
| 12192 | } |
| 12193 | else return 0; /* read fails */ |
| 12194 | } |
| 12195 | |
| 12196 | |
| 12197 | static int test_eof (lua_State *L, FILE *f) { |
no test coverage detected