diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-12-20 19:27:12 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-12-20 19:27:12 -0200 |
| commit | 09e15692f3a237e2858cc67e2e7f07c3e4c983e7 (patch) | |
| tree | 66a823c1419dcf0faa1f63ec2fba17ff09acf5b4 /liolib.c | |
| parent | 42754c0f15ded97342d3aa67f719e1962fab702a (diff) | |
| download | lua-09e15692f3a237e2858cc67e2e7f07c3e4c983e7.tar.gz lua-09e15692f3a237e2858cc67e2e7f07c3e4c983e7.tar.bz2 lua-09e15692f3a237e2858cc67e2e7f07c3e4c983e7.zip | |
rename of lua_isnull to lua_isnone
Diffstat (limited to 'liolib.c')
| -rw-r--r-- | liolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -177,7 +177,7 @@ static int io_tmpfile (lua_State *L) { | |||
| 177 | 177 | ||
| 178 | static int io_fromto (lua_State *L, int inout, const char *mode) { | 178 | static int io_fromto (lua_State *L, int inout, const char *mode) { |
| 179 | FILE *current; | 179 | FILE *current; |
| 180 | if (lua_isnull(L, 1)) { | 180 | if (lua_isnone(L, 1)) { |
| 181 | getopthandle(L, inout); | 181 | getopthandle(L, inout); |
| 182 | resetfile(L, inout); | 182 | resetfile(L, inout); |
| 183 | return io_close(L); | 183 | return io_close(L); |
| @@ -405,7 +405,7 @@ static int io_seek (lua_State *L) { | |||
| 405 | 405 | ||
| 406 | 406 | ||
| 407 | static int io_flush (lua_State *L) { | 407 | static int io_flush (lua_State *L) { |
| 408 | FILE *f = (lua_isnull(L, 1)) ? (FILE *)(NULL) : | 408 | FILE *f = (lua_isnone(L, 1)) ? (FILE *)(NULL) : |
| 409 | (FILE *)(luaL_check_userdata(L, 1, FILEHANDLE)); | 409 | (FILE *)(luaL_check_userdata(L, 1, FILEHANDLE)); |
| 410 | return pushresult(L, fflush(f) == 0); | 410 | return pushresult(L, fflush(f) == 0); |
| 411 | } | 411 | } |
| @@ -525,7 +525,7 @@ static int io_date (lua_State *L) { | |||
| 525 | 525 | ||
| 526 | 526 | ||
| 527 | static int io_time (lua_State *L) { | 527 | static int io_time (lua_State *L) { |
| 528 | if (lua_isnull(L, 1)) /* called without args? */ | 528 | if (lua_isnone(L, 1)) /* called without args? */ |
| 529 | lua_pushnumber(L, time(NULL)); /* return current time */ | 529 | lua_pushnumber(L, time(NULL)); /* return current time */ |
| 530 | else { | 530 | else { |
| 531 | time_t t; | 531 | time_t t; |
