comparison src/core/ngx_array.h @ 16:74b1868dd3cd NGINX_0_1_8

nginx 0.1.8 *) Bugfix: in the ngx_http_autoindex_module if the long file names were in the listing. *) Feature: the "^~" modifier in the location directive. *) Feature: the proxy_max_temp_file_size directive.
author Igor Sysoev <http://sysoev.ru>
date Sat, 20 Nov 2004 00:00:00 +0300
parents f0b350454894
children aab2ea7c0458
comparison
equal deleted inserted replaced
15:0503cb60c4e4 16:74b1868dd3cd
24 ngx_array_t *ngx_create_array(ngx_pool_t *p, ngx_uint_t n, size_t size); 24 ngx_array_t *ngx_create_array(ngx_pool_t *p, ngx_uint_t n, size_t size);
25 void ngx_destroy_array(ngx_array_t *a); 25 void ngx_destroy_array(ngx_array_t *a);
26 void *ngx_push_array(ngx_array_t *a); 26 void *ngx_push_array(ngx_array_t *a);
27 27
28 28
29 ngx_inline static ngx_int_t ngx_array_init(ngx_array_t *array, ngx_pool_t *pool, 29 static ngx_inline ngx_int_t ngx_array_init(ngx_array_t *array, ngx_pool_t *pool,
30 ngx_uint_t n, size_t size) 30 ngx_uint_t n, size_t size)
31 { 31 {
32 if (!(array->elts = ngx_palloc(pool, n * size))) { 32 if (!(array->elts = ngx_palloc(pool, n * size))) {
33 return NGX_ERROR; 33 return NGX_ERROR;
34 } 34 }