content
stringlengths
23
1.05M
with Computation_Type; with Image_Types; generic with package CT is new Computation_Type (<>); with package IT is new Image_Types (<>); Escape_Threshold : CT.Real; package Julia_Set is use CT; procedure Calculate_Pixel (Re : Real; Im : Real; ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Formal_Access_Types; with Program.Lexical_Elements; with Program.Elements.Subtype_Indications; package Program.Elements.Formal_Object...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; procedure Harshad is function Next(N: in out Positive) return Positive is function Sum_Of_Digits(N: Natural) return Natural is ( if N = 0 then 0 else ((N mod 10) + Sum_Of_Digits(N / 10)) ); begin while not (N mod Sum_Of_Digits(N) = 0) loop N := N + 1; end loop; r...
pragma SPARK_Mode (On); with Stack; with Ada.Text_IO; use Ada.Text_IO; procedure Test is package Int_Stack is new Stack (Thing => Integer, Basic => 0); S : Int_Stack.Stack (10); T : Integer; begin Int_Stack.Put (S, -1); Int_Stack.Put (S, -2); Int_Stack.Put (S, -3); Int_Stack.Put (S, -4); Int_S...
-------------------------------------------------------------------------------- -- Fichier : input.ads -- Auteur : MOUDDENE Hamza & CAZES Noa -- Objectif : Spécification du module Input -- Crée : Dimanche Déc 01 2019 -------------------------------------------------------------------------------- with Reg...
pragma Ada_2012; with Ada.Unchecked_Conversion; package body Utilities is ---------------- -- Read_Chunk -- ---------------- function Read_Chunk (From : Streams.Stream_IO.File_Type) return Chunk_Type is use Streams; subtype Buffer_Type is Stream_Element_Array (1 .. Chunk_Type'Siz...
package Utilities is generic Width: Positive; function LeftPad (Str : String; Level : Natural) return String; end Utilities;
with Other_Basic_Subprogram_Calls; package Tagged_Subprogram_Calls is package Inner is type E is (A, B, C); procedure P(A : E); end Inner; procedure Test(Param : Inner.E); type T is tagged null record; procedure T_P(S : T); procedure T_Q(J : Integer; S : T); proced...
-- { dg-do compile } -- { dg-skip-if "missing alias support" { *-*-darwin* hppa*-*-hpux* } } package Linker_Alias is Var : Integer; -- { dg-error "aliased to undefined symbol" } pragma Export (C, Var, "my_var"); pragma Linker_Alias (Var, "var2"); end Linker_Alias;
--An example of inline assember. Originally written as a --test for code-segment, the Ada95 standard way to do --assembler, but apparently no one has ever used that in --the history of the world. with Interfaces; use Interfaces; with System.Machine_Code; use System.Machine_Code; with Ada.Text_IO; use Ada.Text_IO; p...
----------------------------------------------------------------------- -- Faces Context Tests - Unit tests for ASF.Contexts.Faces -- Copyright (C) 2010, 2011, 2012, 2013, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
with Ada.Containers.Functional_Vectors; with TLSF.Proof.Util.Vectors; package body TLSF.Proof.Test.Util with SPARK_Mode is procedure Test_Util is subtype Index_Type is Positive; subtype Element_Type is Natural; package V is new Ada.Containers.Functional_Vectors (Index_Type, Element...
package body Size_Attribute1_Pkg1 is type Rec is record F : T; end record; procedure Dummy is begin null; end; end Size_Attribute1_Pkg1;
with Ada.Text_IO; use Ada.Text_IO; procedure Adventofcode.Day_15.Main is begin Put_Line ("Day-15"); end Adventofcode.Day_15.Main;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- ************************************************************************************* -- -- The recipient is warned that this code should be handled in accordance -- with the HM Government Security Classification indicated throughout. -- -- This code and its contents shall not be used for other than UK Government --...
------------------------------------------------------------------------------- -- Copyright (c) 2016 Daniel King -- -- 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, in...
package Vehicle_Controller is type Colour is (Red, Green, Blue, Yellow); type Direction is (Forward, Backward, Stop, Braking); task Compute with Priority => 3; task Status_Light with Priority => 1; procedure Change_Direction; private Status_Light_Colour : Colour := Blue; Current_Direction : Dire...
-- -- 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; with Ada.Directories; --...
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.QUADSPI is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_FTHRES_Field is HAL.UInt5; ...
with Interfaces.C; use Interfaces.C; procedure Execute_System is function Sys (Arg : Char_Array) return Integer; pragma Import(C, Sys, "system"); Ret_Val : Integer; begin Ret_Val := Sys(To_C("ls")); end Execute_System;
-- This file cannot be processed by the SPARK Examiner. with Ada.Numerics, Ada.Numerics.Elementary_Functions; package body PP_F_Rounded is function Plus (Prec : Integer; X,Y : Float) return Float is begin return X+Y; end Plus; function Minus (Prec : Integer; X,Y : Float) return Float is begi...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Memory; use GBA.Memory; with GBA.Numerics; use GBA.Numerics; with GBA.Display.Tiles; use GBA.Display.Tiles; with GBA.Display.Palettes; use GBA.Display.Palettes; with Interfaces; use Interfaces; package GBA.Display.Backgro...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Text; with Yaml.Tags; package body Yaml.Transformator.Canonical is procedure Put (Object : in out Instance; E : Event) is use type Text.Reference; function Is_Non_Specific (Tag :...
------------------------------------------------------------------------------ -- -- -- tiled-code-gen -- -- -- -- ...
----------------------------------------------------------------------- -- mat-formats - Format various types for the console or GUI interface -- Copyright (C) 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO.Unbounded_Io; use Ada.Text_IO.Unbounded_IO; procedure String_Append is Str : Unbounded_String := To_Unbounded_String("Hello"); begin Append(Str, ", world!"); Put_Line(Str); end String_Append;
-- -- Jan & Uwe R. Zimmer, Australia, July 2011 -- with Ada.Real_Time; use Ada.Real_Time; with Real_Type; use Real_Type; package Graphics_FrameRates is Smoothing_Buffer_Size : constant Positive := 24; subtype Hz is Real range 0.0 .. Real'Last; function Measure_Interval return Time_Span; function Av...
package body Opt23_Pkg is function Get (R : Rec; I : Positive; M : Natural) return Path is begin return R.Val (I) (M); end; end Opt23_Pkg;
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- Copyright (C) 2017 Nico Huber <nico.h@gmx.de> -- -- 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,...
-- FastAPI -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- The version of the OpenAPI document: 0.1.0 -- -- -- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0. -- https://openapi-generator.tech -- Do not edit the class manually....
with Giza.Timers; package body Giza.Widget.Number_Selection is --------------- -- Triggered -- --------------- overriding function Triggered (This : Repeat_Event) return Boolean is Reset : Boolean := False; begin if This.Nbr = null then return False; end if; if Thi...
----------------------------------------------------------------------- -- mat-consoles-text - Text console interface -- Copyright (C) 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ex...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with unav; with Units; use Units; with Text_IO; use Text_IO; procedure main with SPARK_Mode is distance : Length_Type; begin distance := unav.Get_Distance; Put_Line ("distance=" & Float'Image(Float(distance)) & " m"); end main;
with DDS.Topic; with DDS.Entity_Params; with DDS.Request_Reply.impl; package DDS.Request_Reply.Replier.Impl is type Ref is limited new DDS.Request_Reply.Impl.Ref and Replier.Ref with private; type Ref_Access is access all Ref; function Create_Writer_Topic (Self : not null access Ref; Params : DD...
with Ada.Text_IO, Digraphs, Set_Of_Names, Ada.Command_Line; procedure Toposort is -- shortcuts for package names, intantiation of generic package package TIO renames Ada.Text_IO; package DG renames Digraphs; package SN is new Set_Of_Names(DG.Node_Idx_With_Null); -- reat the graph from the file with th...
with Ada.Numerics.Generic_Elementary_Functions; package body Pythagorean_Means is package Math is new Ada.Numerics.Generic_Elementary_Functions (Float); function "**" (Left, Right : Float) return Float renames Math."**"; function Arithmetic_Mean (Data : Set) return Float is Sum : Float := 0.0; begin ...
-- CC1111A.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 RUNTIME COMPONENTS -- -- -- -- ...
-- -- 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 Sessions; with Parser_Data; package ...
-- POK header -- -- The following file is a part of the POK project. Any modification should -- be made according to the POK licence. You CANNOT use this file or a part -- of a file for your own project. -- -- For more information on the POK licence, please see our LICENCE FILE -- -- Pleas...
----------------------------------------------------------------------- -- gen-model -- Model for Code Generator -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
with Project_Processor.Processors; with Project_Processor.Parsers; package Project_Processor.Configuration is procedure Initialize; type Processing_Call is record Name : Processors.Processor_ID; Parameters : Processors.Processor_Parameter_Access; end record; procedure For...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
F1, F2 : File_Type; begin Open (F1, In_File, "city.ppm"); declare X : Image := Get_PPM (F1); Y : Grayscale_Image := Grayscale (X); T : Luminance := Median (Get_Histogram (Y)); begin Close (F1); Create (F2, Out_File, "city_art.ppm"); for I in Y'Range (1) loop for ...
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: Apache-2.0 -- with Notcurses.Channel; use Notcurses.Channel; with Notcurses_Direct_Thin; package Notcurses.Direct is type Notcurses_Direct is private; procedure Initialize (This : out Notcurses_Direct; ...
-- Generated at 2014-07-02 17:53:59 +0000 by Natools.Static_Hash_Maps -- from src/simple_webapps-upload_servers-commands.sx with Simple_Webapps.Commands.Upload_Servers.Config; with Simple_Webapps.Commands.Upload_Servers.File; package body Simple_Webapps.Commands.Upload_Servers is function To_Config_Command (Key...
------------------------------------------------------------------------------ -- -- -- Internet Protocol Suite Package -- -- -- -- -...
----------------------------------------------------------------------- -- util-http-clients -- HTTP Clients -- Copyright (C) 2011, 2012, 2013, 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 u...
with Ada.Integer_Text_IO; -- Copyright 2021 Melwyn Francis Carlo procedure A021 is use Ada.Integer_Text_IO; Max_N : constant Integer := 10000 - 1; Amicable_Numbers : array (Integer range 1 .. Max_N) of Integer := (others => 0); Proper_Divisors_Sum_1 : Integer; Proper_Divisors...
with System; with Ada.Unchecked_Conversion; package body ACO.Utils.Byte_Order is use type System.Bit_Order; function Unchecked_To_Unsigned_16 is new Ada.Unchecked_Conversion (Octets_2, Unsigned_16); function Unchecked_To_Unsigned_32 is new Ada.Unchecked_Conversion (Octets_4, Unsigned_32); fu...
-- Ascon.Compare_Tags -- Compare two Tag_Type values using a constant-time approach. This is split -- out into a separate child unit from Ascon so that different compilation flags -- can be used. It is advisable to prevent optimisation of this function or -- else a clever compiler might use a short-circuit approach. T...
with Ada.Integer_Text_IO; with Ada.Text_IO; package body Problem_06 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is function Sum_Square(max : Integer) return Integer is Sum : Integer := 0; begin for number in 1 .. max loop ...
with Shell.Commands, Ada.Text_IO; procedure Test_Nonblocking_Pipe is -- To do this test, run this executable in one terminal, open -- another terminal and start 'cat' (ie $ cat - >> test.log). -- Then, type any string into the 'cat' terminal. Each entered -- string should then appear in the 'Tes...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
package body agar.gui.widget.progress_bar is package cbinds is procedure set_width (bar : progress_bar_access_t; width : c.int); pragma import (c, set_width, "AG_ProgressBarPercent"); end cbinds; procedure set_width (bar : progress_bar_access_t; width : natural) is begin ...
-- Auto_Counters_Suite -- Unit tests for Auto_Counters packages -- Copyright (c) 2016, James Humphry - see LICENSE file for details with AUnit.Test_Suites; package Auto_Counters_Suite is function Suite return AUnit.Test_Suites.Access_Test_Suite; end Auto_Counters_Suite;
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Vecteurs_Creux; use Vecteurs_Creux; -- Exemple d'utilisation des vecteurs creux. procedure Exemple_Vecteurs_Creux is V : T_Vecteur_Creux; begin Put_Line ("Début du scénario"); New_Line; Initialiser (V); -- Initialiser un vecteur creux. Il est nul. Afficher (V); -...
----------------------------------------------------------------------- -- wiki-helpers-parser -- Generic procedure for the wiki parser -- Copyright (C) 2016, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright © AdaCore and other contributors, 2017-2020 -- -- See https://github.com/AdaCore/Ada_Drivers_Library/graphs/contributors -- -- f...
------------------------------------------------------------------------------- -- package body Disorderly.Random.Clock_Entropy, Random Number Initialization -- Copyright (C) 1995-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is he...
-- C36204D.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...
------------------------------------------------------------------------------ -- Copyright (c) 2013-2015, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
--PRÁCTICA 2: César Borao Moratinos (client_collections) with Ada.Text_IO; with Chat_Messages; with Ada.Exceptions; with Lower_Layer_UDP; with Ada.Command_Line; with Ada.Strings.Unbounded; with Ada.Unchecked_Deallocation; package body Client_Collections is package ATI renames Ada.Text_IO; package CM re...
----------------------------------------------------------------------- -- Util.Streams -- Stream utilities -- Copyright (C) 2010 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 co...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Unchecked_Deallocation; package body Yaml.Events is procedure Free is new Ada.Unchecked_Deallocation (Event_Array, Event_Array_Access); procedure Finalize (Object : in out Event_...
--with Spark.Float_Arithmetic_Lemmas; with Mathutil; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Text_IO; package body perception with SPARK_Mode is --use Spark.Float_Arithmetic_Lemmas; function breakingDistance (s : in Speed) return Distance is Dist : Distance; begin pragma Assert(BreakConst...
-- { dg-do compile } -- { dg-options "-flto" { target lto } } package body Lto17 is function To_Chunk_List(C : Chunk) return Chunk_List is begin return new Chunk_List_Element'(C.Size, C, null); end; end Lto17;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018-2021, AdaCore -- -- -- -- ...
-- 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...
-- { dg-do compile } -- { dg-options "-fdump-tree-gimple" } with Atomic6_Pkg; use Atomic6_Pkg; procedure Atomic6_5 is type Arr is array (Integer range 1 .. 4) of Boolean; A : Arr; B : Boolean; begin A (Integer(Counter1)) := True; B := A (Timer1); declare pragma Suppress (Index_Check); begin A ...
-- The MIT License (MIT) -- Copyright (c) 2015 Pavel Zhukov <landgraf@fedoraproject.org> -- 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 limit...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- 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...
-- 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...
-- { dg-do run } -- { dg-options "-O2" } procedure self_aggregate_with_call is type Values is array (1 .. 8) of Natural; type Vector is record Components : Values; end record; function Clone (Components: Values) return Values is begin return Components; end; procedure Process (V : ...
-- 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.RCC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_MSIRANGE_Field is H...
with HAL.SPI; use HAL.SPI; with HAL.GPIO; use HAL.GPIO; with Interfaces; use Interfaces; package mpu6000_spi is type Six_Axis_Accelerometer (Port : not null Any_SPI_Port; Chip_Select : not null Any_GPIO_Point) is limited private; type Acc_Data is record Xacc, Yacc, Zacc : Short...
------------------------------------------------------------------------------- -- Copyright (c) 2016 Daniel King -- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
with OpenGL.Thin; package body OpenGL.Fog is function Equation_To_Constant (Equation : in Equation_t) return Thin.Integer_t is begin case Equation is when Linear => return Thin.GL_LINEAR; when Exponential => return Thin.GL_EXP; when Exponential_2 => return Thin.GL_EXP2; end ...
-- $Id: Source.md,v 1.5 1993/08/18 17:28:53 grosch rel $ package Source is function BeginSource (FileName: String) return Integer; -- BeginSource is called from the scanner to open files. -- If not called then input is read form standard input. procedure GetLine (File: Integer; Buffer: out String; Size: Integ...
with Ada.Text_IO; procedure Vector is type Float_Vector is array (Positive range <>) of Float; package Float_IO is new Ada.Text_IO.Float_IO (Float); procedure Vector_Put (X : Float_Vector) is begin Ada.Text_IO.Put ("("); for I in X'Range loop Float_IO.Put (X (I), Aft => 1, Exp => 0); ...
with Asis.Statements; package body Asis_Adapter.Element.Exception_Handlers is ----------------------------- -- EXPORTED: ----------------------------- procedure Do_Pre_Child_Processing (Element : in Asis.Element; State : in out Class) is Parent_Name : constant String := Module_Name; ...
package body Problem_8 is Number : constant String := "73167176531330624919225119674426574742355349194934" & "96983520312774506326239578318016984801869478851843" & "85861560789112949495459501737958331952853208805511" & "12540698747158523863050715693290963295227443043557" & "...
with Orthogonal_Polys; with text_io; use text_io; with Ada.Numerics.Generic_Elementary_Functions; procedure opolys_tst_1 is -- fit data with a nth order polynomial type Real is digits 15; package Math is new Ada.Numerics.Generic_Elementary_Functions (Real); function Sin (X : Real) return Real renames Mat...
with Ada.Strings.Naked_Maps.Case_Folding; function Ada.Strings.Generic_Equal_Case_Insensitive (Left, Right : String_Type) return Boolean is Mapping : constant not null Naked_Maps.Character_Mapping_Access := Naked_Maps.Case_Folding.Case_Folding_Map; Left_Last : Natural := Left'First - 1; Right_Last : N...
with Command_Line_Interface; use Command_Line_Interface; with String_Pkg; use String_Pkg; --VAX with Vms_Lib; separate (Ayacc.Initialize) procedure Get_Arguments (File : out String_Type; C_Lex : out Switch; Debug : out Switch...
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, 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 f...
pragma Ada_2012; package body Tokenize.Token_Vectors is --------------- -- To_Vector -- --------------- function To_Vector (X : Token_Array) return Vector is Result : Vector; begin for Tk of X loop Result.Append (To_String (Tk)); end loop; return Result; end To_Vect...
package body Account.Default_Account is procedure Set_Name(Item: in out Instance; N: in String) is begin Item.Name := Ada.Strings.Unbounded.To_Unbounded_String(N); end Set_Name; function Name(Item: in Instance) return String is begin return Ada.Strings.Unbound...
with impact.d2.Fixture, impact.d2.Solid; package body impact.d2.contact.Manager is use type int32; type default_Listener is new world_Callbacks.b2ContactListener with null record; b2_defaultListener : aliased default_Listener; b2_defaultFilter : aliased world_Callbacks.b2ContactFilter; f...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma License (GPL); ------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: GNU GPLv3 or any later as published by Free Software Foundation -- -- (see README file) ...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...