home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
list
/
ep-misc.ark
/
EP.DCL
< prev
next >
Wrap
Text File
|
1988-05-21
|
3KB
|
100 lines
/* FGET.C - file stack functions for EP */
/* flnum should be set to 0 before 1st call */
struct _ebuf {
int _fd;
int _nleft;
char *_nextp;
char _buff[SECSIZ];
/* char _flags;*/
};
struct _ebuf fl[8];
int flnum;
int pgno,
errtype, /* to pass to eperror */
llength, /* current ll minus indents */
vposition, /* vert'l position of printhead */
spdots, /* number dots to move printhead
down before printing, even at
the beginning of a page */
skdots, /* as above, but not at beginning
of page */
emode, /* what the Epson thinks the current
mode is */
allmode, /* keep mode for } command */
errcode; /* to pass to eperror */
char dt1, dt2, /* 1st and 2nd letter of command */
brkflag, /* signal don't justify this line */
bsflag, /* overprint next char */
epsflag, /* have an Epson char in output line */
grfflag, /* have a graphics char in output line */
unidir, /* Epson unidir'l print assumption */
tallflag, /* tall char in output line */
tabottom, /* last 3 passes when tall char present */
scrncol; /* apparent column on screen when
line of text was edited */
char fnbuf[30], *fname; /* filename buffer & ptr */
/*char ibuf[BUFSIZ]; input buffer */
int inpoint;
char inbuf[MAXLINE]; /* one line from the text */
int glen, /* cumulative length of line
currently being formed, in dots */
gpoint;
char gbuf[2000]; /* dot graphics data for one line
of output */
int outpoint;
char xoutbuf[MAXLINE], /* character data for one line of output */
*outbuf;
int xattrbuf[MAXLINE], /* mode attributes for each character */
*attrbuf,
xwidbuf[MAXLINE], /* width of each character */
*widbuf;
/* the pointers above are used so that the buffers
can be used temporarily for the page number (I
painted myself into a corner) */
int brccount, /* count unpaired left braces */
nubrcpt, /* brace stack pointer */
brcstk[MAXCOL][6]; /* brace stack */
/* font data */
unsigned ftp[NUMFTS]; /* memory addresses where fonts
begin in 'fnt' */
int fix[NUMFTS][128]; /* for each font, indices of
individual character definition */
char ftlen[NUMFTS][128], /* character widths - determined
by values in 'fix' */
ftname[NUMFTS][LENFTN], /* names - e.g. MODERN */
nextft; /* number of next font to load */
int begovr, endovr;
int brcpt[MAXCOL], lindent[MAXCOL];
char pendc;
int attach[32];
char duplflag;
/* for processline: */
char hycorrect;
/* from main to cseq */
int gargc;
char **gargv;
/* for cseq: (now private in csm)*/
/* int arg, typeval, measure, divisor;*/
/* char dt3, dt4, dt5, eqref, havearg;*/
/* for stowc: */
/* int stowlen, stowmode, stowkern; */
char strstore[1024];