simon-git: putty (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Wed Jan 1 16:08:05 GMT 2020
TL;DR:
639810e8 uxpty: remove redundant signal list. (NFC)
Repository: https://git.tartarus.org/simon/putty.git
On the web: https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2020-01-01 16:08:05
commit 639810e825243dbce76b3c521311474b5b98eedc
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=639810e825243dbce76b3c521311474b5b98eedc;hp=22453b46daf2b03f5fe8b2bfac35b818f6c789fe
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Jan 1 12:58:52 2020 +0000
uxpty: remove redundant signal list. (NFC)
In commit 105672e32 I added the pty_backend_exit_signame() function,
which constructs the SSH wire name of the signal that terminated the
pty session process. I did it by having a sequence of inline #ifdefs
for all the translatable signal names, each one guarding the code that
expected that signal to be defined in <signal.h>.
But there was no need to write all that out longhand, because in the
preceding commit 72eca76d2, I made a central list of signal names in
sshsignals.h, so all I should have needed to do was to set up the
macros that header expects, and let _it_ do the iteration over the
locally defined subset of signal ids! So now I do that instead.
unix/uxpty.c | 52 ++++++++--------------------------------------------
1 file changed, 8 insertions(+), 44 deletions(-)
More information about the tartarus-commits
mailing list