automatic generate names for enum type, native C version