@@ -39,7 +39,17 @@ package Inputs is
3939 -- May raise Name_Error or Status_Error if the corresponding text file
4040 -- cannot be opened.
4141
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 ;
4353 -- Input lists. Can be used to accumulate the arguments given on
4454 -- a command line.
4555
@@ -68,7 +78,8 @@ package Inputs is
6878 -- Go through the input list and call Process on each entry (qualifiers are
6979 -- ignored in the first variant).
7080
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 ;
7283 -- Return the number of elements in Inputs
7384
7485 procedure Log_File_Open (File_Name : String);
@@ -104,20 +115,4 @@ package Inputs is
104115 Case_Insensitive : Boolean := False);
105116 -- Overload to work on Inputs.Inputs_Type values
106117
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-
123118end Inputs ;
0 commit comments