projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
make the parser understandable by IDE
[m6w6/ext-psi]
/
src
/
parser.h
diff --git
a/src/parser.h
b/src/parser.h
index 105e974a32efd407f777c734ca39d6e4711e6d1c..c99c26606e8fe17942a054a41d89e2e3ddc9e207 100644
(file)
--- a/
src/parser.h
+++ b/
src/parser.h
@@
-957,16
+957,17
@@
static inline void free_let_func(let_func *func) {
free(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 {
#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;
union {
num_exp *num;
let_calloc *alloc;