content stringlengths 23 1.05M |
|---|
with
ada.Numerics.generic_elementary_Functions;
package body cached_Trigonometry
is
Sin_Cache : array (0 .. slot_Count - 1) of Float_Type;
Cos_Cache : array (0 .. slot_Count - 1) of Float_Type;
Pi_x_2 : constant := ada.Numerics.Pi * 2.0;
last_slot_Index : constant Floa... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with System.Native_IO;
package body Ada.Streams.Stream_IO is
use type System.Native_IO.File_Mode;
procedure Create (
File : in out File_Type;
Mode : File_Mode := Out_File;
Name : String := "";
Form : String)
is
NC_File : Naked_Stream_IO.Non_Controlled_File_Type
renames C... |
with Ada.Unchecked_Conversion;
with System.Storage_Barriers;
package body System.Interrupt_Handlers is
type Node;
type Node_Access is access Node;
pragma Atomic (Node_Access);
type Node is record
Next : aliased Node_Access;
Code_Address : Address;
Is_Static : Boolean;
pragma Atomic ... |
package body J_String_Pkg is
function Create(Str : String) return J_String is
S : J_String(Str'length);
begin
S.value := Str;
return S;
end Create;
function Value_Of(S : J_String) return String is
Str : String(1 .. S.size);
begin
Str := S.value;
return Str;
end Value_Of;
functio... |
-- Copyright 2017-2019 Simon Symeonidis (psyomn)
--
-- 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 applicab... |
pragma License (Unrestricted);
package GNAT.Regpat is
pragma Preelaborate;
-- Constants
Expression_Error : exception;
type Regexp_Bit is (
Case_Insensitive_Bit,
Single_Line_Bit,
Multiple_Lines_Bit);
-- representation
type Regexp_Flags is array (Regexp_Bit) of Boolean;
pra... |
package body System.Img_Enum_New is
procedure Image_Enumeration_8 (
Pos : Natural;
S : in out String;
P : out Natural;
Names : String;
Indexes : Address)
is
type Index_Type is mod 2 ** 8;
type Index_Array_Type is array (0 .. Pos + 1) of Index_Type;
Indexes_All : In... |
with arbre_foret;
with Ada.Text_IO ; use Ada.Text_IO;
procedure test_arbre_foret is
package arbre_foret_100 is
new arbre_foret ( Capacite => 100 );
use arbre_foret_100 ;
Arbre : T_Abr_Foret;
procedure Construire_Arbre_Foret ( Abr : out T_Abr_Foret ) is
begin
initialiser ( Abr );
Pragma Ass... |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure aaa_09chars is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Strea... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
private with GL.Low_Level;
-- Fixed function pipeline. Deprecated in OpenGL 3.0.
package GL.Fixed is
pragma Preelaborate;
use GL.Types;
subtype Vertex_Length is Positive rang... |
-- Ada95 version
-- Allocation of arrays on the heap
with Ada.Text_IO; use Ada.Text_IO;
with Unchecked_Deallocation;
procedure Conway is
package Real_io is new Float_IO (Float);
Maxrange : constant := 2 ** 20;
type Sequence is array (Positive range 1 .. Maxrange) of Positive;
type Sequence_Ptr is acces... |
with Ada.Text_IO;
with Ada.Calendar;
with Ada.Real_Time;
with Ada.Integer_Text_IO;
package Json is
procedure AppendFilm (title, year, score, imdb : String);
procedure Init;
procedure Close;
end Json;
|
with Ada.Unchecked_Conversion, System;
package body GLU is
type loc_DoublePtr is new GL.doublePtr;
pragma No_Strict_Aliasing (Matrix_Double_Ptr);
pragma No_Strict_Aliasing (Viewport_Ptr);
pragma No_Strict_Aliasing (loc_DoublePtr);
-- recommended by GNAT 2005
procedure Get (pname : GL.Paramet... |
-----------------------------------------------------------------------
-- awa-tags -- Tags management
-- Copyright (C) 2013, 2018 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 c... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.IPCC is
pragma Preelaborate;
---------------
-- Registers --
---------------
type C1CR_Register is record... |
package ANSI with Pure is
Reset_All : constant String;
-- Resets the device to its original state. This may include (if
-- applicable): reset graphic rendition, clear tabulation stops, reset
-- to default font, and more.
type States is (Off, On);
function Shorten (Sequence : String) return Strin... |
package body impact.d3.collision.point_Collector
is
overriding procedure addContactPoint (Self : in out Item; normalOnBInWorld : in math.Vector_3;
pointInWorld : in math.Vector_3;
depth : in ma... |
with System.Formatting.Float;
package body System.Fore is
function Fore (Lo, Hi : Long_Long_Float) return Natural is
begin
return Formatting.Float.Fore_Digits_Width (Lo, Hi) + 1; -- including sign
end Fore;
end System.Fore;
|
-- Time-stamp: <23 oct 2012 10:40 queinnec@enseeiht.fr>
with Ada.Text_IO;
with Ada.Command_Line;
with Ada.Exceptions;
use Ada;
with Gdk.Threads;
with Gtk.Main;
with LR.Affic;
with LR.Tasks;
with LR.Simu;
with LR.Synchro;
procedure LR.Main is
Nb_Lecteurs : Natural;
Nb_Redacteurs : Natural;
procedure Start... |
-- $Id: parser.ads,v 1.0 1994/09/13 12:55:32 grosch rel $
$- -- IMPORT section is inserted here
$@ package @ is
$E -- EXPORT section is inserted here
-- named constants for start symbols
$I -- start symbol constants are inserted here
-- named constants for nonterminals
$U -- nonterminal constants are ins... |
-- 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... |
-- Copyright (c) 2012, mulander <netprobe@gmail.com>
-- All rights reserved.
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
with Terminal_Interface.Curses;
package body Crawler_Interface is
overriding procedure Initialize (This : in out Screen)
is
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Text_IO; use Text_IO;
procedure Hello is
begin
Put_Line("Hello!");
end Hello;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- { dg-do run }
procedure Access_Test is
type T1 is tagged null record;
procedure Proc_1 (P : access T1'Class) is
type Ref is access T1'Class;
X : Ref := new T1'Class'(P.all); -- Should always work (no exception)
begin
null;
end;
procedure Proc_2 is
type T2 is new T1 with ... |
-----------------------------------------------------------------------
-- Facelet Tests - Unit tests for ASF.Views.Facelet
-- Copyright (C) 2009, 2010, 2011, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ... |
with Extraction.Utilities;
private package Extraction.Node_Edge_Types is
-- Node names.
function Get_Node_Name
(File : VFS.Virtual_File; Directory_Prefix : VFS.Virtual_File)
return String;
function Get_Node_Name
(Project : GPR.Project_Type; Directory_Prefix : VFS.Virtual_File)
return... |
-- package Tridiagonal_LU
--
-- The package implements Crout's method for LU decomposition of
-- tri-diagonal matrices. Matrix A is input in the form of three
-- diagonals: the central diagonal of A, indexed by 0, and the
-- two side diagonals indexed by -1 and 1.
--
-- The LU form of A can then be used to solve simu... |
-- { dg-do run }
with System;
procedure Alignment8 is
type R is record
I : Integer;
F : Long_Long_Integer;
end record;
for R'Alignment use 8;
procedure Q (A : System.Address) is
F : Long_Long_Integer;
for F'Address use A;
begin
F := 0;
end;
V : R;
begin
Q (V.F'Address);
end;
|
package Aggr3_Pkg is
type Root is abstract tagged null record;
type T is new Root with null record;
My_T : T;
end Aggr3_Pkg;
|
-- { dg-do run }
procedure mutable1 is
type Object (Valid : Boolean := False) is record
case Valid is
when True => Stamp : Natural;
when False => null;
end case;
end record;
function Dummy_Object (Should_Be_There : Boolean) Return Object is
begin
if... |
with ada.Finalization;
use ada;
package Pulsada is
type Sampling_Frequency is range 0 .. 1_000_000;
type Sample_Type is mod 2 ** 16
with Size => 16;
Max_Channel : constant := 32;
type Channel_Index is range 1 .. Max_Channel;
type Frame is array (Channel_Index range <>) of Sample_Type;
type... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure SumDiagonal is
type Index is new Integer;
type Elem is new Integer;
type Matrix is array (Index range <>, Index range <>) of Elem;
procedure Print ( M: in Matrix ) is
begin
for I in M'Range(1) loop
for J in M'Range(2) loop
... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2021, AdaCore --
-- --
-- ... |
--
-- Copyright (C) 2013 Reto Buerki <reet@codelabs.ch>
-- Copyright (C) 2013 Adrian-Ken Rueegsegger <ken@codelabs.ch>
-- 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. Redistrib... |
-- 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... |
-- Abstract :
--
-- Support Emacs Ada mode and gpr-query minor mode queries about
-- GNAT projects and cross reference data
--
-- requires gnatcoll 1.7w 20140330, gnat 7.2.1
--
-- Copyright (C) 2014-2016 Free Software Foundation All Rights Reserved.
--
-- This program is free software; you can redistribute it and... |
-- Abstract :
--
-- Common utilities for LR parser table generators.
--
-- 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 Free
-- Software Foundation; e... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
with IntList, Ada.Text_IO;
use Ada.Text_IO;
procedure Main is
List : IntList.T;
begin
for I in 1 .. 20 loop
IntList.Insert( List, I );
end loop;
for I in 1 .. 20 loop
if ( I mod 3 = 0 ) then
IntList.Remove( List, I );
end if;
end loop;
IntList.Print( List );
Put_Line... |
with System.Address_To_Constant_Access_Conversions;
with C.mach_o.dyld;
with C.mach_o.loader;
package body System.Storage_Map is
pragma Suppress (All_Checks);
package mach_header_const_ptr_Conv is
new Address_To_Constant_Access_Conversions (
C.mach_o.loader.struct_mach_header,
C.mach_o.lo... |
with WORD_SUPPORT_PACKAGE; use WORD_SUPPORT_PACKAGE; -- for STEM_IO
with STRINGS_PACKAGE; use STRINGS_PACKAGE;
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES;
with PREFACE;
with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE;
with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE;
with ADDONS_PACKAGE; use ADDONS_PACKAGE;
... |
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by John Self of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and t... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Case_Stub; use Apsepp.Test_Node_Class.Case_Stub;
use Apsepp.Test_Node_Class;
package Apsepp.Abstract_Test_Case is
type Test_Routine_Array
is array (Test_Routine_Index range ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Gnat.Heap_Sort_G;
procedure Custom_Compare is
type StringArrayType is array (Natural range <>) of Unbounded_String;
Strings : StringArrayType := (Null_Unbounded_String,
To_Unbounded_S... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Calendar; use Ada.Calendar;
procedure Mesure_Temps is
N: Integer; -- un entier lu au clavier
Debut: Time; -- heure de début de l'opération
Fin: Time; -- heure de fin de l'op... |
declare
I : Integer := 1024;
begin
while I > 0 loop
Put_Line(Integer'Image(I));
I := I / 2;
end loop;
end;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_19.Main is
begin
Put_Line ("Day-19");
end Adventofcode.Day_19.Main;
|
pragma Style_Checks (Off);
pragma Warnings (Off);
-------------------------------------------------------------------------
-- GLOBE_3D.Collision_detection
--
-- Copyright (c) Gautier de Montmollin 1999 .. 2008
-- SWITZERLAND
--
-- Permission is hereby granted, free of charge, to any person obtainin... |
-- { dg-do compile }
package body Discr29 is
procedure Proc (R : out Rec3) is
begin
R := (False, Tmp);
end;
end Discr29;
|
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with CommonText;
with Ada.Characters.Handling;
with Ada.Unchecked_Conversion;
package body AdaBase.Connection.Base.SQLite is
package CT renames CommonText;
package ACH renames Ada.Characters.Handling;
... |
pragma Warnings (off);
with gl_h;
with glu_h;
with AdaGL;
procedure compile is
begin
null;
end compile;
|
procedure Async_Transfer_Select is
begin
select
delay 5.0;
null;
then abort
null;
end select;
null;
end Async_Transfer_Select;
|
with VisitablePackage, EnvironmentPackage, VisitFailurePackage;
use VisitablePackage, EnvironmentPackage, VisitFailurePackage;
package body AllSeqStrategy is
----------------------------------------------------------------------------
-- Object implementation
-------------------------------------------------------... |
--
-- Copyright (C) 2016-2017 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.
--
-- ... |
package lace.Text.all_Tokens
is
default_Max : constant := 4 * 1024;
----------------------
-- Character Delimiter
--
function Tokens (Self : in Item; Delimiter : in Character := ' ';
Trim : in Boolean := False;
max_T... |
------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package Tipos_Tarea is
type Id is new Integer;
task type Tarea_Repetitiva(IdTarea : Id);
--type T1 is access Tarea_Repetitiva;
end Tipos_Tarea;
|
with Ada.Finalization;
--
-- The model for a "readable sequence" is a sequential data buffer where
-- new data can be only appended and data can be read sequentially,
-- although the "cursor" to the current entry can be moved (mainly
-- by saving the current position and restoring it)
--
generic
type Element_T... |
------------------------------------------------------------------------------
-- --
-- Common UUID Handling Package --
-- - RFC 4122 Implementation - --
-- ... |
with
physics.Joint,
lace.Any;
limited
with
gel.Sprite;
package gel.Joint
--
-- Allows sprites to be connected via a joint.
-- A joint constrains the motion of the sprites which it connects.
--
is
type Item is abstract new lace.Any.limited_item with private;
type View is access all Item'Class;... |
-- SipHash.Entropy
-- A child package that attempts to set the key from an entropy source on the
-- system.
-- This implementation loads bytes from the getrandom() function on Linux. This
-- is easier and more reliable than opening the /dev/urandom file.
-- Copyright (c) 2016, James Humphry - see LICENSE file for deta... |
-----------------------------------------------------------------------
-- components-root -- ASF Root View Component
-- Copyright (C) 2010, 2011, 2012, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Interrupts.Names;
package Torrent.Shutdown is
pragma Unreserve_All_Interrupts;
protected Signal is
entry Wait_... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Afficher la longueur d'un série dont les valeurs sont lues au clavier.
-- La série se termine par la valeur nulle.
procedure Longueur_Serie is
Valeur: Integer; -- Une valeur de la série
Longueur: Integer; -- Longueur ... |
-----------------------------------------------------------------------
-- util-streams-buffered -- Buffered streams utilities
-- Copyright (C) 2010, 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Vers... |
-----------------------------------------------------------------------
-- AWA.Workspaces.Models -- AWA.Workspaces.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://... |
with AVR;
with AVR.USART;
package body Test is
procedure Handle_Interrupt_USART1_RX is
Curr_Buffer : AVR.Byte_Type;
begin
Curr_Buffer := AVR.USART.Reg_USART1.UDR;
AVR.USART.Reg_USART1.UDR := Curr_Buffer;
end Handle_Interrupt_USART1_RX;
end Test;
|
-- Multithreaded Hello World server
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with ZMQ;
procedure MTServer is
use type GNAT.Formatted_String.Formatted_String;
type Context_Access is access all ZMQ.Context_Type'Class;
task type Worker_Routine_Type is
entry Start (Context_... |
-----------------------------------------------------------------------
-- ado-drivers-tests -- Unit tests for database drivers
-- Copyright (C) 2014, 2015, 2016, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
-- BSD 3-Clause License
--
-- Copyright (c) 2017, Maxim Reznik
-- 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 noti... |
--
-- 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.Text_IO;
with Setup;
with GAWS_L... |
--
-- Copyright 2021 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
package body Edc_Client is
--------------------------------------------------------------------------
-- Keeps the status about the initialization
-----------------------------------------------------------------------... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package body Trains with
SPARK_Mode
is
procedure Update_Track_Signal (Track : Track_Id) with
Global => (Input => (Trains, Cur_Num_Trains),
In_Out => Track_Signals),
Pre => Track_Signals (Track) = Orange,
Post => (if (for some T in Train_Id range 1 .. Cur_Num_Trains =>
... |
package body Ada.Strings.Generic_Bounded is
type String_Access is access all String_Type;
function Length (Source : Bounded_String) return Natural is
begin
return Source.Length;
end Length;
function To_String (Source : Bounded_String) return String_Type is
begin
return Source.Element (1... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: CRC-8
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description: Checksum according to fletcher's algorithm
with HIL;
generic
type Index_Type is (<>);
type Elem... |
package Protected_Type_Declaration is
protected type T is
entry Seize;
end T;
end Protected_Type_Declaration;
|
-----------------------------------------------------------------------
-- helios-monitor -- Helios monitor
-- 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 co... |
with POSIX.Unsafe_Process_Primitives;
procedure Execute_A_System_Command is
Arguments : POSIX.POSIX_String_List;
begin
POSIX.Append (Arguments, "ls");
POSIX.Unsafe_Process_Primitives.Exec_Search ("ls", Arguments);
end Execute_A_System_Command;
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with System.Storage_Elements;
with GNAT.Sockets;
package TCP_Servers is
type TCP_Coroutine is access procedure (Socket : GNAT.So... |
with System.Img_Char;
package body System.Wid_Char is
function Width_Character (Lo, Hi : Character) return Natural is
begin
if Lo > Hi then
return 0;
elsif Hi >= Character'Val (16#80#) then
return 6; -- "Hex_XX"
elsif Hi >= ' ' then -- including 7F
return 3; -- "'X'" ... |
with Ada.Unchecked_Conversion;
with System.Unwind.Occurrences;
with System.UTF_Conversions.From_8_To_16;
with System.UTF_Conversions.From_8_To_32;
package body Ada.Exceptions is
pragma Suppress (All_Checks);
use type System.Unwind.Exception_Data_Access;
-- for Exception_Information
type Information_Conte... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions;
-- Equitable
package body LR.Synchro.Equitable is
function Nom_Strategie return String is
begin
return "Stratègie equitable";
end Nom_Strategie;
task LectRedTask is
entry Demander_Lecture;
entry Demander_Ecriture;
entry... |
-- Display_Ascon_Traces
-- A utility to display traces of the encryption process for the test vectors
-- in the demo of the reference implementations
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
with Ascon;
generic
with package Ascon_Package is new Ascon(<>);
procedure Display_Ascon_Trac... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Streams;
package Zstandard.Functions.Streaming_Compression is
package STR renames Ada.Streams;
type Compressor is tagged private;
-- This is the initialization procedure.
-- The output st... |
with
interfaces.C,
System;
package Freetype_C
--
-- Provides core types for the Freetype C library.
--
is
use Interfaces;
-- FT_UShort
--
subtype FT_UShort is C.unsigned_short;
type FT_UShort_array is array (C.Size_t range <>) of aliased FT_UShort;
-- FT_Int
--
subtype F... |
with Pck; use Pck;
procedure P is
Small : Data_Small;
Large : Data_Large;
begin
Small := Create_Small;
Large := Create_Large;
Small (1) := Large (1);
end P;
|
-- 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.
... |
function noargs return Integer;
function twoargs (a, b : Integer) return Integer;
-- varargs do not exist
function optionalargs (a, b : Integer := 0) return Integer;
-- all parameters are always named, only calling by name differs
procedure dostuff (a : Integer);
|
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO;
procedure Ejercicio3 is
type Identificador is new Integer;
type Rep is new Integer;
task type Tarea_Original(IdTarea : Identificador; Rep : Integer);
task body Tarea_Original is
begin
for I in 1..Rep loop
Put_Line("Soy la tare... |
-- Abstract :
--
-- Root package of an implementation of an LR (Left-to-right scanning
-- Rightmost-deriving) parser. Includes operations for building the
-- parse table at runtime. See the child packages .Parse and
-- .Parse_No_Recover for running the parser.
--
-- References :
--
-- See wisitoken.ads
--
-- Co... |
with Interfaces; use Interfaces;
package Endianness.Interfaces with
Pure,
Preelaborate,
SPARK_Mode => On
is
-- @summary
-- Instance of Endianness' functions for Interfaces' integer types
function Swap_Endian is new Endianness.Swap_Endian (Integer_8);
function Swap_Endian is new Endianness.Swap_... |
package body AMPC is
use type C.int;
function Parse (Input : in String;
Parser : in Parsers_Ptr;
Result : in Results_Ptr;
Filename : in String := "<stdin>") return Boolean is
function Parse (Filename : in C.Strings.chars_ptr;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.