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

Diff for /mandoc/Attic/strings.c between version 1.24 and 1.25

version 1.24, 2009/03/02 17:14:46 version 1.25, 2009/03/05 13:12:12
Line 62  mdoc_isescape(const char *p)
Line 62  mdoc_isescape(const char *p)
         case ('e'):          case ('e'):
                 return(2);                  return(2);
         case ('*'):          case ('*'):
                 if (0 == *++p || ! isgraph((int)*p))                  if (0 == *++p || ! isgraph((u_char)*p))
                         return(0);                          return(0);
                 switch (*p) {                  switch (*p) {
                 case ('('):                  case ('('):
                         if (0 == *++p || ! isgraph((int)*p))                          if (0 == *++p || ! isgraph((u_char)*p))
                                 return(0);                                  return(0);
                         return(4);                          return(4);
                 case ('['):                  case ('['):
                         for (c = 3, p++; *p && ']' != *p; p++, c++)                          for (c = 3, p++; *p && ']' != *p; p++, c++)
                                 if ( ! isgraph((int)*p))                                  if ( ! isgraph((u_char)*p))
                                         break;                                          break;
                         return(*p == ']' ? c : 0);                          return(*p == ']' ? c : 0);
                 default:                  default:
Line 79  mdoc_isescape(const char *p)
Line 79  mdoc_isescape(const char *p)
                 }                  }
                 return(3);                  return(3);
         case ('('):          case ('('):
                 if (0 == *++p || ! isgraph((int)*p))                  if (0 == *++p || ! isgraph((u_char)*p))
                         return(0);                          return(0);
                 if (0 == *++p || ! isgraph((int)*p))                  if (0 == *++p || ! isgraph((u_char)*p))
                         return(0);                          return(0);
                 return(4);                  return(4);
         case ('['):          case ('['):
Line 91  mdoc_isescape(const char *p)
Line 91  mdoc_isescape(const char *p)
         }          }
   
         for (c = 3, p++; *p && ']' != *p; p++, c++)          for (c = 3, p++; *p && ']' != *p; p++, c++)
                 if ( ! isgraph((int)*p))                  if ( ! isgraph((u_char)*p))
                         break;                          break;
   
         return(*p == ']' ? c : 0);          return(*p == ']' ? c : 0);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

CVSweb