comparison src/dgif_lib.c @ 187:b405438285a2 r20-3b20

Import from CVS: tag r20-3b20
author cvs
date Mon, 13 Aug 2007 09:56:28 +0200
parents 3d6bfa290dbd
children 850242ba4a81
comparison
equal deleted inserted replaced
186:24ac94803b48 187:b405438285a2
12 * 3 Sep 90 - Version 1.1 by Gershon Elber (Support for Gif89, Unique names). * 12 * 3 Sep 90 - Version 1.1 by Gershon Elber (Support for Gif89, Unique names). *
13 ******************************************************************************/ 13 ******************************************************************************/
14 14
15 #ifdef emacs 15 #ifdef emacs
16 #include <config.h> 16 #include <config.h>
17 #endif /* emacs */
18
19 #ifdef __MSDOS__
20 #include <io.h>
21 #include <alloc.h>
22 #include <stdlib.h>
23 #include <sys\stat.h>
24 #else
25 #include <sys/types.h>
26 #include <sys/stat.h>
27 #endif /* __MSDOS__ */
28
29 #include <fcntl.h>
30 #include <stdio.h>
31 #include <string.h>
32
33 #include "gif_lib.h"
34 #ifndef emacs
35 #include "gif_hash.h"
36 #endif
37
38 #ifdef emacs
17 void *xmalloc (size_t size); 39 void *xmalloc (size_t size);
18 void *xrealloc (void *ptr, size_t size); 40 void *xrealloc (void *ptr, size_t size);
19 #ifdef ERROR_CHECK_MALLOC 41 #ifdef ERROR_CHECK_MALLOC
20 void *xfree_1 (void *); 42 void *xfree_1 (void *);
21 #define xfree xfree_1 43 #define xfree xfree_1
22 #else 44 #else
23 void *xfree (void *); 45 void *xfree (void *);
24 #endif 46 #endif
25 #endif /* emacs */ 47 #endif /* emacs */
26 48
27 #ifdef __MSDOS__
28 #include <io.h>
29 #include <alloc.h>
30 #include <stdlib.h>
31 #include <sys\stat.h>
32 #else
33 #include <sys/types.h>
34 #include <sys/stat.h>
35 #endif /* __MSDOS__ */
36
37 #include <fcntl.h>
38 #include <stdio.h>
39 #include <string.h>
40
41 #include "gif_lib.h"
42 #ifndef emacs
43 #include "gif_hash.h"
44 #endif
45 49
46 #define PROGRAM_NAME "GIF_LIBRARY" 50 #define PROGRAM_NAME "GIF_LIBRARY"
47 51
48 #define COMMENT_EXT_FUNC_CODE 0xfe /* Extension function code for comment. */ 52 #define COMMENT_EXT_FUNC_CODE 0xfe /* Extension function code for comment. */
49 #define GIF_STAMP "GIFVER" /* First chars in file - GIF stamp. */ 53 #define GIF_STAMP "GIFVER" /* First chars in file - GIF stamp. */