~britco/nginx/master

« back to all changes in this revision

Viewing changes to src/core/ngx_config.h

Tags: upstream-0.5.33
ImportĀ upstreamĀ versionĀ 0.5.33

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
 
71
71
#endif
72
72
 
73
 
 
74
 
 
75
 
/* TODO: platform specific: array[NGX_INVALID_ARRAY_INDEX] must cause SIGSEGV */
76
 
#define NGX_INVALID_ARRAY_INDEX 0x80000000
77
 
 
78
 
 
79
 
#if 1
80
 
/* STUB: autoconf */
81
 
typedef int             ngx_int_t;
82
 
typedef u_int           ngx_uint_t;
83
 
typedef int             ngx_flag_t;
84
 
#define NGX_INT_T_LEN   sizeof("-2147483648") - 1
85
 
 
86
 
#else
87
 
 
88
 
typedef long            ngx_int_t;
89
 
typedef u_long          ngx_uint_t;
90
 
typedef long            ngx_flag_t;
91
 
#define NGX_INT_T_LEN   sizeof("-9223372036854775808") - 1
92
 
 
93
 
#endif
 
73
typedef intptr_t        ngx_int_t;
 
74
typedef uintptr_t       ngx_uint_t;
 
75
typedef intptr_t        ngx_flag_t;
 
76
 
94
77
 
95
78
#define NGX_INT32_LEN   sizeof("-2147483648") - 1
96
79
#define NGX_INT64_LEN   sizeof("-9223372036854775808") - 1
97
80
 
 
81
#if (NGX_PTR_SIZE == 4)
 
82
#define NGX_INT_T_LEN   NGX_INT32_LEN
 
83
#else
 
84
#define NGX_INT_T_LEN   NGX_INT64_LEN
 
85
#endif
 
86
 
98
87
 
99
88
#ifndef NGX_ALIGNMENT
100
89
#define NGX_ALIGNMENT   sizeof(unsigned long)    /* platform word */
108
97
#define ngx_abort       abort
109
98
 
110
99
 
 
100
/* TODO: platform specific: array[NGX_INVALID_ARRAY_INDEX] must cause SIGSEGV */
 
101
#define NGX_INVALID_ARRAY_INDEX 0x80000000
 
102
 
 
103
 
111
104
/* TODO: auto_conf: ngx_inline   inline __inline __inline__ */
112
105
#ifndef ngx_inline
113
106
#define ngx_inline      inline