[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/10] glr2.cc: fix when the stack is not expandable
From: |
Akim Demaille |
Subject: |
[PATCH 02/10] glr2.cc: fix when the stack is not expandable |
Date: |
Sun, 6 Dec 2020 14:10:29 +0100 |
* data/skeletons/glr2.cc (yyexpandGLRStackIfNeeded): Fix the
implementation when !YYSTACKEXPANDABLE.
---
data/skeletons/glr2.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/data/skeletons/glr2.cc b/data/skeletons/glr2.cc
index 8c5fc396..885c57c4 100644
--- a/data/skeletons/glr2.cc
+++ b/data/skeletons/glr2.cc
@@ -1364,8 +1364,9 @@ class state_stack {
}
public:
#else
- bool yyexpandGLRStackIfNeeded() {
- return yystateStack.spaceLeft() < YYHEADROOM;
+ bool yyexpandGLRStackIfNeeded ()
+ {
+ return spaceLeft () < YYHEADROOM;
}
#endif
--
2.29.2
- [PATCH 00/10] glr2.cc: fixes, Akim Demaille, 2020/12/06
- [PATCH 01/10] glr.c: fix line numbers in logs, Akim Demaille, 2020/12/06
- [PATCH 02/10] glr2.cc: fix when the stack is not expandable,
Akim Demaille <=
- [PATCH 03/10] glr2.cc: use 'const' for some constant local variables, Akim Demaille, 2020/12/06
- [PATCH 04/10] glr2.cc: turn some pointers into references, Akim Demaille, 2020/12/06
- [PATCH 05/10] glr2.cc: fix memory corruption bug, Akim Demaille, 2020/12/06
- [PATCH 06/10] glr2.cc: misc cleanups, Akim Demaille, 2020/12/06
- [PATCH 07/10] glr2.cc: fix yyresolveValue, Akim Demaille, 2020/12/06
- [PATCH 08/10] glr2.cc: add support for parse.assert, Akim Demaille, 2020/12/06
- [PATCH 09/10] glr2.cc: use the same format for traces as glr.c, Akim Demaille, 2020/12/06
- [PATCH 10/10] glr2.cc: run the glr-regression tests, Akim Demaille, 2020/12/06