CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x2.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 -- --------------- -- IMR1_MR array type IMR...
----------------------------------------------------------------------- -- stemmer -- Multi-language stemmer with Snowball generator -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permit...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Unchecked_Deallocation; with FT.Glyphs; with GL.Attributes; with GL.Buffers; with GL.Objects.Framebuffers; with GL.Objects.Shaders; with GL.Objects.Textures.Targets; with GL.Pixels; with GL.Win...
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- Copyright 2015-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. -- -- ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Ada.Characters.Handling; use Ada.Characters.Handling; package Apsepp.Characters is subtype ISO_646_Upper_Letter is ISO_646 range 'A' .. 'Z'; end Apsepp.Characters;
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Interfaces.C.Pointers; with GL.Algebra; package GL.Types is pragma Preelaborate; -- These are the types you can and should use with OpenGL functions -- (particularly when dealing with b...
package Geo3x3 is function Encode (PLat: in Long_Float; PLng: in Long_Float; Level: in Integer) return String; type WGS84 is record Lat : Long_Float; Lng : Long_Float; Level : Integer; Unit : Long_Float; end record; function Decode (Code: in String) return WGS84; end Geo3x3;
with Ada.Text_IO; use Ada.Text_IO; procedure BubbleSort is type Index is new Integer; type Elem is new Integer; type Arr is array (Index range <>) of Elem; function Max_Hely ( T: Arr ) return Index is Mh: Index := T'First; begin for I in T'Range loop if T(...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 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. -- -- This ...
with Ada.Text_IO; package body CLIC_Ex.Commands.Switches_And_Args is ------------- -- Execute -- ------------- overriding procedure Execute (Cmd : in out Instance; Args : AAA.Strings.Vector) is begin Ada.Text_IO.Put_Line (Args.Flatten); end Execute; end CLIC_Ex.Commands.Switches_And_...
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...
package ewok.tasks.debug with spark_mode => on is procedure crashdump (frame_a : in ewok.t_stack_frame_access); end ewok.tasks.debug;
------------------------------------------------------------------------------ -- Copyright (c) 2014-2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Unix; with Utilities; with Parameters; with File_Operations.Heap; with Package_Manifests; with Ada.Directories; with Ada.Characters.Latin_1; with Ada.Strings.Fixed; with Ada.Exceptions; package body Specifica...
with cLib.Binding; with cLib.lconv; with interfaces.C.Strings; with ada.Strings.unbounded; with ada.Text_IO; procedure Simple is use ada.text_IO, ada.Strings.Unbounded, Interfaces.C.Strings; the_set_Locale : Interfaces.C.Strings.chars_ptr := clib.Binding.setlocale (cLib.binding.LC_ALL, ...
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...
-- -- Copyright (C) 2019, AdaCore -- -- This spec has been automatically generated from FE310.svd -- This is a version for the E31 CPU Coreplex, high-performance, 32-bit -- RV32IMAC core -- MCU package Ada.Interrupts.Names is -- All identifiers in this unit are implementation defined pragma Implement...
package body openGL.Tasks is procedure check is use Ada, ada.Task_Identification; calling_Task : constant Task_Id := Task_Identification.current_Task; -- TODO: Use the assert instead of the exception for performance. -- pragma assert (Renderer_Task = calling_Task, -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Author: Martin Becker (becker@rcs.ei.tum.de) with Ada.Real_Time; with Interfaces; with HIL; -- @summary -- Implements the structure andserialization of log objects -- according to the...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- CA1012A4M.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. -- Unlimi...
limited with Limited_With3_Pkg3; package Limited_With3_Pkg2 is type T is tagged null record; procedure Proc (X : Limited_With3_Pkg3.TT; Y : T); end Limited_With3_Pkg2;
-- 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...
with PositivosEMedia; use PositivosEMedia; with Text_IO; use Text_IO; procedure Main is obj1: P; begin obj1.Init; obj1.contarPositivos; obj1.calcularMedia; obj1.exibeResultados; end Main;
----------------------------------------------------------------------- -- css-reports -- CSS Reports -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complian...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpluginfeature_h; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsttypefind_h; with System; limited with GStreamer.GST_Lo...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.CRS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_TRIM_Field is HAL.U...
F1, F2 : File_Type; begin Open (F1, In_File, "city.ppm"); Create (F2, Out_File, "city_median.ppm"); Put_PPM (F2, Median (Get_PPM (F1), 1)); -- Window 3x3 Close (F1); Close (F2);
package body Volatile11_Pkg is procedure Bit_Test(Input : in Integer; Output1 : out Boolean; Output2 : out Boolean; Output3 : out Boolean; Output4 : out Boolean; Output5 : out Boolean; Output6 : out Boolean; Output7 : out ...
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
------------------------------------------------------------------------------ -- Copyright (c) 2013-2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (C)2021,2022 Steve 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, merge, publis...
-- { dg-do run } with Init9; use Init9; with Ada.Numerics; use Ada.Numerics; with Text_IO; use Text_IO; with Dump; procedure P9 is Local_R1 : R1; Local_R2 : R2; begin Put ("My_R1 :"); Dump (My_R1'Address, R1'Max_Size_In_Storage_Elements); New_Line; -- { dg-output "My_R1 : 18 2d 44 54 fb 21 09 40.*...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- C41323A.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...
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N O...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- ...
with Types; use Types; package Roms is VERS : constant ROM := (16#12#, 16#1a#, 16#4a#, 16#4d#, 16#4e#, 16#20#, 16#31#, 16#39#, 16#39#, 16#31#, 16#20#, 16#53#, 16#4f#, 16#46#, 16#54#, 16#57#, 16#41#, 16#52#, 16#45#, 16#53#, 16#20#, 16#80#, 16#80#, 16#ff#, 16#00#, 16#00#, 16#63#, 16#00#, 16#67#, 16#00#, 16#00#, 16#e...
with MSP430_SVD; use MSP430_SVD; with MSPGD.Clock.Source; generic Speed: UInt32; with package Clock is new MSPGD.Clock.Source (<>); package MSPGD.UART.Peripheral is pragma Preelaborate; procedure Init; procedure Transmit (Data : Byte); function Receive return Byte; function Data_Available return Boolean; ...
----------------------------------------------------------------------- -- ADO Sequences -- Database sequence generator -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
-- Copyright 2015-2016 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 RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
----------------------------------------------------------------------- -- awa-storages-stores-files -- File system store -- Copyright (C) 2012, 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 th...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Call_Method is package My_Class is ... -- see above package body My_Class is ... -- see above package Other_Class is ... -- see above package body Other_Class is ... -- see above Ob1: My_Class.Object; -- our "root" type Ob2: Other_Class.Object; -- a typ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with AdaM.Any, Ada.Containers.Vectors, Ada.Streams; private with AdaM.Partition; package AdaM.protected_Entry is type Item is new Any.item with private; -- View -- type View is access all Item'Class; procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'C...
----------------------------------------------------------------------- -- Generic Quicksort procedure ----------------------------------------------------------------------- procedure Sort (Item : in out Element_Array) is procedure Swap(Left, Right : in out Element_Type) is Temp : Element_Type := Left; b...
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...
-- 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...
package Simple_Expression_Range is type Constrained_Type is new Integer range 1..10; end Simple_Expression_Range;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Lexical_Elements; with Program.Elements.Defining_Identifiers; with Program.Elements.Parameter_Specification...
with Tkmrpc.Transport.Client; with Tkmrpc.Request.Ike.Tkm_Version.Convert; with Tkmrpc.Request.Ike.Tkm_Limits.Convert; with Tkmrpc.Request.Ike.Tkm_Reset.Convert; with Tkmrpc.Request.Ike.Nc_Reset.Convert; with Tkmrpc.Request.Ike.Nc_Create.Convert; with Tkmrpc.Request.Ike.Dh_Reset.Convert; with Tkmrpc.Request.Ike.Dh_Crea...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
with Ada.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; procedure Test_File_Size is begin Put_Line (File_Size'Image (Size ("input.txt")) & " bytes"); Put_Line (File_Size'Image (Size ("/input.txt")) & " bytes"); end Test_File_Size;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Numerics.Generic_Elementary_Functions; package Real_Type is subtype Real is Long_Float; package Real_Elementary_Functions is new Ada.Numerics.Generic_Elementary_Functions (Real); end Real_Type;
------------------------------------------------------------------------------- -- 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...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Directories; package body Torrent.Storages is use type Ada.Streams.Stream_Element_Count; protected body Storage is ...
------------------------------------------------------------------------------- -- 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 LIBRARY COMPONENTS -- -- -- -- ...
-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010 -- Lumen would not be possible without the support and contributions of a cast -- of thousands, including and primarily Rod Kay. -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this s...
-- CE3809A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
-- { dg-do compile } package body Noreturn1 is procedure Error (E : in Exception_Occurrence) is Occurrence_Message : constant String := Exception_Message (E); begin if Occurrence_Message = "$" then raise Program_Error; else raise Constraint_Error; end if; end; end N...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- AWA.Settings.Models -- AWA.Settings.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- C48012A.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 LIBRARY COMPONENTS -- -- -- -- ...
with Ada.Finalization; use Ada.Finalization; with Ada.Text_IO; use Ada.Text_IO; package body EU_Projects.Nodes.Timed_Nodes.Deliverables is ------------ -- Create -- ------------ function Create (Label : Deliverable_Label; Name : String; Description : String;...
with LR.Synchro.Fifo; -- XXXX package body LR.Synchro is package Synchro renames LR.Synchro.Fifo; -- XXXX function Nom_Strategie return String renames Synchro.Nom_Strategie; procedure Demander_Lecture renames Synchro.Demander_Lecture; procedure Demander_Ecriture renames Synchro.Demander_Ecritur...
with HAL; use HAL; package STM32.HSEM is function Locked (Semaphore : UInt5; Process : UInt8) return Boolean; function AnyLock (Semaphore : UInt5) return Boolean; function OneStepLock (Semaphore : UInt5) return Boolean; procedure ReleaseLock (Semaphore : UInt5; Process : UInt8) with Post =>...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- asf-clients-tests - Unit tests for HTTP clients -- Copyright (C) 2011 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...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
-- CE3410E.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 RUNTIME COMPONENTS -- -- -- -- ...
with Ada.Directories; use Ada.Directories; with Ada.Text_IO; procedure Test_Directory_Walk is procedure Walk (Name : String; Pattern : String) is procedure Print (Item : Directory_Entry_Type) is begin Ada.Text_IO.Put_Line (Full_Name (Item)); end Print; procedure Walk (Item : Direct...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2008-2017 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. -- -- ...
with Ada.Text_IO; with Ada.Strings.Unbounded; package body kv.avm.Log is Last_Log_Line : Ada.Strings.Unbounded.Unbounded_String; Last_Error_Line : Ada.Strings.Unbounded.Unbounded_String; procedure Put(Str : String) is begin if Verbose then Ada.Text_IO.Put(Str); end if; end Put; ...
with Interfaces.C, Interfaces.C.Extensions, Ada.Unchecked_Conversion; package body Libtcod.Maps.Lines is use bresenham_h, Interfaces.C, Interfaces.C.Extensions; type Int_Ptr is access all int; type X_Pos_Ptr is access all X_Pos; type Y_Pos_Ptr is access all Y_Pos; function X_Ptr_To_Int_Ptr is new...
package input_2 is type Generator is null record; generic type Unsigned is mod <>; type Real is digits <>; with function Random (G: Generator) return Unsigned is <>; function Random (G: Generator) return Real; end input_2;
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Constraints; with Program.Lexical_Elements; with Program.Elements.Discrete_Ranges; package Program.Elements.Index_Constraints is ...
with Ada.Text_IO; with GNAT.SHA1; procedure Main is begin Ada.Text_IO.Put_Line ("SHA1 (""Rosetta Code"") = " & GNAT.SHA1.Digest ("Rosetta Code")); end Main;