comparison src/gifalloc.c @ 155:43dd3413c7c7 r20-3b4

Import from CVS: tag r20-3b4
author cvs
date Mon, 13 Aug 2007 09:39:39 +0200
parents 376386a54a3c
children 850242ba4a81
comparison
equal deleted inserted replaced
154:94141801dd7e 155:43dd3413c7c7
9 * GIF construction tools * 9 * GIF construction tools *
10 ****************************************************************************** 10 ******************************************************************************
11 * History: * 11 * History: *
12 * 15 Sep 92 - Version 1.0 by Eric Raymond. * 12 * 15 Sep 92 - Version 1.0 by Eric Raymond. *
13 *****************************************************************************/ 13 *****************************************************************************/
14 #include <stdio.h>
15 #include <string.h>
16 #include <stdlib.h>
17 14
18 #ifdef emacs 15 #ifdef emacs
19 #include <config.h> 16 #include <config.h>
20 17
21 void *xmalloc (unsigned int size); 18 void *xmalloc (unsigned int size);
26 #else 23 #else
27 void *xfree (void *); 24 void *xfree (void *);
28 #endif 25 #endif
29 #endif 26 #endif
30 27
28 #include <stdio.h>
29 #include <string.h>
30 #include <stdlib.h>
31
32 #ifdef emacs
33 #include <config.h>
34
35 void *xmalloc (unsigned int size);
36 void *xrealloc (void *ptr, unsigned int size);
37 #ifdef ERROR_CHECK_MALLOC
38 void *xfree_1 (void *);
39 #define xfree xfree_1
40 #else
41 void *xfree (void *);
42 #endif
43 #endif
31 #include "gif_lib.h" 44 #include "gif_lib.h"
32 45
33 #ifndef MAX 46 #ifndef MAX
34 #define MAX(x, y) (((x) > (y)) ? (x) : (y)) 47 #define MAX(x, y) (((x) > (y)) ? (x) : (y))
35 #endif 48 #endif