Lines Matching refs:patch_line
72 char *patch_line; in patch_main() local
123 patch_line = xmalloc_fgetline(patch_file); in patch_main()
124 while (patch_line) { in patch_main()
142 new_filename = extract_filename(patch_line, patch_level, "--- "); in patch_main()
144 patch_line = xmalloc_fgetline(patch_file); in patch_main()
145 if (!patch_line) goto quit; in patch_main()
149 new_filename = extract_filename(patch_line, patch_level, "+++ "); in patch_main()
182 patch_line = xmalloc_fgets(patch_file); in patch_main()
183 while (patch_line) { in patch_main()
190 …if ((sscanf(patch_line, "@@ -%u,%u +%u,%u", &src_beg_line, &src_last_line, &dst_beg_line, &dst_las… in patch_main()
191 && (sscanf(patch_line, "@@ -%u +%u,%u", &src_beg_line, &dst_beg_line, &dst_last_line) < 2) in patch_main()
222 free(patch_line); in patch_main()
223 patch_line = xmalloc_fgets(patch_file); in patch_main()
224 if (patch_line == NULL) in patch_main()
226 if (!*patch_line) { in patch_main()
228 free(patch_line); in patch_main()
229 patch_line = xstrdup(" "); in patch_main()
231 if ((*patch_line != '-') && (*patch_line != '+') in patch_main()
232 && (*patch_line != ' ') in patch_main()
236 if (*patch_line != plus) { /* '-' or ' ' */ in patch_main()
243 int diff = strcmp(src_line, patch_line + 1); in patch_main()
259 if (*patch_line != ' ') { /* '-' */ in patch_main()
265 fputs(patch_line + 1, dst_stream); in patch_main()