Lines Matching refs:pt
210 register struct tidb *pt; local
231 pt = &tidbs[i];
256 pt = &tidbs[i];
273 if (pt->tiebuf)
274 Free(pt->tiebuf);
275 if (!(pt->tiebuf = Malloc(statbuf.st_size))) {
280 n = Read(tfd, pt->tiebuf, statbuf.st_size);
282 if (n <= 0 || n >= 4096 || _Getsh(pt->tiebuf) != 0432) {
283 Free(pt->tiebuf);
284 pt->tiebuf = 0;
289 if (pt->term)
290 Free(pt->term);
291 if (!(pt->term = Strdup(term))) {
292 Free(pt->tiebuf);
293 pt->tiebuf = 0;
298 pt->snames = _Getsh(pt->tiebuf + 2);
299 pt->nbools = _Getsh(pt->tiebuf + 4);
300 pt->nints = _Getsh(pt->tiebuf + 6);
301 pt->nstrs = _Getsh(pt->tiebuf + 8);
303 pt->boolean_offset = pt->tiebuf + 6 * 2 + pt->snames;
305 pt->number_offset = pt->boolean_offset + pt->nbools;
306 if ((unsigned int)pt->number_offset & 1)
307 pt->number_offset++;
309 pt->string_offset = pt->number_offset + pt->nints * 2;
311 pt->string_table = pt->string_offset + pt->nstrs * 2;
338 if (index >= pt->nbools)
341 ip = pt->boolean_offset + index;
357 if (index >= pt->nints)
360 ip = pt->number_offset + index * 2;
381 if (index >= pt->nstrs)
384 ip = pt->string_offset + index * 2;
386 *charstar_p = pt->string_table + sindex;