1%# -*- c -*- 2/* DO NOT EDIT THIS FILE DIRECTLY */ 3/********************************************************************** 4 5 id.c - 6 7 $Author: nobu $ 8 created at: Wed Dec 5 02:36:10 2012 9 10 Copyright (C) 2004-2007 Koichi Sasada 11 12**********************************************************************/ 13<% 14defs = File.join(File.dirname(File.dirname(erb.filename)), "defs/id.def") 15ids = eval(File.read(defs), binding, defs) 16%> 17static void 18Init_id(void) 19{ 20#undef rb_intern 21#define rb_intern(str) rb_intern_const(str) 22 rb_encoding *enc = rb_usascii_encoding(); 23 24% ids[:predefined].each do |token, name| 25 REGISTER_SYMID(id<%=token%>, "<%=name%>"); 26% end 27} 28