From 1a0f593b3c679c769160c1bb75af09c3f9820468 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 21 Jan 2009 04:59:20 +0000 Subject: [PATCH] * ruby.c (load_file_internal): no need to cast. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ruby.c b/ruby.c index a0d362b41f..9bf79bdfb4 100644 --- a/ruby.c +++ b/ruby.c @@ -325,7 +325,7 @@ expand_include_path(VALUE path) return rb_file_expand_path(path, Qnil); } -void +void ruby_incpush_expand(const char *path) { ruby_push_include(path, expand_include_path); @@ -566,7 +566,7 @@ moreswitches(const char *s, struct cmdline_options *opt, int envopt) while (*p && !ISSPACE(*p)) ++p; if (!*p) break; *p++ = '\0'; - while (ISSPACE(*p)) ++p; + while (ISSPACE(*p)) ++p; } argc = RSTRING_LEN(argary) / sizeof(ap); ap = 0; @@ -1128,7 +1128,7 @@ uscore_get() * call-seq: * sub(pattern, replacement) => $_ * sub(pattern) { block } => $_ - * + * * Equivalent to $_.sub(args), except that * $_ will be updated if substitution occurs. * Available only when -p/-n command line option specified. @@ -1148,11 +1148,11 @@ rb_f_sub(argc, argv) * call-seq: * gsub(pattern, replacement) => string * gsub(pattern) {|...| block } => string - * + * * Equivalent to $_.gsub..., except that $_ * receives the modified result. * Available only when -p/-n command line option specified. - * + * */ static VALUE @@ -1168,11 +1168,11 @@ rb_f_gsub(argc, argv) /* * call-seq: * chop => string - * + * * Equivalent to ($_.dup).chop!, except nil * is never returned. See String#chop!. * Available only when -p/-n command line option specified. - * + * */ static VALUE @@ -1188,11 +1188,11 @@ rb_f_chop() * call-seq: * chomp => $_ * chomp(string) => $_ - * + * * Equivalent to $_ = $_.chomp(string). See * String#chomp. * Available only when -p/-n command line option specified. - * + * */ static VALUE @@ -1592,7 +1592,7 @@ load_file_internal(VALUE arg) enc = rb_usascii_encoding(); } rb_funcall(f, set_encoding, 2, rb_enc_from_encoding(enc), rb_str_new_cstr("-")); - tree = (NODE *)rb_parser_compile_file(parser, fname, f, line_start); + tree = rb_parser_compile_file(parser, fname, f, line_start); rb_funcall(f, set_encoding, 1, rb_parser_encoding(parser)); if (script && rb_parser_end_seen_p(parser)) { rb_define_global_const("DATA", f);