From 3a920b7163ecc5a2b5115724f9020f798985cbe5 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 16 Oct 2020 12:03:28 +0100 Subject: [PATCH] conf: add tool to print regex name/regex pairs as re2r input this is currently not included in the build system and needs to be compiled by hand. --- src/conf_regex_print.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/conf_regex_print.c diff --git a/src/conf_regex_print.c b/src/conf_regex_print.c new file mode 100644 index 0000000..3146321 --- /dev/null +++ b/src/conf_regex_print.c @@ -0,0 +1,14 @@ +/* this is a tool to print regexname regex pairs as input for re2r. + compile with gcc -I. src/conf_regex_print.c + */ + +#include "config.h" + +#include + +#define STDCONF(A, B, C) printf("%s %s\n", #A, B) + +int main() { +#include "conf_regex.h" +; +}