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

Diff for /src/usr.bin/mandoc/term.c between version 1.55 and 1.56

version 1.55, 2011/01/04 22:28:17 version 1.56, 2011/01/30 16:05:29
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010, 2011 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 349 
Line 349 
   
   
 static void  static void
   numbered(struct termp *p, const char *word, size_t len)
   {
           const char      *rhs;
   
           rhs = chars_num2char(word, len);
           if (rhs)
                   encode(p, rhs, 1);
   }
   
   
   static void
 spec(struct termp *p, enum roffdeco d, const char *word, size_t len)  spec(struct termp *p, enum roffdeco d, const char *word, size_t len)
 {  {
         const char      *rhs;          const char      *rhs;
Line 507 
Line 518 
                 word += a2roffdeco(&deco, &seq, &ssz);                  word += a2roffdeco(&deco, &seq, &ssz);
   
                 switch (deco) {                  switch (deco) {
                   case (DECO_NUMBERED):
                           numbered(p, seq, ssz);
                           break;
                 case (DECO_RESERVED):                  case (DECO_RESERVED):
                         res(p, seq, ssz);                          res(p, seq, ssz);
                         break;                          break;

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56