ruby-changes:6877
From: akr <ko1@a...>
Date: Wed, 6 Aug 2008 22:46:13 +0900 (JST)
Subject: [ruby-changes:6877] Ruby:r18395 (trunk): * tool/transcode-tblgen.rb (transcode_generate_node): code
akr 2008-08-06 22:42:21 +0900 (Wed, 06 Aug 2008) New Revision: 18395 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18395 Log: * tool/transcode-tblgen.rb (transcode_generate_node): code argument removed. Modified files: trunk/ChangeLog trunk/enc/trans/utf_16_32.erb.c trunk/tool/transcode-tblgen.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 18394) +++ ChangeLog (revision 18395) @@ -1,3 +1,8 @@ +Wed Aug 6 22:40:48 2008 Tanaka Akira <akr@f...> + + * tool/transcode-tblgen.rb (transcode_generate_node): code + argument removed. + Wed Aug 6 21:25:45 2008 Nobuyoshi Nakada <nobu@r...> * gc.c (chain_finalized_object): deletes finalizers to be invoked from Index: enc/trans/utf_16_32.erb.c =================================================================== --- enc/trans/utf_16_32.erb.c (revision 18394) +++ enc/trans/utf_16_32.erb.c (revision 18395) @@ -185,9 +185,7 @@ map["{d8-db}{00-ff}{dc-df}{00-ff}"] = :func_so map["{dc-df}{00-ff}"] = :invalid map["{d8-db}{00-ff}{00-db,e0-ff}{00-ff}"] = :invalid - code = '' - transcode_generate_node(ActionMap.parse(map), code, "from_UTF_16BE", []) - code + transcode_generate_node(ActionMap.parse(map), "from_UTF_16BE", []) %> static const rb_transcoder @@ -212,10 +210,8 @@ map["ed{a0-bf}"] = :invalid map["f0{80-8f}"] = :invalid map["f4{90-bf}"] = :invalid - code = '' am = ActionMap.parse(map) - transcode_generate_node(am, code, "to_UTF_16BE", [0x00..0xff, 0x80..0xbf, 0x80..0xbf, 0x80..0xbf]) - code + transcode_generate_node(am, "to_UTF_16BE", [0x00..0xff, 0x80..0xbf, 0x80..0xbf, 0x80..0xbf]) %> static const rb_transcoder @@ -230,9 +226,7 @@ map["{00-ff}{d8-db}{00-ff}{dc-df}"] = :func_so map["{00-ff}{dc-df}"] = :invalid map["{00-ff}{d8-db}{00-ff}{00-db,e0-ff}"] = :invalid - code = '' - transcode_generate_node(ActionMap.parse(map), code, "from_UTF_16LE", []) - code + transcode_generate_node(ActionMap.parse(map), "from_UTF_16LE", []) %> static const rb_transcoder @@ -254,9 +248,7 @@ map["00{11-ff}{00-ff}{00-ff}"] = :invalid map["0000{d8-df}{00-ff}"] = :invalid map["{01-ff}{00-ff}{00-ff}{00-ff}"] = :invalid - code = '' - transcode_generate_node(ActionMap.parse(map), code, "from_UTF_32BE", []) - code + transcode_generate_node(ActionMap.parse(map), "from_UTF_32BE", []) %> static const rb_transcoder @@ -278,9 +270,7 @@ map["{00-ff}{00-ff}{00-ff}{01-ff}"] = :invalid map["{00-ff}{00-ff}{11-ff}00"] = :invalid map["{00-ff}{d8-df}0000"] = :invalid - code = '' - transcode_generate_node(ActionMap.parse(map), code, "from_UTF_32LE", []) - code + transcode_generate_node(ActionMap.parse(map), "from_UTF_32LE", []) %> static const rb_transcoder Index: tool/transcode-tblgen.rb =================================================================== --- tool/transcode-tblgen.rb (revision 18394) +++ tool/transcode-tblgen.rb (revision 18395) @@ -415,9 +415,11 @@ tree_code + "\n" + transcoder_code end -def transcode_generate_node(am, code, name_hint=nil, ranges=[]) +def transcode_generate_node(am, name_hint=nil, ranges=[]) STDERR.puts "converter for #{name_hint}" if VERBOSE_MODE + code = '' am.generate_node(code, name_hint, ranges) + code end def transcode_register_code -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/