From 5578d004bc3647a9705feaae025706bfff2688d0 Mon Sep 17 00:00:00 2001 From: dick Date: Mon, 3 Oct 1988 14:44:39 +0000 Subject: [PATCH] simplification of e.out.h --- util/int/ChangeLog | 4 ++++ util/int/Makefile | 7 +++++-- util/int/e.out.h | 8 -------- util/int/read.c | 6 ++++-- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/util/int/ChangeLog b/util/int/ChangeLog index 6600de966..9995a6e1e 100644 --- a/util/int/ChangeLog +++ b/util/int/ChangeLog @@ -1,3 +1,7 @@ + 3-Oct-88 Dick Grune (dick) at dick + Since the definitions of VERSION and MAGIC are now available from + standard include files, e.out.h can be simplified. + 27-May-88 Dick Grune (dick) at dick Testing with the UNIX system call tester by Leonie van der Voort revealed a few errors: when length was negative in a call of read diff --git a/util/int/Makefile b/util/int/Makefile index 49207b4e6..6826aea5f 100644 --- a/util/int/Makefile +++ b/util/int/Makefile @@ -8,6 +8,9 @@ LFLAGS = # # passed to loader IDIRS = -I$(EM)/h# # passed to C compiler and lint +LINT = lint# # lint to be used +LINTFLAGS = -h# # passed to lint + INT = ./int# # name of resulting interpreter IP_SPEC = $(EM)/etc/ip_spec.t @@ -92,8 +95,8 @@ test/awa.em44: # Auxiliary entries -lint: - lint $(IDIRS) $(SRC) -lc +lint: $(SRC) trap_msg warn_msg warn.h switch/DoCases switch/PrCases + $(LINT) $(LINTFLAGS) $(IDIRS) $(SRC) -lc tags: $(HDR) $(SRC) ctags $(HDR) $(SRC) diff --git a/util/int/e.out.h b/util/int/e.out.h index 8f769e60e..abd11ee21 100644 --- a/util/int/e.out.h +++ b/util/int/e.out.h @@ -1,13 +1,5 @@ /* $Header$ */ -/* get version number from ... */ -#include - -/* get magic number from ... */ -#include -#include -#define MAGIC as_magic - #define FB_TEST 001 #define FB_PROFILE 002 #define FB_FLOW 004 diff --git a/util/int/read.c b/util/int/read.c index e12271aa1..0dbe5af6f 100644 --- a/util/int/read.c +++ b/util/int/read.c @@ -5,8 +5,10 @@ /* $Header$ */ #include +#include /* for VERSION */ +#include +#include /* for as_magic */ -#include "e.out.h" #include "logging.h" #include "nofloat.h" #include "global.h" @@ -65,7 +67,7 @@ rd_open(fname) rd_header() { /* Part 1 */ - if (rd_int(2L) != MAGIC) + if (rd_int(2L) != as_magic) fatal("Bad magic number in loadfile"); FLAGS = rd_int(2L); -- 2.34.1