config: NOINLINE a couple of functions doing tll operations

This commit is contained in:
Daniel Eklöf 2021-06-30 19:10:37 +02:00
parent 56f592e308
commit 88fb8429b0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -193,7 +193,7 @@ struct path_component {
}; };
typedef tll(struct path_component) path_components_t; typedef tll(struct path_component) path_components_t;
static void static void NOINLINE
path_component_add(path_components_t *components, const char *comp, int fd) path_component_add(path_components_t *components, const char *comp, int fd)
{ {
xassert(comp != NULL); xassert(comp != NULL);
@ -203,14 +203,14 @@ path_component_add(path_components_t *components, const char *comp, int fd)
tll_push_back(*components, pc); tll_push_back(*components, pc);
} }
static void static void NOINLINE
path_component_destroy(struct path_component *component) path_component_destroy(struct path_component *component)
{ {
xassert(component->fd >= 0); xassert(component->fd >= 0);
close(component->fd); close(component->fd);
} }
static void static void NOINLINE
path_components_destroy(path_components_t *components) path_components_destroy(path_components_t *components)
{ {
tll_foreach(*components, it) { tll_foreach(*components, it) {
@ -1662,7 +1662,7 @@ pipe_argv_from_string(const char *value, char ***argv,
return remove_len; return remove_len;
} }
static void static void NOINLINE
remove_action_from_key_bindings_list(struct config_key_binding_list *bindings, remove_action_from_key_bindings_list(struct config_key_binding_list *bindings,
int action, char **pipe_argv) int action, char **pipe_argv)
{ {