content stringlengths 23 1.05M |
|---|
package Vectors2D with SPARK_Mode => On is
type Vec2D is tagged record
x : Float := 0.0;
y : Float := 0.0;
end record;
function "=" (Left, Right : Vec2D) return Boolean;
function "+" (Left, Right : Vec2D) return Vec2D;
function "-" (Left, Right : Vec2D) return Vec2D;
-- unary minus
... |
with
Shell.Commands,
Ada.Text_IO;
procedure Test_aShell
is
procedure Log (Message : in String)
renames Ada.Text_IO.Put_Line;
procedure NL (Count : in Ada.Text_IO.Positive_Count := 1)
renames Ada.Text_IO.New_Line;
Error : exception;
begin
Log ("Begin aShell t... |
-------------------------------------------------------------------------------
-- Copyright (c) 2016 Daniel King
--
-- 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, in... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Compilation_Unit_Vectors;
with Program.Compilation_Units;
with Program.Library_Items;
with Program.Library_Unit_Bodies;
... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package Memory.Transform.EOR is
type EOR_Type is new Transform_Type with private;
type EOR_Pointer is access all EOR_Type'Class;
function Create_EOR return EOR_Pointer;
function Random_EOR(next : access Memory_Type'Class;
generator : Distribution_Type;
... |
-- compare two normalization tables
-- expected result:
-- -------------------------
-- decomposing maps:
-- size of UCD: 981
-- size of VFS: 970
-- only in UCD: 16#1B06#
-- only in UCD: 16#1B08#
-- only in UCD: 16#1B0A#
-- only in UCD: 16#1B0C#
-- only in UCD: 16#1B0E#
-- only i... |
with Interfaces.ATSAM4L.GPIO; use Interfaces.ATSAM4L.GPIO;
procedure Main is
type int is range 0 .. 50;
counter : int := 0;
begin
GPIO_Periph.GPER2.Arr (7) := 1;
GPIO_Periph.ODER2.Arr (7) := 1;
GPIO_Periph.OVR2.Arr (7) := 1;
loop
counter := counter + 1;
end loop;
end Main;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 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 HAL; use HAL;
with Interfaces.C; use Interfaces.C;
with Ada.Unchecked_Conversion;
with System;
with sf.Graphics.RenderWindow; use sf.Graphics.RenderWindow;
with Sf.Graphics.Color; use Sf.Graphics.Color;
with Sf; use Sf;
with Sf.Graphics.Texture; use Sf.Graphics.Texture;
with S... |
------------------------------------------------------------------------------
--
-- Gate3 code sketcher :
--
-- Parse a Glade3's XML project file and generate the Ada code
-- to test User Interface.
--
-- Gate3 is limited in scope and does not generate User_Handler
-- callbacks. It is just a simple tool to avoid ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Logging;
procedure TC_Log_Prio_And_Cat is
type Categories is (Debug, Warning, Error);
Maximum_Message_Length : constant := 64;
package Log is new Logging
(Categories => Categories,
Priorities => Natural,
Default_Category ... |
package body impact.d2.orbs.Joint.weld
is
procedure dummy is begin null; end dummy;
-- #include <Box2D/Dynamics/Joints/b2WeldJoint.h>
-- #include <Box2D/Dynamics/b2Body.h>
-- #include <Box2D/Dynamics/b2TimeStep.h>
--
-- // Point-to-point constraint
-- // C = p2 - p1
-- // Cdot = v2 - v1
-- // = v2 +... |
with ada.Unchecked_Deallocation,
interfaces.c.Pointers;
-- for debug
package body impact.d2.orbs.dynamic_Tree
is
use type int32;
procedure free is new ada.Unchecked_Deallocation (b2DynamicTreeNodes, b2DynamicTreeNodes_view);
function isLeaf (Self : in b2DynamicTreeNode) return Boolean
is
... |
package body HAL.Bitmap is
procedure Handle_Swap
(Buffer : Bitmap_Buffer'Class;
X : in out Natural;
Y : in out Natural);
procedure Set_Pixel_32
(Buffer : Bitmap_Buffer;
X : Natural;
Y : Natural;
Value : Word) with Inline;
procedure Set_Pixel_24... |
-- 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.CRC is
pragma Preelaborate;
... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2021, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- css-core-styles -- Core CSS API definition
-- 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 ex... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019 Daniel King
--
-- 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... |
-----------------------------------------------------------------------
-- util-streams -- Stream utilities
-- Copyright (C) 2010, 2011, 2016, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with AdaBase;
with CommonText;
with Connect;
with Ada.Text_IO;
with AdaBase.Results.Sets;
with AdaBase.Results.Converters;
procedure Bits is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ARS renames AdaBase.Results.Sets;
package ARC renames AdaBase.Results.Converters;
package CT... |
--
-- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.UART;
with System;
package Last_Chance_Handler is
procedure Initialize
(UART : not null HAL.UART.Any_UART_Port);
procedure Last_Chance_Handler
(Source_Location : System.Address;
... |
-- ***************************************************************************
--
-- This implementation violates some ACATS intentionally.
--
-- Violated ACATS Tests: CE3106A, CE3106B, CE3406C
--
-- These test requires End_Of_Page/File looking over the line/page terminater.
-- But this behavior discards last line... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O ... |
package body Code_Count is
----------------
-- Skip_Space --
----------------
procedure Skip_Space (Line : String; Offset : in out Integer) is
begin
while Line(Offset) = ' ' or Character'Pos(Line(Offset)) = 9 loop
Offset := Offset + 1;
end loop;
end Skip_... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 Felix Krause <contact@flyx.org>
--
-- 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/licen... |
package body Littlefs is
------------
-- C_Type --
------------
function Kind (Info : Entry_Info) return File_Kind
is (File_Kind'Enum_Val (Info.c_type));
----------
-- Size --
----------
function Size (Info : Entry_Info) return LFS_Size
is (Info.size);
----------
-- Name --
-... |
with System; use System;
package Types is
type UByte is new Natural range 0 .. 255
with Size => 8;
type UByte_Array is array (Positive range <>) of UByte;
type Day is
(Sunday, Monday, Tuesday, Wednesday,
Thursday, Friday, Saturday);
type Hour is new Integer range 0 .. 23;
typ... |
with Ada.Real_Time; use Ada.Real_Time;
with STM32F4.RCC;
package body STM32F4.Touch_Panel is
function Read_Data (Data_Addr : Byte) return Half_Word is
Data : Half_Word;
begin
Generate_Start (TP_I2C, Enabled);
Wait_For_State (TP_I2C, Start_Bit, Enabled);
Send_7Bit_Address (TP_I2C, IOE_AD... |
with
openGL.Shader,
openGL.Buffer.general,
openGL.Program,
openGL.Attribute,
openGL.Texture,
openGL.Palette,
openGL.Tasks,
openGL.Errors,
GL.Binding,
GL.lean,
GL.Pointers,
System,
Interfaces.C.Strings,
System.storage_Elements;
package body openGL.... |
------------------------------------------------------------------------------
-- 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 --
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 The progress_indicators authors
--
-- 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/licen... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Numerics.Distributions;
package body Vampire.Villages.Teaming is
use type Casts.Person_Sex;
function Possibilities (
People_Count : Ada.Containers.Count_Type;
Male_And_Female : Boolean;
Execution : Execution_Mode;
Formation : Formation_Mode;
Unfort... |
with STM32_SVD.GPIO;
with STM32GD.EXTI;
with STM32GD.GPIO.Pin;
generic
with package Pin is new STM32GD.GPIO.Pin (<>);
package STM32GD.GPIO.IRQ is
pragma Preelaborate;
procedure Connect_External_Interrupt;
function Interrupt_Line_Number return STM32GD.EXTI.External_Line_Number;
procedure Configure_Tr... |
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.RTC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype TR_SU_Field is HAL.UInt4;
subtype ... |
--
-- 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 System;
package Aggr20_Pkg is
procedure Proc;
Default_Nil_Address : constant System.Address := Proc'Address;
end Aggr20_Pkg;
|
-- $Id: parsdrv.adb,v 1.0 1994/09/13 12:55:31 grosch rel $
$@ with @; use @;
$@ procedure @Drv is
ErrorCount : Integer;
begin
$@ ErrorCount := @.@;
$@ Close@;
$@ end @Drv;
|
-- { dg-do compile }
procedure div_no_warning is
Flag : constant Boolean := False;
Var : Boolean := True;
function F return Boolean is
begin
return Var;
end F;
Int : Integer := 0;
begin
if Flag and then F then
Int := Int / 0;
end if;
end div_no_warning;
|
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
pragma SPARK_Mode (Off);
with STM32.USARTs;
with STM32.Device;
with HIL.Config;
with Ada.Interrupts; use Ada.Interrupts;
with Ada.Inte... |
-----------------------------------------------------------------------
-- keystore-gpg_tests -- Test AKT with GPG2
-- Copyright (C) 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fil... |
pragma License (Unrestricted);
-- implementation unit specialized for Windows
with C;
package System.C_Encoding is
pragma Preelaborate;
-- Character (UTF-8) from/to char (MBCS)
function To_char (
Item : Character;
Substitute : C.char)
return C.char;
function To_Character (
Item ... |
package openGL.Geometry.lit_colored
--
-- Supports per-vertex color and lighting.
--
is
type Item is new openGL.Geometry.item with private;
type View is access all Item'Class;
function new_Geometry return View;
----------
-- Vertex
--
type Vertex is
record
Site : Vector_3;
... |
-- Copyright 2019-2020 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 Vecteurs; use Vecteurs;
package Normalisation is
use Liste_Points;
-- Centre la figure sur l'axe X
-- Raccorde les extremités de la figure à l'axe
procedure Normaliser(Segments : in out Liste_Points.Liste);
private
-- Trouve les coordonnées minimum
function Trouver_Coords_Min(Segment... |
pragma License (Unrestricted);
package Ada.Wide_Wide_Characters is
pragma Pure;
end Ada.Wide_Wide_Characters;
|
generic
type Element_Type is private;
type Index_Type is (<>);
type Collection_Type is array(Index_Type range <>) of Element_Type;
with function "<"(Left, Right : Element_Type) return Boolean is <>;
package Mergesort is
function Sort(Item : Collection_Type) return Collection_Type;
end MergeSort;
|
pragma License (Unrestricted);
-- separated and auto-loaded by compiler
private generic
type Enum is (<>);
pragma Unreferenced (Enum);
package Ada.Wide_Wide_Text_IO.Enumeration_IO is
Default_Width : Field := 0;
Default_Setting : Type_Set := Upper_Case;
-- procedure Get (
-- File : File_Type; -- Input... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- begin read only
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings (Off); -- Since this is automaticly generated
with Interfaces.C; use Interfaces.C;
package PCAP.Low_Level.pcap_bpf_h is
BPF_RELEASE : constant := 199606; -- /usr/include/pcap/bpf.h:79
-- unsupported macro: BPF_ALIGNMENT sizeof(... |
with GNAT.Source_Info;
with Last_Chance_Handler;
package body Ada.Exceptions is
procedure Raise_Exception
(E : Exception_Id;
Message : String := "") is
pragma Unreferenced (E);
pragma Unreferenced (Message);
File : String := GNAT.Source_Info.File;
Line ... |
-- Copyright 2017 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "Brute Forcing"
type = "brute"
probes = {"www", "online", "webserver", "ns", "ns1", "mail", "smtp", "webmail", "shop", "dev",
"prod", "test", "vpn", "... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
package Polygons is
type Point is record
X, Y : Float;
end record;
type Point_List is array (Positive range <>) of Point;
subtype Segment is Point_List (1 .. 2);
type Polygon is array (Positive range <>) of Segment;
function Create_Polygon (List : Point_List) return Polygon;
function Is_In... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Septum 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 License at
... |
with Parseur_Temp, Geometry_Helpers, Ada.Text_Io, Ada.Integer_Text_Io;
use Parseur_Temp, Geometry_Helpers, Ada.Text_Io, Ada.Integer_Text_Io;
procedure Test_Geometry is
P1,P2,P3,P4,P5 : Coord_Point;
begin
P1 := (0.0,0.0);
P4 := (-1.0,-1.0);
P2 := (0.0,2.0);
P3:= (1.0,-1.0);
P5 := (1.0,-1.0);
P... |
with Ada.Containers;
pragma Unreferenced (Ada.Containers);
package body ParentPackage is
procedure ParentDummy is null;
end ParentPackage;
|
WITH Ada.Text_IO, Ada.Characters.Handling;
USE Ada.Text_IO, Ada.Characters.Handling;
PROCEDURE Main IS
SUBTYPE Alpha IS Character RANGE 'A' .. 'Z';
TYPE Ring IS MOD (Alpha'Range_length);
TYPE Seq IS ARRAY (Integer RANGE <>) OF Ring;
FUNCTION "+" (S, Key : Seq) RETURN Seq IS
R : Seq (S'Range);
BEG... |
with TEXT_IO;
package STRINGS_PACKAGE is
type TRIM_END is (LEFT, RIGHT, BOTH);
NULL_STRING : constant STRING(2..1) := (others => ' ');
function MAX(A, B : INTEGER) return INTEGER;
function MIN(A, B : INTEGER) return INTEGER;
function LOWER_CASE(C : CHAR... |
with Ada.Text_IO; use Ada.Text_IO;
package body Distribution is
min_size : constant Address_Type := 4096;
procedure Set_Seed(dist : in out Distribution_Type;
seed : in Integer) is
begin
RNG.Reset(dist.generator, seed);
end Set_Seed;
procedure Insert(dist : in out Dis... |
-- We define the Increment function
function Increment (I : Integer) return Integer is
begin
return I + i;
end Increment; |
with System;
use System;
package PMap is
type vector is array (Integer range <>) of Integer;
type vector_ptr is access vector;
type func_type is access function (X : in Integer) return Integer;
task type pmap_apply is
entry PortIn(ValIn : in Integer; FuncIn : in not null func_type);
entry PortOut(ValOut : out ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
procedure Empty_String is
function Is_Empty(S: String) return Boolean is
begin
return S = ""; -- test that S is empty
end Is_Empty;
Empty: String := ""; -- Assign empty string
XXXXX: String := "Not Empty";
begin
if (not Is_Empty(Empty)) or Is_Empty(XXXXX) then
raise Program_Error with "... |
-- 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... |
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
with grafico;
-- Gracias Ekaitz ;)
procedure prueba_grafico is
n1:integer:=0;
begin
-- caso de prueba 1:
n1:=4;
put("El resultado deberia de ser:");
new_line;
put("*000");
new_line;
put("**00");
new_line;
pu... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Tabula.Villages.Lists;
private with Vampire.Villages.Village_IO;
package Vampire.Log is
Type_Code : aliased constant String;
function Load_Summary (
List : Tabula.Villages.Lists.Village_List;
Id : Tabula.Villages.Village_Id)
return Tabula.Villages.Lists.... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020, AdaCore --
-- --
-- ... |
package SimpleAda.IO is
procedure Put_Line(Item: in String);
end SimpleAda.IO;
|
with Ada.Text_IO;
procedure Enumeration_With_Text_IO is
type MyColor is (Blue, Red, Green, Yellow);
for MyColor use (Blue => 11,
Red => 22,
Green => 33,
Yellow => 44);
Somecolor : MyColor := Green;
begin
case Somecolor is
when Blue =>
... |
with System.Storage_Elements;
package Lto4 is
package SSE renames System.Storage_Elements;
type SS_Ptr is new SSE.Integer_Address;
type Memory is array (SS_Ptr range <>) of SSE.Storage_Element;
for Memory'Alignment use Standard'Maximum_Alignment;
type Chunk_Id (First, Last : SS_Ptr) is record
... |
-- Copyright (C) 2008-2011 Maciej Sobczak
-- Distributed under the Boost Software License, Version 1.0.
-- (See accompanying file LICENSE_1_0.txt or copy at
-- http://www.boost.org/LICENSE_1_0.txt)
with Ada.Strings.Fixed;
with Interfaces.C.Strings;
package body SOCI is
procedure Check_Session_State ... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.String_Vectors;
with Incr.Documents;
with Incr.Nodes;
with Incr.Parsers.Incremental;
package Tests.Parser_Data is
... |
-----------------------------------------------------------------------
-- util-dates-formats -- Date Format ala strftime
-- 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 fil... |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+si_units@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 S... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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 with_dot_issue.sub;
procedure start is
myConst : constant := with_dot_issue.sub.Bytes_In_Word;
myInt : integer;
begin
myInt := myConst;
end start;
|
-- XML includes libraries
with Input_Sources.File; use Input_Sources.File;
with Sax.Readers; use Sax.Readers;
with DOM.Readers; use DOM.Readers;
with DOM.Core; use DOM.Core;
with DOM.Core.Documents; use DOM.Core.Documents;
with DOM.Core.Nodes; use DOM.Core.Nodes;
with DOM.Core.Attrs; use... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
-- GID.Decoding_PNG.Huffman
---------------------------
-- Huffman tree generation and deletion.
-- Copy of UnZip.Decompress.Huffman
private package GID.Decoding_PNG.Huffman is
-- Variants A and B.
-- A/ Simplistic huffman trees, pointerless
type Length_code_pair is record
length: Natural;
... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- Redis... |
------------------------------------------------------------------------------
-- Copyright (c) 2013, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- ado-cache -- Simple cache 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... |
-----------------------------------------------------------------------
-- servlet-security-tests - Unit tests for Servlet.Security
-- Copyright (C) 2013, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
-- 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.PPB is
pragma Preelaborate;
... |
package Asis.Gela.Parser.Goto_Table is
type Small_Integer is range -32_000 .. 32_000;
type Goto_Entry is record
Nonterm : Small_Integer;
Newstate : Small_Integer;
end record;
--pragma suppress(index_check);
subtype Row is Integer range -1 .. Integer'Last;
type Goto_Parse_Tabl... |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@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 Ho... |
-- 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.DBG is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype IDCODE_DEV_ID_Field is STM32_SVD... |
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with MD5;
procedure Tester is
use Ada.Strings.Unbounded;
type String_Array is array (Positive range <>) of Unbounded_String;
Sources : constant String_Array :=
(To_Unbounded_String (""),
To_Unbounded_String ("a"),
To_Unbounded_String ("abc"),
... |
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler);
with STM32.Board; use STM32.Board;
with Cpu; use Cpu;
with Instruction; use Instruction;
with Roms; use Roms;
with Types; use Types;
with Inputs; use Inputs;
with Gfx; use Gfx;
procedure Main is
procedure Load_Rom(Cpu : in out Chip8; R : Rom) is... |
package glx.PbufferClobberEvent
is
type Item is
record
Event_Type : aliased C.int;
Draw_Type : aliased C.int;
Serial : aliased C.unsigned_long;
Send_Event : aliased glx.Bool;
Display : System.Address;
Drawable : aliased glx.Drawable;... |
with Ada.Text_IO;
with Ada.Direct_IO;
with Ada.Command_Line;
procedure Brainfuck is
package CL renames Ada.Command_Line;
package Text_IO renames Ada.Text_IO;
package Direct_IO is new Ada.Direct_IO(Character);
use type Direct_IO.Count;
type Cell is mod 256;
type Tape_Position is mod 500... |
with pc_2_coeff_18; -- Order 18, highest stability
with pc_2_coeff_19;
with pc_2_coeff_20;
with pc_2_coeff_21;
with pc_2_coeff_22; -- Order 22, lowest stability
package pc_2_interface is
--generic package Predictor_Corrector_Rules renames pc_2_coeff_18;
--generic package Predictor_Corrector_Rules renames pc_2_coef... |
pragma License (Unrestricted);
-- extended unit
generic
type Index_Type is range <>;
type Element_Type is (<>); -- scalar only
type Array_Type is array (Index_Type range <>) of Element_Type;
type Name is access Array_Type;
procedure Ada.Unchecked_Reallocation (
X : in out Name;
First_Index : Index_Ty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.