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>2004-06-16 19:32:11 +0400
committerIgor Sysoev <igor@sysoev.ru>2004-06-16 19:32:11 +0400
commit2f65722941903cfb5b4819bbf32b61ed1d330749 (patch)
tree77fb2186a9afef9acdbc77e60e43a82fc4dae122 /src/core/ngx_config.h
parentd09f7a1e9aa5816493e2fef93074383d95140c13 (diff)
nginx-0.0.7-2004-06-16-19:32:11 import
Diffstat (limited to 'src/core/ngx_config.h')
-rw-r--r--src/core/ngx_config.h26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h
index 57039b9fe..465e1bfe1 100644
--- a/src/core/ngx_config.h
+++ b/src/core/ngx_config.h
@@ -31,12 +31,6 @@
#endif
-/* STUB: autoconf */
-typedef int ngx_int_t;
-typedef u_int ngx_uint_t;
-typedef int ngx_flag_t;
-
-
#if !(WIN32)
#define ngx_signal_helper(n) SIG##n
@@ -58,6 +52,26 @@ typedef int ngx_flag_t;
#define NGX_INVALID_ARRAY_INDEX 0x80000000
+#if 1
+/* STUB: autoconf */
+typedef int ngx_int_t;
+typedef u_int ngx_uint_t;
+typedef int ngx_flag_t;
+#define NGX_INT_T_LEN sizeof("-2147483648") - 1
+#define NGX_INT_T_FMT "d"
+#define NGX_UINT_T_FMT "u"
+
+#else
+
+typedef long ngx_int_t;
+typedef u_long ngx_uint_t;
+typedef long ngx_flag_t;
+#define NGX_INT_T_LEN sizeof("-9223372036854775808") - 1
+#define NGX_INT_T_FMT "lld"
+#define NGX_UINT_T_FMT "llu"
+
+#endif
+
/* TODO: auto */
#define NGX_INT32_LEN sizeof("-2147483648") - 1
#define NGX_INT64_LEN sizeof("-9223372036854775808") - 1