From 5717e55e9a7790c938afa694a9bf558c0e54bb83 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sat, 5 Oct 2019 07:00:07 +0900 Subject: ext/json/parser/prereq.mk: Add a "automatically generated" header to parser.c. --- ext/json/parser/parser.c | 1 + ext/json/parser/prereq.mk | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index 2d13bccf7e..fb10491d14 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -1,3 +1,4 @@ +/* This file is automatically generated from parser.rl by using ragel */ #line 1 "parser.rl" #include "../fbuffer/fbuffer.h" diff --git a/ext/json/parser/prereq.mk b/ext/json/parser/prereq.mk index be7bcb4319..386999ba9d 100644 --- a/ext/json/parser/prereq.mk +++ b/ext/json/parser/prereq.mk @@ -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: -- cgit v1.2.3