#ifndef lint static char sccsid[] = "@(#)tb.c 4.3 9/14/85"; #endif /* tb.c: check which entries exist, also storage allocation */ # include "t..c" checkuse() { int i,c, k; for(c=0; c=MAXVEC) error("Too many characters in table"); spvecs[spcount++]= pp = calloc(MAXCHS+200,1); if (pp== -1 || pp == 0) error("no space for characters"); return(pp); } # define MAXPC 50 char *thisvec; int tpcount = -1; char *tpvecs[MAXPC]; int * alocv(n) { int *tp, *q; if (tpcount<0 || thisvec+n > tpvecs[tpcount]+MAXCHS) { tpcount++; if (tpvecs[tpcount]==0) { tpvecs[tpcount] = calloc(MAXCHS,1); } thisvec = tpvecs[tpcount]; if (thisvec == -1) error("no space for vectors"); } tp=(int *)thisvec; thisvec+=n; for(q=tp; q