aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-29 15:51:31 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:01:40 -0700
commitb103bc3b532452ac797bfa4d2f9f8fe083ae0d63 (patch)
treea444da3c82aaa2b317852a44cdde3251830c917c /expression.c
parentAdd handling for "-m64" to tell us to use 64-bit mode. (diff)
downloadsparse-b103bc3b532452ac797bfa4d2f9f8fe083ae0d63.tar.gz
sparse-b103bc3b532452ac797bfa4d2f9f8fe083ae0d63.tar.bz2
sparse-b103bc3b532452ac797bfa4d2f9f8fe083ae0d63.zip
Now that BITS_IN_XXXX aren't defined contstants any more,
rename them lower cased to match standard C naming rules.
Diffstat (limited to 'expression.c')
-rw-r--r--expression.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/expression.c b/expression.c
index dc02235..0fd303e 100644
--- a/expression.c
+++ b/expression.c
@@ -123,18 +123,18 @@ static void get_int_value(struct expression *expr, const char *str)
break;
}
- bits = BITS_IN_LONGLONG;
+ bits = bits_in_longlong;
extramod = 0;
if (!(modifiers & MOD_LONGLONG)) {
- if (value & (~1ULL << (BITS_IN_LONG-1))) {
+ if (value & (~1ULL << (bits_in_long-1))) {
extramod = MOD_LONGLONG | MOD_LONG;
} else {
- bits = BITS_IN_LONG;
+ bits = bits_in_long;
if (!(modifiers & MOD_LONG)) {
- if (value & (~1ULL << (BITS_IN_INT-1))) {
+ if (value & (~1ULL << (bits_in_int-1))) {
extramod = MOD_LONG;
} else
- bits = BITS_IN_INT;
+ bits = bits_in_int;
}
}
}
@@ -151,7 +151,7 @@ static void get_int_value(struct expression *expr, const char *str)
modifiers |= extramod;
if (base == 10 && modifiers == MOD_UNSIGNED) {
modifiers = MOD_LONG;
- if (BITS_IN_LONG == BITS_IN_INT)
+ if (bits_in_long == bits_in_int)
modifiers = MOD_LONG | MOD_UNSIGNED;
}