[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] warning in yyerror()
From: |
Paul Eggert |
Subject: |
Re: [PATCH] warning in yyerror() |
Date: |
Tue, 07 Jun 2005 15:13:41 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Toby Peterson <address@hidden> writes:
> Patch: http://cvs.opendarwin.org/index.cgi/~checkout~/dports/devel/
> bison/files/patch-data__yacc.c
>
> When YYMAXDEPTH is 0,
How could that happen? YYINITDEPTH must be positive, right? And
there's no point to setting YYMAXDEPTH to a value less than YYINITDEPTH.
> yyparse() generates a warning (about a comparison always being
> true). yystacksize is unsigned, which causes the warning only when
> YYMAXDEPTH is <= 0.
I'd rather not change the code to say "#if YYMAXDEPTH > 0", since
YYMAXDEPTH might expand to be a static variable or something like
that, and this won't work in a preprocessor #if.