CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------csc410/prog5/as5.adb---------------------------- -- Author: Matthew Bennett -- Class: CSC410 Burgess -- Date: 11-01-04 Modified: 11-01-04 -- Due: 11-7-04 -- Desc: Assignment 5: LAMPORT'S ALGORITHM FOR VIRTUAL TOPOLOGY NETWORKS -- -- a nonproduction implementation of -- LAMPORT's ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------------- -- Concrete implementation class for the MicroChip 24XX01/24LC01B EEPROM -- -- Copyright 2022 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.I2C; package EEPROM_I2C.MC24XX16 is ---------------------------...
with Ada.Text_IO; use Ada.Text_IO; with OLED_SH1106; use OLED_SH1106; with Interfaces.C; use Interfaces.C; with Bitmap_Graphics; use Bitmap_Graphics; procedure AdaOLED is Center : Point := (64, 32); P : Point := (10, 10); Q : Point := (100, 40); begin Put_Line ("OLED Display Driver Test"); if Start_Driv...
-- -- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with Interfaces; private with Edc_Client.Matrix.Common; with Edc_Client.Matrix.Types; use Edc_Client.Matrix.Types; package body Edc_Client.Matrix.Double_Word is -------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- POK header -- -- The following file is a part of the POK project. Any modification should -- be made according to the POK licence. You CANNOT use this file or a part -- of a file for your own project. -- -- For more information on the POK licence, please see our LICENCE FILE -- -- Pleas...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Discrete_Ranges; with Program.Elements.Component_Definitions; with Program.Elemen...
with Memory.RAM; use Memory.RAM; package body Test.RAM is procedure Run_Tests is mem : RAM_Pointer := Create_RAM(latency => 100, burst => 1, word_size => 4, word_count => 8); ...
-- Copyright 2017-2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local url = require("url") name = "Ask" type = "scrape" function start() setratelimit(1) end function vertical(ctx, domain) for i=1,10 do local ok...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------- -- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file) -- 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 Lic...
pragma License (Unrestricted); -- implementation unit specialized for Linux function System.System_Allocators.Allocated_Size ( Storage_Address : Address) return Storage_Elements.Storage_Count; pragma Preelaborate (System.System_Allocators.Allocated_Size); pragma Inline (System.System_Allocators.Allocated_Size);
-- -- 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...
------------------------------------------------------------------------------ -- G P S -- -- -- -- Copyright (C) 2001-2016, AdaCore -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package GL.Materials is -- Material. Doc from the VRML 1.0 spec (refers to OpenGL): -- * The ambient color reflects ambient light evenly from all parts of -- an object regardless of viewing and lighting angles. -- -- * The diffuse color reflects all VRML light sources depending on the -- a...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018-2020, AdaCore -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.float_Text_IO; use Ada.float_Text_IO; with Ada.integer_Text_IO; use Ada.integer_Text_IO; with lca; package body google_creuse is procedure initialiser(V : out matricep) is begin for i in 1..Capacite loop Lca_integer_float.Initialiser(V(i)); end ...
------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; with Program.Elements.Type_Conversions; with Program.Element_Visitors; package Program.No...
----------------------------------------------------------------------- -- util-systems-os-tests -- Unit tests for OS specific operations -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
procedure usb.tests.main is begin null; end usb.tests.main;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- UnZip.Decompress ------------------- -- Private, internal to the UnZip package. -- -- Created 9 - Mar - 2007 -- -- This package includes the decompression algorithms for methods -- store, reduce, shrink (LZW), implode and inflate. -- It contains the packages UnZ_IO, UnZ_Glob, UnZ_Infl, UnZ_Olds, UnZ_Misc --...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" private with Yaml.Events.Store; private with Yaml.Events.Queue; package Yaml.Transformator.Annotation.Vars is type Instance is limited new Transformator.Instance with private; overriding proce...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . E V E N T -- -- S p e c -- ----...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2013 Reto Buerki <reet@codelabs.ch> -- Copyright (C) 2013 Adrian-Ken Rueegsegger <ken@codelabs.ch> -- 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. Redistrib...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2021, AdaCore -- -- -- -- ...
-- 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.Command_Line, Ada.Sequential_IO, Ada.Directories; procedure Truncate_File is type Byte is mod 256; for Byte'Size use 8; package Byte_IO is new Ada.Sequential_IO(Byte); function Arg(N: Positive) return String renames Ada.Command_Line.Argument; function Args return Natural renames Ada.Command_...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Spécification du module Conversion_Type qui permet de convertir des chaines de caractère en Integer ou réel with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; generic type T_Element is digits <>; package Conversion_Type is Bad_Type_Conversion_Error : exception; -- Nom : To_Integer -- Semantique...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER 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="...
-- License: ISC with Ada.Text_IO; package body JSA.Generic_Optional_Value is function "+" (Item : in Element) return Instance is begin return (Set => True, Value => Item); end "+"; function "+" (Item : in Instance) return Element is begin return Item.Value; end...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2012 Felix Krause <contact@flyx.org> -- -- 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/licen...
package ADMBase.Evolve is procedure evolve_data; end ADMBase.Evolve;
-- { dg-do run } -- { dg-options "-gnatws" } procedure alignment1 is type My_Integer is record Element : Integer; end record; F : My_Integer; begin if F'Alignment /= F.Element'Alignment then raise Program_Error; end if; end;
----------------------------------------------------------------------- -- awa-permissions -- Permissions module -- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
with Interfaces; -- Virtual Audio Processing Unit package VirtAPU is type Channel_ID is new Positive; subtype Sample is Float; type Instance (Number_Of_Channels : Channel_ID; Sample_Rate : Positive) is tagged limited private; procedure Tick (This : in out Instance); -- Thi...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising f...
-- C91004B.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 body Opt59_Pkg is function Get_BV1 return Boolean_Vector is begin return (others => True); end; function Get_BV2 return Boolean_Vector is begin return (others => False); end; procedure Test (B : Boolean) is begin if not B then raise Program_Error; end if; end; end Opt...
-- C46011A.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...
----------------------------------------------------------------------- -- util-system-os -- Windows system operations -- Copyright (C) 2011, 2012, 2015, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-images-modules-tests -- Unit tests for image service -- Copyright (C) 2012, 2013, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
type ${self.name} is tagged record
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Type_Definitions; with Program.Lexical_Elements; with Program.Elements.Discrete_Ranges; with Program.Elements.Component_Definitions; ...
with Ada.Text_IO; use Ada.Text_IO; with My_Class; procedure Test is T : My_Class.Object; begin T.Write; end Test;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
M:Interrupts S:LInterrupts.aligned_alloc$size$1$13({2}SI:U),B,1,-4 S:LInterrupts.aligned_alloc$alignment$1$13({2}SI:U),B,1,1 T:FInterrupts$SI_UU32[({0}S:S$u32$0$0({4}SL:U),Z,0,0)({0}S:S$s32$0$0({4}SL:S),Z,0,0)({0}S:S$uu16$0$0({4}DA2d,STSI_UU16:S),Z,0,0)({0}S:S$u16$0$0({4}DA2d,SI:U),Z,0,0)({0}S:S$s16$0$0({4}DA2d,SI:S),Z...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package Static_Initializer5_Pkg is type Arr is array (Positive range <>) of Character; type Buffer_Type (Length : Positive) is record Content : Arr (1 .. Length); end record; type Buffer_Access is access Buffer_Type; type Rec is tagged record Buffer : Buffer_Access; end record; Nul...
with Ada.Strings.Unbounded; with Ada.Containers.Vectors; package Test_Solution is type Solution is access procedure; package SU renames Ada.Strings.Unbounded; package P is new Ada.Containers.Vectors( Index_Type => Natural, Element_Type => Solution); Assertion_Error : Exception; procedur...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Exit_Statements is function Create (Exit_Token : not null Program.Lexical_Elements .Lexical_Element_Access;...
pragma Ada_2012; package body Latex_Writer.Picture is -------------------- -- Within_Picture -- -------------------- procedure Within_Picture (Output : File_Access; Width : Picture_Length; Heigth : Picture_Length; Callback : access procedure (Output : File_Access)) is...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that th...
-- C74302B.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 2017-2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "Spyse" type = "api" function start() setratelimit(1) end function check() local c local cfg = datasrc_config() ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Number.Api; package Benchmark_S_Number is procedure Create (N : Integer; File_Name : String); procedure Write (N : Integer; File_Name : String); procedure Read (N : Integer; File_Name : String); procedure Reset (N : Integer; File_Name : String); end Benchmark_S_Number;
with Ada.Containers.Vectors, Ada.Streams; package AdaM.Declaration.of_type is type Item is new Declaration.item with private; -- View -- type View is access all Item'Class; procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class; Self :...
-- { dg-do run } -- { dg-options "-O2" } with Concat1_Pkg; use Concat1_Pkg; procedure Concat1 is Ident_1 : Integer := Ident (1); Ident_2 : Integer := Ident (2); Ident_5 : Integer := Ident (5); type Arr is array (Integer range <>) of Integer; A : Arr (1..10); begin A := (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- 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 Bases.Test_Data is procedu...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Element_Vectors; with Program.Elements.Defining_Names; with Program.Elements.Aspect_Specif...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
pragma Check_Policy (Trace => Ignore); with System.Address_To_Constant_Access_Conversions; with System.Storage_Elements; with System.Synchronous_Control; with System.Unwind.Occurrences; with System.Unwind.Standard; package body System.Unwind.Raising is pragma Suppress (All_Checks); -- package separated for depe...
-- { dg-do compile } package body Discr35 is procedure Proc1 is R : Rec2 := Null_Rec2; begin null; end; procedure Proc2 is R : Rec2; begin R := Null_Rec2; end; end Discr35;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- part of FreeTypeAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package FT.Errors is pragma Preelaborate; type Error_Code is (Ok, Cannot_Open_Resource, Unknown_File_Format, Invalid_File_Format, Invalid_Version, Lower_Module_Version, Invalid_Argum...
generic package any_Math.any_Geometry.any_d2 -- -- Provides a namespace and core types for 2D geometry. -- is pragma Pure; --------- -- Sites -- -- Cartesian -- subtype Site is Vector_2; -- 2D cartesian coordinates. type Sites is array (Positive range ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with lace.Subject, lace.Observer, lace.make_Subject, lace.make_Observer.deferred, lace.Any; private with ada.Strings.unbounded; package lace.Subject_and_deferred_Observer -- -- Provides a concrete type for a combined event subject and a deferred observer. -- is type Item is limited ...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option)...
-- CA1013A6M.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. -- Unlim...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_configure_window_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; pad0 : aliased Interfa...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with Numerics, Ada.Text_IO, Chebyshev, Sb_Package; use Numerics, Ada.Text_IO, Chebyshev, Sb_Package; procedure Steel_Balls is use Int_IO, Real_IO, AD_Package, Integrator; ----------------------------------------------- Control : Control_Type := New_Control_Type; -- Initial Conditions ---- Guess, Var, S...
------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: ISC License (see COPYING file) -- -- -- -- ...
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Ada.Text_IO; use Ada.Text_IO; with Strings_Edit; use Strings_Edit; procedure Column_Aligner is Text : constant String := "Given$a$text$file$of$many$lines,$where$fields$within$a$line$" & NUL & "are$delineated$by$a$singl...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, Universidad Politécnica de Madrid -- -- -- -- ...
-- PQ (10/12) ; PM (10/14) with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; -- Version radicale : exclusion mutuelle de tous -- fournit une ossature pour l'approche "automate" -- fournit un exemple de tâche proposant des entrées différentes de Demander_Lecture, ... package body LR.Synchro.Exclusion2 is ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-------------------------------------------------------- -- E n c o d i n g s -- -- -- -- Tools for convertion strings between Unicode and -- -- national/vendor character sets. -- -- - - - - - - - - -...
with System; package Init1 is type R1 is record I : Integer; 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 I at 0 range 0 .. 31; end record; type R2 is record I : Integer; end record; for R2'Bit_Order u...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2018, AdaCore -- -- -- -- ...