Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c23240ec
Commit
c23240ec
authored
Sep 26, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename variable for clarity.
parent
7fe1f9a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/bin/psql/print.c
src/bin/psql/print.c
+9
-9
No files found.
src/bin/psql/print.c
View file @
c23240ec
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.7
4 2005/09/24 17:53:27 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.7
5 2005/09/26 18:09:57 momjian
Exp $
*/
#include "postgres_fe.h"
#include "common.h"
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment