content stringlengths 23 1.05M |
|---|
with STM32GD.Board; use STM32GD.Board;
with STM32GD.USART; use STM32GD.USART;
procedure Main is
RX_Buffer : USART_Data (1 .. 16);
RX_Count : Natural;
begin
Init;
LED.Set;
while True loop
USART.DMA_Receive (10, RX_Buffer, RX_Count);
LED.Toggle;
if RX_Count > 0 then
USART.DMA_... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
-- { dg-options "-g" }
with Debug6_Pkg; use Debug6_Pkg;
procedure Debug6 is
V : Value := (Kind => Undefined);
begin
Process (V);
end Debug6;
|
with System;
with Comm.TL; use Comm.TL;
with Comm.Mbox; use Comm.Mbox;
with STM32.IPCC; use STM32.IPCC;
with Memory; use Memory;
with Log; use Log;
package body Comm.Shci is
Ble_Init_Cmd_Packet : SHCI_C2_Ble_Init_Cmd_Packet_T :=
(Header => (others => 0),
Param => (PBleBuffe... |
with Ada.Text_IO; use Ada.Text_IO;
with Sf.System.Sleep; use Sf.System.Sleep;
procedure Thread_Func (Arg : System.Address) is
User_Data : String (1..5);
for User_Data'Address use Arg;
pragma Import (Ada, User_Data);
begin
for I in 1 .. 10 loop
Put (User_Data);
Put_Line (", I'm thread 1");
... |
package Program is
procedure Run;
pragma Export (C, Run, "run");
end Program;
|
-----------------------------------------------------------------------
-- awa-converters-dates -- Date Converters
-- Copyright (C) 2012, 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
-----------------------------------------------------------------------
-- util-dates-formats-tests - Test for date formats
-- Copyright (C) 2011, 2013, 2014, 2016, 2017, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "L... |
-- Copyright 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 or agr... |
with Discr8_Pkg1; use Discr8_Pkg1;
package Discr8 is
type Tag_T is (Tag_One, Tag_Two);
type Local_T (Tag : Tag_T := Tag_One) is
record
case Tag is
when Tag_One =>
A : T;
B : Integer;
when Tag_Two =>
null;
end case;
end record;
procedure Make (C... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Strings.Unbounded;
with Ada.Characters.Wide_Wide_Latin_1;
with Ada.Integer_Text_IO;
package body Custom_Writers is
New_Line : constant Wide... |
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.HSEM is
pragma Preelaborate;
type Sema_Range is range 0 .. 31;
---------------
-- Registers --
----------... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_3.Main is
Slope : Slope_Type;
Result : Long_Long_Integer;
begin
Slope.Read ("src/day-3/input");
Put_Line (Slope.Race (3, 1)'Img);
Result := Slope.Race (1, 1) * Slope.Race (3, 1) * Slope.Race (5, 1) * Slope.Race (7, 1) * Slope.Race (1, 2);
... |
-- { dg-do compile }
-- { dg-options "-flto" { target lto } }
procedure Lto2 (Nbytes : Natural) is
type Message_T (Length : Natural) is record
case Length is
when 0 => null;
when others => Id : Natural;
end case;
end record;
type Local_Message_T is new Message_T (Nbytes);
f... |
package BSSNBase.Text_IO is
procedure write_results;
procedure write_history;
procedure write_summary;
procedure write_summary_header;
procedure write_summary_trailer;
procedure create_text_io_lists;
xy_index_list_ptr : GridIndexList_ptr := new GridIndexList (1..max_num_x*max_num_y);
xz_inde... |
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 euler40 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.S... |
with ada.text_io;
use ada.text_io;
procedure euler5 is
i : long_long_integer;
n : long_long_integer := 20;
begin
i := 19;
while i >= 2 loop
if n mod i /= 0 then
n := n + 20;
i := 20;
end if;
i := i - 1;
end loop;
put_line(long_long_integer'image(n));
end;
|
pragma Ada_2012;
package body AdaCar.Parametros is
---------------------------
-- Convertidor_Distancia --
---------------------------
function Convertidor_Distancia
(Valor : Unidades_AI) return Unidades_Distancia
is
begin
return Valor*Factor_Distancia;
end Convertidor_Distancia;
end A... |
-- Task 2 of RTPL WS17/18
-- Team members: Hannes B. and Gabriel Z.
package calculate with SPARK_Mode is
-- Procedure for option 4
procedure opt4;
-- Procedure for option 9
procedure opt9;
private
-- Float values for user input
-- F1 : Float := 1.0;
-- User defined vector
type myVec... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2018, AdaCore --
-- --
-- ... |
with Ada.Command_Line;
with Ada.Directories;
with Ada.Environment_Variables;
with Ada.Streams.Stream_IO;
with Ada.Text_IO;
with YAML.Streams;
procedure test_yaml is
Verbose : Boolean := False;
procedure Put (Item : in String) is
begin
if Verbose then
Ada.Text_IO.Put (Item);
end if;
end Put;
procedure New_Li... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Wid_Char;
package System.WWd_Char is
pragma Pure;
-- required for Character'Wide_Width by compiler (s-wwwdcha.ads)
function Wide_Width_Character (Lo, Hi : Character) return Natural
renames Wid_Char.Width_Character;
... |
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Missions.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Missions.Test_Data
.Test with
n... |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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 vers... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with interfaces.C;
package box2d_c.Pointers is
-- Shape_Pointer
--
type Shape_Pointer is access all box2d_c.Shape;
-- Shape_Pointers
--
type Shape_Pointers is array (interfaces.C.Size_t range <>) of aliased box2d_c.Pointers.S... |
package body Problem_9 is
function Solution_1 return Int64 is
X_1 : Constant Float := (1.0 + Sqrt(1.0 - (4.0*(-500.0)))) / 2.0;
X_2 : Constant Float := (1.0 - Sqrt(1.0 - (4.0*(-500.0)))) / 2.0;
Max,Temp,A,B,C : Int64;
begin
if X_1 >= X_2 then
Max := Int64(X_1);
... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Ada.Streams;
with GNAT.Sockets;
with Server;
package App is
function On_Connect
(Socket : GNAT.Sockets.Socket_Type)
return Server.Socket_Action;
function On_Readable
(Socket : GNAT.... |
package Problem_74 is
-- The number 145 is well known for the property that the sum of the factorial of its digits is equal to 145:
-- 1! + 4! + 5! = 1 + 24 + 120 = 145
-- Perhaps less well known is 169, in that it produces the longest chain of numbers that link
-- back to 169; it turns out that there are o... |
with
gel.Window.lumen;
package gel.Window.setup
renames gel.Window.lumen;
|
-----------------------------------------------------------------------
-- util-log-appenders -- Log appenders
-- Copyright (C) 2001 - 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
with Courbes; use Courbes;
with Courbes.Singletons; use Courbes.Singletons;
with Courbes.Droites; use Courbes.Droites;
with Courbes.Bezier_Cubiques; use Courbes.Bezier_Cubiques;
with Courbes.Visiteurs; use Courbes.Visiteurs;
with Vecteurs; use Vecteurs;
package Interpolations_Lineaires is
subtype Tolerance is Floa... |
--------------------------------------------------------------------------------------------------------------------
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Institution: Technische Universität München
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Martin Becker
with STM32.RNG.Polling;
-- @summary
-- Target-independent specification for HIL of Random number generator
package body HIL.Random with SPARK_Mode => On is
proc... |
with Ada.Text_IO;
procedure Single_Instance is
package IO renames Ada.Text_IO;
Lock_File: IO.File_Type;
Lock_File_Name: String := "single_instance.magic_lock";
begin
begin
IO.Open(File => Lock_File, Mode=> IO.In_File, Name => Lock_File_Name);
IO.Close(Lock_File);
IO.Put_Line("I can't --... |
with AWS.Config.Set;
with AWS.Server;
with @_Project_Name_@.Callbacks;
procedure @_Project_Name_@.Main is
use AWS;
Web_Server : Server.HTTP;
Web_Config : Config.Object;
begin
-- Setup
Config.Set.Server_Host (Web_Config, Host);
Config.Set.Server_Port (Web_Config, Port);
-- Start the server
... |
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with System.Storage_Pools.Subpools;
with Program.Directory_Unit_Schemas;
with Program.GNAT_Unit_Naming;
with Program.Nodes.Identifiers.Set_Defining_Na... |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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 vers... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
with Anagram.Grammars.LR;
with Anagram.Grammars.LR_Tables;
with League.Strings;
with XML.SAX.Attri... |
with Ada.IO_Exceptions;
with Interfaces.C;
with OpenAL.ALC_Thin;
with OpenAL.Thin;
with System;
package body OpenAL.Context.Capture is
package C renames Interfaces.C;
--
-- Close_Device
--
procedure Close_Device (Device : in out Device_t) is
Return_Code : constant Boolean := Boolean
(ALC_Thin.Cap... |
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required... |
------------------------------------------------------------------------------
-- --
-- Internet Protocol Suite Package --
-- --
-- -... |
-----------------------------------------------------------------------
-- util-beans-objects-readers -- Datasets
-- Copyright (C) 2017, 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 ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
package Buffer is
N: constant Integer := 4; --4 element buffer
subtype Item is Integer;
type Index is mod N;
type Item_Array is array(Index) of Item;
protected type CircularBuffer is
entry WriteBuf(X: in INTEGER);
entry ReadBuf(Y: out INTEGER);
private
A: Item_Array... |
with Test_Solution; use Test_Solution;
package problem_13 is
type Int128 is range -2**127 .. 2**127 - 1;
type Digit_50_Array is array( Natural range <> ) of String( 1 .. 50 );
function solution_1( arr : Digit_50_Array ) return Int128;
procedure Test_Solution_1;
function Get_Solutions return So... |
with Ada.Streams.Stream_IO;
private with System;
package zlib.Streams is
pragma Preelaborate;
use type Ada.Streams.Stream_Element_Offset;
Default_Buffer_Length : constant := 4096; -- same as Zlib.Ada.
-- only writing with deflation
type Out_Type is limited private;
-- subtype Open_Out_Type is Out_Type
-- ... |
with Ada.Containers.Bounded_Hashed_Maps,
Ada.Containers.Hashed_Sets,
Ada.Containers.Synchronized_Queue_Interfaces,
Ada.Containers.Unbounded_Priority_Queues,
Ada.Containers.Unbounded_Synchronized_Queues,
Ada.Containers.Vectors,
Ada.Execution_Time,
Ada.Exceptions,
Ada.Integer_Text_... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Ada.Finalization;
with Ada.Streams;
with Interfaces;
with League.Strings;
with PB_Support.Vectors;
package Google.Protobuf.Struct is
type Null_Value is (PB_NULL_VALUE);
for Null_Value use (PB_NULL_VALUE => 0);
package Null_Value_Vectors is new PB_Support.Vectors (Null_Value);
type Struct_Vector is... |
-- Portable pixmap format (PPM)
-- Portable graymap format (PGM)
-- Portable bitmap format (PBM)
private package GID.Decoding_PNM is
--------------------
-- Image decoding --
--------------------
generic
type Primary_color_range is mod <>;
with procedure Set_X_Y (x, y: Natural);
with procedure... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.CEC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- CEC control register
type CR_Register ... |
-----------------------------------------------------------------------
-- json -- JSON Reader
-- Copyright (C) 2010, 2011, 2014 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 ... |
-- reference:
-- http://wiki.freepascal.org/User_Changes_3.0.4
-- http://www.kmonos.net/wlog/111.html
with Ada.Exceptions.Finally;
with System.Standard_Allocators;
with System.Storage_Elements;
with System.System_Allocators.Allocated_Size;
package body System.Growth is
use type Storage_Elements.Storage_Offset;
... |
package Opt3_Pkg is
procedure F (I : Short_Integer);
end Opt3_Pkg;
|
package Giza.Hershey_Fonts.Markers is
Font : constant Giza.Font.Ref_Const;
private
Glyph_0 : aliased constant Glyph :=
(Number_Of_Vectors => 0,
Width => 16,
Height => 0,
Y_Offset => 0,
X_Offset => -8,
Vects => (others => (Raise_Pen)));
Glyph_1 : aliased constant Glyph :=
... |
with impact.d2.orbs.Solid;
package impact.d2.orbs.contact.Solver
--
--
--
is
type Solid_view is access all Solid.item'Class;
type Manifold_view is access all collision.b2Manifold;
type b2ContactConstraintPoint is
record
localPoint : b2Vec2;
rA, rB : b2Vec2;
... |
-- C85013A.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... |
------------------------------------------------------------------------
-- Copyright (C) 2010-2020 by Heisenbug Ltd. (github@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 Hocev... |
with Text_Io;
-- ------------------
procedure hw1 is
-- Package usage declarations
use Text_Io;
package Int_Io is new Integer_Io(Integer);
use Int_Io;
-- Task declarations
task T1 is
entry start;
end T1;
task T2 is
entry start;
end T2;
-- Task definitions
-- -----------------
task body T1 is
beg... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Engines, Libtcod.Console; use Libtcod;
procedure Tutorial is
screen_width : constant := 80;
screen_height : constant := 50;
context : Console.Context := Console.make_context(screen_width, screen_height, "Libtcod Ada Tutorial");
screen : Console.Screen := Console.make_screen(screen_width, screen_heigh... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O ... |
-- XXX! Nothing here is thread-safe!
with Ada.Unchecked_Conversion;
package body FAT_Filesystem is
Volumes : array (1 .. MAX_VOLUMES) of aliased FAT_Filesystem;
-- Mounted volumes
procedure Initialize_FS
(FS : in out FAT_Filesystem;
Status : out Status_Code);
function Allocate_Cluster (... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with Ada.Text_IO;
with BigInteger; use BigInteger;
package body Problem_25 is
package IO renames Ada.Text_IO;
procedure Solve is
term : Positive := 3;
n : BigInt := BigInteger.Create(2);
n_1 : BigInt := BigInteger.Create(1);
n_2 : BigInt := BigInteger.Create(1);
begin
while Magn... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- extended unit
with Ada.IO_Exceptions;
with Ada.IO_Modes;
with Ada.Streams.Stream_IO;
with System.Storage_Elements;
private with Ada.Finalization;
private with Ada.Streams.Naked_Stream_IO;
private with System.Native_IO;
package Ada.Storage_Mapped_IO is
-- Memory-mapped I/O.
typ... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
generic
type Element is private;
with function "=" (E1, E2 : Element) return Boolean is <>;
with function "<" (E1, E2 : Element) return Boolean is <>;
type Index is (<>);
type Arr is array (Index range <>) of Element;
procedure Bubble_Sort (A : in out Arr);
procedure Bubble_Sort (A : in out Arr) is
Finished : Bo... |
package Pack15 is
type Flags is array (1..2) of Boolean;
for Flags'Component_Size use 1;
type Messages is record
Status_Flags : Flags;
end record;
for Messages use record
Status_Flags at 0 range 1 .. 2;
end record;
O : Messages;
Buffer : Integer;
Status_Flags : Flags;
for Status_Flags'A... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.SAI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype GCR_SYNCIN_Field is HAL.UInt2;
sub... |
------------------------------------------------------------------------------
-- --
-- GESTE --
-- --
-- ... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ stream to skill tokens --
-- |___/_|\_\_|_|____| by: Timm Felden, Dennis Przytarski ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Common_Path is
function "rem" (A, B : String) return String is
Slash : Integer := A'First; -- At the last slash seen in A
At_A : Integer := A'first;
At_B : Integer := B'first;
begin
loop
if At_A > A'Last then
if At_... |
with Ada.Exceptions;
with Ada.Wide_Text_IO;
with Ada.Characters.Handling;
with Asis;
with Asis.Ada_Environments;
with Asis.Implementation;
with Asis.Exceptions;
with Asis.Errors;
with AdaM.Assist.Query.find_Entities.context_Processing;
procedure AdaM.Assist.Query.find_Entities.Driver
is
My_Context : A... |
pragma License (Unrestricted);
-- Ada 2012
with Ada.Real_Time;
package Ada.Synchronous_Task_Control.EDF is
procedure Suspend_Until_True_And_Set_Deadline (
S : in out Suspension_Object;
TS : Real_Time.Time_Span);
-- extended
-- If State is True, Set_True is called, otherwise it's timeout.
pro... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.GPIO;
with STM32_SVD.USB;
with System;
package STM32GD.USB is
-----------------------------------------------------------------------------
-- Endpoint register and associated types and operations
-----------------------------------------------------------------... |
-- Lambda Calculus interpreter
-- ---------------------------
-- Parses and reduces Lamdba Calculus statements.
--
-- Source:
-- lambda - [This file] definitions and helper functions
-- lambda_REPL - REPL and command line parsers
-- lambda_parser - parse tree generator
-- lambda_reducer - optimises and redu... |
package Libtcod.Clipboard is
procedure set(value : String);
function get return String;
end Libtcod.Clipboard;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Case_Paths;
package Program.Eleme... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 - 2019 Joakim Strandberg <joakim@mequinox.se>
--
-- 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.ap... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package body openGL.Conversions
is
function to_Vector_4 (From : in lucid_Color) return Vector_4
is
begin
return (to_Real (From.Primary.Red),
to_Real (From.Primary.Green),
to_Real (From.Primary.Blue),
to_Real (From.Opacity));
end to_Vector_4;
function to... |
with TLSF.Config;
use TLSF.Config;
package body TLSF.Mem_Block_Size
with SPARK_Mode is
generic
type Modular is mod <>;
Alignment_Log2: Positive;
function Align_generic ( V : Modular ) return Modular
with
Pre => V <= Modular'Last - (2 ** Alignment_Log2 - 1),
Post => (V <= Align_ge... |
-----------------------------------------------------------------------
-- asf-events-faces-actions -- Actions Events
-- Copyright (C) 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 no... |
with CLIC.Subcommand;
with AAA.Strings;
package FSmaker.Commands.Init is
subtype Parent is FSmaker.Commands.Command;
type Instance
is new Parent
with private;
overriding
function Name (This : Instance) return CLIC.Subcommand.Identifier
is ("init");
overriding
procedure Execute (This : in ... |
-- From https://youtu.be/tj_sBZw9nS0
-- This took way too long to do, far too many different edge cases, also as it is
-- it doesn't handle the second to last example.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
-- p is a sequence of any of the following:
-- 1. a-... |
package body System.Runtime_Context is
pragma Suppress (All_Checks);
-- I hope it will be zero-initialized...
Environment_Task_Local_Storage : aliased Task_Local_Storage;
-- implementation
function Get_Environment_Task_Local_Storage
return not null Task_Local_Storage_Access is
begin
r... |
-- Abstract :
--
-- See spec
--
-- Copyright (C) 2018 - 2019 Free Software Foundation, Inc.
--
-- This library 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) a... |
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
-- Copyright (C) 2016 Nico Huber <nico.h@gmx.de>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License,... |
-- { dg-do run }
with System; use System;
with Deferred_Const3_Pkg; use Deferred_Const3_Pkg;
procedure Deferred_Const3 is
begin
if C1'Address /= C'Address then
raise Program_Error;
end if;
if C2'Address /= C'Address then
raise Program_Error;
end if;
if C3'Address /= C'Address then
raise Progra... |
-- XXX! Nothing here is thread-safe!
with Interfaces; use Interfaces;
with Media_Reader; use Media_Reader;
with MyStrings; use MyStrings;
package FAT_Filesystem with SPARK_Mode => Off is
MAX_VOLUMES : constant := 1;
-- Maximum number of mounted volumes
-- FIXME: forbid the use of these in ... |
with Memory.Transform.EOR; use Memory.Transform.EOR;
with Parser.Transform_Parser;
separate (Parser)
procedure Parse_EOR(parser : in out Parser_Type;
result : out Memory_Pointer) is
package EOR_Parser is new Transform_Parser(
T_Type => Memory.Transform.EOR.EOR_Type,
T... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
with WebDriver.Elements;
package WebDriver.Sessions is
type Session is limited interface;
type Session_A... |
-- This spec has been automatically generated from STM32WL5x_CM4.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.ADC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- ISR_AWD array
type ... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package My_Class is
type Object is tagged private;
procedure Primitive(Self: Object); -- primitive subprogram
procedure Dynamic(Self: Object'Class);
procedure Static;
private
type Object is tagged null record;
end My_Class;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.