diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-02-08 01:36:53 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-02-08 02:26:37 +0800 |
commit | 49ef32b76c55cbefba53568f02028dddf23a9bc9 (patch) | |
tree | 682e825cab580d4c401f0a138ee29a8534336591 /e-util/e-bit-array.c | |
parent | 2ef43b4cf40d21c61d39c5a938e428afa9074e2b (diff) | |
download | gsoc2013-evolution-49ef32b76c55cbefba53568f02028dddf23a9bc9.tar.gz 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.c | 12 |
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) |