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

Diff for /mandoc/term.c between version 1.176 and 1.177

version 1.176, 2011/01/04 13:14:26 version 1.177, 2011/01/30 16:05:37
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 353  term_vspace(struct termp *p)
Line 353  term_vspace(struct termp *p)
   
   
 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 511  term_word(struct termp *p, const char *word)
Line 522  term_word(struct termp *p, const char *word)
                 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.176  
changed lines
  Added in v.1.177

CVSweb