summaryrefslogtreecommitdiff
path: root/scan.c
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 /scan.c
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 'scan.c')
-rw-r--r--scan.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/scan.c b/scan.c
index d7f5db3..e447e75 100644
--- a/scan.c
+++ b/scan.c
@@ -140,7 +140,15 @@ typedef unsigned int flex_uint32_t;
/* 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
/* The state buf must be large enough to hold one state per character in the main buffer.