[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yacc.c: Extracting yysyntax_error
From: |
Akim Demaille |
Subject: |
Re: yacc.c: Extracting yysyntax_error |
Date: |
Tue, 20 Sep 2005 09:19:20 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
>>> "Paul" == Paul Eggert <address@hidden> writes:
> Unfortunately it's more complicated than that. First, yysyntax_error
> might return alloca storage, which is a no-no.
Yes, definitely :)
> Second, if YYERROR_VERBOSE is not defined, yysyntax_error's args
> are not used, and many compilers warn about this.
Agreed, I realize that my sentence about applying the patch is not
what I meant: I was more referring to its topic.
> There's one more problem while we're in the area: a memory leak if
> if YYSTACK_USE_ALLOCA is in effect. Each syntax error uses up
> more stack space.
Sorry, I fail to see how this can happen.
> I've drafted a patch to fix these problems, but have not yet had time
> to test it. I'll try to do it soon.
Good news! This will also help moving lalr1.cc to a YY18N compatible
scheme.
- Re: yacc.c: Extracting yysyntax_error, Paul Eggert, 2005/09/20
- Re: yacc.c: Extracting yysyntax_error, Akim Demaille, 2005/09/20
- Re: yacc.c: Extracting yysyntax_error, Paul Eggert, 2005/09/20
- Re: yacc.c: Extracting yysyntax_error, Hans Aberg, 2005/09/21
- Re: yacc.c: Extracting yysyntax_error, Akim Demaille, 2005/09/21
- Re: yacc.c: Extracting yysyntax_error, Hans Aberg, 2005/09/21
- Re: yacc.c: Extracting yysyntax_error, Paul Eggert, 2005/09/21
- Re: yacc.c: Extracting yysyntax_error, Hans Aberg, 2005/09/21
- Re: yacc.c: Extracting yysyntax_error, Hans Aberg, 2005/09/22
- Re: yacc.c: Extracting yysyntax_error, Paul Eggert, 2005/09/21