@@ -39,7 +39,17 @@ package Inputs is
39
39
-- May raise Name_Error or Status_Error if the corresponding text file
40
40
-- cannot be opened.
41
41
42
- type Inputs_Type is private ;
42
+ type Inputs_Entry is record
43
+ Name, Qualifier : String_Access;
44
+ end record ;
45
+
46
+ function Equal (L, R : Inputs_Entry) return Boolean;
47
+
48
+ package Input_Lists is new Ada.Containers.Doubly_Linked_Lists
49
+ (Element_Type => Inputs_Entry,
50
+ " =" => Equal);
51
+
52
+ type Inputs_Type is new Input_Lists.List with null record ;
43
53
-- Input lists. Can be used to accumulate the arguments given on
44
54
-- a command line.
45
55
@@ -68,7 +78,8 @@ package Inputs is
68
78
-- Go through the input list and call Process on each entry (qualifiers are
69
79
-- ignored in the first variant).
70
80
71
- function Length (Inputs : Inputs_Type) return Ada.Containers.Count_Type;
81
+ function Length (Inputs : Inputs_Type) return Ada.Containers.Count_Type
82
+ with Inline ;
72
83
-- Return the number of elements in Inputs
73
84
74
85
procedure Log_File_Open (File_Name : String);
@@ -104,20 +115,4 @@ package Inputs is
104
115
Case_Insensitive : Boolean := False);
105
116
-- Overload to work on Inputs.Inputs_Type values
106
117
107
- private
108
-
109
- type Inputs_Entry is record
110
- Name, Qualifier : String_Access;
111
- end record ;
112
-
113
- function Equal (L, R : Inputs_Entry) return Boolean;
114
-
115
- package Input_Lists is new Ada.Containers.Doubly_Linked_Lists
116
- (Element_Type => Inputs_Entry,
117
- " =" => Equal);
118
-
119
- type Inputs_Type is new Input_Lists.List with null record ;
120
-
121
- pragma Inline (Length);
122
-
123
118
end Inputs ;
0 commit comments