comparison src/core/ngx_string.h @ 1157:a4820184a618

*) introduce ngx_strchr() *) test server_name for '/': it's common configuration error when trailing ';' is omitted and a next directive is treated as server_name
author Igor Sysoev <igor@sysoev.ru>
date Mon, 02 Apr 2007 06:27:30 +0000
parents db7c468c447d
children 8b3e59a6bfdb
comparison
equal deleted inserted replaced
1156:a9005d2e2c99 1157:a4820184a618
38 /* msvc and icc7 compile strcmp() to inline loop */ 38 /* msvc and icc7 compile strcmp() to inline loop */
39 #define ngx_strcmp(s1, s2) strcmp((const char *) s1, (const char *) s2) 39 #define ngx_strcmp(s1, s2) strcmp((const char *) s1, (const char *) s2)
40 40
41 41
42 #define ngx_strstr(s1, s2) strstr((const char *) s1, (const char *) s2) 42 #define ngx_strstr(s1, s2) strstr((const char *) s1, (const char *) s2)
43 #define ngx_strchr(s1, c) strchr((const char *) s1, (int) c)
43 #define ngx_strlen(s) strlen((const char *) s) 44 #define ngx_strlen(s) strlen((const char *) s)
44 45
45 46
46 /* 47 /*
47 * msvc and icc7 compile memset() to the inline "rep stos" 48 * msvc and icc7 compile memset() to the inline "rep stos"