We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a9e8c commit 8a33e6cCopy full SHA for 8a33e6c
src/alire/alire-reserved.adb
@@ -1,8 +1,11 @@
1
package body Alire.Reserved is
2
3
+ type String_Access is access constant String;
4
+ type String_Array is array (Positive range <>) of String_Access;
5
+
6
-- list of Ada2022 and GPR keywords
- Reserved_Keywords : constant array (Positive range <>) of
- access constant String :=
7
+ Reserved_Keywords : constant access String_Array :=
8
+ new String_Array'
9
(
10
new String'("abort"),
11
new String'("abs"),
@@ -89,6 +92,6 @@ package body Alire.Reserved is
89
92
----------------
90
93
91
94
function Is_Keyword (S : String) return Boolean
- is (for some K of Reserved_Keywords => S = K.all);
95
+ is (for some K of Reserved_Keywords.all => S = K.all);
96
97
end Alire.Reserved;
0 commit comments