diff src/video/x11/SDL_x11events.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 27ddb06a0bca
children 604d73db6802
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c	Mon Feb 06 17:28:04 2006 +0000
+++ b/src/video/x11/SDL_x11events.c	Tue Feb 07 06:59:48 2006 +0000
@@ -274,7 +274,7 @@
 	int posted;
 	XEvent xevent;
 
-	memset(&xevent, '\0', sizeof (XEvent));  /* valgrind fix. --ryan. */
+	SDL_memset(&xevent, '\0', sizeof (XEvent));  /* valgrind fix. --ryan. */
 	pXNextEvent(SDL_Display, &xevent);
 
 	posted = 0;
@@ -967,7 +967,7 @@
 		return 0;
 	}
 
-	memset(&xkey, 0, sizeof(xkey));
+	SDL_memset(&xkey, 0, sizeof(xkey));
 	xkey.display = SDL_Display;
 
 	xsym = keysym;		/* last resort if not found */
@@ -1048,7 +1048,7 @@
 	}
 
 	/* Zero the new keyboard state and generate it */
-	memset(kstate, 0, SDLK_LAST);
+	SDL_memset(kstate, 0, SDLK_LAST);
 	/*
 	 * An obvious optimisation is to check entire longwords at a time in
 	 * both loops, but we can't be sure the arrays are aligned so it's not