annotate gcc/ada/stylesw.ads @ 136:4627f235cf2a

fix c-next example
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:11:56 +0900
parents 84e7813d76e9
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT COMPILER COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- S T Y L E S W --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
9 -- Copyright (C) 1992-2018, Free Software Foundation, Inc. --
111
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- GNAT is free software; you can redistribute it and/or modify it under --
kono
parents:
diff changeset
12 -- terms of the GNU General Public License as published by the Free Soft- --
kono
parents:
diff changeset
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
kono
parents:
diff changeset
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
kono
parents:
diff changeset
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
kono
parents:
diff changeset
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
kono
parents:
diff changeset
17 -- for more details. You should have received a copy of the GNU General --
kono
parents:
diff changeset
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
kono
parents:
diff changeset
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
kono
parents:
diff changeset
20 -- --
kono
parents:
diff changeset
21 -- GNAT was originally developed by the GNAT team at New York University. --
kono
parents:
diff changeset
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
kono
parents:
diff changeset
23 -- --
kono
parents:
diff changeset
24 ------------------------------------------------------------------------------
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 -- This package contains the style switches used for setting style options.
kono
parents:
diff changeset
27 -- The only clients of this package are the body of Style and the body of
kono
parents:
diff changeset
28 -- Switches. All other style checking issues are handled using the public
kono
parents:
diff changeset
29 -- interfaces in the spec of Style.
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 with Types; use Types;
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 package Stylesw is
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 --------------------------
kono
parents:
diff changeset
36 -- Style Check Switches --
kono
parents:
diff changeset
37 --------------------------
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 -- These flags are used to control the details of the style checking
kono
parents:
diff changeset
40 -- options. The default values shown here correspond to no style checking.
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 -- If any of these values is set to a non-default value, then
kono
parents:
diff changeset
43 -- Opt.Style_Check is set True to activate calls to this package.
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 -- The actual mechanism for setting these switches to other than default
kono
parents:
diff changeset
46 -- values is via the Set_Style_Check_Options procedure or through a call to
kono
parents:
diff changeset
47 -- Set_Default_Style_Check_Options. They should not be set directly in any
kono
parents:
diff changeset
48 -- other manner.
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 Style_Check_Array_Attribute_Index : Boolean := False;
kono
parents:
diff changeset
51 -- This can be set True by using the -gnatyA switch. If it is True then
kono
parents:
diff changeset
52 -- index numbers for array attributes (like Length) are required to be
kono
parents:
diff changeset
53 -- absent for one-dimensional arrays and present for multi-dimensional
kono
parents:
diff changeset
54 -- array attribute references.
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 Style_Check_Attribute_Casing : Boolean := False;
kono
parents:
diff changeset
57 -- This can be set True by using the -gnatya switch. If it is True, then
kono
parents:
diff changeset
58 -- attribute names (including keywords such as digits used as attribute
kono
parents:
diff changeset
59 -- names) must be in mixed case.
kono
parents:
diff changeset
60
kono
parents:
diff changeset
61 Style_Check_Blanks_At_End : Boolean := False;
kono
parents:
diff changeset
62 -- This can be set True by using the -gnatyb switch. If it is True, then
kono
parents:
diff changeset
63 -- spaces at the end of lines are not permitted.
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 Style_Check_Blank_Lines : Boolean := False;
kono
parents:
diff changeset
66 -- This can be set True by using the -gnatyu switch. If it is True, then
kono
parents:
diff changeset
67 -- multiple blank lines are not permitted, and there may not be a blank
kono
parents:
diff changeset
68 -- line at the end of the file.
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 Style_Check_Boolean_And_Or : Boolean := False;
kono
parents:
diff changeset
71 -- This can be set True by using the -gnatyB switch. If it is True, then
kono
parents:
diff changeset
72 -- the use of AND THEN/OR ELSE rather than AND/OR is required except for
kono
parents:
diff changeset
73 -- the following cases:
kono
parents:
diff changeset
74 --
kono
parents:
diff changeset
75 -- a) Both operands are simple Boolean constants or variables
kono
parents:
diff changeset
76 -- b) Both operands are of a modular type
kono
parents:
diff changeset
77 -- c) Both operands are of an array type
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 Style_Check_Comments : Boolean := False;
kono
parents:
diff changeset
80 -- This can be set True by using the -gnatyc switch. If it is True, then
kono
parents:
diff changeset
81 -- comments are style checked as follows:
kono
parents:
diff changeset
82 --
kono
parents:
diff changeset
83 -- All comments must be at the start of the line, or the first minus must
kono
parents:
diff changeset
84 -- be preceded by at least one space.
kono
parents:
diff changeset
85 --
kono
parents:
diff changeset
86 -- For a comment that is not at the start of a line, the only requirement
kono
parents:
diff changeset
87 -- is that a space follow the comment characters.
kono
parents:
diff changeset
88 --
kono
parents:
diff changeset
89 -- For a comment that is at the start of the line, one of the following
kono
parents:
diff changeset
90 -- conditions must hold:
kono
parents:
diff changeset
91 --
kono
parents:
diff changeset
92 -- The comment characters are the only non-blank characters on the line
kono
parents:
diff changeset
93 --
kono
parents:
diff changeset
94 -- The comment characters are followed by an exclamation point (the
kono
parents:
diff changeset
95 -- sequence --! is used by gnatprep for marking deleted lines).
kono
parents:
diff changeset
96 --
kono
parents:
diff changeset
97 -- The comment characters are followed by two space characters if
kono
parents:
diff changeset
98 -- Comment_Spacing = 2, else by one character if Comment_Spacing = 1.
kono
parents:
diff changeset
99 --
kono
parents:
diff changeset
100 -- The line consists entirely of minus signs
kono
parents:
diff changeset
101 --
kono
parents:
diff changeset
102 -- The comment characters are followed by a single space, and the last
kono
parents:
diff changeset
103 -- two characters on the line are also comment characters.
kono
parents:
diff changeset
104 --
kono
parents:
diff changeset
105 -- Note: the reason for the last two conditions is to allow "boxed"
kono
parents:
diff changeset
106 -- comments where only a single space separates the comment characters.
kono
parents:
diff changeset
107
kono
parents:
diff changeset
108 Style_Check_Comments_Spacing : Nat range 1 .. 2;
kono
parents:
diff changeset
109 -- Spacing required for comments, valid only if Style_Check_Comments true.
kono
parents:
diff changeset
110
kono
parents:
diff changeset
111 Style_Check_DOS_Line_Terminator : Boolean := False;
kono
parents:
diff changeset
112 -- This can be set true by using the -gnatyd switch. If it is True, then
kono
parents:
diff changeset
113 -- the line terminator must be a single LF, without an associated CR (e.g.
kono
parents:
diff changeset
114 -- DOS line terminator sequence CR/LF not allowed).
kono
parents:
diff changeset
115
kono
parents:
diff changeset
116 Style_Check_End_Labels : Boolean := False;
kono
parents:
diff changeset
117 -- This can be set True by using the -gnatye switch. If it is True, then
kono
parents:
diff changeset
118 -- optional END labels must always be present.
kono
parents:
diff changeset
119
kono
parents:
diff changeset
120 Style_Check_Form_Feeds : Boolean := False;
kono
parents:
diff changeset
121 -- This can be set True by using the -gnatyf switch. If it is True, then
kono
parents:
diff changeset
122 -- form feeds and vertical tabs are not allowed in the source text.
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 Style_Check_Horizontal_Tabs : Boolean := False;
kono
parents:
diff changeset
125 -- This can be set True by using the -gnatyh switch. If it is True, then
kono
parents:
diff changeset
126 -- horizontal tabs are not allowed in source text.
kono
parents:
diff changeset
127
kono
parents:
diff changeset
128 Style_Check_If_Then_Layout : Boolean := False;
kono
parents:
diff changeset
129 -- This can be set True by using the -gnatyi switch. If it is True, then a
kono
parents:
diff changeset
130 -- THEN keyword must either appear on the same line as the IF, or on a line
kono
parents:
diff changeset
131 -- all on its own.
kono
parents:
diff changeset
132 --
kono
parents:
diff changeset
133 -- This permits one of two styles for IF-THEN layout. Either the IF and
kono
parents:
diff changeset
134 -- THEN keywords are on the same line, where the condition is short enough,
kono
parents:
diff changeset
135 -- or the conditions are continued over to the lines following the IF and
kono
parents:
diff changeset
136 -- the THEN stands on its own. For example:
kono
parents:
diff changeset
137 --
kono
parents:
diff changeset
138 -- if X > Y then
kono
parents:
diff changeset
139 --
kono
parents:
diff changeset
140 -- if X > Y
kono
parents:
diff changeset
141 -- and then Y < Z
kono
parents:
diff changeset
142 -- then
kono
parents:
diff changeset
143 --
kono
parents:
diff changeset
144 -- if X > Y and then Z > 0
kono
parents:
diff changeset
145 -- then
kono
parents:
diff changeset
146 --
kono
parents:
diff changeset
147 -- are allowed, but
kono
parents:
diff changeset
148 --
kono
parents:
diff changeset
149 -- if X > Y
kono
parents:
diff changeset
150 -- and then B > C then
kono
parents:
diff changeset
151 --
kono
parents:
diff changeset
152 -- is not allowed.
kono
parents:
diff changeset
153
kono
parents:
diff changeset
154 Style_Check_Indentation : Column_Number range 0 .. 9 := 0;
kono
parents:
diff changeset
155 -- This can be set non-zero by using the -gnaty? (? a digit) switch. If
kono
parents:
diff changeset
156 -- it is non-zero it activates indentation checking with the indicated
kono
parents:
diff changeset
157 -- indentation value. A value of zero turns off checking. The requirement
kono
parents:
diff changeset
158 -- is that any new statement, line comment, declaration or keyword such
kono
parents:
diff changeset
159 -- as END, start on a column that is a multiple of the indentation value.
kono
parents:
diff changeset
160
kono
parents:
diff changeset
161 Style_Check_Keyword_Casing : Boolean := False;
kono
parents:
diff changeset
162 -- This can be set True by using the -gnatyk switch. If it is True, then
kono
parents:
diff changeset
163 -- keywords are required to be in all lower case. This rule does not apply
kono
parents:
diff changeset
164 -- to keywords such as digits appearing as an attribute name.
kono
parents:
diff changeset
165
kono
parents:
diff changeset
166 Style_Check_Layout : Boolean := False;
kono
parents:
diff changeset
167 -- This can be set True by using the -gnatyl switch. If it is True, it
kono
parents:
diff changeset
168 -- activates checks that constructs are indented as suggested by the
kono
parents:
diff changeset
169 -- examples in the RM syntax, e.g. that the ELSE keyword must line up
kono
parents:
diff changeset
170 -- with the IF keyword.
kono
parents:
diff changeset
171
kono
parents:
diff changeset
172 Style_Check_Max_Line_Length : Boolean := False;
kono
parents:
diff changeset
173 -- This can be set True by using the -gnatym/M switches. If it is True, it
kono
parents:
diff changeset
174 -- activates checking for a maximum line length of Style_Max_Line_Length
kono
parents:
diff changeset
175 -- characters.
kono
parents:
diff changeset
176
kono
parents:
diff changeset
177 Style_Check_Max_Nesting_Level : Boolean := False;
kono
parents:
diff changeset
178 -- This can be set True by using -gnatyLnnn with a value other than zero
kono
parents:
diff changeset
179 -- (a value of zero resets it to False). If True, it activates checking
kono
parents:
diff changeset
180 -- the maximum nesting level against Style_Max_Nesting_Level.
kono
parents:
diff changeset
181
kono
parents:
diff changeset
182 Style_Check_Missing_Overriding : Boolean := False;
kono
parents:
diff changeset
183 -- This can be set True by using the -gnatyO switch. If it is True, then
kono
parents:
diff changeset
184 -- "overriding" is required in subprogram declarations and bodies where
kono
parents:
diff changeset
185 -- appropriate. Note that "not overriding" is never required.
kono
parents:
diff changeset
186
kono
parents:
diff changeset
187 Style_Check_Mode_In : Boolean := False;
kono
parents:
diff changeset
188 -- This can be set True by using -gnatyI. If True, it activates checking
kono
parents:
diff changeset
189 -- that mode IN is not used on its own (since it is the default).
kono
parents:
diff changeset
190
kono
parents:
diff changeset
191 Style_Check_Order_Subprograms : Boolean := False;
kono
parents:
diff changeset
192 -- This can be set True by using the -gnatyo switch. If it is True, then
kono
parents:
diff changeset
193 -- names of subprogram bodies must be in alphabetical order (not taking
kono
parents:
diff changeset
194 -- casing into account).
kono
parents:
diff changeset
195
kono
parents:
diff changeset
196 Style_Check_Pragma_Casing : Boolean := False;
kono
parents:
diff changeset
197 -- This can be set True by using the -gnatyp switch. If it is True, then
kono
parents:
diff changeset
198 -- pragma names must use mixed case.
kono
parents:
diff changeset
199
kono
parents:
diff changeset
200 Style_Check_References : Boolean := False;
kono
parents:
diff changeset
201 -- This can be set True by using the -gnatyr switch. If it is True, then
kono
parents:
diff changeset
202 -- all references to declared identifiers are checked. The requirement
kono
parents:
diff changeset
203 -- is that casing of the reference be the same as the casing of the
kono
parents:
diff changeset
204 -- corresponding declaration.
kono
parents:
diff changeset
205
kono
parents:
diff changeset
206 Style_Check_Separate_Stmt_Lines : Boolean := False;
kono
parents:
diff changeset
207 -- This can be set True by using the -gnatyS switch. If it is TRUE,
kono
parents:
diff changeset
208 -- then for the case of keywords THEN (not preceded by AND) or ELSE (not
kono
parents:
diff changeset
209 -- preceded by OR) which introduce a conditionally executed statement
kono
parents:
diff changeset
210 -- sequence, there must be no tokens on the same line as the keyword, so
kono
parents:
diff changeset
211 -- that coverage testing can clearly identify execution of the statement
kono
parents:
diff changeset
212 -- sequence. A comment is permitted, as is THEN ABORT or a PRAGMA keyword
kono
parents:
diff changeset
213 -- after ELSE (a common style to specify the condition for the ELSE).
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 Style_Check_Specs : Boolean := False;
kono
parents:
diff changeset
216 -- This can be set True by using the -gnatys switches. If it is True, then
kono
parents:
diff changeset
217 -- separate specs are required to be present for all procedures except
kono
parents:
diff changeset
218 -- parameterless library level procedures. The exception means that typical
kono
parents:
diff changeset
219 -- main programs do not require separate specs.
kono
parents:
diff changeset
220
kono
parents:
diff changeset
221 Style_Check_Standard : Boolean := False;
kono
parents:
diff changeset
222 -- This can be set True by using the -gnatyn switch. If it is True, then
kono
parents:
diff changeset
223 -- any references to names in Standard have to be cased in a manner that
kono
parents:
diff changeset
224 -- is consistent with the Ada RM (usually Mixed case, as in Long_Integer)
kono
parents:
diff changeset
225 -- but there are some exceptions (e.g. NUL, ASCII).
kono
parents:
diff changeset
226
kono
parents:
diff changeset
227 Style_Check_Tokens : Boolean := False;
kono
parents:
diff changeset
228 -- This can be set True by using the -gnatyt switch. If it is True, then
kono
parents:
diff changeset
229 -- the style check that requires canonical spacing between various
kono
parents:
diff changeset
230 -- punctuation tokens as follows:
kono
parents:
diff changeset
231 --
kono
parents:
diff changeset
232 -- ABS and NOT must be followed by a space
kono
parents:
diff changeset
233 --
kono
parents:
diff changeset
234 -- => must be surrounded by spaces
kono
parents:
diff changeset
235 --
kono
parents:
diff changeset
236 -- <> must be preceded by a space or left paren
kono
parents:
diff changeset
237 --
kono
parents:
diff changeset
238 -- Binary operators other than ** must be surrounded by spaces.
kono
parents:
diff changeset
239 --
kono
parents:
diff changeset
240 -- There is no restriction on the layout of the ** binary operator.
kono
parents:
diff changeset
241 --
kono
parents:
diff changeset
242 -- Colon must be surrounded by spaces
kono
parents:
diff changeset
243 --
kono
parents:
diff changeset
244 -- Colon-equal (assignment) must be surrounded by spaces
kono
parents:
diff changeset
245 --
kono
parents:
diff changeset
246 -- Comma must be the first non-blank character on the line, or be
kono
parents:
diff changeset
247 -- immediately preceded by a non-blank character, and must be followed
kono
parents:
diff changeset
248 -- by a blank.
kono
parents:
diff changeset
249 --
kono
parents:
diff changeset
250 -- A space must precede a left paren following a digit or letter, and a
kono
parents:
diff changeset
251 -- right paren must not be followed by a space (it can be at the end of
kono
parents:
diff changeset
252 -- the line).
kono
parents:
diff changeset
253 --
kono
parents:
diff changeset
254 -- A right paren must either be the first non-blank character on a line,
kono
parents:
diff changeset
255 -- or it must be preceded by a non-blank character.
kono
parents:
diff changeset
256 --
kono
parents:
diff changeset
257 -- A semicolon must not be preceded by a blank, and must not be followed
kono
parents:
diff changeset
258 -- by a non-blank character.
kono
parents:
diff changeset
259 --
kono
parents:
diff changeset
260 -- A unary plus or minus may not be followed by a space
kono
parents:
diff changeset
261 --
kono
parents:
diff changeset
262 -- There must be one blank (and no other white space) between NOT and IN
kono
parents:
diff changeset
263 --
kono
parents:
diff changeset
264 -- A vertical bar must be surrounded by spaces
kono
parents:
diff changeset
265 --
kono
parents:
diff changeset
266 -- Note that a requirement that a token be preceded by a space is met by
kono
parents:
diff changeset
267 -- placing the token at the start of the line, and similarly a requirement
kono
parents:
diff changeset
268 -- that a token be followed by a space is met by placing the token at
kono
parents:
diff changeset
269 -- the end of the line. Note that in the case where horizontal tabs are
kono
parents:
diff changeset
270 -- permitted, a horizontal tab is acceptable for meeting the requirement
kono
parents:
diff changeset
271 -- for a space.
kono
parents:
diff changeset
272
kono
parents:
diff changeset
273 Style_Check_Xtra_Parens : Boolean := False;
kono
parents:
diff changeset
274 -- This can be set True by using the -gnatyx switch. If true, then it is
kono
parents:
diff changeset
275 -- not allowed to enclose entire expressions in tests in parentheses
kono
parents:
diff changeset
276 -- (C style), e.g. if (x = y) then ... is not allowed.
kono
parents:
diff changeset
277
kono
parents:
diff changeset
278 Style_Max_Line_Length : Nat := 0;
kono
parents:
diff changeset
279 -- Value used to check maximum line length. Gets reset as a result of
kono
parents:
diff changeset
280 -- use of -gnatym or -gnatyMnnn switches. This value is only read if
kono
parents:
diff changeset
281 -- Style_Check_Max_Line_Length is True.
kono
parents:
diff changeset
282
kono
parents:
diff changeset
283 Style_Max_Nesting_Level : Nat := 0;
kono
parents:
diff changeset
284 -- Value used to check maximum nesting level. Gets reset as a result
kono
parents:
diff changeset
285 -- of use of the -gnatyLnnn switch. This value is only read if
kono
parents:
diff changeset
286 -- Style_Check_Max_Nesting_Level is True.
kono
parents:
diff changeset
287
kono
parents:
diff changeset
288 -----------------
kono
parents:
diff changeset
289 -- Subprograms --
kono
parents:
diff changeset
290 -----------------
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 function RM_Column_Check return Boolean;
kono
parents:
diff changeset
293 -- Determines whether style checking is active and the RM column check
kono
parents:
diff changeset
294 -- mode is set requiring checking of RM format layout.
kono
parents:
diff changeset
295
kono
parents:
diff changeset
296 procedure Set_Default_Style_Check_Options;
kono
parents:
diff changeset
297 -- This procedure is called to set the default style checking options in
kono
parents:
diff changeset
298 -- response to a -gnaty switch with no suboptions or from -gnatyy.
kono
parents:
diff changeset
299
kono
parents:
diff changeset
300 procedure Set_GNAT_Style_Check_Options;
kono
parents:
diff changeset
301 -- This procedure is called to set the default style checking options for
kono
parents:
diff changeset
302 -- GNAT units (as set by -gnatg or -gnatyg).
kono
parents:
diff changeset
303
kono
parents:
diff changeset
304 Style_Msg_Buf : String (1 .. 80);
kono
parents:
diff changeset
305 Style_Msg_Len : Natural;
kono
parents:
diff changeset
306 -- Used to return
kono
parents:
diff changeset
307
kono
parents:
diff changeset
308 procedure Set_Style_Check_Options
kono
parents:
diff changeset
309 (Options : String;
kono
parents:
diff changeset
310 OK : out Boolean;
kono
parents:
diff changeset
311 Err_Col : out Natural);
kono
parents:
diff changeset
312 -- This procedure is called to set the style check options that correspond
kono
parents:
diff changeset
313 -- to the characters in the given Options string. If all options are valid,
kono
parents:
diff changeset
314 -- they are set in an additive manner: any previous options are retained
kono
parents:
diff changeset
315 -- unless overridden, unless a minus is encountered, and then subsequent
kono
parents:
diff changeset
316 -- style switches are subtracted from the current set.
kono
parents:
diff changeset
317 --
kono
parents:
diff changeset
318 -- If all options given are valid, then OK is True, Err_Col is set to
kono
parents:
diff changeset
319 -- Options'Last + 1, and Style_Msg_Buf/Style_Msg_Len are unchanged.
kono
parents:
diff changeset
320 --
kono
parents:
diff changeset
321 -- If an invalid character is found, then OK is False on exit, and Err_Col
kono
parents:
diff changeset
322 -- is the index in options of the bad character. In this case Style_Msg_Len
kono
parents:
diff changeset
323 -- is set and Style_Msg_Buf (1 .. Style_Msg_Len) has a detailed message
kono
parents:
diff changeset
324 -- describing the error.
kono
parents:
diff changeset
325
kono
parents:
diff changeset
326 procedure Set_Style_Check_Options (Options : String);
kono
parents:
diff changeset
327 -- Like the above procedure, but used when the Options string is known to
kono
parents:
diff changeset
328 -- be valid. This is for example appropriate for calls where the string was
kono
parents:
diff changeset
329 -- obtained by Save_Style_Check_Options.
kono
parents:
diff changeset
330
kono
parents:
diff changeset
331 procedure Reset_Style_Check_Options;
kono
parents:
diff changeset
332 -- Sets all style check options to off
kono
parents:
diff changeset
333
kono
parents:
diff changeset
334 subtype Style_Check_Options is String (1 .. 64);
kono
parents:
diff changeset
335 -- Long enough string to hold all options from Save call below
kono
parents:
diff changeset
336
kono
parents:
diff changeset
337 procedure Save_Style_Check_Options (Options : out Style_Check_Options);
kono
parents:
diff changeset
338 -- Sets Options to represent current selection of options. This set can be
kono
parents:
diff changeset
339 -- restored by first calling Reset_Style_Check_Options, and then calling
kono
parents:
diff changeset
340 -- Set_Style_Check_Options with the Options string.
kono
parents:
diff changeset
341
kono
parents:
diff changeset
342 end Stylesw;