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

Diff for /mandoc/mandoc.c between version 1.88 and 1.91

version 1.88, 2014/10/28 13:24:44 version 1.91, 2015/01/21 20:33:25
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2011-2015 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 156  mandoc_escape(const char **end, const char **start, in
Line 156  mandoc_escape(const char **end, const char **start, in
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case 'D':          case 'D':
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case 'o':  
                 /* FALLTHROUGH */  
         case 'R':          case 'R':
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case 'X':          case 'X':
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case 'Z':          case 'Z':
                 if ('\0' == **start)  
                         return(ESCAPE_ERROR);  
                 gly = ESCAPE_IGNORE;                  gly = ESCAPE_IGNORE;
                   /* FALLTHROUGH */
           case 'o':
                   if (**start == '\0')
                           return(ESCAPE_ERROR);
                   if (gly == ESCAPE_ERROR)
                           gly = ESCAPE_OVERSTRIKE;
                 term = **start;                  term = **start;
                 *start = ++*end;                  *start = ++*end;
                 break;                  break;
Line 225  mandoc_escape(const char **end, const char **start, in
Line 227  mandoc_escape(const char **end, const char **start, in
   
                 /* See +/- counts as a sign. */                  /* See +/- counts as a sign. */
                 if ('+' == **end || '-' == **end || ASCII_HYPH == **end)                  if ('+' == **end || '-' == **end || ASCII_HYPH == **end)
                         (*end)++;                          *start = ++*end;
   
                 switch (**end) {                  switch (**end) {
                 case '(':                  case '(':
Line 480  time2a(time_t t)
Line 482  time2a(time_t t)
         int              isz;          int              isz;
   
         tm = localtime(&t);          tm = localtime(&t);
           if (tm == NULL)
                   return(NULL);
   
         /*          /*
          * Reserve space:           * Reserve space:

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.91

CVSweb