| 2036 | #define COMMENT_KEY_MASK(id) (3u << COMMENT_KEY_SHIFT(id)) |
| 2037 | |
| 2038 | static void set_comment_key_flags(struct comment_char_config *config, |
| 2039 | const char *path, unsigned id, unsigned value) |
| 2040 | { |
| 2041 | unsigned old = strintmap_get(&config->key_flags, path); |
| 2042 | unsigned new = (old & ~COMMENT_KEY_MASK(id)) | |
| 2043 | value << COMMENT_KEY_SHIFT(id); |
| 2044 | |
| 2045 | strintmap_set(&config->key_flags, path, new); |
| 2046 | } |
| 2047 | |
| 2048 | static unsigned get_comment_key_flags(struct comment_char_config *config, |
| 2049 | const char *path, unsigned id) |
no test coverage detected