pike.git / src / program.c

version» Context lines:

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)