content
stringlengths
23
1.05M
------------------------------------------------------------------------------ -- Copyright (c) 2013-2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------- -- Copyright (c) 2016 Daniel King -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to -- deal in the Software without restriction, in...
------------------------------------------------------------------------------ -- AGAR GUI LIBRARY -- -- A G A R . T E X T -- -- B o d y -- -- ...
with Ada.Containers.Indefinite_Vectors, Ada.Text_IO; procedure Here_Doc is package String_Vec is new Ada.Containers.Indefinite_Vectors (Index_Type => Positive, Element_Type => String); use type String_Vec.Vector; Document: String_Vec.Vector := String_Vec.Empty_Vector & "This is a vector of...
-- PR middle-end/56474 -- Reported by Pavel Zhukov <pavel@zhukoff.net> -- { dg-do compile } with Ada.Streams; package Array3 is use type Ada.Streams.Stream_Element_Offset; type Vector (Size : Ada.Streams.Stream_Element_Offset) is record Value : Ada.Streams.Stream_Element_Array (0 .. Size); end recor...
with HW.GFX.GMA.Config; private package HW.GFX.GMA.GMCH is GMCH_PORT_PIPE_SELECT_SHIFT : constant := 30; GMCH_PORT_PIPE_SELECT_MASK : constant := 1 * 2 ** 30; type GMCH_PORT_PIPE_SELECT_Array is array (Pipe_Index) of Word32; GMCH_PORT_PIPE_SELECT : constant GMCH_PORT_PIPE_SELECT_Array := (Prim...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Memory; use Memory; -- A function to simplify memory subsystems. function Simplify_Memory(mem : Memory_Pointer) return Memory_Pointer;
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. generic type Parent is abstract new Test_Event_Base with private; package Apsepp.Test_Event_Class.Generic_Exception_Mixin is type Child_W_Exception is new Parent with private with Type_Invariant'Class...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
with Limited_With2; package Limited_With2_Pkg2 is type Rec3 is record F : Limited_With2.Rec1; end record; end Limited_With2_Pkg2;
----------------------------------------------------------------------- -- util-http -- HTTP Utility Library -- Copyright (C) 2012 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 except in c...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- { dg-do compile { target *-*-linux* } } -- { dg-options "-gnatws" } procedure Trampoline3 is A : Integer; type FuncPtr is access function (I : Integer) return Integer; function F (I : Integer) return Integer is begin return A + I; end F; P : FuncPtr := F'Access; I : Integer; begin I := P(0)...
-- SPDX-License-Identifier: Apache-2.0 -- -- 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/L...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
Pragma Ada_2012; With Gnoga.Gui.Base ; Package NSO.JSON.Gnoga_Object is --with Elaborate_Body is Use Gnoga.Gui.Base; Subtype JSON_Class is NSO.JSON.Instance'Class; -- Returns the JSON format of the form parameters from the given object. -- NOTE: This method does NOT work with multi-select selections...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Directories; use Ada.Directories; with Ada.Text_IO; procedure Test_Directory_Walk is procedure Walk (Name : String; Pattern : String) is procedure Print (Item : Directory_Entry_Type) is begin Ada.Text_IO.Put_Line (Full_Name (Item)); end Print; procedure Walk (Item : Direct...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with Ada.Numerics; use Ada.Numerics; with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; with Graphics_Configuration; use Graphics_Configuration; with Graphics_Data; use Graphics_Data; wi...
-- NORX.Utils -- Some utility routines useful when writing the examples. -- Copyright (c) 2016, James Humphry - see LICENSE file for details with Ada.Text_IO; use Ada.Text_IO; package body NORX.Utils is package Word_IO is new Ada.Text_IO.Modular_IO(Num => Word); use Word_IO; procedure Put_State(S : i...
with agar.gui.window; package demo is window : agar.gui.window.window_access_t; procedure init (name : string; video_width : integer := 640; video_height : integer := 480; window_width : integer := 320; window_height : integer := 240); procedure run; procedure finish; e...
-- { dg-excess-errors "no code generated" } with Size_Attribute1_Pkg2; generic type T is private; package Size_Attribute1_Pkg1 is package My_R is new Size_Attribute1_Pkg2 (T); procedure Dummy; end Size_Attribute1_Pkg1;
-- A71004A.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...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.DBGMCU is pragma Preelaborate; --------------- -- Registers -- --------------- subtype IDCODE_DEV_ID_Field is HAL.UInt16...
pragma License (Unrestricted); -- BSD 3-Clause -- translated unit from MT19937 (mtTest.c) -- -- A C-program for MT19937, with initialization improved 2002/1/26. -- Coded by Takuji Nishimura and Makoto Matsumoto. -- -- Before using, initialize the state by using init_genrand(seed) -- or init_by_array(init_key, ...
----------------------------------------------------------------------- -- html-selects -- ASF HTML UISelectOne and UISelectMany components -- Copyright (C) 2011, 2013, 2014, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Lic...
pragma License (Unrestricted); -- runtime unit package System.Synchronous_Control is pragma Preelaborate; -- no-operation procedure Nop is null; -- yield type Yield_Handler is access procedure; pragma Favor_Top_Level (Yield_Handler); Yield_Hook : not null Yield_Handler := Nop'Access; pro...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau with Interfaces; with VirtAPU; use VirtAPU; with PyGamer.Audio; use PyGamer.Audio; with Music_2; package body Sound is C_32nd : constant Command := (Wait_Ticks, 1); C_16th : constant Command := (Wait_Ticks, C_32nd.Ticks * 2); C_8th : con...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------csc410/prog5/as5.adb---------------------------- -- Author: Matthew Bennett -- Class: CSC410 Burgess -- Date: 11-01-04 Modified: 11-15-04 -- Due: 11-16-04 -- Desc: Assignment 5: LAMPORT'S ALGORITHM FOR VIRTUAL TOPOLOGY NETWORKS -- -- a nonproduction implementation of -- LAMPORT's...
------------------------------------------------------------------------------ -- Copyright (c) 2016, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package body Stack is procedure Push(Object:Integer) is begin -- implementation goes here end; function Pull return Integer; begin -- implementation goes here end; end Stack;
package GESTE_Fonts.FreeSerifItalic5pt7b is Font : constant Bitmap_Font_Ref; private FreeSerifItalic5pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#02#, 16#01#, 16#01#, 16#00#, 16#80#, 16#40#, 16#00#, 16#20#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#05#, 16#02...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . C O N F I G -- -- S p e c -- -- ...
with System.Address_To_Constant_Access_Conversions; with System.Address_To_Named_Access_Conversions; with System.Environment_Block; with System.Storage_Elements; with System.Zero_Terminated_Strings; with C.stdlib; package body System.Native_Environment_Variables is use type Storage_Elements.Storage_Offset; use ty...
----------------------------------------------------------------------- -- keystore-repository-entries -- Repository management for the keystore -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
package Giza.Bitmap_Fonts.FreeMono24pt7b is Font : constant Giza.Font.Ref_Const; private FreeMono24pt7bBitmaps : aliased constant Font_Bitmap := ( 16#73#, 16#9C#, 16#E7#, 16#39#, 16#CE#, 16#73#, 16#9C#, 16#C6#, 16#30#, 16#84#, 16#21#, 16#08#, 16#00#, 16#00#, 16#00#, 16#03#, 16#BF#, 16#FF#, 16#B8#, 16#FE#,...
-- -- Short demo of the bug inducing code: tagged hierarchy as a field of discriminated record -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public Li...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO, Ada.Containers.Indefinite_Doubly_Linked_Lists; use Ada.Text_IO; procedure Swallow_Fly is package Strings is new Ada.Containers.Indefinite_Doubly_Linked_Lists(String); Lines, Animals: Strings.List; procedure Swallow(Animal: String; Second_Line: String; ...
------------------------------------------------------------ -- -- GNAT RUN-TIME EXTENSIONS -- -- XADA . DISPATCHING . TIME-TRIGGERED SCHEDULING -- -- @file x-distts.adb / xada-dispatching-tts.adb -- -- @package XAda.Dispatching.TTS (BODY) -- -- @author Jorge Real <jorge@disca.upv.es> -- @author Sergio Saez <ssae...
-- ----------------------------------------------------------------- -- -- AdaSDL -- -- Binding to Simple Direct Media Layer -- -- Copyright (C) 2001 A.M.F.Vargas -- -- Antonio M. F....
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); With Ada.Strings.UTF_Encoding.Conversions, Ada.strings.UTF_Encoding.Wide_Wide_Strings, EPL.Types; Use EPL.Types; -- Edward Parse Library. -- -- ©2015 E. Fish; All Rights Reserved. Package EPL.Brackets is Function Bracket( Data : UTF_08; Style : Types.Bracke...
package body Benchmark.Stride is function Create_Stride return Benchmark_Pointer is begin return new Stride_Type; end Create_Stride; procedure Set_Argument(benchmark : in out Stride_Type; arg : in String) is value : constant String := Extract_Argument(arg); ...
with NPC_PC; use NPC_PC; with ada.text_io; use ada.text_io; with enemy_BST; use enemy_bst; package Combat_package is ------------------------------- -- Name: Jon Spohn -- David Rogina -- Combat Package Specification ------------------------------- --Combat procedure Procedure Combat(Hero :...
-- { dg-excess-errors "no code generated" } generic type Length_T is range <>; with function Next return Length_T is <>; type Value_T is private; with function Value (L : Length_T) return Value_T is <>; package Renaming2_Pkg4 is generic type T is private; package Inner is type Slave_T is tag...
-- Cyclic redundancy check to verify archived data integrity package Zip.CRC is use Interfaces; procedure Init (Current_CRC : out Unsigned_32); function Final (Current_CRC : Unsigned_32) return Unsigned_32; procedure Update (Current_CRC : in out Unsigned_32; InBuf : Zip.Byte_Buffer); pragma Inline (Upda...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Abstract : -- -- Generic unbounded red-black tree with definite elements. -- -- Copyright (C) 2017, 2018 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 Foundat...
-- -- 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...
-- ----------------------------------------------------------------------------- -- smk, the smart make -- © 2018 Lionel Draghi <lionel.draghi@free.fr> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- -- Licensed under the Apache License, Version 2.0 ...
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Compilation_Units; with Program.Elements.Expressions; with Program.Library_Environments; with Program.Symbol_Lists; with Program.Visibilit...
-- License: ISC with Ada.Text_IO; package body JSA.Generic_Optional_Value is function "+" (Item : in Element) return Instance is begin return (Set => True, Value => Item); end "+"; function "+" (Item : in Instance) return Element is begin return Item.Value; end...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_struct_FILE_h; package bits_types_u_FILE_h is subtype uu_FILE is bits_types_struct_FILE_h.u_IO_FILE; -- /usr/include/bits/types/__FILE.h:5 end bits_types_u_FILE_h;
pragma Ada_2012; with Ada.Text_IO; use Ada.Text_IO; package body Base is procedure caller (BC : Base_Interface'Class) is begin Put_Line("BC.caller, calling print"); BC.print; -- should dispatch here end caller; overriding procedure print (BF : Base_Fixed) is begin Put(" ...
with Ada.Unchecked_Conversion; Package Body Aids.Utilities is Generic Type Source_Index is (<>); Type Source_Element is limited private; Type Source_Array is Array (Source_Index range <>) of Source_Element; Type Target_Index is (<>); Type Target_Element is limited pr...
with GNAT.Command_Line; use GNAT.Command_Line; with GNAT.Strings; with Ada.Directories; use Ada.Directories; with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; procedure GPR_Tools.Pkg2gpr.Main is OutputFolder : aliased GNAT.Strings.String_Access := new String'(Ada.Directories.Current_Directory); Version ...
package Opt64_PKG is type Hash is new string (1 .. 1); Last_Hash : Hash; procedure Encode (X : Integer); end;
pragma restrictions (no_secondary_stack); pragma restrictions (no_elaboration_code); pragma restrictions (no_finalization); pragma restrictions (no_exception_handlers); pragma restrictions (no_recursion); pragma restrictions (no_wide_characters); with system; with ada.unchecked_conversion; with interfaces; use interf...
------------------------------------------------------------------------------ -- -- -- Unicode Utilities -- -- -- -- ...
with Ada.Text_Io; use Ada.Text_Io; procedure Sum_Series is function F(X : Long_Float) return Long_Float is begin return 1.0 / X**2; end F; package Lf_Io is new Ada.Text_Io.Float_Io(Long_Float); use Lf_Io; Sum : Long_Float := 0.0; subtype Param_Range is Integer range 1..1000; begin for I i...
package body Ada.Numerics.SFMT.Generating is -- no SIMD version use type Unsigned_32; use type Unsigned_64; procedure rshift128 ( Out_Item : out w128_t; In_Item : w128_t; shift : Integer) with Convention => Intrinsic; procedure lshift128 ( Out_Item : out w128_t; In_I...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
<ADSWorkspace Revision="10" Version="100"> <Workspace Name=""> <LibraryDefs Name="lib.defs" /> <Library Name="ads_standard_layers_ic" /> <Library Name="ads_schematic_layers_ic" /> <Library Name="ads_schematic_ports_ic" /> <Library Name="ads_sources" /> <Library Name="...
pragma License (Unrestricted); with Ada.Strings.Maps; package Ada.Strings.Wide_Maps is pragma Preelaborate; -- Representation for a set of Wide_Character values: -- modified -- type Wide_Character_Set is private; subtype Wide_Character_Set is Maps.Character_Set; -- modified -- Null_Set : constant ...
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- XXX! Nothing here is thread-safe! -- -- Authors: Martin Becker (becker@rcs.ei.tum.de) with FAT_Filesystem; with FAT_Filesystem.Directories; use FAT_Filesystem.Directories; -- @summary File ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_Io, Ada.Integer_Text_Io, Datos; with Crear_Lista_Vacia, Ins, Esc, Longitud; use Datos; use Ada.Text_Io, Ada.Integer_Text_Io; procedure Prueba_Longitud is Lis : Lista; -- variable del programa principal procedure Pedir_Return is begin Put_Line("pulsa return para continuar "); S...
pragma Ada_2012; package body SAM.SERCOM.USART is --------------- -- Configure -- --------------- procedure Configure (This : in out USART_Device; Baud : UInt16; MSB_First : Boolean; TX_Fall_RX_Rise : Boole...
with gel.Window.setup, gel.Applet.gui_world, gel.Forge, gel.World, gel.Camera, Physics; pragma Unreferenced (gel.Window.setup); procedure launch_Pong_Tute -- -- Basic pong game. -- is use gel.Applet, gel.Applet.gui_world; --- Applet -- the_Applet : gel.Applet.gui_w...
with Text_Io, Strings, Idents; use Text_Io, Strings, Idents; procedure identsdr is procedure do_it is s : tString; i : tIdent; begin Put ("enter strings, one per line, - terminates"); New_Line; loop ReadS (Standard_Input, s); i := MakeIdent (s); WriteIdent (Standard_Output, i); New_Line...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, 2020, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- G P S -- -- -- -- Copyright (C) 2001-2016, AdaCore -- -- ...
package openGL.Model.sphere -- -- Provides an abstract model of a sphere. -- is type Item is abstract new Model.item with private; type View is access all Item'Class; default_latitude_Count : constant := 26; default_longitude_Count : constant := 52; --------- --- Forge -- procedure define...
-- { dg-do compile } -- { dg-options "-O" } procedure Opt19 is type Enum is (One, Two); type Vector_T is array (Enum) of Integer; Zero_Vector : constant Vector_T := (Enum => 0); type T is record Vector : Vector_T; end record; procedure Nested (Value : in out T; E : Enum; B : out Boolean) is I ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------- -- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@heisenbug.eu) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Ho...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Identifiers; with Program.Elements.Package_Declarations; with Program.Node_Symbols; with Program.Safe_Element_Visitors; pack...
-- with Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with GL.Culling; with GL.Objects.Programs; -- with GL.Text; with GL.Toggles; with GL.Types; use GL.Types; with GL.Types.Colors; with GL.Window; with Glfw; with Glfw.Input; with Glfw.Input.Keys; with Glfw.Windows.Context; with Maths; with Utilities;...
with HAL; use HAL; with System; use System; pragma Warnings (Off, "* is an internal GNAT unit"); with System.BB.Parameters; pragma Warnings (On, "* is an internal GNAT unit"); package body NXP.Device is -- SYSCON : aliased SYSCON_Peripheral -- with Import, Address => S_NS_Periph (SYSCON_Base)...
package Solar_System.Graphics is procedure Draw_Body (Object : Body_T; Canvas : Canvas_ID); end Solar_System.Graphics;
----------------------------------------------------------------------- -- Util.Locales -- Locale -- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use th...
package Tagged_Definition is type Tagged_Record is tagged record Component_1 : Integer; end record; end Tagged_Definition;
----------------------------------------------------------------------- -- dns -- DNS Example -- 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 except in compliance...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Tags; with League.String_Vectors; with League.Strings; with Markdown.Blocks; limited with Markdown.Visitors; package Markdown.Fenced_Code_Bl...
------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: ISC License (see COPYING file) -- -- -- -- ...
----------------------------------------------------------------------- -- wiki-writers-builders -- Wiki writer to a string builder -- Copyright (C) 2011, 2012, 2013, 2015, 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licen...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with GNAT.OS_Lib; with Ada.Text_IO; with Parameters; with System; package body Unix is package OSL renames GNAT.OS_Lib; package TIO renames Ada.Text_IO; package PM renames Parameters; --------------...
with Ada.Text_Io; use Ada.Text_Io; generic SortName : in String; type DataType is (<>); type SortArrayType is array (Integer range <>) of DataType; with procedure Sort (SortArray : in out SortArrayType; Comp, Write, Ex : in out Natural); package Instrument is -- This generic pac...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- BinToAsc.Base64 -- Binary data to ASCII codecs - Base64 codec as in RFC4648 -- Copyright (c) 2015, James Humphry - see LICENSE file for details generic Alphabet : Alphabet_64; Padding : Character; package BinToAsc.Base64 is type Base64_To_String is new Codec_To_String with private; overriding proc...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Text_IO; with Ada.Characters.Latin_1; package body Signals is package TIO renames Ada.Text_IO; package LAT renames Ada.Characters.Latin_1; ----------------------------------- -- graceful_sh...
-- -- One writer, one reader at a time, using -- protected object. -- -- Output can be intermixed (can another -- protected object be used to streamline output?) -- -- Each task has its reference start time; shouldn't it be -- the same for all? (Another protected object, again; -- anyway the differences should be small...
with Get_Line; with Solitaire_Operations.Text_Representation; with Ada.Characters.Handling; with Ada.Strings.Unbounded; with Ada.Text_IO; use Ada; use Ada.Characters; use Ada.Strings.Unbounded; procedure Encrypt is Deck_Text : constant Solitaire_Operations.Text_Representation.Short_Card_Deck_String := Get_Line; ...
with Type_Lib; use Type_Lib; package PID_Functionality is -- Procedures procedure Position_Controller (K_PP : in Float; Pos_Error : in Float; Vel_Ref : out Float); procedure Velocity_Controller (K_PV : in Float; Vel_Error : in Float; Torq_Ref : out Float); procedure Map_To_RPM (Torq_...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
package Constant_Declaration is The_Constant : constant Integer := 1; end Constant_Declaration;