summaryrefslogtreecommitdiff
path: root/inout.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-13 13:54:21 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-13 13:54:21 -0200
commit5dfd17dd769d159a3b0722ddf82b385ff7271d53 (patch)
tree5e4329c717d7276191c711a80ea9323bf0560a4c /inout.c
parentce4fb88b34421bc4426db7985314ba7ed757a284 (diff)
downloadlua-5dfd17dd769d159a3b0722ddf82b385ff7271d53.tar.gz
lua-5dfd17dd769d159a3b0722ddf82b385ff7271d53.tar.bz2
lua-5dfd17dd769d159a3b0722ddf82b385ff7271d53.zip
new API function 'lua_pushliteral'
Diffstat (limited to 'inout.c')
-rw-r--r--inout.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/inout.c b/inout.c
index 31859a82..0f879d60 100644
--- a/inout.c
+++ b/inout.c
@@ -5,7 +5,7 @@
5** Also provides some predefined lua functions. 5** Also provides some predefined lua functions.
6*/ 6*/
7 7
8char *rcs_inout="$Id: inout.c,v 2.12 1994/11/21 21:41:09 roberto Exp $"; 8char *rcs_inout="$Id: inout.c,v 2.13 1994/11/23 14:32:00 roberto Stab $";
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <stdlib.h> 11#include <stdlib.h>
@@ -240,25 +240,25 @@ void luaI_type (void)
240 switch (lua_type(o)) 240 switch (lua_type(o))
241 { 241 {
242 case LUA_T_NIL : 242 case LUA_T_NIL :
243 lua_pushstring("nil"); 243 lua_pushliteral("nil");
244 break; 244 break;
245 case LUA_T_NUMBER : 245 case LUA_T_NUMBER :
246 lua_pushstring("number"); 246 lua_pushliteral("number");
247 break; 247 break;
248 case LUA_T_STRING : 248 case LUA_T_STRING :
249 lua_pushstring("string"); 249 lua_pushliteral("string");
250 break; 250 break;
251 case LUA_T_ARRAY : 251 case LUA_T_ARRAY :
252 lua_pushstring("table"); 252 lua_pushliteral("table");
253 break; 253 break;
254 case LUA_T_FUNCTION : 254 case LUA_T_FUNCTION :
255 lua_pushstring("function"); 255 lua_pushliteral("function");
256 break; 256 break;
257 case LUA_T_CFUNCTION : 257 case LUA_T_CFUNCTION :
258 lua_pushstring("cfunction"); 258 lua_pushliteral("cfunction");
259 break; 259 break;
260 default : 260 default :
261 lua_pushstring("userdata"); 261 lua_pushliteral("userdata");
262 break; 262 break;
263 } 263 }
264} 264}