text
stringlengths
0
234
Ada.Calendar'Elab_Spec;
Ada.Calendar'Elab_Body;
E119 := E119 + 1;
Ada.Calendar.Time_Zones'Elab_Spec;
E128 := E128 + 1;
Ada.Text_Io'Elab_Spec;
Ada.Text_Io'Elab_Body;
E006 := E006 + 1;
Ada.Text_Io.Text_Streams'Elab_Spec;
E170 := E170 + 1;
System.Regexp'Elab_Spec;
E168 := E168 + 1;
Ada.Directories'Elab_Spec;
Ada.Directories'Elab_Body;
E117 := E117 + 1;
E115 := E115 + 1;
>>>>>>> 69f69bc261da4a8489896c1cdee2a7aab20a4053
end adainit;
procedure Ada_Main_Program;
pragma Import (Ada, Ada_Main_Program, "_ada_controller");
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
gnat_argc := argc;
gnat_argv := argv;
gnat_envp := envp;
Initialize (SEH'Address);
adainit;
Ada_Main_Program;
adafinal;
Finalize;
return (gnat_exit_status);
Function Definition: procedure write_File is
Function Body: Output : File_Type;
line : String := "Text output";
loop_value : integer := 0;
begin
Create (File => Output,
Mode => Out_File,
Name => "output.txt");
while loop_value < 1 loop
begin
-- You can process the contents of Line here.
Put_Line (Output, Line);
loop_value := 1;
Function Definition: procedure Register_Path
Function Body: (This : access Uri_Router;
Rgx_Str : Interfaces.C.Strings.Chars_Ptr;
Cb : Callback_Function) -- uri_router.hh:36
with Import => True,
Convention => CPP,
External_Name => "_ZN10uri_router13register_pathEPKcPFvP14capture_groupsPvE";
procedure Register_Default (This : access Uri_Router; Cb : Default_Callback) -- uri_router.hh:37
with Import => True,
Convention => CPP,
External_Name => "_ZN10uri_router16register_defaultEPFvPKcPvE";
function Match_Path
(This : access Uri_Router;
Path : Interfaces.C.Strings.Chars_Ptr;
Response : System.Address) return Extensions.Bool -- uri_router.hh:38
with Import => True,
Convention => CPP,
External_Name => "_ZN10uri_router10match_pathEPKcPv";
Function Definition: procedure Define_Visitor (Spec_File, Body_File : IO.File_Type; Base_Name : String; Types : String_Array);
Function Body: procedure Define_Storage (Spec_File : IO.File_Type; Base_Name : String);
function Substring (Input, Separator : String; Item_Number : Positive) return String;
generic
with procedure Process_Field (Field_Name, Type_Name : String; Last : Boolean);
procedure Iterate_Fields (List : String);
procedure Define_Ast (Output_Dir, Base_Name : String; Types : String_Array) is
Spec_Path : constant String := Output_Dir & "/"
& Ada.Characters.Handling.To_Lower (Base_Name) & "s.ads";