[Cfp-interest 2930] issue about type-generic macros and new augmented arithmetic header
Jim Thomas
jaswthomas at sbcglobal.net
Sat Oct 21 11:47:37 PDT 2023
This is about an issue that arose in reworking TS-4r to use new headers. The current draft of TS-4r adds augmented-arithmetic functions to <math.h> and type-generic macros for them to <tgmath.h>. The draft in progress has the augmented arithmetic functions in a new header <augarith.h>. The issue is, what to do with their type-generic macros?
Adding new macros to <tgmath.h> in contrary to our given direction to introduce new identifiers in new headers.
Adding type-generic macros, along with the functions, unconditionally to <augarith.h> would have the effect of overriding the functions.
These resolution options came to mind:
1. Add the type generic macros to <augarith.h> conditioned by a user-defined WANT macro, e.g. __STDC_WANT_TGAUGARITH__.
2. Add the type generic macros to <augarith.h> conditioned by whether <tgmath.h> has been included.
3. Remove the type-generic macros for augmented arithmetic from the TS.
Your thoughts?
- JIm Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20231021/967a4789/attachment.htm>
More information about the Cfp-interest
mailing list