content stringlengths 23 1.05M |
|---|
package deref1 is
type T is tagged limited null record;
procedure Op (Obj : in out T);
end deref1;
|
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2021 Vitalii Bondarenko <vibondare@gmail.com> --
-- --
----... |
with Ada.Text_IO;
with Ada.Command_Line;
with Bundle;
procedure Show_Message is
use Bundle;
Count : constant Natural := Ada.Command_Line.Argument_Count;
begin
if Count = 0 then
Ada.Text_IO.Put_Line ("Missing argument 'msg' or 'msg_fr'");
Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Serialization;
package Vampire.Villages.Village_IO is
Yaml_Type : constant String := "vampire-village";
procedure IO (
Serializer : not null access Serialization.Serializer;
Name : in String; People : in out Villages.People.Vector);
procedure IO (
Seria... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with AUnit.Reporter.Text;
with AUnit.Run;
with Day1_Suite; use Day1_Suite;
procedure Test_Day1 is
procedure Runner is new AUnit.Run.Test_Runner (Suite);
Reporter : AUnit.Reporter.Text.Text_Reporter;
begin
Runner (Reporter);
end Test_Day1;
|
with CLIC.TTY; use CLIC.TTY;
with Ada.Text_IO; use Ada.Text_IO;
package body CLIC_Ex.Commands.TTY is
package TTY renames CLIC.TTY;
-------------
-- Execute --
-------------
overriding
procedure Execute (Cmd : in out Instance; Args : AAA.Strings.Vector)
is
begin
Put_Line (TTY.Bold ("CLI... |
----------------------------------
-- Binary Space Partition (BSP) --
----------------------------------
--
-- Changes:
--
-- 31 - Mar - 2008 : comment : node_id also meant for use with I/O
-- 14 - Oct - 2006 : created
package GLOBE_3D.BSP is
type BSP_node;
type p_BSP_node is access BSP_node;
... |
------------------------------------------------------------------------------
-- --
-- AUDIO / RIFF / WAV --
-- --
-- ... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
with System;
package SSO2 is
I : Integer;
type Rec1 is record
A : System.Address;
end record;
for Rec1'Bit_Order use System.High_Order_First;
for Rec1'Scalar_Storage_Order use System.High_Order_First;
R1 : Rec1 := (A => I'Address);
type Rec2 is re... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions... |
with Ada.Text_IO;
procedure Caesar is
type M26 is mod 26;
function To_M26(C: Character; Offset: Character) return M26 is
begin
return M26(Character'Pos(C)-Character'Pos(Offset));
end To_M26;
function To_Character(Value: in M26; Offset: Character)
return Character is
... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O ... |
-----------------------------------------------------------------------
-- gen-model-projects -- Projects meta data
-- Copyright (C) 2011, 2012, 2013, 2014, 2017, 2018, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
-- { dg-do compile }
package body Array19 is
function N return Integer is
begin
return 1;
end;
type Array_Type is array (1 .. N) of Float;
type Enum is (One, Two);
type Rec (D : Enum := Enum'First) is record
case D is
when One => null;
when Two => A : Array_Type;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_95;
pragma Warnings (Off);
with System;
package testmain is
procedure testinit;
pragma Export (C, testinit, "testinit");
pragma Linker_Constructor (testinit);
procedure testfinal;
pragma Export (C, testfinal, "testfinal");
pragma Linker_Destructor (testfinal);
type Version_32 is mod 2... |
-- sarge_test.adb - Implementation file for the Sarge command line argument parser test.
-- Revision 0
-- Features:
-- -
-- Notes:
-- -
-- 2019/04/10, Maya Posch
with Sarge;
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
procedure Sarge_Test is
function "+"(S : in... |
with VisitablePackage, EnvironmentPackage, VisitFailurePackage;
use VisitablePackage, EnvironmentPackage, VisitFailurePackage;
package body OneIdStrategy is
----------------------------------------------------------------------------
-- Object implementation
--------------------------------------------------------... |
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package RP_SVD.IO_BANK0 is
pragma Preelabora... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure Triple is
begin
for C in 1 .. 40 loop
for B in 1 .. C loop
for A in 1 .. B loop
if A ** 2 + B ** 2 = C ** 2 then
Put_Line (Integer'Image(A) & ", " & Integer'Image(B) & ", " & Integer'Image(C));
end if;
end loop;
en... |
with Ada.Unchecked_Deallocation;
package body TH is
procedure Initialiser(Sda: out T_TH; Capacite: in Integer) is
begin
Sda.Elements := new T_Tab_LCA(1..Capacite);
Sda.Capacite := Capacite;
for i in 1..Capacite loop
T_LCA_C.Initialiser(Sda.Elements(i));
end loop;
end Initialiser;
functi... |
with Tkmrpc.Types;
with Tkmrpc.Operations.Ike;
package Tkmrpc.Response.Ike.Isa_Create is
Data_Size : constant := 272;
type Data_Type is record
Sk_Ai : Types.Key_Type;
Sk_Ar : Types.Key_Type;
Sk_Ei : Types.Key_Type;
Sk_Er : Types.Key_Type;
end record;
for Data_Type use record
... |
-- --
-- package Strings_Edit Copyright (c) Dmitry A. Kazakov --
-- Interface Luebeck --
-- Spring, 2000 --
-- ... |
with System.Native_Real_Time;
with System.Native_Time;
with System.Tasks;
with System.Debug; -- assertions
with C.errno;
with C.poll;
package body System.Synchronous_Objects.Abortable is
use type Native_Time.Nanosecond_Number;
use type C.signed_int;
use type C.unsigned_short;
type struct_pollfd_array is
... |
pragma Ada_2012;
with Ada.Unchecked_Deallocation;
package body Protypo.Api.Consumers.Buffers is
-------------
-- Process --
-------------
overriding procedure Process (Consumer : in out Buffer; Parameter : String)
is
begin
if Consumer.Data /= Null_Unbounded_String then
Consumer.Data ... |
with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with AdaBase.Results.Sets;
procedure DS_Fetch is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ARS renames AdaBase.Results.Sets;
package CT renames CommonText;
begin
CON.DR.set_trait_character_set (""); -- Nativ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2013, 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:
--
-- * Redistributions of source code must retain the above copyright notice, this
-- lis... |
with Memory.Super_Time;
with Memory.Super_Writes;
with Memory.Super_None;
with Util; use Util;
separate (Parser)
procedure Parse_Super(parser : in out Parser_Type;
result : out Memory_Pointer) is
type Opt_Type is (Opt_Time, Opt_Writes, Opt_None);
max_cost : Cost_Type := 1e6;
p... |
with ACO.Messages;
with ACO.OD_Types;
with ACO.Utils.Byte_Order;
with Interfaces;
with System;
package ACO.SDO_Commands is
use Interfaces;
use ACO.Messages;
use ACO.OD_Types;
use ACO.Utils.Byte_Order;
type Unsigned_3 is mod 2 ** 3 with Size => 3;
type Unsigned_2 is mod 2 ** 2 with Size => 2;
sub... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Tags; use Ada.Tags;
with Apsepp.Test_Event_Class; use Apsepp.Test_Event_Class;
package Apsepp.Test_Reporter_Data_Struct_Class is
type Event_Count is new Natural;
subtype Event_Inde... |
------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
with Slim.Menu_Commands.Play_File_Commands;
package body Slim.Menu_Models.Play_Lists is
function Cre... |
with MSP430_SVD; use MSP430_SVD;
with MSPGD.Clock.Source;
generic
Speed: UInt32;
with package Clock is new MSPGD.Clock.Source (<>);
package MSPGD.UART.Peripheral is
pragma Preelaborate;
procedure Init;
procedure Transmit (Data : Byte);
function Receive return Byte;
function Data_Available return Boolean;
... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers.Hashed_Maps;
with System.Address_To_Access_Conversions;
with System.Storage_Elements;
with Yaml.Dom.Node;
with Yaml.Events.Queue.Stream;
with Yaml.Presenter;
package body Yaml.D... |
-----------------------------------------------------------------------
-- Util.Files -- Various File Utility Packages
-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
function F(X: Integer) return Integer is
begin
Put('F');
return X;
end;
begin
for I in F(1) .. F(10) loop Put('A'); end loop; New_Line;
for I in F(10) .. F(1) loop Put('B'); end loop; New_Line;
for I in reverse F(1) .. F(10) loop Put('C'... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with AdaBase.Connection.Base.MySQL;
with AdaBase.Bindings.MySQL;
with Ada.Containers.Vectors;
package AdaBase.Statement.Base.MySQL is
package ACM renames AdaBase.Connection.Base.MySQL;
package ABM rename... |
with Ada.Directories;
with Ada.Strings.Unbounded;
with Iictl;
with Posix;
with Util;
package Srv_Conn is
-- TODO rename Server_Reconnection or something?
procedure Reconnect_Servers (Irc_Dir : in String; Nick : in String);
procedure Maintain_Connection
(Dir_Ent : in Ada.Directories.Directory_Entry_... |
-----------------------------------------------------------------------
-- bbox -- Bbox API
-- 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 compliance with th... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . D S O --
-- S p e c --
----... |
with FIFO;
with Ada.Text_Io; use Ada.Text_Io;
procedure Queue_Test is
package Int_FIFO is new FIFO (Integer);
use Int_FIFO;
Queue : FIFO_Type;
Value : Integer;
begin
Push (Queue, 1);
Push (Queue, 2);
Push (Queue, 3);
Pop (Queue, Value);
Pop (Queue, Value);
Push (Queue, 4);
Pop (Queue, ... |
package Ant_Handler with SPARK_Mode => On
is
function Do_Something (Text : String) return String;
end Ant_Handler;
|
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Characters.Conversions;
with Ada.Command_Line;
with Ada.Wide_Wide_Text_IO;
with Program.Compilation_Unit_Vectors;
with Program.Compilation_Un... |
with OpenAL.Types;
package OpenAL.Buffer is
--
-- Types
--
type Buffer_t is private;
type Buffer_Array_t is array (Positive range <>) of Buffer_t;
No_Buffer : constant Buffer_t;
--
-- API
--
-- proc_map : alGenBuffers
procedure Generate_Buffers
(Buffers : in out Buffer_Array_t);
... |
--
-- Raytracer implementation in Ada
-- by John Perry (github: johnperry-math)
-- 2021
--
-- main program
--
-- Ada packages
with Ada.Text_IO; use Ada.Text_IO; -- I/O
with Ada.Real_Time; -- timing
-- local packages
with Bitmap;
with Cameras;
with Colors;
with Lights;
with Objects;
with RayTracer;
wi... |
with Text_IO;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Strings.UTF_Encoding;
with System.WCh_Con;
with System.WCh_Cnv;
with JSON_Gen.Command_Lines; use JSON_Gen.Command_Lines;
with Ada.Directories; use Ada.Directories;
with Interfaces; use type Interfaces.Unsigned_16;
with GNAT.OS_Lib; use ... |
with
physics.Object,
physics.Model,
physics.Shape,
bullet_C;
private
with
bullet_c.Pointers,
lace.Any;
package bullet_Physics.Object
--
-- Provides glue between a physics object and a Bullet3D object.
--
is
type Item is limited new physics.Object.item with private;
type View is acc... |
--*****************************************************************************
--*
--* PROJECT: BINGADA
--*
--* FILE: q_bingo.adb
--*
--* AUTHOR: Javier Fuica Fernandez
--*
--*****************************************************************************
with Q_GEN_SHUFFLE;
-- Soun... |
------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
private with ADA.Containers.Vectors;
package ACO.Drivers.Dummy is
type Dummy_Driver is new Driver with private;
overriding
procedure Receive_Message_Blocking
(This : in out Dummy_Driver;
Msg : out ACO.Messages.Message);
overriding
procedure Send_Message
(This : in out Dummy_Drive... |
private with COBS.Stream.Encoder;
package Test_Utils.Abstract_Encoder.COBS_Stream is
subtype Parent is Abstract_Encoder.Instance;
type Instance is new Parent with private;
type Acc is access all Instance;
type Any_Acc is access all Instance'Class;
overriding
procedure Receive (This : in out Instan... |
with Ada.Exception_Identification.From_Here;
package body Ada.Streams.Block_Transmission is
pragma Suppress (All_Checks);
use Exception_Identification.From_Here;
procedure Read (
Stream : not null access Root_Stream_Type'Class;
Item : out Array_Type) is
begin
if Element_Type'Size = Elemen... |
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 Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package afrl.cmasi.keyValuePair is
type KeyValuePair is new afrl.cmasi.object.Object with private;
type... |
-- *************************************************************************************
--
-- 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 Government
--... |
--
-- 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... |
-- { dg-do compile }
-- { dg-options "-O" }
with Loop_Optimization13_Pkg; use Loop_Optimization13_Pkg;
package body Loop_Optimization13 is
function F (A : Rec) return Rec is
N : constant Integer := A.V'Length / L;
Res : Rec
:= (True, new Complex_Vector' (0 .. A.V'Length / L - 1 => (0.0, 0.0)))... |
with
gel.Camera.forge,
gel.Events,
lace.Event.utility;
package body gel.Applet.gui_and_sim_world
is
procedure define (Self : access Item; Name : in String;
use_Window : in gel.Window.view)
is
use lace.Event.utility;
begin
declare
... |
--
-- 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... |
-- Hello World worker
-- Connects REP socket to tcp://localhost:5560
-- Expects "Hello" from client, replies with "World"
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with Ada.Calendar;
with ZMQ;
procedure RRWorker is
use type Ada.Calendar.Time;
use type GNAT.Formatted_String.Format... |
-- Définition de structures de données associatives sous forme d'un arbre
-- binaire de recherche (ABR).
generic
type T_Cle is private;
type T_Donnee is private;
with function "<" (Gauche, Droite : in T_Cle) return Boolean;
package ABR is
type T_ABR is limited private;
-- Initialiser une Sda. La Sda est vide.... |
with
Ada.Calendar;
package body JSA.Intermediate_Backups is
In_A_Loop : Boolean := False;
Save_Time : Duration;
Loop_Start : Ada.Calendar.Time;
Saved : Boolean;
procedure Begin_Loop is
begin
In_A_Loop := True;
Save_Time := 0.0;
Saved := False;
Loop_Start := A... |
-- The MIT License (MIT)
-- Copyright (c) 2015 Pavel Zhukov <landgraf@fedoraproject.org>
-- 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 limit... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P is begin x := 0; end;
begin P; end;
|
with
Interfaces.C,
System;
package body FLTK.Devices.Graphics is
function fl_graphics_driver_color
(G : in System.Address)
return Interfaces.C.unsigned;
pragma Import (C, fl_graphics_driver_color, "fl_graphics_driver_color");
pragma Inline (fl_graphics_driver_color);
... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2012, Stefan Berghofer
-- Copyright (C) 2012, 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;
package body help is
procedure show_help is
begin
put_line(help_text);
end;
end help;
|
pragma License (Unrestricted);
-- implementation unit specialized for Windows
with C.winnt;
package System.Zero_Terminated_WStrings is
pragma Preelaborate;
-- This package targets at not Wide_String in Ada, not wchar_t in C
-- but LPWSTR in Windows.
-- convert from zero-terminated LPWSTR to UTF-8 Str... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_SEDOL is
subtype SEDOL_String is String (1..6);
type SEDOL_Sum is range 0..9;
function Check (SEDOL : SEDOL_String) return SEDOL_Sum is
Weight : constant array (SEDOL_String'Range) of Integer := (1,3,1,7,3,9);
Sum : Integer := 0;
Item ... |
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Long_Float_Text_IO; use Ada.Long_Float_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with System;
with PortAudioAda; use PortAudioAda;
procedure PA_Devices
is
procedure Print_Supported_Standard_Sample_Rates
(inputParameters : ... |
package body Threadsafe_Containers is
-- Implementation
protected body Threadsafe_Circbuf is
-- Blocks if full
entry Insert (Value : in Integer)
when (Length < Size) is
begin
Buffer(Tail) := Value;
Tail := (Tail mod Size) + 1;
Length := Length + 1;
... |
pragma Ada_2012;
package body DDS.Request_Reply.Replier.Impl is
-----------------------
-- Wait_For_Requests --
-----------------------
procedure Wait_For_Requests
(Self : not null access Ref;
Min_Count : DDS.Integer;
Max_Wait : DDS.Duration_T)
is
begin
Self.Wait_For_An... |
with AUnit.Assertions; use AUnit.Assertions;
with Libadalang.Analysis; use Libadalang.Analysis;
with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns;
with Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory;
package body Assert_AST is
function Assert_AST
(AST : String;... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Characters.Conversions;
package body GNAT.Encode_String is
function Encode_Wide_Wide_String (S : Wide_Wide_String) return String is
begin
case Encoding_Method is
when System.WCh_Con.WCEM_UTF8 =>
return Ada.Characters.Conversions.To_String (S);
-- String is UTF-... |
------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2002-2016, AdaCore --
-- ... |
------------------------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2004 Dmitriy Anisimkov --
-- ... |
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Widgets.Buttons.Enter is
procedure return_button_set_draw_hook
(W, D : in System.Address);
pragma Import (C, return_button_set_draw_hook, "return_button_set_draw_hook");
pragma Inline (return_button_set_dra... |
pragma License (Unrestricted);
-- extended unit
with Ada.Strings.Generic_Functions;
package Ada.Strings.Wide_Functions is
new Generic_Functions (
Character_Type => Wide_Character,
String_Type => Wide_String,
Space => Wide_Space);
pragma Preelaborate (Ada.Strings.Wide_Functions);
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types.Colors;
private package GL.Helpers is
pragma Preelaborate;
use GL.Types;
function Float_Array (Value : Colors.Color) return Single_Array;
function Color (Value : Single_Arra... |
with VisitFailurePackage, EnvironmentPackage;
use VisitFailurePackage, EnvironmentPackage;
with Ada.Text_IO; use Ada.Text_IO;
package body AbstractStrategyBasicPackage is
----------------------------------------------------------------------------
-- Strategy implementation
---------------------------------------... |
-- { dg-do compile }
-- { dg-options "-gnato" }
procedure Dynamic_Bound is
procedure Define (Count : Integer) is
type Count_T is new Integer range 0 .. Count * 1000;
type Obj_T is record
Count : Count_T;
end record;
type T is access Obj_T ;
procedure Create (S : in out T) is
begin
... |
with System.Formatting;
with System.Long_Long_Integer_Types;
package body System.Wid_LLI is
use type Long_Long_Integer_Types.Long_Long_Unsigned;
subtype Word_Unsigned is Long_Long_Integer_Types.Word_Unsigned;
subtype Long_Long_Unsigned is Long_Long_Integer_Types.Long_Long_Unsigned;
-- implementation
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
... |
------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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... |
with Ada.Numerics.Discrete_Random;
package Tree_Naive_Pointers is
type Node is private;
type NodePtr is access Node;
type Tree is private;
procedure initialize;
function hasValue(t: in out Tree; x: Integer) return Boolean;
procedure insert(t: in out Tree; x: Integer);
procedure erase(t: in out Tree; x: Integer)... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with System;
-- =============================================================================
-- Package AVR.WATCHDOG
--
-- Implements watchdog mechanisms for the MCU micro-controller.
-- =============================================================================
package AVR.WATCHDOG is
type Watchdog_Timer_Contr... |
package Private_Type_Definition is
type Type_1 is private;
type Type_2 is tagged private;
type Type_3 is abstract tagged limited private;
type Parent_Type_1 is tagged record
Component_1 : Integer;
end record;
type Type_4 is new Parent_Type_1 with private;
private
type Type_1 is new Integer;... |
with kv.avm.Control;
with kv.avm.Executables;
with kv.avm.Actor_References;
package kv.avm.Executable_Lists is
type Cursor_Type is new Natural;
subtype Index_Type is Cursor_Type range 1 .. Cursor_Type'LAST;
type Executable_Handle_Type is tagged private;
type Executable_Handle_Access is access Executable... |
package AOC.AOC_2019.Day08 is
type Day_08 is new Day.Day with null record;
overriding procedure Init (D : in out Day_08; Root : String);
overriding function Part_1 (D : Day_08) return String;
overriding function Part_2 (D : Day_08) return String;
end AOC.AOC_2019.Day08;
|
pragma Ada_2012;
with Interfaces; use Interfaces;
package body BitOperations.Shift with SPARK_Mode => Off is
-----------------
-- Logic_Right --
-----------------
function Logic_Right (Value : Modular; Amount : Natural) return Modular is
(case Modular'Size is
when 1 .. 8 => Modular (Shi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.