xref: /netbsd-src/external/gpl3/binutils.old/dist/bfd/doc/doc.str (revision 75fd0b742a7e4a64301bc6c44e9bc5240c58bb92)
1*75fd0b74Schristos: DOCDD
2*75fd0b74Schristos	skip_past_newline
3*75fd0b74Schristos	get_stuff_in_command kill_bogus_lines catstr
4*75fd0b74Schristos	;
5*75fd0b74Schristos
6*75fd0b74Schristos: ENDDD
7*75fd0b74Schristos	skip_past_newline
8*75fd0b74Schristos	;
9*75fd0b74Schristos
10*75fd0b74Schristos: EXAMPLE
11*75fd0b74Schristos	skip_past_newline
12*75fd0b74Schristos	get_stuff_in_command kill_bogus_lines do_fancy_stuff translatecomments
13*75fd0b74Schristos	courierize catstr
14*75fd0b74Schristos
15*75fd0b74Schristos	;
16*75fd0b74Schristos
17*75fd0b74Schristos: INODE
18*75fd0b74Schristos	"@node " catstr skip_past_newline copy_past_newline catstr
19*75fd0b74Schristos	;
20*75fd0b74Schristos
21*75fd0b74Schristos: CODE_FRAGMENT
22*75fd0b74Schristos	EXAMPLE
23*75fd0b74Schristos	;
24*75fd0b74Schristos
25*75fd0b74Schristos: COMMENT
26*75fd0b74Schristos	skip_past_newline
27*75fd0b74Schristos	get_stuff_in_command
28*75fd0b74Schristos	drop
29*75fd0b74Schristos	;
30*75fd0b74Schristos
31*75fd0b74Schristos: SYNOPSIS
32*75fd0b74Schristos	skip_past_newline
33*75fd0b74Schristos	"@strong{Synopsis}\n" catstr
34*75fd0b74Schristos	"@example\n" catstr
35*75fd0b74Schristos	get_stuff_in_command
36*75fd0b74Schristos	kill_bogus_lines
37*75fd0b74Schristos	indent
38*75fd0b74Schristos	catstr
39*75fd0b74Schristos	"@end example\n" catstr
40*75fd0b74Schristos
41*75fd0b74Schristos	;
42*75fd0b74Schristos
43*75fd0b74Schristos: func
44*75fd0b74Schristos	"@findex "	- a
45*75fd0b74Schristos	skip_past_newline
46*75fd0b74Schristos	copy_past_newline
47*75fd0b74Schristos	dup		- a x x
48*75fd0b74Schristos	"@subsubsection @code{" - a x x b
49*75fd0b74Schristos	swap
50*75fd0b74Schristos	remchar
51*75fd0b74Schristos	"}\n" - a x b x c
52*75fd0b74Schristos	catstr 	catstr 	catstr 	catstr 	catstr
53*75fd0b74Schristos	;
54*75fd0b74Schristos
55*75fd0b74Schristos: FUNCTION
56*75fd0b74Schristos	"@findex "	- a
57*75fd0b74Schristos	skip_past_newline
58*75fd0b74Schristos	copy_past_newline
59*75fd0b74Schristos	dup		- a x x
60*75fd0b74Schristos	"@subsubsection @code{" - a x x b
61*75fd0b74Schristos	swap
62*75fd0b74Schristos	remchar
63*75fd0b74Schristos	"}\n" - a x b x c
64*75fd0b74Schristos	catstr 	catstr 	catstr 	catstr 	catstr
65*75fd0b74Schristos	;
66*75fd0b74Schristos
67*75fd0b74Schristos: bodytext
68*75fd0b74Schristos	get_stuff_in_command
69*75fd0b74Schristos	bulletize
70*75fd0b74Schristos	kill_bogus_lines
71*75fd0b74Schristos	do_fancy_stuff
72*75fd0b74Schristos	courierize
73*75fd0b74Schristos	catstr
74*75fd0b74Schristos	"\n" catstr
75*75fd0b74Schristos	;
76*75fd0b74Schristos
77*75fd0b74Schristos: asection
78*75fd0b74Schristos	skip_past_newline
79*75fd0b74Schristos	catstr
80*75fd0b74Schristos	copy_past_newline
81*75fd0b74Schristos	do_fancy_stuff catstr
82*75fd0b74Schristos	bodytext
83*75fd0b74Schristos	;
84*75fd0b74Schristos
85*75fd0b74Schristos: SECTION
86*75fd0b74Schristos	"@section " asection  ;
87*75fd0b74Schristos
88*75fd0b74Schristos: SUBSECTION
89*75fd0b74Schristos	"@subsection " asection  ;
90*75fd0b74Schristos
91*75fd0b74Schristos: SUBSUBSECTION
92*75fd0b74Schristos	"@subsubsection " asection  ;
93*75fd0b74Schristos
94*75fd0b74Schristos: subhead
95*75fd0b74Schristos	skip_past_newline
96*75fd0b74Schristos	bodytext
97*75fd0b74Schristos	;
98*75fd0b74Schristos
99*75fd0b74Schristos
100*75fd0b74Schristos
101*75fd0b74Schristos
102*75fd0b74Schristos: DESCRIPTION
103*75fd0b74Schristos	"@strong{Description}@*\n" catstr subhead ;
104*75fd0b74Schristos
105*75fd0b74Schristos: RETURNS
106*75fd0b74Schristos	"@strong{Returns}@*\n" catstr subhead ;
107*75fd0b74Schristos
108*75fd0b74Schristos: INTERNAL_FUNCTION
109*75fd0b74Schristos	func ;
110*75fd0b74Schristos
111*75fd0b74Schristos
112*75fd0b74Schristos: INTERNAL_DEFINITION
113*75fd0b74Schristos	func ;
114*75fd0b74Schristos
115*75fd0b74Schristos
116*75fd0b74Schristos: INTERNAL
117*75fd0b74Schristos	func ;
118*75fd0b74Schristos
119*75fd0b74Schristos: TYPEDEF
120*75fd0b74Schristos	FUNCTION ;
121*75fd0b74Schristos
122*75fd0b74Schristos: SENUM
123*75fd0b74Schristos	skip_past_newline
124*75fd0b74Schristos	"Here are the possible values for @code{enum "
125*75fd0b74Schristos	copy_past_newline remchar catstr
126*75fd0b74Schristos	"}:\n\n" catstr catstr
127*75fd0b74Schristos	;
128*75fd0b74Schristos: ENUM
129*75fd0b74Schristos	skip_past_newline
130*75fd0b74Schristos	"@deffn {} "
131*75fd0b74Schristos	copy_past_newline catstr catstr
132*75fd0b74Schristos	;
133*75fd0b74Schristos: ENUMX
134*75fd0b74Schristos	skip_past_newline
135*75fd0b74Schristos	"@deffnx {} "
136*75fd0b74Schristos	copy_past_newline catstr
137*75fd0b74Schristos	catstr
138*75fd0b74Schristos	;
139*75fd0b74Schristos: ENUMEQ
140*75fd0b74Schristos	skip_past_newline
141*75fd0b74Schristos	"@deffn {} "
142*75fd0b74Schristos	copy_past_newline catstr catstr
143*75fd0b74Schristos	skip_past_newline
144*75fd0b74Schristos	;
145*75fd0b74Schristos: ENUMEQX
146*75fd0b74Schristos	skip_past_newline
147*75fd0b74Schristos	"@deffnx {} "
148*75fd0b74Schristos	copy_past_newline catstr
149*75fd0b74Schristos	catstr
150*75fd0b74Schristos	skip_past_newline
151*75fd0b74Schristos	;
152*75fd0b74Schristos: ENUMDOC
153*75fd0b74Schristos	skip_past_newline
154*75fd0b74Schristos	get_stuff_in_command
155*75fd0b74Schristos	strip_trailing_newlines
156*75fd0b74Schristos	catstr
157*75fd0b74Schristos	"\n@end deffn\n" catstr
158*75fd0b74Schristos	;
159