content stringlengths 23 1.05M |
|---|
with GESTE;
with GESTE.Tile_Bank;
with GESTE.Sprite;
with GESTE_Config; use GESTE_Config;
with GESTE.Maths_Types; use GESTE.Maths_Types;
with GESTE.Physics;
with Game_Assets;
with Game_Assets.Tileset;
package body Player is
type Player_Type (Bank : not null GESTE.Tile_Bank.Const_Ref;
... |
-- --
-- package Object Copyright (c) Dmitry A. Kazakov --
-- Interface Luebeck --
-- Winter, 2002 --
-- ... |
-- { dg-options "-cargs -O2 -g -margs" }
package body Debug13 is
procedure Compile (P : Natural)
is
Max_Pos : constant Natural := P;
type Position_Set is array (1 .. Max_Pos) of Boolean;
Empty : constant Position_Set := (others => False);
type Position_Set_Array is array (1 .. Max_Po... |
with avtas.lmcp.types; use avtas.lmcp.types;
with afrl.cmasi.object; use afrl.cmasi.object;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
with afrl.cmasi.payloadConfiguration; use afrl.cmasi.payloadConfiguration;
with Ada.Containers.Vectors;
package afrl.cmasi.gimbalconfiguration is
type GimbalConfigu... |
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
package OmegaStrategy is
ARG : constant Integer := 0;
type Omega is new AbstractStrategyCombinator and Object with
record
indexPositi... |
with Interfaces; use Interfaces;
package P1 with SPARK_Mode is
type Byte_Array is array (Natural range <>) of Unsigned_8;
function toBytes(uint : Unsigned_16) return Byte_Array is
(1 => Unsigned_8( uint mod 2**8 ), 2 => Unsigned_8 ( uint / 2**8 ) );
end P1;
|
-----------------------------------------------------------------------
-- gen-artifacts-distribs-copies -- Copy based distribution artifact
-- Copyright (C) 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
with C.string;
package body MPC is
function Version return String is
S : constant C.char_const_ptr := C.mpc.mpc_get_version;
Length : constant Natural := Natural (C.string.strlen (S));
Result : String (1 .. Length);
for Result'Address use S.all'Address;
begin
return Result;
end Version;
function Compo... |
with Ada.Containers.Indefinite_Doubly_Linked_Lists;
with GNAT.Regpat;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
generic
type Classified_Line (<>) is private ;
package Line_Arrays.Regexp_Classifiers is
type Callback_Type is
access function (Item : String;
Matches... |
package body problem_21 is
function Sum_Of_Divisors( Num : Integer ) return Integer is
Sum : Integer := 1;
I : Integer := 2;
begin
for I in 2 .. (Num / 2) loop
if Num mod I = 0 then
Sum := Sum + I;
end if;
end loop;
return Sum;
... |
-- C36180A.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 2019 Michael Casadevall <michael@casadevall.pro>
--
-- 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
-- rights to use, cop... |
--
-- 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,... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure Somme_Entier_Reel is
Entier : Integer; -- l'entier lu au clavier
Reel : Float; -- le réel lu au clavier
Somme : Float; -- la somme de l'entier par le... |
separate (Numerics)
function Abs_Max_IA (Item : in Int_Array) return Integer is
Result : Integer := 0;
begin
for N of Item loop
Result := Integer'Max (Result, abs (N));
end loop;
return Result;
end Abs_Max_IA;
|
with ada.Numerics.Discrete_Random,Ada.Text_IO;
use Ada.Text_IO;
package body estado_casillero is
package estado_aleatorio is new ada.Numerics.Discrete_Random(t_estado_casillero);
use estado_aleatorio;
function random_estado return t_estado_casillero is
g:Generator;
begin
Reset(g);
retur... |
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
with TJa.Sockets; use TJa.Sockets;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Server_Assets_Package; use Server_Assets_Package;
with Klient_Assets_Package; use Kl... |
--------------------------------------------------------------------------------
-- Copyright (c) 2013, Felix Krause <contact@flyx.org>
--
-- 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 pe... |
package body System.Tasking.Protected_Objects is
procedure Initialize_Protection (
Object : not null access Protection;
Ceiling_Priority : Integer)
is
pragma Unreferenced (Ceiling_Priority);
begin
Synchronous_Objects.Initialize (Object.Lock);
end Initialize_Protection;
procedure... |
for Value in 3 .. 12 loop
if Value mod 3 = 0 then
put(Value, 0);
put(", ")
end if;
end loop;
put("what's a word that rhymes with ""twelve""?");
|
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Scalar; use SPARKNaCl.Scalar;
procedure Scalarmult
is
AliceSK : constant Bytes_32 :=
(16#77#, 16#07#, 16#6d#, 16#0a#, 16#73#, 16#18#, 16#a5#, 16#7d#,
16#3c#, 16#16#, 16#c1#, 16#72#, 16#51#, 16#b2#, 16#66#, 16#... |
-- The Cupcake GUI Toolkit
-- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com>
-- Report bugs and issues on <http://github.com/skordal/cupcake/issues>
-- vim:ts=3:sw=3:et:si:sta
package body Cupcake.Backends is
-- Gets the backend class to be used:
function Get_Backend return Backend_Access ... |
-- C83F03C2M.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.
-- Unlim... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Exceptions;
with Ada.Streams.Stream_IO;
with Serialization.YAML;
with YAML.Streams;
with Vampire.Villages.Village_IO;
procedure Vampire.Villages.Load (
Name : in String;
Village : in out Village_Type;
Info_Only : in Boolean := False)
is
File : Ada.Streams.St... |
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Types;
with Configs;
with Action_List... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package avx512vldqintrin_h is
-- Copyright (C) 2014-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General P... |
-----------------------------------------------------------------------
-- mat-memory-tools - Tools for memory maps
-- Copyright (C) 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 exce... |
with STM32_SVD.Interrupts;
with STM32GD.GPIO; use STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.GPIO.Polled;
with STM32GD.SPI;
with STM32GD.SPI.Peripheral;
with STM32GD.Timer;
with STM32GD.Timer.Peripheral;
with STM32GD.Board;
with Drivers;
with Drivers.NRF24;
package Peripherals is
package CE is new Pin (... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Directories; use Ada.Directories;
with GNATCOLL.Projects; use GNATCOLL.Projects;
with GNATCOLL.VFS; use GNATCOLL.VFS;
with Libadalang.Project_Provider; use Libadalang.Project_Provider;
with Rejuvenation.File_Utils; use Rejuvenation.File_Utils;
package body Rejuvenation... |
with DDS.Request_Reply.Tests.Simple.String_Replier;
with DDS.Request_Reply.Tests.Simple.Octets_Replier;
procedure DDS.Request_Reply.Tests.Simple.Server.Main is
Listner : aliased Ref;
Octets_Replier : Simple.Octets_Replier.Ref_Access := Simple.Octets_Replier.Create
(Participant => Participant,
... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with GL.Objects.Programs;
with GL.Types;
with Multivectors;
package Graphic_Data is
Num_Names : Integer := 9;
Model_Names : array (1 .. Num_Names) of Unbounded_String :=
(To_Unbounded_String ("teapot"),
To_Unbounded_String ("cube"),
To... |
with AUnit.Test_Cases;
package Tc is
type Test_Case is new AUnit.Test_Cases.Test_Case with null record;
function Name (Test : Test_Case) return AUnit.Message_String;
procedure Register_Tests (Test : in out Test_Case);
end tc;
|
pragma Ada_2012;
package body Line_Parsers.Receivers.Multi_Receivers is
-------------
-- Receive --
-------------
overriding procedure Receive
(Handler : in out Multi_Receiver;
Name : String;
Value : String;
Position : Natural)
is
Basic : Basic_Receiver;
begin
... |
package Yeison_Experiments is
-- Test the use of several function profiles with a single aspect
type List is tagged private with
Aggregate =>
(Empty => Empty,
Add_Unnamed => Append);
function Empty return List is (null record);
procedure Append (L : in out List; I : Integer);
Pr... |
package Apollonius is
type Point is record
X, Y : Long_Float := 0.0;
end record;
type Circle is record
Center : Point;
Radius : Long_Float := 0.0;
end record;
type Tangentiality is (External, Internal);
function Solve_CCC
(Circle_1, Circle_2, Circle_3 : Circle;
T1, T2, ... |
with Emulator_8080.Processor;
private with GNAT.Sockets;
package Emulator_8080.Vram_Sender is
procedure Initialize(Port : in Natural; Ip_Address : in String);
procedure Close;
procedure Send_Vram(Vram : in Emulator_8080.Processor.Vram_Type);
private
Sender_Socket : GNAT.Sockets.Socket_Type;
end Emulator_80... |
with Graphe;
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
procedure Scenario_Graphe is
subtype T_Etiquette_Sommet is Integer;
type T_Etiquette_Arete is
(A_Pour_Parent, A_Pour_Enfant, A_Pour_Frere, A_Pour_Conjoint);
package Graphe_Genealogique is new Grap... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Safe_Element_Visitors;
package body Program.Simple_Resolvers is
type Visitor
(SR : not null Simple_Resolver_Access;
Setter ... |
package p1 is
type t1 is private ;
private
type t1 is record
null;
end record ;
end ;
with p1; use p1 ;
package p2 is
subtype same is t1 ;
thing: same ;
end ;
|
package Loop_Optimization10_Pkg is
pragma Pure (Loop_Optimization10_Pkg);
type Limit_Type is record
Low : Float;
High : Float;
end record;
function F (Low, High : in Float) return Limit_Type;
end Loop_Optimization10_Pkg;
|
-----------------------------------------------------------------------
-- util-serialize-io -- IO Drivers for serialization
-- Copyright (C) 2010, 2011, 2016, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
--------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME-GTYPE.ADS --
-- --
-- Gestion des types --
-- ... |
with
physics.Space,
physics.Joint,
physics.Object,
lace.Observer,
lace.Any,
ada.Tags;
package physics.Engine
--
-- Provides a task which evolves a physical space.
--
is
type Item is tagged limited private;
type View is access all Item'Class;
-- procedure start (Self : access ... |
--- src/core/aws-net.adb.orig 2021-05-19 05:14:31 UTC
+++ src/core/aws-net.adb
@@ -655,7 +655,7 @@ package body AWS.Net is
-- to be shure that it is S1 and S2 connected together
- exit when Peer_Addr (STC (S2)) = Local_Host
+ exit when Peer_Addr (STC (S2)) = Get_Addr (STC (S1))
... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
procedure Multiplication_Table is
package IO is new Integer_IO (Integer);
use IO;
begin
Put (" | ");
for Row in 1..12 loop
Put (Row, Width => 4);
end loop;
New_Line;
Put_Line ("--+-" & 12 * 4 * '-');
for Ro... |
with Types;
package Printer is
function Pr_Str (M : Types.Lovelace_Handle) return String;
end Printer;
|
------------------------------------------------------------------------------
-- GNAT COMPILER COMPONENTS --
-- --
-- G N A T . R E W R I T E _ D A T A --
-- ... |
with Interfaces.C; use Interfaces.C;
package JNI_MD is
-- pragma Pure;
subtype jint is int;
subtype jlong is long;
subtype jbyte is signed_char;
end JNI_MD;
|
-- 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... |
-----------------------------------------------------------------------
-- hestia-scheduler -- Hestia Scheduler
-- Copyright (C) 2016, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Ada.Text_IO, Ada.Command_Line, Generic_Perm;
procedure Print_Perms is
package CML renames Ada.Command_Line;
package TIO renames Ada.Text_IO;
begin
declare
package Perms is new Generic_Perm(Positive'Value(CML.Argument(1)));
P : Perms.Permutation;
Done : Boolean := False;
procedure... |
--
--
--
with Ada.Text_IO;
with Rules;
with Types;
with Symbols.IO;
package body Debugs is
procedure JQ_Dump_Rules (Session : in Sessions.Session_Type;
Mode : in Integer)
is
use Ada.Text_IO;
use type Rules.Rule_Symbol_Access;
subtype Index_Number is Rules.Index... |
--
-- Raytracer implementation in Ada
-- by John Perry (github: johnperry-math)
-- 2021
--
-- specification for Colors, both RGB ("Color_Type")
-- and RGBA ("Transparent_Color_Type")
--
-- local packages
with RayTracing_Constants; use RayTracing_Constants;
-- @summary
-- specification for Colors, both RGB ("Color_Ty... |
with STM32GD.GPIO.Pin;
generic
with package Pin is new STM32GD.GPIO.Pin (<>);
package STM32GD.GPIO.IRQ is
procedure Configure_Trigger (Event : Boolean := False; Rising : Boolean := False; Falling : Boolean := False);
procedure Wait_For_Trigger;
procedure Clear_Trigger;
function Triggered return Boole... |
with System;
with ACO.Utils.Generic_Pubsub;
private with ACO.Utils.DS.Generic_Protected_Queue;
generic
type Item_Type is private;
Max_Nof_Subscribers : Positive;
Max_Nof_Queued_Events : Positive;
package ACO.Utils.Generic_Event is
pragma Preelaborate;
package PS is new ACO.Utils.Generic_Pubsub
... |
with Ada.Exceptions;
with Ada.Text_IO;
with Ada.Strings.Wide_Fixed;
with Ada.Wide_Text_IO;
with Ada.Wide_Text_IO.Wide_Unbounded_IO;
with Symbex.Lex;
with Symbex.Parse;
with Symbex.Walk;
procedure Dump is
package Exceptions renames Ada.Exceptions;
package IO renames Ada.Text_IO;
package Lex renames... |
pragma License (Unrestricted);
with Ada.Containers;
generic
with package Bounded is new Generic_Bounded_Length (<>);
function Ada.Strings.Wide_Bounded.Wide_Hash (
Key : Bounded.Bounded_Wide_String)
return Containers.Hash_Type;
pragma Preelaborate (Ada.Strings.Wide_Bounded.Wide_Hash);
|
with Ada.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers;
--- @summary
--- The `Spark_Unbound` package contains various unbound generic data structures.
--- All data structures are formally proven by Spark and `Storage_Error` for heap allocation is handled internally.
---
--- @description
... |
package body Controller_Dummy is
--
procedure Handle (The : in TEL_Dummy) is
begin
null;
end Handle;
--
end Controller_Dummy;
|
package body openGL.Model.sphere
is
overriding
function Bounds (Self : in Item) return openGL.Bounds
is
Radius : constant Real := Self.Scale (1) / 2.0;
begin
return (Ball => Radius,
Box => (Lower => (-Radius, -Radius, -Radius),
Upper => ( Radius, Radius, ... |
package Input is
type Entry_Type is (Shift_Start, Fall_Asleep, Wake_Up);
type Record_Entry is record
Action : Entry_Type;
Data : Natural;
end record;
Repose_Records : constant array (Positive range <>) of Record_Entry :=
((Shift_Start, 3209),
(Fall_Asleep, 13),
(Wake_Up,... |
package return1 is
type Base is abstract tagged null record;
type Child is new Base with record
Anon_Access : access Base'Class;
end record;
function X_Func (O : access Child) return access Base'Class;
end return1;
|
-- { dg-do compile }
-- { dg-options "-O3" }
package body Loop_Optimization15 is
type Integer_Array_T is array (B16_T range <>) of Integer;
Len : constant B16_T := 10;
Src : constant Integer_Array_T (1 .. Len) := (others => 0);
Dst : Integer_Array_T (1 .. Len);
procedure Proc (L : B16_T) is
... |
-- See LICENSE file for cc0 license details
with Ada.Directories;
with Ada.Exceptions; use Ada.Exceptions; -- TODO remove
with Ada.Strings;
with Ada.Strings.Maps.Constants;
with Ada.Strings.Unbounded; -- TODO needed?
with Ada.Text_Io;
with Iictl; -- TODO unecessary?
with Posix.Io;
with Posix.Process_Identification;
wit... |
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Containers;
with Ada.Strings.Equal_Case_Insensitive;
with Ada.Strings.Hash_Case_Insensitive;
with Ada.Strings.Hash;
use Ada.Strings;
package Symbol_Tables is
type ID_Type is new String
with Dynamic_Predicate => Is_Valid_ID (String (ID_Type... |
with
gel.World,
ada.unchecked_Conversion;
limited
with
openGL.Renderer.lean;
package gel.World.simple
--
-- Provides a simple gel world.
--
is
type Item is limited new gel.World.item
with private;
type View is access all Item'Class;
type Views is array (Positive range <>) of View;
... |
with Ada.Text_IO; use Ada.Text_IO;
with Filesystem.Native; use Filesystem.Native;
with Test_Directories; use Test_Directories;
with File_Block_Drivers; use File_Block_Drivers;
with File_IO; use File_IO;
with Filesystem.FAT; use Filesystem.FAT;
with HAL.Filesystem; use HAL.Filesystem;
with Compare... |
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Programmable IO block
package RP_SVD.PIO1 i... |
-- package pc_2_coeff_20
--
-- Predictor_Rule : Integration_Rule renames Predictor_32_20;
--
-- Corrector_Rule : Integration_Rule renames Corrector_33_20;
--
-- Final_Step_Corrector : Real renames Final_Step_Corrector_33_20;
generic
type Real is digits <>;
package pc_2_coeff_20 is
subtype P... |
-- { dg-do compile }
-- { dg-final { scan-assembler-not "elabs" } }
package OCONST6 is
type Sequence is array (1 .. 1) of Natural;
type Message is record
Data : Sequence;
end record;
for Message'Alignment use 1;
pragma PACK (Message);
ACK : Message := (Data => (others => 1));
end;
|
generic
type Value_T(<>) is private;
package My_Env_Versioned_Value_Set_G is
generic
with function Updated_Entity (Value : Value_T) return Boolean is <>;
package Update_G is end;
end;
|
-- Copyright 2018-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- ... |
with Interfaces.C;
with Interfaces.C.Strings;
with Ada.Exceptions;
package body GDNative.Context is
package IC renames Interfaces.C;
package ICS renames Interfaces.C.Strings;
package AE renames Ada.Exceptions;
------------------------
-- GDNative Initalize --
------------------------
procedure GDNa... |
-- 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... |
-----------------------------------------------------------------------
-- html -- ASF HTML Components
-- Copyright (C) 2009, 2010, 2011, 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... |
-----------------------------------------------------------------------
-- are-generator-go -- Generator for Go
-- Copyright (C) 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 except i... |
-- 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... |
-- Tiny Text
-- Copyright 2020 Jeremy Grosser
-- See LICENSE for details
with Interfaces; use Interfaces;
package body Tiny_Text is
procedure Initialize
(This : in out Text_Buffer;
Bitmap : Any_Bitmap_Buffer;
Width : Natural;
Height : Natural) is
begin
This.Width :=... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Slim.Message_Visiters;
with Slim.Messages.BUTN;
with Slim.Messages.SETD;
with Slim.Messages.STAT;
package Slim.Players.Idle_Stat... |
with
float_Math,
ada.Strings.unbounded;
package Collada
--
-- Provides a namespace and core types for the Collada package family.
--
is
-------
-- Text
--
subtype Text is ada.Strings.unbounded.unbounded_String;
function to_Text (From : in String) return Text
renames ada.Strings.unbounde... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Text_IO, Ada.Strings.Fixed, Ada.Containers.Indefinite_Vectors;
use Ada.Text_IO, Ada.Strings.Fixed, Ada.Containers;
procedure tokenize is
package String_Vector is new Indefinite_Vectors (Natural,String); use String_Vector;
procedure Parse (s : String; v : in out Vector) is
i : Integer := Index (s,",... |
pragma Ada_2012;
package body Finite_State_Scanners is
----------------
-- Add_Branch --
----------------
procedure Add_Branch
(Table : in out Automata_Table;
From : State_Type;
On : Ada.Strings.Maps.Character_Set;
To : State_Type)
is
use Ada.Strings.... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Containers.Vectors;
with WPs;
with Partners;
package Projects is
use type WPs.WP_Type;
use type Partners.Partner_Type;
package WP_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => WPs.WP_Type);
package Partner_Vectors ... |
package body converters with SPARK_Mode is
function double_to_speed (d : double) return Types.speed
is temp : Types.Speed;
begin
if (d <= double(-80.0)) then
temp := Types.Speed(-79.0);
return temp;
end if;
if (d >= double(80.0)) then
temp := Types.Speed(7... |
package Address_Null_Init is
type Acc is access Integer;
A : Acc := new Integer'(123);
B : Acc; -- Variable must be set to null (and A overwritten by null)
for B'Address use A'Address;
end Address_Null_Init;
|
pragma Ada_2012;
with Ada.Unchecked_Conversion;
with GNAT.Byte_Swapping;
with System;
package body SHA2_Generic_64 is
function Initialize return Context is
((State => <>, Count => 0, Buffer => (others => <>)));
procedure Initialize (Ctx : out Context) is
begin
Ctx := Initialize;
end Initialize... |
------------------------------------------------------------------------------
-- --
-- P G A D A . D A T A B A S E --
-- --
-- ... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
package Apsepp.Output_Class.Quiet is
type Output_Quiet is limited new Output_Interfa with private;
private
type Output_Quiet is limited new Output_Interfa with null record;
end Apsepp.Output_Class.Quiet;... |
-- 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) ... |
package body types
with spark_mode => on
is
function to_bit
(u : unsigned_8) return types.bit
is
pragma warnings (off);
function conv is new ada.unchecked_conversion
(unsigned_8, bit);
pragma warnings (on);
begin
if u > 1 then
raise program_error;
end if... |
-----------------------------------------------------------------------
-- awa-storages-modules-tests -- Unit tests for storage service
-- Copyright (C) 2012, 2013, 2016, 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "L... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
--
-- 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 Ada.Characters.Latin_1;
use Ada.Characters.Latin_1;
with Encodings.Line_Endings.Generic_Add_CR;
package Encodings.Line_Endings.Add_CR is new Generic_Add_CR(
Character_Type => Character,
String_Type => String,
Carriage_Return => CR,
Line_Feed => LF,
Coder_Base => Coder_Base
);
|
-- { dg-do run }
procedure Check_Displace_Generation is
package Stuff is
type Base_1 is interface;
function F_1 (X : Base_1) return Integer is abstract;
type Base_2 is interface;
function F_2 (X : Base_2) return Integer is abstract;
type Concrete is new Base_1 and Base_2 with null r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.