Lines Matching refs:p_end
59 static LINENUM p_end = -1; /* last line in hunk */ variable
97 p_end = (LINENUM) - 1; in re_patch()
524 while (p_end >= 0) { in another_hunk()
525 if (p_end == p_efake) in another_hunk()
526 p_end = p_bfake; /* don't free twice */ in another_hunk()
528 free(p_line[p_end]); in another_hunk()
529 p_end--; in another_hunk()
555 while (p_end < p_max) { in another_hunk()
566 p_end++; in another_hunk()
567 if (p_end >= hunkmax) in another_hunk()
570 p_char[p_end] = *buf; in another_hunk()
571 p_line[p_end] = NULL; in another_hunk()
583 if (p_end != 0) { in another_hunk()
592 p_line[p_end] = savestr(buf); in another_hunk()
594 p_end--; in another_hunk()
631 (p_end != p_ptrn_lines + 1 + in another_hunk()
632 (p_char[p_end - 1] == '\n'))) { in another_hunk()
633 if (p_end == 1) { in another_hunk()
639 p_end = p_ptrn_lines + 1; in another_hunk()
640 fillsrc = p_end + 1; in another_hunk()
653 (p_end <= p_ptrn_lines in another_hunk()
660 repl_beginning = p_end; in another_hunk()
663 p_line[p_end] = savestr(buf); in another_hunk()
665 p_end--; in another_hunk()
668 p_char[p_end] = '='; in another_hunk()
690 p_repl_lines >= LINENUM_MAX - p_end) in another_hunk()
692 p_max = p_repl_lines + p_end; in another_hunk()
721 p_line[p_end] = savestr(buf + 2); in another_hunk()
723 p_end--; in another_hunk()
726 if (p_end == p_ptrn_lines) { in another_hunk()
730 len = strlen(p_line[p_end]) - 1; in another_hunk()
731 (p_line[p_end])[len] = 0; in another_hunk()
743 p_line[p_end] = savestr(buf); in another_hunk()
745 p_end--; in another_hunk()
748 if (p_end != p_ptrn_lines + 1) { in another_hunk()
753 p_char[p_end] = ' '; in another_hunk()
765 p_line[p_end] = savestr(buf + 2); in another_hunk()
767 p_end--; in another_hunk()
780 if (p_line[p_end]) in another_hunk()
781 p_len[p_end] = strlen(p_line[p_end]); in another_hunk()
783 p_len[p_end] = 0; in another_hunk()
787 if (p_end >= 0 && !repl_beginning) in another_hunk()
794 for (p_end--; p_end > repl_beginning; p_end--) in another_hunk()
795 free(p_line[p_end]); in another_hunk()
807 p_end = p_max; in another_hunk()
811 while (filldst < p_end) { in another_hunk()
820 p_end--; in another_hunk()
839 while (fillsrc <= p_end && p_char[fillsrc] != ' ') in another_hunk()
841 if (fillsrc > p_end) in another_hunk()
850 while (fillsrc <= p_end && fillsrc != repl_beginning && in another_hunk()
856 fillsrc, filldst, repl_beginning, p_end + 1); in another_hunk()
858 if (fillsrc != p_end + 1 && fillsrc != repl_beginning) in another_hunk()
860 if (filldst != p_end + 1 && filldst != repl_beginning) in another_hunk()
863 if (p_line[p_end] != NULL) { in another_hunk()
865 p_len[p_end] -= 1; in another_hunk()
866 (p_line[p_end])[p_len[p_end]] = 0; in another_hunk()
917 p_end = fillnew + p_repl_lines; in another_hunk()
922 p_end = -1; in another_hunk()
930 p_end = 0; in another_hunk()
937 while (fillold <= p_ptrn_lines || fillnew <= p_end) { in another_hunk()
959 p_end = fillold - 1; in another_hunk()
966 p_end = fillnew - 1; in another_hunk()
987 p_end = fillold - 1; in another_hunk()
998 p_end = fillold - 1; in another_hunk()
1009 if (fillnew > p_end) { in another_hunk()
1013 p_end = fillold - 1; in another_hunk()
1027 p_end = fillnew; in another_hunk()
1070 p_end = p_ptrn_lines + 1 + max - min + 1; in another_hunk()
1076 p_end = p_ptrn_lines + p_repl_lines + 1; in another_hunk()
1077 if (p_end > MAXHUNKSIZE) in another_hunk()
1079 p_end, p_input_line, buf); in another_hunk()
1080 while (p_end >= hunkmax) in another_hunk()
1086 p_end = -1; in another_hunk()
1101 p_end = i - 1; in another_hunk()
1125 p_end = i - 1; in another_hunk()
1129 for (i++; i <= p_end; i++) { in another_hunk()
1140 p_end = i - 1; in another_hunk()
1160 for (i = 0; i <= p_end; i++) { in another_hunk()
1171 if (p_end + 1 < hunkmax)/* paranoia reigns supreme... */ in another_hunk()
1172 p_char[p_end + 1] = '^'; /* add a stopper for apply_hunk */ in another_hunk()
1249 n = p_end - i + 1; in pch_swap()
1255 for (n = 0; i <= p_end; i++, n++) { in pch_swap()
1286 for (i = 0; n <= p_end; i++, n++) { in pch_swap()
1352 return p_end; in pch_end()