Merge pull request #110 from mrdomino/move-unreferenced-var
Move backend names into src/benchmark.c
This commit is contained in:
commit
735131ee24
2 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue