ruby-changes:58134
From: Yusuke <ko1@a...>
Date: Sat, 5 Oct 2019 18:09:32 +0900 (JST)
Subject: [ruby-changes:58134] 70e3fda2eb (master): ext/json/parser/prereq.mk: keep line numbers of ext/json/parser/parser.c
https://git.ruby-lang.org/ruby.git/commit/?id=70e3fda2eb From 70e3fda2eb45c841e5fb4574273d20f8df5455e5 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 5 Oct 2019 17:54:36 +0900 Subject: ext/json/parser/prereq.mk: keep line numbers of ext/json/parser/parser.c Follow up of 5717e55e9a7790c938afa694a9bf558c0e54bb83. Adding a header with newline broke linenos. diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index cb91a2e..11cd290 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -1,5 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/json/parser/parser.c#L1 /* This file is automatically generated from parser.rl by using ragel */ - #line 1 "parser.rl" #include "../fbuffer/fbuffer.h" #include "parser.h" diff --git a/ext/json/parser/prereq.mk b/ext/json/parser/prereq.mk index 386999b..04aeac9 100644 --- a/ext/json/parser/prereq.mk +++ b/ext/json/parser/prereq.mk @@ -6,6 +6,6 @@ RAGEL = ragel https://github.com/ruby/ruby/blob/trunk/ext/json/parser/prereq.mk#L6 $(RAGEL) -G2 $< $(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \ -e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \ - -e '$$header ||= $$_ = "/* This file is automatically generated from parser.rl by using ragel */\n" + $$_' $@ + -e '$$header ||= $$_ = "/* This file is automatically generated from parser.rl by using ragel */" + $$_' $@ parser.c: -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/