content stringlengths 23 1.05M |
|---|
----------------------------------------
-- Copyright (C) 2019 Dmitriy Shadrin --
-- All rights reserved. --
----------------------------------------
with Pal; use Pal;
with Ada.Finalization;
with ConfigTree;
with Logging;
--------------------------------------------------------------------------------
... |
-- Abstract :
--
-- A simple bounded sorted vector of definite items, in Spark.
--
-- Copyright (C) 2018 - 2020 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 Fou... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams;
with Editor_Package; use Editor_Package;
package body Utilities_Package is
function Read_File (Name : Unbounded_String; V : View) return Boolean is
Input : File_Type;
BFFR : Character;
begin
Open ... |
-- 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... |
with System.Unwind.Backtrace; -- implementation unit
package body GNAT.Traceback is
procedure Call_Chain (
Traceback : out Tracebacks_Array;
Len : out Natural)
is
X : System.Unwind.Exception_Occurrence;
T_Index : Integer;
begin
System.Unwind.Backtrace.Call_Chain (X);
Len :=... |
-- Institution: AdaCore / Technische Universitaet Muenchen
-- Department: * / Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: MPU 6000 Driver for SPI
--
-- Authors: Anthony Leonardo Gracio,
-- Emanuel Regnath (emanuel.regnath@tum.de)
with Interfaces; use Interfaces;
with Ad... |
-- Copyright 2017-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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
-- (a... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Copyright 2019-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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
-- (a... |
with System;
with STM32.F4.EXTI;
with STM32.F4.FSMC;
with STM32.F4.GPIO;
with STM32.F4.RCC;
with STM32.F4.SYSCFG;
with STM32.F4.USART;
with STM32.F4.Address_Map;
package STM32.F407Z is
pragma Preelaborate;
package Address_Map renames STM32.F4.Address_Map;
package Modules is
package EXTI renames STM32.F4.EXTI;
... |
procedure Line (Picture : in out Image; Start, Stop : Point; Color : Pixel) is
DX : constant Float := abs Float (Stop.X - Start.X);
DY : constant Float := abs Float (Stop.Y - Start.Y);
Err : Float;
X : Positive := Start.X;
Y : Positive := Start.Y;
Step_X : Integer := 1;
Step_Y : Integer := 1;... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
with Ada.Containers.Indefinite_Ordered_Maps;
with Symbolic_Expressions.Solving;
package EU_Projects.Times.Time_Expressions.Solving is
type Time_Equation_System is private;
function Contains_Left_Term (Equations : Time_Equation_System;
Left : Dotted_Identifier)
... |
-- Procedure tests Fourier8. Code fragments
-- demonstrate some features of FFT's.
with Fourier8;
with Text_IO; use Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
procedure fourier8_demo_1 is
type Real is digits 15;
package math is new Ada.Numerics.Generic_Elementary_Functions (Real);
use math... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada_Pretty.Definitions;
with Ada_Pretty.Clauses;
with Ada_Pretty.Declarations;
with Ada_Pretty.Expressions;
with Ada_Pretty.Joins... |
-- 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... |
with Asis;
package Unit_Processing is
-- Translate all FP operations in the body of a compilation unit
-- to PolyPaver-friendly function calls.
procedure Process_Unit (The_Unit : Asis.Compilation_Unit;
Trace : Boolean := False;
Output_Path : Stri... |
function Is_Palindrome(S: Seq) return Boolean is
J: Index := S'Last;
begin
for I in S'Range loop
if S(I) /= S(J) then return False; end if;
exit when I = S'Last;
J := Index'Pred(J);
end loop;
return True;
end Is_Palindrome;
|
-----------------------------------------------------------------------
-- awa-permissions -- Permissions module
-- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
--===========================================================================
--
-- This package defines the four 5x7 matrix elements used for the
-- DOUBLE WORD sized display capability
--
--===========================================================================
-- Copyright 2021 (C) Holger Rodriguez
--
-- SP... |
-- This file is generated by SWIG. Do *not* modify by hand.
--
package LLVM_bit_Writer is
end LLVM_bit_Writer;
|
package Overload is
function Minus(x, y : in integer) return integer;
end Overload;
|
-- { dg-do compile }
package Atomic1 is
type Arr is array (Integer range <>) of Boolean;
type UA is access all Arr;
U : UA;
pragma Atomic (U); -- { dg-error "atomic access" "" { xfail mips*-*-* } }
type R is record
U : UA;
pragma Atomic (U); -- { dg-error "atomic access" "" { xfail mips*-*-* } }... |
with Eval;
package My_Custom_Int is
type My_Custom_Int is record
Int_Val : Integer range 1 .. 100;
end record;
function Image (E: in My_Custom_Int) return String;
function "=" (L, R : in My_Custom_Int) return Boolean;
function "+" (L, R : in My_Custom_Int) return My_Custom_Int;
function "-" (... |
with U_Lexica;
use U_Lexica;
package body Semantica.Ctipus is
procedure Mt_Atom
(L, C : in Natural;
A : out Atribut) is
begin
A := (Atom, L, C);
end Mt_Atom;
procedure Mt_Identificador
(L, C : in Natural;
S : in String;
A : out Atribut) is
Id : Id_Nom;
begin
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C.Pointers;
package GL.Types.Colors is
pragma Preelaborate;
type Color_Index is (R, G, B, A);
subtype Basic_Color_Index is Color_Index range R .. B;
subtype Component is S... |
pragma Profile(Restricted);
pragma Restrictions (No_Abort_Statements);
pragma Restrictions (Max_Asynchronous_Select_Nesting => 0);
pragma Restrictions (No_Exceptions);
pragma Restrictions (No_Direct_Boolean_Operators);
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Characters.Latin_1;
use Ada.Characters.Latin_1;
with A... |
with Ada.Streams;
package ACO.Log is
pragma Preelaborate;
use Ada.Streams;
type Log_Level is
(Debug,
Info,
Warning,
Error,
Off);
procedure Put
(Level : in Log_Level;
Message : in String);
procedure Put_Line
(Level : in Log_Level;
Message : in St... |
with Ada.Text_IO;
procedure Hello is
begin
Ada.Text_IO.Put_Line("Hello, world!");
end Hello;
|
--------------------------------------------------------------------------------
-- * Body name vector.adb
-- * Project name ctffttest
-- *
-- * Version 1.0
-- * Last update 11/5/08
-- *
-- * Created by Adrian Hoe on 11/5/08.
-- * Copyright (c) 2008 AdaStar Informatics http://adastarinformatics.com
-- * ... |
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Sign; use SPARKNaCl.Sign;
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
with Random;
procedure Sign
is
Raw_SK : Bytes_32;
PK : Signing_PK;
SK : Signing_SK;
M : constant Byt... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, Fabien Chouteau --
-- --
-- ... |
----------------------------------------
-- Copyright (C) 2019 Dmitriy Shadrin --
-- All rights reserved. --
----------------------------------------
with Pal;
with ConfigTree;
with Sinks;
with Logging_Message; use Logging_Message;
with Ada.Containers.Ordered_Multisets;
with Ada.Containers.Vectors;
----... |
-- parse_args_suite-parse_args_tests.adb
-- Unit tests for the Parse_Args project
-- 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 notice ... |
-- Abstract :
--
-- Types and operatorion for LR(1) items.
--
-- Copyright (C) 2003, 2008, 2013 - 2015, 2017 - 2019 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 ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Anonymous_Access_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Parameter_Specifications;
pa... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
private with Ada.Calendar;
package Stopwatch is
type Instance is tagged private;
procedure Reset (This : in out Instance);
function Elapsed (This : Instance) return Duration;
procedure Hold (This : in out Instance; Enable : Boolean := True);
-- Stop counting time, or re-start if not Enable
proc... |
with Units; use Units;
with Ulog; use Ulog;
with Ulog.GPS; use Ulog.Gps;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Tags;
with Interfaces;
-- Rules for conversion in OO programming:
-- 1. SPECIFIC TYPES: only up-cast (towards ancestors/base) possible
-- * view conversion, i.e., components not in parent are hidde... |
with LV;
with LV.Font;
with LV.Theme;
with LV.Tasks;
with LV.HAL.Tick;
with Test_Theme_1;
with Disaply_Simulator;
procedure Main is
begin
LV.Init;
Disaply_Simulator.Initialize;
Test_Theme_1.Init;
loop
LV.Tasks.Handler;
delay 0.005;
lV.HAL.Tick.Inc (5);
end loop;
end Main;
|
-- { dg-do compile }
-- { dg-options "-gnatD" }
with System;
with Ada.Unchecked_Conversion;
procedure gnatg is
subtype Address is System.Address;
type T is access procedure;
function Cvt is new Ada.Unchecked_Conversion (Address, T);
X : T;
begin
X := Cvt (Gnatg'Address);
end gnatg;
|
with Ada.Text_IO, Ada.Containers.Vectors;
procedure RPN_Calculator is
package IIO is new Ada.Text_IO.Float_IO(Float);
package Float_Vec is new Ada.Containers.Vectors
(Index_Type => Positive, Element_Type => Float);
Stack: Float_Vec.Vector;
Input: String := Ada.Text_IO.Get_Line;
Cursor: Positive :... |
with Ada.Numerics.Discrete_Random;
package body Noise is
type Color is (Black, White);
package Color_Random is new Ada.Numerics.Discrete_Random (Color);
Color_Gen : Color_Random.Generator;
function Create_Image (Width, Height : Natural) return Lumen.Image.Descriptor is
Result : Lumen.Image.Descripto... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package Glfw.Windows.Clipboard is
-- strings are UTF-8 encoded
function Get (Object : not null access Window'Class) return String;
procedure Set (Object : not null access Window'Class; Value ... |
with Ada.Text_IO; use Ada.Text_IO;
with Input;
procedure Day03 is
type Fabric_Piece_Array is
array (Natural range 1 .. 1000, Natural range 1 .. 1000) of Natural;
Fabric_Piece : Fabric_Piece_Array := (others => (others => 0));
begin
-- Part 1
declare
Claim_Counter : Integer := 0;
begin
... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
pragma Ada_2012;
package body Protypo.Api.Engine_Values.Record_Wrappers is
type Record_Access_Handler is
new Handlers.Constant_Interface
with
record
Pos : Record_Maps.Cursor;
end record;
function Read (X : Record_Access_Handler) return Engine_Value
is
begin
return Record... |
-- This file was generated automatically: DO NOT MODIFY IT !
with Base_Types;
use Base_Types;
with TASTE_ExtendedTypes;
use TASTE_ExtendedTypes;
with TASTE_BasicTypes;
use TASTE_BasicTypes;
with UserDefs_Base_Types;
use UserDefs_Base_Types;
with adaasn1rtl;
use adaasn1rtl;
package blsclient is
-- Provided inter... |
-- SPDX-FileCopyrightText: 2020-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Element_Visitors;
with Program.Elements.Call_Statements;
with Program.Elements.Expressions;
with Program.Ele... |
package body MOS is
-- Load Program into Memory
procedure Load_Program_Into_Memory(This : in out MOS_T;
Program_Path : in String) is
Program_Length : Short_T := Get_Program_Length(Program_Path);
Program : Program_T := Read_File(Program_Path, Program_Length);
I : Short_... |
-- SET10112 2018-9 TR2 001 - Formal Approaches to Software Engineering
-- Trident - Submarine Coursework
-- Version 0.3.1
-- Alexander Barker
-- 40333139
-- Last Updated on 19th April 2019
-- main.adb
with Trident; use Trident;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
Put_Line("------------------... |
GLUT 3.4 was the first release of GLUT to support an Ada language
binding for SGI's Ada run-time and development environment. (With a
bit of work, GLUT could probably be easily be adapted to other Ada
development environments, assuming the environment already has an
OpenGL binding.)
To use the SGI Ada binding, pleas... |
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Unchecked_Deallocation;
with Ada.Containers.Doubly_Linked_Lists;
procedure Tree_Traversal is
type Node;
type Node_Access is access Node;
type Node is record
Left : Node_Access := null;
Right : Node_Access := null;
Data : Integer;
end record;
... |
------------------------------------------------------------------------------
-- --
-- Simple HTTP --
-- --
-- ... |
-- This spec has been automatically generated from STM32L151.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_PLS_Field is HAL.UI... |
with Semihosting;
with Ada.Real_Time;
with HAL.I2C;
with VL53L1X;
with VL53L1X_Demo.Hardware; use VL53L1X_Demo.Hardware;
procedure VL53L1X_Demo.Main is
-- Override the default task stack sizes used by Cortex GNAT RTS,
-- which aren't enough for this code.
-- For the environment task.
Environment_Ta... |
package OpenGL.Light is
type Light_Index_t is
(Light_0,
Light_1,
Light_2,
Light_3,
Light_4,
Light_5,
Light_6,
Light_7);
-- proc_map : glEnable
procedure Enable (Index : in Light_Index_t);
pragma Inline (Enable);
-- proc_map : glDisable
procedure Disable (Index : in ... |
package body Xmlhelpers is
procedure Add_Node
(Node_Name, Node_Value : String; Parent_Node : DOM.Core.Element;
Feed : Node)
is
Feed_Text : Text;
Feed_Data : DOM.Core.Element;
begin
Feed_Data :=
Append_Child (Parent_Node, Create_Element (Feed, Node_Name));... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
package Ada.Calendar is
type Time is private;
subtype Year_Number is Integer range 1901 .. 2399;
subtype Month_Number is Integer range 1 .. 12;
subtype Day_Number is Integer range 1 .. 31;
subtype Day_Duration is Duration range 0.0 .. 86_400.0;
function Clock return T... |
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure List_Insertion is
package String_List is new Ada.Containers.Doubly_Linked_Lists(Unbounded_String);
use String_List;
procedure Print(Position : Cursor) is
begin
... |
with reg;
package body pinconfig is
use type reg.Word;
procedure Enable_Input (Pin : in Pin_ID; Mode : in Input_Mode) is
begin
case Pin is
when Pin_2 =>
reg.RCC_AHB1ENR := reg.RCC_AHB1ENR
or 2#10_0000#; -- bit 5
reg.GPIOF_MODER... |
-- 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... |
package body Int64_Parsing with SPARK_Mode is
function Char_To_Int (C : Character) return Int64 is
(case C is
when '0' => 0,
when '1' => 1,
when '2' => 2,
when '3' => 3,
when '4' => 4,
when '5' => 5,
when '6' => 6,
whe... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
with Yaml.Tags;
package body Yaml is
function Version_Major return Natural is (1);
function Version_Minor return Natural is (3);
function Version_Patch retur... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P(A, A: integer) is begin New_Line; end;
begin
P(0,1);
end;
|
--pragma SPARK_Mode;
with Types; use Types;
-- @summary
-- Interface to the robot's buzzer
--
-- @description
-- This is not totally implemented yet. DO NOT USE!!
--
package Zumo_Buzzer is
-- True if the interface is init'd
Initd : Boolean := False;
-- Init the interface
procedure Init
with P... |
-- 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.EXTI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype RTSR1_RT_Field is HA... |
with Ada.Characters.Conversions;
with Ada.UCD.Combining_Class;
package body Ada.Strings.Composites is
use type UCD.UCS_4;
type Long_Boolean is new Boolean;
for Long_Boolean'Size use Long_Integer'Size;
function expect (exp, c : Long_Boolean) return Long_Boolean
with Import,
Convention => Int... |
package SPARKNaCl.Scalar
with Pure,
SPARK_Mode => On
is
--------------------------------------------------------
-- Scalar multiplication
--------------------------------------------------------
function Mult (N : in Bytes_32;
P : in Bytes_32) return Bytes_32
with Global =>... |
-- { dg-do run }
--
with Init12; use Init12;
with Text_IO; use Text_IO;
with Dump;
procedure T12 is
Local_A11 : Arr11;
Local_A22 : Arr22;
begin
Local_A11(1,1) := My_A11(1,1) + 1;
Local_A11(1,2) := My_A11(1,2) + 1;
Local_A11(2,1) := My_A11(2,1) + 1;
Local_A11(2,2) := My_A11(2,2) + 1;
Put ("Local_A11 :... |
with Ada.Numerics.Long_Elementary_Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Sequence_Of_Non_Squares_Test is
use Ada.Numerics.Long_Elementary_Functions;
function Non_Square (N : Positive) return Positive is
begin
return N + Positive (Long_Float'Rounding (Sqrt (Long_Float (N))));
end No... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with System.Pool_Local;
generic
File_Size : Natural; -- handle empty file
package File_Operations.Heap is
localPool : System.Pool_Local.Unbounded_Reclaim_Pool;
subtype HM_File_String is String (1 .. ... |
with Ada.Text_IO;
with Max2;
procedure Main is
V : Max2.Vector := (4, 4, 4, 4);
begin
Ada.Text_IO.Put_Line(Max2.FindMax2 (V)'Image);
end Main;
|
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from ATSAMG55J19.svd
-- This is a version for the Atmel ATSAMG55J19 Microcontroller MCU
package Ada.Interrupts.Names is
-- All identifiers in this unit are implementation defined
pragma Implementation_Defined;
---------... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure Lab1 is
FP, LP, Steps, Momsproc, Moms: Float;
begin
loop
Put("Första pris: "); Get(FP);
exit when FP >= 0.0;
end loop;
loop
Put("Sista pris: "); Get(LP);
exit when LP >= FP;
end loop;
... |
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.VREFBUF is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CSR_VRS_Field is HAL.UInt3;
-... |
private with Ada.Containers.Indefinite_Holders;
private with Ada.Containers.Indefinite_Ordered_Maps;
private with Ada.Containers.Indefinite_Vectors;
package Yeison_Single with Preelaborate is
subtype Text is String;
type Any is tagged private with
Integer_Literal => To_Int,
Real_Literal => To_... |
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with Randomise; use Randomise;
procedure Main is
C : Character;
S : R_String.Bounded_String;
Are_Inside_Tag : Boolean := False;
begin
while not End_Of_File loop
Get_Immediate(C);
if Are_Inside_Tag then
if C ... |
------------------------------------------------------------------------------
-- cooks.adb
--
-- Implementation of the cooks.
------------------------------------------------------------------------------
with Ada.Strings.Unbounded, Randoms, Meals, Reporter;
use Ada.Strings.Unbounded, Randoms, Meals, Reporter;... |
with Mismatch;
with Default_Value; use Mismatch;
with Prefix_Notation; use Prefix_Notation;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters; -- With Comment and Whitespaces
use Ada.Characters;
with Ada.Containers.Vectors; use Ada.Containers;
with Ada.Calendar, Ada.Directories; use Ada.Calendar, Ada.Direc... |
--------------------------------------------------------------------------------
-- Fichier : arbre_binaire.ads
-- Auteur : MOUDDENE Hamza & CAZES Noa
-- Objectif : Test du module Arbre_Binaire.
-- Créé : Dimanche Nov 25 2019
--------------------------------------------------------------------------------
... |
with Ada.Unchecked_Deallocation;
with Physics; use Physics;
with Materials;
with Circles;
package body Worlds is
-- init world
procedure Init(This : in out World; dt : in Float; MaxEnts : Natural := 32)
is
VecZero : constant Vec2D := (0.0, 0.0);
begin
This.MaxEntities := MaxEnts;
This.dt... |
pragma License (Unrestricted);
-- implementation unit
generic
package Ada.Containers.Ordered_Sets.Debug is
pragma Preelaborate;
procedure Dump (Source : Set; Message : String := "");
function Valid (Source : Set) return Boolean;
end Ada.Containers.Ordered_Sets.Debug;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020, AdaCore --
-- --
-- ... |
with Ada.Containers.Doubly_Linked_Lists; use Ada.Containers;
package Marble_Mania is
package Nat_List is new Ada.Containers.Doubly_Linked_Lists (Natural);
type List_Ptr is access all Nat_List.List;
type Score_Count is mod 2**64;
type Player_Scores is array (Positive range <>) of Score_Count;
type Circl... |
-- todo: initialize in several functions: initGPIO, initI2C, use HAL
with HIL.GPIO;
with HIL.Clock;
with HIL.SPI;
with HIL.UART;
package body CPU is
-- configures hardware registers
procedure initialize is
begin
-- Configure GPIO
HIL.Clock.configure;
HIL.GPIO.configure;
HIL.UART.... |
-----------------------------------------------------------------------
-- jobs-tests -- Unit tests for AWA jobs
-- 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 this ... |
with
gel.Sprite,
gel.World,
ada.unchecked_Deallocation;
package body gel.Joint
is
function to_GEL (the_Joint : standard.physics.Joint.view) return gel.Joint.view
is
begin
return gel.Joint.view (the_Joint.user_Data);
end to_GEL;
---------
--- Forge
--
procedure define (S... |
with System;
package body Flash is
FCTL1 : Unsigned_16 with Import, Address => System'To_Address (16#0128#);
FCTL2 : Unsigned_16 with Import, Address => System'To_Address (16#012A#);
FCTL3 : Unsigned_16 with Import, Address => System'To_Address (16#012C#);
Flash_Memory : array (Unsigned_16 range 0 .. 327... |
-- EE3203A.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... |
-- Score PIXAL le 07/10/2020 à 17:34 : 100%
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Lire et écrire un tableau d'entiers.
procedure Tableau_IO is
Capacite: constant Integer := 10; -- Cette taille est arbitraire
type T_TableauBrut is array (1..Capacite) of ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
with Ada.Containers.Array_Sorting;
with System.Long_Long_Integer_Types;
package body Ada.Containers.Generic_Array_Access_Types is
subtype Word_Integer is System.Long_Long_Integer_Types.Word_Integer;
-- implementation
function Length (Container : Array_Access) return Count_Type is
begin
if Containe... |
-----------------------------------------------------------------------
-- druss-gateways -- Gateway management
-- Copyright (C) 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 except i... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package CSS.Analysis.Parser.Parser_Tokens is
subtype yystype is CSS.Analysis.Parser.YYstype;
YYLVal, YYVal : YYSType;
type Token is
(END_OF_INPUT, ERROR, R_PROPERTY, R_DEF_NAME,
R_IDENT, R_NAME, R_DEFINE,
R_FOLLOW, R_ANY, R_NUM,
'(', ')', '{',
'}', '[', ']',
... |
with System;
private with Ada.Synchronous_Task_Control;
private with ACO.Utils.DS.Generic_Queue;
generic
type Item_Type is private;
Maximum_Nof_Items : Positive;
package ACO.Utils.DS.Generic_Protected_Queue is
-- A protected queue
pragma Preelaborate;
type Protected_Queue
(Ceiling : System.Pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.