content stringlengths 23 1.05M |
|---|
with STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.I2C;
with STM32GD.I2C.Peripheral;
with Drivers.Si7006;
package Peripherals is
package GPIO renames STM32GD.GPIO;
package SCL is new GPIO.Pin (Pin => GPIO.Pin_6, Port => GPIO.Port_B,
Mode => GPIO.Mode_AF, Alternate_Function => 1);
package SCL_OUT i... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
-----------------------------------------------------------------------
-- hyperion-monitoring-modules -- Module monitoring
-- 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 f... |
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System.Address_To_Access_Conversions;
with C.string;
with C.libxml.globals;
with C.libxml.parser;
with C.libxml.tree;
with C.libxml.xmlIO;
with C.libxml.xmlmemory;
with C.libxml.xmlstring;
with C.libxml.xmlversion;
package body XML is
use type System... |
-- { dg-do run }
with Init3; use Init3;
with Text_IO; use Text_IO;
with Dump;
procedure S3 is
A1 : R1 := My_R1;
A2 : R2 := My_R2;
N1 : Nested1;
N2 : Nested2;
C1 : Init3.Count;
C2 : Init3.Count;
C3 : Init3.Count;
begin
Put ("A1 :");
Dump (A1'Address, R1'Max_Size_In_Storage_Elements);
New_Line;... |
with AUnit; use AUnit;
with AUnit.Reporter.Text; use AUnit.Reporter.Text;
with AUnit.Run; use AUnit.Run;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Rejuvenation_Suite; use Rejuvenation_Suite;
procedure Tests is
function Runner is new Test_Runner_With_Status (Suite);
Report... |
-- 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... |
------------------------------------------------------------------------------
-- 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... |
package FLTK.Widgets.Groups.Color_Choosers is
type Color_Chooser is new Group with private;
type Color_Chooser_Reference (Data : not null access Color_Chooser'Class) is
limited null record with Implicit_Dereference => Data;
type Color_Mode is (RGB, Byte, Hex, HSV);
package Forge is
... |
with deref1;
package deref2 is
type NT is tagged limited private;
function PT_View (Obj : not null access NT)
return not null access deref1.T'Class;
private
type PT (Obj : not null access NT) is new deref1.T with null record;
type NT is tagged limited record
PT_View : aliased PT (NT'Acces... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.GPIO;
with STM32_SVD.USB;
with Ada.Interrupts.Names;
with System;
generic
Number : Integer;
package STM32GD.USB.Endpoint is
procedure Handle_Ctr;
end STM32GD.USB.Endpoint;
|
-- C43214E.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 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Generic_Array_Operations is
----------------------------------------------------------------------------
procedure Insert_Incr (A : in out Array_Type;
... |
-----------------------------------------------------------------------
-- hestia-network -- Hestia Network Manager
-- Copyright (C) 2016, 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 fil... |
package body Concat1_Pkg is
function Ident (I : Integer) return Integer is begin return I; end;
end Concat1_Pkg;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with System;
with System.Storage_Elements;
with SAM.Main_Clock;
with SAM.DMAC;
with HAL;
package body PyGamer is
System_Vectors : constant HAL.UInt32;
pragma Import (Asm, System_Vectors, "__vectors");
VTOR : System.Address
with Volatile,
Address => System.Storage_Elements.To_Address (16#E000_ED0... |
-- 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.PUF is
pragma Preelaborate;
... |
-- Task 2 of RTPL WS17/18
-- Team members: Hannes B. and Gabriel Z.
package dice is
-- Procedure for option 8
procedure opt8;
private
-- Counting procedure
procedure myDice;
end dice;
|
-- reqrep_task_pool.adb
-- A task pool system for simple request-response activity
-- Copyright (c) 2015, James Humphry
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Hashed_Maps;
package body Program.Visibility is
use all type Program.Visibility.Symbol;
type Allocated_Sna... |
-----------------------------------------------------------------------
-- css-comments -- CSS comments recording
-- 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... |
with Ada.Text_IO;
with Interfaces.C;
with Asis_Adapter.Tool;
with a_nodes_h.Support;
package body adapter_wrapper_h is
package anhS renames a_nodes_h.Support;
------------
-- EXPORTED:
------------
function adapter_wrapper
(target_file_in : in Interfaces.C.Strings.chars_ptr;
... |
package afrl.impact.ImpactPointSearchTask.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
-- This wrapper is only introduced for termination
function Get_SearchLocationID (X : ImpactPointSearchTask) return Int64;
end afrl.impact.ImpactPointSearchTask.SPARK_Boundar... |
-- Generated at 2017-04-01 17:51:32 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-fallback_render-maps.sx
function Natools.Static_Maps.Web.Fallback_Render.T
return Boolean;
pragma Pure (Natools.Static_Maps.Web.Fallback_Render.T);
|
-- network.ada
--
-- Title: Network
-- Created: Tue Apr 13 00:56:28 1993
-- Author: Eric Gustafson
-- <egustafs@play-doh>
--
-- Interface:
-- All nodes will be lettered sequentially from 'A' nodes are
-- case insensitive. lambda and gama values are integer values
-- in the range of 0..max_int.
with TEXT_... |
--
-- 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... |
package Fat_Fields is
pragma Elaborate_Body;
type A is array (Positive range <>) of Boolean;
type A_Ptr is access A;
P : A_Ptr := null;
end;
|
package input_2 is
type Generator is null record;
generic
type Unsigned is mod <>;
type Real is digits <>;
with function Random (G: Generator) return Unsigned is <>;
function Random (G: Generator) return Real;
end input_2; |
with STM32.Device;
package body STM32.LPTimers is
------------
-- Enable --
------------
procedure Enable (This : in out LPTimer) is
begin
This.CR.ENABLE := True;
end Enable;
-------------
-- Disable --
-------------
procedure Disable (This : in out LPTimer) is
begin
Th... |
--
-- 6.1 Subprogram Declarations
--
-- NOTE: This module is not compilation is used only for testing purposes
--
package Subprogram_Declarations is
-- Examples of subprogram declarations:
procedure Traverse_Tree;
procedure Increment(X : in out Integer);
procedure Right_Indent(Margin : out Line_Size);... |
with
physics.Shape,
box2d_c.Pointers,
physics.Space;
package box2d_Physics.Shape
--
-- Provides glue between a physics shape and a Box2D shape.
--
is
type Item is abstract new physics.Shape.item with -- TODO: Make private.
record
C : box2d_c.Pointers.Shape_pointer;
end recor... |
with AUnit.Assertions; use AUnit.Assertions;
with PixelArray; use PixelArray;
with ImageThresholds;
with ImageIO;
package body ImageTests is
procedure Register_Tests (T: in out ImageTest) is
use AUnit.Test_Cases.Registration;
begin
Register_Routine(T, testPixelArray'Access, "pixel array");
Re... |
pragma License (Unrestricted);
-- implementation unit specialized for Darwin
with C.mach.mach_time;
with C.stdint;
package System.Native_Real_Time is
pragma Preelaborate;
subtype Native_Time is C.stdint.uint64_t;
function To_Native_Time (T : Duration) return Native_Time;
function To_Duration (T : Native_... |
-- Copyright 2015,2016,2017 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 ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020, AdaCore --
-- --
-- ... |
Foo : constant := 42;
Foo : constant Blahtype := Blahvalue;
|
with Ada.Wide_Wide_Text_IO;
with League.Strings;
with League.JSON.Arrays;
with League.JSON.Objects;
with League.JSON.Values;
with WebDriver.Drivers;
with WebDriver.Elements;
with WebDriver.Remote;
with WebDriver.Sessions;
procedure Test is
function "+"
(Text : Wide_Wide_String) return League.Strings.Universa... |
-- 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.PWM is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CONFIG_SCALE_Field is HAL.... |
-- MIT License
-- Copyright (c) 2021 Stephen Merrony
-- 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, modify,... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Source_Buffers;
with Program.Symbols;
private with Ada.Containers.Vectors;
package Program.Plain_Lexical_Eleme... |
-- Precompiled instantiations of Integer_IO and
-- Float_IO for the predefined Integer and Float types
WITH Text_IO;
PACKAGE My_Int_IO IS
NEW Text_IO.Integer_IO (Num => Integer);
WITH Text_IO;
PACKAGE My_Flt_IO IS
NEW Text_IO.Float_IO (Num => Float);
|
-------------------------------------------------------------------------------
-- Copyright (C) 2020-2030, per.s.sandberg@bahnhof.se --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
... |
-- This spec has been automatically generated from xyzzy
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PKA is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype PKA_CR_MODE_Field is HAL.UInt6... |
-- { dg-do compile }
package body Discr9 is
procedure Proc (From : in R; To : out R) is
begin
To := R'(D1 => False, D2 => From.D2, Field => From.Field);
end;
end Discr9;
|
with avtas.lmcp.types; use avtas.lmcp.types;
with afrl.cmasi.object; use afrl.cmasi.object;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package afrl.cmasi.payloadConfiguration is
type PayloadConfiguration is new afrl... |
package Debug6_Pkg is
type Vkind is (Int, Undefined);
for Vkind use (Int => -2 ** 31, Undefined => 0);
type Value (Kind : Vkind) is record
case Kind is
when Undefined => null;
when Int => Value : Integer;
when others => null;
end case;
end record;
... |
with Ada.Unchecked_Deallocation;
with Ada.Streams; use Ada.Streams;
package body DNSCatcher.DNS.Processor.RData.Domain_Name_Response_Parser is
-- A records are simply four octlets which we need to turn into integers
-- then decode back into an ASCII string
pragma Warnings (Off, "formal parameter ""DNS_Header... |
-- { dg-do compile }
-- { dg-options "-gnatwa" }
package body return1 is
function X_Func (O : access Child) return access Base'Class is
begin
return X_Local : access Base'Class do
X_Local := O;
end return;
end X_Func;
end return1;
|
-- C74407B.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.Interrupts;
with Ada.Interrupts.Names;
package usb_handler is
protected Device_Interface is
pragma Interrupt_Priority;
procedure Handler;
pragma Attach_Handler (Handler, Ada.Interrupts.Names.OTG_FS_Interrupt);
end Device_Interface;
end usb_handler;
|
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body LSP.Notification_Dispatchers is
--------------
-- Dispatch --
--------------
not overriding procedure Dispa... |
with Text_IO; use Text_IO;
procedure Fibtest is
Passed : Boolean := True;
function Fib(N : in Positive) return Positive is separate;
procedure Compare (N : in Positive; Right_Answer : in Positive) is
package Int_IO is new Integer_IO(Integer); use Int_IO;
My_Answer : Positive := Fib(N);
begin
... |
package Deferred_Const2_Pkg is
I : Integer := 16#20_3A_2D_28#;
pragma Warnings (Off);
S : constant string(1..4);
for S'address use I'address;
pragma Import (Ada, S);
procedure Dummy;
end Deferred_Const2_Pkg;
|
package body Opt13_Pkg is
subtype Index_Type is Natural range 0 .. 16;
type Arr is array (Index_Type range <>) of Integer;
type Rec is record
F1, F2, F3 : Float;
N : Natural;
B1, B2 : Boolean;
F4 : Float;
end record;
type Data (D : Index_Type) is record
A : Arr (1 .. D);
R : Rec;
... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Interfaces.C;
package Crypto with
SPARK_Mode,
Abstract_State => key_store,
Initializes => key_store
is
subtype Byte is Interfaces.C.unsigned_char;
subtype Key_Slot is Interfaces.C.int range 0 .. 3;
type Key_Index is range 1 .. 128;
type Key is array (Key_Index) of Byte;
type Data_Index... |
-------------------------------------------------------------------------------
-- 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... |
with Ada.Command_Line;
with Ada.Numerics.Long_Elementary_Functions;
with Ada.Text_IO;
with DDS.DomainParticipant;
with DDS.DomainParticipantFactory;
with Primes.PrimeNumberReplier;
with Primes.PrimeNumberRequest_TypeSupport;
with RTIDDS.Config;
procedure Primes.Replier_Main is
use Ada.Numerics.Long_Elementary_Fun... |
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
procedure multiplosdetres (n1,n2: in Integer; resultado: out Integer) is
auxiliar: Integer;
begin
resultado:=0;
auxiliar:=n1;
while auxiliar rem 3 /= 0 loop
auxiliar:=auxiliar+1;
end loop;
while n2 >= auxiliar loop
put(auxiliar);... |
package Trendy_Terminal.Example.Input is
procedure Run_Print_Input;
end Trendy_Terminal.Example.Input;
|
with Interfaces; use Interfaces;
with Bounded_Image; use Bounded_Image;
with HMC5883L; use HMC5883L;
with HMC5883L.Driver;
with Logger;
with Interfaces; use Interfaces;
package body Magnetometer with SPARK_Mode is
--overriding
procedure initialize (Self : in out Magnetometer_Tag) is
begin
Driver.i... |
package body simulation is
procedure init is
begin
if not CSV_here.Open then
Put_Line ("Simulation: Error opening file");
Simulation.Finished := True;
return;
else
Put_Line ("Simulation: Replay from file");
have_data := True;
CSV_here.Parse_Heade... |
with Ada.Unchecked_Conversion;
with Interfaces; use Interfaces;
package foo with SPARK_Mode is
type Byte is mod 2**8;
type Byte_Array is array (Natural range <>) of Byte;
type Byte_Array_4 is array (1..4) of Byte;
subtype Data_Type is Byte_Array; -- essential
function From_Byte_Array_To_Integer_32 is... |
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Tarmi.Symbols; use Tarmi.Symbols;
-- TODO: Support multiple environment parents.
package Tarmi.Environments is
function Hash_Symbol (S : Symbol) return Hash_Type;
package Hashed_Maps is new Ada.Containers.Hashed_Maps
(Key_Type... |
with Ada.Unchecked_Conversion;
with System.Startup;
with System.Unwind.Occurrences;
with System.Unwind.Raising;
package body System.Finally is
pragma Suppress (All_Checks);
use type Ada.Exceptions.Exception_Occurrence_Access;
use type Startup.Finalize_Library_Objects_Handler;
use type Unwind.Exception_Data_... |
with Ada.Text_IO; use Ada.Text_IO;
procedure aaa is
begin
loop
Put ('a');
end loop;
end aaa; |
with GL.Objects.Programs;
with E3GA;
with Multivectors; use Multivectors;
package Draw_1_1 is
function Draw_Circle (Render_Program : GL.Objects.Programs.Program;
C1, C2, C3 : Normalized_Point) return Circle;
function Draw_Line (Render_Program : GL.Objects.Programs.Program;
... |
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_photography_enumtypes_h is
-- unsupported macro: GST_TYPE_PHOTOGRAPHY_NOISE_REDUCTION (gst_photography_noise_reduction_get_type())
--... |
with RASCAL.OS; use RASCAL.OS;
package Controller_Dummy is
type TEL_Dummy is new Toolbox_UserEventListener(16#59#,-1,-1) with null record;
--
-- This does nothing.
--
procedure Handle (The : in TEL_Dummy);
end Controller_Dummy;
|
-- Generated at 2016-07-04 19:19:16 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-comments-maps.sx
function Natools.Static_Maps.Web.Comments.T
return Boolean;
pragma Pure (Natools.Static_Maps.Web.Comments.T);
|
-- This spec has been automatically generated from STM32F105xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
package STM32.USART is
pragma Preelaborate;
---------------
-- Registers --
---------------
-----------------
-- SR_Register --
-----------------
sub... |
with Offmt_Lib.Fmt_Data.Unsigned_8;
with Offmt_Lib.Fmt_Data.Unsigned_16;
with Offmt_Lib.Fmt_Data.Unsigned_32;
package body Offmt_Lib.Fmt_Data is
------------
-- Create --
------------
function Create (Typ : Format_Type) return Instance'Class is
begin
case Typ is
when Type_U8 =>
... |
-----------------------------------------------------------------------
-- security-policies -- Security Policies
-- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
package NewLineExamples is
function Text_New_Lines (Text : String) return String;
function Twice_Text_New_Line (Text : String) return String;
function Text_Duplicate (Text : String) return String;
function Text_Dupl (Text : String) return String;
function Text_Twice (Text : String) return String;
... |
package lace.Text.utility
--
-- Provides utility subprograms.
--
is
function replace (Self : in Text.item; Pattern : in String;
By : in String) return Text.item;
--
-- If the replacement exceeds the capacity of 'Self', the result will be expanded.
... |
with AdaBase;
with Connect;
with Ada.Text_IO;
with CommonText;
with AdaBase.Results.Sets;
with AdaBase.Logger.Facility;
procedure Prep_Stmt is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package CT renames CommonText;
package AR renames AdaBase.Results;
package ARS renames AdaBase.R... |
with
Interfaces.C.Strings,
System;
use type
Interfaces.C.Strings.chars_ptr,
System.Address;
package body FLTK.Widgets.Inputs.File is
procedure file_input_set_draw_hook
(W, D : in System.Address);
pragma Import (C, file_input_set_draw_hook, "file_input_set_draw_hook");
pra... |
-- Used for all testcases for SQLite driver
-- Modify connection parameters as necessary
package body Connect is
procedure connect_database is
begin
DR.basic_connect (database => "file:///home/marino/adabase.sqlite");
end connect_database;
end Connect;
|
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with bintree;
procedure demo is
type Tomb is array (Integer range <>) of Integer;
function beta(item : Integer; parent : Integer) return Boolean is
begin
return item / 2 = parent;
end beta;
function tree is new bintree(... |
-- C37405A.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.Containers.Hashed_Maps,
Ada.Execution_Time,
Ada.Integer_Text_IO,
Ada.Long_Long_Integer_Text_IO,
Ada.Real_Time,
Ada.Text_IO;
with Utils,
Dijkstra;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
Nb_Tiles : constant := 1;
... |
with
freetype_c.Pointers;
package freetype_c.pointer_Pointers
is
use freetype_c.Pointers;
type FT_UShort_Pointer_Pointer is access all FT_UShort_Pointer;
type FT_Int_Pointer_Pointer is access all FT_Int_Pointer;
type FT_UInt_Pointer_Pointer is access all FT_UInt_Pointer;
ty... |
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
with Ada.Containers.Vectors;
procedure Day23 is
type Coordinates is record
X : Integer_64;
Y : Integer_64;
Z : Integer_64;
end record;
function Manhattan_Distance (Pos1, Pos2 : Coordinates) return Integer_64 is
(abs (... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- C64103F.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 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... |
-- Mojang API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-- ------------ 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 follow... |
-----------------------------------------------------------------------
-- awa-questions-beans -- Beans for module questions
-- Copyright (C) 2012, 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... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with regge;
with regge.io;
procedure check is
type Real is digits 18;
package regge_lib is new regge (Real); use regge_lib;
package regge_lib_io is new regge_lib.io; use regge_lib_io;
package Real_IO is new Ada.Text_IO.Float_IO (Real); use Real_IO;
pa... |
------------------------------------------------------------------------------
-- Copyright (c) 2021, Lev Kujawski.
--
-- 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 restrictio... |
with GNAT.Byte_Swapping;
package body avtas.lmcp.byteBuffers is
function To_Int16(Input : ByteArray2) return Int16_t is
subtype sourceType is ByteArray2;
subtype swapType is ByteArray2;
subtype targetType is Int16_t;
function Convert is new Ada.Unchecked_Conversion(Source => sourceType, Tar... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
-- part of FreeTypeAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Text_IO; use Ada.Text_IO;
with FT.Glyphs;
package body FT.Utilities is
use Interfaces.C;
procedure Print_Bitmap_Metadata (Bitmap : FT.Bitmap_Record) is
begin
New_Line;
... |
pragma Ada_2012;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with AUnit.Assertions; use AUnit.Assertions;
with AUnit.Test_Caller;
package body PBKDF2.Tests is
package Caller is new AUnit.Test_Caller (Fixture);
Test_Suite : aliased AUnit.Test_Suites.Test_Suite;
function Suite return AUnit.Test... |
package body AdaM.Assist.Query.find_Entities.Actuals_for_traversing
is
-------------
-- Post_Op --
-------------
procedure Post_Op
(Element : Asis.Element;
Control : in out Asis.Traverse_Control;
State : in out Traversal_State)
is separate;
------------
-- Pre_Op --
... |
with Ada.Text_Io; use Ada.Text_Io;
procedure Counting_Sort is
type Data is array (Integer range <>) of Natural;
procedure Sort(Item : out Data) is
begin
for I in Item'range loop
Item(I) := I;
end loop;
end Sort;
Stuff : Data(1..140);
begin
Sort(Stuff);
for I in Stuff'range loo... |
with Ada.Numerics.Discrete_Random;
with STM32.Board; use STM32.Board;
with Gfx; use Gfx;
with Stack; use Stack;
package body Instruction is
function Fetch (Cpu : Chip8) return Opcode is
Op : Opcode;
begin
Op := Word(Cpu.Mem(Cpu.PC));
Op := Shift_Left(Op, 8);
Op := Op + Word(Cpu.Mem(Cpu.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.