pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: stralloc.c,v 1.176 2004/11/06 15:13:50 grubba Exp $ + || $Id: stralloc.c,v 1.177 2004/11/06 15:28:49 grubba Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "dynamic_buffer.h"   #include "pike_macros.h"   #include "pike_memory.h"   #include "pike_error.h"   #include "gc.h"
pike.git/src/stralloc.c:2333:       case '0':    if (!state) {    flags |= APPEND_ZERO_PAD;    }    /* FALL_THROUGH */    case '1': case '2': case '3':    case '4': case '5': case '6':    case '7': case '8': case '9':    if (state = STATE_PRECISION) { -  precision *= 10 + fmt[-1] - '0'; +  precision = precision * 10 + fmt[-1] - '0';    } else {    state = STATE_MIN_WIDTH; -  min_width *= 10 + fmt[-1] - '0'; +  min_width = min_width * 10 + fmt[-1] - '0';    }    break;    case '.':    state = STATE_PRECISION;    break;       case 'O':    {    /* FIXME: Doesn't care about field widths yet. */    dynamic_buffer old_buf;