diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-13 11:18:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-13 11:18:51 +0000 |
commit | a39f4e5cf6555d635815336e1b4fc467b0a4c6b9 (patch) | |
tree | 99ef0e840931b32eea154bf18839c59334d6bca7 /ruby.c | |
parent | 1c75c0e28c58dcd4575798a5ba9789c15899b440 (diff) | |
download | ruby-a39f4e5cf6555d635815336e1b4fc467b0a4c6b9.tar.gz |
* ruby.c (process_sflag, proc_options, load_file_internal): fixed
types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -497,7 +497,7 @@ process_sflag(int *sflag) VALUE v = *args++; char *s = StringValuePtr(v); char *p; - int hyphen = Qfalse; + int hyphen = FALSE; if (s[0] != '-') break; @@ -514,7 +514,7 @@ process_sflag(int *sflag) break; } if (*p == '-') { - hyphen = Qtrue; + hyphen = TRUE; } else if (*p != '_' && !ISALNUM(*p)) { VALUE name_error[2]; @@ -695,17 +695,17 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt) switch (*s) { case 'a': if (envopt) goto noenvopt; - opt->do_split = Qtrue; + opt->do_split = TRUE; s++; goto reswitch; case 'p': if (envopt) goto noenvopt; - opt->do_print = Qtrue; + opt->do_print = TRUE; /* through */ case 'n': if (envopt) goto noenvopt; - opt->do_loop = Qtrue; + opt->do_loop = TRUE; s++; goto reswitch; @@ -778,7 +778,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt) case 'l': if (envopt) goto noenvopt; - opt->do_line = Qtrue; + opt->do_line = TRUE; rb_output_rs = rb_rs; s++; goto reswitch; @@ -786,7 +786,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt) case 'S': if (envopt) goto noenvopt; forbid_setid("-S"); - opt->do_search = Qtrue; + opt->do_search = TRUE; s++; goto reswitch; @@ -828,7 +828,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt) case 'x': if (envopt) goto noenvopt; - opt->xflag = Qtrue; + opt->xflag = TRUE; s++; if (*s && chdir(s) < 0) { rb_fatal("Can't chdir to %s", s); @@ -1513,7 +1513,7 @@ load_file_internal(VALUE arg) if (opt->xflag) { search_shebang: forbid_setid("-x"); - opt->xflag = Qfalse; + opt->xflag = FALSE; while (!NIL_P(line = rb_io_gets(f))) { line_start++; if (RSTRING_LEN(line) > 2 |