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.
210
2006/
04
/
25
18
:
29
:
49
neotron
Exp $
+
|| $Id: operators.c,v 1.
211
2006/
07
/
05
19
:
28
:
10
mast
Exp $
*/ #include "global.h" #include <math.h> #include "interpret.h" #include "svalue.h" #include "multiset.h" #include "mapping.h" #include "array.h" #include "stralloc.h"
pike.git/src/operators.c:329:
case PIKE_T_INT: break; default: Pike_error("Cannot cast %s to int.\n", get_name_of_type(sp[-1].type)); } } /* Special case for casting to string. */
-
void o_cast_to_string(void)
+
PMOD_EXPORT
void o_cast_to_string(void)
{ char buf[200]; switch(sp[-1].type) { case PIKE_T_STRING: return; case T_OBJECT: if(!sp[-1].u.object->prog) { /* Casting a destructed object should be like casting a zero. */