Commit | Line | Data |
---|---|---|
3666a048 | 1 | -- Copyright 2012-2021 Free Software Foundation, Inc. |
99b1c762 JB |
2 | -- |
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. | |
7 | -- | |
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. | |
12 | -- | |
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/>. | |
15 | ||
16 | with System; | |
17 | package Pck is | |
18 | type Color is (Black, Red, Green, Blue, White); | |
a7400e44 | 19 | type Strength is (None, Low, Medium, High); |
10f6a3ad | 20 | type Short is new Natural range 0 .. 2 ** 8 - 1; |
a7400e44 | 21 | |
99b1c762 JB |
22 | type Full_Table is array (Color) of Boolean; |
23 | pragma Pack (Full_Table); | |
24 | ||
a7400e44 TT |
25 | subtype Primary_Color is Color range Red .. Blue; |
26 | type Primary_Table is array (Primary_Color) of Boolean; | |
27 | pragma Pack (Primary_Table); | |
28 | ||
29 | type Cold_Color is new Color range Green .. Blue; | |
30 | type Cold_Table is array (Cold_Color) of Boolean; | |
31 | pragma Pack (Cold_Table); | |
32 | ||
33 | type Small_Table is array (Color range <>) of Boolean; | |
34 | pragma Pack (Small_Table); | |
35 | function New_Small_Table (Low: Color; High: Color) return Small_Table; | |
36 | ||
37 | type Multi_Table is array (Color range <>, Strength range <>) of Boolean; | |
38 | pragma Pack (Multi_Table); | |
39 | function New_Multi_Table (Low, High: Color; LS, HS: Strength) | |
40 | return Multi_Table; | |
41 | ||
42 | type Multi_Multi_Table is array (Positive range <>, Positive range <>, Positive range <>) of Boolean; | |
43 | pragma Pack (Multi_Multi_Table); | |
44 | function New_Multi_Multi_Table (L1, H1, L2, H2, L3, H3: Positive) | |
45 | return Multi_Multi_Table; | |
46 | ||
10f6a3ad TT |
47 | type Multi_Dimension is array (Boolean, Color) of Short; |
48 | pragma Pack (Multi_Dimension); | |
49 | type Multi_Dimension_Access is access all Multi_Dimension; | |
50 | ||
99b1c762 JB |
51 | procedure Do_Nothing (A : System.Address); |
52 | end Pck; |