зеркало из https://github.com/github/ruby.git
ext/json/parser/prereq.mk: Add a "automatically generated" header
to parser.c.
This commit is contained in:
Родитель
076d3d758b
Коммит
5717e55e9a
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче