summaryrefslogtreecommitdiff
path: root/template/encdb.h.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/encdb.h.tmpl')
-rw-r--r--template/encdb.h.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/template/encdb.h.tmpl b/template/encdb.h.tmpl
index 06afb5dbe1..b3bd54548a 100644
--- a/template/encdb.h.tmpl
+++ b/template/encdb.h.tmpl
@@ -58,7 +58,7 @@ encdirs.each do |encdir|
else
name = $1
end
- check_duplication(defs, $1, fn, $.)
+ check_duplication(defs, $1, fn, f.lineno)
next if BUILTIN_ENCODINGS[name]
encodings << $1
count += 1
@@ -71,18 +71,18 @@ encdirs.each do |encdir|
when /^ENC_REPLICATE\(\s*"([^"]+)"\s*,\s*"([^"]+)"/
raise ArgumentError,
'%s:%d: ENC_REPLICATE: %s is not defined yet. (replica %s)' %
- [fn, $., $2, $1] unless defs[$2.upcase]
+ [fn, f.lineno, $2, $1] unless defs[$2.upcase]
count += 1
when /^ENC_ALIAS\(\s*"([^"]+)"\s*,\s*"([^"]+)"/
raise ArgumentError,
'%s:%d: ENC_ALIAS: %s is not defined yet. (alias %s)' %
- [fn, $., $2, $1] unless defs[$2.upcase]
+ [fn, f.lineno, $2, $1] unless defs[$2.upcase]
when /^ENC_DUMMY\w*\(\s*"([^"]+)"/
count += 1
else
next
end
- check_duplication(defs, $1, fn, $.)
+ check_duplication(defs, $1, fn, f.lineno)
lines << line.sub(/;.*/m, "").chomp + ";" if line
end
end