content stringlengths 23 1.05M |
|---|
-- FILE: test_oedipus.adb
-- LICENSE: MIT © 2021 Mae Morella
with Oedipus, Oedipus.Elementary_Functions, Oedipus.Complex_Text_IO, Ada
.Text_IO, Ada.Float_Text_IO, Ada.Exceptions;
use Oedipus, Oedipus.Elementary_Functions, Oedipus.Complex_Text_IO,
Ada.Text_IO, Ada.Float_Text_IO, Ada.Exceptions;
procedure Test_Oedi... |
With
Gnoga.Gui.Element.Form,
Ada.Streams,
NSO.Types,
INI;
Package NSO.Helpers is
Generic
Type Options is (<>);
Procedure Add_Discrete(
Form : in out Gnoga.Gui.Element.Form.Form_Type'Class;
Parent : in out Gnoga.Gui.Element.Form.Selection_Type'Class
);
Procedure Add_Vector(
... |
-- { dg-do compile }
with Ada.Text_IO; use Ada.Text_IO;
procedure Warn11 is
type My_Integer is new Integer range 1 .. 10;
for My_Integer'Size use 65; -- { dg-warning "unused" }
type My_Integer2 is new Integer range 1 .. 10;
for My_Integer2'Size use 129; -- { dg-warning "unused" }
begin
Put_Line ("... |
-- This spec has been automatically generated from STM32F0xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.DAC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_EN1_Field is STM32_SVD.Bit;
... |
with Lv.Style;
package Lv.Objx.Roller is
subtype Instance is Obj_T;
type Style_T is (Style_Bg, Style_Sel);
-- Create a roller object
-- @param par pointer to an object, it will be the parent of the new roller
-- @param copy pointer to a roller object, if not NULL then the new object will be copied... |
with Trendy_Test.Assertions.Discrete;
package Trendy_Test.Assertions.Integer_Assertions
is new Trendy_Test.Assertions.Discrete (Integer); |
-- 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... |
with Ada.Directories;
with Ada.Text_Io; -- TODO unecessary?
with Iictl; -- TODO unecessary?
with Util;
package body Ch_Conn is
package AD renames Ada.Directories;
package ATIO renames Ada.Text_Io;
procedure Rejoin_Channels (Irc_Dir : String) is
Search : AD.Search_Type;
Dir_Ent : AD.Directo... |
package body Smallest_Factor with SPARK_Mode is
procedure SmallestF (N : in out Positive; Factor : out Positive) is
begin
Factor := 2;
for I in Positive range 2 .. N loop
pragma Loop_Invariant (for all J in 2 .. I - 1 => N rem J /= 0);
Factor := I;
if N rem I = 0 then
exit;
... |
-----------------------------------------------------------------------
-- bundles -- Bundle and translation example
-- Copyright (C) 2010, 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 this fi... |
-----------------------------------------------------------------------
-- awa-modules -- Application Module
-- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2016, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");... |
-----------------------------------------------------------------------
-- date -- Print the date
-- Copyright (C) 2011 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 compliance w... |
-- DECLS-D_TAULA_DE_NOMS.adb
-- Procediments per a la taula de noms
package body Decls.D_Taula_De_Noms is
-- Donam els valors per defecte de cada camp.
procedure Tbuida
(Tn : out Taula_De_Noms) is
begin
for I in Tn.Td'Range loop
Tn.Td(I) := Id_Nul;
end loop;
Tn.Nid := 1;
... |
pragma License (Unrestricted); -- public domain
-- translated unit from MurmurHash3
--
-- MurmurHash3 was written by Austin Appleby, and is placed in the public
-- domain. The author hereby disclaims copyright to this source code.
--
-- Ada version: 2014 yt
package Ada.Containers.Murmur_Hash_3 is
-- 32bit versi... |
-- ----------------------------------------------------------------------------
-- Note this is an implementation package and is subject to change att any time.
-- ----------------------------------------------------------------------------
package body DDS.Request_Reply.Requester.Impl is
-------------------
... |
pragma SPARK_Mode;
with Interfaces.C; use Interfaces.C;
with Sparkduino; use Sparkduino;
package body SPARKZumo is
Stop : constant := 0;
Sample_Rate : constant := 500;
procedure RISC_Test
is
Arr : Sensor_Array;
begin
loop
Zumo_Pushbutton.WaitForButton;
Zumo_QTR... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 Felix Krause <contact@flyx.org>
--
-- 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/licen... |
-- Reporter bindings for Ada 95
-- Reporter module by Chris Morison & Martin Avison
-- Ada 95 bindings by Stefan Bellon
with RASCAL.Utility; use RASCAL.Utility;
with RASCAL.OS; use RASCAL.OS;
with Kernel; use Kernel;
with Interfaces.C; use Int... |
with
aIDE.Editor.of_subprogram,
aIDE.Editor.of_block,
aIDE.Editor.of_package,
aIDE.Editor.of_pragma,
aIDE.Palette.of_source_Entities,
aIDE.Palette.of_pragmas,
aIDE.Palette.of_exceptions,
aIDE.Palette.of_types,
adaM.a_Pragma,
Common_Gtk,
Glib,
Glib.Error,
... |
-- Lua.Userdata
-- Adding Ada objects of a specified tagged type to the Lua environment
-- Copyright (c) 2015, James Humphry - see LICENSE for terms
generic
type T is abstract tagged limited private;
package Lua.Userdata is
type Access_Userdata is not null access all T;
type Access_Userdata_Class is not nul... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
with GL.Enums.Getter;
generic
Min_Representation : Types.Int;
Getter_Param : Enums.Getter.Parameter;
package GL.Enums.Indexes is
pragma Preelaborate;
use GL.Types;
Max :... |
with Rep_Clause5_Pkg; use Rep_Clause5_Pkg;
package Rep_Clause5 is
Bad_Number : exception;
Too_Large : exception;
type LNumber_Type is range 0..99999;
procedure Merge_Numbered(LNodes : in out LNodes_Ptr);
end Rep_Clause5;
|
--Colors
package Colors is
type Color_T is (Red, Yellow, Green, Blue, Black);
type Color_Set_T is private;
-- Add a color to the set
procedure Add
(Set : in out Color_Set_T;
Color : Color_T);
-- Remove a color from the set
procedure Remove
(Set : in out Color_Set_T;
C... |
with Ada.Tags.Generic_Dispatching_Constructor;
package generic_dispatch_p is
type Iface is interface;
function Constructor (I : not null access Integer) return Iface is abstract;
function Dispatching_Constructor
is new Ada.Tags.Generic_Dispatching_Constructor
(T => Iface,
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- CE3804F.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 17
with Ada.Containers.Hashed_Sets;
use Ada.Containers;
package Day is
type Location is record
x : Integer := 0;
y : Integer := 0;
z : Integer := 0;
w : Integer := 0;
end record;
function location_hash(key : in Location) return Hash_Type;
package Grid_Set is new Ada.Contai... |
-- { dg-do run }
with Modular3_Pkg; use Modular3_Pkg;
procedure Modular3 is
function F1 (A : Int16_T) return Int16_T is
begin
return A + 128;
end;
function F2 (B : Mod16_T) return Mod16_T is
begin
return B + 128;
end;
A : Int16_T := 16384;
B : Mod16_T := 65504;
begin
A := F1 (A);
if A... |
generic
type Real is digits <>;
package pc_2_coeff_22 is
subtype PC_Rule_Range is Integer range 0..31;
type Integration_Rule is array(PC_Rule_Range) of Real;
Starting_Id_of_First_Deriv_of_Y : constant PC_Rule_Range := 15;
-- Center_Integration Rule, applied to (d/dt)**2 Y, takes a dY/dt here, and
... |
with BB_Pico_Bsp.I2C;
package body BB_Pico_Bsp.Keyboard is
Device : BBQ10KBD.BBQ10KBD_Device (BB_Pico_Bsp.I2C.Port);
------------------
-- Key_FIFO_Pop --
------------------
function Key_FIFO_Pop return BBQ10KBD.Key_State is
begin
return Device.Key_FIFO_Pop;
end Key_FIFO_Pop;
--------... |
with Ada.Exceptions;
with Ada.Unchecked_Conversion;
with Interfaces.C.Strings;
with System.Address_To_Access_Conversions;
with System.Storage_Elements;
with System.Unwind.Foreign;
with C.unwind;
procedure exception_cpp is
pragma Linker_Options ("-lstdc++");
use type Interfaces.C.char_array;
use type System.Storage_E... |
with Ada.Text_IO;
procedure Knapsack_Unbounded is
type Bounty is record
Value : Natural;
Weight : Float;
Volume : Float;
end record;
function Min (A, B : Float) return Float is
begin
if A < B then
return A;
else
return B;
end if;
end Min;
Pana... |
with TEXT_IO;
with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE;
with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE;
with ADDONS_PACKAGE; use ADDONS_PACKAGE;
with WORD_SUPPORT_PACKAGE; use WORD_SUPPORT_PACKAGE;
package WORD_PACKAGE is
LINE_NUMBER, WORD_NUMBER : INTEGER := 0;
type STEM_ARRAY_TYPE is arra... |
pragma License (Unrestricted);
with Ada.Numerics.Complex_Types;
with Ada.Numerics.Generic_Complex_Elementary_Functions;
package Ada.Numerics.Complex_Elementary_Functions is
new Generic_Complex_Elementary_Functions (Complex_Types);
pragma Pure (Ada.Numerics.Complex_Elementary_Functions);
|
-- Generated at 2017-06-29 18:53:35 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-fallback_render-maps.sx
package Natools.Static_Maps.Web.Fallback_Render is
pragma Pure;
type Command is
(Unknown,
Current_Time,
Cookies,
Comment_Cookie_Filter,
Comment_Cookie_Link,
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
---------------------------------------------------------------------------------
-- package Banded_LU, LU decomposition, equation solving for banded matrices
-- Copyright (C) 1995-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is... |
package tools is
protected Output is
procedure Puts(str: String; num:Natural:=0);
end Output;
generic
type T is (<>);
package Random_Generator IS
--package Gen is new Ada.Numerics.Discrete_Random(T);
function GetRandom return T;
end Random_Generator;
end to... |
pragma License (Unrestricted);
-- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux)
with C;
package System.Zero_Terminated_Strings is
pragma Preelaborate;
function Value (Item : not null access constant C.char) return String;
function Value (Item : not null access constant C.char; Length ... |
-- { dg-do compile }
package body Forward_Anon is
function Get_Current return access Object is
begin
return Current_Object;
end;
end;
|
-- $Id: Sets.md,v 1.5 1993/08/18 15:06:51 grosch rel $
-- $Log: Sets.md,v $
-- Ich, Doktor Josef Grosch, Informatiker, Sept. 1994
with DynArray, Text_Io; use Text_Io;
package Sets is
package Bool_DA is new DynArray (Boolean); use Bool_DA;
type tSet is record
BitsetPtr : Bool_DA.FlexArray;
MaxElmt : ... |
with AUnit.Test_Fixtures;
with AUnit.Test_Suites;
package SHA1_Streams_Tests is
function Suite return AUnit.Test_Suites.Access_Test_Suite;
private
type Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record;
procedure SHA1_Test (Object : in out Fixture);
procedure SHA1_One_Million_Test (Object :... |
-- { dg-do run }
with Ada.Direct_IO;
procedure Test_Direct_IO is
package BDIO is new Ada.Direct_IO (Boolean);
use BDIO;
FD : File_Type;
begin
Create (FD, Form => "shared=yes");
Reset (FD);
Close (FD);
end Test_Direct_IO;
|
-- ----------------------------------------------------------------
-- text_create.adb
--
-- Oct/10/2011
--
-- ----------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams;
with Ada.Command_Line;
--... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure Aggr17 is
type Enum is (A, B);
type Rec (D : Enum := Enum'First) is record
case D is
when A => X : Integer;
when B => null;
end case;
end record;
for Rec'Size use 128;
pragma Volatile (Rec);
type Config_T (D :... |
-- { dg-do compile }
procedure aggr8 is
type Byte is mod 2 ** 8;
subtype two is integer range 1..2;
-- type Sequence is array (1 .. 2) of Byte;
type Sequence is array (Two) of Byte;
type Block is record
Head : Sequence := (11, 22);
end record;
procedure Nest is
Blk : Bloc... |
with Ada.Strings.Bounded;
package Labels is
Max_Label_Length : constant := 128;
package Bounded_Labels is
new Ada.Strings.Bounded.Generic_Bounded_Length (Max_Label_Length);
subtype Label_Type is Bounded_Labels.Bounded_String;
function "+" (X : String) return Label_Type
is (Bounded_Labels.To_... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO.Formatting;
with System.Formatting.Float;
with System.Formatting.Literals.Float;
package body Ada.Text_IO.Float_IO is
procedure Put_To_Field (
To : out String;
Fore_Last, Last : out Natural;
Item : Num;
Aft : Field;
Exp : Field);
procedure Put_To_Field (
To : ... |
address=/p.tanx.com/0.0.0.0
address=/googlesyndication.com/0.0.0.0
address=/linkvans.com/0.0.0.0
server=/valf.atm.youku.com/114.114.114.114
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with System.Storage_Elements;
package body Ada.Command_Line.Argument_Parsing is
use type System.Address;
use type System.Storage_Elements.Storage_Offset;
function memchr (
s : System.Address;
c : Integer;
n : System.Storage_Elements.Storage_Count)
return System.Address
with Impor... |
package array2 is
type RIC_TYPE is (RIC1, RIC2);
for RIC_TYPE'SIZE use 32;
function MAX return Integer;
end array2;
|
package body Reverser with
SPARK_Mode
is
procedure Reverse_Array (A : in out Array_Of_Items) is
begin
for I in A'Range
loop
exit when Is_Full;
Push (A (I));
end loop;
for J in A'Range
loop
exit when Is_Empty;
Pop (A (J));
end loop;
end... |
with Ada.Text_IO, History_Variables;
procedure Test_History is
package Int_With_Hist is new History_Variables(Integer);
-- define a history variable
I: Int_With_Hist.Variable;
Sum: Integer := 0;
begin
-- assign three values
I.Set(3);
I.Set(I.Get + 4);
I.Set(9);
-- non-destructively dis... |
-- { dg-do run }
-- { dg-options "-gnat12" }
procedure In_Out_Parameter2 is
function F (I : In Out Integer) return Boolean is
A : Integer := I;
begin
I := I + 1;
return (A > 0);
end;
I : Integer := 0;
B : Boolean;
begin
B := F (I);
if B then
raise Program_Error;
end if;
if I /= 1 t... |
-- Auto_Counters_Suite.Refcounted_KVFlyweights_Tests
-- Unit tests for Auto_Counters Refcounted KVFlyweights packages
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package Auto_Counters_Suite.Refcounted_KVFlyweights_Tests is
... |
-- C43205K.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... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with TJa.Sockets; use TJa.Sockets;
with TJa.Window.Text; use TJa.Window.Text;
with TJa.Window.Elementary; use TJ... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
-----------------------------------------------------------------------
-- nodes-core -- Core nodes
-- Copyright (C) 2009, 2010, 2011, 2012, 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 f... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Application;
with League.String_Vectors;
with Hello_World;
with Jupyter.Start_Kernel;
procedure Hello_World_Run is
Kernel : Hello_World.... |
with PolyPaver.Floats;
--# inherit PolyPaver.Floats;
package Peak is
function Max (X,Y : Float) return Float ;
--# return R => (R = X and X >= Y) or (R = Y and Y >= X);
--Y_Min : constant := 0.0 ;
--Y_Max : constant := 1.0 ; -- 100.0 ;
--subtype Iy is Float range 0.0 .. 1.0 ;
--subtype Iy is Float range... |
------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2001-2016, AdaCore --
-- ... |
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;
with Ada.Containers.Vectors;
use Ada.Containers;
procedure AccomRoomSize is
type LengthCM is new Integer;
type AreaCM2 is new Integer;
type RoomType is
(Lau... |
with Ada.Interrupts; use Ada.Interrupts;
with Ada.Interrupts.Names; use Ada.Interrupts.Names;
package Sigint_Handler is
protected Handler is
entry Wait;
procedure Handle;
pragma Interrupt_Handler(Handle);
pragma Attach_Handler(Handle, Sigint);
private
Call_Count : Natural := 0... |
-----------------------------------------------------------------------
-- are-generator-tests -- Tests for generator
-- Copyright (C) 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 this file ex... |
with GNAT.OS_Lib;
private with Littlefs;
package FSmaker.Target.LittleFS is
subtype Parent is Filesystem;
type Instance
is new Parent
with private;
overriding
procedure Format (This : in out Instance;
FD : GNAT.OS_Lib.File_Descriptor;
Size : ... |
with GNAT.Source_Info;
with Ada.Strings.Unbounded;
with AUnit.Assertions; use AUnit.Assertions;
with GNAT.Spitbol; use GNAT.Spitbol;
package body ZMQ.Tests.Testcases.Test_REQRESP is
use AUnit;
use Ada.Strings.Unbounded;
REQUEST_STRING : constant Unbounded_String := V ("Query");
RESPONSE_STRING : constan... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_95;
pragma Warnings (Off);
pragma Source_File_Name (ada_main, Spec_File_Name => "b__lr-main.ads");
pragma Source_File_Name (ada_main, Body_File_Name => "b__lr-main.adb");
pragma Suppress (Overflow_Check);
with System.Restrictions;
with Ada.Exceptions;
package body ada_main is
E013 : Short_Integer; prag... |
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
private with Ada.Finalization;
private with Regions.Shared_Lists;
limited private with Regions.Contexts.Environments.Nodes;
package Regions.Contexts.Enviro... |
--
-- ABench2020 Benchmark Suite
--
-- Parallel Factorial 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.Command_Line; use Ada.Command_Line... |
package Units is
type TramNumber is new Integer range -1 .. 100;
type SteeringNumber is new Integer range -1 .. 100;
procedure Dummy;
end Units;
|
------------------------------------------------------------------------------
-- --
-- JSON Parser/Constructor --
-- --
-- -... |
-----------------------------------------------------------------------
-- util-streams-tests -- Unit tests for encoding buffered streams
-- Copyright (C) 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
-----------------------------------------------------------------------
-- gen-artifacts-query -- Query artifact for Code Generator
-- Copyright (C) 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Wid_Enum is
pragma Pure;
-- required for Enum'Width by compiler (s-widenu.ads)
function Width_Enumeration_8 (
Names : String;
Indexes : Address;
Lo, Hi : Natural)
return Natural;
function Wid... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Calendar; use Ada.Calendar;
with Apsepp.Test_Node_Class; use Apsepp.Test_Node_Class;
package Apsepp.Test_Reporter_Data_Struct_Class.Impl.Testing is
type Node_Tag_W_Parent_Index is record
... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- asf-contexts-exceptions -- Exception handlers in faces context
-- Copyright (C) 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
-- SPDX-FileCopyrightText: 2019-2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Characters.Conversions;
with Ada.Command_Line;
with Ada.Wide_Wide_Text_IO;
with Program.Compilation_Unit_Vectors;
with Program.Compilation_Un... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with bits_types_u_sigset_t_h;
package bits_types_sigset_t_h is
-- A set of signals to be blocked, unblocked, or waited for.
subtype sigset_t is bits_types_u_sigset_t_h.uu_sigset_t; -- /usr/include/bits/types/sigset_t.h:7
end b... |
with HWIF; use HWIF;
package Tasks is
task ButtonPressed is
entry Pressed(this : in Direction);
end ButtonPressed;
end Tasks;
|
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.POWERQUAD is
pragma Preelaborate;... |
-- Copyright 2019-2021 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... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
procedure Loop_Statement is
begin
loop
null;
end loop;
end Loop_Statement;
|
private
package Testsuite.Encode.Multiframe_Tests is
procedure Add_Tests (Suite : in out AUnit.Test_Suites.Test_Suite'Class);
end Testsuite.Encode.Multiframe_Tests;
|
-- The Beer-Ware License (revision 42)
--
-- Jacob Sparre Andersen <jacob@jacob-sparre.dk> wrote this. As long as you
-- retain this notice you can do whatever you want with this stuff. If we meet
-- some day, and you think this stuff is worth it, you can buy me a beer in
-- return.
--
-- Jacob Sparre Andersen
w... |
with Ada.Text_IO; use Ada.Text_IO;
package body Config
is
procedure Parse (File_Name : String)
is
function Get_Value (Input : Unbounded_String) return Unbounded_String
is
Result : Unbounded_String;
begin
for I in Index (Input, ":") + 1 .. Length (Input) loop
Resu... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Containers.Vectors; use Ada.Containers;
with Simple_Blockchain.Block;
use Simple_Blockchain;
package Simple_Blockchain.Blockchain is
use type Block.Object;
package Block_Vectors is new Vectors (Index_Type => Positive, Element_Type => Block.Object);
type Blockchain_Difficulty is range 1 .. 64;
... |
with GNAT.Sockets.Connection_State_Machine.HTTP_Server;
with GNAT.Sockets.Server;
package Yaml.Servers is
package HTTP renames GNAT.Sockets.Connection_State_Machine.HTTP_Server;
package Server renames GNAT.Sockets.Server;
type Yaml_Factory (Request_Length : Positive;
Input_Size : ... |
--
-- Copyright (C) 2015-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.
--
-- ... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.DBGMAILBOX is
pragma Preelabora... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32F3x4.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.RCC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_HSITRIM_Field is HAL.UInt5;
subt... |
------------------------------------------------------------------------------
-- Copyright (c) 2020,2021 Protean Code Limited
-- All rights reserved.
--
-- "Simplified" (2-Clause) BSD Licence
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the ... |
separate(practica4)--funcion para saber que esta separado
--del fichero de prueba
procedure Separar(R_Total: in Unbounded_String;
R_Letra: out Unbounded_String;
R_numer: out Unbounded_String) is
Todo:constant string:=" ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
--Es la ristra que se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.