comparison src/video/ataricommon/SDL_atarimxalloc.c @ 1668:4da1ee79c9af SDL-1.3

more tweaking indent options
author Sam Lantinga <slouken@libsdl.org>
date Mon, 29 May 2006 04:04:35 +0000
parents 782fd950bd46
children
comparison
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
36 static int atari_mxalloc_avail = -1; 36 static int atari_mxalloc_avail = -1;
37 37
38 /*--- Functions ---*/ 38 /*--- Functions ---*/
39 39
40 void * 40 void *
41 Atari_SysMalloc (Uint32 size, Uint16 alloc_type) 41 Atari_SysMalloc(Uint32 size, Uint16 alloc_type)
42 { 42 {
43 /* Test if Mxalloc() available */ 43 /* Test if Mxalloc() available */
44 if (atari_mxalloc_avail < 0) { 44 if (atari_mxalloc_avail < 0) {
45 atari_mxalloc_avail = 45 atari_mxalloc_avail =
46 ((Sversion () & 0xFF) >= 0x01) | (Sversion () >= 0x1900); 46 ((Sversion() & 0xFF) >= 0x01) | (Sversion() >= 0x1900);
47 } 47 }
48 48
49 if (atari_mxalloc_avail) { 49 if (atari_mxalloc_avail) {
50 return (void *) Mxalloc (size, alloc_type); 50 return (void *) Mxalloc(size, alloc_type);
51 } else { 51 } else {
52 return (void *) Malloc (size); 52 return (void *) Malloc(size);
53 } 53 }
54 } 54 }
55 55
56 /* vi: set ts=4 sw=4 expandtab: */ 56 /* vi: set ts=4 sw=4 expandtab: */