style: prefer bool to char

* src/state.h, src/state.c (state::consistent): Make it a bool.
Adjust dependencies.
This commit is contained in:
Akim Demaille
2019-01-20 16:54:33 +01:00
parent 626d2f2dca
commit 05b70f47e8
3 changed files with 7 additions and 5 deletions

View File

@@ -81,6 +81,8 @@
#ifndef STATE_H_
# define STATE_H_
# include <stdbool.h>
# include <bitset.h>
# include "gram.h"
@@ -208,9 +210,9 @@ struct state
store in this member a reference to the node containing each state. */
struct state_list *state_list;
/* If non-zero, then no lookahead sets on reduce actions are needed to
decide what to do in state S. */
char consistent;
/* Whether no lookahead sets on reduce actions are needed to decide
what to do in state S. */
bool consistent;
/* If some conflicts were solved thanks to precedence/associativity,
a human readable description of the resolution. */