comparison src/core/nginx.c @ 90:37530da31268

nginx-0.0.1-2003-05-16-19:27:48 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 16 May 2003 15:27:48 +0000
parents 674d333f4296
children 637625a2acdb
comparison
equal deleted inserted replaced
89:29bf798b583f 90:37530da31268
36 ngx_log_t ngx_log; 36 ngx_log_t ngx_log;
37 ngx_pool_t *ngx_pool; 37 ngx_pool_t *ngx_pool;
38 38
39 39
40 int ngx_max_module; 40 int ngx_max_module;
41 void *ctx_conf;
41 42
42 int ngx_connection_counter; 43 int ngx_connection_counter;
43 44
44 ngx_array_t ngx_listening_sockets; 45 ngx_array_t ngx_listening_sockets;
45 46
79 for (i = 0; ngx_modules[i]; i++) { 80 for (i = 0; ngx_modules[i]; i++) {
80 ngx_modules[i]->index = ngx_max_module++; 81 ngx_modules[i]->index = ngx_max_module++;
81 } 82 }
82 83
83 ngx_memzero(&conf, sizeof(ngx_conf_t)); 84 ngx_memzero(&conf, sizeof(ngx_conf_t));
84 ngx_test_null(conf.args, 85
85 ngx_create_array(ngx_pool, 10, sizeof(ngx_str_t)), 1); 86 ngx_test_null(conf.args, ngx_create_array(ngx_pool, 10, sizeof(ngx_str_t)),
87 1);
88
89 ngx_test_null(conf.ctx,
90 ngx_pcalloc(ngx_pool, ngx_max_module * sizeof(void *)),
91 1);
92
86 conf.pool = ngx_pool; 93 conf.pool = ngx_pool;
87 conf.log = &ngx_log; 94 conf.log = &ngx_log;
88 conf.module_type = NGX_CORE_MODULE_TYPE; 95 conf.module_type = NGX_CORE_MODULE_TYPE;
89 conf.cmd_type = NGX_MAIN_CONF; 96 conf.cmd_type = NGX_MAIN_CONF;
90 97