hwpfilter/source/grammar.cxx |   11 -----------
 1 file changed, 11 deletions(-)

New commits:
commit 726a3712eec4e26e88492dd5005360938307209b
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Mar 21 09:25:32 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Mar 21 12:24:55 2022 +0100

    yyoverflow is not defined
    
    Change-Id: I5769b82ededd15a50892bc4e9478f69edb4722c3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131893
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

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;

Reply via email to