mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
1851. [doc] Doxygen comment markup. [RT #11398]
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rbt.c,v 1.130 2004/10/25 01:27:54 marka Exp $ */
|
||||
/* $Id: rbt.c,v 1.131 2005/04/27 04:56:49 sra Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
/* Principal Authors: DCL */
|
||||
|
||||
@@ -27,7 +29,7 @@
|
||||
#include <isc/string.h>
|
||||
#include <isc/util.h>
|
||||
|
||||
/*
|
||||
/*%
|
||||
* This define is so dns/name.h (included by dns/fixedname.h) uses more
|
||||
* efficient macro calls instead of functions for a few operations.
|
||||
*/
|
||||
@@ -52,7 +54,7 @@
|
||||
|
||||
#ifdef RBT_MEM_TEST
|
||||
#undef RBT_HASH_SIZE
|
||||
#define RBT_HASH_SIZE 2 /* To give the reallocation code a workout. */
|
||||
#define RBT_HASH_SIZE 2 /*%< To give the reallocation code a workout. */
|
||||
#endif
|
||||
|
||||
struct dns_rbt {
|
||||
@@ -69,7 +71,7 @@ struct dns_rbt {
|
||||
#define RED 0
|
||||
#define BLACK 1
|
||||
|
||||
/*
|
||||
/*%
|
||||
* Elements of the rbtnode structure.
|
||||
*/
|
||||
#define PARENT(node) ((node)->parent)
|
||||
@@ -87,7 +89,7 @@ struct dns_rbt {
|
||||
#define IS_ROOT(node) ISC_TF((node)->is_root == 1)
|
||||
#define FINDCALLBACK(node) ISC_TF((node)->find_callback == 1)
|
||||
|
||||
/*
|
||||
/*%
|
||||
* Structure elements from the rbtdb.c, not
|
||||
* used as part of the rbt.c algorithms.
|
||||
*/
|
||||
@@ -96,7 +98,7 @@ struct dns_rbt {
|
||||
#define LOCKNUM(node) ((node)->locknum)
|
||||
#define REFS(node) ((node)->references)
|
||||
|
||||
/*
|
||||
/*%
|
||||
* The variable length stuff stored after the node.
|
||||
*/
|
||||
#define NAME(node) ((unsigned char *)((node) + 1))
|
||||
@@ -105,7 +107,7 @@ struct dns_rbt {
|
||||
#define NODE_SIZE(node) (sizeof(*node) + \
|
||||
NAMELEN(node) + OFFSETLEN(node) + PADBYTES(node))
|
||||
|
||||
/*
|
||||
/*%
|
||||
* Color management.
|
||||
*/
|
||||
#define IS_RED(node) ((node) != NULL && (node)->color == RED)
|
||||
@@ -113,7 +115,7 @@ struct dns_rbt {
|
||||
#define MAKE_RED(node) ((node)->color = RED)
|
||||
#define MAKE_BLACK(node) ((node)->color = BLACK)
|
||||
|
||||
/*
|
||||
/*%
|
||||
* Chain management.
|
||||
*
|
||||
* The "ancestors" member of chains were removed, with their job now
|
||||
@@ -123,7 +125,7 @@ struct dns_rbt {
|
||||
#define ADD_LEVEL(chain, node) \
|
||||
(chain)->levels[(chain)->level_count++] = (node)
|
||||
|
||||
/*
|
||||
/*%
|
||||
* The following macros directly access normally private name variables.
|
||||
* These macros are used to avoid a lot of function calls in the critical
|
||||
* path of the tree traversal code.
|
||||
|
Reference in New Issue
Block a user