diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-09-08 16:25:35 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-09-08 16:25:35 -0300 |
commit | 4ccfb2f9bc1db4457f27a63997d869e995292cc6 (patch) | |
tree | 406608837591bbef1541607b955c9ce49c4865d7 | |
parent | ce9609296ce5d761e58af4cccdab6ca925613bea (diff) | |
download | lua-4ccfb2f9bc1db4457f27a63997d869e995292cc6.tar.gz lua-4ccfb2f9bc1db4457f27a63997d869e995292cc6.tar.bz2 lua-4ccfb2f9bc1db4457f27a63997d869e995292cc6.zip |
"_TRIGMODE" was still being declared.
-rw-r--r-- | lmathlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmathlib.c,v 1.9 1998/05/27 19:09:39 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.10 1998/06/19 16:14:09 roberto Exp roberto $ |
3 | ** Lua standard mathematical library | 3 | ** Lua standard mathematical library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -204,7 +204,6 @@ static struct luaL_reg mathlib[] = { | |||
204 | void lua_mathlibopen (void) | 204 | void lua_mathlibopen (void) |
205 | { | 205 | { |
206 | luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); | 206 | luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); |
207 | lua_pushstring("deg"); lua_setglobal("_TRIGMODE"); | ||
208 | lua_pushcfunction(math_pow); | 207 | lua_pushcfunction(math_pow); |
209 | lua_pushnumber(0); /* to get its tag */ | 208 | lua_pushnumber(0); /* to get its tag */ |
210 | lua_settagmethod(lua_tag(lua_pop()), "pow"); | 209 | lua_settagmethod(lua_tag(lua_pop()), "pow"); |