diff options
Diffstat (limited to 'gif_hash.h')
-rw-r--r-- | gif_hash.h | 38 |
1 files changed, 9 insertions, 29 deletions
@@ -1,36 +1,14 @@ /****************************************************************************** -* Declarations, global to other of the GIF-HASH.C module. * -* * -* Written by Gershon Elber, Jun 1989 * -******************************************************************************* -* History: * -* 14 Jun 89 - Version 1.0 by Gershon Elber. * + +gif_hash.h - magfic constants and declarations for GIF LZW + ******************************************************************************/ #ifndef _GIF_HASH_H_ #define _GIF_HASH_H_ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -/* Find a thirty-two bit int type */ -#ifdef HAVE_STDINT_H -#include <stdint.h> -#endif -#ifdef HAVE_INTTYPES_H -#include <inttypes.h> -#endif -#ifdef HAVE_SYS_TYPES_H -#include <sys/types.h> -#endif -#ifdef HAVE_UNISTD_H #include <unistd.h> -#endif - -#ifdef HAVE_BASETSD_H -#include <basetsd.h> -#endif +#include <stdint.h> #define HT_SIZE 8192 /* 12bits = 4096 or twice as big! */ #define HT_KEY_MASK 0x1FFF /* 13bits keys */ @@ -48,12 +26,14 @@ #define HT_PUT_CODE(l) (l & 0x0FFF) typedef struct GifHashTableType { - UINT32 HTable[HT_SIZE]; + uint32_t HTable[HT_SIZE]; } GifHashTableType; GifHashTableType *_InitHashTable(void); void _ClearHashTable(GifHashTableType *HashTable); -void _InsertHashTable(GifHashTableType *HashTable, UINT32 Key, int Code); -int _ExistsHashTable(GifHashTableType *HashTable, UINT32 Key); +void _InsertHashTable(GifHashTableType *HashTable, uint32_t Key, int Code); +int _ExistsHashTable(GifHashTableType *HashTable, uint32_t Key); #endif /* _GIF_HASH_H_ */ + +/* end */ |