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

Diff for /src/usr.bin/mandoc/mandoc.c between version 1.16 and 1.17

version 1.16, 2010/07/25 18:05:54 version 1.17, 2010/08/18 02:38:40
Line 53 
Line 53 
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case ('w'):          case ('w'):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case ('v'):  
                 /* FALLTHROUGH */  
         case ('S'):          case ('S'):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case ('R'):          case ('R'):
Line 87 
Line 85 
                 term = '\'';                  term = '\'';
                 break;                  break;
 #endif  #endif
           case ('h'):
                   /* FALLTHROUGH */
           case ('v'):
                   /* FALLTHROUGH */
         case ('s'):          case ('s'):
                 if (ASCII_HYPH == *p)                  if (ASCII_HYPH == *p)
                         *p = '-';                          *p = '-';
                 if ('+' == *p || '-' == *p)  
                   i = 0;
                   if ('+' == *p || '-' == *p) {
                         p++;                          p++;
                           i = 1;
                   }
   
                 i = ('s' != *(p - 1));  
   
                 switch (*p++) {                  switch (*p++) {
                 case ('('):                  case ('('):
                         len = 2;                          len = 2;
Line 106 
Line 110 
                         term = '\'';                          term = '\'';
                         break;                          break;
                 case ('0'):                  case ('0'):
                         i++;                          i = 1;
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 default:                  default:
                         len = 1;                          len = 1;
Line 117 
Line 121 
                 if (ASCII_HYPH == *p)                  if (ASCII_HYPH == *p)
                         *p = '-';                          *p = '-';
                 if ('+' == *p || '-' == *p) {                  if ('+' == *p || '-' == *p) {
                         if (i++)                          if (i)
                                 return(0);                                  return(0);
                         p++;                          p++;
                 }                  }
   
                 if (0 == i)  
                         return(0);  
                 break;                  break;
 #if 0  #if 0
         case ('Y'):          case ('Y'):

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17