diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-16 10:56:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-16 10:56:14 -0300 |
commit | f14662fca63652dc112732b899e3d829bfecb1ae (patch) | |
tree | be653b34e6ba57ed7a1b97aee010179f1005e015 /lmathlib.c | |
parent | a9af12bbe765dd2c60fa3d9d43013042fd3361a8 (diff) | |
download | lua-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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 | ||