1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-25 14:52:09 -05:00
Simon Tatham 92594f3e41 test_conf: directly check consistency of conf_key_info.
This is why I wrote conf.h in the form of macros that expanded to
named structure field assignments, instead of just filling it with
named structure field assignments directly. This way, I can #include
the same file again with different macro definitions, and build up a
list of what fields were set in what config options.

This new code checks that if a config option has a default, then the
type of the default matches the declared type of the option value
itself. That's what caught the two goofs in the previous commit.

This is also the part of test_conf that I _won't_ want to delete once
I've finished with the refactoring: it can stay there forever, doing
type checking at test time that the compiler isn't doing for me at
build time.
2023-09-22 15:35:40 +01:00
..
2022-04-25 15:09:31 +01:00
2023-04-21 20:17:43 +01:00
2023-04-21 20:17:43 +01:00