content
stringlengths
23
1.05M
-- CC3127A.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...
generic type Data is private; type Priority is (<>); with function "<"( A, B: Priority ) return Boolean is <>; package PQueue_Type is type PQueue(Max : Integer) is private; -- first insert version: inserts so that it keeps ordered procedure Insert ( PQ : in out PQueue; P : in Priority; D : in Data ); ...
with Ada.Text_IO, Ada.Integer_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO; procedure Max_Int_Array is type Int_Array is array(Character range <>) of Integer; function Max(Items : in Int_Array) return Integer is Max_Value : Integer := Items(Items'First); begin for I in Items'Range loop if Items(I...
package Padding with SPARK_Mode is -- add [Pad_Char] characters to the left of the string [S] so that its -- length becomes [Len] if greater than [S'Length] function Left_Pad (S : String; Pad_Char : Character; Len : Natural) return String with Contract_Cases => -- if the stri...
with ada.Strings.unbounded, ada.Text_IO; package XML.Writer is use ada.Strings.unbounded; procedure Start_Document (F : in ada.Text_IO.File_Type); procedure End_Document (F : in ada.Text_IO.File_Type); procedure Start (F : in ada.Text_IO.File_Type; Name : in Strin...
-- 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.SDIF is pragma Preelaborate; ...
-- This spec has been automatically generated from STM32F303xE.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.ADC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype ISR_ADRDY_Field is STM32_SVD.B...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Discrete_Random; procedure Test_Loop_Nested is type Value_Type is range 1..20; package Random_Values is new Ada.Numerics.Discrete_Random (Value_Type); use Random_Values; Dice : Generator; A : array (1..10, 1..10) of Value_Type := (others =>...
with AFRL.impact.AngledAreaSearchTask; with AFRL.impact.ImpactLineSearchTask; with AFRL.impact.ImpactPointSearchTask; package AFRL.CMASI.lmcptask.SPARK_Boundary with SPARK_Mode is pragma Annotate (GNATprove, Terminating, SPARK_Boundary); -- This package introduces a private type hiding an access to a -- lmc...
pragma Ada_2012; package body Sensors.Images is ----------- -- Image -- ----------- function Image (Source : Bus_Id) return String is begin return "(Sensor_Type => " & Image (Source.Sensor_Type) & "," & " Nr => " & Image (Source.Nr) & ")"; end Image; ----------- -- Image...
----------------------------------------------------------------------- -- security-oauth-jwt -- OAuth Java Web Token -- Copyright (C) 2013, 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 f...
with interfaces.c.strings; package body agar.gui.view is package cs renames interfaces.c.strings; use type c.int; package cbinds is function resize_display (width : c.int; height : c.int) return c.int; pragma import (c, resize_display, "AG_ResizeDisplay"); function set_refresh_rate...
-- { dg-do run } -- { dg-options "-O" } procedure Array5 is type myint is range 0 .. 100_000; Bla : constant myint := 359; type my_array is array (1 .. 2) of myint; type item is record Length : Integer; Content : my_array; end record; procedure create_item (M : out item) is ...
with STM32.Device; use STM32.Device; with STM32.GPIO; use STM32.GPIO; package STM32.Board is pragma Elaborate_Body; subtype User_LED is GPIO_Point; Red_LED : User_LED renames PB2; LCH_LED : User_LED renames PB2; procedure Initialize_Board; procedure Initialize_LEDs; procedure Turn_On ...
with Ada.Finalization; with Ada.Text_Io; -- -- ## What is this? -- -- A _file writer_ implements the `Consumer_Interface` that just -- writes the received strings to an external file (that can also be -- standard output or standard error). -- -- A writer needs to be associated to an external file when it -- is created...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with sor; with Ada.Text_IO; use Ada.Text_IO; --use sor; -> you can't do this because it's a generic procedure demo is procedure alma(A : integer) is begin Put_Line(Integer'image(A)); end alma; procedure korte(A : Character) is begin Put_Line(Character'image(A)); end korte; function fele(...
with freetype_c.FT_BBox, freetype_c.FT_Face, freetype_c.FT_Bitmap, freetype_c.FT_Library, freetype_c.FT_Size_Metrics, freetype_c.FT_CharMapRec, freetype_c.FT_Size, freetype_c.FT_Vector, freetype_c.FT_GlyphSlot, freetype_c.FT_CharMap, freetype_c.Pointers, Inte...
package body Impact.d3 is -- C-ish types -- function to_C (From : in math.Vector_3) return c_Vector_3 is begin return (From (1), From (2), From (3)); end to_C; function to_Math (From : in c_Vector_3) return math.Vector_3 is begin return (From (0...
with SAM.Device; use SAM.Device; with SAM.Port; with SAM.SERCOM; with SAM.SERCOM.SPI; with SAM.Main_Clock; with SAM.Functions; with SAM.Clock_Generator; with SAM.Clock_Generator.IDs; with ST7735R; use ST7735R; with HAL; use HAL; with HAL.SPI; use HAL.SPI; with HAL.GPIO; with PyGamer.Time; with SAM.DMAC; use SAM...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
with Screen_interface; use Screen_Interface; package Drawing is procedure Line (Start, Stop : Point; Col : Color; Thickness : Natural := 1); procedure Rect (Start, Stop : Point; Col : Color; Thickness : Natural := 1); procedure Rect_Fill (S...
----------------------------------------------------------------------- -- mat-targets-gtkmat - Gtk target management -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ex...
----------------------------------------------------------------------- -- security-oauth-servers -- OAuth Server Authentication Support -- Copyright (C) 2016, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-- C54A42A.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...
----------------------------------------------------------------------- -- bkp-files -- File and directories -- Copyright (C) 2014 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...
pragma License (Unrestricted); package Ada.Wide_Characters is pragma Pure; end Ada.Wide_Characters;
with Ada.Text_IO; package body logger with Refined_State => (LogState => null) is procedure init(status : out Init_Error_Code) is null; procedure Start_SDLog is null; function Image (level : Log_Level) return String is begin case level is when SENSOR => return "S: "; when ERROR =...
-- AoC 2020, Day 19 with Ada.Text_IO; with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Containers.Vectors; use Ada.Containers; with Ada.Strings.Fixed; use Ada.Strings.Fixed; package body Day is package TIO renames Ada.Text_IO; type Rule_Type is (term, nonterm); package Rule_Vectors is new Ada.Containers.Ve...
with freetype_c.Pointers; package freetype_c.FT_Face is subtype Item is Pointers.FT_FaceRec_Pointer; type Item_array is array (C.Size_t range <>) of aliased FT_Face.Item; type Pointer is access all FT_Face.Item; type Pointer_array is array (C.Size_t range <>) of aliased FT_Face.Point...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Incr.Version_Trees; limited with Incr.Nodes.Tokens; package Incr.Documents is -- @summary -- Document representatio...
with any_Math.any_Algebra.any_linear.any_d3; package float_Math.Algebra.linear.d3 is new float_Math.Algebra.linear.any_d3; pragma Pure (float_Math.Algebra.linear.d3);
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package BIP_Prim_Func is pragma Elaborate_Body; type TT is abstract tagged limited record I : Integer; end record; function Prim_Func return TT is abstract; end BIP_Prim_Func;
-- PACKAGE e_Derivs -- -- Automatic differentiation routines for calculating arbitrary order -- derivatives of arithmetical expressions constructed out of operators -- "+", "-", "*", "/", "**", Compose, Sin, Cos, Exp, Log, Reciprocal, -- Sqrt, Arccos, Arsin, Arctan, or any user defined function. Also -- includes rou...
package GA_Base_Types is type E1_T is private; type E2_T is private; type E3_T is private; type NI_T is private; type NI_Const is private; type NO_T is private; type NO_Const is private; function "*" (I1, I2 : NI_T) return float; function "*" (I : NI_T; O : NO_T) return float; function ...
-------------------------------------------------- -- Example of a custom Agar widget class: -- -- -- -- AG_Object(3) -> AG_Widget(3) -> CustomWidget -- -------------------------------------------------- with Agar.Object; with Agar.Widget; use Agar.Widget; with Agar.Da...
with Ada.Calendar.Naked; with Ada.Exception_Identification.From_Here; with Ada.Unchecked_Conversion; with System.Address_To_Named_Access_Conversions; with System.Growth; with System.Native_Credentials; with System.Zero_Terminated_Strings; with C.errno; with C.sys.stat; with C.sys.types; with C.unistd; package body Ada....
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising fr...
package body Pack20 is procedure Proc (A : Rec) is Local : Rec := A; begin Modify (Local.Fixed); end; end Pack20;
with Protypo.Api.Engine_Values.Constant_Wrappers; with Protypo.Api.Engine_Values.Handlers; -- -- ## What is this? -- -- A _range iterator_ implements the `Iterator_Interface` and it -- allows to iterate over an interval between two integers -- package Protypo.Api.Engine_Values.Range_Iterators is type Range_Iterator...
-- ________ ___ ______ ______ ___ -- /___ .. ._/ |.| |.___.\ /. __ .\ __|.| ____ -- / .. / |.| |.____/ |.|__|.| / .. ..| __\ .. \ -- _/ .. /___ |.| |.| === | .. __ .. ||. = .| | = .. | -- /_______/ |_| /__| /__| |_| \__\_| \__\_| -- UnZip -------- ...
-- @summary -- Simulated annealing metaheuristic library. -- -- @description -- This package provides routines for the minimization of black-box -- functions using simulated annealing. package Simulated_Annealing is -- Annealing scheduler. type Scheduler is private; function Exponential (N : Positive; T0 : Fl...
-- { dg-do compile } -- { dg-options "-gnatws -fdump-tree-gimple" } procedure Alignment6 is type MY_REC is record A1 : INTEGER range -3 .. 3 ; -- symmetric A2 : BOOLEAN ; A3 : INTEGER range 0 .. 15 ; -- positive A4 : INTEGER range 10 .. 100 ; -- arbitrary A5 : BOOLEAN ; --5...
with Piles; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Characters.Latin_1; -- des constantes comme Apostrophe (Latin1 ?!?!) use Ada.Characters.Latin_1; -- Programme de test du module Pile. procedure Utiliser_Piles is -- Utiliser la pile pour en m...
------------------------------------------------------------------------------ -- Copyright (C) 2012-2020 by Heisenbug Ltd. -- -- 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 Hocevar. See the LICE...
-- Lumen.Events.Animate -- Event loop with frame-animation callback -- -- Chip Richards, NiEstu, Phoenix AZ, Spring 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby gr...
with Ada.Text_IO; use Ada.Text_IO; with def_monitor; use def_monitor; with Ada.Strings.Unbounded; procedure Blanca_neus is MAX_NANS : constant Integer := 7; mon : Monitor; -- ** Especificacio ** -- Blanca Neus task type Blanca is entry Start (Idx: in Integer); end Blanca; -- Nan task type Nan is entr...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Containers; with Lace.Generic_Engines; package Lace.Contexts is pragma Preelaborate; type Context; subtype Dummy_Variant is Ada.Contai...
-- { dg-do compile } package body Iface_Test is protected SQLite_Safe is function Prepare_Select (DB : DT_1; Iter : Standard.Iface_Test.Iface_2'Class) return Standard.Iface_Test.Iface_2'Class; end; overriding procedure Prepare_Select (DB : DT_1; Iter : in out Stand...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Interfaces.C; use Interfaces; package body unit is --type stack is array (0..9) of integer; function partitions (cards: out stack; subtotal: integer) return integer is m, total : integer; begin m := 0; -- Hit for i in integer range 0 .. 9 loop if (cards(i)>0) then ...
With NSO.Types; -- Section_Vector returns the names of the sections; empty-name excluded. Function INI.Section_Vector( Object : in Instance ) return NSO.Types.String_Vector.Vector;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Abstract : -- -- A generic sorted doubly linked list with definite elements. -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Softw...
-- Author: A. Ireland -- -- Address: School Mathematical & Computer Sciences -- Heriot-Watt University -- Edinburgh, EH14 4AS -- -- E-mail: a.ireland@hw.ac.uk -- -- Last modified: 13.9.2019 -- -- Filename: handler.ads -- -...
with Tkmrpc.Types; package Tkmrpc.Contexts.dh is type dh_State_Type is (clean, -- Initial clean state. invalid, -- Error state. stale, -- DH context is stale. created, -- Waiting for remote pubvalue. generated -- Diffie-Hellman shared secret...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; use Ada.Exceptions; with Ada.Streams; use Ada.Streams; with Ada.Streams.Stream_IO; with Ada.Unchecked_Deallocation; package body Benchmark.Trace is type Access_Type is (Read, Write, Modify, Idle); type Memory_Acc...
------------------------------------------------------------------------------ -- -- -- File: -- -- formatted_output.ads -- -- ...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with GLOBE_3D; with Graphics_Configuration; use Graphics_Configuration; with Graphics_Structures; use Graphics_Structures; with Models; use Models; with Rotations; use Rotations; pragma Elaborate_All (Rotations); with Vecto...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; private with Ada.Text_IO; private with HelperText; private with Utilities; package Replicant is scenario_unexpected : exception; -- This procedure needs to be run onc...
----------------------------------------------------------------------- -- Generic Quick_Sort procedure ----------------------------------------------------------------------- procedure Quick_Sort (A : in out Element_Array) is procedure Swap(Left, Right : Index) is Temp : Element := A (Left); begin ...
-------------------------------------------------------------------------------------- -- -- Copyright (c) 2016 Reinert Korsnes -- 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...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Stream_Element_Vectors; with Slim.Messages; package Slim.Message_Decoders is type Decoder is tagged limited private;...
type Kernel_3x3 is array (-1..1, -1..1) of Float_Luminance; procedure Filter (Picture : in out Image; K : Kernel_3x3) is function Get (I, J : Integer) return Float_Pixel is pragma Inline (Get); begin if I in Picture'Range (1) and then J in Picture'Range (2) then declare Color : P...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: CPU -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: Control CPU -- -- ToDo: -- [ ] Implementation package CPU with SPARK_Mode is -- configures hard...
with STM32GD.Board; use STM32GD.Board; procedure Main is Now : RTC.Date_Time_Type; Wait_Time : RTC.Second_Delta_Type := 5; begin Init; Text_IO.Put_Line ("RTC Test Starting"); loop RTC.Read (Now); LED.Set; Text_IO.Put ("Seconds: "); Text_IO.Put_Integer (RTC.To_Seconds (Now)); ...
package N1 is C1 : constant := 1; package N2 is type N2_Type is new Integer; PC : constant := 2; private Cnt : Integer; end N2; C2 : N2.N2_Type; private package N3 is PC : constant := 3; private Cnt : Integer; end N3; end N1;
pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.RNG is pragma Preelaborate; --------------- -- Registers -- --------------- -- control register type CR_Register is null record; -- TODO: Implement the CR_Register ...
with Ada.Strings; with Ada.Strings.Fixed; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A004 is use Ada.Strings; use Ada.Strings.Fixed; use Ada.Integer_Text_IO; ---------------------------------------------------------------------------- procedure StrRev (Inp_Str :...
pragma License (Unrestricted); -- implementation unit package System.UTF_Conversions is pragma Pure; -- UCS-4 defined 31 bit. type UCS_4 is mod 16#80000000#; UTF_8_Max_Length : constant := 6; type From_Status_Type is (Success, Illegal_Sequence, Non_Shortest, Truncated); pragma Discard_Names...
--***************************************************************************** --* --* PROJECT: BingAda --* --* FILE: q_csv-q_read_file.ads --* --* AUTHOR: Javier Fuica Fernandez --* --***************************************************************************** with ADA.CONTAINER...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with GAWS_IO; package body GAWS_Log is ...
package body GNAT.Case_Util is procedure To_Lower (A : in out String) is begin for I in A'Range loop A (I) := To_Lower (A (I)); end loop; -- Constraint_Error will be propagated if "A" has any multi-byte -- character. end To_Lower; end GNAT.Case_Util;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Assertions; procedure Adventofcode.Day_1.Main is use Ada.Assertions; function Read (Path : String) return Expenses is Inf : File_Type; Buffer : Expenses (1 .. 1024); -- 1024 lines in the book; Cursor : Natural := Buffer'First; begin Open (Inf,...
with GESTE; with GESTE.Text; with Ada.Text_IO; use Ada.Text_IO; with Console_Char_Screen; with GESTE_Fonts.FreeMonoBold8pt7b; procedure Collision_Text is package Font_A renames GESTE_Fonts.FreeMonoBold8pt7b; package Console_Screen is new Console_Char_Screen (Width => 10, Height => 16, ...
package Licensing_Raw with Preelaborate is type Licenses is ( AFL_3_0, AGPL_3_0, Apache_2_0, Artistic_2_0, BSD_2_Clause, BSD_3_Clause_Clear, BSD_3_Clause, BSL_1_0, CC0_1_0, CC_BY_4_0, CC_BY_SA_4_0, ECL_2_0, EPL_1_0, EPL_2_0, E...
with SYSTEM; WITH array2; use array2; package array1 is procedure Foo (R : RIC_TYPE); procedure Start_Timer (Q : SYSTEM.ADDRESS); end array1;
----------------------------------------------------------------------- -- asf-converters-sizes -- Size converter -- Copyright (C) 2012 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 ...
----------------------------------------------------------------------- -- util-systems-os-tests -- Unit tests for OS specific operations -- Copyright (C) 2014, 2015, 2016, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licen...
with Ada.Environment_Variables; use Ada.Environment_Variables; with Ada.Text_IO; use Ada.Text_IO; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with System; use System; with Ada.Unchecked_Conversion; procedure Shared_Library_Cal...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Mat; -- use Mat; procedure Max2 is A, B : Positive; begin Get( A ); Get( B ); Put( Mat.Max2(A,B) ); end Max2;
-- 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...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+flacada@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 ...
with Configuration; with Ada.Real_Time; private with Unicode_Strings; private with Qweyboard.Languages; private with Logging; private with Output_Backend; package Qweyboard.Emulation is package RT renames Ada.Real_Time; use type RT.Time, RT.Time_Span; task type Timer_Task; protected Softboard is pr...
with Ada.Exceptions; use Ada.Exceptions; with Ada.Text_IO; use Ada.Text_IO; with Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory; with Rejuvenation.Utils; use Rejuvenation.Utils; with Rewriters_Context_Utils; use Rewriters_Context_Utils; package body Rewriters_Seq...
with ada.Strings.Maps; private package lace.Strings.search -- -- Based on the 'ada.Strings.search' package provided by FSF GCC. -- -- Modified to be a Pure package. -- is pragma Preelaborate; pragma Pure; use Ada.Strings; function Index (Source : String; Pattern : String; Going ...
-- 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.MPU is pragma Preelaborate; --------------- -- Registers -- --------------- subtype MPU_TYPE_DREGION_Field is HAL....
with Ada.Text_IO; use Ada.Text_IO; procedure main is function GCD(a : Integer; b : Integer) return Integer is a1 : Integer := Integer'max(a,b); b1 : Integer := Integer'min(a,b); begin if b = 0 then return a; else return GCD(b, a mod b); end if; end GCD; begin Put_Line(Integer'Image(GCD(9, 27))); Pu...
-- SPDX-FileCopyrightText: 2022 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Regions.Contexts.Environments; package Regions.Environments renames Regions.Contexts.Environments;