зеркало из https://github.com/github/ruby.git
console.c: initialize
* ext/io/console/console.c (rawmode_opt): initialize options for the case all options are not given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4cb4c929df
Коммит
523292d612
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Feb 4 15:10:10 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/io/console/console.c (rawmode_opt): initialize options for the
|
||||||
|
case all options are not given.
|
||||||
|
|
||||||
Mon Feb 4 12:44:13 2013 Koichi Sasada <ko1@atdot.net>
|
Mon Feb 4 12:44:13 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_dump.c (control_frame_dump): capitalize prefix of `ep'
|
* vm_dump.c (control_frame_dump): capitalize prefix of `ep'
|
||||||
|
|
|
@ -105,6 +105,8 @@ rawmode_opt(int argc, VALUE *argv, rawmode_arg_t *opts)
|
||||||
if (!NIL_P(vopts)) {
|
if (!NIL_P(vopts)) {
|
||||||
VALUE vmin = rb_hash_aref(vopts, ID2SYM(rb_intern("min")));
|
VALUE vmin = rb_hash_aref(vopts, ID2SYM(rb_intern("min")));
|
||||||
VALUE vtime = rb_hash_aref(vopts, ID2SYM(rb_intern("time")));
|
VALUE vtime = rb_hash_aref(vopts, ID2SYM(rb_intern("time")));
|
||||||
|
opts->vmin = 0;
|
||||||
|
opts->vtime = 0;
|
||||||
if (!NIL_P(vmin)) {
|
if (!NIL_P(vmin)) {
|
||||||
opts->vmin = NUM2INT(vmin);
|
opts->vmin = NUM2INT(vmin);
|
||||||
optp = opts;
|
optp = opts;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче