1 #ifndef __sqUnixGlobals_h 2 #define __sqUnixGlobals_h 3 4 #include "sqMemoryAccess.h" 5 6 #if 1 /* use global structure */ 7 8 extern sqInt getFullScreenFlag(void); 9 extern void setFullScreenFlag(sqInt i); 10 extern sqInt getInterruptCheckCounter(void); 11 extern void setInterruptCheckCounter(sqInt i); 12 extern sqInt getInterruptKeycode(void); 13 extern void setInterruptKeycode(sqInt i); 14 extern sqInt getInterruptPending(void); 15 extern void setInterruptPending(sqInt i); 16 extern sqInt getSavedWindowSize(void); 17 extern void setSavedWindowSize(sqInt i); 18 19 #else /* ! global structure */ 20 21 extern sqInt fullScreenFlag; 22 extern sqInt interruptCheckCounter; 23 extern sqInt interruptKeycode; 24 extern sqInt interruptPending; 25 extern sqInt savedWindowSize; 26 27 # define getFullScreenFlag() (fullScreenFlag) 28 # define setFullScreenFlag(I) (fullScreenFlag= (I)) 29 # define getInterruptCheckCounter() (interruptCheckCounter) 30 # define setInterruptCheckCounter(I) (interruptCheckCounter= (I)) 31 # define getInterruptKeycode() (interruptKeycode) 32 # define setInterruptKeycode(I) (interruptKeycode= (I)) 33 # define getInterruptPending() (interruptPending) 34 # define setInterruptPending(I) (interruptPending= (I)) 35 # define getSavedWindowSize() (savedWindowSize) 36 # define setSavedWindowSize(I) (savedWindowSize= (I)) 37 38 #endif /* !global structure */ 39 40 #endif /* __sqUnixGlobals_h */ 41