зеркало из https://github.com/github/ruby.git
error.c(rb_error_write): Remove ec_ from its name
It's unrelated to rb_execution_context_t during writing the patch r61154 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
29e1f56e23
Коммит
d18fb887ea
4
error.c
4
error.c
|
@ -951,7 +951,7 @@ exc_to_s(VALUE exc)
|
|||
}
|
||||
|
||||
/* FIXME: Include eval_error.c */
|
||||
void rb_ec_error_write(VALUE errinfo, VALUE errat, VALUE str);
|
||||
void rb_error_write(VALUE errinfo, VALUE errat, VALUE str);
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
|
@ -968,7 +968,7 @@ exc_full_message(VALUE exc)
|
|||
{
|
||||
VALUE str = rb_str_new2("");
|
||||
VALUE errat = rb_get_backtrace(exc);
|
||||
rb_ec_error_write(exc, errat, str);
|
||||
rb_error_write(exc, errat, str);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@ print_backtrace(const VALUE eclass, const VALUE errat, const VALUE str, int reve
|
|||
}
|
||||
|
||||
void
|
||||
rb_ec_error_write(VALUE errinfo, VALUE errat, VALUE str)
|
||||
rb_error_write(VALUE errinfo, VALUE errat, VALUE str)
|
||||
{
|
||||
volatile VALUE eclass = Qundef, emesg = Qundef;
|
||||
|
||||
|
@ -231,7 +231,7 @@ rb_ec_error_print(rb_execution_context_t * volatile ec, volatile VALUE errinfo)
|
|||
errat = rb_get_backtrace(errinfo);
|
||||
}
|
||||
|
||||
rb_ec_error_write(errinfo, errat, Qnil);
|
||||
rb_error_write(errinfo, errat, Qnil);
|
||||
|
||||
EC_POP_TAG();
|
||||
ec->errinfo = errinfo;
|
||||
|
|
Загрузка…
Ссылка в новой задаче