content stringlengths 23 1.05M |
|---|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Finalization;
package Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes is
type Test_Runner_Sequential_W_Slave_Tasks
is limited new Test_Runner_Sequential with private;
overriding
pr... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
limited with bits_types_struct_iovec_h;
with sys_types_h;
with bits_types_h;
package sys_uio_h is
-- unsupported macro: UIO_MAXIOV __IOV_MAX
-- Copyright (C) 1991-2021 Free Software Foundation, Inc.
-- This file is part of the... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Report; use Report;
procedure Template is
begin
-- Test header
Test ("TEMPLATE", "Template test for GNU Ada test suite");
begin
-- Body of test
-- Call procedure Failed when detecting a failure
Failed ("Pretend this test failed");
end;
-- Display result
Result;
end Tem... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package Kafka.Topic.Config is
--
-- Creates a new kafka topic config object
--
-- librdkafka equivalent: rd_kafka_topic_conf_new
--
function Create return Topic_Config_Type
with Import => True,
Convention => C,
External_Name => "rd_kafka_topic_conf_new";
... |
with Smallest_Factor; use Smallest_Factor;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
N : Integer := 15;
Factor : Integer;
begin
SmallestF (N, Factor);
Put_Line ("N: " & N'Image);
Put_Line ("Factor: " & Factor'Image);
end Main;
|
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 All Rights Reserved.
--
-- This program 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 (at
-- your option) any later version. T... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
-- Ascon128av12
-- an instantiation of the Ascon-128a (v 1.2) variant of the Ascon Authenticated
-- Encryption Algorithm created by Christoph Dobraunig, Maria Eichlseder,
-- Florian Mendel and Martin Schläffer.
-- Copyright (c) 2018, James Humphry - see LICENSE file for details
pragma SPARK_Mode(On);
with Ascon;
p... |
package body Ada.Strings.UTF_Encoding is
function Contains_BOM_8 (Item : UTF_String) return Boolean;
function Contains_BOM_16BE (Item : UTF_String) return Boolean;
function Contains_BOM_16LE (Item : UTF_String) return Boolean;
function Contains_BOM_32BE (Item : UTF_String) return Boolean;
function Conta... |
package Opt11 is
type String_Ptr is access constant String;
type Form_Type is (Qualified, Unqualified);
type Rec is record
N1, N2, N3 : Natural;
Fixed : String_Ptr;
Form : Form_Type;
Is_Local : Boolean := True;
end record;
pragma Pack (Rec);
procedure Proc;
end Opt11;
|
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.CAN is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- CAN_MCR
type CAN_MCR_Re... |
with Big_Integers; use Big_Integers;
with Types; use Types;
with Conversion; use Conversion;
package Curve25519_Mult with
SPARK_Mode
is
function Multiply (X, Y : Integer_255) return Product_Integer with
Pre => All_In_Range (X, Y, Min_Multiply, Max_Multiply),
Post => +Multiply'Result = (+X) * (... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
--//////////////////////////////////////////////////////////
-- 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... |
-- C35A05D.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... |
-----------------------------------------------------------------------
-- babel-archivers -- File archiver
-- Copyright (C) 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 except in co... |
with Text_IO; use Text_IO;
procedure Hello is
a: Natural := 0;
begin
Put_Line("Helloó, World!");
end Hello; |
generic
type Element_Type is private;
package Generic_Stack is
type T is limited private;
procedure Push( Stack: in out T; Element: in Element_Type );
procedure Pop( Stack: in out T; Element: out Element_Type );
procedure Peek( Stack: in out T; Element: out Element_Type );
function Empty( Sta... |
package body SDL_ttf is
-- ====================================
function Open_Font (file : String; ptsize : C.int) return Font_ptr is
begin
return OpenFont (CS.New_String (file), ptsize);
end Open_Font;
-- ====================================
function Open_Font_Index (file : String;
... |
with Interfaces.C; use Interfaces.C;
with System;
package Warn12_Pkg is
Anysize_Array: constant := 0;
type Sid_And_Attributes is record
Sid : System.Address;
Attributes : Interfaces.C.Unsigned_Long;
end record;
type Sid_And_Attributes_Array
is array (Integer range 0..Anysize_Arr... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Agar.Core.Thin;
with Interfaces.C;
package body Agar.Core.Config is
package C renames Interfaces.C;
use type C.int;
function Load return Boolean is
begin
return Thin.Config.Load = 0;
end Load;
function Save return Boolean is
begin
return Thin.Config.Save = 0;
end Save;
end Agar.Core.Co... |
with Ada.Text_IO; use Ada.Text_IO;
package body Problem_11 is
function Solution_1( G : Grid ) return Integer is
Column, Row : Natural := 0;
Highest_Row : constant Natural := G'Length(1);
Highest_Column : constant Natural := G'Length(2);
Max : Integer := 0;
Temp : Natural := ... |
-- Spécification du module Piles.
generic
Capacite : Integer; -- Nombre maximal d'éléments qu'une pile peut contenir
type T_Element is private; -- Type des éléments de la pile
package Piles is
type T_Pile is limited private; --! "très privé" en Algorithmique !
--! Sur un type privé, on a droit... |
-- Implantation du module Ensembles.
with Ada.Unchecked_Deallocation;
package body Ensembles_Chainage is
-- Libérer la mémoire alloué auparavant.
procedure Free is
new Ada.Unchecked_Deallocation (T_Cellule, T_Ensemble);
procedure Initialiser (Ensemble : out T_Ensemble) is
begin
Ensembl... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
generic
Test_Node_Tag : Tag;
procedure Apsepp.Test_Node_Class.Generic_Assert (Cond : Boolean;
Message : String := "");
|
-----------------------------------------------------------------------
-- druss-commands-status -- Druss status commands
-- Copyright (C) 2017, 2018, 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020-2021 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Regex_Test_Cases;
with AUnit.Test_Caller;
package body Regex_Test_Suite is
package Regex_Test_Caller is new AUnit.Test_Caller (... |
with Ada.Strings.Fixed;
with Ada.Directories;
package body Test is
package Text_IO renames Ada.Text_IO;
package Result_IO is new Ada.Text_IO.Enumeration_IO (Result_t);
package Fixed_Strings renames Ada.Strings.Fixed;
package Strings renames Ada.Strings;
package Directories renames Ada.Dire... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Scanned_Rule_Handlers;
with Program.Scanner_States;
with Program.Source_Buffers;
package ... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 Luke A. Guest
--
-- 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 fr... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- telnet localhost 3776
with Ada.Streams.Stream_IO.Sockets;
procedure socket_server is
Server : Ada.Streams.Stream_IO.Sockets.Listener :=
Ada.Streams.Stream_IO.Sockets.Listen (3776);
begin
pragma Debug (Ada.Debug.Put ("opened"));
declare
File : Ada.Streams.Stream_IO.File_Type;
begin
Ada.Streams.Stream_IO.So... |
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from STM32F7x9.svd
-- This is a version for the STM32F7x9 MCU
package Ada.Interrupts.Names is
-- All identifiers in this unit are implementation defined
pragma Implementation_Defined;
----------------
-- Interrupts -... |
-- { dg-do run }
-- { dg-options "-gnatVa" }
with Unchecked_Conversion;
procedure Unchecked_Convert3 is
type Word is range -(2**15) .. (2**15) - 1;
type UWord is mod (2**16);
function To_Word is new unchecked_conversion (UWord, Word);
function F return UWord is
begin
return 65036;
end;
W : Word ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- 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... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Vectors;
procedure SelfRef is
subtype Seed is Natural range 0 .. 1_000_000;
subtype Num is Natural range 0 .. 10;
type NumList is array (0 .. 10) of Num;
package IO is new Ada.Text_IO.Integer_IO (Natural);
package DVect is new Ada.Containers.Vectors ... |
with Ada.Integer_Text_IO;
with Ada.Text_IO;
with BigInteger; use BigInteger;
package body Problem_16 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
procedure Solve is
Big : constant BigInteger.BigInt := BigInteger.Create(2)**1_000;
Str : constant String := BigInteger.T... |
package Example1 is
procedure Sense ;
procedure Handle_Deadline;
Count : Integer := 0;
Dummy : Integer := 0;
end Example1;
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Strings.Unbounded;
with GL.Types;
package GL.Context is
pragma Preelaborate;
use GL.Types;
type String_List is array (Positive range <>) of
Ada.Strings.Unbounded.Unbounded_Str... |
-- { dg-do run }
with System; use System;
with Ada.Text_IO; use Ada.Text_IO;
procedure Conv1 is
type Short is mod 2**16;
type R_L is record
S : Short;
C : Character;
end record;
for R_L'Bit_Order use Low_Order_First;
for R_L'Scalar_Storage_Order use Low_Order_First;
for R_L use record
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- Render Tests - Unit tests for AWA Wiki rendering
-- Copyright (C) 2013, 2016, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ... |
with AUnit.Test_Cases;
package GStreamer.Rtsp.url.Tests is
use AUnit;
type Test_Case is new AUnit.Test_Cases.Test_Case with null record;
function Name (Test : Test_Case) return Message_String;
procedure Register_Tests (Test : in out Test_Case);
end GStreamer.Rtsp.url.Tests;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Instruction; use Instruction;
-- specification of the VM implementation
package Machine with SPARK_Mode is
-- the VM returns either
-- Success: when the program executes successfully and returns a value
-- IllegalProgram: when the program executes an invalid behaviour
-- CyclesExhausted: when th... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
function F(X: in out Integer) return integer is begin return 0; end;
begin
if F(42) = 0 then new_line; end if;
end;
|
package Inline5_Pkg is
procedure Test (I : Integer);
pragma Inline (Test);
end Inline5_Pkg;
|
------ USANDO IN OUT
procedure Hello is
a: Integer;
b: Float := 2.0 ;
c: Boolean := false;
function uno(a,b:out Boolean; x,y :in Integer) return Boolean is
begin
Put(one);
return a;
end uno;
function dos(a: in out Float; x,y :in Integer) return Boolean is
... |
-- SPDX-FileCopyrightText: 2010-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
package WebIDL.Tokens is
pragma Preelaborate;
type Token_Kind is
('(', ')',
',', '-', '.', ':', ';',
'<',... |
-- C74305A.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... |
-----------------------------------------------------------------------
-- awa-events-dispatchers-tasks -- AWA Event Dispatchers
-- Copyright (C) 2012, 2015, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
procedure Prot1 is
protected type Prot is
procedure Change (x : integer);
private
Flag : Boolean;
end Prot;
type Handle is access protected procedure (X : Integer);
procedure Manage (Ptr : Handle) is
begin
null;
end;
protected body prot is
procedure... |
procedure Input_1 is
generic
type T is private;
type Index is range <>;
type Array_T is array (Index range <>) of T;
Null_Value : T;
with function Img (A, B: T) return boolean;
procedure Generic_Reverse_Array (X : in out Array_T);
procedure Generic_Reverse_Array (X : in out Array_T) is
beg... |
with Ada.Text_IO; use Ada.Text_IO;
with Generic_Taylor_Series;
with Generic_Rational;
procedure Test_Taylor_Series is
package Integer_Rationals is new Generic_Rational (Integer);
package Integer_Taylor_Series is new Generic_Taylor_Series (Integer_Rationals);
use Integer_Taylor_Series;
-- Procedure to ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Numerics.Elementary_Functions;
with Ada.Numerics.Discrete_Random;
with SDL.Video.Windows.Makers;
with SDL.Video.Renderers.Makers;
with SDL.Video.Surfaces;
with SDL.Video.Rectangles;
with SDL.TTFs.Makers;
with SDL.Events.Events;
with SDL.Events.Keyboards;
with SDL.Events.Mice;
procedure Honeycombs is
use S... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Scope_Bound_Locks; use Apsepp.Scope_Bound_Locks;
with Apsepp.Test_Reporter_Class;
with Apsepp.Test_Node_Class.Suite_Stub; use Apsepp.Test_Node_Class.Suite_Stub;
package Apsepp.Test_Node_Class... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- asf-converters -- ASF Converters
-- Copyright (C) 2010 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... |
-----------------------------------------------------------------------
-- security-permissions -- Definition of permissions
-- Copyright (C) 2010, 2011, 2012, 2016, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
pragma License (Unrestricted);
-- runtime unit
with Ada.Exceptions;
package System.Finally is
-- This unit will be linked if these subprograms are called from
-- UNIT__finalize_spec, UNIT__finalize_body, or finalize_library
-- generated by gnatbind.
pragma Preelaborate;
-- implementation of Sav... |
---------------------------------------------------------------------------
-- package body Tridiagonal, symmetric matrix tridiagonalization
-- 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... |
-- Abstract :
--
-- Syntax tree type and operations.
--
-- Design :
--
-- There is one syntax tree for each parallel parser. There is one
-- shared Terminals array (provided by the master parser), matching
-- the actual input text.
--
-- Node contains a Parent component, to make it easy to traverse the
-- tree ... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- 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 f... |
with OpenAL.Thin;
with OpenAL.ALC_Thin;
package body OpenAL.Extension.EFX is
--
-- Auxiliary_Effect_Slot_Is_Valid
--
function Auxiliary_Effect_Slot_Is_Valid
(Extension : in Extension_t;
Slot : in Auxiliary_Effect_Slot_t) return Boolean is
begin
Check_Loaded (Extension);
return Boolea... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
pragma License (Unrestricted);
-- runtime unit
package System.Debug is
pragma Preelaborate;
-- implementation of Ada.Debug
function File return String
with Import, Convention => Intrinsic;
function Line return Positive
with Import, Convention => Intrinsic;
function Source_Location retur... |
package Sorts is
type Integer_List is array (Integer range <>) of Integer;
procedure Sort(List : in out Integer_List);
procedure Display_List (List : in Integer_List);
end Sorts;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... |
-- 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... |
-- { dg-do run }
-- { dg-options "-gnatws" }
procedure View_Conversion1 is
type Matrix is array (Integer range <>, Integer range <>) of Float;
S1 : Matrix (-3 .. -2, 2 .. 3) := ((2.0, -1.0), (-1.0, 2.0));
S2 : Matrix (1 .. 2, 1 .. 2) := S1;
S3 : Matrix (2 .. 3, -3 .. -2);
S4 : Matrix (1 .. 2, 1 .. 2);... |
-- 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... |
-----------------------------------------------------------------------
-- gen-model-enums -- Enum definitions
-- Copyright (C) 2011, 2012, 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 fi... |
package Version with Preelaborate is
Current : constant String := "0.0.1";
Name : constant String := "WebsiteGenerator";
Link : constant String := "https://github.com/bracke/websitegenerator";
private
end Version; |
procedure Array_Test is
A, B : array (1..20) of Integer;
-- Ada array indices may begin at any value, not just 0 or 1
C : array (-37..20) of integer
-- Ada arrays may be indexed by enumerated types, which are
-- discrete non-numeric types
type Days is (Mon, Tue, Wed, Thu, Fri, Sat, Sun);
type Ac... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
function F return character is
begin return 'a';
end F;
function G(C: Character) return character is
begin return c;
end G;
begin
Put(F); New_Line;
Put(G('b')); New_Line;
Put(G(F)); New_Line;
end;
|
with Interfaces.C; use Interfaces.C;
with SDL_SDL_events_h; use SDL_SDL_events_h;
with SDL_SDL_keysym_h; use SDL_SDL_keysym_h;
package body Keyboard is
Is_Pressed : array (Key_Kind) of Boolean := (others => False);
------------
-- Update --
------------
procedure Update is
Evt : aliased SDL... |
------------------------------------------------------------------------------
-- Copyright (C) 2017-2020 by Heisenbug Ltd. (gh+saatana@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by... |
with HAL; use HAL;
package Random is
function Next
return UInt16;
function In_Range
(First, Last : Natural)
return Natural;
end Random;
|
with Semantica.Declsc3a,
Pilas,
Decls.Dgenerals;
use Semantica.Declsc3a;
package Semantica.gci is
Camp_Nul : constant Camp := (Const, Var_Nul);
type T_Param is record
Base, Despl : num_Var;
end record;
procedure Genera
(Instr : in tInstruccio;
C1 : in Camp := Camp_Nul;
C2 ... |
-- DECLS-DTSIMBOLS.ads
-- Declaracions de taula de simbols
with Decls.Dtdesc,
Decls.Dgenerals,
Decls.D_Taula_De_Noms,
Ada.Text_IO;
use Decls.Dtdesc,
Decls.Dgenerals,
Decls.D_Taula_De_Noms,
Ada.Text_IO;
package Decls.Dtsimbols is
--pragma pure;
type Ts... |
-- SipHash.Discrete
-- Implementing SipHash over a generic (relatively small) discrete type
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
-- This generic function will calculate SipHash over arrays such as the standard
-- String type, a discrete type indexed by an integer type. The range of valu... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Generic_Fixture,
Apsepp.Generic_Shared_Instance;
package Apsepp_Shared_Instance_Test_Fixture is
procedure Increment_Lock_Count;
procedure Increment_Unlock_Count;
procedure CB;
typ... |
--
-- Copyright (C) 2019, AdaCore
--
-- This spec has been automatically generated from ATSAMV71Q21.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.SAM.PMC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
su... |
with impact.d3.Quaternions;
with impact.d3.Matrix,
interfaces.c.Pointers;
package body impact.d3.Transform
is
type Scalars is array (Natural range <>) of aliased Real;
package scalar_Pointers is new interfaces.c.Pointers (Natural, Real, Scalars, 0.0);
function to_Transform (q : in Quaternion;... |
-- Lumen.GLU -- Lumen's own thin OpenGL utilities bindings
--
-- Chip Richards, NiEstu, Phoenix AZ, Summer 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 with or without fee is hereby granted, pr... |
with Ada.Text_Io, Ada.Integer_Text_IO, Ada.Unchecked_Conversion, Ada.Strings.Fixed;
use Ada.Text_Io, Ada.Integer_Text_IO;
procedure Pixel_Colour is
type Pixel_Colour_Type is (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White);
for Pixel_Colour_Type use
(Black => 40,
Red => 41,
Green => 42,
Yellow... |
-- Abstract :
--
-- call the GPS indentation engine with debug text
--
-- Copyright (C) 2017 All Rights Reserved.
--
-- This program 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 (a... |
with GNAT.Source_Info;
package body GNATCOLL.uuid.Test is
----------
-- Name --
----------
function Name (T : Test_Case)
return AUnit.Test_String is
pragma Unreferenced (T);
begin
return AUnit.Format (GNAT.Source_Info.File);
end Name;
procedure test_Generate (Test :... |
package Opt18 is
type Cart_Axis_Type is (X, Y, Z);
type Cart_Vector_Type is array (Cart_Axis_Type) of Float;
function Mag (Item : in Cart_Vector_Type) return Float;
type Unit_Vector_Type is array (Cart_Axis_Type) of Float;
type Mag_Axis_Type is
record
Mag : Float;
Axis : Unit_Vector_... |
-----------------------------------------------------------------------
-- babel-base-users-- User's database for file owership identification
-- Copyright (C) 2014, 2015 Stephane.Carrez
-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.