content
stringlengths
23
1.05M
with DDS; with Dds.DomainParticipant; with DDS.Publisher; with DDS.Subscriber; with Ada.Finalization; package DDS.Entity_Params is type RTI_Connext_EntityParams is new Ada.Finalization.Limited_Controlled with record Participant : DDS.DomainParticipant.Ref_Access; Service_Name : DDS.String;...
package body Commands is function Construct_Date_Time (D : Day; H : Hour; M : Minute) return Comm_Rec is SData : Comm_Rec (Set_Day_Time); begin SData.Dy := Day'Pos (D); SData.Hr := H; SData.Min := M; return SData; end Construct_Date_Time; function Construct_...
package body agar.gui.widget.slider is use type c.int; package cbinds is procedure set_int_increment (slider : slider_access_t; increment : c.int); pragma import (c, set_int_increment, "AG_SliderSetIntIncrement"); procedure set_real_increment (slider : slider_access_t; incre...
with Ada.Text_IO; package body Irc.Bot is function Create (Server : String; Port : GNAT.Sockets.Port_Type; Nick : String := "adabot") return Connection is use GNAT.Sockets; C : Connection; NickUB : SU.Unbounded_String...
------------------------------------------------------------------------------ -- G E L A X A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with avtas.lmcp; use avtas.lmcp; with avtas.lmcp.types; use avtas.lmcp.types; with afrl.cmasi.enumerations; use afrl.cmasi.enumerations; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with afrl.cmasi.keyValuePair; use afrl.cma...
-- Abstract: -- -- WisiToken lexer using compiled regular expressions interpreted at runtime. -- -- This is slower, but easier to use, than the Aflex lexer; it is -- used in most of the WisiToken unit tests. Since it uses regexp, it -- is easy to convert to an Aflex lexer. -- -- Copyright (C) 2015, 2017 - 2019 Fr...
package GDNative is function To_Str (S : Wide_String) return String; function To_Wide (S : String) return Wide_String; end;
-- Test_HalfSipHash -- a short test program for a 32-bit friendly version of SipHash, the algorithm -- described in "SipHash: a fast short-input PRF" -- by Jean-Philippe Aumasson and Daniel J. Bernstein -- Copyright (c) 2016, James Humphry - see LICENSE file for details with Ada.Text_IO; use Ada.Text_IO; with Ada.Int...
----------------------------------------------------------------------- -- serialize-tools-tests -- Unit tests for serialization tools -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2018 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 Ada.Text_IO,Ada.Calendar, Ada.Numerics.Discrete_Random; use Ada.Text_IO; procedure Grade3 is type Barr is array (Natural range <>,Natural range <>) of Boolean; protected Organism is entry Move(X,Y : Natural; is_infected : out Boolean); function inArea(x,y:Natural) return Boolean; proce...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with GNAT.Exception_Traces; with GNAT.Traceback.Symbolic; package body DDS.Request_Reply.Tests.Simple is begin GNAT.Exception_Traces.Trace_On (GNAT.Exception_Traces.Every_Raise); GNAT.Exception_Traces.Set_Trace_Decorator (GNAT.Traceback.Symbolic.Symbolic_Traceback_No_Hex'Access); end DDS.Request_Reply.Tests.Simpl...
package body Generic_PID_Controller with SPARK_Mode => On is procedure initialize( Pid : out Pid_Object; Kp : PID_Coefficient_Type; Ki : PID_Coefficient_Type; Kd : PID_Coefficient_Type; I_Limit_Low : PID_Dat...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-- The Cupcake GUI Toolkit -- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com> -- Report bugs and issues on <http://github.com/skordal/cupcake/issues> -- vim:ts=3:sw=3:et:si:sta with Ada.Text_IO; with Cupcake.Backends; with Cupcake.Backends.Cairo; package body Cupcake is package Text_IO renames...
pragma Task_Dispatching_Policy(FIFO_Within_Priorities); with Vehicle_Controller; procedure Main with Priority => 0 is begin loop null; end loop; end Main;
with Rejuvenation.Text_Rewrites; use Rejuvenation.Text_Rewrites; package Rejuvenation.Pretty_Print is -- TODO: what if we only want to insert (append/prepend) code that -- should be pretty printed? -- In that case we have no node (yet) to surround -- with pretty print section! -- This functionalit...
with Ada.Text_IO; use Ada.Text_IO; with Support.Strings; use Support.Strings; with Ada.Calendar; package body Support.Clock is package Real_IO is new Ada.Text_IO.Float_IO (Real); use Real_IO; function get_date Return string is the_date...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with Real_Type; use Real_Type; with Vectors_xD; pragma Elaborate_All (Vectors_xD); package Vectors_3D is type Coordinates is (x, y, z); package Vectors_3Di is new Vectors_xD (Real, Coordinates); subtype Vector_3D is Vectors_3Di.Vector_xD; ...
-- -- Copyright 2022 (C) Nicolas Pinault (aka DrPi) -- -- SPDX-License-Identifier: BSD-3-Clause -- with Interfaces; use Interfaces; package Uf2 is MAGIC_START0 : constant := 16#0A324655#; MAGIC_START1 : constant := 16#9E5D5157#; MAGIC_END : constant := 16#0AB16F30#; FLAG_NOT_MAIN_FLASH : constan...
package body agar.gui.widget.box is package cbinds is procedure set_homogenous (box : box_access_t; homogenous : c.int); pragma import (c, set_homogenous, "AG_BoxSetHomogenous"); procedure set_label (box : box_access_t; label : cs.chars_ptr); pragma import (c, ...
with Unchecked_Conversion; with System; -- ============================================================================= -- Package AVR.TIMERS -- -- Implements timers configurations for the MCU micro-controller. -- ============================================================================= package AVR.TIMERS is ...
-- 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.CASPER is pragma Preelaborate; ...
-- { dg-do compile } with System; package body addr1 is task type T is entry Send (Location : System.Address); end; task body T is begin accept Send (Location : System.Address) do declare Buffer : String (1 .. 100); for Buffer'Address use Location; -- Test ...
with System.Machine_Code; use System.Machine_Code; with System; use System; with Interfaces; use Interfaces; with MSP430_SVD; use MSP430_SVD; with Flash; with Board; package body Bootloader is Line : array (Unsigned_16 range 0 .. 47) of Unsigned_8; Write_Addr : Unsigned_16; Count : Unsigned_8; User_Vecto...
-- C74409B.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...
function Fib(x: in Integer) return Integer is Result : Integer; begin if x = 0 then Result := 0; elsif x = 1 then Result := 1; else Result := Fib(x-2) + Fib(x-1); end if; return Result; end Fib;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with GNAT.Directory_Operations; with GNATCOLL.Projects; with GNATCOLL.VFS; with Libadalang.Project_Provider; with Generic_Logging; with Lal_Adapter.Unit; package body Lal_Adapter.Context is -- Raises Internal_Error: procedure Parse_Input_File (This : in out Class; Input_File_Name : in String)...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package GL.Low_Level.Enums is pragma Preelaborate; -- Unlike GL.Enums, this package is not private and hosts enum types that may -- be needed by third-party code or wrappers. type Texture_...
-- -- 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 GAWS_Log; with Config_File; with Web_...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Tags.Generic_Dispatching_Constructor; package body kv.avm.Transactions is use Ada.Tags; -- Bind the dispatcher to the constructor method. function Construct_Tranaction is new Ada.Tags.Generic_Dispatching_Constructor (T => Transactions_Interface, Parameters => Obligatory_Para...
with HWIF_Types; use HWIF_Types; with MMap; with System.Storage_Elements; with System; pragma Elaborate(MMap); package HWIF is Addr : constant System.Address := MMap.Get_MMAP_RW; function "+" (A : in System.Address; B : in System.Storage_Elements.Storage_Offset) ...
package collada.Library.animations -- -- Models a collada 'animations' library, which is a collection of animations. -- is type Inputs_view is access all Library.Inputs; type int_Array_view is access all int_Array; ----------- --- Sampler -- type Sampler is record Id : Text; ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.float_Text_IO; use Ada.float_Text_IO; with Ada.integer_Text_IO; use Ada.integer_Text_IO; package body matrice_pleine is procedure initialiser(M : out T_Matrice) is begin M(1..Capacite)(1..Capacite) := (1..Capacite =>(1..Capacite => 0.0)); end init...
-- { dg-do run } -- { dg-options "-flto" { target lto } } -- { dg-excess-errors "does not match original declaration" } with Lto19_Pkg1; procedure Lto19 is R : Lto19_Pkg1.Rec := (I => 1, A => (others => 0)); begin Lto19_Pkg1.Proc (R); end;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2020, AdaCore -- -- This spec has been automatically generated from STM32F0x0.svd -- This is a version for the STM32F0x0 MCU package Ada.Interrupts.Names is -- All identifiers in this unit are implementation defined pragma Implementation_Defined; ---------------- -- Interrupts -...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-jobs-services -- Job services -- Copyright (C) 2012, 2014, 2015, 2016, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
WITH Text_IO; USE Text_IO; PACKAGE BODY Screen IS -- Implementation of package SCREEN PACKAGE My_Int_IO IS NEW Text_IO.Integer_IO(INTEGER); PROCEDURE Beep IS BEGIN Text_IO.Put (Item => ASCII.BEL); END Beep; PROCEDURE ClearScreen IS BEGIN Text_IO.Put (Item => ASCII.ESC); ...
AcceptedWhileDraining = false Activity = "Idle" AddressV1 = "{[ p=\"primary\"; a=\"10.0.0.3\"; port=36347; n=\"Internet\"; alias=\"gthain.localdomain\"; spid=\"startd_888024_2e07\"; noUDP=true; ], [ p=\"IPv4\"; a=\"10.0.0.3\"; port=36347; n=\"Internet\"; alias=\"gthain.localdomain\"; spid=\"startd_888024_2e07\"; noUDP=...
-------------------------------------------------------------------------------- -- 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...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with bullet_c.Pointers; with bullet_c.ray_Collision; with c_math_c; with c_math_c.Matrix_3x3; with c_math_c.Matrix_4x4; with c_math_c.Pointers; with c_math_c.Triangle; with c_math_c.Vector_2; with c_math_c.Vector_3; with Interfaces.C; with Swig; pac...
with Ada.Unchecked_Deallocation; package body UxAS.Comms.Transport.ZeroMQ_Fabric is procedure Free is new Ada.Unchecked_Deallocation (ZMQ_Fabric, ZMQ_Fabric_Reference); -------------- -- Instance -- -------------- function Instance return not null ZMQ_Fabric_Reference is begin if The_Instanc...
-- CC3011A.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 (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with gel.World; limited with openGL.Renderer.lean; package gel.World.client -- -- Provides a gel world. -- is type Item is limited new gel.World.item with private; type View is access all Item'Class; type Views is array (Positive range <>) of View; --------- -- Forge -- package...
package WebIDL.Scanner_Types is pragma Preelaborate; type State is mod +32; subtype Looping_State is State range 0 .. 23; subtype Final_State is State range 13 .. State'Last - 1; Error_State : constant State := State'Last; INITIAL : constant State := 0; In_Comment : constant State := 12; typ...
----------------------------------------------------------------------- -- gen-model-projects -- Projects meta data -- Copyright (C) 2011 - 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 fi...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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...
-- This spec has been automatically generated from STM32WL5x_CM0P.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.EXTI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype RTSR1_RT_Field i...
with Interfaces.C; with System; package Lv.Objx.Img is subtype Instance is Obj_T; -- Create an image objects -- @param par pointer to an object, it will be the parent of the new button -- @param copy pointer to a image object, if not NULL then the new object will be copied from it -- @return point...
with System; -- @summary Catches all exceptions, logs them to NVRAM and reboots. package Crash with SPARK_Mode => Off is pragma Elaborate_Body; -- XXX! SPARK must be off here, otherwise this function is not being implemented. -- default exception handler (all exceptions will be catched here) procedure La...
type Integer_Array is array (Positive range <>) of Integer; function Sum(A: Integer_Array) return Integer is S: Integer := 0; begin for I in A'Range loop S := S + A(I); end loop; return S; end Sum; ... A := Sum((1,2,3)); -- A = 6 B := Sum((1,2,3,4)); -- B = 10
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Iterator_Interfaces; with Program.Elements; with Program.Lexical_Elements; package Program.Element_Vectors is pragma Pur...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Calendar; use Ada.Calendar; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure HelloWorld is Now : Time := Clock; Now_Year : Year_Number; Now_Month : Month_Number; Now_Day : Day_Number; Now_Seconds : Day...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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; use Ada.Text_Io; with Mergesort; procedure Mergesort_Test is type List_Type is array(Positive range <>) of Integer; package List_Sort is new Mergesort(Integer, Positive, List_Type); procedure Print(Item : List_Type) is begin for I in Item'range loop Put(Integer'Image(Item(I...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Author: Martin Becker (becker@rcs.ei.tum.de) with Ada.Tags; with Ada.Text_IO; -- TODO: remove with ULog.Identifiers; -- @summary -- Implements a serialization of log objects (records, --...
with Ada.Exception_Identification.From_Here; with Ada.Exceptions.Finally; with System.Address_To_Named_Access_Conversions; with System.Formatting; with System.Growth; with System.Long_Long_Integer_Types; with System.Zero_Terminated_Strings; with C.stdlib; with C.sys.types; with C.unistd; package body System.Native_IO.N...
with Ada.Strings.Unbounded; with Simple_Logging; package body CLIC.Config is use Ada.Strings.Unbounded; use TOML; package Trace renames Simple_Logging; function Image (F : TOML.Any_Float) return String; ---------------------- -- Import_Recursive -- ---------------------- procedure Import_...
package body Impact.d2.Orbs -- -- A port of the Box2D physics engine. -- is procedure dummy is begin null; end dummy; end Impact.d2.Orbs;
package Aggr12 is type Hair_Color_Type is (Black, Brown, Blonde, Grey, White, Red); type Rec is record I1, I2 : Hair_Color_Type; end record; A : constant Rec := (Black, Blonde); procedure Print (Data : String); procedure Test; end Aggr12;
-- Lumen.Internal -- Internal declarations not intended for user applications -- -- 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...
-- ----------------------------------------------------------------- -- -- AdaSDL -- -- Binding to Simple Direct Media Layer -- -- Copyright (C) 2001 A.M.F.Vargas -- -- Antonio M. F....
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- Strings_Edit.Time_Conversions Luebeck -- -- Interface Summer, 2016 -- -- ...
--////////////////////////////////////////////////////////// -- 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 SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Core; use SPARKNaCl.Core; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with Random; with Ada.Text_IO; use Ada.Text_IO; procedure Core1 is Shared : constant Salsa20_Key := Construct ((16#4a#, 16#5d#, 16#9d#, 16#5b#, 16#a4#, 16#ce#, 16#2d#, 16#e...
-- 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.PWM is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CONFIG_SCALE_Field is HAL....
package body Ada.Storage_IO is use type System.Storage_Elements.Storage_Offset; procedure Read (Buffer : Buffer_Type; Item : out Element_Type) is subtype T is System.Storage_Elements.Storage_Array ( 1 .. (Item'Size + Standard'Storage_Unit - 1) / Standard'Storage_Unit); ...
with Ada.Environment_Variables; use Ada.Environment_Variables; with Ada.Text_IO; use Ada.Text_IO; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with System; use System; with Ada.Unchecked_Conversion; procedure outcomes is typ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
with vectores; use vectores; function Posicion (n: in Integer; V: in Vector_De_Enteros) return Integer is -- pre: V contiene al menos un elemento (V'Length >= 1) -- los elementos no siguen ningun orden. el elemento que se busca no tiene por que estar en V -- post: posicion en la que se encuentra N y, si no esta, -1 ...
package Renaming11 is subtype Index_Type is Integer range 1..10; type Arr is array (Index_Type range <>) of Integer; type Rec (Min : Index_Type; Max : Index_Type) is record A : Arr (Min .. Max); end record; type Ptr1 is access Rec; type Ptr2 is access Ptr1; type Ptr3 is access Ptr2; ...
package body Benchmark.Heap is function Create_Heap return Benchmark_Pointer is begin return new Heap_Type; end Create_Heap; procedure Insert(benchmark : in Heap_Type; value : in Integer) is size : constant Integer := Read_Value(benchmark, 0) + 1; ptr : Integ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; package body Perfect_Number is function Is_Perfect (N : Natural) return Boolean is Sum : Natural := 0; begin for I in 1..N-1 loop if N mod I = 0 then Sum := Sum + I; end if; end loop; if Sum = N then return True; else...
-- Ada regular expression library -- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net> -- Report bugs and issues on <https://github.com/skordal/ada-regex> with AUnit.Test_Caller; with Utilities_Test_Cases; package body Utilities_Test_Suite is package Utilities_Test_Caller is new AUnit.Test_C...
-- 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.UTICK is pragma Preelaborate; ...
-- C47008A.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...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------- -- 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 Ada.Integer_Text_IO; procedure Euler5 is function Divisible(I: Positive) return Boolean is (for all D in Positive range 3 .. 20 => I mod D = 0); I: Positive := 20; begin while not Divisible(I) loop I := I + 20; end loop; Ada.Integer_Text_IO.Put(I); end Euler5;
with System; package body STM32.MPU is type RLAR_Overlay (As_32Bit : Boolean := False) is record case As_32Bit is when False => Val : HAL.UInt32; when True => Reg : MPU_RLAR_Register; end case; end record with Unchecked_Union, Size => 32; pr...
pragma License (Unrestricted); -- BSD 3-Clause -- translated unit from SFMT (test.c) -- -- Copyright (C) 2007 Mutsuo Saito, Makoto Matsumoto and Hiroshima -- University. All rights reserved. -- -- The new BSD License is applied to this software, see LICENSE.txt -- -- -- Ada version by yt -- with Ada.Command_Li...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with File_Operations; with Ada.Characters.Latin_1; with Ada.Directories; with Ada.Exceptions; with Ada.Text_IO; package body INI_File_Manager is package EX renames Ada.Exceptions; package LAT renames Ada.C...
-- 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 Ships.Crew.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Ships.Crew.Test_Data .Test with ...
package test_Package is type Time_Rep is range 1 .. 5; type Time is new Time_Rep; end test_Package;
-- Lua.LibInternal -- Contains the routines for loading the standard Lua library -- Generated from lualib.h and then manually tidied up -- Copyright (c) 2015, James Humphry -- Derived from the original Lua work -- Copyright (C) 1994-2015 Lua.org, PUC-Rio. -- See LICENSE for details with Interfaces.C; use Interfaces...