pike.git
/
src
/
modules
/
_Roxen
/
roxen.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/_Roxen/roxen.c:341:
*/ { struct pike_string *str; int newlen; if( args != 1 ) Pike_error("Wrong number of arguments to html_encode_string\n" ); switch( Pike_sp[-1].type ) {
-
struct pike_string *s;
-
void o_cast
(struct pike
_
string *type, INT32 run
_
time_type
);
+
void o_cast_
to_
string
(
);
case PIKE_T_INT: /* Optimization, this is basically a inlined cast_int_to_string */ { char buf[21], *b = buf+19; int neg, i, j=0; i = Pike_sp[-1].u.integer; pop_stack(); if( i < 0 ) {
pike.git/src/modules/_Roxen/roxen.c:376:
b[ -j++ ] = '0'+(i%10); if( neg ) b[ -j++ ] = '-'; push_text( b-j+1 ); } return; case PIKE_T_FLOAT: /* Optimization, no need to check the resultstring for * unsafe characters. */
-
MAKE_CONSTANT_SHARED_STRING( s, tString );
-
o_cast
(s, PIKE
_
T
_
STRING
);
+
o_cast_
to
_
string(
);
return; default:
-
MAKE_CONSTANT_SHARED_STRING( s, tString );
-
o_cast
(s, PIKE
_
T
_
STRING
);
+
o_cast_
to
_
string(
);
case PIKE_T_STRING: break; } str = Pike_sp[-1].u.string; newlen = str->len; #define COUNT(T) { \ T *s = (T *)str->str; \ int i; \