content stringlengths 23 1.05M |
|---|
with Ada.Characters.Conversions;
--with Ada.Command_Line;
--with Ada.Containers.Hashed_Maps;
--with Ada.Containers.Ordered_Sets;
--with Ada.Containers.Vectors;
--with Ada.Strings.Wide_Fixed;
--with Ada.Strings.Wide_Unbounded.Wide_Hash;
--with Ada.Unchecked_Conversion;
with Ada.Wide_Text_IO;
with Ada.Wide_Wide_Text_IO;
... |
with Ada.Containers.Indefinite_Vectors;
package String_Vectors is new Ada.Containers.Indefinite_Vectors
(Index_Type => Positive, Element_Type => String);
|
-----------------------------------------------------------------------
-- util-encoders-sha256 -- Compute SHA-256 hash
-- Copyright (C) 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
package body Accumulator is
-- The accumulator lives through three states. It is in Virgin_State
-- before any use of The_Function. It changes to Integer_State or
-- Float_State, according to the input type used. The accumulation is
-- memorized in variable I or F, according to the state. Float_State,
-- once rea... |
-- 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.USB_FS is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype USB_EP0R_EA_Field is STM32_... |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="... |
with
freeType_C.FT_Face,
freeType_C.FT_Size;
package freetype.face_Size
--
-- The face_Size class provides an abstraction layer for the Freetype Size type.
--
is
type Item is tagged private;
type View is access all Item'Class;
---------
--- Forge
--
procedure destruct (Self : in out Ite... |
with Ada.Numerics.Discrete_Random;
with Ada.Containers.Vectors;
with Ada.Finalization;
use Ada.Containers;
use Ada.Finalization;
with Memory; use Memory;
with Util; use Util;
-- Base package for benchmarks.
package Benchmark is
-- An exception that is raised when an invalid argument is
-- provided to a ... |
pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from dSFMT (dSFMT-common.h, dSFMT.c)
private generic
package Ada.Numerics.dSFMT.Generating is
-- SSE2 version
pragma Preelaborate;
procedure do_recursion (
r : aliased out w128_t;
a, b : aliased w128_t;
lung : aliased in out... |
package body ACO.Drivers.Dummy is
overriding
procedure Receive_Message_Blocking
(This : in out Dummy_Driver;
Msg : out ACO.Messages.Message)
is
begin
This.Get_First_Sent (Msg);
end Receive_Message_Blocking;
overriding
procedure Send_Message
(This : in out Dummy_Driver;
... |
package body Improved_Trie is
function Find_Move_Immediate_Child (Parent : in out Cursor; Element : Element_Type) return Boolean is
Tree_Leaf : Trie.Cursor;
begin
Tree_Leaf := Trie.First_Child(Parent);
while Trie.Has_Element(Tree_Leaf) loop
if Trie.Element(Tree_Leaf) = Element then
Parent:=Tree_Leaf;
... |
separate (Ayacc)
procedure Print_Statistics is
use Text_IO, Parse_Table, Rule_Table, Symbol_Table;
begin
if Options.Summary then
Put_Line(Rule'Image(Last_Rule - First_Rule + 1) & " Productions");
Put_Line(Grammar_Symbol'Image
(Last_Symbol(Nonterminal) - First_Symbol(Nonterminal) + 1) &
" Nontermin... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Server_Test_Proc;
with Coroutines.Timeouts;
with TCP_Servers;
procedure Server_Test is
begin
Coroutines.Initialize;
Coro... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
with NCurses; use NCurses;
with Board; use Board;
with Ada.exceptions;
with Ada.Text_IO;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with GNAT.Command_Line; use GNAT.Command_Line;
with GNAT.Sockets; use GNAT.Sockets;
procedure Chess is
-- pragma Suppress(All_Checks);
type Game_Options is (None, Network, Local);
... |
with Cairo.PDF;
with Cairo.Surface;
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.OS_Lib;
with CUPS.CUPS;
procedure Cups.Tests.Main is
Tmpfilename : constant String := "MUPP.ps";
WIDTH : constant := 595.0;
HEIGHT : constant := 842.0;
Surface : Cairo.Cairo_Surface := Cairo.PDF.Create
... |
with ARM_Input;
package ARM_String is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package contains the definition of reading input from a string.
--
-- ---------------------------------------
-- Copyright 2000, 2011
-- AXE Consultants. All rights reserved.
... |
-- Standard Ada library specification
-- 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.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with c_math_c.Vector_3;
with interfaces.C;
package box2d_c.b2d_Contact is
-- Item
--
type Item is
record
Object_A : access box2d_c.Object;
Object_B : access box2d_c.Object;
Site : aliased c_math_c.Vector_3.... |
with
openGL.Font;
package openGL.Model.text
--
-- Provides an abstract model for rendering text.
--
is
type Item is abstract new Model.item with -- TODO: Make private.
record
null;
end record;
type View is access all Item'Class;
procedure Text_is (Self : in out Item; Now :... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin put('''); end;
|
-- see OpenUxAS\src\Communications\ZeroMqSenderBase.h
with UxAS.Comms.Transport.ZeroMQ_Socket_Configurations; use UxAS.Comms.Transport.ZeroMQ_Socket_Configurations;
with ZMQ.Sockets;
package UxAS.Comms.Transport.ZeroMQ_Sender is
type ZeroMq_Sender_Base is new Transport_Base with private;
-- void
-- init... |
with Ada.Text_IO, Ada.Integer_Text_IO;
package body Knights_Tour is
type Pair is array(1..2) of Integer;
type Pair_Array is array (Positive range <>) of Pair;
Pairs: constant Pair_Array (1..8)
:= ((-2,1),(-1,2),(1,2),(2,1),(2,-1),(1,-2),(-1,-2),(-2,-1));
-- places for the night to go (relative to t... |
-- 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... |
with Ada.Text_IO;
with Ada.Command_Line;
procedure Factors is
Number : Positive;
Test_Nr : Positive := 1;
begin
if Ada.Command_Line.Argument_Count /= 1 then
Ada.Text_IO.Put (Ada.Text_IO.Standard_Error, "Missing argument!");
Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
return;... |
pragma License (Unrestricted);
with Ada.Numerics.Complex_Types;
with Ada.Text_IO.Complex_IO;
package Ada.Complex_Text_IO is new Text_IO.Complex_IO (Numerics.Complex_Types);
|
-- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licen... |
with Ada.Containers.Ordered_Sets;
package kv.avm.Actor_References.Sets is new Ada.Containers.Ordered_Sets(Element_Type => Actor_Reference_Type);
|
-- --
-- package Tables.Names Copyright (c) Dmitry A. Kazakov --
-- Interface Luebeck --
-- Spring, 2003 --
-- ... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Doubly_Linked_Lists;
with League.Strings;
with Incr.Nodes.Tokens;
with Incr.Parsers.Incremental;
with Incr.Versi... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package body IRC
is
Client : Socket_Type;
Channel : Stream_Access;
Current_Line : Unbounded_String;
procedure Connect_To (Server : Sock_Addr_Type)
is
begin
Create_Socket (Client);
Connect_Socket (Client, Server);
Channel := Stream (Client);
end Connect_To;
function Get_Lin... |
-- C46014A.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... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
package GL.Enums.Getter is
pragma Preelaborate;
type Parameter is
(Current_Color,
Current_Index,
Current_Normal,
Current_Texture_Coords,
Current_Raste... |
package body afrl.impact.ImpactLineSearchTask.SPARK_Boundary with SPARK_Mode => Off is
function Get_LineID (X : ImpactLineSearchTask) return Int64 renames
getLineID;
end afrl.impact.ImpactLineSearchTask.SPARK_Boundary;
|
with Interfaces.C.Extensions;
with Interfaces.C.Strings;
with Interfaces.C.Pointers;
with a_nodes_h;
package adapter_wrapper_h is
function adapter_wrapper
(target_file_in : in Interfaces.C.Strings.chars_ptr;
gnat_home : in Interfaces.C.Strings.chars_ptr;
AsisArgs ... |
private
with
openGL.Buffer.indices;
package openGL.Primitive.indexed
--
-- Provides a class for indexed openGL primitives.
--
is
type Item is limited new Primitive.item with private;
subtype Class is Item'Class;
type View is access all Item'class;
type Views is array (Index_t range <>) of... |
------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- UTF-8 Stream Decoder --
-- ... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Directories;
with Ada.Streams.Stream_IO;
with Web.Producers;
with Web.RSS;
with Vampire.Configurations;
with Vampire.Forms.Full;
with Vampire.R3.Log_Index_Page;
with Vampire.R3.Village_Page;
with Vampire.Villages.Load;
package body Vampire.Log is
use Tabula.Vil... |
-- { dg-do compile }
with Varsize3_Pkg1; use Varsize3_Pkg1;
procedure Varsize3_3 is
Filter : Object;
begin
Filter := True;
end;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- 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 Crew.Mob_Record_Test_Data.Mob_Record_Tests is
type Test_Mob_Record is abstract new GNATtest_Generated.GNATtest_Standard
... |
-- C38002B.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... |
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from M2Sxxx.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- General-purpose IO peripheral
package Interfaces.SF2.GPIO is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Register... |
pragma Assertion_Policy (Check);
with Ada.Strings.Fixed;
package body GraphML_Writers is
package S_F renames Ada.Strings.Fixed;
use type S_U.Unbounded_String;
function "+" (Str : String) return S_U.Unbounded_String is
(S_U.To_Unbounded_String (Str));
NODE_TAG : constant String := "node";
EDGE_... |
with
float_Math.Geometry.d3.Modeller.Forge,
ada.text_IO;
procedure launch_basic_geometry_Demo
--
-- A simple demonstration of the geometry packages.
--
is
package Math renames float_Math;
use Math,
math.Geometry,
math.Geometry.d3.Modeller;
procedure log (Message : in String)
... |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless req... |
package body Ada.Strings.Maps.Naked is
function To_Set return Character_Set is
begin
return Create (Set_Data_Access (Source));
end To_Set;
function To_Mapping return Character_Mapping is
begin
return Create (Map_Data_Access (Source));
end To_Mapping;
end Ada.Strings.Maps.Naked;
|
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Vectors;
with Yaml.Dom.Node;
with Yaml.Dom.Mapping_Data;
with Yaml.Dom.Sequence_Data;
with Yaml.Parser.Stream;
package body Yaml.Dom.Lo... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Upg4 is
type Ints is
array(1..10) of Integer;
type Arrs is
array(1..20) of Ints;
procedure Extract(Data: out Arrs) is
File : File_Type;
begin
Open(File, In_File, "NUMMER.TXT");
f... |
with OpenAL.ALC_Thin;
with OpenAL.List;
with OpenAL.Types;
package OpenAL.Context is
--
-- Types
--
type Device_t is private;
type Context_t is private;
type Context_Attributes_t is private;
Invalid_Device : constant Device_t;
Invalid_Context : constant Context_t;
Null_Context : constant Con... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with box2d_c.Pointers;
package box2d_c.pointer_Pointers
is
-- Shape_Pointer_Pointer
--
type Shape_Pointer_Pointer is access all box2d_c.Pointers.Shape_Pointer;
-- Object_Pointer_Pointer
--
type Object_Pointer_Pointer is acces... |
with Ada.Unchecked_Conversion;
with System;
package body Crypto.SHA256 is
use type C.signed_int;
function Initial return Context is
begin
return Result : Context do
if C.openssl.sha.SHA256_Init (Result.SHA'Access) = 0 then
raise Use_Error;
end if;
end return;
end Initial;
procedure Update (
Con... |
with
XML,
ada.Strings.unbounded,
ada.Text_IO;
procedure launch_Tree
--
-- Loads an xml file, parses it into a tree and displays the tree.
--
is
the_Tree : xml.Element := xml.to_XML ("./box.dae");
Depth : Natural := 0;
procedure show_Element (the_Element : in xml.Element)
is
u... |
-- SipHash.Entropy
-- A child package that attempts to set the key from an entropy source on the
-- system. There are various different implementations of this that are selected
-- at compile-time.
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
generic
package SipHash.Entropy
with SPARK_Mode => O... |
-- Generated at 2015-03-03 23:00:05 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-tag_pages-maps.sx
function Natools.Static_Maps.Web.Tag_Pages.T
return Boolean;
pragma Pure (Natools.Static_Maps.Web.Tag_Pages.T);
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A020 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
N_Str : array (Integer range 1 .. 500) of Character :=
('1', others => '0');
Products_Array : array (Integer range 1 .... |
with Ada.Streams;
with Ada.Unchecked_Conversion;
package Tkmrpc.Request.Convert is
subtype Stream_Range is Ada.Streams.Stream_Element_Offset range
1 .. Request_Size;
subtype Stream_Type is Ada.Streams.Stream_Element_Array (Stream_Range);
function To_Stream is new Ada.Unchecked_Conversion (
Sourc... |
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Sign; use SPARKNaCl.Sign;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Conversion;
with Interfaces; use Interfaces;
with GNAT.SHA256; use GNAT.SHA256;
with GNAT.IO_Aux;
procedure KeyGen
is
PK1 : ... |
with Ada.Characters.Latin_1;
with Ada.Command_Line;
with Ada.Directories;
with Ada.Environment_Variables;
with Ada.Streams.Stream_IO;
with Ada.Text_IO;
with XML.Streams;
procedure test_xml is
Verbose : Boolean := False;
procedure Put (Item : in String) is
begin
if Verbose then
Ada.Text_IO.Put (Item);
end if;
... |
-- 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.USBFSH is
pragma Preelaborate;
... |
with GNAT.Strings; use GNAT.Strings;
package Loop_Optimization9 is
type File_Descriptor is new Integer;
procedure Create_Temp_File_Internal
(FD : out File_Descriptor;
Name : out String_Access);
subtype Argument_List is String_List;
subtype Argument_List_Access is String_List_Access;
fu... |
--
-- ABench2020 Benchmark Suite
--
-- Binary Search Tree Program
--
-- Licensed under the MIT License. See LICENSE file in the ABench root
-- directory for license information.
--
-- Uncomment the line below to print the result.
-- with Ada.Text_IO; use Ada.Text_IO;
procedure Binary_Search_Tree is
type Vecto... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Discr32_Pkg is
type Enum is (One, Two, Three);
type R (D : Enum) is record
case D is
when One => B : Boolean;
when Two => I : Integer;
when Three => F : Float;
end case;
end record;
for R use record
D at 0 range 0 .. 1;
B at 1 range 0 .. 0;
I at 4 range 0 ... |
generic
-- User's instantiation enumeration type
type Enumerated is (<>);
package Formatter is
-- Purpose: Format variable numeric arguments
--
-- F Returns the CONTENTS variant record set to the appropriate type
-- to allow a common data type to be passed to either GET or P... |
-----------------------------------------------------------------------
-- util-beans -- Interface Definition with Getter and Setters
-- Copyright (C) 2009, 2010, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
with Ada.Unchecked_Conversion;
with Interfaces;
package body C.Ops is
function "and" (I1, I2: Char) return Char is
begin
return To_Signed(To_Unsigned(I1) and To_Unsigned(I2));
end "and";
function "and" (I1, I2: Short) return Short is
begin
return To_Signed(To_Unsigned(I1) and To_Unsigned(I2));... |
with Ada.Unchecked_Deallocation;
with HAL; use HAL;
with HAL.Filesystem; use HAL.Filesystem;
with Native.Filesystem;
with Virtual_File_System; use Virtual_File_System;
-- Helpers for Virtual_File_System testcases
package Helpers is
procedure Test (Status : Status_Kind);
-- Check that st... |
-- $Source: /home/CVSROOT/c2ada/c-ops.ads,v $
-- $Revision: 1.1.1.1 $ $Date: 1999/02/02 12:01:51 $
with Ada.Unchecked_Conversion;
package C.Ops is
subtype Uchar is C.Unsigned_Char;
subtype Ushort is C.Unsigned_Short;
subtype Uint is C.Unsigned_Int;
subtype Ulong is C.Unsigned_Long;
-- unche... |
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014 Vitalij Bondarenko <vibondare@gmail.com> --
-- --
----... |
-- Copyright 2017-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... |
-- Mail Baby API
-- This is an API defintion for accesssing the Mail.Baby mail service.
--
-- The version of the OpenAPI document: 1.0.0
-- Contact: detain@interserver.net
--
-- NOTE: This package is auto generated by OpenAPI-Generator 6.0.0-SNAPSHOT.
-- https://openapi-generator.tech
-- Do not edit the class ma... |
-----------------------------------------------------------------------
-- awa-counters-beans -- Counter bean definition
-- Copyright (C) 2015, 2016 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
with
Glib,
glib.Error,
gtk.Builder,
gtk.Handlers,
gtk.Text_Buffer,
gtk.Text_Iter,
gtk.Enums,
ada.Characters.latin_1;
package body aIDE.Editor.of_comment
is
use Gtk.Builder,
Gtk.Text_Buffer,
Gtk.Text_Iter,
Glib,
Glib.Error;
function on_comme... |
package STM32F4.PWM is
type Timer is (TIM2, TIM3, TIM4, TIM5);
type Timer_Config is record
Prescaler : Half_Word;
Period : Float;
end record;
type Channel is (CH1, CH2, CH3, CH4);
type Channel_State is (Enabled, Disabled);
-- Intput not supported yet
type PWM_Mode is (Output);
... |
-- C34018A.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.Text_IO; use Ada.Text_IO;
with Ada.Characters.Latin_1;
with Ada.Unchecked_Deallocation;
with Device; use Device;
with Memory.Container; use Memory.Container;
with Memory.Split; use Memory.Split;
with Memory.Transform; use Memory.Transform;
package body Memory is
next_id : Natural := 0;... |
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- ... |
with Support; use Support;
with Support.Clock; use Support.Clock;
with Support.CmdLine; use Support.CmdLine;
with Support.Strings; use Support.Strings;
with ADMBase.Data_IO; use AD... |
-- Copyright 2015 Steven Stewart-Gallus
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agr... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with pincon;
with utility;
package body IO is
type M_State is (Fwd, Rev, Stop);
procedure Control_Motor (S : in M_State) is
begin
case S is
when Fwd =>
-- Drive forward
pincon.Write (pincon.Pin_3, True);
pincon.Write (pincon.Pin_5, False);
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
--
-- Copyright (c) 2007-2009 Tero Koskinen <tero.koskinen@iki.fi>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS... |
package A_Stack with
SPARK_Mode
is
Stack_Size : constant := 100;
subtype Item is Integer range 0 .. 20;
subtype Stack_Pointer is Natural range 0 .. Stack_Size;
subtype Index is Stack_Pointer range 1 .. Stack_Size;
type Vector is array (Index) of Item;
Sp : Stack_Pointer := 0;
Vec : Vector ... |
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Types
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
-- Martin Becker (becker@rcs.ei.tum.de)
with Interfaces; use Interfaces;
with Generic_Types; use Generic_Types;
p... |
package body Ada.Containers.Linked_Lists is
procedure Reverse_Iterate (
Last : Node_Access;
Process : not null access procedure (Position : not null Node_Access))
is
Position : Node_Access := Last;
begin
while Position /= null loop
Process (Position);
Position := Prev... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2021, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- Generated by utildgen.c from system includes
with Interfaces.C;
package Util.Systems.Types is
subtype dev_t is Interfaces.C.unsigned;
subtype ino_t is Interfaces.C.unsigned_short;
subtype off_t is Long_Long_Integer;
subtype uid_t is Interfaces.C.unsigned_short;
subtype gid_t is Interfaces.C.... |
package P is
... -- Declarations placed here are publicly visible
private
... -- These declarations are visible only to the children of P
end P;
|
---------------------------------------------------------------------------
-- package body Golub_SVD, Singular Value 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 th... |
generic
type Signed_Int_Type is range <>;
package Fmt.Generic_Signed_Int_Argument is
function To_Argument (X : Signed_Int_Type) return Argument_Type'Class
with Inline;
function "&" (Args : Arguments; X : Signed_Int_Type) return Arguments
with Inline;
private
type Digit_Style is (DS_Lowercase, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.