content stringlengths 23 1.05M |
|---|
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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 vers... |
with STRINGS_PACKAGE; use STRINGS_PACKAGE;
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES;
with DEVELOPER_PARAMETERS; use DEVELOPER_PARAMETERS;
with PREFACE;
with INFLECTIONS_PACKAGE; use INFLECTIONS_PACKAGE;
with DICTIONARY_PACKAGE; use DICTIONARY_PACKAGE;
pragma ELABORATE(INFLECTIONS_PACKAGE);
pragma ELABORATE(DI... |
Package Body Risi_Script.Types.Patterns is
Function To_Indicators( Working: Half_Pattern ) return Indicator_String is
begin
Return Result : Indicator_String(Working'Range) do
for Index in Result'Range loop
Result(Index) := +Working(Index);
end loop;
End return;
end To... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Finalization;
with Ada.Strings.Unbounded;
with Interfaces;
package TOML with Preelaborate is
pragma Warnings (Off);
use type Ada.Strings.Unbounded.Unbounded_String;
pragma Warnings (On);
Version : constant String := "0.1";
-- Version for the ada-toml project
subtype Unbounded_UTF8_Strin... |
private with C.gmp;
package GMP is
pragma Preelaborate;
pragma Linker_Options ("-lgmp");
function Version return String;
subtype Number_Base is Integer range 2 .. 16;
type Exponent is new Long_Integer;
type Precision is mod 2 ** GMP.Exponent'Size;
function Default_Precision return Precision;
private
... |
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Containers.Ordered_Sets;
package body Problem_29 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
package Positive_Set is new Ada.Containers.Ordered_Sets(Positive);
subtype Parameter is Integer range 2 .. 100;
type Special_A... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
-- C46051A.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... |
--
-- The following is based on John Maddock's extended precision
-- (Boost Library) gamma function. It uses the gamma rational
-- poly functions (for the range x = 1 to 3) worked out by John Maddock,
-- so his Copyright will be retained.
--
------------------------------------------------------------------------... |
with Datos, Ada.Text_Io;
use Datos, Ada.Text_Io;
with Insertar_en_Lista_Ordenada, esc, crear_lista_vacia;
procedure Prueba_Insertar_en_Lista_Ordenada is
Lis: Lista;
procedure Pedir_Return is
begin
Put_Line("pulsa return para continuar ");
Skip_Line;
end Pedir_Return;
begin
Put_Line("Prog... |
#############################################################################
##
#W sml1536.ada GAP library of groups Hans Ulrich Besche
## Bettina Eick, Eamonn O'Brien
##
SMALL_GROUP_LIB[ 1536 ].2nil[ 105 ] := rec( ops :=
[ 2, 1044,,,,,,,,,,,,,,,,,,,... |
-- { dg-do run }
with System;
procedure SSO4 is
type Short_Int is mod 2**16;
type Rec1 is record
F1 : Short_Int;
F2 : Short_Int;
end record;
for Rec1 use record
F1 at 0 range 0 .. 15;
F2 at 0 range 16 .. 31;
end record;
for Rec1'Bit_Order use System.High_Order_First;
f... |
-- part of FreeTypeAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package FT.Errors is
pragma Preelaborate;
type Error_Code is
(Ok, Cannot_Open_Resource, Unknown_File_Format, Invalid_File_Format,
Invalid_Version, Lower_Module_Version, Invalid_Argum... |
-- 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... |
-----------------------------------------------------------------------
-- awa-events -- AWA Events
-- 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 in compliance... |
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Images.RGB is
procedure free_fl_rgb_image
(I : in System.Address);
pragma Import (C, free_fl_rgb_image, "free_fl_rgb_image");
pragma Inline (free_fl_rgb_image);
function fl_rgb_image_copy
(I... |
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Parsers.Multiline_Source.Text_IO Luebeck --
-- Interface Winter, 2004 --
-- ... |
with AUnit.Reporter.Text;
with AUnit.Run;
with AUnit.Test_Suites;
with HMAC_SHA1_Streams_Tests;
with HMAC_SHA2_Streams_Tests;
procedure HMAC_Tests is
function Suite return AUnit.Test_Suites.Access_Test_Suite;
procedure Runner is new AUnit.Run.Test_Runner (Suite);
Reporter : AUnit.Reporter.Text.Text_Reporte... |
pragma Warnings (Off);
pragma Style_Checks (Off);
------------------------------------------------------------------------------
-- File : Vehic002.ads
-- Description : 3D model of a space vehicle. Big, mysterious ship.
-- Copyright (c) Gautier de Montmollin 1999 - 2000
--... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Orthogonal_Polys;
with text_io; use text_io;
with Ada.Numerics.Generic_Elementary_Functions;
procedure opolys_tst_2 is -- fit data with a nth order polynomial
type Real is digits 15;
package Math is new Ada.Numerics.Generic_Elementary_Functions (Real);
function Sin (X : Real) return Real renames Math... |
package body -<full_series_name_dots>-.object is
procedure pack (this: in Object_Any; buf: in out ByteBuffer) is
begin
null;
end pack;
procedure unpack (this: in out Object_Any; buf: in out ByteBuffer) is
begin
null;
end unpack;
end -<full_series_name_dots>-.object;
|
--- src/anet-sockets-inet.adb.orig 2016-06-29 10:26:01 UTC
+++ src/anet-sockets-inet.adb
@@ -52,7 +52,7 @@ package body Anet.Sockets.Inet is
Res : C.int;
Sock : Thin.Inet.Sockaddr_In_Type
(Family => Socket_Families.Family_Inet);
- Len : aliased C.int := Sock'Size / 8;
+ Len : aliased... |
with AUnit.Test_Suites;
package MainTestSuite is
function Suite return AUnit.Test_Suites.Access_Test_Suite;
procedure runAll;
end MainTestSuite;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do run }
pragma Restrictions (No_Finalization);
procedure no_final is
package P is
type T is tagged null record;
type T1 is new T with record
A : String (1..80);
end record;
function F return T'Class;
end P;
Str : String (1..80) := (1..80=>'x');
package body... |
-- This spec has been automatically generated from STM32L0x1.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.NVIC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Interrupt Priority Register 0
ty... |
with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with System.Address_To_Named_Access_Conversions;
with System.Growth;
with System.Standard_Allocators;
with System.Storage_Elements;
with System.Zero_Terminated_Strings;
with C.errno;
with C.fcntl;
with C.unistd;
package body System.Native_Directo... |
with Predictor_2;
with Text_IO; use Text_IO;
with Sinu_2;
with Ada.Numerics.Generic_Elementary_Functions;
procedure predictor_2_demo_1 is
type Real is digits 15;
package Sinusoid is new Sinu_2 (Real);
use Sinusoid;
package Sin_Integrate is new
Predictor_2 (Real, Dyn_Index, Dynamical_Variable, F,... |
with Dsp.Generic_Functions;
with Ada.Numerics.Complex_Types;
--
-- Instantiation of Generic_Functions for Float and basic Complex
--
package Dsp.Functions is
new Dsp.Generic_Functions (Scalar_Type => Float,
Complex_Types => Ada.Numerics.Complex_Types);
|
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Constraints;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Delta_C... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Unsigned_Types;
package System.Wid_LLU is
pragma Pure;
-- required for Modular'Width by compiler (s-widllu.ads)
function Width_Long_Long_Unsigned (
Lo, Hi : Unsigned_Types.Long_Long_Unsigned)
return Natural;
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with EU_Projects.Nodes.Action_Nodes;
with EU_Projects.Nodes.Partners;
with EU_Projects.Node_Tables;
package EU_Projects.Nodes.Action_Nodes.Tasks is
subtype Task_Index is Node_Index;
No_Task : constant Extended_Node_Index := No_Index;
type Task_Label is new Node_Label;
type Project_Task is
new No... |
pragma License (Unrestricted);
-- implementation unit
package Ada.Strings.Naked_Maps.General_Category is
pragma Preelaborate;
-- General_Category=Unassigned (Cn)
function Unassigned return not null Character_Set_Access;
function All_Unassigned return not null Character_Set_Access;
-- Contains Unas... |
-- AOC 2020, Day 6
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
anyone : constant Natural := anyone_sum("input.txt");
everyone : constant Natural := everyone_sum("input.txt");
begin
put_line("Part 1: " & Natural'Image(anyone));
put_line("Part 2: " & Natural'Image(everyone));
end main... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2021, AdaCore --
-- --
-- ... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
package body ADXL345 is
function To_Acceleration
(G_Range : DATA_FORMAT_G_Range_Field;
A : HAL.UInt16)
return Acceleration
is
use HAL;
F : Acceleration;
begin
F... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
with STM32_SVD; use STM32_SVD;
with STM32_SVD.NVIC; use STM32_SVD.NVIC;
with STM32_SVD.SCB; use STM32_SVD.SCB;
with STM32_SVD.PWR; use STM32_SVD.PWR;
with STM32_SVD.EXTI; use STM32_SVD.EXTI;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.RTC; use STM32_SVD.RTC;
package body STM32GD.RTC is
Days_Per_Month : c... |
------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . I N I T _ G U I --
-- S p e c --
----... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
generic
type Discrete_Type is (<>);
package Apsepp.Generic_Discrete_Operations is
-- Don't evaluate the pre-conditions in this package. Just let
-- Constraint_Error be raised in case of violation.
pra... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Fizzbuzz is
Limit : Natural;
begin
Put_Line ("Enter how far to go for FizzBuzz:");
Get (Limit);
for I in 1 .. Limit loop
if I mod 3 = 0 and I mod 5 = 0 then
Put_Line ("FizzBuzz");
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
-- { dg-do compile }
procedure Discr7 is
subtype Index is Natural range 0..5;
type BitString is array(Index range <>) of Boolean;
pragma Pack(BitString);
function Id (I : Integer) return Integer is
begin
return I;
end;
type E(D : Index) is record
C : BitString(1..D);
end record;
subtype E... |
package body AOC.AOC_2019.Day02 is
use Intcode;
function Compute_Output (D : Day_02; Noun, Verb : Integer) return Element is
Instance : Instances.Instance := D.Compiler.Instantiate;
begin
Instance.Opcodes (1) := Element (Noun);
Instance.Opcodes (2) := Element (Verb);
Instance... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C.Pointers;
with GL.Algebra;
package GL.Types is
pragma Preelaborate;
-- These are the types you can and should use with OpenGL functions
-- (particularly when dealing with b... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- Antonio M. F.... |
-- C46013A.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 Ada.Integer_Text_IO, Ada.Text_IO;
use Ada.Integer_Text_IO, Ada.Text_IO;
package body IntList is
function IsInList( List: in T; Number: in Integer ) return Boolean is
begin
return Find_Element( List, Number ) /= null;
end IsInList;
------------------------------------------------------------... |
-----------------------------------------------------------------------
-- util-tests-tokenizers -- Split texts into tokens
-- 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 f... |
-- 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;
package RP_SVD.SPI1 is
pragma Preelaborate;
... |
with DDS.Typed_DataWriter_Generic;
with DDS.Typed_DataReader_Generic;
with DDS.Entity_Impl;
with DDS.Topic;
with DDS.DomainParticipant;
with DDS.Publisher;
with DDS.Subscriber;
generic
with package Request_DataReaders is new DDS.Typed_DataReader_Generic (<>);
with package Reply_DataWriters is new DDS.Typed_DataW... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Strings;
package Magics is
pragma Preelaborate;
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_String
... |
-----------------------------------------------------------------------
-- util-encoders-ecc -- Error Correction Code
-- 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 ex... |
pragma License (Unrestricted);
-- Ada 2012
private with System;
package Ada.Strings.UTF_Encoding is
pragma Pure;
-- Declarations common to the string encoding packages
-- modified
-- UTF-32 support is added.
type Encoding_Scheme is (
UTF_8, UTF_16BE, UTF_16LE,
UTF_32BE, UTF_32LE); -- add... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Streams;
with Ada.Unchecked_Conversion;
with Interfaces;
with System;
package body LoRa is
pragma Discard_Names;
-- procedure puts
-- ... |
generic
type Element is (<>);
with function "+" (Left, Right : Element) return Element is <>;
with function "-" (Left, Right : Element) return Element is <>;
package Coordinates_2D is
type Coordinate_2D is record
Line, Column : Element;
end record;
function "+" (Left, Right : Coordinate_2D) ret... |
--
-- Copyright (c) 2007, 2008 Tero Koskinen <tero.koskinen@iki.fi>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "A... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Iterator_Interfaces;
package Program.Interpretations.Symbols is
pragma Preelaborate;
type Cursor is record
Index : Natural;
Sy... |
-------------------------------------------------------------------------
-- GL.Errors - GL error support
--
-- Copyright (c) Rod Kay 2007
-- AUSTRALIA
-- Permission granted to use this software, without any warranty,
-- for any purpose, provided this copyright note remains attached
-- and unmodifie... |
with Ada.Wide_Text_IO; use Ada.Wide_Text_IO;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Asis;
with Asis.Compilation_Units;
with Asis.Elements;
with Asis.Declarations;
with Asis.Definitions;
with Asis.Expressions;
with Asis.Exceptions;
package body FP_Detect is
function Is_PP_Elem_Fn(Element :... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_SDL_stdinc_h;
package SDL_SDL_cpuinfo_h is
function SDL_HasRDTSC return SDL_SDL_stdinc_h.SDL_bool; -- ../include/SDL/SDL_cpuinfo.h:40
pragma Import (C, SDL_HasRDTSC, "SDL_HasRDTSC");
function SDL_HasMMX re... |
./menu2
1 Fee Fie
2 Huff & Puff
3 mirror mirror
4 tick tock
chose (0 to exit) #:2
you chose #:Huff & Puff
1 Fee Fie
2 Huff & Puff
3 mirror mirror
4 tick tock
chose (0 to exit) #:55
Menu selection out of range
1 Fee Fie
2... |
-------------------------------------------------------------------------------
-- 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... |
with AUnit;
with AUnit.Test_Cases;
package Day.Test is
type Test is new AUnit.Test_Cases.Test_Case with null record;
function Name (T : Test) return AUnit.Message_String;
procedure Register_Tests (T : in out Test);
-- Test routines
procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class);
... |
package revisions
-- Ada spec generator
-- File: revisions.ads
BUILD_TIME : constant String := "Thu Nov 7 2019 04:10:14" ;
VERSION_MAJOR : constant := 0 ;
VERSION_MINOR : constant := 0 ;
VERSION_BUILD : constant := 999 ;
REPO_URL : constant String := "git@gitlab.com:privatetutor/projectlets/go.git" ... |
-----------------------------------------------------------------------
-- Util.Concurrent.Fifos -- Concurrent Fifo Queues
-- Copyright (C) 2012, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
with Ada.Unchecked_Deallocation;
package body kv.Ref_Counting_Mixin is
procedure Free is new Ada.Unchecked_Deallocation(Data_Type, Data_Access);
procedure Free is new Ada.Unchecked_Deallocation(Control_Type, Control_Access);
-----------------------------------------------------------------------------
p... |
-----------------------------------------------------------------------
-- util-executors -- Execute work that is queued
-- Copyright (C) 2019, 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 thi... |
with fann_c.fann_Train_data;
package Neural.Set
--
-- models a set of neural patterns used for trainng or testing a net.
--
is
type Patterns_view is access all Patterns;
type Set is
record
Patterns : Patterns_view;
Fann : fann_c.fann_Train_data.pointer;
... |
--
-- Utility package to convert IDs to enumarative values.
--
private generic
type Field_Enumerator is (<>);
Prefix : String := "";
package Protypo.Api.Field_Names is
function Is_Field (X : ID) return Boolean;
function To_Field (X : ID) return Field_Enumerator;
end Protypo.Api.Field_Names;
|
with Ada.Strings.Unbounded;
package Word_Lists is
package ASU renames Ada.Strings.Unbounded;
type Cell;
type Word_List_Type is access Cell;
type Cell is record
Word: ASU.Unbounded_String;
Count: Natural := 0;
Next: Word_List_Type;
end record;
Word_List_Error: except... |
with GNAT.Command_Line; use GNAT.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Termbox_Package; use Termbox_Package;
with Editor_Package; use Editor_Package;
with Buffer_Package; use Buffer_Package;
with Command_Package; use Command_Package;
procedure Main... |
-- { dg-do compile }
-- { dg-options "-gnatE" }
package body Dynamic_Elab2 is
function Get_Plot return Plot is
procedure Fill (X : out Plot) is
begin
X.Data := Get_R;
end;
X : Plot;
begin
Fill(X);
return X;
end;
end Dynamic_Elab2;
|
package body STM32GD.SPI.Peripheral is
procedure Init is
begin
null;
end Init;
procedure Transfer (Data : in out SPI_Data_8b) is
begin
while SPI.SR.TXE = 0 loop
null;
end loop;
SPI.DR.DR := UInt16 (Data (0));
while SPI.SR.RXNE = 0 loop
null;
end loo... |
with Units; use Units;
package body Units.Navigation with SPARK_Mode is
function foo return Heading_Type is
result : Angle_Type;
-- SPARK GPL 2016: everything okay.
-- SPARK Pro 18.0w: error with DEGREE 360; remove "constant" and it works
A : Angle_Type := DEGREE_360;
begin
retur... |
-- { dg-do compile }
-- { dg-options "-O" }
with Text_IO; use Text_IO;
package body Concat2 is
function Get_Param return String is
begin
return "";
end;
procedure Browse is
Mode : constant String := Get_Param;
Mode_Param : constant String := "MODE=" & Mode;
begin
Put... |
--------------------------------------------------------------------------------
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
package Examples.Text_Rewrites is
procedure Demo (File_Name : String);
end Examples.Text_Rewrites;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Formal_Derived_Type_Definitions is
function Create
(Abstract_Token : Program.Lexical_Elements.L... |
with Ada.Text_IO;
with Ada.Strings.Fixed;
with Ada.Characters.Handling;
with Ada.Long_Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A022 is
use Ada.Text_IO;
use Ada.Strings.Fixed;
use Ada.Long_Integer_Text_IO;
FT : File_Type;
Ch : Character;
Name_Val ... |
with Ada.Text_IO; use Ada.Text_IO;
with P_StructuralTypes;
use P_StructuralTypes;
package body P_stephandler is
function Get_NextHandler (Self : in out T_StepHandler) return Ptr_Handler is
begin
return Self.NextHandler;
end;
procedure Set_NextHandler (Self : in out T_StepHandler;
... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Strings.Unbounded;
with Tabula.Calendar.Time_IO;
with Tabula.Casts.Cast_IO;
with Tabula.Villages.Village_IO;
package body Vampire.Villages.Village_IO is
use People;
use Person_Records;
procedure IO (
Serializer : not null access Serialization.Serializer;
... |
with SDL;
with SDL.CPUS;
with SDL.Log;
with SDL.Platform;
with System;
use type System.Bit_Order;
procedure Platform is
Endian : System.Bit_Order renames System.Default_Bit_Order;
begin
SDL.Log.Set (Category => SDL.Log.Application, Priority => SDL.Log.Debug);
SDL.Log.Put_Debug ("This system is running : " &... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Types;
package Ada.Numerics.Long_Complex_Types is
new Generic_Complex_Types (Long_Float);
pragma Pure (Ada.Numerics.Long_Complex_Types);
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Nanomsg.Socket;
with Ada.Containers.Ordered_Maps;
package Nanomsg.Socket_Pools is
type Pool_T is tagged private;
procedure Add_Socket (Self : in out Pool_T;
Socket : in Nanomsg.Socket.Socket_T);
procedure Remove_Socket (Self : in out Pool_T;
... |
pragma Ada_2012;
with AWS.Resources.Streams.Memory;
with GNAT.Semaphores;
with System;
with Ada.Finalization;
package AWS.Resources.Streams.Pipes is
use AWS.Resources.Streams.Memory;
type Stream_Type is new Streams.Memory.Stream_Type with private;
procedure Append
(Resource : in out Stream_Type;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.