mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* process.c (struct rb_exec_arg): proc should be a VALUE.
* process.c (rb_f_exec): suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
704d5b1f4b
commit
43207747c1
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Sep 21 15:46:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* process.c (struct rb_exec_arg): proc should be a VALUE.
|
||||||
|
|
||||||
|
* process.c (rb_f_exec): suppress a warning.
|
||||||
|
|
||||||
Fri Sep 21 03:05:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Sep 21 03:05:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c, intern.h, ext/thread/thread.c: should not free queue while
|
* eval.c, intern.h, ext/thread/thread.c: should not free queue while
|
||||||
|
|
|
@ -1200,7 +1200,7 @@ struct rb_exec_arg {
|
||||||
VALUE prog;
|
VALUE prog;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct rb_exec_arg *
|
static void
|
||||||
proc_prepare_args(e, argc, argv, prog)
|
proc_prepare_args(e, argc, argv, prog)
|
||||||
struct rb_exec_arg *e;
|
struct rb_exec_arg *e;
|
||||||
int argc;
|
int argc;
|
||||||
|
@ -1222,7 +1222,6 @@ proc_prepare_args(e, argc, argv, prog)
|
||||||
e->prog = prog;
|
e->prog = prog;
|
||||||
e->argc = argc;
|
e->argc = argc;
|
||||||
e->argv = argv;
|
e->argv = argv;
|
||||||
return e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
@ -1290,7 +1289,8 @@ rb_f_exec(argc, argv)
|
||||||
argv[0] = RARRAY(tmp)->ptr[1];
|
argv[0] = RARRAY(tmp)->ptr[1];
|
||||||
SafeStringValue(prog);
|
SafeStringValue(prog);
|
||||||
}
|
}
|
||||||
proc_exec_args(proc_prepare_args(&earg, argc, argv, prog));
|
proc_prepare_args(&earg, argc, argv, prog);
|
||||||
|
proc_exec_args((VALUE)&earg);
|
||||||
rb_sys_fail(RSTRING(argv[0])->ptr);
|
rb_sys_fail(RSTRING(argv[0])->ptr);
|
||||||
return Qnil; /* dummy */
|
return Qnil; /* dummy */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue