Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-07-17 13:23:23 +0400
committerIgor Sysoev <igor@sysoev.ru>2007-07-17 13:23:23 +0400
commitf42ed05e9cb6125d5eb9183a1218cd38a4082c20 (patch)
tree71c17cb6ca65c6983e5aeed8a33b7d37f89ebe06 /src/core/ngx_string.h
parentd3cdbc85e800c2678fcdfca7b6e4792c59d5838b (diff)
Sun Studio on sparc uses different bit order
Diffstat (limited to 'src/core/ngx_string.h')
-rw-r--r--src/core/ngx_string.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h
index 6b432d1f2..9e0b06394 100644
--- a/src/core/ngx_string.h
+++ b/src/core/ngx_string.h
@@ -13,17 +13,28 @@
typedef struct {
- size_t len;
- u_char *data;
+ size_t len;
+ u_char *data;
} ngx_str_t;
typedef struct {
- ngx_str_t key;
- ngx_str_t value;
+ ngx_str_t key;
+ ngx_str_t value;
} ngx_keyval_t;
+typedef struct {
+ unsigned len:29;
+
+ unsigned valid:1;
+ unsigned no_cachable:1;
+ unsigned not_found:1;
+
+ u_char *data;
+} ngx_variable_value_t;
+
+
#define ngx_string(str) { sizeof(str) - 1, (u_char *) str }
#define ngx_null_string { 0, NULL }