commit f14662fca63652dc112732b899e3d829bfecb1ae
parent a9af12bbe765dd2c60fa3d9d43013042fd3361a8
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 16 Jul 2014 10:55:49 -0300
detail (added placeholders for non-function fields to preallocate
space for them)
Diffstat:
3 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/lmathlib.c b/lmathlib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lmathlib.c,v 1.104 2014/06/26 18:38:28 roberto Exp roberto $
+** $Id: lmathlib.c,v 1.105 2014/06/30 19:48:08 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -363,6 +363,11 @@ static const luaL_Reg mathlib[] = {
{"ldexp", math_ldexp},
{"log10", math_log10},
#endif
+ /* placeholders */
+ {"pi", NULL},
+ {"huge", NULL},
+ {"maxinteger", NULL},
+ {"mininteger", NULL},
{NULL, NULL}
};
diff --git a/loadlib.c b/loadlib.c
@@ -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}
};
diff --git a/lutf8lib.c b/lutf8lib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lutf8lib.c,v 1.8 2014/04/11 18:19:07 roberto Exp roberto $
+** $Id: lutf8lib.c,v 1.9 2014/05/14 18:33:37 roberto Exp roberto $
** Standard library for UTF-8 manipulation
** See Copyright Notice in lua.h
*/
@@ -238,6 +238,8 @@ static struct luaL_Reg funcs[] = {
{"char", utfchar},
{"len", utflen},
{"codes", iter_codes},
+ /* placeholders */
+ {"charpatt", NULL},
{NULL, NULL}
};