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

Diff for /src/usr.bin/mandoc/term_ps.c between version 1.22 and 1.23

version 1.22, 2014/03/30 19:47:32 version 1.23, 2014/03/30 21:27:59
Line 99 
Line 99 
 static  void              ps_printf(struct termp *, const char *, ...);  static  void              ps_printf(struct termp *, const char *, ...);
 static  void              ps_putchar(struct termp *, char);  static  void              ps_putchar(struct termp *, char);
 static  void              ps_setfont(struct termp *, enum termfont);  static  void              ps_setfont(struct termp *, enum termfont);
 static  void              ps_setwidth(struct termp *, size_t);  static  void              ps_setwidth(struct termp *, int, size_t);
 static  struct termp     *pspdf_alloc(char *);  static  struct termp     *pspdf_alloc(char *);
 static  void              pdf_obj(struct termp *, size_t);  static  void              pdf_obj(struct termp *, size_t);
   
Line 529 
Line 529 
   
   
 static void  static void
 ps_setwidth(struct termp *p, size_t width)  ps_setwidth(struct termp *p, int iop, size_t width)
 {  {
         size_t   lastwidth;          size_t   lastwidth;
   
         lastwidth = p->ps->width;          lastwidth = p->ps->width;
         p->ps->width = width ? width : p->ps->lastwidth;          if (0 < iop)
                   p->ps->width += width;
           else if (0 > iop)
                   p->ps->width -= width;
           else
                   p->ps->width = width ? width : p->ps->lastwidth;
         p->ps->lastwidth = lastwidth;          p->ps->lastwidth = lastwidth;
 }  }
   

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23