1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* intern.h, parse.y (ruby_pragma): removed. fixed: [ruby-dev:26198]

* parse.y (parser_pragma): pragma name was ignored.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-05-22 03:31:08 +00:00
parent 9564678f36
commit 21393f1b2d
3 changed files with 8 additions and 10 deletions

View file

@ -1,3 +1,9 @@
Sun May 22 12:30:58 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* intern.h, parse.y (ruby_pragma): removed. fixed: [ruby-dev:26198]
* parse.y (parser_pragma): pragma name was ignored.
Sun May 22 02:39:57 2005 Minero Aoki <aamine@loveruby.net>
* lib/fileutils.rb (rm_r): new option :secure to avoid

View file

@ -394,7 +394,6 @@ void ruby_process_options _((int, char**));
void ruby_load_script _((void));
void ruby_init_loadpath _((void));
void ruby_incpush _((const char*));
int ruby_pragma _((const char*, int));
/* signal.c */
VALUE rb_f_kill _((int, VALUE*));
void rb_gc_mark_trap_list _((void));

11
parse.y
View file

@ -5470,7 +5470,8 @@ parser_pragma(parser, str, len)
}
while (len > 0 && (*str == ';' || ISSPACE(*str))) --len, str++;
str_copy(name, beg, end - beg);
n = end - beg;
str_copy(name, beg, n);
rb_funcall(name, rb_intern("downcase!"), 0);
do {
if (strncmp(p->name, RSTRING(name)->ptr, n) == 0) {
@ -5484,14 +5485,6 @@ parser_pragma(parser, str, len)
return Qtrue;
}
int
ruby_pragma(str, len)
const char *str;
int len;
{
return parser_pragma(0, str, len);
}
static void
parser_prepare(parser)
struct parser_params *parser;