content
stringlengths
23
1.05M
-- HalfSipHash24 -- An instantiation of HalfSipHash with recommended parameters. -- The key must be set with SetKey before use, or there will be no protection -- from hash flooding attacks. -- Copyright (c) 2016, James Humphry - see LICENSE file for details pragma Spark_Mode; with HalfSipHash; pragma Elaborate_All(...
-- TITLE main body -- AUTHOR: John Self (UCI) -- DESCRIPTION driver routines for aflex. Calls drivers for all -- high level routines from other packages. -- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/mainB.a,v 1.23 90/10/15 20:00:28 self Exp Locker: self $ --******************************************************...
-- { dg-do run } with System; procedure Array21 is type Index_T is mod System.Memory_Size; type Arr is array (Index_T range Index_T'Last/2-3 .. Index_T'Last/2+3) of Integer; C : constant Arr := (1, others => 2); begin if C /= (1, 2, 2, 2, 2, 2, 2) then raise Program_Error; end if; end;
with Ada.Real_Time; use Ada.Real_Time; package body Helper with SPARK_Mode is function addWrap(x : Numeric_Type; inc : Numeric_Type) return Numeric_Type is begin if x + inc > Numeric_Type'Last then return x + inc - Numeric_Type'Last; else return x + inc; ...
with Ada.Unchecked_Conversion; with System; with C.string; package body zlib is use type C.signed_int; use type C.size_t; type unsigned_char_array is array (C.size_t range <>) of aliased C.unsigned_char with Convention => C; pragma Suppress_Initialization (unsigned_char_array); -- C.unsigned_char_array is no...
with GESTE; with GESTE_Config; package Render is procedure Push_Pixels (Buffer : GESTE.Output_Buffer); procedure Set_Drawing_Area (Area : GESTE.Pix_Rect); procedure Set_Screen_Offset (Pt : GESTE.Pix_Point); procedure Render_All (Background : GESTE_Config.Output_Color); procedure Render_Dirty (Backgr...
------------------------------------------------------------------------------ -- Copyright (c) 2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- AoC 2020, Day 5 with Ada.Text_IO; package body Day is package TIO renames Ada.Text_IO; function parse_line(line : in String) return Boarding_Pass is curr : Boarding_Pass; begin declare low : Row_Type := Row_Type'first; high : Row_Type := Row_Type'last; tmp : Float; begin f...
package body impact.d3.Shape.concave is --- Forge -- procedure define (Self : in out Item) is begin Self.m_collisionMargin := 0.0; end define; overriding procedure destruct (Self : in out Item) is begin null; end destruct; --- Attributes -- overriding...
-- 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.Recruit_Data_Test_Data.Recruit_Data_Tests is type Test_Recruit_Data is new GNATtest_Generated.GNATtest_Standard.Bas...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with System; with Interfaces.C.Strings; package Sodium.Thin_Binding is package IC renames Interfaces.C; package ICS renames Interfaces.C.Strings; ------------------ -- Data Types -- -----------...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Trendy_Test.Generics; generic type T is (<>); package Trendy_Test.Assertions.Discrete is -- Defaults all operations to what is visible. procedure Assert_EQ is new Trendy_Test.Generics.Assert_Discrete (T, "=", "="); procedure Assert_NE is new Trendy_Test.Generics.Assert_Discrete (T, "/=", "/="); ...
-- Mojang API -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- OpenAPI spec version: 2020_06_05 -- -- -- NOTE: This package is auto generated by the swagger code generator 3.3.4. -- https://openapi-generator.tech -- Do not edit the class manuall...
with Ada.Text_IO; use Ada.Text_IO; package body Generic_List.Output is procedure Print (List : List_T) is begin null; end Print; end Generic_List.Output;
----------------------------------------------------------------------- -- auth_cb -- Authentication callback examples -- 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...
with Text_Io; with sort; -- ------------------ procedure progmain is -- Package usage declarations use Text_Io; use sort; package Int_Io is new Integer_Io(Integer); use Int_Io; -- Variable declarations A : m_array; input_var : Integer; array_sum : Integer; -- Task declarations task Reader is entry sta...
with Ada.Text_IO; use Ada.Text_IO; package Auto_Differentiation.Integrator is type Variable (N2 : Nat) is record X : Real_Vector (1 .. N2); T : Real; end record; type Control_Type is record N : Nat; Dt : Real := 1.0; Eps : Real := 1.0e-10; Err : Real := 1.0; K : Nat ...
------------------------------------------------------------------------------- -- Copyright (c) 2017 Daniel King -- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with ARM_Output; with ARM_Index; package ARM_Subindex is -- -- Ada reference manual formatter (ARM_Form). -- -- This package contains the database to store subindex items for -- non-normative appendixes. -- -- --------------------------------------- -- Copyright 2005, 2011 ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Ada_2012; with Ada.Strings.Fixed; with Adventofcode.File_Line_Readers; with GNAT.String_Split; package body Adventofcode.Day_4 is use Ada.Strings.Fixed; ------------ -- Adjust -- ------------ overriding procedure Adjust (P : in out Passport) is begin P.Hair_Color := (if P.Hair_Color /= n...
with Ahven.Framework; with Node.Api; package Test_Node.Read is package Skill renames Node.Api; use Node; use Node.Api; type Test is new Ahven.Framework.Test_Case with record State : access Skill_State := new Skill_State; end record; procedure Initialize (T : in out Test); procedure Node_...
-- { dg-do run } with System; procedure align_check is N_Allocated_Buffers : Natural := 0; -- function New_Buffer (N_Bytes : Natural) return System.Address is begin N_Allocated_Buffers := N_Allocated_Buffers + 1; return System.Null_Address; end; -- Buffer_Address : consta...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO, Ada.Numerics.Discrete_Random, Ada.Command_Line; procedure Dutch_National_Flag is type Colour_Type is (Red, White, Blue); Number: Positive range 2 .. Positive'Last := Positive'Value(Ada.Command_Line.Argument(1)); -- no sorting if the Number of balls is less than 2 type Balls is arr...
------------------------------------------------------------------------------ -- Copyright (C) 2018, AdaCore -- -- -- -- This is free software; you can redistribute it and/or modify it under -- -- t...
with Ada.Interrupts.Names; with STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32GD.SPI; with STM32GD.SPI.Peripheral; with STM32GD.Timer; with STM32GD.Timer.Peripheral; with Drivers; with Drivers.RFM69; package Peripherals is package GPIO renames STM32GD.GPIO; package Timer is new STM32GD.Timer.Peripheral (Tim...
with C_String; with Interfaces.C; package body Agar.Core.Init is package UB_Strings renames Ada.Strings.Unbounded; package C renames Interfaces.C; use type C.int; use type C.unsigned; procedure Get_Version (Major : out Natural; Minor : out Natural; Patch : out Natural; Rel...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
pragma License (Unrestricted); -- implementation unit required by compiler with System.Packed_Arrays; package System.Compare_Array_Signed_8 is pragma Preelaborate; -- It can not be Pure, subprograms would become __attribute__((const)). type Integer_8 is range -(2 ** 7) .. 2 ** 7 - 1; for Integer_8'Siz...
----------------------------------------------------------------------- -- ADO Objects -- Database objects -- Copyright (C) 2009 - 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except...
-- -- 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 AWS.Config; with A...
-- -- 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.Strings; with Setup; package O...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Exceptions; with Ada.Directories; with Ada.Containers.Vectors; with Ada.Characters.Latin_1; with File_Operations; with Parameters; with Signals; with Unix; package body Replicant is package EX rename...
-- { dg-do run } with System; use System; procedure Boolean_Conv is subtype B1 is Boolean; subtype B2 is Boolean; A0, A1, A2 : Address; B : aliased B1; procedure P2 (X2 : access B2) is begin A2 := X2.all'Address; end P2; procedure P1 (X1 : access B1) is begin A1 := X1.all'Address; ...
-- Generated by a script from an "avr tools device file" (atdf) with SAM.Port; use SAM.Port; package SAM.Functions is PA04_AC_AIN0 : constant Peripheral_Function := B; PA05_AC_AIN1 : constant Peripheral_Function := B; PA06_AC_AIN2 : constant Peripheral_Function := B;...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package avx2intrin_h is -- Copyright (C) 2011-2017 Free Software Foundation, Inc. -- This file is part of GCC. -- GCC is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public ...
with AdaM.Factory; package body AdaM.Statement is -- Storage Pool -- record_Version : constant := 1; max_Statements : constant := 5_000; package Pool is new AdaM.Factory.Pools (".adam-store", "statements", ...
pragma Ada_2012; package body System_Random is -- Underlying libc function function getentropy (buffer : out Element_Array; length : size_t) return int with Import => True, Convention => C, External_Name => "getentropy"; procedure Random (Output : aliased out Element_Array) ...
-------------------------------------------------------------------------------- -- 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 Interfaces.C.Strings, System; use type Interfaces.C.int, Interfaces.C.Strings.chars_ptr; package body FLTK.Dialogs is procedure dialog_fl_alert (M : in Interfaces.C.char_array); pragma Import (C, dialog_fl_alert, "dialog_fl_alert"); pragma Inline (dialog_fl_alert); ...
with Giza.GUI; with Giza.Widget; with Giza.Widget.Button; use Giza.Widget.Button; use Giza; with Test_Tiles_Window; use Test_Tiles_Window; with Test_Scroll_Window; use Test_Scroll_Window; with Test_Button_Window; use Test_Button_Window; with Test_Gnumber_Window; use Test_Gnumber_Window; with Test_Graphic_Bounds; use Te...
---------------------------------------- -- Copyright (C) 2019 Dmitriy Shadrin -- -- All rights reserved. -- ---------------------------------------- with Ada.Unchecked_Deallocation; with Ada.Text_IO; use Ada.Text_IO; with ConfigTree; use ConfigTree; with TimeStamp; -------------------------------------...
-- Copyright 2005 Free Software Foundation, Inc. -- -- 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 2 of the License, or -- (at your option) any later version. -- -- This...
package Riemann is -- An approximation of the function erf(x)*pi/2, which is equal -- to the integral \int_0^x(e^(-t^2))dt. This integral does not -- have a closed algebraic solution. This function uses a simple -- Riemann sum to approximate the integral. -- -- The parameter n determines the numb...
package FLTK.Widgets.Buttons is type Button is new Widget with private; type Button_Reference (Data : not null access Button'Class) is limited null record with Implicit_Dereference => Data; type State is (Off, On); package Forge is function Create (X, Y, W, H : ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package body System_Function_Package is function System_A(X : Integer) return Integer is begin delay To_Duration(Milliseconds(100)); return X + 1; end System_A; function System_B(Y : Integer) return Integer is begin delay To_Duration(Milliseconds(200)); return Y * 2; end Syst...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Martin Becker (becker@rcs.ei.tum.de) with HIL.Devices.NVRAM; -- @summary -- Target-independent specification for HIL of NVRAM package HIL.NVRAM with Spark_Mode => On is s...
package Test1 is Question: constant string := "How Many Characters?"; Ask_Twice: constant string := Question & Question; end Test1;
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes is ----------------------- -- Enclosing_Element -- ----------------------- overriding function Enclosing_Element ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Ada.Directories; with Helper; use Helper; with Courbes; use Courbes; with Courbes.Droites; use Courbes.Droites; with Courbes.Singletons; use Courbes.Singletons; with Courbes.Bezier_Cubiques; use Courbes.Bezier_Cubiques; wit...
with Asis.Declarations; with Asis.Elements; with Asis.Expressions; with Asis.Set_Get; package body Asis_Adapter.Element.Declarations is procedure Do_Pre_Child_Processing (Element : in Asis.Element; State : in out Class) is Parent_Name : constant String := Module_Name; Module_Name : consta...
with Interfaces; use Interfaces; with Ada.Text_IO; use Ada.Text_IO; procedure main with SPARK_Mode is type Some_Record is record c1 : Unsigned_8 := 0; c2 : Unsigned_8 := 0; end record; for Some_Record use record c1 at 0 range 0 .. 7; c2 at 1 range 0 ....
with SDL_surface_h; use SDL_surface_h; with SDL_stdinc_h; use SDL_stdinc_h; with SDL_pixels_h; use SDL_pixels_h; with Interfaces.C; use Interfaces.C; with Ada.Text_IO; with Display.Basic.Fonts; use Display.Basic.Fonts; package body Display.Basic.GLFonts is function SDL_DEFINE_PIXELFORMAT(stype : Uint32; ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test_LCS is function LCS (A, B : String) return String is begin if A'Length = 0 or else B'Length = 0 then return ""; elsif A (A'Last) = B (B'Last) then return LCS (A (A'First..A'Last - 1), B (B'First..B'Last - 1)) & A (A'Last); els...
with C.unistd; package body System.Multiprocessors is use type C.signed_long; function Number_Of_CPUs return CPU is Result : C.signed_long; begin Result := C.unistd.sysconf (C.unistd.SC_NPROCESSORS_ONLN); if Result < 0 then raise Program_Error; end if; return CPU (Result...
with ZMQ.Messages; with UxAS.Common.Configuration_Manager; package body UxAS.Comms.Transport.Receiver.ZeroMQ.Addr_Attr_Msg_Receivers is ---------------- -- Initialize -- ---------------- overriding procedure Initialize (This : in out ZeroMq_Addressed_Attributed_Message_Receiver; ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Unchecked_Deallocation; package body Program.Dummy_Subpools is type Dummy_Subpool_Access is access all Dummy_Subpool; procedure Free is ne...
with System; package gnatcoll.Dl is pragma Preelaborate; type Dynamic_Library is tagged private; type Flag is mod 2**32; pragma warnings(off, """Or"" is being renamed as a different operator"); function "+" (L , R :Flag) return Flag renames "or"; pragma warnings(on, """Or"" is being renamed as a di...
with Units.Numerics; use Units.Numerics; pragma Elaborate_All(Units); package body Units.Vectors with SPARK_Mode is function Sat_Add is new Saturated_Addition (Base_Unit_Type); function Sat_Sub is new Saturated_Subtraction (Base_Unit_Type); function Unit_Square (val : Base_Unit_Type) return Base_Unit_Type ...
with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada; with Geometry; procedure geometry_test is procedure put_float(number : Float) is begin Float_Text_IO.put(Item => number, Aft => 3, Exp => 0); end put_float; cup : Geometry.Cylinder; cup_volume : Float; begin -...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Strings.Wide_Wide_Hash; with Ada.Wide_Wide_Characters.Handling; package body Program.Symbols.Tables is ----------- --...
package body agar.gui.widget.numerical is use type c.int; package cbinds is function allocate (parent : widget_access_t; flags : flags_t; unit : cs.chars_ptr; label : cs.chars_ptr) return numerical_access_t; pragma import (c, allocate, "AG_NumericalNew"); function alloc...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Infix_Operators is function Create (Left : Program.Elements.Expressions.Expression_Access; Operator : not null P...
package display is type grid is array(1..50,1..100) of boolean ; screen : grid ; procedure render(screen : grid) ; end display ;
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Ada.Unchecked_Deallocation, Apsepp.Scope_Bound_Locks, Apsepp_Scope_Bound_Locks_Test_Fixture, Apsepp.Generic_Fixture.Creator; package body Apsepp_Scope_Bound_Locks_Test_Case is use Apsepp.S...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO, Another_Package; use Ada.Text_IO; -- the with-clause tells the compiler to include the Text_IO package from the Ada standard -- and Another_Package. Subprograms from these packages may be called as follows: -- Ada.Text_IO.Put_Line("some text"); -- Another_Package.Do...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2016, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Libtcod.Color, Libtcod.Maps.FOV; package body Game_Maps is dark_wall : constant Color.RGB_Color := Color.make_RGB_color(0, 0, 100); dark_ground : constant Color.RGB_Color := Color.make_RGB_color(50, 50, 150); light_wall : constant Color.RGB_Color := Color.make_RGB_color(130, 110, 50); light_ground : ...
with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays; function Fit (X, Y : Real_Vector; N : Positive) return Real_Vector is A : Real_Matrix (0..N, X'Range); -- The plane begin for I in A'Range (2) loop for J in A'Range (1) loop A (J, I) := X (I)**J; end loop; end loop; return ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020-2021, AdaCore -- -- -- -- ...
with Ada.Numerics; with Ada.Unchecked_Deallocation; package body Circles is -- Initialization of a Circle procedure Initialize(This : in CircleAcc; Pos, Vel, Grav : in Vec2D; Rad : in Float; Mat : in Material) is begin Entities.Initialize(Entities.Entity(This.all), ...
with TEXT_IO; with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE; with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE; package LIST_PACKAGE is -- SCROLL_LINE_NUMBER : INTEGER := 0; -- OUTPUT_SCROLL_COUNT : INTEGER := 0; -- procedure LIST_STEMS(OUTPUT : TEXT_IO.FILE_TYPE; ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Units is ----------------- -- Compilation -- ----------------- overriding function Compilation (Self : access Unit) ...
-------------------------------------------------------------------- --| Package : TileADT Version : -------------------------------------------------------------------- --| Abstract : Provides an ADT for a TILE in the Mahjongg game. ----------------------------------------...
package body openGL.Program.textured is overriding procedure set_Uniforms (Self : in Item) is scale_Uniform : constant Variable.uniform.vec3 := Self.uniform_Variable ("uScale"); begin Self.set_mvp_Uniform; scale_Uniform.Value_is (Self.Scale); end set_Uniforms; end openGL.Program.textu...
with STM32_SVD.Interrupts; use STM32_SVD.Interrupts; with STM32_SVD.EXTI; package STM32GD.EXTI.IRQ is protected IRQ_Handler is entry Wait; procedure Cancel; function Status (Line : External_Line_Number) return Boolean; procedure Reset_Status (Line : External_Line_Number); procedure Ha...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: Apache-2.0 -- with Interfaces.C; package Notcurses.Progress_Bar is type Notcurses_Progress_Bar is private; subtype Progress_Value is Interfaces.C.double range 0.0 .. 1.0; function Create (Plane : Notcurse...
-- CC1224A.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...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); limited private with Risi_Script.Types.Internals; Package Risi_Script.Types.Implementation is Type Representation is private; Function Create( Data_Type : Enumeration ) return Representation; Function Image( Item : Representation; ...
----------------------------------------------------------------------- -- auth_cb -- Authentication callback examples -- 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...
-- { dg-do compile } -- { dg-options "-gnatws" } with G_tables; procedure test_tables is package Inst is new G_Tables (Integer); use Inst; It : Inst.Table := Create (15); begin null; end;
with Ada.Text_IO; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A050 is use Ada.Text_IO; use Ada.Integer_Text_IO; -- File Reference: http://www.naturalnumbers.org/primes.html FT : File_Type; Last_Index : Natural; Prime_Num : String (1 ....
with agar.core.event; with agar.gui.text; with agar.gui.widget.icon; package agar.gui.widget.socket is use type c.unsigned; type bg_type_t is (SOCKET_PIXMAP, SOCKET_RECT, SOCKET_CIRCLE); for bg_type_t use (SOCKET_PIXMAP => 0, SOCKET_RECT => 1, SOCKET_CIRCLE => 2); for bg_type_t'size use c.unsigned'size; ...
-- Copyright 2016-2021 Bartek thindil Jasicki -- -- This file is part of Steam Sky. -- -- Steam Sky is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (a...
-- Copyright 2017 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- -- 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 2 of the License, or -- (at your option) any later version. -- -- ...
with Ada.Numerics.Generic_Elementary_Functions; with Ada.Numerics.Float_Random; package body Simulated_Annealing is package Value_Functions is new Ada.Numerics.Generic_Elementary_Functions (Float); use Value_Functions; EPSILON : constant Float := 0.001; Generator : Ada.Numerics.Float_Random.Generato...