pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:3013:    case '4': case '5': case '6':    case '7': case '8': case '9':    if (state == STATE_PRECISION) {    precision = precision * 10 + fmt[-1] - '0';    } else {    state = STATE_MIN_WIDTH;    min_width = min_width * 10 + fmt[-1] - '0';    }    continue;    +  case '*': +  if (state == STATE_PRECISION) { +  precision = va_arg(args, int); +  } else { +  state = STATE_MIN_WIDTH; +  min_width = va_arg(args, int); +  } +  continue; +     case '.':    state = STATE_PRECISION;    continue;       case 'h':    flags |= APPEND_WIDTH_HALF;    continue;       case 'w': /* Same as l, but old-style, and only for %s. */    case 'l':