Debian Codegraph @

debian/patches/290.diff

raw
1 diff --git a/unifdef/unifdef.c b/unifdef/unifdef.c
2 index 5c67cd44..692a1640 100644
3 --- a/unifdef/unifdef.c
4 +++ b/unifdef/unifdef.c
5 @@ -201,7 +201,7 @@ static int depth; /* current #if nesting */
6 static int delcount; /* count of deleted lines */
7 static unsigned blankcount; /* count of blank lines */
8 static unsigned blankmax; /* maximum recent blankcount */
9 -static bool constexpr; /* constant #if expression */
10 +static bool isconstexpr; /* constant #if expression */
11 static bool zerosyms; /* to format symdepth output */
12 static bool firstsym; /* ditto */
13
14 @@ -1078,7 +1078,7 @@ eval_unary(const struct ops *ops, long *valp, const char **cpp)
15 *valp = (value[sym] != NULL);
16 lt = *valp ? LT_TRUE : LT_FALSE;
17 }
18 - constexpr = false;
19 + isconstexpr = false;
20 } else if (!endsym(*cp)) {
21 debug("eval%d symbol", prec(ops));
22 sym = findsym(&cp);
23 @@ -1095,7 +1095,7 @@ eval_unary(const struct ops *ops, long *valp, const char **cpp)
24 lt = *valp ? LT_TRUE : LT_FALSE;
25 cp = skipargs(cp);
26 }
27 - constexpr = false;
28 + isconstexpr = false;
29 } else {
30 debug("eval%d bad expr", prec(ops));
31 return (LT_ERROR);
32 @@ -1162,10 +1162,10 @@ ifeval(const char **cpp)
33 long val = 0;
34
35 debug("eval %s", *cpp);
36 - constexpr = killconsts ? false : true;
37 + isconstexpr = killconsts ? false : true;
38 ret = eval_table(eval_ops, &val, cpp);
39 debug("eval = %d", val);
40 - return (constexpr ? LT_IF : ret == LT_ERROR ? LT_IF : ret);
41 + return (isconstexpr ? LT_IF : ret == LT_ERROR ? LT_IF : ret);
42 }
43
44 /*