diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-07 11:29:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-07 11:29:43 +0000 |
commit | 13edb951b71881b6ef89d1ab10e2e50eadd5d8da (patch) | |
tree | e3bf1e38d3562cd4313f5aec079d281c5da4854d /internal.h | |
parent | 425b78902d30e53e1b06f13ab7cc44a603cc53ec (diff) | |
download | ruby-13edb951b71881b6ef89d1ab10e2e50eadd5d8da.tar.gz |
* include/ruby/intern.h: rb_exec_arg and related stuff moved back from
internal.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/internal.h b/internal.h index 9ef4fba661..48a3a763d5 100644 --- a/internal.h +++ b/internal.h @@ -159,26 +159,6 @@ st_index_t rb_hash_proc(st_index_t hash, VALUE proc); /* process.c */ -struct rb_exec_arg { - int use_shell; - union { - struct { - VALUE shell_script; - } sh; - struct { - VALUE command_name; - VALUE command_abspath; /* full path string or nil */ - VALUE argv_str; - VALUE argv_buf; - } cmd; - } invoke; - VALUE options; - VALUE redirect_fds; - VALUE envp_str; - VALUE envp_buf; - VALUE dup2_tmpbuf; -}; - /* argv_str contains extra two elements. * The beginning one is for /bin/sh used by exec_with_sh. * The last one for terminating NULL used by execve. @@ -186,14 +166,6 @@ struct rb_exec_arg { #define ARGVSTR2ARGC(argv_str) (RSTRING_LEN(argv_str) / sizeof(char *) - 2) #define ARGVSTR2ARGV(argv_str) ((char **)RSTRING_PTR(argv_str) + 1) -void rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e); -int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val); -void rb_exec_arg_fixup(struct rb_exec_arg *e); -int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s); -int rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char*, size_t); -int rb_exec(const struct rb_exec_arg*); -int rb_exec_err(const struct rb_exec_arg*, char*, size_t); - /* rational.c */ VALUE rb_lcm(VALUE x, VALUE y); VALUE rb_rational_reciprocal(VALUE x); |