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

Diff for /mandoc/mandoc.c between version 1.89 and 1.92

version 1.89, 2014/12/15 17:30:30 version 1.92, 2015/02/20 23:55:10
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 239  mandoc_escape(const char **end, const char **start, in
Line 241  mandoc_escape(const char **end, const char **start, in
                 case '\'':                  case '\'':
                         *start = ++*end;                          *start = ++*end;
                         term = '\'';                          term = '\'';
                           break;
                   case '3':
                           /* FALLTHROUGH */
                   case '2':
                           /* FALLTHROUGH */
                   case '1':
                           *sz = (*end)[-1] == 's' &&
                               isdigit((unsigned char)(*end)[1]) ? 2 : 1;
                         break;                          break;
                 default:                  default:
                         *sz = 1;                          *sz = 1;

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.92

CVSweb