content stringlengths 23 1.05M |
|---|
pragma Ada_2012;
with GNAT.Regpat; use GNAT.Regpat;
with Ada.Text_IO; use Ada.Text_IO;
package body Regexp_Readers.Generic_Readers is
Matcher : constant Pattern_Matcher := Compile (To_String (Regexp.Regexp));
N_Paren : constant Natural := Paren_Count (Matcher);
Sub_Expression_Index : constant Natural := Re... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package body Bitmaps.RGB is
function Max_X (Source : in Image) return Natural is (Source.Width - 1);
function Max_Y (Source : in Image) return Natural is (Source.Height - 1);
function Get_Pixel (Source : in Image; X, Y : Natural) return Pixel is
(Source.Pixels (Y, X));
procedure Set_Pixel (Target : i... |
-----------------------------------------------------------------------------
-- Implementation for
-- Base class for the implementation of EEPROM memory connected via
-- I2C bus.
--
-- Copyright 2022 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.I2C;
package body EEPROM_I2C is
... |
-----------------------------------------------------------------------
-- awa-events-services -- AWA Event Manager
-- Copyright (C) 2012, 2016, 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 th... |
-- BinToAsc_Suite.Base85_Tests
-- Unit tests for BinToAsc
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
with ASCII85;
with BinToAsc_Suite.Utils;
package BinToAsc_Suite.Base85_Tests is
type Base85_Test is new Test_Cases.Te... |
-----------------------------------------------------------------------
-- measure -- Benchmark tools
-- Copyright (C) 2008, 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 us... |
-------------------------------------------------------------------------------
-- 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... |
-- { dg-do run }
-- { dg-options "-O2" }
with Unchecked_Conversion;
procedure gnat_malloc is
type int1 is new integer;
type int2 is new integer;
type a1 is access int1;
type a2 is access int2;
function to_a2 is new Unchecked_Conversion (a1, a2);
v1 : a1 := new int1;
v2 : a2 := to_a2 (v1);
beg... |
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
with Ada.Numerics.Long_Elementary_Functions;
-- Copyright 2021 Melwyn Francis Carlo
procedure A025 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
use Ada.Numerics.Long_Elementary_Functions;
Fibonacci_Val : array (Integer range 1 .. 3) of Stri... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held li... |
-- 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... |
------------------------------------------------------------------------------
-- Copyright (c) 2015-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- el-functions -- Functions to be plugged in expressions
-- Copyright (C) 2009, 2010, 2012, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License"... |
-- The MIT License (MIT)
--
-- Copyright (c) 2016-2017 artium@nihamkin.com
--
-- 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 rig... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
package body Stack_Usage1_Pkg is
function Ident_Int (X : Integer) return Integer is
begin
return X;
end Ident_Int;
procedure My_Proc (X : R) is
begin
null;
end My_Proc;
end Stack_Usage1_Pkg;
|
-- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licen... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body String_Vectors_Utils is
function Join
(V : Vector;
Separator : String := "")
return String
is
begin
if V.Is_Empty then
return "";
end if;
declare
Return_Value : Unbounded_String :=
... |
-----------------------------------------------------------------------
-- wiki-filters-variables -- Expand variables in text and links
-- 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 no... |
package body PID_Functionality is
procedure Position_Controller(K_PP : in Float; Pos_Error : in Float; Vel_Ref : out Float) is
begin
Vel_Ref := K_PP * Pos_Error;
end Position_Controller;
procedure Velocity_Controller(K_PV : in Float; Vel_Error : in Float; Torq_Ref : out Float) is
begin
... |
package body Animals.Flying_Horses is
function Make (Horse_Color : Color) return Flying_Horse is
R : Flying_Horse;
begin
R.Number_Of_Wings := 2;
R.Number_Of_Legs := 4;
R.Fur_Color := Horse_Color;
return R;
end Make;
-- these are perfect animals, you won't mess with thei... |
with Memory.Container; use Memory.Container;
package Memory.Register is
type Register_Type is new Container_Type with private;
type Register_Pointer is access all Register_Type'Class;
procedure Insert_Registers(mem : access Memory_Type'Class);
function Remove_Registers(mem : Memory_Pointer) return Mem... |
-- with Ada.Numerics;
with Ada.Text_IO; use Ada.Text_IO;
with GL.Buffers;
with GL.Culling;
with GL.Toggles;
with GL.Objects.Programs;
with GL.Objects.Vertex_Arrays;
with GL.Types;
with GL.Types.Colors;
with Glfw;
with Glfw.Input;
with Glfw.Input.Keys;
with GL.Window;
with Glfw.Windows.Context;
-- with Maths;
with... |
with TEXT_IO;
with STRINGS_PACKAGE; use STRINGS_PACKAGE;
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES; -- Omit when put name here
with WORD_PARAMETERS; use WORD_PARAMETERS;
with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE;
with PREFACE;
with LINE_STUFF; use LINE_STUFF;
pragma Elaborate(PREFACE);
package body D... |
-- 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.ADC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ISR_ADRDY_Field is STM32_SVD.Bit... |
with Asis.Gela.Scanners;
with Asis.Gela.Scanner_Tables;
with Gela.Character_Class_Buffers;
with Gela.Classificators;
with Asis.Gela.Classificators_Create;
with Ada.Text_IO;
with Ada.Characters.Handling;
with Asis.Gela.Elements; use Asis.Gela.Elements;
with Asis.Gela.Elements.Assoc; use Asis.Ge... |
------------------------------------------------------------
-- B B . G U I --
-- --
-- Spec --
-- --
-- Graphical U... |
-- Copyright 2016,2017 Steven Stewart-Gallus
--
-- 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 applicable law o... |
-- 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.INPUTMUX is
pragma Preelaborate... |
-- OpenBSD - Provide high-level Ada interfaces to OpenBSD's pledge and unveil.
-- Written in 2019 by Prince Trippy programmer@verisimilitudes.net .
-- To the extent possible under law, the author(s) have dedicated all copyright and related and
-- neighboring rights to this software to the public domain worldwide.
-- T... |
-- This spec has been automatically generated from msp430g2553.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Port 3/4
package MSP430_SVD.PORT_3_4 is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- P3REN_P array
... |
generic
type Real is private;
with function "*" (Left, Right : Real) return Real is <>;
with function "/" (Left, Right : Real) return Real is <>;
with function To_Real (V : Integer) return Real is <>;
with function F_To_Real (V : Float) return Real is <>;
with function To_Integer (V : Real) return Int... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Discriminant_Associations is
function Create
(Selector_Names : Program.Elements.Identifiers
.Identifier_Vect... |
with System;
with System.Machine_Code; use System.Machine_Code;
with STM32.RNG; use STM32.RNG;
with STM32_SVD.RCC; use STM32_SVD.RCC;
package body STM32.PKA is
Curve : CurveData;
procedure Copy_S_To_U32 (S : String; To : out UInt32_Array)
is
X : UInt32;
Y : UInt8_Array (0 .. 3);
for... |
with Ada.Text_IO, Ada.Calendar, Ada.Numerics.Discrete_Random, Taszkseged;
use Ada.Text_IO, Taszkseged;
procedure Kocsma is
Ajto: Taszkseged.Szemafor(4);
procedure Belep renames Ajto.P;
procedure Kilep renames Ajto.V;
type Ital is (Sor, Bor, Palinka);
task Kocsmaros is
entry Tolt( Mit: in ... |
-- Copyright (c) 2020-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 req... |
-- { dg-do run }
-- { dg-options "-O" }
with System; use System;
procedure Boolean_Bitfield is
Units_Per_Integer : constant :=
(Integer'Size + System.Storage_Unit - 1) / System.Storage_Unit;
type E_type is (Red, Blue, Green);
type Parent_Type is record
I : Integer range 0 .. 127 := 127;
C : Chara... |
with Ada.Numerics.Discrete_Random;
package Cellular is
type CellularArray is array(Integer range <>) of Boolean;
package Boolean_Random is new Ada.Numerics.Discrete_Random(Boolean);
use Boolean_Random;
procedure Generate (Previous : in out CellularArray);
function "=" (Left, Right : in Cellular... |
-- Copyright 2015,2016,2017 Steven Stewart-Gallus
--
-- 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 applicable ... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
with SimpleAda.IO;
use SimpleAda.IO;
procedure Simple_Hello_World is
begin
Put_Line("Hello, world!");
end Simple_Hello_World;
|
-- This file is generated by SWIG. Do *not* modify by hand.
--
with llvm;
package LLVM_Transforms.Binding is
procedure LLVMAddArgumentPromotionPass (PM : in llvm.LLVMPassManagerRef);
procedure LLVMAddConstantMergePass (PM : in llvm.LLVMPassManagerRef);
procedure LLVMAddDeadArgEliminationPass
(PM : i... |
package Vect7 is
type v4sf is array (1 .. 4) of Float;
for v4sf'Alignment use 16;
pragma Machine_Attribute (v4sf, "vector_type");
vzero : constant v4sf := (0.0, 0.0, 0.0, 0.0);
vconst : constant v4sf := (1.0, 2.0, 3.0, 4.0);
vvar : v4sf := vconst;
F : Float := 5.0;
procedure Assign;
end Vect7;
|
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
with diviporrestas;
procedure prueba_diviporrestas is
dividendo, divisor, resto, resultado :integer:=0;
begin
-- caso de prueba 1:
dividendo:=7;
divisor:=3;
put("El resultado de la division es 2 y el resto 1:");
new_lin... |
with Interfaces; use Interfaces;
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Blade_Types; use Blade_Types;
with GA_Maths;
with Metric;
package Blade is
use Ada.Strings.Unbounded;
type Basis_Blade is record
Bitmap : Interfaces.Unsigned_32 :... |
-- Copyright 2016,2017 Steven Stewart-Gallus
--
-- 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 applicable law o... |
with Globals_Example1;
package Md_Example1 is
function Function_Itype (The_I : Globals_Example1.Itype)
return Globals_Example1.Itype;
function Function_Ftype (The_F : Globals_Example1.Ftype)
return Globals_Example1.Ftype;
end Md_Example1;
|
with Ada.Numerics.Float_Random;
with RandInt;
with Logger;
with External; use External;
package Node is
package RAF renames Ada.Numerics.Float_Random;
package LOG renames Logger;
package RAD renames RandInt;
type NodeObj;
type pNodeObj is access NodeObj;
type Array_pNodeObj is array (Positi... |
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Base_Codecs;
function JWS.To_Base_64_URL
(Data : League.Stream_Element_Vectors.Stream_Element_Vector)
return League... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- contexts-facelets-flash -- Flash context
-- 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 file exce... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
limited with Program.Elements.Pragmas;
limited with Program.Elements.Defining_Names;
limited with Program.Elements.Defining_Identifiers;
limited with Progra... |
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Element_Vectors is
procedure Skip_Elements
(Self : Iterator;
Pos : in out Element_Cursor;
Step : Integer)... |
-- { dg-do compile }
package body C_Words is
function New_Word (Str : String) return Word is
begin
return (Str'Length, Str);
end New_Word;
function New_Word (Str : String) return C_Word is
begin
return (Str'Length, Str);
end New_Word;
end C_Words;
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.API;
package body Glfw.Input is
procedure Poll_Events renames API.Poll_Events;
procedure Wait_For_Events renames API.Wait_Events;
end Glfw.Input;
|
with Ada.Text_Io, Ada.Float_Text_IO;
use Ada.Text_Io, Ada.Float_Text_IO;
procedure Floats is
A, B : Float;
begin
Put("A=");
Get(A);
Put("B=");
Get(B);
if A > B then
Put_Line(A'img);
else
Put_Line(B'img);
end if;
end Floats;
|
with
ada.Strings.Hash,
ada.unchecked_Conversion;
package body openGL
is
------------
-- Profiles
--
function Profile return profile_Kind
is separate;
-----------
-- Vectors
--
function Scaled (Self : in Vector_3; By : in Vector_3) return Vector_3
is
begin
retu... |
with TEXT_IO;
with ENGLISH_SUPPORT_PACKAGE; use ENGLISH_SUPPORT_PACKAGE;
procedure MAKEEFIL is
use TEXT_IO;
use EWDS_DIRECT_IO;
EWDS_LIST : TEXT_IO.FILE_TYPE;
EWDS, NEW_EWDS : EWDS_RECORD := NULL_EWDS_RECORD;
begin
TEXT_IO.OPEN(EWDS_LIST, TEXT_IO.IN_FILE, "EW... |
pragma SPARK_Mode;
with Line_Finder_Types; use Line_Finder_Types;
-- @summary
-- Graph filtering mechanism for discrete state filtering
--
-- @description
-- The package is responsible for window averaging a set of states to low-pass
-- filter the change between states that the robot detects.
--
-- Please don... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Val_Int is
pragma Pure;
-- required for Integer'Value by compiler (s-valint.ads)
function Value_Integer (Str : String) return Integer;
end System.Val_Int;
|
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with ADXL345_SPI;
with HAL;
package ADXL345 is
package DEVID is new ADXL345_SPI.Register (16#00#, HAL.UInt8);
type POWER_CTL_Wakeup_Field is
(Wake_8_Hz, Wake_4_Hz, Wake_2_Hz, Wake_1_Hz)
with ... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with System.Parameters;
with System.Allocation.Arenas;
with System.Storage_Elements;
package System.Allocation.Memory is
package SP renames System.Parameters;
package SAA renames System.Allocation.Arenas;
package SSE renames Syst... |
--
-- This is a wrapper package for (non-generic) mixin.
-- As in generic case, everything can be done explicitly in a few lines of code,
-- as shown in main demo procedure. This module provides a somewhat clearer illustration by
-- keeping all relevant code in one place as well as presenting inheritance in a more
-- e... |
-----------------------------------------------------------------------
-- servlet-server -- Servlet Server for AWS
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
with System; use System;
package Opt58_Pkg is
pragma Pure (Opt58_Pkg);
type Small_Int is range 0 .. 255;
type Rec is record
D1, D2, D3, D4 : Small_Int;
end record;
pragma Pack (Rec);
for Rec'Size use 32;
function F1 (R : Rec) return Small_Int;
function F2 (A : Address;... |
with HWIF;use HWIF;
with HWIF_Types; use HWIF_Types;
--with Ada.Text_IO; use Ada.Text_IO;
procedure DirectionHelper is
type DirectionArray is array(North, East, South, West) of Direction;
begin;
function PerpendicularDirections(dir : DirectionArray) return DirectionArray is
begin
if dir = North then
... |
with GNAT.Strings;
with Ada.Text_IO;
procedure ZMQ.Examples.JSON_Data.Test is
use GNAT.Strings;
V : Data_Type;
Src : JSON_Value;
Tgt : JSON_Value;
V1 : Data_Type;
S : GNAT.Strings.String_Access;
begin
V := (Sensor_Name => To_Unbounded_String ("bannme"),
OK => True,
Location ... |
with AUnit.Assertions;
package body Array_Utils.Test_Cases is
Test_Array : constant Array_Type (1 .. 8) := (10, 20, 30, 40, 50, 60, 70, 80);
procedure Test_Linear_Search_Element_Found_First_Entry (T : in out Test_Case) is
pragma Unreferenced (T);
begin
AUnit.Assertions.Assert (Linear_Search (Tes... |
package body EdgeRegistry is
function Key(a: Natural; b: Natural) return BString is
begin
return ToBString(Natural'Image(a) & ";" & Natural'Image(b));
end Key;
procedure Register(map: in out HashMap; a: Natural; b: Natural) is
begin
map.Insert(Key(a, b), True);
end Register;
... |
with Protypo.Api.Engine_Values.Handlers;
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
--
-- ## What is this?
--
-- This package provides a wrapper for a vector of Engine_Value.
-- The wrapper implements the `Ambivalent_Interface` that allows for both
-- indexed and record-like access. More precisely, it expor... |
with AVR.MCU;
-- =============================================================================
-- Package body AVR.USART
-- =============================================================================
package body AVR.USART is
procedure Initialize
(In_Port : Port_Type;
In_Setup : Setup_Type)
is
... |
pragma License (Unrestricted);
-- runtime unit
package System.Unwind is
pragma Pure;
-- exception data type (s-stalib.ads)
type Raise_Action is access procedure;
type Exception_Data;
type Exception_Data_Access is access constant Exception_Data;
for Exception_Data_Access'Storage_Size use 0;
type ... |
with System.Storage_Elements;
private with Ada.Unchecked_Conversion;
package Posix is
type File;
type File_Status;
type Memory_Map;
-- subtype unsigned_long is Interfaces.C.unsigned_long;
-- subtype unsigned is Interfaces.C.unsigned;
-- subtype int is Interfaces.C.int;
-- subtype long is I... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
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 test_enum is
type stringptr is access all char_array;
Type foo_t is (
Foo,
Bar,
Blah);
foo_val : foo_t;
begin
f... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body String_Sets_Utils is
function From_Vector (V : Vector) return Set
is
Return_Value : Set;
begin
for E of V loop
Return_Value.Include (E);
end loop;
return Return_Value;
end From_Vector;
function To_Str... |
with Ada.Streams.Unbounded_Storage_IO;
procedure storagestream is
Memory : Ada.Streams.Unbounded_Storage_IO.Buffer_Type;
Stream : not null access Ada.Streams.Seekable_Stream_Type'Class :=
Ada.Streams.Seekable_Stream_Type'Class (
Ada.Streams.Unbounded_Storage_IO.Stream (Memory).all)'Access;
begin
String'Output (... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Sam Hoc... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Command_Line;
with Ada.Streams.Stream_IO;
with Ada.Strings.Fixed;
with Ada.Text_IO;
with GMP.Z;
procedure test_streams is
use Ada.Streams.Stream_IO;
use Ada.Strings;
use Ada.Strings.Fixed;
use Ada.Text_IO;
use GMP.Z;
Verbose : Boolean := False;
package Binary_IO is new Ada.Text_IO.Modular_IO (Ada.Stream... |
with Ada.Real_Time; use Ada.Real_Time;
with HAL.Real_Time_Clock; use HAL.Real_Time_Clock;
package body Real_Time_Clock is
Sim_Time : HAL.Real_Time_Clock.RTC_Time;
Sim_Date : HAL.Real_Time_Clock.RTC_Date;
---------
-- Set --
---------
procedure Set
(Time : HAL.Real_Time_Clock.RTC_Time;
... |
generic
package any_Math.any_Algebra.any_linear
is
pragma Pure;
----------
-- Vector
--
function Norm_squared (Self : in Vector) return Real; -- Length squared.
function Normalised (Self : in Vector) return Vector;
procedure Normalise (Self : in out Vector);
funct... |
-- { dg-excess-errors "cannot generate code" }
package Aggr4_Pkg is
function F return Integer;
type Rec1 is tagged record
I : Integer;
end record;
Zero : constant Rec1 := (I => F);
type Enum is (One, Two);
type Rec2 (D : Enum := One) is record
case D is
when One => Value : R... |
-- see OpenUxAS\src\Communications\ZeroMqAddressedAttributedMessageReceiver.h
with UxAS.Comms.Data.Addressed.Attributed; use UxAS.Comms.Data.Addressed.Attributed;
with UxAS.Common.Sentinel_Serial_Buffers; use UxAS.Common.Sentinel_Serial_Buffers;
with Ada.Containers.Formal_Doubly_Linked_Lists;
package UxAS.Comms... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Suite_Stub;
function Apsepp.Test_Node_Class.Runner_Sequential.Create
(Root_Node_Access : Test_Node_Access;
Test_Reporter_Instance_Access : Test_Reporter_Access ... |
package body kv.avm.Services is
procedure Foo is
begin
null;
end Foo;
end kv.avm.Services;
|
-----------------------------------------------------------------------
-- applications -- Ada Web Application
-- 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... |
pragma License (Unrestricted);
private with Ada.Strings.Maps.Naked;
private with Ada.Strings.Naked_Maps.Basic;
private with Ada.Strings.Naked_Maps.Canonical_Composites;
private with Ada.Strings.Naked_Maps.Case_Folding;
private with Ada.Strings.Naked_Maps.Case_Mapping;
private with Ada.Strings.Naked_Maps.General_Categor... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
---------------------------------------------------------------------------------
-- Copyright 2004-2005 © Luke A. Guest
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
------------------------------------------------------------... |
with Ada.Text_IO; use Ada.Text_IO;
procedure hailstone is
type int_arr is array(Positive range <>) of Integer;
type int_arr_pt is access all int_arr;
function hailstones(num:Integer; pt:int_arr_pt) return Integer is
stones : Integer := 1;
n : Integer := num;
begin
if pt /= null then pt(1) := num; end if;
... |
-- Abstract :
--
-- see spec
--
-- Copyright (C) 2012 - 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- 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... |
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
with avtas.lmcp.types; use avtas.lmcp.types;
with afrl.cmasi.object; use afrl.cmasi.object;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
package afrl.cmasi.location3D is
type Location3D is new afrl.cmasi.object.Object with private;
type Location3D_Acc is access all Location3D;
type Location3D_C... |
--===================================================================================================================
-- scanner.ads
--
-- This file contains the a sample of the lexical components we need to be able to recognize and convert
-- into tokens.
--===========================================================... |
-----------------------------------------------------------------------
-- keystore-verifier -- Toolbox to explore raw content of keystore
-- Copyright (C) 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
package body myatexit is
procedure atexit is
begin
Ada.Text_IO.Put_Line("myatexit callback...");
end atexit;
end myatexit;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.