aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/pre-process.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-18 18:03:34 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-20 12:35:10 +0100
commitb8f9557e0834c8dfe26d64c0bbab3e226b4e75b1 (patch)
treee8716d2416f4fe76329a55960f3645dbc47c66a7 /pre-process.c
parent90bf63e9779623488d02febf2dc8293b55283691 (diff)
downloadsparse-dev-b8f9557e0834c8dfe26d64c0bbab3e226b4e75b1.tar.gz
ban use of 'true' or 'false'
The idea being, of course, to be able for some functions to return a bool, making clear what's their possible returned values. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'pre-process.c')
-rw-r--r--pre-process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pre-process.c b/pre-process.c
index 8800dce5..c6c6cdad 100644
--- a/pre-process.c
+++ b/pre-process.c
@@ -1427,13 +1427,13 @@ static int handle_strong_undef(struct stream *stream, struct token **line, struc
return do_handle_undef(stream, line, token, SYM_ATTR_STRONG);
}
-static int preprocessor_if(struct stream *stream, struct token *token, int true)
+static int preprocessor_if(struct stream *stream, struct token *token, int cond)
{
token_type(token) = false_nesting ? TOKEN_SKIP_GROUPS : TOKEN_IF;
free_preprocessor_line(token->next);
token->next = stream->top_if;
stream->top_if = token;
- if (false_nesting || true != 1)
+ if (false_nesting || cond != 1)
false_nesting++;
return 0;
}