content
stringlengths
23
1.05M
----------------------------------------------------------------------- -- css-printer -- CSS printer tools -- Copyright (C) 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 use this file except...
with Ada.Characters.ASCII.Handling; with Ada.Characters.Handling; with Ada.Strings.Maps.Constants; procedure charhandling is package UH renames Ada.Characters.Handling; package AH renames Ada.Characters.ASCII.Handling; package M renames Ada.Strings.Maps; begin begin if UH.Is_Control (Character'Val (16#80#)) then ...
with Ada.Text_IO; procedure Guess_Number_Player is procedure Guess_Number (Lower_Limit : Integer; Upper_Limit : Integer) is type Feedback is (Lower, Higher, Correct); package Feedback_IO is new Ada.Text_IO.Enumeration_IO (Feedback); My_Guess : Integer := Lower_Limit + (Upper_Limit - Lower_Limit) / ...
with Ada.Strings.Unbounded; generic type Item_Type is private; with function To_String(Item: Item_Type) return String is <>; with procedure Put(S: String) is <>; with procedure Put_Line(Line: String) is <>; package HTML_Table is subtype U_String is Ada.Strings.Unbounded.Unbounded_String; function Co...
pragma Ada_2012; with Protypo.Code_Trees.Interpreter.Compiled_Functions; with Protypo.Code_Trees.Interpreter.Names; with Protypo.Code_Trees.Interpreter.Expressions; with Protypo.Api.Engine_Values.Handlers; with Ada.Exceptions; pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced"); with Ada.Text_Io;...
with Text_IO; use Text_IO; with Interfaces.C; with SDL.Events; with SDL.Types; with SDL.Keysym; with SDL.Keyboard; procedure eventrecsize is package C renames Interfaces.C; begin Put (" The size of SDL.Events.ActiveEvent: "); Put_Line (Integer'Image (SDL.Events.ActiveEvent'Size / C.CHAR_BIT)); P...
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- ...
package body ACO.SDO_Commands is function Create (Index : Entry_Index; Data : Data_Array) return Download_Initiate_Cmd is Tmp : Expedited_Data := (others => 0); begin Tmp (Tmp'First .. Tmp'First + Data'Length - 1) := Data; return (As_Raw => False, ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2013-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- { dg-do compile } -- { dg-options "-O2 -gnatp -fdump-tree-optimized" } package body Loop_Optimization6 is procedure Foo is begin for I in 1 .. 1_000_000 loop A := A + 1; end loop; end Foo; procedure Bar is begin for J in 1 .. 1_000 loop Foo; end loop; end Bar; procedure M...
with Aof.Core.Signals; with Derived_Objects; with Slots; -- This example builds upon the simple signal example where signals -- may be chained ad-infintum. In some circumstances, it may be -- useful to connect one signal to another. This is one way to -- acheive the Delegation GoF design pattern. procedure Chai...
with Ada.Text_IO; with Ada.Integer_Text_IO; with Ada.Containers.Ordered_Sets; package body Problem_33 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; type SimpleRational is Record Numerator : Integer; Denominator : Integer; end Record; function "<"(left, right : S...
------------------------------------------------------------------------------- -- -- -- D D S . R E Q U E S T _ R E P L Y . R E Q U E S T _ G E N E R I C -- -- -- ...
-- This spec has been automatically generated from STM32WL5x_CM4.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.PWR is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_LPMS_Field is ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- Render Tests - Unit tests for AWA Wiki rendering -- 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 not use this f...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 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...
------------------------------------------------------------ -- B B . G U I . V I E W -- -- -- -- Spec -- -- -- -- "View" pack...
-- { dg-do run } with Ada.Unchecked_Deallocation; procedure Array_Bounds_Test2 is type String_Ptr_T is access String; procedure Free is new Ada.Unchecked_Deallocation (String, String_Ptr_T); String_Data : String_Ptr_T := new String'("Hello World"); function Peek return String_Ptr_T is begin return St...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.API; with GL.Enums.Getter; package body GL.Framebuffer is procedure Set_Clamp_Read_Color (Enabled : Boolean) is begin API.Clamp_Color (Enums.Clamp_Read_Color, Low_Level.Bool (Enabl...
with Ada.Text_IO; use Ada.Text_IO; procedure Main is -- Create an object for Rectangle, Square, Triangle -- Create a subprogram that will take anything derived from Shape -- and print information about the object -- procedure Describe (Shape : ? ) is -- begin -- null; -- end Describe; beg...
with Interfaces.C; use Interfaces; package unit is type stack is array (0..9) of integer; function partitions (cards: out stack; subtotal: integer) return integer; pragma export (C, partitions, "partitions"); end unit;
-- { dg-do compile } -- { dg-options "-O1" } with DECL_CTX_Def; use DECL_CTX_Def; package body DECL_CTX_Use is procedure Check_1 is begin raise X; end; procedure Check_2 is begin raise X; end; end;
generic type Rows is (<>); type Cols is (<>); type Num is private; package Matrix_Scalar is type Matrix is array(Rows, Cols) of Num; generic with function F(L, R: Num) return Num; function Func(Left: Matrix; Right: Num) return Matrix; generic with function Image(N: Num) return String;...
with add; with System; procedure main is pragma Priority (System.Priority'First); begin add.Background; end main;
with ada.characters.latin_1; with logger; use logger; package body halfbox is function get_halfbox(width, length, height, thickness, queue_length : integer) return halfbox_t is -- On stock les informations relatives à la demi boîte avec celles-ci -- Au cas où on en aurait besoin ultérieurement si l...
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Man_Or_Boy is function Zero return Integer is ( 0); function One return Integer is ( 1); function Neg return Integer is (-1); function A (K: Integer; X1, X2, X3, X4, X5: access function return Integer) return Integer is M : Integer := K; -...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
declare File : File_Type; begin Open (File, In_File, "Unfilledcirc.ppm"); declare Picture : Image := Get_PPM (File); begin Close (File); Flood_Fill ( Picture => Picture, From => (122, 30), Fill => (255,0,0), Replace => White ); Create...
package body Bug_Elaboration_Code is procedure Increment_I is begin I := I + 1; end Increment_I; begin I := 5; Increment_I; J := I; end Bug_Elaboration_Code;
-- AOC 2020, Day 8 package Day is function acc_before_repeat(filename : in String) return Integer; function acc_after_terminate(filename : in String) return Integer; end Day;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to set up and tear down the t...
with GDNative.Context; with GDNative.Console; with GDNative.Exceptions; with Adventure; package body Engine_Hooks is procedure On_GDNative_Init (p_options : access Thin.godot_gdnative_init_options) is begin Context.GDNative_Initialize (p_options); Console.Put ("GDNative Initialized!"); end; procedure...
with a_nodes_h.Support; with Libadalang.Analysis; with Libadalang.Common; with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Strings.Hash; use Ada.Containers; private with Ada.Containers.Doubly_Linked_Lists; package Lal_Adapter.Node is package anhS renames a_nodes_h.Support; package LAL renames Libadalang.A...
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- ...
with Memory.Transform.Flip; use Memory.Transform.Flip; with Memory.Join; use Memory.Join; package body Test.Flip is procedure Run_Tests is mem : constant Monitor_Pointer := Create_Monitor(0); bank : constant Monitor_Pointer := Create_Monitor(0, False); flip : Flip_Pointer ...
with Ada.Text_IO; with Long_Multiplication; procedure Test_Long_Multiplication is use Ada.Text_IO, Long_Multiplication; N : Number := Value ("18446744073709551616"); M : Number := N * N; begin Put_Line (Image (N) & " * " & Image (N) & " = " & Image (M)); end Test_Long_Multiplication;
with Ada.Strings.Fixed, Ada.Text_IO; procedure Count_Substrings is function Substrings(Main: String; Sub: String) return Natural is Idx: Natural := Ada.Strings.Fixed.Index(Source => Main, Pattern => Sub); begin if Idx = 0 then return 0; else return 1 + Substrings(Main(Idx+Su...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with System.Storage_Elements; function Incr.Nodes.Hash (Self : Node_Access) return Ada.Containers.Hash_Type is begin if Sel...
with Ada.Text_IO; with Continued_Fraction_Ada95; procedure Test_Continued_Fractions_Ada95 is type Scalar is digits 15; package Square_Root_Of_2 is function A (N : in Natural) return Natural; function B (N : in Positive) return Natural; function Estimate is new Continued_Fraction_Ada95 (Scal...
with Interfaces; use Interfaces; with Ada.Real_Time; use Ada.Real_Time; with Ada_Voxel; with SDL_Display; with Color_Map; with Height_Map; with Keyboard; with Ada.Numerics.Generic_Elementary_Functions; procedure Main is Screen_Width : constant := 800; Screen_Height : constant := 600; package Float_Fun...
with Ada.Integer_Text_IO; procedure Lnko is A, B : Positive; begin Ada.Integer_Text_IO.Get( A ); -- Constraint_Error! Ada.Integer_Text_IO.Get( B ); while A /= B loop if A > B then A := A - B; else B := B - A; end if; end loop; Ada.Integer_Text_IO.Put( A ); end Lnk...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
generic type T is digits <>; package Variance is type Variance_Type is private; procedure Reset(v : in out Variance_Type); procedure Update(v : in out Variance_Type; value : in T); function Get_Variance(v : Variance_Type) return T; private type Variance_Type is record ...
with BitOperations.Types; generic with package Types is new BitOperations.Types (<>); package BitOperations.Shift with SPARK_Mode, Pure is use Types; function Logic_Right (Value : in Modular; Amount : in Natural) return Modular with Pure_Function, Global => null, Pre => Amount in 0..Modular'Size, ...
procedure Make_List is A, B, C : Link_Access; begin A := new Link; B := new Link; C := new Link; A.Data := 1; B.Data := 2; C.Data := 2; Insert(Anchor => A, New_Link => B); -- The list is (A, B) Insert(Anchor => A, New_Link => C); -- The list is (A, C, B) end Make_List;
-- TITLE command line interface -- AUTHOR: Simon Wright -- DESCRIPTION command line interface body for use with VAX/VMS -- NOTES this file is system dependent with Tstring; with Handle_Foreign_Command; package body Command_Line_Interface is subtype Argument_Number is Integer range 1 .. Max_Number_Args; procedur...
-- Demonstration of the extended units: Ada.Command_Line.Generic_Parsing -- Use Ada.Command_Line.Parsing for actual command line. with Ada.Command_Line.Generic_Parsing; with Ada.Containers.Indefinite_Doubly_Linked_Lists; with Ada.Strings.Unbounded; procedure getopt is use type Ada.Containers.Count_Type; use type Ada....
with text_io; use text_io; with Communications_with_User; use Communications_with_User; with Standard_Natural_Numbers; use Standard_Natural_Numbers; with Standard_Natural_Numbers_io; use Standard_Natural_Numbers_io; with Standard_Integer_Numbers; use Stand...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Element_Vectors; with Program.Elements.Declarations; with Program.Elements.Defining_Identifiers; with Program.Lexical_Ele...
-- Gonzalo Martin Rodriguez -- Ivan Fernandez Samaniego with Kernel.Serial_Output; use Kernel.Serial_Output; with Ada.Real_Time; use Ada.Real_Time; with System; use System; with Tools; use Tools; with Driver; use Driver; with State; use State; with Pulse_Interrupt; use Pulse_Interrupt; package body add is proc...
package body Layered_Abstraction is Z : P1.T := P2.Obj; -- Both P1.T and P2.Obj are visible because -- they were not specified in the formal package. -- Note that P2.T is not visible since it -- is required to match P1.T use P1; ...
-------------------------------------------------------------------------------- -- 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...
with My_Package; with My_Generic_Package; with Ada.Text_IO; use Ada.Text_IO; procedure My_Main is N : constant Positive := 15; T : My_Package.My_Implementation; A : My_Package.Arr := (1 => 10, 2 => 10, 3 => 10); package P is new My_Generic_Package (Index_Type => Positive, Element_Type => Natur...
-- floats_ranges.adb with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; procedure floats_ranges is Sum1Float : Float := 53.98; Sum2Float : Float := 94.22; Total : Float := 0.0; begin Put_Line("The min range of a float [ " & Float'Image(Float'First) & " ] and the max range of a flo...
pragma Check_Policy (Trace => Ignore); with System.Shared_Locking; package body Ada.Containers.Copy_On_Write is procedure Follow ( Target : not null Container_Access; Data : not null Data_Access); procedure Follow ( Target : not null Container_Access; Data : not null Data_Access) is be...
with Ada.Text_IO; with Ada.Streams; with GNAT.Sockets; package body Emulator_8080.Vram_Sender is Address : GNAT.Sockets.Sock_Addr_Type; procedure Initialize(Port : in Natural; Ip_Address : in String) is begin Address := GNAT.Sockets.Sock_Addr_Type'(Family => GNAT.Sockets.Family_Inet, ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- AOC 2020, Day 21 package Day is procedure ingredient_count(filename : in String); end Day;
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
with Ada.Integer_Text_IO; with Intcode; with Memory; procedure Day_02 is Mem: constant Memory.Block := Memory.Read_Comma_Separated; M: aliased Intcode.Machine(Hi_Mem => Mem'Last); use type Memory.Value; subtype Input is Memory.Value range 0..99; begin for Noun in Input'Range loop for Verb in Inpu...
-- Copyright (c) 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 required...
-- BinToAsc_Suite.Utils -- Unit test utilities for BinToAsc -- Copyright (c) 2015, James Humphry - see LICENSE file for details with System.Storage_Elements; with AUnit.Assertions; use AUnit.Assertions; with String_To_Storage_Array, Storage_Array_To_String; package body BinToAsc_Suite.Utils is use RFC4648; u...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. package Apsepp.Output_Class is pragma Pure (Output_Class); type Output_Interfa is limited interface; not overriding procedure Put_Line (Obj : in out Output_Interfa; S : String) is null; end Apsepp....
with openGL.Visual, openGL.Model.Arrow.colored, openGL.Demo; procedure launch_render_Arrows -- -- Exercise the render of arrow models. -- is use openGL, openGL.Model, openGL.Math, openGL.linear_Algebra_3d; begin Demo.print_Usage; Demo.define ("openGL 'Render Arrows' Demo")...
----------------------------------------------------------------------- -- Search.Models -- Search.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-gen.googleco...
-- CE3809A.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...
with AWS.Config; with AWS.Response; with AWS.Services.Dispatchers.URI; with AWS.Status; package @_Project_Name_@.Dispatchers is use AWS; procedure Initialize (Web_Config : in Config.Object); -- Initialize state in this package depending on the HTTP configuration. -- For example it sets the web root fo...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Characters.Latin_1; with Util; use Util; package body HDL_Generator is procedure Line(dest : in out Unbounded_String; str : in String := "") is begin Append(dest, str); Append(dest, Ada.Characters.Latin_1.LF); ...
-- BSD 3-Clause License -- -- Copyright (c) 2017, Maxim Reznik -- 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 noti...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 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...
package URL is function Decode (URL : in String) return String; end URL;
generic package any_Math.any_Algebra is pragma Pure; pragma Optimize (Time); end any_Math.any_Algebra;
with SDL.video; with SDL; with agar.core.types; with agar.core; with agar.gui.pixelformat; package agar.gui.surface is -- types type surface_t is new SDL.video.surface_t; type surface_access_t is access all surface_t; pragma convention (c, surface_t); type index_t is new c.int; type index_access_t is acc...
generic type Number is range <>; package Miller_Rabin is type Result_Type is (Composite, Probably_Prime); function Is_Prime (N : Number; K : Positive := 10) return Result_Type; end Miller_Rabin;
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Ada_Pretty.Statements is -------------- -- Document -- -------------- overriding function Document (Sel...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Text_IO; procedure Partial_Function_Application is type Sequence is array(Positive range <>) of Integer; -- declare a function FS with a generic parameter F and a normal parameter S generic with function F(I: Integer) return Integer; -- generic parameter function FS (S: Sequence) return Se...
with Ada.Exceptions; with Ada.Text_IO; with Ada.Unchecked_Deallocation; package body Executor_Service is procedure Execute (Self : in out Object; Callback : Callable_Ptr) is begin Self.Executor.Run(Callback); -- should probably be put on a queue end Execute; task body Thread is Execute...
-- UNIT: generic package body of VSTRINGS -- -- FILES: vstring_body.a in publiclib -- related file is vstring_spec.a in publiclib -- -- PURPOSE: An implementation of the abstract data type "variable-length -- string." -- -- DESCRIPTION: This package provides a private type VSTRING. VSTRING objects ...
------------------------------------------------------------------------------ -- meals.adb -- -- Implementation of the Meals package. ------------------------------------------------------------------------------ with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Meals is -- Store the ...
package body Important_Dates with SPARK_Mode => On is --------------- -- Add_Event -- --------------- procedure Add_Event (Calendar : in out Calendar_T; Description : String; Date : Date_T) is begin pragma Compile_Time_Warning (Standard.True, "Add_Event...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Environment_Encoding.Strings; package Vampire.Forms.Mobile is type Form_Type is limited new Root_Form_Type with record -- [gcc-4.7/4.8/4.9] has a bug in built-in-placing controlled objects Encoder : not null access Ada.Environment_Encoding.Strings.Encoder...
with Ada.Text_Io; if Object = null then Ada.Text_Io.Put_line("object is null"); end if;
-- Copyright 2020-2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "Spyse" type = "api" function start() set_rate_limit(1) end function check() local c local cfg = datasrc_config() ...
with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with System; package Libc.Syslog with Spark_Mode => Off is pragma Preelaborate; LOG_EMERG : constant := 0; -- /usr/include/x86_64-linux-gnu/sys/syslog.h:51 LOG_ALERT : constant := 1; -- /usr/include/x86_64-linux-gnu/sys/syslog...
with STM32.GPIO; with Pins_STM32F446; use Pins_STM32F446; with Ada.Real_Time; use type Ada.Real_Time.Time; use Ada; package AdaCar is -------------- -- Unidades -- -------------- type Unidades_AI is new Integer range 0..4095; type Estado_Digital is new Integer range 0..1; type Unidades_Distanci...
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- c...
package Loop_Optimization17_Pkg is type vector is array (1..3) of Long_Float; type Rec is record I : Integer; V1, V2 : Vector; S : Long_Float; end record; for Rec use record I at 0 range 0 .. 31; V1 at 4 range 0 .. 191; V2 at ...
-- -- Copyright (C) 2021, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd -- This is a version for the STM32H743x MCU package Ada.Interrupts.Names is -- All identifiers in this unit are implementation defined pragma Implementation_Defined; -----...
with CONFIG; package body PREFACE is procedure PUT(S : STRING) is begin if not CONFIG.SUPPRESS_PREFACE then TEXT_IO.PUT(TEXT_IO.CURRENT_OUTPUT, S); end if; end PUT; procedure SET_COL(PC : TEXT_IO.POSITIVE_COUNT) is begin if not CONFIG.SUPPRESS_PREFACE then TEXT_IO.SET_...
with System.Formatting.Literals.Float; with System.Value_Errors; package body System.Val_LLD is function Value_Long_Long_Decimal (Str : String; Scale : Integer) return Long_Long_Integer is Last : Natural := Str'First - 1; Result : Long_Long_Float; Error : Boolean; begin Formattin...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Interfaces.C.Strings; with Glfw.API; package body Glfw.Windows.Clipboard is function Get (Object : not null access Window'Class) return String is use type Interfaces.C.Strings.chars_ptr...
with Ada.Text_IO, Parameter, Hailstones; procedure Hailstone is -- if Parameter.X > 0, the length of Hailstone(Parameter.X) -- is computed and written into Parameter.Y -- if Parameter.X = 0, Hailstone(27) and N <= 100_000 with maximal -- Hailstone(N) are computed and printed. procedure Show_Sequence(N...