content
stringlengths
23
1.05M
with GDNative; use GDNative; with GDNative.Thin; package Engine_Hooks is procedure On_GDNative_Init (p_options : access Thin.godot_gdnative_init_options) with Export => True, Convention => C, External_Name => "adventure_gdnative_init"; procedure On_GDNative_Terminate (p_options : access Thin.godot_gdnative...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" package Glfw.Input.Mouse is type Button is new Interfaces.C.int range 0 .. 7; type Enter_Action is (Leaving, Entering); type Cursor_Mode is (Normal, Hidden, Disabled); Left_Button : co...
with Ada.Text_IO; with Interfaces.C; with a_nodes_h.Support; with Generic_Logging; with Lal_Adapter.Tool; package body lal_adapter_wrapper_h is package anhS renames a_nodes_h.Support; ------------ -- EXPORTED: ------------ function lal_adapter_wrapper (project_file_name : in Interface...
-- ----------------------------------------------------------------- -- -- AdaSDL -- -- Binding to Simple Direct Media Layer -- -- Copyright (C) 2001 A.M.F.Vargas -- -- Antonio M. F....
pragma License (Unrestricted); -- implementation unit required by compiler package System.Val_Char is pragma Pure; -- required for Character'Value by compiler (s-valcha.ads) function Value_Character (Str : String) return Character; -- helper HEX_Prefix : constant String := "HEX_"; -- upper case p...
-- Code originally generated by dginstr.go - there have been edits... -- 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 us...
-- -- aPLib compression library - the smaller the better :) -- -- Ada binding for aplib.a -- -- Copyright (c) 1998-2009 by Joergen Ibsen / Jibz -- All Rights Reserved -- -- http://www.ibsensoftware.com/ -- -- Ada binding by Gautier de Montmollin - gdemont@hotmail.com, gdm@mydiax.ch -- package aPLib is...
package body Generic_Types with SPARK_Mode is ------------------------ -- Saturated_Cast_Int ------------------------ function Saturated_Cast_Int (f : Float) return T is ret : T; ff : constant Float := Float'Floor (f); begin if ff >= Float (T'Last) then ret := T'Last; ...
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
-- { dg-do run } -- { dg-options "-gnatp" } procedure Lhs_View_Convert is type Root is tagged record RV : Natural; end record; type Derived is new Root with null record; Root_Instance : Root := (RV => 1); Derived_Instance : Derived; procedure Process is X : Natural := Derived_Instanc...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Standard Ada library specification -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaRe...
package formal_procedure_declaration is generic with procedure Put_Line; procedure SS_Info; end formal_procedure_declaration;
package Aliasing with SPARK_Mode => On is type Rec is record F, G : Integer; end Record; procedure Multiply (X, Y : in Rec; Z : out Rec); procedure Test; end Aliasing;
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package ia32intrin_h is -- Copyright (C) 2009-2017 Free Software Foundation, Inc. -- This file is part of GCC. -- GCC is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public ...
with FLTK.Widgets.Inputs; package FLTK.Widgets.Valuators.Value_Inputs is type Value_Input is new Valuator with private; type Value_Input_Reference (Data : not null access Value_Input'Class) is limited null record with Implicit_Dereference => Data; package Forge is function C...
with Interfaces.C.Strings, System; use type System.Address; package body FLTK.Widgets.Valuators.Counters is procedure counter_set_draw_hook (W, D : in System.Address); pragma Import (C, counter_set_draw_hook, "counter_set_draw_hook"); pragma Inline (counter_set_draw_hook); ...
----------------------------------------------------------------------- -- keystore-tools-tests -- Tests for files -- 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 excep...
with TOML; package CLIC.Config.Load is procedure From_TOML (C : in out CLIC.Config.Instance; Origin : String; Path : String; Check : Check_Import := null); function Load_TOML_File (Path : String) return TOML.TO...
with Ada.Finalization; with Ada.Unchecked_Deallocation; with Atomic.Signed; generic type T (<>) is private; type T_Access is access T; package SP.Memory with Preelaborate is -- Atomic reference counting pointer. type Arc is new Ada.Finalization.Controlled with private; type Reference_Type (El...
----------------------------------------------------------------------- -- echo_server -- A simple UDP echo server -- Copyright (C) 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file excep...
with Fann_C; with Interfaces.C.pointers; use Interfaces; private package Neural.Privvy is package fann_type_Pointers is new interfaces.c.Pointers (index => c.size_t, element => fann_c.fann_type, ...
with Ada.Strings.UTF_Encoding, Ada.Sequential_IO, Interfaces.C_Streams, Ada.Text_IO.Text_Streams, Ada.Streams.Stream_IO; use Ada.Strings.UTF_Encoding; -- Library to Encrypt raw data with variable length UTF8 Passwords, making -- it possible to simply memorize the Passwords as a poem or as random- -...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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.Strings.Unbounded; use Ada.Strings.Unbounded; with Editor_Package; use Editor_Package; with Utilities_Package; use Utilities_Package; package Command_Package is type Cmd_Flag_Type is ( NOFLAGS, MARK, CLEARSBLOCK, NEEDSLINE, NEEDSBLOCK, SETSHILITE, NOLOCATOR); t...
-- SPDX-FileCopyrightText: 2020-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- procedure Program.Nodes.Operator_Symbols.Set_Defining_Name (Self : not null Program.Elements.Operator_Symbols.Operator_Symbol_Access; Value : Pro...
------------------------------------------------------------------------------ -- -- -- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! -- -- -- -- ...
with Ada.Unchecked_Conversion; with System.Runtime_Context; with System.Unwind.Occurrences; package body System.Soft_Links is pragma Suppress (All_Checks); -- implementation function Do_Get_Current_Excep return Ada.Exceptions.Exception_Occurrence_Access is function Cast is new Ada.Un...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; with GL.Culling; with GL.Enums.Getter; package body GL.Rasterization is procedure Set_Line_Width (Value : Single) is begin API.Line_Width (Value); Raise_Exception_On_Ope...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Type_Definitions; with Program.Lexical_Elements; with Program.Elements.Definitions; package Program.Elements.Record_Types is prag...
with Ada.Unchecked_Deallocation; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with GNAT.Source_Info; with System; with Interfaces; use Interfaces; with Interfaces.C; use Interfaces.C; with Simple_Logging; with Littlefs; use Littlefs; package body FSmaker.Target.LittleFS is function ftruncate (FS : ...
-- Ada regular expression library -- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net> -- Report bugs and issues on <https://github.com/skordal/ada-regex> with Regex.Utilities.Sorted_Sets; package Regex.Syntax_Trees is -- Possible syntax tree node types: type Syntax_Tree_Node_Type is ( ...
----------------------------------------------------------------------- -- gen-commands -- Commands for dynamo -- 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 file exc...
with System; use System; with System.Storage_Elements; with System.Address_To_Access_Conversions; package body Display.Basic.Utils is --------------- -- Put_Pixel -- --------------- package Address_To_Pixel is new System.Address_To_Access_Conversions (SDL_SDL_stdinc_h.Uint32); function RGBA_To_...
procedure Parenthesis_Matter is subtype SmallIntType is Integer range 0..12; function SmallIntVal return SmallIntType is begin return 0; end SmallIntVal; begin case SmallIntVal is when 0 => null; -- when 13 => null; -- error when others => null; end case; case (SmallIntVal) is whe...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with System; with glib; with glib.Values; with System; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gst_h is -- GStreamer -- * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> -- * ...
-- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S...
-- { dg-do compile } procedure interface4 is generic type I1 is interface; type I2 is limited interface; type I3 is interface and I1; type I4 is limited interface and I2; package Pack_I is end Pack_I; begin null; end interface4;
with Ada.Containers.Vectors; package Atomic4 is type String is limited null record; type String_Access is access all String; pragma Atomic (String_Access); type Reference is record Text : String_Access; end record; package Reference_Vectors is new Ada.Containers.Vectors (Natural, Refere...
with BBS.BBB; with BBS.BBB.i2c; with BBS.BBB.i2c.PCA9685; with BBS.units; use type BBS.units.temp_c; use type BBS.units.press_p; package WeatherCommon is -- -- This package contains assorted constants and procedures used by the -- Weather station project. -- -- -- Constants used for output. The min ...
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2016-2021 Vitalii Bondarenko <vibondare@gmail.com> -- -- -- ----...
package body Termbox_Package is function TB_Init return Integer is function Init return Integer; pragma Import (C, Init, "tb_init"); begin return Init; end TB_Init; function TB_Select_Output_Mode (Mode : Output_Mode) return Output_Mode is function Select_Mode (Mode : Output_Mode) re...
-- Copyright 2015,2016 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 o...
-- -- -- Copyright (c) 2015, John Leimon -- -- -- -- Permission to use, copy, modify, and/or distribute this software for any ...
pragma License (Unrestricted); -- implementation unit with System.Storage_Elements; package System.Reference_Counting is pragma Pure; type Counter is mod 2 ** 32; for Counter'Size use 32; pragma Atomic (Counter); Static : constant := 2 ** 32 - 1; -- This should be untyped. -- A typed ato...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
with AdaBase; with Connect; with Ada.Text_IO; with AdaBase.Logger.Facility; procedure Wipe_Out is package CON renames Connect; package TIO renames Ada.Text_IO; package ALF renames AdaBase.Logger.Facility; numrows : AdaBase.Affected_Rows; bfast : constant String := "breakfast"; cmd1 : constant Str...
package Planets.Earth is pragma Preelaborate; -- Based on WGS 84. See https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84 Planet : constant Planet_Characteristics := (Axial_Tilt_Deg => 23.439_2811, Mass_Kg => 5.972_37e24, Sidereal => 23.0 * 3600.0 + 56.0 * 60.0 + 4.0905...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is function Oups(N: Integer) return Integer is L : Integer := Oups(N); begin return 0; end; begin New_Line; end;
----------------------------------------------------------------------- -- Util.Beans.Objects.Records -- Generic Typed Data Representation -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
with Ada.Exceptions; with Ada.Text_IO; with App; --with Interfaces.C; --with System; procedure Future_Test is The_App : App.Object; -- function signal(sig: in interfaces.c.int; -- handler: system.address) -- return system.address; -- pragma Import(C, signal, "signal"); -- -- ...
-------------------------------------------------------------------------------- -- 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...
package body Crypto is use type Ada.Streams.Stream_Element; procedure Value ( Image : String; Result : out Ada.Streams.Stream_Element_Array) is function Digit (C : Character) return Ada.Streams.Stream_Element is begin if C in '0' .. '9' then return Character'Pos (C) - Character'Pos ('0'); elsif C...
-- convert UCD/extracted/DerivedGeneralCategory.txt -- bin/ucd_generalcategory $UCD/extracted/DerivedGeneralCategory.txt > ../source/strings/a-ucgeca.ads with Ada.Command_Line; use Ada.Command_Line; with Ada.Containers.Doubly_Linked_Lists; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Strings; use Ada.Str...
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) pragma SPARK_Mode (Off); with STM32.USARTs; with STM32.Device; with HIL.Devices; use HIL.Devices; -- @summary -- Target-specific mapping ...
pragma Ada_2012; package body DDS.Request_Reply.Typed_Requester_Generic is ----------------------------- -- Get_Request_Data_Writer -- ----------------------------- function Get_Request_Data_Writer (Self : not null access Ref) return DDS.DataWriter.Ref_Access is begin pragma Compile_Time_...
generic type Value is private; Init_Val : Value; package Opt25_Pkg2 is type Stack (Size : Natural) is private; function Default_Stack return Stack; private type Value_Array is array (Natural range <>) of Value; type Stack (Size : Natural) is record Store : Value_Array (1 .. Size); end r...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with agar.core.tail_queue; with agar.core.types; with agar.gui.widget.menu; with agar.gui.widget.scrollbar; package agar.gui.widget.graph is use type c.unsigned; type vertex_t; type vertex_access_t is access all vertex_t; pragma convention (c, vertex_access_t); type edge_t; type edge_access_t is access ...
----------------------------------------------------------------------- -- asf-views-nodes -- Facelet node tree representation -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Lice...
package ARM_Input is -- -- Ada reference manual formatter (ARM_Form). -- -- This package contains the abstract definition of reading an input file -- or other entity, and routines to lex the input entities. -- -- --------------------------------------- -- Copyright 2000, 2002, ...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with GNAT.SHA256; with League.JSON.Values; with JWS.Integers; with JWS.To_Base_64_URL; package body JWS.RS256 is function "+" (...
with Agar.Core.Thin; with System; package Agar.Core.Event is subtype Event_Access_t is Thin.Event.Event_Access_t; subtype Event_Not_Null_Access_t is Thin.Event.Event_Not_Null_Access_t; subtype Long_Natural is Long_Integer range 0 .. Long_Integer'Last; procedure Init (Event : in Event_Not_Null_A...
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. ...
with Hello; procedure Hello3 is begin Hello; Hello; Hello; end Hello3;
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Package_Manifests; with PortScan.Log; with Parameters; with Unix; with Ada.Characters.Latin_1; with Ada.Directories; with Ada.Exceptions; package body PortScan.Tests is package MAN renames Package_Manifes...
-------------------------------------------------------------------------------- -- Copyright (c) 2013, Felix Krause <contact@flyx.org> -- -- 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 pe...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Life is -- D: Die, S: Stay the same, G: Grow a new cell type Rules_Type is (D, S, G); type Rule_Set is array (Natural range 0 .. 8) of Rules_Type; type Grid_Type is array (Natural range <>, Natural range ...
package Giza.Bitmap_Fonts.FreeSerifBoldItalic32pt7b is Font : constant Giza.Font.Ref_Const; private FreeSerifBoldItalic32pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#07#, 16#C0#, 16#00#, 16#FE#, 16#00#, 16#0F#, 16#F0#, 16#01#, 16#FF#, 16#00#, 16#1F#, 16#F0#, 16#01#, 16#FF#, 16#00#, 16#1F#, 16#...
-- (c) Copyright, Real-Time Innovations, $Date:: 2012-02-16 #$ -- All rights reserved. -- -- No duplications, whole or partial, manual or electronic, may be made -- without express written permission. Any such copies, or -- revisions thereof, must display this notice unaltered. -- This code contains trade secret...
package AdaCar.Motores is procedure Actua_Step(Motor: Tipo_Motor; Valor: Tipo_Step); procedure Actua_Direccion(Motor: Tipo_Motor; Valor: Tipo_Direccion); end AdaCar.Motores;
with Prime_Numbers, Ada.Text_IO; procedure Test_Semiprime is package Integer_Numbers is new Prime_Numbers (Natural, 0, 1, 2); use Integer_Numbers; begin for N in 1 .. 100 loop if Decompose(N)'Length = 2 then -- N is a semiprime; Ada.Text_IO.Put(Integer'Image(Integer(N))); end if; end l...
----------------------------------------------------------------------- -- search-filters -- Search engine filters -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file excep...
With Ada.Streams, Ada.Strings.Less_Case_Insensitive, Ada.Strings.Equal_Case_Insensitive, Ada.Containers.Indefinite_Ordered_Maps; Package INI with Preelaborate, Elaborate_Body is Type Value_Type is ( vt_String, vt_Float, vt_Integer, vt_Boolean ); Type Instance(Convert : Boolean) is private; Function Exis...
package body Timeout is procedure Start (Timeout_Time : out Time ; Duration : Time_Span) is begin Timeout_Time := Clock + Duration; end Start; function Timed_Out (Timeout_Time : Time) return Boolean is begin return Clock > Timeout_Time; end Timed_Out; end Timeout;
package ZMQ.Examples is END_MESSAGE : constant String := "<END>"; end ZMQ.Examples;
with AAA.Strings; package Minirest is Rest_Error : exception; type Status_Kinds is (Informative, -- 1xx Success, -- 2xx Redirect, -- 3xx Client_Error, -- 4xx Server_Error); -- 5xx type Paramete...
-- Set up at present to test the compiler's Numerics.Discrete_Random. -- -- Warning: puts large array on stack. You get segmentation fault if stack -- space is insufficient. To get more stack space in bash shell, type: -- ulimit -s 1024M -- ulimit -s unlimited -- at the prompt. Type ulimit -a for summa...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with gel.Window.setup, gel.Applet.gui_world, gel.Forge, gel.Sprite, gel.World, gel.Camera, Physics, ada.Text_IO, ada.Exceptions; pragma unreferenced (gel.Window.setup); procedure launch_drop_Ball_on_Box -- -- Drops a ball onto a box 'terrain'. -- is use gel.Applet, ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Leds; use Leds; with Interfaces.EFM32; use Interfaces.EFM32; package body Leds is procedure Led_Init is begin CMU_Periph.CTRL.HFPERCLKEN := 1; CMU_Periph.HFBUSCLKEN0.GPIO := 1; GPIO_Periph.PA_MODEH.Arr(12) := PUSHPULL; GPIO_Periph.PA_MODEH.Arr(13) := PUSHPULL; GPIO_Perip...
with openGL.Context, openGL.Surface, openGL.Geometry, openGL.Model, openGL.Visual, openGL.Impostor, openGL.Texture, openGL.Font, openGL.Light; limited with openGL.Camera; private with ada.Containers.hashed_Maps, ada.unchecked_Conversion; package openGL.Ren...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- { dg-do compile } package body prefix2 is procedure Positionne (Objet : in out Instance; X, Y : Coordonnee) is begin Objet.X := X; Objet.Y := Y; end Positionne; function RetourneX (Objet : in Instance) return Coordonnee is begin return Objet.X; ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Assertions; with GNAT.Exception_Actions; with Ada.Exceptions; procedure Fuzzing_Example is Input : Unbounded_String; Fd : File_Type; Filename : aliased String := Ada.Command_Line.Argument(...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Lexical_Elements; with Program.Elements.Defining_Names; with Program.Elements.Parameter_Specifications; wit...
with Courbes; use Courbes; package Courbes.Singletons is use Liste_Points; type Singleton is new Courbe with private; -- Crée un singleton function Ctor_Singleton (P : Point2D) return Singleton; overriding procedure Accepter (Self : Singleton; Visiteur : Courbes.Visiteurs.Visiteur_Courbe'Class); ...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
package body Ada.Numerics.Float_Random is function Random (Gen : Generator) return Uniformly_Distributed is begin return Float (MT19937.Random_0_To_1 (Gen'Unrestricted_Access.all)); end Random; end Ada.Numerics.Float_Random;
with Lnko; package body Racionalisok is function Szamlalo ( R: Racionalis ) return Integer is begin return R.Szamlalo; end; function Nevezo ( R: Racionalis ) return Positive is begin return R.Nevezo; end; function Normalizalva ( Szamlalo: Integer; Nevezo: Po...
pragma License (Unrestricted); package Ada.Calendar.Time_Zones is -- Time zone manipulation: type Time_Offset is range -28 * 60 .. 28 * 60; Unknown_Zone_Error : exception; function UTC_Time_Offset (Date : Time := Clock) return Time_Offset; pragma Pure_Function (UTC_Time_Offset); pragma Inline (UT...
-- protected_refcounted_kvflyweights.ads -- A package for ensuring resources are not duplicated in a manner similar -- to the C++ Boost flyweight classes. This package provides a task-safe -- implementation that uses reference counting to release resources when the -- last reference is released. Resources are associate...