content stringlengths 23 1.05M |
|---|
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Storage_Elements;
with System.Storage_Pools;
package System.Pool_Size is
pragma Preelaborate;
use type Storage_Elements.Storage_Offset;
type Aligned_Storage_Array is new Storage_Elements.Storage_Array;
for Aligned_Stor... |
-- Package to provide information on how memories can be implemented in BRAM.
-- This package relies on the Device package for information on BRAMs.
package BRAM is
-- Get the number of BRAMs that would be required for the
-- specified memory aspect ratio.
function Get_Count(width : Natural;
... |
-- This file is generated by SWIG. Do *not* modify by hand.
--
package LLVM_bit_Reader is
end LLVM_bit_Reader;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from SFMT (SFMT-params216091.h)
with Ada.Numerics.SFMT;
package Ada.Numerics.SFMT_216091 is
new SFMT (
MEXP => 216091,
POS1 => 627,
SL1 => 11,
SL2 => 3,
SR1 => 10,
SR2 => 1,
MSK1 => 16#bff7bff7#,
MSK2 =... |
generic
type Element_Type is private;
Zero : Element_Type;
with function "-" (Left, Right : in Element_Type) return Element_Type is <>;
with function "*" (Left, Right : in Element_Type) return Element_Type is <>;
with function "/" (Left, Right : in Element_Type) return Element_Type is <>;
package Matrice... |
-- This spec has been automatically generated from STM32F303xE.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.DBGMCU is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype IDCODE_DEV_ID_Field is STM3... |
--
-- 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... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.String_Vectors;
with League.Strings;
private with League.Pretty_Printers;
package Ada_Pretty is
type Node is abstract... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Sf.System.Randomizer; use Sf.System.Randomizer;
procedure Main is
begin
sfRandom_SetSeed (10);
for I in 1 .. 10 loop
Put (sfRandom_Int (0, 10), 0);
New_Line;
end loop;
end Main;
|
-- Copyright 2016-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 C.malloc.malloc;
function System.System_Allocators.Allocated_Size (
Storage_Address : Address)
return Storage_Elements.Storage_Count
is
pragma Suppress (All_Checks);
begin
return Storage_Elements.Storage_Offset (
C.malloc.malloc.malloc_size (C.void_const_ptr (Storage_Address)));
end System.System... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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... |
-- Copyright (C)2021,2022 Steve 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, merge, publis... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Ada_Pretty.Units is
--------------
-- Document --
--------------
overriding function Document
(Self ... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with
Interfaces.C,
System;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Images is
function new_fl_image
(W, H, D : in Interfaces.C.int)
return System.Address;
pragma Import (C, new_fl_image, "new_fl_image");
pragma Inline (new_fl_image);
proce... |
with Ada.Text_IO;
procedure Unbounded_Compile_Time_Calculation is
F_10 : constant Integer := 10*9*8*7*6*5*4*3*2*1;
A_11_15 : constant Integer := 15*14*13*12*11;
A_16_20 : constant Integer := 20*19*18*17*16;
begin
Ada.Text_IO.Put_Line -- prints out
("20 choose 10 =" & Integer'Image((A_11_15 * A_16_20 *... |
with System; use System;
with Interfaces; use Interfaces;
package Memory is
Flash_Start : Unsigned_16
with Import, Convention => Asm, External_Name => "__flash_start";
Flash_Size : Unsigned_16
with Import, Convention => Asm, External_Name => "__flash_size";
Info_Start : Unsigned_16
with Import... |
-- Copyright 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 la... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package PolyPaver.Exact is
--# function Square (X : Float) return Float;
--# function Int_Power (X : Float; N : Integer) return Float;
--# function Sqrt (X : Float) return Float;
--# function Exp (X : Float) return Float;
--# function Sin (X : Float) return Float;
--# function Cos (X : Float) ... |
-- -*- Mode: Ada -*-
-- Filename : last_chance_handler.ads
-- Description : Definition of the exception handler for the kernel.
-- Author : Luke A. Guest
-- Created On : Thu Jun 14 12:06:21 2012
-- Licence : See LICENCE in the root directory.
with Syste... |
-----------------------------------------------------------------------
-- util-events-channel -- Event Channels
-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
with Lumen.Image;
package Noise is
function Create_Image (Width, Height : Natural) return Lumen.Image.Descriptor;
end Noise;
|
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.GPIO;
with HAL.SPI;
with HAL;
package ADXL345_SPI is
generic
Address : HAL.UInt8;
type Register_Type is private;
package Register is
function Get
(Port : not null HAL.... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- This spec has been automatically generated from STM32L0x3.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.Firewall is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype FIREWALL_CSSA_ADD... |
pragma License (Unrestricted);
-- implementation unit
package Ada.Strings.Naked_Maps.Set_Constants is
pragma Preelaborate;
function Decimal_Digit_Set return not null Character_Set_Access;
function Hexadecimal_Digit_Set return not null Character_Set_Access;
function ISO_646_Set return not null Character_S... |
--
-- 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... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Afficher la somme des valeurs d'un série dont les valeurs sont lues au clavier.
-- Pour marquer la fin de la série, la dernière valeur est doublée.
procedure Somme_Serie is
Somme: Integer; -- Somme des valeurs de ... |
separate (openGL)
function Profile return profile_Kind
is
begin
return Lean;
end Profile;
|
with AZ3_Suite;
with AUnit.Run;
with AUnit.Reporter.Text;
with Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
procedure Tests is
function Run is new AUnit.Run.Test_Runner_With_Status (AZ3_Suite.Suite);
Reporter : AUnit.Reporter.Text.Text_Reporter;
use AUnit;
S : Status;
begin
Put_Line ("Running AZ... |
with Ada.Text_IO, Ada.Command_Line;
procedure Magic_Square is
N: constant Positive := Positive'Value(Ada.Command_Line.Argument(1));
subtype Constants is Natural range 1 .. N*N;
package CIO is new Ada.Text_IO.Integer_IO(Constants);
Undef: constant Natural := 0;
subtype Index is Natural range 0 .. N-1;
... |
-- Ascon.Access_Internals
-- Allow access to some internal parts of Ascon for testing and verification
-- purposes. Not part of the standard API
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
generic
package Ascon.Access_Internals is
subtype State is Ascon.State;
function Make_State retu... |
with Ada.Directories; use Ada.Directories;
package Rejuvenation.File_Utils is
procedure Write_String_To_File (Contents : String; File_Name : String);
-- Write the Contents string to a file with the given File_Name.
function Get_String_From_File (File_Name : String) return String;
-- Return the contents... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
package GBA.Interrupts is
type Interrupt_ID is
( VBlank
, HBlank
, VCounter_Match
, Timer_0_Overflow
, Timer_1_Overflow
, Timer_2_Overflow
, Timer_3_Overflow
, Serial_Communication
, DMA_0
, DMA_1
... |
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Command_Line;
with GNAT.Exception_Traces;
with GNAT.Traceback.Symbolic;
procedure Spawn_Manager.Server.Main is
Address : Sock_Addr_Type;
Server : Socket_Type;
Channel : Stream_Access;
Id : Long_Integer;
Request : Spawn_Request;
Response : Spawn... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers; use Ada.Containers;
with AUnit.Assertions; use AUnit.Assertions;
with GNAT.Source_Info; use GNAT.Source_Info;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libada... |
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- 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 2 of the License, or
-- (at your option) any later version.
--
-- ... |
-- with Neural.Pattern;
with Neural.Net;
-- with float_Math;
package linear_Net
is
package Math renames Neural.Math;
type Item is new neural.Net.Item with private;
type View is access all Item;
procedure define (Self : out Item;
Name : in ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Associations;
with Program.Elements.Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Ex... |
with Ada.Environment_Variables;
with Dotenv;
with Print_Variable;
procedure Example_2 is
begin
Dotenv.Config (Path => "bin/.env.interpolation",
File_Form => "wcem=8",
Overwrite => True,
Debug => True,
Interpolate => True);
... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- servlet-server-tests - Unit tests for server requests
-- 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... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Containers.Hashed_Maps;
with Ada.Exceptions;
with Ada.Wide_Wide_Text_IO;
with League.JSON.Objects;
with League.Stream_Element_Vectors;
with Lea... |
------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
--------------------------------------------------------------------------------
-- Fichier : foret.ads
-- Auteur : MOUDDENE Hamza & CAZES Noa
-- Objectif : Spécification du module Foret
-- Crée : Jeudi Déc 12 2019
--------------------------------------------------------------------------------
with Ensemb... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
package GL.Window is
use GL.Types;
procedure Set_Viewport (X, Y : Int; Width, Height : Size);
procedure Get_Viewport (X, Y : out Int; Width, Height : out Size);
procedure S... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure primitivos is
name: String(1 .. 10);
begin
Put_Line("Digite seu nome: ");
Get(name);
Put_line(name);
end primitivos;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- net-interfaces-stm32 -- Ethernet driver for STM32F74x
-- 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... |
declare
type Integer_Ptr is access Integer;
Ptr : Integer_Ptr := new Integer; -- Allocated in the heap
begin
...
end; -- Memory is freed because Integer_Ptr is finalized
|
with Ada.Text_IO, Crypto.Types.Big_Numbers, Ada.Numerics.Discrete_Random;
procedure Miller_Rabin is
Bound: constant Positive := 256; -- can be any multiple of 32
package LN is new Crypto.Types.Big_Numbers (Bound);
use type LN.Big_Unsigned; -- all computations "mod 2**Bound"
function "+"(S: String) retur... |
-------------------------------------------------------------------------------
-- LSE -- L-System Editor
-- Author: Heziode
--
-- License:
-- MIT License
--
-- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- c... |
with Courbes.Visiteurs; use Courbes.Visiteurs;
package body Courbes.Bezier_Cubiques is
function Obtenir_Controle1 (Self : Bezier_Cubique) return Point2D is
begin
return Self.Controles (1);
end;
function Obtenir_Controle2 (Self : Bezier_Cubique) return Point2D is
begin
return Self.C... |
pragma License (Unrestricted);
package Ada.Strings is
pragma Pure;
Space : constant Character := ' ';
Wide_Space : constant Wide_Character := ' ';
Wide_Wide_Space : constant Wide_Wide_Character := ' ';
Length_Error, Pattern_Error, Index_Error, Translation_Error : exception;
type Alignment is (Left,... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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 --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Command_Line, Ada.Text_IO;
use Ada.Command_Line, Ada.Text_IO;
procedure Argv is
begin
Put_Line( "Command : " & Command_Name );
Put( "Args(" & Integer'Image(Argument_Count) & " ) : " );
Put( "[ " );
for I in 1 .. Argument_Count loop
Put( Argument(I) & " ");
end loop;
Put_Line( "]" ... |
-- Project: StratoX
-- Authors: Martin Becker (becker@rcs.ei.tum.de)
-- Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description:
-- allows logging of structured messages at several logging levels.
--
-- Usage:
-- Logger.init -- initializes the Logger
-- Logger.log_console (Logge... |
with AUnit.Assertions; use AUnit.Assertions;
with Brackelib;
package body Stacks_Tests is
Container : State_Stacks.Stack;
procedure Set_Up (T : in out Test) is
begin
null;
end Set_Up;
procedure Test_Push (T : in out Test) is
begin
Assert (Size (Container) = 0, "Incorrect size before p... |
-----------------------------------------------------------------------
-- servlet-responses.web -- Servlet Responses with AWS server
-- Copyright (C) 2009, 2010, 2011, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Lic... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Integer_Text_IO;
with Ada.Text_IO;
with Tree_Fast; use Tree_Fast;
procedure Main_Fast is
t: Tree_Fast.Tree;
cur: Integer := 5;
res: Integer := 0;
mode: Integer;
procedure PutI(item: Integer; width: Natural := 0; base: Natural := 10)
renames Ada.Integer_Text_IO.Put;
procedure New_Line(spacing:... |
-----------------------------------------------------------------------
-- keystore-passwords-files -- File based password provider
-- 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... |
--
-- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: Apache-2.0
--
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with System;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
with Notcurses.Context;
package body Notcurses.Plane is
f... |
-- C48008C.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 C_String;
with Interfaces.C;
package body Agar.Core.Event is
package C renames Interfaces.C;
procedure Push_Pointer
(Event : in Event_Not_Null_Access_t;
Key : in String;
Value : in System.Address)
is
Ch_Key : aliased C.char_array := C.To_C (Key);
begin
Thin.Event.Push_Pointer
... |
-----------------------------------------------------------------------
-- helios-monitor -- Helios monitor
-- 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 except in co... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
-----------------------------------------------------------------------
-- package body Spline, cubic splines
-- Copyright (C) 2018 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 the above
-- copyright no... |
------------------------------------------------------------------------------
-- --
-- Common UUID Handling Package --
-- - RFC 4122 Implementation - --
-- ... |
-- { dg-do compile}
-- { dg-options "-gnatwa" }
with Text_IO;
use Text_IO;
package body renaming1 is
procedure Fo (A : Text_IO.File_Access) is
begin
if A = Text_IO.Standard_Output then
null;
end if;
end Fo;
end;
|
-- --
-- package Tables Copyright (c) Dmitry A. Kazakov --
-- Interface Luebeck --
-- Spring, 2000 --
-- ... |
pragma License (Unrestricted);
-- extended unit
package Ada.Strings.Composites is
-- Unicode composite character handling.
pragma Preelaborate;
type Class is range 0 .. 255;
for Class'Size use Standard'Storage_Unit;
function Combining_Class (Item : Wide_Wide_Character) return Class;
-- get all c... |
with System.Address_To_Named_Access_Conversions;
with System.Growth;
with System.Zero_Terminated_Strings;
with C.grp;
with C.pwd;
package body System.Native_Credentials is
use type C.pwd.struct_passwd_ptr;
use type C.grp.struct_group_ptr;
use type C.signed_int;
-- use type C.sys.types.gid_t;
-- use type C.sy... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
package body GL.Objects.Vertex_Arrays is
Current_Object : Vertex_Array_Object := Null_Array_Object;
procedure Bind (Object : Vertex_Array_Object) is
begin
if Object.Refere... |
package body Test_Aircraft.Read is
package Skill renames Aircraft.Api;
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Aircraft.Read");
Ahven.Framework.Add_Test_Routine (T, Airplane_1'Access, "airplane 1: 1, Fokker 100, true");
Ahven.Framework.Add_Test_Routine (T, Airplan... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
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.FREQM is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Control A Register
type FREQM_CTRLA_... |
package Parent_Ltd_With.Child_Full_View is
type Child_Symbol is new Parent_Ltd_With.Symbol with private;
type Child_Symbol_Access is access all Child_Symbol;
function New_Child_Symbol return Child_Symbol_Access;
private
type Child_Symbol is new Parent_Ltd_With.Symbol with null record;
end Pare... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Calendar;
use Ada.Calendar;
package body Deck is
function Draw return Card is
Result : Index_Type := Random(Index_Generator);
begin
while Backing(Result).In_Deck = False loop
Result := Random(Index_Generator);
end loop;
Backing(Result).In_Deck := False;
return Card(Backing(Result));
end Draw;... |
-- { dg-do compile }
with Ada.Tags.Generic_Dispatching_Constructor;
package body Graphic is
--
function Dispatching_Input is new Tags.Generic_Dispatching_Constructor
(T => Object,
Parameters => Streams.Root_Stream_Type'Class,
Constructor => Object'Input);
--
function XML_Input
(S : acce... |
-- File: adaid_tests.ads
-- Description: Test suite for AdaID
-- Author: Anthony Arnold
-- License: http://www.gnu.org/licenses/gpl.txt
with AUnit; use AUnit;
with AUnit.Test_Cases;
package AdaID_Tests is
type UUID_Test is new AUnit.Test_Cases.Test_Case with null record;
type Access_UUID_Test is access UUID_Test... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Rosetta_Read is
File : File_Type;
begin
Open (File => File,
Mode => In_File,
Name => "rosetta_read.adb");
Set_Line (File, To => 7);
declare
Line_7 : constant String := Get_Line (File);
begin
if Line_7'Length = 0 then
P... |
with System.Machine_Code; use System.Machine_Code;
with System.Storage_Elements; use System.Storage_Elements;
with System.Address_To_Access_Conversions;
with System; use System;
with Interfaces; use Interfaces;
with MSPGD.Board; use MSPGD.Board;
with MSP430_SVD; use MSP430_SVD;
with MSP430_SVD.FLASH; use MSP430_SVD.FLA... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Ada.Containers.Vectors;
with Ada.Finalization;
with Regex.Syntax_Trees;
with Regex.Utilities.Sorted_Sets;
package Regex.State_Machines ... |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure euler15 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.S... |
pragma Ada_2012;
package body Protypo.Api.Engine_Values.Indefinite_Vector_Wrappers is
------------------
-- Make_Wrapper --
------------------
function Make_Wrapper
(Init : Element_Vectors.Vector)
return Handlers.Ambivalent_Interface_Access
is
Val : Engine_Value_Vectors.Vector;
beg... |
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro>
--
-- 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... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
pragma License (Unrestricted);
with Ada.Numerics.Generic_Elementary_Functions;
package Ada.Numerics.Long_Long_Elementary_Functions is
new Generic_Elementary_Functions (Long_Long_Float);
pragma Pure (Ada.Numerics.Long_Long_Elementary_Functions);
|
-- TCTouch.A
--
-- 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.
-- Unlimite... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- search-positions -- Token positions
-- Copyright (C) 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 file except in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.