bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 007/100] man/curs_terminfo.3x: Wordsmith constness discussion.


From: G. Branden Robinson
Subject: [PATCH 007/100] man/curs_terminfo.3x: Wordsmith constness discussion.
Date: Sat, 30 Mar 2024 16:47:48 -0500

---
 man/curs_terminfo.3x | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/man/curs_terminfo.3x b/man/curs_terminfo.3x
index 4ad9aa692..7454923ac 100644
--- a/man/curs_terminfo.3x
+++ b/man/curs_terminfo.3x
@@ -844,10 +844,12 @@ .SS "Function Prototypes"
 X/Open Curses uses
 .I \%const
 less effectively than a later design might,
-in some cases applying it needlessly to values are already constant,
-and in most cases overlooking parameters which normally would use
+sometimes applying it needlessly to values that are already constant,
+and in most cases overlooking parameters that normally would use
 .IR \%const .
-Using constant parameters for functions which do not use
+Passing
+.IR \%const -qualified
+parameters to functions that do not declare them
 .I \%const
 may prevent the program from compiling.
 On the other hand,
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]