summaryrefslogtreecommitdiff
path: root/template/id.c.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/id.c.tmpl')
-rw-r--r--template/id.c.tmpl5
1 files changed, 2 insertions, 3 deletions
diff --git a/template/id.c.tmpl b/template/id.c.tmpl
index 4f54f8b..4a272a9 100644
--- a/template/id.c.tmpl
+++ b/template/id.c.tmpl
@@ -11,9 +11,8 @@
**********************************************************************/
<%
-predefined_ids = nil
defs = File.join(File.dirname(erb.filename), "../defs/id.def")
-eval(File.read(defs), binding, defs)
+ids = eval(File.read(defs), binding, defs)
%>
static void
Init_id(void)
@@ -22,7 +21,7 @@ Init_id(void)
#define rb_intern(str) rb_intern_const(str)
rb_encoding *enc = rb_usascii_encoding();
-% predefined_ids.each_pair do |token, name|
+% ids[:predefined].each do |token, name|
REGISTER_SYMID(id<%=token%>, "<%=name%>");
% end
}