Traditional-miscellany.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1987-2023 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation. A copy of
  7. the license is included in the
  8. section entitled "GNU Free Documentation License".
  9. This manual contains no Invariant Sections. The Front-Cover Texts are
  10. (a) (see below), and the Back-Cover Texts are (b) (see below).
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>Traditional miscellany (The C Preprocessor)</title>
  21. <meta name="description" content="Traditional miscellany (The C Preprocessor)">
  22. <meta name="keywords" content="Traditional miscellany (The C Preprocessor)">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html" rel="start" title="Top">
  27. <link href="Index-of-Directives.html" rel="index" title="Index of Directives">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Traditional-Mode.html" rel="up" title="Traditional Mode">
  30. <link href="Traditional-warnings.html" rel="next" title="Traditional warnings">
  31. <link href="Traditional-macros.html" rel="prev" title="Traditional macros">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. div.display {margin-left: 3.2em}
  37. div.example {margin-left: 3.2em}
  38. div.lisp {margin-left: 3.2em}
  39. kbd {font-style: oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. span.nolinebreak {white-space: nowrap}
  45. span.roman {font-family: initial; font-weight: normal}
  46. span.sansserif {font-family: sans-serif; font-weight: normal}
  47. ul.no-bullet {list-style: none}
  48. -->
  49. </style>
  50. </head>
  51. <body lang="en">
  52. <span id="Traditional-miscellany"></span><div class="header">
  53. <p>
  54. Next: <a href="Traditional-warnings.html" accesskey="n" rel="next">Traditional warnings</a>, Previous: <a href="Traditional-macros.html" accesskey="p" rel="prev">Traditional macros</a>, Up: <a href="Traditional-Mode.html" accesskey="u" rel="up">Traditional Mode</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index-of-Directives.html" title="Index" rel="index">Index</a>]</p>
  55. </div>
  56. <hr>
  57. <span id="Traditional-miscellany-1"></span><h3 class="section">10.3 Traditional miscellany</h3>
  58. <p>Here are some things to be aware of when using the traditional
  59. preprocessor.
  60. </p>
  61. <ul>
  62. <li> Preprocessing directives are recognized only when their leading
  63. &lsquo;<samp>#</samp>&rsquo; appears in the first column. There can be no whitespace
  64. between the beginning of the line and the &lsquo;<samp>#</samp>&rsquo;, but whitespace can
  65. follow the &lsquo;<samp>#</samp>&rsquo;.
  66. </li><li> A true traditional C preprocessor does not recognize &lsquo;<samp>#error</samp>&rsquo; or
  67. &lsquo;<samp>#pragma</samp>&rsquo;, and may not recognize &lsquo;<samp>#elif</samp>&rsquo;. CPP supports all
  68. the directives in traditional mode that it supports in ISO mode,
  69. including extensions, with the exception that the effects of
  70. &lsquo;<samp>#pragma GCC poison</samp>&rsquo; are undefined.
  71. </li><li> __STDC__ is not defined.
  72. </li><li> If you use digraphs the behavior is undefined.
  73. </li><li> If a line that looks like a directive appears within macro arguments,
  74. the behavior is undefined.
  75. </li></ul>
  76. </body>
  77. </html>