text stringlengths 0 234 |
|---|
System.Os_Lib'Elab_Body; |
E072 := E072 + 1; |
Ada.Strings.Maps'Elab_Spec; |
Ada.Strings.Maps.Constants'Elab_Spec; |
E058 := E058 + 1; |
System.Soft_Links.Initialize'Elab_Body; |
E021 := E021 + 1; |
E013 := E013 + 1; |
System.Object_Reader'Elab_Spec; |
System.Dwarf_Lines'Elab_Spec; |
E047 := E047 + 1; |
E078 := E078 + 1; |
E054 := E054 + 1; |
System.Traceback.Symbolic'Elab_Body; |
E039 := E039 + 1; |
E080 := E080 + 1; |
Ada.Tags'Elab_Spec; |
Ada.Tags'Elab_Body; |
E101 := E101 + 1; |
Ada.Streams'Elab_Spec; |
E099 := E099 + 1; |
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; |
E115 := E115 + 1; |
end adainit; |
procedure Ada_Main_Program; |
pragma Import (Ada, Ada_Main_Program, "_ada_main"); |
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 Main is |
Function Body: type Common_Axis_Type is range 0..20; |
type Common_Button_Type is range 0..20; |
package LJS is new Linux_Joystick(Button_Type => Common_Button_Type, |
Axis_Type => Common_Axis_Type); |
generic |
with package JSP is new Linux_Joystick (<>); |
procedure Put(Js_Event : in JSP.Js_Event_Type); |
procedure Put(Js_Event : in JSP.Js_Event_Type) is |
package Millisecinds_IO is new Text_IO.Integer_IO(JSP.Milliseconds_Type); |
package Value_IO is new Text_IO.Integer_IO(JSP.Value_Type); |
begin |
Text_IO.Put(if Js_Event.Is_Init_Event then "I" else " "); |
Text_IO.Put(Ada.Characters.Latin_1.HT); |
Millisecinds_IO.Put(Js_Event.Time); |
Text_IO.Put(Ada.Characters.Latin_1.HT); |
Text_IO.Put(JSP.Event_Type_Type'Image(Js_Event.Event_Type)); |
Text_IO.Put(Ada.Characters.Latin_1.HT); |
case Js_Event.Event_Type is |
when JSP.JS_EVENT_BUTTON => |
Text_IO.Put(JSP.Button_Type'Image(Js_Event.Button)); |
Text_IO.Put(Ada.Characters.Latin_1.HT); |
Text_IO.Put(JSP.Button_Action_Type'Image(Js_Event.Button_Action)); |
when JSP.JS_EVENT_AXIS => |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.