Lines Matching refs:p_char
59 static char *p_char = NULL; /* +, -, and ! */
139 if (p_char == NULL)
140 p_char = malloc(hunkmax * sizeof(char));
151 if (p_line == NULL || p_len == NULL || p_char == NULL)
156 p_char = reallocf(p_char, new_hunkmax * sizeof(char));
158 if (p_line != NULL && p_len != NULL && p_char != NULL) {
562 p_char[p_end] = *buf;
626 (p_char[p_end - 1] == '\n'))) {
662 p_char[p_end] = '=';
747 p_char[p_end] = ' ';
807 p_char[filldst] = p_char[filldst + 1];
833 while (fillsrc <= p_end && p_char[fillsrc] != ' ')
839 p_char[filldst] = p_char[fillsrc];
845 p_char[fillsrc] != ' ')
915 p_char[0] = '*';
923 p_char[fillnew++] = '=';
959 p_char[fillold] = ch;
981 p_char[fillold] = ch;
1006 p_char[fillnew] = ch;
1076 p_char[0] = '*';
1092 p_char[i] = '-';
1115 p_char[i] = '=';
1131 p_char[i] = '+';
1152 fprintf(stderr, "%3d %c %c %s", i, p_char[i],
1159 p_char[p_end + 1] = '^'; /* add a stopper for apply_hunk */
1227 tp_char = p_char;
1230 p_char = NULL;
1232 if (p_line == NULL || p_len == NULL || p_char == NULL) {
1238 free(p_char);
1239 p_char = tp_char;
1259 p_char[n] = tp_char[i];
1260 if (p_char[n] == '+')
1261 p_char[n] = '-';
1267 p_char[n] = tp_char[i];
1271 if (p_char[0] != '=')
1273 p_input_line, p_char[0]);
1274 p_char[0] = '*';
1281 if (p_char[0] != '*')
1283 p_input_line, p_char[0]);
1290 p_char[n] = tp_char[i];
1291 if (p_char[n] == '-')
1292 p_char[n] = '+';
1381 return p_char[line];