Lines Matching defs:base
36 * if (flag&INTEGER), val.i contains integer value, and type contains base.
349 int base;
351 * worst case number length is when base == 2:
352 * 1 (minus) + 2 (base, up to 36) + 1 ('#') +
364 base = (vp->type == 0) ? 10 : vp->type;
366 if (base == 1 && n == 0)
367 base = 2;
368 if (base == 1) {
382 *--s = digits[n % base];
383 n /= base;
385 if (base != 10) {
387 *--s = digits[base % 10];
388 if (base >= 10)
389 *--s = digits[base / 10];
473 int c, base, neg;
487 base = 10;
494 base = 16;
499 base = 8;
507 base = (int)num;
508 if (have_base || base < 1 || base > 36)
510 if (base == 1) {
537 if (c < 0 || c >= base)
539 num = num * base + c;
544 return (base);
554 int base;
557 if ((base = getint(vp, &num, arith)) == -1)
561 /* default base */
562 vq->type = base;
690 typeset(const char *var, uint32_t set, uint32_t clr, int field, int base)
842 * Don't change base if assignment is to be
845 if ((set & INTEGER) && base > 0 && (!val || t != vp))
846 t->type = base;
885 /* do not zero base before assignment */
888 if (base > 0)
889 vp->type = base;
1357 * Make a copy of the base of an array name