comparison src/core/ngx_hash.h @ 597:9262f520ce21 release-0.3.20

nginx-0.3.20-RELEASE import *) Bugfix: in SSI handling. *) Bugfix: the ngx_http_memcached_module did not support the keys in the "/usr?args" form.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Jan 2006 15:26:57 +0000
parents 425af804d968
children 1e720b0be7ec
comparison
equal deleted inserted replaced
596:0381e6d3aa70 597:9262f520ce21
59 59
60 #define NGX_HASH_LARGE_ASIZE 16384 60 #define NGX_HASH_LARGE_ASIZE 16384
61 #define NGX_HASH_LARGE_HSIZE 10007 61 #define NGX_HASH_LARGE_HSIZE 10007
62 62
63 #define NGX_HASH_WILDCARD_KEY 1 63 #define NGX_HASH_WILDCARD_KEY 1
64 #define NGX_HASH_READONLY_KEY 2
64 65
65 66
66 typedef struct { 67 typedef struct {
67 ngx_uint_t hsize; 68 ngx_uint_t hsize;
68 69
112 ngx_int_t ngx_hash_keys_array_init(ngx_hash_keys_arrays_t *ha, ngx_uint_t type); 113 ngx_int_t ngx_hash_keys_array_init(ngx_hash_keys_arrays_t *ha, ngx_uint_t type);
113 ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key, 114 ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key,
114 void *value, ngx_uint_t flags); 115 void *value, ngx_uint_t flags);
115 116
116 117
118 #define ngx_hash0(key, c) key + c
117 ngx_int_t ngx_hash0_init(ngx_hash0_t *hash, ngx_pool_t *pool, void *names, 119 ngx_int_t ngx_hash0_init(ngx_hash0_t *hash, ngx_pool_t *pool, void *names,
118 ngx_uint_t nelts); 120 ngx_uint_t nelts);
119 121
120 122
121 #endif /* _NGX_HASH_H_INCLUDED_ */ 123 #endif /* _NGX_HASH_H_INCLUDED_ */