From 7c5ea4fed6c05e5caaf221fd2064b297b2244654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 4 Jul 2023 11:35:47 +0200 Subject: [PATCH] =?UTF-8?q?particle/map:=20make=20local=20functions=20?= =?UTF-8?q?=E2=80=98static=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- particles/map.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/particles/map.c b/particles/map.c index 82a1ee0..5912f9c 100644 --- a/particles/map.c +++ b/particles/map.c @@ -13,7 +13,7 @@ #include "map.h" -bool +static bool int_condition(const long tag_value, const long cond_value, enum map_op op) { switch (op) { @@ -28,7 +28,7 @@ int_condition(const long tag_value, const long cond_value, enum map_op op) } } -bool +static bool float_condition(const double tag_value, const double cond_value, enum map_op op) { switch (op) { @@ -43,7 +43,7 @@ float_condition(const double tag_value, const double cond_value, enum map_op op) } } -bool +static bool str_condition(const char* tag_value, const char* cond_value, enum map_op op) { switch (op) { @@ -58,7 +58,7 @@ str_condition(const char* tag_value, const char* cond_value, enum map_op op) } } -bool +static bool eval_comparison(const struct map_condition* map_cond, const struct tag_set *tags) { const struct tag *tag = tag_for_name(tags, map_cond->tag); @@ -115,7 +115,7 @@ eval_comparison(const struct map_condition* map_cond, const struct tag_set *tags return false; } -bool +static bool eval_map_condition(const struct map_condition* map_cond, const struct tag_set *tags) { switch(map_cond->op)