From 3903044dd68da8ac6d589cfc873260dccbf4cd8f Mon Sep 17 00:00:00 2001 From: mzuenni Date: Mon, 21 Apr 2025 14:31:26 +0200 Subject: use awk instead of macro hack --- test/graph/2sat.cpp | 3 --- test/graph/2sat.cpp.awk | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 test/graph/2sat.cpp.awk diff --git a/test/graph/2sat.cpp b/test/graph/2sat.cpp index fc3186e..cf37131 100644 --- a/test/graph/2sat.cpp +++ b/test/graph/2sat.cpp @@ -1,9 +1,6 @@ #include "../util.h" #include -#define static vector> adj; static // hacky... #include -#undef static -#undef adj struct RandomClause { int a, b; diff --git a/test/graph/2sat.cpp.awk b/test/graph/2sat.cpp.awk new file mode 100644 index 0000000..d0215d8 --- /dev/null +++ b/test/graph/2sat.cpp.awk @@ -0,0 +1,6 @@ +/scc variablen/ { + print; + print "\tvector> adj;"; + next +} +{ print } -- cgit v1.2.3