Go to the source code of this file.
|
| static FT_ULong | hash_str_lookup (FT_Hashkey *key) |
| |
| static FT_ULong | hash_num_lookup (FT_Hashkey *key) |
| |
| 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_Hashnode * | hash_bucket (FT_Hashkey key, FT_Hash hash) |
| |
| static FT_Error | hash_rehash (FT_Hash hash, FT_Memory memory) |
| |
| static FT_Error | hash_init (FT_Hash hash, FT_Bool is_num, FT_Memory memory) |
| |
| FT_Error | ft_hash_str_init (FT_Hash hash, FT_Memory memory) |
| |
| FT_Error | ft_hash_num_init (FT_Hash hash, FT_Memory memory) |
| |
| void | ft_hash_str_free (FT_Hash hash, FT_Memory memory) |
| |
| static FT_Error | hash_insert (FT_Hashkey key, size_t data, 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_Error | ft_hash_num_insert (FT_Int num, size_t data, FT_Hash hash, FT_Memory memory) |
| |
| static size_t * | hash_lookup (FT_Hashkey key, FT_Hash hash) |
| |
| size_t * | ft_hash_str_lookup (const char *key, FT_Hash hash) |
| |
| size_t * | ft_hash_num_lookup (FT_Int num, FT_Hash hash) |
| |
◆ INITIAL_HT_SIZE
◆ ft_hash_num_init()
Definition at line 203 of file fthash.c.
205 {
207 }
static FT_Error hash_init(FT_Hash hash, FT_Bool is_num, FT_Memory memory)
static char memory[1024 *256]
Referenced by parse_subrs().
◆ ft_hash_num_insert()
Definition at line 286 of file fthash.c.
290 {
292
293
295
297 }
static FT_Error hash_insert(FT_Hashkey key, size_t data, FT_Hash hash, FT_Memory memory)
FT_BEGIN_HEADER union FT_Hashkey_ FT_Hashkey
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Referenced by parse_subrs().
◆ ft_hash_num_lookup()
◆ ft_hash_str_free()
Definition at line 211 of file fthash.c.
213 {
215 {
219
220
221 for (
i = 0;
i < sz;
i++, bp++ )
223
225 }
226 }
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
Referenced by bdf_free_font().
◆ ft_hash_str_init()
◆ ft_hash_str_insert()
◆ ft_hash_str_lookup()
◆ hash_bucket()
Definition at line 105 of file fthash.c.
107 {
111
112
114
115 ndp = bp + (
res %
hash->size );
116 while ( *ndp )
117 {
118 if ( (
hash->compare)( &(*ndp)->key, &
key ) )
119 break;
120
121 ndp--;
122 if ( ndp < bp )
123 ndp = bp + (
hash->size - 1 );
124 }
125
126 return ndp;
127 }
◆ hash_init()
Definition at line 165 of file fthash.c.
168 {
171
172
174 hash->limit = sz / 3;
176
178 {
181 }
182 else
183 {
186 }
187
189
191 }
static BOOL is_num(WCHAR val)
static FT_ULong hash_num_lookup(FT_Hashkey *key)
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)
#define FT_MEM_NEW_ARRAY(ptr, count)
Referenced by BCryptCreateHash(), ft_hash_num_init(), and ft_hash_str_init().
◆ hash_insert()
Definition at line 233 of file fthash.c.
237 {
241
242
243 nn = *bp;
244 if ( !nn )
245 {
248 *bp = nn;
249
252
254 {
258 }
259
261 }
262 else
264
267 }
static FT_Error hash_rehash(FT_Hash hash, FT_Memory memory)
Referenced by ft_hash_num_insert(), and ft_hash_str_insert().
◆ hash_lookup()
◆ hash_num_compare()
Definition at line 94 of file fthash.c.
96 {
97 if (
a->num ==
b->num )
98 return 1;
99
100 return 0;
101 }
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
Referenced by hash_init().
◆ hash_num_lookup()
◆ hash_rehash()
Definition at line 131 of file fthash.c.
133 {
137
140
141
144
147
148 for (
i = 0, bp = obp;
i < sz;
i++, bp++ )
149 {
150 if ( *bp )
151 {
153 *nbp = *bp;
154 }
155 }
156
158
161 }
#define FT_NEW_ARRAY(ptr, count)
Referenced by hash_insert().
◆ hash_str_compare()
Definition at line 82 of file fthash.c.
84 {
85 if (
a->str[0] ==
b->str[0] &&
87 return 1;
88
89 return 0;
90 }
Referenced by hash_init().
◆ hash_str_lookup()
Definition at line 50 of file fthash.c.
51 {
52 const char* kp =
key->str;
54
55
56
57 while ( *kp )
59
61 }
Referenced by hash_init().