content
stringlengths
23
1.05M
with Ada.IO_Exceptions; with Interfaces.C.Strings; with System.Program.Dynamic_Linking; with System.Storage_Elements.Formatting; procedure dll_client is begin Ada.Debug.Put (System.Program.Full_Name); Ada.Debug.Put (System.Storage_Elements.Formatting.Image (System.Program.Load_Address)); use_zlib : declare zlib : ...
package Offmt_Lib.Decoding is procedure Decode (Map_Filename : String); -- Decode from stdin end Offmt_Lib.Decoding;
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- wiki-parsers-html -- Wiki HTML parser -- Copyright (C) 2015, 2016, 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 n...
-- -- -- ********************************** -- * * -- * T e x t * -- * * -- * Input / Output Package * -- * * -- * and other * -- ...
-- C45282B.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...
package GLOBE_3D.Options is -- Visual checks: show_normals : constant Boolean := False; show_portals : constant Boolean := False; filter_portal_depth : constant Boolean := False; -- Formal checks: full_check_objects : constant Boolean := False; strict_geometry : cons...
-- Procedure multi_var_deviates_demo_1, test and demonstrate random deviates. -- -- Uses a giant array, so may need to set stacksize large at (eg) Linux -- prompt, as in: ulimit -s unlimited with Text_io; Use Text_io; with Disorderly.Basic_Rand; use Disorderly.Basic_Rand; with Disorderly.Basic_Rand.Clock_Entropy;...
package GESTE_Fonts.FreeMonoOblique8pt7b is Font : constant Bitmap_Font_Ref; private FreeMonoOblique8pt7bBitmaps : aliased constant Font_Bitmap := ( 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#20#, 16#04#, 16#00#, 16#80#, 16#10#, 16#04#, 16#00#, 16#80#, 16#10#, 16#00#, 16#00#, 16#00#, 16#18#, 16#00...
pragma License (Unrestricted); -- runtime unit package System.Startup is pragma Preelaborate; -- command arguments (initialize.c) argc : Integer with Export, Convention => C, External_Name => "gnat_argc"; argv : Address with Export, Convention => C, External_Name => "gnat_argv"; envp : ...
-- Some 2D GL utility functions based on GL, GLUT with GL; package GLUT_2D is ---------- -- Text -- ---------- type Font_type is ( Screen_9_by_15, Screen_8_by_13, Times_Roman_10, Times_Roman_24, Helvetica_10, Helvetica_12, Helvetica_18 ); procedure Text_Out...
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.Strings.Fixed; with Ada.Character...
-- Copyright (c) Mark J. Kilgard, 1994. -- Ported to Ada by Antonio F. Vargas -- http://www.adapower.net/~avargas -- mailto: avargas@adapower.net -- /** -- * (c) Copyright 1993, Silicon Graphics, Inc. -- * ALL RIGHTS RESERVED -- * Permission to use, copy, modify, and distribute this software for -- * any purpo...
-- AOC, Day 1 package Day1 is type Mass is new Natural; procedure load_modules(filename : in String); function fuel_for_modules return Mass; function total_fuel return Mass; private function fuel_required(weight : in Mass) return Integer; function recursive_fuel_required(weight : in Mass) return Mass; ...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.JSON.Streams; with League.JSON.Values; package body LSP.Generic_Optional is ---------- -- Read -- ---------- ...
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package sgxintrin_h is -- skipped func _encls_u32 -- skipped func _enclu_u32 end sgxintrin_h;
package Taft_Type2_Pkg is type T is private; function Open return T; private type Buffer_T; type T is access Buffer_T; end Taft_Type2_Pkg;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with PixelArray; with StbiWrapper; package ImageIO is pragma Assertion_Policy (Pre => Check, Post => Check, Type_Invariant => Check); function load(filename: String) return PixelArray.ImagePlane; function save(filename: String; image: PixelArray.ImagePl...
package body agar.gui.widget.tlist is package cbinds is procedure set_item_height (tlist : tlist_access_t; height : c.int); pragma import (c, set_item_height, "AG_TlistSetItemHeight"); procedure size_hint (tlist : tlist_access_t; text : cs.chars_ptr; num_items ...
----------------------------------------------------------------------- -- gen-artifacts -- Artifacts for Code Generator -- Copyright (C) 2011, 2012, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Calendar.Time_Zones; with Ada.Calendar.Formatting; package Tabula.Calendar is use type Ada.Calendar.Time_Zones.Time_Offset; Null_Time : constant Ada.Calendar.Time; Time_Offset : constant Ada.Calendar.Time_Zones.Time_Offset := 9 * 60; -- GMT+9 日本 priva...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with GL.Types; use GL.Types; package GL.Uniforms is pragma Preelaborate; type Uniform is new Int; procedure Set_Single (Location : Uniform; Value : Single); procedure Set_Single ...
package CLIC.Config.Edit is function Unset (Path : String; Key : Config_Key) return Boolean; -- Unset/Remove a key from a configuration file. Return True in case of -- success or False when the configuration file or the key don't exist. function Set (Path : String...
----------------------------------------------------------------------- -- akt-commands-info -- Info command of keystore -- 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...
--------------------------------- -- GID - Generic Image Decoder -- --------------------------------- -- -- Copyright (c) Gautier de Montmollin 2010 .. 2019 -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to d...
-- 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; package body GL.Objects.Shaders is procedure Set_Source (Subject : Shader; Source : String) is C_Source : C.char_array := C.To_C (Source); begin API.Shade...
with OpenAL.Buffer; with OpenAL.Types; package OpenAL.Source is -- -- Types -- type Source_t is private; type Source_Array_t is array (Positive range <>) of Source_t; No_Source : constant Source_t; -- -- API -- -- proc_map : alGenSources procedure Generate_Sources (Sources : in out...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- servlet-servlets-mappers -- Read servlet configuration files -- Copyright (C) 2011, 2012, 2013, 2015, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "L...
with ZMQ; package ZHelper is function Rand_Of (First : Integer; Last : Integer) return Integer; function Rand_Of (First : Float; Last : Float) return Float; -- Provide random number from First .. Last procedure Dump (S : ZMQ.Socket_Type'Class); -- Receives all message parts from socket, prints neatl...
-- ------------------------------------------------ -- Programa de prova -- ------------------------------------------------ -- Versio : 0.1 -- Autors : Jose Ruiz Bravo -- Biel Moya Alcover -- Alvaro Medina Ballester -- ------------------------------------------------ -- Programa...
------------------------------------------------------------------------------- -- 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...
-- 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. ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
-- { dg-do run } -- { dg-options "-O2 -gnatp" } procedure Bit_Packed_Array3 is type Bitmap_T is array (1 .. 10) of Boolean; pragma Pack (Bitmap_T); type Maps_T is record M1 : Bitmap_T; end record; pragma Pack (Maps_T); for Maps_T'Size use 10; pragma Suppress_Initialization (Maps_T); Tm...
with Ada.Text_IO.Formatting; with System.Formatting.Literals; with System.Long_Long_Integer_Types; package body Ada.Text_IO.Integer_IO is subtype Word_Integer is System.Long_Long_Integer_Types.Word_Integer; procedure Put_To_Field ( To : out String; Last : out Natural; Item : Num; Base : ...
-- Shoot'n'loot -- Copyright (c) 2020 Fabien Chouteau with Game_Assets.Tileset; with Game_Assets.Tileset_Collisions; with Game_Assets.Misc_Objects; with GESTE_Config; use GESTE_Config; with GESTE.Tile_Bank; with GESTE.Sprite.Animated; with Sound; package body Monsters is package Item renames Game_Assets.Misc_...
pragma Ada_2012; with Protypo.Code_Trees.Interpreter.Expressions; with Protypo.Code_Trees.Interpreter.Symbol_Table_References; pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced"); with Ada.Text_Io; use Ada.Text_Io; package body Protypo.Code_Trees.Interpreter.Names is --------------- -- Eval...
-- -- Copyright (C) 2015-2018 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 Ada.Finalization; with Ada.Streams; with League.Stream_Element_Vectors; with League.String_Vectors; with League.Strings; with PB_Support.Vectors; package Conformance.Conformance is type Wire_Format is (UNSPECIFIED, PROTOBUF, JSON, JSPB, TEXT_FORMAT); for Wire_Format use (UNSPECIFIED => 0, PROTOBUF ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
with Ada.IO_Exceptions; private with C.yaml; private with Ada.Finalization; package YAML is pragma Preelaborate; pragma Linker_Options ("-lyaml"); function Version return String; type Version_Directive is record Major : Natural; Minor : Natural; end record; type Tag_Directive is record Handle : not nu...
package body Common with SPARK_Mode is ------------------- -- Append_To_Msg -- ------------------- procedure Append_To_Msg (Msg : in out Unbounded_String; Tail : String) is begin if Length (Msg) < Natural'Last and then Tail'Length > 0 then declare Max_Length : constant Posit...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- Copyright (c) 2014-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
----------------------------------------------------------------------- -- ADO Sequences Hilo-- HiLo Database sequence generator -- Copyright (C) 2009, 2010, 2011, 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- 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...
package body Points is function Set_Draw_Colour (Colour : Singles.Vector4) return Colour_Data is begin return (others => Colour); end Set_Draw_Colour; end Points;
package kv.avm.vole_parser is Unimplemented_Error : exception; procedure YYParse; Verbose : Boolean := False; end kv.avm.vole_parser;
----------------------------------------------------------------------- -- babel-strategies -- Strategies to backup files -- Copyright (C) 2014, 2015, 2016 Stephane.Carrez -- Written by Stephane.Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
with Generic_Sensor; with Units; with Units.Navigation; use Units.Navigation; with Interfaces; use Interfaces; with ublox8.Driver; package GPS with SPARK_Mode, Abstract_State => State is subtype GPS_Data_Type is GPS_Loacation_Type; subtype GPS_DateTime is ublox8.Driver.GPS_DateTime_Type; package GPS_Sen...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package Opt37 is type T_Bit is range 0 .. 1; for T_Bit'Size use 1; type Positive is range 0 .. (2 ** 31) - 1; type Unsigned32 is mod 2 ** 32; subtype T_Bit_Count is Positive; subtype T_Bit_Index is T_Bit_Count range 1 .. T_Bit_Count'Last; type T_Bit_Array is array (T_Bit_Count range ...
pragma License (Unrestricted); -- implementation unit package Ada.Strings.Naked_Maps.Canonical_Composites is pragma Preelaborate; -- not-decomposable characters. function Base_Set return not null Character_Set_Access; -- decomposes and extracts the base character. function Basic_Map return not null ...
with Interfaces.C, System; use type System.Address; package body FLTK.Widgets.Groups.Tabbed is procedure tabs_set_draw_hook (W, D : in System.Address); pragma Import (C, tabs_set_draw_hook, "tabs_set_draw_hook"); pragma Inline (tabs_set_draw_hook); procedure tabs_set_han...
procedure One (X : in out Integer) is begin X := X + 1; end One;
----------------------------------------------------------------------- -- package body Bidiagonal; bidiagonalizes real valued matrices. -- Copyright (C) 2015-2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provide...
package Semaphores is protected type Counting_Semaphore(Max : Positive) is entry Acquire; procedure Release; function Count return Natural; private Lock_Count : Natural := 0; end Counting_Semaphore; end Semaphores;
----------------------------------------------------------------------- -- writer -- Response stream writer -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- yo...
procedure default_function_argument is function plus_defaulted(x, y: Integer := 0) return Integer is begin return x + y; end plus_defaulted; z : Integer := plus_defaulted; begin null; end default_function_argument;
with Ada.Text_IO; use Ada.Text_IO; procedure Reverse_String is function Reverse_It (Item : String) return String is Result : String (Item'Range); begin for I in Item'range loop Result (Result'Last - I + Item'First) := Item (I); end loop; return Result; end Reverse_It; begin ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" private with Ada.Containers.Vectors; private with Ada.Containers.Indefinite_Vectors; private with Ada.Strings.Unbounded; package Specs is -- This package implements parsing and applying .spec files....
-- { dg-do compile } -- { dg-options "-O -gnatws" } procedure Opt43 is function Func return Integer is begin if False then return 0; end if; end; begin if Func = Func then raise Program_Error; end if; exception when Program_Error => null; end;
with Ada.Strings.Unbounded; with Config_File_Parser; pragma Elaborate_All (Config_File_Parser); package Config is function TUS (S : String) return Ada.Strings.Unbounded.Unbounded_String renames Ada.Strings.Unbounded.To_Unbounded_String; -- Convenience rename. TUS is much shorter than To_Unbounded_String....
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with GNAT.OS_Lib; with FSmaker.Source; with FSmaker.Sink; package FSmaker.Target is type Filesystem is interface; type Any_Filesystem_Ref is access all Filesystem'Class; procedure Format (This : in out Filesystem; FD : GNAT.OS_Lib.File_Descriptor; Size : ...
with BitOperations.Types; with BitOperations.Shift; with BitOperations.Mask; generic with package Types is new BitOperations.Types (<>); package BitOperations.Extract with SPARK_Mode, Pure, Preelaborate is package Shift is new BitOperations.Shift(Types); package Mask is new BitOperations.Mask(Types); ...
package body Prime_Numbers is -- auxiliary (internal) functions function First_Factor (N : Number; Start : Number) return Number is K : Number := Start; begin while ((N mod K) /= Zero) and then (N > (K*K)) loop K := K + One; end loop; if (N mod K) = Zero then return...
generic type Real is digits <>; type Index is range <>; type A_Matrix is array(Index, Index) of Real; package Givens_QR_Method is subtype C_Index is Index; subtype R_Index is Index; function Identity return A_Matrix; -- Input matrix A (in Upper Hessenberg form) and also matrix Q. -- -...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Holders; with League.JSON.Arrays; with League.JSON.Streams; with League.JSON.Values; package body LSP.Messages is fun...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt -- GCC 6.0 only -- pragma Suppress (Tampering_Check); private with HelperText; private with Ada.Containers.Vectors; private with Ada.Containers.Hashed_Maps; package Port_Specification is type Portspecs is t...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package Atomic with Preelaborate, Spark_Mode is type Mem_Order is (Relaxed, -- Implies no inter-thread ordering constraints Consume, -- This is currently implemented using the stronger __ATOMIC_ACQUIRE -- memory order because of a deficiency in C++11's semantics for -- memory_o...
----------------------------------------------------------------------- -- messages - A simple memory-based forum -- Copyright (C) 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 except...
package body STM32GD.Vectors is procedure Default_Handler is begin null; end Default_Handler; end STM32GD.Vectors;
------------------------------------------------------------------------------- -- Copyright 2021, The Septum Developers (see AUTHORS file) -- 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 ...
-- Task 2 of RTPL WS17/18 -- Team members: Hannes B. and Gabriel Z. with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; -- For float input package body convert with SPARK_Mode is -- Procedure for option 2 procedure opt2 is begin -- User input Put ("Please input a Celsius value: "); ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with interfaces.c; with interfaces.c.strings; with swig; with interfaces.C; package Festival is -- FILE -- subtype FILE is swig.opaque_structure; type FILE_array is array (interfaces.C.Size_t range <>) of aliased festival.FILE; ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with osmesa_c.Pointers; with Interfaces.C; package osmesa_c.pointer_Pointers is -- GLenum_Pointer_Pointer -- type GLenum_Pointer_Pointer is access all osmesa_c.Pointers.GLenum_Pointer; -- GLint_Pointer_Pointer -- type GLint_Point...
package body openGL.surface_Profile.privvy is -- function to_glx (Self : in Item'Class) return GLX.GLXFBConfig -- is -- begin -- return Self.glx_Config; -- end to_glx; procedure dummy is begin null; end; end openGL.surface_Profile.privvy;
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Port_Specification; private with Parameters; package PortScan.Operations is -- Call before executing sanity check. It checks the present of build -- hooks at the synth_conf location and caches the ...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
with Limited_With4; package Limited_With4_Pkg is P1 : Limited_With4.Ptr1 := Limited_With4.Proc1'Access; P2 : Limited_With4.Ptr2 := Limited_With4.Proc2'Access; type Rec12 is record I : Integer; R : Limited_With4.Rec1; end record; type Rec22 is record I : Integer; R : Limited_With4.Rec2; ...
with Text_IO; with Ada.Command_Line; with AWS.Client; with AWS.Headers; with AWS.Response; with AWS.Messages; use AWS.Messages; procedure main is hdrs : AWS.Headers.List := AWS.Headers.Empty_List; server_url : constant String := Ada.Command_Line.Argument(1); player_key : constant String := Ada.Command_Line.Argum...
------------------------------------------------------------------------------- -- -- -- 0MQ Ada-binding -- -- -- ...
with Ada.Strings.Fixed; use Ada.Strings.Fixed; with AUnit.Assertions; use AUnit.Assertions; with Libadalang.Analysis; use Libadalang.Analysis; with Libadalang.Common; use Libadalang.Common; with Missing.AUnit.Assertions; use Missing.AUnit.Assertions; with Rejuvenation.Indentati...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
with agar.gui.widget.box; package agar.gui.widget.pane is use type c.unsigned; type type_t is (PANE_HORIZ, PANE_VERT); for type_t use (PANE_HORIZ => 0, PANE_VERT => 1); for type_t'size use c.unsigned'size; pragma convention (c, type_t); type pane_t is limited private; type pane_access_t is access al...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- Strings_Edit.Streams Luebeck -- -- Interface Spring, 2009 -- -- ...
-- { dg-do compile } -- { dg-options "-gnat12" } function Cond_Expr1 (Dir : in String) return String is begin return (if Dir (Dir'Last) = '\' then Dir else Dir & '\'); end;
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- ...
package Tictactoe with SPARK_Mode => On is type Slot is (Empty, Player, Computer); type Pos is new Integer range 1 .. 3; type Column is array (Pos) of Slot; type Board is array (Pos) of Column; My_Board : Board := (others => (others => Empty)); -- Game operations procedure Initialize with ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: ISC -- -- -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package Pixtend.wiringPiSPI_h is function wiringPiSPIGetFd (channel : int) return int -- wiringPiSPI.h:29 with Import => True, Convention => C, External_Name => "wiringPiSPIGetFd"; function wiringPiSPIDataRW...