content
stringlengths
23
1.05M
------------------------------------------------------------------------------ -- G E L A X A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
with Interfaces.C.Strings; with Tkmrpc.Types; with Tkmrpc.Results; package Tkmrpc.Clients.Cfg is procedure Init (Result : out Results.Result_Type; Address : Interfaces.C.Strings.chars_ptr); pragma Export (C, Init, "cfg_init"); pragma Export_Valued_Procedure (Init); -- Initialize CFG client w...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- Util.Streams.Files -- File Stream utilities -- Copyright (C) 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 not use...
-- 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 Datos, Posicion; use Datos; function Interseccion (L1, L2 : in Lista ) return Lista is -- pre: -- post: se ha insertado el nuevo valor en L de manera ordenada LI : Lista; Num : Integer; begin crear_lista_vacia(LI); while L1 /= null loop while L2 /= null loop if Num = L2.all.info then ...
----------------------------------------------------------------------- -- views.nodes.jsf -- JSF Core Tag Library -- Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
-- unique_c_resources.adb -- A convenience package to wrap a C type that requires initialization and -- finalization. -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyrigh...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Ada.Directories; with Ada.Direct_IO; with Ada.Unchecked_Deallocation; with Interfaces.C.Strings; with GL.API; with GL.Types; package body GL.Files is use GL.Types; procedure Load_Shader_S...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
/* Author - Ashish Tyagi */ with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Hello is Div_By_3 : Boolean := false; Div_By_5 : Boolean := false; begin For_Loop : for I in Integer range 1 .. 100 loop Div_By_3 := I mod 3 = 0; Div_By_5 := I mod 5 = ...
with Courbes; use Courbes; with Iterateur_Mots; use Iterateur_Mots; package Parser_Svg is use Liste_Courbes; Courbe_Abs : exception; Courbe_Illisible : exception; --parse un fichier svg et retourne une liste de points (voir documentation) -- lève Courbe_Abs si pas de courbe trouvée -- lève Co...
with Ada.Text_IO, Ada.Numerics.Generic_Elementary_Functions; procedure Benford is subtype Nonzero_Digit is Natural range 1 .. 9; function First_Digit(S: String) return Nonzero_Digit is (if S(S'First) in '1' .. '9' then Nonzero_Digit'Value(S(S'First .. S'First)) else First_Digit(S(S'First...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Interfaces.C; with Swig; with Interfaces.C; package osmesa_c is -- GLenum -- subtype GLenum is Interfaces.C.unsigned; type GLenum_array is array (Interfaces.C.size_t range <>) of aliased osmesa_c.GLenum; -- GLint -- ...
with impact.d2.World, impact.d2.Broadphase, ada.unchecked_Deallocation; package body impact.d2.Solid is use type int32, uint16; procedure SetType (Self : in out b2Body; Kind : in b2BodyType) is ce : access contact.b2ContactEdge; begin if Self.m_type = Kind then retur...
-- { dg-do compile } procedure Pack5 is type Kind is (v1, v2, v3); type Error (k : Kind := Kind'First) is record case k is when v1 => null; when v2 => null; when Others => B : Boolean; end case; end record; pragma Pack (Error); for Error'Size use 16; No_Error: const...
with Ada.Text_IO; use Ada.Text_IO; procedure main is begin Put_Line("Hello world"); end main;
package Private1 is type T is private; private type T is new Boolean; end Private1;
with Ada.Integer_Text_IO; procedure Day_04 is subtype Cand is Integer range 284639 .. 748759; function Is_Valid(C: Cand) return Boolean is Image: String(1..8) := (others => ' '); subtype Image_Middle is String(1..4); function Has_Double(S: Image_Middle) return Boolean is (S(1) /= S(2...
-- { dg-do run } procedure Pack19 is subtype Always_False is Boolean range False .. False; type Rec1 is record B1 : Boolean; B2 : Boolean; B3 : Boolean; B4 : Boolean; B5 : Boolean; B6 : Boolean; B7 : Always_False; B8 : Boolean; end record; pragma Pack (Rec1...
-- { dg-do compile } pragma Restrictions(No_Elaboration_Code); with System; package Elab1 is type Ptrs_Type is array (Integer range 1 .. 2) of System.Address; type Vars_Array is array (Integer range 1 .. 2) of Integer; Vars : Vars_Array; Val1 : constant Integer := 1; Val2 : constant Integer := 2; ...
------------------------------------------------------------------------------ -- -- -- JSON Parser/Constructor -- -- -- -- -...
PROCEDURE loop_parameter_specification IS J : Integer; BEGIN for J in 0 .. 2 loop NULL; end loop; END loop_parameter_specification;
/*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. * * %sccs.include.proprietary.c% * * @(#)instrs.adb 5.1 (Berkeley) 04/04/91 */ OP("adda",0x8e,2,ACCR+TYPL,ACCM+TYPL,0,0,0,0), OP("addb2",0x08,2,ACCR+TYPB,ACCM+TYPB,0,0,0,0), OP("addb3",0x18,3,ACCR+TYPB,ACCR+TYPB,ACCW+TY...
M:part4a F:G$putchar$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$getchar$0$0({2}DF,SC:S),Z,0,0,0,0,0 F:G$main$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$SYSCLK_INIT$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$PORT_INIT$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$UART0_INIT$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$ADC_INIT$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$DAC_INIT$0$0({2}DF,S...
with Node; use Node; package Sender is task type SenderTask(firstNode: pNodeObj; k: Natural; h: Natural); type pSenderTask is access SenderTask; end Sender;
-- Copyright 2012-2021 Free Software Foundation, Inc. -- -- 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 3 of the License, or -- (at your option) any later version. -- -- ...
with sys_h; private with mouse_types_h, console_types_h; package Libtcod.Input is use type sys_h.TCOD_event_t; type Mouse is private; type Key is private; -- A kind of event subtype Event_Type is sys_h.TCOD_event_t; Event_None : constant Event_Type := sys_h.TCOD_EVENT_NONE; Event_Key_Press : ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with ada.Strings.Unbounded, utils, montecarlo, ada.Integer_Text_IO, opstrat; use ada.Strings.Unbounded, utils, montecarlo, ada.Integer_Text_IO, opstrat; package botIO is type T_prefix is (settings, update_game, update_hand, action); type T_params is Array(0..7) of Unbounded_String; type T_command is r...
-- { dg-do compile } -- { dg-options "-gnatws" } procedure Pack6 is type R is record I : Integer; a, b, c, d, e : Character; end record; type Ar1 is array (1..4) of R; type Ar2 is array (1..4) of R; pragma Pack (Ar2); type R2 is record A : Ar2; end record; for R2 use record A at 0 ...
with AUnit.Simple_Test_Cases; use AUnit.Simple_Test_Cases; with Test_Find_And_Replacer; use Test_Find_And_Replacer; with Test_Indentation; use Test_Indentation; with Test_Match_Patterns; use Test_Match_Patterns; with Test_Match_Patterns_Eagerness; use Test_Match_Patter...
package reg is type Word is mod 2**32; RCC_CR : Word; pragma Volatile (RCC_CR); pragma Import (C, RCC_CR, "RCC_CR"); RCC_AHB1ENR : Word; pragma Volatile (RCC_AHB1ENR); pragma Import (C, RCC_AHB1ENR, "RCC_AHB1ENR"); RCC_AHB2ENR : Word; pragma Volatile (RCC_AHB2ENR); pragma...
-- -- Copyright 2021 (C) Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body DS3231 is use HAL.Real_Time_Clock; use HAL; procedure Read_All (This : DS3231_Device; Val : out All_Registers) is use HAL.I2C; Data : constant I2C_Data (1 .. ...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Network.Polls is use type Interfaces.C.int; use type Interfaces.Unsigned_32; EPOLL_CLOEXEC : constant := 8#02000000#; pragma War...
------------------------------------------------------------------------------- -- Copyright (c) 2016, Daniel King -- 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 s...
with Text_IO; use Text_IO; -- Programme minimal qui affiche juste un message. procedure Premier_Programme is begin Put_Line ("Bravo ! Vous avez réussi à exécuter le programme."); end Premier_Programme;
with Ada.Text_IO; use Ada.Text_IO; with SDL_Ada_Sizes; use SDL_Ada_Sizes; with SDL.Types; with SDL.Cdrom; with SDL.Events; with Interfaces.C; procedure Verify_Ada_Sizes is package C renames Interfaces.C; package AI is new Ada.Text_IO.Integer_IO (Integer); package CI is new Ada.Text_IO.Integer_IO (C.int); ...
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Finalization; with Interfaces.C; package Network.Polls is pragma Preelaborate; type Listener is limited interface; type Listener_Access ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Terminal_Interface.Curses; use Terminal_Interface.Curses; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; With Ada.Text_IO.Unbounded_IO; with Ada.Calendar; use Ada.Calendar; with Ada.Text_IO; use Ada.Text_IO; with Ada.Calendar; use Ada.Calendar; with Ada.Calendar.Formatting; use Ada.Calendar.For...
----------------------------------------------------------------------- -- keystore-passwords-files -- File based password provider -- 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 us...
pragma License (Unrestricted); -- generalized unit of Ada.Strings.Hash with Ada.Containers; generic type Character_Type is (<>); type String_Type is array (Positive range <>) of Character_Type; with procedure Get ( Item : String_Type; Last : out Natural; Value : out Wide_Wide_Character; ...
with Ada.Text_IO; use Ada.Text_IO; with Gamma; procedure Test_Gamma is begin for I in 1..10 loop Put_Line (Long_Float'Image (Gamma (Long_Float (I) / 3.0))); end loop; end Test_Gamma;
with Ada.Characters.Handling; with DOM.Core.Elements; with LMCP_Messages; with LMCP_Message_Conversions; with AFRL.CMASI.AirVehicleConfiguration; use AFRL.CMASI.AirVehicleConfiguration; with AFRL.CMASI.AirVehicleState; use AFRL.CMASI.AirVehicleState; with AFRL.CMASI.AutomationRequest; ...
with Ada.Text_IO; use Ada.Text_IO; package body algorithmic is function Do_Naive_Calculation(NIC : Naive_Interface'Class; input : Integer) return Integer is begin Put("<naive>"); return input + NIC.Get_Data**3; -- yes, this is blatantly trivial exa...
----------------------------------------------------------------------- -- swagger-tests -- Unit tests for REST clients -- Copyright (C) 2018, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
-- { dg-do run } with Disp2_Pkg; use Disp2_Pkg; procedure Disp2 is Obj : Object_Ptr := new Object; begin if Obj.Get_Ptr /= Obj.Impl_Of then raise Program_Error; end if; end;
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with WebIDL.Factories; with WebIDL.Tokens; with League.String_Vectors; package WebIDL.Parsers is pragma Preelaborate; type Abstract_Lexer is limited...
with System.Native_Time; with C.sys.time; with C.sys.types; package body System.Native_Calendar is -- use type C.signed_int; -- use type C.signed_long; -- tm_gmtoff -- use type C.sys.types.time_t; Diff : constant := 5680281600.0; -- seconds from 1970-01-01 (0 of POSIX time) -- to 2150-01-01 (0 of...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.USB is pragma Preelaborate; --------------- -- Registers -- --------------- subtype EP0R_EA_Field is HAL.U...
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package Stemmer.Arabic with SPARK_Mode is type Context_Type is new Stemmer.Context_Type with private; procedure Stem (Z : in out Context_Type; Result : out Boolean); private type Context_Type is new Stemmer.Context_Type with record B_Is_defined...
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.RCC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_HSIDIV_Field is HAL.UInt2; -- ...
----------------------------------------------------------------------------- -- -- -- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd. -- -- SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from rp2040.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; -- DW_apb_ssi has the following features:\n --...
-- NORX_Check_Padding -- Ensure that headers and trailers of different lengths are accepted -- and messages of different lengths correctly decrypted (to check padding) -- Copyright (c) 2016-2018, James Humphry - see LICENSE file for details with Ada.Text_IO; use Ada.Text_IO; with System.Storage_Elements; with Inte...
-- ----------------------------------------------------------------------------- -- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019-2021 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Identifiers; with Program.Elements.Defining_Names; with Program.Elements.Defining_Operator_Symbols; with Program.Element...
with Interfaces.C.Strings; with Sensors.LibSensors.Sensors_Sensors_H; private package Sensors.Conversions is function Convert_Up (Source : Sensors.LibSensors.Sensors_Sensors_H.Sensors_Bus_Id) return Bus_Id; function Convert_Up (Source : Sensors.LibSensors.Sensors_Sensors_H.Sensors_Chip_Name) return Chip_Name; ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Interfaces; with GL.Types; with Blade; with Blade_Types; with E3GA; with GA_Maths; with Metric; with Multivectors; with Multivector_Type; package GA_Utilities is use GA_Maths.Float_Array_Package; function Multivector_Size (MV : Multivectors.Multivector) return Integer; procedure Print_Bitmap (Name : ...
with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE; package TRICKS_PACKAGE is procedure SYNCOPE(W : STRING; PA : in out PARSE_ARRAY; PA_LAST : in out INTEGER); procedure TRY_TRICKS(W : STRING; PA : in out PARSE_ARRAY; PA_LAST : in out INTEGER; ...
package ordinary_type_declaration_range_constraint is type Ordinary_Type is range 1..10; end ordinary_type_declaration_range_constraint;
package body agar.gui.widget.checkbox is package cbinds is function allocate (parent : widget_access_t; flags : flags_t; label : cs.chars_ptr) return checkbox_access_t; pragma import (c, allocate, "AG_CheckboxNewS"); function allocate_function (parent : widget_access_t; ...
with Timer_Callback; use Timer_Callback; with Giza.Window; use Giza; with Screen_Interface; use Screen_Interface; with Giza.GUI; use Giza.GUI; -- with Hershey_Fonts.Rowmand; with Giza.Bitmap_Fonts.FreeMono8pt7b; with Test_Main_Window; use Test_Main_Window; procedure Giza_Test_Gtk is Main_W : constant Main_Window_R...
-- 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...
----------------------------------------------------------------------- -- views.nodes.jsf -- JSF Core Tag Library -- Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.ITM is pragma Preelaborate; --------------- -- Registers -- --------------- -- ITM Stimulus Port Registers -- ITM S...
package body Generic_Perm is procedure Set_To_First(P: out Permutation; Is_Last: out Boolean) is begin for I in P'Range loop P (I) := I; end loop; Is_Last := P'Length = 1; -- if P has a single element, the fist permutation is the last one end Set_To_First; procedure Go_To_Next(P...
-- Abstract : -- -- External process parser for gpr mode -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or -- modify it under terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, ...
pragma Warnings (Off); pragma Ada_95; pragma Restrictions (No_Exception_Propagation); with System; with System.Parameters; with System.Secondary_Stack; package ada_main is GNAT_Version : constant String := "GNAT Version: Community 2020 (20200818-93)" & ASCII.NUL; pragma Export (C, GNAT_Versi...
----------------------------------------------------------------------- -- properties.hash -- Hash-based property implementation -- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (t...
with DOM.Core; with Assignment_Tree_Branch_Bound; use Assignment_Tree_Branch_Bound; with Assignment_Tree_Branch_Bound_Communication; use Assignment_Tree_Branch_Bound_Communication; package UxAS.Comms.LMCP_Net_Client.Service.Assignment_Tree_Branch_Bounding is type Assignment_Tree_Branch_Bound_Service...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- part of ParserTools, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" private with Ada.Streams.Stream_IO; private with Ada.Directories; package Lexer.Source.File is -- this provides streams which are backed by files on the file system. type Instance is new ...
-- C25001B.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...
-- Afficher l'entier N sur la sortie standard. -- Cette procédure s'appuie sur Ada.Integer_Text_IO.Put mais permet d'avoir -- une procédure avec un seul paramètre. procedure Afficher_Un_Entier (N: in Integer);
with Ada.Float_Text_IO; use Ada.Float_Text_IO; procedure Horners_Rule is type Coef is array(Positive range <>) of Float; function Horner(Coeffs: Coef; Val: Float) return Float is Res : Float := 0.0; begin for P in reverse Coeffs'Range loop Res := Res*Val + Coeffs(P); end loop; ...
-- { dg-do compile } with Ada.Numerics.Complex_types; use Ada.Numerics.Complex_types; with Complex1_Pkg; use Complex1_Pkg; procedure Complex1 is Z : Complex; begin Coord (Z.Re, Z.Im); end;
-- 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...
----------------------------------------------------------------------- -- are-installer-merges -- Web file merge -- Copyright (C) 2020, 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 file ...
-- Copyright (c) 2006-2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package JWS.Integers is Digit_Size : constant := 32; type Digit is mod 2 ** Digit_Size; type Number is array (Positiv...
select accept first_entry; -- do something or accept second_entry; -- do something or terminate; end select;
pragma Extensions_Allowed (On); with Ada.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers; pragma Extensions_Allowed (Off); with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Strings.Fixed; use Ada.Strings.Fixed; package Rejuvenation.String_Utils with SPARK_Mode =>...
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014-2021 Vitalii Bondarenko <vibondare@gmail.com> -- -- -- ----...
generic type Input_Stream (<>) is limited private; -- Stream of bytes with procedure Get (Stream : in out Input_Stream; EOF : out Boolean; Byte : out Character) is <>; -- Try to read a byte from Stream. If the end of Stream was reached before -- we c...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_struct_FILE_h; package bits_types_FILE_h is -- The opaque type of streams. This is the definition used elsewhere. subtype FILE is bits_types_struct_FILE_h.u_IO_FILE; -- /usr/include/bits/types/FILE.h:7 end bit...
------------------------------------------------------------------------------- -- 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...
----------------------------------------------------------------------- -- awa-wikis-beans -- Beans for module wikis -- Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
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.MDIOS is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_PORT_ADDRESS_Field is HAL.UInt5;...
package body My_Package is procedure Some_Procedure(Item : out My_Type) is begin Item := 2 * Item; end Some_Procedure; function Set(Value : Integer) return My_Type is Temp : My_Type; begin Temp.Variable := Value; return Temp; end Set; end My_Package;
----------------------------------------------------------------------- -- gen-artifacts-distribs-libs -- Unix shared library extraction and distribution -- Copyright (C) 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
pragma Ada_2012; with Protypo.Api.Engine_Values.Parameter_Lists; use Protypo.Api.Engine_Values.Parameter_Lists; package body User_Records is --------------- -- Split_Bit -- --------------- function Split_Bit (Params : Protypo.Api.Engine_Values.Engine_Value_Vectors.Vector) return Protypo.Api.Eng...
-- ----------------------------------------------------------------------------- -- smk, the smart make (http://lionel.draghi.free.fr/smk/) -- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr> -- SPDX-License-Identifier: APSL-2.0 -- ----------------------------------------------------------------------------- -- Licen...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt package Definitions is pragma Pure; synth_version_major : constant String := "2"; synth_version_minor : constant String := "04"; copyright_years : constant String := "2015-2018"; host_localbase...
with Ada.Calendar.Time_Zones; with Ada.Environment_Variables; with Ada.Strings.Fixed; package body Web is Month_T : constant String := "JanFebMarAprMayJunJulAugSepOctNovDec"; Day_T : constant String := "MonTueWedThuFriSatSun"; function Environment_Variables_Value (Name : String) return String is begin if Ada....