Mercurial > hg > nginx
comparison src/core/ngx_string.h @ 1310:33d6c994a0b2
Sun Studio on sparc uses different bit order
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Jul 2007 09:23:23 +0000 |
parents | 458e041fc902 |
children | 07ebeeb55700 |
comparison
equal
deleted
inserted
replaced
1309:08c6ee7a1b11 | 1310:33d6c994a0b2 |
---|---|
11 #include <ngx_config.h> | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | 12 #include <ngx_core.h> |
13 | 13 |
14 | 14 |
15 typedef struct { | 15 typedef struct { |
16 size_t len; | 16 size_t len; |
17 u_char *data; | 17 u_char *data; |
18 } ngx_str_t; | 18 } ngx_str_t; |
19 | 19 |
20 | 20 |
21 typedef struct { | 21 typedef struct { |
22 ngx_str_t key; | 22 ngx_str_t key; |
23 ngx_str_t value; | 23 ngx_str_t value; |
24 } ngx_keyval_t; | 24 } ngx_keyval_t; |
25 | |
26 | |
27 typedef struct { | |
28 unsigned len:29; | |
29 | |
30 unsigned valid:1; | |
31 unsigned no_cachable:1; | |
32 unsigned not_found:1; | |
33 | |
34 u_char *data; | |
35 } ngx_variable_value_t; | |
25 | 36 |
26 | 37 |
27 #define ngx_string(str) { sizeof(str) - 1, (u_char *) str } | 38 #define ngx_string(str) { sizeof(str) - 1, (u_char *) str } |
28 #define ngx_null_string { 0, NULL } | 39 #define ngx_null_string { 0, NULL } |
29 | 40 |