• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.bin/patch/

Lines Matching refs:p_line

58 static char	**p_line = NULL;/* the text of the hunk */
138 if (p_line == NULL)
139 p_line = malloc(hunkmax * sizeof(char *));
154 if (p_line == NULL || p_len == NULL || p_char == NULL)
157 p_line = reallocf(p_line, new_hunkmax * sizeof(char *));
161 if (p_line != NULL && p_len != NULL && p_char != NULL) {
558 free(p_line[p_end]);
601 p_line[p_end] = NULL;
622 p_line[p_end] = savestr(buf);
695 p_line[p_end] = savestr(buf);
753 p_line[p_end] = savestr(buf + 2);
762 l = strlen(p_line[p_end]) - 1;
763 (p_line[p_end])[l] = 0;
775 p_line[p_end] = savestr(buf);
797 p_line[p_end] = savestr(buf + 2);
812 if (p_line[p_end])
813 p_len[p_end] = strlen(p_line[p_end]);
827 free(p_line[p_end]);
844 p_line[filldst] = p_line[filldst + 1];
876 p_line[filldst] = p_line[fillsrc];
895 if (p_line[p_end] != NULL) {
898 (p_line[p_end])[p_len[p_end]] = 0;
948 p_line[0] = savestr(buf);
956 p_line[fillnew] = savestr(buf);
986 free(p_line[fillnew]);
998 p_line[fillold] = s;
1014 free(p_line[fillnew]);
1020 p_line[fillold] = s;
1025 free(p_line[fillnew]);
1040 free(p_line[fillnew]);
1045 p_line[fillnew] = s;
1109 p_line[0] = savestr(buf);
1124 p_line[i] = savestr(buf + 2);
1129 p_len[i] = strlen(p_line[i]);
1135 (p_line[i - 1])[p_len[i - 1]] = 0;
1148 p_line[i] = savestr(buf);
1165 p_line[i] = savestr(buf + 2);
1167 p_line[i] = savestr("");
1173 p_len[i] = strlen(p_line[i]);
1179 (p_line[i - 1])[p_len[i - 1]] = 0;
1196 special, p_line[i]);
1268 tp_line = p_line;
1271 p_line = NULL; /* force set_hunkmax to allocate again */
1275 if (p_line == NULL || p_len == NULL || p_char == NULL) {
1277 free(p_line);
1278 p_line = tp_line;
1301 p_line[n] = tp_line[i];
1309 p_line[n] = tp_line[i];
1318 for (s = p_line[0]; *s; s++)
1332 p_line[n] = tp_line[i];
1433 return p_line[line];