2 * Copyright 1991 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
17 /* tb.c: check which entries exist, also storage allocation */
27 used
[c
]=lused
[c
]=rused
[c
]=0;
30 if (instead
[i
] || fullbot
[i
]) continue;
32 if (k
== '-' || k
== '=') continue;
35 rused
[c
]|= real(table
[i
][c
].rcol
);
36 if( !real(table
[i
][c
].rcol
))
37 used
[c
] |= real(table
[i
][c
].col
);
39 lused
[c
] |= real(table
[i
][c
].col
);
42 used
[c
] |= real(table
[i
][c
].col
);
51 if (!point(s
)) return(1);
67 return(spvecs
[spcount
++]);
69 error(gettext("Too many characters in table"));
70 spvecs
[spcount
++]= pp
= calloc(MAXCHS
+MAXSTR
,1);
72 error(gettext("no space for characters"));
86 if (tpcount
<0 || thisvec
+n
> tpvecs
[tpcount
]+MAXCHS
)
89 if (tpvecs
[tpcount
]==0)
91 tpvecs
[tpcount
] = calloc(MAXCHS
,1);
93 thisvec
= tpvecs
[tpcount
];
95 error(gettext("no space for vectors"));
99 for(q
=tp
; q
<(int *)thisvec
; q
++)
107 extern char *exstore
;
108 /* give back unwanted space in some vectors */