content
stringlengths
23
1.05M
generic type Modular_Type is mod <>; package BitOperations.Types With SPARK_Mode, Pure is Pragma Assert (Modular_Type'Last = 2 ** Modular_Type'Size - 1); subtype Modular is Modular_Type; subtype Bit_Position is Natural range 0 .. Modular'Size - 1; subtype Mask_Size is Natural range 1 .. Modular'Size; ...
generic type Argument is private; package Functions is type Primitive_Operation is not null access function (Value : Argument) return Argument; type Func (<>) is private; function "*" (Left : Func; Right : Argument) return Argument; function "*" (Left : Func; Right : Primitive_Operation) return Fun...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2010, AdaCore -- -- -- -- G...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ stream to skill tokens -- -- |___/_|\_\_|_|____| by: Timm Felden, Dennis Przytarski ...
----------------------------------------------------------------------- -- users - User creation, password tests -- Copyright (C) 2009, 2010, 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...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau with GESTE_Config; use GESTE_Config; with GESTE.Grid; with GESTE.Tile_Bank; with GESTE.Sprite; with Monsters; with Chests; with Player; with Score_Display; with Sound; with Game_Assets; use Game_Assets; with Game_Assets.Tileset; with Game_Assets.Tileset_Collisi...
with FLTK.Text_Buffers; private with Interfaces.C, System.Address_To_Access_Conversions; package FLTK.Widgets.Groups.Text_Displays is type Text_Display is new Group with private; type Text_Display_Reference (Data : not null access Text_Display'Class) is limited null record with Imp...
package generic_function_declaration is generic function test(X : Integer) return Integer; end generic_function_declaration;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Integer_Text_IO; procedure Afficher_Un_Entier (N: in Integer) is begin Ada.Integer_Text_IO.Put (N, 1); end Afficher_Un_Entier;
package body Neural.Privvy is procedure dummy is begin null; end dummy; -- placeholder for future subprograms. end Neural.Privvy;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- Lumen.Image -- Load and save image data -- -- Chip Richards, NiEstu, Phoenix AZ, Spring 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Auteur: MOUDDENE Hamza. -- Gérer un stock de matériel informatique. -- package body Stocks_Materiel is procedure Creer (Stock : out T_Stock) is begin null; end Creer; function Nb_Materiels (Sto...
-- 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...
with openGL.Primitive, openGL.Buffer, openGL.Program, openGL.Texture; private with ada.Strings.unbounded; package openGL.Geometry -- -- Provides a base class for openGL geometry. -- A Geometry is composed of up to 5 primitives. -- Each primitive has its own set of GL indices and a facet ki...
------------------------------------------------------------------------------ -- -- -- JSON Parser/Constructor -- -- -- -- -...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Calendar; with Ada.Characters.Latin_1; with Ada.Directories; with Ada.IO_Exceptions; with Ada.Streams.Stream_IO.Standard_Files; with Web; with Tabula.Debug; procedure Tabula.Unlock ( Lock_Name : in not null Static_String_Access; Debug_Log_File_Name : in not nu...
------------------------------------------------------------------------------- -- 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...
generic type Element_Type is private; package Generic_Stack is type Stack is private; procedure Push (Item : Element_Type; Onto : in out Stack); procedure Pop (Item : out Element_Type; From : in out Stack); function Create return Stack; Stack_Empty_Error : exception; private type Node; type Stac...
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.DSU is pragma Preelaborate; --------------- -- Registers -- --------------- -- Control type DSU_CTRL_Register is reco...
with PolyPaver.Floats; package body Example is function Sqrt (X : in Float) return Float is R,S : Float; begin S := X; R := PolyPaver.Floats.Add(PolyPaver.Floats.Multiply(0.5,X),0.5); while R /= s loop --# assert R in -0.25*X**2+X .. 0.25*X**2+1.0 ; S := r; R := PolyPaver.Floats.Multiply(0.5, ...
-- -- Raytracer implementation in Ada -- by John Perry (github: johnperry-math) -- 2021 -- -- specification for Rays -- -- local packages with Vectors; use Vectors; -- @summary a Ray has a starting point and a direction package Rays is type Ray_Type is record Start, Dir: Vector; end record; functio...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- css-analysis-classes -- CSS Class Analysis -- Copyright (C) 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 ex...
-- This spec has been automatically generated from STM32L5x2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.EXTI is pragma Preelaborate; --------------- -- Registers -- --------------- -- RTSR1_RT array type RT...
-- SPDX-License-Identifier: MIT -- -- Copyright (c) 2007 - 2018 Gautier de Montmollin -- SWITZERLAND -- -- 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...
procedure Main is type Bubble_Array is array (Integer range <>) of Integer; procedure Bubble_Sort (Arr : in out Bubble_Array) is Temp : Integer; begin for I in reverse Arr'Range loop for J in Arr'First .. I loop if Arr(I) < Arr(J) then Temp := Arr(J); Arr(J) :...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
with lace.Event, lace.Subject, lace.Observer; private with ada.Containers.Vectors, ada.Containers.indefinite_hashed_Maps; generic type T is abstract tagged limited private; package lace.make_Subject -- -- Makes a user class T into an event Subject. -- is pragma remote_Types; type...
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- Copyright (c) 2021 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Text_IO; with Ada.Wide_Wide_Text_IO; with Ada.Streams; with League.String_Vectors; with League.Characters.Latin; with League...
------------------------------------------------------------------------------ -- Copyright (c) 2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package body Drivers.NTC is function Value (V : Positive) return Unsigned_32 is NTC_R : Unsigned_32; begin if NTC_Is_Upper then NTC_R := V_In_Max * Resistor_Value / Unsigned_32 (V) - Resistor_Value; else NTC_R := Unsigned_32 (V) / (V_In_Max - Unsigned_32 (V)) * Resistor_Value;...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2011, Alexander Senier and Stefan Berghofer -- Copyright (C) 2011, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and binary...
generic No_of_Bits_per_Segment : Integer; Segments_per_Vector : Integer; package Binary_Rank is type Unsigned_64 is mod 2**64; Bits_per_Segment : constant Integer := No_of_Bits_per_Segment; Bits_per_Vector : constant Integer := Bits_per_Segment*Segments_per_Vector; subtype Unsigned_Segment is Un...
package Problem_70 is -- Euler's Totient function, φ(n) [sometimes called the phi function], is used to determine the -- number of positive numbers less than or equal to n which are relatively prime to n. For -- example, as 1, 2, 4, 5, 7, and 8, are all less than nine and relatively prime to nine, φ(9)=6. -...
pragma License (Unrestricted); -- runtime unit required by compiler with System.Unwind; package System.Exception_Table is pragma Preelaborate; -- required for user-defined exception by compiler (s-exctab.ads) procedure Register_Exception (X : Unwind.Exception_Data_Access) is null; -- unimplemented ...
with ARM_Contents; package ARM_Output is -- -- Ada reference manual formatter (ARM_Form). -- -- This package defines the abstract definition of an output object. -- Output objects are responsible for implementing the details of -- a particular format. -- -- We use dispatching ...
-- TODO: Figure-out the memory management issues... is it -- possible to use only standard Ada facilities, or is an -- additional GC unavoidable? package Tarmi is type Datum_R is abstract tagged null record; type Datum is not null access constant Datum_R'Class; type Pair_R is new Datum_R with record...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (C) 1995-2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- t...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package body Pck is procedure Proc (I : Integer) is Not_In_Scope : Integer := 77; begin Inner.Inside_Variable := Not_In_Scope + I; end Proc; end Pck;
-- { dg-do compile } procedure Addr6 is type Byte is mod 2**8; type Byte_Arr1 is array (Positive range <>) of Byte; for Byte_Arr1'Alignment use 4; type Byte_Arr2 is array (Positive range <>) of Byte; function Length return Natural is begin return 1; end; function Empty return Byte_Arr...
with Unchecked_Deallocation; package body AcronymList is procedure Dispose is new Unchecked_Deallocation (Object => Node, Name => Position); -- function Allocate (X : Meaning_Pointer; P : Position) return Position; function Allo...
-- Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later ve...
-- { dg-excess-errors "no code generated" } package Pack3_Pkg is function F return Integer; end Pack3_Pkg;
with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with DDS.DomainParticipant; with DDS.DomainParticipantFactory; with Primes.PrimeNumberRequester; with Primes_IDL_File.PrimeNumberRequest_TypeSupport; with RTIDDS.Config; procedure Primes.Requester_Main is use Primes_IDL_File; use DDS.DomainParticipant; ...
with Ada.Text_IO; with Ada.Command_Line; with Word_Lists; with Ada.Strings.Unbounded; with Ada.Exceptions; procedure words is package ASU renames Ada.Strings.Unbounded; package ACL renames Ada.Command_Line; package ATI renames Ada.Text_IO; package WL renames Word_Lists; File_Name: ASU.Unbounded_String; Fich: A...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Latin_1; with Ada.Streams; with Ada.Strings.Fixed; with Ada.Text_IO; with GNAT.Sockets; with Coroutines.Polling;...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package Glfw.Display is type Display_Mode is (Window, Fullscreen); type OpenGL_Profile_Kind is (System_Default, Core_Profile, Compat_Profile); -- return False to cancel window closing typ...
-- -- 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 Backend; with Sessions; package Gene...
package body problem_17 is function Letter_In_Num( Num : Integer ) return Integer is Single : constant array( Natural range 0 .. 9 ) of Positive := ( 0 => 4, 1 => 3, 2 => 3, 3 => 5, 4 => 4, 5 => 4, 6 => 3, 7 => 5, 8 => 5, 9 => 4 ); doubles : constant arra...
with Blade_Types; with C3GA; with E3GA; with GA_Maths; with Multivectors; with Multivector_Type; with Multivector_Type_Base; package Multivector_Analyze is Flag_Invalid : constant boolean := false; Flag_Valid : constant boolean := true; Max_Points : constant integer := 3; Max_Scalars : c...
with System; package Frame_Overflow is type Bitpos_Range_T is range 1..2**(System.Word_Size-1)-1; type Bitmap_Array_T is array (Bitpos_Range_T) of Boolean; type Bitmap_T is record Bits : Bitmap_Array_T := (others => False); end record; function Set_In (Bitmap : Bitmap_T; Bitpos : Bitpos_Ra...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; with array_hpp; with bitset_hpp; limited with memory_hpp; limited with video_hpp; with word_operations_hpp; package lcd_hpp is type LCDState is (Mode0, Mode1, Mode2, Mode3); pr...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do run } -- { dg-options "-O" } with Opt22_Pkg; use Opt22_Pkg; procedure Opt22 is procedure Go (S : String) is begin begin Fail; exception when Constraint_Error => Put ("the " & S); end; Put ("the " & S); end; begin Go ("message"); end;
pragma Profile (Ravenscar); with AVR; use AVR; with AVR.Serial, AVR.Wait; with Hardware, Hardware.Beacon, Hardware.DriveTrain; with Hardware.PWM; pragma Unreferenced (Hardware.PWM); procedure Rover is ticks : Integer := 0; procedure Wait_1ms is new Wait.Generic_Wait_Usecs (16_000_000, 1000); begin Har...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- AOC 2020, Day 25 with Ada.Text_IO; use Ada.Text_IO; with Day; use Day; procedure main is key_pk : constant Long_Integer := 6270530; door_pk : constant Long_Integer := 14540258; part1 : constant Long_Integer := encryption_key(key_pk, door_pk); begin put_line("Part 1: " & part1'IMAGE); end main;
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; with Ada.Text_IO; use Ada.Text_IO; with Functions; procedure Test_Compose is package Float_Functions is new Functions (Float); use Float_Functions; Sin_Arcsin : Func := Sin'Access * Arcsin'Access; begin ...
procedure Raise_Statement is The_Exception : exception; begin raise The_Exception; end Raise_Statement;
with MicroBit.IOs; with MicroBit.Time; procedure Main is begin -- Loop forever loop -- Turn on the LED connected to pin 0 MicroBit.IOs.Set (0, True); -- Wait 500 milliseconds MicroBit.Time.Delay_Ms (500); -- Turn off the LED connected to pin 0 MicroBit.IOs.Set (0, False...
------------------------------------------------------------------------------ -- Copyright (c) 2013, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- part of ParserTools, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Strings_Edit.UTF8; package Lexer.Base.Unicode is -- this package assumes that the input is encoded in UTF-8. subtype Rune is Strings_Edit.UTF8.UTF8_Code_Point; function Next (Obj...
-- SPDX-License-Identifier: BSD-3-Clause -- -- Copyright (c) 2017 Eric Bruneton -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: -- 1. Redistributions of source code must retain the a...
-- -- Raytracer implementation in Ada -- by John Perry (github: johnperry-math) -- 2021 -- -- specification of Scene type and the ray tracer -- -- local packages with RayTracing_Constants; use RayTracing_Constants; with Bitmap; use Bitmap; with Cameras; use Cameras; with Lights; use Lights; with Objects; use Objec...
with ACO.States; with Ada.Real_Time; use Ada.Real_Time; package body ACO.Protocols.Synchronization is --function To_Ms_From_100us (T : Natural) return Natural is (T / 10); procedure Counter_Reset (This : in out SYNC) is begin This.Counter := Counter_Type'First; end Counter_Reset; proced...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Containers.Vectors; with Ada.Strings.Unbounded; package Tabula.Casts is type Group is record Name : aliased Ada.Strings.Unbounded.Unbounded_String; By : aliased Ada.Strings.Unbounded.Unbounded_String; Width : Integer; Height : Integer; Group : Integ...
with Ada.Streams; Package Aids.Utilities is Use Ada.Streams; function Chunk_Image(Chunk: Stream_Element_Array) return String; function Chunk_To_String(C: in Stream_Element_Array) return String; function String_To_Chunk(S: in String) return Stream_Element_Array; -- Returns the stream as a hex-str...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with System.Machine_Code; with Serial_Console; package body Last_Chance_Handler is Port : HAL.UART.Any_UART_Port := null; procedure Initialize (UART : not null HAL.UART.Any_UART_Port) is begi...
-- { dg-do compile } -- { dg-options "-flto" { target lto } } package body Lto18 is procedure Proc (Driver : Rec) is R : Path; begin for I in Driver.Step'Range loop R := Get (Driver, 1, Driver.Step (I)); R := Get (Driver, 2, Driver.Step (I)); R := Get (Driver, 3, Driver.St...
pragma Ada_2012; with Ada.Text_IO; use Ada.Text_IO; with GNAT.OS_Lib; use GNAT.OS_Lib; package body Cmd_ada is ---------------------- -- Register_Command -- ---------------------- procedure Register_Command (Command_String : String; Command_Cb : Proc_Callback; Description : String) is ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with STM32GD.EXTI; package body Peripherals is procedure Init is begin Input.Init; Input.Configure_Trigger (STM32GD.EXTI.Interrupt_Falling_Edge); Output.Init; Output.Clear; end Init; procedure Run is begin Output.Toggle; end Run; end Peripherals;
pragma License (Unrestricted); -- extended unit private with System.Native_Directories.Temporary; package Ada.Directories.Temporary is -- Creating temporary files and directories. -- settings function Temporary_Directory return String; procedure Set_Temporary_Directory (Name : String); pragma Inlin...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with Real_Type; use Real_Type; with Vectors_xD; pragma Elaborate_All (Vectors_xD); package Vectors_4D is type xy_Coordinates is (x, y, z, t); package Vectors_4Di is new Vectors_xD (Real, xy_Coordinates); subtype Vector_4D is Vectors_4Di.Ve...
-------------------------------------------------------------------------------- -- 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...
package body Matrix_Mult is procedure Mat_Mult(A: in Mat; B: in Mat; C: out Mat) is task type Dot_Product is entry Dot(Row_Index: Integer; Col_Index: Integer); entry Dot_Done; end Dot_Product; task body Dot_Product is Row: Integer; Col: Integer; begin accept...
----------------------------------------------------------------------- -- awa-audits-services -- AWA Audit Manager -- Copyright (C) 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 this fil...
-- Copyright 2014-2019 Simon Symeonidis (psyomn) -- -- 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...
with CLIC_Ex.Commands.TTY; with CLIC_Ex.Commands.User_Input; package body CLIC_Ex.Commands.Subsub is ------------- -- Execute -- ------------- overriding procedure Execute (Cmd : in out Instance; Args : AAA.Strings.Vector) is procedure Set_Global_Switches (Conf...
with Array23_Pkg3; package Array23_Pkg2 is C1 : Natural := Array23_Pkg3.C0; type Enum is (Zero, One, Two); subtype Index is Enum range One .. Enum'val(C1); end Array23_Pkg2;
with lace.Event, lace.Subject; package gel.Keyboard with remote_Types -- -- Provides an interface for a keyboard. -- is type Item is limited interface and lace.Subject.item; type View is access all Item'class; -------- --- Keys -- type Key is (Nil, BACKSP...
-- BinToAsc -- Binary data to ASCII codecs -- Copyright (c) 2015, 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 copies. -- -- THE SOF...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Storage_Pools; with Program.Nodes.Pragmas; with Program.Nodes.Defining_Identifiers; with Program.Nodes.Defining_Character_Literals; with Progra...
with Worlds; use Worlds; with Entities; use Entities; with Vectors2D; use Vectors2D; with Materials; use Materials; package Physics is -- Update the world of dt procedure StepNormal(This : in out World); -- Update the world of dt with low ram usage procedure StepLowRAM(This : in out World); -- Thi...
-- -- -- package Object.Handle Copyright (c) Dmitry A. Kazakov -- -- Implementation Luebeck -- -- Winter, 2002 -- -- ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with Ada.Unchecked_Conversion; package body GBA.Input.Buffered is procedure Update_Key_State is begin Last_Key_State := Current_Key_State; Current_Key_State := Read_Key_State; end; function Is_Key_Down (K : Key) retur...
-- 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,...
-- { dg-do run } procedure iprot_test is type T1 is tagged null record; package PP is protected type P is procedure S (X : T1'Class); private R2 : access T1'Class; end P; end PP; package body PP is protected body P is proc...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required...