Lines Matching refs:set
188 if (ast.locale.set & AST_LC_find)
192 if (ast.locale.set & (AST_LC_find|AST_LC_setlocale))
286 if (!(mc->set = vmnewof(vm, 0, Mcset_t, mc->num + 1, 0)))
296 * get the set dimensions and initialize the msg pointers
304 mc->set[i].num = n;
305 mc->set[i].msg = mp;
310 * read the msg sizes and set up the msg pointers
314 for (j = 1; j <= mc->set[i].num; j++)
317 mc->set[i].msg[j] = sp;
339 * return the <set,num> message in mc
345 mcget(register Mc_t* mc, int set, int num, const char* msg)
351 if (!mc || set < 0 || set > mc->num || num < 1 || num > mc->set[set].num || !(s = mc->set[set].msg[num]))
366 * set message <set,num> to msg
368 * the message and set counts are adjusted
373 mcput(register Mc_t* mc, int set, int num, const char* msg)
384 if (!mc || set > MC_SET_MAX || num > MC_NUM_MAX)
393 if (set <= mc->num && num <= mc->set[set].num && (s = mc->set[set].msg[num]))
399 mc->set[set].msg[num] = 0;
401 if (mc->set[set].num == num)
407 mp = mc->set[set].msg + num;
409 mc->nmsgs -= mc->set[set].num - num;
410 if (!(mc->set[set].num = num) && mc->num == set)
413 * decrease the max set num
416 while (num && !mc->set[--num].num);
425 * keep track of the highest set and allocate if necessary
428 if (set > mc->num)
430 if (set > mc->gen)
437 sp[i] = mc->set[i];
438 mc->set = sp;
440 mc->num = set;
442 sp = mc->set + set;
551 * write the set dimensions
555 if (mc->set[i].num)
558 sfputu(op, mc->set[i].num);
567 if (mc->set[i].num)
569 sp = mc->set + i;
582 if (mc->set[i].num)
584 sp = mc->set + i;
598 * parse <set,msg> number from s
599 * e!=0 is set to the next char after the parse
600 * set!=0 is set to message set number
601 * msg!=0 is set to message number
602 * the message set number is returned
613 mcindex(register const char* s, char** e, int* set, int* msg)
653 if (set)
654 *set = n;