static char sccsid
[] = "@(#)checkuse.c 1.2 (CWI) 85/10/02";
* check which entries exist, also storage allocation
for(c
= 0; c
< ncol
; c
++){
used
[c
] = lused
[c
] = rused
[c
] = 0;
for(i
= 0; i
< nlin
; i
++){
if(instead
[i
] || fullbot
[i
])
if((k
== 'n' || k
== 'a')){
rused
[c
] |= real(table
[i
][c
].rcol
);
if(!real(table
[i
][c
].rcol
))
used
[c
] |= real(table
[i
][c
].col
);
lused
[c
] |= real(table
[i
][c
].col
);
used
[c
] |= real(table
[i
][c
].col
);
static char *spvecs
[MAXVEC
];
return(spvecs
[spcount
++]);
error("Too many characters in table");
spvecs
[spcount
++] = pp
= calloc(MAXCHS
+ 200, 1);
if(pp
== (char *) -1 || pp
== (char *) 0)
error("no space for characters");
static char *tpvecs
[MAXPC
];
if(tpcount
< 0 || thisvec
+ n
> tpvecs
[tpcount
] + MAXCHS
){
if(tpvecs
[tpcount
] == 0){
tpvecs
[tpcount
] = calloc(MAXCHS
, 1);
thisvec
= tpvecs
[tpcount
];
if(thisvec
== (char *) -1)
error("no space for vectors");
for(q
= tp
; q
< (int *)thisvec
; q
++)
* give back unwanted space in some vectors