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

encdb.h.tmpl: remove stale macros

* template/encdb.h.tmpl: remove stale ENCIDX macros which never been
  used, ENCINDEX enums is used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-10-19 12:00:41 +00:00
parent cb4b55d3d8
commit 16b445008d

View file

@ -82,14 +82,10 @@ encdirs.each do |encdir|
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%>