Use const instead of define macros.
Use enum

Refactor corpus format type
Delete unnecessary forward declaration.