mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
maint: minor simplification
* src/output.c (prepare): Assign use_push_for_pull_flag's value at its declaration.
This commit is contained in:
@@ -685,12 +685,8 @@ 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 documented
|
||||||
for the user. */
|
for the user. */
|
||||||
char const *use_push_for_pull_env = getenv ("BISON_USE_PUSH_FOR_PULL");
|
char const *cp = getenv ("BISON_USE_PUSH_FOR_PULL");
|
||||||
bool use_push_for_pull_flag = false;
|
bool use_push_for_pull_flag = cp && *cp && STRNEQ (cp, "0");
|
||||||
if (use_push_for_pull_env != NULL
|
|
||||||
&& use_push_for_pull_env[0] != '\0'
|
|
||||||
&& STRNEQ (use_push_for_pull_env, "0"))
|
|
||||||
use_push_for_pull_flag = true;
|
|
||||||
|
|
||||||
/* Flags. */
|
/* Flags. */
|
||||||
MUSCLE_INSERT_BOOL ("defines_flag", defines_flag);
|
MUSCLE_INSERT_BOOL ("defines_flag", defines_flag);
|
||||||
|
|||||||
Reference in New Issue
Block a user