diff options
Diffstat (limited to 'src/hotkey.h')
-rw-r--r-- | src/hotkey.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/hotkey.h b/src/hotkey.h index 641875d..372715d 100644 --- a/src/hotkey.h +++ b/src/hotkey.h @@ -77,25 +77,29 @@ struct hotkey struct mode **mode_list; }; -static inline void +#define internal static + +internal inline void add_flags(struct hotkey *hotkey, uint32_t flag) { hotkey->flags |= flag; } -static inline bool +internal inline bool has_flags(struct hotkey *hotkey, uint32_t flag) { bool result = hotkey->flags & flag; return result; } -static inline void +internal inline void clear_flags(struct hotkey *hotkey, uint32_t flag) { hotkey->flags &= ~flag; } +#undef internal + bool same_mode(char *a, char *b); unsigned long hash_mode(char *key); |