content stringlengths 23 1.05M |
|---|
with Sort;
with Ada.Text_Io;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure Sort_Test is
type Days is (Mon, Tue, Wed, Thu, Fri, Sat, Sun);
type Sales is array(Days range <>) of Float;
procedure Sort_Days is new Sort(Float, Days, Sales);
procedure Print(Item : Sales) is
begin
for I in It... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Interpretations.Names;
package body Program.Complete_Contexts.Call_Statements is
--------------------
-- Call_Statement --
---------... |
with Generic_List;
procedure Int_List is
Number : Integer;
begin
for I in 1 .. 100000000 loop
Number := I;
end loop;
end Int_List;
|
package body agar.gui.widget.console is
package cbinds is
procedure set_padding
(console : console_access_t;
padding : c.int);
pragma import (c, set_padding, "AG_ConsoleSetPadding");
function message
(console : console_access_t;
text : cs.chars_ptr) return line_access_t;
... |
with RASCAL.OS; use RASCAL.OS;
package Controller_Help is
type TEL_ViewManual_Type is new Toolbox_UserEventListener(16#11#,-1,-1) with null record;
type TEL_ViewSection_Type is new Toolbox_UserEventListener(16#20#,-1,-1) with null record;
type TEL_ViewIHelp_Type is new Toolbo... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- akt-commands-get -- Get content from keystore
-- Copyright (C) 2019, 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 thi... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package stddef_h is
-- Copyright (C) 1989-2019 Free Software Foundation, Inc.
--This file is part of GCC.
--GCC is free software; you can redistribute it and/or modify
--it under the terms of the GNU General Public License as pu... |
--//////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held liabl... |
package Problem_69 is
-- Euler's Totient function, φ(n) [sometimes called the phi function], is used to determine the
-- number of numbers less than n which are relatively prime to n. For example, as 1, 2, 4, 5, 7,
-- and 8, are all less than nine and relatively prime to nine, φ(9)=6.
--
-- It can be se... |
with
ada.Text_IO;
package body openGL.frame_Counter
is
procedure increment (Self : in out Item)
is
use ada.Text_IO;
use type ada.Calendar.Time;
begin
if ada.Calendar.Clock >= Self.next_FPS_Time
then
put_Line ("FPS:" & Integer'Image (Self.frame_Count));
Se... |
with Ada.Long_Long_Integer_Text_IO;
with Ada.Text_IO;
with PrimeInstances;
package body Problem_10 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Long_Long_Integer_Text_IO;
procedure Solve is
package Integer_Primes renames PrimeInstances.Integer_Primes;
gen : Integer_Primes.Prime_Gener... |
------------------------------------------------------------------------------
-- --
-- WAVEFILES --
-- --
-- ... |
-- DECLS-DTDESC.ads
-- Declaracions de descripcio
with Decls.Dgenerals,
Decls.D_Taula_De_Noms;
use Decls.Dgenerals,
Decls.D_Taula_De_Noms;
package Decls.Dtdesc is
--pragma pure;
-- Representa tambit
Max_Nprof : constant Integer := 25;
type Nprof is new Integer
range -1 ... |
with STM32F4.SPI; use STM32F4.SPI;
with STM32F4.GPIO; use STM32F4.GPIO;
with Ada.Unchecked_Conversion;
with Fonts; use Fonts;
package body STM32F4.GYRO is
function As_Half_Word is new Ada.Unchecked_Conversion
(Source => Byte, Target => Half_Word);
L3GD20_SPI : SPI_Port renames SPI_5;
SCK_GPIO : GPIO_... |
------------------------------------------------------------------------------
-- --
-- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! --
-- --
-- ... |
with Ada.Calendar; use Ada.Calendar;
with Ada.Numerics; use Ada.Numerics;
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Integrator is
type Func is access function (T... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- 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
... |
-- Copyright (c) 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 required... |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "ARIN"
type = "api"
function start()
set_rate_limit(1)
end
function asn(ctx, addr, asn)
if addr == "" then
return
... |
with
Ada.Text_IO,
Ada.Command_Line,
Ada.Numerics.Elementary_Functions;
use
Ada.Text_IO,
Ada.Command_Line,
Ada.Numerics.Elementary_Functions;
procedure Fib is
function fib(n : integer) return integer is
begin
if n < 2 then
return n;
else
return fib(n-1) + fib(n-2);
end if;
end ... |
-- Description: Wrapper to use Base_Unit_Type with a-nuelfu
-- TODO: all the postconditions are unproven, because a-nuelfu
-- builds on the generic C math interface
-- however, instead of modifying the RTS, we add them here and
-- leave them unproven (hoping the RTS introduces contracts later on)
package Units.Num... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
--
-- ABench2020 Benchmark Suite
--
-- Sample Correlation Coefficient Calculation 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;
with Ada.Numerics.Eleme... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- Copyright 2015,2016 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 o... |
with Ada.Text_IO;
package TOML.File_IO is
-- Subprograms to load/save TOML files
use all type Ada.Text_IO.File_Mode;
function Load_File (Filename : String) return Read_Result;
-- Read Filename and parse its content as a TOML document
procedure Dump_To_File
(Value : TOML_Value; File : in out A... |
-- RUN: %llvmgcc -S %s
package Field_Order is
type Tagged_Type is abstract tagged null record;
type With_Discriminant (L : Positive) is new Tagged_Type with record
S : String (1 .. L);
end record;
end;
|
pragma Ada_2012;
-------------------------------
-- Protypo.API.Engine_Values --
-------------------------------
package body Protypo.API.Engine_Values is
function "mod" (X, Y : Integer_Value) return Integer_Value
is
begin
return Engine_Value'(Class => Int,
Int_Val => X.Int... |
with Ada.Text_IO; use Ada.Text_IO;
-- for access to Halt
with Support;
-- for parsing of the command line arguments
with Support.RegEx; use Support.RegEx;
with Support.CmdLine; use Support.CmdLine;
-- for setup of initial data
with BSSNBase; use BSSNBase;
with BSSNBase.In... |
-----------------------------------------------------------------------------
-- This file contains the body, please refer to specification (.ads file)
-----------------------------------------------------------------------------
with Interfaces;
with GLUT.Windows; use GLUT.Windows;
with Ada.Char... |
pragma License (Unrestricted);
-- implementation unit
package Ada.Containers.Binary_Trees.Arne_Andersson.Debug is
pragma Preelaborate;
function Root (Node : not null Node_Access) return not null Node_Access;
function Dump (
Container : Node_Access;
Marker : Node_Access;
Message : String :=... |
with System.Formatting.Literals;
with System.Long_Long_Integer_Types;
with System.Value_Errors;
package body System.Val_Int is
subtype Word_Integer is Long_Long_Integer_Types.Word_Integer;
-- implementation
function Value_Integer (Str : String) return Integer is
Last : Natural;
Result : Word_In... |
-----------------------------------------------------------------------
-- util-commands-parsers -- Support to parse command line options
-- Copyright (C) 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
with Prime_Numbers, Ada.Text_IO;
procedure Test_Kth_Prime is
package Integer_Numbers is new
Prime_Numbers (Natural, 0, 1, 2);
use Integer_Numbers;
Out_Length: constant Positive := 10; -- 10 k-th almost primes
N: Positive; -- the "current number" to be checked
begin
for K in 1 .. 5 loop
Ada... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package randfloat is --Generates a uniformly distributed random real
function next_float(x: in out integer) return float; -- between 0.0 <= next <= 1.0.
end randfloat; |
-----------------------------------------------------------------------
-- util-systems-os -- Unix system operations
-- Copyright (C) 2011, 2012, 2014, 2015, 2016, 2017, 2018, 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (t... |
--------------------------------------------------------------------------
-- package body Jacobi_Eigen, Jacobi iterative eigen-decomposition
-- Copyright (C) 2008-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, pr... |
-- C83051A.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... |
generic
package any_Math.any_Geometry.any_d3
--
-- Provides a namespace and core types for 3D geometry.
--
is
pragma Pure;
--------------
-- Core Types
--
subtype Site is Vector_3;
type Sites is array (Positive range <>) of Site;
type a_Model (Site_Count : Positive;
Tri... |
with Unchecked_Conversion;
package Debug10_Pkg is
type Node_Id is range 0 .. 99_999_999;
Empty : constant Node_Id := 0;
subtype Entity_Id is Node_Id;
type Union_Id is new Integer;
function My_Is_Entity_Name (N : Node_Id) return Boolean;
function My_Scalar_Range (Id : Entity_Id) return Node_Id;
... |
package Slice2 is
type R1 is record
Text : String (1 .. 30);
end record;
type R2 is record
Text : String (1 .. 8);
B : Boolean := True;
end record;
function F (I : R1) return R2;
end Slice2;
|
with Ada.Command_Line; use Ada.Command_Line;
with System.Multiprocessors; use System.Multiprocessors;
package Constant4_Pkg is
Max_CPUs : constant CPU := (if Argument_Count < 2 then Number_Of_CPUs
else CPU'Value (Argument (2)));
subtype Worker_Id is CPU range 1 .. Max_CPUs;... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
with Ada.Characters.Latin_1;
with Ada.Directories;
with Ada.Text_IO;
with Ada.Exceptions;
with Package_Manifests;
with File_Operations;
with Utilities;
package body Port_Specifi... |
with Poly; use Poly;
with Ada.Text_IO;
procedure Main is
Arr: Vector (0 .. 1) := (7, 4);
X: Integer;
begin
X := 2;
Ada.Text_IO.Put_Line ("Value of poly: " & Horner(X, Arr)'Image);
end Main;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
pragma Style_Checks (Off);
--
-- Copyright (c) 2009, 2012 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.
--
-- ... |
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
function Get_PPM (File : File_Type) return Image is
use Ada.Characters.Latin_1;
use Ada.Integer_Text_IO;
function Get_Line return String is... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32GD.Startup;
with STM32GD.GPIO;
package body STM32GD.Board is
procedure Init is
begin
CLOCKS.Init;
RCC_Periph.IOPENR.IOPAEN := 1;
RCC_Periph.IOPENR.IOPBEN := 1;
RCC_Periph.IOPENR.IOPCEN := 1;
RCC_Periph.... |
with System.Address_To_Named_Access_Conversions;
with System.Tasks;
package body System.Task_Primitives.Operations is
package Task_Id_Conv is
new Address_To_Named_Access_Conversions (
Tasks.Task_Record,
Tasks.Task_Id);
procedure Abort_Task (T : System.Tasking.Task_Id) is
begin
S... |
package body prefix1 is
Counter : Integer := 2;
Table : Arr := (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024);
function Func (Object : T) return Arr is
begin
return Table;
end;
end prefix1;
|
-- *************************************************************************************
--
-- 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 (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
private package Ada_Pretty.Statements is
type Assignment is new Node with private;
function New_Assignment
(Left : not n... |
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Scalar; use SPARKNaCl.Scalar;
procedure Scalarmult5
is
AliceSK : constant Bytes_32 :=
(16#77#, 16#07#, 16#6d#, 16#0a#, 16#73#, 16#18#, 16#a5#, 16#7d#,
16#3c#, 16#16#, 16#c1#, 16#72#, 16#51#, 16#b2#, 16#66#, 16... |
with System;
with HAL;
with HAL.Bitmap;
package PyGamer.Screen is
Width : constant := 160;
Height : constant := 128;
procedure Set_Address (X_Start, X_End, Y_Start, Y_End : HAL.UInt16);
procedure Start_Pixel_TX;
procedure End_Pixel_TX;
procedure Push_Pixels (Addr : System.Address; Len : Natural)... |
package body Ringbuffers is
procedure Write (Self : in out Ringbuffer; e : Item) is
begin
Self.Items (Self.Write_Index) := e;
Self.Write_Index := Self.Write_Index + 1;
if Self.Write_Index = Size then
Self.Write_Index := 1;
end if;
end Write;
function Read (Self : in out Ri... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
with STM32_SVD; use STM32_SVD;
package STM32GD.SysTick is
pragma Preelaborate;
type SysTick_Callback_Type is access procedure;
subtype CSR_ENABLE_Field is STM32_SVD.Bit;
subtype CSR_TICKINT_Field is STM32... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada
.Text_IO, Ada
.Integer_Text_IO, Ada.Numerics
.Discrete_Random, Ada
.Strings, Ada.Strings
.Fixed;
use Ada.Text_IO, Ada.Integer_Text_IO;
package body DataOperations is
subtype Random_Range is Positive range 1 .. 1;
package Random_Integer is new Ada.Numerics.Discrete_Random (Random_Range);
G ... |
--
-- 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 Ada.Directories;
w... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Calendar;
with Ada.Text_IO;
with League.String_Vectors;
with Slim.Messages.cont;
-- with Slim.Players.Displays;
package ... |
--
-- This package provides a generic handler for a "parsed" type, that is,
-- a type that has a function "Parse" to map a string to a value.
--
generic
type Value_Type is private;
with function Parse (Item : String) return Value_Type is <>;
package Line_Parsers.Receivers.Parsed_Receivers is
type Receiver_Typ... |
pragma Ada_2012;
with Ada.Strings.Fixed;
with Protypo.Api.Engine_Values.Array_Wrappers;
with Protypo.Api.Field_Names;
with Protypo.Api.Engine_Values.Constant_Wrappers;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_IO; use Ada.Text_IO;
package body Protypo.Api.Engine_Values.Tab... |
with Device; use Device;
with Memory.Container; use Memory.Container;
package body Memory.Transform.Offset is
function Create_Offset return Offset_Pointer is
result : constant Offset_Pointer := new Offset_Type;
begin
return result;
end Create_Offset;
function Random_Offset(next ... |
with Ada.Calendar;
with Ada.Characters.Latin_1;
with Ada.Command_Line;
with Ada.Directories;
with Ada.Streams.Stream_IO;
with Ada.Text_IO.Text_Streams;
with Web.HTML;
with Web.Lock_Files;
with Web.Producers;
with Web.RSS;
pragma Unreferenced (Web.RSS);
procedure test_web is
use type Ada.Calendar.Time;
Verbose : Boole... |
-- Copyright 2017-2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "FullHunt"
type = "api"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
local resp, err = reques... |
type Price is delta 0.01 digits 3 range 0.0..1.0;
function Scale (Value : Price) return Price is
X : constant array (1..19) of Price :=
( 0.06, 0.11, 0.16, 0.21, 0.26, 0.31, 0.36, 0.41, 0.46, 0.51,
0.56, 0.61, 0.66, 0.71, 0.76, 0.81, 0.86, 0.91, 0.96
);
Y : constant array (1..2... |
with ZMQ.Sockets;
with ZMQ.Contexts;
with ZMQ.Messages;
with Ada.Text_IO; use Ada.Text_IO;
procedure ZMQ.examples.Client is
ctx : ZMQ.Contexts.Context;
s : ZMQ.Sockets.Socket;
begin
-- Initialise 0MQ context, requesting a single application thread
-- and a single I/O thread
... |
with Pig, Ada.Text_IO;
procedure Play_Pig is
use Pig;
type Hand is new Actor with record
Name: String(1 .. 5);
end record;
function Roll_More(A: Hand; Self, Opponent: Player'Class) return Boolean;
function Roll_More(A: Hand; Self, Opponent: Player'Class) return Boolean is
Ch: Character :=... |
with
openGL.Visual,
openGL.Terrain,
openGL.Demo,
openGL.Light;
procedure launch_large_Terrain_Demo
--
-- Exercise the culler with a large terrain grid.
--
is
use openGL,
openGL.Math,
openGL.linear_Algebra_3d;
begin
Demo.print_Usage;
Demo.define ("openGL 'Large Terrain' Dem... |
-- { dg-do run { target i?86-*-* x86_64-*-* alpha*-*-* ia64-*-* } }
with Unchecked_Conversion;
procedure Unchecked_Convert5b is
subtype c_1 is string(1..1);
function int2c1 is -- { dg-warning "different sizes" }
new unchecked_conversion (source => integer, target => c_1);
c1 : c_1;
begin
c1 := int2c... |
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any damages arising... |
pragma License (Unrestricted);
-- extended unit
with Ada.Iterator_Interfaces;
private with System;
package Ada.Bind_Time_Variables is
-- This is similar to Ada.Environment_Variables,
-- but reads bind-time variables set by gnatbind -Vkey=val.
pragma Preelaborate;
function Value (Name : String) return ... |
with Ada.Calendar.Formatting;
with Ada.Calendar.Time_Zones;
with Ada.Command_Line;
with Ada.Text_IO;
with Web;
procedure test_time is
use type Ada.Calendar.Time;
use type Ada.Calendar.Time_Zones.Time_Offset;
Verbose : Boolean := False;
S : constant String := Web.Image (Ada.Calendar.Clock);
begin
for I in 1 .. Ada.... |
pragma Ada_2012;
with Ada.Strings.Unbounded;
with Ada.Strings.Equal_Case_Insensitive;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with Ada.Containers.Vectors;
with Ada.Containers.Ordered_Sets;
with EU_Projects.Nodes.Partners;
with EU_Projects.Nodes.Action_Nodes.WPs;
with EU_Projects.Nodes.Acti... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
-- MIT License
-- Copyright (c) 2021 Stephen Merrony
-- 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 limitation the rights
-- to use, copy, modify,... |
--- config/src/aws-net-std__ipv4.adb.orig 2021-05-19 05:14:30 UTC
+++ config/src/aws-net-std__ipv4.adb
@@ -65,10 +65,6 @@ package body AWS.Net.Std is
-- Set the socket to the non-blocking mode.
-- AWS is not using blocking sockets internally.
- To_GNAT : constant array (Family_Type) of Sockets.Family_Type... |
limited with Parent_Ltd_With.Child_Full_View;
package Parent_Ltd_With is
type Symbol is abstract tagged limited private;
type Symbol_Access is access all Symbol'Class;
private
type Symbol is abstract tagged limited record
Comp : Integer;
end record;
end Parent_Ltd_With;
|
-- { dg-do compile }
package Renaming1 is
package Inner is
procedure PI (X : Integer);
end Inner;
procedure P (X : Integer) renames Inner.PI;
procedure P (X : Float);
pragma Convention (C, P); -- { dg-error "non-local entity" }
procedure Q (X : Float);
procedure Q (X : Integer) renames In... |
----------------------------------------------------------------------
--
-- Semaphore Package
--
-- written by
--
-- Edmond Schonberg
--
-- Ada Project
-- Courant Institute
-- New York University
-- ... |
-- CE3115A.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 Solitaire_Operations.Text_Representation;
with Ada.Text_IO;
use Ada;
procedure Null_Key is
Deck : Solitaire_Operations.Deck_List := Solitaire_Operations.Standard_Deck;
begin -- Null_Key
Output : for I in Deck'range loop
Text_IO.Put (Item => Solitaire_Operations.Text_Representation.Short_Card_Name (Dec... |
package body STM32GD.USB is
function EP_Unused_Reset (BTable_Offset : Integer) return Integer is
begin
return BTable_Offset;
end EP_Unused_Reset;
procedure EP_Unused_Handler (Out_Transaction : Boolean) is
begin
null;
end EP_Unused_Handler;
procedure Set_TX_Status (EP : Endpoint_Range; Status : EP_Status... |
with Interfaces;
use Interfaces;
package ROSA.Tasks is
type States is (Running, Suspended, Waiting, Ready);
type Task_Status is (OK,
Not_Ready,
Not_Running);
type Tasking is private;
-- Initialise a new tasking structure.
procedure Create (Task_ID, Priority : in Unsigned_8; t : out Taski... |
with Ada.Numerics.Float_Random;
package Taszkseged is
task type Szemafor( Max: Positive ) is
entry P;
entry V;
end Szemafor;
protected Veletlen is
procedure Reset;
entry General( F: out Float );
private
G: Ada.Numerics.Float_Random.Generator;
Inicializalt: Boolean ... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces;
package body Server is
use GNAT.Sockets;
Listen_Backlog : constant := 128;
function Hash (Element : GNAT.Sockets.Socket_Type)
return Ada.Cont... |
with
FLTK.Widgets.Boxes,
FLTK.Widgets.Groups.Color_Choosers;
package FLTK.Dialogs is
type Beep_Kind is
(Default_Beep, Message_Beep, Error_Beep,
Question_Beep, Password_Beep, Notification_Beep);
type Choice is (First, Second, Third);
type RGB_Float is new Long_Float range 0.0 ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, Adacore --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Port_Specification;
package PortScan.Packager is
package PSP renames Port_Specification;
-- Executes package phase (run sometime after stage)
function exec_phase_package
(specification : PSP.... |
------------------------------------------------------------------------------
-- --
-- Common UUID Handling Package --
-- - RFC 4122 Implementation - --
-- ... |
-- { dg-do compile }
package body Aggr20 is
procedure Proc (R : out Rec3) is
begin
R := (Callback => Nil_Rec2);
end;
end Aggr20;
|
-- RUN: %llvmgcc -S %s -I%p/Support
package body Global_Constant is
begin
raise An_Error;
end;
|
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
private with Ada.Containers.Indefinite_Vectors;
with Ada.Iterator_Interfaces;
package Yaml.Dom.Sequence_Data is
type Instance is tagged limited private
with Default_Iterator => Iterate,
... |
package body agar.gui.widget.socket is
package cbinds is
function from_bitmap
(parent : widget_access_t;
flags : flags_t;
file : cs.chars_ptr) return socket_access_t;
pragma import (c, from_bitmap, "AG_SocketFromBMP");
procedure set_padding
(socket : socket_access_t;
... |
with Ada.Strings.Unbounded;
with Ada.Text_IO.Text_Streams;
with DOM.Core.Documents;
with DOM.Core.Elements;
with DOM.Core.Nodes;
procedure Character_Remarks is
package DC renames DOM.Core;
package IO renames Ada.Text_IO;
package US renames Ada.Strings.Unbounded;
type Remarks is record
Name : US.Unbou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.