hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.11k stars 362 forks source link

Line capacity control #221

Open nenin-sc opened 2 years ago

nenin-sc commented 2 years ago

Hi, thanks for nice job. I have proposition for enhancement. It allows to assign number of the elements for lists and arrays, which can be written in one line. It makes file sufficiently more human readable in some cases. In attached zip are some minor modification of the code, which allows to do it. changed_files.zip I did for C++ version (method void Setting::setLineCapacity(const unsigned int npl) and corresponding field unsigned int nrecs in struct config_list_t ).
setLineCapacity in this implementation works only for Setting with at least one element already added.

bharsaklemukesh975 commented 1 year ago

Can I work on this if no one is working on this? Thanks

nenin-sc commented 1 year ago

I have no any objections.