Declare volatile variables modified by interrupt routines

This commit is contained in:
Patrice Mandin
2006-04-30 21:01:25 +00:00
parent fdb9a7d971
commit 7aa243af00
3 changed files with 14 additions and 14 deletions

View File

@@ -119,10 +119,10 @@ enum {
extern SDL_AudioDevice *SDL_MintAudio_device;
extern Uint8 *SDL_MintAudio_audiobuf[2]; /* Pointers to buffers */
extern unsigned long SDL_MintAudio_audiosize; /* Length of audio buffer=spec->size */
extern unsigned short SDL_MintAudio_numbuf; /* Buffer to play */
extern unsigned short SDL_MintAudio_mutex;
extern volatile unsigned short SDL_MintAudio_numbuf; /* Buffer to play */
extern volatile unsigned short SDL_MintAudio_mutex;
extern cookie_stfa_t *SDL_MintAudio_stfa;
extern unsigned long SDL_MintAudio_clocktics;
extern volatile unsigned long SDL_MintAudio_clocktics;
/* MiNT thread variables */
extern SDL_bool SDL_MintAudio_mint_present;

View File

@@ -44,14 +44,14 @@
/* Variables */
extern Uint8 SDL_AtariIkbd_keyboard[128]; /* Keyboard table */
extern Uint16 SDL_AtariIkbd_mouseb; /* Mouse on port 0, buttons */
extern Sint16 SDL_AtariIkbd_mousex; /* Mouse X relative motion */
extern Sint16 SDL_AtariIkbd_mousey; /* Mouse Y relative motion */
extern Uint16 SDL_AtariIkbd_joystick; /* Joystick on port 1 */
extern volatile Uint8 SDL_AtariIkbd_keyboard[128]; /* Keyboard table */
extern volatile Uint16 SDL_AtariIkbd_mouseb; /* Mouse on port 0, buttons */
extern volatile Sint16 SDL_AtariIkbd_mousex; /* Mouse X relative motion */
extern volatile Sint16 SDL_AtariIkbd_mousey; /* Mouse Y relative motion */
extern volatile Uint16 SDL_AtariIkbd_joystick; /* Joystick on port 1 */
extern Uint16 SDL_AtariIkbd_enabled; /* For joystick driver to know
if this is usable */
/* For joystick driver to know if this is usable */
extern Uint16 SDL_AtariIkbd_enabled;
/* Functions */

View File

@@ -36,10 +36,10 @@
/* Variables */
extern Uint16 SDL_AtariXbios_mouseb; /* buttons */
extern Sint16 SDL_AtariXbios_mousex; /* X relative motion */
extern Sint16 SDL_AtariXbios_mousey; /* Y relative motion */
extern Uint16 SDL_AtariXbios_joystick; /* Joystick */
extern volatile Uint16 SDL_AtariXbios_mouseb; /* buttons */
extern volatile Sint16 SDL_AtariXbios_mousex; /* X relative motion */
extern volatile Sint16 SDL_AtariXbios_mousey; /* Y relative motion */
extern volatile Uint16 SDL_AtariXbios_joystick; /* Joystick */
/* Functions */