aboutsummaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-16 10:56:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-16 10:56:14 -0300
commitf14662fca63652dc112732b899e3d829bfecb1ae (patch)
treebe653b34e6ba57ed7a1b97aee010179f1005e015 /lmathlib.c
parenta9af12bbe765dd2c60fa3d9d43013042fd3361a8 (diff)
downloadlua-f14662fca63652dc112732b899e3d829bfecb1ae.tar.gz
lua-f14662fca63652dc112732b899e3d829bfecb1ae.tar.bz2
lua-f14662fca63652dc112732b899e3d829bfecb1ae.zip
detail (added placeholders for non-function fields to preallocate
space for them)
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lmathlib.c b/lmathlib.c
index bdbb0aa1..61800799 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.104 2014/06/26 18:38:28 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.105 2014/06/30 19:48:08 roberto Exp roberto $
3** Standard mathematical library 3** Standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -363,6 +363,11 @@ static const luaL_Reg mathlib[] = {
363 {"ldexp", math_ldexp}, 363 {"ldexp", math_ldexp},
364 {"log10", math_log10}, 364 {"log10", math_log10},
365#endif 365#endif
366 /* placeholders */
367 {"pi", NULL},
368 {"huge", NULL},
369 {"maxinteger", NULL},
370 {"mininteger", NULL},
366 {NULL, NULL} 371 {NULL, NULL}
367}; 372};
368 373