From 28b3017baff1778bd31c3e4d45b8ac676035d1a9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 9 Oct 1995 10:06:20 -0300 Subject: [PATCH] lua function "type" now returns the string "function" both for lua functions and c functions. --- inout.c | 6 ++---- 1 file 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 @@ ** Also provides some predefined lua functions. */ -char *rcs_inout="$Id: inout.c,v 2.20 1995/05/16 17:23:58 roberto Exp $"; +char *rcs_inout="$Id: inout.c,v 2.21 1995/10/04 14:20:26 roberto Exp roberto $"; #include #include @@ -258,10 +258,8 @@ void luaI_type (void) lua_pushliteral("table"); break; case LUA_T_FUNCTION : - lua_pushliteral("function"); - break; case LUA_T_CFUNCTION : - lua_pushliteral("cfunction"); + lua_pushliteral("function"); break; default : lua_pushliteral("userdata");