| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include <stdlib.h> | ||
| 2 | #include "alias.h" | ||
| 3 | #include "util/xmalloc.h" | ||
| 4 | |||
| 5 | 212 | void add_alias(HashMap *aliases, const char *name, const char *value) | |
| 6 | { | ||
| 7 | 212 | free(hashmap_insert_or_replace(aliases, xstrdup(name), xstrdup(value))); | |
| 8 | 212 | } | |
| 9 | |||
| 10 | 3 | void remove_alias(HashMap *aliases, const char *name) | |
| 11 | { | ||
| 12 | 3 | free(hashmap_remove(aliases, name)); | |
| 13 | 3 | } | |
| 14 |