Mercurial > hg > nginx-vendor-0-8
annotate src/core/ngx_rbtree.h @ 86:962c43960644 NGINX_0_1_43
nginx 0.1.43
*) Feature: the listen(2) backlog in the "listen" directive can be
changed using the -HUP signal.
*) Feature: the geo2nginx.pl script was added to contrib.
*) Change: the FastCGI parameters with the empty values now are passed
to a server.
*) Bugfix: the segmentation fault occurred or the worker process may
got caught in an endless loop if the proxied or FastCGI server sent
the "Cache-Control" header line and the "expires" directive was
used; in the proxied mode the bug appeared in 0.1.29.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 30 Aug 2005 00:00:00 +0400 |
parents | 41ccba1aba45 |
children | 45f7329b4bd0 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_RBTREE_H_INCLUDED_ | |
8 #define _NGX_RBTREE_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 typedef struct ngx_rbtree_s ngx_rbtree_t; | |
16 | |
17 struct ngx_rbtree_s { | |
18 ngx_int_t key; | |
19 ngx_rbtree_t *left; | |
20 ngx_rbtree_t *right; | |
21 ngx_rbtree_t *parent; | |
22 char color; | |
23 }; | |
24 | |
25 | |
26 void ngx_rbtree_insert(ngx_rbtree_t **root, ngx_rbtree_t *sentinel, | |
42 | 27 ngx_rbtree_t *node); |
0 | 28 void ngx_rbtree_delete(ngx_rbtree_t **root, ngx_rbtree_t *sentinel, |
42 | 29 ngx_rbtree_t *node); |
0 | 30 |
31 | |
42 | 32 static ngx_inline ngx_rbtree_t * |
33 ngx_rbtree_min(ngx_rbtree_t *node, ngx_rbtree_t *sentinel) | |
0 | 34 { |
35 while (node->left != sentinel) { | |
36 node = node->left; | |
37 } | |
38 | |
39 return node; | |
40 } | |
41 | |
42 | |
43 #endif /* _NGX_RBTREE_H_INCLUDED_ */ |