From 7d1499ba88fbb9275b6e5dea6005a49ff15347dd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 22 Nov 1999 15:39:51 -0200 Subject: new macro luaL_openl --- lstrlib.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index c973d0e4..4f67a72c 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.36 1999/11/11 16:45:04 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.37 1999/11/22 13:12:07 roberto Exp roberto $ ** Standard library for strings and pattern-matching ** See Copyright Notice in lua.h */ @@ -614,7 +614,6 @@ static const struct luaL_reg strlib[] = { /* ** Open string library */ -void lua_strlibopen (lua_State *L) -{ - luaL_openlib(L, strlib, (sizeof(strlib)/sizeof(strlib[0]))); +void lua_strlibopen (lua_State *L) { + luaL_openl(L, strlib); } -- cgit v1.2.3-55-g6feb