From 7a5e5a80b9e86cfdd79f25fc9df6f7f390c5430e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 17 Apr 2022 16:11:39 +0200 Subject: [PATCH] key-binding: NOINLINE a couple of functions, for a minor code size reduction --- key-binding.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/key-binding.c b/key-binding.c index 81a9f6a2..a9e23d44 100644 --- a/key-binding.c +++ b/key-binding.c @@ -125,7 +125,7 @@ key_binding_new_for_term(struct key_binding_manager *mgr, tll_length(mgr->binding_sets)); } -struct key_binding_set * +struct key_binding_set * NOINLINE key_binding_for(struct key_binding_manager *mgr, const struct terminal *term, const struct seat *seat) { @@ -358,7 +358,7 @@ maybe_repair_key_combo(const struct seat *seat, return sym; } -static void +static void NOINLINE convert_key_binding(struct key_set *set, const struct config_key_binding *conf_binding, key_binding_list_t *bindings) @@ -443,7 +443,7 @@ convert_mouse_bindings(struct key_set *set) } } -static void +static void NOINLINE load_keymap(struct key_set *set) { LOG_DBG("load keymap: set=%p, seat=%p, conf=%p", @@ -488,7 +488,7 @@ key_bindings_destroy(key_binding_list_t *bindings) } } -static void +static void NOINLINE unload_keymap(struct key_set *set) { key_bindings_destroy(&set->public.key);