content
stringlengths
23
1.05M
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Bases.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Bases.Test_Data .Test with null re...
with Ada.Text_IO; with FunctionX; use Ada.Text_IO; use FunctionX; procedure Exercise is StaffMember : Employee; begin StaffMember.EmployeeNumber := 704702; StaffMember.FirstName := "Jonathan"; StaffMember.LastName := "Jensen"; StaffMember.HourlySalary := 22.84; Put_Line("Employee Record...
with Ada.Text_IO; procedure Main is function Levenshtein_Distance (S, T : String) return Natural is D : array (0 .. S'Length, 0 .. T'Length) of Natural; begin for I in D'Range (1) loop D (I, 0) := I; end loop; for I in D'Range (2) loop D (0, I) := I; end loop; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Synchronous_Concurrent; use Synchronous_Concurrent; with Ada.Text_Io; use Ada.Text_Io; procedure Synchronous_Concurrent_Main is Num_Strings : Natural; The_File : File_Type; Line : String(1..255); Length : Natural; begin Open(File => The_File, Mode => In_File, Name => "input.txt"); while not End_...
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 Zane Myers -- -- 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 witho...
package Raspio is Initialization_Error : exception; procedure Initialize; end Raspio;
with Ada.Calendar; use Ada.Calendar; with Ada.Text_Io; use Ada.Text_Io; procedure Query_Performance is type Proc_Access is access procedure(X : in out Integer); function Time_It(Action : Proc_Access; Arg : Integer) return Duration is Start_Time : Time := Clock; Finis_Time : Time; Func_Arg : Int...
with Interfaces; use Interfaces; package avtas.lmcp.types is -- C/C++ compatible integer types type Byte is new Interfaces.Unsigned_8; type UInt16 is new Interfaces.Unsigned_16; type UInt32 is new Interfaces.Unsigned_32; type UInt64 is new Interfaces.Unsigned_64; type Int16 is new Interfaces.Inte...
----------------------------------------------------------------------- -- babel-files-buffers -- File buffer management -- Copyright (C) 2014, 2015 Stephane.Carrez -- Written by Stephane.Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
------------------------------------------------------------------------ -- Copyright (C) 2010-2020 by Heisenbug Ltd. (github@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 Hocev...
with Protypo.Api.Engine_Values.Handlers; with Protypo.Api.Engine_Values.Engine_Value_Vectors; with Protypo.Api.Engine_Values.Parameter_Lists; private package Protypo.Code_Trees.Interpreter.Consumer_Handlers is type Consumer_Callback is new Api.Engine_Values.Handlers.Function_Interface with private; ...
-- { dg-do compile } package body Deferred_Const4 is function F return My_Q.T is R : My_Q.T; begin R := My_Q.Null_T; return R; end; end Deferred_Const4;
----------------------------------------------------------------------- -- css-core -- Core CSS API definition -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in...
----------------------------------------------------------------------- -- streams.files.tests -- Unit tests for buffered streams -- Copyright (C) 2012, 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2018, AdaCore -- -- -- -- ...
with agar.core.types; package agar.gui.colors is type color_selection_t is ( BG_COLOR, FRAME_COLOR, LINE_COLOR, TEXT_COLOR, WINDOW_BG_COLOR, WINDOW_HI_COLOR, WINDOW_LO_COLOR, TITLEBAR_FOCUSED_COLOR, TITLEBAR_UNFOCUSED_COLOR, TITLEBAR_CAPTION_COLOR, BUTTON_COLOR, BUTTO...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" generic type Index_Type is (<>); type Element_Type is private; with function "+" (Left, Right : Element_Type) return Element_Type is <>; with function "-" (Left, Right : Element_Type) return...
package hauntedhouse is -- W: Wall, R: Room, C: Corridor, E: Exit type Fields is (W,R,C,E); type Position is record x: Natural; y: Natural; end record; function IsWall(pos: Position) return Boolean; function IsCorrect(pos: Position) return Boolean; function IsCorridor(pos: Positi...
package body Generator.Filtered is ----------- -- Reset -- ----------- procedure Reset (Gen : in out Filtered_Generator) is begin Reset (Generator (Gen)); Gen.Source.Reset; Gen.Filter.Reset; Gen.Last_Filter := 0; end Reset; -------------- -- Get_Next -- ------------...
with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with STRINGS_PACKAGE; use STRINGS_PACKAGE; with CONFIG; use CONFIG; with WORD_PARAMETERS; use WORD_PARAMETERS; with DEVELOPER_PARAMETERS; use DEVELOPER_PARAMETERS; with WORD_PACKAGE; use WORD_PACKAGE; with PARSE; procedure MEAN...
with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns; with Rejuvenation.Patterns; use Rejuvenation.Patterns; with Placeholder_Relations; use Placeholder_Relations; with Rewrite...
----------------------------------------------------------------------- -- wiki-render-html -- Wiki HTML renderer -- Copyright (C) 2011, 2012, 2013, 2015, 2016, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
with GL; package openGL.Shader -- -- Models an openGL shader. -- is type Item is tagged limited private; type Items is array (Positive range <>) of aliased Item; type View is access all Item'class; type Views is array (Positive range <>) of View; type Kind is (Vertex, Fragment); ---------...
--------------------------------------------------------------------------------- -- Copyright 2004-2005 © Luke A. Guest -- -- This code is to be used for tutorial purposes only. -- You may not redistribute this code in any form without my express permission. ------------------------------------------------------------...
with Samples.Petstore.Clients; with Samples.Petstore.Models; with Swagger; with Util.Http.Clients.Curl; with Ada.Text_IO; with Ada.Command_Line; with Ada.Calendar.Formatting; with Ada.Exceptions; procedure Petstore is use Ada.Text_IO; procedure Usage; procedure Print_Pet (Pet : in Samples.Petstore.Models.Pet...
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- 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 pe...
with Lv.Style; package Lv.Objx.Slider is subtype Instance is Obj_T; type Style_T is (Style_Bg, Style_Indic, Style_Knob); -- Create a slider objects -- @param par pointer to an object, it will be the parent of the new slider -- @param copy pointer to a slider...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with Chebyshev, Ada.Text_IO, Numerics; use Chebyshev, Ada.Text_IO, Numerics; procedure Chebyshev_Test is use Real_IO, Int_IO, Real_Functions; N : constant Nat := 41; L : constant Real := -0.45; R : constant Real := 4.7; X : Real_Vector := Chebyshev_Gauss_Lobatto (N, L, R); F : Real_Vector (X'Ra...
with Ada.Containers.Vectors, Ada.Exceptions, Ada.Integer_Text_IO, Ada.Strings.Unbounded, Ada.Text_IO; with Utils; procedure Main is use Ada.Containers, Ada.Strings.Unbounded, Ada.Text_IO; use Utils; subtype Binary_Values is Natural range 0 .. 1; package Unbounded_String_Vectors is ne...
pragma License (Unrestricted); with System.Unsigned_Types; -- implementation unit required by compiler package System.Img_LLU is pragma Pure; -- required for Modular'Image by compiler (s-imgllu.ads) procedure Image_Long_Long_Unsigned ( V : Unsigned_Types.Long_Long_Unsigned; S : in out String; ...
pragma Ada_2012; with Ada.Strings.Fixed; with Ada.Text_IO; with GNAT.Regpat; with AUnit.Test_Cases; package body AUnit.Test_Filters.List_Filters is use Ada.Text_IO; use GNAT.Regpat; function Is_Active (Filter : List_Filter; T : AUnit.Tests.Test'Class) return Boolean is begin Filter.Al...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with CUPS.bits_types_h; with CUPS.time_h; private package CUPS.bits_stat_h is -- unsupported macro: st_atime st_atim.tv_sec -- unsupported macro: st_mtime st_mtim.tv_sec -- unsupported macro: st_ctime st_ctim.tv_sec UTIME...
with freeType_c.FT_GlyphSlot, openGL.GlyphImpl; package openGL.Glyph -- -- Glyph is the base class for openGL glyphs. -- -- It provides the interface between Freetype glyphs and their openGL -- renderable counterparts. -- -- This is an abstract class and derived classes must implement the 'Render' functi...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) with C.time; package System.Native_Calendar is pragma Preelaborate; subtype Native_Time is C.time.struct_timespec; function To_Native_Time (T : Duration) return Native_Time; function To_Time (T : Nativ...
with STM32_SVD.RCC; with STM32_SVD.IPCC; use STM32_SVD.IPCC; with System; package body STM32.IPCC is procedure IPCC_Enable is use STM32_SVD.RCC; begin RCC_Periph.AHB3ENR.IPCCEN := True; RCC_Periph.C2AHB3ENR.IPCCEN := True; end IPCC_Enable; procedure IPCC_Cpu1_SetFlag (Channel : I...
--- ad-driver.adb.orig 2021-09-04 15:38:31 UTC +++ ad-driver.adb @@ -470,6 +470,7 @@ package body AD.Driver is AIC.Set_File_Name (AIC.Subprogram_Index, Canonical (S (S'First + 2 .. S'Last))); elsif S = "-P" then + Error ("-P is disabled in Ravenports"); ...
----------------------------------------------------------------------------- -- File: aplib.adb; see specification (aplib.ads) ----------------------------------------------------------------------------- with System, Ada.Unchecked_Deallocation; -- with Ada.Text_IO; use Ada.Text_IO; -- OA ...
with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32_SVD.USART; use STM32_SVD.USART; package body STM32GD.USART.Peripheral is type USART_Periph_Access is access all USART_Peripheral; function USART_Periph return USART_Periph_Access is begin return (if USART = USART_1 then STM32_SVD.USART.USART1_Periph'Ac...
with a_nodes_h.Support; private with Ada.Containers.Hashed_Sets; private with Interfaces.C; -- This class hides and manages some of the details of the liniked -- list of Element_Struct C interface records. Like Dot.ads, you only need to -- pass in Access_Class to the users - they don't need to pass it back. The top...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Interfaces; use Interfaces; procedure Long_Multiplication is -- Insert definitions above here procedure Put (Value : Long_Number) is X : Long_Number := Value; Last : Natural ...
----------------------------------------------------------------------- -- asf-views-facelets -- Facelets representation and management -- Copyright (C) 2009, 2010, 2011, 2014, 2015, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (...
with Array16_Pkg; package Array16 is type T1 (D : Integer) is record case D is when 1 => I : Integer; when others => null; end case; end record; type Arr is array (Integer range <>) of Integer; type My_T1 is new T1 (Array16_Pkg.N); type My_T2 is new Arr (1 .. Integer'Min (2, Array16_Pk...
-- -- Copyright (c) 2007-2009 Tero Koskinen <tero.koskinen@iki.fi> -- -- Permission to use, copy, modify, and 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 all copies. -- -- THE SOFTWARE IS PROVIDED "AS...
-- C36304A.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 Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory; package body Rejuvenation.Patterns is function Make_Pattern (Fragment : String; Rule : Grammar_Rule) return Pattern is Unit : constant Analysis_Unit := Analyze_Fragment (Fragment, Rule); begin return (To_Unbounded_String (Fra...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with Ada.Containers.Vectors; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Blade_Types is package Names_Package is new Ada.Containers.Vectors (Positive, Unbounded_String); type Basis_Vector_Names is new Names_Package.Vector with null record; type BV_Base is (BV_e1e2, BV_e2e3, BV_e3e...
-- -- Raytracer implementation in Ada -- by John Perry (github: johnperry-math) -- 2021 -- -- implementation for Rays -- package body Rays is function Create_Ray(start, dir: Vector) return Ray_Type is ( ( start => start, dir => dir ) ); end Rays;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- A74106A.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...
-- { dg-do compile } -- { dg-options "-O3" } package body Loop_Optimization18 is procedure Proc (Message : Byte_Array_Type) is R : Rec (Conv (Message)); begin for Division in 1 .. R.UB loop R.L (Division) := 0; end loop; end; end Loop_Optimization18;
-- Detect GNAT version with ada.exceptions; with ada.strings.fixed; with ada.strings.bounded; with ada.strings; with ada.text_io; with gnat.compiler_version; procedure ver_gnat is package ex renames ada.exceptions; package io renames ada.text_io; package str renames ada.strings; package str_fixed renames ada....
----------------------------------------------------------------------- -- Copyright 2021 Lev Kujawski -- -- -- -- Permission is hereby granted, free of charge, to any person -- -- obtaining a copy of this sof...
with BitOperations.Types; with BitOperations.Shift; with BitOperations.Mask; with BitOperations.Extract; with BitOperations.Search; with BitOperations.Shift.Axiom; with BitOperations.Search.Axiom; generic type Modular is mod <>; package Bits with SPARK_Mode, Pure, Preelaborate is package Types is new BitOperati...
package body Numerics.Sparse_Matrices.CSparse is function LU_Decomposition (Mat : in Sparse_Matrix; Tol : in Real := 1.0e-20) return LU_Type is Sparse : Sparse_Ptr := To_Sparse (Mat); LU : LU_Type; begin LU.Symbolic := CS_Sqr (Prob => Sparse); pragma Assert (LU.Symbo...
With Ada.Text_IO; Use Ada.Text_IO; Procedure Fatorial is numero: Integer; fatorial: Integer := 1; -- 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 Get_String; -- Leitura Integer function Get_In...
------------------------------------------------------------------------------ -- host.adb -- -- Implementation of the host. ------------------------------------------------------------------------------ with Chopsticks, Cooks, Reporter; use Chopsticks, Cooks, Reporter; package body Host is task body No...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------ -- Copyright (C) 2005-2020 by <ada.rocks@jlfencey.com> -- -- -- -- This work is free. You can redistribute it and/or modify it under -- -- the terms of the Do What...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Pragmas; with Program.Elements.Defining_Names; with Program.Elements.Defining_Identifiers; with Program.Elements...
----------------------------------------------------------------------- -- 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...
pragma Warnings (Off); pragma Style_Checks (Off); -- 3D model of a "brick" of a space station, seen from inside. -- Copyright (c) Gautier de Montmollin 2005 -- CH - 8810 Horgen -- SWITZERLAND -- Permission granted to use the herein contained 3D model for any purpose, -- provided this copyright note ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
with Ada.Containers.Doubly_Linked_Lists; with Actions; limited with Symbols; limited with States; -- limited with Rules; with Rule_Lists; package Action_Lists is subtype Rule_Access is Rule_Lists.Rule_Access; package Action_DLLs is new Ada.Containers.Doubly_Linked_Lists ("=" => Actions."=", ...
package body c_math_c.Conversion is function "+" (Self : in Integer) return C.int is begin return C.int (Self); end "+"; function "+" (Self : in C.int) return Integer is begin return Integer (Self); end "+"; function "+" (Self : in math.Real) return c_math_c.Real is beg...
----------------Main programm------------------------ --Parallel and distributed computing. --Labwork 1. Ada. Subprograms and packages --Khilchenko Yehor --IP-74 --02.10.2019 --Func1: d = A*((B+C)*(MA*ME)); --Func2: h = MAX(MF + MG*(MH*ML)); --Func3: s = MIN(A*TRANS(MB*MM) + B*SORT(C)); with Data, Text_IO, Ada.Intege...
-- -- 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 GNAT.Calendar.Time_IO; with SQLite; ...
with chat.Client; package chat.Registrar -- -- A singleton providing the central chat registrar. -- Limited to a maximum of 5_000 chat clients running at once. -- is pragma remote_Call_interface; Name_already_used : exception; procedure register (the_Client : in Client.view); procedure deregister ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with fann_c.fann_train_data; with interfaces.c; limited with fann_c.fann; with interfaces.C; package fann_c.fann_callback_type is -- Item -- type Item is access function (arg_6_1 : access fann_c.fann.Item; arg_6_2 : in fann_c.fan...
-- { dg-do compile } -- { dg-options "-fdump-tree-gimple" } with VFA1_Pkg; use VFA1_Pkg; procedure VFA1_1 is Temp : Integer; function F (I : Integer) return Integer is begin return I; end; function F2 return Integer is begin return Integer(Counter1); end; procedure P3 (I : Out Integer) is ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.API; with Glfw.Enums; with Interfaces.C.Strings; package body Glfw.Display is ----------------------------------------------------------------------------- -- Di...
with Ada.Text_IO; package body Problem_43 is package IO renames Ada.Text_IO; procedure Solve is subtype Digit is Natural range 0 .. 9; type Pandigital_Index is new Positive range 1 .. 10; Type Pandigital_Number is Array (Pandigital_Index) of Digit; sum : Long_Long_Integer := 0; numbe...
pragma License (Unrestricted); with C.stdio; package Interfaces.C_Streams is pragma Preelaborate; subtype int is C.signed_int; subtype FILEs is C.stdio.FILE_ptr; function stdin return FILEs; function stdout return FILEs; function stderr return FILEs; -- Note: FILE * is not used in drake. f...
with Ada.Real_Time; private with ACO.Utils.DS.Generic_Collection; private with ACO.Utils.DS.Generic_Collection.Sorted; generic Maximum_Nof_Alarms : Positive; package ACO.Utils.Generic_Alarms is type Alarm_Type is abstract tagged limited null record; type Alarm_Access is access all Alarm_Type'Class; pro...
----------------------------------------------------------------------- -- keystore-properties-tests -- Tests for Keystore.Properties -- 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 ...
-- AoC 2020, Day 11 with Ada.Text_IO; package body Day is package TIO renames Ada.Text_IO; function "<"(left, right : in Location) return Boolean is begin if left.y < right.y then return true; elsif left.y = right.y and left.x < right.x then return true; else return false; end ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with Interfaces.C, System; use type Interfaces.C.int, System.Address; package body FLTK.Widgets.Groups is procedure group_set_draw_hook (W, D : in System.Address); pragma Import (C, group_set_draw_hook, "group_set_draw_hook"); pragma Inline (group_set_draw_hook); pro...
-- part of OpenGLAda, (c) 2021 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Interfaces.C.Strings; with System.Address_To_Access_Conversions; with GL.API; with GL.Enums.Getter; package body GL.Debug is procedure Message_Insert (Source : Message_Source; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- private package Markdown.Inline_Parsers.Autolinks is procedure Find (Text : Plain_Texts.Plain_Text; Cursor : Position; State : in...
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with x86_64_linux_gnu_bits_types_h; package stdint_h is INT8_MIN : constant := (-128); -- /usr/include/stdint.h:126 INT16_MIN : constant := (-32767-1); -- /usr/include/stdint.h:127 INT32_MIN : constant := (-2147483647-1); ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package body Swapping is procedure Swap (X, Y: in out Positive) is Tmp: Positive; begin Tmp := X; X := Y; Y := Tmp; end Swap; procedure Identity (X, Y: in out Positive) is begin Swap (X, Y); Swap (Y, X); end Identity; end Swapping;
-- This spec has been automatically generated from FE310.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package FE310_SVD.OTP_Mem is pragma Preelaborate; --------------- -- Registers -- --------------- subtype LFROSC_TRIM_VALUE_Fiel...
package Deques is type Deque (<>) is tagged limited private; function Create return Deque; procedure Pop (D : access Deque); type Sequence is limited interface; type P_Deque is new Deque and Sequence with private; function Create return P_Deque; private type Deque is tagged limited null r...
-- SipHash24.Integer_Hash -- An instantiation of SipHash for the Integer type. Not much use other than as -- a base for running gnatprove -- Copyright (c) 2015, James Humphry - see LICENSE file for details pragma Spark_Mode; with Ada.Containers; with SipHash.General_SPARK; with Integer_Storage_IO; pragma Elaborate_...
with ada.Characters.latin_1, ada.Strings.unbounded, ada.Text_IO; package body lace.Text.forge is -- Files -- function to_String (Filename : in forge.Filename) return String is use ada.Strings.Unbounded, ada.Text_IO; the_File : ada.Text_IO.File_Type; Pad : ...
----------------------------------------------------------------------- -- ADO Sequences -- Database sequence generator -- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the ...
with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Terminal_Interface.Curses.Text_IO; use Terminal_Interface.Curses.Text_IO; with Terminal_Interface.Curses.Text_IO.Integer_IO; with Terminal_Interface.Curses.Text_IO.Fixed_IO; with Ada.Containers.Doubly_Linked_Lists ; with Ada.Calendar; use Ada.Cale...
-- Euler1 in Ada with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Euler1_4 is type Integers is array (Natural range <>) of Integer; function myRange(size : in Integer) return Integers is ints : Integers(1..size); begin for i in 1..size loop ints(i) := i; end...
with Ada.Calendar; use Ada.Calendar; with Ada.Text_IO; use Ada.Text_IO; with Ada.Unchecked_Conversion; with AWS.MIME; with AWS.Messages; with AWS.Response; with AWS.Utils; use AWS.Utils; with Fractal; with Interfaces.C.Strings; use Interfaces.C.Strings; with Interfaces.C.Extensions; use Interfaces.C.Extensions; pa...