43#include FT_INTERNAL_HASH_H
44#include FT_INTERNAL_MEMORY_H
47#define INITIAL_HT_SIZE 241
53 const char* kp =
key->str;
86 if (
a->str[0] ==
b->str[0] &&
98 if (
a->num ==
b->num )
116 ndp = bp + (
res %
hash->size );
119 if ( (
hash->compare)( &(*ndp)->key, &
key ) )
124 ndp = bp + (
hash->size - 1 );
149 for (
i = 0, bp = obp;
i < sz;
i++, bp++ )
175 hash->limit = sz / 3;
222 for (
i = 0;
i < sz;
i++, bp++ )
308 return (*np) ? &(*np)->data
static BOOL is_num(WCHAR val)
size_t * ft_hash_num_lookup(FT_Int num, FT_Hash hash)
static FT_Error hash_insert(FT_Hashkey key, size_t data, FT_Hash hash, FT_Memory memory)
void ft_hash_str_free(FT_Hash hash, FT_Memory memory)
static FT_ULong hash_num_lookup(FT_Hashkey *key)
static FT_Error hash_rehash(FT_Hash hash, FT_Memory memory)
FT_Error ft_hash_num_init(FT_Hash hash, FT_Memory memory)
static FT_Error hash_init(FT_Hash hash, FT_Bool is_num, FT_Memory memory)
size_t * ft_hash_str_lookup(const char *key, FT_Hash hash)
static size_t * hash_lookup(FT_Hashkey key, FT_Hash hash)
FT_Error ft_hash_num_insert(FT_Int num, size_t data, FT_Hash hash, FT_Memory memory)
static FT_Bool hash_str_compare(FT_Hashkey *a, FT_Hashkey *b)
static FT_Bool hash_num_compare(FT_Hashkey *a, FT_Hashkey *b)
static FT_ULong hash_str_lookup(FT_Hashkey *key)
FT_Error ft_hash_str_init(FT_Hash hash, FT_Memory memory)
FT_Error ft_hash_str_insert(const char *key, size_t data, FT_Hash hash, FT_Memory memory)
FT_BEGIN_HEADER union FT_Hashkey_ FT_Hashkey
#define FT_NEW_ARRAY(ptr, count)
#define FT_MEM_NEW_ARRAY(ptr, count)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static char memory[1024 *256]