content
stringlengths
23
1.05M
with C.mpfr; package MPFR.Root_FR.Inside is pragma Preelaborate; function Reference (X : in out MP_Float) return not null access C.mpfr.mpfr_struct; function Constant_Reference (X : MP_Float) return not null access constant C.mpfr.mpfr_struct; pragma Inline (Reference); -- renamed pragma Inline (Constant_R...
package body Signal is protected body Handler is function Triggered return Boolean is (Signal_Received); procedure Handle_Int is begin Signal_Received := True; end Handle_Int; procedure Handle_Quit is begin Signal_Received := True; end Handle_Quit; ...
-- -- Copyright (C) 2022, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32F3x4.svd -- This is a version for the STM32F3x4 MCU package Ada.Interrupts.Names is -- All identifiers in this unit are implementation defined pragma Implementation_Defined; -------...
with AAA.Strings; with GNAT.Strings; with GNAT.Command_Line; private with Ada.Strings.Unbounded; private with Ada.Containers.Vectors; package CLIC.Subcommand is -- This root package defines the interface types to be used in the -- Subcommand. See CLIC.Subcommand.Instance to create the parser/executor. ty...
package body myarray is -- Vector addition function "+" (Left : in Vector; Right : in Vector) return Vector is Result : Vector (Left'Range) := Left; begin for I in Result'Range loop Result (I) := Result (I) + Right (I); end loop; return Result; end "+"; -...
-- { dg-do run } with Text_IO; use Text_IO; procedure Named_Test is type Base is tagged limited record Flag : boolean; Value : integer; end record; -- function Build (X : Integer; Y : Integer) return Base is begin return Result : Base do Result.Flag := (X = Y); Result....
-------------------------------------------------------------------------------- -- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@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 Ho...
-- Lua.Lib -- Supporting the Lua standard libraries -- Copyright (c) 2015, James Humphry - see LICENSE for terms with Interfaces; use Interfaces; with Interfaces.C; with Interfaces.C.Strings; use Interfaces.C.Strings; with Ada.Strings, Ada.Strings.Fixed; with Lua.Internal, Lua.AuxInternal, Lua.LibInternal; use Lua....
------------------------------------------------------------------------------ -- Copyright (c) 2016, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
----------------------------------------------------------------------- -- ado-connections -- Database connections -- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the...
-- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.ETHERNET is pragma Preelaborate; --------------- -- Registers -- --------------- subtype DMABMR_SR_Field is STM32_SV...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with lace.Event; package lace_demo_Events -- -- Provides a simple derived lace 'event'. -- is pragma remote_Types; type keyboard_Event is new lace.Event.item with record Key : Character; end record; end lace_demo_Events;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
package Opt20_Pkg is procedure Write_Str (S : String); type Fail_Proc is access procedure (S : String); procedure My_Fail (S : String); Fail : Fail_Proc := My_Fail'Access; function Get_Name_String (Id : Integer) return String; end Opt20_Pkg;
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada_Pretty.Definitions; package body Ada_Pretty.Declarations is -------------- -- Document -- -------------- overr...
with Ada.Text_IO; procedure double_1_20 is package T_IO renames Ada.Text_IO; package I_IO is new Ada.Text_IO.Integer_IO(Integer); procedure Power(Item : in out Integer)is begin Item:=Item*2; end Power; X:Integer := 1; begin for i in Integer range 1..30 loop I_IO.Put(X); T_IO.New_Li...
with P_StructuralTypes; use P_StructuralTypes; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Sequential_IO; with Ada.Strings.Unbounded; package body P_StepHandler.ReverseIPHandler is function Make (Handler : in out ReverseIPHandler) return ReverseIPHandler is ...
with Interfaces.C, System; use type System.Address; package body FLTK.Images.Pixmaps.XPM is function new_fl_xpm_image (F : in Interfaces.C.char_array) return System.Address; pragma Import (C, new_fl_xpm_image, "new_fl_xpm_image"); pragma Inline (new_fl_xpm_image); ...
pragma License (Unrestricted); -- implementation unit package System.Formatting.Decimal is pragma Pure; procedure Image ( Value : Long_Long_Integer; Item : out String; -- To'Length >= T'Fore + T'Aft + 1 (.) Fore_Last, Last : out Natural; Scale : Integer; Signs : Sign_Marks := ('-',...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
<table> <thead align = "right"> <tr><th></th><td>X</td><td>Y</td><td>Z</td></tr> </thead> <tbody align = "right"> <tr><td> 1</td><td> 7255</td><td> 3014</td><td> 9436</td></tr> <tr><td> 2</td><td> 554</td><td> 3314</td><td> 8765</td></tr> <tr><td> 3</td><td> 4832</td><td> 129</td><td> 2048</td></t...
with Lv.Mem; package body Lv.Strings is ---------------- -- New_String -- ---------------- function New_String (Str : String) return Lv.C_String_Ptr is use System; use Interfaces; Addr : constant System.Address := Lv.Mem.Alloc (Str'Length + 1); Out_Str : String (1 .. Str'Length ...
with Numerics, Chebyshev, Numerics.Sparse_Matrices.CSparse; use Numerics, Chebyshev; package body Auto_Differentiation.Integrator is function Is_Setup return Boolean is Okay : Boolean := True; begin if N_Col (MatA) = 0 or else N_Row (MatA) = 0 or else N_Col (MatB) = 0 or else N_Row (MatB) = 0 ...
-- 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 Tk.Frame.Frame_Options_Test_Data.Frame_Options_Tests is type Test_Frame_Options is new GNATtest_Generated.GNATtest_Standa...
------------------------------------------------------------------------------- -- 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...
----------------------------------------------------------------------- -- akt-commands -- Ada Keystore Tool commands -- 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 this file ex...
with Ada.Text_IO; use Ada.Text_IO; procedure Pyramid_of_Numbers is B_X, B_Y, B_Z : Integer := 0; -- Unknown variables type Block_Value is record Known : Integer := 0; X, Y, Z : Integer := 0; end record; X : constant Block_Value := (0, 1, 0, 0); Y : constant Block_Value := (0, 0, 1, 0); ...
package openGL.Program.colored_textured -- -- Provides a program for colored, textured GL vertices. -- is type Item is new openGL.Program.item with null record; type View is access all Item'Class; overriding procedure set_Uniforms (Self : in Item); end openGL.Program.colored_textured;
package body Max with SPARK_Mode is function Arrays_Max (A : in Our_Array) return Index_Range is X : Index_Range := Index_Range'First; Y : Index_Range := Index_Range'Last; function max (L, R : Content_Range) return Content_Range is (if L > R then L else R) with Ghost; begin ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Interfaces.C.Strings; with Interfaces.C; with Interfaces.C.Pointers; with Interfaces.C.Strings; with System; package clib.lconv is -- Item -- type Item is record decimal_point : aliased Interfaces.C.Strings.chars_ptr; ...
with Ada.Integer_Text_IO; procedure Faktor is N : Integer; Fakt : Integer := 1; begin Ada.Integer_Text_IO.Get( N ); for I in 1..N loop Fakt := Fakt * I; end loop; Ada.Integer_Text_IO.Put( Fakt ); end Faktor;
with AdaBase.Logger.Base; package MyLogger is package ALB renames AdaBase.Logger.Base; type CustomLogger is new ALB.Base_Logger and ALB.AIL.iLogger with null record; overriding procedure reaction (listener : CustomLogger); clogger : aliased CustomLogger; end MyLogger;
package NPC_PC is ------------------------------- -- Name: Jon Spohn -- David Rogina -- Hero and enemy stats package ------------------------------- type HeroClass is private; Type EnemyClass is private; --Set hero x,y coordinates procedure SetHeroCoord( X: in integer; Y: in inte...
with AdaM.Any, AdaM.a_Type, ada.Streams; package AdaM.Parameter is type Item is new Any.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 : in ...
------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: ISC License (see COPYING file) -- -- -- -- ...
----------------------------------------------------------------------- -- ado-cache-discrete -- Simple cache management for discrete types -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, 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 must retain the above copyright notice, t...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package GESTE_Fonts.FreeMonoBold8pt7b is Font : constant Bitmap_Font_Ref; private FreeMonoBold8pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#0C#, 16#03#, 16#00#, 16#C0#, 16#30#, 16#0C#, 16#03#, 16#00#, 16#C0#, 16#00#, 16#0C#, 16#03#, 16#00#, 16#00#, 16#00#, 16#...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- -- Trivial implementation of subunits with Program.Subunits; with Program.Compilation_Unit_Vectors; with Program.Units.Vectors; package Program.Units.Subu...
with Sodium.Functions; use Sodium.Functions; with Ada.Text_IO; use Ada.Text_IO; procedure Demo_Ada is FF : constant Character := Character'Val (255); n1 : String (1 .. 3) := (others => ASCII.NUL); n2 : String (1 .. 3) := (others => FF); n3 : String (1 .. 3) := (3 => Character'Val (254), others => ASCII.NUL...
----------------------------------------------------------------------- -- GtkAda - Ada95 binding for Gtk+/Gnome -- -- -- -- Copyright (C) 2010, AdaCore -- -- ...
-- -- Copyright (C) 2016-2017 secunet Security Networks AG -- -- 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, or -- (at your option) any later version. -- -- ...
with EU_Projects.Nodes.Partners; -- with EU_Projects.Identifiers; -- with EU_Projects.Costs; with EU_Projects.Nodes.Timed_Nodes.Milestones; with EU_Projects.Nodes.Action_Nodes.WPs; with EU_Projects.Nodes.Action_Nodes.Tasks; with EU_Projects.Nodes.Timed_Nodes.Deliverables; with EU_Projects.Nodes.Risks; with DOM.Core....
-- -- 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.Native_Directories.File_Names; function Ada.Directories.Equal_File_Names ( FS : Volumes.File_System; Left, Right : String) return Boolean is begin return System.Native_Directories.File_Names.Equal_File_Names ( FS, Left, Right); end Ada.Directories.Equal_File_Names;
with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Strings.Hash; with Ada.Environment_Variables; with Ada.Text_IO; with Ada.Strings.Unbounded; package Globals is pragma Elaborate_Body; use Ada.Strings.Unbounded; Blueprint_Folder_Name : constant String := "blueprints"; Blueprint_Default : ...
with vectores; use vectores; procedure eliminar_tercer_elemento_ordenada (V: in out Vector_de_enteros) is -- pre: los elementos de la lista estan ordenados -- post: si hay tres o mas elementos, el tercer elemento quedara eliminado -- y la lista mantendra el orden Inicio: Integer; begin Inicio:=V'F...
with Word_List; with Ada.Containers.Vectors; package Decipherer is type Encrypted_Char is new Character; type Encrypted_Word is Array(Positive range 1 .. Word_List.Word'Last) of Encrypted_Char; type Candidate_Set is Array(Positive range <>) of Encrypted_Word; -- A mapping from the encrypted character to ...
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.PF is pragma Preelaborate; --------------- -- Registers -- --------------- -- CLIDR_CL array element subtype CLIDR_CL...
with SDL.Video.Windows.Makers; with SDL.Video.Renderers.Makers; with SDL.Video.Palettes; with SDL.Events.Events; with SDL.Events.Keyboards; procedure Colour_Bars_Display is use type SDL.Events.Event_Types; use SDL.C; Colours : constant array (0 .. 7) of SDL.Video.Palettes.Colour := ((0, 0, 0, 255), ...
with Interfaces; with GL.Types; with GA_Maths; with Blade_Types; with E3GA; with Multivectors; with Multivector_Type_Base; package C3GA is -- Vector_E3 corresponds to c3ga.vectorE3GA coordinate storage float m_c[3] subtype Vector_E3 is GL.Types.Singles.Vector3; subtype Vector_E3_Array is GL.Types.Single...
----------------------------------------------------------------------- -- gen-commands-templates -- Template based command -- Copyright (C) 2011, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
-- SipHash24_String_Hashing -- Instantiations of SipHash with recommended parameters for the String types -- in order to replace Ada.Strings.Hash and friends. -- Copyright (c) 2015, James Humphry - see LICENSE file for details pragma Spark_Mode; with Ada.Characters.Handling, Ada.Wide_Characters.Handling; with Ada.Wi...
with Ada.Text_IO; with Ada.Float_Text_IO; with Ada.Long_Integer_Text_IO; with Ada.Command_Line; with Ada.Environment_Variables; with Bitmaps.IO; with Bitmaps.RGB; with Ada.Text_IO.Text_Streams; with Problem; with ImageOps; with Simulated_Annealing; with RAII; procedure Main is package Positive_IO is new Ada.Text_IO...
-------------------------------------------------------------------------------- -- 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...
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with GLOBE_3D; package Spaceship_P is procedure Create (Object : in out GLOBE_3D.p_Object_3D; Object_Scale : GLOBE_3D.Real; Centre : GLOBE_3D.Point_3D); end Spaceship_P;
generic Frequency : Unsigned_32; Source: Source_Type; Input: Input_Type; package MSPGD.Clock.Source is pragma Preelaborate; procedure Init; procedure Delay_us (us : Natural); procedure Delay_ms (ms : Natural); procedure Delay_s (s : Natural); function Millisecond_Counter return Unsigned_3...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Calendar; use Ada.Calendar; with Ada.Containers.Vectors; procedure Show_Type_Invariant is package Courses is type Course is private with Type_Invariant => Check (Course); ty...
----------------------------------------------------------------------- -- awa-events-dispatchers-actions -- Event dispatcher to Ada bean actions -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2016-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- { dg-do compile } -- { dg-options "-O -gnatn -Winline" } with Inline10_Pkg; use Inline10_Pkg; procedure Inline10 is begin Test (0); end;
----------------------------------------------------------------------- -- gen-artifacts-distribs-copies -- Copy based distribution artifact -- Copyright (C) 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License")...
type Matrix is array(Positive Range <>, Positive Range <>) of Integer; mat : Matrix(1..5,1..5) := (others => (others => 0)); -- then after the declarative section: for i in mat'Range(1) loop mat(i,i) := 1; end loop;
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with LSP.Message_Handlers; with LSP.Messages; with LSP.Servers; with Ada_LSP.Contexts; package Ada_LSP.Handlers is type Message_...
with Ada.Text_Io; use Ada.Text_Io; procedure Temp_File is Temp : File_Type; Contents : String(1..80); Length : Natural; begin -- Create a temporary file Create(File => Temp); Put_Line(File => Temp, Item => "Hello World"); Reset(File => Temp, Mode => In_File); Get_Line(File => Temp, Item => Cont...
-- part of ParserTools, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Containers; with Ada.Strings.UTF_Encoding; with Ada.Finalization; with System.Storage_Elements; private with Ada.Unchecked_Conversion; package Text is -- this package defines a refer...
with Qt; use Qt; with Qt.QApplication; use Qt.QApplication; with Qt.QWidget; use Qt.QWidget; with CovidSimForm; use CovidSimForm; procedure covidsim is begin covidsim_form_init; QWidget_show(covidsim_form); QApplication_invoke; end;
with Ada.Text_IO; use Ada.Text_IO; procedure Test_Selection_Sort is type Integer_Array is array (Positive range <>) of Integer; procedure Sort (A : in out Integer_Array) is Min : Positive; Temp : Integer; begin for I in A'First..A'Last - 1 loop Min := I; for J in I + 1.....
with Text_Io; -- always need these two lines for printing use Text_Io; with Ada.Float_Text_IO; use Ada.Float_Text_IO; package body Adaptive_Quad is function SimpsonsRule(a, b:float) return float is c, h3:float; begin c := (a+b) / 2.0; h3 := abs(b-a) / 6.0; return h3*(f(a) + 4.0...
-- This file is generated by SWIG. Do *not* modify by hand. -- with llvm; with Interfaces.C.Strings; package LLVM_execution_Engine.Binding is procedure LLVMLinkInJIT; procedure LLVMLinkInInterpreter; function LLVMCreateGenericValueOfInt (Ty : in llvm.LLVMTypeRef; N : in Interfaces...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
with Ada.Text_IO; package body Problem_45 is package IO renames Ada.Text_IO; procedure Solve is -- Hexagonal numbers are a subset of the triangle numbers so if -- it's a hexagonal number, it's also a triangle number. -- The problem description has us start at a non-unitary index. hexagona...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2019, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with p2; use p2; procedure main with SPARK_Mode is begin -- trying to reprouce the problem StratoX has in hil.ads, but doesn't show up here p2.foo; end main;
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package body PortScan.Buildcycle.Ports is --------------------- -- build_package -- --------------------- function build_package (id : builders; sequence_id : port...
--=========================================================================== -- -- This is the main master program for the Pico for the -- use cases: -- 1: Master Pico -> Slave Pico -- 2: Master Pico -> Slave ItsyBitsy -- --=========================================================================== ...
with Interfaces.C; use Interfaces.C; with Mysql.Mysql; use Mysql.Mysql; package Mysql.Time is pragma Preelaborate; -- Copyright (C) 2004 MySQL AB -- 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 ...
-- Copyright (c) 2013, 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: -- -- * Redistributions of source code must retain the above copyright notice, this -- lis...
package Solar_System.Graphics is protected Graphic_Context is procedure Set_Window(W: Window_ID); entry Get_Window(W: out Window_ID; C : out Canvas_ID); private Window : Window_ID; Canvas : Canvas_ID; Is_Set : Boolean := False; end Graphic_Context; task T_Display;...
with Ada.Text_IO; with PrimeUtilities; package body Problem_69 is package IO renames Ada.Text_IO; subtype One_Million is Integer range 1 .. 1_000_000; best : One_Million := 1; package Million_Primes is new PrimeUtilities(One_Million); procedure Solve is prime : One_Million; gen : Million_Pri...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: Apache-2.0 -- package body Notcurses is function "+" (Left, Right : Coordinate) return Coordinate is ((Y => Left.Y + Right.Y, X => Left.X + Right.X)); function "-" (Left, Right : Coordinate) ret...
package Opt17 is subtype S is String (1 .. 5); function Func return S; end Opt17;
-- longer_integers.adb with Ada.Text_IO; use Ada.Text_IO; procedure longer_integers is TestLI : Long_Long_Integer := 4; begin Put_Line(" Long_Long_Integer: " & Long_Long_Integer'Image(TestLI)); Put_Line(" Long_Long_Integer min: [ " & Long_Long_Integer'Image(Long_Long_Integer'First) & " ] and max : [ " & Lon...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
--=========================================================================== -- -- This program implements a demo program for the SH1107 OLED driver. -- It is implemented on a Raspberry Pico. -- --=========================================================================== -- -- Copyright 2022 (C) Holger Rodrigue...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
pragma License (Unrestricted); -- runtime unit with Ada; with System.Unwind.Representation; package System.Unwind.Raising is pragma Preelaborate; -- equivalent to Raise_With_Location_And_Msg (a-except-2005.adb) procedure Raise_Exception ( E : not null Exception_Data_Access; File : String := ""; ...
package SPARKNaCl.MAC with Pure, SPARK_Mode => On is -- Limited, so no assignment or comparison, and always -- pass-by-reference. type Poly_1305_Key is limited private; function Construct (K : in Bytes_32) return Poly_1305_Key with Global => null; procedure Construct (K : out Poly_13...
with Cmd_ada; package Test_Procs is procedure Test1 (Params : Cmd_ada.Cb_Parameters.Vector); end Test_Procs;
with System.Multiprocessors.Dispatching_Domains; use System.Multiprocessors.Dispatching_Domains; package Dispatch is My_Domain : Dispatching_Domain := Create(2,2); task My_Task with Dispatching_Domain => My_Domain; end Dispatch;
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- { dg-do run } with GNAT.Expect; use GNAT.Expect; with Ada.Text_IO; use Ada.Text_IO; procedure expect1 is Process : Process_Descriptor; begin begin Close (Process); raise Program_Error; exception when Invalid_Process => null; -- expected end; end expect1;