From 17625371eeea2fa7257361163c52d336a1a98ebc Mon Sep 17 00:00:00 2001 From: David Gibson Date: Mon, 28 Oct 2013 21:06:53 +1100 Subject: Use stdbool more widely We already use the C99 bool type from stdbool.h in a few places. However there are many other places we represent boolean values as plain ints. This patch changes that. Signed-off-by: David Gibson --- srcpos.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'srcpos.h') diff --git a/srcpos.h b/srcpos.h index 93a2712..57dfa0f 100644 --- a/srcpos.h +++ b/srcpos.h @@ -21,6 +21,7 @@ #define _SRCPOS_H_ #include +#include struct srcfile_state { FILE *f; @@ -55,7 +56,7 @@ extern struct srcfile_state *current_srcfile; /* = NULL */ FILE *srcfile_relative_open(const char *fname, char **fullnamep); void srcfile_push(const char *fname); -int srcfile_pop(void); +bool srcfile_pop(void); /** * Add a new directory to the search path for input files -- cgit v1.2.3-59-g8ed1b