home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / groff-1.09-bin.lha / GNU / lib / groff / tmac / mdoc / doc-common next >
Text File  |  1994-09-02  |  10KB  |  434 lines

  1. .\" Copyright (c) 1991 The Regents of the University of California.
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\"    notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\"    notice, this list of conditions and the following disclaimer in the
  11. .\"    documentation and/or other materials provided with the distribution.
  12. .\" 3. All advertising materials mentioning features or use of this software
  13. .\"    must display the following acknowledgement:
  14. .\"    This product includes software developed by the University of
  15. .\"    California, Berkeley and its contributors.
  16. .\" 4. Neither the name of the University nor the names of its contributors
  17. .\"    may be used to endorse or promote products derived from this software
  18. .\"    without specific prior written permission.
  19. .\"
  20. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. .\" SUCH DAMAGE.
  31. .\"
  32. .\"     @(#)doc-common    5.7 (Berkeley) 8/5/91
  33. .\"
  34. .nr %A 1
  35. .nr %J 1
  36. .nr %N 1
  37. .nr %O 1
  38. .nr %R 1
  39. .nr %T 1
  40. .nr %V 1
  41. .nr Ad 12n
  42. .nr Ac 3
  43. .nr Ao 12n
  44. .nr Ap 2
  45. .nr An 12n
  46. .nr Aq 12n
  47. .nr Ar 12n
  48. .nr Bc 3
  49. .nr Bl 1
  50. .nr Bo 12n
  51. .nr Bq 12n
  52. .nr Bx 12n
  53. .nr Cd 12n
  54. .nr Cm 10n
  55. .nr Co 15n
  56. .nr Cx 20n
  57. .nr Dc 3
  58. .nr Do 10n
  59. .nr Dq 12n
  60. .nr Ds 6n
  61. .nr Dq 12n
  62. .nr Dv 12n
  63. .nr tI \n(Dsu
  64. .nr Ec 3
  65. .nr El 1
  66. .nr Eo 12n
  67. .nr Eq 12n
  68. .nr Em 10n
  69. .nr Er 12n
  70. .nr Ev 15n
  71. .nr Ex 10n
  72. .nr Fa 12n
  73. .nr Fl 10n
  74. .nr Fc 3
  75. .nr Fo 16n
  76. .nr Fn 16n
  77. .nr Hl 1
  78. .nr I1 6n
  79. .nr I2 12n
  80. .nr I3 18n
  81. .nr Ic 10n
  82. .nr Li 16n
  83. .nr Ms 6n
  84. .nr Nm 10n
  85. .nr No 12n
  86. .nr Ns 2
  87. .nr Oo 10n
  88. .nr Oc 3
  89. .nr Op 14n
  90. .nr Pa 32n
  91. .nr Pf 12n
  92. .nr Pc 3
  93. .nr Po 12n
  94. .nr Pq 12n
  95. .nr Ql 16n
  96. .nr Qc 3
  97. .nr Qo 12n
  98. .nr Qq 12n
  99. .nr Sc 3
  100. .nr So 12n
  101. .nr Sq 12n
  102. .nr Sy 6n
  103. .nr Sx 16n
  104. .nr Ra 1
  105. .nr Rj 1
  106. .nr Rn 1
  107. .nr Ro 1
  108. .nr Rr 1
  109. .nr Rt 1
  110. .nr Rv 1
  111. .nr Tn 10n
  112. .nr Ta 1
  113. .nr Tv 1
  114. .nr Tx 22n
  115. .nr Ux 10n
  116. .nr Va 12n
  117. .nr Xc 3
  118. .nr Xo 1
  119. .nr Xr 10n
  120. .ds sV \& \&
  121. .ds hV \&\ \&
  122. .ds iV \& \&
  123. .ds tV \&\\t\&
  124. .nr z. 3
  125. .nr z, 3
  126. .nr z: 3
  127. .nr z; 3
  128. .nr z( 4
  129. .nr z) 3
  130. .nr z[ 4
  131. .nr z] 3
  132. .ds z( z)
  133. .ds z[ z]
  134. .ds z< z>
  135. .nr z0 0
  136. .nr z1 0
  137. .nr z2 0
  138. .nr z3 0
  139. .nr z4 0
  140. .nr z5 0
  141. .nr z6 0
  142. .nr z7 0
  143. .nr z8 0
  144. .nr z9 0
  145. .nr z# 0
  146. .de Dt
  147. .ds dT UNTITLED
  148. .ds vT LOCAL
  149. .ds cH Null
  150. .if !"\\$1"" .ds dT \\$1
  151. .if !"\\$2"" \{\
  152. .    ds cH \\$2
  153. .        if \\$2>=1 .if \\$2<=8 \{\
  154. .            ds vT UNIX Reference Manual
  155. .            if \\$2>1 .if \\$2<6 .ds vT UNIX Programmer's Manual
  156. .            if "\\$2"8" .ds vT UNIX System Manager's Manual
  157. .            nr sN \\$2
  158. .        \}
  159. .        if "\\$2"unass"  .ds vT DRAFT
  160. .        if "\\$2"draft"  .ds vT DRAFT
  161. .        if "\\$2"paper"  .ds vT UNTITLED
  162. .\}
  163. .if !"\\$3"" \{\
  164. .    if "\\$3"USD"   .ds vT UNIX User's Supplementary Documents
  165. .    if "\\$3"PS1"   .ds vT UNIX Programmers's Supplementary Documents
  166. .    if "\\$3"AMD"   .ds vT UNIX Ancestral Manual Documents
  167. .    if "\\$3"SMM"   .ds vT UNIX System Manager's Manual
  168. .    if "\\$3"URM"   .ds vT UNIX Reference Manual
  169. .    if "\\$3"PRM"   .ds vT UNIX Programmers's Manual
  170. .    if "\\$3"IND"   .ds vT UNIX Manual Master Index
  171. .    if "\\$3"LOCAL" .ds vT UNIX Local Manual
  172. .    if "\\$3"tahoe" .as vT \ (Tahoe Architecture)
  173. .    if "\\$3"vax" .as vT \ (VAX Architecture)
  174. .    if "\\$3"hp300" .as vT \ (HP300 Architecture)
  175. .    if "\\*(vT"LOCAL" .ds vT \\$3
  176. .\}
  177. ..
  178. .de Os
  179. .ds oS Null
  180. .if "\\$1"" \{\
  181. .    ds oS BSD Experimental
  182. .\}
  183. .if "\\$2"" \{\
  184. .    ds aa Non-Null
  185. .\}
  186. .if "\\$1"ATT"   \{\
  187. .    ds oS AT&T
  188. .    if "\\$2""    .as oS \0UNIX
  189. .    if "\\$2"7th" .as oS \07th Edition
  190. .    if "\\$2"7"   .as oS \07th Edition
  191. .    if "\\$2"III" .as oS \0System III
  192. .    if "\\$2"3"   .as oS \0System III
  193. .    if "\\$2"V"   .as oS \0System V
  194. .    if "\\$2"V.2" .as oS \0System V Release 2
  195. .    if "\\$2"V.3" .as oS \0System V Release 3
  196. .    if "\\$2"V.4" .as oS \0System V Release 4
  197. .\}
  198. .if "\\$1"BSD" \{\
  199. .    if "\\$2"3"    .ds oS 3rd Berkeley Distribution
  200. .    if "\\$2"4"    .ds oS 4th Berkeley Distribution
  201. .    if "\\$2"4.1"  .ds oS 4.1 Berkeley Distribution
  202. .    if "\\$2"4.2"  .ds oS 4.2 Berkeley Distribution
  203. .    if "\\$2"4.3"  .ds oS 4.3 Berkeley Distribution
  204. .    if "\\$2"4.3T" .ds oS 4.3-Tahoe Berkeley Distribution
  205. .    if "\\$2"4.3R" .ds oS 4.3-Reno Berkeley Distribution
  206. .    if "\\$2"4.3t" .ds oS 4.3-Tahoe Berkeley Distribution
  207. .    if "\\$2"4.3r" .ds oS 4.3-Reno Berkeley Distribution
  208. .    if "\\$2"4.4"  .ds oS BSD Experimental
  209. .\}
  210. .if "\\*(oS"Null" .ds oS \0\\$1
  211. .if "\\*(aa"Non-Null" .as oS \0\\$2
  212. .rm aa
  213. ..
  214. .de Dd
  215. .if !"\\*(dD"" .nr gX 1
  216. .ie \\n(.$>0 \{\
  217. .    ie \\n(.$==3 \{\
  218. .        ds dD \\$1 \\$2 \\$3
  219. .    \}
  220. .    el \{\
  221. .        if "\\n(mo"1"  .ds dD January
  222. .        if "\\n(mo"2"  .ds dD February
  223. .        if "\\n(mo"3"  .ds dD March
  224. .        if "\\n(mo"4"  .ds dD April
  225. .        if "\\n(mo"5"  .ds dD May
  226. .        if "\\n(mo"6"  .ds dD June
  227. .        if "\\n(mo"7"  .ds dD July
  228. .        if "\\n(mo"8"  .ds dD August
  229. .        if "\\n(mo"9"  .ds dD September
  230. .        if "\\n(mo"10" .ds dD October
  231. .        if "\\n(mo"11" .ds dD November
  232. .        if "\\n(mo"12" .ds dD December
  233. .        as dD \&\ \\n(dy, 19\\n(yr
  234. .    \}
  235. .\}
  236. .el \{\
  237. .    ds dD Epoch
  238. .\}
  239. ..
  240. .de hM
  241. .ev 1
  242. .pL
  243. .if !\\n(cR 'sp \\n(Hmu
  244. .tl @\\*(Hs\\*(hT\fP@\\*(Vs\\*(vT\fP@\\*(Hs\\*(hT\fP@
  245. 'sp \\n(Hmu
  246. .ev
  247. ..
  248. .de fM
  249. .ie \\n(cR 'br
  250. .el \{\
  251. .    ev 1
  252. .    pL
  253. .    if !\\n(cR \{\
  254. '        sp \\n(Fmu
  255. .        tl @\\*(Hs\\*(oS\fP@\\*(Vs\\*(dD\fP@%@
  256. '        bp
  257. .    \}
  258. .    ev
  259. .\}
  260. ..
  261. .de lM
  262. .fl
  263. .if \\n(cR \{\
  264. '    sp
  265. .    tl @\\*(Hs\\*(oS\fP@\\*(Vs\\*(dD\fP@%@
  266. .       pl \\n(nlu
  267. .\}
  268. ..
  269. .de Pp
  270. .sp \\n(Ppu
  271. .ne 2
  272. .ns
  273. ..
  274. .de Lp
  275. .Pp
  276. ..
  277. .de LP
  278. .tm Not a \-mdoc command: .LP
  279. ..
  280. .de PP
  281. .tm Not a \-mdoc command: .PP
  282. ..
  283. .de pp
  284. .tm Not a \-mdoc command: .pp
  285. ..
  286. .de Nd
  287. \&\-\& \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
  288. ..
  289. .de Ss
  290. .sp
  291. .ne 2
  292. .ti -.25i
  293. \&\\*(sH\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9
  294. \&\fP\s0
  295. .ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
  296. .if !\\n(cR .ne 2
  297. .br
  298. ..
  299. .de Rd
  300. .tm MDOC REGISTER DUMP
  301. .tm Db==\\n(Db register DEBUG MODE
  302. .tm L[0-9] registers - stack of list types
  303. .tm L0==\\n(L0
  304. .tm L1==\\n(L1
  305. .tm L2==\\n(L2
  306. .tm L3==\\n(L3
  307. .tm L4==\\n(L4
  308. .tm L5==\\n(L5
  309. .tm L6==\\n(L6
  310. .tm L7==\\n(L7
  311. .tm L8==\\n(L8
  312. .tm L9==\\n(L9
  313. .tm O[0-9] registers - stack of indent
  314. .tm O0==\\n(O0
  315. .tm O1==\\n(O1
  316. .tm O2==\\n(O2
  317. .tm O3==\\n(O3
  318. .tm O4==\\n(O4
  319. .tm O5==\\n(O5
  320. .tm O6==\\n(O6
  321. .tm O7==\\n(O7
  322. .tm O8==\\n(O8
  323. .tm O9==\\n(O9
  324. .tm aC==\\n(aC register argument counter (aV/fV)
  325. .tm aJ==\\n(aJ register (for vR)
  326. .tm aN==\\n(aN register
  327. .tm aP==\\n(aP register argument pointer (aV)
  328. .tm aT==\\n(aT register argument type
  329. .tm aa==\\n(aa local register
  330. .tm bK==\\n(bK register - Book Name flag
  331. .tm cF==\\n(cF register save current font
  332. .tm cI==\\n(cI register - column indent width
  333. .tm cZ==\\n(cZ register save current font size
  334. .tm dK==\\n(dK register - Date flag
  335. .tm d[0-9] registers - display-type stack
  336. .tm d0==\\n(d0
  337. .tm d1==\\n(d1
  338. .tm d2==\\n(d2
  339. .tm d3==\\n(d3
  340. .tm d4==\\n(d4
  341. .tm d5==\\n(d5
  342. .tm d6==\\n(d6
  343. .tm d7==\\n(d7
  344. .tm d8==\\n(d8
  345. .tm d9==\\n(d9
  346. .tm dZ==\\n(dZ register diversion count
  347. .tm fD==\\n(fD register subroutine test (in synopsis only)
  348. .tm fV==\\n(fV register argument counter (must set to \\n(.$ prior to
  349. .tm fY==\\n(fY register - dick with old style function declarations (fortran)
  350. .tm fZ==\\n(fZ register also subroutine count (in synopsis only)
  351. .tm h[0-9] register horizontal tag stack (continuous if 1, break if
  352. .tm h0==\\n(h0
  353. .tm h1==\\n(h1
  354. .tm h2==\\n(h2
  355. .tm h3==\\n(h3
  356. .tm h4==\\n(h4
  357. .tm h5==\\n(h5
  358. .tm h6==\\n(h6
  359. .tm h7==\\n(h7
  360. .tm h8==\\n(h8
  361. .tm h9==\\n(h9
  362. .tm iD==\\n(iD local register
  363. .tm iI==\\n(iI local register (indent for inline debug mode)
  364. .tm iN==\\n(iN re