content stringlengths 23 1.05M |
|---|
with pointer_variable_bounds_q; use pointer_variable_bounds_q;
package pointer_variable_bounds is
type HALF_INTEGER is range -32768 .. 32767;
subtype HALF_NATURAL is HALF_INTEGER range 0 .. 32767;
MAX_COMPS : constant HALF_NATURAL := HALF_NATURAL(A_MAX_COMPS);
subtype COMP_POINTER_TYPE is HALF_NATURAL range ... |
with Ada.Containers.Ordered_Maps; use Ada.Containers;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Input12; use Input12;
procedure Day12 is
package String_Maps is new Ordered_Maps
(Key_Type => String_Pattern,
... |
generic
type Element is private;
package Liste_Generique is
type Liste is limited private; -- une liste est initialement vide
-- vide L et libere la memoire correspondante
procedure Vider(L : in out Liste);
-- insere E en tete de L
procedure Insertion_Tete(L : in out Liste ; E : Element);
-... |
-- Test LU decomposition on a
-- real valued square matrix.
with Cholesky_LU;
With Text_IO; use Text_IO;
procedure cholesky_demo_1 is
type Real is digits 15;
type Index is range 0..2**7-1;
Starting_Index : constant Index := Index'First + 0;
Max_Index : Index := Index'Last - 0;
packa... |
with Ada.Text_IO;
with Ada.Command_Line;
with Stemmer;
with Stemmer.Factory;
procedure Stemargs is
use Stemmer.Factory;
function Get_Language (Name : in String) return Language_Type;
function Get_Language (Name : in String) return Language_Type is
begin
return Language_Type'Value ("L_" & Name);
... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
package body Problem_31 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
Type Two_Pounds is new Integer range 0 .. 200;
type Coin is new Integer range 1 .. 7;
denominations : constant Array(Coin) of Two_Pounds := (200, 100, 50, 20, 1... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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... |
package openGL.Light.directional
--
-- Models a directional light.
--
is
type Item is new Light.item with private;
type Items is array (Positive range <>) of Item;
procedure inverse_view_Transform_is (Self : in out Item; Now : in Matrix_3x3);
procedure Color_is (Self : in out Item; Ambient,
... |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+si_units@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by S... |
------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . T E X T --
-- S p e c --
----... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Mantissa is
pragma Pure;
-- required for Fixed'Mantissa, if its range is dynamic (s-mantis.ads)
function Mantissa_Value (First, Last : Integer) return Natural;
end System.Mantissa;
|
with Utils.Command_Lines; use Utils.Command_Lines;
with Utils.Command_Lines.Common; use Utils.Command_Lines.Common;
package JSON_Gen.Command_Lines is
package Freeze_Common is new Freeze_Descriptor (Common_Descriptor);
Descriptor : aliased Command_Line_Descriptor :=
Copy_Descriptor (Comm... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Generic_Case_And_Suite_Run_Body;
package Apsepp.Test_Node_Class.Suite_Stub is
type Test_Suite_Stub is limited new Test_Node_Interfa with private
with Type_Invariant'Class =>
... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
case Today is
when Monday =>
Compute_Starting_Balance;
when Friday =>
Compute_Ending_Balance;
when Tuesday .. Thursday =>
Accumulate_Sales;
-- ignore Saturday and Sunday
end case;
|
------------------------------------------------------------------------------
-- --
-- Internet Protocol Suite Package --
-- --
-- -... |
package body Semantica.Declsc3a is
-- Taula Procediments
procedure Nouproc
(Tp : in out T_Procs;
Idp : out Num_Proc) is
begin
Posa(Tp, Info_Proc_Nul, Idp);
end Nouproc;
function Consulta
(Tp : in T_Procs;
Idp : in Num_Proc) return Info_Proc is
begin
return Tp.Tp(... |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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 vers... |
with Extraction.Graph_Operations;
private package Extraction.Deferred_Constants is
procedure Extract_Edges
(Node : LAL.Ada_Node'Class;
Graph : Graph_Operations.Graph_Context);
end Extraction.Deferred_Constants;
|
-- RUN: %llvmgcc -S %s
procedure VCE_LV is
type P is access String ;
type T is new P (5 .. 7);
subtype U is String (5 .. 7);
X : T := new U'(others => 'A');
begin
null;
end;
|
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
-- @summary
-- Incremental Analysis Component
--
-- @description
-- This package provides namespace for incremental analysis ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
private with Ada.Characters.Latin_1;
private with Parameters;
package Configure is
menu_error : exception;
-- Interactive configuration menu
procedure launch_configur... |
package Input_0 is
-- Expecting above to create tag 'Input_0/s' as this is 'package spec'-definition with name 'Input_0'.
-- Emacs tag-search on Input_0/s should navigate to the above.
function My_Function return Boolean;
-- Expecting above to create tag 'My_Function/f' as this is 'function'-definition wit... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.ADC is
pragma Preelaborate;
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package body GL.Vectors is
function "+" (Left, Right : Vector) return Vector is
Ret : Vector;
begin
for I in Index_Type'Range loop
Ret (I) := Left (I) + Right (I);
end l... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2010, Alexander Senier
-- Copyright (C) 2010, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or withou... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type t is record a: integer; a: character; end record;
begin new_line; end;
|
-- Abstract :
--
-- Ada implementation of:
--
-- [1] gpr-wisi.el
-- [2] gpr-indent-user-options.el
--
-- Copyright (C) 2017 - 2019 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 F... |
-- 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 Ethiopian is
function Is_Even(Item : Integer) return Boolean is
begin
return Item mod 2 = 0;
end Is_Even;
function Double(Item : Integer) return Integer is
begin
return Item * 2;
end Double;
function Half(Item : Integer) return Integer is
begin
return Item / 2;
... |
pragma Ada_2012;
package Base64.Routines with
Pure,
Preelaborate
is
generic
type Element is mod <>;
function Standard_Character_To_Value (C : Character) return Element;
generic
type Element is mod <>;
function Standard_Value_To_Character (E : Element) return Character;
generic
ty... |
with avtas.lmcp.types; use avtas.lmcp.types;
with afrl.cmasi.object; use afrl.cmasi.object;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
with afrl.cmasi.AbstractGeometry; use afrl.cmasi.AbstractGeometry;
with ada.Containers.Vectors;
with ada.Strings.Unbounded; use ada.Strings.Unbounded;
package afrl.cmas... |
-- { dg-do compile }
-- { dg-options "-gnatwu" }
with Ada.Command_Line; use Ada.Command_Line;
with Text_IO; use Text_IO;
procedure warn3 is
type Weekdays is (Sun, Mon, Tue, Wed, Thu, Fri, Sat);
begin
if Argument_Count > 0 then
Put_Line
(Argument (1) & " is weekday number"
& Integer'Image... |
-- { dg-do compile }
procedure Array11 is
type Rec is null record;
type Ptr is access all Rec;
type Arr1 is array (1..8) of aliased Rec; -- { dg-warning "padded" }
type Arr2 is array (Long_Integer) of aliased Rec; -- { dg-warning "padded" }
A1 : Arr1;
A2 : Arr2; -- { dg-warning "Storage_Error" }
begin
... |
procedure Last_Chance_Handler
(Source_Location : System.Address; Line : Integer) is
pragma Unreferenced (Source_Location, Line);
begin
-- TODO: Add in code to dump the info to serial/screen which
-- is obviously board specific.
loop
null;
end loop;
end Last_Chance_Handler;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.API;
package body Glfw.Events.Joysticks is
function Index (Source : Joystick) return Joystick_Index is
begin
return Enums.Joystick_ID'Pos (Source.Raw_Index) + 1;
end Index;
... |
--- ad-setup.ads.orig 2021-09-04 15:36:33 UTC
+++ ad-setup.ads
@@ -11,6 +11,6 @@ package AD.Setup is
private
GNAT_Name : constant String :=
- "gcc";
+ "ada";
end AD.Setup;
|
with ObjectPack;
use ObjectPack;
package PathPackage is
type Path is interface and Object;
type IntArray is array (Natural range <> ) of Integer;
type IntArrayPtr is access all IntArray;
function add(p1, p2: Path) return Path is abstract;
function sub(p1, p2: Path) return Path is abstract;
function inverse... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
-- GLOBE_3D.Software_Anti_Aliasing provides a software method for
-- smoothing pictures by displaying several times a scene with
-- subpixel translations.
generic
with procedure Display;
package GLOBE_3D.Software_Anti_Aliasing is
-- Returns the number of phases needed for anti - aliasing:
-- 1 fo... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- core-factory -- Factory for Core UI Components
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Lice... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.SPDIFRX is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_SPDIFRXEN_Field is HAL.UInt2;
... |
with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with AdaBase.Results.Sets;
with Spatial_Data;
procedure Spatial3 is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ARS renames AdaBase.Results.Sets;
package CT renames CommonText;
package SD renames Spatial_Data;
... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ type handling in skill --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
-----------------------------------------------------------------------
-- Util.Streams.Files -- File Stream utilities
-- Copyright (C) 2010, 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 ... |
-- *************************************************************************************
--
-- The recipient is warned that this code should be handled in accordance
-- with the HM Government Security Classification indicated throughout.
--
-- This code and its contents shall not be used for other than UK Governme... |
with Interfaces;
package HWIF_Types is
pragma Pure;
type Octet is new Interfaces.Unsigned_8 with Size => 8;
-- Integer.
type Int is new Interfaces.Unsigned_32 with Size => 32;
end HWIF_Types;
|
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
--
-- This package is about Ada Visibility Rules as they defined in the Reference
-- Manual (Section 8).
--
-- The package provides Context type. The... |
------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- $Header: /cf/ua/arcadia/alex-ayacc/ayacc/src/RCS/ayacc_separates.a,v 1.1 88/08/08 12:07:39 arcadia Exp $
--***************************************************************************
-- This file is subject to the Arcadia License Agreement.
--
-- (see notice in ayacc.a)
--
--********... |
with NRF52_DK.IOs;
package SteeringControl is --Servo and Motor controls --
procedure Servocontrol(ServoPin : NRF52_DK.IOs.Pin_Id; Value : NRF52_DK.IOs.Analog_Value); --- Servo--
procedure Direction_Controller; --Left or right write to servo to turn car --
procedure Motor_Controller; --Motor forwa... |
-----------------------------------------------------------------------
-- Babel.Base.Models -- Babel.Base.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ada-gen.... |
-----------------------------------------------------------------------------
-- Implementation of
-- Helpers package for different functions / procedures to minimize
-- code duplication
--
-- Copyright 2022 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with RP.Device;
with RP.Clock;
with It... |
with Ada.Text_IO;
-- with Mes_Tasches_P;
with Input_1;
-- procedure Client is
procedure Input is
begin
Ada.Text_IO.Put_Line ("Tasks won't stop, kill it with CTRL-C");
-- Mes_Tasches_P.Ma_Tasche.Accepter (Continuer => True);
Input_1.Ma_Tasche.Accepter (Continuer => True);
end Input;
-- end Client;
|
------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2000-2016, AdaCore --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with ada.text_io;
with interfaces;
with Ada.Sequential_IO;
package byte_package is
type earth is mod 2**3;
type byte is mod 2**8;
type dword is mod 2**32;
type byte_array_8 is array (0..7) of byte;
procedure to_byte (in_dword : in dword; b1, b2, b3, b4 : out byte);
function to_dword (b1, b2, b3, b4 : byte)... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2020, Fabien Chouteau --
-- --
-- ... |
-- File: test.adb
-- Description: Test suite for AdaID
-- Author: Anthony Arnold
-- License: http://www.gnu.org/licenses/gpl.txt
with AUnit.Test_Suites; use AUnit.Test_Suites;
with AUnit.Run;
with AUnit.Reporter.Text;
with AdaID_Tests;
procedure Test is
function Suite return Access_Test_Suite is
Result : constant ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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 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... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Zstandard.Thin_Binding;
package Zstandard.Functions is
package Thin renames Zstandard.Thin_Binding;
------------------
-- Data Types --
------------------
type Compression_Level is range 1... |
---------------------------------------------------------------------------
-- package QR_Symmetric_Eigen, QR based eigen-decomposition
-- 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... |
-- F defines a differential equation whose solution is Exp (i*t).
-- dY/dt = F(Y).
-- For testing.
generic
type Real is digits <>;
package Sinu_2 is
type Dyn_Index is range 0..1; -- the 2nd component is just ignored in the tests.
type Dynamical_Variable is array(Dyn_Index) of Real;
DynZero : constant... |
package GL.Materials is
-- Material. Doc from the VRML 1.0 spec (refers to OpenGL):
-- * The ambient color reflects ambient light evenly from all parts of
-- an object regardless of viewing and lighting angles.
--
-- * The diffuse color reflects all VRML light sources depending on the
-- a... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- This spec has been automatically generated from FE310.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- E31 CPU Coreplex, high-performance, 32-bit RV32IMAC core
--
package FE310_SVD is
pragma Preelaborate;
--------------------
-- Base addres... |
with Ada.Text_Io; use Ada.Text_Io;
procedure Subprogram_As_Argument is
type Proc_Access is access procedure;
procedure Second is
begin
Put_Line("Second Procedure");
end Second;
procedure First(Proc : Proc_Access) is
begin
Proc.all;
end First;
begin
First(Second'Access);
end Subpro... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit specialized for Windows
with System.Synchronous_Objects;
with C.winbase;
with C.windef;
with C.winnt;
package System.Native_Tasks is
pragma Preelaborate;
-- thread
subtype Handle_Type is C.winnt.HANDLE;
function Current return Handle_Type
rena... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
pragma Restrictions(No_Elaboration_Code);
with Elab4_Proc;
package Elab4 is
procedure My_G is new Elab4_Proc;
end Elab4;
-- { dg-final { scan-assembler-not "elabs" } }
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
pragma License (GPL);
------------------------------------------------------------------------------
-- EMAIL: <darkestkhan@gmail.com> --
-- License: GNU GPLv3 or any later as published by Free Software Foundation --
-- (see README file) ... |
with Ada.IO_Exceptions;
with Ada.Streams;
private with C.openssl.md5;
package Crypto.MD5 is
pragma Preelaborate;
subtype Fingerprint is Ada.Streams.Stream_Element_Array (0 .. 15);
subtype Message_Digest is String (1 .. 32);
type Context (<>) is private;
function Initial return Context;
procedure Update (
... |
--
-- See protect.adb
--
-- This test proves that multiple readers on a protected
-- object are possible when using function: in the example
-- protect.adb the problem was the delay.
--
-- (Hence the name One_A_Time must refer to the writers)
--
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Calendar; use Ada.Calendar;
p... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Thick_Hello is
package Counter is
type C_Type is mod 17;
procedure Increment;
procedure Increment (I : Integer);
procedure Decrement;
function Value return C_Type;
private
Cnt : C_Type := 0;
end Counter;
package body Coun... |
package body Symbex.Walk is
procedure Walk_Tree
(Tree : in Parse.Tree_t;
Status : out Walk_Status_t)
is
Finish_Tree : exception;
Finish_Error : exception;
Depth : Natural := 0;
-- Recursive list walking procedure.
procedure Walk_List
(Tree : in Parse.Tree_t;
... |
with base_iface; use base_iface;
package oop_mixin is
type Derived is limited new The_Interface with null record;
overriding procedure simple (Self : Derived);
overriding procedure compound (Self : Derived);
overriding procedure redispatching(Self : Derived);
end oop_mixin;
|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Generic_Shared_Instance.Access_Setter,
Apsepp.Test_Node_Class.Private_Test_Reporter;
package body Apsepp.Test_Node_Class.Runner_Sequential is
-------------------------------------------------... |
-- 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.EXTI is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- IMR1_MR array element
subtype ... |
generic
-- Generic parameter to convert list element to string
package Generic_List.Output is
procedure Print (List : List_T);
end Generic_List.Output;
|
with
lace.Observer,
lace.Subject,
lace.Response;
private
with
ada.Text_IO,
ada.Containers.indefinite_hashed_Sets;
package lace.event.Logger.text
--
-- Provides a logger which logs to a text file.
--
is
type Item is limited new Logger.item with private;
type View is access all Item'Clas... |
pragma SPARK_Mode;
with Interfaces.C; use Interfaces.C;
package Proc_Types is
type Register is mod 2 ** 32
with Size => 32;
subtype Pin_Type is unsigned;
end Proc_Types;
|
-----------------------------------------------------------------------
-- Util.Streams.Files -- File Stream utilities
-- Copyright (C) 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... |
with ACO.Utils.DS.Generic_Protected_Queue;
with ACO.Configuration;
package ACO.Messages.Buffer is new ACO.Utils.DS.Generic_Protected_Queue
(Item_Type => Message,
Maximum_Nof_Items => ACO.Configuration.Messages_Buffer_Size);
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Sessions;
with Symbol_Sets;
package Symbols.IO is
procedure Put_Named (Session : in Sessions.Session_Type;
Set : in Symbol_Sets.Set_Type);
-- Debug
procedure JQ_Dump_Symbols (Session : in Sessions.Session_Type;
Mode : in Integer);
end Sym... |
-----------------------------------------------------------------------
-- package body Extended_Real.E_Rand, extended precision random numbers.
-- Copyright (C) 2008-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted,... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Escape_Loop is
package IO is new Integer_IO (Integer);
begin
Reverse_Loop:
for I in reverse 1 .. 100 loop
for J in 2*I .. 4*I loop
IO.Put (I);
exit reverse_loop when I*J mod 300 = 0;
IO.Put (J); New_Line;
end loop;
end loop Re... |
------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.