printTextLineFormat describes the characters used to draw vertical
lines across a horizontal rule at the left side, middle and right hand
side. These are included in the formatting for an entire table
(printTextFormat).  The printTextRule enum is used as an offset into
the printTextFormat line rules (lrule), allowing specification of line
styles for the top, middle and bottom horizontal lines in a table.
The other printTextFormat members, hrule and vrule define the
formatting needed to draw horizontal and vertical rules.

Signed-off-by: Roger Leigh <rle...@debian.org>
---
 src/bin/psql/print.h |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/bin/psql/print.h b/src/bin/psql/print.h
index 55122d7..ffca5d4 100644
--- a/src/bin/psql/print.h
+++ b/src/bin/psql/print.h
@@ -95,6 +95,27 @@ typedef struct printQueryOpt
                                                                                
 * gettext on col i */
 } printQueryOpt;
 
+typedef struct printTextLineFormat
+{
+       const char *leftvrule;
+       const char *midvrule;
+       const char *rightvrule;
+} printTextLineFormat;
+
+typedef struct printTextFormat
+{
+       printTextLineFormat     lrule[3];
+       const char              *hrule;
+       const char              *vrule;
+} printTextFormat;
+
+typedef enum printTextRule
+{
+       PRINT_RULE_TOP,
+       PRINT_RULE_MIDDLE,
+       PRINT_RULE_BOTTOM
+} printTextRule;
+
 
 extern FILE *PageOutput(int lines, unsigned short int pager);
 extern void ClosePager(FILE *pagerpipe);
-- 
1.6.3.3


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to