[BACK]Return to tbl_term.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/tbl_term.c between version 1.6 and 1.7

version 1.6, 2011/01/03 16:04:41 version 1.7, 2011/01/04 12:06:21
Line 40  static void   tbl_data_number(struct termp *, 
Line 40  static void   tbl_data_number(struct termp *, 
 static  void             tbl_data_literal(struct termp *,  static  void             tbl_data_literal(struct termp *,
                                 const struct tbl_dat *,                                  const struct tbl_dat *,
                                 const struct termp_tbl *);                                  const struct termp_tbl *);
 static  void             tbl_data_spanner(struct termp *,  
                                 const struct tbl_dat *,  
                                 const struct termp_tbl *);  
 static  void             tbl_data(struct termp *, const struct tbl *,  static  void             tbl_data(struct termp *, const struct tbl *,
                                 const struct tbl_dat *,                                  const struct tbl_dat *,
                                 const struct termp_tbl *);                                  const struct termp_tbl *);
Line 261  tbl_data(struct termp *tp, const struct tbl *tbl,
Line 258  tbl_data(struct termp *tp, const struct tbl *tbl,
         switch (dp->pos) {          switch (dp->pos) {
         case (TBL_DATA_HORIZ):          case (TBL_DATA_HORIZ):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
           case (TBL_DATA_NHORIZ):
                   tbl_char(tp, '-', tbp->width);
                   return;
           case (TBL_DATA_NDHORIZ):
                   /* FALLTHROUGH */
         case (TBL_DATA_DHORIZ):          case (TBL_DATA_DHORIZ):
                 tbl_data_spanner(tp, dp, tbp);                  tbl_char(tp, '=', tbp->width);
                 return;                  return;
         default:          default:
                 break;                  break;
Line 272  tbl_data(struct termp *tp, const struct tbl *tbl,
Line 274  tbl_data(struct termp *tp, const struct tbl *tbl,
   
         switch (pos) {          switch (pos) {
         case (TBL_CELL_HORIZ):          case (TBL_CELL_HORIZ):
                 /* FALLTHROUGH */                  tbl_char(tp, '-', tbp->width);
                   break;
         case (TBL_CELL_DHORIZ):          case (TBL_CELL_DHORIZ):
                 /* FIXME: THIS IS WRONG. */                  tbl_char(tp, '=', tbp->width);
                 tbl_data_spanner(tp, dp, tbp);  
                 break;                  break;
         case (TBL_CELL_LONG):          case (TBL_CELL_LONG):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
Line 319  tbl_vframe(struct termp *tp, const struct tbl *tbl)
Line 321  tbl_vframe(struct termp *tp, const struct tbl *tbl)
                 term_word(tp, "|");                  term_word(tp, "|");
 }  }
   
   
 static inline void  static inline void
 tbl_char(struct termp *tp, char c, int len)  tbl_char(struct termp *tp, char c, int len)
 {  {
Line 333  tbl_char(struct termp *tp, char c, int len)
Line 334  tbl_char(struct termp *tp, char c, int len)
   
         for (i = 0; i < len; i += sz)          for (i = 0; i < len; i += sz)
                 term_word(tp, cp);                  term_word(tp, cp);
 }  
   
 static void  
 tbl_data_spanner(struct termp *tp,  
                 const struct tbl_dat *dp,  
                 const struct termp_tbl *tblp)  
 {  
   
         switch (dp->pos) {  
         case (TBL_DATA_HORIZ):  
         case (TBL_DATA_NHORIZ):  
                 tbl_char(tp, '-', tblp->width);  
                 break;  
         case (TBL_DATA_DHORIZ):  
         case (TBL_DATA_NDHORIZ):  
                 tbl_char(tp, '=', tblp->width);  
                 break;  
         default:  
                 break;  
         }  
 }  }
   
 static void  static void

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

CVSweb