aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-09 10:06:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-09 10:06:20 -0300
commit28b3017baff1778bd31c3e4d45b8ac676035d1a9 (patch)
treeb58f78017425ea9a63536f8c4420f49e184d6901
parentae808860ae57ac5287e6950895cf45378cc90235 (diff)
downloadlua-28b3017baff1778bd31c3e4d45b8ac676035d1a9.tar.gz
lua-28b3017baff1778bd31c3e4d45b8ac676035d1a9.tar.bz2
lua-28b3017baff1778bd31c3e4d45b8ac676035d1a9.zip
lua function "type" now returns the string "function" both for lua
functions and c functions.
-rw-r--r--inout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/inout.c b/inout.c
index cfcd224e..6a42266b 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.20 1995/05/16 17:23:58 roberto Exp $"; 8char *rcs_inout="$Id: inout.c,v 2.21 1995/10/04 14:20:26 roberto Exp roberto $";
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <stdlib.h> 11#include <stdlib.h>
@@ -258,10 +258,8 @@ void luaI_type (void)
258 lua_pushliteral("table"); 258 lua_pushliteral("table");
259 break; 259 break;
260 case LUA_T_FUNCTION : 260 case LUA_T_FUNCTION :
261 lua_pushliteral("function");
262 break;
263 case LUA_T_CFUNCTION : 261 case LUA_T_CFUNCTION :
264 lua_pushliteral("cfunction"); 262 lua_pushliteral("function");
265 break; 263 break;
266 default : 264 default :
267 lua_pushliteral("userdata"); 265 lua_pushliteral("userdata");