some ada experiments...
This commit is contained in:
12
lib2/h3.ads
12
lib2/h3.ads
@ -29,15 +29,21 @@ package H3 is
|
||||
+(2 ** (System_Word_Bits - 1)) - 1;
|
||||
for System_Signed_Word'Size use System_Word_Bits;
|
||||
|
||||
--type System_Size is new System_Word range 0 .. (2 ** System_Word_Bits) - 1;
|
||||
subtype System_Size is System_Word range 0 .. (2 ** System_Word_Bits) - 1;
|
||||
-- Don't include the max value of System_Word in System_Size.
|
||||
-- It is not possible for a program to contain a single object of
|
||||
-- this max value size. By keeping the last value one less than the max,
|
||||
-- it prevents a value overrun issue in looping.
|
||||
--type System_Size is new System_Word range 0 .. (2 ** System_Word_Bits) - 2;
|
||||
subtype System_Size is System_Word range 0 .. (2 ** System_Word_Bits) - 2;
|
||||
|
||||
--subtype System_Index is System_Size range 0 .. (System_Size'Last - 1);
|
||||
subtype System_Index is System_Size range (System_Size'First + 1) .. System_Size'Last;
|
||||
|
||||
subtype System_Zero_Or_One is System_Word range 0 .. 1;
|
||||
|
||||
type Storage_Pool_Pointer is access all System.Storage_Pools.Root_Storage_Pool'Class;
|
||||
subtype Root_Storage_Pool is System.Storage_Pools.Root_Storage_Pool;
|
||||
type Storage_Pool_Pointer is access all Root_Storage_Pool'Class;
|
||||
--Storage_Error: exception renames Standard.Storage_Error;
|
||||
|
||||
type System_Byte_Array is array(System_Index range<>) of System_Byte;
|
||||
|
||||
|
Reference in New Issue
Block a user