|
From: | Akim Demaille |
Subject: | Re: [PATCH] api.push-pull: complain about YYSTACK_USE_ALLOCA=1. |
Date: | Wed, 16 Sep 2009 12:51:10 +0200 |
Le 13 sept. 2009 à 22:01, Joel E. Denny a écrit :
I'd like to push this patch to master, branch-2.5, and branch-2.4.2 so that push parser users are informed that they can't setYYSTACK_USE_ALLOCA=1. The only way I can see to do this is with #error in yacc.c. However, I don't see any other use of #error in the skeletons.Is there any reason not to use it?
In a distant past, when free(0) could not be trusted, there was also compilers (well, preprocessors), that die on #unknown directives, even if inside a skipped #if section.
I suppose this is no longer the case, so let's do it. But I wouldn't in 2.4.2 though. Let's drop knr completely in 2.5, not before.
[Prev in Thread] | Current Thread | [Next in Thread] |