[Cfp-interest 2904] Why are the standard (and TS) #pragma's tied to header files?

Rajan Bhakta rbhakta at us.ibm.com
Wed Oct 4 14:57:11 PDT 2023


To summarize the question we’ve been discussing in previous CFP meetings (and messages such as CFP2790), why do standard pragmas have associated header files?
Currently the C standard has a number of standard pragmas that all require a header file to be included as per the pragma synopsis. For example, in 7.3.4, the CX_LIMITED_RANGE pragma, the synopsis is as follows:

#include <complex.h>
#pragma STDC CX_LIMITED_RANGE on-off-switch

Since the pragma is a language feature, why does a header need to be included at all?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20231004/bcfde769/attachment.htm>


More information about the Cfp-interest mailing list