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

Diff for /mandoc/roff_term.c between version 1.1 and 1.2

version 1.1, 2017/05/04 22:16:09 version 1.2, 2017/05/05 02:06:19
Line 1 
Line 1 
 /*      $OpenBSD$ */  /*      $OpenBSD$ */
 /*  /*
  * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010, 2017 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 27 
Line 27 
 typedef void    (*roff_term_pre_fp)(ROFF_TERM_ARGS);  typedef void    (*roff_term_pre_fp)(ROFF_TERM_ARGS);
   
 static  void      roff_term_pre_br(ROFF_TERM_ARGS);  static  void      roff_term_pre_br(ROFF_TERM_ARGS);
   static  void      roff_term_pre_ft(ROFF_TERM_ARGS);
   
 static  const roff_term_pre_fp roff_term_pre_acts[ROFF_MAX] = {  static  const roff_term_pre_fp roff_term_pre_acts[ROFF_MAX] = {
         roff_term_pre_br,  /* br */          roff_term_pre_br,  /* br */
           roff_term_pre_ft,  /* ft */
 };  };
   
   
Line 48  roff_term_pre_br(ROFF_TERM_ARGS)
Line 50  roff_term_pre_br(ROFF_TERM_ARGS)
                 p->offset = p->rmargin;                  p->offset = p->rmargin;
                 p->rmargin = p->maxrmargin;                  p->rmargin = p->maxrmargin;
                 p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND);                  p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND);
           }
   }
   
   static void
   roff_term_pre_ft(ROFF_TERM_ARGS)
   {
           switch (*n->child->string) {
           case '4':
           case '3':
           case 'B':
                   term_fontrepl(p, TERMFONT_BOLD);
                   break;
           case '2':
           case 'I':
                   term_fontrepl(p, TERMFONT_UNDER);
                   break;
           case 'P':
                   term_fontlast(p);
                   break;
           case '1':
           case 'C':
           case 'R':
                   term_fontrepl(p, TERMFONT_NONE);
                   break;
           default:
                   break;
         }          }
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb