content stringlengths 23 1.05M |
|---|
with Ada.Text_IO;
use Ada.Text_IO;
package body Alumnos is
package Escuela_IO is new Enumeration_IO(Tipo_Escuela);
procedure Escribe (Alu : in Alumno) is
begin
Put_Line("--------------------------");
Put("Nombre : ");
Put_Line(Alu.Nombre(1..Alu.N_Nombre));
Put_Line("Telefono : "&Alu.Te... |
with Ada.Containers.Vectors;
with Ada.Containers.Ordered_Maps;
separate (WFC)
function Initialize_From_Sample
( Sample : in Element_Matrix;
Include_Rotations : in Boolean := False;
Include_Reflections : in Boolean := False;
N, M : in Positive := 2
) return Instance
is
... |
with Ada.Command_Line;
with Ada.Environment_Variables;
procedure cmdline is
Count : Natural;
type String_Access is access String;
type Pair is record
Name, Value : String_Access;
end record;
Rec : array (1 .. 255) of Pair;
begin
Ada.Debug.Put (Ada.Command_Line.Command_Name);
-- iterate command line arguments
... |
-- A49027B.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 COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2016, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- { dg-do compile }
-- { dg-options "-O" }
package VFA2 is
type Bit is mod 2**1
with Size => 1;
type UInt2 is mod 2**2
with Size => 2;
type UInt22 is mod 2**22
with Size => 22;
type MODE_ENUM is
(
Function_0_Default,
Function_1,
Function_2,
Function_3,
F... |
with GESTE;
with GESTE.Grid;
with GESTE.Tile_Bank;
with Ada.Text_IO;
with Console_Char_Screen;
procedure Grids is
package Console_Screen is new Console_Char_Screen
(Width => 20,
Height => 20,
Buffer_Size => 256,
Init_Char => ' ');
Palette : aliased constant GESTE.Palette_Ty... |
pragma License (Unrestricted);
-- extended unit
private with Ada.Finalization;
private with System.Native_IO.Sockets;
package Ada.Streams.Stream_IO.Sockets is
-- There are subprograms to create socket.
pragma Preelaborate;
type Port_Number is range 0 .. 16#ffff#;
type Socket_Address is private;
-- ... |
-----------------------------------------------------------------------
-- css-commands -- Commands for CSS tools
-- 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 use this file except... |
-- 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 the above copyright notice, this
-- lis... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- search-fields -- Document fields
-- Copyright (C) 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in co... |
with Ada.Directories;
with Ada.Environment_Variables;
package body SP.Platform is
function Home_Dir return String is
package Env renames Ada.Environment_Variables;
User_Profile : constant String := "HOME";
begin
if Env.Exists (User_Profile) then
return Ada.Directories.Full_... |
-----------------------------------------------------------------------
-- asf-lifecycles-tests - Tests for ASF lifecycles
-- Copyright (C) 2012 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... |
with System.Storage_Elements;
with Ada.Containers.Formal_Hashed_Maps;
package body TLSF.Proof.Model.Context With
SPARK_Mode,
Refined_State => (State => Block_Models)
is
package SSE renames System.Storage_Elements;
package AC renames Ada.Containers;
function Hash (Addr : System.Address) return AC.Hash_Typ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_11.Main is
begin
Put_Line ("Day-11");
end Adventofcode.Day_11.Main;
|
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
private with Ada.Strings.Unbounded;
package Regex.Utilities.String_Buffers is
-- String buffer type:
type String_Buffer is tagged lim... |
generic
type Float_Type is digits <>;
Gravitation : Float_Type;
package Pendulums is
type Pendulum is private;
function New_Pendulum (Length : Float_Type;
Theta0 : Float_Type) return Pendulum;
function Get_X (From : Pendulum) return Float_Type;
function Get_Y (From : ... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure Two_Tasks is
T1 : constant := 1.1;
T2 : constant := 2.67;
task Thread1;
task Thread2;
task body Thread1 is begin
loop Put_Line("Thread 1 calling!");
delay T1;
end loop;
end Thread1;
task body Thread2 is begin
loop Put_Line("Thread 2 calling... |
-- 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... |
-- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE FILE
--
-- Pleas... |
-- Swaggy Jenkins
-- Jenkins API clients generated from Swagger / Open API specification
--
-- The version of the OpenAPI document: 1.1.2_pre.0
-- Contact: blah@cliffano.com
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.4.0.
-- https://openapi-generator.tech
-- Do not edit the class manually.... |
------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with System;
package Opt21_Pkg is
type R is record
Ptr : System.Address := System.Null_Address;
end record;
type Obj is access all R;
function Get_Object (Object : not null access R) return System.Address;
function Convert (W : Obj) return System.Address;
end Opt21_Pkg;
|
with Ada.Unchecked_Deallocation;
with Date.Api;
package body Benchmark_Date is
package Skill renames Date.Api;
use Date;
use Skill;
type State_Type is access Skill_State;
State : State_Type;
procedure Create (N : Integer; File_Name : String) is
begin
State := new Skill_State;
Skill... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with power_Station; use power_Station;
procedure Main
is
begin
Start_Reactor;
end Main;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
with Ada.Command_Line, Ada.Text_IO, Ada.Strings.Fixed;
procedure Rep_String is
function Find_Largest_Rep_String(S:String) return String is
L: Natural := S'Length;
begin
for I in reverse 1 .. L/2 loop
declare
use Ada.Strings.Fixed;
T: String := S(S'First .. S'First + I-1); -- the first I ... |
-- { dg-do compile }
-- { dg-options "-O -w" }
package body Vect9 is
function Cmove
(X : in Unit;
Y : in Unit;
If_True : in Unit;
If_False : in Unit)
return Unit
is
Res : Unit;
begin
for P in Unit'Range loop
if X (P) >= Y (P) then
... |
with Ada.Real_Time;
with XAda.Dispatching.TTS;
generic
with package TTS is new XAda.Dispatching.TTS(<>);
package TT_Patterns is
type Task_State is abstract tagged record
Release_Time: Ada.Real_Time.Time := Ada.Real_Time.Time_First;
Work_Id : TTS.TT_Work_Id;
Sync_Id : TTS.TT_Sync_Id;
end re... |
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package Interface_utils
with SPARK_Mode
is
function Convert_C_Bool(input : in Extensions.bool) return Boolean
with
Global => Null;
end Interface_utils;
|
-- Copyright (c) 2021, Karsten Lueth (kl@kloc-consulting.de)
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice... |
pragma License (Unrestricted);
-- implementation unit required by compiler
private package Ada.Real_Time.Delays is
-- required for delay until statement by compiler (a-retide.ads)
procedure Delay_Until (T : Time);
-- required by compiler (a-retide.ads)
-- for select or delay expanded to Timed_Task_Ent... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Compilation_Units;
with Program.Symbol_Lists;
package Program.Unit_Dependencies is
pragma Preelaborate;
type Unit_Dependency_Listener i... |
package physics.Shape
--
-- Models a physical shape.
--
is
type Item is limited interface;
type View is access all Item'Class;
procedure define (Self : in out Item) is abstract;
procedure free (Self : in out View);
procedure Scale_is (Self : in out Item; Now : in math.Vector_3) is abstract;
p... |
-- Generated at 2014-11-09 20:46:38 +0000 by Natools.Static_Hash_Maps
-- from src/natools-static_hash_maps-s_expressions-hash_maps.sx
with Natools.Static_Hash_Maps.S_Expressions.Command_Pkg;
with Natools.Static_Hash_Maps.S_Expressions.Command_Map;
package body Natools.Static_Hash_Maps.S_Expressions.Command_Maps is
... |
with Ada.Strings.Unbounded;
package Animals.Humans is
type Human is new Animals.Animal with private;
type Sex_Type is (Male, Female);
function Make
(Name : String;
Sex : Sex_Type)
return Human;
function Get_Name (H : Human) return Ada.Strings.Unbounded.Unbounded_String;
... |
with Ada.Text_IO; use Ada.Text_IO;
package body oop_mixin_compositor is
overriding
procedure simple(Self : Mixin) is
begin
Self.inner.simple;
end;
overriding
procedure compound(Self : Mixin) is
begin
Self.inner.compound;
end;
overriding
procedure redispatching... |
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2018 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... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Text_IO;
with Glfw.Windows.Context;
with Glfw.Windows.Hints;
with Glfw.Input.Keys;
with Glfw.Errors;
package body GL_Test.Display_Backend is
type Test_Window is new Glfw.Windows.Window wit... |
package freetype_c.FT_Size_Metrics
is
type Item is
record
X_ppem : aliased FT_UShort;
Y_ppem : aliased FT_UShort;
X_Scale : aliased FT_Fixed;
Y_Scale : aliased FT_Fixed;
Ascender : aliased FT_Pos;
Descender : aliased FT_Pos;
... |
-- { dg-do run }
-- { dg-options "-O2" }
with System;
with Opt21_Pkg; use Opt21_Pkg;
procedure Opt21 is
V : System.Address := Convert (null);
begin
null;
end;
|
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2007 - 2018 Gautier de Montmollin
-- SWITZERLAND
--
-- 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... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, Fabien Chouteau --
-- --
-- ... |
procedure RangeV2 is
type BitsFake is range -(123-35*2) .. 6*(2 + 30) - 1;
type Bits30 is range 0 .. (2 ** 30) - 1;
for Bits30'Size use 30;
type Signed_Bits26 is range -2 ** 25 .. (2 ** 25) - 1;
for Signed_Bits26'Size use 26;
begin
null;
end RangeV2;
|
-- { dg-do compile }
-- { dg-options "-gnatws" }
package body remote_type is
procedure Append
(Container : in out List;
New_Item : in Element_Type)
is
begin
null;
end Append;
procedure Read
(S : access Root_Stream_Type'Class;
L : out List)
is
begin
null;
... |
-- This file is freely given to the Public Domain.
--
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Streams.Stream_IO;
with Vole_Tokens;
with kv.avm.Vole_Lex;
with Vole_Lex_IO;
with kv.avm.vole_parser;
with kv.avm.vole_tree;
with kv.av... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with bits_types_h;
with bits_types_u_mbstate_t_h;
package bits_types_u_fpos_t_h is
-- The tag name of this struct is _G_fpos_t to preserve historic
-- C++ mangled names for functions taking fpos_t arguments.
-- That name shoul... |
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 triangles is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams... |
generic
Size : Positive;
package Pack13_Pkg is
type Object is private;
private
type Bit is range 0 .. 1;
for Bit'size use 1;
type Object is array (1 .. Size) of Bit;
pragma Pack (Object);
end Pack13_Pkg;
|
-----------------------------------------------------------------------
-- helios-tools-files -- File parsing utilities for Helios
-- 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... |
------------------------------------------------------------------------------
-- Ada Web Server --
-- --
-- Copyright (C) 2011-2012, AdaCore --
-- ... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal 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 Lic... |
package body Regions.Contexts is
procedure New_Profile
(Self : in out Context'Class;
Key : Profile_Key;
Result : out Profile_Id);
----------------------
-- Append_Parameter --
----------------------
procedure Append_Parameter
(Self : in out Context;
Origin : Pr... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Buffers;
with GL.Types.Colors;
private with GL.Low_Level;
package GL.Blending is
pragma Preelaborate;
type Blend_Factor is (Zero, One, Src_Color, One_Minus_Src_Color, Src_Alpha,
... |
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistr... |
with Xmlhelpers;
with Ada.Containers;
package body Generator.Rssfeed is
use Ada.Containers;
use Ada.Characters.Conversions;
package DIR renames Ada.Directories;
function Create (
Posts : Document_Container.List;
Targetpath : String;
Site_Set : Translate_Set) return String is
... |
-- { dg-do run }
-- { dg-options "-O -gnatp" }
with Volatile11_Pkg; use Volatile11_Pkg;
procedure Volatile11 is
Value : Integer := 1;
Bit1 : Boolean := false;
pragma Volatile (Bit1);
Bit2 : Boolean := false;
pragma Volatile (Bit2);
Bit3 : Boolean := false;
pragma Volatile (B... |
with Interfaces;
package body STM32F4xx is
use type Interfaces.Unsigned_32;
PLL_M : constant := 25;
PLL_N : constant := 226;
PLL_P : constant := 2;
PLL_Q : constant := 7;
procedure Initialise is
begin
-- FPU settings
-- Reset the RCC clock configuration to the default reset state.
... |
pragma License (Unrestricted);
with Ada.Text_IO;
package Ada.Integer_Text_IO is new Text_IO.Integer_IO (Integer);
|
package body A_Stack with
SPARK_Mode,
-- The_Stack is actually refined into three constituents
Refined_State => (The_Stack => (P, V, M))
is
subtype Pointer_T is Integer range 0 .. Stack_Size;
subtype Index_T is Pointer_T range 1 .. Pointer_T'Last;
P : Pointer_T := 0;
V : array (Inde... |
-- { dg-do compile }
-- { dg-options "-O -gnatn -Winline" }
with Inline11_Pkg; use Inline11_Pkg;
procedure Inline11 is
begin
Trace (0);
end;
|
-- { dg-do run }
with Ada.Unchecked_Deallocation;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Tagged_Alloc_Free is
type Test_Base is tagged null record;
type Test_Class_Access is access all Test_Base'Class;
type Test_Extension is new Test_Base with record
Last_Name : Unbounded_String :... |
-- This spec has been automatically generated from STM32F030.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.I2C is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_PE_Field is STM32_SVD.Bit;
... |
--
-- Uwe R. Zimmer, Australia, July 2015
--
with Real_Type; use Real_Type;
with Swarm_Structures_Base; use Swarm_Structures_Base;
with Vectors_3D; use Vectors_3D;
with Vehicle_Message_Type; use Vehicle_Message_Type;
package Vehicle_Interface is
-----------
-- State --
-----------
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with CUPS.sys_types_h;
with CUPS.stdio_h;
with Interfaces.C_Streams;
private package CUPS.bits_uio_h is
UIO_MAXIOV : constant := 1024; -- bits/uio.h:39
-- Copyright (C) 1996-2016 Free Software Foundation, Inc.
--... |
generic
package root.child is
type Base_Type is abstract new Base_Interface with null record;
type Derived_Type is abstract new Base_Type and Derived_Interface with null record;
end root.child;
|
with Numerics, Numerics.Sparse_Matrices, Auto_Differentiation, Ada.Text_IO;
use Numerics, Numerics.Sparse_Matrices, Auto_Differentiation, Ada.Text_IO;
-- with Forward_AD, Forward_AD.Hamiltonian, Ada.Text_IO, Numerics;
-- use Forward_AD, Forward_AD.Hamiltonian, Ada.Text_IO, Numerics;
procedure AD_Test is
A :... |
-- Copyright 2019-2020 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.
--
-- ... |
----------------------------------------------------------------------------
-- Symbolic Expressions (symexpr)
--
-- Copyright (C) 2012, Riccardo Bernardini
--
-- This file is part of symexpr.
--
-- symexpr is free software: you can redistribute it and/or modify
-- it under the t... |
-----------------------------------------------------------------------
-- ado-objects -- Database objects
-- Copyright (C) 2009 - 2020 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... |
-----------------------------------------------------------------------
-- wiki-filters-html -- Wiki HTML filters
-- Copyright (C) 2015, 2019, 2020 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... |
package body AFRL.CMASI.MissionCommand.SPARK_Boundary with SPARK_Mode => Off is
-------------------
-- Get_VehicleID --
-------------------
function Get_VehicleID
(Command : MissionCommand) return Int64
renames getVehicleID;
end AFRL.CMASI.MissionCommand.SPARK_Boundary;
|
package Renaming10 is
type Rec is record
Position : Natural;
end record;
function F (Input : Rec) return Natural;
end Renaming10;
|
------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
separate (Formatter.Get)
procedure Format_character (Data : in Contents;
In_The_String : in out String;
Location : in out Natural;
Width : in Natural := 0;
Left_Ju... |
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2000 - 2018 Gautier de Montmollin (maintainer)
-- SWITZERLAND
--
-- 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 restricti... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
package SDL_keycode_h is
SDLK_SCANCODE_MASK : constant := (2**30); -- ..\SDL2_tmp\SDL_keycode.h:47
-- arg-macro: function SDL_SCANCODE_TO_KEYCODE (X)
-- return X or SDLK_SCANCODE_MASK;
-- unsupporte... |
package Aggr16_Pkg is
type Time_Type is (A, B);
type Time (D : Time_Type := A) is private;
Null_Time : constant Time;
private
type Hour is record
I1 : Integer;
I2 : Integer;
end record;
type Time (D : Time_Type := A) is record
case D is
when A =>
A_Time : Integer;
when ... |
-- { dg-do compile }
with My_Env_Versioned_Value_Set_G;
package body Env_Compile_Capacity is
generic
with package Env_Obj_Set_Instance is
new My_Env_Versioned_Value_Set_G(<>);
with function Updated_Entity (Value : Env_Obj_Set_Instance.Value_T)
return Boolean is <>;
with package Entity_Upd... |
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Vectors;
with Ada.Integer_text_IO;
procedure Main is
package Vector_Pkg is new Vectors(Index_Type => Natural,
... |
with STM32.F429Z; use STM32.F429Z;
use STM32.F429Z.Modules.GPIO;
with STM32.F4.GPIO.Ports; use STM32.F4.GPIO.Ports;
with Ada.Real_Time; use Ada.Real_Time;
procedure LED_Flasher_429disco is
Period: constant Time_Span := Milliseconds(250);
On_Time: constant Time_Span := Milliseconds(10);
Now: Time :=... |
package @_Project_Name_@ is
pragma Pure;
Host : constant String := "@_host_@";
Port : constant := @_port_@;
end @_Project_Name_@;
|
with kv.avm.Clients;
package kv.avm.Servers is
type Server_Interface is interface;
type Server_Access is access all Server_Interface'CLASS;
function Is_Connection_Waiting(Self : Server_Interface) return Boolean is abstract;
function Get_Connection(Self : Server_Interface) return kv.avm.Clients.Client_Ac... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with LSP.Messages;
with LSP.Types;
package Ada_Wellknown is
procedure Initialize;
function Attributes return LSP.Messages.Com... |
package TEST is
USART1RX : constant String := "__vector_36";
procedure Handle_Interrupt_USART1_RX;
pragma Machine_Attribute
(Entity => Handle_Interrupt_USART1_RX,
Attribute_Name => "signal");
pragma Export
(Convention => C,
Entity => Handle_Interrupt_USART1_RX,
... |
--//////////////////////////////////////////////////////////
-- 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... |
with Interfaces;
package Tkmrpc.Types is
subtype Byte is Interfaces.Unsigned_8;
subtype Byte_Sequence_Range is Natural range 0 .. 2 ** 31 - 2;
type Byte_Sequence is array (Byte_Sequence_Range range <>) of Byte;
type Request_Id_Type is new Interfaces.Unsigned_64;
type Version_Type is new Interfaces.Un... |
package Opt51_Pkg is
type Enum is (One, Two, Three);
end Opt51_Pkg;
|
-------------------------------------------------------------------------------
-- package body Disorderly.Random, Non-linear Random Number Generator
-- 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 hereby gra... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Numerics;
with PortAudioAda; use PortAudioAda;
package PaTest_TooManySines_Types is
Max_Sines : constant := 500;
Max_Load : constant := 1.2;
Sample_Rate : constant := 44100.0;
Frames_Per_Buffer : constant := 512;
Pi : constant := Ada.Numerics.Pi;
Two_P... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Interfaces.C; use Interfaces.C;
with Interfaces; use Interfaces;
with GNAT.Sockets; use GNAT.Sockets;
package Epoll is
Epoll_Error : exception;
type Epoll_Descriptor is private;
type Epoll_Fla... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ type handling in skill --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
with Interfaces.C;
package Crypto
with SPARK_Mode
is
subtype Byte is Interfaces.C.unsigned_char;
subtype Key_Slot is Interfaces.C.int range 0 .. 3;
type Key_Index is range 1 .. 128;
type Key is array (Key_Index) of Byte;
type Data_Index is range 1 .. 1024;
type Data is array (Data_Index) of Byte;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.