simplification of e.out.h
This commit is contained in:
parent
668b4ca6e7
commit
5578d004bc
|
@ -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
|
27-May-88 Dick Grune (dick) at dick
|
||||||
Testing with the UNIX system call tester by Leonie van der Voort
|
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
|
revealed a few errors: when length was negative in a call of read
|
||||||
|
|
|
@ -8,6 +8,9 @@ LFLAGS = # # passed to loader
|
||||||
|
|
||||||
IDIRS = -I$(EM)/h# # passed to C compiler and lint
|
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
|
INT = ./int# # name of resulting interpreter
|
||||||
|
|
||||||
IP_SPEC = $(EM)/etc/ip_spec.t
|
IP_SPEC = $(EM)/etc/ip_spec.t
|
||||||
|
@ -92,8 +95,8 @@ test/awa.em44:
|
||||||
|
|
||||||
|
|
||||||
# Auxiliary entries
|
# Auxiliary entries
|
||||||
lint:
|
lint: $(SRC) trap_msg warn_msg warn.h switch/DoCases switch/PrCases
|
||||||
lint $(IDIRS) $(SRC) -lc
|
$(LINT) $(LINTFLAGS) $(IDIRS) $(SRC) -lc
|
||||||
|
|
||||||
tags: $(HDR) $(SRC)
|
tags: $(HDR) $(SRC)
|
||||||
ctags $(HDR) $(SRC)
|
ctags $(HDR) $(SRC)
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
/* $Header$ */
|
/* $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_TEST 001
|
||||||
#define FB_PROFILE 002
|
#define FB_PROFILE 002
|
||||||
#define FB_FLOW 004
|
#define FB_FLOW 004
|
||||||
|
|
|
@ -5,8 +5,10 @@
|
||||||
/* $Header$ */
|
/* $Header$ */
|
||||||
|
|
||||||
#include <stdio.h>
|
#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 "logging.h"
|
||||||
#include "nofloat.h"
|
#include "nofloat.h"
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
@ -65,7 +67,7 @@ rd_open(fname)
|
||||||
rd_header()
|
rd_header()
|
||||||
{
|
{
|
||||||
/* Part 1 */
|
/* Part 1 */
|
||||||
if (rd_int(2L) != MAGIC)
|
if (rd_int(2L) != as_magic)
|
||||||
fatal("Bad magic number in loadfile");
|
fatal("Bad magic number in loadfile");
|
||||||
|
|
||||||
FLAGS = rd_int(2L);
|
FLAGS = rd_int(2L);
|
||||||
|
|
Loading…
Reference in a new issue