CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.Characters.Handling; package bod...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure euler07 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.S...
-- C95095C.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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- mail-headers -- Operations on mail headers -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ex...
-- Copyright 2008-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. -- -- ...
-- This file provides the API for the random number generator on the STM32F4 -- (ARM Cortex M4F) microcontrollers from ST Microelectronics. -- -- Random numbers are acquired by responding to interrupts from the on-board -- generator. package STM32.RNG.Interrupts is procedure Initialize_RNG with Post => RN...
with STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32GD.USART; with STM32GD.USART.Peripheral; with STM32GD.SPI; with STM32GD.SPI.Peripheral; with STM32GD.I2C; with STM32GD.I2C.Peripheral; with STM32GD.RTC; with STM32GD.Clock; with STM32GD.Clock.Tree; with Drivers.Text_IO; with Drivers.RFM69; with STM32GD.Board_Variant; ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
package Solar_System.Graphics is procedure Draw_Body (Object : Body_T; Canvas : Canvas_ID); end Solar_System.Graphics;
-- Copyright 2007-2019 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) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
procedure Character_Type is type char is new Character; begin null; end Character_Type;
-- AD7103C.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 ncurses Binding -- -- -- -- ...
with aIDE.Editor, AdaM.Entity, AdaM.a_Pragma, Gtk.Widget; private with Gtk.Button, Gtk.Window, Gtk.Frame; package aIDE.Palette.of_pragmas is type Item is new Palette.item with private; type View is access all Item'Class; -- Forge -- function to_source_entities_P...
-- Copyright 2013-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 -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau with PyGamer.Time; package Game is function Game_Loop (Time_In_Game : in out PyGamer.Time.Time_Ms) return Boolean; -- Return True if the player won the game, False for game-over end Game;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is T: Integer; procedure t is begin new_line; end; begin New_Line; end;
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.Real_Time_Clock; use HAL.Real_Time_Clock; with HAL; package Text_Format is subtype Number_Base is Positive range 2 .. 16; function From_Natural (N : Natural; Base : Number_Base :...
with Ada.Containers.Array_Sorting; with System.Long_Long_Integer_Types; package body Ada.Containers.Generic_Array_Types is subtype Word_Integer is System.Long_Long_Integer_Types.Word_Integer; -- implementation function Length (Container : Array_Type) return Count_Type is begin -- diff -- diff -- diff...
with Ada.Containers; use Ada.Containers; with Ada.Directories; use Ada.Directories; with Blueprint; use Blueprint; with AAA.Strings; use AAA.Strings; with Ada.Command_Line; with Templates_Parser; with Filesystem; with Commands; package body Commands.Deploy is ------------- -- Execute -- -------------...
pragma License (Unrestricted); -- runtime unit with System.Unwind.Representation; package System.Unwind.Handling is pragma Preelaborate; -- hook for entering an exception handler (a-exexpr-gcc.adb) procedure Begin_Handler ( Machine_Occurrence : Representation.Machine_Occurrence_Access) with Expo...
package body Ada.Environment_Encoding is -- implementation function Is_Open (Object : Converter) return Boolean is N_Object : System.Native_Environment_Encoding.Converter renames Controlled.Reference (Object).all; begin return System.Native_Environment_Encoding.Is_Open (N_Object); en...
with Ada.Text_IO, Ada.Calendar, Ada.Numerics.Discrete_Random, Taszkseged; use Ada.Text_IO, Taszkseged; procedure Kocsma is Ajto: Taszkseged.Szemafor(4); procedure Belep renames Ajto.P; procedure Kilep renames Ajto.V; type Ital is (Sor, Bor, Palinka); task Kocsmaros is entry Tolt( Mit: in ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- widgets-factory -- Factory for widget Components -- Copyright (C) 2013, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
<?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="...
----------------------------------------------------------------------- -- ado-schemas -- Database Schemas -- Copyright (C) 2015, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this ...
with DDS.Request_Reply.Replier.Typed_Replier_Generic; with Dds.Builtin_String_DataReader; with Dds.Builtin_String_DataWriter; package DDS.Request_Reply.Tests.Simple.String_Replier is new DDS.Request_Reply.Replier.Typed_Replier_Generic (Reply_DataWriter => Dds.Builtin_String_DataWriter, Request_DataReader...
-- Copyright 2013-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. -- -- ...
with Day1.Test; package body Day1_Suite is function Suite return Access_Test_Suite is Ret : constant Access_Test_Suite := new Test_Suite; begin Ret.Add_Test (new Day1.Test.Test); return Ret; end Suite; end Day1_Suite;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
package ABR is type T_ABR is limited private; Cle_Presente_Exception : Exception; -- une clé est déjà présente dans un ABR Cle_Absente_Exception : Exception; -- une clé est absente d'un ABR -- Initialiser un ABR Abr. L'ABR est vide. procedure Initialiser(Abr: out T_ABR) with Post => Est_Vide (Abr); -- Es...
package FLTK.Widgets.Groups.Windows.Double is type Double_Window is new Window with private; type Double_Window_Reference (Data : not null access Double_Window'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (X, Y, W, ...
-- -- Main routines testing/illustrating the mixins. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- with Ada.Text...
with Numerics, Ada.Text_IO, Auto_Differentiation.Integrator, Chebyshev; use Numerics, Ada.Text_IO, Auto_Differentiation.Integrator, Chebyshev; procedure Auto_Differentiation.Lagrangian is -- Set Up Parameters ----------------- Control : Control_Type := (N => 2, Dt => 0.01, Eps => 1.0e-10, Err => 1.0, K =...
-- C35703A.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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- C49022C.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 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...
with Piles; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Characters.Latin_1; -- des constantes comme Apostrophe (Latin1 ?!?!) use Ada.Characters.Latin_1; -- Programme de test du module Pile. procedure Utiliser_Piles is -- Utiliser la pile pour en m...
with Libadalang.Analysis; use Libadalang.Analysis; with Rejuvenation.Navigation; use Rejuvenation.Navigation; package Rewriters is type Rewriter is tagged private; -- To be usable in an Ada.Containers.Vectors, -- a Rewriter can't be abstract and can't be an interface function Rewrite (...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package body ACO.Messages is function CAN_Id (Msg : Message) return Id_Type is (Msg.CAN_Id.Id); function Func_Code (Msg : Message) return Function_Code is (Msg.CAN_Id.Code); function Node_Id (Msg : Message) return Node_Nr is (Msg.CAN_Id.Node); function Create (CAN_Id : Id_Type; ...
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) with Ada.Command_Line; with Ada.IO_Exceptions; with Ada.Streams.Naked_Stream_IO; with C.sys.types; package System.Native_Processes is use type C.sys.types.pid_t; subtype Command_Type is C.char_ptr_ptr; pr...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="17"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
<?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="...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="17"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2017, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- Copyright (C) 2020, Simon Wright (simon@pushface.org) -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- 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 of s...
pragma Warnings (Off); pragma Ada_95; pragma Source_File_Name (ada_main, Spec_File_Name => "b__mainair.ads"); pragma Source_File_Name (ada_main, Body_File_Name => "b__mainair.adb"); pragma Suppress (Overflow_Check); with Ada.Exceptions; package body ada_main is E072 : Short_Integer; pragma Import (Ada, E072, "syst...
with Asis.Elements; with Asis.Statements; package body Asis_Adapter.Element.Paths is ------------ -- EXPORTED: ------------ procedure Do_Pre_Child_Processing (Element : in Asis.Element; State : in out Class) is Parent_Name : constant String := Module_Name; Module_Name : constant String...
-- Copyright 2017-2019 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 LIBRARY COMPONENTS -- -- -- -- ...
-- { dg-do compile } procedure equal_access is PA, PB : access procedure := null; begin if PA /= PB then null; end if; end;
----------------------------------------------------------------------- -- security-oauth -- OAuth Security -- Copyright (C) 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 file except...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Hoc...
-- CE2102O.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 binding for OpenGL/WebGL -- -- -- -- ...
package body Mod_Inv is procedure X_GCD(A, B: in Natural; D, X, Y: out Integer) is -- the Extended Euclidean Algorithm -- finds (D, X, Y) with D = GCD(A, B) = A*X + B*Y R: Natural := A mod B; begin if R=0 then D := B; X := 0; Y := 1; else X_GCD(B,...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- babel -- Backup Application -- 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 this file except in c...
-- CC1308A.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 2008, 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 ve...
----------------------------------------------------------------------- -- asf-helpers-beans -- Helper packages to write ASF applications -- Copyright (C) 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
-- -- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with Interfaces; with Edc_Client.Matrix.Types; use Edc_Client.Matrix.Types; package body Edc_Client.Matrix.Common is -------------------------------------------------------------------------- -- Returns the charactor fo...
with System, Interfaces.C.Strings, Ada.Unchecked_Conversion; use type System.Address, Interfaces.C.int, Interfaces.C.Strings.chars_ptr; package body FLTK.Menu_Items is function new_fl_menu_item (T : in Interfaces.C.char_array; C : in System.Address; ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_context_tag_iterator_t is -- Item -- type Item is record data : access xcb.xcb_glx_context_tag_t; the_rem : aliased Interfaces.C.int; ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" private with GL.Low_Level; package GL.Objects.Shaders is pragma Preelaborate; type Shader_Type is (Fragment_Shader, Vertex_Shader, Geometry_Shader, Tess_Evaluation_Shader...
with Ada.Containers.Vectors; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Utils is package Str_Vector is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Unbounded_String); end Utils;
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt private with Replicant.Platform; package PortScan.Packages is -- This routine first removes all invalid packages (package from removed -- port or older version) and inserts the origins of the remaining pa...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Text_IO.Text_Streams; use Ada.Text_IO; with Ada.Streams; use Ada.Streams; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Command_Line; use Ada.Command_Line; with AWS.Default; with AWS.Net; use AWS; with AWS.Net.SSL; use AWS.Net; with Aids.Env; use Aids; wit...
-- { dg-do compile } -- { dg-options "-O -gnatp" } package body Invariant_Index is procedure Proc (S : String) is N : constant Integer := S'Length; begin Name_Buffer (1 + N .. Name_Len + N) := Name_Buffer (1 .. Name_Len); Name_Buffer (1 .. N) := S; Name_Len := Name_Len + N; end; end ...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with kv.avm.Log; with kv.avm.Tuples; package body kv.avm.Brokers is use kv.avm.Registers; use kv.avm.Control; use kv.avm.Log; use Actor_Maps; ----------------------------------------------------------------------------- procedure Execute ...
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 Zane Myers -- -- 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 witho...
------------------------------------------------------------------------------ -- meals.ads -- -- A package containing the public data type Meal. A meal consists of an en- -- tree, an optional soup, and an optional dessert. Three meal operations are -- provided: -- -- Random_Meal A random meal. -- Pr...
-- Copyright 2008-2019 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 -- -- -- -- ...
with Ada.Wide_Wide_Text_IO; use Ada.Wide_Wide_Text_IO; procedure Test is begin Put ("Unicode """ & ''' & """" & Wide_Wide_Character'Val (10)); end Test;
----------------------------------------------------------------------- -- util-http-clients-mockups -- HTTP Clients -- Copyright (C) 2011, 2012, 2017, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Formal_Package_Associations is function Create (Formal_Parameter : Program.Elements.Expressions.Exp...
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 Zane Myers -- -- 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 witho...