diff --git a/src/benchmark.c b/src/benchmark.c index 408bfdb..75595b2 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -14,6 +14,14 @@ #include #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 52058b5..b0ce75d 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,