Lines Matching refs:p_line
57 static char **p_line = NULL;/* the text of the hunk */
137 if (p_line == NULL)
138 p_line = malloc(hunkmax * sizeof(char *));
153 if (p_line == NULL || p_len == NULL || p_char == NULL)
156 p_line = reallocf(p_line, new_hunkmax * sizeof(char *));
160 if (p_line != NULL && p_len != NULL && p_char != NULL) {
557 free(p_line[p_end]);
600 p_line[p_end] = NULL;
621 p_line[p_end] = savestr(buf);
694 p_line[p_end] = savestr(buf);
752 p_line[p_end] = savestr(buf + 2);
761 l = strlen(p_line[p_end]) - 1;
762 (p_line[p_end])[l] = 0;
774 p_line[p_end] = savestr(buf);
796 p_line[p_end] = savestr(buf + 2);
811 if (p_line[p_end])
812 p_len[p_end] = strlen(p_line[p_end]);
826 free(p_line[p_end]);
843 p_line[filldst] = p_line[filldst + 1];
875 p_line[filldst] = p_line[fillsrc];
894 if (p_line[p_end] != NULL) {
897 (p_line[p_end])[p_len[p_end]] = 0;
947 p_line[0] = savestr(buf);
955 p_line[fillnew] = savestr(buf);
985 free(p_line[fillnew]);
997 p_line[fillold] = s;
1013 free(p_line[fillnew]);
1019 p_line[fillold] = s;
1024 free(p_line[fillnew]);
1039 free(p_line[fillnew]);
1044 p_line[fillnew] = s;
1108 p_line[0] = savestr(buf);
1123 p_line[i] = savestr(buf + 2);
1128 p_len[i] = strlen(p_line[i]);
1134 (p_line[i - 1])[p_len[i - 1]] = 0;
1147 p_line[i] = savestr(buf);
1164 p_line[i] = savestr(buf + 2);
1166 p_line[i] = savestr("");
1172 p_len[i] = strlen(p_line[i]);
1178 (p_line[i - 1])[p_len[i - 1]] = 0;
1195 special, p_line[i]);
1270 tp_line = p_line;
1273 p_line = NULL; /* force set_hunkmax to allocate again */
1277 if (p_line == NULL || p_len == NULL || p_char == NULL) {
1279 free(p_line);
1280 p_line = tp_line;
1303 p_line[n] = tp_line[i];
1311 p_line[n] = tp_line[i];
1320 for (s = p_line[0]; *s; s++)
1334 p_line[n] = tp_line[i];
1435 return p_line[line];