mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
maint: an envvar equal to "00" is 0.
* src/output.c (prepare): here. Reported by Paul Eggert.
This commit is contained in:
@@ -668,10 +668,10 @@ output_skeleton (void)
|
|||||||
static void
|
static void
|
||||||
prepare (void)
|
prepare (void)
|
||||||
{
|
{
|
||||||
/* BISON_USE_PUSH_FOR_PULL is for the test suite and should not be documented
|
/* BISON_USE_PUSH_FOR_PULL is for the test suite and should not be
|
||||||
for the user. */
|
documented for the user. */
|
||||||
char const *cp = getenv ("BISON_USE_PUSH_FOR_PULL");
|
char const *cp = getenv ("BISON_USE_PUSH_FOR_PULL");
|
||||||
bool use_push_for_pull_flag = cp && *cp && STRNEQ (cp, "0");
|
bool use_push_for_pull_flag = cp && *cp && strtol (cp, 0, 10);
|
||||||
|
|
||||||
/* Flags. */
|
/* Flags. */
|
||||||
MUSCLE_INSERT_BOOL ("defines_flag", defines_flag);
|
MUSCLE_INSERT_BOOL ("defines_flag", defines_flag);
|
||||||
|
|||||||
Reference in New Issue
Block a user