Use names defined in lualib.h for library registration.

This commit is contained in:
Mike Pall
2011-02-02 02:38:59 +01:00
parent 1505d6ffde
commit 2c8945d3e7
11 changed files with 17 additions and 19 deletions

View File

@@ -791,7 +791,7 @@ LUALIB_API int luaopen_string(lua_State *L)
{
GCtab *mt;
global_State *g;
LJ_LIB_REG(L, string);
LJ_LIB_REG(L, LUA_STRLIBNAME, string);
#if defined(LUA_COMPAT_GFIND)
lua_getfield(L, -1, "gmatch");
lua_setfield(L, -2, "gfind");