From 3ec9ee0d0f81fd0aabaef1303f971b2f7ee12315 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 30 Apr 1996 18:13:55 -0300 Subject: new function "luaI_openlib" to help open libs. --- strlib.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'strlib.c') diff --git a/strlib.c b/strlib.c index 9d084b36..a3467050 100644 --- a/strlib.c +++ b/strlib.c @@ -3,7 +3,7 @@ ** String library to LUA */ -char *rcs_strlib="$Id: strlib.c,v 1.21 1996/03/21 22:18:08 roberto Exp roberto $"; +char *rcs_strlib="$Id: strlib.c,v 1.22 1996/03/22 17:57:24 roberto Exp roberto $"; #include #include @@ -249,16 +249,28 @@ static void str_format (void) } +void luaI_openlib (struct lua_reg *l, int n) +{ + int i; + for (i=0; i