diff --git a/ChangeLog b/ChangeLog index ef4f807d03..b13583deb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 4 14:34:35 2007 Nobuyoshi Nakada + + * ruby.c (process_options): reverted c flag. + Tue Dec 4 11:23:50 2007 Nobuyoshi Nakada * bignum.c (rb_cstr_to_inum): trailing spaces may exist at sqeezing diff --git a/ruby.c b/ruby.c index 05c559a5e5..72602db016 100644 --- a/ruby.c +++ b/ruby.c @@ -1018,6 +1018,11 @@ process_options(VALUE arg) FL_UNSET(rb_load_path, FL_TAINT); } + if (opt->do_check) { + printf("Syntax OK\n"); + return Qtrue; + } + if (tree) { if (opt->do_print) { tree = rb_parser_append_print(parser, tree);