diff src/events/SDL_keyboard.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 450721ad5436
children c71e05b4dc2e
line wrap: on
line diff
--- a/src/events/SDL_keyboard.c	Mon Feb 06 17:28:04 2006 +0000
+++ b/src/events/SDL_keyboard.c	Tue Feb 07 06:59:48 2006 +0000
@@ -60,8 +60,8 @@
 
 	/* Initialize the tables */
 	SDL_ModState = KMOD_NONE;
-	memset(keynames, 0, sizeof(keynames));
-	memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
+	SDL_memset(keynames, 0, sizeof(keynames));
+	SDL_memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
 	video->InitOSKeymap(this);
 
 	SDL_EnableKeyRepeat(0, 0);
@@ -319,7 +319,7 @@
 	SDL_keysym keysym;
 	SDLKey key;
 
-	memset(&keysym, 0, (sizeof keysym));
+	SDL_memset(&keysym, 0, (sizeof keysym));
 	for ( key=SDLK_FIRST; key<SDLK_LAST; ++key ) {
 		if ( SDL_KeyState[key] == SDL_PRESSED ) {
 			keysym.sym = key;
@@ -376,7 +376,7 @@
 	int posted, repeatable;
 	Uint16 modstate;
 
-	memset(&event, 0, sizeof(event));
+	SDL_memset(&event, 0, sizeof(event));
 
 #if 0
 printf("The '%s' key has been %s\n", SDL_GetKeyName(keysym->sym),