pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.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: operators.c,v 1.
169
2008/
01
/
24
17
:
48
:
17
mast Exp $
+
|| $Id: operators.c,v 1.
170
2008/
05
/
21
21
:
13
:
04
mast Exp $
*/ #include "global.h" #include <math.h>
-
RCSID("$Id: operators.c,v 1.
169
2008/
01
/
24
17
:
48
:
17
mast Exp $");
+
RCSID("$Id: operators.c,v 1.
170
2008/
05
/
21
21
:
13
:
04
mast Exp $");
#include "interpret.h" #include "svalue.h" #include "multiset.h" #include "mapping.h" #include "array.h" #include "stralloc.h" #include "opcodes.h" #include "operators.h" #include "language.h" #include "pike_memory.h"
pike.git/src/operators.c:388:
{ switch(sp[e].type) { case T_STRING: size+=sp[e].u.string->len; if(sp[e].u.string->size_shift > max_shift) max_shift=sp[e].u.string->size_shift; break; case T_INT:
-
size+
=
14
;
+
size +
=
(4 + (SIZEOF_INT_TYPE * 5 + 1) / 2)
;
break; case T_FLOAT:
-
size+
=
22
;
+
size +
=
(12 + (SIZEOF_FLOAT_TYPE * 5 + 1) / 2)
;
break; } } r=begin_wide_shared_string(size,max_shift); buf=MKPCHARP_STR(r); size=0; for(e=-args;e<0;e++) {