From d6ebedbd97664c13586b195fdd76c26a4a085c0e Mon Sep 17 00:00:00 2001 From: Gregory Minshall Date: Fri, 22 May 1987 18:55:28 -0800 Subject: [PATCH] Move OIA into global storage. SCCS-vsn: usr.bin/tn3270/ctlr/oia.c 1.3 SCCS-vsn: usr.bin/tn3270/ctlr/oia.h 1.2 SCCS-vsn: usr.bin/tn3270/general/globals.h 1.3 --- usr/src/usr.bin/tn3270/ctlr/oia.c | 15 +++++++-------- usr/src/usr.bin/tn3270/ctlr/oia.h | 2 ++ usr/src/usr.bin/tn3270/general/globals.h | 6 ++++++ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/usr/src/usr.bin/tn3270/ctlr/oia.c b/usr/src/usr.bin/tn3270/ctlr/oia.c index f8bc0d61c1..e6dc3c8b7c 100644 --- a/usr/src/usr.bin/tn3270/ctlr/oia.c +++ b/usr/src/usr.bin/tn3270/ctlr/oia.c @@ -3,8 +3,7 @@ */ #include "oia.h" - -OIA OperatorInformationArea; +#include "../general/globals.h" static int Insert, @@ -47,7 +46,7 @@ int onoff; } else { OperatorInformationArea.insert = 0; } - ScreenOIA(&OperatorInformationArea); + ScreenOIA(); } OiaSystemLocked(onoff) @@ -58,7 +57,7 @@ int onoff; if ((PWait == 0) && (TWait == 0)) { OiaXArea(X_AREA_SYSTEM); } - ScreenOIA(&OperatorInformationArea); + ScreenOIA(); } OiaPWait(onoff) @@ -75,7 +74,7 @@ int onoff; OiaXArea(X_AREA_NULL); } } - ScreenOIA(&OperatorInformationArea); + ScreenOIA(); } OiaTWait(onoff) @@ -97,7 +96,7 @@ int onoff; } else { OperatorInformationArea.online = 0; } - ScreenOIA(&OperatorInformationArea); + ScreenOIA(); } OiaReady3274(onoff) @@ -110,7 +109,7 @@ int onoff; } else { OperatorInformationArea.ready = 0; } - ScreenOIA(&OperatorInformationArea); + ScreenOIA(); } OiaMyJob(onoff) @@ -123,5 +122,5 @@ int onoff; } else { OperatorInformationArea.ownership = 0; } - ScreenOIA(&OperatorInformationArea); + ScreenOIA(); } diff --git a/usr/src/usr.bin/tn3270/ctlr/oia.h b/usr/src/usr.bin/tn3270/ctlr/oia.h index 773f071299..3eeaeec036 100644 --- a/usr/src/usr.bin/tn3270/ctlr/oia.h +++ b/usr/src/usr.bin/tn3270/ctlr/oia.h @@ -2,6 +2,8 @@ * This file describes the Operator Information Area in the 3270. */ +#define INCLUDED_OIA + #define OIA_READY_3274 0xF4 #define OIA_ONLINE_A 0xCC #define OIA_OWNERSHIP_MYJOB 0xCF diff --git a/usr/src/usr.bin/tn3270/general/globals.h b/usr/src/usr.bin/tn3270/general/globals.h index 36486ae601..7ef48abd17 100644 --- a/usr/src/usr.bin/tn3270/general/globals.h +++ b/usr/src/usr.bin/tn3270/general/globals.h @@ -86,3 +86,9 @@ EXTERN int Initialized; /* are we initialized? */ #if defined(INCLUDED_STATE) #endif + +#if defined(INCLUDED_OIA) + +OIA OperatorInformationArea; + +#endif /* defined(INCLUDED_OIA) */ -- 2.20.1