content
stringlengths
23
1.05M
with Irc.Bot; with Irc.Commands; with Irc.Message; with Ada.Strings.Unbounded; with GNAT.Sockets; package Commands is -- for host_bot.adb procedure Host (Bot : in out Irc.Bot.Connection; Msg : Irc.Message.Message); end Commands;
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package avx512vlintrin_h is -- Copyright (C) 2014-2017 Free Software Foundation, Inc. -- This file is part of GCC. -- GCC is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Pub...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with c_math_c.Pointers; with Interfaces.C; package c_math_c.pointer_Pointers is -- Real_Pointer_Pointer -- type Real_Pointer_Pointer is access all c_math_c.Pointers.Real_Pointer; -- Index_Pointer_Pointer -- type Index_Pointer_Poi...
.-- Copyright 2021 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with RP.Device; with RP.GPIO; with ItsyBitsy; package body LED_Control is subtype LED_Type is RP.GPIO.GPIO_Point; ----------------------------------------------------------------------- -- All Red LED related definition...
with Interfaces; use Interfaces; package body Natools.Static_Maps.S_Expressions.Templates.Dates.Zones is P : constant array (0 .. 3) of Natural := (1, 2, 3, 4); T1 : constant array (0 .. 3) of Unsigned_16 := (174, 296, 87, 202); T2 : constant array (0 .. 3) of Unsigned_16 := (5, 119, 245, 17...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- { dg-do compile } package Noinline1 is procedure Proc1; pragma Inline (Proc1); pragma No_Inline (Proc1); -- { dg-warning "both specified" } procedure Proc2; pragma No_Inline (Proc2); pragma Inline (Proc2); -- { dg-warning "both specified" } procedure Proc3; pragma Inline_Always (Proc3); pragma ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test_Combinations is generic type Integers is range <>; package Combinations is type Combination is array (Positive range <>) of Integers; procedure First (X : in out Combination); procedure Next (X : in out Combination); procedure Put (...
with TEXT_IO; with DEVELOPER_PARAMETERS; use DEVELOPER_PARAMETERS; procedure PUT_STAT(S : STRING) is begin if TEXT_IO.IS_OPEN(STATS) then TEXT_IO.PUT_LINE(STATS, S); end if; end PUT_STAT;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- openapi -- Support library for OpenAPI code generator -- Copyright (C) 2017, 2022 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
package GESTE_Fonts.FreeSansOblique12pt7b is Font : constant Bitmap_Font_Ref; private FreeSansOblique12pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#60#, 16#...
----------------------------------------------------------------------- -- Generic Quicksort procedure ----------------------------------------------------------------------- procedure Sort (Item : in out Element_Array) is procedure Swap(Left, Right : in out Element_Type) is Temp : Element_Type := Left; b...
-- Program Circle -- Author Roger Mc Murtrie -- Created 16 November 2017 with Ada.Exceptions; use Ada.Exceptions; with Ada.Text_IO; use Ada.Text_IO; with Glfw; with Glfw.Windows; with Initialize; with Main_Loop; procedure Circle is Main_Window : Glfw.Windows.Window; Window_Title : constant String := ...
with agar.core.types; with agar.gui.rect; with agar.gui.widget; with agar.gui.window; with interfaces.c.strings; package agar.gui.style is package cs renames interfaces.c.strings; type version_t is record major : c.int; minor : c.int; end record; type version_access_t is access all version_t; pragma...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Calendar; with Ada.Strings.Unbounded; with Tabula.Casts; package Tabula.Villages is -- 村のID subtype Village_Id is String (1 .. 4); Invalid_Village_Id : constant Village_Id := "****"; -- 村の状態 type Village_Term is (Short, Long); -- 短期 or 長期 type ...
with System; package Stream is type Unsigned is mod 2 ** Integer'Size; type Stream is interface; procedure Put_String (S : Stream; Val : String) is abstract; procedure Put_Integer (S : Stream; Val : Integer; Width : Integer := 0; Base : Integer := 10) is abstract; procedure Put_Unsigned (S ...
pragma Ada_2012; package body DDS.Request_Reply.Connext_C_Replier is -------------------------------- -- RTI_Connext_Replier_Delete -- -------------------------------- function RTI_Connext_Replier_Delete (Self : RTI_Connext_Replier_Access) return DDS.ReturnCode_T is begin return raise Pro...
with Ada.Assertions; use Ada.Assertions; with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Langkit_Support.Text; use Langkit_Support.Text; package body Rejuvenation.Indentation is function Node_On_Separate_Lines (Node : Ada_Node'Class) return Boolean is ...
-------------------------------------------------------------------------------- -- 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...
-- -- ABench2020 Benchmark Suite -- -- Factorial Program -- -- Licensed under the MIT License. See LICENSE file in the ABench root -- directory for license information. -- -- Uncomment the line below to print the result. -- with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; procedur...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Ada.Containers.Generic_Anonymous_Array_Sort; with Ada.Iterator_Interfaces; with League.Characters; with League.Regexps; with Markdown.Common_Patte...
private package P.Q is ... -- Visible to the siblings only private ... -- Visible to the children only end P.Q;
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" generic type Instance is limited new Refcount_Base with private; type Reference is tagged private; type Accessor (Data : not null access Instance) is limited private; with function Value ...
-- Generated at 2017-03-10 17:26:29 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-simple_pages-maps.sx with Natools.Static_Maps.Web.Simple_Pages.Commands; with Natools.Static_Maps.Web.Simple_Pages.Components; package body Natools.Static_Maps.Web.Simple_Pages is function To_Command (Key : String) ret...
with HAL.I2C; package BB_Pico_Bsp.I2C is function Port return not null HAL.I2C.Any_I2C_Port; end BB_Pico_Bsp.I2C;
with openGL.Font, freetype_c.Binding, freetype_c.FT_GlyphSlot, freetype_c.Pointers, freetype_c.FT_Size_Metrics, ada.unchecked_Deallocation; package body openGL.FontImpl is use freetype_c.Pointers; ----------- -- Utility -- procedure deallocate is new ada.unchecked_Deal...
pragma License (Unrestricted); -- implementation unit with Ada.Interrupts; package System.Interrupt_Handlers is -- pragma Interrupt_Handler is required to Attach_Handler, CXC3001. procedure Register_Interrupt_Handler ( Code_Address : Address); procedure Register_Interrupt_Handler ( Handler : Ad...
----------------------------------------------------------------------- -- volume_servlet -- Servlet example to compute some volumes -- Copyright (C) 2010, 2015, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
----------------------------------------------------------------------- -- util-events-channel -- Event Channels -- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
-- 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. with AUnit.Test_Fixtures; with GNATtest_Ge...
-- -- Color tables, known as "palettes" -- private package GID.Color_tables is -- Load a palette on its defined range, according to -- the format and subformats loaded by initial -- steps in GID.Load_image_header procedure Load_palette (image: in out Image_descriptor); -- if image.palette = null, nothi...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- csv_city -- Read CSV file which contains city mapping -- Copyright (C) 2011, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Numerics.Vectors; generic with package V is new GBA.Numerics.Vectors(<>); package GBA.Numerics.Matrices is subtype Dim is V.Dim; subtype Vec is V.Vec; subtype Element is V.Element; type Mat is array (Dim, Dim) ...
-- bkp-files -- File and directories ----------------------------------------------------------------------- -- 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 not use this file except in c...
-- BinToAsc_Suite.Base16_Tests -- Unit tests for BinToAsc -- Copyright (c) 2015, James Humphry - see LICENSE file for details with Ada.Assertions; with AUnit.Assertions; with System.Storage_Elements; with String_To_Storage_Array; package body BinToAsc_Suite.Base16_Tests is use AUnit.Assertions; use System.S...
with Ada.Text_IO; use Ada.Text_IO; package body Metric is C3_M : constant GA_Maths.Float_Matrix (1 .. 5, 1 .. 5) := ((0.0, 0.0, 0.0, 0.0, -1.0), (0.0, 1.0, 0.0, 0.0, 0.0), (0.0, 0.0, 1.0, 0.0, 0.0), (0.0, 0.0, 0.0, 1.0, 0.0), (-1.0, 0.0, 0.0, 0.0, 0....
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- -- -- ...
----------------------------------------------------------------------- -- 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...
-- This spec has been automatically generated from STM32F40x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with HAL; with System; package STM32_SVD.IWDG is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- KR_Register -- --------------...
-- Abstract : -- -- Support for an enumerated token type -- -- Copyright (C) 2017 - 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 Foundation; either versio...
package body Calculate1 is procedure Update_Result(Value: NaturalDouble; Result: in out NaturalDouble; Operation: OperationMethod) is begin if Result = -1 then Result := Value; else Result := Operation(Result, Value); ...
-- package Orthogonal_Polys -- -- Generates orthogonal polynomials on dicrete grid points using the -- Gram-Schmidt method. The package also provides a routine for -- polynomial least-squares curve fitting: procedure Poly_Fit. -- -- The least-squares curve fitting routine could have been defined in -- another package...
with freetype_c.FT_CharMapRec; package freetype_c.FT_CharMap is subtype Item is FT_CharMapRec.Pointer; type Item_array is array (interfaces.C.Size_t range <>) of aliased FT_CharMap.Item; type Pointer is access all FT_CharMap.Item; type Pointer_array is array (C.Size_t range <>) of ali...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" package Yaml.Tags is Question_Mark : constant Text.Reference; -- "?" Exclamation_Mark : constant Text.Reference; -- "!" Mapping : constant Text.Reference; -- "!!map" Sequenc...
with Test_Report; use Test_Report; with Symbolic_Expressions.Solving; with Ada.Strings.Unbounded; procedure Test.Solving is use Ada.Strings.Unbounded; function "+" (X : String) return Unbounded_String renames To_Unbounded_String; function "+" (X : Unbounded_String)...
------------------------------------------------------------------------------ -- G P S -- -- -- -- Copyright (C) 2007-2016, AdaCore -- -- ...
with AUnit.Test_Fixtures; with AUnit.Test_Suites; package SHA2_Streams_Tests is function Suite return AUnit.Test_Suites.Access_Test_Suite; private type Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record; procedure SHA2_224_Test (Object : in out Fixture); procedure SHA2_224_One_Million_Test (...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; package SDL_SDL_error_h is -- arg-macro: procedure SDL_OutOfMemory () -- SDL_Error(SDL_ENOMEM) -- arg-macro: procedure SDL_Unsupported () -- SDL_Error(SDL_UNSUPPORTED) procedure SDL_SetE...
----------------------------------------------------------------------- -- awa-oauth-filters -- OAuth filter -- Copyright (C) 2017, 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 excep...
package Multiplicative_Order is type Positive_Array is array (Positive range <>) of Positive; function Find_Order(Element, Modulus: Positive) return Positive; -- naive algorithm -- returns the smallest I such that (Element**I) mod Modulus = 1 function Find_Order(Element: Positive; ...
with Ada.Strings.Hash; package body L_Strings with SPARK_Mode is function "=" (Left, Right : L_String) return Boolean is begin return Left.Length = Right.Length and then Left.Data = Right.Data; end "="; function "=" (Left : L_String; Right : String) return Boolean is begin return L...
with ada.strings.unbounded; use ada.strings.unbounded; package imagemagick is imagemagick_failure : exception; -- transforme l'image passée en chaine base64 et obtient ses dimensions procedure get_base64(file : string; base64 : out unbounded_string; width, height : out integer); private base64_...
with Ada.Characters.Wide_Wide_Latin_1; with Ada.Integer_Wide_Wide_Text_IO; with Ada.Strings.Wide_Wide_Unbounded; with Ada.Wide_Wide_Text_IO; with misc_defs, misc, sym; use misc_defs; with Matreshka.Internals.Unicode.Ucd; with Unicode; with scanner.DFA; use scanner.DFA; with scanner.IO; use scanner.IO; package body sca...
-- This spec has been automatically generated from STM32F429x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DMA is pragma Preelaborate; --------------- -- Registers -- --------------- -- low interrupt status regi...
----------------------------------------------------------------------- -- ado-parameters-tests -- Test query parameters and SQL expansion -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
-- 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...
-- MP: a Music Player -- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved. -- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses -- -- 2021-06-01 Use new Enpty_Options procedure from Gnoga 1.6a to clear Sel -- 2021-04-01 Adapted to Ada-12 version o...
with System.Address_To_Named_Access_Conversions; with C.dlfcn; with C.sys.link_elf; package body System.Storage_Map is pragma Suppress (All_Checks); use type C.signed_int; package char_ptr_Conv is new Address_To_Named_Access_Conversions (C.char, C.char_ptr); -- implementation function Load_Addr...
with STM32GD.Startup; package body STM32GD.Board is procedure Init is begin null; end Init; end STM32GD.Board;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; -- Lecteurs concurrents, approche serveur. Pas de politique d'accès. package body LR.Synchro.Serveur is function Nom_Strategie return String is begin return "Serveur, lecteurs concurrents, sans politique d'accès"; end Nom_Strategie; task...
--:::::::::: --io_libs.ada --:::::::::: -- Precompiled instantiations of Integer_IO and -- Float_IO for the predefined Integer and Float types WITH Text_IO; PACKAGE My_Int_IO IS NEW Text_IO.Integer_IO (Num => Integer); WITH Text_IO; PACKAGE My_Flt_IO IS NEW Text_IO.Float_IO (Num => Float); --:::::::::: --rand...
-- { dg-do compile } -- { dg-options "-gnat12 -gnata" } package body Discr40 is procedure Push (S: in out Stack; E : Element) is begin S.Length := S.Length + 1; S.Data(S.Length) := E; end Push; end Discr40;
-- { dg-do run } with System, Ada.Unchecked_Conversion; use System; procedure BLKextract_From_Reg is type Byte is range 0 .. +255; for Byte'size use 8; type RGB is array (1 .. 3) of Byte; for RGB'Size use 24; type RAW_Packet is range 0 .. 2 ** 32 - 1; for RAW_Packet'Size use 32; type Compo...
package Hide.BMP is type Header is record Signature_1 : Integer_8; Signature_2 : Integer_8; Size : Integer_32; -- File size in bytes Reserved1 : Integer_16; Reserved2 : Integer_16; Offset : Integer_32; -- Start address in bytes where the image data can be ...
pragma SPARK_Mode; with Types; use Types; -- @summary -- Control for the robot's motors -- -- @description -- This package exposes on interface to control the robot's motors -- package Zumo_Motors is -- True if the package has been init'd Initd : Boolean := False; -- Whether to reverse the left moto...
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO; with X86Parser; use X86Parser; package X86Writer is procedure assemble(instr_list : Instr_Vector.Vector; writer : Stream_Access); end X86Writer;
-- -- Copyright (C) 2019, AdaCore -- -- 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 mu...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Finalization; generic type Resolve_Element is private; -- Type for reolving a promise type Reject_Element is private; -- Type for r...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
----------------------------------------------------------------------- -- stemmer -- Multi-language stemmer with Snowball generator -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permit...
-- Copyright 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 or agr...
package Access_To_Subprogram is type Access_To_Procedure_1 is access procedure; type Access_To_Procedure_2 is access procedure (Parm_1 : in Integer); type Access_To_Procedure_3 is access protected procedure; type Access_To_Function_1 is access function return Boolean; type Access_To_Function_2 is acces...
package Tagged_Type_Pkg is type TT is tagged limited record Self : access TT'Class := TT'Unchecked_Access; end record; function Pass_TT_Access (Obj : access TT'Class) return access TT'Class; end Tagged_Type_Pkg;
package body Forward_Declaration is procedure P is null; procedure Q; procedure Q is null; end Forward_Declaration;
pragma License (Unrestricted); -- implementation unit with Ada.UCD.Normalization; private package Ada.Strings.Canonical_Composites is pragma Preelaborate; -- decomposition Expanding : constant := 4; -- same as Ada.Strings.Normalization.Expanding subtype Decomposed_Wide_Wide_String is Wide_Wide_String (...
package TLSF.Proof.Test with SPARK_Mode, Ghost, Pure, Preelaborate is end TLSF.Proof.Test;
with Ada.Text_IO; use Ada.Text_IO; with Native.Filesystem; use Native.Filesystem; with Virtual_File_System; use Virtual_File_System; with Helpers; use Helpers; procedure TC_Nested_Mount is Strict_Mode : constant Boolean := False; -- Debug switch to enable strict mode. Currently, non-strict mode avoids --...
with Ada.Text_IO; procedure Prologue is begin Ada.Text_IO.Put("Hello World!"); end Prologue;
package body Exported is function Query (Data : chars_ptr; Size : access size_t) return int is Result : char_array := "Here am I"; begin if Size.all < Result'Length then return 0; else Update (Data, 0, Result); Size.all := Result'Length; return 1; ...
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- -- 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 System.Zero_Terminated_Strings; with C.mach_o.dyld; with C.stdint; package body System.Program is use type C.signed_int; use type C.stdint.uint32_t; function Full_Name return String is -- use proc_pidpath instead of NSGetExecutablePath? Buffer_Length : aliased C.stdint.uint32_t := 0; S...
with Ada.Text_IO; use Ada.Text_IO; with hetro_stack; package body hetro_stack_elems is package IIO is new Ada.Text_IO.Integer_IO(Integer); use IIO; ---------- Procedure(s) for Vehicle Record ------------------------------------------- procedure AssignVehicleType(aVehicle: in out Vehicle; CarOrPlane: in Vehicles) ...
------------------------------------------------------------------------------- -- 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...
pragma License (Unrestricted); -- Ada 2012 generic type Element_Type is private; package Ada.Containers.Synchronized_Queue_Interfaces is pragma Pure; type Queue is synchronized interface; procedure Enqueue ( Container : in out Queue; New_Item : Element_Type) is abstract with Synchroniza...
-- -- 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 Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Posix; with HAL; with HAL.SPI; use HAL.SPI; with HAL.I2C; use HAL.I2C; with Native.SPI; -- use Native.SPI; with Native.I2C; procedure Spi_Test is SPI_Device : String := "/dev/spidev0.0"; SPI_Conf : Native.SPI.SPI_Config...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is procedure F(X: in out Integer) is begin X := 0; end; procedure G(X: in Integer) is begin F(X); end; X: Integer; begin G(X); end Test;
-- -- 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 Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; procedure SleepSort is task type PrintTask (num : Integer); task body PrintTask is begin delay Duration (num) / 100.0; Ada.Text_IO.Put(num'Img); end PrintTask; type TaskAcc is access PrintTask; TaskList : array (1 .. Argument_Coun...
-- This package implements the main object used by the library, as -- well as several functions to manipulate it. with GNAT.Sockets; with GNAT.Regpat; with Ada.Strings.Unbounded; with Ada.Containers.Vectors; with Irc.Message; private with Ada.Streams; private with Ada.Characters.Latin_1; private with Ada.Charact...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...