1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-16 12:03:03 -05:00
Simon Tatham 575ee4f8fc Make cmdline_tooltype a const int.
Another ugly mutable global variable gone: now, instead of this
variable being defined in cmdline.c and written to by everyone's
main(), it's defined _alongside_ everyone's main() as a constant, and
cmdline.c just refers to it.

A bonus is that now nocmdline.c doesn't have to define it anyway for
tools that don't use cmdline.c. But mostly, it didn't need to be
mutable, so better for it not to be.

While I'm at it, I've also fiddled with the bit flags that go in it,
to define their values automatically using a list macro instead of
manually specifying each one to be a different power of 2.
2020-01-30 06:40:22 +00:00
..
2020-01-30 06:40:21 +00:00
2019-03-31 10:35:10 +01:00
2020-01-30 06:40:21 +00:00
2019-10-14 19:42:37 +01:00
2020-01-30 06:40:21 +00:00
2020-01-21 20:24:04 +00:00
2020-01-30 06:40:22 +00:00
2020-01-30 06:40:22 +00:00
2020-01-30 06:40:22 +00:00
2020-01-30 06:40:21 +00:00
2020-01-30 06:40:21 +00:00
2019-10-14 19:42:37 +01:00
2020-01-21 20:24:04 +00:00