content stringlengths 23 1.05M |
|---|
with MSP430_SVD; use MSP430_SVD;
with MSP430_SVD.PORT_1_2; use MSP430_SVD.PORT_1_2;
with MSP430_SVD.ADC10; use MSP430_SVD.ADC10;
with System.Machine_Code; use System.Machine_Code;
with System;
package body MSPGD.GPIO.Pin is
procedure BIS (N : System.Address; Bit: UInt3) is
begin
-- Asm ("bis #%1, &%0", V... |
------------------------------------------------------------------------------
-- 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... |
with Ada.Text_IO; use Ada.Text_IO;
package body mylog with SPARK_Mode is
procedure Print (m : logmsg) is
begin
case m.typ is
when NONE => Put ("NONE");
when GPS => Put ("GPS: ");
when TEXT => Put ("TXT: ");
end case;
end Print;
end mylog;
|
pragma Ada_2012;
package body sbus_commander is
----------
-- init --
----------
procedure init is
begin
null;
end init;
-----------------------
-- get_channels_data --
-----------------------
function get_channels_data return sbus_data is
begin
return frame.data;
end... |
-----------------------------------------------------------------------
-- asf-beans-mappers -- Read XML managed bean declaratiosn
-- Copyright (C) 2010, 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
package body lace.Subject_and_instant_Observer
is
package body Forge
is
function to_Subject_and_Observer (Name : in String) return Item
is
begin
return Self : Item
do
Self.Name := to_unbounded_String (Name);
end return;
end to_Subject_and_Observer;
... |
-- $Id: Errors.md,v 1.1 1994/08/15 22:13:23 grosch rel $
-- $Log: Errors.md,v $
-- Ich, Doktor Josef Grosch, Informatiker, Aug. 1994
with System, Text_Io, Position;
use System, Text_Io, Position;
package Errors is
NoText : constant Integer := 0 ;
SyntaxError : constant Integer := 1 ; -- error codes
ExpectedToken... |
pragma License (Unrestricted);
-- extended unit
package Ada.Exceptions.Finally is
-- Scope guard.
pragma Preelaborate;
generic
type Parameters is limited private;
with procedure Handler (Params : in out Parameters);
package Scoped_Holder is
procedure Assign (Params : aliased in out Par... |
-- 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... |
-------------------------------------------------------------------------------
-- package Gamma, Log of Gamma Function
-- Copyright (C) 1995-2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
... |
-- 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... |
-- The Config package provides configuration parameters via GNAT's ability to
-- see Shared_Passive objects as a persistant value; unfortunately, this is not
-- usable for variable-length/unconstrained types (eg String). In order to use
-- the ability anyway we implement Pascal-style strings, which are 256-bytes and
--... |
-----------------------------------------------------------------------
-- html.forms -- ASF HTML Form Components
-- Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------
-- agar_ada_demo.adb: Agar-GUI Ada demo --
------------------------------------------
with Agar.Init;
with Agar.Error;
with Agar.Data_Source;
with Agar.Event;
with Agar.Timer;
with Agar.Object;
with Agar.Init_GUI;
with Agar.Surface; use Agar.Surface;
with Agar.Text;
--with Ag... |
with Text_IO;
procedure Fuck_You_Github_World is
begin
Text_IO.Put_line("Fuck You Github!");
end Fuck_You_Github_World;
|
-- Package: Semaphores
with Ada.Text_IO;
use Ada.Text_IO;
package body Semaphores is
protected body CountingSemaphore is
entry Wait -- SemPend()
when count>0 is --wait for keys
begin
count:=count-1;
end Wait;
entry Signal -- SemPost()
... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
with STM32.GPIO; use STM32.GPIO;
with STM32.Device; use STM32.Device;
with STM32.SPI; use STM32.SPI;
package Config is
SIGNAL_LED : GPIO_Point renames PD13; -- red led
SPI_Accel_Port : SPI_Port renames STM32.Device.SPI_1;
SCLK : GPIO_Point renames STM32.Device.PA5;
MISO : GPIO_Point renames STM32.Device.... |
package body agar.gui.widget.pane is
package cbinds is
procedure set_divider_width
(pane : pane_access_t;
pixels : c.int);
pragma import (c, set_divider_width, "AG_PaneSetDividerWidth");
procedure set_division_minimum
(pane : pane_access_t;
which : partition_t;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package SPARKNaCl.Core
with Pure,
SPARK_Mode => On
is
-- Limited, so no assignment or comparison, and always
-- pass-by-reference.
type Salsa20_Key is limited private;
function Construct (K : in Bytes_32) return Salsa20_Key
with Global => null;
procedure Construct (K : out Salsa20_Ke... |
-- with Ada.Text_IO; use Ada.Text_IO;
with Atomic; use Atomic;
package body BBqueue
with SPARK_Mode => On
is
-----------
-- Grant --
-----------
procedure Grant (This : in out Offsets_Only;
G : in out Write_Grant;
Size : Count)
is
Read, Write, Start :... |
with Tkmrpc.Types;
package Tkmrpc.Constants is
Cfg_Version : constant Types.Version_Type := 16#0000000000000000#;
Ees_Version : constant Types.Version_Type := 16#0000000000000000#;
Ike_Version : constant Types.Version_Type := 16#0000000000000000#;
Modp_2048 : constant Types.Dh_Algorithm_Type := 16#000000... |
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.AC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ITCMCR_SZ_Field is HAL.UInt4;
-- ... |
with MathUtils;
package body DataBatch is
function size(b: in Batch) return Natural is
begin
return Natural(b.data.Length);
end size;
procedure randomize(b: in out Batch) is
steps: constant Natural := b.size * 2;
i1, i2: Positive;
begin
for i in 0 .. steps loop
i1 := P... |
with Interfaces.C.Strings; use Interfaces.C;
with System;
with Ada.Strings.Unbounded;
package body Sf.Audio.SoundRecorder is
--//////////////////////////////////////////////////////////
--/ @brief Get a list of the names of all availabe audio capture devices
--/
--/ This function returns an array of string... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- implementation unit
with System.Native_Calendar;
package Ada.Calendar.Naked is
function To_Native_Time (T : Time)
return System.Native_Calendar.Native_Time;
function To_Time (T : System.Native_Calendar.Native_Time) return Time;
pragma Pure_Function (To_Native_Time);
... |
function H (Int: Integer;
Fun: not null access function (X: Integer; Y: Integer)
return Integer);
return Integer;
...
X := H(A, F'Access) -- assuming X and A are Integers, and F is a function
-- taking two Integers and returning an Integer.
|
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- @author Alexander Senier
-- @date 2019-02-28
--
-- Copyright (C) 2019 Componolit GmbH
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without... |
package body Utilities is
function LeftPad (Str: String; Level : Natural) return String is
Padding: constant String (1 .. Width * Level) := (others => ' ');
begin
return Padding & Str;
end LeftPad;
end Utilities;
|
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification,
-- are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice, t... |
with CLIC_Ex.Commands;
procedure Clic_Example is
begin
CLIC_Ex.Commands.Execute;
end Clic_Example;
|
with System; use System;
with STM32_SVD.DFSDM; use STM32_SVD.DFSDM;
with STM32.RCC;
with STM32.SYSCFG;
with System.Machine_Code;
package body STM32.DFSDM
is
procedure Enable
(This : in out DFSDM_Block;
Channel : DFSDM_Channel)
is
begin
case Channel is
when Channel_0 =... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
-- "With" the shared output sink instance access point package.
with Apsepp.Output;
package body Apsepp_Demo_OSASI_Instance_Client is
--------------------------------------------------------------------------... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
generic
with procedure Start_Emitting is <>;
with procedure Finish_Emitting is <>;
with procedure Start_Parsed_Input is <>;
with procedure End_Parsed_Input is <>;
with procedure Start_P... |
-- 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... |
with Ada.Containers.Vectors;
with Ada.Iterator_Interfaces;
with EU_Projects.Node_Tables;
--
-- A partner descriptor keeps some basic information about the
-- partner such as
--
-- * The name (a short version, too)
-- * A label
-- * An index
--
-- Moreover, every partner has
--
-- * One or more roles (name, descr... |
-----------------------------------------------------------------------
-- keystore-repository-data -- Data access and management for the keystore
-- Copyright (C) 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2016, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- { dg-do run }
procedure modular2 is
type x is mod 2 ** 64;
r : x := x'last;
begin
r := r + 1;
end;
|
-- Display_Ascon_Traces
-- A utility to display traces of the encryption process for the test vectors
-- in the demo of the reference implementations
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
with System.Storage_Elements;
use System.Storage_Elements;
with... |
-----------------------------------------------------------------------
-- echo -- UDP Echo Server
-- 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 file except in compl... |
with System.Runtime_Context;
pragma Warnings (Off, System.Runtime_Context); -- break "pure" rule
package body System.Value_Errors is
procedure Raise_Value_Failure (T : String; S : String) is
T_Length : constant Natural := T'Length;
Message : String (1 .. T_Length + S'Length * 2 + 11);
Last : Natur... |
package GPR_Tools.Gprslaves is
pragma Pure;
VERSION : constant String := "0.0.1";
Default_Nameserver : constant String := "http://localhost:9999";
Config_File_Name : constant String := ".gprslave";
end GPR_Tools.Gprslaves;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
generic
type Elem is (<>);
type Tomb is array(Integer range <>) of Elem;
with function beta(item : Elem; parent : Elem) return Boolean;
function bintree(t : in out Tomb) return Boolean;
|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Tags; use Ada.Tags;
with Ada.Containers; use Ada.Containers;
with Ada.Strings.Hash;
with Ada.Unchecked_Deallocation;
package Apsepp.Tags is
function Total_Expanded_Name (T : Tag) return String
... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
with Ada.Command_Line;
with Ada.Text_IO;
procedure Main is
subtype Order is Natural range 1 .. 32;
type Mod_Int is mod 2 ** Order'Last;
procedure Sierpinski (N : Order) is
begin
for Line in Mod_Int range 0 .. 2 ** N - 1 loop
for Col in Mod_Int range 0 .. 2 ** N - 1 loop
if (Line... |
function "+" (A, B : Float) return Interval is
Result : constant Float := A + B;
begin
if Result < 0.0 then
if Float'Machine_Rounds then
return (Float'Adjacent (Result, Float'First), Float'Adjacent (Result, 0.0));
else
return (Float'Adjacent (Result, Float'First), Result);
end ... |
PACKAGE List_Lib IS
TYPE Node_Pointer IS PRIVATE;
TYPE LL_Type IS PRIVATE;
-- exported exceptions
OUT_OF_SPACE: EXCEPTION;
PAST_END: EXCEPTION;
PAST_BEGIN: EXCEPTION;
LL_UNDERFLOW: EXCEPTION;
--------------------------------------------------------------------------
-- cons... |
package car_priorities is
task type Direction_Steering; --Turning--
task type Motor_Steering; --Forward/Backward --
task type Emergency_Stop; --Sensor and distance checking --
end car_priorities;
|
-- PACKAGE e_Jacobi_Eigen
--
-- Extended precision version of Jacobi's iterative algorithm for
-- eigen-decomposition of square real-valued symmetric matrices.
--
-- PROCEDURE Eigen_Decompose
--
-- Works on arbitrary diagonal blocks of input matrix. For other blocks just
-- copy the matrix to desired position; copy... |
with Ada.Text_IO, Ada.Directories;
procedure Directory_Tree is
procedure Print_Tree(Current: String; Indention: Natural := 0) is
function Spaces(N: Natural) return String is
(if N= 0 then "" else " " & Spaces(N-1));
use Ada.Directories;
Search: Search_Type;
Found: Directory_Entry_Type;
... |
-- SipHash24.System_Entropy
-- An instantiation of SipHash.Entropy to allow the SipHash key to be set from
-- a system entropy source (if possible).
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
pragma Spark_Mode (On);
with SipHash.Entropy;
pragma Elaborate_All(SipHash.Entropy);
package SipHa... |
--
-- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: Apache-2.0
--
package Notcurses.Context is
-- These procedures modify the default context
procedure Initialize;
procedure Stop;
procedure Render
(Context : Notcurses_Context);
procedure Enable_Cursor
... |
with Ada.Text_IO; use Ada.Text_IO;
with Native.Filesystem; use Native.Filesystem;
with Virtual_File_System; use Virtual_File_System;
with Helpers; use Helpers;
procedure TC_Simple_Mount is
Strict_Mode : constant Boolean := False;
-- Debug switch to enable strict mode. Currently, non-strict mode avoids
--... |
-------------------------------------------------------------------------------
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- AOC 2020, Day 1
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
begin
put_line("Part 1: " & Expense'Image(Day.part1("input.txt")));
put_line("Part 2: " & Expense'Image(Day.part2("input.txt")));
end main;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure albja664 is
I,A:Integer;
begin
Get(I);
for 1..I loop
end albja664; |
-- Advanced Resource Embedder 1.2.0
package Lines is
type Content_Array is array (Positive range <>) of access constant String;
type Content_Access is access constant Content_Array;
Id_empty_txt : aliased constant Content_Array;
private
Id_empty_txt : aliased constant Content_Array(1 .. 0) := (others =... |
-- TITLE aflex - main program
--
-- AUTHOR: John Self (UCI)
-- DESCRIPTION main subprogram of aflex, calls the major routines in order
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/aflex.a,v 1.11 90/10/15 20:00:40 self Exp Locker: self $
--***************************************************************************... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2010, Alexander Senier
-- Copyright (C) 2010, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or w... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
--
-- This package provides file descriptor polling events to yield.
--
with Interfaces.C;
package Coroutines.Polling is
pragma ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package SPARKNaCl.Hashing
with Pure,
SPARK_Mode => On
is
subtype Digest is Bytes_64; -- 512 bits
-- Use IV to initialize a Digest before first call
-- to Hashblocks
IV : constant Digest;
procedure Hashblocks
(X : in out Digest;
M : in Byte_Seq)
with Global => null;
--... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Person_Sorted_List; use Person_Sorted_List;
with Person_Handling; use Person_Handling;
procedure Lab5B is
Test_List: List_Type;
Test_Person1: Person;
Test_Person2: Person;
Test_Person3: Person;
begin
Get(Test_Person1);
Inse... |
pragma License (Unrestricted);
private with Ada.Finalization;
private with Ada.Streams;
private with Ada.Strings.Naked_Maps;
private with System.Reference_Counting;
package Ada.Strings.Maps is
pragma Preelaborate;
-- Representation for a set of character values:
type Character_Set is private;
pragma Preel... |
-- Generated by gperfhash
package PQ.Perfect_Hash is
function Hash (S : String) return Natural;
-- Returns true if the string <b>S</b> is a keyword.
function Is_Keyword (S : in String) return Boolean;
type Name_Access is access constant String;
type Keyword_Array is array (Natural range <>) of Name_... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
with HWIF;use HWIF;
--with Ada.Text_IO; use Ada.Text_IO;
function OppositeDirection(dir : in Direction) return Direction is begin
if dir = North then
return South;
elsif dir = South then
return North;
elsif dir = East then
return West;
elsif dir = West then
return East;
end if;
en... |
with Ada.Streams;
package Resource is
type Content_Access is access constant Ada.Streams.Stream_Element_Array;
end Resource;
|
package body Problem_7 is
function Solution_1( Num : Integer ) return Int64 is
Primes : P.Vector;
Prime_Count : Int64 := 1;
Inc : Int64 := 3;
Divisible : Boolean;
begin
if Num < 2 then
return 0;
end if;
Primes.append(2);
while Prime_... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- basic_operations.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure basic_operations is
TestInteger : Integer := 7;
TestNatural : Natural := 0;
TestPositive : Positive := 1;
begin
-- do some basic operations on the Integer
TestInteger := TestInteger - 14;
Put_Line("This is the integer: " & Integer'Image(TestIn... |
package Parser is
procedure build_eof_action;
procedure yyerror(msg: string);
procedure YYParse;
def_rule:integer;
end Parser;
|
-- { dg-do compile }
-- { dg-options "-O -fstack-usage" }
with Ada.Text_IO; use Ada.Text_IO;
with Stack_Usage3_Pkg; use Stack_Usage3_Pkg;
procedure Stack_Usage3 is
begin
Put_Line (Diag ("Diag line 1"));
Put_Line (Diag ("Diag line 2"));
Put_Line (Diag ("Diag line 3"));
Put_Line (Diag ("Diag line 4"));
P... |
with Common_Formal_Containers; use Common_Formal_Containers;
package uxas.messages.Lmcptask.TaskAutomationRequest.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
function Get_EntityList_From_OriginalRequest
(Request : TaskAutomationRequest) return Int64_Vect
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Clauses;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.With_Clauses is
pragma Pure (... |
with Ada.Streams.Stream_IO.Sockets;
with Ada.Text_IO;
procedure socket_client is
begin
declare
End_Point : constant Ada.Streams.Stream_IO.Sockets.End_Point :=
Ada.Streams.Stream_IO.Sockets.Resolve ("google.com", 80);
File : Ada.Streams.Stream_IO.File_Type :=
Ada.Streams.Stream_IO.Sockets.Connect (End_Point);... |
private with sf.Graphics;
private with sf.Graphics.Image;
private with Sf;
private with HAL;
package PyGamer is
pragma Elaborate_Body;
private
Screen_Width : constant := 160;
Screen_Height : constant := 128;
Frame_Buffer : array (0 .. (Screen_Width * Screen_Height * 4) - 1) of
aliased Sf.sfUInt8
... |
with
Interfaces.C,
System;
package GLX
is
use Interfaces;
---------
-- Types
--
-- XEventQueueOwner
--
type XEventQueueOwner is (nil);
for XEventQueueOwner use (nil => 0);
pragma Convention (C, XEventQueueOwner);
type XEventQueueOwner_Pointer is access all XEventQueueOwn... |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with AUnit.Assertions; use AUnit.Assertions;
with Yaml.Source.File;
with Utils;
package body Yaml.Lexer.Buffering_Test is
procedure Register_Tests (T : in out TC) is
use AUnit.Test_Cases.R... |
with Pack8_Pkg;
package Pack8 is
subtype Index_Type is Integer range 1 .. Pack8_Pkg.N;
subtype Str is String( Index_Type);
subtype Str2 is String (1 .. 11);
type Rec is record
S1 : Str;
S2 : Str;
B : Boolean;
S3 : Str2;
end record;
pragma Pack (Rec);
end Pack8;
|
pragma License (Unrestricted);
-- implementation unit
with Ada.Naked_Text_IO;
package Ada.Text_IO.Naked is
function Non_Controlled (File : File_Type)
return not null access Naked_Text_IO.Non_Controlled_File_Type;
pragma Inline (Non_Controlled); -- renamed
private
function Non_Controlled (File : File_... |
with System;
with HAL;
with HAL.SPI;
package BB_Pico_Bsp.SPI is
function Port return not null HAL.SPI.Any_SPI_Port;
procedure Go_Slow;
-- Set a slow baud rate for the STMPE811 touch controller
procedure Go_Fast;
-- Set a fast baud rate for the LCD pixel transfer
procedure DMA_Transmit (Addr : S... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Giza.Widget;
use Giza;
package body Test_Gnumber_Window is
-------------
-- On_Init --
-------------
overriding procedure On_Init
(This : in out Gnumber_Window)
is
begin
On_Init (Test_Window (This));
This.Nbr_1 := new Number_Selection.Instance;
This.Nbr_1.Set_Label ("In... |
-- Generated by a script from an "avr tools device file" (atdf)
package SAM.Main_Clock is
-- HPB0 --
procedure HPB0_On with Inline;
procedure HPB0_Off with Inline;
-- HPB1 --
procedure HPB1_On with Inline;
procedure HPB1_Off with Inline;
-- HPB2 --
procedure HPB2_On with Inline;
procedure... |
-- reference:
-- http://thomas.baudel.name/Visualisation/VisuTri/inplacestablesort.html
package body Ada.Containers.Array_Sorting is
use type System.Long_Long_Integer_Types.Word_Integer;
subtype Word_Integer is System.Long_Long_Integer_Types.Word_Integer;
subtype Word_Natural is System.Long_Long_Integer_Typ... |
with System.Native_Execution_Time;
package body Ada.Execution_Time is
function Clock return CPU_Time is
begin
return To_Time_Span (System.Native_Execution_Time.Clock);
end Clock;
end Ada.Execution_Time;
|
with Ada.Streams;
with Ada.Tags;
package Graphic is
use Ada;
--
type Object is abstract tagged null record;
function XML_Input (S : access Streams.Root_Stream_Type'Class)
return Object'Class;
end Graphic;
|
-----------------------------------------------------------------------
-- nodes-core -- Core nodes
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
package Moving_Thing is
type Position is private;
type Speed is private;
type Thing is private;
type Direction is (North, South,
East, West,
Up, Down);
procedure Faster (T : in out Thing;
D : in Direction;
M : in Float);
procedure Stop (T : in out ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.