aboutsummaryrefslogtreecommitdiff
path: root/mathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-02 14:03:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-02 14:03:33 -0300
commit3ec4f4eb86f1644c82d6a140b889de2c2a4f6d6a (patch)
tree68bdbb5cc932620817cf504b5b2e4ab327577c17 /mathlib.c
parent367139c6d952272cff1f114e7323299478681ffd (diff)
downloadlua-3ec4f4eb86f1644c82d6a140b889de2c2a4f6d6a.tar.gz
lua-3ec4f4eb86f1644c82d6a140b889de2c2a4f6d6a.tar.bz2
lua-3ec4f4eb86f1644c82d6a140b889de2c2a4f6d6a.zip
small corrections to avoid warnings.
Diffstat (limited to 'mathlib.c')
-rw-r--r--mathlib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mathlib.c b/mathlib.c
index dc3bc762..5f87a7fb 100644
--- a/mathlib.c
+++ b/mathlib.c
@@ -3,7 +3,7 @@
3** Mathematics library to LUA 3** Mathematics library to LUA
4*/ 4*/
5 5
6char *rcs_mathlib="$Id: mathlib.c,v 1.8 1995/01/04 18:49:54 roberto Exp $"; 6char *rcs_mathlib="$Id: mathlib.c,v 1.9 1995/02/06 19:36:43 roberto Exp roberto $";
7 7
8#include <stdio.h> /* NULL */ 8#include <stdio.h> /* NULL */
9#include <math.h> 9#include <math.h>
@@ -11,7 +11,9 @@ char *rcs_mathlib="$Id: mathlib.c,v 1.8 1995/01/04 18:49:54 roberto Exp $";
11#include "lualib.h" 11#include "lualib.h"
12#include "lua.h" 12#include "lua.h"
13 13
14#ifndef PI
14#define PI 3.14159265358979323846 15#define PI 3.14159265358979323846
16#endif
15#define TODEGREE(a) ((a)*180.0/PI) 17#define TODEGREE(a) ((a)*180.0/PI)
16#define TORAD(a) ((a)*PI/180.0) 18#define TORAD(a) ((a)*PI/180.0)
17 19