Fix strange inside-out organization of the input routines.
Seems to have nbben a result of FORTRAN not having anything like a stream object that can be passed around. A step towards logging and log replay.
This commit is contained in:
parent
19b3e3e656
commit
040f19adde
7 changed files with 93 additions and 104 deletions
5
misc.h
5
misc.h
|
@ -1,4 +1,5 @@
|
|||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* b is not needed for POSIX but harmless */
|
||||
#define READ_MODE "rb"
|
||||
|
@ -16,7 +17,7 @@ extern void fGETIN(long*,long*,long*,long*);
|
|||
#define GETIN(WORD1,WORD1X,WORD2,WORD2X) fGETIN(&WORD1,&WORD1X,&WORD2,&WORD2X)
|
||||
extern long fYES(long,long,long);
|
||||
#define YES(X,Y,Z) fYES(X,Y,Z)
|
||||
extern long fGETNUM(long);
|
||||
extern long fGETNUM(FILE *);
|
||||
#define GETNUM(K) fGETNUM(K)
|
||||
extern long fGETTXT(long,long,long,long);
|
||||
#define GETTXT(SKIP,ONEWRD,UPPER,HASH) fGETTXT(SKIP,ONEWRD,UPPER,HASH)
|
||||
|
@ -60,7 +61,7 @@ extern long fRNDVOC(long,long);
|
|||
#define RNDVOC(CHAR,FORCE) fRNDVOC(CHAR,FORCE)
|
||||
extern void fBUG(long);
|
||||
#define BUG(NUM) fBUG(NUM)
|
||||
extern void fMAPLIN(long);
|
||||
extern void fMAPLIN(FILE *);
|
||||
#define MAPLIN(FIL) fMAPLIN(FIL)
|
||||
extern void fTYPE();
|
||||
#define TYPE() fTYPE()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue