Page MenuHomeSolus

Update libconfuse to 3.3
ClosedPublic

Authored by aleksvor on Oct 21 2020, 4:59 PM.

Details

Summary

Changelog:

  • Changes
    • Support for cfg_getopt(cfg, "sub=name|option"), i.e., get an option from a sub-section.
    • Support for CFGF_MODIFIED flag, to detect changes to settings in memory after parsing.
    • Support for filtering out settings when printing.
    • Support for dynamic key=value sections with no pre-runtime knowledge of setting names, useful for environment variables and similar.
    • Updated German translation.
  • Fixes
    • Fix loop-forever bug: a .conf file containing only "=", will cause even the simplest parser to loop forever in internal function cfg_getopt_secidx().
    • Handle shell and C++ comments with no space separator.
    • Drop developer debug message: QSTR: ....
    • Fix CFG_PTR_CB() regression, segfaults when, e.g., cfg_free() is called.
    • Revert CFGF_RESET flag if cfg_setmulti() family fail.
    • Memory leak in cfg_setopt() for PTR options.
Test Plan

Tested with Tilda - configurations were loaded and saved successfully.

Diff Detail

Repository
R1656 libconfuse
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

aleksvor created this revision.Oct 21 2020, 4:59 PM
aleksvor requested review of this revision.Oct 21 2020, 4:59 PM
JoshStrobl accepted this revision.Oct 22 2020, 2:53 PM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Oct 22 2020, 2:53 PM
This revision was automatically updated to reflect the committed changes.