Module Name: src
Committed By: wiz
Date: Fri Mar 29 21:45:27 UTC 2013
Modified Files:
src/share/man/man3: tree.3
Log Message:
Fix date and conflict; use Dv for NULL.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/share/man/man3/tree.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man3/tree.3
diff -u src/share/man/man3/tree.3:1.9 src/share/man/man3/tree.3:1.10
--- src/share/man/man3/tree.3:1.9 Fri Mar 29 21:16:31 2013
+++ src/share/man/man3/tree.3 Fri Mar 29 21:45:27 2013
@@ -1,4 +1,4 @@
-.\" $NetBSD: tree.3,v 1.9 2013/03/29 21:16:31 christos Exp $
+.\" $NetBSD: tree.3,v 1.10 2013/03/29 21:45:27 wiz Exp $
.\" $OpenBSD: tree.3,v 1.23 2011/07/09 08:43:01 jmc Exp $
.\"/*
.\" * Copyright 2002 Niels Provos <[email protected]>
@@ -24,7 +24,7 @@
.\" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\" */
-.Dd July 9 2011
+.Dd July 9, 2011
.Dt TREE 3
.Os
.Sh NAME
@@ -241,11 +241,7 @@ macro, but should be used only once.
Finally,
the
.Fa CMP
-<<<<<<< tree.3
argument is the name of a function used to compare trees' nodes
-=======
-argument is the name of a function used to compare tree nodes
->>>>>>> 1.8
with each other.
The function takes two arguments of type
.Fa "struct TYPE *" .
@@ -273,7 +269,7 @@ macro inserts the new element
.Fa elm
into the tree.
Upon success,
-.Va NULL
+.Dv NULL
is returned.
If a matching element already exists in the tree, the insertion is
aborted, and a pointer to the existing element is returned.
@@ -285,7 +281,7 @@ macro removes the element
from the tree pointed by
.Fa head .
Upon success, a pointer to the removed element is returned.
-.Va NULL
+.Dv NULL
is returned if
.Fa elm
is not present in the tree.
@@ -418,7 +414,7 @@ macro inserts the new element
.Fa elm
into the tree.
Upon success,
-.Va NULL
+.Dv NULL
is returned.
If a matching element already exists in the tree, the insertion is
aborted, and a pointer to the existing element is returned.
@@ -455,7 +451,7 @@ The
.Fn RB_ROOT ,
.Fn RB_MIN ,
.Fn RB_MAX ,
-.Fn RB_NEXT,
+.Fn RB_NEXT ,
and
.Fn RB_PREV
macros can be used to traverse the tree: