diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-12-08 14:39:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-12-17 20:02:14 +0100 |
commit | 5f0ab16198890424d8db95effc84bc4905e8eaf3 (patch) | |
tree | da5616dd6b4cd7ce085c02ff47711d4926de2d80 /src/basic/string-table.h | |
parent | 18843ecc2a81a7d0d7c124fc5d9f9eed8b17bd1d (diff) | |
download | systemd-5f0ab16198890424d8db95effc84bc4905e8eaf3.tar.gz |
string-table: add private version of lookup macro with boolean fallback
Diffstat (limited to 'src/basic/string-table.h')
-rw-r--r-- | src/basic/string-table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/string-table.h b/src/basic/string-table.h index ddc9b9a559..ae4ea145d3 100644 --- a/src/basic/string-table.h +++ b/src/basic/string-table.h @@ -84,6 +84,7 @@ ssize_t string_table_lookup(const char * const *table, size_t len, const char *k #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING(name,type) _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name,type,static) #define DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name,type,yes) _DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name,type,yes,) +#define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name,type,yes) _DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(name,type,yes,static) /* For string conversions where numbers are also acceptable */ #define DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(name,type,max) \ |