content stringlengths 23 1.05M |
|---|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 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... |
procedure Array_Collection is
A : array (-3 .. -1) of Integer := (1, 2, 3);
begin
A (-3) := 3;
A (-2) := 2;
A (-1) := 1;
end Array_Collection;
|
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package ImageTests is
type ImageTest is new AUnit.Test_Cases.Test_Case with null record;
procedure Register_Tests(T: in out ImageTest);
function Name(T: ImageTest) return Message_String;
procedure testPixelArray(T : in out Test_Cases.Te... |
with MPFR.Root_FR;
private with Ada.Finalization;
package MPC.Root_C is
pragma Preelaborate;
type MP_Complex (
Real_Precision : MPFR.Precision;
Imaginary_Precision : MPFR.Precision) is private;
function Re (X : MP_Complex) return MPFR.Root_FR.MP_Float;
function Im (X : MP_Complex) return MPFR.Root_FR.MP_Flo... |
with Ada.Text_IO;
with Huffman;
procedure Main is
package Char_Natural_Huffman_Tree is new Huffman
(Symbol_Type => Character,
Put => Ada.Text_IO.Put,
Symbol_Sequence => String,
Frequency_Type => Natural);
Tree : Char_Natural_Huffman_Tree.Huffman_Tree;
Frequencies : Char_Natural_... |
package body Pck is
function Create_Small return Data_Small is
begin
return (others => 1);
end Create_Small;
function Create_Large return Data_Large is
begin
return (others => 2);
end Create_Large;
end Pck;
|
package body NCurses is
procedure Start_Color_Init is
begin
Start_Color;
Init_Color_Pair(1, COLOR_WHITE, COLOR_BLACK);
Init_Color_Pair(2, COLOR_BLACK, COLOR_WHITE);
Init_Color_Pair(3, COLOR_RED, COLOR_BLACK);
Setup;
end Start_Color_Init;
procedure Pretty_Print_Window (Item : in String) is
begin
Prin... |
generic
type element_t is private;
package generic_linked_list is
-- Exception levée en l'absence de noeud
no_node : exception;
-- Forward declaration du type node_t
-- car celui contient de pointeur de son type
-- et qu'on souhaite utiliser l'alias node_ptr
type node_t is private;
-- ... |
with GL_gl_h; use GL_gl_h;
package Display.Basic.GLFonts is
function getCharTexture(Char : Character) return GLUint;
end Display.Basic.GLFonts;
|
package openGL.Palette
--
-- Provides a pallete of named colors.
--
-- Color values are sourced from WikiPaedia:
--
-- - http://en.wikipedia.org/wiki/Primary_color
-- - http://en.wikipedia.org/wiki/Secondary_color
-- - http://en.wikipedia.org/wiki/Tertiary_color
-- - http://en.wikipedia.org/wiki/List_of_c... |
with Ada.Text_IO; use Ada.Text_IO;
package body I_Am_Ada is
procedure Ada_Procedure is
begin
Put_Line(" Hello, I am Ada code.");
end Ada_Procedure;
begin
Put_Line("I_Am_Ada is elaborated");
end I_Am_Ada;
|
with System;
with STM32GD;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.Flash; use STM32_SVD.Flash;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.GPIO; use STM32_SVD.GPIO;
with STM32_SVD.RTC; use STM32_SVD.RTC;
with Startup;
procedure Main is
procedure Deactivate_Per... |
-- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
... |
with Ada.Real_Time; use Ada.Real_Time;
with HIL.GPIO; use HIL.GPIO;
package body Crash is
procedure Last_Chance_Handler
(Source_Location : System.Address; Line : Integer) is
next : Time := Clock;
PERIOD : constant Time_Span := Milliseconds(1000);
begin
write (RED_LED, HIGH);
loop
... |
with Ada.Containers; use Ada.Containers;
with Ada.Text_IO; use Ada.Text_IO;
with AUnit.Assertions; use AUnit.Assertions;
with GNAT.Source_Info; use GNAT.Source_Info;
with Langkit_Support.Text; use Langkit_Support.Text;
with Libadalang.Analysis; use Libad... |
-- Abstract :
--
-- Generalized LR parser state.
--
-- Copyright (C) 2014-2015, 2017 - 2020 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 terms of the GNU General Public License as
--... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.IO_Exceptions;
with Ada.Environment_Encoding.Encoding_Streams;
with Ada.Environment_Encoding.Names;
with Ada.Environment_Encoding.Strings;
with Ada.Environment_Encoding.Wide_Strings;
with Ada.Environment_Encoding.Wide_Wide_Strings;
with Ada.Streams.Unbounded_Storage_IO;
procedure nls is
package USIO renames A... |
with Ada.Exception_Identification.From_Here;
with System.Address_To_Named_Access_Conversions;
with C.errno;
with C.stdlib;
with C.sys.file;
with C.sys.mman;
with C.sys.stat;
with C.sys.types;
package body System.Native_IO is
use Ada.Exception_Identification.From_Here;
use type Ada.IO_Modes.File_Shared;
use typ... |
-- 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... |
generic
Capacite : Integer ;
package matrice_pleine is
type T_Vecteur_float is array(1..Capacite) of float ;
type T_Vecteur_integer is array(1..Capacite) of integer ;
type T_Matrice is array(1..Capacite) of T_Vecteur_float;
-- nom : Initialiser
-- Sémantique : initialiser une matrice ple... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Unsigned_Types;
package System.Val_LLU is
pragma Pure;
-- required for Modular'Value by compiler (s-valllu.ads)
function Value_Long_Long_Unsigned (Str : String)
return Unsigned_Types.Long_Long_Unsigned;
end System.... |
-- C45112B.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... |
-- { dg-excess-errors "cannot generate code" }
package Lto12_Pkg is
type R (Kind : Boolean := False) is record
case Kind is
when True => I : Integer;
when others => null;
end case;
end record;
function F return R;
end Lto12_Pkg;
|
-- nymph_logging.ads - Main package for use by NymphRPC clients (Spec).
--
-- 2017/07/01, Maya Posch
-- (c) Nyanko.ws
type LogFunction is not null access procedure (level: in integer, text: in string);
|
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with String_Int;
procedure Euler13 is
Num_Addends: constant Positive := 100;
Addend_Size: constant Positive := 50;
use type String_Int.Number;
Result: String_Int.Number(1 .. Addend_Size + Num_Addends) := (others => '0');
Len: Positive := Addend_Size;
begin
for I in Positive range 1... |
pragma License (Unrestricted);
-- Ada 2012
generic
type Index_Type is (<>);
with function Before (Left, Right : Index_Type) return Boolean;
with procedure Swap (Left, Right : Index_Type);
procedure Ada.Containers.Generic_Sort (First, Last : Index_Type'Base);
pragma Pure (Ada.Containers.Generic_Sort);
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- Copyright (c) 2019-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Calendar;
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Containers.Unbounded_Synchronized_Queues;
with Ada... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package glx.BufferSwapComplete
is
type Item is
record
the_Type : aliased C.int;
Serial : aliased C.unsigned_long;
send_Event : aliased Bool;
Display : System.Address;
Drawable : aliased glx.Drawable;
Event_type : aliased C.int;
U... |
-- Display Serial Interface
package HAL.DSI is
subtype DSI_Virtual_Channel_ID is UInt2;
type DSI_Data is array (Positive range <>) of Byte;
type DSI_Pkt_Data_Type is
(DCS_Short_Pkt_Write_P0, -- DCS Short write, no parameter
DCS_Short_Pkt_Write_P1, -- DCS Short write, one parameter
Gen_S... |
package Parse_Goto 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_Table is array (Row r... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-----------------------------------------------------------------------
-- security-controllers -- Controllers to verify a security permission
-- Copyright (C) 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License... |
package body problem_16 is
function Solution_1( I : Integer) return Integer is
Length : constant Integer := 1 + Integer(Float(I)*0.30103);
Arr : array( Natural range 0 .. Length) of Natural :=
(0 => 1, others => 0);
Carry : Integer := 0;
Sum : Integer := 0;
begin
... |
-- 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;
-- Simple PWM
package RP_SVD.PWM is
pragma ... |
with Interfaces;
with Interfaces.C;
with Interfaces.C.Pointers;
with Interfaces.C.Strings;
with System;
with USB.Protocol;
use Interfaces;
use Interfaces.C;
use USB.Protocol;
package USB.LibUSB1 is
---- Library initialisation and finalisation
type Status is (
Error_Not_Supported,
Error_No_Mem,
... |
with u1;
package u3 is
type t is new u1.t;
end u3;
|
with Interfaces.C.Strings; use Interfaces.C.Strings;
package body Pigpio_Ada is
Pi_Library_Call_Failed : exception;
-- IN GNAT, the standard predefined Ada types correspond to the Standard C
-- types
-- Essential
-- ...
procedure PiGpioInitialise is
function GpioInitialise return Integer;
pragma Import(C, G... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package body Forward_AD.Hamiltonian is
function Func (Q, V : in Real_Array; T : in Real) return AD_Type is
N : constant Nat := Q'Length;
begin
pragma Assert (Q'Length = V'Length);
return Var (1.0, 1, 1);
end Func;
end Forward_AD.Hamiltonian;
|
pragma Ada_2012;
generic
type Element is mod <>;
type Index is range <>;
type Element_Array is array (Index range <>) of Element;
with function Character_To_Value (C : Character) return Element;
with function Value_To_Character (E : Element) return Character;
Padding : in Character := '=';
package ... |
-- All Ada comments begin with "--" and extend to the end of the line
|
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Hashed_Maps;
package Tarmi.Symbols is
type Symbol_R (N : Positive) is new Datum_R with
record
Name : String_Type (1 .. N);
end record;
type Symbol is not null access constant Symbol_R;
type String_Type_A is not null access con... |
with Ada.Numerics.Discrete_Random;
package body Miller_Rabin is
function Is_Prime (N : Number; K : Positive := 10)
return Result_Type
is
subtype Number_Range is Number range 2 .. N - 1;
package Random is new Ada.Numerics.Discrete_Random (Number_Range);
function Mod_Exp (B... |
with
gel_demo_Client;
procedure launch_Client
--
-- Launches the remote client.
--
is
begin
gel_demo_Client.item.start;
end launch_Client;
|
-----------------------------------------------------------------------
-- Frames - Representation of stack frames
-- Copyright (C) 2014, 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
-----------------------------------------------------------------------
-- util-properties-discrete -- Generic package for get/set of discrete properties
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the... |
with Ada.Text_IO, Ada.Command_Line; use Ada.Command_Line;
procedure Comma_Quibble is
begin
case Argument_Count is
when 0 => Ada.Text_IO.Put_Line("{}");
when 1 => Ada.Text_IO.Put_Line("{" & Argument(1) & "}");
when others =>
Ada.Text_IO.Put("{");
for I in 1 .. Argument_Count-2 loop
Ada.Te... |
with
Interfaces.C.Strings,
System;
use type
Interfaces.C.Strings.chars_ptr,
System.Address;
package body FLTK.Images.Shared is
function fl_shared_image_get
(F : in Interfaces.C.char_array;
W, H : in Interfaces.C.int)
return System.Address;
pragma Import... |
with Ada.Text_IO; use Ada.Text_IO;
procedure test_endianess is
begin
if Standard'Default_Bit_Order = 1 then
Put_Line ("This is a litle-endian machine. " &
" (Standard'Default_Bit_Order = " &
Integer'Image (Standard'Default_Bit_Order) &
")");
else
Put_... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, Fabien Chouteau --
-- --
-- ... |
with Libadalang.Analysis; use Libadalang.Analysis;
with Utils.Char_Vectors; use Utils.Char_Vectors;
with Utils.Command_Lines; use Utils.Command_Lines;
with Utils.Tools; use Utils.Tools;
with Pp.Scanner; use Pp;
package JSON_Gen.Actions is
type Json_Gen_Tool is new Tool_State with private;
procedure Format_Vecto... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C;
with Interfaces.C.Strings;
with Interfaces.C;
package gmp_c is
-- mp_limb_t
--
subtype mp_limb_t is Interfaces.C.unsigned_long;
type mp_limb_t_array is
array (Interfaces.C.size_t range <>) of aliased gmp_c.mp_li... |
with Memory.Container; use Memory.Container;
package Memory.Cache is
type Cache_Type is new Container_Type with private;
type Cache_Pointer is access all Cache_Type'Class;
type Policy_Type is (LRU, -- Least recently used
MRU, -- Most recently used
... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
with Regions.Tests;
procedure Regions.Run is
begin
Regions.Tests.Test_Standard;
Ada.Wide_Wide_Text_IO.Put_Line ("Hello!"... |
with Entities; use Entities;
with Vectors2D; use Vectors2D;
with Ada.Containers.Doubly_Linked_Lists;
with Circles;
with Rectangles;
package Collisions is
-- Collision type, holding meaningful information
-- about a collision
type Collision is record
A : EntityClassAcc;
B : EntityClassAcc;
N... |
procedure LightTrigger (dir : in Direction) is
begin
if Pedestrian_Button(North) = 1 then --Will need to be a sub procedure taking in param of direction.
PedestrianLightSwitcher(North); --Temporary call to the north light for development.
end if; --Pressed
end LightTrigger;
|
with Interfaces; use Interfaces;
with LV.Area;
generic
Width : Interfaces.Integer_16;
Height : Interfaces.Integer_16;
package SDL_Display is
Screen_Rect : constant LV.Area.Area_T := (0, 0, Width - 1, Height - 1);
procedure Initialize;
subtype SDL_Pixel is Unsigned_16;
function To_SDL_Color (... |
with Resources8;
with Ada.Command_Line;
with Ada.Text_IO;
procedure Test8 is
use Resources8;
C : Content_Access := Get_Content ("config/test8.xml");
begin
if C = null then
Ada.Text_IO.Put_Line ("FAIL: No content 'config/test8.xml'");
Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
... |
with Ada.Text_IO;
with Ada.Streams;
with Ada.Characters.Latin_1;
with Ada.Text_IO.Text_Streams;
with Ada.Streams.Stream_IO;
with Ada.Calendar;
with Ada.Calendar.Time_Zones;
with Ada.Calendar.Formatting;
with Ada.Command_Line;
with GNAT.Calendar.Time_IO;
with GNAT.Regpat;
with GNAT.Formatted_String;
with Ada.Storage_IO;... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure aliased1 is
type E is (One, Two);
type R (D : E := One) is record
case D is
when One =>
I1 : Integer;
I2 : Integer;
when Two =>
B1 : Boolean;
end case;
end record;
type Data_Type is record
D... |
------------------------------------------------------------------------
-- Copyright (C) 2010-2020 by Heisenbug Ltd. (github@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 Hocev... |
with Agar;
with Agar.Object;
with Agar.Data_Source;
with System.Address_To_Access_Conversions;
with Interfaces.C;
--
-- Example of an Agar object class called "Animal".
--
package Animal is
package OBJ renames Agar.Object;
package DS renames Agar.Data_Source;
package C renames Interfaces.C;
use type C.in... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- MIT License
--
-- Copyright (c) 2020 Max Reznik
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to use, copy, mo... |
-- $Header: /cf/ua/arcadia/alex-ayacc/ayacc/src/RCS/cli__read_command_line.a,v 1.1 88/08/08 12:08:33 arcadia Exp $
--***************************************************************************
-- This file is subject to the Arcadia License Agreement.
--
-- (see notice in ayacc.a)
--
--*... |
with System; use System;
-- with Ada.Text_IO;
package body STM32GD.USART.Peripheral is
procedure putchar (Data : in Character) with Import => true, Convention => C;
procedure Init is
begin
null;
end Init;
procedure Transmit (Data : in Byte) is
begin
putchar (Character'Val (Data));
... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ equals used in skill --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
with mwc_constants;
use mwc_constants;
generic
type Parent_Random_Int is mod <>;
package LCG_Rand
with Spark_Mode => On
is
pragma Pure (LCG_Rand);
pragma Assert (Parent_Random_Int'Modulus > 2**63-1);
pragma Assert (m0 < Parent_Random_Int'Last);
pragma Assert (m1 < Parent_Random_Int'Last);
... |
with volatile1; use volatile1;
package volatile2 is
type PData_Array is access Data_Array;
type Result_Desc is
record
Data : PData_Array;
end record;
type Result is access Result_Desc;
procedure Copy;
end volatile2;
|
-- C74306A.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... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with AdaBase.Statement;
package AdaBase.Interfaces.Connection is
type iConnection is interface;
package AS renames AdaBase.Statement;
-- Autocommit
procedure setAutoCommit (conn : out iConnectio... |
--
-- Copyright (C) 2020, AdaCore
--
-- This spec has been automatically generated from FU540.svd
-- This is a version for the E54 CPU Coreplex, high-performance, 64-bit
-- RV64IMAFDC core
-- MCU
package Ada.Interrupts.Names is
-- All identifiers in this unit are implementation defined
pragma Impleme... |
-- AC3106A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
-- Copyright (c) 2019-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Streams;
package Torrent is
pragma Pure;
subtype SHA1 is Ada.Streams.Stream_Element_Array (1 .. 20);
subtype... |
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.I2C is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_DNF_Field is HAL.UInt4;
-- A... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Storage_Pools.Standard_Pools;
package System.Pool_Global is
pragma Preelaborate;
subtype Unbounded_No_Reclaim_Pool is
Storage_Pools.Standard_Pools.Standard_Pool;
pragma Suppress (All_Checks); -- for renaming
-- ... |
package Pure with Pure is
--@description A pure spec test package
end Pure; |
package Except
is
Test_Exception : exception;
procedure Do_Something;
procedure Do_Sth_2;
end Except;
|
-----------------------------------------------------------------------
-- gen-artifacts-distribs-libs -- Unix shared library extraction and distribution
-- Copyright (C) 2012, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (... |
-- openapi_ipify
-- OpenAPI client for ipify, a simple public IP address API
--
-- OpenAPI spec version: 0.9.0
-- Contact: blah@cliffano.com
--
-- NOTE: This package is auto generated by the swagger code generator 3.2.1-SNAPSHOT.
-- https://openapi-generator.tech
-- Do not edit the class manually.
with Swagger.S... |
package GDB_Remote.Agent is
subtype Address is Unsigned_64;
type Instance (Buffer_Size : Buffer_Lenght_Type := 256)
is abstract tagged limited private;
subtype Class is Instance'Class;
type Ptr is access all Class;
procedure Send_To_Host (This : in out Instance;
C : ... |
-- { dg-do run }
-- { dg-options "-O3 -flto" { target lto } }
with Lto21_Pkg1;
with Lto21_Pkg2; use Lto21_Pkg2;
procedure Lto21 is
begin
Proc;
end;
|
-- Copyright (c) 2015-2019 Marcel Schneider
-- for details see License.txt
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Position; use Position;
with Tokens; use Tokens;
package TokenValue is
type Object is record
SourcePosition : Position.Object;
TokenId : Token;
Literal : Unbound... |
with color_h; use color_h;
package Libtcod.Color.Conversions is
function To_TCOD_ColorRGB(color : RGB_Color) return TCOD_ColorRGB with Inline;
function To_RGB_Color(color : TCOD_ColorRGB) return RGB_Color with Inline;
private
function To_TCOD_ColorRGB(color : RGB_Color) return TCOD_ColorRGB is
(... |
Int_Bits : constant Integer := Integer'size;
Whole_Bytes : constant Integer := Int_Bits / Storage_Unit; -- Storage_Unit is the number of bits per storage element
|
with System;
with STM32_SVD.SAU; use STM32_SVD.SAU;
package STM32.SAU is
type SAU_Regions is range 0 .. 7;
procedure Add_Region (Region_Num : SAU_Regions;
Addr : UInt32;
Size : UInt32;
NSC : Boolean);
procedure E... |
with AUnit.Reporter.Text;
with AUnit.Run;
with Test_Suite;
procedure Tests is
procedure Run is new AUnit.Run.Test_Runner (Test_Suite.Create_Test_Suite);
Reporter : AUnit.Reporter.Text.Text_Reporter;
begin
Run (Reporter);
end Tests;
|
with Ada.Strings.Wide_Wide_Unbounded; use Ada.Strings.Wide_Wide_Unbounded;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Scape
is
function Decode (Str : String) return Unbounded_Wide_Wide_String;
function Encode (Str : Unbounded_Wide_Wide_String) return Unbounded_String;
end Scape;
|
with
float_Math.Geometry.d3.Modeller.Forge;
package body openGL.IO.lat_long_Radius
is
function to_Model (math_Model : access Geometry_3d.a_Model) return IO.Model
is
site_Count : constant long_Index_t := long_Index_t (math_Model.site_Count);
coord_Count : constant long_Index_t := 0; --get_c... |
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces.C; use Interfaces.C;
--with termbox_h; use termbox_h;
--with x86_64_linux_gnu_bits_stdint_uintn_h; use x86_64_linux_gnu_bits_stdint_uintn_h;
with Termbox;
procedure Demo is
Init : Termbox.Return_Value;
Evt : Termbox.Return_Value;
Ev: access Termbox.Ev... |
-- Copyright 2019-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- ... |
package openGL.Renderer
--
-- Provides a base class for all renderers.
--
is
type Item is abstract tagged limited private;
type View is access all Item'Class;
-- Attributes
--
procedure Background_is (Self : in out Item; Now : in openGL.lucid_Color);
procedure Background_is (Self : in out It... |
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Regions.Contexts.Environments.Package_Nodes is
type Entity_Cursor is new Regions.Entity_Cursor with record
List_Cursor : Selected_Ent... |
with Shader_Manager;
package body Palet is
G_Draw_State : Draw_State;
function Background_Colour (Palet_Data : Colour_Palet) return Color is
begin
return Palet_Data.Background_Colour;
end Background_Colour;
-- ------------------------------------------------------------------------
func... |
-----------------------------------------------------------------------
-- awa-applications-configs -- Read application configuration files
-- Copyright (C) 2011, 2012, 2015, 2017, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.