diff --git a/src/benchmark.c b/src/benchmark.c index 408bfdb22716a31afb16a2dc75c72cf0fa34da7d..75595b231ef5c5e1853ec8c88a9aafba8ef5c588 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -14,6 +14,14 @@ #include <sys/resource.h> #endif +static const char* HParserBackendNames[] = { + "Packrat", + "Regular", + "LL(k)", + "LALR", + "GLR" +}; + void h_benchmark_clock_gettime(struct timespec *ts) { if (ts == NULL) return; diff --git a/src/hammer.h b/src/hammer.h index 52058b5cb6942c03f92d6180586805fe19f5d0d8..b0ce75d20d74d65b8a64e5a25694ef8696acf4ad 100644 --- a/src/hammer.h +++ b/src/hammer.h @@ -46,14 +46,6 @@ typedef enum HParserBackend_ { PB_MAX = PB_GLR } HParserBackend; -static const char* HParserBackendNames[] = { - "Packrat", - "Regular", - "LL(k)", - "LALR", - "GLR" -}; - typedef enum HTokenType_ { // Before you change the explicit values of these, think of the poor bindings ;_; TT_NONE = 1,