| 1 | <refentry id="symbol.element"> |
| 2 | <?dbhtml filename="symbol.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>symbol</secondary></indexterm> |
| 11 | <refentrytitle>symbol</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>symbol</refname> |
| 16 | <refpurpose>&symbol.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &symbol.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | A <sgmltag>Symbol</sgmltag> is a name that represents a value. It should be used |
| 24 | in contexts in which the name will actually be replaced by a value before |
| 25 | processing. The canonical example is a <literal>#define</literal>d symbol in |
| 26 | a C program where the C preprocessor replaces every occurance of the symbol |
| 27 | with its value before compilation begins. |
| 28 | </para> |
| 29 | |
| 30 | <para> |
| 31 | The <literal>Limit</literal> value of the <sgmltag class='attribute'>Class</sgmltag> attribute |
| 32 | identifies those symbols that represent system limitations (for example, the |
| 33 | number of characters allowed in a path name or the largest possible positive |
| 34 | integer). DocBook <acronym>V3.1</acronym> introduced the <sgmltag>Constant</sgmltag> element, |
| 35 | which may be more suitable for some of these symbols. |
| 36 | </para> |
| 37 | |
| 38 | <refsect2><title>Processing expectations</title> |
| 39 | <para> |
| 40 | &format.inline; |
| 41 | </para> |
| 42 | </refsect2> |
| 43 | |
| 44 | |
| 45 | &symbol.parents.gen; |
| 46 | &symbol.children.gen; |
| 47 | </refsect1> |
| 48 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 49 | <variablelist> |
| 50 | <varlistentry><term>class</term> |
| 51 | <listitem> |
| 52 | <para> |
| 53 | <sgmltag class="attribute">Class</sgmltag> indicates the type of <sgmltag>Symbol</sgmltag>. |
| 54 | </para> |
| 55 | </listitem> |
| 56 | </varlistentry> |
| 57 | </variablelist> |
| 58 | </refsect1> |
| 59 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 60 | &symbol.seealso.gen; |
| 61 | </refsect1> |
| 62 | <refsect1><title>Examples</title> |
| 63 | |
| 64 | <informalexample role="example-source"> |
| 65 | <programlisting>&symbol.example.1.txt;</programlisting> |
| 66 | </informalexample> |
| 67 | |
| 68 | <anchor id="ex.os.symbol.1" role="HACK-ex.out.start"/> |
| 69 | &symbol.example.1.gen; |
| 70 | <anchor id="ex.oe.symbol.1" role="HACK-ex.out.end"/> |
| 71 | |
| 72 | &symbol.example.seealso.gen; |
| 73 | </refsect1> |
| 74 | </refentry> |
| 75 |