aboutsummaryrefslogtreecommitdiff
path: root/src/hotkey.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hotkey.h')
-rw-r--r--src/hotkey.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/hotkey.h b/src/hotkey.h
index 6b6e92a..78aba3f 100644
--- a/src/hotkey.h
+++ b/src/hotkey.h
@@ -78,29 +78,25 @@ struct hotkey
struct mode **mode_list;
};
-#define internal static
-
-internal inline void
+static inline void
add_flags(struct hotkey *hotkey, uint32_t flag)
{
hotkey->flags |= flag;
}
-internal inline bool
+static inline bool
has_flags(struct hotkey *hotkey, uint32_t flag)
{
bool result = hotkey->flags & flag;
return result;
}
-internal inline void
+static inline void
clear_flags(struct hotkey *hotkey, uint32_t flag)
{
hotkey->flags &= ~flag;
}
-#undef internal
-
bool compare_string(char *a, char *b);
unsigned long hash_string(char *key);