C preprocessor: Difference between revisions

Content deleted Content added
in first para: "It can and is used" should properly be "It can be [used] and is used"
Tag: Reverted
(Never mind, it can be parsed as "It can [process] and is used to...". Sorry!) Undid revision 1305899439 by 2604:3D08:687F:FEA0:C8F9:D44F:F00F:4E3F (talk)
Line 5:
{{more footnotes needed|date=March 2015}}
}}
The '''C preprocessor''' ('''CPP''') is a [[text file]] [[preprocessor|processor]] that is used with [[C (programming language)|C]], [[C++]] and other [[programming tool]]s. The preprocessor provides for file inclusion (often [[header files]]), [[macro (computer science)|macro]] expansion, [[conditional compilation]], and line control. Although named in association with C and used with C, the preprocessor capabilities are not inherently tied to the C language. It can be and is used to process other kinds of files.<ref>[https://gist.github.com/djedr/7d21eac05ce2bbbca29b29d532a1fbe4 General-purpose text preprocessing with the C preprocessor. Featuring JavaScript]</ref>
 
C, C++, and [[Objective-C]] compilers provide a preprocessor capability, as it is required by the definition of each language. Some compilers provide extensions and deviations from the target language standard. Some provide options to control standards compliance. For instance, the GNU C preprocessor can be made more standards compliant by supplying certain command-line flags.<ref name="gnu-cpp-overview">