content stringlengths 23 1.05M |
|---|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Numerics;
with Ada.Numerics.Generic_Elementary_Functions;
with Hypot;
with text_io; use text_io;
-- Test estimates err in calculation of Sqrt(a^2 + b^2), a/Sqrt(a^2 + b^2), etc.
--
-- Best accuracy uses -mfpmath=387 ! Runs about the same speed at -mfpmath=387 and
-- -mfpmath=sse.
procedure hypot_tst_1 is
... |
------------------------------------------------------------------------------
-- --
-- Hardware Abstraction Layer for STM32 Targets --
-- --
-- ... |
-----------------------------------------------------------------------
-- Ada Labs --
-- --
-- Copyright (C) 2008-2009, AdaCore --
-- ... |
pragma License (Unrestricted);
-- generalized unit of Ada.Strings.UTF_Encoding.Strings
generic
type Character_Type is (<>);
type String_Type is array (Positive range <>) of Character_Type;
Expanding_From_8 : Positive;
Expanding_From_16 : Positive;
Expanding_From_32 : Positive;
Expanding_To_8 : Positi... |
generic
package any_Math.any_Arithmetic
is
pragma Pure;
pragma Optimize (Time);
end any_Math.any_Arithmetic;
|
with Device;
with Memory.Split; use Memory.Split;
with Memory.Join; use Memory.Join;
with Memory.Transform; use Memory.Transform;
package body Memory.Register is
-- Locate the position at which to insert a register and insert it.
function Insert_Register(mem : Memory_Pointer) return Boolean is
... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Server;
with App;
procedure Hello is
S : Server.Socket_Server;
begin
S.On_Connect := App.On_Connect'Access;
S.On_Readable := App.On_Readable'Access;
S.On_Writable := App.On_Writable'Access;
S... |
function Hide.Value (Data : String ) return Integer is
Map : constant array (Character'('0') .. Character'('9')) of Integer := (0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
begin
return Ret : Integer := 0 do
for Cursor in Data'Range loop
Ret := Ret + Map (Data (Cursor));
if Cursor /= Data'Last then
... |
with System.Storage_Elements;
package body System.Packed_Arrays is
pragma Suppress (All_Checks);
package body Ordering is
function memcmp (s1, s2 : Address; n : Storage_Elements.Storage_Count)
return Integer
with Import,
Convention => Intrinsic, External_Name => "__builtin_me... |
-------------------------------------------------------------------------------
-- 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;
package body CLIC_Ex.Commands.Switches_And_Args is
-------------
-- Execute --
-------------
overriding procedure Execute
(Cmd : in out Instance; Args : AAA.Strings.Vector)
is
begin
Ada.Text_IO.Put_Line (Args.Flatten);
end Execute;
end CLIC_Ex.Commands.Switches_And_... |
generic -- child of a generic package must be a generic unit
package S_Expr.Parser is
function Parse(Input: String) return List_Of_Data;
-- the result of a parse process is always a list of expressions
end S_Expr.Parser;
|
-----------------------------------------------------------------------
-- awa-jobs-beans -- AWA Jobs Ada Beans
-- Copyright (C) 2012, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
-- Generated by gperfhash
package Mysql.Perfect_Hash is
pragma Preelaborate;
function Hash (S : String) return Natural;
-- Returns true if the string <b>S</b> is a keyword.
function Is_Keyword (S : in String) return Boolean;
type Name_Access is access constant String;
type Keyword_Array is array... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit
with Ada.Strings.Naked_Maps;
package Ada.Strings.Maps.Naked is
pragma Preelaborate;
generic
with function Source return not null Naked_Maps.Character_Set_Access;
function To_Set return Character_Set;
pragma Inline (To_Set);
generic
with... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Compilation_Units;
with Program.Elements.Defining_Names;
with Program.Elements.Expressions;
with Program.Elements;
with Program.Symbol_Lists;
w... |
-- Task ventilator
-- Binds PUSH socket to tcp://localhost:5557
-- Sends batch of tasks to workers via that socket
with Ada.Command_Line;
with Ada.Text_IO;
with Ada.Numerics.Discrete_Random;
with GNAT.Formatted_String;
with ZMQ;
procedure TaskVent is
use type GNAT.Formatted_String.Formatted_String;
type W... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with System;
use System;
with Interfaces.C;
use Interfaces;
with GBA.BIOS.Arm;
use GBA.BIOS.Arm;
with Ada.Unchecked_Conversion;
use type Interfaces.C.size_t;
function GBA.BIOS.Memset
( Dest : in Address; Value : Integer; Num_Bytes... |
with Program.Parsers.Nodes;
use Program.Parsers.Nodes;
pragma Style_Checks ("N");
procedure Program.Parsers.On_Reduce_2001
(Self : access Parse_Context;
Prod : Anagram.Grammars.Production_Index;
Nodes : in out Program.Parsers.Nodes.Node_Array) is
begin
case Prod is
when 2001 =>
null;
... |
with System;
with GDNative.Thin; use GDNative.Thin;
package Minimal is
procedure GDNative_Intialize (p_options : access godot_gdnative_init_options)
with Export => True, Convention => C, External_Name => "minimal_gdnative_init";
procedure GDNative_Finalize (p_options : access godot_gdnative_terminate_optio... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2015 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... |
pragma License (Unrestricted);
-- extended unit, not in RM
package Ada.Wide_Wide_Characters.Latin_1 is
-- Wide_Wide_Character version of Ada.Characters.Latin_1.
pragma Pure;
-- Control characters:
NUL : constant Wide_Wide_Character :=
Wide_Wide_Character'Val (0);
SOH : constant Wide_Wide_Chara... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Compilation_Units;
with Program.Compilation_Unit_Vectors;
with Program.Library_Items;
limited with Program.Library_Unit_Declarations;
package ... |
with Hello, Add;
procedure Test is
begin
Hello;
Add;
end Test;
|
generic
UB1 : Natural;
UB2 : Natural;
package Array25_Pkg is
type Arr1 is array (1 .. UB1) of Integer;
type Rec is record
Data : Arr1;
end record;
type Arr2 is array (1 .. UB2) of Rec;
procedure Get (A : out Arr2);
end Array25_Pkg;
|
-----------------------------------------------------------------------
-- applications -- Ada Web Application
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2018, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License"... |
--
-- Main routines testing/illustrating the mixins.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
with Ada.Text... |
--
-- Copyright (c) 2007, 2008, 2010 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 PROVI... |
-----------------------------------------------------------------------
-- package body Crout_LU, LU decomposition, with equation solving
-- 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, provi... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
-- Troodon: renamed this to X11 to deconflict with the use of 'x' as coordinate
package X11 is
X_PROTOCOL : constant := 11; -- /usr/include/X11/X.h:53
X_PROTOCOL_REVISION : constant := 0; -- /usr/include/X11/X.h:54
None : ... |
-----------------------------------------------------------------------
-- ADO Sessions -- Sessions Management
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Li... |
function Factorial (N : Positive) return Positive is
Result : Positive := N;
Counter : Natural := N - 1;
begin
for I in reverse 1..Counter loop
Result := Result * I;
end loop;
return Result;
end Factorial;
|
-- This spec has been automatically generated from STM32F7x9.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.MDIOS is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype MDIOS_CR_PORT_ADDRES... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with System.Formatting;
with System.Long_Long_Integer_Types;
with C.signal;
with C.sys.ioctl;
with C.unistd;
package body System.Native_Text_IO is
use Ada.Exception_Identification.From_Here;
use type Ada.Streams.Stream_Element_Offset;
us... |
with Qt; use Qt;
package CovidSimForm is
type Simulation_Engine is (Lancet, XPH_Pharmaceutical);
covidsim_form : QWidgetH;
procedure covidsim_form_init (parent : QWidgetH := null);
procedure slot_change_simulation_engine (simulation_engine_beautiful_name : QStringH);
pragma Convention (C, slot_chang... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Definitions is
pragma Pure;
raven_version_major : constant String := "1";
raven_version_minor : constant String := "71";
copyright_years : constant String := "2015-2021";
raven_tool ... |
-----------------------------------------------------------------------
-- babel-streams-tests - Unit tests for babel streams
-- 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 us... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A047 is
use Ada.Text_IO;
use Ada.Integer_Text_IO;
-- File Reference: http://www.naturalnumbers.org/primes.html
Max_N : constant Integer := 5E5;
Array_Range : constant Integer := Integer (Float'Floor ... |
-- { dg-do compile }
with Ada.Finalization;
package preelab is
type T is limited private;
pragma Preelaborable_Initialization (T);
private
type T is new Ada.Finalization.Limited_Controlled with null record;
end preelab;
|
pragma Style_Checks ("NM32766");
pragma Wide_Character_Encoding (Brackets);
---------------------------------------------------
-- This file has been generated automatically from
-- cbsg.idl
-- by IAC (IDL to Ada Compiler) 20.0w (rev. 90136cd4).
---------------------------------------------------
-- NOTE: If you m... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
with HAL;
with Interfaces; use Interfaces;
with Ada.Unchecked_Conversion;
-- @summary
-- target-independent functions of HIL.
packag... |
with Ada.Numerics.Discrete_Random;
with SDL.Video.Windows.Makers;
with SDL.Video.Renderers.Makers;
with SDL.Events.Events;
procedure Brownian_Tree is
Width : constant := 800;
Height : constant := 600;
Points : constant := 50_000;
subtype Width_Range is Integer range 1 .. Width;
subtype Height_Ra... |
--===========================================================================
--
-- This application provides an embedded dashboard controller offering:
-- - UART Interface
-- - LED Area
-- - 5x7 Matrix Display with two displays as one logical unit
--
--======================================================... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- Cupcake TK Demo Application
-- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com>
-- Report bugs and issues on <http://github.com/skordal/cupcake/issues>
-- vim:ts=3:sw=3:et:si:sta
with Ada.Text_IO; use Ada.Text_IO;
with Cupcake;
with Cupcake.Primitives;
with Cupcake.Windows;
use Cupcake;
proced... |
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with System.Storage_Elements;
with Program.Elements.Defining_Identifiers;
with Program.Elements.Identifiers;
with Program.Safe_Element_Visitors;
pack... |
package P is
type T;
type T is record
One: access T;
-- Missing semicolon used to choke the Ada parser
Two: access T
end record;
end P;
|
with PolyPaver.Floats;
--# inherit PolyPaver.Exact, PolyPaver.Interval, PolyPaver.Integers, PolyPaver.Floats;
package Riemann is
function erfRiemann(x : Float; n : Integer) return Float;
--# pre PolyPaver.Floats.Is_Range(x, 0.0, 4.0)
--# and PolyPaver.Integers.Is_Range(n, 1, 100);
--# return result =>
--# Po... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 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... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Exponentiations;
with System.Unsigned_Types;
package System.Exp_LLU is
pragma Pure;
-- required for "**" by compiler (s-expllu.ads)
-- Modular types do not raise the exceptions.
function Exp_Long_Long_Unsigned is
... |
-------------------------------------------------------------------------------
-- LSE -- L-System Editor
-- Author: Heziode
--
-- License:
-- MIT License
--
-- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- c... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
use Bitmap_Store; with Bitmap_Store;
...
X : Image (1..64, 1..64);
begin
Fill (X, (255, 255, 255));
X (1, 2) := (R => 255, others => 0);
X (3, 4) := X (1, 2);
|
package body Lto1_Pkg is
procedure Initialize (Radar : in Radar_T) is
Antenna1 : Antenna_Type_T;
Antenna2 : Antenna_Type_T;
begin
case Radar.Sensor_Type is
when radpr | radssr =>
Antenna1 := Radar.Sensor_Type;
Antenna2 := Radar.Sensor_Type;
when radcmb =>
Antenna1 :=... |
with Ada.Command_Line;
with Ada.Containers.Vectors;
with Ada.Containers;
with Ada.Direct_IO;
with Ada.Directories;
with Ada.Strings.Fixed;
with Ada.Text_IO;
procedure Day_07 is
package Integer_Vectors is new Ada.Containers.Vectors(Index_Type => Natural, Element_Type => Integer);
use Integer_Vectors;
funct... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Vectors;
with League.Text_Codecs;
package body Torrent.Trackers is
---------------
-- Event_URL --
---... |
with Ada.Real_Time; use Ada.Real_Time;
use type Ada.Real_Time.Time_Span;
package tools is
Big_Bang : constant Ada.Real_Time.Time := Clock;
procedure Current_Time (Origen : Ada.Real_Time.Time);
procedure Print_an_Integer (x: in integer);
procedure Print_a_Float (x : in float);
proced... |
-----------------------------------------------------------------------
-- hestia-display-info -- Display information about the system
-- 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 not... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
package Program.Elements.Short_Circuit_Operations is
pragma Pure (Program.Elements.Sh... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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... |
-- Milesian converter
-- A simple converter to and from Milesian dates
-- This programme is a console demonstrator for the referred packages
-- copyright Miletus 2015-2019 - no transformation allowed, no commercial use
-- application developed using GPS GPL 2014 of Adacore
-- inquiries: see www.calendriermilesien.org
-... |
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Regions.Contexts.Environments.Nodes;
with Regions.Contexts.Environments.Package_Nodes;
package body Regions.Contexts.Environments.Factories is
typ... |
generic
type Item_Type is private;
package ACO.Utils.DS.Generic_Queue is
pragma Preelaborate;
type Queue
(Max_Nof_Items : Positive)
is tagged limited private;
type Item_Array is array (Natural range <>) of Item_Type;
function Is_Full (This : Queue) return Boolean
with Inline;
func... |
------------------------------------------------------------------------------
-- --
-- Internet Protocol Suite Package --
-- --
-- -... |
with Text_IO;
package renaming1 is
procedure Fo (A : Text_IO.File_Access);
end;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Assertions,
Ada.Characters.Handling,
Apsepp_Testing_System_Test_Fixture,
Apsepp.Generic_Fixture.Creator,
Apsepp.Scope_Debug,
Apsepp.Tags,
Apsepp_Test_Node_Barrier,
Apsep... |
package body zlib.Strings is
procedure Deflate (
Stream : in out zlib.Stream;
In_Item : in String;
In_Last : out Natural;
Out_Item : out Ada.Streams.Stream_Element_Array;
Out_Last : out Ada.Streams.Stream_Element_Offset;
Finish : in Boolean;
Finished : out Boolean)
is
SEA_In_Item :
Ada.Streams.St... |
pragma Check_Policy (Trace => Off);
with Ada.Command_Line;
with Ada.Environment_Variables;
with Ada.Processes;
with Ada.Streams.Stream_IO.Pipes;
with Ada.Text_IO.Text_Streams;
procedure process is
use type Ada.Command_Line.Exit_Status;
Target : constant String := Standard'Target_Name;
In_Windows : constant Boolean :... |
package body Srv_Quit is
procedure Detect_Quits (Irc_Dir : String) is
begin
null; -- TODO detect and handle parting commands
-- TODO for each server
-- TODO continue reading out
-- TODO purge if '/part'
end Detect_Quits;
end Srv_Quit;
|
-- {{Ada/Sourceforge|to_lower_2.adb}}
pragma License (Gpl);
pragma Ada_95;
with Ada.Text_IO;
with Ada.Command_Line;
with Ada.Characters.Handling;
procedure To_Lower_2 is
package CL renames Ada.Command_Line;
package T_IO renames Ada.Text_IO;
function Equal_Ignore_Case
(S : String;
T : Str... |
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_missing is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Strea... |
with System.Standard_Allocators;
with System.System_Allocators;
package body System.Storage_Pools.Standard_Pools is
pragma Suppress (All_Checks);
overriding procedure Allocate (
Pool : in out Standard_Pool;
Storage_Address : out Address;
Size_In_Storage_Elements : Storage_Elements.Storage_Count... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Printable_Calendar;
procedure Cal is
C: Printable_Calendar.Calendar := Printable_Calendar.Init_80;
begin
C.Print_Line_Centered("[reserved for Snoopy]");
C.New_Line;
C.Print(1969, "Nineteen-Sixty-Nine");
end Cal;
|
with AWS.Utils;
with WBlocks.Widget_Counter;
package body @_Project_Name_@.Ajax is
use AWS;
use AWS.Services;
------------------
-- Onclick_Incr --
------------------
procedure Onclick_Incr
(Request : in Status.Data;
Context : not null access Web_Block.Context.O... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure Pack21 is
type Enum is (ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX,
SEVEN, EIGHT, NINE, TEN, ELEVEN, TWELVE,
THIRTEEN, FOURTEEN, FIFTEEN);
type Rec1 is record
I1 : INTEGER range 0 .. 800;
I2 : INTEGER range 0 .. 15 := ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ stream to skill tokens --
-- |___/_|\_\_|_|____| by: Timm Felden, Dennis Przytarski ... |
---------------------------------------------------------------------------
-- package body Givens_Rotation
-- 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 the above
-- copyright not... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with UXAS.Common.Configuration_Manager; use UXAS.Common.Configuration_Manager;
procedure Test_Configuration_Manager is
Successfull_Load : Boolean;
begin
Instance.Load_Base_XML_File
(XML_File_Path => "./cfg_WaterwaySearch.xml",
... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Oups is
type R is record A: Integer; end record;
V : access R := null;
begin
if V.A = 1 then New_Line; end if;
end;
|
with SPARK.Text_IO; use SPARK.Text_IO;
package power_station with SPARK_Mode is
procedure Start_Reactor with
Global => (In_Out => (Standard_Input, Standard_Output)),
Depends => (Standard_Output => (Standard_Input, Standard_Output),
Standard_Input => (Standard_Input)),
Pre => St... |
with Ada.Finalization;
package Obj is
type Obj_T is new Ada.Finalization.Controlled with private;
function New_Obj( I : in Integer ) return Obj_T;
procedure Put( O : Obj_T );
private
type Obj_T is new Ada.Finalization.Controlled with
record
X : Integer := 0;
Serial : Integ... |
-------------------------------------------------------------------------------
-- 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... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Interpretations.Names is
procedure Step
(Self : Iterator'Class;
Cursor : in out Names.Cursor);
----------
-- Ea... |
-- CC1220A.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... |
-- AOC 2020, Day 7
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
bag_colors : constant Natural := valid_bag_colors;
nested : constant Natural := nested_bags;
begin
put_line("Part 1: " & Natural'Image(bag_colors));
put_line("Part 2: " & Natural'Image(nested));
end main;
|
with J_String_Pkg, Text_IO, Ada.Integer_Text_IO;
use J_String_Pkg, Text_IO, Ada.Integer_Text_IO;
procedure spec is
Str : String := "test";
Js : J_String := Create(Str);
Js1 : J_String := Create("test");
Js2 : J_String := Create("tes");
numberOfTests : Natural := 46;
numberOfpassedTests : Natural := 0;
... |
-- part of ParserTools, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Finalization;
package Lexer.Source is
pragma Preelaborate;
-- a Source is anything that provides a character stream. Sources are always
-- single-use objects; the lexer takes... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- call5.ada
--
-- call for an entry of a completed but not yet terminated task
--
WITH text_io;
PROCEDURE main IS
task t1 is
entry e1;
end t1;
task body t1 is
task t2 is -- t2 depends on t1
entry e2;
end t2;
task body t2 is
begin
loop
select
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Calendar;
with Ada.Command_Line;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with GNATCOLL.VFS;
with Command_Line;
with Extraction;
with GraphML_Writers;
procedure Dependency_Graph_Extractor is
package G_W renames GraphML_Writers;
package S_U renames Ada.Strings.Unbounded;
package V_F_S renames GNA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.