1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Replace conf.c's type arrays with a new conf_key_info[].

This array is planned to be exposed more widely, and used for more
purposes than just checking the types of Conf options. In this commit
it just takes over from the two previous smaller arrays, and adds no
extra data.
This commit is contained in:
Simon Tatham
2023-09-22 12:54:15 +01:00
parent 72bbca9ddd
commit 860bd0d5b7
6 changed files with 802 additions and 317 deletions

9
utils/conf_data.c Normal file
View File

@ -0,0 +1,9 @@
#include "putty.h"
#define CONF_OPTION(id, ...) { __VA_ARGS__ },
#define VALUE_TYPE(x) .value_type = CONF_TYPE_ ## x
#define SUBKEY_TYPE(x) .subkey_type = CONF_TYPE_ ## x
const ConfKeyInfo conf_key_info[] = {
#include "conf.h"
};