summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1f02aa8)
Don't continue the parse loop if tos hits zero.
Signed-off-by: NeilBrown <neil@brown.name>
void *ret = NULL;
shift(&p, TK_eof, 0, 1, NULL, states);
void *ret = NULL;
shift(&p, TK_eof, 0, 1, NULL, states);
+ while (!accepted && p.tos > 0) {
struct token *err_tk;
struct frame *tos = &p.stack[p.tos-1];
if (!tk)
struct token *err_tk;
struct frame *tos = &p.stack[p.tos-1];
if (!tk)