comparison src/core/ngx_string.h @ 302:9b7db0df50f0 NGINX_0_5_21

nginx 0.5.21 *) Bugfix: if server has more than about ten locations, then regex locations might be choosen not in that order as they were specified. *) Bugfix: a worker process may got caught in an endless loop on 64-bit platform, if the 33-rd or next in succession backend has failed. Thanks to Anton Povarov. *) Bugfix: a bus error might occur on Solaris/sparc64 if the PCRE library was used. Thanks to Andrei Nigmatulin. *) Bugfix: in the HTTPS protocol in the "proxy_pass" directive.
author Igor Sysoev <http://sysoev.ru>
date Mon, 28 May 2007 00:00:00 +0400
parents 27d9d1f26b38
children 95183808f549
comparison
equal deleted inserted replaced
301:a025840de07d 302:9b7db0df50f0
134 void ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src); 134 void ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src);
135 ngx_int_t ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src); 135 ngx_int_t ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src);
136 136
137 uint32_t ngx_utf_decode(u_char **p, size_t n); 137 uint32_t ngx_utf_decode(u_char **p, size_t n);
138 size_t ngx_utf_length(u_char *p, size_t n); 138 size_t ngx_utf_length(u_char *p, size_t n);
139 u_char * ngx_utf_cpystrn(u_char *dst, u_char *src, size_t n); 139 u_char *ngx_utf_cpystrn(u_char *dst, u_char *src, size_t n);
140 140
141 141
142 #define NGX_ESCAPE_URI 0 142 #define NGX_ESCAPE_URI 0
143 #define NGX_ESCAPE_ARGS 1 143 #define NGX_ESCAPE_ARGS 1
144 #define NGX_ESCAPE_HTML 2 144 #define NGX_ESCAPE_HTML 2
145 145
146 #define NGX_UNESCAPE_URI 1 146 #define NGX_UNESCAPE_URI 1
147 147
148 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size, 148 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size,
149 ngx_uint_t type); 149 ngx_uint_t type);
150 void ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type); 150 void ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type);
151 151
152 152
153 #define ngx_qsort qsort 153 void ngx_sort(void *base, size_t n, size_t size,
154 int (*cmp)(const void *, const void *));
155 #define ngx_qsort qsort
154 156
155 157
156 #define ngx_value_helper(n) #n 158 #define ngx_value_helper(n) #n
157 #define ngx_value(n) ngx_value_helper(n) 159 #define ngx_value(n) ngx_value_helper(n)
158 160
159 161
160 #endif /* _NGX_STRING_H_INCLUDED_ */ 162 #endif /* _NGX_STRING_H_INCLUDED_ */