Mercurial > sdl-ios-xcode
diff src/video/gem/SDL_gemevents.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | c9b51268668f |
children | adc8ff3c9597 |
line wrap: on
line diff
--- a/src/video/gem/SDL_gemevents.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/gem/SDL_gemevents.c Tue Feb 07 06:59:48 2006 +0000 @@ -89,9 +89,9 @@ { int i; - memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard)); - memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard)); - memset(gem_currentascii, 0, sizeof(gem_currentascii)); + SDL_memset(gem_currentkeyboard, 0, sizeof(gem_currentkeyboard)); + SDL_memset(gem_previouskeyboard, 0, sizeof(gem_previouskeyboard)); + SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii)); /* Initialize keymap */ for ( i=0; i<sizeof(keymap); i++ ) @@ -134,7 +134,7 @@ int i; SDL_keysym keysym; - memset(gem_currentkeyboard,0,sizeof(gem_currentkeyboard)); + SDL_memset(gem_currentkeyboard,0,sizeof(gem_currentkeyboard)); prevkc = prevks = 0; for (;;) @@ -215,7 +215,7 @@ TranslateKey(i, gem_currentascii[i], &keysym, SDL_FALSE)); } - memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); + SDL_memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); /* Refresh window name ? */ if (GEM_refresh_name) {