diff src/video/Xext/Xxf86dga/XF86DGA.c @ 1338:604d73db6802

Removed uses of stdlib.h and string.h
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 09:29:18 +0000
parents 3692456e7b0f
children 19418e4422cb
line wrap: on
line diff
--- a/src/video/Xext/Xxf86dga/XF86DGA.c	Tue Feb 07 07:03:29 2006 +0000
+++ b/src/video/Xext/Xxf86dga/XF86DGA.c	Tue Feb 07 09:29:18 2006 +0000
@@ -407,12 +407,12 @@
     MapPtr *old;
 
     old = mapList;
-    mapList = SDL_realloc(mapList, sizeof(MapPtr) * (numMaps + 1));
+    mapList = realloc(mapList, sizeof(MapPtr) * (numMaps + 1));
     if (!mapList) {
 	mapList = old;
 	return NULL;
     }
-    mapList[numMaps] = SDL_malloc(sizeof(MapRec));
+    mapList[numMaps] = malloc(sizeof(MapRec));
     if (!mapList[numMaps])
 	return NULL;
     return mapList[numMaps++];
@@ -424,12 +424,12 @@
     ScrPtr *old;
 
     old = scrList;
-    scrList = SDL_realloc(scrList, sizeof(ScrPtr) * (numScrs + 1));
+    scrList = realloc(scrList, sizeof(ScrPtr) * (numScrs + 1));
     if (!scrList) {
 	scrList = old;
 	return NULL;
     }
-    scrList[numScrs] = SDL_malloc(sizeof(ScrRec));
+    scrList[numScrs] = malloc(sizeof(ScrRec));
     if (!scrList[numScrs])
 	return NULL;
     return scrList[numScrs++];