replace recdefgen.rb with recdefgen.c