aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-bit-array.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-02-08 01:36:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-02-08 02:26:37 +0800
commit49ef32b76c55cbefba53568f02028dddf23a9bc9 (patch)
tree682e825cab580d4c401f0a138ee29a8534336591 /e-util/e-bit-array.c
parent2ef43b4cf40d21c61d39c5a938e428afa9074e2b (diff)
downloadgsoc2013-evolution-49ef32b76c55cbefba53568f02028dddf23a9bc9.tar
gsoc2013-evolution-49ef32b76c55cbefba53568f02028dddf23a9bc9.tar.gz
gsoc2013-evolution-49ef32b76c55cbefba53568f02028dddf23a9bc9.tar.bz2
gsoc2013-evolution-49ef32b76c55cbefba53568f02028dddf23a9bc9.tar.lz
gsoc2013-evolution-49ef32b76c55cbefba53568f02028dddf23a9bc9.tar.xz
gsoc2013-evolution-49ef32b76c55cbefba53568f02028dddf23a9bc9.tar.zst
gsoc2013-evolution-49ef32b76c55cbefba53568f02028dddf23a9bc9.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-bit-array.c')
-rw-r--r--e-util/e-bit-array.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/e-util/e-bit-array.c b/e-util/e-bit-array.c
index c986b4cefc..0a5ca37a0c 100644
--- a/e-util/e-bit-array.c
+++ b/e-util/e-bit-array.c
@@ -58,7 +58,9 @@ e_bit_array_insert_real(EBitArray *eba, gint row)
}
/* Shift right half of box one bit to the right. */
- eba->data[box] = (eba->data[box] & BITMASK_LEFT(row)) | ((eba->data[box] & BITMASK_RIGHT(row)) >> 1);
+ eba->data[box] =
+ (eba->data[box] & BITMASK_LEFT(row)) |
+ ((eba->data[box] & BITMASK_RIGHT(row)) >> 1);
eba->bit_count ++;
}
}
@@ -80,7 +82,9 @@ e_bit_array_delete_real(EBitArray *eba, gint row, gboolean move_selection_mode)
if (move_selection_mode)
selected = e_bit_array_value_at(eba, row);
/* Shift right half of box one bit to the left. */
- eba->data[box] = (eba->data[box] & BITMASK_LEFT(row))| ((eba->data[box] & bitmask) << 1);
+ eba->data[box] =
+ (eba->data[box] & BITMASK_LEFT(row)) |
+ ((eba->data[box] & bitmask) << 1);
/* Shift all words to the right of our box left one bit. */
if (box < last) {
@@ -297,7 +301,9 @@ e_bit_array_bit_count (EBitArray *eba)
return eba->bit_count;
}
-#define OPERATE(object, i,mask,grow) ((grow) ? (((object)->data[(i)]) |= ((guint32) ~(mask))) : (((object)->data[(i)]) &= (mask)))
+#define OPERATE(object, i,mask,grow) \
+ ((grow) ? (((object)->data[(i)]) |= ((guint32) ~(mask))) : \
+ (((object)->data[(i)]) &= (mask)))
void
e_bit_array_change_one_row(EBitArray *eba, gint row, gboolean grow)