diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 15:39:51 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 15:39:51 -0200 |
| commit | 7d1499ba88fbb9275b6e5dea6005a49ff15347dd (patch) | |
| tree | 3effbdda4848b26de22e12d8dd14d6c9e3da518b /lstrlib.c | |
| parent | 29ede6aa13144ff7b69c57a87be1ee93f57ae896 (diff) | |
| download | lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.tar.gz lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.tar.bz2 lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.zip | |
new macro luaL_openl
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.36 1999/11/11 16:45:04 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.37 1999/11/22 13:12:07 roberto Exp roberto $ |
| 3 | ** Standard library for strings and pattern-matching | 3 | ** Standard library for strings and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -614,7 +614,6 @@ static const struct luaL_reg strlib[] = { | |||
| 614 | /* | 614 | /* |
| 615 | ** Open string library | 615 | ** Open string library |
| 616 | */ | 616 | */ |
| 617 | void lua_strlibopen (lua_State *L) | 617 | void lua_strlibopen (lua_State *L) { |
| 618 | { | 618 | luaL_openl(L, strlib); |
| 619 | luaL_openlib(L, strlib, (sizeof(strlib)/sizeof(strlib[0]))); | ||
| 620 | } | 619 | } |
