From 9854085fee254ef0c96775031089911cf72164c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 11 Feb 2017 15:18:42 +0100 Subject: test/vis: drop cpp(1) as a preprocessor It is not worth the trouble to deal with different escaping rules. The tests should be relatively small and self contained anyway, hence comments should not be that important. --- vis/visrc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis/visrc.lua') diff --git a/vis/visrc.lua b/vis/visrc.lua index e19efed..642af45 100644 --- a/vis/visrc.lua +++ b/vis/visrc.lua @@ -5,7 +5,7 @@ vis.events.win_open = function(win) if name then -- use the corresponding test.lua file name = string.gsub(name, '%.in$', '') - local file = assert(io.popen(string.format("cpp -P '%s.keys'", name), 'r')) + local file = io.open(string.format("%s.keys", name)) local keys = file:read('*all') keys = string.gsub(keys, '%s*\n', '') keys = string.gsub(keys, '', ' ') -- cgit v1.2.3