content
stringlengths
23
1.05M
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
separate(practica_3) function Mayor(V:Vector) return TMayor is Mayor:tMayor; begin mayor.elemento:=V(1);--inicializo la variable mayor con el primer elemento mayor.posi:=1; for i in 2..v'last loop if v(i)>mayor.elemento then mayor.elemento:=v(i);--busco si otro elemento del vector es mayor y si lo es mayor....
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Demonstrate a trivial procedure with another nested inside with Ada.Text_IO, Ada.Integer_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO; procedure Compute is procedure Double(Item : in out Integer) is begin Item := Item * 2; end Double; X : Integer := 1; -- Local variable X of type int...
-- ----------------------------------------------------------------------------- -- Copyright 2018 Lionel Draghi -- -- 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.apach...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with Ada.Characters.Handling; package body AdaBase.Connection.Base.PostgreSQL is package ACH renames Ada.Characters.Handling; --------------------- -- setCompressed -- --------------------- o...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd pragma Restrictions (No_Elaboration_Code); with System; -- STM32G474xx package STM32_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- CRC_Base : constant System....
with Cortex_M.Systick; with System.Machine_Code; use System.Machine_Code; package body PyGamer.Time is package Systick renames Cortex_M.Systick; Clock_Ms : Time_Ms := 0 with Volatile; Period_Ms : constant Time_Ms := 1; Subscribers : array (1 .. 10) of Tick_Callback := (others => null); procedure I...
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2017, 2019 Free Software Foundation All Rights Reserved. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at ...
-- { dg-do compile } -- { dg-options "-O -fdump-tree-optimized" } procedure Opt52 (I : Integer) is begin if I + 1 < I then raise Program_Error; end if; end; -- { dg-final { scan-tree-dump-not "check_PE_Explicit_Raise" "optimized" } }
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Picosystem.Pins; with RP.Clock; with RP.Timer; with RP.GPIO; with Picosystem.LED; package body Sound is use RP.Timer; use RP.PWM; P : constant PWM_Point := To_PWM (Picosystem.Pins.AUDIO); Stop_At : Time := Time'First; Playing : Boolean := False; procedure Initialize is use RP.GPIO...
-- Copyright (C) 2008-2011 Maciej Sobczak -- Distributed under the Boost Software License, Version 1.0. -- (See accompanying file LICENSE_1_0.txt or copy at -- http://www.boost.org/LICENSE_1_0.txt) package SOCI.Oracle is -- -- Registers the Oracle backend so that it is ready for use -- by the dynamic b...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- package body Extended_Real.IO, translations between extended precision and text -- Copyright (C) 2008-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereb...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- -------------------------------------------...
package ACO.Protocols.Network_Management.Slaves is type Slave (Id : ACO.Messages.Node_Nr; Od : not null access ACO.OD.Object_Dictionary'Class) is new NMT with private; private type Slave (Id : ACO.Messages.Node_Nr; Od : not null access ACO.OD.Object_Dictionary'Class) is new NMT ...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Text_IO.Unbounded_IO; use Text_IO.Unbounded_IO; --with Ada.Sequential_IO; -- Temporär, ta bort när den inte behövs längre with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Ntest is type MY_REC is record ...
with Taft_Type1_Pkg2; package body Taft_Type1_Pkg1 is type TAMT1 is new Taft_Type1_Pkg2.Priv (X => 1); type TAMT2 is new Taft_Type1_Pkg2.Priv; procedure Check is Ptr1 : TAMT1_Access := new TAMT1; Ptr2 : TAMT2_Access := new TAMT2 (X => 2); begin if Ptr1.all.X /= 1 then raise Prog...
-- Abstract : -- -- Common utilities for Gen_Emacs_Wisi_*_Parse -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or -- modify it under terms of the GNU General Public License as -- published by the Free Software Foundation; either vers...
with System; package Init2 is type Small is mod 2**2; for Small'Size use 2; type Count is mod 2**9; for Count'Size use 9; type Arr1 is array (1 .. 3) of Count; pragma Pack (Arr1); for Arr1'Size use 27; for Arr1'Scalar_Storage_Order use System.Low_Order_First; type R1 is record S1 : Small; ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Eu_Projects.Event_Names is Begin_Name : constant Dotted_Identifier := To_Bounded_String ("begin"); End_Name : constant Dotted_Identifier := To_Bounded_String ("end"); Duration_Name : constant Dotted_Identifier := To_Bounded_String ("duration"); Event_Time_Name : constant Dotted_Identifier :...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Strings.Unbounded; procedure Vampire.R3.User_Page ( Output : not null access Ada.Streams.Root_Stream_Type'Class; Form : in Forms.Root_Form_Type'Class; Template : in String; Summaries : in Tabula.Villages.Lists.Summary_Maps.Map; User_Id : in String; User_Pa...
package body problem_13 is function Solution_1( arr : Digit_50_Array ) return Int128 is Higher, Lower: Int128 := 0; Str_Len : constant Integer := arr(0)'Length; begin for I in arr'range loop Lower := Lower + Int128'Value(arr(I)(Str_Len - 24 .. Str_Len)); Higher :...
-- gen_.ada with TEXT_IO; use TEXT_IO; generic MAX_STRING_LENGTH: in POSITIVE; package DYNAMIC_STRING is subtype STRING_LENGTHS is INTEGER range 0 .. MAX_STRING_LENGTH; subtype STRING_INDICES is STRING_LENGTHS; type DYNAMIC_STRINGS(LENGTH: STRING_LENGTHS := 0) is private; function LENGTH (PASCAL_STRING: DYN...
with Ada.Characters.Handling; with Ada.Strings.Fixed; with Ada.Strings; package body Globals is Environment_String : String := Ada.Characters.Handling.To_Upper ( Ada.Environment_Variables.Value ("OS", "linux")); Unix_Lineending : constant String := String'(1 => ASCII.LF); Windows_Line...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2010-2011, AdaCore -- -- -- -- G...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Containers.Hashed_Maps; with Ada.Containers.Vectors; with Ada.Streams; with League.Strings.Hash; with LSP.Generic_Optional;...
with Ada.Text_Io; use Ada.Text_Io; procedure Bottles is begin for X in reverse 1..99 loop Put_Line(Integer'Image(X) & " bottles of beer on the wall"); Put_Line(Integer'Image(X) & " bottles of beer"); Put_Line("Take one down, pass it around"); Put_Line(Integer'Image(X - 1) & " bottles ...
with Ada.Numerics.dSFMT.Generating; with System.Formatting; with System.Long_Long_Integer_Types; with System.Random_Initiators; with System.Storage_Elements; package body Ada.Numerics.dSFMT is pragma Check_Policy (Validate => Ignore); use type Interfaces.Unsigned_32; use type Interfaces.Unsigned_64; use typ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2013 Felix Krause <contact@flyx.org> -- -- 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/licen...
-- C46021A.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. -- Unlimit...
generic package any_Math.any_fast_Rotation is function to_Rotation (Angle : in Real) return access constant Matrix_2x2; private pragma Inline_Always (to_Rotation); end any_Math.any_fast_Rotation;
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- Abstract : -- -- Generalized LALR parse table generator. -- -- Copyright (C) 2002 - 2003, 2009 - 2010, 2013 - 2015, 2017 - 2020 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under terms ...
with Bitmaps.RGB; with Simulated_Annealing; generic type Image_Access is access Bitmaps.RGB.Image; package Problem is subtype Direction is Integer range -1 .. 1; type State is record Img : Image_Access; E : Long_Integer; X, Y : Natural; DX, DY : Direction; Visited ...
----------------------------------------------------------------------- -- package Runge_8th, 8th order Prince and Dormand Runge-Kutta -- Copyright (C) 2008-2018 Jonathan S. Parker. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided...
-- -- Copyright (C) 2014-2018 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 Ada.Real_Time; use type Ada.Real_Time.Time; use Ada; with AdaCar.Parametros; package body AdaCar.Alarmas is type Lista_Alarmas is array(Tipo_Alarmas) of Estado_Alarma; protected Alarmas_PO with Priority => Parametros.Techo_Alarmas_PO is procedure Notificar_Alarma(Alarma: Tipo_Alarmas); ...
-- DECLS-DGENERALS.ads -- Paquet de declaracions generals package Decls.Dgenerals is Max_Id : constant Integer := 1000; Long_Num_Ident : constant Integer := 40; Max_Var : constant Integer := 1000; type Num_Var is new Natural range 0 .. Max_Var; Var_Nul : Num_Var := 0; Max_Proc : consta...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with League.Strings; with League.String_Vectors; with WebIDL.Arguments; with WebIDL.Constructors; with WebIDL.Enumerations; with WebIDL.Interfaces; with We...
-- Copyright (c) 2016 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/LICENSE-2.0 -- -- Unless required by applic...
package body TLSF.Proof.Util.Vectors with SPARK_Mode is ---------- -- Find -- ---------- function Find (Container : V.Sequence; E : Element_Type) return Extended_Index_Type is begin if V.Last(Container) >= Index_Type'First then for Idx in Index_Type'First..Index_Type(V.Last(Conta...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ file parser implementation -- -- |___/_|\_\_|_|____| by: Timm Felden ...
with STM32.GPIO; use STM32.GPIO; with HAL.GPIO; package Analog is type Analog_Signal_Value is new Integer; procedure Configure_Pin (Pin : GPIO_Point); -- Configure a given pin as a analog and establishes his properties procedure Start_Adquisition (Pin : GPIO_Point); -- Start the adquisition of...
-- { dg-do run } with Ada.Tags; procedure tag1 is type T is tagged null record; X : Ada.Tags.Tag; begin begin X := Ada.Tags.Descendant_Tag ("Internal tag at 16#0#", T'Tag); raise Program_Error; exception when Ada.Tags.Tag_Error => null; end; begin X := Ada.Tags.Descendant_Tag ("...
-- Generated by gperfhash with Util.Strings.Transforms; with Interfaces; use Interfaces; package body Sqlite3_H.Perfect_Hash is C : constant array (Character) of Unsigned_8 := (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
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.SUPC is pragma Preelaborate; --------------- -- Registers -- --------------- -- Interrupt Enable Clear type SUPC_INTE...
-- { dg-do run } -- { dg-options "-O2 -fno-unit-at-a-time" } with Tail_Call_P; use Tail_Call_P; procedure Tail_Call is begin Insert (My_Array, 0, 0); end;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- servlet-routes -- Request routing -- Copyright (C) 2015, 2016, 2017, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
with ada.Containers.Hashed_Maps,display, Ada.Containers.Hashed_Maps,ada.containers.doubly_linked_lists ; package snake_types is type Snake_direction is (LEFT,RIGHT,UP,DOWN) ; type Coordinates is record x : integer range display.screen'range(1) ; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure Twelve_Days_Of_Christmas is type Days is (First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth, Eleventh, Twelfth); package E_IO is new Ada.Text_IO.Enumeration_IO(Days); use E...
with System; package body gnatcoll.uuid is use Interfaces.C; package bits_types_h is type uu_timer_t is new System.Address; -- types.h:161:27 end bits_types_h; package bits_time_h is CLOCKS_PER_SEC : constant := 1000000; -- time.h:34 CLOCK_REALTIME : constant := 0; -- time.h:46 ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with System; use System; with System.Storage_Elements; use System.Storage_Elements; with System.Allocation.Arenas; use System.Allocation.Arenas; package GBA.Allocation is pragma Elaborate_Body; generic Size : Storage_Count; ...
-- Ada has bitwise operators in package Interfaces, -- but they work with Interfaces.Unsigned_*** types only. -- Use rem or mod for Integer types, and let the compiler -- optimize it. declare N : Integer := 5; begin if N rem 2 = 0 then Put_Line ("Even number"); elseif N rem 2 /= 0 then Put_Line ("O...
with Ada.Text_IO; procedure Example is begin Ada.Text_IO.Put_Line ("Hello world!"); end Example;
-- -- Copyright (c) 2008 Tero Koskinen <tero.koskinen@iki.fi> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Anagram.Grammars.LR_Parsers; with Program.Parsers.Nodes; with Program.Parsers.Data; with Program.Parsers.On_Reduce; package body Program.Parsers is ...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- package body Symbols is function "<" (...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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/LICENSE-2.0 -- -- Unless required...
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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 vers...
with Test_Utils.Abstract_Encoder; with AUnit.Test_Suites; with AUnit.Test_Fixtures; private with AUnit.Test_Caller; package Testsuite.Encode is type Encoder_Kind is (Simple, Stream, Queue); procedure Set_Encoder_Kind (K : Encoder_Kind); procedure Add_Tests (Suite : in out AUnit.Test_Suites.Test_Suite'Clas...
with Arduino_Nano_33_Ble_Sense.IOs; package HCSR04 is function Distance(TrigPin, EchoPin : Arduino_Nano_33_Ble_Sense.IOs.Pin_Id) return Float; end HCSR04;
with Ada.Text_IO; with c_code_h; procedure Ada_C_Main is package ATI renames Ada.Text_Io; begin ATI.Put_Line ("Ada_C_Main: Calling c_func"); c_code_h.c_func; ATI.Put_Line ("Ada_C_Main: Returned from c_func"); end Ada_C_Main;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
function Spiral (N : Positive) return Array_Type is Result : Array_Type (1..N, 1..N); Left : Positive := 1; Right : Positive := N; Top : Positive := 1; Bottom : Positive := N; Index : Natural := 0; begin while Left < Right loop for I in Left..Right - 1 loop Result (Top, I) :=...
with YAML.Abstract_Object; package YAML.Vector is subtype Parent is Abstract_Object.Instance; subtype Parent_Class is Abstract_Object.Class; type Instance is new Parent with private; subtype Class is Instance'Class; overriding function Get (Item : in Instance; Name : in Stri...
with System.Formatting; with System.Img_Int; with System.Long_Long_Integer_Types; package body System.Img_LLI is use type Long_Long_Integer_Types.Long_Long_Unsigned; subtype Word_Integer is Long_Long_Integer_Types.Word_Integer; subtype Long_Long_Unsigned is Long_Long_Integer_Types.Long_Long_Unsigned; proc...
with impact.d3.min_max; -- with math; --.Algebra.linear.d3; package body impact.d3.Vector -- -- -- is function x (Self : in Vector_3) return Real is begin return Self (1); end x; function y (Self : in Vector_3) return Real is begin return Self (2); end y; function z (Sel...
generic type T is private; package Varsize3_Pkg3 is type Object is record E : T; end record; function True return Object; end Varsize3_Pkg3;
--=========================================================================== -- -- This is the main master program for the Tiny as an SPI Master -- --=========================================================================== -- -- Copyright 2022 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- w...
-- { dg-do compile } -- { dg-options "-O2" } package Pack12 is type Rec1 is record B : Boolean; N : Natural; end record; type Rec2 is record B : Boolean; R : Rec1; end record; pragma Pack (Rec2); type Rec3 is tagged record R : Rec2; end record; end Pack12;
with Tkmrpc.Types; with Tkmrpc.Results; with Tkmrpc.Operations; package Tkmrpc.Response is Response_Size : constant := 1024; Header_Size : constant := 24; Body_Size : constant := Response_Size - Header_Size; type Header_Type is record Operation : Operations.Operation_Type; Request_Id : ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- { dg-do compile } with Discr36_Pkg; package body Discr36 is function N return Natural is begin return 0; end; type Arr is array (1 .. N) of R; function My_Func is new Discr36_Pkg.Func (Arr); procedure Proc is A : constant Arr := My_Func; begin null; end; end Discr36;
with Ada.Numerics.Discrete_Random; with Ada.Integer_Text_IO, Ada.Text_IO; use Ada.Integer_Text_IO, Ada.Text_IO; package body Data is -- Create All-Ones Matrix And Vector procedure All_Ones_Matrix (MA: out Matrix) is begin for i in 1..N loop for j in 1..N loop MA(i,j) := 1; ...
--------------------------------------------------------------------------- -- package body rectangular_test_matrices, test matrix generator -- Copyright (C) 2018 Jonathan S. Parker. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provide...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; package Pixtend.wiringSerial_h is function serialOpen (device : Interfaces.C.Strings.chars_ptr; baud : int) return int -- wiringSerial.h:27 with Import => True, Convention => C, Extern...
with ZMQ.Sockets; with ZMQ.Contexts; with Ada.Text_IO; procedure ZMQ.examples.Display is use Ada.Text_IO; Context : aliased Contexts.Context; Socket : Sockets.Socket; begin Context.Initialize (1); Socket.Initialize (Context, Sockets.SUB); Socket.Establish_message_filter (""); Socket.Bind ("tc...
with AdaM.Context, gtk.Widget; private with gtk.Label, gtk.Frame, gtk.Box; package aIDE.Editor.of_context is type Item is new Editor.item with private; type View is access all Item'Class; package Forge is function to_context_Editor (the_Context : in AdaM.Context.view) re...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO, GNAT.Bubble_Sort; use Ada.Text_IO; procedure DisjointSort is package Int_Io is new Integer_IO (Integer); subtype Index_Range is Natural range 1 .. 8; Input_Array : array (Index_Range) of Integer := (7, 6, 5, 4, 3, 2, 1, 0); subtype Subindex_Range is Natural range 1 .. 3; type Sub_A...
with System; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with HAL.GPIO; with SAM.Clock_Generator.IDs; with SAM.Main_Clock; with SAM.DAC; use SAM.DAC; with SAM.Device; with SAM.DMAC; use SAM.DMAC; with SAM.DMAC.Sources; with SAM.TC; use SAM.TC; with SAM.Interrupt_Names; with Cortex_M.NVIC;...
with Ada.Text_IO; with Apollonius; procedure Test_Apollonius is use Apollonius; package Long_Float_IO is new Ada.Text_IO.Float_IO (Long_Float); C1 : constant Circle := (Center => (X => 0.0, Y => 0.0), Radius => 1.0); C2 : constant Circle := (Center => (X => 4.0, Y => 0.0), Radius => 1.0); C3 : constant...
with Interfaces; use Interfaces; with Ada.Streams.Stream_IO; use Ada.Streams; with Ada.Text_IO; package BMP is type Header is record Signature : Integer_16; Size : Integer_32; Reserved1 : Integer_16; Reserved2 : Integer_16; Offset : Integer_32; end record; type Info is r...
with MPFR.Root_FR; generic Precision : in MPFR.Precision := Default_Precision; Rounding : in MPFR.Rounding := Default_Rounding; package MPFR.Generic_FR is pragma Preelaborate; type MP_Float is new Root_FR.MP_Float (Precision); -- conversions function To_MP_Float (X : Long_Long_Float) return MP_Float; funct...
----------------------------------------------------------------------- -- ado-connections -- Database connections -- Copyright (C) 2010, 2011, 2012, 2016, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License");...
-- -- Copyright (c) 2007, 2008 Tero Koskinen <tero.koskinen@iki.fi> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "A...
----------------------------------------------------------------------- -- wiki-plugins-variables -- Variables plugin -- Copyright (C) 2020, 2021 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 Ada.Unchecked_Deallocation; package body Network.Generic_Promises is procedure Free is new Ada.Unchecked_Deallocation (List_Node, List_Node_Access); function Has_Listener (Self : Promise'Class; Value : not null Listener_Access) return Boolean; ------------------ -- Add_Listener -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...