MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rewriteConfigAppendLine

Function rewriteConfigAppendLine

src/config.cpp:1353–1356  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1351
1352/* Append the new line to the current configuration state. */
1353void 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. */
1359void 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