CombinedText
stringlengths
4
3.42M
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Apsepp.Generic_Shared_Instance.Creator; package body Apsepp.Generic_Fixture.Creator is ---------------------------------------------------------------------------- function Alloc return Shared_Instan...
-- 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.TZSC is pragma Preelaborate; --------------- -- Registers -- --------------- -- TZIC interrupt enabl...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO, Ada.Strings.Fixed; use Ada.Text_IO, Ada.Strings, Ada.Strings.Fixed; function "+" (S : String) return String is Item : constant Character := S (S'First); begin for Index in S'First + 1..S'Last loop if Item /= S (Index) then return Trim (Integer'Image (Index - S'First), Both) & It...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
select A.Z; or delay 5.0; Put("Komunikat"); end select;
----------------------------------------------------------------------- -- babel-stores-local-tests - Unit tests for babel streams -- Copyright (C) 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- gen-artifacts-distribs-concat -- Concatenate based distribution artifact -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Generated at 2017-03-27 17:51:44 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-acl-maps.sx package Natools.Static_Maps.Web.ACL is pragma Pure; type Command is (Unknown_Command, Is_In_All_Groups, Is_In_Any_Group, Is_User); function To_Command (Key : String) return Comm...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- C87B05A.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...
-- A83C01H.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...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
-- C37306A.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) 2015, John Leimon <jleimon@gmail.com> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above copyright -- notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS ...
package body ACO.Protocols.Error_Control.Masters is procedure Periodic_Actions (This : in out Master; T_Now : in Ada.Real_Time.Time) is begin This.Timers.Process (T_Now); This.Monitor.Update_Alarms (T_Now); end Periodic_Actions; function Create_Heartbeat (State : A...
with openGL.Geometry, openGL.Texture; package openGL.Model.hexagon_Column.lit_colored_textured_faceted -- -- Models a lit, colored and textured column with 6 faceted shaft sides. -- is type Item is new Model.hexagon_Column.Item with private; type View is access all Item'Class; --------- --- F...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- ...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.TIM is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_CMS_Field is HAL.UInt2; subty...
-- CE3810A.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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32L0x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.LPTIM is pragma Preelaborate; --------------- -- Registers -- --------------- -- Interrupt and Status Register t...
with Interfaces.C.Strings, System; use type System.Address; package body FLTK.Widgets.Clocks.Updated.Round is procedure round_clock_set_draw_hook (W, D : in System.Address); pragma Import (C, round_clock_set_draw_hook, "round_clock_set_draw_hook"); pragma Inline (round_clock_...
-- diff (Ada.Exceptions.Finally) with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with System; package body Ada.Containers.Ordered_Maps is use type Binary_Trees.Node_Access; use type Copy_On_Write.Data_Access; function Upcast is new Unchecked_Conversion (Cursor, Binary_Trees.Node_Access)...
<?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="...
-- Copyright 2008, Google Inc. 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 source code must retain the above copyright -- notice, this list of conditio...
package Asis.Extensions is function Is_Static_Expression (Element : Asis.Expression) return Boolean; -- Element - Specifies the expression to query -- -- Checks if Element is static expression as defined in RM 4.9 -- -- Returns False for any unexpected Element. -- -- Expected Element_Kinds...
-- Error in samples has been corrcted with Kernel.Serial_Output; use Kernel.Serial_Output; with ada.strings.unbounded; use ada.strings.unbounded; with ada.strings.unbounded.text_io; use ada.strings.unbounded.text_io; with System; use System; with tools; use tools; package body devices is EYES_REACTION_...
with Ada.Directories; use Ada.Directories; with Ada.Strings.Unbounded; with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO ; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Containers.Vectors; use Ada.Containers; procedure Main is nameOk : boolean := false; fileExists : boole...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Nodes.Generic_Vectors; with Program.Elements.Enumeration_Literal_Specifications; package Program.Nodes.Enumeration_Literal_Specification_Vecto...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright 2013-2014 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 3 of the License, or -- (at your option) any later version. -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Requeue_Statements is function Create (Requeue_Token : not null Program.Lexical_Elements ...
-- Score PIXAL le 07/10/2020 à 15:08 : 100% with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Fréquence d'un élément dans un tableau procedure Freq_Element is Capacite: constant Integer := 10; -- Cette taille est arbitraire type T_TableauBrut is array (1..Capacite)...
-- This spec has been automatically generated from STM32F429x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.EXTI is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------ -- IMR_Register -- -----------...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Strings; with Ada.Strings.Fixed; with Ada.Characters.Handling; use Ada.Characters.Handling; with SPDX.Licenses; with SPDX.Exceptions; package body SPDX is function Token_Str (This : Expression; Loc : Location) return String; function Is_Custom_Id (Str : String) return Boolean; procedure Parse_Lice...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Asis.Gela.Parser.Shift_Reduce is type Small_Integer is range -32_000 .. 32_000; type Shift_Reduce_Entry is record T : Small_Integer; Act : Small_Integer; end record; pragma Pack(Shift_Reduce_Entry); subtype Row is Integer range -1 .. Integer'Last; --pragma suppress(in...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_photography_enumtypes_h is -- unsupported macro: GST_TYPE_PHOTOGRAPHY_NOISE_REDUCTION (gst_photography_noise_reduction_get_type()) --...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with sprite_hpp; package array_hpp is subtype size_type is unsigned; -- ./array.hpp:5 -- For some reason, g++ -fdump-ada-spec does not generate -- templated types, we must write them by hand. -- The binding generator does not make...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
procedure Raise_CE is begin raise Constraint_Error; end;
-- Copyright 2009, 2010, 2011 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 3 of the License, or -- (at your option) any later version....
-- CE3108A.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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- OpenAPI Petstore -- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters. -- -- OpenAPI spec version: 1.0.0 -- -- -- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0-SNAPSHOT. -- https://openapi-generator.tech -- Do n...
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later vers...
with Text_IO; procedure Main with SPARK_Mode is -- The function below is intended to determine whether a given triangle -- (specified by the lengths of its three sides) is a right-angle triangle. -- The postcondition and the code have been made simpler by making a -- precondition on the caller that ...
package Opt13_Pkg is N : Natural := 0; type My_Type is private; procedure Allocate (T : out My_Type); private type Data; type My_Type is access Data; end Opt13_Pkg;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-processes-os -- Windows specific and low level operations -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32F3x4.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.GPIO is pragma Preelaborate; --------------- -- Registers -- --------------- -- MODER array element subtype MODER_Elem...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package body Opt57 is type Phase_Enum is (None_Phase, FE_Init_Phase, FE_Phase); type Message_State is (No_Messages, Some_Messages); type Module_List_Array is array (Phase_Enum, Message_State) of List; type Private_Module_Factory is limited record Module_Lists : Module_List_Array; end record; ...
with AVR, AVR.MCU; use AVR; with Interfaces; use Interfaces; package Hardware.PWM is -- Set Servo_ISR as the TIMER1 COMPA handler. See page 101 of the -- ATmega2560 datasheet for more details. procedure Servo_ISR; pragma Machine_Attribute (Entity => Servo_ISR, Attribute_N...
with Ada.Numerics; use Ada.Numerics; with System; package Init4 is type R1 is record F : Float; end record; for R1'Bit_Order use System.Low_Order_First; for R1'Scalar_Storage_Order use System.Low_Order_First; for R1 use record F at 0 range 0 .. 31; end record; type R2 is record F : Float; ...
package discr2 is procedure Dummy; end discr2;
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- -- with Arrow_P, Cube_P, Duck_P, Plane_P; with Spaceship_P; pragma Elaborate_All (Spaceship_P); with Sphere_P; pragma Elaborate_All (Sphere_P); with Real_Type; use Real_Type; with Vectors_4D; use Vectors_4D; with GL; with GL.Materials; use GL.Materials; ...
-- C96004A.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...
package TLSF.Proof with SPARK_Mode, Pure, Preelaborate is end TLSF.Proof;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Euler is sum:Integer := 0; begin for I in Integer range 1 .. 999 loop if I mod 5 = 0 or I mod 3 = 0 then sum := sum + I; end if; end loop; Put(sum); New_Line; end Euler;
------------------------------------------------------------------------------ -- -- -- Generic HEX String Handling Package -- -- -- -- -...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- -- ...
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); with Ada.Containers.Indefinite_Vectors; Package Risi_Script.Types.Identifier.Scope_Package is new Ada.Containers.Indefinite_Vectors( Index_Type => Positive, Element_Type => Identifier, "=" => "=" );
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Calendar.Formatting; with Ada.Exceptions; with Ada.Text_IO; with GNAT.Sockets; with Torrent.Logs; package body Torrent.Man...
-- { dg-do run } with Ada.Unchecked_Conversion; with Ada.Streams; use Ada.Streams; with Ada.Text_IO; use Ada.Text_IO; procedure Unchecked_Convert2 is subtype Day_Number is Integer range 0 .. 31; subtype Byte_Array_Of_Integer is Stream_Element_Array (1 .. Integer'Size / Stream_Element_Array'Component_Size...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+flacada@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 ...
with Interfaces; use Interfaces; package body CRC8 with SPARK_Mode is -- init function calculateCRC8 (Data : Byte_Array) return Byte is crc : Byte := 0; begin for pos in Data'Range loop crc := crc8_tab (crc xor Data (pos)); -- loop over all bytes end loop; return crc; ...
-- Hyperion API -- Hyperion Monitoring API The monitoring agent is first registered so that the server knows it as well as its security key. Each host are then registered by a monitoring agent. -- -- The version of the OpenAPI document: 1.0.0 -- Contact: Stephane.Carrez@gmail.com -- -- NOTE: This package is auto...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with CUPS.stdint_h; with CUPS.bits_sockaddr_h; with CUPS.bits_socket_h; with System; with CUPS.unistd_h; private package CUPS.netinet_in_h is -- unsupported macro: IPPROTO_IP IPPROTO_IP -- unsupported macro: IPPROTO_ICMP IPPROTO...
-- PR ada/43106 -- Testcase by Bill Neven <neven@hitt.nl> -- { dg-do run } -- { dg-options "-O" } with Case_Optimization_Pkg2; use Case_Optimization_Pkg2; procedure Case_Optimization2 is Radar : Radar_T; begin Radar.Sensor_Type := radcmb; Initialize (Radar); end;
with POSIX.Unsafe_Process_Primitives; procedure Execute_A_System_Command is Arguments : POSIX.POSIX_String_List; begin POSIX.Append (Arguments, "ls"); POSIX.Unsafe_Process_Primitives.Exec_Search ("ls", Arguments); end Execute_A_System_Command;
--***************************************************************************** --* --* PROJECT: BINGADA --* --* FILE: q_sound.null.adb --* --* AUTHOR: Manuel <mgrojo at github> --* --***************************************************************************** package body Q_Sound...
package body Util is Invalid_Input_Data : exception; --------- -- B2S -- --------- function B2S (Data : LSC.Types.Bytes) return String is use type LSC.Types.Byte; B, Nibble : LSC.Types.Byte; function Hex_Digit (D : LSC.Types.Byte) return Character is (case D is whe...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with SDL_stdinc_h; with Interfaces.C.Strings; limited with SDL_joystick_h; package SDL_haptic_h is SDL_HAPTIC_CONSTANT : constant := (2**0); -- ..\SDL2_tmp\SDL_haptic.h:163 SDL_HAPTIC_SINE : constant := (2**1); -- ..\SDL2_tmp...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Unchecked_Conversion; with GL.API; with GL.Enums.Getter; package body GL.Objects.Framebuffers is ------------ function Status (Target : Fram...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Streams; with Ada.Text_IO; with Crypto.MD5; use Crypto.MD5; procedure Test_MD5 is procedure Test_01 is use type Ada.Streams.Stream_Element_Array; C : Context := Initial; D : Fingerprint; begin Update (C, "a"); Final (C, D); pragma Assert (Image (D) = "0cc175b9c0f1b6a831c399e269772661"); pragma ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C64104F.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; procedure Hello_World is begin Ada.Text_Io.Put_Line("Hello world"); end;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Test_Literals is begin Put (16#2D7#); Put (10#727#); Put (8#1_327#); Put (2#10_1101_0111#); end Test_Literals;
-- Copyright 2019-2020 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 3 of the License, or -- (at your option) any later version. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...