mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* sprintf.c (rb_f_sprintf): preceding ".." for negative numbers
still left; removed. * sprintf.c (rb_f_sprintf): should not prepend '0' if width > prec for example "%5.3d". * process.c (Init_process): add Process.exit and Process.abort * pack.c (utf8_to_uv): raise ArgumentError for malformed/redundant UTF-8 sequences. * process.c (last_status_set): add pid attribute to Process::Status. * pack.c (uv_to_utf8): limit maximum length of the encoded string to 6 bytes, even when the platform supports 8 bytes long integers. * pack.c (utf8_to_uv): do not decode sequences longer than 6 bytes. * object.c (copy_object): use "copy_object" method, not "become". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4dcd8a95c7
commit
60b2446bea
18 changed files with 136 additions and 122 deletions
8
eval.c
8
eval.c
|
@ -3588,11 +3588,10 @@ rb_exit(status)
|
|||
exit(status);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
rb_f_exit(argc, argv, obj)
|
||||
VALUE
|
||||
rb_f_exit(argc, argv)
|
||||
int argc;
|
||||
VALUE *argv;
|
||||
VALUE obj;
|
||||
{
|
||||
VALUE status;
|
||||
int istatus;
|
||||
|
@ -3608,7 +3607,7 @@ rb_f_exit(argc, argv, obj)
|
|||
return Qnil; /* not reached */
|
||||
}
|
||||
|
||||
static VALUE
|
||||
VALUE
|
||||
rb_f_abort(argc, argv)
|
||||
int argc;
|
||||
VALUE *argv;
|
||||
|
@ -9458,6 +9457,7 @@ Init_Thread()
|
|||
rb_define_method(rb_cThread, "run", rb_thread_run, 0);
|
||||
rb_define_method(rb_cThread, "wakeup", rb_thread_wakeup, 0);
|
||||
rb_define_method(rb_cThread, "kill", rb_thread_kill, 0);
|
||||
rb_define_method(rb_cThread, "terminate", rb_thread_kill, 0);
|
||||
rb_define_method(rb_cThread, "exit", rb_thread_kill, 0);
|
||||
rb_define_method(rb_cThread, "value", rb_thread_value, 0);
|
||||
rb_define_method(rb_cThread, "status", rb_thread_status, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue