pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2013-09-23
2013-09-23 11:05:34 by Per Hedbor <ph@opera.com>
b9fd7fd2092939fb81dd54f20d654d8e49298896 (
13
lines) (+
10
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed object_size for multi_string_replace
3396:
int res = 0, i; if( THIS->ctx.v ) {
+
struct svalue tmp;
+
tmp.type = PIKE_T_STRING;
for( i=0; i<THIS->ctx.num; i++ )
-
res += sizeof(struct replace_many_tupel)
+
-
rec_size_svalue(
THIS->ctx.v[i].ind
,NULL) +
-
rec_size_svalue(THIS->ctx.v[i].val,NULL);
+
{
+
res += sizeof(struct replace_many_tupel)
;
+
tmp.u.string
=
THIS->ctx.v[i].ind
;
+
res
+=
rec_size_svalue(
&tmp, NULL );
+
tmp.u.string =
THIS->ctx.v[i].val
;
+
res += rec_size_svalue( &tmp
,
NULL
);
}
-
+
}
RETURN res; }