ruby-changes:31285
From: nobu <ko1@a...>
Date: Sat, 19 Oct 2013 21:00:45 +0900 (JST)
Subject: [ruby-changes:31285] nobu:r43364 (trunk): encdb.h.tmpl: remove stale macros
nobu 2013-10-19 21:00:41 +0900 (Sat, 19 Oct 2013) New Revision: 43364 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43364 Log: encdb.h.tmpl: remove stale macros * template/encdb.h.tmpl: remove stale ENCIDX macros which never been used, ENCINDEX enums is used. Modified files: trunk/template/encdb.h.tmpl Index: template/encdb.h.tmpl =================================================================== --- template/encdb.h.tmpl (revision 43363) +++ template/encdb.h.tmpl (revision 43364) @@ -82,14 +82,10 @@ encdirs.each do |encdir| https://github.com/ruby/ruby/blob/trunk/template/encdb.h.tmpl#L82 end encodings.each_with_index do |e, i| %>ENC_DEFINE("<%=e%>"); -#define ENCIDX_<%=e.tr('-', '_')%> <%=i%> % end % encidx = encodings.size - 1 % lines.each do |line| <%=line%> -% if /^ENC_(?:DUMMY(?:_UNICODE)?|REPLICATE)\(\s*"([^"]+)/ =~ line -#define ENCIDX_<%=$1.tr('-', '_')%> <%=encidx+=1%> -% end % end #define ENCODING_COUNT <%=count%> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/