simplification of e.out.h
authordick <none@none>
Mon, 3 Oct 1988 14:44:39 +0000 (14:44 +0000)
committerdick <none@none>
Mon, 3 Oct 1988 14:44:39 +0000 (14:44 +0000)
util/int/ChangeLog
util/int/Makefile
util/int/e.out.h
util/int/read.c

index 6600de9..9995a6e 100644 (file)
@@ -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
index 49207b4..6826aea 100644 (file)
@@ -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)
index 8f769e6..abd11ee 100644 (file)
@@ -1,13 +1,5 @@
 /* $Header$ */
 
-/* get version number from ... */
-#include       <local.h>
-
-/* get magic number from ... */
-#include       <em_spec.h>
-#include       <as_spec.h>
-#define        MAGIC           as_magic
-
 #define        FB_TEST         001
 #define        FB_PROFILE      002
 #define        FB_FLOW         004
index e12271a..0dbe5af 100644 (file)
@@ -5,8 +5,10 @@
 /* $Header$ */
 
 #include       <stdio.h>
+#include       <local.h>               /* for VERSION */
+#include       <em_spec.h>
+#include       <as_spec.h>             /* 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);