summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-21 09:25:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-21 12:24:55 +0100
commit726a3712eec4e26e88492dd5005360938307209b (patch)
tree99f32de55671f7055b52442a3835aae2a91475b9 /hwpfilter
parente746d8d3af46cb17c705dd7d6724cff8bdd6bca8 (diff)
yyoverflow is not defined
Change-Id: I5769b82ededd15a50892bc4e9478f69edb4722c3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131893 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/grammar.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/hwpfilter/source/grammar.cxx b/hwpfilter/source/grammar.cxx
index 556bd2c8949f..740ec072b6fd 100644
--- a/hwpfilter/source/grammar.cxx
+++ b/hwpfilter/source/grammar.cxx
@@ -466,16 +466,6 @@ yynewstate:
/* Get the current used size of the three stacks, in elements. */
int size = yyssp - yyss + 1;
-#ifdef yyoverflow
- /* Each stack pointer address is followed by the size of
- the data in use in that stack, in bytes. */
- yyoverflow("parser stack overflow",
- &yyss1, size * sizeof (*yyssp),
- &yyvs1, size * sizeof (*yyvsp),
- &yystacksize);
-
- yyss = yyss1; yyvs = yyvs1;
-#else /* no yyoverflow */
/* Extend the stack our own way. */
if (yystacksize >= YYMAXDEPTH)
{
@@ -495,7 +485,6 @@ yynewstate:
memcpy (yyss, yyss1, size * sizeof (*yyssp));
yyvs = static_cast<YYSTYPE *>(malloc (yystacksize * sizeof (*yyvsp)));
memcpy (yyvs, yyvs1, size * sizeof (*yyvsp));
-#endif /* no yyoverflow */
yyssp = yyss + size - 1;
yyvsp = yyvs + size - 1;