| 1 |
with Ada.Text_IO; use Ada.Text_IO; |
| 2 |
|
| 3 |
with Libcrate_Config_Config; use Libcrate_Config_Config; |
| 4 |
|
| 5 |
with Host_Specific; |
| 6 |
|
| 7 |
package body Plop is |
| 8 |
|
| 9 |
type My_Int_Type is range Var_Int_First .. Var_Int_Last; |
| 10 |
My_Int : constant My_Int_Type := Var_Int; |
| 11 |
|
| 12 |
type My_Real_Type is digits 10 range Var_Real_First .. Var_Real_Last; |
| 13 |
My_Real : constant My_Real_Type := Var_Real; |
| 14 |
|
| 15 |
procedure Print is |
| 16 |
procedure Test_C_Print; |
| 17 |
pragma Import(C, Test_C_Print, "test_c_print"); |
| 18 |
|
| 19 |
begin |
| 20 |
Put_Line ("Ada -> Crate_Version: " & Libcrate_Config_Config.Crate_Version); |
| 21 |
Put_Line ("Ada -> Crate_Name: " & Libcrate_Config_Config.Crate_Name); |
| 22 |
Put_Line ("Ada -> Alire_Host_OS: " & Libcrate_Config_Config.Alire_Host_OS); |
| 23 |
Put_Line ("Ada -> Alire_Host_Arch: " & Libcrate_Config_Config.Alire_Host_Arch); |
| 24 |
Put_Line ("Ada -> Alire_Host_Distro: " & Libcrate_Config_Config.Alire_Host_Distro); |
| 25 |
Put_Line ("Ada -> Var_Bool: " & Libcrate_Config_Config.Var_Bool'Img); |
| 26 |
Put_Line ("Ada -> Var_String: '" & Libcrate_Config_Config.Var_String & "'"); |
| 27 |
Put_Line ("Ada -> Var_Int'First: " & My_Int_Type'First'Img); |
| 28 |
Put_Line ("Ada -> Var_Int'Last: " & My_Int_Type'Last'Img); |
| 29 |
Put_Line ("Ada -> Var_Int: " & My_Int'Img); |
| 30 |
Put_Line ("Ada -> Var_Real'First: " & My_Real_Type'First'Img); |
| 31 |
Put_Line ("Ada -> Var_Real'Last: " & My_Real_Type'Last'Img); |
| 32 |
Put_Line ("Ada -> Var_Real: " & My_Real'Img); |
| 33 |
Put_Line ("Ada -> Var_Enum_Kind'First: " & Libcrate_Config_Config.Var_Enum_Kind'First'Img); |
| 34 |
Put_Line ("Ada -> Var_Enum_Kind'Last: " & Libcrate_Config_Config.Var_Enum_Kind'Last'Img); |
| 35 |
Put_Line ("Ada -> Var_Enum: " & Libcrate_Config_Config.Var_Enum'Img); |
| 36 |
|
| 37 |
Put_Line ("Host_Specific -> " & Host_Specific); |
| 38 |
|
| 39 |
Test_C_Print; |
| 40 |
end Print; |
| 41 |
|
| 42 |
end Plop; |