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 /ltests.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 'ltests.c')
-rw-r--r-- | ltests.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -225,7 +225,7 @@ static int get_limits (lua_State *L) { | |||
225 | 225 | ||
226 | 226 | ||
227 | static int mem_query (lua_State *L) { | 227 | static int mem_query (lua_State *L) { |
228 | if (lua_isnull(L, 1)) { | 228 | if (lua_isnone(L, 1)) { |
229 | lua_pushnumber(L, memdebug_total); | 229 | lua_pushnumber(L, memdebug_total); |
230 | lua_pushnumber(L, memdebug_numblocks); | 230 | lua_pushnumber(L, memdebug_numblocks); |
231 | lua_pushnumber(L, memdebug_maxmem); | 231 | lua_pushnumber(L, memdebug_maxmem); |
@@ -239,7 +239,7 @@ static int mem_query (lua_State *L) { | |||
239 | 239 | ||
240 | 240 | ||
241 | static int hash_query (lua_State *L) { | 241 | static int hash_query (lua_State *L) { |
242 | if (lua_isnull(L, 2)) { | 242 | if (lua_isnone(L, 2)) { |
243 | luaL_arg_check(L, lua_type(L, 1) == LUA_TSTRING, 1, "string expected"); | 243 | luaL_arg_check(L, lua_type(L, 1) == LUA_TSTRING, 1, "string expected"); |
244 | lua_pushnumber(L, tsvalue(luaA_index(L, 1))->tsv.hash); | 244 | lua_pushnumber(L, tsvalue(luaA_index(L, 1))->tsv.hash); |
245 | } | 245 | } |
@@ -335,7 +335,7 @@ static int unref (lua_State *L) { | |||
335 | 335 | ||
336 | static int eventtable (lua_State *L) { | 336 | static int eventtable (lua_State *L) { |
337 | luaL_check_any(L, 1); | 337 | luaL_check_any(L, 1); |
338 | if (lua_isnull(L, 2)) | 338 | if (lua_isnone(L, 2)) |
339 | lua_geteventtable(L, 1); | 339 | lua_geteventtable(L, 1); |
340 | else { | 340 | else { |
341 | lua_settop(L, 2); | 341 | lua_settop(L, 2); |
@@ -429,7 +429,7 @@ static int doremote (lua_State *L) { | |||
429 | } | 429 | } |
430 | else { | 430 | else { |
431 | int i = 0; | 431 | int i = 0; |
432 | while (!lua_isnull(L1, ++i)) | 432 | while (!lua_isnone(L1, ++i)) |
433 | lua_pushstring(L, lua_tostring(L1, i)); | 433 | lua_pushstring(L, lua_tostring(L1, i)); |
434 | lua_pop(L1, i-1); | 434 | lua_pop(L1, i-1); |
435 | return i-1; | 435 | return i-1; |
@@ -518,7 +518,7 @@ static int testC (lua_State *L) { | |||
518 | lua_pushnumber(L, lua_isnil(L, getnum)); | 518 | lua_pushnumber(L, lua_isnil(L, getnum)); |
519 | } | 519 | } |
520 | else if EQ("isnull") { | 520 | else if EQ("isnull") { |
521 | lua_pushnumber(L, lua_isnull(L, getnum)); | 521 | lua_pushnumber(L, lua_isnone(L, getnum)); |
522 | } | 522 | } |
523 | else if EQ("tonumber") { | 523 | else if EQ("tonumber") { |
524 | lua_pushnumber(L, lua_tonumber(L, getnum)); | 524 | lua_pushnumber(L, lua_tonumber(L, getnum)); |