projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
EOF syntax error
[m6w6/ext-psi]
/
src
/
parser.h
diff --git
a/src/parser.h
b/src/parser.h
index 737524fb4cbece4f2fe66dd7f79d18f7c20b3846..5ec0b95e6354875c2f4fa7aa881df78c9b11c67b 100644
(file)
--- a/
src/parser.h
+++ b/
src/parser.h
@@
-141,6
+141,7
@@
static inline decl_arg *init_decl_arg(decl_type *type, decl_var *var) {
decl_arg *arg = calloc(1, sizeof(*arg));
arg->type = type;
arg->var = var;
+ var->arg = arg;
return arg;
}
@@
-1064,7
+1065,7
@@
static inline PSI_Token *PSI_TokenAlloc(PSI_Parser *P) {
PSI_Token *T;
size_t token_len;
- if (P->cur <
=
P->tok) {
+ if (P->cur < P->tok) {
return NULL;
}