summaryrefslogtreecommitdiff
path: root/flex.skl
diff options
context:
space:
mode:
authorCyril Brulebois <kibi@debian.org>2009-01-02 06:53:39 +0100
committerManoj Srivastava <srivasta@golden-gryphon.com>2014-04-08 23:21:33 -0700
commit44c5665718bd2bbc91c38981dc3d262f4c579bd5 (patch)
treeaffcbe8e98398267fb7c112e36396d2bc797b51e /flex.skl
parentada7779d8b7a39d01dd70d733883db2383e61a6e (diff)
Finish fixing the ia64 buffer issue.
Previous commits increased YY_READ_BUF_SIZE (where __ia64__ is defined) but left YY_BUF_SIZE unchanged, so that didn't fix the problem in the end. In the general case, the latter is twice the former. Therefore set it to the same ratio in the ia64 case. Signed-off-by: Cyril Brulebois <kibi@debian.org> Signed-off-by: Manoj Srivastava <srivasta@debian.org>
Diffstat (limited to 'flex.skl')
-rw-r--r--flex.skl8
1 files changed, 8 insertions, 0 deletions
diff --git a/flex.skl b/flex.skl
index 6ebf2fd..2f20df8 100644
--- a/flex.skl
+++ b/flex.skl
@@ -443,7 +443,15 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]],
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k.
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
+ * Ditto for the __ia64__ case accordingly.
+ */
+#define YY_BUF_SIZE 32768
+#else
#define YY_BUF_SIZE 16384
+#endif /* __ia64__ */
#endif
m4_ifdef( [[M4_YY_NOT_IN_HEADER]],