particle/map: make local functions ‘static’

This commit is contained in:
Daniel Eklöf 2023-07-04 11:35:47 +02:00
parent 9218ef234c
commit 7c5ea4fed6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -13,7 +13,7 @@
#include "map.h" #include "map.h"
bool static bool
int_condition(const long tag_value, const long cond_value, enum map_op op) int_condition(const long tag_value, const long cond_value, enum map_op op)
{ {
switch (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) float_condition(const double tag_value, const double cond_value, enum map_op op)
{ {
switch (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) str_condition(const char* tag_value, const char* cond_value, enum map_op op)
{ {
switch (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) eval_comparison(const struct map_condition* map_cond, const struct tag_set *tags)
{ {
const struct tag *tag = tag_for_name(tags, map_cond->tag); 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; return false;
} }
bool static bool
eval_map_condition(const struct map_condition* map_cond, const struct tag_set *tags) eval_map_condition(const struct map_condition* map_cond, const struct tag_set *tags)
{ {
switch(map_cond->op) switch(map_cond->op)