string-table: do not ignore 'scope' argument
This commit is contained in:
parent
e094eb1188
commit
22ac37aa00
|
@ -58,7 +58,7 @@ ssize_t string_table_lookup(const char * const *table, size_t len, const char *k
|
||||||
}
|
}
|
||||||
|
|
||||||
#define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name,type,max,scope) \
|
#define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name,type,max,scope) \
|
||||||
type name##_from_string(const char *s) { \
|
scope type name##_from_string(const char *s) { \
|
||||||
type i; \
|
type i; \
|
||||||
unsigned u = 0; \
|
unsigned u = 0; \
|
||||||
if (!s) \
|
if (!s) \
|
||||||
|
|
Loading…
Reference in a new issue