aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-09-08 16:25:35 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-09-08 16:25:35 -0300
commit4ccfb2f9bc1db4457f27a63997d869e995292cc6 (patch)
tree406608837591bbef1541607b955c9ce49c4865d7
parentce9609296ce5d761e58af4cccdab6ca925613bea (diff)
downloadlua-4ccfb2f9bc1db4457f27a63997d869e995292cc6.tar.gz
lua-4ccfb2f9bc1db4457f27a63997d869e995292cc6.tar.bz2
lua-4ccfb2f9bc1db4457f27a63997d869e995292cc6.zip
"_TRIGMODE" was still being declared.
-rw-r--r--lmathlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lmathlib.c b/lmathlib.c
index c62b88c4..181ee8d4 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -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[] = {
204void lua_mathlibopen (void) 204void 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");