1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-14 15:36:34 +00:00

Fix compilation if !SUNDISPLAY && !XWINDOW && !DOS. (#270)

Some extra braces make this syntax more resilient. Go ahead and
fix a bit of formatting at the same time.
This commit is contained in:
Bruce Mitchener 2021-01-22 14:10:35 +07:00 committed by GitHub
parent 3b25bc27ee
commit 13370475d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,26 +75,25 @@ void KB_enable(LispPTR *args) /* args[0] : ON/OFF flag
* NIL -- OFF
*/
{
if (args[0] == ATOM_T)
if (args[0] == ATOM_T) {
#ifdef SUNDISPLAY
FD_SET(LispWindowFd, &LispReadFds);
FD_SET(LispWindowFd, &LispReadFds);
#elif XWINDOW
enable_Xkeyboard(currentdsp);
#elif DOS
(currentkbd->device.enter)(currentkbd);
/* outp( KBD_COMMAND_PORT, KBD_ENABLE); */
/* outp( KBD_COMMAND_PORT, KBD_ENABLE); */
#endif /* DOS */
else if (args[0] == NIL)
} else if (args[0] == NIL) {
#ifdef SUNDISPLAY
FD_SET(LispWindowFd, &LispReadFds);
FD_SET(LispWindowFd, &LispReadFds);
#elif XWINDOW
disable_Xkeyboard(currentdsp);
#elif DOS
(currentkbd->device.exit)(currentkbd);
/* outp( KBD_COMMAND_PORT, KBD_DISABLE); */
/* outp( KBD_COMMAND_PORT, KBD_DISABLE); */
#endif /* DOS */
else {
} else {
error("KB_enable: illegal arg \n");
printf("KB_enable: arg = %d\n", args[0]);
}