diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2023-05-16 15:51:53 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2023-05-16 15:51:53 +0100 |
commit | cf4dcfa6727b89362494bd49e2a28ebd10d767ce (patch) | |
tree | a2b1162ce4f3c6ea6e6f97c47a3c277505ce0f76 /install-sh | |
parent | 057e537e2a6f0fead3ebb503c8dcc08c9c6491ec (diff) | |
download | gcc-cf4dcfa6727b89362494bd49e2a28ebd10d767ce.tar.gz |
PR modula2/108344 disable default opening of /dev/tty
This patch changes removes the static initialisation code for KeyBoardLEDs.cc.
The module is only initialised if one of the exported functions is called.
This is useful as the module will access /dev/tty which might not be
available. TimerHandler.mod has also been changed to disable the scroll
lock LED as a sign of life.
gcc/m2/ChangeLog:
PR modula2/108344
* gm2-libs-coroutines/TimerHandler.mod (EnableLED): New constant.
(Timer): Test EnableLED before switching on the scroll LED.
libgm2/ChangeLog:
PR modula2/108344
* libm2cor/KeyBoardLEDs.cc (initialize_module): New function.
(SwitchScroll): Call initialize_module.
(SwitchNum): Call initialize_module.
(SwitchCaps): Call initialize_module.
(SwitchLEDs): Call initialize_module.
(M2EXPORT): Remove initialization code.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'install-sh')
0 files changed, 0 insertions, 0 deletions