diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-06-21 10:52:27 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-06-21 10:52:27 -0300 |
| commit | 8d3dd04137348b604ec9ebee87df84c8ef5fdced (patch) | |
| tree | 291dcb423b3f288145196334d8121dacfe1fa3fa /lmathlib.c | |
| parent | 791d8d858502f34204e0460c73e5eb6d340bcd92 (diff) | |
| download | lua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.tar.gz lua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.tar.bz2 lua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.zip | |
clearing some old compatibility code
Diffstat (limited to 'lmathlib.c')
| -rw-r--r-- | lmathlib.c | 6 |
1 files changed, 1 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lmathlib.c,v 1.68 2006/08/07 19:01:56 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.69 2007/03/27 12:37:00 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 | */ |
| @@ -258,10 +258,6 @@ LUALIB_API int luaopen_math (lua_State *L) { | |||
| 258 | lua_setfield(L, -2, "pi"); | 258 | lua_setfield(L, -2, "pi"); |
| 259 | lua_pushnumber(L, HUGE_VAL); | 259 | lua_pushnumber(L, HUGE_VAL); |
| 260 | lua_setfield(L, -2, "huge"); | 260 | lua_setfield(L, -2, "huge"); |
| 261 | #if defined(LUA_COMPAT_MOD) | ||
| 262 | lua_getfield(L, -1, "fmod"); | ||
| 263 | lua_setfield(L, -2, "mod"); | ||
| 264 | #endif | ||
| 265 | return 1; | 261 | return 1; |
| 266 | } | 262 | } |
| 267 | 263 | ||
