summaryrefslogtreecommitdiffstats
path: root/src/lex.c
diff options
context:
space:
mode:
authorIku <iku@yokattana.com>2017-02-09 16:02:43 +0100
committerIku <iku@yokattana.com>2017-02-09 16:15:50 +0100
commit6990e160d645b373d55f195e28c5f837232c23c5 (patch)
tree9e81598870ef7fb6603cf7de3beaa61afe232fa8 /src/lex.c
parentfae83fd2bb5f2128da81919874a11006d3f1a7a1 (diff)
Simplify Makefile, removing some old options
The variable + CFLAGS pattern FOO = x CFLAGS := $(CFLAGS) -DFOO=$(FOO) is replaced by updating CFLAGS directly: CFLAGS += -DFOO=x This keeps the Makefile a bit shorter and more manageable. Some other options have been removed because they aren't needed any more, like regex configurations for very old systems and IEEE_MATH. CC is no longer set by the Makefile. It has a default value set by make or the system and can be adjusted in the Makefile or by passing an argument to make: `make CC=clang`
Diffstat (limited to 'src/lex.c')
-rw-r--r--src/lex.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lex.c b/src/lex.c
index fc63bd4..ee28b01 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -1,10 +1,6 @@
#include <sys/types.h>
#include <string.h>
-#ifdef IEEE_MATH
- #include <ieeefp.h>
-#endif /* IEEE_MATH */
-
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
@@ -32,10 +28,6 @@ void fpe_trap(int signo) {
#if defined(i386)
asm(" fnclex");
asm(" fwait");
-#else
- #ifdef IEEE_MATH
- (void)fpsetsticky((fp_except)0); /* Clear exception */
- #endif /* IEEE_MATH */
#endif
longjmp(fpe_buf, 1);
}