diff options
author | Iku <iku@yokattana.com> | 2017-02-09 16:02:43 +0100 |
---|---|---|
committer | Iku <iku@yokattana.com> | 2017-02-09 16:15:50 +0100 |
commit | 6990e160d645b373d55f195e28c5f837232c23c5 (patch) | |
tree | 9e81598870ef7fb6603cf7de3beaa61afe232fa8 /src/lex.c | |
parent | fae83fd2bb5f2128da81919874a11006d3f1a7a1 (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.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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); } |