content
stringlengths
23
1.05M
-- nymph.ada - Main package file for the NymphRPC package. -- -- Revision 0 -- -- 2018/09/24, Maya Posch package nymph is -- public private -- end nymph;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- ABench2020 Benchmark Suite -- -- Linear Search 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; procedure Linear_Search is type Vector is array...
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Opt42 is type Index_Type is range 1 .. 7; type Row_Type is array (Index_Type) of Float; type Array_Type is array (Index_Type) of Row_Type; function "*" (Left, Right : in Array_Type) return Array_Type; end Opt42;
----------------------------------------------------------------------- -- secret-services -- Ada wrapper for Secret Service -- 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 ...
pragma Check_Policy (Trace => Ignore); package body System.Shared_Storage is procedure Shared_Var_Lock (Var : String) is begin pragma Check (Trace, Ada.Debug.Put (Var)); Lock_Hook (Var); end Shared_Var_Lock; procedure Shared_Var_Unlock (Var : String) is begin pragma Check (Trace, Ada....
-- LED-Library by Emanuel Regnath (emanuel.regnath@tum.de) Date:2_015-05-20 -- -- Description: -- Portable LED Library that features switching, blinking and morse (non-blocking) -- -- Setup: -- To port the lib to your system, simply overwrite the 2 functions LED_HAL_init -- and LED_HAL_set in the .cpp file and...
------------------------------------------------------------------------------ -- -- -- AUDIO / RIFF / WAV -- -- -- -- ...
with STM32GD.USART; use STM32GD.USART; with STM32_SVD; with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control; package Serial is subtype Line_Length is Integer range 1 .. 64; type Serial_Data is record Data : USART_Data (Line_Length); Length : Natural; end record; prote...
with MSP430_SVD; use MSP430_SVD; with MSPGD.Clock.Source; generic Module : SPI_Module_Type; Speed: UInt32; Mode : SPI_Mode := Mode_0; with package Clock is new MSPGD.Clock.Source (<>); package MSPGD.SPI.Peripheral is pragma Preelaborate; procedure Init; procedure Send (Data : in Unsigned_8); ...
with Tkmrpc.Types; with Tkmrpc.Operations.Ike; package Tkmrpc.Request.Ike.Isa_Auth is Data_Size : constant := 1908; type Data_Type is record Isa_Id : Types.Isa_Id_Type; Cc_Id : Types.Cc_Id_Type; Init_Message : Types.Init_Message_Type; Signature : Types.Signature_Type; ...
-- Generated at 2015-10-25 22:37:42 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-tags-maps.sx package Natools.Static_Maps.Web.Tags is pragma Pure; type List_Command is (Unknown_List_Command, All_Children, All_Descendants, All_Elements, All_Leaves, Current_Elemen...
-- MIT License -- Copyright (c) 2021 Stephen Merrony -- 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, copy, modify,...
with AUnit.Test_Suites; with AUnit.Test_Fixtures; with AUnit.Test_Caller; with Testsuite.Encode; with Testsuite.Decode; private with Test_Utils.Abstract_Decoder; private with Test_Utils.Abstract_Encoder; package Testsuite.Encode_Decode is procedure Set_Kinds (E : Testsuite.Encode.Encoder_Kind; ...
package body Kafka.Topic.Partition is procedure List_Add(List : Partition_List_Type; Topic : String; Partition : Integer_32) is C_Topic : chars_ptr := New_String(Topic); Unused : System.Address; begin Unused := rd_kafka_topic_partit...
-- 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 Tk.Image.Photo.Photo_Options_Test_Data.Photo_Options_Tests is type Test_Photo_Options is new GNATtest_Generated.GNATtest_...
with Ada.Text_IO; with Ada.Characters.Latin_1; -- There's also 'with ASCII;', but that's obsolete with Ada.Strings.Fixed; procedure Gol is use Ada.Text_IO; Width : constant Positive := 5; Height : constant Positive := 5; type Cell is (Dead, Alive); type Rows is mod Height; type Cols is mod W...
with AUnit.Assertions; use AUnit.Assertions; with Brackelib; package body Queues_Tests is Container : State_Queues.Queue; procedure Set_Up (T : in out Test) is begin null; end Set_Up; procedure Test_Enqueue (T : in out Test) is begin Assert (Size (Container) = 0, "Incorrect size before...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with Ada.Unchecked_Conversion; with Cortex_M.Cache; use Cortex_M.Cache; with STM32.DMA2D; use STM32.DMA2D; package body STM32.DMA2D_Bitmap is function To_DMA2D_Buffer (Buffer : HAL.Bitmap.Bitmap_Buffer'Class) return DMA2D_Buffer with Inline; function To_DMA2D_CM is new Ada.Unchecked_Conversion ...
with Algorithm; use Algorithm; with Communication; use Communication; with Types; use Types; package Botstate is type Bot is tagged record Algo : Algorithm_Ptr; Port : Serial_Port; end record; procedure Init (Self : in out Bot; TTY_Name : in String; ...
-- -- Convert any image or animation file to BMP file(s). -- -- Middle-size test/demo for the GID (Generic Image Decoder) package. -- -- Supports: -- - Transparency (blends transparent or partially opaque areas with a -- background image, gid.gif, or a fixed, predefined colour) -- - Display orientatio...
with Digital; use Digital; with Analog; use Analog; with Pins_STM32F446; use Pins_STM32F446; package AdaCar.Entrada_Salida is procedure Init_System; function Lectura_Digital(Canal: Canal_DI) return Estado_Digital; procedure Salida_Digital(Canal: Canal_DO; Valor: Estado_Digital); procedure Comi...
------------------------------------------------------------------------------- -- Copyright (c) 2016, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of s...
with GL; use GL; with GLU; use GLU; with Glut; use Glut; with GNAT.OS_Lib; package body ada_sphere_procs is procedure display is begin glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); glutSolidSphere(1.0, 10, 10); glutSwapBuffers; end display; procedure reshape(w : Integer; h : Integer) is ...
with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with GNATCOLL.Projects; with GNATCOLL.VFS; with Langkit_Support.Slocs; with Libadalang.Analysis; with Libadalang.Common; with Libadalang.Project_Provider; procedure Main is package LAL renames Libadalang.Analysis; package LALCO renames Libadalang.Common;...
with Interfaces.C; with System.Address_To_Access_Conversions; with System.Storage_Elements; with Ada.Strings.Unbounded; package body OpenAL.List is package C renames Interfaces.C; package UB_Strings renames Ada.Strings.Unbounded; package Bytes is new System.Address_To_Access_Conversions (Object => C.ch...
-- { dg-do run } -- { dg-options "-gnatp" } procedure Misaligned_Nest is type Int is record V : Integer; end record; type Block is record B : Boolean; I : Int; end record; pragma Pack (Block); for Block'Alignment use 1; type Pair is array (1 .. 2) of Block; P : Pair; begin...
with RP.Device; with Tiny; procedure LEDs is Delay_In_Between : constant Integer := 1000; begin Tiny.Initialize; loop -- LED Red RP.Device.Timer.Delay_Milliseconds (Delay_In_Between); Tiny.Switch_On (Tiny.LED_Red); RP.Device.Timer.Delay_Milliseconds (Delay_In_Between); Tiny.S...
with Version; with CLIC.Subcommand; private with CLIC.Subcommand.Instance; private with Ada.Text_IO; private with CLIC.TTY; private with GNAT.OS_Lib; with Templates_Parser; package Commands is Translations : Templates_Parser.Translate_Set; Wrong_Command_Arguments : exception; Child_Failed : exception; -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Constraints; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.Digits_Constraints is pra...
with datos; use datos; procedure Desplazar_Una_Posicion_A_La_Derecha (L : in out Lista_Enteros; PosActual, Pos : in Integer) is --Pre: Pos indica una posicion de L (entre 1 y L.Cont + 1) --Post: se han desplazado una posicion a la derecha todos los -- elementos de L, empezando por Pos hasta L.Cont...
package body System.Storage_Elements is pragma Suppress (All_Checks); function "+" (Left : Address; Right : Storage_Offset) return Address is begin return System'To_Address ( Integer_Address (Left) + Integer_Address'Mod (Right)); end "+"; function "+" (Left : Storage_Offset; Right : Addr...
with Trendy_Terminal.Completions; with Trendy_Terminal.Maps; with Trendy_Terminal.Lines; use Trendy_Terminal.Lines; with Trendy_Terminal.Lines.Line_Vectors; package body Trendy_Terminal.IO.Line_Editors is function Should_Terminate_Input (Input_Line : ASU.Unbounded_String) return Boolean is Key_CR : consta...
package Integrators.RK4 is pragma Preelaborate; -- Runge Kutta order 4 integrator type RK4_Integrator is new Integrator with private; overriding procedure Integrate (Object : in out RK4_Integrator; Subject : in out Physics_Object'Class; T, DT : GL.Types.Double); overriding ...
with HAL.Bitmap; use HAL.Bitmap; package Utils is BG : constant Bitmap_Color := (Alpha => 255, others => 0); procedure Clear(Update : Boolean; Color : Bitmap_Color := BG); function GetRandomFloat return Float; end Utils;
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
package Prefix_Notation is type My_Type is tagged private; procedure Operator_Zero (X : My_Type); procedure Operator_One (X : My_Type; A : Integer); private type My_Type is tagged null record; procedure Operator_Zero (X : My_Type) is null; procedure Operator_One (X : My_Type; A : Integer) is nu...
-- Lumen.Image.PPM -- Load and save netpbm's PPM image data -- -- Chip Richards, NiEstu, Phoenix AZ, Spring 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, p...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
with GMP.Random; with Ada.Text_IO; procedure random is Gen : aliased GMP.Random.Generator; begin Ada.Text_IO.Put_Line (Long_Integer'Image (GMP.Random.Random (Gen))); Ada.Text_IO.Put_Line (Long_Integer'Image (GMP.Random.Random (Gen))); Ada.Text_IO.Put_Line (Long_Integer'Image (GMP.Random.Random (Gen))); end random;
-- with EU_Projects.Nodes.Action_Nodes.WPs; -- with EU_Projects.Nodes.Action_Nodes.Tasks; -- with EU_Projects.Nodes.Timed_Nodes.Deliverables; -- with EU_Projects.Nodes.Timed_Nodes.Milestones; -- with Ada.Tags; -- with EU_Projects.Nodes.Partners; package body EU_Projects.Nodes is ----------- -- After -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C46024A.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 Ada.Text_IO; use Ada.Text_IO; procedure Barnes18 is subtype Digit is Character range '0' .. '9'; type Counters is array (Digit) of Natural range 0 .. 2; function Val (C : Character) return Natural is (Natural'Value ("" & C)); -------------------- -- Print_Solution -- -------------------- ...
----------------------------------------------------------------------- -- babel-base-users-- User's database for file owership identification -- Copyright (C) 2014, 2015 Stephane.Carrez -- Written by Stephane.Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) with HIL.Devices; -- @summary -- Target-independent specification for HIL of GPIO package HIL.GPIO with SPARK_Mode is type GPIO_Signal_Ty...
-- Mail Baby API -- This is an API defintion for accesssing the Mail.Baby mail service. -- -- The version of the OpenAPI document: 1.0.0 -- Contact: detain@interserver.net -- -- NOTE: This package is auto generated by OpenAPI-Generator 6.0.0-SNAPSHOT. -- https://openapi-generator.tech -- Do not edit the class ma...
package body Misaligned_Param_Pkg is type IP is access all Integer; function Channel_Eth (Kind : IP) return Integer; pragma Export (Ada, Channel_Eth, "channel_eth"); function Channel_Eth (Kind : IP) return Integer is begin Kind.all := 111; return 0; end; end Misaligned_Param_Pkg;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- smart_c_resources.adb -- A reference counting package to wrap a C type that requires initialization -- and finalization. -- 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 -- co...
with Sodium.Functions; use Sodium.Functions; with Ada.Text_IO; use Ada.Text_IO; procedure Demo_Ada is upper_bound : Natural32 := 16#FFF#; Custom_Size : Key_Size_Range := 48; begin if not initialize_sodium_library then Put_Line ("Initialization failed"); return; end if; Put_Line (" Full r...
-- -- 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...
package GLOBE_3D.Math is ------------- -- Vectors -- ------------- function "*" (l : Real; v : Vector_3D) return Vector_3D; pragma Inline ("*"); function "*" (v : Vector_3D; l : Real) return Vector_3D; pragma Inline ("*"); function "+" (a, b : Vector_3D) return Vector_3D; pragma Inlin...
-- SPDX-License-Identifier: MIT -- -- Copyright (c) 1999 .. 2018 Gautier de Montmollin -- SWITZERLAND -- -- 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, includin...
With Ada.Text_IO.Text_Streams; Function INI.Read_INI(File_Name : String) return INI.Instance is Function Open_File(File_Name : String) return Ada.Text_IO.File_Type is use Ada.Text_IO; Begin Return Result : File_Type do Ada.Text_IO.Open( File => Result, ...
------------------------------------------------------------------------------ -- C O D E P E E R / S P A R K -- -- -- -- Copyright (C) 2015-2020, AdaCore -- -- ...
package Shapes is pragma Elaborate_Body; type Float_T is digits 6; type Vertex_T is record X : Float_T; Y : Float_T; end record; type Vertices_T is array (Positive range <>) of Vertex_T; -- Create abstract Shape_T with some information -- Create primitive subprograms to get/set object...
package collada.Library.visual_scenes -- -- Models a collada 'visual_scenes' library, which contains node/joint hierachy info. -- is ------------ -- Transform -- type transform_Kind is (Translate, Rotate, Scale, full_Transform); type Transform (Kind : transform_Kind := transform_Kind'First) is re...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.SPI is pragma Preelaborate; --------------- -- Registers -- --------------- -- control register 1 type CR1_Register i...
with Es_Par; with Listas_Enteros; procedure Crear_Sublista_Pares is new Listas_Enteros.Crear_Sublista(Cuantos => 4, Filtro => Es_Par);
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-streams-buffered-lzma -- LZMA streams -- Copyright (C) 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this f...
package FLTK.Widgets.Charts is type Chart is new Widget with private; type Chart_Reference (Data : not null access Chart'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (X, Y, W, H : in Integer; Text ...
with Ada.Characters.Handling; with Ada.Numerics.Discrete_Random; use Ada; use Ada.Characters; package body Solitaire_Operations is function Value (Card : Card_Value) return Card_Value is begin -- Value if Card >= Card_Value'Last then return Card_Value'Last - 1; else return Card; ...
package body any_Math.any_Geometry.any_d3 is -------- -- Plane -- procedure normalise (the_Plane : in out Plane) is use Functions; inverse_Magnitude : constant Real := 1.0 / SqRt ( the_Plane (1) * the_Plane (1) + the_Plane (2) * the_Pl...
package body afrl.cmasi.OperatingRegion.SPARK_Boundary with SPARK_Mode => Off is --------------- -- Get_Areas -- --------------- function Get_Areas (Region : OperatingRegion) return OperatingRegionAreas is InAreas : constant afrl.cmasi.OperatingRegion.Vect_Int64_Acc := Region.getKeepInAreas...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Interfaces.C; package osmesa_c.Pointers is -- GLenum_Pointer -- type GLenum_Pointer is access all osmesa_c.GLenum; -- GLenum_Pointers -- type GLenum_Pointers is array (Interfaces.C .size_t range <>) of ...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
with Device; use Device; with Memory.Container; use Memory.Container; with Memory.Join; use Memory.Join; package body Memory.Transform is procedure Process(mem : in out Transform_Type; address : in Address_Type; size : in Address_Type; ...
with Alumnos; package Clases is Max_Alumnos : constant Integer := 100; subtype Num_Alumno is Integer range 1..Max_Alumnos; type Clase is private; procedure Inserta_Alumno (Alu : in Alumnos.Alumno; La_Clase : in out Clase); function Dame_Alumno (Num : in Num_Alumno; La_Clase : in Clase) return Alumnos.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. -- package Setup is Default_Template_Ada ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Ada.Command_Line, Apsepp.Test_Node_Class.Runner_Sequential.Create; package body Apsepp_Test_Harness is ---------------------------------------------------------------------------- procedure Apse...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: LSM303D Driver -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: Register definitions for the LSM303D -- -- ToDo: -- [ ] Implementation package LSM303D is A...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Torrent.Shutdown is protected body Signal is entry Wait_SIGINT when SIGINT_Triggered is begin S...
with Irc.Bot; with Irc.Commands; with Irc.Message; with Ada.Strings.Unbounded; -- This bot simply connects to an IRC server and sticks -- around without doing much of anything. Most simplistic -- example. procedure Pong_Bot is Bot : Irc.Bot.Connection; begin -- Specify the server, port, and nick of our bo...
package My_Package is type My_Type is tagged private; procedure Some_Procedure(Item : out My_Type); function Set(Value : in Integer) return My_Type; private type My_Type is tagged record Variable : Integer := -12; end record; end My_Package;
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.PLU is pragma Preelaborate; ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Type_Definitions; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.Modular_Types is pra...
-- Euler1 in Ada with Ada.Integer_Text_IO; procedure Euler1_2 is function mySum(n : in Integer; size : in Integer) return Integer is begin return n * (((size/n) **2 + (size/n)) / 2); end mySum; function Euler(size : in Integer) return Integer is begin return mySum(3,size) + mySum(5,size)...
pragma License (Unrestricted); -- implementation unit specialized for Darwin (or FreeBSD) with C.dirent; with C.sys.dirent; package System.Native_Directories.Searching is pragma Preelaborate; subtype Directory_Entry_Access is C.sys.dirent.struct_dirent_ptr; function New_Directory_Entry (Source : not null Di...
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler); with STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32_SVD.RCC; with Peripherals; procedure Main is package GPIO renames STM32GD.GPIO; package LED is new GPIO.Pin (Pin => GPIO.Pin_5, Port => GPIO.Port_A, Mode => GPIO.Mode_Out); package Butt...
with System.Long_Long_Integer_Types; package body System.Boolean_Array_Operations is pragma Suppress (All_Checks); use type Long_Long_Integer_Types.Word_Unsigned; use type Storage_Elements.Storage_Element; use type Storage_Elements.Storage_Offset; subtype Word_Unsigned is Long_Long_Integer_Types.Word_Un...
-- { dg-do compile } package Pack7 is type R (D : Natural) is record S : String (1 .. D); N : Natural; B : Boolean; end record; for R'Alignment use 4; pragma Pack (R); end Pack7;
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Swig; with Interfaces.C; package bullet_c is -- Shape -- subtype Shape is Swig.opaque_structure; type Shape_array is array (Interfaces.C.size_t range <>) of aliased bullet_c.Shape; -- Object -- subtype Object is Swi...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore and other contributors -- -- -- -- ...
with Units; use Units; --with Altunits; use Altunits; with Ada.Text_IO; use Ada.Text_IO; procedure main is a : Length_Type := 5.0; b : Time_Type := 2.0; v : Linear_Velocity_Type := 3.0; --v : Linear_Velocity_Type := 3.0; function calc_my_velocity( l : Length_Type; t : Time_Type ) return Linear_Velocit...
----------------------------------------------------------------------- -- babel-Streams-xz -- XZ/LZMA stream 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 use thi...
-- 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 Events.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Events.Test_Data .Test with null ...
-- ---------------------------------------------------------------------------- -- -- The intent of this unit is to provide a simple main program that runs -- one Test_Case. -- The procedure is intended to be instansiated as a childern to -- the package containing the test_case. -- -- with AUnit.Test_Cases.Simple...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- 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.Text_IO; with Ada.Command_Line; with SDL.Video.Windows.Makers; with SDL.Video.Renderers.Makers; with SDL.Video.Surfaces.Makers; with SDL.Video.Textures.Makers; with SDL.Images.IO; with SDL.Events.Events; with SDL.Error; procedure Main is Window_Title : constant String := "Hello World!"; Image_Name ...
----------------------------------------------------------------------- -- asf-navigations -- Navigations -- Copyright (C) 2010, 2011, 2012, 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 f...
with Generic_Bounded_Image; with Interfaces; use Interfaces; pragma Elaborate_All (Generic_Bounded_Image); -- @summary functions to provide a string image of numbers -- overapproximating the length, otherwise we would need a -- separate body for each data type. This is tight enough -- in most cases. -- Also note...
with impact.d2.Math; package body impact.d2.orbs.Shape is function to_Circle (Radius : in float_math.Real) return Shape.item is begin return (m_radius => Radius); end to_Circle; function Clone (Self : in Item) return Shape.item is begin return Self; end Clone; function ...
-- 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...
with ada.text_io; use ada.text_io; with ada.integer_text_io; use ada.integer_text_io; with tools; use tools; procedure main is drawDeck: deck; -- Deck cards are drawn fromt discardDeck: deck; -- Deck removed cards are placed to playerHand: deck; -- Player's current hand dealerHand: deck; -- Dealers's current hand ...