Define simple configuration on INI files.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
TheoryOfNekomata 8de2176284 Add other int types 1年前
subprojects Initial commit 1年前
.gitignore Initial commit 1年前
.gitmodules Initial commit 1年前
CMakeLists.txt Initial commit 1年前
LICENSE Initial commit 1年前
README.md Initial commit 1年前
ini-config.c Add other int types 1年前
ini-config.h Add other int types 1年前

README.md

Procedure

Subsystem calls its initialize method.

  1. Subsystem copies hardcoded default values to its in-memory state container.
  2. Subsystem defines the available config items it has, and how it is connected to various config sources (i.e. specify its section and key in the config file, as well as supplying command line options connected to this config item).
  3. Subsystem binds the config items with their respective sections and keys in the config file (i.e. correctly point the values to the respective internal state container of the app).
  4. Subsystem retrieves the config file values as well as command line arguments (higher priority) supplied to the app upon invocation.
  5. Subsystem checks if there are some volatile state data to retrieve and syncs it with the state.
  6. Subsystem saves the state to the config file.