summaryrefslogtreecommitdiffstats
path: root/doc/groff.html.node/ms-Naming-Conventions.html
blob: db319550f5e7e0ce4e82dd603d4e0223a06fa89d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.0.3, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- This manual documents GNU troff version 1.23.0.

Copyright � 1994-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
copy of the license is included in the section entitled "GNU Free
Documentation License". -->
<title>ms Naming Conventions (The GNU Troff Manual)</title>

<meta name="description" content="ms Naming Conventions (The GNU Troff Manual)">
<meta name="keywords" content="ms Naming Conventions (The GNU Troff Manual)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Request-Index.html" rel="index" title="Request Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="ms.html" rel="up" title="ms">
<link href="ms-Legacy-Features.html" rel="prev" title="ms Legacy Features">
<style type="text/css">
<!--
ul.mark-bullet {list-style-type: disc}
-->
</style>


</head>

<body lang="en">
<div class="subsection-level-extent" id="ms-Naming-Conventions">
<div class="nav-panel">
<p>
Previous: <a href="ms-Legacy-Features.html" accesskey="p" rel="prev">Legacy Features</a>, Up: <a href="ms.html" accesskey="u" rel="up"><samp class="file">ms</samp></a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Request-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsection" id="Naming-Conventions">4.6.9 Naming Conventions</h4>
<a class="index-entry-id" id="index-ms-macros_002c-naming-conventions"></a>
<a class="index-entry-id" id="index-naming-conventions_002c-ms-macros"></a>

<p>The following conventions are used for names of macros, strings, and
registers.  External names available to documents that use the
<code class="code">groff</code> <samp class="file">ms</samp> macros contain only uppercase letters and digits.
</p>
<p>Internally, the macros are divided into modules.  Conventions for
identifier names are as follows.
</p>
<ul class="itemize mark-bullet">
<li>Names used only within one module are of the form
<var class="var">module</var><code class="code">*</code><var class="var">name</var>.

</li><li>Names used outside the module in which they are defined are of the form
<var class="var">module</var><code class="code">@</code><var class="var">name</var>.

</li><li>Names associated with a particular environment are of the form
<var class="var">environment</var><code class="code">:</code><var class="var">name</var>; these are used only within the
<code class="code">par</code> module.

</li><li><var class="var">name</var> does not have a module prefix.

</li><li>Constructed names used to implement arrays are of the form
<var class="var">array</var><code class="code">!</code><var class="var">index</var>.
</li></ul>

<p>Thus the <code class="code">groff</code> <samp class="file">ms</samp> macros reserve the following names.
</p>
<ul class="itemize mark-bullet">
<li>Names containing the characters <code class="code">*</code>, <code class="code">@</code>, and&nbsp;<code class="code">:</code>.

</li><li>Names containing only uppercase letters and digits.
</li></ul>



</div>



</body>
</html>