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

ext/json/parser/prereq.mk: Add a "automatically generated" header

to parser.c.
This commit is contained in:
Yusuke Endoh 2019-10-05 07:00:07 +09:00
parent 076d3d758b
commit 5717e55e9a
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,4 @@
/* This file is automatically generated from parser.rl by using ragel */
#line 1 "parser.rl"
#include "../fbuffer/fbuffer.h"

View file

@ -5,6 +5,7 @@ RAGEL = ragel
.rl.c:
$(RAGEL) -G2 $<
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' $@
-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \
-e '$$header ||= $$_ = "/* This file is automatically generated from parser.rl by using ragel */\n" + $$_' $@
parser.c: