comparison src/core/ngx_string.h @ 570:8246d8a2c2be NGINX_0_8_37

nginx 0.8.37 *) Feature: the ngx_http_split_clients_module. *) Feature: the "map" directive supports keys more than 255 characters. *) Bugfix: nginx ignored the "private" and "no-store" values in the "Cache-Control" backend response header line. *) Bugfix: a "stub" parameter of an "include" SSI directive was not used, if empty response has 200 status code. *) Bugfix: if a proxied or FastCGI request was internally redirected to another proxied or FastCGI location, then a segmentation fault might occur in a worker process; the bug had appeared in 0.8.33. Thanks to Yichun Zhang. *) Bugfix: IMAP connections may hang until they timed out while talking to Zimbra server. Thanks to Alan Batie.
author Igor Sysoev <http://sysoev.ru>
date Mon, 17 May 2010 00:00:00 +0400
parents 0161f3197817
children c456a023113c
comparison
equal deleted inserted replaced
569:19b134bf21c0 570:8246d8a2c2be
36 } ngx_variable_value_t; 36 } ngx_variable_value_t;
37 37
38 38
39 #define ngx_string(str) { sizeof(str) - 1, (u_char *) str } 39 #define ngx_string(str) { sizeof(str) - 1, (u_char *) str }
40 #define ngx_null_string { 0, NULL } 40 #define ngx_null_string { 0, NULL }
41 #define ngx_str_set(str, text) \
42 (str)->len = sizeof(text) - 1; (str)->data = (u_char *) text
43 #define ngx_str_null(str) (str)->len = 0; (str)->data = NULL
41 44
42 45
43 #define ngx_tolower(c) (u_char) ((c >= 'A' && c <= 'Z') ? (c | 0x20) : c) 46 #define ngx_tolower(c) (u_char) ((c >= 'A' && c <= 'Z') ? (c | 0x20) : c)
44 #define ngx_toupper(c) (u_char) ((c >= 'a' && c <= 'z') ? (c & ~0x20) : c) 47 #define ngx_toupper(c) (u_char) ((c >= 'a' && c <= 'z') ? (c & ~0x20) : c)
45 48
159 ngx_int_t ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n); 162 ngx_int_t ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n);
160 ngx_int_t ngx_memn2cmp(u_char *s1, u_char *s2, size_t n1, size_t n2); 163 ngx_int_t ngx_memn2cmp(u_char *s1, u_char *s2, size_t n1, size_t n2);
161 ngx_int_t ngx_dns_strcmp(u_char *s1, u_char *s2); 164 ngx_int_t ngx_dns_strcmp(u_char *s1, u_char *s2);
162 165
163 ngx_int_t ngx_atoi(u_char *line, size_t n); 166 ngx_int_t ngx_atoi(u_char *line, size_t n);
167 ngx_int_t ngx_atofp(u_char *line, size_t n, size_t point);
164 ssize_t ngx_atosz(u_char *line, size_t n); 168 ssize_t ngx_atosz(u_char *line, size_t n);
165 off_t ngx_atoof(u_char *line, size_t n); 169 off_t ngx_atoof(u_char *line, size_t n);
166 time_t ngx_atotm(u_char *line, size_t n); 170 time_t ngx_atotm(u_char *line, size_t n);
167 ngx_int_t ngx_hextoi(u_char *line, size_t n); 171 ngx_int_t ngx_hextoi(u_char *line, size_t n);
168 172