Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

84 lines
3.5KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>Conventions (The GNU C Preprocessor Internals)</title>
  7. <meta name="description" content="Conventions (The GNU C Preprocessor Internals)">
  8. <meta name="keywords" content="Conventions (The GNU C Preprocessor Internals)">
  9. <meta name="resource-type" content="document">
  10. <meta name="distribution" content="global">
  11. <meta name="Generator" content="makeinfo">
  12. <link href="index.html#Top" rel="start" title="Top">
  13. <link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
  14. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  15. <link href="index.html#Top" rel="up" title="Top">
  16. <link href="Lexer.html#Lexer" rel="next" title="Lexer">
  17. <link href="index.html#Top" rel="prev" title="Top">
  18. <style type="text/css">
  19. <!--
  20. a.summary-letter {text-decoration: none}
  21. blockquote.indentedblock {margin-right: 0em}
  22. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  23. blockquote.smallquotation {font-size: smaller}
  24. div.display {margin-left: 3.2em}
  25. div.example {margin-left: 3.2em}
  26. div.lisp {margin-left: 3.2em}
  27. div.smalldisplay {margin-left: 3.2em}
  28. div.smallexample {margin-left: 3.2em}
  29. div.smalllisp {margin-left: 3.2em}
  30. kbd {font-style: oblique}
  31. pre.display {font-family: inherit}
  32. pre.format {font-family: inherit}
  33. pre.menu-comment {font-family: serif}
  34. pre.menu-preformatted {font-family: serif}
  35. pre.smalldisplay {font-family: inherit; font-size: smaller}
  36. pre.smallexample {font-size: smaller}
  37. pre.smallformat {font-family: inherit; font-size: smaller}
  38. pre.smalllisp {font-size: smaller}
  39. span.nolinebreak {white-space: nowrap}
  40. span.roman {font-family: initial; font-weight: normal}
  41. span.sansserif {font-family: sans-serif; font-weight: normal}
  42. ul.no-bullet {list-style: none}
  43. -->
  44. </style>
  45. </head>
  46. <body lang="en">
  47. <a name="Conventions"></a>
  48. <div class="header">
  49. <p>
  50. Next: <a href="Lexer.html#Lexer" accesskey="n" rel="next">Lexer</a>, Previous: <a href="index.html#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  51. </div>
  52. <hr>
  53. <a name="Conventions-1"></a>
  54. <h2 class="unnumbered">Conventions</h2>
  55. <a name="index-interface"></a>
  56. <a name="index-header-files"></a>
  57. <p>cpplib has two interfaces&mdash;one is exposed internally only, and the
  58. other is for both internal and external use.
  59. </p>
  60. <p>The convention is that functions and types that are exposed to multiple
  61. files internally are prefixed with &lsquo;<samp>_cpp_</samp>&rsquo;, and are to be found in
  62. the file <samp>internal.h</samp>. Functions and types exposed to external
  63. clients are in <samp>cpplib.h</samp>, and prefixed with &lsquo;<samp>cpp_</samp>&rsquo;. For
  64. historical reasons this is no longer quite true, but we should strive to
  65. stick to it.
  66. </p>
  67. <p>We are striving to reduce the information exposed in <samp>cpplib.h</samp> to the
  68. bare minimum necessary, and then to keep it there. This makes clear
  69. exactly what external clients are entitled to assume, and allows us to
  70. change internals in the future without worrying whether library clients
  71. are perhaps relying on some kind of undocumented implementation-specific
  72. behavior.
  73. </p>
  74. </body>
  75. </html>