content
stringlengths
23
1.05M
with Gtk.Main; with Gtk.Handlers; with Gtk.Label; with Gtk.Button; with Gtk.Window; with Glib.Main; procedure Animation is Scroll_Forwards : Boolean := True; package Button_Callbacks is new Gtk.Handlers.Callback (Gtk.Button.Gtk_Button_Record); package Label_Timeout is new Glib.Main.Generic_Sources ...
-- { dg-do run } procedure not_null is type Not_Null_Int_Ptr is not null access all Integer; generic F : Not_Null_Int_Ptr := null; package GPack is end GPack; begin declare pragma Warnings (Off, "*null not allowed in null-excluding objects"); package Inst_2 is new GPack (null); ...
package Longest_Common_Prefix with SPARK_Mode => On, Initializes => A is type Text is array (Positive range <>) of Integer; A : Text (1 .. 1000) := (others => 0); function LCP (X, Y : Positive) return Natural with Pre => X in A'Range and Y in A'Range, Contract_Cases => (A (X) /= ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.FPU is pragma Preelaborate; --------------- -- Registers -- --------------- -- Floating-point context con...
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.IO_Exceptions; with Ada.Streams; with System.Unsigned_Types; package System.Stream_Attributes is pragma Preelaborate; -- required for 'Read/'Write attributes by compiler (s-stratt.ads) type Thin_Pointer is record P1 :...
with Ada.Streams; with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO; package TF_INTERFACE_1 is type CF_INTERFACE_1 is interface; procedure P_PROCEDURE_1 (This : in out CF_INTERFACE_1) is abstract; procedure Read (Stream : not null access ada.Streams.Root_stream_Type'Class; Item : o...
pragma License (Unrestricted); -- BSD 3-Clause -- translated unit from dSFMT (test.c) -- -- Copyright (c) 2007, 2008, 2009 Mutsuo Saito, Makoto Matsumoto -- and Hiroshima University. -- Copyright (c) 2011, 2002 Mutsuo Saito, Makoto Matsumoto, Hiroshima -- University and The University of Tokyo. -- All rights...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with AdaBase.Connection.Base.SQLite; with AdaBase.Bindings.SQLite; with Ada.Containers.Vectors; package AdaBase.Statement.Base.SQLite is package ACS renames AdaBase.Connection.Base.SQLite; package BND re...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
-- -- 3.3.2 Number Declarations -- -- number_declaration ::= -- defining_identifier_list : constant := static_expression; -- -- NOTE: This module is not compilation is used only for testing purposes -- procedure Number_Declarations is -- Examples of number declarations: Two_Pi : constant := 2.0*Ada...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- -- 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 EPL.Types, EPL.Bracket, Ada.Strings.Fixed; Separate (Risi_Script.Types.Patterns) Package Body Conversions is Function Trimmed_Image( Input : Integer ) return String is Use Ada.Strings.Fixed, Ada.Strings; Begin return Trim(Side => Left, Source => Integer'Image(Input)); End Trimmed_Image; ...
----------------------------------------------------------------------- -- el-contexts-tests - Tests the EL contexts -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this fi...
with Protypo.Api.Engine_Values.Engine_Value_Vectors; use Protypo.Api.Engine_Values; package Protypo.Api.Callback_Utilities is type Class_Array is array (Positive range <>) of Engine_Value_Class; function Match_Signature (Parameters : Engine_Value_Vectors.Vector; Signature : Class_...
----------------------------------------------------------------------- -- el-methods-func_string -- Pre-defined binding -- Copyright (C) 2010, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
with Ada.Streams; use Ada.Streams; package Endianness with Pure, Preelaborate, SPARK_Mode => On is -- @summary -- Convenience subprograms to convert between Big- and Little-endianness -- -- @description -- This package contains a few convenient subprograms that allow you to -- simply sw...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Iterateur_Mots; use Iterateur_Mots; with Vecteurs; use Vecteurs; package Helper is Erreur_Lecture : Exception; -- Cherche dans un fichier une ligne -- qui commence par la chaine donnée -- Renvoie la chaine trouvée SANS MARQUEUR -- avec un car. en moins à la fin (double quote) function Fic...
------------------------------------- -- Laboratory work #1 -- F1: D = (SORT(A + B) + C) *(MA*ME) -- F2: ML = SORT(MF + MG*MH) -- F3: T = (O + P)*(MP * MS) -- Date 30.09.2020 ------------------------------------- with data; with Ada.Integer_Text_IO, Ada.Text_IO; use Ada.Integer_Text_IO, Ada.Text_IO; with System.Mu...
with gel.Window.sdl; package gel.Window.setup renames gel.Window.sdl;
with Ada.Strings.Fixed; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A036 is use Ada.Strings.Fixed; use Ada.Integer_Text_IO; -- Initial values denoting the numbers 0, 1, 3, 5, 7, and 9. Sum_Val : Integer := 25; Decimal : String (1 .. 10); Binary : String (1 .. 30)...
with Ada.Containers; with Ada.IO_Exceptions; with Ada.Text_IO; with OpenAL.Context.Error; with OpenAL.Context; with OpenAL.List; with OpenAL.Types; with Test; procedure alc_001 is package ALC renames OpenAL.Context; package ALC_Error renames OpenAL.Context.Error; package List renames OpenAL.List; D...
with Ada.Text_IO; with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A027 is use Ada.Text_IO; use Ada.Integer_Text_IO; -- File Reference: http://www.naturalnumbers.org/primes.html FT : File_Type; Last_Index : Natural; Prime_Num : String (1 .. 10); File_Nam...
with Ada.Text_IO; with Intcode.Op; use Intcode.Op; package body Intcode is protected body Port is entry Put(I: in Memory.Value) when Status /= Full is begin if Status = Empty then Value := I; Status := Full; end if; end Put; entry Get(X: out Maybe_M...
------------------------------------------------------------------------------ -- -- -- Unicode Utilities -- -- -- -- ...
package body System.Native_Time is use type C.signed_int; pragma Warnings (Off, "is not referenced"); function To_tv_nsec (X : Nanosecond_Number) return C.signed_long with Convention => Intrinsic; -- Darwin, FreeBSD, or Linux (32/64bit) function To_tv_nsec (X : Nanosecond_Number) return C.sig...
-- ASCII85 -- Various binary data to ASCII codecs known as Base85, ASCII85 etc -- Copyright (c) 2015, James Humphry - see LICENSE file for details with System.Storage_Elements; with BinToAsc, BinToAsc.Base85; package ASCII85 is package BToA is new BinToAsc(Bin => System.Storage_Elements.Storage_Element, ...
-- Generated by gen-ada-entities.pl latin1.ent symbol.ent special.ent private package Wiki.Parsers.Html.Entities is pragma Preelaborate; AELIG_NAME : aliased constant String := "AElig"; AACUTE_NAME : aliased constant String := "Aacute"; ACIRC_NAME : aliased constant String := "Acirc"; AGRAVE_N...
pragma License (Unrestricted); with Ada.Numerics.Generic_Complex_Arrays; with Ada.Numerics.Short_Complex_Types; with Ada.Numerics.Short_Real_Arrays; package Ada.Numerics.Short_Complex_Arrays is new Generic_Complex_Arrays (Short_Real_Arrays, Short_Complex_Types); pragma Pure (Ada.Numerics.Short_Complex_Arrays);
-- Change log: -- GdM : 2005, 2006 : Get, Project also in Ada style -- GdM : 29 - Jan - 2004 : added GLU.Get, (glGetdoublev) for GLU's matrices -- GdM : 11 - Apr - 2002 : * adapated to the "GL .. ." and " .. .4x" - less GL -- * "glu .. ." and other useless C prefixes removed -- ...
-- $Id: SetsDrv.mi,v 1.5 1992/09/24 13:05:19 grosch rel $ -- $Log: SetsDrv.mi,v $ -- Ich, Doktor Josef Grosch, Informatiker, Sept. 1994 with Sets, Text_Io; use Sets, Text_Io; procedure SetsDrv is package Int_Io is new Integer_IO (Integer); use Int_Io; max : constant Integer := 1000; s, t, u : tSet; i, ...
-- Automatically generated, do not edit. with OpenAL.Load; package body OpenAL.Extension.EFX_Thin is -- -- Load function for API pointers -- function Load_API return API_t is function Load_Function is new Load.Load_Subprogram (Subprogram_Access_Type => Auxiliary_Effect_Slotf_t); function Load...
with Ada.Unchecked_Deallocation; with Test_Utils.Abstract_Encoder.COBS_Simple; with Test_Utils.Abstract_Encoder.COBS_Stream; with Test_Utils.Abstract_Encoder.COBS_Queue; with Testsuite.Encode.Basic_Tests; with Testsuite.Encode.Multiframe_Tests; package body Testsuite.Encode is Kind : Encoder_Kind := Encoder_Kind...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); private with System.Shared_Locking; -- implementation unit package GNAT.Task_Lock is pragma Preelaborate; procedure Lock; procedure Unlock; pragma Inline (Lock); -- renamed pragma Inline (Unlock); -- renamed private procedure Lock renames System.Shared_Locking....
with Memory.Container; use Memory.Container; package Memory.Wrapper is type Wrapper_Type is abstract new Container_Type with private; type Wrapper_Pointer is access all Wrapper_Type'Class; procedure Forward_Read(mem : in out Wrapper_Type; source : in Natural; ...
with Radar_Internals; procedure Main is -- You are in charge of developping a rotating radar for the new T-1000 -- Some of the radar code is already in place, it is just missing the -- high-level interface to handle incoming objects. type Object_Status_T is (Out_Of_Range, Tracked, Cleared, Selected); ...
------------------------------------------------------------------------------ -- -- -- ASIS APPLICATION TEMPLATE COMPONENTS -- -- -- -- ...
with display ; package game_types is type cell is (DEAD,ALIVE) ; type array_of_cell is array(display.screen'range(1),display.screen'range(2)) of cell ; type coordinates is record x : integer := display.screen'length(1) ; y :...
with Ada.Numerics.Distributions; package body Ada.Numerics.Discrete_Random is function Random (Gen : Generator) return Result_Subtype is function Do_Random is new Distributions.Linear_Discrete_Random ( MT19937.Unsigned_32, Result_Subtype, Generator, Ran...
----------------------------------------------------------------------- -- users - Gives access to the OpenID principal through an Ada bean -- Copyright (C) 2012, 2013 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
############################################################################# ## #W id1728q.ada GAP library of id's Hans Ulrich Besche ## ID_GROUP_TREE.next[1728].next[443].next[105]:= rec( fp:= [ 479, 1197, 2177, 2390, 5114, 5777, 6422, 6628, 6723, 6793, 7115, 7388, 8116, 8243, 9040, 10061,...
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure vigenere is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams....
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" private with GL.Low_Level; package GL.Enums.Queries is pragma Preelaborate; -- Texture_Kind is declared in GL.Low_Level.Enums to be accessible for -- OpenCLAda type Parameter is (Time_Ela...
package Inline1_Pkg is function Valid_Real (Number : Float) return Boolean; pragma Inline_Always (Valid_Real); function Invalid_Real return Float; pragma Inline_Always (Invalid_Real); end Inline1_Pkg;
-- $Id: Strings.md,v 1.3 1992/08/07 14:45:41 grosch rel $ -- $Log: Strings.md,v $ -- Ich, Doktor Josef Grosch, Informatiker, Sept. 1994 with Unchecked_Deallocation; package body strings is procedure Free is new Unchecked_Deallocation (String, tString); function "=" (Left, Right: tString) return Boolean is begin ...
with Ada.Calendar; with Ada.Exceptions; with Ada.Unchecked_Conversion; with Ada.Command_Line; with Ada.Environment_Variables; with Ada.Integer_Text_IO; with Ada.Numerics; with Ada.Numerics.Aux; with Ada.Numerics.Generic_Elementary_Functions; with Ada.Text_IO; with Ada.Unchecked_Deallocation; -- NOT IN STANDARD ADA ??...
------------------------------------------------------------------------------ -- Copyright (c) 2015-2016, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Generated at 2017-03-10 17:26:29 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-simple_pages-maps.sx package Natools.Static_Maps.Web.Simple_Pages is pragma Pure; type Command is (Unknown_Command, Comment_List, Date, Optional_Date, If_No_Date, Maps, My_Tags, Pat...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- 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 -- -- ...
-- PR ada/52735 -- Reported by Per Sandberg <per.sandberg@bredband.net> -- { dg-do compile } with Nested_Generic1_Pkg; procedure Nested_Generic1 is package P is new Nested_Generic1_Pkg; begin null; end;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package -<full_series_name_dots>-.enumerations is -<list_all_enumeration_types>- type -<series_name>-Enum is ( -<list_all_message_enumeration_names>- ); for -<series_name>-Enum use ( -<list_all_message_enumeration_ids>- );...
-- 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...
-- $Header: /dc/uc/self/arcadia/ayacc/src/RCS/output_file_body.a,v 1.2 1993/05/31 22:36:35 self Exp self $ -- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- The primary authors of ayacc were David Taback and Deepak Tolani. -- Enhancements were made by Ronald J. Schmalz...
-- { dg-do compile } -- { dg-options "-O" } package body Opt29 is procedure Proc (T : Rec) is begin if Derived2 (T.F2.all).Id = T.F1.Id then raise Program_Error; end if; end; end Opt29;
-- File: testuuid.adb -- Description: Test suite for AdaID -- Author: Anthony Arnold -- License: http://www.gnu.org/licenses/gpl.txt with AdaID; use AdaID; with AdaID.Generate; use AdaID.Generate; with Interfaces; use Interfaces; with AUnit.Assertions; use AUnit.Assertions; package body AdaID_Tests is -- Register...
with MSPGD.GPIO; use MSPGD.GPIO; generic Pin : Pin_Type; Port : Port_Type; Alt_Func : Alt_Func_Type := IO; Direction : Direction_Type := Input; Pull_Resistor : Resistor_Type := None; package MSPGD.GPIO.Pin is pragma Preelaborate; procedure Init with Inline_Always; procedure Set ...
-- Motherlode -- Copyright (c) 2020 Fabien Chouteau with Interfaces; with VirtAPU; use VirtAPU; with PyGamer.Audio; use PyGamer.Audio; package body Sound is C_16th : constant Command := (Wait_Ticks, 1); C_8th : constant Command := (Wait_Ticks, C_16th.Ticks * 2); C_Quarter : constant Command := (...
package Rule is type Victory is (military, colony, economy, peace); type Good_Type is (starship_power, station_build, more_resource, easy_colony); type Bad_Type is (less_resource, hard_build, hard_colony); end Rule;
-- { dg-do link } -- { dg-options "-O -flto" { target lto } } with Lto16_Pkg; use Lto16_Pkg; with Text_IO; use Text_IO; procedure Lto16 is begin if F = 0.0 then Put_Line ("zero"); else Put_Line ("non-zero"); end if; exception when others => Put_Line ("exception"); end;
with Interfaces.C, System.Address_To_Access_Conversions; use type Interfaces.C.int, System.Address; package body FLTK.Tooltips is function fl_tooltip_get_current return System.Address; pragma Import (C, fl_tooltip_get_current, "fl_tooltip_get_current"); pragma Inline (fl_too...
package Type_Lib is type RPM is new Natural range 1000 .. 2000; type Motor_Direction is (Left, Right); end Type_Lib;
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) with Units.Navigation; use Units.Navigation; with Units; with HIL.UART; with Interfaces; use Interfaces; -- @summary Driver to parse message...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package NCurses is pragma Pure; type Color is new Natural range 0..7; type Color_Range is new Natural range 0..1000; type Byte is mod 2**8 with Size=>8; COLOR_BLACK : constant Color := 0; COLOR_RED : constant Color := 1; COLOR_GREEN : constant Color := 2; COLOR_YELLOW : constant Color := 3; COLOR_BLUE : cons...
-- C54A13B.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 -- -- -- -- ...
package Discr12_Pkg is function Dummy (I : Integer) return Integer; end Discr12_Pkg;
with Test_Solution; use Test_Solution; package Problem_8 is type Int64 is range -2**63 .. 2**63 - 1; function Solution_1 return Int64; procedure Test_Solution_1; function Get_Solutions return Solution_Case; end Problem_8;
pragma License (Unrestricted); -- extended unit with Ada.References.Wide_Strings; with Ada.Streams.Block_Transmission.Wide_Strings; with Ada.Strings.Generic_Bounded; package Ada.Strings.Bounded_Wide_Strings is new Generic_Bounded ( Wide_Character, Wide_String, Streams.Block_Transmission.Wide_Strin...
generic with function "<" (L : Item_Type; R : Item_Type) return Boolean is <>; package ACO.Utils.DS.Generic_Collection.Sorted is pragma Preelaborate; type Sorted_Collection (Max_Size : Positive) is new Collection (Max_Size) with null record; overriding procedure Insert (C : in out Sorte...
package body Numerics is function modulus (X, Y : in Real) return Real is Result : Real := X; begin if Result >= 0.0 then while Result - Y >= 0.0 loop Result := Result - Y; end loop; else while Result < 0.0 loop Result := Result + Y; end loop; end if; return Res...
with System; with Other_Basic_Subprogram_Calls; package body Generic_Subprogram_Calls is G1_Address : System.Address := G1'Address; generic procedure G1_Renamed renames G1; G1_Renamed_Address : System.Address := G1_Renamed'Address; generic package G4_Renamed renames G4; procedure Test is ...
-- CE3602B.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 body Benchmark_Containers is type A is abstract tagged null record; type B is new A with null record; type B_Access is access B; procedure Test_Indefinite (N : Long; File_Name : String) is package Vector is new Ada.Containers.Indefinite_Vectors (Positive, B_Access); C : Vector.Vector; ...
with STM32_SVD; use STM32_SVD; with STM32_SVD.SCB; use STM32_SVD.SCB; with System.Machine_Code; use System.Machine_Code; package body STM32GD is procedure Wait_For_Interrupt is begin Asm ("WFI", Volatile => True); end Wait_For_Interrupt; procedure Clear_Event is begin Asm ("SEV", Volatile ...
-- C47009B.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...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Ada.Assertions; package body Apsepp.Test_Node_Class.Abstract_Simu_Case is ---------------------------------------------------------------------------- protected body Data_Locker is -----------...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
pragma License (Unrestricted); private with System.Finalization_Root; package Ada.Finalization is pragma Pure; type Controlled is abstract tagged private; pragma Preelaborable_Initialization (Controlled); procedure Initialize (Object : in out Controlled) is null; procedure Adjust (Object : in out Contr...
pragma License (Unrestricted); -- extended unit with Ada.Strings.Generic_Functions; package Ada.Strings.Wide_Wide_Functions is new Generic_Functions ( Character_Type => Wide_Wide_Character, String_Type => Wide_Wide_String, Space => Wide_Wide_Space); pragma Preelaborate (Ada.Strings.Wide_Wide_Funct...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Interfaces.C; package GL is pragma Preelaborate; package C renames Interfaces.C; ----------------------------------------------------------------------------- -- ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Containers.Ordered_Sets, Ada.Containers.Vectors; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; with Interfaces; use Interfaces; with Input16; use Input16, Input16.OH; procedure Day16 is subtype Op_String is String (1 .. 4); package String_Sets is new...
-- Synchronized subscriber with Ada.Command_Line; with Ada.Text_IO; with GNAT.Formatted_String; with ZMQ; procedure SyncSub is use type GNAT.Formatted_String.Formatted_String; Subscribers_Expected : constant := 10; -- We wait for 10 subscribers function Main return Ada.Command_Line.Exit_Status is ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure euler45 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.S...
------------------------------------------------------------------------------ -- -- -- WAVEFILES -- -- -- -- ...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with AcronymList; use AcronymList; with RASCAL.WimpTask; use RASCAL.WimpTask; with RASCAL.Utility; use RASCAL.Utility; with RASCAL.Variable; use RASCAL.Variable; with RASCAL.OS; use RASCAL.OS; packa...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising fr...
----------------------------------------------------------------------- -- Search.Models -- Search.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-gen.googleco...
-- 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...