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

Diff for /src/usr.bin/patch/pch.c between version 1.28 and 1.29

version 1.28, 2003/08/01 20:30:48 version 1.29, 2003/08/05 18:20:33
Line 499 
Line 499 
                         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) {
Line 1181 
Line 1181 
                 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++)
Line 1191 
Line 1191 
         /* 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 == '*')
Line 1207 
Line 1207 
   
         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;

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29