[dev] key-value config reader

From: Piotr Oleskiewicz <piotr_AT_oleskiewi.cz>
Date: Sat, 11 May 2019 20:52:32 +0100

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

This archive was generated by hypermail 2.3.0 : Sat May 11 2019 - 22:00:09 CEST