It is more appropriate to use typedef enum on case condition