summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-23 01:49:57 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-23 01:49:57 +0000
commit83f0e9d6f119128f88621665e3cb3dc51590e553 (patch)
treea4359dbfe0afc5ea3e0d1cd5a79cf9ee8298c86c /internal.h
parent919b1aa5e9143ab32242d0e67d7a6d23d87c78a5 (diff)
trivial packing of rb_execarg, load_file_arg, args_info
* internal.h (struct rb_execarg): 160 => 144 bytes on x86-64 * ruby.c (struct load_file_arg): 48 => 40 bytes on x86-64 * vm_args.c (struct args_info): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal.h b/internal.h
index e7b866bdd6..af357cd9ac 100644
--- a/internal.h
+++ b/internal.h
@@ -884,7 +884,6 @@ VALUE rb_block_clear_env_self(VALUE proc);
#define RB_MAX_GROUPS (65536)
struct rb_execarg {
- int use_shell;
union {
struct {
VALUE shell_script;
@@ -900,6 +899,7 @@ struct rb_execarg {
VALUE envp_str;
VALUE envp_buf;
VALUE dup2_tmpbuf;
+ unsigned use_shell : 1;
unsigned pgroup_given : 1;
unsigned umask_given : 1;
unsigned unsetenv_others_given : 1;
@@ -916,11 +916,11 @@ struct rb_execarg {
mode_t umask_mask;
rb_uid_t uid;
rb_gid_t gid;
+ int close_others_maxhint;
VALUE fd_dup2;
VALUE fd_close;
VALUE fd_open;
VALUE fd_dup2_child;
- int close_others_maxhint;
VALUE env_modification; /* Qfalse or [[k1,v1], ...] */
VALUE chdir_dir;
};