Mercurial > sdl-ios-xcode
changeset 1751:a11c13151840
Declare volatile variables modified by interrupt routines
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Sun, 30 Apr 2006 21:01:25 +0000 |
parents | 025e1a273f47 |
children | 97f20f2a1d85 |
files | src/audio/mint/SDL_mintaudio.h src/video/ataricommon/SDL_ikbdinterrupt_s.h src/video/ataricommon/SDL_xbiosinterrupt_s.h |
diffstat | 3 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audio/mint/SDL_mintaudio.h Sun Apr 30 16:53:40 2006 +0000 +++ b/src/audio/mint/SDL_mintaudio.h Sun Apr 30 21:01:25 2006 +0000 @@ -119,10 +119,10 @@ 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;
--- a/src/video/ataricommon/SDL_ikbdinterrupt_s.h Sun Apr 30 16:53:40 2006 +0000 +++ b/src/video/ataricommon/SDL_ikbdinterrupt_s.h Sun Apr 30 21:01:25 2006 +0000 @@ -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 */
--- a/src/video/ataricommon/SDL_xbiosinterrupt_s.h Sun Apr 30 16:53:40 2006 +0000 +++ b/src/video/ataricommon/SDL_xbiosinterrupt_s.h Sun Apr 30 21:01:25 2006 +0000 @@ -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 */