MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rewriteConfigAppendLine

Function rewriteConfigAppendLine

app/redis-6.2.6/src/config.c:1103–1106  ·  view source on GitHub ↗

Append the new line to the current configuration state. */

Source from the content-addressed store, hash-verified

1101
1102/* Append the new line to the current configuration state. */
1103void 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. */
1109void rewriteConfigAddLineNumberToOption(struct rewriteConfigState *state, sds option, int linenum) {

Callers 2

rewriteConfigReadOldFileFunction · 0.85
rewriteConfigRewriteLineFunction · 0.85

Calls 1

zreallocFunction · 0.85

Tested by

no test coverage detected