From ca7be1cfeb7864df4fa7d58c9314894b14942871 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Jan 1996 10:11:28 -0200 Subject: elimination of function "int2str", as it can be replaced by "format('%c', .)" --- strlib.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/strlib.c b/strlib.c index b9d9ed71..7f4bab1c 100644 --- a/strlib.c +++ b/strlib.c @@ -3,7 +3,7 @@ ** String library to LUA */ -char *rcs_strlib="$Id: strlib.c,v 1.14 1995/11/10 17:54:31 roberto Exp roberto $"; +char *rcs_strlib="$Id: strlib.c,v 1.15 1996/01/22 17:38:57 roberto Exp roberto $"; #include #include @@ -167,18 +167,6 @@ static void str_ascii (void) lua_pushnumber(s[pos]); } -/* -** converts one or more integers to chars in a string -*/ -static void str_int2str (void) -{ - int i = 0; - luaI_addchar(0); - while (lua_getparam(++i) != LUA_NOOBJECT) - luaI_addchar((int)lua_check_number(i, "int2str")); - lua_pushstring(luaI_addchar(0)); -} - #define MAX_CONVERTION 2000 #define MAX_FORMAT 50 @@ -256,6 +244,5 @@ void strlib_open (void) lua_register ("strlower", str_lower); lua_register ("strupper", str_upper); lua_register ("ascii", str_ascii); - lua_register ("int2str", str_int2str); lua_register ("format", io_format); } -- cgit v1.2.3-55-g6feb