content stringlengths 23 1.05M |
|---|
------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2004-2016, AdaCore --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
procedure ess is
x : float := 3.4;
y : float;
begin
y := float'large; -- this line is ok
y := x'large;
end ess;
|
with DOM.Core;
with Route_Aggregator; use Route_Aggregator;
with Route_Aggregator_Communication; use Route_Aggregator_Communication;
with Route_Aggregator_Common; use Route_Aggregator_Common;
with Ada.Containers.Ordered_Maps;
with Ada.Containers.Ord... |
----------------------------------------------------------------------------
--
-- Ada client for BaseX
--
----------------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Ada.Containers.Indefinite_Vectors;
with GNAT.Sockets;
package AdaBaseXClient is
package String_V... |
with OpenAL.Thin;
with Interfaces.C;
with Interfaces.C.Strings;
package body OpenAL.Global is
package C renames Interfaces.C;
package C_Strings renames Interfaces.C.Strings;
function Get_String (Parameter : Types.Enumeration_t) return C_Strings.chars_ptr;
pragma Import (C, Get_String, "alGetString");
... |
package MatrixMult is
SIZE : constant Integer := 10;
type Matrix is array(1..SIZE,1..SIZE) of Integer;
procedure MatMult(A, B : Matrix; C : out Matrix);
end MatrixMult;
|
-----------------------------------------------------------------------
-- util-serialize-io-xml -- XML Serialization Driver
-- Copyright (C) 2011, 2012, 2013, 2016, 2017, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "... |
-- 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 Ships.Cargo.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Ships.Cargo.Test_Data
.Test wit... |
with Ada.Text_IO; use Ada.Text_IO;
with Sf.Window.Window; use Sf, Sf.Window, Sf.Window.Window;
with Sf.Window.VideoMode; use Sf.Window.VideoMode;
with Sf.Window.Event; use Sf.Window.Event;
with Sf.Window.Keyboard; use Sf.Window.Keyboard;
with Sf.Window.Clipboard;
with Sf.Window.Cursor;
with Sf.System.T... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
-- AOC 2020, Day 7
package Day is
function valid_bag_colors return Natural;
function valid_test_bag_colors return Natural;
function nested_bags return Natural;
function nested_test_bags return Natural;
end Day;
|
with Ada.Text_IO;
with Ada.Integer_Text_IO;
package body Problem_38 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
procedure Solve is
subtype Digit is Integer range 1 .. 9;
type Seen_Array is Array(Digit) of Boolean;
seen : Seen_Array;
current_number : Inte... |
package Giza.Bitmap_Fonts.FreeMonoBoldOblique8pt7b is
Font : constant Giza.Font.Ref_Const;
private
FreeMonoBoldOblique8pt7bBitmaps : aliased constant Font_Bitmap := (
16#6D#, 16#BD#, 16#B0#, 16#D8#, 16#DE#, 16#E7#, 16#29#, 16#00#, 16#1A#,
16#16#, 16#36#, 16#7F#, 16#7F#, 16#2C#, 16#FE#, 16#FE#, 16#58#, 16#D8... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin Put(F()); end;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- 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.SYSCFG2 is
pragma Preelaborate;
---------------
-- Registers --
---------------
type IMR1_Register is rec... |
with Ahven; use Ahven;
with AdaPcre; use AdaPcre;
package body My_Tests is
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "My tests");
Framework.Add_Test_Routine
(T, PCRE_MATCH'Access, "PCRE_MATCH");
Framework.Add_Test_Routine
(T, PCRE_MATCH2'Access... |
-------------------------------------------------------------------------------
-- Copyright (C) 2020-2030, per.s.sandberg@bahnhof.se --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
... |
with Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with STB.Image;
with System; use System;
with System.Storage_Elements; use System.Storage_Elements;
with Interfaces.C; use Interfaces.C;
with Interfaces; use Interfaces;
with GNAT.OS_Lib;
with QOI; use QOI;
with Reference_QOI;
with AAA.Strings;
procedure ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Display;
with Port_Specification;
private with Ada.Calendar;
package PortScan.Buildcycle is
package PSP renames Port_Specification;
cycle_cmd_error : exception;
procedure initialize (test_mode : B... |
-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010
-- Lumen would not be possible without the support and contributions of a cast
-- of thousands, including and primarily Rod Kay.
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this s... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
private with Ada.Calendar;
package PortScan.Scan is
missing_index : exception;
bad_index_data : exception;
bsheet_parsing : exception;
populate_error : exception;
-- Scan the entire conspiracy a... |
with Ada.Real_Time; use Ada.Real_Time;
-- with STM32.RCC;
with STM_Board; use STM_Board;
procedure Test_LED_RT is
-- This demonstration program only initializes the GPIOs and flash a LED
-- with Ada.Real_Time. There is no initialization for PWM, ADC and timer.
begin
-- STM32.RCC.PWR_Overdrive_Enable... |
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied
-- // warranty.
-- // In no event will the authors be h... |
with Ada.Containers; use Ada.Containers;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with AUnit.Assertions; use AUnit.Assertions;
with Langkit_Support.Text; use Langkit_Support.Text;
with Libadalang.Analysis; ... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure Luhn is
function Luhn_Test (Number: String) return Boolean is
Sum : Natural := 0;
Odd : Boolean := True;
Digit: Natural range 0 .. 9;
begin
for p in reverse Number'Range loop
Digit := Integer'Value (Number (p..p));
if Odd then
Sum... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
-- 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;
package RP_SVD.UART0 is
pragma Preelaborate;... |
with Ada.Real_Time; use Ada.Real_Time;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.SysTick; use STM32GD.SysTick;
with Drivers.Text_IO;
with Peripherals;
procedure Main is
Temperature : Peripherals.Si7006.Temperature_Type;
Humidity : Peripherals.Si7006.Humidity_Type;
Next_Release : Time := Clock;... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package body address is
function valid_value_for_pos_addr (value : word) return boolean is
begin
return even(value) and value /= 16#ffff#;
end valid_value_for_pos_addr;
procedure valid_addr_assert (addr : word) is
begin
if not valid_value_for_pos_addr(addr) then
raise error_address_odd;
end... |
package Uninit_Array_Pkg Is
type Rec is record
B1, B2, B3, B4: Boolean;
end record;
type Arr is array (Boolean) of Rec;
function F (R : Rec) return Integer;
end Uninit_Array_Pkg;
|
with Interfaces.C;
with SDL.Types; use SDL.Types;
package Picture_xbm is
picture_width : constant := 32;
picture_height : constant := 32;
type picture_bits_Array is
array (Natural range <>) of aliased Uint8;
picture_bits : picture_bits_Array :=
(
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, ... |
with USB;
with USB.LibUSB1;
with Interfaces.C;
with Ada.Text_IO;
use Ada.Text_IO;
procedure InitExit is
Ctx: aliased USB.LibUSB1.Context_Access;
R: USB.LibUSB1.Status;
begin
R := USB.LibUSB1.Init_Lib(Ctx'Access);
Put(USB.LibUSB1.Status'Image(R));
Put_Line("");
USB.LibUSB1.Exit_Lib(Ctx);
end;
|
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.NVIC;
with STM32_SVD.GPIO; use STM32_SVD.GPIO;
with STM32GD.Startup;
with STM32GD.Vectors;
package body STM32GD.Board is
procedure Enable_Peripherals is
begin
STM32_SVD.RCC.RCC_Periph.AHBENR.IOPAEN := 1;
STM32_SVD.... |
pragma License (Unrestricted);
-- extended unit specialized for Darwin
private with System.Storage_Map;
package System.Program is
-- Probing information of the program itself.
pragma Preelaborate;
-- the executable file
function Full_Name return String;
function Load_Address return Address;
prag... |
with Lv.Style;
package Lv.Objx.Arc is
subtype Instance is Obj_T;
type Style_T is (Style_Main);
-- Create a arc objects
-- @param par pointer to an object, it will be the parent of the new arc
-- @param copy pointer to a arc object, if not NULL then the new object will be copied from it
-- @ret... |
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.RTC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CRH_SECIE_Field is STM32_SVD.Bit... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
package body GBA.DMA is
procedure Setup_DMA_Transfer
( Channel : Channel_ID;
Source, Dest : Address;
Info : Transfer_Info ) is
Selected_Channel : Channel_Info renames Channel_Array_View (Channel);
be... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Hoc... |
-----------------------------------------------------------------------
-- ADO Databases -- Database Objects
-- 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 in c... |
-- @summary
-- Convert to string and concatenate float-derived types.
--
-- @description
-- See its usage to get the idea. However, I don't think this
-- should be a "top" package. I would like it could be seen
-- only in Measure_Units, because Measure_Units uses it to
-- provide some functions to its clients.
-... |
-- 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.Text_IO; use Ada.Text_IO;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Factory; use Rejuvenation.Factory;
with Rejuvenation.Finder; use Rejuvenation.Finder;
package body Examples.A... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Bug_Elaboration_Code is
pragma Elaborate_Body;
I : Integer;
J : Integer;
end Bug_Elaboration_Code;
|
--****p* Fakedsp/Data_Streams
-- DESCRIPTION
-- Since the virtual card is not... a real one (really?) the samples
-- read by the ADC need to come from some external source and also
-- the samples sento to the virtual DAC need to be written somewehere.
--
-- The most obvious choice for said external source/desti... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with Interfaces.C.Strings;
private package CUPS.cups_language_h is
-- * "$Id: language.h 10996 2013-05-29 11:51:34Z msweet $"
-- *
-- * Multi-language support for CUPS.
-- *
-- * Copyright 2007-2011 by Apple I... |
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by John Self of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and t... |
------------------------------------------------------------------------------
-- 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... |
with Ada.Real_Time;
with ACO.States;
with ACO.Messages;
with ACO.OD;
private with ACO.Utils.Generic_Alarms;
private with ACO.Configuration;
package ACO.Slave_Monitors is
type Slave_Monitor (Od : not null access ACO.OD.Object_Dictionary'Class) is
tagged limited private;
type Slave_Monitor_Ref is access a... |
with System;
package Self is
type Lim is limited private;
type Lim_Ref is access all Lim;
function G (X : Integer) return lim;
procedure Change (X : in out Lim; Incr : Integer);
function Get (X : Lim) return Integer;
private
type Lim is limited record
Comp : Integer;
Self_Default : Lim_Ref := ... |
with
chat.Client.local,
lace.Event.utility,
ada.Characters.latin_1,
ada.command_Line,
ada.Text_IO,
ada.Exceptions;
procedure launch_simple_chat_Client
--
-- Starts a chat client.
--
is
use ada.Text_IO;
begin
-- Usage
--
if ada.command_Line.argument_Count /= 1
then
p... |
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with PW;
use PW;
procedure Main is
EQ : EntryQueue;
DC : DistributorCollection;
begin
Initialize(DC);
Data.SendDC(DC);
Data.SendQueue(EQ);
end Main;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
package Regex.Utilities is
pragma Pure;
end Regex.Utilities;
|
-- { dg-do compile }
with Interfaces.C; use Interfaces.C;
procedure Object_Overflow1 is
procedure Proc (x : Boolean) is begin null; end;
type Arr is array(ptrdiff_t) of Boolean;
Obj : Arr; -- { dg-warning "Storage_Error" }
begin
Obj(1) := True;
Proc (Obj(1));
end;
|
-- C97201X.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO; use Ada.Strings.Unbounded.Text_IO;
with Unchecked_Deallocation;
package body lists is
procedure Free is new Unchecked_Deallocation(Element,P_List);
function Create_List(Elements: Tab_O... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with GNAT.Command_Line; use GNAT.Command_Line;
with Ada.Environment_Variables;
with Ada.Directories; use Ada.Directories;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Ada; use Ada;
with Ada.Command_Line.Environment;
... |
-- Copyright 2016-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... |
-- { dg-do compile }
with Prot2_Pkg1;
with Prot2_Pkg2;
package body Prot2 is
type A is array (1 .. Prot2_Pkg1.Num) of Integer;
type E is (One, Two);
type Rec (D : E := One) is record
case D is
when One => L : A;
when Two => null;
end case;
end record;
package My_Pkg2 i... |
with Ada.Streams;
package Real_Cst is
procedure Write (Stream : access Ada.Streams.Root_Stream_Type'Class);
end;
|
procedure x is
id, id1, id2: Integer;
function Minimo (a, b: Integer) return Integer is
begin
if a < b then return a;
else return b;
end if;
end Minimo;
procedure x3 is
begin
put("Hola Mundo");
end x3;
begin
put(Minimo(1,2));
end x; |
with System.Storage_Elements;
package body Interfaces.C.Pointers is
use type System.Storage_Elements.Storage_Offset;
-- no System.Address_To_Access_Conversions for modifying to Pure
function To_Pointer (Value : System.Address) return access Element
with Import, Convention => Intrinsic;
function To_A... |
package Statically_Matching is
type T1(b: boolean) is tagged null record;
type T2 is new T1(b => false) with private;
private
F: constant boolean := false;
type T2 is new T1(b => F) with null record; -- OK
end Statically_Matching;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Lire_Entier is
-- Lire un entier au clavier.
-- Paramètres :
-- Nombre : l'entier à lire
-- Nécessite : ---
-- Assure : -- Nombre est l'entier lu
procedure Lire (Nombre: out Integer) is
Char: Cha... |
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 Zane Myers
--
-- 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 witho... |
-- { dg-do compile }
-- { dg-options "-O" }
package body Opt55 is
function Cond (B : Boolean; If_True, If_False : Date) return Date is
begin
if B then
return If_True;
else
return If_False;
end if;
end;
function F (C : Rec2; B : Boolean) return Date is
... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Memory.Register; use Memory.Register;
with Memory.Transform.Offset; use Memory.Transform.Offset;
with Memory.Join; use Memory.Join;
package body Test.Register is
procedure Test_Insert is
ram : constant Monitor_Pointer := Create_Monitor(10);
offset : Offset_Pointer ... |
pragma License (Unrestricted);
package System.Interrupt_Management.Operations is
procedure Set_Interrupt_Mask (Mask : access Interrupt_Mask);
procedure Set_Interrupt_Mask (
Mask : access Interrupt_Mask;
OMask : access Interrupt_Mask);
procedure Get_Interrupt_Mask (Mask : access Interrupt_Mask);... |
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Command_Line;
procedure Floyd_Triangle is
Rows: constant Positive := Integer'Value(Ada.Command_Line.Argument(1));
Current: Positive := 1;
Width: array(1 .. Rows) of Positive;
begin
-- compute the width for the different columns
for I in... |
with Ada.Finalization;
with System.Initialization;
with System.Storage_Elements;
procedure init is
use type System.Address;
begin
-- controlled type
declare
type Phase_Type is (Uninitialized, Initialized, Finalized);
Phase : Phase_Type := Uninitialized;
The_Address : System.Address;
Adjust_Count : Natural :=... |
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler);
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Text_IO; use Ada.Text_IO;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.GPIO; use STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.EXTI;
with STM32_SVD.AFIO;
with STM32_SVD.NVIC;
with STM32_SV... |
-- Motherlode
-- Copyright (c) 2020 Fabien Chouteau
with PyGamer; use PyGamer;
with HAL; use HAL;
with Sound;
with PyGamer.Controls;
with PyGamer.Time;
with Parameters;
with World; use World;
with Player;
with Cargo_Menu;
with Equipment_Menu;
with Render;
package body Motherload is
-----------------
-- Draw... |
-- REST API Validation
-- API to validate
-- ------------ EDIT NOTE ------------
-- This file was generated with openapi-generator. You can modify it to implement
-- the server. After you modify this file, you should add the following line
-- to the .openapi-generator-ignore file:
--
-- src/testapi.ads
--
-- ... |
generic
Fraction : Float;
-- How large a fraction of the execution time should be allocated
-- to creating backups.
with procedure Save_State;
-- Should save the relevant state.
package JSA.Intermediate_Backups is
procedure Begin_Loop
with Pre => not In_Loop;
-- To be called before enteri... |
pragma Task_Dispatching_Policy(FIFO_Within_Priorities);
with Ada.Text_IO;use Ada.Text_IO;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Dispatching; use Ada.Dispatching;
with System; use System;
procedure fixed_priority is
pragma Priority(System.Priority'Last);
protected release_manager is
procedure release(num... |
with Ada.Containers.Indefinite_Vectors;
with System;
package OpenAL.List is
package String_Vectors is new Ada.Containers.Indefinite_Vectors
(Index_Type => Positive,
Element_Type => String);
subtype String_Vector_t is String_Vectors.Vector;
procedure Address_To_Vector
(Address : in System.Ad... |
with Ada.Integer_Text_IO, Ada.Float_Text_IO;
package body S_Expr.Parser is
function Parse(Input: String) return List_Of_Data is
procedure First_Token(S: String;
Start_Of_Token, End_Of_Token: out Positive) is
begin
Start_Of_Token := S'First;
while Start_Of_... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.API;
with Glfw.Enums;
package body Glfw.Events.Keys is
function Name (Query : Key) return String is
begin
case Query is
when 32 .. 256 => return (1 => Character'Val (Que... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- Antonio M. F.... |
with System.Runtime_Context;
package body System.Storage_Pools.Overlaps is
pragma Suppress (All_Checks);
-- implementation
procedure Set_Address (Storage_Address : Address) is
TLS : constant not null Runtime_Context.Task_Local_Storage_Access :=
Runtime_Context.Get_Task_Local_Storage;
begin... |
package freetype_c.FT_Vector
is
type Item is
record
X : aliased FT_Pos;
Y : aliased FT_Pos;
end record;
type Item_array is array (C.Size_t range <>) of aliased FT_Vector.Item;
type Pointer is access all FT_Vector.Item;
type Pointer_array is array (C.Size_t range <>) of... |
pragma License (Unrestricted);
-- runtime unit for ZCX
with C.unwind;
package System.Unwind.Searching is
pragma Preelaborate;
function Unwind_RaiseException (
exc : access C.unwind.struct_Unwind_Exception)
return C.unwind.Unwind_Reason_Code
renames C.unwind.Unwind_RaiseException;
function ... |
with Ada.Streams;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Wide_Wide_Text_IO; use Ada.Wide_Wide_Text_IO;
with DOM.Core.Documents; use DOM.Core.Documents;
with DOM.Core; use DOM.Core;
with DOM.Core.Elements; use DOM.Core.Elements;
with DOM.Core.Nodes; use DOM.Core.Node... |
package SubmarineSubSystem with SPARK_Mode is
type Operational is (On, Off); -- Can Submarine Operate?
type DoSomething is (Fire, CantFire); -- Test for actions can only be done once,
-- Nuclear Submarine is operational.
--Door Duntionality types
type AirDoorOne is... |
-----------------------------------------------------------------------
-- Util-strings -- Various String Utility
-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
-- Abstract:
--
-- Bounded stack implementation, with full Spark verification,
-- optimized for speed.
--
-- Copyright (C) 1998-2000, 2002-2003, 2009, 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- SAL is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public Lice... |
with AUnit.Assertions; use AUnit.Assertions;
with Ada.Containers.Vectors;
with Ada.Text_IO;
with NNClassifier;
with NeuralNet;
with DataBatch;
with MathUtils;
use MathUtils.Float_Vec;
use Ada.Containers;
package body NNClassifierTests is
procedure Register_Tests (T: in out TestCase) is
use AUnit.Test_Cases... |
-- Mojang API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NOTE: This package is auto generated by the swagger code generator 3.3.4.
-- https://openapi-generator.tech
-- Do not edit the class manuall... |
with GESTE;
with GESTE.Text;
with Ada.Text_IO;
with Console_Char_Screen;
with GESTE_Fonts.FreeMono6pt7b;
procedure Simple_Text is
package Font_A renames GESTE_Fonts.FreeMono6pt7b;
package Console_Screen is new Console_Char_Screen
(Width => 42,
Height => 35,
Buffer_Size => 256,
... |
with AUnit;
with AUnit.Test_Fixtures;
with Brackelib.Queues;
package Queues_Tests is
package State_Queues is new Brackelib.Queues (Integer);
use State_Queues;
type Test is new AUnit.Test_Fixtures.Test_Fixture with null record;
procedure Set_Up (T : in out Test);
procedure Test_Enqueue (T : in out Te... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package SAM_SVD.ADC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Dual Mode Trigger Selection
type CTRLA... |
-- This spec has been automatically generated from FE310.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package FE310_SVD.CLINT is
pragma Preelaborate;
---------------
-- Registers --
---------------
-----------------
-- Peripher... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.