content stringlengths 23 1.05M |
|---|
------------------------------------------------------------------------------
-- Copyright (C) 2018, AdaCore --
-- --
-- This is free software; you can redistribute it and/or modify it under --
-- t... |
package Father.Son is
subtype Son_Type is Father_Type range -20 .. 20;
type Sonic_Type is range -20 .. 20;
function "+" (Left : Son_Type; Right : Father_Type) return Father_Type;
function "+" (Left : Sonic_Type; Right : Father_Type) return Integer;
end Father.Son;
|
with Tkmrpc.Types;
package Tkmrpc.Contexts.cc
is
type cc_State_Type is
(clean,
-- Initial clean state.
invalid,
-- Error state.
stale,
-- CC context is stale.
linked,
-- CC is linked.
checked
-- CC has been checked and verified.
);
... |
with Ada.Strings.Unbounded;
package ARM_Contents is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package contains the routines to manage section/clause/subclause
-- references.
--
-- ---------------------------------------
-- Copyright 2000, 2004, 2006, 2007, 20... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: License.txt
with Ada.Command_Line;
with Ada.Text_IO;
with Actions;
with PortScan.Pilot;
with Parameters;
with Unix;
procedure synth
is
type mandate_type is (unset, status, help, configure, version, up_system,
... |
Str : String := "Hello World";
Length : constant Natural := Str'Size / 8;
|
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
-----------------------------------------------------------------------
-- Util.Concurrent.Pools -- Concurrent Pools
-- Copyright (C) 2011, 2014 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 fi... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
procedure Test_Run_Length_Encoding is
function Encode (Data : String) return String is
begin
if Data'Length = 0 then
return "";
else
declare
Code : constant Character := Data (Data'... |
-- Demonstration of the extended units: Ada.Fixed
with Ada.Fixed;
with System;
procedure fixed is
begin
declare -- Divide
type T is delta System.Fine_Delta range 0.0 .. 1.0 - System.Fine_Delta;
type Q_Type is delta 0.1 range 0.0 .. 999.0;
procedure Divide is new Ada.Fixed.Divide (T, T, Q_Type, T);
Q : Q_Type;
... |
with AUnit.Simple_Test_Cases; use AUnit.Simple_Test_Cases;
with Test_Examples; use Test_Examples;
with Test_Exercises_Intro; use Test_Exercises_Intro;
with Test_Exercises_Navigate; use Test_Exercises_Navigate;
with Test_Exercises_Match; use Test_Exercises_Match;
with Test_Exercises_Rewrite; use Test_Ex... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
package body Converters is
function To_String (V : A_Type) return String is
(Float'Image (Float (V)));
function Concat (L : String; R : A_Type) return String is
(L & String_Conv (R));
end Converters;
|
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
with Important_Dates; use Important_Dates;
procedure Main with
SPARK_Mode => On
is
Calendar : Calendar_T;
procedure Run_Test is
begin
Put_Line ("Good result:");
Print_Events
(Calendar => Calendar,... |
with Ada;
procedure Debug is
pragma Debug (Ada.Debug.Put ("here, we go !"));
begin
null;
end Debug;
|
with EVB1000.LCD;
with EVB1000.LED;
with EVB1000.USB;
procedure USB_Echo
is
Str : String (1 .. 128);
Count : Natural;
begin
loop
-- Toggle the first LED each time we read data.
EVB1000.LED.Toggle_LED (1);
EVB1000.USB.Buffer.Read (Str, Count);
EVB1000.USB.Buffer.Write (Str (1 .. C... |
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2003 Dmitriy Anisimkov --
-- ... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Command_Line;
with Anagram.Grammars.Constructors;
with Anagram.Grammars.LR.LALR;
with Anagram.Grammars.LR_Tables;
with... |
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Bit_Streams; use Bit_Streams;
procedure Test_Bit_Streams is
File : File_Type;
ABACUS : Bit_Array :=
( 1,0,0,0,0,0,1, -- A, big endian
1,0,0,0,0,1,0, -- B
1,0,0,0,0,0,1, -- A
... |
with Types; use Types;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Interfaces.C; use Interfaces.C;
with System;
with System.OS_Constants;
package Communication is
package C renames Interfaces.C;
use type C.Int;
type Serial_Port_Inst is private;
type Serial_Port is access all Serial_Port_Inst;
func... |
with Ada.Text_IO;
procedure Binary_Output is
package IIO is new Ada.Text_IO.Integer_IO(Integer);
function To_Binary(N: Natural) return String is
S: String(1 .. 1000); -- more than plenty!
Left: Positive := S'First;
Right: Positive := S'Last;
begin
IIO.Put(To => S, Item => N, Base =>... |
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro>
--
-- 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, cop... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with CommonText;
with AdaBase.Logger.Base.File;
with AdaBase.Logger.Base.Screen;
package AdaBase.Logger.Facility is
package CT renames CommonText;
package AL renames AdaBase.Logger.Base;
package ALF... |
-----------------------------------------------------------------------
-- AWA.Questions.Models -- AWA.Questions.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ad... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
with Ada.Containers.Vectors;
with Opcode_Helper;
procedure Day19 is
package OH is new Opcode_Helper (Register_Size => 6);
use OH;
subtype Op_String is String (1 .. 4);
type Instruction is record
Op : Op_String;
A : Unsigne... |
-- 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... |
-----------------------------------------------------------------------
-- awa-tags-modules -- Module awa-tags
-- Copyright (C) 2013, 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 this file exc... |
with Ada.Containers; use Ada.Containers;
with Ada.Text_IO; use Ada.Text_IO;
package body wrap with SPARK_Mode is
procedure foo is
c : My_Lists.Cursor;
begin
My_Lists.Clear (li);
My_Lists.Append (li, One);
c := My_Lists.First (li);
Put_Line ("First=" & Element_Type'Image (My_Lists.El... |
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with AUnit.Assertions; use AUnit.Assertions;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Find_A... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-settings-modules -- Module awa-settings
-- Copyright (C) 2013 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 e... |
--
-- Radoslaw Kowalski 221454
--
with Ada.Strings.Unbounded;
package Rails is
package SU renames Ada.Strings.Unbounded;
type Track_Type is (Turntable, Normal, Station);
type Track_Record (Typee: Track_Type := Turntable) is
record
case Typee is
when Turntable =>
Ro... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
-- with Regions.Symbols;
package Regions.Entities.Packages is
pragma Pure;
type Package_Entity is limited interface
and Regions.Entities.Entit... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with System;
package GBA.Memory is
pragma Preelaborate;
-- Total addressable memory of 28 bits.
subtype Address is System.Address
range 16#0000000# .. 16#FFFFFFF#;
subtype BIOS_Address is Address
range 16#0000000# .. 16#0... |
with Archive_Searcher;
with Executor_Service;
package App is
type Object is tagged limited private;
procedure Show_Search
(Self : in out Object;
Target : String );
private
procedure Display_Other_Things
(Self : in out Object);
procedure Display_Text
(Self : in out Object;
Te... |
with GNAT.Exception_Traces;
with GNAT.Traceback.Symbolic;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line;
with Ada.Directories;
procedure Taglib.Tests.Main is
procedure Test (Name : String) is
F : constant File := File_New (Name);
T : constant Tag := F.Get_Tag;
begin
Put_Line (Name);
... |
pragma License (Unrestricted);
-- generalized unit of Ada.Strings.Unbounded.Hash
with Ada.Containers;
generic
with function Fixed_Hash (Key : String_Type) return Containers.Hash_Type;
function Ada.Strings.Generic_Unbounded.Generic_Hash (Key : Unbounded_String)
return Containers.Hash_Type;
pragma Preelaborate (Ad... |
-- { dg-do compile }
-- { dg-options "-gnatws -O2 -fdump-tree-optimized" }
with System; use System;
with System.CRTL; use System.CRTL;
function Opt60 (Size : size_t) return System.Address is
Result : System.Address;
begin
Result := malloc (Size);
if Result = System.Null_Address then
raise Program_Error;
e... |
-- from ACATS tests
with Switches;
procedure HardwareStore is -- Hardware_Store
subtype Switch_Class is Switches.Toggle'Class;
type Reference is access all Switch_Class;
type Light_Bank is array(Positive range <>) of Reference;
A_Switch : aliased Switches.Toggle;
Lamps : Light_Bank(1..1) := ( others =>... |
with Tarmi.Symbols; use Tarmi.Symbols;
with Tarmi.Combiners; use Tarmi.Combiners;
package body Tarmi.Evaluation is
function Eval (Form : Datum; Env : Environment) return Datum is
Form_L : Datum := Form;
Env_L : Environment := Env;
begin
Tail_Eval: loop
if Form_L.all in Pair_R then
... |
-----------------------------------------------------------------------
-- helios-datas -- Helios monitoring data and snapshots
-- 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 th... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Yaml.Source;
with Text.Pool;
private with Ada.Finalization;
private with Yaml.Lexer;
private with Yaml.Stacks;
private with Yaml.Text_Set;
package Yaml.Parser is
-- this package implements a... |
-- { dg-do compile }
procedure Discr38 is
type Enum is (OK,
NOT_CONNECTED,
DISCONNECTED,
REQUEST_Q_EMPTY,
SERVER_UNAVAILABLE,
BUFFER_TOO_SMALL,
NO_FREE_SLOT,
RAISE_EXCEPTION,
REQU... |
--|---------------------------------------------------------------------------
--|
--| Unit Name: Workload
--|
--| Unit Type: Package Specification
--|
--| Description:
--| Encapsulates the synthetic computational workload of a Hartstone task.
--| The actual computation is performed by the Small_Whetstone procedu... |
with Ada.Text_IO, Turing;
procedure Busy_Beaver_3 is
type States is (A, B, C, Stop);
type Symbols is range 0 .. 1;
package UTM is new Turing(States, Symbols); use UTM;
Map: Symbol_Map := (1 => '1', 0 => '0');
Rules: Rules_Type :=
(A => (0 => (New_State => B, Move_To => Right, New_Symbol => 1),
... |
-- This test is check control data out with a fake class request
with USB_Testing; use USB_Testing;
with USB_Testing.UDC_Stub; use USB_Testing.UDC_Stub;
with USB_Testing.UDC_Scenarios;
with HAL; use HAL;
with Interfaces; use Interfaces;
with USB; use USB;
with USB.Device; use USB.De... |
with TJa.Sockets; use TJa.Sockets;
with Klient_Assets_Package; use Klient_Assets_Package;
package Server_Assets_Package is
function Generate return Integer;
function Roll return String;
procedure Connect_To_Klients(Socket1, Socket2: in out Socket_Type;
Lyssnare : in out Listener_Type;
... |
pragma License (Unrestricted);
-- extended unit
with Ada.Iterator_Interfaces;
-- diff (Copy_On_Write)
private with Ada.Containers.Hash_Tables;
private with Ada.Finalization;
private with Ada.Streams;
generic
type Key_Type (<>) is limited private;
type Element_Type (<>) is limited private;
with function Hash ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure notes is
subtype Note is Float range 0.0 .. 20.0;
procedure Aff_Note(Desc : String; Val : Note) is
begin
Put(Desc & " : ");
Put(Val, 2, 2, 0);
Put_Line(" / 20");
end Aff_Note;
... |
-----------------------------------------------------------------------
-- mat-targets - Representation of target information
-- Copyright (C) 2014, 2015, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
-- Abstract :
--
-- Config parsing subprograms.
--
-- Copyright (C) 2018 - 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; either version 3, or ... |
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package RP_SVD.PADS_BANK0 is
pragma Preelabo... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020, AdaCore --
-- --
-- ... |
with LSC.Internal.Types;
package LSC.Internal.Math_Int
with
SPARK_Mode => On
is
pragma Pure;
type Math_Int is private;
function "+" (A : Math_Int; B : Math_Int) return Math_Int
with Ghost, Import, Global => null;
function "-" (A : Math_Int; B : Math_Int) return Math_Int
with Ghost, Import, ... |
-----------------------------------------------------------------------
-- servlet-sessions.factory -- Servlet Sessions factory
-- Copyright (C) 2010, 2011, 2014, 2016, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
with Courbes; use Courbes;
package Courbes.Bezier_Quadratiques is
use Liste_Points;
type Bezier_Quadratique is new Courbe with private;
-- Créer une Bezier_Quadratique
function Ctor_Bezier_Quadratique (Debut, Fin, C : Point2D) return Bezier_Quadratique;
-- Obtient un point d'une Bezier_Quadratiqu... |
with Ada.Text_IO; use Ada.Text_IO;
package body SPARKNaCl.Debug
with SPARK_Mode => Off
is
On : constant Boolean := True;
package I64IO is new Ada.Text_IO.Integer_IO (Integer_64);
type BToCT is array (Byte range 0 .. 15) of Character;
BToC : constant BToCT :=
('0', '1', '2', '3', '4', '5', '6', '7',... |
with Ada.Text_IO, GNAT.Calendar.Time_IO, Ada.Command_Line,
Ada.Calendar.Formatting, Ada.Calendar.Arithmetic;
procedure Last_Weekday_In_Month is
procedure Put_Line(T: Ada.Calendar.Time) is
use GNAT.Calendar.Time_IO;
begin
Ada.Text_IO.Put_Line(Image(Date => T, Picture => ISO_Date));
end Put_Line;... |
pragma Ada_2012;
with Ada.Finalization;
with GNAT.Semaphores;
package Spawn_Manager.Client is
-- This package provides tasksafe variants of the GNAT.OS_Lib Spawn routines.
-- Calls to methods in this package is strictly serialized and calling
-- tasks will be blocked if another task is performing an operation.
... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put('H');
Put('e');
Put('l');
Put('l');
Put('o');
Put(',');
Put(' ');
Put('w');
Put('o');
Put('r');
Put('l');
Put('d');
Put('!');
New_Line;
end Hello;
-- Local Variables:
-- compile-command: "gnatmake hello.adb && ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
-- Fixed function pipeline. Deprecated in OpenGL 3.0.
package body GL.Fixed is
procedure Set_Vertex_Pointer (Length : Vertex_Length;
Stride, Offset : Si... |
-- Lumen.Window -- Create and destroy native windows and associated OpenGL
-- rendering contexts
--
-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose wit... |
with agar.gui.unit;
with agar.gui.widget.button;
with agar.gui.widget.textbox;
with agar.gui.widget.ucombo;
package agar.gui.widget.numerical is
use type c.unsigned;
type flags_t is new c.unsigned;
NUMERICAL_HFILL : constant flags_t := 16#01#;
NUMERICAL_VFILL : constant flags_t := 16#02#;
type numer... |
--
-- Thin wrapper for the simple interface of the SOCI database access library.
--
-- Copyright (C) 2008-2011 Maciej Sobczak
-- Distributed under the Boost Software License, Version 1.0.
-- (See accompanying file LICENSE_1_0.txt or copy at
-- http://www.boost.org/LICENSE_1_0.txt)
with Ada.Calendar;
with... |
---------------------------------------------------------------------------
-- package body Givens_QR_Method
-- Copyright (C) 2011-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
-- copyrig... |
--
-- Copyright (c) 2008-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... |
with types;
function get_rod_absorption (a : types.Rod_Array) return types.Percent is
use types;
Sum : Percent;
begin
Sum := 0.0;
for i in (Index) loop
Sum := Sum + a(i);
end loop;
return Sum / 100.0;
end get_rod_absorption; |
-- Generated at 2015-06-24 18:19:13 +0000 by Natools.Static_Hash_Maps
-- from src/natools-s_expressions-templates-dates-maps.sx
package Natools.Static_Maps.S_Expressions.Templates.Dates is
pragma Pure;
type Main_Command is
(Error,
Year, Month, Day, Hour, Minute, Second,
Padded_Month, Padded_D... |
-----------------------------------------------------------------------
-- gen-generator -- Code Generator
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
pragma License (Unrestricted);
with GNAT.OS_Lib;
with GNAT.Regpat;
private with Ada.Processes;
private with Ada.Streams.Stream_IO;
package GNAT.Expect is
type Process_Descriptor is tagged limited private;
type Process_Descriptor_Access is access Process_Descriptor'Class;
-- Spawning a process
procedure... |
------------------------------------------------------------------------------
-- --
-- tiled-code-gen --
-- --
-- ... |
------------------------------------------------------------------------------
-- orders.ads
--
-- This package contains the public data type Order and a heat lamp to store
-- finished orders under.
--
-- Types:
--
-- Order An order is simply a pair consisting of a meal and the
-- philoso... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ memory manager for ada ported from c++ skill --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
-------------------------------------------------------------------------------
-- 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... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
limited with Program.Compilations;
limited with Program.Library_Items;
limited with Program.Library_Unit_Bodies;
limited with Program.... |
with Ada.Text_IO;
procedure Euler18 is
Nums : array(Positive range <>, Positive range <>) of Natural :=
((75,00,00,00,00,00,00,00,00,00,00,00,00,00,00),
(95,64,00,00,00,00,00,00,00,00,00,00,00,00,00),
(17,47,82,00,00,00,00,00,00,00,00,00,00,00,00),
(18,35,87,10,00,00,00,00,00,00,00,00,00,00,0... |
--------------------------------------------------------------------
--| Package : Board Version : 1.0
--------------------------------------------------------------------
--| Abstract : Provides a Board object for a Mahjongg game.
-------------------------------------------... |
with System.Dim.Mks; use System.Dim.Mks;
package Sensors is
subtype Data_Type is Float;
type Timestamp_Type is Mks_Type with Dimension => (Symbol => 's', Second => 1, others => 0);
subtype Valid_Flag is Boolean;
type Sensor_Data_Type is record
Data : Data_Type := 0.0;
isValid : Valid_Flag := FALSE;
end r... |
-- Warning: This file is automatically generated by AFLEX.
-- It is useless to modify it. Change the ".Y" & ".L" files instead.
package CSS.Parser.Lexer_dfa is
aflex_debug : Boolean := False;
yylineno : Natural := 0;
yylinecol : Natural := 0;
yy_last_yylineno : Natural :=... |
with GNAT.Source_Info;
with Ada.Strings.Unbounded;
with AUnit.Assertions; use AUnit.Assertions;
package body ZMQ.Tests.Testcases.Test_Pubsub is
use AUnit;
use Ada.Strings.Unbounded;
MSG_STRING : constant Unbounded_String := To_Unbounded_String ("Query");
----------
-- Name --
----------
functi... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Characters.Wide_Wide_Latin_1;
with League.Regexps;
package body Markdown.Inline_Parsers.Raw_HTML is
function "+" (Text : Wide_Wide_String)... |
-- { dg-do compile }
package Atomic3 is
type Four_Bits is mod 2**4;
type Fourteen_Bits is mod 2**14;
type Twenty_Eight_Bits is mod 2**28;
type Rec1 (Mode : Boolean := True) is record
Reserved : Four_Bits;
case Mode is
when True =>
High_Part : Fourteen_Bits;
Low_... |
-- Copyright 2012-2016 Free Software Foundation, Inc.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body X86Parser is
-- Gets the instruction size for each line
function Get_Instr_Size(Input : Parts_Vector.Vector) return Instr_Vector.Vector is
-- A simple utility ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Directories; use Ada.Directories;
procedure File_Exists is
procedure Print_File_Exist (Name : String) is
begin
Put_Line ("Does " & Name & " exist? " &
Boolean'Image (Exists (Name)));
end Print_File_Exist;
procedure Print_Dir_Exist (Name : ... |
--
-- Copyright (C) 2018, AdaCore
--
-- Copyright (c) 2013, Nordic Semiconductor ASA
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain t... |
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.SAU is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- SAU Control Register
ty... |
with Ada.Text_IO;
with Rev;
procedure Main is
S: String := "programowanie";
begin
Rev.Reve(S);
Ada.Text_IO.Put_Line(S);
end Main;
|
with System;
with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.GPIO; use STM32_SVD.GPIO;
with STM32GD.RTC;
with STM32GD.Board; use STM32GD.Board;
with Drivers.Text_IO;
with R... |
with Datos;
use Datos;
procedure ins ( L : in out Lista; Num : in Integer ) is
-- pre:
-- post: se ha insertado el nuevo valor al comienzo de L
Nuevo : Lista;
begin
Nuevo := new Nodo; -- Creamos un nuevo nodo
Nuevo.Info := Num; -- Asignamos el valor de Num al nuevo nodo
Nuevo.Sig := L; -- El siguiente... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- JSON Parser/Constructor --
-- --
-- -... |
with Ada.Calendar; use Ada.Calendar;
with Ada.Text_IO; use Ada.Text_IO;
with Strings_Edit; use Strings_Edit;
with Strings_Edit.Floats; use Strings_Edit.Floats;
with Strings_Edit.Integers; use Strings_Edit.Integers;
with Generic_Map;
procedure Data_Munging_2 is
package Time_To_Lin... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with System.Address_To_Named_Access_Conversions;
with C.stdlib;
with C.winbase;
with C.windef;
with C.winnls;
with C.winnt;
package body System.Termination is
pragma Suppress (All_Checks);
use type C.signed_int;
package LPSTR_Conv is
new Address_To_Named_Access_Conversions (C.char, C.winnt.LPSTR);
pa... |
private with bsp_h;
package Libtcod.Maps.BSP is
type BSP_Tree is tagged limited private;
-- A reference to a node within a BSP_Tree; can't be constructed directly;
-- used in callbacks
type BSP_Node is tagged limited private;
function make_BSP(x : X_Pos; y : Y_Pos; w : Width; h : Height) return BSP_T... |
--- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Calendar.Formatting;
package body AdaBase.Logger.Base is
package ACF renames Ada.Calendar.Formatting;
-----------------------
-- set_information --
-----------------------
procedur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.