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? */ |