Lines Matching full:patch
21 * patch - a program to apply diffs to original files
46 /* Patch (diff listing) abstract type. */
48 static off_t p_filesize; /* size of the patch file */
56 static LINENUM p_input_line = 0; /* current line # from patch file */
61 static int p_indent; /* indent to patch */
64 static off_t p_start; /* where intuit found a patch */
69 static FILE *pfp = NULL; /* patch file pointer */
85 * Prepare to look for the next patch in the patch file.
100 * Open the patch file at the beginning of time.
123 pfatal("patch file %s not found", filename);
146 * Enlarge the arrays containing the current hunk of patch.
171 /* True if the remainder of the patch file contains a diff of some sort. */
194 say(" I can't seem to find a patch in there anywhere.\n");
199 (p_base == 0 ? "L" : "The next patch l"),
206 say("(Patch is indented %d space%s.)\n", p_indent,
211 say("No file to patch. Skipping...\n");
216 ask("File to patch: ");
229 ask("No file found--skip this patch? [%c] ",
234 say("Skipping patch...\n");
263 /* Determine what kind of diff is in the remaining part of the patch file. */
466 * Remember where this patch ends so we know where to start up again.
505 fatal("malformed patch at line %ld: %s", p_input_line, buf);
593 fatal("unexpected end of file in patch\n");
819 fatal("no --- found in patch at line %ld\n", pch_hunk_beg());
973 fatal("unexpected end of file in patch\n");
1118 fatal("unexpected end of file in patch at line %ld\n",
1121 fatal("< expected at line %ld of patch\n",
1140 fatal("unexpected end of file in patch at line %ld\n",
1143 fatal("--- expected at line %ld of patch\n",
1157 fatal("unexpected end of file in patch at line %ld\n",
1160 fatal("> expected at line %ld of patch\n",
1181 if (reverse) /* backwards patch? */
1206 * Input a line from the patch file.
1317 fatal("Malformed patch at line %ld: expected '=' found '%c'\n",
1327 fatal("Malformed patch at line %ld: expected '*' found '%c'\n",
1342 fatal("Malformed patch at line %ld: expected %ld lines, "
1412 * Return the length of a particular patch line.
1421 * Return the control character (+, -, *, !, etc) for a patch line.
1430 * Return a pointer to a particular patch line.
1439 * Return where in the patch file this hunk began, for error messages.