diff --git a/testcrypt.c b/testcrypt.c index aa144334..c6f6f0d9 100644 --- a/testcrypt.c +++ b/testcrypt.c @@ -81,7 +81,6 @@ int random_byte(void) /* end of list */ typedef struct Value Value; -typedef enum ValueType ValueType; enum ValueType { #define VALTYPE_ENUM(n,t,f) VT_##n, @@ -89,6 +88,8 @@ enum ValueType { #undef VALTYPE_ENUM }; +typedef enum ValueType ValueType; + const char *const type_names[] = { #define VALTYPE_NAME(n,t,f) #n, VALUE_TYPES(VALTYPE_NAME)