content stringlengths 23 1.05M |
|---|
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
with Basic_Test_Window; use Basic_Test_Window;
with Giza.Widget.Number_Selection;
use Giza.Widget;
package Test_Gnumber_Window is
type Gnumber_Window is new Test_Window with private;
type Gnumber_Window_Ref is access all Gnumber_Window;
overriding
procedure On_Init (This : in out Gnumber_Window);
overr... |
package body Linked_List_Pkg is
procedure Push( L : in out Linked_List; E : in Elem ) is
begin
if Is_Empty(L) then
L.back := new Vertex'(E, null);
L.front := L.back;
else
L.back.next := new Vertex'(E, null);
L.back := L.back.next;
en... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Buffers; use GL.Buffers;
with GL.Immediate; use GL.Immediate;
with GL.Fixed.Matrix; use GL.Fixed.Matrix;
with GL.Types.Colors; use GL.Types;
use GL.Fixed;
with GL_Test.Displ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Lumen.Window -- Create and destroy native windows and associated OpenGL
-- rendering contexts
--
-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose wit... |
with Datos;
use Datos;
procedure Eliminar_Todas_Las_Apariciones (
L : in out Lista;
Num : in Integer ) is
-- Pre:
-- Post: se han eliminado de L todas las apariciones de Num
begin
end Eliminar_Todas_Las_Apariciones;
|
with Ada.Calendar;
with Ada.Containers.Indefinite_Vectors;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Trendy_Locations;
-- A super simple testing library for Ada. This aims for minimum registration
-- and maximum ease of use. "Testing in as few lines as possible." There is
-- no code generation ... |
procedure main is
function foo (x : integer) return integer with
Pre => x < Integer'Last
is
begin
return x+1;
end foo;
pragma Precondition (x < Integer'Last);
x, y: integer;
begin
x:= Integer'Last;
y := foo(x);
end main;
|
package body Benchmark.Tree is
function Create_Tree return Benchmark_Pointer is
begin
return new Tree_Type;
end Create_Tree;
procedure Set_Argument(benchmark : in out Tree_Type;
arg : in String) is
value : constant String := Extract_Argument(arg);
begin
... |
--//////////////////////////////////////////////////////////
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- hestia-display-main -- Main display view manager
-- 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 f... |
with Interfaces.C;
with GLX;
with xcb;
with xproto;
with Xlib;
-- with setup;
package Render is
OpenGLException : Exception;
-- function getVisualID return Interfaces.C.int;
-- procedure setVisualID(id : Interfaces.C.int);
type RenderBackend is (SOFTWARE, OPENGL);
-- We bake shader files into ou... |
package body point is
function to_string (point : point_t) return string is
begin
return "[ " & float'image(point.x) & ", " & float'image(point.y) & " ]";
end;
-- Fonction permettant l'incrémentation de la coordonnée x d'un point
procedure mv_x(point : in out point_t; delta_x : float) is
... |
-----------------------------------------------------------------------
-- akt-commands-store -- Store content read from standard input in keystore
-- Copyright (C) 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License... |
-- 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... |
package Gm_Text_Types is
-- This type defines the text block name length.
subtype Name_Length_Type is Positive range 1 .. 25;
-- This type defines a text block name associated with a text block.
subtype Name_Type is String (Name_Length_Type);
Default_Name : constant Name_Type := Name_Type'(others => 'a');... |
------------------------------------------------------------------------------
-- 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... |
package body Protypo is
function Is_Valid_Id (Id : String) return Boolean
is
use Strings.Maps;
begin
if Id = "" then
return False;
end if;
if not Is_In (Id (Id'First), Begin_Id_Set) then
return False;
end if;
for I in Id'First + 1 .. Id'Last - 1 loop
... |
with Interfaces.C.Strings; use Interfaces.C;
with System;
with Ada.Strings.Unbounded;
package body Sf.Audio.SoundBufferRecorder is
--//////////////////////////////////////////////////////////
--/ @brief Set the audio capture device
--/
--/ This function sets the audio capture device to the device
--/ with... |
package FLTK.Images.RGB.JPEG is
type JPEG_Image is new RGB_Image with private;
type JPEG_Image_Reference (Data : not null access JPEG_Image'Class) is
limited null record with Implicit_Dereference => Data;
package Forge is
function Create
(Filename : in String)
... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
with SP.Memory_Tests;
with SP.Strings.Tests;
with Trendy_Test.Reports;
procedure Septum_Tests is
begin
Trendy_Test.Register (SP.Memory_Tests.All_Tests);
Trendy_Test.Register (SP.Strings.Tests.All_Tests);
Trendy_Test.Reports.Print_Basic_Report (Trendy_Test.Run);
end Septum_Tests;
|
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Directories;
with Ada.Direct_IO;
package body Zstandard.Functions is
package DIR renames Ada.Directories;
--------------------
-- Zstd_Version --
--------------------
function Zstd_Vers... |
OP("bicpsw", CORE, 0xb9, 1, A_RW,0,0,0,0,0),
OP("bispsw", CORE, 0xb8, 1, A_RW,0,0,0,0,0),
OP("movpsl", CORE, 0xdc, 1, A_WL,0,0,0,0,0),
OP("ldpctx", CORE, 0x06, 0,0,0,0,0,0,0),
OP("svpctx", CORE, 0x07, 0,0,0,0,0,0,0),
OP("mfpr", CORE, 0xdb, 2, A_RL, A_WL,0,0,0,0),
OP("mtpr", CORE, 0xda, 2, A_RL, A_RL,0,0... |
generic
type T is private;
Init_Value : T;
package Opt25_Pkg1 is
Var : T := Init_Value;
procedure Swap (A, B : in out T);
end Opt25_Pkg1;
|
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-workspaces-module -- Module workspaces
-- 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");
-- you may not use ... |
-- smart_ptrs.ads
-- A reference-counted "smart pointer" type similar to that in C++
-- Copyright (c) 2016, James Humphry
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission noti... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
-- CC1308A.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... |
with iconv;
with Ada.Text_IO; use Ada.Text_IO;
procedure list is
procedure Process (Name : in String) is
begin
Put_Line (Name);
end Process;
begin
iconv.Iterate (Process'Access);
end list;
|
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with tree_h;
with Interfaces.C.Extensions;
with System;
with mersenne_types_h;
package bsp_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.
-- *
-- * ... |
With
NSO.JSON,
Ada.Containers.Ordered_Maps,
Ada.Containers.Indefinite_Ordered_Maps,
Ada.Calendar,
Gnoga.Gui.Base,
Gnoga.Gui.Element.Form,
Gnoga.Gui.Element.Common;
Limited with
Report_Form;
Package NSO.Types.Report_Objects.Weather_Report with Elaborate_Body is
-----------------
-- CONSTANTS --
--------... |
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
with Ada.Real_Time; use Ada.Real_Time;
package Epoch_Support is
function Epoch return Time
with Inline;
end Epoch_Support;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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
lace.Environ,
ada.Text_IO;
procedure test_Environ_compression
is
use lace.Environ,
ada.Text_IO;
test_Error : exception;
digits_Text : constant String := "0123456789";
begin
put_Line ("Begin");
verify_Folder ("tmp");
goto_Folder ("tmp");
--- Compress single files.
--... |
-------------------------------------------------------------------------------
-- package body Xor_Shift, xor shift generator
-- 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 that the abov... |
-- { dg-do run }
with GNAT.Regpat; use GNAT.Regpat;
procedure regpat1 is
begin
declare
Re : Pattern_Matcher := Compile ("a[]b");
begin
raise Program_Error;
end;
exception
when Expression_Error => null;
end regpat1;
|
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Replicant.Platform;
with Ada.Containers.Vectors;
with Ada.Exceptions;
with GNAT.OS_Lib;
package body Replicant is
package AC renames Ada.Containers;
package EX renames Ada.Exceptions;
package OSL ... |
-- TODO: maybe move contents to package Transport for sharing by children?
package UxAS.Comms.Transport.Socket_Configurations is
type Socket_Configuration is tagged record
Network_Name : Dynamic_String (Capacity => Max_Network_Name_Length);
Socket_Address : Dynamic_String (Capacity => Max_Socket_Add... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
with System.Storage_Elements;
with TLSF.Config;
with TLSF.Bitmaps;
with TLSF.Mem_Blocks;
with TLSF.Mem_Block_Size;
-- use TLSF.Config;
use TLSF.Bitmaps;
package body TLSF.Allocator is
package MBS renames Mem_Block_Size;
package MB renames Mem_Blocks;
subtype Blk_Size is MBS.Size;
use type Blk_Size;
s... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- package body Gauss_Quadrature_61. Gaussian quadrature.
-- 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 that the a... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
with HelperText;
with Ada.Calendar;
package Utilities is
package CAL renames Ada.Calendar;
bad_input : exception;
-- Return lower case version of supported operating... |
with AUnit.Test_Suites; use AUnit.Test_Suites;
package Rewriters_Lib_Suite is
function Suite return Access_Test_Suite;
end Rewriters_Lib_Suite;
|
-------------------------------------------------------------------------
-- GLOBE_3D - GL - based, real - time, 3D engine
--
-- Copyright (c) Gautier de Montmollin/Rod Kay 2007
-- CH - 8810 Horgen
-- SWITZERLAND
-- Permission granted to use this software, without any warranty,
-- for any purpose, p... |
-----------------------------------------------------------------------
-- util-serialize-mappers -- Serialize objects in various formats
-- Copyright (C) 2010, 2011, 2012, 2014, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0... |
-- this is taken from https://ideone.com/a1ky4l, which comes from
-- here http://cowlark.com/2014-04-27-ada/index.html (David Given)
--
-- I've polished it, adapted in style, removed some comments,
-- changed other things, … but mostly it's his code.
--
with
Ada.Numerics.Elementary_Functions,
Ada.Numerics.Generic... |
package Data is
type Matrix is private;
type Vector is private;
protected type Mutex is
entry Seize;
procedure Release;
private
Owned : Boolean := False;
end Mutex;
My_Mutex :Mutex;
procedure Vector_Input(A : out Vector; N : in Integer);
procedur... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package registers_hpp is
type Register is record
value : aliased unsigned_char; -- ./registers.hpp:4
end record;
pragma Convention (C_Pass_By_Copy, Register); -- ./registers.hpp:3
type ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Objects.Shaders;
-- This package is an addition to the original OpenGL API and simplifies
-- the handling of ressources located in files, like shader sources.
package GL.Files is
procedure ... |
package body Test_Operator_Attribute is
type Rec is
record
I : Integer := 0;
end record;
function Sum(L, R : Rec) return Integer is
(R.I + L.I);
function "+"(L, R : Rec) return Integer is
(R.I + L.I);
procedure Test is
Foo : access function(L, R : Rec) return Integer :=... |
package physics.remote.Model
--
-- A model describing physical properties, usable with DSA.
--
is
pragma remote_Types;
type Item is abstract tagged
record
Id : model_Id := null_model_Id;
Scale : Vector_3 := (1.0, 1.0, 1.0);
end record;
end physics.remote.Model;
|
-- This is an Ada single-line comment
-- Each of these two lines should result in a separate comment token
function test return Integer is
begin
-------------------
-- Function body --
-------------------
return 42;
end test;
-- This comment should represent the last token in the file |
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
package SequenceIdStrategy is
FIRST : constant Integer := 0;
SECOND : constant Integer := 1;
type SequenceId is new AbstractStrategyCo... |
package body Encodings.Utility.Generic_Sequence_Buffers is
procedure Write_Buffered(
Buffer: in out Sequence_Buffer;
Target: in out String_Type;
Target_Last: in out Natural
) is
Remaining : Natural := Remaining_Length(Target, Target'Last - Target_Last);
Buffered : Natural := Length(Buffer)... |
package body BitOperations.Extract is
function Extract (Value : Modular; From, To : Bit_Position) return Modular
is (Shift.Logic_Right(Value, From) and Mask.Make(To - From + 1));
end BitOperations.Extract;
|
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
with Ada.Finalization;
package BT is
type Balanced_Ternary is private;
-- conversions
function To_Balanced_Ternary (Num : Integer) return Balanced_Ternary;
function To_Balanced_Ternary (Str : String) return Balanced_Ternary;
function To_Integer (Num : Balanced_Ternary) return Integer;
function To... |
-----------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2001-2010, AdaCore --
-- ... |
------------------------------------------------------------------------------
-- --
-- WAVEFILES --
-- --
-- ... |
with Ada.Unchecked_Deallocation;
package body Generic_Queue is
procedure Free is new Ada.Unchecked_Deallocation( Queue_Node,
Queue_Node_Ptr );
------------------------------------------------------------
procedure Enqueue( Queue: in out T; Element: in El... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with inventory_list; Use inventory_list;
with stats; Use stats;
package player is
Type Player_Type is record
weapon : inventoryItem;
helmet : inventoryItem;
chestArmor : inventoryItem;
gauntlets : inventoryItem;
legArmor : inventoryItem;
boots : inventoryItem;
backpack : List_Type;
stats : statT... |
with Ada.Strings.Unbounded;
package Nested_Package is
procedure Do_It (This : in Integer);
-- This statement is a problem.
Dont_Like_5 : Exception;
end Nested_Package;
|
-- strings_example.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
procedure strings_example is
someVal : String := "Hello there!";
someVal2 : String := "Hello world!";
longString : String(1 .. 250);
longText : String := "Hello there back!";
-- NOTE: This ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- hyperion-monitoring-modules -- Module monitoring
-- 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 f... |
-- see OpenUxAS\src\Includes\Constants\UxAS_String.h
package UxAS.Common.String_Constant is
Alias : constant String := "Alias";
AlwaysSendPosition : constant String := "AlwaysSendPosition";
BaudRate : constant String := "BaudRate";
Bridge ... |
-----------------------------------------------------------------------------
-- Implementation of writing the full EEPROM using I2C
-- Tiny version
--
-- Copyright 2022 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with RP.GPIO;
with RP.I2C_Master;
with Tiny;
with Delay_Provider;
-- with E... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 The progress_indicators authors
--
-- 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... |
-----------------------------------------------------------------------
-- util-streams-pipes -- Pipe stream to or from a process
-- Copyright (C) 2011, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
generic
type Data ( <> ) is private;
with procedure Procedure_To_Be_Measured (D : in Data);
package Measure_Time is
function Time ( D : Data; Iterations : in Natural) return Natural ;
end Measure_Time ;
|
-- { dg-do compile }
package Access2 is
type Priv;
type Inc is access Priv;
type Priv is access Inc;
C : constant Priv := new Inc;
end Access2;
|
with System;
package Tasking is
procedure Wait_Forever;
task Init is
pragma Priority(System.Priority'Last - 2);
end Init;
task Task_1 is
pragma Priority(System.Priority'Last - 1);
end Task_1;
task Task_2 is
pragma Priority(System.Priority'Last);
end Task_2;
procedure La... |
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Containers.Hashed_Maps;
with Ada.Strings.Hash;
package body Iban_Code is
subtype Nation is String (1..2);
package String_Integer is new Ada.Containers.Hashed_Maps
(Nation, Integer, Ada.Strings.Hash, Equivalent_Keys => "=");
Nations : ... |
pragma Ada_2012;
package body Compiler.Print is
-----------
-- Debug --
-----------
procedure Debug (S: Stream_Access; AST : List) is
begin
for E of AST loop
if E.TheValue.Length > 0 then
Wide_Wide_String'Write (S, E.TheToken'Wide_Wide_Image);
Character'Write (S, ASCII.HT);
X... |
-- { dg-do run }
-- { dg-options "-gnatVaM" }
procedure Loop_Boolean is
type R is record
B : Boolean;
end record;
procedure proc (X : R) is
B : Boolean;
begin
B := X.B;
end;
begin
for I in reverse Boolean loop
Proc ((B => I));
end loop;
end;
|
-----------------------------------------------------------------------
-- asf-models-selects -- Data model for UISelectOne and UISelectMany
-- 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"... |
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 carre is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.Str... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
with GL.Buffers; use GL.Buffers;
with GL.Immediate; use GL.Immediate;
with GL.Fixed.Matrix; use GL.Fixed.Matrix;
with ... |
------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- Copyright 2015,2016 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... |
-- Abstract :
--
-- see spec
--
-- Copyright (C) 2013, 2014, 2015, 2017, 2018 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or modify it under the terms of the GNU General Public License
-- as publishe... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Debug_Trace_Class.Stub; use Apsepp.Debug_Trace_Class.Stub;
package Apsepp.Debug_Trace_Class.Output is
-- TODOC: Not implemented as a protected type (but Output sink may be).
-- <2019-03-02>
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Unchecked_Conversion;
package body Ada.Numerics.dSFMT.Generating is
-- SSE2 version
use type Interfaces.Unsigned_64;
type v2df is array (0 .. 1) of Long_Float;
for v2df'Alignment use 16;
pragma Machine_Attribute (v2df, "vector_type");
pragma Machine_Attribute (v2df, "may_alias");
pragma ... |
with Ada.Text_IO, Interfaces;
use Ada.Text_IO, Interfaces;
procedure Gray is
Bits : constant := 5; -- Change only this line for 6 or 7-bit encodings
subtype Values is Unsigned_8 range 0 .. 2 ** Bits - 1;
package Values_Io is new Ada.Text_IO.Modular_IO (Values);
function Encode (Binary : Values) return Va... |
with System.Storage_Elements; use System.Storage_Elements;
with GNAT.Byte_Swapping;
with Ada.Unchecked_Conversion;
package body AVTAS.LMCP.ByteBuffers is
---------------
-- Raw_Bytes --
---------------
function Raw_Bytes (This : ByteBuffer) return Byte_Array is
(This.Content (1 .. This.Length));
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.