зеркало из https://github.com/github/ruby.git
* ruby.c (proc_options): add --gem=enabled as an alias of
--enable=gems and --gem=disabled as an alias of --disable=gems. Gem named "enabled" or "disabled" has already been reserved legitimately for this purpose. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
698960439d
Коммит
f17b469860
|
@ -1,3 +1,10 @@
|
|||
Fri Feb 11 23:27:50 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* ruby.c (proc_options): add --gem=enabled as an alias of
|
||||
--enable=gems and --gem=disabled as an alias of --disable=gems.
|
||||
Gem named "enabled" or "disabled" has already been reserved
|
||||
legitimately for this purpose.
|
||||
|
||||
Fri Feb 11 23:17:04 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/dl/cfunc.c: parenthesize macro arguments.
|
||||
|
|
10
ruby.c
10
ruby.c
|
@ -1072,7 +1072,15 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
|
|||
add_modules(&opt->req_list, s);
|
||||
}
|
||||
else if (is_option_with_arg("gem", Qfalse, Qtrue)) {
|
||||
add_gems(&opt->req_list, s);
|
||||
if (strcmp("disabled", s) == 0) {
|
||||
opt->disable |= DISABLE_BIT(gems);
|
||||
}
|
||||
else if (strcmp("enabled", s) == 0) {
|
||||
opt->disable &= ~DISABLE_BIT(gems);
|
||||
}
|
||||
else {
|
||||
add_gems(&opt->req_list, s);
|
||||
}
|
||||
}
|
||||
else if (strcmp("version", s) == 0) {
|
||||
if (envopt) goto noenvopt_long;
|
||||
|
|
Загрузка…
Ссылка в новой задаче