From 70060bf627a4e7fd4d6573ffc340021d3074a696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Thu, 27 Nov 2014 15:11:26 +0000 Subject: [PATCH] move to eval.h --- C/parser.c | 8 -------- H/eval.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/C/parser.c b/C/parser.c index c6fe79b0b..a879d2aee 100755 --- a/C/parser.c +++ b/C/parser.c @@ -672,14 +672,6 @@ ParseList(read_data *rd, JMPBUFF *FailBuff USES_REGS) return (o); } -#ifndef INFINITY -#define INFINITY (1.0/0.0) -#endif - -#ifndef NAN -#define NAN (0.0/0.0) -#endif - static Term ParseTerm(read_data *rd, int prio, JMPBUFF *FailBuff USES_REGS) { diff --git a/H/eval.h b/H/eval.h index 143dce452..78f6a2c1b 100644 --- a/H/eval.h +++ b/H/eval.h @@ -138,6 +138,14 @@ exceptions: #define PLMAXINT Int_MAX #define PLMININT Int_MIN +#ifndef INFINITY +#define INFINITY (1.0/0.0) +#endif + +#ifndef NAN +#define NAN (0.0/0.0) +#endif + /** * @addtogroup arithmetic_operators * @enum arith0_op constant operators