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

Diff for /mandoc/term.c between version 1.158 and 1.160

version 1.158, 2010/07/03 16:02:12 version 1.160, 2010/07/07 15:04:54
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
    * Copyright (c) 2010 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 30 
Line 31 
 #include "mandoc.h"  #include "mandoc.h"
 #include "chars.h"  #include "chars.h"
 #include "out.h"  #include "out.h"
 #include "regs.h"  
 #include "term.h"  #include "term.h"
 #include "main.h"  #include "main.h"
   
Line 378  res(struct termp *p, const char *word, size_t len)
Line 378  res(struct termp *p, const char *word, size_t len)
         size_t           sz;          size_t           sz;
   
         rhs = chars_a2res(p->symtab, word, len, &sz);          rhs = chars_a2res(p->symtab, word, len, &sz);
         if (NULL == rhs) {  
                 rhs = roff_getstrn(word, len);  
                 if (rhs)  
                         sz = strlen(rhs);  
         }  
         if (rhs)          if (rhs)
                 encode(p, rhs, sz);                  encode(p, rhs, sz);
 }  }

Legend:
Removed from v.1.158  
changed lines
  Added in v.1.160

CVSweb