content stringlengths 23 1.05M |
|---|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Ada_Code;
procedure Ada_Main is
package ATI renames Ada.Text_Io;
begin
ATI.Put_Line ("Ada_Main: Calling Ada_Proc");
Ada_Code.Ada_Proc;
ATI.Put_Line ("Ada_Main: Returned from Ada_Proc");
end Ada_Main;
|
with Ada.Real_Time; use Ada.Real_Time;
package body TT_Patterns is
--------------------
-- Simple_TT_Task --
--------------------
task body Simple_TT_Task is
begin
Task_State.Work_Id := Work_Id;
if Synced_Init then
TTS.Wait_For_Activation (Work_Id, Task_State.Release... |
protected body Event is
procedure Signal is
begin
Fired := True;
end Signal;
procedure Reset is
begin
Fired := False;
end Reset;
entry Wait when Fired is
begin
null;
end Wait;
end Event;
|
-- for the Real type
with Support; use Support;
-- for text io
with Ada.Text_IO; use Ada.Text_IO;
with Support.Strings; use Support.Strings;
-- for data io
with BSSNBase.Data_IO;
-- for parsing of the command line arguments
with Support.RegEx; use Support.RegEx;
with Support... |
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with Ada.Exceptions;
with System.Synchronous_Control;
package System.Soft_Links is
pragma Preelaborate;
function Do_Get_Current_Excep
return Ada.Exceptions.Exception_Occurrence_Access;
type Get_Current_Excep_Handler is
ac... |
------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2001-2016, AdaCore --
-- ... |
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Numerics;
package Units with
Spark_Mode is
---------------------
-- The unit system
---------------------
type Unit_Type is new Float with -- As tagged Type? -> Generics with Unit_Type'Class
Dimension_System =>
((Unit_Name => Meter, U... |
package body Opt64_PKG is
procedure Encode (X : Integer) is
result : Hash;
begin
case X is
when 1 => result := "1";
when 2 => result := "2";
when 3 => result := "3";
when others => Result := "?";
end case;
Last_Hash := Result;
end;
end;
|
-----------------------------------------------------------------------
-- util-concurrent-pools -- Concurrent Pools
-- Copyright (C) 2011, 2015, 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 t... |
-- Copyright 2016-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (a... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ runtime field restriction handling --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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... |
-- This spec has been automatically generated from STM32F429x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_PLS_Field is HAL.U... |
-----------------------------------------------------------------------
-- security-auth-oauth-github -- Github OAuth based authentication
-- Copyright (C) 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
with
--NSO.Helpers,
NSO.Types,
Interfaces,
Ada.Strings.Unbounded,
Ada.Characters.Latin_1,
Ada.Tags.Generic_Dispatching_Constructor,
Ada.Characters.Conversions;
with Ada.Containers;
-- NSO.Types;
Package Body NSO.JSON is
use Ada.Characters.Conversions, Ada.Characters;
Procedure Apply( Object : in Instance'Cla... |
with Ada.Strings.Unbounded;
with Gnat.Regpat;
with Protypo.Api.Engine_Values.Handlers;
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
use Protypo.Api.Engine_Values;
package Protypo.Match_Data_Wrappers is
type Match_Data_Wrapper (<>) is
new Handlers.Ambivalent_Interface
with
private;
type M... |
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Long_Float_Text_IO;
use Ada.Long_Float_Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure B is
function Solve(C, F, X : in Long_Float) return Long_Float is
acc : Long_Float := 0.0;
n : Natural := 0;
r : Long_Float := 2.0;
t1, t2 : Long_Fl... |
package private_extension_declaration is
type Expression is tagged null record;
type PrivateType is new Expression with private;
private
type PrivateType is new Expression with
record
The_Variable : Integer;
end record;
end private_extension_declaration;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Intcode;
package AOC.AOC_2019.Day05 is
type Day_05 is new Day.Day with private;
overriding procedure Init (D : in out Day_05; Root : String);
overriding function Part_1 (D : Day_05) return String;
overriding function Part_2 (D : Day_05) return String;
private
type Day_05 is new Day.Day with record... |
-- { dg-do compile }
with Ada.Unchecked_Conversion;
package body SSO2 is
function Conv is new Ada.Unchecked_Conversion (Arr1, Arr2);
procedure Proc (A1 : Arr1; A2 : out Arr2) is
begin
A2 := Conv (A1);
end;
end SSO2;
|
------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . D S O --
-- B o d y --
-- ... |
package body Input_Backend is
type Key_Array is array (Positive range <>) of Softkey;
procedure Chord (Keys : Key_Array) is
begin
for Key of Keys loop
Qweyboard.Softboard.Handle ((Key, Qweyboard.Key_Press));
end loop;
for Key of reverse Keys loop
Qweyboard.Softboard.Handle ... |
-- [ dg-do compile }
package body Pack13 is
procedure Set (Myself : Object_Ptr; The_Data : Thirty_Two_Bits.Object) is
begin
Myself.Something.Data_1 := The_Data;
end;
end Pack13;
|
-----------------------------------------------------------------------
-- util-serialize-tools -- Tools to Serialize objects in various formats
-- Copyright (C) 2012, 2016, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Lice... |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure aaa_10stringsarray is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Tex... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- AoC 2020, Day 6
with Ada.Text_IO;
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Ordered_Sets;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
package body Day is
package TIO renames Ada.Text_IO;
package Char_Sets is new Ada.Containers.Ordered_Sets
(Element_Type => Character);
use Char_Sets... |
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistr... |
with IRC;
package Plugin.Base
is
procedure Say (Message : IRC.Message);
procedure Join (Message : IRC.Message);
procedure Leave (Message : IRC.Message);
procedure Nick (Message : IRC.Message);
end Plugin.Base;
|
-----------------------------------------------------------------------
-- Hyperion.Monitoring.Models -- Hyperion.Monitoring.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator... |
-- CC3019B1.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.
-- Unlimi... |
declare
X : String := "Hello"; -- Create and initialize a local variable
Y : Integer; -- Create an uninitialized variable
Z : Integer renames Y: -- Rename Y (creates a view)
begin
Y := 1; -- Assign variable
end; -- End of the scope
|
-----------------------------------------------------------------------
-- wiki-filters-autolink -- Autolink filter to identify links in wiki
-- Copyright (C) 2016 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ... |
with Ada.Text_IO;
package body myeventhandler is
procedure Ping (Event : EV.Event_Access) is begin
Ada.Text_IO.Put_Line ("Ping");
end;
procedure Some_Event (Event : EV.Event_Access) is
My_String : constant String := EV.Get_String (Event, 1); -- by index
My_Float : constant Float := EV... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
-- GCC 6.0 only
-- pragma Suppress (Tampering_Check);
with Definitions; use Definitions;
with HelperText;
with Ada.Text_IO;
private with Ada.Containers.Hashed_Maps;
private with Ada.Containers.Ordered_Sets;
pri... |
-----------------------------------------------------------------------
-- awa-commands-start -- Command to start the web server
-- Copyright (C) 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 t... |
with Greetings;
procedure Gmain is
begin
Greetings.Hello;
Greetings.Goodbye;
end Gmain;
|
-- RUN: %llvmgcc -S %s
with System.Machine_Code;
procedure Asm is
begin
System.Machine_Code.Asm ("");
end;
|
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from M2Sxxx.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- No description provided for this peripheral
package Interfaces.SF2.System_Registers is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
----... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- CD2B11A.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... |
pragma Ada_2012;
with Ada.Streams; use Ada.Streams;
with Base64_Generic;
with Base64.Routines.Streams; use Base64.Routines.Streams;
package Base64.URLSafe is new Base64_Generic
(Element => Stream_Element, Index => Stream_Element_Offset,
Element_Array => Stream_Element_Array,
Character_To_Value => URLS... |
generic
package any_Math.any_Algebra.any_linear.any_d2
is
pragma Pure;
-----------
-- Vector_2
--
function Interpolated (From, To : in Vector_2; Percent : in Percentage) return Vector_2;
function Distance (From, To : in Vector_2) return Real;
function Midpoint ... |
with ACO.OD_Types.Entries;
with Ada.Tags;
with Interfaces;
package body ACO.OD is
use ACO.OD_Types.Entries;
use Interfaces;
function Object
(This : Object_Dictionary'Class;
Index : Object_Index)
return Object_Ref
is
(This.Objects (This.Index_Map (Index)));
function Object_E... |
for Step in Loop_Steps loop
put(Step, 0);
put(", ");
end loop;
put("who do we appreciate?");
|
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Ada.Strings.Unbounded;
with Regex.State_Machines; use Regex.State_Machines;
package body Regex.Matchers is
function Matches (Input :... |
with Ahven.Framework;
package math_Tests.Geometry_2d
is
type Test is new Ahven.Framework.Test_Case with null record;
overriding procedure Initialize (T : in out Test);
end math_Tests.Geometry_2d;
|
with Ada.Text_IO;
with Hailstones;
procedure Main is
package Integer_IO is new Ada.Text_IO.Integer_IO (Integer);
procedure Print_Sequence (X : Hailstones.Integer_Sequence) is
begin
for I in X'Range loop
Integer_IO.Put (Item => X (I), Width => 0);
if I < X'Last then
Ada.Tex... |
-- CD2A53A.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... |
procedure launch_mouse_Motion
--
-- Todo
--
is
begin
null;
end launch_mouse_Motion;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with
gel.Forge,
gel.Sprite,
Physics,
float_Math,
ada.Calendar,
ada.Text_IO,
ada.Exceptions;
package body gel_demo_Server
is
use ada.Calendar,
ada.Text_IO;
package Math renames float_Math;
task body Item
is
the_World : gel.World.server.view;
begin
... |
generic
type Element_Type is private;
package Asynchronous_Fifo is
protected type Fifo is
procedure Push(Item : Element_Type);
entry Pop(Item : out Element_Type);
private
Value : Element_Type;
Valid : Boolean := False;
end Fifo;
end Asynchronous_Fifo;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 - 2019 Joakim Strandberg <joakim@mequinox.se>
--
-- 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.ap... |
-- { dg-do compile }
-- { dg-options "-O2" }
with Unchecked_Conversion;
with System;
package body Warn6 is
function Conv is new Unchecked_Conversion (System.Address, Q_T);
procedure Dummy is begin null; end;
end Warn6;
|
-----------------------------------------------------------------------
-- openapi-streams -- Stream operations
-- Copyright (C) 2017, 2020, 2022 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Giza.Window;
with Giza.Widget.Button;
use Giza.Widget;
with Giza.Events; use Giza.Events;
with Giza.Types; use Giza.Types;
package Basic_Test_Window is
subtype Parent is Giza.Window.Instance;
type Test_Window is abstract new Parent with private;
type Test_Window_Ref is access all Test_Window;
overri... |
package REPRESENTATION_CLAUSE is
type BITS is record
Lower : INTEGER range 0..3;
-- Middle : INTEGER range 0..1;
-- High : INTEGER range 0..3;
end record;
for BITS use record
at mod 8;
Lower at 0 range 0..1;
-- Middle at 0 range 2..2;
-- High at 0 range 3..4;
en... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- are -- Advanced Resource Embedder
-- Copyright (C) 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 this file except in c... |
-- Copyright (c) 2013, 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:
--
-- * Redistributions of source code must retain the above copyright notice, this
-- lis... |
-- --
-- package Strings_Edit Copyright (c) Dmitry A. Kazakov --
-- Implementation Luebeck --
-- Strings_Edit.Text_Edit Spring, 2000 --
-- ... |
with
ada.unchecked_Deallocation;
package body gel.Mouse.local
is
package body Forge
is
function to_Mouse (of_Name : in String) return Item
is
begin
return Self : constant Item := (lace.Subject.local.Forge.to_Subject (of_Name)
with null rec... |
with SDL_video_h; use SDL_video_h;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions; use Interfaces.C.Extensions;
with SDL_stdinc_h; use SDL_stdinc_h;
with SDL_surface_h; use SDL_surface_h;
package Display.Basic.Utils is
function RGBA_To_Uint32(Screen : access SDL_Surface;
... |
--===========================================================================
--
-- This package is the implementation of the Transforme package
--
--===========================================================================
--
-- Copyright 2022 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
p... |
with
Shell.Commands,
Ada.Text_IO;
procedure Test_Pipeline_Error
is
use Ada.Text_IO;
begin
Put_Line ("Begin 'Pipeline_Error' test.");
New_Line (2);
Put_Line ("Test 1 =>");
declare
use Shell,
Shell.Commands,
Shell.Commands.Forge;
Commands : Command_Array := To_C... |
--------------------------------------------------------------------
--| Program/Package : SCREEN Version : 1.0 |
--------------------------------------------------------------------
--| Abstract : ANSI screen manipulation |
-----------------------... |
private with Ada.Containers.Indefinite_Vectors;
generic
type Item_Type (<>) is private;
package History_Variables is
type Variable is tagged limited private;
-- set and get current value
procedure Set(V: in out Variable; Item: Item_Type);
function Get(V: Variable) return Item_Type;
-- number of ite... |
-- CC3019C2M.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.
-- Unlim... |
-----------------------------------------------------------------------
-- gen-testsuite -- Testsuite for gen
-- Copyright (C) 2012, 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 file exce... |
-----------------------------------------------------------------------
-- util-streams-buffered-lzma -- LZMA streams
-- Copyright (C) 2018, 2019 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... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
--
-- This package provides Unit_Naming_Schema interface and its methods.
package Program.Unit_Naming is
pragma Preelaborate;
type Unit_Naming_Schem... |
-- { dg-do compile }
with Discr18_Pkg; use Discr18_Pkg;
procedure Discr18 is
String_10 : String (1..10) := "1234567890";
MD : Multiple_Discriminants (A => 10, B => 10) :=
Multiple_Discriminants'(A => 10,
B => 10,
S1 => String_10,
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with
ada.Containers;
package lace.Event
--
-- The base class for all derived event types.
--
is
pragma Pure;
subtype subject_Name is String;
subtype observer_Name is String;
type Item is tagged null record;
null_Event : constant Event.item;
procedure destruct (Self : in out Item) is null... |
-- 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;
-- Single-cycle IO block\n
-- Provide... |
with STM32GD.Clock;
with STM32GD.Clock.Tree;
generic
Input : Clock_Type;
with package Clock_Tree is new STM32GD.Clock.Tree (<>);
package STM32GD.Clock.Timer is
pragma Preelaborate;
procedure Init;
procedure Delay_us (us : Natural);
procedure Delay_ms (ms : Natural);
procedure Delay_s (s : Natu... |
with
lace.Event.Logger,
lace.Event.utility,
ada.unchecked_Conversion,
ada.unchecked_Deallocation;
package body lace.make_Observer
is
use type Event.Logger.view;
procedure destroy (Self : in out Item)
is
begin
Self.Responses.destroy;
end destroy;
------------
-- Resp... |
-- C2A001C.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
with Ada.Text_IO;
procedure Goto_Loop is
begin
<<Start>>
Ada.Text_IO.Put_Line ("Goto Loop!");
goto Start;
end Goto_Loop;
|
with
openGL.Errors,
openGL.Tasks,
GL.Binding;
package body openGL.Primitive.non_indexed
is
---------
-- Forge
--
overriding
procedure define (Self : in out Item; Kind : in facet_Kind)
is
begin
Self.facet_Kind := Kind;
end define;
function new_Primitive (Kind ... |
--
-- 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... |
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.TIM2 is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_CMS_Field is HAL... |
-----------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2015-2019 Marcel Schneider
-- for details see License.txt
with TokenValue; use TokenValue;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Lexer is
function ReadToken (O : Object) return TokenValue.Object is
TO : TokenValue.Object;
begin
TO.Message := To_Unbound... |
package Employee_Data is
type Employee_T is limited private;
type Hourly_Rate_T is new Integer; -- better implementation
type Id_T is new Integer; -- better implementation
function Create
(Name : String;
Rate : Hourly_Rate_T)
return Employee_T;
function Id
(Employee : Emp... |
with Ada.Containers.Indefinite_Doubly_Linked_Lists;
with Ada.Finalization;
package Protypo.Api.Engine_Values.List_Wrappers is
type List is tagged private;
procedure Append (Item : in out List;
Value : Engine_Value);
function Iterator (Item : List) return Handlers.Iterator_Interface_Acc... |
-- CD3015E.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) 2017, AdaCore
--
-- This spec has been automatically generated from ATSAM4SD32C.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.SAM.SYSC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
-... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
begin
for I in 1 .. 10 loop Put('A'); end loop; New_Line;
for I in 10 .. 1 loop Put('B'); end loop; New_Line;
for I in reverse 1 .. 10 loop Put('C'); end loop; New_Line;
for I in reverse 10 .. 1 loop Put('D'); end loop; New_Line;
end;
-- Local Variables... |
package STM32.F4.EXTI is
pragma Preelaborate;
type Event_Number is range 0 .. 22;
package Events is
PVD: constant Event_Number := 16;
RTC_Alarm: constant Event_Number := 17;
USB_OTG_FS_Wakeup: constant Event_Number := 18;
Ethernet_Wakeup: constant Event_Number := 19;
USB_OTG_HS_Wak... |
package impact.d2.orbs.Joint.gear
--
--
--
is
--
-- #ifndef B2_GEAR_JOINT_H
-- #define B2_GEAR_JOINT_H
--
-- #include <Box2D/Dynamics/Joints/b2Joint.h>
--
-- class b2RevoluteJoint;
-- class b2PrismaticJoint;
--
-- /// Gear joint definition. This definition requires two existing
-- /// revolute or prismatic join... |
type Octet is mod 2**8;
for Octet'Size use 8;
type Octet_String is array (Positive range <>) of Octet;
|
-- Motherlode
-- Copyright (c) 2020 Fabien Chouteau
with Render;
package HUD is
procedure Draw
(FB : in out Render.Frame_Buffer;
Money,
Fuel, Fuel_Max,
Cargo, Cargo_Max : Natural;
Depth, Cash_In : Integer);
end HUD;
|
-- Copyright 2016 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 law or agr... |
package body Padding with SPARK_Mode is
function Left_Pad (S : String; Pad_Char : Character; Len : Natural)
return String
-- (Len - S'Length) is the number of required padding chars. We create a
-- string of that length with only Pad_Chars, and then concatenate this
-- with S.
is (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.