chiark / gitweb /
conf-parser: introduce DEFINE_CONFIG_PARSE*() macros
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 May 2018 16:39:12 +0000 (01:39 +0900)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit34bc75f66b677a35815097521fccd1d8703e64ba
tree1ff862a7fa6d017937aa878621ea75b9a87646f3
parentaa15ecac3f6b7d995748fd668c39cf1c8c63e476
conf-parser: introduce DEFINE_CONFIG_PARSE*() macros

This introduces several macros for defining config parsers.
Also this fixes errno in DEFINE_CONFIG_PARSE_ENUM() and _ENUMV()
and makes the log level lower when a duplicated item is
specified to the settings parsed by the function defined by
DEFINE_CONFIG_PARSE_ENUMV().
src/shared/conf-parser.c
src/shared/conf-parser.h