content stringlengths 23 1.05M |
|---|
-- Time-stamp: <01 oct 2012 15:37 queinnec@enseeiht.fr>
-- Tâches clients : lecteurs, rédacteurs
package LR.Tasks is
MAXPROCS : constant Integer := 30;
subtype Proc_Id is Positive range 1..MAXPROCS;
task type Lecteur is
entry Init(MonId: Proc_Id);
end Lecteur;
task type Redacteur i... |
with Converters;
-- @summary
-- Units used in aviation, operations among them and conversion
-- factors.
--
-- @description
-- Measure_Units provides all you can need to play with
-- units used in aviation, except that this is a lie because
-- this is a test, so you won't find anything really useful
-- here.
... |
package body Complejos is
function "+" (C1,C2 : Complejo) return Complejo is
begin
return (C1.Re+C2.Re,C1.Im+C2.Im);
end "+";
function Haz_Complejo (Re,Im : Float) return Complejo is
begin
return (Re,Im);
end Haz_Complejo;
function Imag (C : Complejo) return Float is
begin
re... |
with Ada.Text_IO; use Ada.Text_IO;
with USB.Utils; use USB.Utils;
with System.Storage_Elements; use System.Storage_Elements;
with HAL; use HAL;
procedure Main is
Alloc : USB.Utils.Basic_RAM_Allocator (256);
procedure Test (Alignment : UInt8; Len : UInt11) is
Addr : constant Integer_Address :=
To_Int... |
with Standard_Natural_Numbers; use Standard_Natural_Numbers;
with Standard_Floating_Matrices;
with Standard_Complex_Matrices;
with Double_Double_Matrices;
with Quad_Double_Matrices;
with Multprec_Floating_Matrices;
with DoblDobl_Complex_Matrices;
with QuadDobl_Complex_Matrices;
with Multprec_Complex_Matrices;... |
with
Interfaces.C.Strings,
System;
use type
Interfaces.C.int,
Interfaces.C.Strings.chars_ptr,
System.Address;
package body FLTK.Environment is
function new_fl_preferences
(P, V, A : in Interfaces.C.char_array)
return System.Address;
pragma Import (C, new_fl_prefer... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Finalization;
package Yaml.Destination is
type Instance is abstract new Ada.Finalization.Limited_Controlled with
null record;
type Pointer is access all Instance'Class;
p... |
pragma Eliminate (p, d);
package elim1 is
type t is tagged null record;
procedure d (a : t);
end;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Catalan is
function Catalan (N : Natural) return Natural is
Result : Positive := 1;
begin
for I in 1..N loop
Result := Result * 2 * (2 * I - 1) / (I + 1);
end loop;
return Result;
end Catalan;
begin
for N in 0..15 loop
... |
-----------------------------------------------------------------------
-- are-generator -- Advanced Resource Embedder Generator
-- Copyright (C) 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
-- String_To_Storage_Array
-- This is a simple conversion routine to help implement test vectors
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with System.Storage_Elements;
function String_To_Storage_Array(X : String)
return System.Storage_Elements.Storage_Array... |
with AUnit.Reporter.Text;
with AUnit.Run;
with AUnit.Test_Suites;
with Test_SIMD_SSE_Arithmetic;
with Test_SIMD_SSE_Compare;
with Test_SIMD_SSE_Logical;
with Test_SIMD_SSE_Math;
with Test_SIMD_SSE_Swizzle;
with Test_SIMD_SSE4_1_Math;
with Test_SIMD_AVX_Arithmetic;
with Test_SIMD_AVX_Compare;
with Test_SIMD_AVX_Math;
w... |
procedure RangeV2 is
type BitsFake is range -53 .. 191;
type Bits30 is range 0 .. 1073741823;
for Bits30'Size use 30;
type Signed_Bits26 is range -33554432 .. 33554431;
for Signed_Bits26'Size use 26;
begin
null;
end RangeV2;
|
with Ada.Text_IO; use Ada.Text_IO;
with Adventofcode.File_Line_Readers;
procedure Adventofcode.Day_6.Main is
procedure Part1 (Input_Path : String) is
Group_Reply : Reply_Type;
Totals : Natural := 0;
begin
for Line of Adventofcode.File_Line_Readers.Read_Lines (Input_Path) loop
i... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
package body System.Mantissa is
pragma Suppress (All_Checks);
type Unsigned is mod 2 ** Integer'Size;
function clz (X : Unsigned) return Unsigned
with Import, Convention => Intrinsic, External_Name => "__builtin_clz";
-- implementation
function Mantissa_Value (First, Last : Integer) return Nat... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
-----------------------------------------------------------------------
-- GtkAda - Ada95 binding for Gtk+/Gnome --
-- --
-- Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet --
-- Copyright (C)... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- The Village of Vampire by YT, このソースコードはNYSLです
-- ユーザーログ表示ツールです、CGIとして公開しないでください
with Tabula.Users.Lists.Dump;
with Vampire.Configurations;
procedure Vampire.Dump_Users_Log is
begin
Tabula.Users.Lists.Dump (
Users_Directory => Configurations.Users_Directory'Access,
Users_Log_File_Name => Configurations.Users_Log... |
-- 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... |
-- This spec has been automatically generated from STM32WL5x_CM0P.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PKA is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_MODE_Field is ... |
package Base with SPARK_Mode is
type Number is array (Positive range <>) of Character;
function Encode (S : String) return Number
-- length of result will be longer than input, so need to guard against
-- too large input. Selecting some very restricted value, we could
-- probably bound this mu... |
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package DG_Types.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.DG_Types.Test_Data.Test
with null re... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with GNAT.OS_Lib;
with Ada.Command_Line; use Ada.Command_Line;
with System;
with Ada.Unchecked_Conversion;
with Build_Options;
procedure Getr is
t... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.Sockets;
procedure Demo is
begin
Put_Line (GNAT.Sockets.Host_Name);
end Demo;
|
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Sam Hoc... |
with Ada.Text_IO;
with Ada.Directories;
with Ada.Command_Line;
with Templates_Parser;
with CLIC.TTY;
with Filesystem;
with Commands;
with Blueprint; use Blueprint;
package body Init_Project is
package IO renames Ada.Text_IO;
package TT renames CLIC.TTY;
use Ada.Directories;
Errors : Boolean := false;
Filt... |
-----------------------------------------------------------------------
-- util-http-clients-mockups -- HTTP Clients mockups
-- Copyright (C) 2011, 2012, 2017, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
-- Test_Input_Lengths
-- Ensure that associated data of different length are accepted and messages
-- of different lengths correctly encrypt and decrypt. This is largely aimed
-- at checking the implementation of padding.
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
with Ascon;
with System.St... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
with RASCAL.Toolbox; use RASCAL.Toolbox;
package Controller_Error is
type TEL_Toolbox_Error is new ATEL_Toolbox_Error with null record;
--
-- A Toolbox Error has occurred.
--
procedure Handle (The : in TEL_Toolbox_Error);
end Controller_Error; |
with Resources5;
with Ada.Command_Line;
with Ada.Text_IO;
procedure Test5 is
use Resources5;
begin
if Id_main_html'Length /= 356 then
Ada.Text_IO.Put_Line ("FAIL: Invalid length for 'main.html'");
Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
end if;
if Id_Jsmain_js'Length /= 87 ... |
--******************************************************************************
--
-- package SYSTEM
--
--******************************************************************************
package SYSTEM is
type NAME is (VAX_VMS);
SYSTEM_NAME : constant NAME := VAX_VMS;
STORAGE_UNIT : constant := 8;
... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with AVR; use AVR;
with Interfaces; use Interfaces;
with Hardware.PWM; use Hardware;
package Hardware.DriveTrain is
procedure Init;
procedure Forward;
procedure Backward;
procedure Rotate_Left;
procedure Rotate_Right;
procedure Stop;
private
Motor_Right : Hardware.PWM.Servo_Index;
... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Fibonacci is
function Fibonacci (N : Natural) return Natural is
This : Natural := 0;
That : Natural := 1;
Sum : Natural;
begin
for I in 1..N loop
Sum := This + That;
That := This;
This := Sum;
end loop;
... |
-- Gonzalo Martin Rodriguez
-- Ivan Fernandez Samaniego
package Priorities is
Head_Priority : constant integer := 20; -- d=100, t=400
Risk_Priority : constant integer := 19; -- d=150, t=150
Sporadic_Priority : constant integer := 18; -- d=200, t=200
Distance_Priority : constant integer := 1... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package body GL.Algebra is
function To_Vector2 (Vector : Vector3) return Vector2 is
begin
return Vector2'(Vector (X), Vector (Y));
end To_Vector2;
function To_Vector2 (Vector : Vecto... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
X : Integer;
begin
X := 'a';
end;
|
pragma License (Unrestricted);
-- AARM A.16(124.cc/2), specialized for POSIX (Darwin, FreeBSD, or Linux)
package Ada.Directories.Information is
-- System-specific directory information.
-- Unix and similar systems version.
function Last_Access_Time (Name : String) return Calendar.Time;
function Last_St... |
with Ada.Calendar;
with Ada.Real_Time;
procedure delays is
use type Ada.Calendar.Time;
use type Ada.Real_Time.Time;
use type Ada.Real_Time.Time_Span;
begin
declare
Start : Ada.Calendar.Time := Ada.Calendar.Clock;
begin
delay 1.0;
delay until Ada.Calendar.Clock + 1.0;
pragma Assert (Ada.Calendar.Clock - Sta... |
-----------------------------------------------------------------------
-- ADO.Model -- ADO.Model
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://ada-gen.googlecode.com/s... |
procedure scan_for_file_ghosts (
directory_path : in String;
file_ghosts : out Filename_Container.Vector;
directory_ghosts : out Filename_Container.Vector);
-- Given an existing directory path, the procedure will produce
-- both a list of deleted directories and a list of files deleted
-- (but... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Unchecked_Deallocation;
package body Apsepp.Test_Event_Class.Generic_Exception_Mixin is
----------------------------------------------------------------------------
overriding
procedure Set (O... |
-----------------------------------------------------------------------
-- receiver -- Ethernet Packet Receiver
-- 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 use this file ex... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- CE3303A.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 Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Numerics.Discrete_Random;
package body Randomise is
-- '0' to '9'
subtype Numeric_Rand_Range is Integer range 48..57;
package Numeric_Rand is new Ada.Numerics.Discrete_Random(Numeric_Rand_Range);
Numeric_Gen : Numeric_Rand.Generator;
Numeri... |
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Tk.TtkEntry.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tk.TtkEntry.Test_Data
.Test wit... |
with Ada.Text_IO;
with BigInteger;
package body Problem_56 is
package IO renames Ada.Text_IO;
procedure Solve is
function Digit_Sum(bi : BigInteger.BigInt) return Positive is
str : constant String := BigInteger.ToString(bi);
sum : Natural := 0;
begin
for index in str'Range l... |
-- { dg-do run }
-- { dg-options "-gnatws" }
procedure Biased_Subtype is
CIM_Max_AA : constant := 9_999_999;
CIM_Min_AA : constant := -999_999;
type TIM_AA is range CIM_Min_AA..CIM_Max_AA + 1;
for TIM_AA'Size use 24;
subtype STIM_AA is TIM_AA range TIM_AA(CIM_Min_AA)..TIM_AA(CIM_Max_AA);
SAA : ST... |
package body Shared_Data is
protected body Sensor_Reading is
procedure Set (Meassured_Value : in Float) is
begin
Current_Value := Meassured_Value;
Updated := True;
end Set;
entry Get (Value : out Float) when Updated is
begin
Val... |
-- smart_c_resources.ads
-- A reference counting package to wrap a C type that requires initialization
-- and finalization.
-- Copyright (c) 2016, 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
-- co... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with C_String;
with Interfaces.C;
with System;
package body Agar.Core.Data_Source is
package C renames Interfaces.C;
use type C.size_t;
--
-- Open.
--
procedure Open_File
(Path : in String;
Mode : in String;
Source : out Data_Source_Access_t)
is
Ch_Path : aliased C.cha... |
package Discr11_Pkg is
type DT_1 (<>) is tagged private;
function Create return DT_1;
private
type DT_1 (Size : Positive) is tagged record
Data : String (1 .. Size);
end record;
end Discr11_Pkg;
|
with Ada.Finalization;
with kv.avm.Line_Parser;
with kv.avm.Tuples;
package kv.avm.Ini is
type Settings_Type is new Ada.Finalization.Controlled and kv.avm.Line_Parser.Parse_Line_Interface with private;
overriding procedure Initialize (Self : in out Settings_Type);
overriding procedure Adjust (Self : in... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+flacada@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 Sam ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Unchecked_Conversion;
with GL.API;
with GL.Enums.Getter;
package body GL.Objects.Framebuffers is
------------
function Status (Target : Fram... |
pragma License (Unrestricted);
-- with System;
-- with System.Multiprocessors;
package Ada.Interrupts is
type Interrupt_Id is range 0 .. 2 ** 16 - 1; -- implementation-defined
type Parameterless_Handler is access protected procedure;
function Is_Reserved (Interrupt : Interrupt_Id) return Boolean;
pragma... |
with Units; use Units;
package Config is
CFG_TARGET_ALTITUDE_THRESHOLD : constant Altitude_Type := 100.0 * Meter;
CFG_TARGET_ALTITUDE_THRESHOLD_TIME : constant := 6.0 * Second;
end Config;
|
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
package body Yaml.Presenter.Analysis is
function Features (S : String) return Scalar_Features is
Pos : Positive := S'First;
Cur : Character;
Cur_Word_Length : Natural := 0;
... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Generic_Shared_Instance.Fallback_Switch;
with Apsepp.Test_Reporter_Class.Stub.Create; use Apsepp.Test_Reporter_Class;
private package Apsepp.Test_Node_Class.Private_Test_Reporter is
procedure Run_... |
with GESTE;
with GESTE.Text;
with Ada.Text_IO;
with Console_Char_Screen;
with GESTE_Fonts.FreeMono8pt7b;
procedure Text_Dirty is
package Font_A renames GESTE_Fonts.FreeMono8pt7b;
package Console_Screen is new Console_Char_Screen
(Width => 45,
Height => 20,
Buffer_Size => 45,
... |
pragma Check_Policy (Trace => Ignore);
with Ada; -- assertions
with System.Formatting.Address;
with System.Storage_Map;
with System.Unwind.Occurrences;
with System.Unwind.Raising;
package body System.Unwind.Backtrace is
pragma Suppress (All_Checks);
package Separated is
-- equivalent to __gnat_backtrace ... |
pragma License (Unrestricted);
-- generalized unit of Ada.Strings.Unbounded
with Ada.References;
with Ada.Streams;
with Ada.Unchecked_Deallocation;
private with Ada.Finalization;
private with System.Reference_Counting;
generic
type Character_Type is (<>);
type String_Type is array (Positive range <>) of Characte... |
with AAA.Processes;
with Ada.Strings.Unbounded;
with Ada.Integer_Text_IO;
with GNAT.OS_Lib;
package body Minirest is
package OS renames GNAT.OS_Lib;
------------------
-- Code_To_Kind --
------------------
function Code_To_Kind (Code : Integer) return Status_Kinds
is (case Code is
when 1... |
-- CC1207B.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
any_Math.any_Geometry;
package float_math.Geometry is new float_Math.any_Geometry;
pragma Pure (float_math.Geometry);
|
with Ada.Text_IO.Text_Streams;
with Ada.Command_Line;
with Resources.Help;
with Resources.Man;
with System.Storage_Elements;
procedure Show_Help is
use Ada.Text_IO;
use Resources;
use System.Storage_Elements;
procedure Print (Name : in String) is
C : access constant Storage_Array := Man.Get_Content (... |
--
-- 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 Ada.Calendar;
with Ada.Containers.Vec... |
-- Implantation du module Ensembles.
package body Ensembles_Tableau is
procedure Initialiser (Ensemble : out T_Ensemble) is
begin
Ensemble.Taille := 0;
end Initialiser;
procedure Detruire (Ensemble : in out T_Ensemble) is
begin
Ensemble.Taille := 0;
end Detruire;
function Est_... |
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
--
-- 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 above copyright notice, t... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
private with Ada.Containers.Hashed_Maps;
with Regions.Symbols;
package Regions.Contexts is
pragma Preelaborate;
type Context is tagged limited priv... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
---------------------------------
-- GID - Generic Image Decoder --
---------------------------------
--
-- Private child of GID, with helpers for identifying
-- image formats and reading header informations.
--
private package GID.Headers is
--
-- Crude image signature detection
--
procedure Load_signature... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- J E W L . W I N 3 2 _ I N T E R F A C E --
-- --
... |
-- C94010A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
-- Abstract :
--
-- Base utilities for McKenzie_Recover
--
-- Copyright (C) 2018 - 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 Free
-- Software Foundation; either version... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
with STM32.Device;
with HIL.Config;
-- @summary
-- Target-specific mapping for HIL of Clock
package body HIL.Clock with
SPARK_Mode => Of... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Author: Martin Becker (becker@rcs.ei.tum.de)
with HIL; use HIL;
with Ada.Unchecked_Conversion;
with Ada.Real_Time; use Ada.Real_Time;
with ULog.Conversions; use ULog.Conversions;
with In... |
package Array15 is
function F (I : Integer) return Integer;
end Array15;
|
-- 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 VisitFailurePackage, VisitablePackage, EnvironmentPackage;
use VisitFailurePackage, VisitablePackage, EnvironmentPackage;
package body FailStrategy is
----------------------------------------------------------------------------
-- Object implementation
---------------------------------------------------------... |
package body Array25_Pkg is
procedure Get_Inner (A : out Arr1) is
begin
null;
end;
procedure Get (A : out Arr2) is
begin
for I in Arr2'Range loop
Get_Inner (A (I).Data);
end loop;
end;
end Array25_Pkg;
|
package Dsp is
subtype Normalized_Frequency is Float range 0.0 .. 1.0;
subtype Radius is Float range 0.0 .. Float'Last;
subtype Stable_Radius is Radius range 0.0 .. 1.0;
end Dsp;
|
pragma License (Unrestricted);
-- extended unit
with Ada.IO_Exceptions;
package Ada.Streams.Block_Transmission is
-- There are efficient read/write/input/output operations for stream.
pragma Pure;
generic
type Index_Type is (<>);
type Element_Type is (<>);
type Array_Type is array (Index_T... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
-- @summary
-- target-independent functions of HIL.
package body HIL with
SPARK_Mode => Off
is
procedure set_Bits( register : in ou... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 Felix Krause <contact@flyx.org>
--
-- 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/licen... |
-- { dg-do compile }
-- { dg-options "-g" }
package body Import1 is
procedure Create (Bounds : Arr) is
type Bound_Array is array (Bounds'Range) of Integer;
procedure Proc (Ptr : access Bound_Array);
pragma Import (C, Proc);
Temp : aliased Bound_Array;
begin
Proc (Temp'Access);
... |
package body Memory is
function "+" (Addr : Flash_Memory_Range; Offset : Unsigned_16) return Flash_Memory_Range is
begin
return Flash_Memory_Range (Unsigned_16 (Addr) + Offset);
end "+";
end Memory;
|
--
-- Uwe R. Zimmer, Australia, 2013
--
package body Generic_Protected is
protected body Monitor is
function Read return Element is (Value);
procedure Write (E : Element) is
begin
Value := E;
Touched := True;
end Write;
entry Wait_for_Update (E : out Element) w... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
package body Discr8 is
procedure Make (C : out Local_T) is
Tmp : Local_T (Tag_One);
begin
C := Tmp;
end;
package Iteration is
type Message_T is
record
S : Local_T;
end record;
type Iterator_T is
record
S : Lo... |
-- { dg-do compile }
-- { dg-options "-gnatc" }
generic
package Iface_Eq_Test.Child is
protected type PO is new Iface with
procedure Dummy;
end;
overriding function "=" (L, R : access PO) return Boolean;
end;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.