Commit 39b3be9d authored by Patrice Mandin's avatar Patrice Mandin

Declare volatile variables modified by interrupt routines

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401709
parent d257f80e
...@@ -119,10 +119,10 @@ enum { ...@@ -119,10 +119,10 @@ enum {
extern SDL_AudioDevice *SDL_MintAudio_device; extern SDL_AudioDevice *SDL_MintAudio_device;
extern Uint8 *SDL_MintAudio_audiobuf[2]; /* Pointers to buffers */ extern Uint8 *SDL_MintAudio_audiobuf[2]; /* Pointers to buffers */
extern unsigned long SDL_MintAudio_audiosize; /* Length of audio buffer=spec->size */ extern unsigned long SDL_MintAudio_audiosize; /* Length of audio buffer=spec->size */
extern unsigned short SDL_MintAudio_numbuf; /* Buffer to play */ extern volatile unsigned short SDL_MintAudio_numbuf; /* Buffer to play */
extern unsigned short SDL_MintAudio_mutex; extern volatile unsigned short SDL_MintAudio_mutex;
extern cookie_stfa_t *SDL_MintAudio_stfa; extern cookie_stfa_t *SDL_MintAudio_stfa;
extern unsigned long SDL_MintAudio_clocktics; extern volatile unsigned long SDL_MintAudio_clocktics;
/* MiNT thread variables */ /* MiNT thread variables */
extern SDL_bool SDL_MintAudio_mint_present; extern SDL_bool SDL_MintAudio_mint_present;
......
...@@ -44,14 +44,14 @@ ...@@ -44,14 +44,14 @@
/* Variables */ /* Variables */
extern Uint8 SDL_AtariIkbd_keyboard[128]; /* Keyboard table */ extern volatile Uint8 SDL_AtariIkbd_keyboard[128]; /* Keyboard table */
extern Uint16 SDL_AtariIkbd_mouseb; /* Mouse on port 0, buttons */ extern volatile Uint16 SDL_AtariIkbd_mouseb; /* Mouse on port 0, buttons */
extern Sint16 SDL_AtariIkbd_mousex; /* Mouse X relative motion */ extern volatile Sint16 SDL_AtariIkbd_mousex; /* Mouse X relative motion */
extern Sint16 SDL_AtariIkbd_mousey; /* Mouse Y relative motion */ extern volatile Sint16 SDL_AtariIkbd_mousey; /* Mouse Y relative motion */
extern Uint16 SDL_AtariIkbd_joystick; /* Joystick on port 1 */ extern volatile Uint16 SDL_AtariIkbd_joystick; /* Joystick on port 1 */
extern Uint16 SDL_AtariIkbd_enabled; /* For joystick driver to know /* For joystick driver to know if this is usable */
if this is usable */ extern Uint16 SDL_AtariIkbd_enabled;
/* Functions */ /* Functions */
......
...@@ -36,10 +36,10 @@ ...@@ -36,10 +36,10 @@
/* Variables */ /* Variables */
extern Uint16 SDL_AtariXbios_mouseb; /* buttons */ extern volatile Uint16 SDL_AtariXbios_mouseb; /* buttons */
extern Sint16 SDL_AtariXbios_mousex; /* X relative motion */ extern volatile Sint16 SDL_AtariXbios_mousex; /* X relative motion */
extern Sint16 SDL_AtariXbios_mousey; /* Y relative motion */ extern volatile Sint16 SDL_AtariXbios_mousey; /* Y relative motion */
extern Uint16 SDL_AtariXbios_joystick; /* Joystick */ extern volatile Uint16 SDL_AtariXbios_joystick; /* Joystick */
/* Functions */ /* Functions */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment