Lines Matching refs:msg
298 * get the set dimensions and initialize the msg pointers
307 mc->set[i].msg = mp;
312 * read the msg sizes and set up the msg pointers
319 mc->set[i].msg[j] = sp;
342 * msg returned on error
347 mcget(register Mc_t* mc, int set, int num, const char* msg)
353 if (!mc || set < 0 || set > mc->num || num < 1 || num > mc->set[set].num || !(s = mc->set[set].msg[num]))
354 return (char*)msg;
368 * set message <set,num> to msg
369 * msg==0 deletes the message
375 mcput(register Mc_t* mc, int set, int num, const char* msg)
393 if (!msg)
395 if (set <= mc->num && num <= mc->set[set].num && (s = mc->set[set].msg[num]))
401 mc->set[set].msg[num] = 0;
406 * decrease the max msg num
409 mp = mc->set[set].msg + num;
447 * keep track of the highest msg and allocate if necessary
464 sp->msg = mp;
466 mp[i] = sp->msg[i];
473 if (!(mp = vmnewof(mc->vm, sp->msg, char*, i + 1, 0)))
476 sp->msg = mp;
487 if (s = sp->msg[num])
493 if (streq(s, msg))
502 if (!(s = vmstrdup(mc->vm, msg)))
504 sp->msg[num] = s;
574 n = (s = sp->msg[j]) ? (strlen(s) + 1) : 0;
588 if (s = sp->msg[j])
600 * parse <set,msg> number from s
603 * msg!=0 is set to message number
615 mcindex(register const char* s, char** e, int* set, int* msg)
657 if (msg)
658 *msg = m;