From 6dfdb765388da481a7020e44e7cfb253f9751699 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 12 Jul 1996 17:00:26 -0300 Subject: C functions don't need to "pushnil" to return nil value (this is the default value). --- inout.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'inout.c') diff --git a/inout.c b/inout.c index 9850974e..1d618596 100644 --- a/inout.c +++ b/inout.c @@ -5,7 +5,7 @@ ** Also provides some predefined lua functions. */ -char *rcs_inout="$Id: inout.c,v 2.36 1996/03/19 22:28:37 roberto Exp roberto $"; +char *rcs_inout="$Id: inout.c,v 2.37 1996/05/28 21:07:32 roberto Exp $"; #include @@ -113,8 +113,6 @@ void lua_internaldostring (void) lua_Object obj = lua_getparam (1); if (lua_isstring(obj) && !lua_dostring(lua_getstring(obj))) lua_pushnumber(1); - else - lua_pushnil(); } /* @@ -131,8 +129,6 @@ void lua_internaldofile (void) /* else fname = NULL */ if (!lua_dofile(fname)) lua_pushnumber(1); - else - lua_pushnil(); } @@ -218,8 +214,6 @@ void lua_obj2number (void) lua_Object o = lua_getparam(1); if (lua_isnumber(o)) lua_pushnumber(lua_getnumber(o)); - else - lua_pushnil(); } -- cgit v1.2.3-55-g6feb