pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2010-03-03
2010-03-03 16:31:05 by Stephen R. van den Berg <srb@cuci.nl>
c20540bc1ad0d55281a2568a380bf89f6d1c2edf (
11
lines) (+
3
/-
8
)
[
Show
|
Annotate
]
Branch:
7.9
Back out sneaked-in feeble attempt at an optimisation.
Rev: src/builtin.cmod:1.255
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: builtin.cmod,v 1.
254
2010/03/
02
20
:
12
:
49
nilsson
Exp $
+
|| $Id: builtin.cmod,v 1.
255
2010/03/
03
16
:
31
:
05
srb
Exp $
*/ #include "global.h"
2380:
struct Buffer_struct *str = THIS; if(!str->str.s) init_string_builder_alloc(&str->str, str->initial, 0);
-
-
#if 0
-
if( c>=0 && c<256 && str->str.s->len+1<str->str.malloced )
-
STR0(str->str.s)[ str->str.s->len++ ] = c;
-
else
-
#endif
+
string_builder_putchar(&str->str, c); }