content
stringlengths
23
1.05M
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . T Y P E S -- -- S p e c -- ----...
-- 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; -- Control and data interface to SAR ADC packa...
with Ada.Numerics.Generic_Elementary_Functions, Ada.Numerics.Float_Random; with Ada.Numerics, Ada.Containers.Vectors, Ada.Text_IO; package Numerics is π : constant := Ada.Numerics.π; -------- Define types (Real, Int, Pos, Nat) ---------------------- type Real is new Long_Long_Float range Long_Long_F...
with Ada.Exception_Identification.From_Here; with Ada.Exceptions.Finally; with Ada.Hierarchical_File_Names; with System.Address_To_Named_Access_Conversions; with System.Native_Directories.Copying; with System.Native_Time; with System.Zero_Terminated_Strings; with C.errno; with C.stdio; -- rename(2) with C.stdlib; with ...
with Ada.Text_IO; use Ada.Text_IO; package body Rac is procedure egyszerusit (A: Raci) is begin null; end egyszerusit; function "/" (A: Integer; B: Positive) return Raci is C: Raci; begin C.szamlalo := A; C.nevezo := B; return C; end "/"; function "+" (A: Raci; B:...
-- -- ABench2020 Benchmark Suite -- -- Bitwise Shift Program -- -- Licensed under the MIT License. See LICENSE file in the ABench root -- directory for license information. -- -- Uncomment the line below to print the result. -- with Ada.Text_IO; use Ada.Text_IO; with Interfaces; use Interfaces; procedure Bitwise_...
-- 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...
-------------------------------------------------------------------------------- -- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@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 Ho...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with TEXT_IO; with DIRECT_IO; package INFLECTIONS_PACKAGE is package INTEGER_IO is new TEXT_IO.INTEGER_IO(INTEGER); use TEXT_IO; -- Generally simple/enumeration types have names ending in _TYPE -- complex/record types have names ending in _RECORD -- array type...
-- requires the gtkada library: -- https://github.com/AdaCore/gtkada -- run with: -- gprbuild -P helloworld.gpr && ./bin/main with Gdk.Event; use Gdk.Event; with Gtk.Button; use Gtk.Button; with Gtk.Main; with Gtk.Widget; use Gtk.Widget; with Gtk.Window; use Gtk.Window; with button_click; use butt...
procedure Case_Statement is begin case True is when True => null; when False => null; when others => null; end case; end Case_Statement;
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with ESP32.GPIO; package body Ints is protected body Signal is ------------- -- Handler -- ------------- procedure Handler is ...
With Ada.Text_IO; Use Ada.Text_IO; Procedure ContaN is numeros : array(1..15) of Integer; search : Integer; encontrados : Integer := 0; -- Leitura String function Get_String return String is Line : String (1 .. 1_000); Last : Natural; begin Get_Line (Line, Last); return Line (1 .. Last); end G...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 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...
-- 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...
with HCSR04; with Ada.Real_Time; use Ada.Real_Time; package body Distance_Sensor_Controller is ------------- -- Measure -- ------------- task body Measure is Temp : Float; TimeNow : Ada.Real_Time.Time; begin loop TimeNow := Ada.Real_Time.Clock; Temp := HCSR04.Distan...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt -- with Ada.Interrupts.Names; package Signals is -- package BRK renames Ada.Interrupts; -- Returns True if Interrupt signal (control-C) has been detected function graceful_shutdown_requested return Boo...
-- -- 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...
with Ada.Text_IO; with Ada.Integer_Text_IO; package Code_Count is type CodeMate is private; type TotalCodeMate is private; -- Code_Count/Skip_Space -- FUNCTION -- 跳过空格 -- PARAMETERS -- Line - 字符串 -- Offset - 偏移量 procedure Skip_Space (Line : String; ...
-- This spec has been automatically generated from out.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- Port 1/2 package MSP430_SVD.PORT_1_2 is pragma Preelaborate; --------------- -- Registers -- --------------- -- P1IN_P array type P1...
package openGL.Model.arrow -- -- Models an arrow. -- is type Item is abstract new openGL.Model.item with private; private type Item is abstract new openGL.Model.item with null record; end openGL.Model.arrow;
with Ada.Text_IO; with kv.avm.vole_tree; use kv.avm.vole_tree; with kv.avm.Tree_Visitors; use kv.avm.Tree_Visitors; with kv.avm.Code_Buffers; package kv.avm.Code_Generator is Non_Boolean_Condition_Error : exception; type Code_Generator_Class is limited new Visitor_Class with record Buffer : k...
package body Renaming8_Pkg3 is function Last_Index return Integer is begin return 16; end; end Renaming8_Pkg3;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Fixed; package body Console is use Ada.Strings.Fixed; -- Local procedure to put control caracters on screen procedure Put_Control(S : in String) is begin Put(Character'Val(16#1B#) & "[" & S & "m"); end Put_Control; procedure Set_For...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 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...
with Interfaces ; package body Measure_Time is use Interfaces ; function rdtsc return Unsigned_32; pragma Import (C, rdtsc, "rdtsc"); function Time ( D : Data; Iterations : in Natural) return Natural is Start, Finish : Unsigned_32; Time_Taken : Unsigned_32; begin Start ...
----------------------------------------------------------------------- -- gen-model-beans -- Ada Bean declarations -- Copyright (C) 2012, 2013, 2018, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Symbolic_Expressions; package EU_Projects.Times.Time_Expressions is type Symbolic_Duration is private; type Symbolic_Instant is private; type Symbolic_Instant_Array is array (Positive range <>) of Symbolic_Instant; function Min (L, R : Symbolic_Instant) return Symbolic_Instant; function Max (L, R...
function multporsumas (numero, multiplicador: in Integer) return Integer is resultado: Integer; begin resultado:=0; for I in 1..multiplicador loop resultado:=resultado+numero; end loop; return resultado; end multporsumas;
-------------------------------------------------------- -- E n c o d i n g s -- -- -- -- Tools for convertion strings between Unicode and -- -- national/vendor character sets. -- -- - - - - - - - - -...
----------------------------------------------------------------------- -- security-random -- Random numbers for nonce, secret keys, token generation -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
-- -- 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 Ada.Text_IO; with Sessions; package...
------------------------------------------------------------------------------- -- 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...
-- { dg-options "-gnatws" } package body test_prio_p is protected body Protected_Queue_T is entry Seize when True is begin null; end; end Protected_Queue_T; end test_prio_p;
-- This spec has been automatically generated from STM32F429x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.DMA2D is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- CR_Register -- ------------...
----------------------------------------------------------------------- -- security-policies-roles -- Role based policies -- Copyright (C) 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
generic type Color (<>) is private; Screen_Width : Positive; Screen_Height : Positive; with function Color_Map (X, Y : Integer) return Color; with function Height_Map (X, Y : Integer) return Integer; with procedure Draw_Vertical_Line (X, Start_Y, Stop_Y : Integer; C : Color); package Ada_Voxel is ...
with Ada.Text_IO; use Ada.Text_IO; procedure Loopinv is A : array (1 .. 20) of Integer; package IO is new Integer_IO (Integer); begin -- let's fill the array with data for I in A'Range loop A (I) := (if I mod 2 = 0 then I-1 else I); IO.Put (A (I)); end loop; New_Line (2); for I...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
----------------------------------------------------------------------- -- awa-index_arrays -- Static index arrays -- Copyright (C) 2015 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 excep...
package Taft_Type1_Pkg2 is type Priv (X : Integer) is private; private type Priv (X : Integer) is null record; end Taft_Type1_Pkg2;
with Ada.Characters.Conversions; use Ada.Characters.Conversions; with Ada.Containers.Ordered_Maps; package body Scape is package Ordered_Map is new Ada.Containers.Ordered_Maps (Key_Type => Unbounded_String, Element_Type => Wide_Wide_Character, "<" => "<", "=" => "="); ...
with Ada.Text_IO; with GNAT.SHA1; procedure Main is begin Ada.Text_IO.Put_Line ("SHA1 (""Rosetta Code"") = " & GNAT.SHA1.Digest ("Rosetta Code")); end Main;
with Ada.Containers; use Ada.Containers; with AUnit.Assertions; use AUnit.Assertions; with Langkit_Support.Text; use Langkit_Support.Text; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Missing.AUnit.Assertions; ...
-- E52103Y.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...
package tracker is type Item_Status is (UNSTARTED, PAUSE, PROGRESS, DONE, CANCELED); type Item is record name : String (1 .. 42); name_length : Natural; state : Item_Status; end record; type Fixed_Collection is array (1 .. 50) of Item; type Items_Count_By_State is array (Item_Statu...
with Ada.Text_IO; package body Fmt.Generic_Float_Argument is package FIO is new Ada.Text_IO.Float_IO(Float_Type); -- IEEE754 浮点格式 -- 浮点由三部分构成(符号位, 指数, 小数部分) -- 指数的二进制位数称为k -- 小数的二进制位数称为M -- -- -- 单精度(32位) -- bit 31 : 符号位 (Sign) -- bit 30 - bit 23 : 指数部分(Exponent), 长度为8, 记为k -- bit 22 ...
package HW.GFX.GMA.GFX_Test is procedure Main; end HW.GFX.GMA.GFX_Test;
with Ada.Integer_Text_IO; with Primes; procedure Euler7 is Ps: constant Primes.List := Primes.First(10_001); begin Ada.Integer_Text_IO.Put(Ps(Ps'Last)); end Euler7;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Symbol_Tables.Generic_Symbol_Table; with Ada.Text_IO; use Ada.Text_IO; procedure Symbol_Tables.Test is package St is new Generic_Symbol_Table (Symbol_Name => ID_Type, Symbol_Value => Integer, Hash => Hash_Id, ...
-- ----------------------------------------------------------------- -- -- AdaSDL_Framebuffer -- -- Copyright (C) 2001 A.M.F.Vargas -- -- Antonio M. F. Vargas -- -- Ponta Delgada...
pragma License (Unrestricted); with Ada.Text_IO; package Ada.Float_Text_IO is new Text_IO.Float_IO (Float);
-- { dg-do compile } -- { dg-options "-O3" } -- PR tree-optimization/71083 package body Loop_Optimization23_Pkg is procedure Foo (X : in out ArrayOfStructB) is begin for K in 0..99 loop X (K+1).b.b := X (K).b.b; end loop; end Foo; end Loop_Optimization23_Pkg;
----------------------------------------------------------------------- -- streams.buffered.tests -- Unit tests for buffered streams -- Copyright (C) 2010, 2011, 2017, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Characters.Handling; with GNAT.OS_Lib; with GNATCOLL.VFS_Utils; with Libadalang.Project_Provider; package body Extraction.Utilities is package LALPP renames Libadalang.Project_Provider; use type GPR.Project_Type; use type GPR.Unit_Parts; use type LALCO.Ada_Node_Kind_Type; use type VFS.Filesys...
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- Martin Becker (becker@rcs.ei.tum.de) with Units; -- @summary Driver for the Barometer MS5611-01BA03 package MS5611.Driver wi...
type Bit is mod 2; type Rs_232_Layout is record Carrier_Detect : Bit; Received_Data : Bit; Transmitted_Data : Bit; Data_Terminal_ready : Bit; Signal_Ground : Bit; Data_Set_Ready : Bit; Request_To_Send : Bit; Clear_To_Send : Bit; Ring_Indicator : Bit; en...
with Ada.Real_Time; use Ada.Real_Time; with Ada.Text_IO; use Ada.Text_IO; with System; use System; with Epoch_Support; use Epoch_Support; with XAda.Dispatching.TTS; with TT_Utilities; with TT_Patterns; package body TTS_Example_B is Number_Of_Work_Ids : constant := 7; Number_Of_Sync_Ids : constant := 6; p...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; package stdint_h is -- unsupported macro: INT8_MIN (-128) -- unsupported macro: INT16_MIN (-32767-1) -- unsupported macro: INT32_MIN (-2147483647-1) -- unsupported macro: INT64_MIN (-__INT64...
package Lab10_03 is type T_Vector is array (Integer range <>) of Natural; type T_Lista_Estatica is record Elem : T_Vector (1 .. 10); Cont : Natural; end record; procedure Escribir_Lista (L : in T_Lista_Estatica); --Pre: --Post: se han escrito en pantalla los valor...
with Ada.Text_IO; use Ada.Text_IO; procedure Pre_Post is package P is type Int_Array is array (Integer range <>) of Integer; -- Increment the input (obvious) procedure Increment (A : in out Integer) with Post => A = A'Old + 1; -- A "limited" negate (nonsense...) proc...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Calendar; use Ada.Calendar; with Ada.Command_Line; use Ada.Command_line; procedure Pi is n, i : Long_Integer; sum, x, slice, mp, rt : Long_Float; start, stop : Time; begin n:=1000000000; -- Parsing arguments is relatively painless. if Argument_Count > 0 then ...
with Interfaces; package body Fmt.Generic_Decimal_Fixed_Point_Argument is subtype uint64_t is Interfaces.Unsigned_64; Scale : constant Long_Long_Integer := 10 ** Fixed_Point_Type'Scale; To_Char : constant array(uint64_t range 0..9) of Character := "0123456789"; function To_Long_Long_Integer (X : Fixed_P...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Markdown.Visitors; with Markdown.List_Items; package body Markdown.Lists is overriding procedure Append_Child (Self : in out List; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
package Date_Package is YEAR_ERROR: exception; MONTH_ERROR: exception; DAY_ERROR: exception; FORMAT_ERROR: exception; type Date_Type is private; procedure Get(Date: out Date_Type); procedure Put(Date: in Date_Type); procedure Test_Leap_Years; function "="(Date1, Date2: in Date_Type) return Boolean; function "...
package Named is XYZ : constant := 2#0100_0000_0000#; end Named;
pragma Style_Checks ("NM32766"); pragma Wide_Character_Encoding (Brackets); --------------------------------------------------- -- This file has been generated automatically from -- cbsg.idl -- by IAC (IDL to Ada Compiler) 20.0w (rev. 90136cd4). --------------------------------------------------- -- NOTE: If you m...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
-- Type for objects which _may_ have a value. -- -- License: ISC generic type Element is private; package JSA.Generic_Optional_Value is type Instance (Set : Boolean := False) is record case Set is when True => Value : Element; when False => n...
-- -- copyright Pascal Pignard -- web site : -- https://blady.pagesperso-orange.fr/a_savoir.html#gtkada -- with Glib; use Glib; with Gtk.Enums; use Gtk.Enums; with Gtk.Main; with Ada.Long_Long_Float_Text_IO; with Gtk.GEntry; use Gtk.GEntry; with Gtk.Scale; use Gtk....
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- ...
with Lv.Area; with Lv.Color; with Lv.Style; package Lv.Objx.Chart is subtype Instance is Obj_T; type Series is private; type Chart_Type_T is (Type_Line, Type_Column, Type_Point); -- Create a chart background objects -- @param par pointer to an object, it will be the parent of the new chart backgro...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit private package Ada.Command_Line.Argument_Parsing is -- Command line parser only for one argument. pragma Preelaborate; type State_Type is record Posixly_Correct : Boolean := False; -- stop parsing after argument Not_Option : Boolean := False...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Text_IO; with Ada.Command_Line; with Yaml.Source.Text_IO; with Yaml.Source.File; with Yaml.Parser; with Yaml.Transformator.Annotation_Processor; procedure Yaml.To_Events is use type Sour...
function Es_Par(N: Integer) return Boolean is begin if N mod 2 = 0 then return True; end if; return False; end Es_Par;
with freetype_c.Pointers; package freetype_c.FT_Size is subtype Item is Pointers.FT_SizeRec_Pointer; type Item_array is array (C.Size_t range <>) of aliased FT_Size.Item; type Pointer is access all freetype_c.FT_Size.Item; type Pointer_array is array (C.Size_t range <>) of aliased FT...
with Ada.Numerics.Generic_Elementary_Functions; with PixelArray; with Histogram; with HistogramGenerator; with ImageRegions; use PixelArray; use ImageRegions; package body HistogramDescriptor is package FloatFunctions is new Ada.Numerics.Generic_Elementary_Functions(Float); function create(image: PixelArray....
pragma Ada_2012; with Ada.Exceptions; pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced"); with Ada.Text_Io; use Ada.Text_Io; with Protypo.Api.Engine_Values.Parameter_Lists; with Protypo.Code_Trees.Interpreter.Statements; with Protypo.Api.Consumers.Buffers; package body Protypo.Code_Trees.Interpr...
----------------------------------------------------------------------- -- mat-frames - Representation of stack frames -- Copyright (C) 2014, 2015, 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...
-- Suggestions for packages which might be useful: with Ada.Real_Time; use Ada.Real_Time; with Vectors_3D; use Vectors_3D; with Swarm_Structures_Base; use Swarm_Structures_Base; with Vehicle_Task_Type; use Vehicle_Task_Type; -- Author : Wenjun Yang -- u_id : u6251843 package Vehicle_Message_Type i...
with Ada.Text_IO; procedure Combinations is generic type Set is (<>); function Combinations (Count : Positive; Output : Boolean := False) return Natural; function Combinations (Count : Positive; Output : Boolean := False) return Natural is package Set_IO...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau with PyGamer.Time; package Game is function Game_Loop (Time_In_Game : in out PyGamer.Time.Time_Ms) return Boolean; -- Return True if the player won the game, False for game-over end Game;
pragma Restrictions (No_Elaboration_Code); package body Atomic7_Pkg2 is T : Natural := 0; pragma Atomic (T); function Stamp return Natural is begin T := T + 1; return T; end; end Atomic7_Pkg2;
pragma Ada_2012; package body Adventofcode.File_Line_Readers is use Ada.Text_IO; ---------------- -- Read_Lines -- ---------------- function Read_Lines (From_Path : String) return File_Reader is begin return Ret : File_Reader do Ada.Text_IO.Open (Ret.F, In_File, From_Path); end r...
pragma License (Unrestricted); with Ada.Streams.Stream_IO.Sockets; private with Ada.Strings.Unbounded_Strings; package GNAT.Sockets is procedure Initialize is null; type Socket_Type is access Ada.Streams.Stream_IO.File_Type; -- non-limited type Family_Type is (Family_Inet); type Mode_Type is (Socket_Str...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018-2021, AdaCore -- -- -- -- ...
--pragma SPARK_Mode; with Interfaces.C; use Interfaces.C; with System; package body Zumo_Buzzer is -- BuzzerFinished : Boolean := True; procedure Enable_Timer_ISR (State : Boolean) is TIMSK2 : Unsigned_Char with Address => System'To_Address (16#70#); begin if State then TIMSK...
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; with Ada.Containers.Ordered_Sets; with Ada.Containers.Doubly_Linked_Lists; package MuStrategy is VAR : constant Integer := 0; V : const...
with My_Pack; with Ada.Text_IO; use Ada.Text_IO; package body Suppack is procedure Print is begin Put_Line (Integer'Image (My_Pack.Get)); end Print; end Suppack;
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with float_Math.Algebra.linear, any_Math.any_Geometry.any_d2; package float_math.Geometry.d2 is new float_Math.Geometry.any_d2 (float_Math.Algebra.linear); pragma Pure (float_math.Geometry.d2);