comparison src/core/ngx_string.h @ 320:1e9e2c5e7c14 NGINX_0_5_30

nginx 0.5.30 *) Feature: the $args variable can be set with the "set" directive. *) Feature: the $is_args variable. *) Bugfix: if a client has closed connection to mail proxy then nginx might not close connection to backend. *) Bugfix: now nginx escapes space in $memcached_key variable. *) Bugfix: a segmentation fault might occur in worker process when the HTTPS protocol was used in the "proxy_pass" directive. *) Bugfix: the perl $$ variable value in ngx_http_perl_module was equal to the master process identification number. *) Bugfix: fix building on Solaris/amd64 by Sun Studio 11 and early versions; bug appeared in 0.5.29.
author Igor Sysoev <http://sysoev.ru>
date Mon, 30 Jul 2007 00:00:00 +0400
parents 3021f899881a
children 7cf404023f50
comparison
equal deleted inserted replaced
319:10d5a311cc5e 320:1e9e2c5e7c14
148 uint32_t ngx_utf_decode(u_char **p, size_t n); 148 uint32_t ngx_utf_decode(u_char **p, size_t n);
149 size_t ngx_utf_length(u_char *p, size_t n); 149 size_t ngx_utf_length(u_char *p, size_t n);
150 u_char *ngx_utf_cpystrn(u_char *dst, u_char *src, size_t n); 150 u_char *ngx_utf_cpystrn(u_char *dst, u_char *src, size_t n);
151 151
152 152
153 #define NGX_ESCAPE_URI 0 153 #define NGX_ESCAPE_URI 0
154 #define NGX_ESCAPE_ARGS 1 154 #define NGX_ESCAPE_ARGS 1
155 #define NGX_ESCAPE_HTML 2 155 #define NGX_ESCAPE_HTML 2
156 #define NGX_ESCAPE_REFRESH 3 156 #define NGX_ESCAPE_REFRESH 3
157 #define NGX_ESCAPE_MEMCACHED 4
157 158
158 #define NGX_UNESCAPE_URI 1 159 #define NGX_UNESCAPE_URI 1
159 160
160 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size, 161 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size,
161 ngx_uint_t type); 162 ngx_uint_t type);
162 void ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type); 163 void ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type);
163 164
164 165
165 void ngx_sort(void *base, size_t n, size_t size, 166 void ngx_sort(void *base, size_t n, size_t size,
166 int (*cmp)(const void *, const void *)); 167 int (*cmp)(const void *, const void *));
167 #define ngx_qsort qsort 168 #define ngx_qsort qsort
168 169
169 170
170 #define ngx_value_helper(n) #n 171 #define ngx_value_helper(n) #n
171 #define ngx_value(n) ngx_value_helper(n) 172 #define ngx_value(n) ngx_value_helper(n)
172 173
173 174
174 #endif /* _NGX_STRING_H_INCLUDED_ */ 175 #endif /* _NGX_STRING_H_INCLUDED_ */