content
stringlengths
23
1.05M
with ada.text_io; use ada.text_io; with screen; use screen; with NPC_PC; use NPC_PC; with enemy_bst; use enemy_bst; with intro; use intro; with w_gen; use w_gen; with list_lib; use list_lib; procedure adventure is ----------------------------------------------- -- Name: Jon Spohn -- David Rogina -- Date: 4/20/0...
-- Generic Buffer -- Author: Emanuel Regnath (emanuel.regnath@tum.de) -- Can be used as ring buffer or queue -- FIXME: consider SPARK formal containers to replace this -- Note: Since this used OO features (class-wide types), the Liskov Subsitution Principle (LSP) -- applies. That is, all contracts on primitives of the...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ implementation of builtin field types -- -- |___/_|\_\_|_|____| by: Timm Felden ...
------------------------------------------------------------------------------ -- -- -- Internet Protocol Suite Package -- -- -- -- -...
-- -- 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 AWS.Log; package GAWS_Log is Log...
-- ----------------------------------------------------------------------- -- package Predictor_2, 20th order Predictor-Corrector -- Copyright (C) 2008-2009 Jonathan S. Parker. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that ...
----------------------------------------------------------------------- -- hestia-main -- Hestia main program -- Copyright (C) 2016, 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.Characters.Handling; use Ada.Characters.Handling; with Ada.Containers.Indefinite_Ordered_Sets; with Ada.Strings.Bounded; package Symbolic_Identifiers is Max_ID_Length : constant Positive := 256; package Bounded_IDs is new Ada.Strings.Bounded.Generic_Bounded_Length (Max_ID_Length); ...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- Strings_Edit.Base64 Luebeck -- -- Implementation Autumn, 2014 -- -- ...
----------------------------------------------------------------------- -- are-main -- Main tool program -- Copyright (C) 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 file except in compl...
-- C74406A.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...
package body SPARKNaCl.Hashing with SPARK_Mode => On is pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)"); subtype Index_80 is I32 range 0 .. 79; type K_Table is array (Index_80) of U64; K : constant K_Table := (16#428a2f98d728ae22#, 16#7137449123ef65cd#, 16#b5c0fbcfec4d...
with Ada.Text_IO; use Ada.Text_IO; package body kv.avm.Vole_Lex is procedure Report is begin Put_Line(yytext); end Report; procedure Inc_Line is begin Line_Number := Line_Number + 1; end Inc_Line; function YYLex return Token is subtype short is integer range -32768..32767; yy_act ...
with PixelArray; package ImageFilters is type Kernel is array (Natural range <>) of Float; function generateKernel(size: Positive; sigma: Float) return Kernel; function gaussian(image: PixelArray.ImagePlane; size: Positive; sigma: Float) return PixelArray.ImagePlane; end ImageFilters;
-- 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; package Cortex_M_SVD.NVIC is pragma Preelaborate; --------------- -- Registers -- --------------- -- Interrupt Set-Enable Registe...
with System; -- package Application_Types is type Time_Unit is (millisecond, second); Time_Unit_First: constant Time_Unit := Time_Unit'first; ---------------------------------------------------------------------------------------------- type Base_Integer_Type is new integer; function "+" (A : Bas...
----------------------------------------------------------------------- -- asf-tests - ASF Tests Framework -- Copyright (C) 2011, 2012, 2013, 2015, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
with Giza.Timers; use Giza.Timers; with Ada.Real_Time; use Ada.Real_Time; with Giza.GUI; use Giza.GUI; package body Timer_Callback is Cnt : Integer := 0; -------------- -- Callback -- -------------- function Callback return Boolean is begin -- Put_Line ("Here comes the callback:" & Cnt'Img)...
with Ahven; use Ahven; with AdaBaseXClient; use AdaBaseXClient; -- -- Requires BaseX server when testing -- package body ClientTest is procedure Initialize (T : in out Test) is begin Set_Name (T, "My tests"); T.Add_Test_Routine (Routine => Unknown_Fail'Access, Na...
package body System.Fat_LLF is function frexp (value : Long_Long_Float; exp : access Integer) return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_frexpl"; function inf return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "_...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Ver_Dicotomica is type T_Vector is array (Positive range <>) of Integer; Vector: T_Vector (1..10); I: Integer; function Dicotomica (Vector: T_Vector; N:Integer) return Integer is mid : Integer := ((Vector'...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); with Ada.Strings.Bounded; with Ada.Strings.Bounded_Strings; with Ada.Text_IO.Generic_Bounded_IO; generic with package Bounded is new Strings.Bounded.Generic_Bounded_Length (<>); package Ada.Text_IO.Bounded_IO is -- for renaming package Bounded_Strings_IO is new Generic_Bo...
-- -- 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 Types; package Database.Jobs is ...
----------------------------------------------------------------------- -- servlet-security-filters-oauth -- OAuth Security filter -- 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 n...
-- domain package: ${self.name} -- description: self.description package ${root_package.name}.${self.name} is end ${root_package.name}.${self.name};
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-- AOC, Day 3 with Ada.Text_IO; use Ada.Text_IO; with FMS; procedure main is begin FMS.load_file("day3_input.txt"); put_line("Part 1: " & Positive'Image(FMS.closest_intersection)); put_line("Part 2: " & Positive'Image(FMS.shortest_intersection)); end main;
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 - 2019 Joakim Strandberg <joakim@mequinox.se> -- -- 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.ap...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is procedure P(X: in out Integer) is begin X := 0; end; v: integer; begin P(V); end;
package body Tail_Call_P is function Start_Side (Element : T) return Index is begin if Element = 1 then raise Program_Error; end if; if Element = 0 then return Second; else return First; end if; end; function Segment (Element : T) return T is begin if Element /= 0 t...
pragma License (Unrestricted); with Ada.IO_Exceptions; with System.Storage_Elements; generic type Element_Type is private; package Ada.Storage_IO is pragma Preelaborate; Buffer_Size : constant System.Storage_Elements.Storage_Count := Element_Type'Max_Size_In_Storage_Elements; -- implementation-defined ...
--- src/gprbuild-link.adb.orig 2021-05-19 05:22:13 UTC +++ src/gprbuild-link.adb @@ -3224,8 +3224,6 @@ package body Gprbuild.Link is if Opt.Run_Path_Option and then Main_Proj.Config.Run_Path_Option /= No_Name_List then - Add_Rpath_From_Arguments (Rpaths, Arguments, Main_Proj);...
generic type Number is private; Zero : Number; One : Number; Two : Number; with function "+" (X, Y : Number) return Number is <>; with function "*" (X, Y : Number) return Number is <>; with function "/" (X, Y : Number) return Number is <>; with function "mod" (X, Y : Number) return Numbe...
with Ada.Text_IO, Set_Puzzle, Ada.Command_Line; procedure Puzzle is package TIO renames Ada.Text_IO; Card_Count: Positive := Positive'Value(Ada.Command_Line.Argument(1)); Required_Sets: Positive := Positive'Value(Ada.Command_Line.Argument(2)); Cards: Set_Puzzle.Cards(1 .. Card_Count); function ...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arising...
with Interfaces.C; with System; package body Generic_Callback is function paMinLatCallback (inputBuffer : System.Address; outputBuffer : System.Address; framesPerBuffer : IC.unsigned_long; timeInfo : access PaStreamCallbackTimeInfo; statusFlags : ...
with Ada.Containers.Vectors; with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.IO_Exceptions; procedure Day_03 is type Point is record X, Y: Integer; end record; package Wire_Vec is new Ada.Containers.Vectors( Index_Type => Natural, Element_Type => Point); procedure Append_Comma_Separated_...
with Ada.Text_IO; use Ada.Text_IO; with Interfaces.C; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with Ada.Directories; use Ada.Directories; with System; with Ada.Calendar; procedure Main is type LPCSTR is access constant Interfaces.C.char; -- winnt.h pragma Convention (C, LPCSTR); fu...
-- { dg-do compile } -- { dg-options "-O2 -gnatp -fdump-tree-optimized" } pragma Optimize_Alignment (Space); package body Pack9 is procedure Copy (X, Y : R2_Ptr) is T : R2 := Y.all; begin if T.I2 /= Y.I2 then raise Program_Error; end if; X.all := T; end; end Pack9; -- { dg-final { scan-...
package DDS.Request_Reply.Replier is type Ref is limited interface and DDS.Request_Reply.Ref; type Ref_Access is access all Ref'class; procedure Wait_For_Requests (Self : not null access Ref; Min_Count : DDS.Integer; Max_Wait : DDS.Duration_T) is abstract; end DDS.Request_Reply.Repli...
generic Height : Positive; Width : Positive; package Mazes is type Maze_Grid is private; procedure Initialize (Maze : in out Maze_Grid); procedure Put (Item : Maze_Grid); private type Directions is (North, South, West, East); type Cell_Walls is array (Directions) of Boolean; type Cells is ...
generic type Integer_Type is range <>; type Coordinates is (<>); package Vectors_xD_I is pragma Elaborate_Body; type Vector_xD_I is array (Coordinates) of Integer_Type; Zero_Vector_xD : constant Vector_xD_I := (others => Integer_Type'First); function Image (V : Vector_xD_I) return String; fu...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams; procedure Using_Text_Streams is Input, Output : File_Type; Buffer : Character; begin Open (File => Input, Mode => In_File, Name => "input.txt"); Create (File => Output, Mode => Out_File...
with Asis; with Asis.Errors; with Asis.Exceptions; with Asis.Implementation; with Asis.Ada_Environments; with Asis.Compilation_Units; with Ada.Exceptions; with Ada.Wide_Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Ada.Characters.Handling; use Ada.Characters.Handling; procedure Asis_Hello_World ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; package word_operations_hpp is -- * File : word_operations.hpp -- * -- * File created by : Corentin Gay -- * File was created at : 06/12/2017 -- subtype uint16_t is unsigned_short; -- ./wor...
with Ada.Streams; use Ada.Streams; package abstract1 is type T is abstract tagged limited null record; function Input (Stream : not null access Root_Stream_Type'Class) return T is abstract; function New_T (Stream : not null access Root_Stream_Type'Class) return T'Class; type IT is limited ...
-- Databases - A simple database library for Ada applications -- (c) Kristian Klomsten Skordal 2019 <kristian.skordal@wafflemail.net> -- Report bugs and issues on <https://github.com/skordal/databases/issues> -- vim:ts=3:sw=3:et:si:sta package body Databases.Utilities is function Execute (Database : in Databas...
package Noreturn5 is procedure Proc (Arg_Line : Wide_String; Keep_Going : Boolean); pragma No_Return (Proc); end Noreturn5;
-- This spec has been automatically generated from FE310.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package FE310_SVD.SPI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype SCKDIV_SCALE_Field is HAL....
With Ada.Unchecked_Conversion, Ada.IO_Exceptions; Package Body NSO.Types is Use Ada.Streams; ------------------- -- INITALIZERS -- ------------------- Function From_String( Text : String ) return String_Stream with Inline, Pure_Function; Function Buffer ( Length : Natural ) ret...
with Ada.Text_IO; with Ada.Strings.Fixed; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A041 is use Ada.Text_IO; use Ada.Strings.Fixed; use Ada.Integer_Text_IO; -- File Reference: http://www.naturalnumbers.org/primes.html Digit : constant String (1 .. 9) := "123456789"...
-- Abstract : -- -- Utilities for generating source code from BNF source files -- -- Copyright (C) 2012, 2013, 2015, 2017, 2018 Free Software Foundation, Inc. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under terms of the GNU General Public License as -- published by ...
with Ada.Unchecked_Conversion; with System; package body Ada.References is pragma Suppress (All_Checks); package body Generic_Slicing is function Constant_Slice ( Item : aliased Array_Type; First : Index_Type; Last : Index_Type'Base) return Constant_Reference_Type is ...
with Ada.Real_Time; use Ada.Real_Time; with HIL.GPIO; use HIL.GPIO; with HIL.Clock; use HIL.Clock; with Crash; pragma Unreferenced (Crash); with Calc; procedure main with SPARK_Mode is f1, f2, res : Float; next : Time := Clock; PERIOD : constant Time_Span := Milliseconds(500); led_on : Boolean := False; ...
with Ada.Containers.Ordered_Sets, Ada.Text_IO; use Ada.Text_IO; procedure Duplicate is package Int_Sets is new Ada.Containers.Ordered_Sets (Integer); Nums : constant array (Natural range <>) of Integer := (1,2,3,4,5,5,6,7,1); Unique : Int_Sets.Set; begin for n of Nums loop Unique.Include (n); end loop; for e ...
-- CA1108A.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...
--Helen: added this file to implement RPC with Ada.Streams; package System.RPC is type Partition_ID is range 0 .. 100; Communication_Error : exception; type Params_Stream_Type ( Initial_Size : Ada.Streams.Stream_Element_Count) is new Ada.Streams.Root_Stream_Type with private; procedure Read ( ...
with Ada.Text_IO; use Ada.Text_IO; with I_Am_Ada; with I_Am_Ada_Too; procedure Main is procedure Cpp_Fun; pragma Import(C, Cpp_Fun, "i_am_adaInterface"); procedure C_Fun; pragma Import(C, C_Fun, "i_am_c"); begin Put_Line("Calling external C++ code from Ada main."); Cpp_Fun; Put_Line("Calling external C c...
with Ada.Assertions; use Ada.Assertions; with Ada.Strings; use Ada.Strings; -- Debug includes: -- with Ada.Strings.Fixed; use Ada.Strings.Fixed; -- with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Rejuvenation.File_Utils; use Rejuvenation.File_Util...
package constants is MAX_ARGUMENT_VALUE : constant := 500.0; MAX_EMPLOYEES : constant := 2; MAX_CHAIRMEN : constant := 1; MAX_CLIENTS : constant := 1; MAX_TASKLIST_SIZE : constant := 40; MAX_STORAGE_CAPACITY : constant := 40; EMPLOYEE_SLEEP : constant := 1;...
-- Standard Ada library specification -- 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. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt package AdaBase.Logger.Base.Screen is type Screen_Logger is new Base_Logger and AIL.iLogger with private; type Screen_Logger_access is access all Screen_Logger; overriding procedure reaction (liste...
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.USB is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------------------------- -- Usb...
with System; with Interfaces; use Interfaces; with System.Machine_Code; use System.Machine_Code; package body Startup is WDTCTL : Unsigned_16 with Import, Address => System'To_Address (16#0120#); procedure Ada_Init with Import => True, Convention => C, External_Name => "adainit"; procedure Ada_Main with Imp...
with GL, system.storage_Elements; package openGL.Attribute -- -- Models an openGL shader attribute. -- is type Item is tagged private; type View is access all Item'Class; type Views is array (Positive range <>) of View; type data_Kind is (GL_BYTE, GL_UNSIGNED_BYTE, GL_S...
With NSO.Helpers, Ada.Strings.Fixed, Ada.Calendar.Formatting, Ada.Characters.Latin_1, Ada.Tags, Gnoga.Types.Colors, Gnoga.Gui.View, Ada.Text_IO ; WITH Ada.Tags, Ada.Text_IO; with Gnoga.Gui.Base; Package Body NSO.Types.Report_Objects.Weather_Report is Use NSO.Helpers; DEBUGGING : Constant Boolean := Fals...
package Memory.Dup is type Dup_Type is new Memory_Type with private; type Dup_Pointer is access all Dup_Type'Class; function Create_Dup return Dup_Pointer; overriding function Clone(mem : Dup_Type) return Memory_Pointer; procedure Add_Memory(mem : in out Dup_Type; other...
package Buffer_Package is NONE : Integer := Integer'Size - 1; type Pos is record L : Integer; C : Integer; end record; type Tag is record P1 : Pos; P2 : Pos; V : Integer; end record; type Tag_Type is ( VIRTCURS, HIGHLIGHT, BLOCK, TAG_MAX); ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
with Ada.Containers.Indefinite_Hashed_Maps; -- with Ada.Containers.Indefinite_Holders; with Ada.Containers.Indefinite_Vectors; with Ada.Containers.Vectors; with Ada.Finalization; use Ada; -- -- ## What is this? -- -- This package implements a generic "symbol table," that is a structure that -- maps symbol "names" (a...
---------------------------------------- -- Copyright (C) 2019 Dmitriy Shadrin -- -- All rights reserved. -- ---------------------------------------- with Unchecked_Deallocation; with Ada.Text_IO; use Ada.Text_IO; with ConfigTree.SaxParser; ---------------------------------------------------------------...
Package Body Config is -- Return the slice (1..Item.LENGTH). Function "+"( Item : Pascal_String ) return String is Begin Return Result : Constant String := (Item.Text(1..Natural(Item.Length))); End "+"; -- Return Item concatenated with the padding to make the result-length 255. Functio...
----------------------------------------------------------------------- -- security-openid-servlets - Servlets for OpenID 2.0 Authentication -- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Li...
-- {{Ada/Sourceforge|to_lower_1.adb}} pragma License (Gpl); pragma Ada_95; with Ada.Text_IO; with Ada.Command_Line; with Ada.Characters.Handling; procedure To_Lower_1 is package CL renames Ada.Command_Line; package T_IO renames Ada.Text_IO; function To_Lower (Str : String) return String; Value : cons...
with ACO.Messages; with ACO.OD_Types; with ACO.Configuration; private with ACO.Utils.DS.Generic_Queue; package ACO.SDO_Sessions is type Session_Manager is tagged limited private; type Services is (None, Download, Upload, Block_Download, Block_Upload); subtype Endpoint_Nr ...
------------------------------------------------------------------------------ -- -- -- GBIND BINDER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Program.Elements.Declarations is pragma Pure (Program.Elements.Declarations); type Declaration is limited interface an...
limited with openGL.Program; package openGL.Variable.uniform -- -- Models a uniform variable for shaders. -- is type Item is abstract new Variable.item with private; --------- -- Forge -- procedure define (Self : in out Item; Program : access openGL.Program.item'class; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Containers.Ordered_Maps; use Ada.Containers; with Memory.Container; use Memory.Container; generic type Value_Type is range <>; with function Get_Value(mem : access Memory_Type'Class) return Value_Type; package Memory.Super is type Super_Type is new Container_Type with private; type Super_Pointe...
generic type Real is digits <>; package pc_2_coeff_18 is subtype PC_Rule_Range is Integer range 0..31; type Integration_Rule is array(PC_Rule_Range) of Real; Starting_Id_of_First_Deriv_of_Y : constant PC_Rule_Range := 15; -- Center_Integration Rule, applied to (d/dt)**2 Y, takes a dY/dt here, and ...
----------------------------------------------------------------------- -- Faces Context Tests - Unit tests for ASF.Contexts.Faces -- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
-- TITLE external_file_manager -- AUTHOR: John Self (UCI) -- DESCRIPTION opens external files for other functions -- NOTES This package opens external files, and thus may be system dependent -- because of limitations on file names. -- This version is for the VADS 5.5 Ada development system. -- $Header: /co...
--***************************************************************************** --* --* PROJECT: BINGADA --* --* FILE: q_bingo-q_bombo.ads --* --* AUTHOR: Javier Fuica Fernandez --* --***************************************************************************** package Q_Bingo.Q_Bo...
package body ACO.Utils.DS.Generic_Protected_Queue is procedure Put_Blocking (This : in out Protected_Queue; Item : in Item_Type) is Success : Boolean; begin This.Buffer.Put (Item, Success); if not Success then Ada.Synchronous_Task_Control.Suspend_Until_True (This.N...
-- Score PIXAL le 07/10/2020 à 14:33 : 100% with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Tri par insertion procedure Tri_Insertion is Capacite: constant Integer := 10; -- Cette taille est arbitraire type T_TableauBrut is array (1..Capacite) of Integer; type ...
with Ada.Text_IO; procedure Letter_Frequency is Counters: array (Character) of Natural := (others => 0); -- initialize all Counters to 0 C: Character; File: Ada.Text_IO.File_Type; begin Ada.Text_IO.Open(File, Mode => Ada.Text_IO.In_File, Name => "letter_frequency.adb"); while not Ada.Text_IO...
with physics.Rigid; with Math; package physics.Motor.spring is -- a motor which acts as a spring to bring a target solid to a desired site or attitude. type Item is abstract new physics.Motor.item with record Rigid : physics.Rigid.pointer; -- access to the Solid affected by t...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package bits_types_u_mbstate_t_h is -- Integral type unchanged by default argument promotions that can -- hold any value corresponding to members of the extended character -- set, as well as at least one value that does not co...
package STM32GD.Power is subtype Millivolts is Natural range 0..4095; procedure Enable_Sleep; procedure Enable_Stop; procedure Enable_Standby; function Supply_Voltage return Millivolts; end STM32GD.Power;
Package numeros_racionales is type Racional is private; function "/" (A,B:integer)return racional; --{Crea un numero racional donde A numerador y B denominador} --{Pre:Ninguna} --{Post:Numerador(Crear(A,B))=A,Denominador(Crear(A,B))=B} function "+"(X,Y:Racional)return Racional; --{Pre:Ninguna} --{Post:Devuelve ...
with Interfaces; use Interfaces; -- @summary -- dummy file replacing hil.ads (because we don't want -- its additional dependencies here) package HIL with SPARK_Mode is pragma Preelaborate; -- procedure configure_Hardware; type Byte is mod 2**8 with Size => 8; -- Arrays type Byte_Array is array...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- C4A011A.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...
-- Abstract : -- -- See spec. -- -- Copyright (C) 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 Foundation; either version 3, or (at your option) any lat...
package body Tests is --------------- -- Get_Suite -- --------------- function Get_Suite return AUnit.Test_Suites.Access_Test_Suite is (Suite'Access); end Tests;
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package Program.Lexical_Elements is pragma Pure; type Lexical_Element is limited interface; type Lexical_Element_Access is access all ...
package Debug13 is procedure Compile (P : Natural); end Debug13;