From 71a04ce117c93241db5547f8b2c7171293df0caa Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 14 Jan 2021 01:58:58 +0700 Subject: [PATCH] Remove unused FileIOFlag, TimerFlag. (#221) --- inc/lspglob.h | 3 --- src/keyevent.c | 2 -- src/timer.c | 5 ----- 3 files changed, 10 deletions(-) diff --git a/inc/lspglob.h b/inc/lspglob.h index afa53c2..7ea1269 100755 --- a/inc/lspglob.h +++ b/inc/lspglob.h @@ -100,9 +100,6 @@ extern LispPTR *MDS_free_page_word; extern LispPTR *Reclaim_cnt_word ; - -extern int FileIOFlag, TimerFlag; - /*** cache values for array reclaimer by Tomtom 30-Sep-1987 ***/ extern LispPTR *GcDisabled_word; diff --git a/src/keyevent.c b/src/keyevent.c index 2d9bf7a..27d4086 100644 --- a/src/keyevent.c +++ b/src/keyevent.c @@ -192,8 +192,6 @@ typedef struct { } #endif /* OLD_CURSOR */ -/* function that checks to see if more input is waiting on a file; - if some is, it bumps FileIOFlag so it'll get seen next time around */ /* commented out is some code that would also clobber Irq_Stk_Check & Irq_Stk_End to force a new interrupt as rapidly as possible; it causes odd behavior... diff --git a/src/timer.c b/src/timer.c index 2592f51..f92af42 100644 --- a/src/timer.c +++ b/src/timer.c @@ -412,8 +412,6 @@ int TIMER_INTERVAL = 100000; int TIMER_INTERVAL = 25000; #endif -int FileIOFlag = 0; -int TimerFlag = 0; extern int LispWindowFd; /************************************************************************/ @@ -432,7 +430,6 @@ static void int_timer_service(int sig) Irq_Stk_Check = 0; Irq_Stk_End = 0; - TimerFlag = 1; #ifdef XWINDOW Event_Req = TRUE; @@ -459,7 +456,6 @@ static void int_timer_init() * locked prior to receiving any interrupts. This prevents the Timer * function from being swapped out during an interrupt. ******************************************************************************/ - _dpmi_lockregion((void *)TimerFlag, sizeof(TimerFlag)); _dpmi_lockregion((void *)Irq_Stk_End, sizeof(Irq_Stk_End)); _dpmi_lockregion((void *)Irq_Stk_Check, sizeof(Irq_Stk_Check)); _dpmi_lockregion((void *)tick_count, sizeof(tick_count)); @@ -860,7 +856,6 @@ void DOStimer() { /* if (--tick_count == 0) { */ Irq_Stk_Check = 0; Irq_Stk_End = 0; - TimerFlag = 1; /* _dos_setvect(0x1c, prev_int_1c); } else if (tick_count <= 0) { */ /* I'm dead, uninstal me */