Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc23240e

Browse files
committed
Rename variable for clarity.
1 parent7fe1f9a commitc23240e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎src/bin/psql/print.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.74 2005/09/24 17:53:27 tgl Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.75 2005/09/26 18:09:57 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"common.h"
@@ -399,14 +399,14 @@ print_aligned_text(const char *title, const char *const *headers,
399399

400400
for (i=0,ptr=cells;*ptr;ptr++,i++)
401401
{
402-
intnumeric_locale_len;
402+
intadd_numeric_locale_len;
403403

404404
if (opt_align[i %col_count]=='r'&&opt_numeric_locale)
405-
numeric_locale_len=additional_numeric_locale_len(*ptr);
405+
add_numeric_locale_len=additional_numeric_locale_len(*ptr);
406406
else
407-
numeric_locale_len=0;
407+
add_numeric_locale_len=0;
408408

409-
tmp=pg_wcswidth(*ptr,strlen(*ptr),encoding)+numeric_locale_len;
409+
tmp=pg_wcswidth(*ptr,strlen(*ptr),encoding)+add_numeric_locale_len;
410410
if (tmp>widths[i %col_count])
411411
widths[i %col_count]=tmp;
412412
cell_w[i]=tmp;
@@ -616,14 +616,14 @@ print_aligned_vertical(const char *title, const char *const *headers,
616616
/* find longest data cell */
617617
for (i=0,ptr=cells;*ptr;ptr++,i++)
618618
{
619-
intnumeric_locale_len;
619+
intadd_numeric_locale_len;
620620

621621
if (opt_align[i %col_count]=='r'&&opt_numeric_locale)
622-
numeric_locale_len=additional_numeric_locale_len(*ptr);
622+
add_numeric_locale_len=additional_numeric_locale_len(*ptr);
623623
else
624-
numeric_locale_len=0;
624+
add_numeric_locale_len=0;
625625

626-
tmp=pg_wcswidth(*ptr,strlen(*ptr),encoding)+numeric_locale_len;
626+
tmp=pg_wcswidth(*ptr,strlen(*ptr),encoding)+add_numeric_locale_len;
627627
if (tmp>dwidth)
628628
dwidth=tmp;
629629
cell_w[i]=tmp;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp