help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem finding cause of memory exhausted


From: Hans Aberg
Subject: Re: Problem finding cause of memory exhausted
Date: Tue, 13 May 2008 11:20:16 +0200

On 13 May 2008, at 10:53, Frans Englich wrote:

yyoverflow is undefined. Even undefined it to be sure.

The file yacc.c has a segment looking like:
  #ifdef yyoverflow
        yyoverflow (YY_("memory exhausted"), ...

  #else /* no yyoverflow */
  # ifndef YYSTACK_RELOCATE
      goto yyexhaustedlab;
  # else
  ...
And only yyoverflow and yyexhaustedlab can cause "memory exhausted" be written.

So if yyoverflow is undefined, for some reason, YYSTACK_RELOCATE is not defined. - I thought this was th default. So perhpas check if it is not a bug, and report to Bug-Bison.

  Hans







reply via email to

[Prev in Thread] Current Thread [Next in Thread]