text
stringlengths
0
234
System.File_Control_Block'Elab_Spec;
E113 := E113 + 1;
System.Finalization_Root'Elab_Spec;
E112 := E112 + 1;
Ada.Finalization'Elab_Spec;
E110 := E110 + 1;
System.File_Io'Elab_Body;
E109 := E109 + 1;
Ada.Text_Io'Elab_Spec;
Ada.Text_Io'Elab_Body;
E006 := E006 + 1;
end adainit;
procedure Ada_Main_Program;
pragma Import (Ada, Ada_Main_Program, "_ada_greet");
function main
(argc : Integer;
argv : System.Address;
envp : System.Address)
return Integer
is
procedure Initialize (Addr : System.Address);
pragma Import (C, Initialize, "__gnat_initialize");
procedure Finalize;
pragma Import (C, Finalize, "__gnat_finalize");
SEH : aliased array (1 .. 2) of Integer;
Ensure_Reference : aliased System.Address := Ada_Main_Program_Name'Address;
pragma Volatile (Ensure_Reference);
begin
if gnat_argc = 0 then
gnat_argc := argc;
gnat_argv := argv;
end if;
gnat_envp := envp;
Initialize (SEH'Address);
adainit;
Ada_Main_Program;
adafinal;
Finalize;
return (gnat_exit_status);
Function Definition: procedure Down is
Function Body: begin
Indent_Level := Indent_Level + Indent_Step;
Indent := Indent_String (Indent_Level);
end Down;
--------
-- Up --
--------
procedure Up is
begin
Indent_Level := Indent_Level - Indent_Step;
Indent := Indent_String (Indent_Level);
end Up;
--------------
-- End_Line --
--------------
procedure End_Line is
begin
Put ("" & ASCII.LF);
end End_Line;
--------------
-- Dump_Rec --
--------------
procedure Dump_Rec (N : Node) is
begin
case N.Kind is
when Map =>
for Ent of N.Iterate_On_Table loop
Put (Indent);
Put (Format_String (Ent.Key));
Put (Key_Separator);
if Ent.Value.Kind in Composite_Node_Kind then
End_Line;
Down;
Dump_Rec (Ent.Value);
Up;
else
Dump_Rec (Ent.Value);
End_Line;
end if;
end loop;
when Vector =>
for Index in 1 .. N.Length loop
declare
Value : constant Node := N.Item (Index);