This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[patch] search.texi, make VISIT type descripts match code + typo fixes
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: [patch] search.texi, make VISIT type descripts match code + typo fixes
- From: Ben Collins <bcollins at debian dot org>
- Date: Sun, 29 Oct 2000 10:06:11 -0500
This patch makes the description of the VISIT params match what is
actually in the code. The 'endorder' and 'postorder' were backwards. Plus
I tossed in some gramatical and spelling fixes for free :)
Ben
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
--- manual/search.texi~ Sun Oct 29 09:55:52 2000
+++ manual/search.texi Sun Oct 29 10:01:48 2000
@@ -529,10 +529,10 @@
@item preorder
The current node is an internal node and the function is called before
the first child was processed.
-@item endorder
+@item postorder
The current node is an internal node and the function is called after
the first child was processed.
-@item postorder
+@item endorder
The current node is an internal node and the function is called after
the second child was processed.
@item leaf
@@ -543,7 +543,7 @@
@comment search.h
@comment SVID
@deftypefun void twalk (const void *@var{root}, __action_fn_t @var{action})
-For each node in the tree with a node pointed to by @var{root} the
+For each node in the tree with a node pointed to by @var{root}, the
@code{twalk} function calls the function provided by the parameter
@var{action}. For leaf nodes the function is called exactly once with
@var{value} set to @code{leaf}. For internal nodes the function is
@@ -554,8 +554,8 @@
the root node.
Since the functions used for the @var{action} parameter to @code{twalk}
-must not modify the tree data it is safe to run @code{twalk} is more
-than one thread at the same time working on the same tree. It is also
+must not modify the tree data, it is safe to run @code{twalk} in more
+than one thread at the same time, working on the same tree. It is also
safe to call @code{tfind} in parallel. Functions which modify the tree
-must not be used. Otherwise the behaviour is undefined.
+must not be used, otherwise the behaviour is undefined.
@end deftypefun