content
stringlengths
23
1.05M
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- 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, cop...
with GL.Types; use GL.Types; package GLUT_API is procedure GLUT_Solid_Cube (Size : Double); pragma Import (StdCall, GLUT_Solid_Cube, "glutSolidCube"); procedure GLUT_Solid_Cone (Base, Height : Double; Slices, Stacks : Int); pragma Import (StdCall, GLUT_Solid_Cone, "glutSolidCone"); procedure GLUT_S...
----------------------------------------------------------------------- -- writer -- Response stream writer -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
with System; package SSO2 is type Arr1 is array (1 .. 4) of Character; for Arr1'Scalar_Storage_Order use System.High_Order_First; type Arr2 is array (1 .. 4) of Character; for Arr2'Scalar_Storage_Order use System.Low_Order_First; procedure Proc (A1 : Arr1; A2 : out Arr2); end SSO2;
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
------------------------------------------------------------------------------ -- -- -- WAVEFILES -- -- -- -- ...
with Account.Default_Account; use Account.Default_Account; with Ada.Containers.Vectors; package Account.Vector is package Account_Vector is new Ada.Containers.Vectors (Element_Type => Default_Account.Instance, Index_Type => Natural); use Account_Vector; subtype Account_Stack is Account_Vector.Vect...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- private package Ada_Pretty.Joins is type Join is new Node with private; function New_Join (Left : not null Node_Access; ...
----------------------------------------------------------------------- -- util-serialize-io-csv -- CSV Serialization Driver -- Copyright (C) 2011, 2016, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
package body LADSPA is overriding procedure Finalize (Self : in out Root_Descriptors) is C_Str : C.Strings.chars_ptr; begin C_Str := Self.Data.Label; C.Strings.Free (C_Str); C_Str := Self.Data.Name; C.Strings.Free (C_Str); C_Str := Self.Data.Maker; C.Strings.Free (C_...
with Aof.Core.Root_Objects; with Aof.Core.Objects; package Derived_Objects is type Derived_Object is new Aof.Core.Objects.Object with record Id : Natural; end record; type Access_Derived_Object is access all Derived_Object; procedure My_Slot (This : in Derived_Object); procedure My_Slot (T...
with Ada.Directories; with Asis.Implementation; -- GNAT specific: with Asis.Extensions; with Gnat.OS_Lib; with GNAT.String_Split; with Asis_Adapter.Unit; package body Asis_Adapter.Tool is ------------ -- EXPORTED: ------------ procedure Process (This : in out Class; Fi...
-- 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...
with ada.Numerics.generic_elementary_Functions; generic type Float_type is digits <>; type Matrix_2x2_type is private; with package float_elementary_Functions is new ada.Numerics.generic_elementary_Functions (Float_type); with function to_Matrix_2x2 (m11, m12, m...
package Slice6_Pkg is subtype LENGTH_RANGE is SHORT_INTEGER range 0 .. 8184; type T_BLOCK is array (SHORT_INTEGER range <>) of SHORT_SHORT_INTEGER; for T_BLOCK'alignment use 4; type T_MSG (V_LENGTH : LENGTH_RANGE := 0) is record HEADER : Integer; DATAS : T_BLOCK (1 .. V_LENGTH) := (others =>...
with HW.GFX.GMA; with HW.GFX.GMA.Display_Probing; use HW.GFX.GMA; use HW.GFX.GMA.Display_Probing; private package GMA.Mainboard is ports : constant Port_List := (DP1, DP2, DP3, HDMI1, HDMI2, HDMI3, Analog, Internal, others => Disabled); end GMA.Mainboard;
with Ada.Text_IO, Ada.Command_Line, Crypto.Types.Big_Numbers; procedure Fibonacci is X: Positive := Positive'Value(Ada.Command_Line.Argument(1)); Bit_Length: Positive := 1 + (696 * X) / 1000; -- that number of bits is sufficient to store the full result. package LN is new Crypto.Types.Big_Numbers (...
--------------------------------------------------------------------------- -- package body Test_Matrices -- Copyright (C) 2008-2018 Jonathan S. Parker. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright ...
with Ada.Streams, Ada.Tags; package gen_disp is type Root_Type is tagged null record; function Root_Type_Class_Input (S : not null access Ada.Streams.Root_Stream_Type'Class) return Root_Type'Class; for Root_Type'Class'Input use Root_Type_Class_Input; end gen_disp;
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package body GBA.Timers is function Get_Count (ID : Timer_ID) return Timer_Value is ( Timers (ID).Value ); procedure Set_Initial_Value (ID : Timer_ID; Value : Timer_Value) is begin Timers (ID).Value := Value; end Set_Initia...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Numerics.Discrete_Random; with Ada.Text_IO; procedure Guess_Number_Feedback is procedure Guess_Number (Lower_Limit : Integer; Upper_Limit : Integer) is subtype Number is Integer range Lower_Limit .. Upper_Limit; package Number_IO is new Ada.Text_IO.Integer_IO (Number); package Number_RNG i...
with Test_Solution; use Test_Solution; package Problem_4 is function Solution_1 return Integer; procedure Test_Solution_1; function Get_Solutions return Solution_Case; private function Is_Palindrome( Num : Integer ) return Boolean; end Problem_4;
-- { dg-do compile } package body RT1 is procedure P (S : access Root_Stream_Type'Class) is Val : constant Ptr := Ptr'Input (S); begin null; end P; end RT1;
package body Route_Aggregator_Common is ------------------- -- Append_To_Msg -- ------------------- procedure Append_To_Msg (Msg : in out Unbounded_String; Tail : String) is begin Append (Msg, Tail); end Append_To_Msg; end Route_Aggregator_Common;
with Ada.Text_IO; use Ada.Text_IO; with System.Storage_Elements; use System.Storage_Elements; procedure Test_Address is X : Integer := 123; Y : Integer; for Y'Address use X'Address; begin Put_Line ("At address:" & Integer_Address'Image (To_Integer (Y'Address))); Put_Line (Integer'Image (Y)...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.ANACTRL is pragma Preelaborate;...
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Benchmark.Trace is -- Memory traces are sequences of memory access actions separated by -- new lines. The format of each line is: -- -- <action> <value> -- -- where <action> is 'R' for read, 'W' for write, and 'I' for idle. -- Fo...
package body IRQ is protected body Controller is procedure IRQ_Handler is begin null; end IRQ_Handler; procedure Run is begin loop null; end loop; end Run; end Controller; end IRQ;
-- unique_ptr_example.adb -- An example of using the Unique_Ptr types -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in al...
package body System.Interrupts is procedure Install_Handlers ( Object : not null access Static_Interrupt_Protection; New_Handlers : New_Handler_Array) is Length : constant Natural := New_Handlers'Length; begin for I in 0 .. Length - 1 loop declare New_Item : New_Ha...
private with ACO.Protocols.Network_Management.Slaves; private with ACO.Protocols.Error_Control.Masters; private with ACO.Protocols.Synchronization; private with ACO.Protocols.Service_Data.Servers; private with ACO.SDO_Sessions; package ACO.Nodes.Locals is type Local (Id : ACO.Messages.Node_Nr; Ha...
with Ada.Bind_Time_Variables; procedure bindtimevars is begin for I in Ada.Bind_Time_Variables.Iterate loop Ada.Debug.Put ( Ada.Bind_Time_Variables.Name (I) & " = " & Ada.Bind_Time_Variables.Value (I)); end loop; pragma Assert (Ada.Bind_Time_Variables.Exists ("KEY1")); pragma Assert (Ada.Bind_Time_Variab...
-- { dg-do compile } -- { dg-options "-fdump-tree-original" } package body Aggr12 is procedure Print (Data : String) is begin null; end; procedure Test is begin Print (Hair_Color_Type'Image (A.I1)); Print (Hair_Color_Type'Image (A.I2)); end; end Aggr12; -- { dg-final { scan-tree-dump-not "{...
----------------------------------------------------------------------- -- userdb -- Example to find/create an object from the database -- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
-- -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- The version of the OpenAPI document: 20220523 -- -- -- NOTE: This package is auto generated by OpenAPI-Generator 5.4.0. -- https://openapi-generator.tech -- Do not edit the class manually. prag...
-- This spec has been automatically generated from out.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- Calibration Data package MSP430_SVD.CALIBRATION_DATA is pragma Preelaborate; --------------- -- Registers -- --------------- -----------...
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Your SKilL Ada Binding -- -- \__ \ ' <| | | |__ <<debug>> -- -- |___/_|\_\_|_|____| by: <<some developer>> ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; with Utilities; with Unix; with Ada.Text_IO; with Ada.Characters.Latin_1; with Ada.Calendar.Formatting; package body Port_Specification is package UTL renames Utilities; p...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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...
with Ada.Real_Time; use Ada.Real_Time; package Task_Scheduling is protected Epoch with Priority => 25 is procedure Get_Start_Time(Start_Time : out Ada.Real_Time.Time); private Start : Ada.Real_Time.Time; First : Boolean := True; end Epoch; end Task_Scheduling;
---------------------------------------------------------------------- -- package Peters_Eigen, eigendecomposition -- Copyright (C) 2008-2018 Jonathan S. Parker. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- c...
-- PR middle-end/55321 -- { dg-do compile } -- { dg-options "-O" } with Loop_Optimization14_Pkg; use Loop_Optimization14_Pkg; package body Loop_Optimization14 is procedure Finalize_Pool (Pool : in out Rec) is Raised : Boolean := False; begin Pool.A := True; while not Pool.B loop be...
with Byte_Writer; with Byte_Reader; package body Benchmark_V64 is procedure Write (N : Long; File_Name : String) is Output_File : ASS_IO.File_Type; Output_Stream : ASS_IO.Stream_Access; begin ASS_IO.Create (Output_File, ASS_IO.Out_File, File_Name); Output_Stream := ASS_IO.Stream (Output_...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- C85007A.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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package body Sodium.Functions is --------------------------------- -- initialize_sodium_library -- --------------------------------- function initialize_sodium_library return Boolean is use ...
with Terminal_Interface.Curses; package Crawler.Entities is package Curses renames Terminal_Interface.Curses; type Character is limited private; function Make(Symbol : Standard.Character; Row : Curses.Line_Position; Col : Curses.Column_Position) return Character; proced...
-- Parallel and Distributed Computing -- RGR. Ada Rendezvous -- Task: Z = X*(MA*MS) + min(Q)*(R*MF) -- Koval Rostyslav IO-71 with Ada.Text_IO, Ada.Integer_text_iO, Ada.Synchronous_Task_Control, Data; use Ada.Text_IO, Ada.Integer_text_iO, Ada.Synchronous_Task_Control; with Ada.Real_Time; use Ada.Real_Time; ...
package stats is Type statType is record Level : Integer; HP : Integer := 0; MaxHP : Integer; Magic : Integer; MaxMag : Integer; Attack : Integer; Defense : Integer; Agility : Integer; XP : Integer; end record; Procedure Instantiate; function rand return Integer; function randomRange(to : Inte...
-- This spec has been automatically generated from msp430g2553.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- USCI_B0 SPI Mode package MSP430_SVD.USCI_B0_SPI_MODE is pragma Preelaborate; --------------- -- Registers -- --------------- --...
----------------------------------------------------------------------- -- Util.Concurrent.Arrays -- Concurrent Arrays -- Copyright (C) 2012 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 e...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package Package_Manifests is compress_issue : exception; decompress_issue : exception; sorting_issue : exception; type Filename is new String; -- Given the path to the manifest, compress it ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with swig; with interfaces.C; package box2d_c is -- Shape -- subtype Shape is swig.opaque_structure; type Shape_array is array (interfaces.C.Size_t range <>) of aliased box2d_c.Shape; -- Object -- subtype Object is swig.opa...
with AdaM.context_Line, AdaM.a_Package, Gtk.Button, gtk.Widget, Ada.Streams; private with Gtk.gEntry, Gtk.Window, Gtk.Notebook, Gtk.Table; package aIDE.Palette.of_packages is type Item is new Palette.item with private; type View is access all Item'Class; -- F...
-- PR tree-optimization/71083 package Loop_Optimization23_Pkg is type Nibble is mod 2**4; type Int24 is mod 2**24; type StructA is record a : Nibble; b : Int24; end record; pragma Pack(StructA); type StructB is record a : Nibble; b : StructA; end record; pragma Pack(StructB); type Arr...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2020, AdaCore -- -- -- -- ...
with PositivosEMedia; use PositivosEMedia; with Text_IO; use Text_IO; procedure Main is obj1: P; begin obj1.Init; obj1.contarPositivos; obj1.calcularMedia; obj1.exibeResultados; end Main;
-- CD2A31C.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
package Array18_Pkg is function N return Positive; subtype S is String (1 .. N); function F return S; end Array18_Pkg;
with ACO.Messages; with Ada.Real_Time; package ACO.Drivers is type Driver is abstract tagged limited null record; type Driver_Access is access all Driver'Class; procedure Receive_Message_Blocking (This : in out Driver; Msg : out ACO.Messages.Message) is abstract; procedure Send_Message...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Hoc...
-- Copyright 2017 Georgios Migdos -- -- 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, merge, publish, ...
-- AOC 2020, Day 20 package Day is function image_checksum(filename : in String) return Long_Integer; function water_roughness return Long_Integer; end Day;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Afficher le nombre de jours d'un mois pour une année qui n'est pas bissextile. -- Contrainte : le modulo est interdit (reste de la division entière). procedure Afficher_Nombre_Jours_Mois is Mois: Integer; -- le moi...
-- kvflyweight_example.adb -- An example of using the KVFlyweight package -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear i...
M:test S:Ltest.aligned_alloc$size$1$26({2}SI:U),B,1,-4 S:Ltest.aligned_alloc$alignment$1$26({2}SI:U),B,1,1
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package FLTK.Widgets.Groups.Scrolls is type Scroll is new Group with private; type Scroll_Reference (Data : not null access Scroll'Class) is limited null record with Implicit_Dereference => Data; type Scroll_Kind is (Horizontal, Vertical, Both, Al...
package body Ada.Text_IO.Text_Streams is procedure Open ( File : in out File_Type; Mode : File_Mode; Stream : Stream_Access; Name : String := ""; Form : String) is NC_File : Naked_Text_IO.Non_Controlled_File_Type renames Controlled.Reference (File).all; begin ...
----------------------------------------------------------------------- -- servlet-rest -- REST Support -- Copyright (C) 2016, 2017, 2018 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 exce...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Network.Addresses; with Network.Streams; package Network.Connections is pragma Preelaborate; type Connection is limited interface and Netw...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
procedure Adventofcode.Day_8.Main is C : Computer_Type; begin C.Load ("src/day-8/input.test"); for I of C.Storage loop C.Reset; C.Trace := True; if I.Code in Nop | Jmp then if I.Code = Nop then I.Code := Jmp; C.Run; I.Code := Nop; elsif I...
with Numerics, Chebyshev, Dense_AD, Dense_AD.Integrator; use Numerics, Chebyshev; package Sb_Package is Convergence_Exception : exception; ----------------------------------------------- N : constant Nat := 2; K : constant Nat := 12; α : Real; ----------------------------------------------- ...
-- 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.Grid.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Grid.Test_Data .Test with nul...
pragma Ada_2012; package body Readable_Sequences.Generic_Sequences is ------------------ -- Set_Position -- ------------------ procedure Set_Position (Seq : in out Sequence; Pos : Cursor) is begin Seq.Position := Pos; end Set_Position; ---------- -- Next -- ...
private with STM32_SVD.IPCC; package STM32.IPCC is type IPCC_Channel_Range is range 1 .. 6; IPCC_Channel_1 : constant IPCC_Channel_Range := 1; IPCC_Channel_2 : constant IPCC_Channel_Range := 2; IPCC_Channel_3 : constant IPCC_Channel_Range := 3; IPCC_Channel_4 : constant IPCC_Channel_Range := 4; IPCC...
separate(Practica6) procedure Insertar(L: in out Lista; V: in Integer) is Aux:pnodo; begin Aux := crear(V); if L.Numelem = 0 then L.inicio := aux; l.fin := aux; l.Numelem := 1;--inserto el primer elemento cuando la lista esta vacia else l.fin.siguiente := aux; aux.anterior := L.Fin; L.Fin := Aux; l.Num...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2019 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...
with Ada.Containers.Doubly_Linked_Lists; use Ada.Containers; generic type T is private; package Brackelib.Stacks is -- @summary -- Implementation of the stack abstract data type type Stack is limited private; procedure Push (Self : in out Stack; Item : T); -- Adds an item to the top of the stack making...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" private package Yaml.Lexer.Evaluation is procedure Read_Plain_Scalar (L : in out Instance; T : out Token); procedure Read_Single_Quoted_Scalar (L : in out Instance; T : out Token) with Pre...
with Ada.Text_IO, Ada.Command_Line; procedure Power_Set is type List is array (Positive range <>) of Positive; Empty: List(1 .. 0); procedure Print_All_Subsets(Set: List; Printable: List:= Empty) is procedure Print_Set(Items: List) is First: Boolean := True; begin Ada.Text_IO.Put("{ "); ...
----------------------------------------------------------------------- -- asf-components-widgets-inputs -- Input widget components -- 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 ...
-- Debug Exception and Monitor Control Register pragma Restrictions (No_Elaboration_Code); with Interfaces; use Interfaces; with System; package STM32.Debug is Debug_Core_Base : constant System.Address := System'To_Address (16#E000_EDF0#); -------------------- -- DEMCR_Register -- ----------------...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Streams; with League.Strings; package Network.Addresses is pragma Preelaborate; type Address is private; -- Composable and future-proo...
----------------------------------------------------------------------- -- streams.files.tests -- Unit tests for buffered streams -- Copyright (C) 2010, 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may no...
-- { dg-do run } with Interfaces; use Interfaces; procedure Exp0_Eval is F_Count : Natural := 0; function F return Integer is begin F_Count := F_Count + 1; return 1; end F; function F return Unsigned_32 is begin F_Count := F_Count + 1; return 1; end F; R : constant In...
-- { dg-do compile } package body sync1 is protected body Chopstick is entry Pick_Up when not Busy is begin Busy := True; end Pick_Up; procedure Put_Down is begin Busy := False; end Put_Down; end Chopstick; end sync1;
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Ada.Storage_Mapped_IO; procedure mappedio is Mapping : Ada.Storage_Mapped_IO.Storage_Type; begin Ada.Storage_Mapped_IO.Map (Mapping, Name => "mappedio.adb"); -- this file declare Image : String (1 .. Natural (Ada.Storage_Mapped_IO.Storage_Size (Mapping))); for Image'Address use Ada.Storage_Mapped_IO.Storage...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by...
-- Abstract : -- -- Utilities for translating input file structures to WisiToken -- structures needed for LALR.Generate. -- -- Copyright (C) 2014, 2015, 2017 - 2020 Free Software Foundation, Inc. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under terms of the GNU Gener...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package body GL.Matrices is function "+" (Left, Right : Matrix) return Matrix is Return_Matrix : Matrix; begin for Column in Index_Type loop for Row in Index_Type loop ...
-- Abstract : -- -- Back end for Emacs Ada mode indentation engine, using GPS -- indentation code. -- -- Copyright (C) 2014, 2017 All Rights Reserved. -- -- This program is free software; you can redistribute it and/or -- modify it under terms of the GNU General Public License as -- published by the Free Softwa...