content stringlengths 23 1.05M |
|---|
with Memory.Transform.Offset; use Memory.Transform.Offset;
with Parser.Transform_Parser;
separate (Parser)
procedure Parse_Offset(parser : in out Parser_Type;
result : out Memory_Pointer) is
package Offset_Parser is new Transform_Parser(
T_Type => Memory.Transform.Offset.Of... |
-----------------------------------------------------------------------
-- Security-policies-tests - Unit tests for Security.Permissions
-- Copyright (C) 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
pragma Assertion_Policy (Check);
with Ada.Text_IO; use Ada.Text_IO;
with Littlefs; use Littlefs;
with RAM_BD;
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
with System.Storage_Elements; use System.Storage_Elements;
procedure Tests is
FS : aliased LFS_T;
Block : constant access con... |
## CALL ME NOW ##
Your server was hacked!!!
by Adonymous
|
with Text_IO;
procedure Hello_World is
begin
Text_IO.Put_Line("Hello, World!");
end Hello_World;
|
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
with Nt_Console; use Nt_console;
with conecta4; use conecta4;
procedure imprimir_tablero (Tablero: in T_Tablero) is
-- Solo para poder imprimir
package P_Celda_IO is new Enumeration_IO(T_Celda); use P_Celda_IO;
begin... |
with Contar_Digitos;
function Digito_I(Num, I: Integer) return Integer is
Numero_De_Digitos : Integer := 0;
begin
Contar_Digitos(Num, Numero_De_Digitos);
return Num/10**(Numero_De_Digitos-I) rem 10;
end Digito_I; |
with Both;
use Both;
function Func return Integer is
begin
return 0;
end Func; |
package Pack9 is
type R1 is record
I : Integer;
C : Character;
end record;
type R2 is record
I1, I2 : Integer;
A : R1;
end record;
pragma Pack(R2);
type R2_Ptr is access all R2;
procedure Copy (X, Y : R2_Ptr);
end Pack9;
|
with Ada.Text_IO;
with Base;
procedure Main is
begin
Ada.Text_IO.Put_Line (String (Base.Encode ("toto")));
end Main;
|
for Item of A loop
Put( Item );
end loop;
|
package body Opt48_Pkg2 is
function F return Rec is
begin
return (12, "Hello world!");
end F;
end Opt48_Pkg2;
|
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Unchecked_Deallocation;
with Regions.Contexts.Environments.Nodes;
package body Regions.Contexts.Environments is
procedure Free is new Ada.Unc... |
with Ahven.Framework;
package ClientTest is
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test);
procedure Unknown_Fail;
procedure Port_Fail;
procedure Connect_Auth;
procedure Connect_Pass;
procedure Execute_Test;
procedure Execute_Fail;
proc... |
package body System.Wid_Bool is
function Width_Boolean (Lo, Hi : Boolean) return Natural is
begin
if Lo > Hi then
return 0;
elsif Lo then
return 4; -- "TRUE"
else
return 5; -- "FALSE"
end if;
end Width_Boolean;
end System.Wid_Bool;
|
package kv.avm.Line_Parser is
type Parse_Line_Interface is interface;
procedure Parse_Line
(Self : in out Parse_Line_Interface;
Line : in String) is abstract;
end kv.avm.Line_Parser;
|
-- This spec has been automatically generated from out.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces; use Interfaces;
with System;
package MSP430_SVD is
pragma Preelaborate;
---------------
-- Base type --
---------------
type UInt32 is ... |
with Ada.Containers.Access_Holders;
with Ada.Containers.Access_Holders_Derivational_Conversions;
with Ada.Unchecked_Deallocation;
procedure smartptr is
type Integer_Access is access Integer;
procedure Free is new Ada.Unchecked_Deallocation (Integer, Integer_Access);
type Base is tagged record
Value : Integer;
end... |
package body Hello_World_CB is
function HW_CB(Request : AWS.Status.Data) return AWS.Response.Data is
begin
return AWS.Response.Build("text/html", "<p>Hello World</p>");
end;
end Hello_World_CB;
|
with Ada.Text_IO;
with Ada.Numerics.Elementary_Functions;
procedure Sundial is
use Ada.Numerics.Elementary_Functions;
use Ada.Numerics;
package Float_IO is new Ada.Text_IO.Float_IO (Float);
Latitude, Longitude, Meridian : Float;
Latitude_Sine : Float;
begin
Ada.Text_IO.Put ("Enter lat... |
-- 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... |
with Ada.Numerics; use Ada.Numerics;
with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random;
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions;
procedure Normal_Random is
function Normal_Distribution
( Seed : Generator;
... |
Pragma Ada_2012;
Pragma Wide_Character_Encoding( UTF8 );
With
System,
System.Address_Image,
Ada.Strings.Unbounded,
Ada.Strings.Less_Case_Insensitive,
Ada.Containers.Indefinite_Ordered_Maps,
Ada.Containers.Indefinite_Vectors,
Risi_Script.Types.Implementation;
Private Package Risi_Script.Types.Internals with Elaborate... |
with agar.core.types;
with agar.gui.text;
with agar.gui.widget.scrollbar;
package agar.gui.widget.console is
use type c.unsigned;
type console_t;
type console_access_t is access all console_t;
pragma convention (c, console_access_t);
type line_t is record
text : cs.chars_ptr;
len : c.size... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.String_Vectors;
with League.Strings;
with Ada_LSP.Completions;
with Ada_LSP.Documents.Debug;
package body Ada_LSP.Docume... |
with CSS.Core;
with Ada.Text_IO;
with CSS.Parser.Lexer_dfa;
with CSS.Parser.Lexer_io;
with CSS.Core.Values;
package body CSS.Parser.Lexer is
use Ada.Text_IO;
use Ada.Strings.Unbounded;
use Ada;
use CSS.Parser.Lexer_dfa;
use CSS.Parser.Lexer_IO;
use CSS.Core.Values;
pragma Style_Checks (Off);
... |
-- Abstract :
--
-- Show productions where a token is followed by another token
--
-- Copyright (C) 2020 Stephen Leake All Rights Reserved.
--
-- 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 Founda... |
------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with Unchecked_Conversion;
with Pointer_Discr1_Pkg3;
package Pointer_Discr1_Pkg2 is
subtype T_WINDOW is Pointer_Discr1_Pkg3.T_WINDOW(Pointer_Discr1_Pkg3.One);
function TO_WINDOW is new Unchecked_Conversion(Integer, T_WINDOW);
end Pointer_Discr1_Pkg2;
|
with GA_Maths;
package Metric is
use GA_Maths.Float_Array_Package;
type Metric_Record (Dim : Integer) is private;
subtype Metric_Matrix is GA_Maths.Float_Matrix;
type Metric_Data is array (Integer range <>) of float;
Null_Metric : constant Metric_Matrix (1 .. 0, 1 .. 0) := (others => (others => ... |
pragma Ada_2012;
with GNAT.Source_Info;
with GNAT.IO;
with AUnit.Assertions;
package body GStreamer.Rtsp.Tests is
use GNAT.IO;
use AUnit.Assertions;
procedure T_Strresult (Tc : in out AUnit.Test_Cases.Test_Case'Class) is
pragma Unreferenced (Tc);
begin
Put_Line(Strresult(OK));
Put_Line(S... |
with Glib.Xml_Int; use Glib.Xml_Int;
package Signal_Storage is
--
Bad_Identifier : exception;
-- raised when any signal name gives a bad Ada identifier
--
type Window_Record is record
Node : Node_Ptr;
Signumber : Natural := 0;
end record;
-- For each window, store the XML node a... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
package Multiple_Interfaces is
type Camera is tagged null record;
type Mobile_Phone is limited Interface;
type Camera_Phone is new Camera and Mobile_Phone with null record;
end Multiple_Interfaces;
|
-- BinToAsc_Suite
-- Unit tests for BinToAsc
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with BinToAsc_Suite.Misc_Tests;
with BinToAsc_Suite.Base16_Tests;
with BinToAsc_Suite.Base32_Tests;
with BinToAsc_Suite.Base64_Tests;
with BinToAsc_Suite.Base85_Tests;
package body BinToAsc_Suite is
us... |
-----------------------------------------------------------------------
-- mat-memory-tools - Tools for memory maps
-- Copyright (C) 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 exce... |
with Ada.Text_Io;
use Ada.Text_Io;
procedure Enum is
type Day_Type is (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday);
subtype Weekday is Day_Type range Monday .. Friday;
begin
Put("Days: ");
for Day in Day_Type loop
Put(Day'img & " ");
end loop;
Put_Line("");
Put("Days (reversed): "... |
with Ada.Command_Line;
with Ada.Text_IO;
use Ada.Text_IO;
with Intcode;
with Memory;
procedure Day_05 is
package IO is new Ada.Text_IO.Integer_IO(Memory.Value);
Program_Name: constant String := Ada.Command_Line.Argument(1);
F: File_Type;
begin
Open(F, In_File, Program_Name);
declare
Mem: constan... |
-----------------------------------------------------------------------
-- EL.Beans.Tests - Testsuite for EL.Beans
-- Copyright (C) 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file... |
with Ada.Text_IO; use Ada.Text_IO;
with Mos; use Mos;
with Ada.Command_Line; use Ada.Command_Line;
with Instruction; use Instruction;
with Main_Loop; use Main_Loop;
procedure Main is
Emulator : MOS_T;
begin
if Argument_Count < 1 then
Put("Usage: ");
Put(Command_Name);
Put(" <input-fi... |
with Tkmrpc.Transport.Client;
with Tkmrpc.Request.Cfg.Tkm_Version.Convert;
with Tkmrpc.Request.Cfg.Tkm_Limits.Convert;
with Tkmrpc.Request.Cfg.Tkm_Reset.Convert;
with Tkmrpc.Response.Cfg.Tkm_Version.Convert;
with Tkmrpc.Response.Cfg.Tkm_Limits.Convert;
with Tkmrpc.Response.Cfg.Tkm_Reset.Convert;
package body Tkmrpc.Cl... |
-- NORX.Access_Internals
-- Allow access to some internal parts of NORX for testing and verification
-- purposes. Not part of the standard API
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
generic
package NORX.Access_Internals is
subtype State is NORX.State;
function Make_State return St... |
-- DEMONSTRATION PROGRAM:
-- Features:
-- Enumeration types, ENUM_IO (generic package), records and
-- aggregates, dynamic exception handling, packages, etc.
package DATE_PKGE is
subtype DAY is integer range 1..31;
type MONTH is (Jan, Feb, Mar, Apr, May, Jun,
Jul, Aug, Sep, Oct, Nov, Dec);
... |
-- C87B31A.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... |
--
-- Many consider a "Utilities" package bad style and maybe it is true.
-- However, often you need some "odds and ends" stuff that is not
-- strictly related to the main code.
--
package Utilities is
-- Root package
end Utilities;
|
with
Interfaces.C,
System;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Devices.Surfaces.Paged.Printers is
function new_fl_printer
return System.Address;
pragma Import (C, new_fl_printer, "new_fl_printer");
pragma Inline (new_fl_printer);
procedure free_... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Case_Stub; use Apsepp.Test_Node_Class.Case_Stub;
package Apsepp.Test_Node_Class.Abstract_Simu_Case is
type Test_Routine_Destiny_Kind is (No_Failure,
... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Characters.Latin_1;
package body Vampire.Villages.Text is
Line_Break : constant Character := Ada.Characters.Latin_1.LF;
-- 配役
function Name (Person : Tabula.Villages.Person_Type'Class) return String is
begin
return Person.Work.Constant_Reference & Pe... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Pour_TantQue is
Debut: Integer;
Fin: Integer;
begin
-- Demander les valeurs de Debut et Fin
Get (Debut);
Get (Fin);
-- Afficher les entiers de Début à Fin
while Debut <= Fin loop
Put(Debut... |
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Strings.Fixed;
With Ada.Strings.Unbounded;
procedure Number_Base_Conversion is
Max_Base : constant := 36;
subtype Base_Type is Integer range 2..Max_Base;
Num_Digits : constant String := "0123456789abcdefghijklmnopqrstuvwxyz";
Invalid_Digit : exception;
functi... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with kv.avm.Log;
with kv.avm.Tuples;
package body kv.avm.Brokers is
use kv.avm.Registers;
use kv.avm.Control;
use kv.avm.Log;
use Actor_Maps;
-----------------------------------------------------------------------------
procedure Execute
... |
package body openGL.Tasks
is
procedure check
is
use Ada,
ada.Task_Identification;
calling_Task : constant Task_Id := Task_Identification.current_Task;
-- TODO: Use the assert instead of the exception for performance.
-- pragma assert (Renderer_Task = calling_Task,
-- ... |
with System;
-- =============================================================================
-- Package AVR.IO_PORTS
--
-- Handles the Pin/DDR/Port I/Os.
-- =============================================================================
package AVR.IO_PORTS is
type Data_Pin_Type is
record
PIN : Bit_... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- This spec has been automatically generated from STM32F46_79x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.CRYP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_ALGOMODE0_Field... |
--
-- 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... |
-- @summary functions to provide a string image of numbers
package body Generic_Bounded_Image with SPARK_Mode is
function Image_32 (item : T) return String is
res : constant String := T'Image (item);
pragma Assume (res'Length > 0);
len : constant Natural := res'Length;
max : constant Natura... |
with GLUT, System;
package body GLUT_2D is
GLUT_char : constant array (Font_type) of System.Address :=
(
Screen_9_by_15 => GLUT.BITMAP_9_BY_15,
Screen_8_by_13 => GLUT.BITMAP_8_BY_13,
Times_Roman_10 => GLUT.BITMAP_TIMES_ROMAN_10,
Times_Roman_24 => GLUT.BITMAP_TIMES_ROMAN_24,
... |
-- Abstract:
--
-- Stack implementation.
--
-- Copyright (C) 1998-2000, 2002-2003, 2009, 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- SAL 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 ve... |
with
GL;
package openGL.Variable
--
-- Models a shader variable.
--
is
type Item is abstract tagged private;
---------
-- Forge
--
procedure define (Self : in out Item);
procedure destroy (Self : in out Item);
private
type Item is abstract tagged
record
gl_Variable :... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
with Knights_Tour, Ada.Text_IO, Ada.Command_Line;
procedure Holy_Knight is
Size: Positive := Positive'Value(Ada.Command_Line.Argument(1));
package KT is new Knights_Tour(Size => Size);
Board: KT.Tour := (others => (others => Natural'Last));
Start_X, Start_Y: KT.Index:= 1; -- default start place (1,1)
... |
with HAL; use HAL;
package STM32.HSEM is
function Locked (Semaphore : UInt5; Process : UInt8) return Boolean;
function AnyLock (Semaphore : UInt5) return Boolean;
function OneStepLock (Semaphore : UInt5) return Boolean;
procedure ReleaseLock (Semaphore : UInt5; Process : UInt8)
with Post =>... |
with Ada.Text_IO;
with Mode;
procedure Main is
type Int_Array is array (Positive range <>) of Integer;
package Int_Mode is new Mode (Integer, Int_Array);
Test_1 : Int_Array := (1, 2, 3, 1, 2, 4, 2, 5, 2, 3, 3, 1, 3, 6);
Result : Int_Array := Int_Mode.Get_Mode (Test_1);
begin
Ada.Text_IO.Put ("Input: ");... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
package Port_Specification.Transform is
-- Given:
-- variant
-- standard arch
-- opsys (operating system)
-- osrelease (string)
-- osmajor... |
generic
type Pixel is private;
with procedure Color_Pixel (Z_Escape : Boolean;
Iter_Escape : Natural;
Px : out Pixel);
Max_Iterations : Natural;
package Image_Types is
subtype ImgWidth is Positive range 1 .. 1920;
subtype ImgHeigh... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_14.Main is
begin
Put_Line ("Day-14");
end Adventofcode.Day_14.Main;
|
generic
type Real is digits <>;
type Coordinates is (<>);
package Vectors_xD is
pragma Elaborate_Body;
type Vector_xD is array (Coordinates) of Real;
Zero_Vector_xD : constant Vector_xD := (others => 0.0);
function Image (V : Vector_xD) return String;
function Norm (V : Vector_xD) return Vec... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
with Varsize_Return_Pkg1;
package Varsize_Return is
package P is new Varsize_Return_Pkg1 (Id_T => Natural);
end Varsize_Return;
|
-- { dg-do compile }
-- { dg-options "-O" }
package body Thin_Pointer1 is
procedure Set_Buffer (AD : Buf_Ptr; Buffer : Stream_ptr) is
begin
AD.B.A := Buffer (Buffer'First)'Address;
end Set_Buffer;
end Thin_Pointer1;
|
with STM32.Board; use STM32.Board;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Numerics.Discrete_Random;
with STM32.DMA2D_Bitmap; use STM32.DMA2D_Bitmap;
with HAL.Bitmap; use HAL.Bitmap;
with HAL.Touch_Panel; use HAL.Touch_Panel;
with Spaceship; use Spaceship;
with Missile; ... |
-----------------------------------------------------------------------
-- Util.Beans.Objects.Datasets -- Datasets
-- 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 file excep... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Parser is
procedure Parse_Arbiter(parser : in out Parser_Type;
result : out Memory_Pointer) is separate;
procedure Parse_Cache(parser : in out Parser_Type;
... |
-----------------------------------------------------------------------
-- security-openid -- OpenID 2.0 Support
-- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
-- --
-- package Object.Handle Copyright (c) Dmitry A. Kazakov --
-- Interface Luebeck --
-- Winter, 2002 --
-- ... |
with Loop_Optimization18_Pkg; use Loop_Optimization18_Pkg;
package Loop_Optimization18 is
procedure Proc (Message : Byte_Array_Type);
end Loop_Optimization18;
|
with Ada.Directories;
with Ahven.Framework;
with Constants.Api;
with Ada.Text_IO;
package Test_Constants.Write is
package Skill renames Constants.Api;
use Constants;
use Constants.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test);
procedure ... |
with EU_Projects.Nodes.Timed_Nodes;
with EU_Projects.Node_Tables;
package EU_Projects.Nodes.Timed_Nodes.Milestones is
subtype Milestone_Index is Node_Index;
No_Milestone : constant Extended_Node_Index := No_Index;
type Milestone is new Nodes.Timed_Nodes.Timed_Node with private;
type Milestone_Label is ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.CRC32; use GNAT.CRC32;
with Interfaces; use Interfaces;
procedure TestCRC is
package IIO is new Ada.Text_IO.Modular_IO (Unsigned_32);
crc : CRC32;
num : Unsigned_32;
str : String := "The quick brown fox jumps over the lazy dog";
begin
Initialize (crc);
Upda... |
with Ada.Text_IO;
package body Problem_73 is
package IO renames Ada.Text_IO;
procedure Solve is
max : constant := 12_000;
-- Start with the first two numbers in the sequence (it's easy to know that because the first
-- one after 0 is 1 / max). Then generate successive elements in the sequence by... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2018 Componolit GmbH
-- Copyright (C) 2010, Alexander Senier
-- Copyright (C) 2010, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source ... |
with Interfaces;
-- Virtual Audio Processing Unit
package VirtAPU is
type Channel_ID is new Positive;
subtype Sample is Float;
type Instance
(Number_Of_Channels : Channel_ID;
Sample_Rate : Positive)
is tagged limited
private;
procedure Tick (This : in out Instance);
-- Thi... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
-----------------------------------------------------------------------
-- components-ajax-includes -- AJAX Include component
-- Copyright (C) 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this... |
with Ada.Text_IO, Miller_Rabin;
procedure Prime_Gen is
type Num is range 0 .. 2**63-1; -- maximum for the gnat Ada compiler
MR_Iterations: constant Positive := 25;
-- the probability Pr[Is_Prime(N, MR_Iterations) = Probably_Prime]
-- is 1 for prime N and < 4**(-MR_Iterations) for composed N
funct... |
-----------------------------------------------------------------------
-- security-openid -- OpenID 2.0 Support
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Finalization;
with Ada.Streams;
with Interfaces;
with League.Stream_Element_Vectors;
with League.String_Vectors;
with League.Strings;
with PB_Support.Boolean_Vectors;
with PB_Support.IEEE_Float_32_Vectors;
with PB_Support.IEEE_Float_64_Vectors;
with PB_Support.Integer_32_Vectors;
with PB_Support.Integer_64_Vec... |
-- AOC 2020, Day 2
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Day is
type Password_Entry is record
Min : Natural := 0;
Max : Natural := 0;
Pattern : Unbounded_String := Null_Unbounded_String;
Password : Unbounded_String := Null_Unbounded_String;
end ... |
with Ada.Command_Line;
with Ada.Exceptions;
with Ada.Text_IO;
procedure lovelace is
end lovelace;
|
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2017, 2018 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at your o... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
-- -*- Mode: Ada -*-
-- Filename : s-secsta.ads
-- Description : Secondary stack
-- Author : Luke A. Guest
-- Created On : Wed Nov 16 17:06:11 2016
-- Licence : See LICENCE in the root directory.
with System.Storage_Elements;
package System.Secondary_S... |
with AVR;
with AVR.MCU;
with AVR.WATCHDOG;
with AVR.USART;
with AVR.TWI;
with AVR.TIMERS;
with AVR.TIMERS.CLOCK;
with AVR.TIMERS.SCHEDULER;
with AVR.PWM_SIMPLEST;
with AVR.INTERRUPTS;
pragma Unreferenced
(AVR.MCU,
AVR.WATCHDOG,
AVR.USART,
AVR.TWI,
AVR.TIMERS,
AVR.TIMERS.CLOCK,
AVR.TIMERS.SCHEDULER,... |
-- { dg-excess-errors "no code generated" }
package Controlled1_Pkg is
function Value return Natural;
end Controlled1_Pkg;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.