[Bug 280566] tree(3) man page: Fix example source code.
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 280566] tree(3) man page: Fix example source code."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Aug 2024 01:03:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280566
Maxim Konovalov <maxim@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maxim@FreeBSD.org
--- Comment #1 from Maxim Konovalov <maxim@FreeBSD.org> ---
Hi,
Thanks for the patch!
Just for the record, it seems that there are several separate issues with the
example, specifically:
(1) RB_AUGMENT macro should be defined as early as possible. Otherwise it is
no-op and the program doesn't work as intended, e.g., it doesn't calculate sum
of the tree elements.
(2) Man page formatting error that leads to a compilation error if you try to
copy-paste the code.
(3) There is also a missed new line between the tree structure content and the
sum of the elements but it looks minor.
I created a slightly better looking to me patch to address all of the above.
Dear Hodong, are you good with this one?
Thanks,
Maxim
--
You are receiving this mail because:
You are on the CC list for the bug.