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

Diff for /src/usr.bin/tr/str.c between version 1.14 and 1.15

version 1.14, 2021/11/02 03:09:15 version 1.15, 2023/05/04 16:08:29
Line 52 
Line 52 
 static void     genseq(STR *);  static void     genseq(STR *);
   
 int  int
 next(s)  next(STR *s)
         STR *s;  
 {  {
         int ch;          int ch;
   
Line 110 
Line 109 
 }  }
   
 static int  static int
 bracket(s)  bracket(STR *s)
         STR *s;  
 {  {
         char *p;          char *p;
   
Line 203 
Line 201 
 }  }
   
 static int  static int
 c_class(a, b)  c_class(const void *a, const void *b)
         const void *a, *b;  
 {  {
         return (strcmp(((CLASS *)a)->name, ((CLASS *)b)->name));          return (strcmp(((CLASS *)a)->name, ((CLASS *)b)->name));
 }  }
Line 214 
Line 211 
  * we just syntax check and grab the character.   * we just syntax check and grab the character.
  */   */
 static void  static void
 genequiv(s)  genequiv(STR *s)
         STR *s;  
 {  {
         if (*s->str == '\\') {          if (*s->str == '\\') {
                 s->equiv[0] = backslash(s);                  s->equiv[0] = backslash(s);
Line 233 
Line 229 
 }  }
   
 static int  static int
 genrange(s)  genrange(STR *s)
         STR *s;  
 {  {
         int stopval;          int stopval;
         unsigned char *savestart;          unsigned char *savestart;
Line 252 
Line 247 
 }  }
   
 static void  static void
 genseq(s)  genseq(STR *s)
         STR *s;  
 {  {
         char *ep;          char *ep;
   

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