Populate the option -> list of line numbers map. */
| 1357 | |
| 1358 | /* Populate the option -> list of line numbers map. */ |
| 1359 | void rewriteConfigAddLineNumberToOption(struct rewriteConfigState *state, sds option, int linenum) { |
| 1360 | list *l = (list*)dictFetchValue(state->option_to_line,option); |
| 1361 | |
| 1362 | if (l == NULL) { |
| 1363 | l = listCreate(); |
| 1364 | dictAdd(state->option_to_line,sdsdup(option),l); |
| 1365 | } |
| 1366 | listAddNodeTail(l,(void*)(long)linenum); |
| 1367 | } |
| 1368 | |
| 1369 | /* Add the specified option to the set of processed options. |
| 1370 | * This is useful as only unused lines of processed options will be blanked |
no test coverage detected