comparison src/core/ngx_hash.h @ 392:34fb3a573548 NGINX_0_7_8

nginx 0.7.8 *) Feature: the ngx_http_xslt_module. *) Feature: the "$arg_..." variables. *) Feature: Solaris directio support. Thanks to Ivan Debnar. *) Bugfix: now if FastCGI server sends a "Location" header line without status line, then nginx uses 302 status code. Thanks to Maxim Dounin.
author Igor Sysoev <http://sysoev.ru>
date Mon, 04 Aug 2008 00:00:00 +0400
parents 429900ca25ee
children 8246d8a2c2be
comparison
equal deleted inserted replaced
391:4ec606a899d3 392:34fb3a573548
108 ngx_uint_t nelts); 108 ngx_uint_t nelts);
109 109
110 #define ngx_hash(key, c) ((ngx_uint_t) key * 31 + c) 110 #define ngx_hash(key, c) ((ngx_uint_t) key * 31 + c)
111 ngx_uint_t ngx_hash_key(u_char *data, size_t len); 111 ngx_uint_t ngx_hash_key(u_char *data, size_t len);
112 ngx_uint_t ngx_hash_key_lc(u_char *data, size_t len); 112 ngx_uint_t ngx_hash_key_lc(u_char *data, size_t len);
113 ngx_uint_t ngx_hash_strlow(u_char *dst, u_char *src, size_t n);
114
113 115
114 ngx_int_t ngx_hash_keys_array_init(ngx_hash_keys_arrays_t *ha, ngx_uint_t type); 116 ngx_int_t ngx_hash_keys_array_init(ngx_hash_keys_arrays_t *ha, ngx_uint_t type);
115 ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key, 117 ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key,
116 void *value, ngx_uint_t flags); 118 void *value, ngx_uint_t flags);
117 119