text stringlengths 0 234 |
|---|
adainit; |
Ada_Main_Program; |
Function Definition: procedure adainit is |
Function Body: Binder_Sec_Stacks_Count : Natural; |
pragma Import (Ada, Binder_Sec_Stacks_Count, "__gnat_binder_ss_count"); |
Default_Secondary_Stack_Size : System.Parameters.Size_Type; |
pragma Import (C, Default_Secondary_Stack_Size, "__gnat_default_ss_size"); |
Default_Sized_SS_Pool : System.Address; |
pragma Import (Ada, Default_Sized_SS_Pool, "__gnat_default_ss_pool"); |
begin |
null; |
ada_main'Elab_Body; |
Default_Secondary_Stack_Size := System.Parameters.Runtime_Default_Sec_Stack_Size; |
Binder_Sec_Stacks_Count := 1; |
Default_Sized_SS_Pool := Sec_Default_Sized_Stacks'Address; |
E78 := E78 + 1; |
Cortex_M.Nvic'Elab_Spec; |
E76 := E76 + 1; |
E68 := E68 + 1; |
E28 := E28 + 1; |
E70 := E70 + 1; |
Nrf.Interrupts'Elab_Body; |
E72 := E72 + 1; |
E34 := E34 + 1; |
E37 := E37 + 1; |
E56 := E56 + 1; |
E54 := E54 + 1; |
E84 := E84 + 1; |
E80 := E80 + 1; |
E41 := E41 + 1; |
E44 := E44 + 1; |
E48 := E48 + 1; |
Nrf.Device'Elab_Spec; |
Nrf.Device'Elab_Body; |
E06 := E06 + 1; |
NRF52_DK.IOS'ELAB_SPEC; |
NRF52_DK.IOS'ELAB_BODY; |
E52 := E52 + 1; |
NRF52_DK.TIME'ELAB_BODY; |
E82 := E82 + 1; |
E87 := E87 + 1; |
end adainit; |
procedure Ada_Main_Program; |
pragma Import (Ada, Ada_Main_Program, "_ada_main"); |
procedure main is |
Ensure_Reference : aliased System.Address := Ada_Main_Program_Name'Address; |
pragma Volatile (Ensure_Reference); |
begin |
adainit; |
Ada_Main_Program; |
Function Definition: procedure Free is |
Function Body: new Ada.Unchecked_Deallocation (Object => File_Type, |
Name => File_Pt); |
begin |
case What.Class is |
when None | Standard_Output => |
null; |
when File => |
Close (What.F.all); |
Free (What.F); |
end case; |
end Close; |
function To_File_Access (What : Extended_File) return File_Access |
is (case What.Class is |
when None => |
null, |
when Standard_Output => |
Standard_Output, |
when File => |
File_Access (What.F)); |
-------------------------- |
-- Print_Warning_Header -- |
-------------------------- |
procedure Print_Warning_Header (To : File_Access) |
is |
begin |
Put_Line (To.all, "%"); |
Put_Line (To.all, "%---"); |
Put_Line (To.all, "% WARNING: Automatically generated file"); |
Put_Line (To.all, "% WARNING: If you edit this your changes will be lost"); |
Put_Line (To.all, "%---"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.