[BACK]Return to man_term.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/man_term.c between version 1.114 and 1.115

version 1.114, 2014/12/23 08:15:37 version 1.115, 2014/12/23 09:31:17
Line 55 
Line 55 
 };  };
   
 static  int               a2width(const struct termp *, const char *);  static  int               a2width(const struct termp *, const char *);
 static  size_t            a2height(const struct termp *, const char *);  
   
 static  void              print_man_nodelist(DECL_ARGS);  static  void              print_man_nodelist(DECL_ARGS);
 static  void              print_man_node(DECL_ARGS);  static  void              print_man_node(DECL_ARGS);
Line 182 
Line 181 
         }          }
 }  }
   
   
 static size_t  
 a2height(const struct termp *p, const char *cp)  
 {  
         struct roffsu    su;  
   
         if ( ! a2roffsu(cp, &su, SCALE_VS))  
                 SCALE_VS_INIT(&su, atoi(cp));  
   
         return(term_vspan(p, &su));  
 }  
   
 static int  static int
 a2width(const struct termp *p, const char *cp)  a2width(const struct termp *p, const char *cp)
 {  {
Line 462 
Line 449 
 static int  static int
 pre_sp(DECL_ARGS)  pre_sp(DECL_ARGS)
 {  {
           struct roffsu    su;
         char            *s;          char            *s;
         size_t           i, len;          size_t           i, len;
         int              neg;          int              neg;
Line 499 
Line 487 
                         neg = 1;                          neg = 1;
                         s++;                          s++;
                 }                  }
                 len = a2height(p, s);                  if ( ! a2roffsu(s, &su, SCALE_VS))
                           su.scale = 1.0;
                   len = term_vspan(p, &su);
                 break;                  break;
         }          }
   

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.115