content
stringlengths
23
1.05M
-- { dg-do compile } -- { dg-options "-gnatws" } with System.Machine_Code; use System.Machine_Code; procedure machine_code1 is A_Float : Float; An_Other_Float : Float := -99999.0; begin An_Other_Float := An_Other_Float - A_Float; Asm("", Inputs => (Float'Asm_Input ("m", A_Float))); end;
with AdaBase; with Connect; with Ada.Text_IO; with AdaBase.Results.Sets; procedure Stored_Procs is package CON renames Connect; package TIO renames Ada.Text_IO; package ARS renames AdaBase.Results.Sets; stmt_acc : CON.Stmt_Type_access; procedure dump_result; procedure dump_result is funct...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
procedure Div ( Dividend : in out Long_Number; Last : in out Natural; Remainder : out Unsigned_32; Divisor : Unsigned_32 ) is Div : constant Unsigned_64 := Unsigned_64 (Divisor); Accum : Unsigned_64 := 0; Size : Natural := 0; begin ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Vecteurs_Creux; use Vecteurs_Creux; -- Exemple d'utilisation des vecteurs creux. procedure Exemple_Vecteurs_Creux is V : T_Vecteur_Creux; Epsilon: constant Float := 1.0e-5; begin Put_Line ("Début du scénario"); -- In...
with Ada.Text_IO; with Dotenv; package body Load_Environment_Variables is begin Ada.Text_IO.Put_Line ("Load Environment Variables"); Dotenv.Config; end Load_Environment_Variables;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with AUnit.Run; with AUnit.Reporter.Text; with GStreamer.tests.Rtsp_Suit; procedure Gstreamer.Tests.Main is Reporter : AUnit.Reporter.Text.Text_Reporter; procedure run_Tests is new AUnit.Run.Test_Runner(GStreamer.tests.Rtsp_Suit.Suit); begin Run_Tests (Reporter); end;
----------------------------------------------------------------------- -- wiki-filters-collectors -- Wiki word and link collectors -- Copyright (C) 2016, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
-- { dg-do compile } with Limited_With3_Pkg3; package body Limited_With3 is procedure Dummy is begin null; end; end Limited_With3;
with Ada.Text_IO; with BigInteger; package body Problem_55 is package IO renames Ada.Text_IO; type Lychrel is (Unknown, True, False); Is_Lychrel_Cache : Array (Long_Long_Integer range 1 .. 10_000) of Lychrel := (others => Unknown); function Reverse_String(input : string) return String is result : stri...
with openGL.Tasks, GL.Binding, interfaces.C.Strings, ada.unchecked_Conversion; package body openGL.Server is function Version return String is use GL, GL.Binding, Interfaces; check_is_OK : constant Boolean := openGL.Tasks.Check with Unreferenced; type ...
--****p* Data_Streams/Files -- DESCRIPTION -- The user can use as data stream for sample I/O files with different -- format. Every implemented format corresponds to a different implementation -- of the Data_Source or Data_Destination interface defined in the package -- Data_Streams. -- -- In order to ma...
with HAL_Interface; use HAL_Interface; package I2C_Interface with SPARK_Mode --,Abstract_State => State is type I2C_Type is new Port_Type with record pin : Integer := 0; end record; overriding procedure configure(Port : I2C_Type; Config : Configuration_Type); overriding procedure wri...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
function Es_Divisor(N, M: Integer) return Boolean is begin if (M mod N) = 0 then return True; end if; return False; end Es_Divisor;
-- openapi_ipify -- OpenAPI client for ipify, a simple public IP address API -- -- OpenAPI spec version: 0.9.0 -- Contact: blah@cliffano.com -- -- NOTE: This package is auto generated by the swagger code generator 3.2.1-SNAPSHOT. -- https://openapi-generator.tech -- Do not edit the class manually. with Swagger.S...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- package Callback_Procedures is pragma Elaborate_Body; procedure Main_Operations; end Callback_Procedures;
-- Score PIXAL le 07/10/2020 à 17:04 : 100% with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Characters.Handling; use Ada.Characters.Handling; procedure Robot_Type_1 is --| Le type T_Direction |--------------------------------------------------- type T_...
with Ada.Text_IO; use Ada.Text_IO; procedure Szummazas_Rek is type Index is new Integer; type Elem is new Integer; type Tomb is array (Index range <>) of Elem; function Szumma ( T: Tomb; S: Elem ) return Elem is begin if T'Length > 1 then return Szumma(T(T'First..Index'P...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with GNAT.Dynamic_Tables; package Pack18_Pkg is type String_Access is access String; type Rec is record S : String_Access; B : Boolean; N : Natural; end record; pragma Pack (Rec); package Attributes_Tables is new GNAT.Dynamic_Tables (Table_Component_Type => Rec, Table_Ind...
private package GID.Decoding_PNG is type PNG_Chunk_tag is ( -- -- Critical chunks -- IHDR, -- must be the first chunk; it contains the header. PLTE, -- contains the palette; list of colors. IDAT, -- contains the image, which may be split among multiple IDAT chunks. IEND, -- m...
package Loop_Optimization4_Pkg is Max_Debug_Buffer_Len : Natural := 8 * 1024; Debug_Buffer : String (1 .. Max_Debug_Buffer_Len); Debug_Buffer_Len : Natural range 0 .. Max_Debug_Buffer_Len; procedure Add (Phrase : String); end Loop_Optimization4_Pkg;
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.RAMECC is pragma Preelaborate; --------------- -- Registers -- --------------- -- Interrupt Enable Clear type RAMECC_...
-- { dg-do compile } -- { dg-options "-O2" } with Ada.Containers; use Ada.Containers; with Ada.Containers.Vectors; function Opt32 return Natural is package My_Vectors is new Vectors (Index_Type => Natural, Element_Type => Integer); use My_Vectors; V : Vector; function Sign_Changes return Natural ...
with Ada.Text_Io; procedure Hello_World is begin Ada.Text_Io.Put_Line("Hello World!"); end;
-- Copyright 2012-2021 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
-- { dg-do run } with GNAT.Time_Stamp; use GNAT.Time_Stamp; procedure test_time_stamp is S : constant String := Current_Time; function NN (S : String) return Boolean is begin for J in S'Range loop if S (J) not in '0' .. '9' then return True; end if; end loop; ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT INTERFACE COMPONENTS -- -- -- -- ...
with Interfaces; use Interfaces; with System; package ATmega2560 is -- ADC Control and Status Register B ADCSRB : Unsigned_8; for ADCSRB'Address use System'To_Address (16#7B#); ADCSRB_ACME: constant := 64; -- Analog Comparator Multiplexer Enable -- Analog Comparator Control And Status Register ACSR...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with SDL_stdinc_h; package SDL_clipboard_h is -- Simple DirectMedia Layer -- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> -- This software is provided 'as-is', without any express or impl...
-- AoC 2020, Day 17 with Ada.Text_IO; package body Day is package TIO renames Ada.Text_IO; function location_hash(key : in Location) return Hash_Type is begin return Hash_Type(abs((key.x * 137) + (key.y * 149) + (key.z * 163) + (key.w * 13))); end location_hash; procedure parse_line(line : in String; ...
with Extraction.Utilities; private package Extraction.Graph_Operations is type Graph_Context is tagged private; function Create_Graph_Context (Graph_File : access GW.GraphML_File; Directory_Prefix : VFS.Virtual_File; Project_Context : Utilities.Project_Context) return Graph_Context; procedure Wr...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Items is function Integer_Image(Self : in Integer) return String is Img : constant String := Integer'Image(Self); begin if Self < 0 then return Img; else return Img(2 .. Img'Length); end if; end; function To_String...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Sizetype3_Pkg is type List is array (Integer range <>) of Integer; function F return List; end Sizetype3_Pkg;
-- { dg-do compile } -- { dg-options "-O3" } with Ada.Finalization; use Ada.Finalization; with Opt57_Pkg; use Opt57_Pkg; package Opt57 is procedure Update; procedure Init; type Module_Factory is abstract new Limited_Controlled with private; type Root_Module_Rec (Language : access Module_Factory'Class)...
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
with Ada.Text_Io, Ada.Strings, Ada.Strings.Fixed, Ada.Strings.Maps; use Ada.Text_Io, Ada.Strings, Ada.Strings.Fixed, Ada.Strings.Maps; package Semantica.Assemblador is Error_Assemblador : exception; procedure Genera_Assemblador (Nom_Fitxer : in String); private Nproc : Num_Proc := 0; Fit...
----------------------------------------------------------------------- -- wiki-helpers-parser -- Generic procedure for the wiki parser -- Copyright (C) 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
pragma License (Unrestricted); -- generalized unit of Ada.Strings.Fixed generic type Character_Type is (<>); type String_Type is array (Positive range <>) of Character_Type; Space : Character_Type; package Ada.Strings.Generic_Functions is pragma Preelaborate; -- "Copy" procedure for strings of possibl...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.API; with Interfaces.C.Strings; package body Glfw is use type Interfaces.C.int; procedure Init is begin if API.Init = 0 then raise Initialization_Exception; en...
package Array23_Pkg3 is C0 : Natural := 2; end Array23_Pkg3;
-- -- Copyright (C) 2015-2017 secunet Security Networks AG -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- ...
With INI.Read_INI; Package INI.Parameters is Parameters : INI.Instance renames Read_INI("Parameters.ini"); End INI.Parameters;
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Numerics.Float_Random; use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Numerics.Float_Random; procedure exercise8 is Count_Failed : exception; -- Exception to be raised when counting fails Gen : Generator; -- Random number generator protected typ...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) package System.Synchronous_Objects.Abortable is pragma Preelaborate; -- queue procedure Take ( Object : in out Queue; Item : out Queue_Node_Access; Params : Address; Filter : Queu...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
package body BitOperations.Shift.Axiom.Logic_Left with SPARK_Mode => Off is ----------------------------------------------------- -- Axiom_Shift_Left_Is_Eq_Multiplying_By_Power_Of2 -- ----------------------------------------------------- procedure Equal_Mult_By_Power_2 (Value : Modular; Amount : Natu...
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure calc is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.Stream...
with AUnit.Test_Suites; with AUnit.Test_Fixtures; package Test_Standard is function Suite return AUnit.Test_Suites.Access_Test_Suite; private type Test is new AUnit.Test_Fixtures.Test_Fixture with null record; procedure Test_Encoding_Empty (Object : in out Test); procedure Test_Encoding_Pad2 (Object : in ...
-- C52011B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimite...
----------------------------------------------------------------------- -- ADO Databases -- Database connections -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- This file is part of ADO. -- -- This program is free software...
----------------------------------------------------------------------- -- mgrep-scanner -- Scan a directory and parse mail -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this f...
with System.Long_Long_Float_Types; with System.Long_Long_Integer_Types; package body Ada.Fixed is subtype Long_Long_Unsigned is System.Long_Long_Integer_Types.Long_Long_Unsigned; pragma Compile_Time_Error ( Long_Long_Float'Size < 96, "Long_Long_Float is too short for the intermediate format.")...
-- The Beer-Ware License (revision 42) -- -- Jacob Sparre Andersen <jacob@jacob-sparre.dk> wrote this. As long as you -- retain this notice you can do whatever you want with this stuff. If we meet -- some day, and you think this stuff is worth it, you can buy me a beer in -- return. -- -- Jacob Sparre Andersen p...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- { dg-do run } -- { dg-options "-O2" } -- The issue which prompted the test is a compilation failure. Might -- as well verify that the generated code performs as expected. with opt64_pkg; use opt64_pkg; procedure opt64 is procedure assert (T : boolean) is begin if not T then raise program_error; ...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- GNAT.Sockets.Connection_State_Machine Luebeck -- -- Implementation Winter, 2012 -- -- ...
package Mat is function Lnko ( A, B : Positive ) return Positive; function Faktorialis( N: Natural ) return Positive; function Max2( A, B : Natural ) return Natural; function Max3( A, B, C : Natural ) return Natural; function isEven( N : Natural ) return Boolean; function signof( N : Integer ) return...
package body ACO.Protocols.Service_Data.Servers is overriding procedure Handle_Message (This : in out Server; Msg : in ACO.Messages.Message; Endpoint : in ACO.SDO_Sessions.Endpoint_Type) is use ACO.SDO_Commands; use type ACO.SDO_Sessions.Services; Servic...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- ado-queries-tests -- Test loading of database queries -- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Ve...
with HAL; use HAL; with SPARKNaCl; use SPARKNaCl; with Interfaces; use Interfaces; package IO is procedure Put (X : Integer); -- Output integer to specified file, or to current output file, same -- output as if Ada.Text_IO.Integer_IO had been instantiated for Integer. procedure Put (X : UInt64);...
function System.Tasking.Async_Delays.Enqueue_RT ( T : Ada.Real_Time.Time; D : not null access Delay_Block) return Boolean is begin raise Program_Error; -- unimplemented return Enqueue_RT (T, D); end System.Tasking.Async_Delays.Enqueue_RT;
procedure Foo (Arg_1 : Integer; Arg_2 : Float := 0.0);
package GESTE_Fonts.FreeMonoBoldOblique6pt7b is Font : constant Bitmap_Font_Ref; private FreeMonoBoldOblique6pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#80#, 16#C0#, 16#60#, 16#20#, 16#10#, 16#08#, 16#00#, 16#06#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#01...
-- Generated at 2014-06-02 19:12:04 +0000 by Natools.Static_Hash_Maps -- from ../src/natools-s_expressions-printers-pretty-config-commands.sx function Natools.S_Expressions.Printers.Pretty.Config.Commands.T return Boolean; pragma Preelaborate (Natools.S_Expressions.Printers.Pretty.Config.Commands.T);
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the ...
-- reference: -- http://www.loc.gov/standards/iso639-2/php/code_list.php pragma Check_Policy (Validate => Ignore); with System.Native_Locales; with System.Once; package body Ada.Locales is type Long_Boolean is new Boolean; for Long_Boolean'Size use Long_Integer'Size; function expect (exp, c : Long_Boolean)...
with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Doubly_Linked_Lists; with Display_Warning; package Texaco is c :Key_Code; Ch : Character; Current_Char : Column_...
with System.Storage_Barriers; package body System.Reference_Counting is pragma Suppress (All_Checks); use type Storage_Elements.Storage_Offset; function atomic_load ( ptr : not null access constant Counter; memorder : Integer := Storage_Barriers.ATOMIC_ACQUIRE) return Counter with Impo...
with Ada.Command_Line; with Ada.Text_IO; with CORBA.ORB; with CorbaCBSG.CBSG; with CorbaCBSG; use CorbaCBSG; with PolyORB.Setup.Client; pragma Warnings (Off, PolyORB.Setup.Client); procedure Client is use Ada.Command_Line; use Ada.Text_IO; use type CORBA.String; Rcvd_Bullshits : CORBA.String; Bull...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- with -- Ada.Assertions, -- -- Ada.Asynchronous_Task_Control, -- Ada.Calendar.Arithmetic, -- Ada.Calendar.Formatting, -- Ada.Calendar.Time_Zones, -- Ada.Characters.Conversions, -- Ada.Characters.Handling, -- Ada.Characters.Latin_1, -- Ada.Command_Line, -- Ad...
with openGL.Renderer.lean, mmi.World, mmi.Sprite, ada.Containers.Vectors, ada.Containers.Hashed_Sets, ada.Unchecked_Conversion; package gasp.World is type Item is limited new mmi.World.item with private; type View is access all item'Class; package Forge is fun...
pragma License (Unrestricted); package System.Storage_Elements is pragma Pure; type Storage_Offset is range -(2 ** (Standard'Address_Size - 1)) .. 2 ** (Standard'Address_Size - 1) - 1; -- implementation-defined subtype Storage_Count is Storage_Offset range 0 .. Storage_Offset'Last; type Stora...
with System, System.Storage_Elements; use System.Storage_Elements; package body Allocator_Maxalign2 is Max_Align : constant Storage_Offset := Standard'Maximum_Alignment; procedure Validate is use type System.Address; begin if Addr mod Max_Align /= 0 then raise Program_Error; end i...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- { dg-do run } -- { dg-options "-O" } with Interfaces; use Interfaces; with Unchecked_Conversion; procedure Opt31 is type Unsigned_24 is new Unsigned_32 range 0 .. 2**24 - 1; subtype Time_T is Unsigned_24 range 0 .. 24 * 60 * 60 * 128 - 1; type Messages_T is array (Positive range <>) of Unsigned_8; subtyp...
package Array7 is package Range_Subtype is type Arr is array (Positive range <>) of Integer; type Arr_Acc is access Arr; subtype My_Range is Integer range 1 .. 25; function Get_Arr (Nbr : My_Range) return Arr_Acc; end; package Range_Type is type My_Range is range 1 .. 25; ...
-- { dg-do compile } with Unchecked_Conversion; package Static_Initializer3 is type Byte is range 0 .. 16#FF#; for Byte'Size use 8; type Word is range 0 .. 16#FFFF# ; for Word'Size use 16; type R is record b1 : Boolean; b2 : Boolean; end record; for R use record b1 at 0 range 0..3; b2...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Week_String_Literal is Mon : constant String := "Monday"; end Week_String_Literal;
pragma License (Unrestricted); -- implementation unit package System.Formatting.Literals is pragma Pure; -- parsing Ada-form literals procedure Skip_Spaces (Item : String; Last : in out Natural); procedure Check_Last (Item : String; Last : Natural; Error : out Boolean); procedure Get_Exponent ( ...
function Continued_Fraction_Ada95 (Steps : in Natural) return Scalar is function A (N : in Natural) return Scalar is begin return Scalar (Natural'(A (N))); end A; function B (N : in Positive) return Scalar is begin return Scalar (Natural'(B (N))); end B; Fraction : Scalar := 0.0; beg...
with COBS; package body Test_Utils.Abstract_Decoder.COBS_Simple is ------------- -- Receive -- ------------- overriding procedure Receive (This : in out Instance; Data : Storage_Element) is begin if Data /= 0 then This.Input.Append (Data); else -- We reached the ...
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Crew.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Crew.Test_Data .Test with null reco...
function Increment (I : Integer) return Integer; -- We declare (but don't define) a function with one -- parameter, returning an integer value
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with GNAT.OS_Lib; with GNAT.Ctrl_C; procedure Ctrl_C_Handler is procedure Flush; pragma Import (C, Flush, "__gcov_flush"); procedure SIGINT_Exit is begin Flush; GNAT.OS_Lib.OS_Exit (1); end SIGINT_Exit; begin GNAT.Ctrl_C.Install_Handler (SIGINT_Exit'Unrestricted_Access); end Ctrl_C_Handle...
with System.Native_Time; package body Ada.Real_Time is use type System.Native_Time.Nanosecond_Number; function Clock return Time is begin return Time ( System.Native_Real_Time.To_Duration (System.Native_Real_Time.Clock)); end Clock; function "*" (Left : Time_Span; Right : Integer) return...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt private with Ada.Text_IO; package Display.Log is -- This supports logging curses operations (for the purpose of troubleshooting) -- It is activated by setting LOG_RCURSES in the environment procedure ...
with STM32.SDMMC; package Media_Reader.SDCard with SPARK_Mode => Off is type SDCard_Controller is limited new Media_Controller with private; Device_Error : exception; procedure Initialize (Controller : in out SDCard_Controller); function Card_Present (Controller : in out SDCard_Controller) re...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- security-contexts -- Context to provide security information and verify permissions -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...