mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 00:43:21 -04:00
Clean up a few rbt comments
Avoid HTML entities, and describe what a function does instead of explaining why it used to be a macro.
This commit is contained in:
parent
084f146946
commit
b0bf49726e
1 changed files with 6 additions and 10 deletions
|
|
@ -85,12 +85,11 @@ struct dns_rbt {
|
|||
* The variable length stuff stored after the node has the following
|
||||
* structure.
|
||||
*
|
||||
* <name_data>{1..255}<oldoffsetlen>{1}<offsets>{1..128}
|
||||
* NAME_DATA{1..255} OLDOFFSETLEN{1} OFFSETS{1..128}
|
||||
*
|
||||
* <name_data> contains the name of the node when it was created.
|
||||
* <oldoffsetlen> contains the length of <offsets> when the node
|
||||
* was created.
|
||||
* <offsets> contains the offsets into name for each label when the node
|
||||
* NAME_DATA contains the name of the node when it was created.
|
||||
* OLDOFFSETLEN contains the length of OFFSETS when the node was created.
|
||||
* OFFSETS contains the offsets into name for each label when the node
|
||||
* was created.
|
||||
*/
|
||||
|
||||
|
|
@ -122,12 +121,9 @@ struct dns_rbt {
|
|||
(chain)->levels[(chain)->level_count++] = (node); \
|
||||
} while (0)
|
||||
|
||||
/*%
|
||||
* 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.
|
||||
/*
|
||||
* Initialize a dns_name_t that refers to a node's name.
|
||||
*/
|
||||
|
||||
static void
|
||||
node_name(dns_rbtnode_t *node, dns_name_t *name) {
|
||||
name->length = node->namelen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue