UpstandingHackers / hammer

Parser combinators for binary formats, in C. Yes, in C. What? Don't look at me like that.
GNU General Public License v2.0
430 stars 40 forks source link

Move backend names into src/benchmark.c #110

Closed mrdomino closed 9 years ago

mrdomino commented 9 years ago

It's causing unreferenced-variable warnings, and isn't referenced anywhere aside from benchmark.c. If client code is likely to reference it, perhaps move it into another header, so people who include hammer.h don't have to refer to it to have warning-free code.

abiggerhammer commented 9 years ago

Yeah, this is fine. The enumeration to be used in client code is HParserBackend, and the array is really just for benchmark CLI output.