content
stringlengths
23
1.05M
with TEXT_IO; with STRINGS_PACKAGE; use STRINGS_PACKAGE; with LATIN_FILE_NAMES; use LATIN_FILE_NAMES; with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE; with IO_EXCEPTIONS; procedure MAKEINFL is package INTEGER_IO is new TEXT_IO.INTEGER_IO(INTEGER); use TEXT_IO; use INTEGER_IO; use STEM_KEY_TYPE_IO; ...
-- LANGUAGE: Ada -- AUTHOR: Niall Cartwright -- GITHUB: https://github.com/Nairu with Ada.Text_IO; use Ada.Text_IO; procedure HelloWorld is begin Put_Line ("Hello World!"); end HelloWorld;
generic Subset_Size, More_Elements: Positive; package Iterate_Subsets is All_Elements: Positive := Subset_Size + More_Elements; subtype Index is Integer range 1 .. All_Elements; type Subset is array (1..Subset_Size) of Index; -- iterate over all subsets of size Subset_Size -- from the set {1, 2, ......
with Ada.Text_IO; use Ada.Text_IO; procEdure TesT is bEGin PUT('a'); EnD TeSt;
-- @file ibv_controller_process_main.adb -- @date 13 May 2018 -- @author Chester Gillon -- @details Example program created to demonstrate a GDB crash when using: -- - Eclipse Oxygen 4.7.3a -- - GNATbench Integration with CDT 2.8.1.20140109 -- - GNAT GPL 2017 -- - GDB 7.10 (in the GN...
pragma Check_Policy (Validate => Disable); with Ada.Strings.Naked_Maps.Canonical_Composites; -- with Ada.Strings.Naked_Maps.Debug; with Ada.Strings.Naked_Maps.Set_Constants; with System.Once; with System.Reference_Counting; package body Ada.Strings.Naked_Maps.Basic is -- Basic_Set type Character_Set_Access_Wi...
-- Swaggy Jenkins -- Jenkins API clients generated from Swagger / Open API specification -- ------------ EDIT NOTE ------------ -- This file was generated with openapi-generator. You can modify it to implement -- the server. After you modify this file, you should add the following line -- to the .openapi-genera...
--////////////////////////////////////////////////////////// -- 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...
package Listas is type Lista is limited private; -- Tipo lista ordenada creciente procedure Crear_Vacia ( L : out Lista); -- Post: crea la lista vacia L procedure Colocar ( L : in out Lista; E : in Integer); ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2017-2021 Bartek thindil Jasicki -- -- This file is part of Steam Sky. -- -- Steam Sky 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 3 of the License, or -- (a...
with Ada.Exception_Identification.From_Here; with System.Native_Credentials; with System.Zero_Terminated_Strings; with C.errno; with C.stdint; package body System.Native_Directories.Volumes is use Ada.Exception_Identification.From_Here; use type File_Size; use type C.signed_int; use type C.size_t; use ty...
-- This spec has been automatically generated from STM32F7x9.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DMA is pragma Preelaborate; --------------- -- Registers -- --------------- -- low interrupt status regis...
----------------------------------------------------------------------------- -- Helpers package for different functions/procedures to minimize -- code duplication -- -- Copyright 2022 (C) Holger Rodriguez -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.I2C; with RP.GPIO; with RP.I2C_Master; with EEPROM_I...
with ada.text_io; use ada.text_IO; Package body sor is procedure push(s : in out sora; e : elem) is begin s.hossz := s.hossz+1; s.t(s.hossz) := e; end; procedure pop(s : in out sora) is begin for i in 2 .. s.hossz loop s.t(i-1) := s.t(i); end loop; s.hossz := s.hossz-1; end; p...
-- { dg-do run } with Init9; use Init9; with Ada.Numerics; use Ada.Numerics; with Text_IO; use Text_IO; with Dump; procedure P9 is Local_R1 : R1; Local_R2 : R2; begin Put ("My_R1 :"); Dump (My_R1'Address, R1'Max_Size_In_Storage_Elements); New_Line; -- { dg-output "My_R1 : 18 2d 44 54 fb 21 09 40.*...
with Qt; use Qt; with xph_covid19; use xph_covid19; package xph_model is -- procedure set_inputs(country_val : country; -- start_day_index_val : integer; -- end_day_index_val : integer; -- steps_val : integer; -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package body Complex is function II return Complex is begin return Complex'(0.0, 1.0); end II; end Complex;
with freetype.face_Size, freetype.charMap, freeType_C.FT_Face, freeType_C.FT_GlyphSlot, interfaces.C; package freetype.Face -- -- The Face class provides an abstraction layer for the Freetype Face. -- is type Item is tagged private; type View is access all Item'Class; --------- ...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with GBA.Input; use GBA.Input; package GBA.Input.Unbuffered is function Is_Key_Down(K : Key) return Boolean with Inline_Always; function Are_Any_Down(F : Key_Flags) return Boolean with Inline_Always; function Are_All_Down(F : Key_Fl...
with Ada.Text_IO; with Ada.Long_Long_Integer_Text_IO; with Ada.Numerics.Long_Long_Elementary_Functions; use Ada.Numerics.Long_Long_Elementary_Functions; with PrimeInstances; package body Problem_03 is package IO renames Ada.Text_IO; procedure Solve is function Largest_Prime_Factor(number : in Long_Long_Inte...
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.Exceptions; with System.Tasking.Protected_Objects.Entries; package System.Tasking.Protected_Objects.Operations is -- required by compiler type Communication_Block is null record; pragma Suppress_Initialization (Communication...
with Ada.Text_IO; with Ada.Strings.Fixed; use Ada.Text_IO; procedure Main is begin Put_Line (Ada.Strings.Fixed.Trim (Integer'Image (2 * (Integer'Value (Get_Line))), Ada.Strings.Left)); end;
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; package ftsystem is --*************************************************************************** -- * -- * ftsystem.h -- * -- * FreeType low-level system interface definition (specification). -- * -- * Copy...
----------------------------------------------------------------------- -- asf-contexts-exceptions -- Exception handlers in faces context -- 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 Protypo.Api.Engine_Values.Handlers; with protypo.Api.Engine_Values.engine_value_holders; -- -- ## What is this? -- -- A constant wrapper is just a wrapper around a constant value -- package Protypo.Api.Engine_Values.Constant_Wrappers is type Constant_Wrapper is new handlers.Constant_Interface with private; t...
------------------------------------------------------------------------------ -- Copyright (c) 2015-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with Ada.Wide_Wide_Text_IO; with League.Application; with League.Strings; procedure Main is function "+" (Item : Wide_Wide_String) return League.Strings.Universal_String renames League.Strings.To_Universal_String; begin Ada.Wide_Wide_Text_IO.Put_Line (League.Application.Environment.Value (+"HOM...
with agar.core.event; with agar.core.timeout; with agar.core.types; with agar.gui.surface; with agar.gui.text; package agar.gui.widget.button is use type c.unsigned; type flags_t is new c.unsigned; BUTTON_STICKY : constant flags_t := 16#002#; BUTTON_MOUSEOVER : constant flags_t := 16#004#; BUTTO...
-- 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 Orka.Transforms.Doubles.Matrices; package Planets is pragma Pure; AU : constant := 149_597_870_700.0; type Planet_Characteristics is tagged record Axial_Tilt_Deg : Orka.Float_64; Mass_Kg : Orka.Float_64; Sidereal : Duration; Flattening : Orka.Float_64; ...
pragma License (Unrestricted); -- implementation unit specialized for Windows package System.Native_IO.Names is pragma Preelaborate; procedure Open_Ordinary ( Method : Open_Method; Handle : aliased out Handle_Type; Mode : File_Mode; Name : String; Out_Name : aliased out Name_Pointe...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Tkmrpc.Transport.Client; with Tkmrpc.Request.Ees.Esa_Acquire.Convert; with Tkmrpc.Request.Ees.Esa_Expire.Convert; with Tkmrpc.Response.Ees.Esa_Acquire.Convert; with Tkmrpc.Response.Ees.Esa_Expire.Convert; package body Tkmrpc.Clients.Ees is ----------------------------------------------------------------------...
----------------------------------------------------------------------- -- awa-components-factory -- Factory for AWA UI Components -- 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 not use...
with Ada.Characters.Latin_1; package Support.Strings is function str (source : Real; -- the number to print width : Integer := 10) -- width of the printed number return string; function str (source : Integer; -- the number ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Lv.Style; package Lv.Objx.Lmeter is subtype Instance is Obj_T; -- Create a line meter objects -- @param par pointer to an object, it will be the parent of the new line meter -- @param copy pointer to a line meter object, if not NULL then the new object will be copied from it -- @return pointe...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-- Copyright 2019 Simon Symeonidis (psyomn) -- -- 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 la...
-- CD2B11F.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) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with RP.Device; with RP; use RP; package body Piezo is procedure Beep (This : Beeper; Duration : Milliseconds := 1_000; Frequency : Hertz := 440; Count : Positive := 1) ...
with gel.World, openGL.Surface, openGL.Camera; package gel.Camera -- -- Models a camera. -- is type Item is new openGL.Camera.item with private; type View is access all Camera.item'Class; type Views is array (Positive range <>) of View; --------- -- Forge -- procedure free ...
with Ada.Text_IO; procedure PE1 is S : Integer; begin S := 0; for i in 1 .. 999 loop if (i mod 3) = 0 or (i mod 5) = 0 then S := S + i; end if; end loop; Ada.Text_IO.Put_Line(Item => Integer'Image(S)); end PE1;
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with Markdown.Visitors; with League.Regexps; with League.Strings; package body Markdown.Paragraphs is Blank_Pattern : constant League.Regexps.Regex...
-- -*- Mode: Ada -*- -- Filename : tamp.adb -- Description : A "hello world" style OS kernel written in Ada. -- Author : Luke A. Guest -- Created On : Thu Jun 14 11:59:53 2012 -- Licence : See LICENCE in the root directory. pragma Restrictions (No_Obsol...
-- { dg-do run } -- { dg-options "-gnatVi" } procedure valid1 is type m is range 0 .. 10; for m'size use 8; type r is record a, b : m; c, d, e, f : boolean; end record; pragma Pack (r); for R'size use 20; type G is array (1 .. 3, 1 .. 3) of R; pragma Pack (G); proce...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- { dg-do compile } package body Renaming9 is procedure Proc is begin Obj.I := 0; end; begin Obj.I := 0; end Renaming9;
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- private with Ada.Containers.Vectors; private with Ada.Finalization; with Program.Visibility; with Program.Symbols; with Program.Type_Matchers; packag...
package Loop_Optimization7_Pkg is pragma Pure; type Rec is record F : Float; end record; function Conv (Trig : Rec) return Rec; end Loop_Optimization7_Pkg;
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
-------------------------------------------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- -- PQueue -- Generic protected queue package -- -- This code was adapted from two different chunks of code in Norman -- H. Cohen's excellent book Ada as a Second Language. It implements a simple -- protected generic queue type. generic type Data_Type is private; package PQueue is pragma Preelaborate; -----...
pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with sys_ustdint_h; package cmsis_gcc_h is pragma Compile_Time_Warning (True, "probably incorrect record layout"); type T_UINT32 is record v : aliased sys_ustdint_h.uint32_t; -- ../CMSIS_5/CMSIS/Core/...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, AdaCore -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Characters.Handling; use Ada.Characters.Handling; procedure Soundex is type UStrings is array(Natural range <>) of Unbounded_String; function "+"(S:String) return Unbounded_String renames To_Unbounded_String; fu...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
-- 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.Textures; package body GL.Objects.Textures.Targets is function Buffer_Offset (Object : Texture_Buffer_Target; Level : Mipmap_Level) return Size...
with Interfaces; use Interfaces; with PX4IO.Driver; use PX4IO; with NVRAM; with Types; with Logger; package body Servo with SPARK_Mode is ------------ -- Types ------------ type Servo_Setting_Type is record left : Servo_Angle_Type := Servo_Angle_Type (0.0); right : Servo_Angle_Type := Serv...
----------------------------------------------------------------------- -- util-serialize-tools -- Tools to Serialize objects in various formats -- Copyright (C) 2012, 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License");...
-- Generated from glut.h -- Date: Sun Apr 6 14:32:02 1997 -- -- Command line definitions: -- -D__ANSI_C__ -D_LANGUAGE_C -DGENERATING_ADA_BINDING -D__unix -D__sgi -- -D__mips -D__host_mips -D__EXTENSIONS__ -D__EDG -D__DSO__ -D__STDC__ -- -D_SYSTYPE_SVR4 -D_MODERN_C -D_MIPS_SZPTR=32 -D_MIPS_SZLONG=32 -...
generic type Number is digits <>; function Multiply (A, B : Number) return Number;
-- -- Copyright (C) 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. -- -- This ...
-- This package will provide declarations for devices -- and configuration routines on the Flip32cc3df4revo board with System; with STM32; use STM32; with STM32.Device; use STM32.Device; with STM32.GPIO; use STM32.GPIO; -- with STM32.USARTs; use STM32.USARTs; -- with STM32.Timers; use STM32.Timers; -- with STM32.P...
-- { dg-do compile } package Pack2 is type Rec is record Ptr: access Character; Int :Integer; end record; type Table is array (1..2) of rec; pragma Pack (Table); end Pack2;
package body math_Pkg is procedure is_prime (to_check : IN integer; prime : out boolean) is begin Prime := True; if To_Check = 0 then Prime := False; elsif To_Check > 3 then for i in 2..ABS(to_check)/2 loop if abs(to_check) MOD i = 0 then Prime := false; exit; -- number to check ...
----------------------------------------------------------------------- -- mat-memory-probes - Definition and Analysis of memory events -- Copyright (C) 2014, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ...
-- { dg-do run } with System; procedure Protected_Self_Ref1 is protected type P is procedure Foo; end P; protected body P is procedure Foo is Ptr : access P; -- here P denotes the type P T : Integer; A : System.Address; begin Ptr := P'Access; -- here P denotes t...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2013 Felix Krause <contact@flyx.org> -- -- 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/licen...
----------------------------------------------------------------------- -- hestia-network -- Hestia Network Manager -- Copyright (C) 2016, 2017 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 fil...
with AUnit.Run; -- with AUnit.Reporter.Text; with AUnit.Reporter.XML; with Dl.Test_All_Suit; ----------------- -- Dl.Test_All -- ----------------- procedure Dl.Test_All is procedure Run is new AUnit.Run.Test_Runner (Dl.Test_All_Suit.Suite); -- Reporter : AUnit.Reporter.Text.Text_Reporter; Reporter : AUnit....
with AdaM.Factory; package body AdaM.component_Definition is -- Storage Pool -- record_Version : constant := 1; pool_Size : constant := 5_000; package Pool is new AdaM.Factory.Pools (".adam-store", "component_Definitions", ...
with Ada.Text_IO; procedure Vignere_Cipher is subtype Letter is Character range 'A' .. 'Z'; subtype Lowercase is Character range 'a' .. 'z'; function "+"(X, Y: Letter) return Letter is begin return Character'Val( ( (Character'Pos(X)-Character'Pos('A')) + (Character'P...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Ada_2012; package body Tokenize.Private_Token_Lists with SPARK_Mode => On is ------------ -- Append -- ------------ procedure Append (List : in out Token_List; What : String) is begin if List.First_Free > List.Tokens'Last then raise Constraint_Error; end if; ...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_h; package bits_types_clockid_t_h is -- Clock ID used in clock and timer functions. subtype clockid_t is bits_types_h.uu_clockid_t; -- /usr/include/bits/types/clockid_t.h:7 end bits_types_clockid_t_h;
generic type Character_Type is (<>); type String_Type is array(Positive range <>) of Character_Type; Max_Length: Positive; package Encodings.Utility.Generic_Sequence_Buffers is function Remaining_Length( Data: String_Type; Last: Natural ) return Natural is ( if Last >= Data'Last then 0 else Data'Last - Last...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; with System; procedure Macrodef is begin Ada.Text_IO.Put_Line ("Integer'First = " & Integer'Image (Integer'First)); Ada.Text_IO.Put_Line ("Integer'Last = " & Integer'Image (Integer'Last)); Ada.Text_IO.Put_Line ("System.Min_Int = " & Long_Long_Integer'Image (System.Min_Int)); Ada.Text_IO.Pu...
with Interfaces; use Interfaces; package body Hardware.Beacon is procedure Init (Tick_Size : Interfaces.Unsigned_8) is begin Resolution := Tick_Size; MCU.DDRH_Bits (LED1_Bit) := DD_Output; MCU.DDRH_Bits (LED2_Bit) := DD_Output; LED1 := Low; LED2 := Low; Tick := 0; Cou...
pragma License (Unrestricted); -- runtime unit required by compiler with System.Unwind; package System.Standard_Library is pragma Preelaborate; -- required for controlled type by compiler (s-stalib.ads) procedure Abort_Undefer_Direct with Import, Convention => Ada, External_Name => "...
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.Real_Time_Clock; use HAL.Real_Time_Clock; with HAL; package Text_Format is subtype Number_Base is Positive range 2 .. 16; function From_Natural (N : Natural; Base : Number_Base :...
----------------------------------------------------------------------- -- wiki-render-wiki -- Wiki to Wiki renderer -- Copyright (C) 2015, 2016, 2018, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
procedure procedure_instantiation is begin begin declare generic procedure proc(pfp:in integer); procedure proc(pfp:in integer) is begin null; end proc; begin declare procedure p is new proc; begin null; end; end; end; end pr...
-- cerner_2^5_2018 with Ada.Command_line; use Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; procedure EvenOrOddInputs is begin for A in 1..Argument_Count loop declare N : Integer := Integer'Value(Argument(A)); begin if N rem 2 = 0 then Put_Line ("Even"); elsif N rem 2 /= 0 ...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
generic MAX_TEXT_LENGTH: POSITIVE; package GEN_TEXT_HANDLER is subtype TEXT_LENGTH is NATURAL range 0..MAX_TEXT_LENGTH; type TEXT(LENGTH: TEXT_LENGTH := 0) is private; private type TEXT(LENGTH: TEXT_LENGTH := 0) is record IMAGE: STRING(1..LENGTH); end record; end GEN_TEXT_HAN...
---------------------------------------------------------------------------- -- Generic Command Line Parser (gclp) -- -- Copyright (C) 2012, Riccardo Bernardini -- -- This file is part of gclp. -- -- gclp is free software: you can redistribute it and/or modify -- it under the ter...
with Ada.Text_IO; package body my_lib is procedure Do_Stuff is begin Ada.Text_IO.Put_Line("Hello DLL land!"); end Do_Stuff; -- procedure Initialize_API is -- procedure Adainit; -- pragma Import(C, Adainit); -- begin -- Adainit; -- end Initialize_API; -- procedure Finalize_API is -- procedure A...
with System; with STM32.Device; use STM32.Device; with STM32_SVD; use STM32_SVD; with STM32_SVD.PKA; use STM32_SVD.PKA; generic Curve_Name : String; Num_Bits : UInt32; Hash_Size : UInt32 := 256; package STM32.PKA is N_By_8 : constant UInt32 := (Num_Bits / 8) + (if (Num_Bits mod 8) > 0 then ...
----------------------------------------------------------------------- -- are-generator-go-tests -- Tests for Go generator -- Copyright (C) 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 this f...
with Ada.Strings.Unbounded; private with Ada.Containers.Indefinite_Vectors; generic with procedure Print_Line(Indention: Natural; Line: String); package S_Expr is function "-"(S: String) return Ada.Strings.Unbounded.Unbounded_String renames Ada.Strings.Unbounded.To_Unbounded_String; function "+"(U: Ada...
private with Ada.Strings.Unbounded; private with Ada.Text_IO; package Test is type Test_t is range 1 .. 1_000_000; type Context_t is limited private; type Result_t is (Not_Executed, Pass, Fail, Unsupported); subtype Valid_Result_t is Result_t range Pass .. Unsupported; procedure Initialize (Test_Cont...