Lines Matching refs:p_end
54 static LINENUM p_end = -1; /* last line in hunk */ variable
95 p_end = (LINENUM) - 1; in re_patch()
554 while (p_end >= 0) { in another_hunk()
555 if (p_end == p_efake) in another_hunk()
556 p_end = p_bfake; /* don't free twice */ in another_hunk()
558 free(p_line[p_end]); in another_hunk()
559 p_end--; in another_hunk()
585 while (p_end < p_max) { in another_hunk()
596 p_end++; in another_hunk()
597 if (p_end >= hunkmax) in another_hunk()
600 p_char[p_end] = *buf; in another_hunk()
601 p_line[p_end] = NULL; in another_hunk()
613 if (p_end != 0) { in another_hunk()
622 p_line[p_end] = savestr(buf); in another_hunk()
624 p_end--; in another_hunk()
663 (p_end != p_ptrn_lines + 1 + in another_hunk()
664 (p_char[p_end - 1] == '\n'))) { in another_hunk()
665 if (p_end == 1) { in another_hunk()
671 p_end = p_ptrn_lines + 1; in another_hunk()
672 fillsrc = p_end + 1; in another_hunk()
685 (p_end <= p_ptrn_lines in another_hunk()
692 repl_beginning = p_end; in another_hunk()
695 p_line[p_end] = savestr(buf); in another_hunk()
697 p_end--; in another_hunk()
700 p_char[p_end] = '='; in another_hunk()
722 p_repl_lines >= LINENUM_MAX - p_end) in another_hunk()
724 p_max = p_repl_lines + p_end; in another_hunk()
753 p_line[p_end] = savestr(buf + 2); in another_hunk()
755 p_end--; in another_hunk()
758 if (p_end == p_ptrn_lines) { in another_hunk()
762 l = strlen(p_line[p_end]) - 1; in another_hunk()
763 (p_line[p_end])[l] = 0; in another_hunk()
775 p_line[p_end] = savestr(buf); in another_hunk()
777 p_end--; in another_hunk()
780 if (p_end != p_ptrn_lines + 1) { in another_hunk()
785 p_char[p_end] = ' '; in another_hunk()
797 p_line[p_end] = savestr(buf + 2); in another_hunk()
799 p_end--; in another_hunk()
812 if (p_line[p_end]) in another_hunk()
813 p_len[p_end] = strlen(p_line[p_end]); in another_hunk()
815 p_len[p_end] = 0; in another_hunk()
819 if (p_end >= 0 && !repl_beginning) in another_hunk()
826 for (p_end--; p_end > repl_beginning; p_end--) in another_hunk()
827 free(p_line[p_end]); in another_hunk()
839 p_end = p_max; in another_hunk()
843 while (filldst < p_end) { in another_hunk()
852 p_end--; in another_hunk()
871 while (fillsrc <= p_end && p_char[fillsrc] != ' ') in another_hunk()
873 if (fillsrc > p_end) in another_hunk()
882 while (fillsrc <= p_end && fillsrc != repl_beginning && in another_hunk()
888 fillsrc, filldst, repl_beginning, p_end + 1); in another_hunk()
890 if (fillsrc != p_end + 1 && fillsrc != repl_beginning) in another_hunk()
892 if (filldst != p_end + 1 && filldst != repl_beginning) in another_hunk()
895 if (p_line[p_end] != NULL) { in another_hunk()
897 p_len[p_end] -= 1; in another_hunk()
898 (p_line[p_end])[p_len[p_end]] = 0; in another_hunk()
945 p_end = fillnew + p_repl_lines; in another_hunk()
950 p_end = -1; in another_hunk()
958 p_end = 0; in another_hunk()
965 while (fillold <= p_ptrn_lines || fillnew <= p_end) { in another_hunk()
987 p_end = fillold - 1; in another_hunk()
994 p_end = fillnew - 1; in another_hunk()
1015 p_end = fillold - 1; in another_hunk()
1026 p_end = fillold - 1; in another_hunk()
1037 if (fillnew > p_end) { in another_hunk()
1041 p_end = fillold - 1; in another_hunk()
1055 p_end = fillnew; in another_hunk()
1101 p_end = p_ptrn_lines + p_repl_lines + 1; in another_hunk()
1102 if (p_end > MAXHUNKSIZE) in another_hunk()
1104 p_end, p_input_line, buf); in another_hunk()
1105 while (p_end >= hunkmax) in another_hunk()
1111 p_end = -1; in another_hunk()
1126 p_end = i - 1; in another_hunk()
1150 p_end = i - 1; in another_hunk()
1154 for (i++; i <= p_end; i++) { in another_hunk()
1170 p_end = i - 1; in another_hunk()
1190 for (i = 0; i <= p_end; i++) { in another_hunk()
1201 if (p_end + 1 < hunkmax)/* paranoia reigns supreme... */ in another_hunk()
1202 p_char[p_end + 1] = '^'; /* add a stopper for apply_hunk */ in another_hunk()
1294 n = p_end - i + 1; in pch_swap()
1300 for (n = 0; i <= p_end; i++, n++) { in pch_swap()
1331 for (i = 0; n <= p_end; i++, n++) { in pch_swap()
1397 return p_end; in pch_end()