Gaius Mulley cf4dcfa672 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>
2023-05-16 15:51:53 +01:00
2023-04-01 00:17:38 +00:00
2022-11-15 08:32:29 +00:00
2023-04-29 00:16:48 +00:00
2023-03-29 00:17:01 +00:00
2023-04-26 00:17:46 +00:00
2022-08-31 00:16:45 +00:00
2023-05-12 00:18:12 +00:00
2022-11-24 00:17:47 +00:00
2023-01-16 11:52:17 +01:00
2023-03-25 00:16:51 +00:00
2023-03-29 00:17:01 +00:00
2023-01-16 11:52:17 +01:00
2023-05-10 00:17:49 +00:00
2023-01-16 11:52:17 +01:00
2023-05-07 00:16:40 +00:00
2023-05-16 00:17:47 +00:00
2023-05-13 00:17:14 +00:00
2023-05-11 09:17:48 -07:00
2023-05-16 00:17:47 +00:00
2023-04-03 00:16:43 +00:00
2023-01-16 11:52:17 +01:00
2023-01-16 11:52:17 +01:00
2023-03-18 00:16:40 +00:00
2023-03-03 00:16:38 +00:00
2023-05-01 00:16:44 +00:00
2023-01-16 11:52:17 +01:00
2023-01-16 11:52:17 +01:00
2023-05-12 00:18:12 +00:00
2023-04-21 00:17:31 +00:00
2022-11-24 00:17:47 +00:00
2022-07-19 17:07:04 +03:00
2023-05-12 00:18:12 +00:00
2021-12-21 09:10:57 +01:00
2023-04-28 13:15:33 -07:00
2023-04-28 13:15:33 -07:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 1.5 GiB
Languages
C++ 30.7%
C 30%
Ada 14.5%
D 6.1%
Go 5.7%
Other 12.5%