bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 06/20] announce.html.in: Clarify.


From: G. Branden Robinson
Subject: [PATCH 06/20] announce.html.in: Clarify.
Date: Fri, 29 Dec 2023 21:00:50 -0600

As I read X/Open Curses Issue 4, Version 2, and Issue 7, there is no
requirement "that every macro entry point has a corresponding function".

What the standard says is: "[a]ny function declared in a header may also
be implemented as a macro defined in the header".

These are not equivalent statements because there can be macros that the
standard prescribes as such, and this is in fact the case with the
function-like macros in man/getyx.3x.
---
 announce.html.in | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/announce.html.in b/announce.html.in
index da2b2fc5c..1d05591da 100644
--- a/announce.html.in
+++ b/announce.html.in
@@ -1136,10 +1136,11 @@
     </li>
 
     <li>
-      <p>The library meets the XSI requirement that every macro
-      entry point has a corresponding function which may be linked
-      (and will be prototype-checked) if the macro definition is
-      disabled with <code>#undef</code>.</p>
+      <p>The library meets the X/Open Curses requirement that every
+      function declared in a header file has a macro equivalent.
+      If the macro definition is disabled with <code>#undef</code>,
+      the function may be linked (and its calls will be checked
+      against the prototype).</p>
     </li>
 
     <li>
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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