detail (added placeholders for non-function fields to preallocate

space for them)
This commit is contained in:
Roberto Ierusalimschy
2014-07-16 10:56:14 -03:00
parent a9af12bbe7
commit f14662fca6
3 changed files with 16 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: loadlib.c,v 1.112 2013/10/07 14:20:31 roberto Exp roberto $
** $Id: loadlib.c,v 1.113 2014/03/12 20:57:40 roberto Exp roberto $
** Dynamic library loader for Lua
** See Copyright Notice in lua.h
**
@@ -655,6 +655,12 @@ static const luaL_Reg pk_funcs[] = {
#if defined(LUA_COMPAT_MODULE)
{"seeall", ll_seeall},
#endif
/* placeholders */
{"preload", NULL},
{"cpath", NULL},
{"path", NULL},
{"searchers", NULL},
{"loaded", NULL},
{NULL, NULL}
};