Append the new line to the current configuration state. */
| 1351 | |
| 1352 | /* Append the new line to the current configuration state. */ |
| 1353 | void rewriteConfigAppendLine(struct rewriteConfigState *state, sds line) { |
| 1354 | state->lines = (sds*)zrealloc(state->lines, sizeof(char*) * (state->numlines+1), MALLOC_LOCAL); |
| 1355 | state->lines[state->numlines++] = line; |
| 1356 | } |
| 1357 | |
| 1358 | /* Populate the option -> list of line numbers map. */ |
| 1359 | void rewriteConfigAddLineNumberToOption(struct rewriteConfigState *state, sds option, int linenum) { |
no test coverage detected