Lines Matching defs:mstr
309 Str_master *mstr, *pmstr;
315 for (mstr = stp->st_mstrlist, pmstr = 0; mstr;
316 mstr = mstr->sm_next) {
319 pmstr = mstr;
354 Str_master *mstr;
419 mstr = sthash->hi_mstr;
420 if (mstr->sm_stroff == 0) {
421 size_t mstrlen = mstr->sm_strlen + 1;
423 mstr->sm_stroff = stp->st_nextoff;
428 if ((mstr->sm_stroff + mstrlen) > stp->st_fullstrsize)
431 (void) memcpy(stp->st_strbuf + mstr->sm_stroff,
432 mstr->sm_str, mstrlen);
439 *stoff = mstr->sm_stroff + mstr->sm_strlen - sthash->hi_strlen;
453 Str_master *mstr = 0;
500 assert(mstr == 0);
501 mstr = _mstr;
511 if (mstr == 0) {
515 if ((mstr = calloc(sizeof (*mstr), 1)) == 0)
517 mstr->sm_next = stp->st_mstrlist;
518 stp->st_mstrlist = mstr;
526 assert(len > mstr->sm_strlen);
527 stp->st_strsize += len - mstr->sm_strlen;
533 mstr->sm_hashval = sthash->hi_hashval = hashval;
534 mstr->sm_strlen = sthash->hi_strlen = len;
535 mstr->sm_str = str;
537 sthash->hi_mstr = mstr;