diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-03-06 01:33:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-03-06 01:34:28 +0800 |
commit | c6fd77460f5baf88528f5da2ffb99e86a2885ff0 (patch) | |
tree | 377ddb36bc9c907a06d5889123582b2066db42a8 /e-util/e-bit-array.c | |
parent | 29d8b02c557a65aec4b015b274a830b402da2cfd (diff) | |
download | gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.gz gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.bz2 gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.lz gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.xz gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.tar.zst gsoc2013-evolution-c6fd77460f5baf88528f5da2ffb99e86a2885ff0.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-bit-array.c')
-rw-r--r-- | e-util/e-bit-array.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/e-util/e-bit-array.c b/e-util/e-bit-array.c index acf318c939..ad651314f5 100644 --- a/e-util/e-bit-array.c +++ b/e-util/e-bit-array.c @@ -49,7 +49,9 @@ e_bit_array_insert_real (EBitArray *eba, gint row) if (eba->bit_count >= 0) { /* Add another word if needed. */ if ((eba->bit_count & 0x1f) == 0) { - eba->data = g_renew (guint32, eba->data, (eba->bit_count >> 5) + 1); + eba->data = g_renew ( + guint32, eba->data, + (eba->bit_count >> 5) + 1); eba->data[eba->bit_count >> 5] = 0; } @@ -95,7 +97,9 @@ e_bit_array_delete_real (EBitArray *eba, gint row, gboolean move_selection_mode) eba->data[box] &= eba->data[box + 1] >> 31; for (i = box + 1; i < last; i++) { - eba->data[i] = (eba->data[i] << 1) | (eba->data[i + 1] >> 31); + eba->data[i] = + (eba->data[i] << 1) | + (eba->data[i + 1] >> 31); } /* this over-runs our memory! */ /*eba->data[i] = eba->data[i] << 1; */ @@ -106,7 +110,8 @@ e_bit_array_delete_real (EBitArray *eba, gint row, gboolean move_selection_mode) eba->data = g_renew (guint32, eba->data, eba->bit_count >> 5); } if (move_selection_mode && selected && eba->bit_count > 0) { - e_bit_array_select_single_row (eba, row == eba->bit_count ? row - 1 : row); + e_bit_array_select_single_row ( + eba, row == eba->bit_count ? row - 1 : row); } } } @@ -327,7 +332,9 @@ e_bit_array_change_range (EBitArray *eba, gint start, gint end, gboolean grow) last = BOX (end); if (i == last) { - OPERATE (eba, i, BITMASK_LEFT (start) | BITMASK_RIGHT (end), grow); + OPERATE ( + eba, i, BITMASK_LEFT (start) | + BITMASK_RIGHT (end), grow); } else { OPERATE (eba, i, BITMASK_LEFT (start), grow); if (grow) |