comparison src/stdlib/SDL_malloc.c @ 1465:8dfa9a6d69a5

Updated WinCE support by Dmitry (with some tweaks) Converted the disk audio driver to SDL_RWops for portability
author Sam Lantinga <slouken@libsdl.org>
date Sat, 04 Mar 2006 08:24:35 +0000
parents 84de7511f79f
children 782fd950bd46 c121d94672cb 95ecf165f113
comparison
equal deleted inserted replaced
1464:af30090c0330 1465:8dfa9a6d69a5
25 25
26 #include "SDL_stdinc.h" 26 #include "SDL_stdinc.h"
27 27
28 #ifndef HAVE_MALLOC 28 #ifndef HAVE_MALLOC
29 29
30 #define LACKS_SYS_TYPES_H
30 #define LACKS_STDIO_H 31 #define LACKS_STDIO_H
31 #define LACKS_STRINGS_H 32 #define LACKS_STRINGS_H
32 #define LACKS_STRING_H 33 #define LACKS_STRING_H
33 #define LACKS_STDLIB_H 34 #define LACKS_STDLIB_H
34 #define ABORT 35 #define ABORT
35 #define memset SDL_memset
36 #define memcpy SDL_memcpy
37 #define malloc SDL_malloc
38 #define calloc SDL_calloc
39 #define realloc SDL_realloc
40 #define free SDL_free
41 36
42 /* 37 /*
43 This is a version (aka dlmalloc) of malloc/free/realloc written by 38 This is a version (aka dlmalloc) of malloc/free/realloc written by
44 Doug Lea and released to the public domain, as explained at 39 Doug Lea and released to the public domain, as explained at
45 http://creativecommons.org/licenses/publicdomain. Send questions, 40 http://creativecommons.org/licenses/publicdomain. Send questions,
494 #define LACKS_SYS_MMAN_H 489 #define LACKS_SYS_MMAN_H
495 #define LACKS_STRING_H 490 #define LACKS_STRING_H
496 #define LACKS_STRINGS_H 491 #define LACKS_STRINGS_H
497 #define LACKS_SYS_TYPES_H 492 #define LACKS_SYS_TYPES_H
498 #define LACKS_ERRNO_H 493 #define LACKS_ERRNO_H
494 #define LACKS_FCNTL_H
499 #define MALLOC_FAILURE_ACTION 495 #define MALLOC_FAILURE_ACTION
500 #define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */ 496 #define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */
501 #endif /* WIN32 */ 497 #endif /* WIN32 */
502 498
503 #if defined(DARWIN) || defined(_DARWIN) 499 #if defined(DARWIN) || defined(_DARWIN)
611 #endif /* NO_MALLINFO */ 607 #endif /* NO_MALLINFO */
612 #ifndef MALLINFO_FIELD_TYPE 608 #ifndef MALLINFO_FIELD_TYPE
613 #define MALLINFO_FIELD_TYPE size_t 609 #define MALLINFO_FIELD_TYPE size_t
614 #endif /* MALLINFO_FIELD_TYPE */ 610 #endif /* MALLINFO_FIELD_TYPE */
615 611
612 #define memset SDL_memset
613 #define memcpy SDL_memcpy
614 #define malloc SDL_malloc
615 #define calloc SDL_calloc
616 #define realloc SDL_realloc
617 #define free SDL_free
618
616 /* 619 /*
617 mallopt tuning options. SVID/XPG defines four standard parameter 620 mallopt tuning options. SVID/XPG defines four standard parameter
618 numbers for mallopt, normally defined in malloc.h. None of these 621 numbers for mallopt, normally defined in malloc.h. None of these
619 are used in this malloc, so setting them has no effect. But this 622 are used in this malloc, so setting them has no effect. But this
620 malloc does support the following options. 623 malloc does support the following options.