1 -- Copyright 2012-2022 Free Software Foundation, Inc.
3 -- This program is free software; you can redistribute it and/or modify
4 -- it under the terms of the GNU General Public License as published by
5 -- the Free Software Foundation; either version 3 of the License, or
6 -- (at your option) any later version.
8 -- This program is distributed in the hope that it will be useful,
9 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
10 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 -- GNU General Public License for more details.
13 -- You should have received a copy of the GNU General Public License
14 -- along with this program. If not, see <http://www.gnu.org/licenses/>.
18 function New_Small_Table
(Low
: Color
; High
: Color
) return Small_Table
is
19 Result
: Small_Table
(Low
.. High
);
21 for J
in Low
.. High
loop
22 Result
(J
) := (J
= Black
or J
= Green
or J
= White
);
27 function New_Multi_Table
(Low
, High
: Color
; LS
, HS
: Strength
)
29 Result
: Multi_Table
(Low
.. High
, LS
.. HS
);
30 Next
: Boolean := True;
32 for J
in Low
.. High
loop
33 for K
in LS
.. HS
loop
34 Result
(J
, K
) := Next
;
41 function New_Multi_Multi_Table
(L1
, H1
, L2
, H2
, L3
, H3
: Positive)
42 return Multi_Multi_Table
is
43 Result
: Multi_Multi_Table
(L1
.. H1
, L2
.. H2
, L3
.. H3
);
44 Next
: Boolean := True;
46 for J
in L1
.. H1
loop
47 for K
in L2
.. H2
loop
48 for L
in L3
.. H3
loop
49 Result
(J
, K
, L
) := Next
;
55 end New_Multi_Multi_Table
;
57 procedure Do_Nothing
(A
: System
.Address
) is