content stringlengths 23 1.05M |
|---|
-- Test program. Read a valid toml-test compatible JSON description on the
-- standard input and emit a corresponding TOML document on the standard
-- output.
with Ada.Containers.Generic_Array_Sort;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with GNATCOLL.JSON;
with TOML;
with TOML.Generic_Dump;
procedure Ada... |
-- Copyright 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 or agr... |
with Ada.Numerics.Generic_Elementary_Functions;
package body Apollonius is
package Math is new Ada.Numerics.Generic_Elementary_Functions
(Long_Float);
function Solve_CCC
(Circle_1, Circle_2, Circle_3 : Circle;
T1, T2, T3 : Tangentiality := External)
return ... |
package body impact.d2.Math
is
procedure dummy is begin null; end dummy;
function b2IsValid (x : in float32) return Boolean
is
begin
if x /= x then
return False; -- NaN.
end if;
return -float32'Last < x
and then x < float32'Last;
... |
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Tags.Generic_Dispatching_Constructor;
with Ada.Containers.Vectors;
package body Plugins.Tables is
use type Ada.Tags.Tag;
package Plugin_Maps is
new Ada.Containers.Indefinite_Ordered_Maps (Key_Type => Plugin_ID,
... |
-- Project: StratoX
-- System: Stratosphere Balloon Flight Controller
-- Author: Martin Becker (becker@rcs.ei.tum.de)
with FAT_Filesystem.Directories.Files;
with Interfaces; use Interfaces;
-- @summary top-level package for reading/writing logfiles to SD card
package SDLog with SPARK_Mode,
Abstract_State => St... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with System;
limited with glext;
package gl is
-- unsupported macro: GLAPI __attribute__((visibility("default")))
-- unsupported macro: APIENTRY GLAPIENTRY
-- unsupported ... |
-----------------------------------------------------------------------
-- Util.Serialize.Mappers.Vector_Mapper -- Mapper for vector types
-- 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");... |
-- Generated by gperfhash
with Util.Strings.Transforms;
with Interfaces; use Interfaces;
package body PQ.Perfect_Hash is
P : constant array (0 .. 11) of Natural :=
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13);
T1 : constant array (0 .. 11) of Unsigned_16 :=
(458, 26, 756, 54, 156, 452, 817, 805, 671, 438... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Real_Time; use Ada.Real_Time;
procedure Main is
begin
loop
Put_Line ("Hello");
delay until Clock + Milliseconds (10);
end loop;
end Main;
|
package openGL.Model.capsule
--
-- Provides an abstract base class for capsule models.
--
is
type Item is abstract new openGL.Model.item with null record;
end openGL.Model.capsule;
|
package body STM32GD.Clock.Timer is
procedure Init is
begin
null;
end Init;
procedure Delay_us (us : Natural) is
begin
null;
end Delay_us;
procedure Delay_ms (ms : Natural) is
begin
null;
end Delay_ms;
procedure Delay_s (s : Natural) is
begin
null;
end Del... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! --
-- --
-- ... |
with Fakedsp.Card;
package Notch_Example.filters is
type Normalized_Frequency is digits 16 range 0.0 .. 1.0;
type Notch_Filter is new Fakedsp.Card.Callback_Handler with private;
type Filter_Access is access Notch_Filter;
function New_Filter (F0 : Normalized_Frequency;
R : Fl... |
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Strings_Edit.Streams Luebeck --
-- Implementation Spring, 2009 --
-- ... |
-- Abstract :
--
-- A generic doubly linked list with indefinite elements, allowing
-- permanent references to elements.
--
-- 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
... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Paths;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Case_... |
--
-- Raytracer implementation in Ada
-- by John Perry (github: johnperry-math)
-- 2021
--
-- specification for 3d Vectors, which describe positions, directions, etc.
--
-- local packages
with RayTracing_Constants; use RayTracing_Constants;
-- @summary 3d Vectors, which describe positions, directions, etc.
package V... |
-----------------------------------------------------------------------
-- asf-navigations -- Navigations
-- Copyright (C) 2010, 2011, 2012, 2013, 2018, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
-- { dg-do run }
with Ada.Text_IO;
use Ada.Text_IO;
procedure Test_Enum_IO is
type Enum is (Literal);
package Enum_IO is new Enumeration_IO (Enum);
use Enum_IO;
File : File_Type;
Value: Enum;
Rest : String (1 ..30);
Last : Natural;
begin
Create (File, Mode => Out_File);
Put_Line (File, "L... |
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core;
with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox;
with SPARKNaCl.Stream;
with Random;
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
procedure Secretbox7
is
RK : Bytes_32;
K : Core.Salsa20_Key;
N : S... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.Expressions;
with Program.Ele... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- Lumen.Binary.Endian -- Parent package for big- vs. little-endian
-- byte-ordering services
--
--
-- Chip Richards, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software... |
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
package mycalendar is
type daynum is range 1 .. 31;
type monthnum is range 1 .. 12;
type monthname is (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec);
type weekday is (Mon, Tue, Wed, Thu, Fri, Sat, Sun);
procedure makecal(w: in weekday; d: in daynum; m:in monthnum);
end mycalendar;
|
with bits_stdint_uintn_h;
with GLX;
with Xlib;
with xcb;
with xcb_damage;
with xcb_ewmh;
with xproto;
package Setup is
-- Thrown if there's a fatal error during the initialization process.
SetupException : exception;
type connectionPtr is access xcb.xcb_connection_t;
-- Contains atom values for E... |
-- Package body Milesian_calendar
----------------------------------------------------------------------------
-- Copyright Miletus 2016-2019
-- 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 Softwar... |
with RP.Device;
with BB_Pico_Bsp.LVGL_Backend;
with BB_Pico_Bsp.LCD;
with Lv.Tasks;
with Lv.Hal.Tick;
with lvgl_ada_Config; use lvgl_ada_Config;
with Lv; use Lv;
with Lv.Area;
with Lv.Group;
with Lv.Objx; use Lv.Objx;
with Lv.Objx.Cont;
with Lv.Objx.Tabview;
with Lv.Objx.Page;
with Lv.Objx.Slider;
with Lv.Objx.Texta... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Numerics.Elementary_Functions;
use Ada.Numerics.Elementary_Functions;
procedure Quadratic_Equation
(A, B, C : Float; -- By default it is "in".
R1, R2 : out Float;
Valid : out Boolean)
is
Z : Float;
begin
Z := B**2 - 4.0 * A * C;
if Z < 0.0 or A = 0.0 then
Valid := False; -... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Directories;
procedure EmptyDir is
function Empty (path : String) return String is
use Ada.Directories;
result : String := "Is empty.";
procedure check (ent : Directory_Entry_Type) is begin
if Simple_Name (ent) /= "." and Simple_Name (ent) /= "..... |
with Ada.Float_Text_IO;
with Ada.Numerics;
procedure Pi (Value : in Value_Type);
Prod : Float := 1.0;
Szamlalo : Float := 0.0;
Diff: constant Float := 0.0001;
Pi : Value_Type := Ada.Numerics.Pi;
procedure Pi (Value : in Value_Type) is
begin
loop
Szamlalo := Szamlalo + 2.0;
Prod := Prod * (Sz... |
-- { dg-do compile }
with Ada.Finalization;
with Pack6_Pkg;
package Pack6 is
package Eight_Bits is new Pack6_Pkg (8);
type Some_Data is record
Byte_1 : Eight_Bits.Object;
Byte_2 : Eight_Bits.Object;
end record;
for Some_Data use record
Byte_1 at 0 range 0 .. 7;
Byte_2 at 1 range 0 .. 7;
e... |
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : constant String := "For your eyes only! XoXo";
cipherlen : constant Positive := Sealed_Cipher_Length (message);
begin
if not initialize_sodium_library then
Put_Line ("Initialization failed... |
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.Flash is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ACR_LATENCY_Field is... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
private with GL.Low_Level;
package GL.Pixels is
pragma Preelaborate;
use GL.Types;
type Internal_Format is (Depth_Component, Red, Alpha, RGB, RGBA, Luminance,
... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with CommonText;
with AdaBase.Connection.Base;
with AdaBase.Logger.Facility;
with AdaBase.Interfaces.Driver;
package AdaBase.Driver.Base is
package CT renames CommonText;
package ACB renames AdaBase.Con... |
with direccion,estado_casillero;
use direccion,estado_casillero;
package aspiradora is
-- IMPORTANTE 1: En Ada deben definirse la clase del objeto y los metodos en el mismo alcance
-- IMPORTANTE 2: En Ada debe pasarse el objeto como paramtero en cada metodo. Es un this explicito
type t_aspiradora is tagged ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Enums.Getter;
with GL.API;
package body GL.Fixed.Lighting is
use type Toggles.Toggle_State;
Light_Model_Enabled : aliased constant Int := 1;
Light_Model_Disabled : aliased constant I... |
-----------------------------------------------------------------------
-- Util.Concurrent -- Concurrent Counters
-- Copyright (C) 2009, 2010 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 ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2010, AdaCore --
-- --
-- G... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Non_Continuous is
type Sequence is array (Positive range <>) of Integer;
procedure Put_NCS
( Tail : Sequence; -- To generate subsequences of
Head : Sequence := (1..0 => 1); -- Already generated
Contigu... |
with Kv.avm.vole_Tree;
package Vole_Tokens is
type YYSType is
record
Node : kv.avm.vole_tree.Node_Pointer;
end record;
YYLVal, YYVal : YYSType;
type Token is
(End_Of_Input, Error, Key_Import, Id_Token,
Eos_Token, Block_Begin, Block_End,
Key_Attribute, Key_P... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- util-xunit - Unit tests on top of AUnit
-- 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 u... |
-----------------------------------------------------------------------
-- util-listeners-lifecycles -- Listeners
-- Copyright (C) 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except... |
-- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with Interfaces.C;
with swig;
with Interfaces.C;
package xcb is
-- xcb_connection_t
--
subtype xcb_connection_t is swig.opaque_structure;
type xcb_connection_t_array is
array (Interfaces.C.size_t range <>) of aliase... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with System;
use System;
with Interfaces.C;
use Interfaces;
function GBA.BIOS.Memset
( Dest : in Address; Value : Integer; Num_Bytes : C.size_t ) return Address
with Linker_Section => ".iwram";
pragma Machine_Attribute (Memset, "ta... |
with impact.d2.orbs.Fixture;
package impact.d2.orbs.Contact.circle
--
--
--
is
type b2CircleContact is new b2Contact with null record;
type View is access all b2CircleContact'Class;
function to_b2CircleContact (fixtureA, fixtureB : access fixture.item'Class) return b2CircleContact;
overri... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- 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 Lic... |
with Generic_Fifo;
with Ada.Text_Io; use Ada.Text_Io;
procedure Generic_Fifo_Test is
package Int_Fifo is new Generic_Fifo(Integer);
use Int_Fifo;
My_Fifo : Fifo_Type;
Val : Integer;
begin
for I in 1..10 loop
My_Fifo.Push(I);
end loop;
while not My_Fifo.Is_Empty loop
My_Fifo.Pop(Val);
... |
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- 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, or
-- (at your option) any later version.
--
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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... |
package body Numeric_Tests is
function Is_Numeric (Item : in String) return Boolean is
Dummy : Float;
begin
Dummy := Float'Value (Item);
return True;
exception
when others =>
return False;
end Is_Numeric;
end Numeric_Tests;
|
package body System.Long_Long_Integer_Types is
pragma Suppress (All_Checks);
-- libgcc
function udivmoddi4 (
a, b : Long_Long_Unsigned;
c : not null access Long_Long_Unsigned)
return Long_Long_Unsigned
with Import, Convention => C, External_Name => "__udivmoddi4";
-- implementati... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with Ada.Streams.Block_Transmission.Strings;
with Ada.Streams.Block_Transmission.Wide_Strings;
with Ada.Streams.Block_Transmission.Wide_Wide_Strings;
with System.Storage_Elements;
package System.Strings.Stream_Ops is
pragma Pure;
pragma ... |
with Vecteurs; use Vecteurs;
package Math is
-- Hypothénuse
-- https://en.wikipedia.org/wiki/Hypot
function Hypot(P : Point2D) return Float;
end;
|
-- 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... |
-----------------------------------------------------------------------
-- cosin -- Generate a sinus/cosinus table
-- 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 file excep... |
package Benchmark.Matrix.MM is
type MM_Type is new Matrix_Type with private;
function Create_MM return Benchmark_Pointer;
overriding
procedure Run(benchmark : in MM_Type);
private
type MM_Type is new Matrix_Type with null record;
end Benchmark.Matrix.MM;
|
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
procedure divisores (n1: in Integer) is
begin
new_line;
put("Los divisores de ese numero son:");
for divisor in 1..n1 loop
if n1 rem divisor = 0 then
put(divisor);
end if;
end loop;
new_line;
end divisores;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
-- with Pixtend.arm_linux_gnueabihf_bits_stdint_uintn_h;
package Pixtend.pixtend_h is
type pixtOut is record
byDigOut : aliased unsigned_char; -- pixtend.h:36
byRelayOut : aliased unsigned_char; -- pixtend.h:37
b... |
package Operator_Subprogram_Calls is
procedure Test;
procedure Test2;
end Operator_Subprogram_Calls;
|
with ada.calendar;
with gnat.calendar.time_io;
procedure HackingDate is
begin
gnat.calendar.time_io.put_time(ada.calendar.clock, "%Y-%m-%d");
end HackingDate; |
with DDS.ReadCondition;
with DDS.Request_Reply.impl;
package DDS.Request_Reply.Requester.Impl is
type Ref is abstract limited new DDS.Request_Reply.impl.ref and DDS.Request_Reply.Requester.Ref with private;
type Ref_Access is access all Ref'Class;
function Get_Request_Data_Writer
(Self : not null access ... |
with
ada.unchecked_Conversion,
ada.unchecked_Deallocation,
interfaces.C.Strings,
system.Storage_Elements;
package body XML.Reader
is
package C renames Interfaces.C;
package S renames Interfaces.C.Strings;
type XML_Char is new C.unsigned_short;
type XML_Char_Ptr is access all XML... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: CRC-8
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
--
-- Description: Checksum according to fletcher's algorithm
with HIL;
with Interfaces; use Interfaces;
package body F... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- { dg-do run }
-- { dg-options "-gnatW8" }
procedure wide_test is
X : constant Wide_Character := 'Я';
begin
declare
S3 : constant Wide_String := (''', X, ''');
X3 : Wide_Character;
begin
X3 := Wide_Character'Wide_Value (S3);
if X /= X3 then
raise Program_Error;
... |
with Ada.Real_Time; use Ada.Real_Time;
package body Solar_System.Graphics is
procedure Draw_Body(Object : Body_Type; Canvas : Canvas_ID) is
begin
if Object.Visible then
Draw_Sphere(Canvas => Canvas,
Position => (Object.Pos.X, Object.Pos.Y, 0.0),
Radius ... |
-- { dg-do compile }
-- { dg-options "-O -fdump-tree-optimized" }
procedure Loop_Optimization19 is
type Array_T is array (Positive range <>) of Integer;
type Obj_T (Length : Natural) is
record
Elements : Array_T (1 .. Length);
end record;
type T is access Obj_T;
function Equal (S1, S2 : T) ret... |
-- Abstract :
--
-- Types and operations shared by Ada and Ada_Emacs outputs.
--
-- Copyright (C) 2017, 2018 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 Founda... |
with Ada.Containers.Indefinite_Vectors;
with Ada.Text_IO;
procedure Ordered_Words is
package Word_Vectors is new Ada.Containers.Indefinite_Vectors
(Index_Type => Positive, Element_Type => String);
function Is_Ordered (The_Word : String) return Boolean is
Highest_Character : Character := 'a';
begin... |
with Knights_Tour, Ada.Command_Line;
procedure Test_Fast is
Size: Positive := Positive'Value(Ada.Command_Line.Argument(1));
package KT is new Knights_Tour(Size => Size);
begin
KT.Tour_IO(KT.Warnsdorff_Get_Tour(1, 1));
end Test_Fast;
|
with Ada.Text_IO;
with zlib;
procedure version is
begin
Ada.Text_IO.Put_Line (zlib.Version);
end version;
|
with System;
package Lv.Style is
type Style is private;
type Style_Anim is private;
-- unsupported macro: LV_RADIUS_CIRCLE (LV_COORD_MAX)
subtype Border_Part_T is Uint8_T;
subtype Shadow_Type_T is Uint8_T;
procedure Style_Init;
pragma Import (C, Style_Init, "lv_style_init");
procedure St... |
with Ada.Containers.Formal_Doubly_Linked_Lists;
with Ada.Containers.Formal_Hashed_Maps;
with Ada.Containers.Functional_Maps;
with Ada.Containers; use all type Ada.Containers.Count_Type;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Automation_Request_Valida... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
package body Radar_Internals is
T : Natural := 0;
procedure Time_Step (Radar_Angle : Float; Time_To_Arrival : Float;
John_Connor_Status : String)
is
E_T_A_H : Integer
:= Integer (Float'Floor (Time_To_Arrival / 3600.0));
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- C95041A.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... |
pragma Check_Policy (Validate => Disable);
-- with Ada.Strings.Naked_Maps.Debug;
with Ada.Strings.Naked_Maps.General_Category;
with System.Once;
with System.Reference_Counting;
package body Ada.Strings.Naked_Maps.Set_Constants is
function Total_Length (Source : Character_Set_Array) return Natural;
function Tota... |
-----------------------------------------------------------------------
-- asf-events-exceptions -- Exceptions Events
-- Copyright (C) 2011 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... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020-2021 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with AUnit.Test_Fixtures;
private with Regex.Regular_Expressions;
package Regex_Test_Cases is
type Test_Fixture is new AUnit.Test_Fi... |
------------------------------------------------------------------------------
-- 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... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Text_IO;
with Apsepp.Test_Node_Class;
with Apsepp.Abstract_Early_Test_Case;
package body Apsepp.Test_Reporter_Class.Instant_Standard is
use Test_Node_Class;
--------------------------------------... |
with estado_casillero,direccion;
use estado_casillero,direccion;
package casillero is
type t_casillero is tagged record
estado : t_estado_casillero;
end record;
procedure set_estado(c : in out t_casillero;
e : in t_estado_casillero);
function get_estado(c: in t_casillero) r... |
with Interfaces.C;
package body usb_handler is
-- External IRQ handler
function usb_handler return Interfaces.C.int
with
Import => True,
Convention => C,
External_Name => "OTG_FS_IRQHandler";
-- Main usb device
protected body Device_Interface is
procedure Handler is
... |
-----------------------------------------------------------------------
-- util-systems-dlls -- Unix shared library support
-- Copyright (C) 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 this f... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Containers.Indefinite_Ordered_Maps;
with Protypo.Api.Engine_Values.Handlers;
--
-- This package provides a wrapper around a map structure. The field names
-- are the keys of the map.
--
package Protypo.Api.Engine_Values.Record_Wrappers is
package Record_Maps is
new Ada.Containers.Indefinite_Ordered_M... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.RTC is
pragma Preelaborate;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.