Append the new line to the current configuration state. */
| 1101 | |
| 1102 | /* Append the new line to the current configuration state. */ |
| 1103 | void rewriteConfigAppendLine(struct rewriteConfigState *state, sds line) { |
| 1104 | state->lines = zrealloc(state->lines, sizeof(char*) * (state->numlines+1)); |
| 1105 | state->lines[state->numlines++] = line; |
| 1106 | } |
| 1107 | |
| 1108 | /* Populate the option -> list of line numbers map. */ |
| 1109 | void rewriteConfigAddLineNumberToOption(struct rewriteConfigState *state, sds option, int linenum) { |
no test coverage detected