content
stringlengths
23
1.05M
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Incr.Nodes.Tokens is ------------------ -- Constructors -- ------------------ package body Constructor...
with Protypo.Scanning; with Protypo.Code_Trees; private package Protypo.Parsing is function Parse_Statement_Sequence (Input : in out Scanning.Token_List) return Code_Trees.Parsed_Code; function Parse_Expression (Input: in out Scanning.Token_List) ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; procedure Main is package SU renames Ada.Strings.Unbounded; procedure I_Return_String(Sun : out SU.Unbounded_String) is begin Sun := SU.To_Unbounded_String("Hellew, I am an Ada string."); end I_Return_String; SUnb : SU.Unbounded_String; beg...
with Ada.Unchecked_Deallocation; with Test_Utils.Abstract_Decoder.COBS_Simple; with Test_Utils.Abstract_Decoder.COBS_Stream; with Testsuite.Decode.Basic_Tests; with Testsuite.Decode.Multiframe_Tests; package body Testsuite.Decode is Kind : Decoder_Kind := Decoder_Kind'First; ---------------------- -- Set_...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Skynet; with League.Strings; with Ada.Wide_Wide_Text_IO; procedure Skynet_Test is Options : Skynet.Upload_Options; Skylink...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- -- -- ...
------------------------------------------------------------------------------- -- -- This file is only for conviniece to be able to build and run with -- one click -- ------------------------------------------------------------------------------- with Ada.Command_Line; with Ada.Directories; with Ada.Text_IO; with G...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Containers.Binary_Trees.Arne_Andersson.Debug; with Ada.Unchecked_Conversion; package body Ada.Containers.Ordered_Sets.Debug is use type Copy_On_Write.Data_Access; function Downcast is new Unchecked_Conversion (Copy_On_Write.Data_Access, Data_Access); procedure Dump (Source : Set; Message : Str...
with Ada.Text_IO, Lab10_03; use Ada.Text_IO, Lab10_03; procedure Prueba_quitar_repetidos_primero is L1: T_Lista_Estatica; begin Put_Line(" QUITAR REPETIDOS PRIMERO - PRUEBAS"); Put_Line("--------------------------------------"); Put_Line("Caso 01: ()"); Put_Line("--> ()"); L1.Cont := 0; Quitar_...
-- ----------------------------------------------------------------------------- -- smk, the smart make (http://lionel.draghi.free.fr/smk/) -- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- -- Licen...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Exn_LLF is pragma Pure; -- required for "**" without checking by compiler (s-exnllf.ads) function Exn_Float (Left : Float; Right : Integer) return Float with Import, Convention => Intrinsic, External_Name => "__b...
-- part of ParserTools, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Text.Pool; package Text.Builder is type Reference is new Ada.Finalization.Controlled with private; procedure Init (Object : in out Reference; Pool : Text.Pool.Reference; ...
-- CB4003A.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 2015 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...
-- NORX1641 -- an Ada implementation of the NORX Authenticated Encryption Algorithm -- created by Jean-Philippe Aumasson, Philipp Jovanovic and Samuel Neves -- This instantiation words on 16-bit words, with 4 rounds and a parallelism -- degree of 1. Note that the Key_Position is 2 here, not 4 as it is in all -- the ot...
pragma Check_Policy (Trace => Ignore); package body System.Tasking.Protected_Objects.Entries is procedure Cancel_Call (Call : not null Node_Access); procedure Cancel_Call (Call : not null Node_Access) is begin -- C940016, not Tasking_Error Ada.Exceptions.Save_Exception (Call.X, Program_Error'Iden...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; with Ada.Integer_Text_IO; procedure TableSorting is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; Num_Elements : constant := 14; type Extended_Index is new Integer range 1 .. Num_Elements + 1; subtype Index is Extended_Index range 1 .. Num_Elements; a :...
-- -- 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; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure pgcd is function PGCD_Euclide (a : Integer; b : Integer) return Integer is p : Integer := a; q : Integer := b; r : Integer; begin while q /= 0 loop r := p; p :...
-- { dg-do run } procedure Case_Character is function Test (C : Character) return Integer is begin case C is when ASCII.HT | ' ' .. Character'Last => return 1; when others => return 0; end case; end; begin if Test ('A') /= 1 then raise Program_Error; end if; end;
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- c...
with Unchecked_Conversion; package Rep_Clause2 is type Tiny is range 0 .. 3; for Tiny'Size use 2; type Small is range 0 .. 255; for Small'Size use 8; type Small_Data is record D : Tiny; N : Small; end record; pragma Pack (Small_Data); type Chunk is record S : Small_Data...
package Examples.Ast is procedure Demo (Project_Name : String; File_Name : String); end Examples.Ast;
----------------------------------------------------------------------- -- are-generator-ada2012 -- Generator for Ada -- 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 ex...
-------------------------------------------------------------------------------- -- Copyright (C) 2020 by Heisenbug Ltd. (gh+si_units@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 S...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau with HAL; use HAL; with PyGamer.Screen; with PyGamer.Time; with PyGamer.Controls; use PyGamer; with Sound; package body Render is Buffer_Size : constant Positive := PyGamer.Screen.Width * PyGamer.Screen.Height; Render_Buffer : GESTE.Outp...
with Array23_Pkg2; package Array23_Pkg1 is C2 : Natural := Array23_Pkg2.C1; subtype Index is Natural range 0 .. C2; type Inner is array (Index) of Natural; type Arr is array (Array23_Pkg2.Index) of Inner; end Array23_Pkg1;
----------------------------------------------------------------------- -- keystore-containers -- Container protected keystore -- Copyright (C) 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with League.Strings; package WebIDL.Definitions is pragma Preelaborate; type Definition is limited interface; not overriding function Name (Self...
-- -- -- package Tables.Names Copyright (c) Dmitry A. Kazakov -- -- Implementation Luebeck -- -- Spring, 2003 -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; with GL.Load_Function_Pointers; package body GL is procedure Init renames GL.Load_Function_Pointers; procedure Flush is begin API.Flush; end Flush; procedure Finish...
-- -- Raytracer implementation in Ada -- by John Perry (github: johnperry-math) -- 2021 -- -- specification for Cameras, that view the scene -- -- local packages with Vectors; use Vectors; -- @summary Cameras that view the scene package Cameras is type Camera_Type is record Forward, Right, Up, Position: Ve...
with Ada.Text_IO; with Ada.Long_Float_Text_IO; -- No need to put pragma Elaborate_All on standard library packages. with File_IO; pragma Elaborate_All (File_IO); -- Imagine some developer in the future introduces a dependency -- upon the code in this file in the File_IO package or any of the code -- that it depend...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- -- with Ada.Unchecked_Deallocation; package body Sets is Index_First : Index_Type := Index_Type'First; Index_Last : Index_Type := Index_Type'First; procedure Set_Range (First : in Index_Type; Last : in Index_Type) is begin Index_First := First; Index_Last...
----------------------------------------------------------------------- -- util-encoders-base16 -- Encode/Decode a stream in hexadecimal -- Copyright (C) 2009, 2010, 2011, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
generic N: Integer; package data is type Vector is private; type Matrix is private; function Func1(A,B,C: in Vector; MA,ME: in Matrix) return Integer; function Func2(MH,MK,ML: in Matrix) return Integer; function Func3(P: out Vector; MR,MT: in Matrix) return Vector; function Matrix_Multiplication...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; package body GL.Objects.Queries is procedure Begin_Query (Target : GL.Low_Level.Enums.Query_Param; Object : Query_Object) is begin API.Begin_Query (...
----------------------------------------------------------------------- -- awa-helpers -- Helpers for AWA applications -- Copyright (C) 2011 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 e...
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to -- deal in the Software without restriction, including without limitation the -- rights to use, cop...
with System; package body Flash is Flash_Memory : array (Unsigned_32 range 0 .. 16#3FFFF#) of Unsigned_16 with Import, Address => System'To_Address (0); procedure Init is begin null; end Init; procedure Unlock is begin null; end Unlock; procedure Lock is begin nul...
with Ada.Text_IO; use Ada.Text_IO; --with xample1; --use xample1; package body xample1 is procedure xercise is begin xample.SayWelcome(1); end xercise; end xample1;
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- 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...
with Interfaces; use Interfaces; with SHA2_Generic_32; with SHA2_Generic_64; generic type Element is mod <>; type Index is range <>; type Element_Array is array (Index range <>) of Element; package SHA2_Generic with Pure, Preelaborate is pragma Compile_Time_Error (Element'Modulus /= 256, ...
----------------------------------------------------------------------- -- awa-tags-beans -- Beans for the tags module -- Copyright (C) 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- This program 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 -- (at your option) any later vers...
B : Arr_Type (1 .. 26); begin B(B'First) := 'a'; for I in B'First .. B'Last-1 loop B(I+1) := Lower_Case'Succ(B(I)); end loop; -- now all the B(I) are different
----------------------------------------------------------------------- -- security-permissions -- Definition of permissions -- Copyright (C) 2010, 2011, 2016, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
with Ada.Unchecked_Conversion; with System; package Subset with SPARK_Mode => On is -- A few simple example of language constructs that currently violate the -- SPARK subset. -- Unchecked conversion with access type is not allowed in SPARK type T is access Integer; function Conv is new Ada.Unchecked_...
package P is X : Integer; -- Allocated in the result the package elaboration end P;
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.EIC is pragma Preelaborate; --------------- -- Registers -- --------------- -- Clock Selection type CTRLA_CKSELSelect...
with impact.d2.Colliders, impact.d2.Shape.polygon; package body impact.d2.Contact.polygon is function to_b2CircleContact (fixtureA, fixtureB : access fixture.b2Fixture'Class) return b2PolygonContact is use type shape.Kind; new_Contact : Contact.polygon.b2PolygonContact; begin define...
package body openGL.surface_Profile.privvy is function to_GLX (Self : in Item'Class) return glx.FBConfig is begin return Self.glx_Config; end to_GLX; end openGL.surface_Profile.privvy;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
with Date_Package; use Date_Package; with Ada.Text_IO; use Ada.Text_IO; package body Person_Handling is function "="(Person1, Person2: in Person) return Boolean is begin return Person1.Birth = Person2.Birth; end; function ">"(Person1, Person2: in Person) return Boolean is begin ...
with EU_Projects.Times.Time_Expressions.Solving; with EU_Projects.Projects.Housekeeping; with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; package body EU_Projects.Projects is ----------- -- Bless -- ----------- procedure Bless (Project : in out Project_Descriptor; Info : Nod...
with System.Native_Time; with C.winbase; with C.windef; package body System.Native_Real_Time is use type C.windef.WINBOOL; use type C.winnt.LONGLONG; subtype Positive_LONGLONG is C.winnt.LONGLONG range 1 .. C.winnt.LONGLONG'Last; Performance_Counter_Enabled : Boolean; Frequency : Positive_LONGLON...
package body Debug4_Pkg is type Vertex_To_Vertex_T is array (Vertex_Id range <>) of Vertex_Id; function Dominator_Tree_Internal (G : T'Class) return Vertex_To_Vertex_T is subtype V_To_V is Vertex_To_Vertex_T (0 .. G.Vertices.Last_Index); type V_To_VIL is array (Valid_Vertex_Id range 1 .. G.V...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Coordinates; with Planets.Earth; package body Atmosphere_Types is Hit_Detection : constant Boolean := True; use type GL.Types.Double; procedure Set_Mass (Object : in out Gravity_Object; Value : GL.Types.Double) is begin Object.Mass := Value; end Set_Mass; procedure Set_Gravity (Object ...
-- { dg-do compile } -- { dg-options "-gnatc" } generic type T_Item is private; function genericppc (T : in t_Item; I : integer) return integer; pragma Precondition (I > 0);
-- 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...
----------------------------------------------------------------------- -- util-dates -- Date utilities -- Copyright (C) 2011, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in ...
WITH Ada.Text_IO; USE Ada.Text_IO; WITH Salas; USE Salas; PROCEDURE Probar_Salas IS S : Sala; BEGIN S := Crear_Sala(" Ava ", 12,10); Put_Line("El afaro de la sala es"& Integer'Image(Aforo_Sala(S))); Put_Line("La sala tiene"&Integer'Image(Plazas_Libres(S))&" libres."); Modificar_Pelicula(S...
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 linkedList is type stringptr is access all char_array; type intlist; type intlist_PTR is access intlist; type intlist is rec...
with OLED_SH1106.Display; use OLED_SH1106.Display; with Bitmap_Buffer; with Bitmap_Graphics; use Bitmap_Graphics; with SPI; with GPIO; package body OLED_SH1106 is Display_Width : constant Natural := 128; Display_Height: constant Natural := 64; package Graphics is new Bitmap_Buffer (Width => Display_Width...
-- C36205F.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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- css-core-values -- Representation of CSS property value(s). -- Copyright (C) 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
function System.Address_Image (A : Address) return Storage_Elements.Formatting.Address_String is pragma Suppress (All_Checks); begin return Storage_Elements.Formatting.Image (A); end System.Address_Image;
with Ada.Characters.Handling; with Ada.Containers; with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Strings.Hash; package body Opt50_Pkg is type Enum_Name is array (Enum) of access constant String; Enum_Name_Table : constant Enum_Name := ( One => new String'("one"), Two => new String'("two"...
-- Automatically generated, do not edit. with Interfaces.C; with System; package OpenGL.Thin is package C renames Interfaces.C; -- Constants GL_S : constant := 16#2000#; GL_T : constant := 16#2001#; GL_R ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
with Ada.Calendar; with Ada.Streams.Stream_IO; with Ada.Unchecked_Deallocation; with GID; with GL.Types; with GL.Objects.Textures.Targets; package body GL.Images is generic type Component is mod <>; Num_Components : Types.Int; Width, Height : Types.Size; package Loader is type Raw_Data ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. private with Apsepp.Debug_Trace_Class.Stub.Create; package Apsepp.Debug_Trace_Class.Standard is ---------------------------------------------------------------------------- protected type Debug_Trace_Stan...
-- protected_counters.adb -- Task safe counters for use with smart_ptrs -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in ...
package ICE_Types is type Float_View_T is private; procedure Initialize (X : out Float_View_T); private type Float_View_T is new Float; end;
-- Ascon.Utils -- Some utility routines useful when writing the examples. -- Copyright (c) 2016, James Humphry - see LICENSE file for details generic package Ascon.Utils is procedure Put_State(S : in Ascon.State); -- Print out a hexadecimal representation of the state to the console procedure Put_Storage_...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Zebra is type Content is (Beer, Coffee, Milk, Tea, Water, Danish, English, German, Norwegian, Swedish, Blue, Green, Red, White, Yellow, Blend, BlueMaster, Dunhill, PallMall, Prince, Bird, Cat, Dog, Horse, Zebra); type Test is (Drink, Person, Col...
with Interfaces; with Startup; with MSPGD.GPIO; use MSPGD.GPIO; with MSPGD.GPIO.Pin; with MSPGD.UART.Peripheral; with MSPGD.SPI.Peripheral; with MSPGD.Clock; use MSPGD.Clock; with MSPGD.Clock.Source; package MSPGD.Board is pragma Preelaborate; package Clock is new MSPGD.Clock.Source (Source => SMCLK, Input => ...
-- Abstract: -- -- Generic leading zero unsigned decimal image -- -- Copyright (C) 2004, 2009, 2019 Free Software Foundation. All Rights Reserved. -- -- 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 Software Fo...
pragma License (Unrestricted); -- implementation unit specialized for Darwin (or Linux, or Windows) package System.Long_Long_Complex_Types is pragma Pure; -- Complex type Imaginary is new Float; type Complex is record Re, Im : Float; end record; pragma Complex_Representation (Complex); ...
with Ada.Text_IO; procedure Odd_Word_Problem is use Ada.Text_IO; -- Get, Put, and Look_Ahead function Current return Character is -- reads the current input character, without consuming it End_Of_Line: Boolean; C: Character; begin Look_Ahead(C, End_Of_Line); if End_Of_Line then...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with GLU; with GLOBE_3D.Math; package body GLOBE_3D.Portals is -- Cheap but fast portal method with rectangles. procedure Intersect (A, B : Rectangle; C : out Rectangle; non_empty : out Boolean) is begin C := (X1 => Integer'Max (A.X1, B.X1), X2 => Integer'Min (A.X2, B.X2), ...
----------------------------------------------------------------------- -- gen-commands-docs -- Extract and generate documentation for the project -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
with Ada.Numerics.Generic_Real_Arrays; with GA_Maths; package SVD is type Real is digits 18; package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real); type SVD (Num_Rows, Num_Cols, Num_Singular, Work_Vector_Rows : Natural) is private; SVD_Exception : Exception; function Condition_Nu...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Messages.grfe; package body Slim.Players.Displays is ----------- -- Clear -- ----------- procedure Clear (Sel...
with Ada.Text_IO; use Ada.Text_IO; procedure Adventofcode.Day_20.Main is begin Put_Line ("Day-20"); end Adventofcode.Day_20.Main;
function Increment_By (I : Integer := 0; Incr : Integer := 1) return Integer is -- ^ Default value for parameters begin return I + Incr; end Increment_By;
-- C32107C.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...