1 /* 2 * Copyright (C) 1991,1992 NEC Corporation. 3 * $Id: table.h,v 2.9 1994/04/19 10:17:07 uchida Exp $ (NEC) 4 */ 5 #define TBL_MIN_LINES 2 /* Minimum number of lines to be table */ 6 #define TBL_MIN_FIELDS 2 /* Minimum number of fields to be table */ 7 #define TBL_MAX_FIELDS 32 /* Maximum number of fields */ 8 9 #define HORI_DBL_ALL 1 /* ==================== */ 10 #define HORI_SNGL_ALL 2 /* -------------------- */ 11 #define HORI_EXIST 3 /* | |-------| */ 12 #define HORI_NULL 0 /* No horizontal lines */ 13 14 /* |left |right 15 * v v 16 * field-1 || <-vlines == 2 17 */ 18 struct tblField { 19 int left; /* Left of the field */ 20 int right; /* Right of the field */ 21 int align; 22 int vlines; /* Number of vertical lines follow */ 23 char defFormat; /* Default format of the field */ 24 }; 25 /* 26 * Table structure 27 * t_field[0]: left boundary 28 * t_field[1]-[t_nfield - 1]: table body 29 */ 30 struct table { 31 struct tblField t_field[TBL_MAX_FIELDS]; 32 int t_nfield; 33 }; 34 #define tbl_field (tblp->t_field) 35 #define tbl_nfield (tblp->t_nfield) 36 37 char *tblSubstr(); 38