mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (magic_comment_encoding): use rb_compile_warning() to
show the currently parsing file name. [ruby-core:23469] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60a5a54e17
commit
d2c07ecb88
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat May 16 09:19:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* parse.y (magic_comment_encoding): use rb_compile_warning() to
|
||||||
|
show the currently parsing file name. [ruby-core:23469]
|
||||||
|
|
||||||
Sat May 16 09:03:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat May 16 09:03:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (ruby_version): now version.h includes
|
* configure.in (ruby_version): now version.h includes
|
||||||
|
|
4
parse.y
4
parse.y
|
@ -6100,8 +6100,8 @@ static void
|
||||||
magic_comment_encoding(struct parser_params *parser, const char *name, const char *val)
|
magic_comment_encoding(struct parser_params *parser, const char *name, const char *val)
|
||||||
{
|
{
|
||||||
if (!comment_at_top(parser)) {
|
if (!comment_at_top(parser)) {
|
||||||
rb_warning("encoding '%s' is ignored, valid only in the first line except for shebang line.",
|
rb_warningS("encoding '%s' is ignored, valid only in the first line except for shebang line.",
|
||||||
val);
|
val);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
parser_set_encode(parser, val);
|
parser_set_encode(parser, val);
|
||||||
|
|
Loading…
Add table
Reference in a new issue