Pārlūkot izejas kodu

detail (added placeholders for non-function fields to preallocate
space for them)

Roberto Ierusalimschy 11 gadi atpakaļ
vecāks
revīzija
f14662fca6
3 mainītis faili ar 16 papildinājumiem un 3 dzēšanām
  1. 6 1
      lmathlib.c
  2. 7 1
      loadlib.c
  3. 3 1
      lutf8lib.c

+ 6 - 1
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}
 };
 

+ 7 - 1
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}
 };
 

+ 3 - 1
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}
 };