pike.git
/
src
/
program.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/program.c:11037:
if (!THIS->frame || !THIS->frame->current_object || !THIS->frame->current_object->prog) { push_int(1); } else { push_int(0); } } static void sprintf_trampoline (INT32 args) {
-
dynamic
_buffer
save_
buf
;
-
dynbuf
_
string str
;
+
struct byte
_buffer buf
=
BUFFER
_
INIT()
;
if (!args || TYPEOF(sp[-args]) != T_INT || sp[-args].u.integer != 'O' || !THIS->frame || !THIS->frame->current_object) { pop_n_elems (args); push_int (0); return; } pop_n_elems (args); ref_push_function (THIS->frame->current_object, THIS->func);
-
init_buf(&save_buf);
-
describe_svalue (sp - 1, 0, 0);
-
str = complex_free_buf(&save_buf);
+
describe
_
svalue
(&buf
,
sp - 1, 0, 0);
pop_stack();
-
push_string(buffer_finish_pike_string(&
str
));
+
push_string(buffer_finish_pike_string(&
buf
));
} static void init_trampoline(struct object *UNUSED(o)) { THIS->frame=0; } static void exit_trampoline(struct object *UNUSED(o)) { if(THIS->frame)