Mercurial > hg > nginx-vendor-0-5
comparison src/core/ngx_hash.h @ 146:36af50a5582d NGINX_0_3_20
nginx 0.3.20
*) Bugfix: in SSI handling.
*) Bugfix: the ngx_http_memcached_module did not support the keys in
the "/usr?args" form.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 11 Jan 2006 00:00:00 +0300 |
parents | 84910468f6de |
children | e6da4931e0e0 |
comparison
equal
deleted
inserted
replaced
145:85a84f8da62b | 146:36af50a5582d |
---|---|
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_ */ |