version 1.28, 2003/08/01 20:30:48 |
version 1.29, 2003/08/05 18:20:33 |
|
|
p_end++; |
p_end++; |
if (p_end >= hunkmax) |
if (p_end >= hunkmax) |
fatal("Internal error: hunk larger than hunk " |
fatal("Internal error: hunk larger than hunk " |
"buffer size"); |
"buffer size"); |
p_char[p_end] = *buf; |
p_char[p_end] = *buf; |
p_line[p_end] = NULL; |
p_line[p_end] = NULL; |
switch (*buf) { |
switch (*buf) { |
|
|
n++; |
n++; |
} |
} |
if (p_char[0] != '=') |
if (p_char[0] != '=') |
fatal("Malformed patch at line %ld: expected '=' found '%c'\n", |
fatal("Malformed patch at line %ld: expected '=' found '%c'\n", |
p_input_line, p_char[0]); |
p_input_line, p_char[0]); |
p_char[0] = '*'; |
p_char[0] = '*'; |
for (s = p_line[0]; *s; s++) |
for (s = p_line[0]; *s; s++) |
|
|
/* now turn the old into the new */ |
/* now turn the old into the new */ |
|
|
if (p_char[0] != '*') |
if (p_char[0] != '*') |
fatal("Malformed patch at line %ld: expected '*' found '%c'\n", |
fatal("Malformed patch at line %ld: expected '*' found '%c'\n", |
p_input_line, p_char[0]); |
p_input_line, p_char[0]); |
tp_char[0] = '='; |
tp_char[0] = '='; |
for (s = tp_line[0]; *s; s++) |
for (s = tp_line[0]; *s; s++) |
if (*s == '*') |
if (*s == '*') |
|
|
|
|
if (i != p_ptrn_lines + 1) |
if (i != p_ptrn_lines + 1) |
fatal("Malformed patch at line %ld: expected %ld lines, " |
fatal("Malformed patch at line %ld: expected %ld lines, " |
"got %ld\n", |
"got %ld\n", |
p_input_line, p_ptrn_lines + 1, i); |
p_input_line, p_ptrn_lines + 1, i); |
|
|
i = p_ptrn_lines; |
i = p_ptrn_lines; |
p_ptrn_lines = p_repl_lines; |
p_ptrn_lines = p_repl_lines; |