content
stringlengths
23
1.05M
pragma Warnings (Off); with SDL_Framebuffer; use SDL_Framebuffer; procedure Compile is begin null; end Compile;
with Matriz, Ada.Text_IO, Ada.Integer_Text_IO; use Matriz, Ada.Text_IO, Ada.Integer_Text_IO; procedure escribir_matriz (M : in Matriz_de_Enteros) is begin for I in M'range(1) loop for J in M'range(2) loop Put(M(I,J),3); end loop; New_Line; end loop; end escribir_matriz;
----------------------------------------------------------------------- -- net-interfaces -- Network interface -- Copyright (C) 2016, 2017 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 file exc...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- 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 your ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Lire_Entier is Base_MAX : constant Integer := 10 + 26; -- 10 chiffres ('0'..'9') + 26 lettres ('A'..'Z') -- Est-ce que la base est valide ? function Est_Base_Valide(Base : in Integer) return Boolean is begi...
-- Auto_Counters_Suite.Unique_Ptrs_Tests -- Unit tests for Auto_Counters Unique_Ptrs package -- Copyright (c) 2016, James Humphry - see LICENSE file for details with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; package Auto_Counters_Suite.Unique_Ptrs_Tests is type Unique_Ptrs_Test is new Test_C...
package body Iterateur_Mots is function Initialiser( Chaine : String; Separateur : Character) return Iterateur_Mot is begin return (Chaine => To_Unbounded_String(Chaine), Curseur => 1, Separateur => Separateur); end; function Fin(Iterateur :...
with Ada.Strings.Fixed; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A026 is use Ada.Strings.Fixed; use Ada.Integer_Text_IO; Base_Number, Temp_Sub_Str_001, Temp_Sub_Str_002, Temp_Sub_Str_02 : String (1 .. 2000); Temp_Sub_Str_01 : String (1 .. 10); Base_...
-- { dg-do compile } package Access1 is type R; type S is access R; type R is new S; end Access1;
----------------------------------------------------------------------- -- awa-storages -- Storage module -- Copyright (C) 2012, 2015, 2016, 2018, 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 ...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Yaml.Dom.Node; package body Yaml.Dom.Sequence_Data is use type Count_Type; use type Ada.Containers.Hash_Type; type Iterator is new Iterators.Forward_Iterator with record Containe...
with Ada.Numerics.Discrete_Random; package body Random with SPARK_Mode => Off is pragma Compile_Time_Warning (True, "This PRNG is not cryptographically secure."); package PRNG is new Ada.Numerics.Discrete_Random (Interfaces.Unsigned_8); Gen : PRNG.Generator; function Random_Byte return Interfaces....
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with Ada.Unchecked_Deallocation; package BBqueue.Buffers.FFI is type BufferPtr is access BBqueue.Buffers.Buffer -- can't be "not null" bc. of deallocation with Convention => C; function Create (Size : Buffer_Size) return BufferPtr with Convention => C, Export => True, External_Name...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Histogram; with PixelArray; with ImageRegions; with ImageThresholds; package HistogramGenerator is pragma Assertion_Policy (Pre => Check, Post => Check, Type_Invariant => Check); function verticalProjection(image: PixelArray.ImagePlane; r: ImageRegion...
with IO_EXCEPTIONS; generic type ELEMENT_TYPE is private; package SEQUENTIAL_IO is type FILE_TYPE is limited private; type FILE_MODE is (IN_FILE, OUT_FILE); -- File management procedure CREATE(FILE : in out FILE_TYPE; MODE : in FILE_MODE := OUT_FILE; NAME : in...
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. ------------------------------------------------------------...
-- { dg-do compile } with text_io; with System; procedure addr3 is Type T_SAME_TYPE is new System.Address; Type T_OTHER_TYPE is new System.Address; I : constant integer := 0; ...
-- SipHash.Entropy -- A child package that attempts to set the key from an entropy source on the -- system. -- This implementation is for systems where no entropy is available. -- Copyright (c) 2015, James Humphry - see LICENSE file for details package body SipHash.Entropy with SPARK_Mode => Off is function Syste...
----------------------------------------------------------------------- -- ADO Mysql Database -- MySQL Database connections -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
with STM32.F429Z; use STM32.F429Z; use STM32.F429Z.Modules.GPIO; use STM32.F429Z.Modules.USART; use STM32.F429Z.Modules.RCC; with Ada.Real_Time; use Ada.Real_Time; procedure UART_429Disco is UART_Port: GPIO_Registers renames GPIOA; UART_TX_Bit: constant Port_Bit_Number := 9; UART_RX_Bit: constant P...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: Apache-2.0 -- with Ada.Text_IO; with Ada.Characters.Wide_Wide_Latin_1; with Ada.Exceptions; with Notcurses.Context; with Notcurses.Direct; with Notcurses.Plane; with Notcurses.Progress_Bar; with Notcurses.Channel; with Notcurses...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ implementation of builtin field types -- -- |___/_|\_\_|_|____| by: Timm Felden ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Apsepp.Generic_Array_Operations, Apsepp.Tags; package Apsepp.Test_Node_Class.Testing is type Flattened_Routine_State is record Routine_I : Test_Routine_Count; Assert_C : Test_Assert_Cou...
with afrl.impact.AngledAreaSearchTask; with afrl.impact.ImpactLineSearchTask; with afrl.impact.ImpactPointSearchTask; package afrl.cmasi.lmcpTask.SPARK_Boundary with SPARK_Mode is pragma Annotate (GNATprove, Terminating, SPARK_Boundary); -- This package introduces a private type hiding an access to a -- Lmc...
pragma License (Unrestricted); generic type T (<>) is abstract tagged limited private; type Parameters (<>) is limited private; with function Constructor (Params : not null access Parameters) return T is abstract; function Ada.Tags.Generic_Dispatching_Constructor ( The_Tag : Tag; Params : not null ...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Strings; with XML.SAX.Attributes; with XML.SAX.Content_Handlers; with XML.Templates.Streams; with Tests.Commands; ...
pragma License (Unrestricted); -- implementation unit required by compiler with System.Synchronous_Objects; package System.Tasking.Protected_Objects is -- required by compiler subtype Protected_Entry_Index is Entry_Index range Null_Entry .. Max_Entry; subtype Positive_Protected_Entry_Index is Protect...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
private with STM32_SVD.COMP; package STM32.COMP is type Comparator is limited private; procedure Enable (This : in out Comparator) with Post => Enabled (This); procedure Disable (This : in out Comparator) with Post => not Enabled (This); function Enabled (This : Comparator) return Boolean; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- 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...
-- 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...
with Interfaces; use Interfaces; with Interfaces.EFM32.CMU; use Interfaces.EFM32.CMU; with Interfaces.EFM32.GPIO; use Interfaces.EFM32.GPIO; package Leds is type Bit is mod 2**1 with Size => 1; type Color is (Blue, Green, Cyan, Red, Magenta, Yellow, White, Black); type Pin_Type is (P0, P1, P2, P3, P4, ...
-- Gonzalo Martin Rodriguez -- Ivan Fernandez Samaniego with Priorities; use Priorities; with devices; use devices; with Ada.Interrupts.Names; with System; use System; package State is task Display is pragma Priority (Display_Priority); end Display; task Risks is pragma Priority (Risk_Pr...
-- Copyright 2017 Steven Stewart-Gallus -- -- 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 applicable law or agr...
-- 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. ...
with XML; private with Ada.Finalization; package Serialization.XML is pragma Preelaborate; type Reference_Type ( Serializer : not null access Serialization.Serializer) is limited private; function Reading (Reader : not null access Standard.XML.Reader; Tag : String) return Reference_Type; function Writing ...
pragma License (Unrestricted); generic type Table_Component_Type is private; type Table_Index_Type is range <>; Table_Low_Bound : Table_Index_Type; Table_Initial : Positive; Table_Increment : Natural; pragma Unreferenced (Table_Increment); package GNAT.Dynamic_Tables is package Implementation is ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt package AdaBase.Interfaces.Logger is type iLogger is interface; procedure reaction (listener : iLogger) is null; end AdaBase.Interfaces.Logger;
function Is_Perfect(N : Positive) return Boolean is Sum : Natural := 0; begin for I in 1..N - 1 loop if N mod I = 0 then Sum := Sum + I; end if; end loop; return Sum = N; end Is_Perfect;
with STM32_SVD; use STM32_SVD; with STM32_SVD.GPIO; with STM32_SVD.USB; use STM32_SVD.USB; with STM32_SVD.RCC; with Ada.Interrupts.Names; with Ada.Text_IO; package body STM32GD.USB.Peripheral is procedure Init is begin STM32_SVD.RCC.RCC_Periph.APB1ENR.USBEN := 1; STM32_SVD.RCC.RCC_Periph.APB1RSTR...
with Interfaces; generic Resistor_Value : Unsigned_32 := 10_000; NTC_Is_Upper : Boolean := True; Beta : Positive := 3976; V_In_Max : Unsigned_32 := 2 ** 10 - 1; package Drivers.NTC is pragma Preelaborate; function Value (V : Positive) return Unsigned_32; function Temperature (V : Positive) ret...
pragma License (Unrestricted); -- runtime unit package System.Formatting.Address is pragma Pure; subtype Address_String is String (1 .. (Standard'Address_Size + 3) / 4); procedure Image ( Value : System.Address; Item : out Address_String; Set : Type_Set := Upper_Case); procedure Value ...
-- -- Comment for <code>Main</code> procedure. -- @author Andrea Lucarelli -- with Ada.Text_Io; -- With package Text_Io use Ada.Text_Io; -- Use components procedure Main is Count : Integer; -- Declaration of count begin Count := 10; ...
package body Plunderer is task body PlundererTask is targetIndex: Natural; target: pNodeObj; n: Natural := nodes'Length; exitTask: Boolean := False; begin loop select accept Stop do exitTask := True; end S...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body WebIDL.Lexers is procedure Initialize (Self : in out Lexer'Class; Text : League.String_Vectors.Universal_String_Vector) is be...
package Linker_Section is Data1 : constant String := "12345678901234567"; pragma Linker_Section (Entity => Data1, Section => ".eeprom"); type EEPROM_String is new String; pragma Linker_Section (Entity => EEPROM_String, Section => ".eeprom"); Data2 : c...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.AXI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype AXI_PERIPH_ID_4_JEP106CON_Field is HA...
----------------------------------------------------------------------- -- hestia-time -- Date and time information -- Copyright (C) 2017, 2018 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 fil...
with Ada.Calendar.Naked; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with System.Form_Parameters; with System.Storage_Elements; package body Ada.Directories is use type System.Native_Directories.File_Kind; use type System.Native_Directories.Searching.Handle_Type; use type System.Storage_Ele...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Integer_Text_IO, Ada.Text_IO; use Ada.Integer_Text_IO, Ada.Text_IO; package body data is function Sum_Vector(A,B: in Vector) return Vector is S: Vector; begin for i in 1..N loop S(i):=A(i)+B(i); end loop; return S; end Sum_Vector; function Matrix_Multiplication(A...
with Unchecked_Deallocation; package body Ragged is SCCS_ID : constant String := "@(#) ragged.ada, Version 1.2"; -- The ragged array is implemented as a vector indexed by row -- of linked lists of (column,value) pairs in sorted order. type Cells is array( Row_Index range<> ) of Index; ty...
procedure Hello is I : INTEGER; F,T : FLOAT; str : STRING; symb : CHARACTER; arr : ARRAY (1..9) of INTEGER; begin null; end Hello;
-- { dg-do compile } pragma Restrictions (No_Streams); with Ada.Containers.Ordered_Maps; package No_Streams is type Arr is new String (1..8); package My_Ordered_Map is new Ada.Containers.Ordered_Maps (Key_Type => Natural, Element_Type => Arr); end No_Streams;
-- $Id: Sort.mi,v 1.0 1992/08/07 14:42:01 grosch rel $ -- $Log: Sort.mi,v $ -- Ich, Doktor Josef Grosch, Informatiker, Aug. 1994 package body Sort is procedure QuickSort (Lwb, Upb: Integer) is i, j: Integer; k: Integer := Lwb; begin loop if k >= Upb then return; end if; i := k + 1; j := Upb; ...
-- Change log: -- RK 18 - Oct - 2006 : removed initialisation by dynamic allocation, -- to avoid memory leaks with GLU; package body GLOBE_3D.Software_Anti_Aliasing is use REF; type Jitter_matrix is array (Positive range <>, Positive range <>) of GL.Double; type p_Jitt...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- { dg-do run } with Tagged_Type_Pkg; use Tagged_Type_Pkg; with Ada.Text_IO; use Ada.Text_IO; procedure Aliased_Prefix_Accessibility is T_Obj : aliased TT; T_Obj_Acc : access TT'Class := T_Obj'Access; type Nested_TT is limited record TT_Comp : aliased TT; end record; ...
$NetBSD: patch-gnatlib-gnat_src-mlib-utl.adb,v 1.1 2013/07/09 10:16:02 marino Exp $ Use unique ada executable rather than generic gcc --- gnatlib/gnat_src/mlib-utl.adb.orig 2010-02-14 02:40:00.000000000 +0100 +++ gnatlib/gnat_src/mlib-utl.adb 2011-10-09 04:11:21.000000000 +0200 @@ -412,7 +412,7 @@ if Driver_Na...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by John Self of the Arcadia project -- at the University of California, Irvine. -- -- Redistribution and use in source and binary forms are permitted -- provided that the above copyright notice and t...
-- { dg-do run } with Interfaces; use Interfaces; procedure Conv_Real is Small : constant := 10.0**(-9); type Time_Type is delta Small range -2**63 * Small .. (2**63-1) * Small; for Time_Type'Small use Small; for Time_Type'Size use 64; procedure Cache (Seconds_Per_GDS_Cycle : in Time_Type) is Cyc...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO, Ada.Integer_Text_IO; procedure User_Input is I : Integer; begin Ada.Text_IO.Put ("Enter a string: "); declare S : String := Ada.Text_IO.Get_Line; begin Ada.Text_IO.Put_Line (S); end; Ada.Text_IO.Put ("Enter an integer: "); Ada.Integer_Text_IO.Get(I); Ada.Text_IO.Pu...
with Ada.Strings.Unbounded; package Offmt_Lib.Storage is type Store_Result (Success : Boolean) is record case Success is when True => null; when False => Msg : Ada.Strings.Unbounded.Unbounded_String; end case; end record; function Store (Map : Trace_Map; Filename : ...
----------------------------------------------------------------------- -- awa-wikis-writers -- Wiki HTML writer -- Copyright (C) 2011, 2012, 2013, 2014, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
----------------------------------------------------------------------- -- awa-commands-drivers -- Driver for AWA commands for server or admin tool -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); with Risi_Script.Types.Implementation, Ada.Characters.Handling; Package Risi_Script.Types.Patterns is Use Risi_Script.Types.Implementation; --------------------- -- PATTERN TYPES -- --------------------- --#TODO: Implement the pattern-types;...
with Ada.Text_IO; use Ada.Text_IO; with Resources; with Lib_A; with Tests_Config; procedure Tests is package My_Resources is new Resources (Tests_Config.Crate_Name); begin Put_Line ("Prefix_Path: " & My_Resources.Prefix_Path); Put_Line ("Lib_A Prefix_Path: " & Lib_A.Resources.Prefix_Path); Put_Line ("Te...
pragma License (Unrestricted); with Ada.Text_IO; package Ada.Long_Integer_Text_IO is new Text_IO.Integer_IO (Long_Integer);
with Vectores_Genericos; package Vectores_Luminosidad is new Vectores_Genericos( Max => 10, Elemento => Float );
-- 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. ...
-- -- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- package body Edc_Client.Alpha.Common is -- LUT for codes for possible single letter positions SL_Position_Codes : constant array (1 .. 8) of Character := (1 => '1', 2 => '2', 3 =...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
----------------------------------------------------------------------- -- awa-storages-servlets -- Serve files saved in the storage service -- Copyright (C) 2012, 2016, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Li...
with Asis; -- GNAT-specific: with A4G.Int_Knds; with Types; with a_nodes_h; with Dot; private with Ada.Containers.Doubly_Linked_Lists; package Asis_Adapter.Element is type Class is tagged private; -- Initialized -- Process an element and all of its components: -- Raises Internal_Error for unhandled intern...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- ----------------------------------------------------------------- -- -- -- -- 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 ...
----------------------------------------------------------------------------- -- Base class for the implementation of EEPROM memory connected via -- I2C bus. -- -- Copyright 2022 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL; with HAL.I2C; package EEPROM_I2C is ------------------...
-- Copyright 2017 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "HackerTarget" type = "api" function start() setratelimit(1) end function vertical(ctx, domain) scrape(ctx, {url=buildurl(d...
-- { dg-do run } procedure Pack17 is type Bitmap_T is array (Natural range <>) of Boolean; pragma Pack (Bitmap_T); type Uint8 is range 0 .. 2 ** 8 - 1; for Uint8'Size use 8; type Record_With_QImode_Variants (D : Boolean) is record C_Filler : Bitmap_T (1..7); C_Map : Bitmap_T (1..3); ...
with Aof.Core.Root_Objects; with Aof.Core.Generic_Signals; with Aof.Core.Signals; with Slots; -- In this example, we will create two signals, one with no arguments -- and another with one argument. We use the "Connect" method to -- connect a slot (A.K.A. callback) to a signal. We then invoke the -- signal's "Emi...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with lace.Strings.fixed, ada.Characters.handling, ada.Strings.hash; package body lace.Text is -- Construction -- function to_Text (From : in String; Trim : in Boolean := False) return Item is begin return to_Text (From, capacity => From'Length, trim => Trim); ...
-- File: homework_one.adb -- Name: Andrew Albanese -- Date: 1/20/2018 -- Purpose: Calculate points surplus or deficit -- based on hours taken and GPA with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure home...
with Ada.Containers.Hashed_Sets; package Text.Sets is new Ada.Containers.Hashed_Sets (Reference, Hash, Text."=");
with Libadalang.Analysis; use Libadalang.Analysis; with Rejuvenation.Navigation; use Rejuvenation.Navigation; package Rewriters is type Rewriter is tagged private; -- To be usable in an Ada.Containers.Vectors, -- a Rewriter can't be abstract and can't be an interface function Rewrite (...
-- -- Copyright (C) 2019, AdaCore -- -- This spec has been automatically generated from ATSAMV71Q21.svd pragma Ada_2012; pragma Style_Checks (Off); with System; package Interfaces.SAM.UART is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- s...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma License (Unrestricted); -- extended unit private with System.Unbounded_Allocators; package System.Storage_Pools.Unbounded is -- Separated storage pool for local scope. -- The compiler (gcc) does not support scope-based automatic deallocation. -- Instead, some custom pool, like System.Pool_Local.Unbo...
package body Simple_Parse is function Next_Word(S: String; Point: in out Positive) return String is Start: Positive := Point; Stop: Natural; begin while Start <= S'Last and then S(Start) = ' ' loop Start := Start + 1; end loop; -- now S(Start) is the first non-space, -- or Start = S'L...
----------------------------------------------------------------------- -- Faces Context Tests - Unit tests for ASF.Contexts.Faces -- Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Wide_Wide_Characters.Handling; package body Program.Units.Vectors is ------------ -- Append -- ------------ pr...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with System; -- STM32H743x package STM32_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- COMP_Base : constant System.A...
package HAL.SPI with SPARK_Mode => Off is type SPI_Status is (Ok, Err_Error, Err_Timeout, Busy); type SPI_Data_Size is (Data_Size_8b, Data_Size_16b); type SPI_Data_8b is array (Natural range <>) of Byte; type SPI_Data_16b is array (Natural range <>) of Short; type SPI...
with Extended_Real; with Extended_Real.Elementary_Functions; with Extended_Real.IO; with Ada.Numerics.Generic_Elementary_Functions; with Text_IO; use Text_IO; procedure e_function_demo_1 is type Real is digits 15; package mth is new Ada.Numerics.Generic_Elementary_Functions (Real); use mth; package ext ...