From 1089015fcc3257dca9eac0b3319e242d95423973 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 4 Aug 2020 14:14:40 +0200 Subject: executor: remove block comments 1. We don't generally use /* */ block comments, few precedents we have are inconsistent with the rest of the code. 2. pkg/csource does not strip them from the resulting code. Remove the cases we have and add a test to prevent new ones being added. --- pkg/csource/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/csource/common.go') diff --git a/pkg/csource/common.go b/pkg/csource/common.go index c767349e2..a4adf3a56 100644 --- a/pkg/csource/common.go +++ b/pkg/csource/common.go @@ -52,7 +52,7 @@ func createCommonHeader(p, mmapProg *prog.Prog, replacements map[string]string, } for from, to := range replacements { - src = bytes.Replace(src, []byte("/*"+from+"*/"), []byte(to), -1) + src = bytes.Replace(src, []byte("/*{{{"+from+"}}}*/"), []byte(to), -1) } for from, to := range map[string]string{ -- cgit mrf-deployment