summaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-20 19:27:12 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-20 19:27:12 -0200
commit09e15692f3a237e2858cc67e2e7f07c3e4c983e7 (patch)
tree66a823c1419dcf0faa1f63ec2fba17ff09acf5b4 /lbaselib.c
parent42754c0f15ded97342d3aa67f719e1962fab702a (diff)
downloadlua-09e15692f3a237e2858cc67e2e7f07c3e4c983e7.tar.gz
lua-09e15692f3a237e2858cc67e2e7f07c3e4c983e7.tar.bz2
lua-09e15692f3a237e2858cc67e2e7f07c3e4c983e7.zip
rename of lua_isnull to lua_isnone
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 8f53a0d9..77656e12 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -137,7 +137,7 @@ static int luaB_getglobal (lua_State *L) {
137 137
138static int luaB_eventtable (lua_State *L) { 138static int luaB_eventtable (lua_State *L) {
139 luaL_check_type(L, 1, LUA_TTABLE); 139 luaL_check_type(L, 1, LUA_TTABLE);
140 if (lua_isnull(L, 2)) 140 if (lua_isnone(L, 2))
141 lua_geteventtable(L, 1); 141 lua_geteventtable(L, 1);
142 else { 142 else {
143 lua_settop(L, 2); 143 lua_settop(L, 2);
@@ -174,7 +174,7 @@ static int luaB_weakmode (lua_State *L) {
174 174
175static int luaB_globals (lua_State *L) { 175static int luaB_globals (lua_State *L) {
176 lua_getglobals(L); /* value to be returned */ 176 lua_getglobals(L); /* value to be returned */
177 if (!lua_isnull(L, 1)) { 177 if (!lua_isnone(L, 1)) {
178 luaL_check_type(L, 1, LUA_TTABLE); 178 luaL_check_type(L, 1, LUA_TTABLE);
179 lua_pushvalue(L, 1); /* new table of globals */ 179 lua_pushvalue(L, 1); /* new table of globals */
180 lua_setglobals(L); 180 lua_setglobals(L);
@@ -213,7 +213,7 @@ static int luaB_collectgarbage (lua_State *L) {
213 213
214static int luaB_type (lua_State *L) { 214static int luaB_type (lua_State *L) {
215 luaL_check_any(L, 1); 215 luaL_check_any(L, 1);
216 if (lua_isnull(L, 2)) 216 if (lua_isnone(L, 2))
217 lua_pushstring(L, lua_typename(L, lua_type(L, 1))); 217 lua_pushstring(L, lua_typename(L, lua_type(L, 1)));
218 else { 218 else {
219 lua_pushboolean(L, 219 lua_pushboolean(L,
@@ -362,7 +362,7 @@ static int luaB_call (lua_State *L) {
362 int err = 0; /* index of old error method */ 362 int err = 0; /* index of old error method */
363 int status; 363 int status;
364 int n; 364 int n;
365 if (!lua_isnull(L, 4)) { /* set new error method */ 365 if (!lua_isnone(L, 4)) { /* set new error method */
366 lua_getglobal(L, LUA_ERRORMESSAGE); 366 lua_getglobal(L, LUA_ERRORMESSAGE);
367 err = lua_gettop(L); /* get index */ 367 err = lua_gettop(L); /* get index */
368 lua_pushvalue(L, 4); 368 lua_pushvalue(L, 4);
@@ -618,7 +618,7 @@ static int luaB_sort (lua_State *L) {
618 int n; 618 int n;
619 luaL_check_type(L, 1, LUA_TTABLE); 619 luaL_check_type(L, 1, LUA_TTABLE);
620 n = lua_getn(L, 1); 620 n = lua_getn(L, 1);
621 if (!lua_isnull(L, 2)) /* is there a 2nd argument? */ 621 if (!lua_isnone(L, 2)) /* is there a 2nd argument? */
622 luaL_check_type(L, 2, LUA_TFUNCTION); 622 luaL_check_type(L, 2, LUA_TFUNCTION);
623 lua_settop(L, 2); /* make sure there is two arguments */ 623 lua_settop(L, 2); /* make sure there is two arguments */
624 auxsort(L, 1, n); 624 auxsort(L, 1, n);