From 4e96f46aa9dc1944de91c61bfd31fa5f6176995b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 26 Sep 2005 18:09:57 +0000 Subject: [PATCH] Rename variable for clarity. --- src/bin/psql/print.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index ed4f68a7de..2c2c92d16b 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -399,14 +399,14 @@ print_aligned_text(const char *title, const char *const *headers, for (i = 0, ptr = cells; *ptr; ptr++, i++) { - int numeric_locale_len; + int add_numeric_locale_len; if (opt_align[i % col_count] == 'r' && opt_numeric_locale) - numeric_locale_len = additional_numeric_locale_len(*ptr); + add_numeric_locale_len = additional_numeric_locale_len(*ptr); else - numeric_locale_len = 0; + add_numeric_locale_len = 0; - tmp = pg_wcswidth(*ptr, strlen(*ptr), encoding) + numeric_locale_len; + tmp = pg_wcswidth(*ptr, strlen(*ptr), encoding) + add_numeric_locale_len; if (tmp > widths[i % col_count]) widths[i % col_count] = tmp; cell_w[i] = tmp; @@ -616,14 +616,14 @@ print_aligned_vertical(const char *title, const char *const *headers, /* find longest data cell */ for (i = 0, ptr = cells; *ptr; ptr++, i++) { - int numeric_locale_len; + int add_numeric_locale_len; if (opt_align[i % col_count] == 'r' && opt_numeric_locale) - numeric_locale_len = additional_numeric_locale_len(*ptr); + add_numeric_locale_len = additional_numeric_locale_len(*ptr); else - numeric_locale_len = 0; + add_numeric_locale_len = 0; - tmp = pg_wcswidth(*ptr, strlen(*ptr), encoding) + numeric_locale_len; + tmp = pg_wcswidth(*ptr, strlen(*ptr), encoding) + add_numeric_locale_len; if (tmp > dwidth) dwidth = tmp; cell_w[i] = tmp; -- 2.39.5