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:
parent
076d3d758b
commit
5717e55e9a
2 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
/* This file is automatically generated from parser.rl by using ragel */
|
||||
|
||||
#line 1 "parser.rl"
|
||||
#include "../fbuffer/fbuffer.h"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue