Debian Codegraph @

en/refpages/elements/paramdef/refentry.xml

raw symbols SCIP
1 <refentry id="paramdef.element">
2 <?dbhtml filename="paramdef.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>paramdef</secondary></indexterm>
11 <refentrytitle>paramdef</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>paramdef</refname>
16 <refpurpose>&paramdef.purpose;</refpurpose>
17 </refnamediv>
18
19 &paramdef.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>
23 In the syntax summary for a function in a programming language,
24 <sgmltag>ParamDef</sgmltag> provides the description of a parameter to the
25 function. Typically, this includes the data type of the parameter
26 and its name. For parameters that are pointers to functions, it also
27 includes a summary of the nested parameters.
28 </para>
29
30 <para>
31 Within the <sgmltag>ParamDef</sgmltag>, the parameter name is identified with
32 <sgmltag>Parameter</sgmltag>, and the rest of the content is assumed to be the
33 data type.
34 </para>
35
36 <para>
37 In the following definition, <parameter>str</parameter> is the name of the
38 parameter and <type>char *</type> is its type:
39 <screen>
40 <![CDATA[
41 <paramdef>char *<parameter>str</parameter></paramdef>
42 ]]>
43 </screen>
44 </para>
45
46 <para>
47 Sometimes a data type requires punctuation on both sides of the
48 parameter. For example, the <parameter>a</parameter> parameter in this
49 definition is an array of
50 <type>char *</type>:
51 <screen>
52 <![CDATA[
53 <paramdef>char *<parameter>a</parameter>[]</paramdef>
54 ]]>
55 </screen>
56 </para>
57
58 <refsect2><title>Processing expectations</title>
59 <para>
60 &format.inline; For a complete description of the processing expectations,
61 see <sgmltag>FuncSynopsis</sgmltag>.
62 </para>
63 </refsect2>
64
65
66
67 &paramdef.parents.gen;
68 &paramdef.children.gen;
69 </refsect1>
70 <refsect1 condition='ref.elem.seealso'><title>See Also</title>
71 &paramdef.seealso.gen;
72 </refsect1>
73 <refsect1><title>Examples</title>
74
75 <informalexample role="example-source">
76 <programlisting>&paramdef.example.1.txt;</programlisting>
77 </informalexample>
78
79 <anchor id="ex.os.paramdef.1" role="HACK-ex.out.start"/>
80 &paramdef.example.1.gen;
81 <anchor id="ex.oe.paramdef.1" role="HACK-ex.out.end"/>
82
83 &paramdef.example.seealso.gen;
84 </refsect1>
85 </refentry>
86