Hi,
I wrote a very simple config reader for C programs that require frequent
re-configuration. It is ~60 lines, header only (X Macros), and accepts
key-value pairs.
Here it is:
https://src.oleskiewi.cz/kv/
Could I ask for some feedback & comments?
Two things I wanted to focus on next are (1) array support and (2) automatic
patching of the parse/format variables of the X macro -- I would prefer to
write
X(int, i, 1)
rather than
X(int, i, atoi, "%d", 1)
Many thanks,
Piotr
Received on Sat May 11 2019 - 21:52:32 CEST