content
stringlengths
23
1.05M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Generic_Stack, Generic_Queue; with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Strings.Bounded; use Ada.Text_IO, Ada.Integer_Text_IO; procedure Test_Containers is package String80 is new Ada.Strings.Bounded.Generic_Bounded_Length(80); package Int_Stack is new Generic_Stack(Element_Type => Integer); package...
pragma License (Unrestricted); package Ada.Characters is pragma Pure; end Ada.Characters;
with System; use System; with STM32.Device; with Ada.Real_Time; package body STM32.COMP is ------------ -- Enable -- ------------ procedure Enable (This : in out Comparator) is use Ada.Real_Time; begin This.CFGR.EN := True; -- Delay for COMP startup time. delay until Clock ...
----------------------------------------------------------------------- -- util-encodes-tests - Test for encoding -- 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 not us...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Tcl.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Test_Data .Test with null record...
with Ada.Text_IO; use Ada.Text_IO; procedure Syracuse is procedure PrintInt(N: Integer) is C: Integer := N rem 10; begin if N > 9 then PrintInt(N / 10); end if; Put(Character'Val(48 + C)); end; procedure syracuse(max : integer) is i : integer; procedure length is v,...
----------------------------------------------------------------------- -- awa-comments-module -- Comments module -- Copyright (C) 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
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 ...
----------------------------------------------------------------------- -- util-locales -- Locale support -- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012, 2013, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package x86_64_linux_gnu_asm_posix_types_64_h is -- SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note -- * This file is generally used by user-level software, so you need to -- * be a little careful about namespace pollut...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- 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...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ iterator over all instances -- -- |___/_|\_\_|_|____| by: Timm Felden ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; package Program.Elements.Character_Literals is pragma Pure (Pro...
----------------------------------------------------------------------- -- awa-questions-beans -- Beans for module questions -- Copyright (C) 2012, 2013, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
with ada.text_io; with ada.containers.vectors; with ada.unchecked_deallocation; with strings; use strings; package getter.file is function get return character; procedure open (path : string); private type descriptor_access_t is access ada.text_io.file_type; type file_t is record descriptor : descriptor_...
package Giza.Bitmap_Fonts.FreeSerifItalic24pt7b is Font : constant Giza.Font.Ref_Const; private FreeSerifItalic24pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#F0#, 16#0F#, 16#00#, 16#F0#, 16#0F#, 16#01#, 16#F0#, 16#1E#, 16#01#, 16#E0#, 16#1C#, 16#01#, 16#C0#, 16#3C#, 16#03#, 16#80#, 16#38#, 1...
pragma License (Unrestricted); with Ada.Unchecked_Deallocation; package GNAT.Strings is pragma Preelaborate; type String_Access is access all String; procedure Free is new Ada.Unchecked_Deallocation (String, String_Access); type String_List is array (Positive range <>) of String_Access; type St...
-- Copyright (c) 2016 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/LICENSE-2.0 -- -- Unless required by applic...
with gel.Keyboard.local, gel.Mouse.local, openGL.Surface, lace.Subject_and_deferred_Observer; private with ada.Calendar; package gel.Window -- -- Models a UI Window. -- is type Item is limited new lace.Subject_and_deferred_Observer.item with private; type View is access all Item'Class; ...
-- This spec has been automatically generated from STM32F105xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; package STM32.PWR is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- CR_Register -- ----------------- subty...
-- { dg-do compile } -- { dg-options "-gnatws" } with Array14_Pkg; use Array14_Pkg; package body Array14 is package Nested is Length : constant SSE.Storage_Count := Length2; subtype Encoded_Index_Type is SSE.Storage_Count range 1 .. Length; subtype Encoded_Type is SSE.Storage_Array (Encoded_Index_Typ...
with Bitmap_Graphics.Icons; use Bitmap_Graphics.Icons; with Bitmap_Graphics.Font8; with Bitmap_Graphics.Font12; with Bitmap_Graphics.Font16; with Bitmap_Graphics.Font20; with Bitmap_Graphics.Font24; package body Bitmap_Graphics is procedure Get_Icon (Icon : Bitmap_Icon; Width : out Natural; Height: ...
with Ada.Text_Io; use Ada.Text_Io; procedure Max_Subarray is type Int_Array is array (Positive range <>) of Integer; Empty_Error : Exception; function Max(Item : Int_Array) return Int_Array is Start : Positive; Finis : Positive; Max_Sum : Integer := Integer'First; Sum : Integer; beg...
----------------------------------------------------------------------- -- applications-main-configs -- Configuration support for ASF Applications -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache...
-- Abstract : -- -- Generate Ada code for a Packrat parser. -- -- References: -- -- See wisitoken-parse-packrat.ads. -- -- Copyright (C) 2018, 2020 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 p...
-- { dg-do compile } -- { dg-options "-O2" } procedure Range_Check2 is subtype Block_Subtype is String(1 .. 6); type Color is (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White); Foregrnd_Color : Color := White; Block : Block_Subtype := "123456"; begin Foregrnd_Color := Color'Val(Integer'Value(Block(5 ...
with LCA; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure LCA_Sujet is package LCA_str_int is new LCA (T_Cle => Unbounded_String, T_Donnee => Integer); use LCA_str_int; Donnees : T_LCA; begin...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is function F return character is begin return f; end; begin put(f); end;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Ada.Streams.Stream_IO; with kv.avm.Assemblers; with kv.avm.Log; procedure volea is Builder : aliased kv.avm.Assemblers.Assembler_Type; package SIO renames Ada.Streams.Stream_IO; F : SIO.File_Type; S : SIO.Stream_Access; b...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- private with GNAT.OS_Lib; private with League.Regexps; with LSP.Types; with LSP.Messages; package Checkers is type Checker is t...
pragma License (Unrestricted); -- implementation unit with Ada.Streams.Naked_Stream_IO; with System.Native_IO; package Ada.Streams.Stream_IO.Naked is pragma Preelaborate; -- handle procedure Open ( File : in out File_Type; Mode : File_Mode; Handle : System.Native_IO.Handle_Type; Nam...
-- MIT License -- Copyright (c) 2021 Stephen 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,...
------------------------------------------------------------------------ -- Copyright (C) 2010-2020 by Heisenbug Ltd. (github@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 Hocev...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Calendar; with Ada.Directories; package body Web.Lock_Files is use type Ada.Calendar.Time; function Lock ( Name : String; Force : Duration := 0.0; Timeout : Duration := 3.0; Retry_Interval : Duration := 1.0; Forced : access Boolean := null) return Boolean is Gone : Duration := 0.0; begin ...
package body Protypo.Tokens is ---------------- -- Make_Token -- ---------------- function Make_Token (Builder : in out Token_Builder; Class : Valued_Token; Value : String) return Token is Result : constant Token := Token...
-- Abstract : -- -- Ada language specific algorithms for McKenzie_Recover -- -- Copyright (C) 2018, 2019 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 Fo...
package Constant1_Pkg is type Id_T is mod Natural'Last + 1; type Timer_Id_T is tagged record Id : Id_T := Id_T'Last; end record; Null_Timer_Id : constant Timer_Id_T := (Id => Id_T'Last - 1); end Constant1_Pkg;
with IO; procedure Simple_Hello_World_With_Renamed is begin IO.Put_Line("Hello, world!"); end Simple_Hello_World_With_Renamed;
-- -- Copyright (C) 2014-2018 secunet Security Networks AG -- Copyright (C) 2017 Nico Huber <nico.h@gmx.de> -- -- 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,...
with lace.Event.Logger; package body lace.Subject is the_Logger : Event.Logger.view; procedure Logger_is (Now : in Event.Logger.view) is begin the_Logger := Now; end Logger_is; function Logger return Event.Logger.view is begin return the_Logger; end Logger; end lace.Su...
package Mismatch is function Sum (x, y : Integer) return Integer; private function Sum (x : Integer; y : Integer) return Integer is (x + y); end Mismatch;
pragma License (Unrestricted); -- implementation unit with System.Long_Long_Integer_Types; private package Ada.Text_IO.Formatting is -- for Integer_IO procedure Integer_Image ( To : out String; Last : out Natural; Item : System.Long_Long_Integer_Types.Word_Integer; Base : Number_Base); ...
with Genetic; with Ada.Text_Io; use Ada.Text_Io; with Ada.Float_Text_Io; use Ada.Float_Text_Io; with Ada.Numerics.Float_Random; procedure Example is -- We need a random generator to produce and mutate genes. Here we'll use -- the built-in one. package Random renames Ada.Numerics.Float_Random; Rng : Rand...
with Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Utilities; package body GA_Utilities is function Multivector_Size (MV : Multivectors.Multivector) return Integer is theBlades : constant Blade.Blade_List := Multivectors.Blades (MV); begin return Integer (theBlades.Length); end...
package body Discr25_Pkg is type Arr1 is array (Natural range <>) of Integer; B : constant Boolean := N > 0; type Arr2 is array (True .. B) of Integer; type Obj_T (Size_Max : Natural) is record A2 : Arr2; A1 : Arr1 (0 .. Size_Max); end record; procedure Proc1 (Set : in out T) is begin Set...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- AoC 2020, Day 16 with Ada.Text_IO; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Ordered_Sets; package body Day is package TIO renames Ada.Text_IO; procedure parse_ticket(line : in String; rules : in out Value_Vectors.Vector) is re...
-- Copyright 2016 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 or agr...
----------------------------------------------------------------------- -- html.forms -- ASF HTML Form Components -- Copyright (C) 2010, 2011, 2012, 2013, 2014, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
-- 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...
-- { dg-do compile } with controlled1; use controlled1; package body controlled2 is procedure Test_Suite is begin Add_Test (new Test_Case'(Test_Case1 with Link_Under_Test => 300)); end Test_Suite; end controlled2;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Abstract : -- -- Generic unbounded red-black tree with definite elements, definite -- or indefinite key. -- -- References : -- -- [1] Introduction to Algorithms, Thomas H. Cormen, Charles E. -- Leiserson, Ronald L. Rivest, Clifford Stein. -- -- Copyright (C) 2017 - 2020 Free Software Foundation, Inc. -- -- T...
package body direccion is function direccion_opuesta(d : in t_direccion) return t_direccion is begin if d = Izquierda then return Derecha; else return Izquierda; end if; end; end direccion;
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Hardware Configuration -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- -- Description: -- Hardware Configuration of the board. with Units; use Units; with Units.Navigation; ...
-- RUN: %llvmgcc -S %s function Switch (N : Integer) return Integer is begin case N is when Integer'First .. -1 => return -1; when 0 => return 0; when others => return 1; end case; end;
with Ada.Unchecked_Conversion; package body Ada.Containers.Access_Holders_Derivational_Conversions is procedure Assign ( Target : in out Base_Holders.Holder; Source : Derived_Holders.Holder) is type Base_Holder_Access is access all Base_Holders.Holder; for Base_Holder_Access'Storage_Size ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with Ada.Unchecked_Conversion; with Ada.Characters.Handling; package body AdaBase.Connection.Base.MySQL is package ACH renames Ada.Characters.Handling; --------------------- -- setCompressed -- ...
----------------------------------------------------------------------- -- el-functions-default -- Default function mapper -- Copyright (C) 2009, 2010, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
------------------------------------------------------------------------------ -- -- -- WAVEFILES -- -- -- -- ...
package body ACO.Utils.DS.Generic_Table is procedure Initialize (This : in out Table) is begin Clear (This); end Initialize; procedure Clear (This : in out Table) is begin This.Buckets := (others => No_Index); for C in This.Data'First .. This.Data'Last - 1 loop ...
package body System.Long_Long_Float_Types is pragma Suppress (All_Checks); function truncl (X : Long_Long_Float) return Long_Long_Float with Import, Convention => Intrinsic, External_Name => "__builtin_truncl"; function fmodl (x, y : Long_Long_Float) return Long_Long_Float with Import, C...
package STM32 is pragma Preelaborate; --procedure configure_Hardware; end STM32;
-- Smart_Ptrs_Tests -- Unit tests for Auto_Counters Smart_Ptrs package -- Copyright (c) 2016, James Humphry - see LICENSE file for details private with Ada.Strings.Unbounded; with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; with Counters_Spec; generic with package Counters is new Counters_Spe...
-- C87B19A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
with Ada.Text_IO; with Ada.Text_IO.Complex_IO; with Ada.Numerics.Generic_Real_Arrays; with Ada.Numerics.Generic_Complex_Types; with Ada.Numerics.Generic_Complex_Arrays; with Ada.Numerics.Generic_Elementary_Functions; with Ada.Numerics.Generic_Complex_Elementary_Functions; with Ada_Lapack; with Ada_Lapack.Extras; use...
package Materials is -- To add materials, keep ETVacuum as the first env type, -- Or IsSolidMaterial will be messed up type MaterialType is (MTConcrete, MTWood, MTSteel, MTRubber, MTIce, MTBalloon, MTStatic, ETVacuum, ETAir, ETWater); type Material is tagged record MType ...
----------------------------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 ...
pragma License (Unrestricted); -- implementation unit required by compiler package System.Img_Bool is pragma Pure; -- required for Boolean'Image by compiler (s-imgboo.ads) procedure Image_Boolean ( V : Boolean; S : in out String; P : out Natural); end System.Img_Bool;
with Es_Primo; with Listas_Enteros; procedure Crear_Sublista_4Primos is new Listas_Enteros.Crear_Sublista(Cuantos => 4, Filtro => Es_Primo);
with utils, read_preflop, ada.Text_IO, ada.Integer_Text_IO; use utils, read_preflop, ada.Text_IO, ada.Integer_Text_IO; with botIO; use botIO; procedure test_preflop is card1, card2 : t_card; str : string(1..2); lg : integer := 999999999; begin put_line("donnez votre premiere carte : "); get_line(str,lg...
with Ada.Assertions; use Ada.Assertions; with Ada.Text_IO; use Ada.Text_IO; with GNATCOLL.GMP.Integers; use GNATCOLL.GMP.Integers; with Langkit_Support.Text; use Langkit_Support.Text; with Rejuvenation.Placeholders; use Rejuvenation.Placeholders; with Rejuvenation.Utils; use Rej...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Strings; package Skynet is function "+" (Text : Wide_Wide_String) return League.Strings.Universal_String ...
procedure Procedure_Call is procedure Do_It is begin null; end; begin Do_It; end Procedure_Call;
package Protected_Singleton is procedure Set_Data (Value : Integer); function Get_Data return Integer; private protected Instance is procedure Set(Value : Integer); function Get return Integer; private Data : Integer := 0; end Instance_Type; end Protected_Singleton;
------------------------------------------------------------ -- B B . G U I . C O N T R O L L E R -- -- -- -- Body -- -- -- -- "Controller...
-- { dg-do compile } package body Discr37 is procedure Proc (A : access Child) is B : Derived renames Derived (A.F(1).all); C : Derived renames Derived (B.S(1).all); begin null; end; end Discr37;
-- MIT License -- Copyright (c) 2021 Stephen 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,...
------------------------------------------------------------------------------- -- 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...
-- see OpenUxAS\src\Communications\ZeroMqReceiverBase.h with ZMQ.Sockets; use ZMQ.Sockets; with UxAS.Comms.Transport.ZeroMQ_Socket_Configurations; use UxAS.Comms.Transport.ZeroMQ_Socket_Configurations; package UxAS.Comms.Transport.Receiver.ZeroMQ is type ZeroMq_Receiver_Base...
-- BinToAsc_Suite.Base85_Tests -- Unit tests for BinToAsc -- Copyright (c) 2015, James Humphry - see LICENSE file for details with AUnit.Assertions; with System.Storage_Elements; with Ada.Assertions; with Storage_Array_To_Hex_String; package body BinToAsc_Suite.Base85_Tests is use AUnit.Assertions; use Syst...
package body PKG is procedure a () is begin for Character'('0') .. Character'('9') loop x (); end loop; end a; procedure b (a: int; b: int) is begin y (); end b; end PKG;
-- MIT License -- Copyright (c) 2021 Stephen 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,...
with Ada.Text_IO; procedure euler1 is sum: Integer := 0; begin for i in 1 .. 999 loop if i mod 3 = 0 or else i mod 5 = 0 then sum := sum + i; end if; end loop; Ada.Text_IO.Put_Line(Integer'Image(sum)); end euler1;
----------------------------------------------------------------------- -- stemmer -- Multi-language stemmer with Snowball generator -- 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 u...
package Shapes is type Point is tagged private; procedure Print(Item : in Point); function Setx(Item : in Point; Val : Integer) return Point; function Sety(Item : in Point; Val : Integer) return Point; function Getx(Item : in Point) return Integer; function Gety(Item : in Point) return Integer; fun...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: Apache-2.0 -- package body Notcurses.Progress_Bar is function Create (Plane : Notcurses_Plane; Retrograde : Boolean := False) return Notcurses_Progress_Bar is Options : aliased Thin.ncpro...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package body Yaml.Transformator.Annotation.Inject is procedure Put (Object : in out Instance; E : Event) is begin Object.State.all (Object, E); end Put; function Has_Next (Object : ...
-------------------------------------------------------------------------------- -- 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...
with Ada.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Indefinite_Vectors; use Ada.Containers; --with Ada.Containers.Vectors; use Ada.Containers; package body Extract_List_Files is ---------------- -- Print_Lis...
-- Programme de test du module Ensemble. with Ensemble; with Ada.Text_IO; use Ada.Text_IO; procedure Test_Ensemble is package Ensemble_Caractere is -- Instantiation du package Ensemble avec -- T_Element => Character. new Ensemble (T_Element => Character); use Ensemble_Caractere; ...
----------------------------------------------------------------------- -- util-properties -- Generic name/value property management -- Copyright (C) 2001 - 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
-- 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...
------------------------------------------------------------------------------ -- -- -- P G A D A . U T I L S -- -- -- -- ...
-- { dg-do compile } pragma Restrictions (No_Elaboration_Code); package Array1 is type Arr is array (Positive range <>) of Boolean; A : Arr (1 .. 2 ** 29); end Array1;