pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-11-06
2004-11-06 15:33:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7a1f0ee8f3ebfc6d8f73a1d780e784684d5d5113 (
12
lines) (+
7
/-
5
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed a few bugs in string_builder_vsprintf().
Rev: src/stralloc.c:1.178
2:
|| 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.
177
2004/11/06 15:
28
:
49
grubba Exp $
+
|| $Id: stralloc.c,v 1.
178
2004/11/06 15:
33
:
17
grubba Exp $
*/ #include "global.h"
2324:
case '%': string_builder_putchar(s, '%'); break;
+
case '+': flags |= APPEND_POSITIVE;
-
break
;
+
continue
;
case '-': flags |= APPEND_LEFT;
-
break
;
+
continue
;
case '0': if (!state) {
2345:
state = STATE_MIN_WIDTH; min_width = min_width * 10 + fmt[-1] - '0'; }
-
break
;
+
continue
;
case '.': state = STATE_PRECISION;
-
break
;
+
continue
;
case 'O': {