CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2010-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. -- -- ...
package body Solar_System.Graphics is procedure Draw_Body (Object : Body_Type; Canvas : Canvas_ID) is begin if Object.Visible then Draw_Sphere (Canvas => Canvas, Position => (Object.X, Object.Y, 0.0), Radius => Object.Radius, Color => Object.Co...
with Interfaces; with Ada.Numerics.Float_Random; with Generic_Vector_Math; use Interfaces; package Vector_Math is -- float math -- package Float_Math is new Generic_Vector_Math (float); function safe_tan(x : float) return float; function sign(x : float) return float; function pow(Left, Right : float) re...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Deferred_Const4_Pkg; package Deferred_Const4 is type R1 is tagged record I1 : Integer; end record; type R2 is new R1 with record I2 : Integer; end record; package My_Q is new Deferred_Const4_Pkg (R2); function F return My_Q.T; end Deferred_Const4;
My_String : String := Get_String; My_Integer : Integer := Get_Integer;
-- Copyright 2015-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Gtk.Container, Gtk.Style_Provider, Gtk.Style_Context, Gtk.Css_Provider, Glib.Error, Glib, Ada.Text_IO; package body aIDE.Style is use Gtk.Style_Provider, Gtk.Style_Context, Gtk.Css_Provider, Ada.Text_IO, Gtk.Container; Provider : Gtk_Css_Prov...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2019, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- EL testsuite - EL Testsuite -- Copyright (C) 2009, 2010, 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 file excep...
package Discr46 is type Enum is (One, Two, Three); for Enum use (One => 1, Two => 2, Three => 3); type Rec1 (D : Boolean := False) is record case D is when False => null; when True => T : Integer; end case; end record; type Rec2 is record R : Rec1; C : Charact...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with System; with glib; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstformat_h; with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h; -- limited with GStreamer.GST...
-- CE3606A.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...
pragma Ada_95; with System; package ada_main is pragma Warnings (Off); gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_envp); gnat_exit_status : Integer; pragma Imp...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_gen_lists_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigned_8...
-- Copyright 2016,2017 Steven Stewart-Gallus -- -- 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/LICENSE-2.0 -- -- Unless required by applicable law o...
<AnimDB FragDef="Animations/Mannequin/ADB/PlayerFragmentIds.xml" TagDef="Animations/Mannequin/ADB/PlayerTags.xml"> <FragmentList> <Idle> <Fragment BlendOutDuration="0.2" Tags="Rotate"> <AnimLayer> <Blend ExitTime="0" StartTime="0" Duration="0.2"/> <Animation name="1DONE-BSpace_RotateRIFLE" flags="Lo...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 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. -- -- This...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Nodes.Array_Component_Association_Vectors; with Program.Nodes.Aspect_Specification_Vectors; with Program.Nodes.Element_Ve...
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 min4 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.Stre...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2020, AdaCore -- -- -- -- ...
package body Debug4_Pkg is type Vertex_To_Vertex_T is array (Vertex_Id range <>) of Vertex_Id; function Dominator_Tree_Internal (G : T'Class) return Vertex_To_Vertex_T is subtype V_To_V is Vertex_To_Vertex_T (0 .. G.Vertices.Last_Index); type V_To_VIL is array (Valid_Vertex_Id range 1 .. G.V...
----------------------------------------------------------------------- -- Util -- Utilities -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
-- package A_Legendre -- -- Data structure for Associated Legendre Polynomials. Used by package -- Clenshaw to generate the Associated Legendre functions via recurrance -- relations. -- -- The Norms of the functions are calculated separately from the functions. -- That's so that calculation of the norms can be moved ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- c...
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the ...
<?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/> <cdfg class_id="1" tracking_level="1" version="0...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Strings.Unbounded; with Ada.Containers; package HelperText is package SU renames Ada.Strings.Unbounded; package CON renames Ada.Containers; subtype Text is SU.Unbounded_String; type Line_Ma...
-- C97302A.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 Numerics, Numerics.Sparse_Matrices, Numerics.Sparse_Matrices.CSparse; use Numerics, Numerics.Sparse_Matrices, Numerics.Sparse_Matrices.CSparse; with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers; use Ada.Containers; procedure Linear_Solver_Test is use Real_IO, Int_IO, Real_Functions; Mat : Sparse_Ma...
----------------------------------------------------------------------- -- util-streams-raw -- Raw streams (OS specific) -- Copyright (C) 2011, 2016, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
pragma License (Unrestricted); -- Ada 2005 with Ada.Iterator_Interfaces; private with Ada.Containers.Copy_On_Write; private with Ada.Containers.Hash_Tables; private with Ada.Finalization; private with Ada.Streams; generic type Key_Type (<>) is private; type Element_Type (<>) is private; with function Hash (Ke...
-- Copyright 2004-2015 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. -- -- ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- //////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com) -- // -- // This software is provided 'as-is', without any express or implied warranty. -- // In no event will the authors be held li...
with Interfaces; use Interfaces; package body Natools.Static_Maps.Web.Sites.Commands is P : constant array (0 .. 3) of Natural := (1, 8, 12, 14); T1 : constant array (0 .. 3) of Unsigned_8 := (10, 1, 30, 27); T2 : constant array (0 .. 3) of Unsigned_8 := (17, 10, 22, 38); G : constant ar...
----------------------------------------------------------------------- -- gen-artifacts-docs -- Artifact for documentation -- Copyright (C) 2012, 2015, 2017, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Interfaces.C; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with Ada.Directories; use Ada.Directories; with System; with Ada.Calendar; procedure Main is type LPCSTR is access constant Interfaces.C.char; -- winnt.h pragma Convention (C, LPCSTR); fu...
package access3 is type IT is limited interface; type T is limited new IT with null record; type T2 is tagged limited null record; procedure Op (Obj_T2 : in out T2; Obj_IT : not null access IT'Class); end access3;
-- Copyright 2018-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 spec has been automatically generated from xyzzy pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.PKA is pragma Preelaborate; --------------- -- Registers -- --------------- subtype PKA_CR_MODE_Field is HAL.UInt6...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
<?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/> <cdfg class_id="1" tracking_level="1" version="0...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Index_Constraints is function Create (Left_Bracket_Token : not null Program.Lexical_Elements .Lexical_Element_A...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.HRTIM is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_AD1USRC_Field is HAL.UInt3; ...
with Ada.Containers.Indefinite_Vectors; with Ada.Text_IO; procedure Ordered_Words is package Word_Vectors is new Ada.Containers.Indefinite_Vectors (Index_Type => Positive, Element_Type => String); function Is_Ordered (The_Word : String) return Boolean is Highest_Character : Character := 'a'; begin...
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. package body Game.Test_Data.Tests.Attribute...
------------------------------------------------------------------------------ -- Copyright (c) 2015-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
<?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 (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Numerics.Discrete_Random; with Ada.Streams.Stream_IO; with League.JSON.Arrays; with League.JSON.Documents; with League.JSON.V...
pragma License (Unrestricted); with Ada.Text_IO; package Ada.Short_Short_Integer_Text_IO is new Text_IO.Integer_IO (Short_Short_Integer);
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
<Diagramm> <AdditionalSQLCode> <SQLCode> <AdditionalSQLCodePostChanging></AdditionalSQLCodePostChanging> <AdditionalSQLCodePostReducing></AdditionalSQLCodePostReducing> <AdditionalSQLCodePreChanging></AdditionalSQLCodePreChanging> <AdditionalSQLCodePreEx...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package FLTK.Images.Pixmaps.GIF is type GIF_Image is new Pixmap with private; type GIF_Image_Reference (Data : not null access GIF_Image'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (Filename : in String) ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.ADC is pragma Preelaborate; --------------- -- Registers -- --------------- -- status register type SR...
<?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="...
------------------------------------------------------------------------------ -- -- -- Standard Peripheral Library for STM32 Targets -- -- -- -- ...
-- SPDX-License-Identifier: BSD-3-Clause -- -- Copyright (c) 2017 Eric Bruneton -- 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 a...
with Vecteurs; use Vecteurs; package STL is -- Prend une liste de segments et cree l'objet 3d par rotations -- Requiert Taille(Segments) > 0 procedure Creation( Segments : in out Liste_Points.Liste ; Facettes : out Liste_Facettes.Liste; Nombre_Facettes : Positive); -- Sauvegard...
with Ada.Text_IO; use Ada.Text_IO; with System.Storage_Elements; use System.Storage_Elements; procedure Test_Address is X : Integer := 123; Y : Integer; for Y'Address use X'Address; begin Put_Line ("At address:" & Integer_Address'Image (To_Integer (Y'Address))); Put_Line (Integer'Image (Y)...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- util-http-clients-tests -- Unit tests for HTTP client -- Copyright (C) 2012, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Rejuvenation.Utils; use Rejuvenation.Utils; package body Rejuvenation.Printer is -- Private ------- procedure Print (Str : in out Unbounded_String; Node : Ada_Node'Class); procedure Print (Str : in ou...
private with COBS.Stream.Decoder; package Test_Utils.Abstract_Decoder.COBS_Stream is subtype Parent is Test_Utils.Abstract_Decoder.Instance; type Instance (In_Place : Boolean := False) is limited new Parent with private; type Acc is access all Instance; type Any_Acc is access all Instance'Class; ...
----------------------------------------------------------------------- -- druss-commands-devices -- Print information about the devices -- Copyright (C) 2017, 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
procedure Parameter_Declaration (The_Parameter : Integer);
-- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Abstract : -- -- A generalized LR parser. -- -- In a child package of Parser.LR partly for historical reasons, -- partly to allow McKenzie_Recover to be in a sibling package. -- -- Copyright (C) 2002, 2003, 2009, 2010, 2013-2015, 2017 - 2019 Free Software Foundation, Inc. -- -- This file is part of the WisiTok...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
--PRÁCTICA 3: CÉSAR BORAO MORATINOS (Maps_G_Dyn.ads) with Ada.Text_IO; generic type Key_Type is private; type Value_Type is private; Max_Clients: Natural; with function "=" (K1, K2: Key_Type) return Boolean; package Maps_G is type Map is limited private; procedure Get (M: Map; Key: in Key_Type; Val...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do compile } procedure test_ai254 is function Func (Obj : not null access protected function (X : Float) return Float) return not null access protected function (X : Float) return Float is begin return null; end; begin null; end;
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Ada.Unchecked_Deallocation; package body Apsepp.Test_Reporter_Data_Struct_Class.Impl is ---------------------------------------------------------------------------- not overriding procedure Add_An...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
package body Ada.Characters.ASCII.Handling is function Is_Control (Item : Character) return Boolean is begin return Item in Character'Val (0) .. Character'Val (16#1f#) or else Item = Character'Val (16#7f#); end Is_Control; function Is_Graphic (Item : Character) return Boolean is begin ...
-- C83023A.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...
pragma License (GPL); ------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: GNU GPLv3 or any later as published by Free Software Foundation -- -- (see COPYING file) ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams; with Editor_Package; use Editor_Package; package body Utilities_Package is function Read_File (Name : Unbounded_String; V : View) return Boolean is Input : File_Type; BFFR : Character; begin Open ...
-- 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. -- -- ...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Helper -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: Helper functions -- -- ToDo: -- [ ] Implementation package Helper with SPARK_Mode is generic type Nu...