1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-04-27 12:49:29 +00:00

Clean up MAIKO_HANDLE_CONSOLE_MESSAGES some. (#331)

* `LOGINT` is only useful when `MAIKO_HANDLE_CONSOLE_MESSAGES`
  is set.
* Only define some variables if `MAIKO_HANDLE_CONSOLE_MESSAGES`
  is set. Flag them as static.
* Remove setting `LOGINT` from the build system as it isn't
  needed because we aren't handling console messages.
This commit is contained in:
Bruce Mitchener
2021-02-01 12:22:13 +07:00
committed by GitHub
parent 261069f131
commit 275c5b9c13
18 changed files with 23 additions and 35 deletions

View File

@@ -348,7 +348,7 @@ getmore:
rs232c_read();
#endif /* RS232 */
#ifdef LOGINT
#if defined(MAIKO_HANDLE_CONSOLE_MESSAGES) && defined(LOGINT)
if (LogFileFd >= 0 && FD_ISSET(LogFileFd, &rfds)) { /* There's info in the log file. Tell Lisp to print it. */
flush_pty(); /* move the msg(s) to the log file */