1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-05 07:54:43 +00:00

Avoid setting Lisp variables whose locations are unknown when in INIT mode (#481)

* Avoid setting Lisp variables whose locations are unknown when in INIT mode.

* Exit with a success (0) status for normal lisp_finish.
This commit is contained in:
Nick Briggs
2023-08-01 11:16:42 -07:00
committed by GitHub
parent 4a9f5500c4
commit 8e43a393bd
2 changed files with 3 additions and 1 deletions

View File

@@ -531,5 +531,5 @@ void lisp_finish(void) {
#ifdef DOS
exit_host_filesystem();
#endif /* DOS */
exit(1);
exit(0);
}

View File

@@ -189,11 +189,13 @@ void process_Xevents(DspInterface dsp)
if (report.xany.window == dsp->DisplayWindow) /* Try the most important window first. */
switch (report.type) {
case MotionNotify:
#ifndef INIT
*CLastUserActionCell68k = MiscStats->secondstmp;
*EmCursorX68K = (*((DLword *)EmMouseX68K)) =
(short)((report.xmotion.x + dsp->Visible.x) & 0xFFFF) - Current_Hot_X;
*EmCursorY68K = (*((DLword *)EmMouseY68K)) =
(short)((report.xmotion.y + dsp->Visible.y) & 0xFFFF) - Current_Hot_Y;
#endif
break;
case KeyPress:
kb_trans(SUNLispKeyMap[(report.xkey.keycode) - KEYCODE_OFFSET], FALSE);