[BACK]Return to patch.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / patch

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

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

version 1.16, 2003/05/30 22:33:58 version 1.17, 2003/05/30 23:08:13
Line 55  static void copy_till(LINENUM);
Line 55  static void copy_till(LINENUM);
 static void spew_output(void);  static void spew_output(void);
 static void dump_line(LINENUM);  static void dump_line(LINENUM);
 static bool patch_match(LINENUM, LINENUM, LINENUM);  static bool patch_match(LINENUM, LINENUM, LINENUM);
 static bool similar(char *, char *, int);  static bool similar(char *, char *, size_t);
 int main(int, char *[]);  int main(int, char *[]);
   
 /* TRUE if -E was specified on command line.  */  /* TRUE if -E was specified on command line.  */
Line 321  main(int argc, char *argv[])
Line 321  main(int argc, char *argv[])
         set_signals(1);          set_signals(1);
     }      }
     my_exit(failtotal);      my_exit(failtotal);
       /* NOTREACHED */
 }  }
   
 /* Prepare to find the next patch to do in the patch file. */  /* Prepare to find the next patch to do in the patch file. */
Line 871  patch_match(LINENUM base, LINENUM offset
Line 872  patch_match(LINENUM base, LINENUM offset
 /* Do two lines match with canonicalized white space? */  /* Do two lines match with canonicalized white space? */
   
 static bool  static bool
 similar(char *a, char *b, int len)  similar(char *a, char *b, size_t len)
 {  {
     while (len) {      while (len) {
         if (isspace((unsigned char)*b)) {/* whitespace (or \n) to match? */          if (isspace((unsigned char)*b)) {/* whitespace (or \n) to match? */

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

CVSweb <webmaster@jp.NetBSD.org>