make the parser understandable by IDE
[m6w6/ext-psi] / src / parser.h
index 105e974a32efd407f777c734ca39d6e4711e6d1c..c99c26606e8fe17942a054a41d89e2e3ddc9e207 100644 (file)
@@ -957,16 +957,17 @@ static inline void free_let_func(let_func *func) {
        free(func);
 }
 
+enum let_val_kind {
+       PSI_LET_NULL,
+       PSI_LET_NUMEXP,
+       PSI_LET_CALLOC,
+       PSI_LET_CALLBACK,
+       PSI_LET_FUNC,
+       PSI_LET_TMP,
+};
 #define PSI_LET_REFERENCE 0x1;
 typedef struct let_val {
-       enum let_val_kind {
-               PSI_LET_NULL,
-               PSI_LET_NUMEXP,
-               PSI_LET_CALLOC,
-               PSI_LET_CALLBACK,
-               PSI_LET_FUNC,
-               PSI_LET_TMP,
-       } kind;
+       enum let_val_kind kind;
        union {
                num_exp *num;
                let_calloc *alloc;