content
stringlengths
23
1.05M
with Interfaces; use Interfaces; eackage ROSA.Task_Manager is type Manager_Type is private; private type Manager_Type is record Task_Count : Unsigned_8; end record; Manager : Manager_Type; end ROSA.Task_Manager;
package Matriz is type Vector_De_enteros is array(Integer range <>) of Integer; type Matriz_de_Enteros is array (INTEGER range <>, INTEGER range <>) of Integer; end Matriz;
-- AoC 2020, Day 20 with Ada.Text_IO; with Ada.Numerics.Elementary_Functions; with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Containers.Ordered_Sets; with Ada.Containers.Hashed_Sets; with Ada.Containers.Vectors; use Ada.Containers; with Ada.Strings.Maps; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Str...
-- Based on libgasandbox.draw.h with GL.Objects.Programs; with C3GA; with Multivector_Analyze; with Palet; package GA_Draw is type Method_Type is (Draw_Method_Undefined, Draw_Bivector_Circle, Draw_Bivector_Parallelogram, Draw_Bivector_Parallelogram_No_Vectors,...
with GNAT.Heap_Sort_G; function sort1 (S : String) return String is Result : String (1 .. S'Length) := S; Temp : Character; procedure Move (From : Natural; To : Natural) is begin if From = 0 then Result (To) := Temp; elsif To = 0 then Temp := Result (From); else Result (To) := Result (Fr...
with Ada.Text_IO; with Ada.Exceptions; with AdaBaseXClient; use Ada.Text_IO; use Ada.Exceptions; use AdaBaseXClient; procedure QueryExample is V: String_Vectors.Vector; begin if (Connect ("localhost", 1_984) = False) then Ada.Text_IO.Put_Line ("Connect failed."); return; else if (Authenti...
with System; with Interfaces; with TLSF.Config; package TLSF.Block.Types with SPARK_Mode, Pure, Preelaborate is use TLSF.Config; use Interfaces; type Size is new Natural range 0 .. 2 ** Max_Block_Size_Log2-1 with Size => Max_Block_Size_Log2; type Size_Bits is mod 2**Size'Size; type Add...
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Ada.Text_IO; use Ada.Text_IO; with Ada.Calendar; use Ada.Calendar; with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; package Display_Warning is Cancel : Boo...
with ada.unchecked_Conversion, system.Address_to_Access_Conversions; package body GL.Pointers is type GLvoid_access is access all GLvoid; type GLchar_access is access all lean.GLchar; type GLchar_Pointer_access is access all lean.GLchar_Pointer; type chars_ptr_access is acce...
pragma License (Unrestricted); -- implementation unit, translated from DerivedGeneralCategory.txt package Ada.UCD.General_Category is pragma Pure; Cn_Total : constant := 864415; Cn_Range_Length : constant := 539; Lu_Total : constant := 1441; Lu_Range_Length : constant := 608; Ll_Total : constant := ...
-- Auteurs : -- Equipe : -- Mini-projet 1 : Le jeu du devin with Ada.Text_Io; use Ada.Text_Io; with Ada.Integer_Text_Io; use Ada.Integer_Text_Io; -- Deviner le nombre de l'utilisateur en interagissant avec lui. procedure Deviner_Nombre is --! declarations des variables du programme principal ...
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from STM32F40x.svd pragma Ada_2012; pragma Style_Checks (Off); with System; -- STM32F40x package Interfaces.STM32 is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Base type -- ------------...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.Errors; with Ada.Text_IO; package body Glfw_Test is procedure Print_Error (Code : Glfw.Errors.Kind; Description : String) is begin Ada.Text_IO.Put_Line ("Error occured (" & Code'...
with Ada.Text_IO; use Ada.Text_IO; with Graphe; procedure Test_Graphe is package Graphe_Test is new Graphe (Integer, Integer); use Graphe_Test; procedure Test_Initialiser is Graphe1 : T_Graphe; begin Initialiser (Graphe1); pragma Assert (Est_Vide (Graphe1)); Detruire (Graphe1); ...
----------------------------------------------------------------------- -- wiki-strings -- Wiki string types and operations -- Copyright (C) 2016, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.SystemControl is pragma Preelaborate; --------------- -- Registers -- --------------- subtype SystemControl_ICTR_INTLINES...
package body MIDI_Synthesizer is function Create_Synthesizer return access Synthesizer is Ret : constant access Synthesizer := new Synthesizer; Base : Float := 8.1757989156; -- MIDI note C1 0 begin Ret.MIDI_Parser := Create_Parser (Ret); for I in Ret.MIDI_Notes'...
pragma License (Unrestricted); with Ada.Numerics.Generic_Real_Arrays; package Ada.Numerics.Short_Real_Arrays is new Generic_Real_Arrays (Short_Float); pragma Pure (Ada.Numerics.Short_Real_Arrays);
with Ada.Containers.Indefinite_Vectors, Ada.Containers.Hashed_Maps, Ada.Exceptions; procedure Shell.Commands.Spawn_Server is package Server_Action_Vectors is new Ada.Containers.Indefinite_Vectors (Positive, Server_Action); protected New_Actions is procedure Add (Action : in Server_...
with Interfaces; use Interfaces; with STM32GD; with STM32GD.Board; use STM32GD.Board; with CBOR_Codec; with Utils; package body Host_Message is Sensor_Reading_Tag : constant Natural := 6; Voltage_Tag : constant Natural := 7; Temperature_Tag : constant Natural := 8; Humidity_Tag : constant ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Strings; with XML.SAX.Attributes; with Incr.Nodes.Tokens; with Incr.Nodes; with Incr.Version_Trees; package body I...
package Inline8_Pkg2 is generic D : Integer; function Calc (A : Integer) return Integer; end Inline8_Pkg2;
with Ada.Calendar; pragma Unreferenced (Ada.Calendar); package body ParentPackage.ChildPackage is procedure ChildDummy is null; end ParentPackage.ChildPackage;
----------------------------------------------------------------------- -- keystore-passwords-gpg -- Password protected by GPG -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
----------------------------------------------------------------------- -- awa-services-filters -- Setup service context in request processing flow -- Copyright (C) 2011, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
-- Abstract: -- -- See spec. -- -- Copyright (C) 1997 - 2004, 2006, 2009, 2019, 2020 Free Software Foundation, Inc. -- -- SAL 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 o...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); -- extended unit with Ada.Characters.Conversions; with Ada.Strings.Maps; package Ada.Strings.Wide_Functions.Maps is new Generic_Maps ( Expanding => Characters.Conversions.Max_Length_In_Wide_String, Put => Characters.Conversions.Put, Get => Characters.Conversions.Get,...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Ada_2012; with Ada.Unchecked_Conversion; with GNAT.Byte_Swapping; with System; use System; package body Endianness is pragma Compile_Time_Error (Stream_Element'Modulus /= 2**8, "'Stream_Element' type must be mod 2**8, i.e. represent a byte"); generic type Source is (<>); function Spl...
package body Nested_Generic1_Pkg is procedure Image_Generic (Renderer : in not null Element_Renderer) is begin null; end; procedure Image_Standard_Instance is new Image_Generic; end Nested_Generic1_Pkg;
with GNAT.Sockets; with GNAT.Spitbol.Table_VString; with Ada.Containers.Vectors; package GPR_Tools.Gprslaves.DB is type Host_Address is record Name : GNAT.Spitbol.VString; Port : GNAT.Sockets.Port_Type; end record; package Host_Info_Vectors is new Ada.Containers.Vectors (Natural, Host_Addres...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. package body Apsepp.Test_Node_Class.Testing is ---------------------------------------------------------------------------- function To_Array return Routine_State_Array is A : constant Tag_Routine_S...
with Interfaces; with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; with System; package Littlefs is VERSION : constant := 16#00020003#; -- Software library version -- Major (top-nibble), incremented on backwards incompatible changes -- Minor (bottom-nibble), incremented on feature addi...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Simple_Logging; with GNAT.OS_Lib; package body FSmaker is -------------------- -- To_Target_Path -- -------------------- function To_Target_Path (Str : String) return Target_Path is begin if Str'Length = 0 then return Empty_Pa...
with agar.core.event; package keyevent_callbacks is package gui_event renames agar.core.event; procedure keydown (event : gui_event.event_access_t); procedure keyup (event : gui_event.event_access_t); procedure quit (event : gui_event.event_access_t); pragma convention (c, keydown); pragma convention (c,...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.Text_IO; package Auxiliary is ...
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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 req...
----------------------------------------------------------------------- -- el-utils -- Utilities around EL -- Copyright (C) 2011, 2012, 2017, 2018, 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...
package body Fmt.String_Argument is function UTF8_Length (Ch : Character) return Natural is begin case Character'Pos(Ch) is when 2#00_000000# .. 2#01_111111# => return 1; when 2#110_00000# .. 2#110_11111# => return 2; when 2#1110_0000# .. 2#1110_1111#...
with System; with Lv.Style; with Lv.Objx.Btn; package Lv.Objx.Imgbtn is subtype Instance is Obj_T; type Style_T is (Style_Bg, Style_Pr, Style_Tgl_Rel, Style_Tgl_Pr, Style_Ina); -- Create a image button objects -- @param pa...
Package body Numeros_racionales is function "/"(A,B:integer)return Racional is R1:Racional; D:integer; Begin if B/=0 then R1.Num := A/Max(abs(a),abs(B)); R1.Dem:= B/Max(abs(a),abs(B)); else raise Denominador_cero; end if; Return r1; End "/"; Function "+"(X,Y:Racional)return Racional is Aux:Raci...
-- AOC 2020, Day 15 package Day is type Input_Array is array(Natural range <>) of Natural; function sequence(s : in Input_Array; step : in Natural) return Natural; end Day;
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with GLOBE_3D; package Models is pragma Elaborate_Body; type Model_Name is (Spaceship, Sphere); -- type Model_Name is (Arrow, -- Cube, -- Duck, -- Plane, -- S...
package base_type is type The_Type is tagged limited null record; procedure method(Self : The_Type); end base_type;
package body Dummy_Block_Driver is ---------- -- Read -- ---------- overriding function Read (This : in out Dummy_BD; Block_Number : UInt64; Data : out Block) return Boolean is pragma Unreferenced (Block_Number); begin if This.Should_Fail then ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Exception_Identification.From_Here; with Ada.Streams.Naked_Stream_IO; with Ada.Streams.Stream_IO.Naked; package body Ada.Direct_IO is use Exception_Identification.From_Here; use type Streams.Stream_Element_Offset; procedure Create ( File : in out File_Type; Mode : File_Mode := Inout_File;...
----------------------------------------------------------------------- -- tar -- TAR file -- Copyright (C) 2015 Stephane.Carrez -- Written by Stephane.Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with ada.Strings.unbounded, ada.Strings.Maps, ada.Characters.latin_1, ada.Text_IO, ada.Command_Line, ada.Containers.Vectors; procedure generate_GL_types_Spec -- -- Generates the 'gl_types.ads' package which contains openGL types whose definitions may differ amongst platforms. -- -- For...
package body Ada.Containers.Unbounded_Priority_Queues is use type Implementation.Node_Access; protected body Queue is procedure Do_Dequeue (Element : out Queue_Interfaces.Element_Type); procedure Do_Dequeue (Element : out Queue_Interfaces.Element_Type) is begin Element := First.Elemen...
----------------------------------------------------------------------- -- css-analysis-classes -- CSS Class Analysis -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ex...
with freeType_C, interfaces.C, ada.Containers.hashed_Maps; limited with freetype.Face; private with freeType_C.FT_Face, ada.unchecked_Conversion; package freetype.charMap -- -- 'charMap' takes care of specifying the encoding for a font and mapping -- character codes to glyph indices...
package scanner.DFA is Aflex_Debug : Boolean := False; YYText_Ptr : Integer; -- points to start of yytext in buffer -- yy_ch_buf has to be 2 characters longer than YY_BUF_SIZE because we -- need to put in 2 end-of-buffer characters (this is explained where -- it is done) at the end of yy_ch_buf YY_R...
pragma License (Unrestricted); -- implementation unit specialized for Windows with C.signal; package System.Interrupt_Numbers is pragma Preelaborate; First_Interrupt_Id : constant := 1; Last_Interrupt_Id : constant := C.signal.NSIG - 1; function Is_Reserved (Interrupt : C.signed_int) return Boolean; end...
with Ada.Text_IO; procedure Line_By_Line is Filename : String := "line_by_line.adb"; File : Ada.Text_IO.File_Type; Line_Count : Natural := 0; begin Ada.Text_IO.Open (File => File, Mode => Ada.Text_IO.In_File, Name => Filename); while not Ada.Text_IO.End_O...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Style_Checks ("NM32766"); pragma Wide_Character_Encoding (Brackets); --------------------------------------------------- -- This file has been generated automatically from -- cbsg.idl -- by IAC (IDL to Ada Compiler) 20.0w (rev. 90136cd4). --------------------------------------------------- -- NOTE: If you m...
with lib_a_Config; with Resources; package Lib_A is package Resources is new Standard.Resources (lib_a_Config.Crate_Name); procedure Print_Content; end Lib_A;
with Ada.Text_Io; use Ada.Text_Io; procedure Gcd_Test is function Gcd (A, B : Integer) return Integer is M : Integer := A; N : Integer := B; T : Integer; begin while N /= 0 loop T := M; M := N; N := T mod N; end loop; return M; end Gcd; begin ...
package body Aspect_Subprogram_Calls is procedure P1(I : Integer) is begin null; end P1; procedure P2(I : Integer) is begin null; end P2; procedure Q1(A : ArrT) is begin null; end Q1; procedure Q2a(A : ArrT) is begin null; end Q2a; procedure Q2(A : Arr...
-- { dg-compile } -- { dg-options "-g" } with Debug4_Pkg; procedure Debug4 is package P is new Debug4_Pkg (Natural); begin null; end;
------------------------------------------------------------------------------ -- Copyright (c) 2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with lluvia;use lluvia; procedure calcular_max_pico_de_lluvia (Lluvia : in T_Lluvias_por_Pais ; Pais_Max: out T_Pais; Mes_Max : out T_Mes) is Cant_Max : T_Cantidad; begin Cant_Max := 0; for I in T_Pais'First .. T_Pais'Last loop -- Lluvia es referente al Pais for J in T_Mes'First .. T_Mes'Last loop -- Lluvia(...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Discrete_Random; procedure Test_Updates is type Bucket_Index is range 1..13; package Random_Index is new Ada.Numerics.Discrete_Random (Bucket_Index); use Random_Index; type Buckets is array (Bucket_Index) of Natural; protected type Safe_Buckets is ...
-- -- Raytracer implementation in Ada -- by John Perry (github: johnperry-math) -- 2021 -- -- specification for Objects that may appear in the scene -- -- local packages with Bitmap; use Bitmap; with Cameras; use Cameras; with Colors; use Colors; with Lights; use Lights; with Rays; use Rays; with Vectors; use V...
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by John Self of the Arcadia project -- at the University of California, Irvine. -- -- Redistribution and use in source and binary forms are permitted -- provided that the above copyright notice and t...
--Copyright (c) 2019 Alex Tsantilis under the MIT License package IBM_8b_10b_Encoder is type Byte is mod 2**8; type Ten_Bits is mod 2**10; type Running_Disp is (Neg_1, Pos_1); procedure Encode( B: in Byte; T: out Ten_Bits; RD: in out Running_Disp); ...
----------------------------------------------------------------------- -- etherscope-analyzer-ethernet -- Ethernet packet analyzer -- Copyright (C) 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
-- //////////////////////////////////////////////////////////// -- // -- // 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...
-- This file is generated by SWIG. Please do *not* modify by hand. -- package c_math_c.Binding is end c_math_c.Binding;
with Ada.Containers.Vectors; package Perfect_Number is function Is_Perfect (N : Natural) return Boolean; package Pn_Vectors is new Ada.Containers.Vectors ( Index_Type => Natural, Element_Type => Natural...
pragma SPARK_Mode; with Interfaces.C; use Interfaces.C; package body Line_Finder is Noise_Threshold : constant := Timeout / 10; Line_Threshold : constant := Timeout / 2; procedure LineFinder (ReadMode : Sensor_Read_Mode) is Line_State : LineState; State_Thresh : Boolean; begin Read...
-- A lexical scanner generated by aflex --# line 1 "scanner.l" -- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by John Self of the Arcadia project -- at the University of California, Irvine. -- -- Redistribution and use in source and binary forms ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
-- Recursive Descent parser for YOTROC instruction set -- -- Registers: 64 general purpose registers -- 64 floating-point registers -- 64-bit FLAGS register -- 64-bit program counter -- -- label: keep a separate "label table" with addresses of the instruction -- immediately after. Anyt...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with System; with GL.API.Doubles; with GL.API.Ints; with GL.API.Shorts; with GL.API.Singles; with GL.API.UInts; with GL.Low_Level; with GL.Errors; package body GL.Attributes is procedure Set_Vertex...
package Simple_IO with SPARK_Mode => On is procedure Put_Line (S : in String) with Global => null; procedure Put_Line (S : in Integer) with Global => null; end Simple_IO;
------------------------------------------------------------------------------ -- protected_counters.ads -- -- This package defines protected type Counter. A counter is basically an in- -- teger which starts with some initial positive value and is decremented (by -- 1) by calling tasks. When a task decrements...
with Ada.Strings.Equal_Case_Insensitive; with Ada.Text_IO; use Ada.Text_IO; with GNAT.Source_Info; use GNAT.Source_Info; with Langkit_Support.Text; use Langkit_Support.Text; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Comm...
separate (Numerics.Sparse_Matrices.CSparse) function To_Sparse (Mat : in Sparse_Matrix) return Sparse_Ptr is begin return To_CS (M => Cint (N_Row (Mat)), N => Cint (N_Col (Mat)), Nzmax => Cint (Mat.X.Length), I => To_Array (Mat.I), P => To_Array (Mat.P), X => To_Array (Mat.X)); ...
pragma License (Unrestricted); -- implementation unit specialized for Windows package System.Native_Execution_Time is subtype CPU_Time is Duration; function Clock return CPU_Time; end System.Native_Execution_Time;
-- -- ABench2020 Benchmark Suite -- -- Fibonacci 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...
with SPARK.Text_IO; use SPARK.Text_IO; package Error_Reporter with SPARK_Mode, Abstract_State => State, Initializes => State is pragma Elaborate_Body; function Had_Error return Boolean with Global => (input => State); procedure Error (Line_No : Positive; Message : String) with Global => (in_out =>...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd. -- -- SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from rp2040.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package RP_SVD.IO_QSPI is pragma Preelaborat...
with Ada.Exception_Identification.From_Here; with Ada.Unchecked_Conversion; with Ada.Unchecked_Deallocation; with System.Address_To_Named_Access_Conversions; with System.Growth; with System.Standard_Allocators; with System.System_Allocators.Allocated_Size; package body Ada.Streams.Unbounded_Storage_IO is use Excepti...
with Ada.Text_IO; use Ada.Text_IO; procedure SelfDesc is subtype Desc_Int is Long_Integer range 0 .. 10**10-1; function isDesc (innum : Desc_Int) return Boolean is subtype S_Int is Natural range 0 .. 10; type S_Int_Arr is array (0 .. 9) of S_Int; ref, cnt : S_Int_Arr := (others => 0); n, ...
----------------------------------------------------------------------- -- awa-events-dispatchers -- AWA Event Dispatchers -- Copyright (C) 2012, 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x_mod2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.IOCON is pragma Preelabora...
package body lace.Observer.instant is package body Forge is function new_Observer (Name : in Event.observer_Name) return View is Self : constant View := new Item; begin Self.Name := to_unbounded_String (Name); return Self; end new_Observer; end Forge; ov...
-- -- Copyright 2022 (C) Nicolas Pinault (aka DrPi) -- -- SPDX-License-Identifier: BSD-3-Clause -- -- -- Converts an ELF file to a UF2 formated file. -- -- UF2 files are accepted by RP2040 micro_controllers -- in BOOTSEL mode for FLASH programming. -- with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use...
-- Alvaro Fernandez Velazquez (a_fernandez@usal.es) -- Francisco Blazquez Matias (fran_blm@usal.es) with Text_IO; package body Monitor is protected body Reactor is procedure leer (temp: out Integer) is begin temp := temperatura; end leer; procedure incrementar(incremento:Integer) i...
----------------------------------------------------------------------- -- util-texts-builders -- Text builder -- Copyright (C) 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in...