Spaces:
Runtime error
Runtime error
pragma Ada_95; | |
pragma Source_File_Name (ada_main, Spec_File_Name => "b__wakedict.ads"); | |
pragma Source_File_Name (ada_main, Body_File_Name => "b__wakedict.adb"); | |
with Ada.Exceptions; | |
package body ada_main is | |
pragma Warnings (Off); | |
E077 : Short_Integer; pragma Import (Ada, E077, "system__os_lib_E"); | |
E014 : Short_Integer; pragma Import (Ada, E014, "system__soft_links_E"); | |
E024 : Short_Integer; pragma Import (Ada, E024, "system__exception_table_E"); | |
E053 : Short_Integer; pragma Import (Ada, E053, "ada__io_exceptions_E"); | |
E143 : Short_Integer; pragma Import (Ada, E143, "ada__strings_E"); | |
E145 : Short_Integer; pragma Import (Ada, E145, "ada__strings__maps_E"); | |
E148 : Short_Integer; pragma Import (Ada, E148, "ada__strings__maps__constants_E"); | |
E055 : Short_Integer; pragma Import (Ada, E055, "ada__tags_E"); | |
E052 : Short_Integer; pragma Import (Ada, E052, "ada__streams_E"); | |
E073 : Short_Integer; pragma Import (Ada, E073, "interfaces__c_E"); | |
E172 : Short_Integer; pragma Import (Ada, E172, "interfaces__c__strings_E"); | |
E030 : Short_Integer; pragma Import (Ada, E030, "system__exceptions_E"); | |
E071 : Short_Integer; pragma Import (Ada, E071, "system__finalization_root_E"); | |
E069 : Short_Integer; pragma Import (Ada, E069, "ada__finalization_E"); | |
E090 : Short_Integer; pragma Import (Ada, E090, "system__storage_pools_E"); | |
E082 : Short_Integer; pragma Import (Ada, E082, "system__finalization_masters_E"); | |
E096 : Short_Integer; pragma Import (Ada, E096, "system__storage_pools__subpools_E"); | |
E125 : Short_Integer; pragma Import (Ada, E125, "ada__calendar_E"); | |
E131 : Short_Integer; pragma Import (Ada, E131, "ada__calendar__time_zones_E"); | |
E092 : Short_Integer; pragma Import (Ada, E092, "system__pool_global_E"); | |
E080 : Short_Integer; pragma Import (Ada, E080, "system__file_control_block_E"); | |
E067 : Short_Integer; pragma Import (Ada, E067, "system__file_io_E"); | |
E187 : Short_Integer; pragma Import (Ada, E187, "system__direct_io_E"); | |
E018 : Short_Integer; pragma Import (Ada, E018, "system__secondary_stack_E"); | |
E156 : Short_Integer; pragma Import (Ada, E156, "ada__strings__unbounded_E"); | |
E123 : Short_Integer; pragma Import (Ada, E123, "ada__directories_E"); | |
E168 : Short_Integer; pragma Import (Ada, E168, "system__regexp_E"); | |
E050 : Short_Integer; pragma Import (Ada, E050, "ada__text_io_E"); | |
E121 : Short_Integer; pragma Import (Ada, E121, "latin_utils__config_E"); | |
E183 : Short_Integer; pragma Import (Ada, E183, "latin_utils__preface_E"); | |
E180 : Short_Integer; pragma Import (Ada, E180, "latin_utils__inflections_package_E"); | |
E176 : Short_Integer; pragma Import (Ada, E176, "latin_utils__strings_package_E"); | |
E174 : Short_Integer; pragma Import (Ada, E174, "latin_utils__dictionary_package_E"); | |
E191 : Short_Integer; pragma Import (Ada, E191, "latin_utils__general_E"); | |
Local_Priority_Specific_Dispatching : constant String := ""; | |
Local_Interrupt_States : constant String := ""; | |
Is_Elaborated : Boolean := False; | |
procedure finalize_library is | |
begin | |
E050 := E050 - 1; | |
declare | |
procedure F1; | |
pragma Import (Ada, F1, "ada__text_io__finalize_spec"); | |
begin | |
F1; | |
end; | |
E123 := E123 - 1; | |
E168 := E168 - 1; | |
declare | |
procedure F2; | |
pragma Import (Ada, F2, "system__regexp__finalize_spec"); | |
begin | |
F2; | |
end; | |
declare | |
procedure F3; | |
pragma Import (Ada, F3, "ada__directories__finalize_spec"); | |
begin | |
F3; | |
end; | |
E156 := E156 - 1; | |
declare | |
procedure F4; | |
pragma Import (Ada, F4, "ada__strings__unbounded__finalize_spec"); | |
begin | |
F4; | |
end; | |
E082 := E082 - 1; | |
E096 := E096 - 1; | |
declare | |
procedure F5; | |
pragma Import (Ada, F5, "system__file_io__finalize_body"); | |
begin | |
E067 := E067 - 1; | |
F5; | |
end; | |
E187 := E187 - 1; | |
declare | |
procedure F6; | |
pragma Import (Ada, F6, "system__direct_io__finalize_spec"); | |
begin | |
F6; | |
end; | |
declare | |
procedure F7; | |
pragma Import (Ada, F7, "system__file_control_block__finalize_spec"); | |
begin | |
E080 := E080 - 1; | |
F7; | |
end; | |
E092 := E092 - 1; | |
declare | |
procedure F8; | |
pragma Import (Ada, F8, "system__pool_global__finalize_spec"); | |
begin | |
F8; | |
end; | |
declare | |
procedure F9; | |
pragma Import (Ada, F9, "system__storage_pools__subpools__finalize_spec"); | |
begin | |
F9; | |
end; | |
declare | |
procedure F10; | |
pragma Import (Ada, F10, "system__finalization_masters__finalize_spec"); | |
begin | |
F10; | |
end; | |
declare | |
procedure Reraise_Library_Exception_If_Any; | |
pragma Import (Ada, Reraise_Library_Exception_If_Any, "__gnat_reraise_library_exception_if_any"); | |
begin | |
Reraise_Library_Exception_If_Any; | |
end; | |
end finalize_library; | |
procedure adafinal is | |
procedure s_stalib_adafinal; | |
pragma Import (C, s_stalib_adafinal, "system__standard_library__adafinal"); | |
begin | |
if not Is_Elaborated then | |
return; | |
end if; | |
Is_Elaborated := False; | |
s_stalib_adafinal; | |
end adafinal; | |
type No_Param_Proc is access procedure; | |
procedure adainit is | |
Main_Priority : Integer; | |
pragma Import (C, Main_Priority, "__gl_main_priority"); | |
Time_Slice_Value : Integer; | |
pragma Import (C, Time_Slice_Value, "__gl_time_slice_val"); | |
WC_Encoding : Character; | |
pragma Import (C, WC_Encoding, "__gl_wc_encoding"); | |
Locking_Policy : Character; | |
pragma Import (C, Locking_Policy, "__gl_locking_policy"); | |
Queuing_Policy : Character; | |
pragma Import (C, Queuing_Policy, "__gl_queuing_policy"); | |
Task_Dispatching_Policy : Character; | |
pragma Import (C, Task_Dispatching_Policy, "__gl_task_dispatching_policy"); | |
Priority_Specific_Dispatching : System.Address; | |
pragma Import (C, Priority_Specific_Dispatching, "__gl_priority_specific_dispatching"); | |
Num_Specific_Dispatching : Integer; | |
pragma Import (C, Num_Specific_Dispatching, "__gl_num_specific_dispatching"); | |
Main_CPU : Integer; | |
pragma Import (C, Main_CPU, "__gl_main_cpu"); | |
Interrupt_States : System.Address; | |
pragma Import (C, Interrupt_States, "__gl_interrupt_states"); | |
Num_Interrupt_States : Integer; | |
pragma Import (C, Num_Interrupt_States, "__gl_num_interrupt_states"); | |
Unreserve_All_Interrupts : Integer; | |
pragma Import (C, Unreserve_All_Interrupts, "__gl_unreserve_all_interrupts"); | |
Detect_Blocking : Integer; | |
pragma Import (C, Detect_Blocking, "__gl_detect_blocking"); | |
Default_Stack_Size : Integer; | |
pragma Import (C, Default_Stack_Size, "__gl_default_stack_size"); | |
Leap_Seconds_Support : Integer; | |
pragma Import (C, Leap_Seconds_Support, "__gl_leap_seconds_support"); | |
procedure Install_Handler; | |
pragma Import (C, Install_Handler, "__gnat_install_handler"); | |
Handler_Installed : Integer; | |
pragma Import (C, Handler_Installed, "__gnat_handler_installed"); | |
Finalize_Library_Objects : No_Param_Proc; | |
pragma Import (C, Finalize_Library_Objects, "__gnat_finalize_library_objects"); | |
begin | |
if Is_Elaborated then | |
return; | |
end if; | |
Is_Elaborated := True; | |
Main_Priority := -1; | |
Time_Slice_Value := -1; | |
WC_Encoding := 'b'; | |
Locking_Policy := ' '; | |
Queuing_Policy := ' '; | |
Task_Dispatching_Policy := ' '; | |
Priority_Specific_Dispatching := | |
Local_Priority_Specific_Dispatching'Address; | |
Num_Specific_Dispatching := 0; | |
Main_CPU := -1; | |
Interrupt_States := Local_Interrupt_States'Address; | |
Num_Interrupt_States := 0; | |
Unreserve_All_Interrupts := 0; | |
Detect_Blocking := 0; | |
Default_Stack_Size := -1; | |
Leap_Seconds_Support := 0; | |
if Handler_Installed = 0 then | |
Install_Handler; | |
end if; | |
Finalize_Library_Objects := finalize_library'access; | |
System.Soft_Links'Elab_Spec; | |
System.Exception_Table'Elab_Body; | |
E024 := E024 + 1; | |
Ada.Io_Exceptions'Elab_Spec; | |
E053 := E053 + 1; | |
Ada.Strings'Elab_Spec; | |
E143 := E143 + 1; | |
Ada.Strings.Maps'Elab_Spec; | |
Ada.Strings.Maps.Constants'Elab_Spec; | |
E148 := E148 + 1; | |
Ada.Tags'Elab_Spec; | |
Ada.Streams'Elab_Spec; | |
E052 := E052 + 1; | |
Interfaces.C'Elab_Spec; | |
Interfaces.C.Strings'Elab_Spec; | |
System.Exceptions'Elab_Spec; | |
E030 := E030 + 1; | |
System.Finalization_Root'Elab_Spec; | |
E071 := E071 + 1; | |
Ada.Finalization'Elab_Spec; | |
E069 := E069 + 1; | |
System.Storage_Pools'Elab_Spec; | |
E090 := E090 + 1; | |
System.Finalization_Masters'Elab_Spec; | |
System.Storage_Pools.Subpools'Elab_Spec; | |
Ada.Calendar'Elab_Spec; | |
Ada.Calendar'Elab_Body; | |
E125 := E125 + 1; | |
Ada.Calendar.Time_Zones'Elab_Spec; | |
E131 := E131 + 1; | |
System.Pool_Global'Elab_Spec; | |
E092 := E092 + 1; | |
System.File_Control_Block'Elab_Spec; | |
E080 := E080 + 1; | |
System.Direct_Io'Elab_Spec; | |
E187 := E187 + 1; | |
System.File_Io'Elab_Body; | |
E067 := E067 + 1; | |
E096 := E096 + 1; | |
System.Finalization_Masters'Elab_Body; | |
E082 := E082 + 1; | |
E172 := E172 + 1; | |
E073 := E073 + 1; | |
Ada.Tags'Elab_Body; | |
E055 := E055 + 1; | |
E145 := E145 + 1; | |
System.Soft_Links'Elab_Body; | |
E014 := E014 + 1; | |
System.Os_Lib'Elab_Body; | |
E077 := E077 + 1; | |
System.Secondary_Stack'Elab_Body; | |
E018 := E018 + 1; | |
Ada.Strings.Unbounded'Elab_Spec; | |
E156 := E156 + 1; | |
Ada.Directories'Elab_Spec; | |
System.Regexp'Elab_Spec; | |
E168 := E168 + 1; | |
Ada.Directories'Elab_Body; | |
E123 := E123 + 1; | |
Ada.Text_Io'Elab_Spec; | |
Ada.Text_Io'Elab_Body; | |
E050 := E050 + 1; | |
Latin_Utils.Config'Elab_Body; | |
E121 := E121 + 1; | |
E183 := E183 + 1; | |
Latin_Utils.Inflections_Package'Elab_Spec; | |
Latin_Utils.Inflections_Package'Elab_Body; | |
E180 := E180 + 1; | |
E176 := E176 + 1; | |
Latin_Utils.Dictionary_Package'Elab_Spec; | |
Latin_Utils.Dictionary_Package'Elab_Body; | |
E174 := E174 + 1; | |
E191 := E191 + 1; | |
end adainit; | |
procedure Ada_Main_Program; | |
pragma Import (Ada, Ada_Main_Program, "_ada_wakedict"); | |
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); | |
end; | |
-- BEGIN Object file/option list | |
-- /home/ubuntu/whitakers-words/obj/makedict_main.o | |
-- /home/ubuntu/whitakers-words/obj/wakedict.o | |
-- -L/home/ubuntu/whitakers-words/obj/ | |
-- -L/home/ubuntu/whitakers-words/obj/ | |
-- -L/home/ubuntu/whitakers-words/ | |
-- -L/home/ubuntu/whitakers-words/lib/words_engine-static/ | |
-- -L/home/ubuntu/whitakers-words/lib/support_utils-static/ | |
-- -L/home/ubuntu/whitakers-words/lib/latin_utils-static/ | |
-- -L/usr/lib/gcc/x86_64-linux-gnu/4.9/adalib/ | |
-- -shared | |
-- -lgnat-4.9 | |
-- END Object file/option list | |
end ada_main; | |