content stringlengths 23 1.05M |
|---|
with AWS.Messages;
with AWS.MIME;
package body @_Project_Name_@.Callbacks is
-------------
-- Default --
-------------
function Default (Request : in Status.Data) return Response.Data is
URI : constant String := Status.URI (Request);
begin
if URI = "/" then
return Response.Build
... |
package body Taszkseged is
task body Szemafor is
Bent: Natural := 0;
begin
loop
select
when Bent < Max => accept P; Bent := Bent + 1;
or
accept V; Bent := Bent - 1;
or
terminate;
end select;
end loop;
end Szemafor;
protected body Veletlen is
p... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package asm_generic_int_ll64_h is
-- * asm-generic/int-ll64.h
-- *
-- * Integer declarations for architectures which use "long long"
-- * for 64-bit types.
--
-- * __xx is ok: it doesn't poll... |
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation.Finder; use Rejuvenation.Finder;
with Rejuvenation.Node_Locations; use Rejuvenation.Node_Locations;
with Rejuvenation.Text_Rewrites; use Rejuvenation.Text_Rewrites;
package body Rewriters_Minimal_Parentheses is
overriding function ... |
-- Copyright (c) 2015-2019 Marcel Schneider
-- for details see License.txt
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
-- with Ada.Strings; use Ada.Strings;
with Ada.Text_IO; use Ada.Text_IO;
with Punctuation; use Punctuation;
package body Lexer_Base is
procedure OpenFile (O : in out Object;
... |
with Ada.Containers.Indefinite_Ordered_Maps;
package String_Maps is new Ada.Containers.Indefinite_Ordered_Maps
(Key_Type => String, Element_Type => String);
|
-----------------------------------------------------------------------
-- mat-readers-tests -- Unit tests for MAT readers
-- Copyright (C) 2014, 2015, 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
-------------------------------------------------------------------------------
-- 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
... |
procedure Choice_Parameter_Specification is
begin
null;
exception
when Choice_Parameter : Constraint_Error =>
null;
end Choice_Parameter_Specification;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Signed_Integer_Types is
... |
with Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Hashed_Sets;
with Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Hash;
with Ada.Streams.Stream_IO;
package GraphML_Writers is
package S_U renames Ada.Strings.Unbounded;
type GraphML_Type is (GraphML_Boolean, GraphML_Int, GraphML_Strin... |
-- 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... |
pragma License (Unrestricted);
-- Ada 2012
package Ada.Strings.UTF_Encoding.Conversions is
pragma Pure;
-- Conversions between various encoding schemes
function Convert (
Item : UTF_String;
Input_Scheme : Encoding_Scheme;
Output_Scheme : Encoding_Scheme;
Output_BOM : Boolean := False... |
with
ada.unchecked_Deallocation;
package body physics.Space
is
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
Self.destruct;
deallocate (Self);
end free;
end physics.Space;
|
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with ARM_Output;
package ARM_Index is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package contains the routines to manage and generate the index.
--
-- ---------------------------------------
-- Copyright 2000, 2005, 2006, 2011
-- AXE Consultants. All rights ... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
generic
Number_Of_Statements: Positive;
package Logic is
--types
subtype Indices is Natural range 1 .. Number_Of_Statements;
type Table is array(Indices range <>) of Boolean;
type Predicate is access function(T: Table) return Boolean;
type Statements is array(Indices) of Predicate;
type Even_Odd i... |
-- This spec has been automatically generated from STM32L4x3.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.VREF is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- VREF control and status r... |
with Ada.Finalization;
package Pak is
type T is new Ada.Finalization.Controlled with null record;
procedure Initialize (X : in out T);
procedure Finalize (X : in out T);
procedure Assign (X : out T'Class);
end Pak;
|
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- 18 package Asis.Statements
-------------------------------------------------------------------------------
-------------------------------------------------... |
with Ada.Text_IO;
with Ada.Command_Line;
with Config;
procedure Show_Config is
use Config;
C : constant Content_Type := Get_Content ("example.conf");
begin
if C.Content = null then
Ada.Text_IO.Put_Line ("FAIL: No configuration file 'example.conf'");
Ada.Command_Line.Set_Exit_Status (Ada.Command_Li... |
-- MIT License
-- Copyright (c) 2021 Stephen Merrony
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify,... |
--
-- Copyright (C) 2017 Nico Huber <nico.h@gmx.de>
--
-- 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 pr... |
-- This demonstration illustrates the use of PWM to control the brightness of
-- an LED. The effect is to make the LED increase and decrease in brightness,
-- iteratively, for as long as the application runs. In effect the LED light
-- waxes and wanes as function of a PWM sine wave generated with the CORDIC
-- co... |
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
package Exported is
function Query (Data : chars_ptr; Size : access size_t)
return int;
pragma Export (C, Query, "Query");
end Exported;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-------------------------------------------------------------------------------
-- Copyright (c) 2016 Daniel King
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
-- { dg-do compile }
-- { dg-options "-gnatc" }
package interface5 is
type Lim_Iface is limited interface;
protected type Prot_Typ is new Lim_Iface with
private
end Prot_Typ;
end interface5;
|
with HAL.Framebuffer; use HAL.Framebuffer;
with Framebuffer_LTDC;
package Framebuffer_RK043FN48H is
LCD_Natural_Width : constant := 480;
LCD_Natural_Height : constant := 272;
type Frame_Buffer is limited new Framebuffer_LTDC.Frame_Buffer with private;
procedure Initialize
(Display : in out Fr... |
generic
type Real is digits <>;
package pc_2_coeff_21 is
subtype PC_Rule_Range is Integer range 0..31;
type Integration_Rule is array(PC_Rule_Range) of Real;
Starting_Id_of_First_Deriv_of_Y : constant PC_Rule_Range := 15;
-- Center_Integration Rule, applied to (d/dt)**2 Y, takes a dY/dt here, and
... |
-----------------------------------------------------------------------
-- util-streams-encoders -- Streams with encoding and decoding capabilities
-- Copyright (C) 2017, 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "L... |
with CSV, Ada.Text_IO; use Ada.Text_IO;
procedure CSV_Data_Manipulation is
Header: String := Get_Line;
begin
Put_Line(Header & ", SUM");
while not End_Of_File loop
declare
R: CSV.Row := CSV.Line(Get_Line);
Sum: Integer := 0;
begin
while R.Next loop
Sum := Sum... |
package Longest_Common_Prefix
with SPARK_Mode => On,
Initializes => A
is
type Text is array (Positive range <>) of Integer;
A : Text (1 .. 1000) := (others => 0);
function LCP (X, Y : Positive) return Natural;
end Longest_Common_Prefix;
|
with Ada.Text_IO;
use Ada.Text_IO;
--Print a message out to the screen
-- date Saturday 13 April 2013
-- https://gcc.gnu.org/onlinedocs/gnat_ugn/Running-a-Simple-Ada-Program.html
-- https://stackoverflow.com/questions/12462461/is-it-worth-to-learn-ada-instead-of-another-languages-c-c
procedure Hello2 is
begin
Pu... |
with Libtcod.Console, Ada.Text_IO, Ada.Exceptions, Libtcod.Input, Libtcod.Maps.Paths;
use type Libtcod.Input.Event_Type;
procedure Keys is
use Ada.Exceptions, Libtcod, Libtcod.Input;
package IO renames Ada.Text_IO;
context : Console.Context := Console.make_context(w => 100, h => 100, title => "Test");
scr... |
with agar.core.event;
with agar.core.timeout;
package agar.gui.widget.scrollbar is
use type c.unsigned;
type type_t is (SCROLLBAR_HORIZ, SCROLLBAR_VERT);
for type_t use (SCROLLBAR_HORIZ => 0, SCROLLBAR_VERT => 1);
for type_t'size use c.unsigned'size;
pragma convention (c, type_t);
type button_t is (
... |
package body GDB_Remote is
--------------
-- From_Hex --
--------------
function From_Hex (Str : String) return Unsigned_64
is
Res : Unsigned_64 := 0;
begin
for C of Str loop
Res := Shift_Left (Res, 4);
Res := Res + Unsigned_64 (From_Hex (C));
end loop;
ret... |
with Interfaces; use Interfaces;
with STM32.GPIO;
with STM32.RCC;
package body EVB1000.USB
with SPARK_Mode => Off
is
Connected : Boolean := False;
Configured : Boolean := False;
Suspended : Boolean := False;
----------------------------------------------------------------------------
-- Imported su... |
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core; use SPARKNaCl.Core;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox;
with SPARKNaCl.Stream;
with Ada.Text_IO; use Ada.Text_IO;
procedure Secretbox2
is
Firstkey : constant Core.Salsa20_Key :=
... |
with Ada.Float_Text_Io; use Ada.Float_Text_Io;
with Ada.Text_IO; use Ada.Text_IO;
procedure Mean_Main is
type Vector is array(Positive range <>) of Float;
function Mean(Item : Vector) return Float is
Sum : Float := 0.0;
Result : Float := 0.0;
begin
for I in Item'range loop
Sum := Su... |
with Posix;
generic
with procedure Encode (Source_File_Name : Posix.C_String;
Output_File_Name : Posix.C_String;
Offset : Natural;
Text : String) is <>;
procedure Hide.Encode_Generic;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
package body openGL.Light
is
function Id (Self : in Item) return light.Id_t
is
begin
return Self.Id;
end Id;
procedure Id_is (Self : in out Item; Now : in light.Id_t)
is
begin
Self.Id := Now;
end Id_is;
function Kind (Self : in Item) return light.Kind_t
is
begin
... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
with Ada.Characters.Wide_Wide_Latin_1;
with Ada_Pretty;
with League.Strings;
with Anagram.Grammars.... |
package body System.Wide_Startup is
pragma Suppress (All_Checks);
-- main generated by gnatbind
function main (argc : Integer; argv : Address; envp : Address)
return Integer
with Import, Convention => C;
-- implementation
function wmain (argc : Integer; argv : Address; envp : Address)
... |
package FLTK.Widgets.Groups.Wizards is
type Wizard is new Group with private;
type Wizard_Reference (Data : not null access Wizard'Class) is limited null record
with Implicit_Dereference => Data;
package Forge is
function Create
(X, Y, W, H : in Integer;
... |
package body System.Startup is
pragma Suppress (All_Checks);
-- weak reference for System.Unwind.Mapping
procedure Install_Exception_Handler (SEH : Address)
with Import, -- weak linking
Convention => Ada,
External_Name => "__drake_install_exception_handler";
pragma Weak_External (I... |
declare
type Int_Ptr is access all Integer;
Ref : Int_Ptr;
Var : aliased Integer := 3;
Val : Integer := Var;
begin
Ref := Var'Access; -- "Ref := Val'Access;" would be a syntax error
|
with Numworks.Display;
with Numworks.Backlight;
with HAL; use HAL;
with Bitmap_Color_Conversion;
with HAL.Bitmap; use HAL.Bitmap;
package body Render is
Buffer : aliased GESTE.Output_Buffer :=
(1 .. Numworks.Display.Width * 10 => 0);
Screen_Pt : GESTE.Point := (0, 0);
... |
-- 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... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Val_Dec is
pragma Pure;
-- required for Fixed'Value by compiler (s-valdec.ads)
function Value_Decimal (Str : String; Scale : Integer) return Integer;
end System.Val_Dec;
|
With
NSO.Types;
-- Section_to_Vector takes a section by name, and returns
-- the children by value, converted to string if necessary.
Function INI.Section_to_Vector( Object : in Instance;
Section: in String:= ""
) return NSO.Types.String_Vector.Vect... |
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.TRNG is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Control A
type TRNG_CTRLA_Register is... |
-- MIT License
--
-- Copyright (c) 2020 Max Reznik
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to use, copy, mo... |
with Ada.Text_IO; use Ada.Text_IO;
with System.Storage_Elements; use System.Storage_Elements;
with BBqueue;
with System; use System;
procedure Main_Offsets
with SPARK_Mode
is
use type BBqueue.Result_Kind;
Buffer : Storage_Array (0 .. 34) := (others => 0);
Q : aliased BBqueue.Offsets_Only (Buffer'Length);
... |
with System;
package TM_Receiver is
task TM_Receiver_Task
with Priority => System.Default_Priority;
end TM_Receiver;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Subtype_Indications;
with Program.Elements.Expressions;
with Pr... |
-----------------------------------------------------------------------------
-- Implementation of delay provider
--
-- Copyright 2022 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with RP.Timer;
package body Delay_Provider is
procedure Delay_MS (MS : Integer) is
My_Delay : RP.Timer.... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Wid_WChar is
pragma Pure;
-- required for Wide_Character'Width by compiler (s-widwch.ads)
function Width_Wide_Character (Lo, Hi : Wide_Character) return Natural;
-- required for Wide_Wide_Character'Width by compil... |
-- { dg-do compile }
-- { dg-options "-O1 -gnatp -gnatn" }
with Dse_Step; use Dse_Step;
procedure Test_Dse_Step is
Start : My_Counter := (Value => 0, Step => 1);
Steps : Natural := Nsteps;
begin
Step_From (Start);
if Mv /= Steps then
raise Program_Error;
end if;
end;
|
package TLSF.Proof.Test.Relation with SPARK_Mode is
procedure Test_Find;
end TLSF.Proof.Test.Relation;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Containers.Indefinite_Vectors;
with Ada.Containers.Vectors;
package Benchmark_Containers is
subtype Long is Long_Integer;
procedure Test_Indefinite (N : Long; File_Name : String);
procedure Test_Non_Indefinite (N : Long; File_Name : String);
end Benchmark_Containers;
|
with AAA.Strings;
with Ada.Strings.Unbounded;
with Ada.Containers.Vectors;
package FSmaker is
function Valid_Path_Char (C : Character) return Boolean
is (C in '/' | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' |
' ' | '-' | '_' | '.');
function Valid_Target_Path (Str : String) return Boolean
is (Str... |
pragma License (Unrestricted);
-- extended unit
with Ada.Command_Line;
with Ada.IO_Exceptions;
with Ada.Streams.Stream_IO.Standard_Files;
private with Ada.Finalization;
private with System.Native_Processes;
package Ada.Processes is
-- Spawning child processes.
type Command_Type is limited private;
function... |
-- Ascon_Test_Vectors
-- Copyright (c) 2016-2018, James Humphry - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
with Ascon128v11;
with Ascon128av11;
with Ascon128v12;
with Ascon128av12;
with Display_Ascon_Traces;
procedure Ascon_Test_Vectors is
procedure Ascon128v11_Display is
new Displa... |
with Input_Sources.File; use Input_Sources.File;
with Sax.Readers; use Sax.Readers;
with DOM.Readers; use DOM.Readers;
with DOM.Core; use DOM.Core;
with DOM.Core.Documents; use DOM.Core.Documents;
with DOM.Core.Nodes; use DOM.Core.Nodes;
with DOM.Core.Attrs; use DOM.Core.Attrs;
with Ada.... |
with AdaCar.Parametros;
with AdaCar.Motores;
package body AdaCar.Organizador_Movimiento is
Minima_Distancia: constant Unidades_Distancia:= Parametros.Distancia_Minima;
--------------------
-- Organizador_PO --
--------------------
protected Organizador_PO
with Priority => Parametros.Techo_Organ... |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
with Callback_Procedures; use Callback_Procedures;
with Graphics_Setup; use Graphics_Setup;
with Exceptions; use Exceptions;
with GLUT;
procedure Swarm is
begin
Initialize_Graphics (Main_Operations'Access);
GLUT.MainLoop;
exception
when E : ot... |
----------------------------------------
-- Copyright (C) 2019 Dmitriy Shadrin --
-- All rights reserved. --
----------------------------------------
with Sax.Readers; use Sax.Readers;
with Input_Sources.File; use Input_Sources.File;
with Unicode.CES;
with Sax.Attributes;
with Sax.Utils;
with Sax.... |
-- licenselist.adb --
-- run under GPS 4.3-5 (Sidux/Debian)
-- process rosetta.org text_processing/3 example
-- uses linked-list to hold times
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Strings.Unbounded,
Ada.Strings.Unbounded.Text_IO,
Ada.Containers.Doubly_Linked_Lists;
use Ada.Text_IO, Ada.Integer_Text_IO,
... |
with ada.text_io;
use ada.text_io;
procedure euler9 is
c : integer;
begin
for a in 1 .. 999 loop
for b in a + 1 .. 999 loop
c := 1000 - a - b;
if c > 0 and then a * a + b * b = c * c then
put_line(integer'image(a * b * c));
end if;
end loop;
end loop;
end;
|
--------------------------------------------------------------------------------------------------------------------
-- 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... |
--
-- Copyright (C) 2019, AdaCore
--
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code mu... |
with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with System.Address_To_Named_Access_Conversions;
with System.Soft_Links;
with System.Synchronous_Objects.Abortable;
with System.Tasks;
package body System.Tasking.Protected_Objects.Operations is
use Ada.Exception_Identification.From_Here;
u... |
with Ada.Text_IO, Ada.Numerics.Generic_Elementary_Functions;
procedure Arith_Geom_Mean is
type Num is digits 18; -- the largest value gnat/gcc allows
package N_IO is new Ada.Text_IO.Float_IO(Num);
package Math is new Ada.Numerics.Generic_Elementary_Functions(Num);
function AGM(A, G: Num) return Num is
... |
pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Arrays;
with Ada.Numerics.Long_Complex_Types;
with Ada.Numerics.Long_Real_Arrays;
package Ada.Numerics.Long_Complex_Arrays is
new Generic_Complex_Arrays (Long_Real_Arrays, Long_Complex_Types);
pragma Pure (Ada.Numerics.Long_Complex_Arrays);
|
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Numerics.Discrete_Random;
use Ada.Text_IO, Ada.Integer_Text_IO;
package body stats is
Package RNG is new Ada.Numerics.Discrete_Random(Integer);
Use RNG;
Gen : Generator;
Procedure Instantiate is
begin
Reset(Gen);
End Instantiate;
function randomRange(to : Integ... |
-- 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 LIBRARY COMPONENTS --
-- --
-- ... |
with Interfaces;
with Atomic.Signed;
package Atomic.Signed_16 is new Atomic.Signed (Interfaces.Integer_16);
|
with System.Formatting.Fixed;
with System.Formatting.Float;
package body System.Img_Real is
procedure Image_Ordinary_Fixed_Point (
V : Long_Long_Float;
S : in out String;
P : out Natural;
Aft : Natural)
is
Fore_Last : Natural;
begin
Formatting.Fixed.Image (
V,
... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Ejercicio1 is
task Tarea1;
task Tarea2;
task Tarea3;
task body Tarea1 is
begin
for I in 1..10 loop
Put_Line("Soy T1");
--delay 1.0;
end loop;
end Tarea1;
task body Tarea2 is
begin
for I in 1..15 loop
Put... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.Display;
with Glfw.Display.Modes;
with Glfw.Events;
with Glfw.Events.Keys;
with Ada.Text_IO;
procedure Glfw_Test.Display is
procedure Write_Mode (Subject : Glfw.Display.Modes.Mode) is
... |
with Ada.Unchecked_Conversion;
with System.Storage_Map;
with C.basetsd;
with C.winternl;
package body System.Native_Tasks is
use type C.char_array;
use type C.windef.DWORD;
use type C.windef.WINBOOL;
use type C.winnt.HANDLE; -- C.void_ptr
type struct_THREAD_BASIC_INFORMATION is record
ExitStatus :... |
with Ada.Text_IO; use Ada.Text_IO;
procedure main is
G : Integer := 659;
P : Integer := 929;
Privkey1 : Integer := 397;
PrivKey2 : Integer := 800;
bit : array (0 .. 1) of Character := ('0', '1');
function bin_image(N : Natural) return string is
(if N < 2 then (1 => bit(n)) else bin_image(n/2) & bit (n mod 2... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2021 Devin Hill
-- zlib License -- see LICENSE for details.
with GBA.BIOS;
with GBA.BIOS.Arm;
with GBA.BIOS.Thumb;
with GBA.Display;
with GBA.Display.Backgrounds;
with GBA.Display.Objects;
with GBA.Display.Palettes;
with GBA.Display.Tiles;
with GBA.Memory;
with GBA.Numerics;
with GBA.Input;
with ... |
with Ada.Streams.Stream_IO, Ada.Directories;
use Ada.Streams.Stream_IO, Ada.Directories;
procedure File_Creation is
File_Handle : File_Type;
begin
Create (File_Handle, Out_File, "output.txt");
Close (File_Handle);
Create_Directory("docs");
Create (File_Handle, Out_File, "/output.txt");
Close (Fil... |
with
FLTK.Menu_Items;
package FLTK.Widgets.Menus.Menu_Buttons is
type Menu_Button is new Menu with private;
type Menu_Button_Reference (Data : access Menu_Button'Class) is limited null record
with Implicit_Dereference => Data;
-- signifies which mouse buttons cause the menu to appear
... |
with Multivectors;
package Multivector_Utilities is
MV_Utilities_Exception : Exception;
function Factorize_Blades (MV_B : Multivectors.Multivector; Scale : out Float)
return Multivectors.Multivector_List;
function Factorize_Blade_Fast (MV_B : Multivectors.Multivector;
... |
-- 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
-- with Ada.Numerics.Generic_Elementary_Functions;
package body calculate with SPARK_Mode is
-- Procedure for option 4
procedure opt4 is
begin
-- Use... |
package PrimitivePropertyTypes is
type SomeClass is record
someInteger : Integer := 1;
someNatural : Natural := 2;
someBoolean : Boolean := False;
someString : String(1 .. 5) := "hello";
someFloat : Float := 1.1;
end record;
end PrimitivePropertyTypes;
|
-- { dg-do run }
-- { dg-options "-O" }
with Array28_Pkg; use Array28_Pkg;
procedure Array28 is
function Get return Outer_type is
Ret : Outer_Type;
begin
Ret (Inner_Type'Range) := F;
return Ret;
end;
A : Outer_Type := Get;
B : Inner_Type := A (Inner_Type'Range);
begin
if B /= "12345" then
... |
with Vecteurs; use Vecteurs;
package STL is
-- Prend une liste de segments et cree l'objet 3d par rotations
-- Requiert Taille(Segments) > 0
procedure Creation(
Segments : in out Liste_Points.Liste ;
Facettes : out Liste_Facettes.Liste;
Nombre_Facettes : Positive);
-- Sauvegard... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.