diff options
Diffstat (limited to 'src/core/ngx_hash.h')
-rw-r--r-- | src/core/ngx_hash.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/ngx_hash.h b/src/core/ngx_hash.h index ad7343807..da8b7e0b2 100644 --- a/src/core/ngx_hash.h +++ b/src/core/ngx_hash.h @@ -94,6 +94,7 @@ typedef struct { ngx_uint_t hash; ngx_str_t key; ngx_str_t value; + u_char *lowcase_key; } ngx_table_elt_t; @@ -106,7 +107,7 @@ ngx_int_t ngx_hash_init(ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_int_t ngx_hash_wildcard_init(ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_uint_t nelts); -#define ngx_hash(key, c) key * 31 + c +#define ngx_hash(key, c) ((ngx_uint_t) key * 31 + c) ngx_uint_t ngx_hash_key(u_char *data, size_t len); ngx_uint_t ngx_hash_key_lc(u_char *data, size_t len); @@ -115,9 +116,4 @@ ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key, void *value, ngx_uint_t flags); -#define ngx_hash0(key, c) key + c -ngx_int_t ngx_hash0_init(ngx_hash0_t *hash, ngx_pool_t *pool, void *names, - ngx_uint_t nelts); - - #endif /* _NGX_HASH_H_INCLUDED_ */ |