From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31965 invoked from network); 26 Feb 2023 22:45:04 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 26 Feb 2023 22:45:04 -0000 Received: from sirjofri.de ([5.45.105.127]) by 9front; Sun Feb 26 17:43:32 -0500 2023 Received: from dummy.faircode.eu ([95.90.217.122]) by sirjofri.de; Sun Feb 26 23:43:24 +0100 2023 Date: Sun, 26 Feb 2023 23:43:20 +0100 (GMT+01:00) From: sirjofri To: 9front@9front.org Message-ID: <222a5bcb-f632-4c9e-9ddb-a0752d4a1eb7@sirjofri.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Correlation-ID: <222a5bcb-f632-4c9e-9ddb-a0752d4a1eb7@sirjofri.de> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: self-signing persistence strategy event Subject: [9front] Introducing libini Reply-To: 9front@9front.org Precedence: bulk Good evening, some people like it, some hate it, but for configuration purposes some really prefer using the ini file format. Hereby I introduce libini, which provides ini parsing functionality as a library. You can parse ini files manually by providing your own parse function, or use the builtin management solution to provide a catalogue of all settings. Libini supports the simple standard file format, as well as array-like structures (using +key=value pairs). key=value pairs without sections are also supported. Libini should also support loading multiple ini files, though I didn't properly test that. There are very likely a few errors, patches are like always welcome. Here's the URL for the repository: http://shithub.us/sirjofri/libini/HEAD/info.html . The repo contains a test program. sirjofri