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

Diff for /src/usr.bin/less/opttbl.c between version 1.15 and 1.16

version 1.15, 2015/11/06 15:50:33 version 1.16, 2015/11/12 03:13:37
Line 458 
Line 458 
         for (o = option;  o->oletter != '\0';  o++) {          for (o = option;  o->oletter != '\0';  o++) {
                 if (o->oletter == c)                  if (o->oletter == c)
                         return (o);                          return (o);
                 if ((o->otype & TRIPLE) && (toupper(o->oletter) == c))                  if ((o->otype & TRIPLE) &&
                       (toupper((unsigned char)o->oletter) == c))
                         return (o);                          return (o);
         }          }
         return (NULL);          return (NULL);
Line 468 
Line 469 
  *   *
  */   */
 static int  static int
 is_optchar(char c)  is_optchar(unsigned char c)
 {  {
         if (isupper(c))          if (isupper(c) || islower(c) || c == '-')
                 return (1);                  return (1);
         if (islower(c))          else
                 return (1);                  return (0);
         if (c == '-')  
                 return (1);  
         return (0);  
 }  }
   
 /*  /*

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