Lines Matching refs:mstr
310 Str_master *mstr, *pmstr;
316 for (mstr = stp->st_mstrlist, pmstr = 0; mstr;
317 mstr = mstr->sm_next) {
320 pmstr = mstr;
355 Str_master *mstr;
420 mstr = sthash->hi_mstr;
421 if (mstr->sm_stroff == 0) {
422 size_t mstrlen = mstr->sm_strlen + 1;
424 mstr->sm_stroff = stp->st_nextoff;
429 if ((mstr->sm_stroff + mstrlen) > stp->st_fullstrsize)
432 (void) memcpy(stp->st_strbuf + mstr->sm_stroff,
433 mstr->sm_str, mstrlen);
440 *stoff = mstr->sm_stroff + mstr->sm_strlen - sthash->hi_strlen;
454 Str_master *mstr = 0;
501 assert(mstr == 0);
502 mstr = _mstr;
512 if (mstr == 0) {
516 if ((mstr = calloc(sizeof (Str_hash), 1)) == 0)
518 mstr->sm_next = stp->st_mstrlist;
519 stp->st_mstrlist = mstr;
527 assert(len > mstr->sm_strlen);
528 stp->st_strsize += len - mstr->sm_strlen;
534 mstr->sm_hashval = sthash->hi_hashval = hashval;
535 mstr->sm_strlen = sthash->hi_strlen = len;
536 mstr->sm_str = str;
538 sthash->hi_mstr = mstr;