MCPcopy Index your code
hub / github.com/git/git / set_comment_key_flags

Function set_comment_key_flags

config.c:2038–2046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2036#define COMMENT_KEY_MASK(id) (3u << COMMENT_KEY_SHIFT(id))
2037
2038static 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
2048static unsigned get_comment_key_flags(struct comment_char_config *config,
2049 const char *path, unsigned id)

Callers 1

comment_char_callbackFunction · 0.85

Calls 2

strintmap_getFunction · 0.85
strintmap_setFunction · 0.85

Tested by

no test coverage detected