ruby-cvs:20755
From: nobu ruby-lang.org
Date: Wed, 26 Sep 2007 18:39:09 +0900 (JST)
Subject: [ruby-cvs:20755] Ruby:r13518 (trunk): * encoding.c (rb_enc_check): check for ASCII-compatibilities.
nobu 2007-09-26 18:39:08 +0900 (Wed, 26 Sep 2007)
New Revision: 13518
Modified files:
trunk/ChangeLog
trunk/encoding.c
trunk/include/ruby/encoding.h
trunk/include/ruby/intern.h
trunk/insns.def
trunk/parse.y
trunk/string.c
trunk/vm.c
Log:
* encoding.c (rb_enc_check): check for ASCII-compatibilities.
* parse.y (parser_tokadd_string, parser_parse_string,
parser_here_document, parser_yylex): set encoding to US-ASCII.
* parse.y (rb_enc_symname_p): check if valid with encoding.
* parse.y (rb_intern3): let symbols have encoding.
* string.c (rb_str_hash): add encoding index.
* string.c (rb_str_comparable, rb_str_equal, rb_str_eql): check if
compatible encoding.
* string.c (sym_inspect): made encoding aware.
* insns.def (opt_eq): compare with encoding.
* include/ruby/encoding.h (rb_enc_asciicompat): check if ASCII
compatible.
* include/ruby/encoding.h (rb_enc_get_index): added prototype.
* include/ruby/intern.h (rb_str_comparable, rb_str_equal): ditto.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=13518&r2=13517
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=13518&r2=13517
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13518&r2=13517
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/encoding.h?r1=13518&r2=13517
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm.c?r1=13518&r2=13517
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=13518&r2=13517
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/insns.def?r1=13518&r2=13517
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/intern.h?r1=13518&r2=13517