From 6819c897ae60eb1c80de2d1b2aca9d5aa8d73e1e Mon Sep 17 00:00:00 2001 From: osku <Unknown> Date: Wed, 20 Sep 2006 06:41:30 +0000 Subject: [PATCH] Split long lines with [] operators better. --- dict/dict0dict.c | 14 +++++++------- fsp/fsp0fsp.c | 4 ++-- row/row0sel.c | 7 +++---- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/dict/dict0dict.c b/dict/dict0dict.c index d8b49530490..209054151f4 100644 --- a/dict/dict0dict.c +++ b/dict/dict0dict.c @@ -3854,8 +3854,8 @@ dict_update_statistics_low( index = dict_table_get_first_index(table); - table->stat_n_rows = index->stat_n_diff_key_vals - [dict_index_get_n_unique(index)]; + table->stat_n_rows = index->stat_n_diff_key_vals[ + dict_index_get_n_unique(index)]; table->stat_clustered_index_size = index->stat_index_size; @@ -4053,8 +4053,8 @@ dict_index_print_low( #endif /* UNIV_SYNC_DEBUG */ if (index->n_user_defined_cols > 0) { - n_vals = index->stat_n_diff_key_vals - [index->n_user_defined_cols]; + n_vals = index->stat_n_diff_key_vals[ + index->n_user_defined_cols]; } else { n_vals = index->stat_n_diff_key_vals[1]; } @@ -4268,9 +4268,9 @@ dict_print_info_on_foreign_keys( if (i) { putc(' ', file); } - ut_print_name(file, trx, FALSE, - foreign->referenced_col_names - [i]); + ut_print_name( + file, trx, FALSE, + foreign->referenced_col_names[i]); } putc(')', file); diff --git a/fsp/fsp0fsp.c b/fsp/fsp0fsp.c index 0453a69c1d4..00c5e582b3e 100644 --- a/fsp/fsp0fsp.c +++ b/fsp/fsp0fsp.c @@ -1117,8 +1117,8 @@ fsp_try_extend_data_file( fprintf(stderr, "InnoDB: Error: Last data file size is %lu," " max size allowed %lu\n", - (ulong) srv_data_file_sizes - [srv_n_data_files - 1], + (ulong) srv_data_file_sizes[ + srv_n_data_files - 1], (ulong) srv_last_file_size_max); } diff --git a/row/row0sel.c b/row/row0sel.c index 8d000b1c840..c6b117cdafa 100644 --- a/row/row0sel.c +++ b/row/row0sel.c @@ -3014,8 +3014,8 @@ row_sel_pop_cached_row_for_mysql( if (UNIV_UNLIKELY(prebuilt->keep_other_fields_on_keyread)) { /* Copy cache record field by field, don't touch fields that are not covered by current key */ - cached_rec = prebuilt->fetch_cache - [prebuilt->fetch_cache_first]; + cached_rec = prebuilt->fetch_cache[ + prebuilt->fetch_cache_first]; for (i = 0; i < prebuilt->n_template; i++) { templ = prebuilt->mysql_template + i; @@ -3027,8 +3027,7 @@ row_sel_pop_cached_row_for_mysql( if (templ->mysql_null_bit_mask) { buf[templ->mysql_null_byte_offset] ^= (buf[templ->mysql_null_byte_offset] - ^ cached_rec - [templ->mysql_null_byte_offset]) + ^ cached_rec[templ->mysql_null_byte_offset]) & (byte)templ->mysql_null_bit_mask; } } -- 2.30.9