1: #define FATAL 0
   2: #define NFATAL 1
   3: #define BLK sizeof(struct blk)
   4: #define PTRSZ sizeof(int *)
   5: #define HEADSZ 1024
   6: #define STKSZ 100
   7: #define RDSKSZ 100
   8: #define TBLSZ 256
   9: #define ARRAYST 0241
  10: #define MAXIND 2048
  11: #define NL 1
  12: #define NG 2
  13: #define NE 3
  14: #define length(p) ((p)->wt-(p)->beg)
  15: #define rewind(p) (p)->rd=(p)->beg
  16: #define create(p)   (p)->rd = (p)->wt = (p)->beg
  17: #define fsfile(p)   (p)->rd = (p)->wt
  18: #define truncate(p) (p)->wt = (p)->rd
  19: #define sfeof(p)    (((p)->rd==(p)->wt)?1:0)
  20: #define sfbeg(p)    (((p)->rd==(p)->beg)?1:0)
  21: #define sungetc(p,c)    *(--(p)->rd)=c
  22: #ifdef interdata
  23: #define NEGBYTE 0200
  24: #define MASK (-1 & ~0377)
  25: #define sgetc(p)    ( ((p)->rd==(p)->wt) ? EOF :( ((*(p)->rd & NEGBYTE) != 0) ? ( *(p)->rd++ | MASK): *(p)->rd++ ))
  26: #define slookc(p)   ( ((p)->rd==(p)->wt) ? EOF :( ((*(p)->rd & NEGBYTE) != 0) ? (*(p)->rd | MASK) : *(p)->rd ))
  27: #define sbackc(p)   ( ((p)->rd==(p)->beg) ? EOF :( ((*(--(p)->rd) & NEGBYTE) != 0) ? (*(p)->rd | MASK): *(p)->rd ))
  28: #endif
  29: #ifndef interdata
  30: #define sgetc(p)    (((p)->rd==(p)->wt)?EOF:*(p)->rd++)
  31: #define slookc(p)   (((p)->rd==(p)->wt)?EOF:*(p)->rd)
  32: #define sbackc(p)   (((p)->rd==(p)->beg)?EOF:*(--(p)->rd))
  33: #endif
  34: #define sputc(p,c)  {if((p)->wt==(p)->last)more(p); *(p)->wt++ = c; }
  35: #define salterc(p,c)    {if((p)->rd==(p)->last)more(p); *(p)->rd++ = c; if((p)->rd>(p)->wt)(p)->wt=(p)->rd;}
  36: #define sunputc(p)  (*( (p)->rd = --(p)->wt))
  37: #define zero(p) for(pp=(p)->beg;pp<(p)->last;)*pp++='\0'
  38: #define OUTC(x) {printf("%c",x); if(--count == 0){printf("\\\n"); count=ll;} }
  39: #define TEST2   {if((count -= 2) <=0){printf("\\\n");count=ll;}}
  40: #define EMPTY if(stkerr != 0){printf("stack empty\n"); continue; }
  41: #define EMPTYR(x) if(stkerr!=0){pushp(x);printf("stack empty\n");continue;}
  42: #define EMPTYS if(stkerr != 0){printf("stack empty\n"); return(1);}
  43: #define EMPTYSR(x) if(stkerr !=0){printf("stack empty\n");pushp(x);return(1);}
  44: #define error(p)    {printf(p); continue; }
  45: #define errorrt(p)  {printf(p); return(1); }
  46: struct blk {
  47:     char    *rd;
  48:     char    *wt;
  49:     char    *beg;
  50:     char    *last;
  51: };
  52: struct  blk *hfree;
  53: struct  blk *getwd();
  54: struct  blk *lookwd();
  55: struct  blk *getdec();
  56: struct  blk *morehd();
  57: 
  58: struct  blk *arg1, *arg2;
  59: int svargc;
  60: char    savk;
  61: char    **svargv;
  62: int dbg;
  63: int ifile;
  64: FILE    *curfile;
  65: struct  blk *scalptr, *basptr, *tenptr, *inbas;
  66: struct  blk *sqtemp, *chptr, *strptr, *divxyz;
  67: struct  blk *stack[STKSZ];
  68: struct  blk **stkptr,**stkbeg;
  69: struct  blk **stkend;
  70: int stkerr;
  71: int lastchar;
  72: struct  blk *readstk[RDSKSZ];
  73: struct  blk **readptr;
  74: struct  blk *rem;
  75: int k;
  76: struct  blk *irem;
  77: int skd,skr;
  78: struct  blk *pop(),*readin(),*add0(),*mult();
  79: struct  blk *scalint();
  80: struct  blk *removc();
  81: struct  blk *add(),*div(),*removr();
  82: struct  blk *exp();
  83: struct  blk *sqrt();
  84: struct  blk *salloc(),*copy();
  85: struct  blk *scale();
  86: int neg;
  87: struct  sym {
  88:     struct  sym *next;
  89:     struct  blk *val;
  90: } symlst[TBLSZ];
  91: struct  sym *stable[TBLSZ];
  92: struct  sym *sptr,*sfree;
  93: struct  wblk {
  94:     struct blk **rdw;
  95:     struct blk **wtw;
  96:     struct blk **begw;
  97:     struct blk **lastw;
  98: };
  99: FILE    *fsave;
 100: long    rel;
 101: long    nbytes;
 102: long    all;
 103: long    headmor;
 104: long    obase;
 105: int fw,fw1,ll;
 106: int (*outdit)();
 107: int bigot(),hexot();
 108: int ;
 109: int log10;
 110: int count;
 111: char    *pp;
 112: int (*signal())();
 113: int onintr();
 114: char    *malloc();
 115: char    *nalloc();
 116: char    *realloc();
 117: char    *dummy;

