pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2008-11-05
2008-11-05 15:04:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>
6939d910c8f2b05571e8d5b7a9e310c0080da49f (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.4
Fixed bugs in end_and_resize_shared_string() with regards to wide strings.
Rev: src/stralloc.c:1.161
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.
160
2008/11/05
12
:
10
:
06
grubba Exp $
+
|| $Id: stralloc.c,v 1.
161
2008/11/05
15
:
04
:
05
grubba Exp $
*/ #include "global.h"
24:
#include <ctype.h> #include <math.h>
-
RCSID("$Id: stralloc.c,v 1.
160
2008/11/05
12
:
10
:
06
grubba Exp $");
+
RCSID("$Id: stralloc.c,v 1.
161
2008/11/05
15
:
04
:
05
grubba Exp $");
/* #define STRALLOC_USE_PRIMES */
759:
((len > SHORT_STRING_THRESHOLD) && (str->len <= (len<<1))) ) { str->len=len;
-
str
->str[
len
]=
0;
+
SET_INDEX_PCHARP(MKPCHARP_STR(
str
),
len
,
0
)
;
return end_shared_string(str); } tmp = make_shared_binary_pcharp(MKPCHARP_STR(str),len);