[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.11 and 1.12

version 1.11, 2011/01/05 15:37:23 version 1.12, 2011/01/07 13:20:58
Line 32 
Line 32 
   
 static  size_t  term_tbl_len(size_t, void *);  static  size_t  term_tbl_len(size_t, void *);
 static  size_t  term_tbl_strlen(const char *, void *);  static  size_t  term_tbl_strlen(const char *, void *);
 static  void    tbl_char(struct termp *, char, int);  static  void    tbl_char(struct termp *, char, size_t);
 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 roffcol *);                          const struct roffcol *);
Line 67  term_tbl(struct termp *tp, const struct tbl_span *sp)
Line 67  term_tbl(struct termp *tp, const struct tbl_span *sp)
         const struct tbl_head   *hp;          const struct tbl_head   *hp;
         const struct tbl_dat    *dp;          const struct tbl_dat    *dp;
         struct roffcol          *col;          struct roffcol          *col;
         int                      rmargin, maxrmargin;          size_t                   rmargin, maxrmargin;
   
         rmargin = tp->rmargin;          rmargin = tp->rmargin;
         maxrmargin = tp->maxrmargin;          maxrmargin = tp->maxrmargin;
Line 165  tbl_hrule(struct termp *tp, const struct tbl_span *sp)
Line 165  tbl_hrule(struct termp *tp, const struct tbl_span *sp)
 {  {
         const struct tbl_head *hp;          const struct tbl_head *hp;
         char             c;          char             c;
         int              width;          size_t           width;
   
         /*          /*
          * An hrule extends across the entire table and is demarked by a           * An hrule extends across the entire table and is demarked by a
Line 202  static void
Line 202  static void
 tbl_hframe(struct termp *tp, const struct tbl_span *sp)  tbl_hframe(struct termp *tp, const struct tbl_span *sp)
 {  {
         const struct tbl_head *hp;          const struct tbl_head *hp;
         int              width;          size_t           width;
   
         if ( ! (TBL_OPT_BOX & sp->tbl->opts ||          if ( ! (TBL_OPT_BOX & sp->tbl->opts ||
                         TBL_OPT_DBOX & sp->tbl->opts))                          TBL_OPT_DBOX & sp->tbl->opts))
Line 324  tbl_vframe(struct termp *tp, const struct tbl *tbl)
Line 324  tbl_vframe(struct termp *tp, const struct tbl *tbl)
 }  }
   
 static void  static void
 tbl_char(struct termp *tp, char c, int len)  tbl_char(struct termp *tp, char c, size_t len)
 {  {
         int             i, sz;          size_t          i, sz;
         const char      cp[2] = {c, '\0'};          char            cp[2];
   
           cp[0] = c;
           cp[1] = '\0';
   
         sz = term_strlen(tp, cp);          sz = term_strlen(tp, cp);
   
         for (i = 0; i < len; i += sz)          for (i = 0; i < len; i += sz)
Line 339  static void
Line 342  static void
 tbl_literal(struct termp *tp, const struct tbl_dat *dp,  tbl_literal(struct termp *tp, const struct tbl_dat *dp,
                 const struct roffcol *col)                  const struct roffcol *col)
 {  {
         int              padl, padr, ssz;          size_t           padl, padr, ssz;
         enum tbl_cellt   pos;          enum tbl_cellt   pos;
   
         padl = padr = 0;          padl = padr = 0;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

CVSweb