Lines Matching defs:base
39 * if (flag&INTEGER), val.i contains integer value, and type contains base.
400 unsigned int base;
402 * worst case number length is when base == 2:
403 * 1 (minus) + 2 (base, up to 36) + 1 ('#') +
415 base = (vp->type == 0) ? 10U : (unsigned int)vp->type;
417 if (base == 1 && n == 0)
418 base = 2;
419 if (base == 1) {
435 *--s = digits[n % base];
436 n /= base;
438 if (base != 10) {
440 *--s = digits[base % 10];
441 if (base >= 10)
442 *--s = digits[base / 10];
530 mksh_uari_t c, num = 0, base = 10;
561 base = 16;
567 base = 8;
576 /* ksh-style base determination */
579 if ((base = num) == 1) {
595 } else if (base > 36)
596 base = 10;
609 if (c >= base)
612 num = num * base + c;
618 return (base);
628 int base;
631 if ((base = getint(vp, &num, arith)) == -1)
635 /* default base */
636 vq->type = base;
762 typeset(const char *var, uint32_t set, uint32_t clr, int field, int base)
764 return (vtypeset(NULL, var, set, clr, field, base));
768 int field, int base)
988 * Don't change base if assignment is to be
991 if ((set & INTEGER) && base > 0 && (!val || t != vp))
992 t->type = base;
1036 /* do not zero base before assignment */
1039 if (base > 0)
1040 vp->type = base;
1613 * Make a copy of the base of an array name
1871 int thing = 0, field = 0, base = 0, i;
2002 if (!getn(basestr, &base)) {
2003 bi_errorf(Tf_sD_s, "bad integer base", basestr);
2006 if (base < 1 || base > 36)
2007 base = 10;
2086 field, base)) {