Merge pull request #110 from mrdomino/move-unreferenced-var

Move backend names into src/benchmark.c
This commit is contained in:
Meredith L. Patterson 2014-12-07 22:20:03 +01:00
commit 735131ee24
2 changed files with 8 additions and 8 deletions

View file

@ -14,6 +14,14 @@
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
static const char* HParserBackendNames[] = {
"Packrat",
"Regular",
"LL(k)",
"LALR",
"GLR"
};
void h_benchmark_clock_gettime(struct timespec *ts) { void h_benchmark_clock_gettime(struct timespec *ts) {
if (ts == NULL) if (ts == NULL)
return; return;

View file

@ -46,14 +46,6 @@ typedef enum HParserBackend_ {
PB_MAX = PB_GLR PB_MAX = PB_GLR
} HParserBackend; } HParserBackend;
static const char* HParserBackendNames[] = {
"Packrat",
"Regular",
"LL(k)",
"LALR",
"GLR"
};
typedef enum HTokenType_ { typedef enum HTokenType_ {
// Before you change the explicit values of these, think of the poor bindings ;_; // Before you change the explicit values of these, think of the poor bindings ;_;
TT_NONE = 1, TT_NONE = 1,