content
stringlengths
23
1.05M
private with STM32_SVD.SYSCFG; 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; ...
with Ada.Text_IO; use Ada.Text_IO; package body Cellular is procedure Generate(Previous : in out CellularArray) is Generator : Boolean_Random.Generator; begin Reset(Generator); for I in Previous'Range loop Previous(I) := Random(Generator); end loop; end Generate...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.Real_Time_Clock; with HAL.I2C; with HAL; package DS3231 is Default_Address : constant HAL.I2C.I2C_Address := 2#1101000#; type DS3231_Device (I2C_Port : not null HAL.I2C.Any_I2C_Port; ...
with Text_IO; use Text_IO; procedure hello is begin Put_Line("Hello, world!"); end hello;
-- part of FreeTypeAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package FT.Faces is pragma Preelaborate; -- reference-counted smart pointer type Face_Reference is new Ada.Finalization.Controlled with private; type Face_Index_Type is new Interfaces.C...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Nodes.Array_Component_Association_Vectors; with Program.Nodes.Aspect_Specification_Vectors; with Program.Nodes.Element_Ve...
with Tareas; use Tareas; procedure Crea_Tarea is --T1 : Tarea_1; T2 : Tarea_2; T3 : Tarea_3; begin -- Insert code here. null; end Crea_Tarea;
-- 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...
$NetBSD: patch-src__editor_src_src__editor__view.adb,v 1.2 2014/04/30 16:32:20 marino Exp $ Disambiguation required to compile with FSF GNAT 4.9.0 --- src_editor/src/src_editor_view.adb.orig 2012-07-02 09:23:20.000000000 +0000 +++ src_editor/src/src_editor_view.adb @@ -1789,6 +1789,7 @@ package body Src_Editor_View i...
-- This spec has been automatically generated from cm7.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; -- Floating Point Unit package Cortex_M_SVD.FPU is pragma Preelaborate; --------------- -- Registers -- --------------- -- Acces...
package body surface.elements is procedure quad (X,Y, Width, Height : Integer ; Border : Boolean := False) is use raylib; begin raylib.shapes.draw_rectangle ( posX => int(X), posY => int(Y), width => int(Width), height => int(Height), c => raylib...
package Private_Enum is type Pet is private; private type Pet is (cat, dog); end Private_Enum;
----------------------------------------------------------------------- -- awa-storages-services -- Storage service -- Copyright (C) 2012, 2013, 2016 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...
-- 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...
with Ada.Sequential_IO; with Expressions; use Expressions; procedure RandomArt is type Byte is mod 256; for Byte'Size use 8; package Byte_IO is new Ada.Sequential_IO(Byte); Scale : constant := 150; Size : constant := 2*Scale + 1; procedure GreyScale(node : not null Expression_Node_Access) is fi...
-- -- 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. -- with Ada.Strings.Unbounded; with Setup; w...
with Ada.Text_IO; with Ada.Directories; with Ada.Command_Line; with Templates_Parser; with CLIC.TTY; with Filesystem; with Commands; with GNAT.Strings; with Ada.Characters.Conversions; with Generator; with Globals; package body Init_Project is package IO renames Ada.Text_IO; package TT renames CLIC.TTY; use...
Pragma Ada_2012; ---------------------------------- -- Miscellaneous Dependencies -- ---------------------------------- with GNAT.CRC32, Ada.Characters.Latin_1, Ada.Containers.Indefinite_Vectors, Ada.Strings.Fixed, Ada.Text_IO; -------------------------------- -- Risi_Script Dependencies -- ---------------------...
package generic_procedure_renaming_declaration is generic procedure test(X : Integer); generic procedure newtest renames test; end generic_procedure_renaming_declaration;
with Ada.Exceptions; use Ada.Exceptions; with Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with GL.Attributes; with GL.Buffers; with GL.Culling; with GL.Immediate; with GL.Objects.Buffers; with GL.Objects.Programs; with GL.Objects.Vertex_Arrays; with GL.Objects.Shaders.Lists; with GL.Raster; with GL.Rast...
-- 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 Tk.Winfo.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Winfo.Test_Data .Test with n...
package body ACO.Utils.DS.Generic_Queue is function Is_Full (This : Queue) return Boolean is (This.Count >= This.Max_Nof_Items); function Is_Empty (This : Queue) return Boolean is (This.Count = 0); function Length (This : Queue) return Natural is (This.Count); function Free_Slots (This...
-- { dg-do run } procedure Array9 is V1 : String(1..10) := "1234567890"; V2 : String(1..-1) := ""; procedure Compare (S : String) is begin if S'Size /= 8*S'Length then raise Program_Error; end if; end; begin Compare (""); Compare ("1234"); Compare (V1); Compare (V2); end;
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" private with Ada.Containers.Hashed_Maps; with Yaml.Events.Store; package Yaml.Events.Context is type Reference is tagged private; type Cursor is private; type Local_Scope_Cursor is private...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- The Cupcake GUI Toolkit -- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com> -- Report bugs and issues on <http://github.com/skordal/cupcake/issues> -- vim:ts=3:sw=3:et:si:sta package Cupcake.Colors is -- Color component type: subtype Color_Component_Type is Float range 0.0 .. 1.0; -- ...
package body Json is F : Ada.Text_IO.File_Type; Now : Ada.Calendar.Time := Ada.Calendar.Clock; OutputFileName : String := "films-watched.json"; ---------------- -- AppendFilm -- ---------------- procedure AppendFilm (title, year, score, imdb : String) is begin Ada.Text_IO.Open(F, Ada...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Types; package GL.Low_Level is pragma Preelaborate; use GL.Types; -- This package contains some low-level types that are used by the raw C -- interface of the OpenGL API. They are...
with Morse; use Morse; procedure Morse_Tx is begin Morsebeep (Convert ("Science sans Conscience")); end Morse_Tx;
----------------------------------------------------------------------- -- awa-votes-beans -- Beans for module votes -- Copyright (C) 2013, 2015 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 fi...
-- C85014C.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...
-- Copyright 2017-2021 Bartek thindil Jasicki -- -- This file is part of Steam Sky. -- -- Steam Sky 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 -- (a...
with Ada.Streams; use Ada.Streams; with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO; with Ada.Streams.Stream_IO.Standard_Files; use Ada.Streams.Stream_IO.Standard_Files; procedure streamcat is E : Stream_Element_Array (1 .. 1); Last : Stream_Element_Offset; begin while not End_Of_File (Standard_Input.all) loop ...
----------------------------------------------------------------------- -- akt-commands-password-remove -- Remove a wallet password -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
------------------------------------------------------------------------------ -- -- -- J E W L . C A N V A S _ I M P L E M E N T A T I O N -- -- -- ...
-- simple_example -- A simple example of the use of parse_args -- Copyright (c) 2014, James Humphry -- -- Permission to use, copy, modify, and/or 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 copie...
with C.stdlib; with C.sys.types; with C.sys.uio; with C.unistd; package body System.Termination is pragma Suppress (All_Checks); New_Line : aliased constant C.char := C.char'Val (10); procedure Error_Put_Line (S : String) is iovec : aliased array (0 .. 1) of aliased C.sys.uio.struct_iovec := ( ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with STM32.GPIO; use STM32.GPIO; with HAL.GPIO; with STM32.Device; package Pins_STM32F446 is ---------------------- -- ARDUINO UNO PINS -- ---------------------- -- The following pins have been tested -- Digital Pin_D2 : GPIO_Point renames STM32.Device.PA10; Pin_D3 : GPIO_Point ren...
----------------------------------------------------------------------- -- awa-mail -- Mail module -- Copyright (C) 2011, 2012, 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 file exc...
----------------------------------------------------------------------- -- security-auth-oauth -- OAuth based authentication -- Copyright (C) 2013 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 ...
with Ada.Containers.Linked_Lists; package body Ada.Containers.Naked_Doubly_Linked_Lists is function Next (Position : not null Node_Access) return Node_Access is begin return Position.Next; end Next; function Previous (Position : not null Node_Access) return Node_Access is begin return Posit...
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this pe...
with Entry_Declaration; procedure Entry_Call is The_Task : Entry_Declaration.Task_With_Entry; begin The_Task.First_Entry; end Entry_Call;
with Interfaces; use Interfaces; -- @summary functions to provide a string image of numbers -- overapproximating the length, otherwise too much code needed. package Generic_Bounded_Image with SPARK_Mode is generic type T is (<>); -- any modular type or discrete function Image_32 (item : T) return String...
package body Problem_4 is function Solution_1 return Integer is Minimum : constant Integer := 100; Maximum : constant Integer := 999; Max_Palindrome : Integer := 0; Temp : Integer := 0; begin for I in Minimum .. Maximum loop for J in Minimum .. Maximum loop ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
with ada.Numerics.Float_random, ada.Numerics.Discrete_random; package body any_Math.any_Random is use ada.Numerics; package Boolean_random is new ada.numerics.discrete_Random (Boolean); real_Generator : Float_random .Generator; boolean_Generator : Boolean_random.Generator; function ra...
----------------------------------------------------------------------- -- util-commands-parsers.gnat_parser -- GNAT command line parser for command drivers -- Copyright (C) 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2....
with System.Startup; package body Ada.Command_Line is -- implementation function Argument (Number : Positive) return String is pragma Check (Pre, Check => Number <= Argument_Count or else raise Constraint_Error); begin return System.Native_Command_Line.Argument (Number); end Argument...
$NetBSD: patch-posix-signals.adb,v 1.5 2014/04/30 16:27:04 marino Exp $ Fix style check violation for GNAT 4.9 --- posix-signals.adb.orig 2012-05-10 13:32:11.000000000 +0000 +++ posix-signals.adb @@ -340,16 +340,18 @@ package body POSIX.Signals is begin for Sig in Signal loop if Reserved_Signal...
-- -- \brief Tests for JWX.JSON -- \author Alexander Senier -- \date 2018-05-12 -- -- Copyright (C) 2018 Componolit GmbH -- -- This file is part of JWX, which is distributed under the terms of the -- GNU Affero General Public License version 3. -- with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; ...
with Generic_AVL_Tree, Ada.Numerics.Discrete_Random; with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Command_Line; use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Command_Line; procedure Main is Num_Insertions : Integer := 0; Num_Queries : Integer; Scratch : Boolean; Rand : Integer; procedur...
-- This unit is based on BBqueue.Buffers and uses markers in the buffer to -- track the size of each commited write grants. The size of consequent read -- grants will conrespond to the sizes of commited write grants. -- -- It can be used to handle variable lenght packets: -- -- Q : aliased Framed_Buffer (64);...
-- root package: ${self.name} with Ada.Unchecked_Deallocation; with Generic_List; with Generic_FIFO; with Ada.Tags; with Application_Types; use type Application_Types.Base_Integer_Type; use type Application_Types.Base_Float_Type; use type Application_Types.Base_Text_Type; use type Application_Types.Time_Unit; packag...
pragma License (Unrestricted); with Ada.Numerics.Generic_Elementary_Functions; package Ada.Numerics.Elementary_Functions is new Generic_Elementary_Functions (Float); pragma Pure (Ada.Numerics.Elementary_Functions);
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
-- ============================================================================= -- Package AVR.SPI -- -- Handles the SPI. -- ============================================================================= package AVR.SPI is type SPI_Control_Register_Type is record SPR0 : Boolean; SPR1 : Boole...
with Resource.Web; with Resource.Config; with Ada.Command_Line; with Ada.Text_IO; procedure Test3 is use Resource; C : Content_Access := Web.Get_Content ("main.html"); begin if C = null then Ada.Text_IO.Put_Line ("FAIL: No content 'main.html'"); Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.F...
-- { dg-do run } with System.Storage_Elements; use System.Storage_Elements; with Ada.Unchecked_Deallocation; procedure Allocator_Maxalign1 is Max_Alignment : constant := Standard'Maximum_Alignment; type Block is record X : Integer; end record; for Block'Alignment use Standard'Maximum_Alignment; ...
-- Project: Strato -- System: Stratosphere Balloon Flight Controller -- Author: Martin Becker (becker@rcs.ei.tum.de) -- @summary String functions package body MyStrings with SPARK_Mode is procedure StrCpySpace (outstring : out String; instring : String) is begin if instring'Length >= outstring'Length...
with Ada.Text_IO; use Ada.Text_IO; procedure AdaHelloworld is begin Put_Line ("Hello world"); end AdaHelloWorld;
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- MIT License -- Copyright (c) 2021 Stephen Merrony -- 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, including without limitation the rights -- to use, copy, modify,...
----------------------------------------------------------------------- -- awa-settings -- Settings module -- Copyright (C) 2013, 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 file except...
package body problem_1 is function Solution_1( Max : Int128 ) return Int128 is Sum : Int128 := 0; begin for I in 3 .. Max - 1 loop if I mod 3 = 0 or else I mod 5 = 0 then Sum := Sum + I; end if; end loop; return Sum; end Solution_1; ...
pragma License (Unrestricted); with System.WCh_Con; generic Encoding_Method : System.WCh_Con.WC_Encoding_Method; package GNAT.Decode_String is pragma Pure; procedure Decode_Wide_Character ( Input : String; Ptr : in out Natural; Result : out Wide_Character); procedure Decode_Wide_Wide_Cha...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Numerics; with GBA.Memory.IO_Registers; use GBA.Memory.IO_Registers; package GBA.Display is type Video_Mode is ( Mode_0 -- 4 text BGs , Mode_1 -- 2 text BGs + 1 rot/scale BGs , Mode_2 -- 2 rot/scale bgs , Mo...
with System; use System; package body Pkg is function "=" (x, y: Arithmetic) return Boolean is begin return (x'Address = y'Address); end "="; function Type_Name (x: Arithmetic) return String is begin return "PKG.ARITHMETIC"; end Type_Name; function Cast (x: in Arithmetic; iface: String) return System.Address is b...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with Ada.Strings.Unbounded, Ada.Text_IO; procedure Variadic is subtype U_String is Ada.Strings.Unbounded.Unbounded_String; use type U_String; function "+"(S: String) return U_String renames Ada.Strings.Unbounded.To_Unbounded_String; function "-"(U: U_String) return String renames Ada.Strings.U...
with Ada.Text_Io; use Ada.Text_Io; with datos; use datos; with eliminar_tercer_elemento_ordenada, escribir_lista; procedure prueba_eliminar_tercer_elemento_ordenada is -- este programa hace llamadas al subprograma eliminar_tercer_elemento -- para comprobar si su funcionamiento es correcto Lista1: Lista_Entero...
with Ada.Text_IO, Hofstadter_Figure_Figure; procedure Test_HSS is use Hofstadter_Figure_Figure; A: array(1 .. 1000) of Boolean := (others => False); J: Positive; begin for I in 1 .. 10 loop Ada.Text_IO.Put(Integer'Image(FFR(I))); end loop; Ada.Text_IO.New_Line; for I in 1 .. 40 loop ...
-- Copyright 2017-2021 Bartek thindil Jasicki -- -- This file is part of Steam Sky. -- -- Steam Sky 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 -- (a...
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Regions.Contexts.Environments.Nodes; with Regions.Entities.Packages; with Regions.Shared_Hashed_Maps; -- with Regions.Shared_Lists; private package R...
----------------------------------------------------------------------- -- html.lists -- List of items -- Copyright (C) 2009, 2010, 2014 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 excep...
with glx.Pointers; package GLX.Pointer_Pointers is use glx.Pointers; type VisualID_Pointer_Pointer is access all VisualID_Pointer; type XVisualInfo_Pointer_Pointer is access all XVisualInfo_Pointer; type Pixmap_Pointer_Pointer is access all Pixmap_Pointer; type Font_Pointer_Pointer ...
package Use_CPU is procedure Work (Amount_MS : in Natural) with Inline; -- Amount of time in ms, truncated to tens of ms end Use_CPU;
with Bit_Types; package HAL.I2C is pragma Preelaborate; type Mode_Type is (MASTER, SLAVE); type Speed_Type is (SLOW, FAST); type Configuration_Type is record Mode : Mode_Type; Speed : Speed_Type; end record type Data_Type is array(Natural range <>) of Byte; type Port_Type i...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- The version of the OpenAPI document: 20220523 -- -- -- NOTE: This package is auto generated by OpenAPI-Generator 5.4.0. -- https://openapi-generator.tech -- Do not edit the class manually. pac...
-- C45291A.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...
with box2d_c.Binding, c_math_c.Vector_2, c_math_c.Conversion, ada.unchecked_Deallocation, ada.unchecked_Conversion; package body box2d_Physics.Shape is use c_math_c.Conversion, box2d_c .Binding; -- Base Shape -- overriding procedure define (Self : in out Item) is...
-- pragma SPARK_Mode; with Types; use Types; with Interfaces.C; use Interfaces.C; -- @summary -- Interface to the robots 3-axis gyroscope -- -- @description -- This package exposes the interface to the robot's 3 axis gyroscope -- package Zumo_L3gd20h is -- The gain to apply to a sensor reading Gain : con...
with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random; with Ada.Text_IO; use Ada.Text_IO; procedure Random_Distribution is Trials : constant := 1_000_000; type Outcome is (Aleph, Beth, Gimel, Daleth, He, Waw, Zayin, Heth); Pr : constant array (Outcome) of Uniformly_Distributed := ...
package Lv.Area is Lv_Coord_Max : constant := (16383); Lv_Coord_Min : constant := (-16384); subtype Coord_T is Int16_T; type Point_T is record X : aliased Coord_T; Y : aliased Coord_T; end record; pragma Convention (C_Pass_By_Copy, Point_T); type Point_Array is array (Natural range ...
with AAA.Strings; with CLIC.TTY; with CLIC.User_Input; with CLIC.Config.Load; with CLIC_Ex.Commands.TTY; with CLIC_Ex.Commands.User_Input; with CLIC_Ex.Commands.Switches_And_Args; with CLIC_Ex.Commands.Double_Dash; with CLIC_Ex.Commands.Topics.Example; with CLIC_Ex.Commands.Config; with CLIC_Ex.Commands.Subsub; pack...
with System.Pool_Local; package body Actors is -- Pool used to store/free components used for actors component_pool : System.Pool_Local.Unbounded_Reclaim_Pool; -- All orcs have same attack component, so we can share it between them orc_attacker_comp : aliased Attacker := (power => 3); troll_attacker_c...
package body Operation is function Add (Left: NaturalDouble; Right: NaturalDouble) return NaturalDouble is begin return Left + Right; end Add; function Multiple (Left: NaturalDouble; Right: NaturalDouble) return NaturalDouble is begin return Left * R...
with Ada.Containers.Doubly_Linked_Lists; with Interfaces; with kv.Ref_Counting_Mixin; with kv.avm.Control; with kv.avm.Messages; with kv.avm.Executables; with kv.avm.Actor_References; with kv.avm.Tuples; with kv.avm.Actor_References.Sets; with kv.avm.Affiliates; package kv.avm.Routers is type Router_Type is tagge...
-------------------------------------------------------------------------------- -- -- -- B B -- -- Ball on Beam Simulator ...
with Text_IO; use Text_IO; with Ada.Real_Time; with Ada.Characters.Latin_1; use Ada.Real_Time; procedure Main is update_display: Boolean := true; task type display is entry StartStop; entry Lap; end display; task body display is isStarted: Boolean := false; isPaused: Boolean := f...
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Author: Martin Becker (becker@rcs.ei.tum.de) with ULog; with Interfaces; -- @summary -- implements ULOG GPS message package ULog.GPS with SPARK_Mode is type fixtype is (NOFIX, DEAD...
pragma License (Unrestricted); with Ada.Text_IO; package Ada.Short_Float_Text_IO is new Text_IO.Float_IO (Short_Float);
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package Program.Elements.Defining_Names is pragma Pure (Program.Elements.Defining_Names); type Defining_Name is limited interface and Program.Elemen...