From 5dfd17dd769d159a3b0722ddf82b385ff7271d53 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 13 Dec 1994 13:54:21 -0200 Subject: new API function 'lua_pushliteral' --- inout.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'inout.c') diff --git a/inout.c b/inout.c index 31859a82..0f879d60 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.12 1994/11/21 21:41:09 roberto Exp $"; +char *rcs_inout="$Id: inout.c,v 2.13 1994/11/23 14:32:00 roberto Stab $"; #include #include @@ -240,25 +240,25 @@ void luaI_type (void) switch (lua_type(o)) { case LUA_T_NIL : - lua_pushstring("nil"); + lua_pushliteral("nil"); break; case LUA_T_NUMBER : - lua_pushstring("number"); + lua_pushliteral("number"); break; case LUA_T_STRING : - lua_pushstring("string"); + lua_pushliteral("string"); break; case LUA_T_ARRAY : - lua_pushstring("table"); + lua_pushliteral("table"); break; case LUA_T_FUNCTION : - lua_pushstring("function"); + lua_pushliteral("function"); break; case LUA_T_CFUNCTION : - lua_pushstring("cfunction"); + lua_pushliteral("cfunction"); break; default : - lua_pushstring("userdata"); + lua_pushliteral("userdata"); break; } } -- cgit v1.2.3-55-g6feb