pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:614:    */    add_pike_string_constant("__master_cookie",    master_location, CONSTANT_STRLEN(MASTER_COOKIE));       if(SETJMP(back))    {    if(throw_severity == THROW_EXIT || throw_severity == THROW_THREAD_EXIT)    {    num=throw_value.u.integer;    }else{ -  if (throw_value.type == T_OBJECT && +  if (TYPEOF(throw_value) == T_OBJECT &&    throw_value.u.object->prog == master_load_error_program &&    !get_master()) {    /* Report this specific error in a nice way. Since there's no    * master it'd be reported with a raw error dump otherwise. */    struct generic_error_struct *err;       dynamic_buffer buf;    dynbuf_string s;    struct svalue t;       move_svalue (Pike_sp++, &throw_value);    mark_free_svalue (&throw_value);    err = (struct generic_error_struct *)    get_storage (Pike_sp[-1].u.object, generic_error_program);    -  t.type = PIKE_T_STRING; -  t.u.string = err->error_message; +  SET_SVAL(t, PIKE_T_STRING, 0, string, err->error_message);       init_buf(&buf);    describe_svalue(&t,0,0);    s=complex_free_buf(&buf);       fputs(s.str, stderr);    free(s.str);    }    else    call_handle_error();