Defined variables

all defined in line 102; used 4 times
arg1 defined in line 58; used 30 times
arg2 defined in line 58; used 16 times
basptr defined in line 65; used 8 times
chptr defined in line 66; used 4 times
count defined in line 110; used 5 times
dbg defined in line 62; used 1 times
divxyz defined in line 66; used 7 times
dummy defined in line 117; used 4 times
fw defined in line 105; used 7 times
fw1 defined in line 105; used 4 times
headmor defined in line 103; used 3 times
hfree defined in line 52; used 11 times
ifile defined in line 63; used 1 times
inbas defined in line 65; used 8 times
irem defined in line 76; used 8 times
k defined in line 75; used 14 times
lastchar defined in line 71; used 4 times
ll defined in line 105; used 8 times
log10 defined in line 109; used 2 times
defined in line 108; used 2 times
nbytes defined in line 101; used 12 times
neg defined in line 86; used 9 times
obase defined in line 104; used 8 times
pp defined in line 111; used 3 times
  • in line 37(3)
readptr defined in line 73; used 40 times
readstk defined in line 72; used 9 times
rel defined in line 100; used 3 times
rem defined in line 74; used 22 times
savk defined in line 60; used 27 times
scalptr defined in line 65; used 6 times
sfree defined in line 92; used 15 times
skd defined in line 77; used 4 times
skr defined in line 77; used 5 times
sptr defined in line 92; used 31 times
sqtemp defined in line 66; used 4 times
stable defined in line 91; used 11 times
stack defined in line 67; used 9 times
stkbeg defined in line 68; used 2 times
stkend defined in line 69; used 2 times
stkerr defined in line 70; used 9 times
stkptr defined in line 68; used 17 times
strptr defined in line 66; used 24 times
svargc defined in line 59; used 4 times
svargv defined in line 61; used 6 times
symlst defined in line 90; used 3 times
tenptr defined in line 65; used 8 times

Defined struct's

blk defined in line 46; used 220 times
sym defined in line 87; used 12 times
wblk defined in line 93; used 14 times

Defined macros

ARRAYST defined in line 9; used 6 times
BLK defined in line 3; used 1 times
EMPTY defined in line 40; used 15 times
EMPTYR defined in line 41; used 2 times
EMPTYS defined in line 42; used 3 times
EMPTYSR defined in line 43; used 2 times
FATAL defined in line 1; never used
HEADSZ defined in line 5; used 4 times
MASK defined in line 24; used 3 times
MAXIND defined in line 10; used 2 times
NE defined in line 13; used 3 times
NEGBYTE defined in line 23; used 3 times
NFATAL defined in line 2; never used
NG defined in line 12; used 2 times
NL defined in line 11; used 2 times
OUTC defined in line 38; used 9 times
PTRSZ defined in line 4; used 13 times
RDSKSZ defined in line 7; used 3 times
STKSZ defined in line 6; used 2 times
TBLSZ defined in line 8; used 4 times
TEST2 defined in line 39; used 3 times
create defined in line 16; used 7 times
error defined in line 44; used 19 times
errorrt defined in line 45; used 2 times
fsfile defined in line 17; used 32 times
length defined in line 14; used 56 times
rewind defined in line 15; used 30 times
salterc defined in line 35; used 15 times
sbackc defined in line 32; used 50 times
sfbeg defined in line 20; used 29 times
sfeof defined in line 19; used 26 times
sgetc defined in line 30; used 26 times
slookc defined in line 31; used 5 times
sputc defined in line 34; used 69 times
sungetc defined in line 21; used 1 times
sunputc defined in line 36; used 16 times
truncate defined in line 18; used 6 times
zero defined in line 37; used 3 times

Usage of this include

dc.h used 1 times
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1285
Valid CSS Valid XHTML 1.0 Strict